@progress/kendo-react-sortable
Advanced tools
Comparing version 3.13.0-dev.202004090817 to 3.13.0-dev.202004091724
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("prop-types"),require("react-dom"),require("@progress/kendo-react-intl")):"function"==typeof define&&define.amd?define(["react","prop-types","react-dom","@progress/kendo-react-intl"],t):"object"==typeof exports?exports.KendoReactSortable=t(require("react"),require("prop-types"),require("react-dom"),require("@progress/kendo-react-intl")):e.KendoReactSortable=t(e.React,e.PropTypes,e.ReactDOM,e.KendoReactIntl)}(window,(function(e,t,n,r){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=7)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=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])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t,n,r){var o=e.call(this)||this;return o.target=t,o.prevIndex=n,o.element=r,o}return o(t,e),t}(n(10).PreventableEvent);t.SortableOnDragStartEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t,n,r){this.target=e,this.prevIndex=t,this.nextIndex=n,this.newState=r};t.SortableOnDragOverEvent=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t,n,r){this.target=e,this.prevIndex=t,this.nextIndex=n,this.newState=r};t.SortableOnDragEndEvent=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t,n,r){this.target=e,this.prevIndex=t,this.nextIndex=n,this.newState=r};t.SortableOnNavigateEvent=r},function(e,t,n){"use strict";n.r(t),n.d(t,"classNames",(function(){return o})),n.d(t,"useAsyncFocusBlur",(function(){return P})),n.d(t,"guid",(function(){return i})),n.d(t,"Keys",(function(){return a})),n.d(t,"noop",(function(){return s})),n.d(t,"FloatingLabel",(function(){return f})),n.d(t,"FormComponent",(function(){return u})),n.d(t,"dispatchEvent",(function(){return p})),n.d(t,"canUseDOM",(function(){return v})),n.d(t,"Draggable",(function(){return w})),n.d(t,"focusFirstFocusableChild",(function(){return E})),n.d(t,"useRtl",(function(){return x})),n.d(t,"getter",(function(){return N})),n.d(t,"setter",(function(){return T})),n.d(t,"clone",(function(){return K})),n.d(t,"cloneArray",(function(){return U})),n.d(t,"cloneValue",(function(){return H})),n.d(t,"cloneObject",(function(){return k})),n.d(t,"cloneDate",(function(){return A})),n.d(t,"getTabIndex",(function(){return X}));var r,o=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter((function(e){return!0!==e&&!!e})).map((function(e){return Array.isArray(e)?o.apply(void 0,e):"object"==typeof e?Object.keys(e).map((function(t,n){return e[n]||e[t]&&t||null})).filter((function(e){return null!==e})).join(" "):e})).filter((function(e){return!!e})).join(" ")},i=function(){var e,t,n="";for(e=0;e<32;e++)t=16*Math.random()|0,8!==e&&12!==e&&16!==e&&20!==e||(n+="-"),n+=(12===e?4:16===e?3&t|8:t).toString(16);return n},a={backspace:8,tab:9,enter:13,shift:16,esc:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,delete:46},s=function(){},u=function(){},c=n(0),l=n(1),d=(r=function(e,t){return(r=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])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={focused:!1},t.handleFocus=function(e){t.setState({focused:!0})},t.handleBlur=function(e){t.setState({focused:!1})},t}return d(t,e),t.prototype.render=function(){var e=this.props,t=e.label,n=e.id,r=e.className,i=e.value,a=e.placeholder,s=e.valid,u=e.style,l=o({"k-textbox-container":!0,"k-state-focused":this.state.focused,"k-state-empty":!(i||a),"k-state-invalid":!s&&void 0!==s,"k-rtl":"rtl"===this.props.dir},r);return c.createElement("span",{className:l,onFocus:this.handleFocus,onBlur:this.handleBlur,style:u,dir:this.props.dir},this.props.children,t?n?c.createElement("label",{htmlFor:n,className:"k-label"},t):c.createElement("span",{className:"k-label"},t):null)},t.propTypes={label:l.string,id:l.string,value:l.string,placeholder:l.string,valid:l.bool},t}(c.Component);function p(e,t,n,r){if(e){var o={syntheticEvent:t,nativeEvent:t.nativeEvent,target:n};e.call(void 0,Object.assign(o,r))}}var v=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),m=function(e,t){return function(n){return t(e(n))}},g=function(e,t,n){return e.addEventListener&&e.addEventListener(t,n)},h=function(e,t,n){return e&&e.removeEventListener&&e.removeEventListener(t,n)},b=function(){},y=function(e){return e.preventDefault()},_=/touch/;function D(e){return e.type.match(_)?{pageX:e.changedTouches[0].pageX,pageY:e.changedTouches[0].pageY,clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY,type:e.type,originalEvent:e,isTouch:!0}:{pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY,offsetX:e.offsetX,offsetY:e.offsetY,type:e.type,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,originalEvent:e}}var S=function(e){var t=this,n=e.press;void 0===n&&(n=b);var r=e.drag;void 0===r&&(r=b);var o=e.release;void 0===o&&(o=b);var i=e.mouseOnly;void 0===i&&(i=!1),this._pressHandler=m(D,n),this._dragHandler=m(D,r),this._releaseHandler=m(D,o),this._ignoreMouse=!1,this._mouseOnly=i,this._touchstart=function(e){1===e.touches.length&&t._pressHandler(e)},this._touchmove=function(e){1===e.touches.length&&t._dragHandler(e)},this._touchend=function(e){0===e.touches.length&&1===e.changedTouches.length&&(t._releaseHandler(e),t._ignoreMouse=!0,setTimeout(t._restoreMouse,2e3))},this._restoreMouse=function(){t._ignoreMouse=!1},this._mousedown=function(e){var n=e.which;n&&n>1||t._ignoreMouse||(g(document,"mousemove",t._mousemove),g(document,"mouseup",t._mouseup),t._pressHandler(e))},this._mousemove=function(e){t._dragHandler(e)},this._mouseup=function(e){h(document,"mousemove",t._mousemove),h(document,"mouseup",t._mouseup),t._releaseHandler(e)},this._pointerdown=function(e){e.isPrimary&&0===e.button&&(g(document,"pointermove",t._pointermove),g(document,"pointerup",t._pointerup),g(document,"pointercancel",t._pointerup),g(document,"contextmenu",y),t._pressHandler(e))},this._pointermove=function(e){e.isPrimary&&t._dragHandler(e)},this._pointerup=function(e){e.isPrimary&&(h(document,"pointermove",t._pointermove),h(document,"pointerup",t._pointerup),h(document,"pointercancel",t._pointerup),h(document,"contextmenu",y),t._releaseHandler(e))}};S.supportPointerEvent=function(){return"undefined"!=typeof window&&window.PointerEvent},S.prototype.bindTo=function(e){e!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=e,this._bindToCurrent())},S.prototype._bindToCurrent=function(){var e=this._element;this._usePointers()?g(e,"pointerdown",this._pointerdown):(g(e,"mousedown",this._mousedown),this._mouseOnly||(g(e,"touchstart",this._touchstart),g(e,"touchmove",this._touchmove),g(e,"touchend",this._touchend)))},S.prototype._unbindFromCurrent=function(){var e=this._element;if(this._usePointers())return h(e,"pointerdown",this._pointerdown),h(document,"pointermove",this._pointermove),h(document,"pointerup",this._pointerup),h(document,"contextmenu",y),void h(document,"pointercancel",this._pointerup);h(e,"mousedown",this._mousedown),this._mouseOnly||(h(e,"touchstart",this._touchstart),h(e,"touchmove",this._touchmove),h(e,"touchend",this._touchend))},S.prototype._usePointers=function(){return!this._mouseOnly&&S.supportPointerEvent()},S.prototype.destroy=function(){this._unbindFromCurrent(),this._element=null},S.default=S;var I=S,O=function(){var e=function(t,n){return(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])})(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)}}(),w=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.element=null,t.draggable=new I({press:function(e){t.element&&t.props.onPress&&t.props.onPress.call(void 0,{target:t,event:e,element:t.element})},drag:function(e){t.element&&t.props.onDrag&&t.props.onDrag.call(void 0,{target:t,event:e,element:t.element})},release:function(e){t.element&&t.props.onRelease&&t.props.onRelease.call(void 0,{target:t,event:e})}}),t.assingRef=function(e){t.element=e},t}return O(t,e),t.prototype.componentDidMount=function(){this.element&&this.draggable.bindTo(this.element)},t.prototype.componentWillUnmount=function(){this.draggable.destroy()},t.prototype.render=function(){return c.cloneElement(c.Children.only(this.props.children),{ref:this.assingRef})},t.propTypes={children:l.element.isRequired},t}(c.Component),E=function(e){if(e){var t=e.querySelectorAll('input, [tabindex]:not([tabindex="-1"])');t.length&&t[0].focus&&t[0].focus()}},x=function(e,t){var n=c.useState(t),r=n[0],o=n[1];return c.useEffect((function(){if(!r&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&o(t)}}),[]),r};function P(e){var t=e.onFocus,n=e.onBlur,r=c.useRef(0),o=c.useCallback((function(e){clearTimeout(r.current),r.current=setTimeout((function(){return e()}))}),[r]);return{onFocus:c.useCallback((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];clearTimeout(r.current),t&&t.call.apply(t,[void 0].concat(e))}),[t,r]),onBlur:c.useCallback((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];o((function(){n&&n.call.apply(n,[void 0].concat(e))}))}),[o])}}var C=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;function M(e){var t=[];return e.replace(C,(function(e,n,r,o){t.push(void 0!==n?n:r||o)})),t}var j={};function N(e){if(j[e])return j[e];var t=M(e);return j[e]=function(e){for(var n=e,r=0;r<t.length&&n;r++)n=n[t[r]];return n},j[e]}j.undefined=function(){};var R={undefined:function(e){return e}},F=function(e,t){return t&&t.arrays&&!isNaN(Number(e))?[]:{}};function T(e){if(R[e])return R[e];var t=M(e);return R[e]=function(e,n,r){for(var o=e,i=t.length-1,a=0;a<i&&o;a++)o=o[t[a]]=o[t[a]]||F(t[a+1],r);o[t[i]]=n},R[e]}var A=function(e){return e?new Date(e.getTime()):null};function K(e){var t={};return k(e,t),t}function k(e,t){for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];t[n]=H(r,t[n])}}function H(e,t){if(Array.isArray(e))return U(e);if(e instanceof Date)return A(e);if(e&&"object"==typeof e){var n=t||{};return k(e,n),n}return e}function U(e){return e.map((function(e){return H(e,void 0)}))}var X=function(e,t,n){var r="string"==typeof e?parseInt(e,void 0):e;if(NaN!==r)return void 0!==r?r:t?n?void 0:-1:0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(8);t.Sortable=r.Sortable;var o=n(2);t.SortableOnDragStartEvent=o.SortableOnDragStartEvent;var i=n(3);t.SortableOnDragOverEvent=i.SortableOnDragOverEvent;var a=n(4);t.SortableOnDragEndEvent=a.SortableOnDragEndEvent;var s=n(5);t.SortableOnNavigateEvent=s.SortableOnNavigateEvent},function(e,t,n){"use strict";var r,o,i=this&&this.__extends||(r=function(e,t){return(r=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])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var s=n(0),u=n(9),c=n(1),l=n(6),d=n(2),f=n(3),p=n(4),v=n(5),m=n(11),g=n(12),h=n(13),b=((o={})["data-sortable-component"]=!0,o),y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={clientX:0,clientY:0,isDragging:!1,isDragPrevented:!1,activeId:"",dragCueWidth:0,dragCueHeight:0},t.itemRefsMap={},t.oldSizesMap={},t.animatingItemMap={},t.isUnmounted=!1,t.focusActiveId=!1,t.isKeyboardNavigated=!1,t.swapItems=function(e,t,n){var r=e[t];return e[t]=e[n],e[n]=r,t=n},t.generateNewState=function(e,n){var r=t.props.data,o=r.slice();if(e>n)for(var i=e-1;i>=n;i--){var a=r[i];t.isItemDisabled(a)||(e=t.swapItems(o,e,i))}else for(i=e+1;i<=n;i++){a=r[i];t.isItemDisabled(a)||(e=t.swapItems(o,e,i))}return o},t.closestSortableItem=function(e){for(var n=e;n;){var r=n.getAttribute("data-sortable-id");if(r&&t.itemRefsMap[r]===n)return{id:r,element:n};n=n.parentElement}return{id:"",element:null}},t.isSortable=function(e){return Boolean(e.hasAttribute("data-sortable-component"))},t.closestSortable=function(e){for(var n=e;n;){if(t.isSortable(n))return n;n=n.parentElement}return null},t.isSameSortable=function(e){return t.closestSortable(e)===t.container},t.idComparer=function(e,t){return e+""==t+""},t.findItem=function(e){var n=t.props,r=n.data,o=n.idField;if(e+"")return h.find(r,(function(n){return t.idComparer(n[o],e)}))},t.findIndex=function(e){var n=t.props,r=n.data,o=n.idField;return e+""?h.findIndex(r,(function(n){return t.idComparer(n[o],e)})):-1},t.isItemDisabled=function(e){return e&&!0===e[t.props.disabledField||""]},t.isActiveElementSortableItem=function(){return document.activeElement instanceof HTMLElement&&t.closestSortableItem(document.activeElement).element!==document.activeElement},t.widgetTarget=function(e){var n=h.closest(e,(function(e){return h.hasClasses(e,"k-widget")||t.isSortable(e)}));return n&&!t.isSortable(n)},t.allowDrag=function(e){return e.hasAttribute("data-sortable-id")||!(h.isFocusable(e)||t.widgetTarget(e))},t.onDragStart=function(e){var n=e.event,r=t.props.onDragStart,o=document.elementFromPoint(n.clientX,n.clientY),i=t.closestSortableItem(o),a=i.id,s=i.element,u=t.findItem(a);if(!a||u&&t.isItemDisabled(u)||!t.allowDrag(o)||!t.isSameSortable(o))t.setState({isDragPrevented:!0});else{n.isTouch&&n.originalEvent.preventDefault();var c=new d.SortableOnDragStartEvent(t,t.findIndex(a),o);r&&r.call(void 0,c);var l=c.isDefaultPrevented();l||(t.offsetParent=h.relativeContextElement(t.container)),t.setState({isDragPrevented:l,activeId:a,dragCueWidth:s&&s.clientWidth||0,dragCueHeight:s&&s.clientHeight||0})}},t.onDragOver=function(e){var n=e.event,r=t.props,o=r.onDragOver,i=r.data;if(n.originalEvent.preventDefault(),!t.state.isDragPrevented){var a=t.findIndex(t.state.activeId);if(-1!==a){var s=document.elementFromPoint(n.clientX,n.clientY),u=t.closestSortableItem(s),c=t.findIndex(u.id),l=i[c];if(o&&c>-1&&a!==c&&!t.isItemDisabled(l)&&!t.animatingItemMap[u.id]){var d=new f.SortableOnDragOverEvent(t,a,c,t.generateNewState(a,c));o.call(void 0,d)}var p=t.parentOffset();t.setState({clientX:n.clientX-p.left,clientY:n.clientY-p.top,isDragging:!0})}else t.resetState()}},t.onDragEnd=function(e){var n=t.isActiveElementSortableItem();if(t.state.isDragPrevented)t.resetState(n);else{var r=e.event,o=t.props,i=o.onDragEnd,a=o.data,s=document.elementFromPoint(r.clientX,r.clientY),u=t.closestSortableItem(s),c=t.findIndex(u.id),l=t.findIndex(t.state.activeId),d=t.isItemDisabled(a[c]);if((-1===c||d)&&(c=l),i){var f=new p.SortableOnDragEndEvent(t,l,c,t.generateNewState(l,c));i.call(void 0,f)}t.resetState(n)}},t.onItemBlur=function(){setTimeout((function(){t.isUnmounted||t.isActiveElementSortableItem()&&!t.state.isDragging&&t.setState({activeId:""})}))},t.onItemFocus=function(e){var n=t.closestSortableItem(e.currentTarget),r=n.id,o=n.element;!t.idComparer(r,t.state.activeId)&&t.isSameSortable(e.target)&&o===e.target&&t.setState({activeId:r})},t.onKeyDown=function(e){var n=t.props,r=n.data,o=n.idField,i=n.onNavigate,a=n.navigation,s=t.state.activeId;if(a&&s&&t.isSameSortable(e.target)){var u=t.isRtl,c=r.filter((function(e){return!t.isItemDisabled(e)})),d=h.findIndex(c,(function(e){return t.idComparer(e[o],s)})),f=c.length-1,p=d;switch(e.keyCode===l.Keys.left&&(e.keyCode=u?l.Keys.down:l.Keys.up),e.keyCode===l.Keys.right&&(e.keyCode=u?l.Keys.up:l.Keys.down),e.keyCode){case l.Keys.up:d>0&&(p=d-1);break;case l.Keys.down:d<f&&(p=d+1)}if(p!==d){e.stopPropagation(),e.preventDefault();var m=c[p],g=m?m[o]:"",b=c[d],y=b?b[o]:"";if(e.ctrlKey){if(i){var _=t.findIndex(y),D=t.findIndex(g),S=new v.SortableOnNavigateEvent(t,_,D,t.generateNewState(_,D));t.isKeyboardNavigated=!0,i.call(void 0,S)}}else t.focusActiveId=!0,t.setState({activeId:g+""})}}},t.resetState=function(e){t.setState({clientX:0,clientY:0,isDragging:!1,isDragPrevented:!1,dragCueWidth:0,dragCueHeight:0,activeId:e?"":t.state.activeId})},t.renderData=function(){var e=t.props,n=e.data,r=e.itemUI,o=e.idField,i=e.tabIndex;return n.map((function(e){var n,a=e[o],u=t.isItemDisabled(e),c=t.idComparer(t.state.activeId,a);return s.createElement(r,{key:a,forwardRef:function(e){return t.refAssign(e,a)},dataItem:e,isDisabled:u,isActive:c,isDragged:c&&t.state.isDragging,isDragCue:!1,attributes:(n={},n["data-sortable-id"]=a,n["aria-disabled"]=u,n["aria-grabbed"]=c&&t.state.isDragging&&!t.state.isDragPrevented,n["aria-dropeffect"]=u?"none":"move",n.tabIndex=l.getTabIndex(i,u),n.onFocus=t.onItemFocus,n.onBlur=t.onItemBlur,n),style:{cursor:u?"auto":"move",MozUserSelect:"none",msUserSelect:"none",WebkitUserSelect:"none",userSelect:"none"}})}))},t.renderNoData=function(){var e=t.props.emptyItemUI,n=m.provideLocalizationService(t).toLanguageString(g.noData,g.messages[g.noData]);if(e)return s.createElement(e,{message:n})},t.renderDragCue=function(){var e=t.props.itemUI,n=t.state,r=n.isDragging,o=n.activeId,i=n.clientX,a=n.clientY,u=t.findItem(o);if(r&&u)return s.createElement(e,{dataItem:u,isDisabled:!1,isActive:!0,isDragged:!0,isDragCue:!0,style:{position:"fixed",top:a+10,left:i+10,width:t.state.dragCueWidth,height:t.state.dragCueHeight},attributes:{}})},t.refAssign=function(e,n){e?t.itemRefsMap[n]=e:delete t.itemRefsMap[n]},t.draggableRefAssign=function(e){t.draggableRef=e},t}return i(t,e),Object.defineProperty(t.prototype,"container",{get:function(){return this.draggableRef&&this.draggableRef.element},enumerable:!0,configurable:!0}),t.prototype.getSnapshotBeforeUpdate=function(){var e=this,t=this.props,n=t.idField,r=t.animation;return this.oldSizesMap={},r?(this.props.data.forEach((function(t){var r=t[n],o=e.itemRefsMap[r],i=u.findDOMNode(o);i&&(e.oldSizesMap[r]=i.getBoundingClientRect())})),null):null},t.prototype.componentDidUpdate=function(e){var t=this,n=this.props,r=n.idField,o=n.animation;this.focusActiveId&&(this.focusActiveId=!1,this.itemRefsMap[this.state.activeId].focus()),o&&(this.state.isDragging||this.isKeyboardNavigated)&&(this.isKeyboardNavigated=!1,e.data.forEach((function(e){var n=e[r],o=t.itemRefsMap[n],i=o.getBoundingClientRect(),a=t.oldSizesMap[n],s=a.left-i.left,u=a.top-i.top;0===s&&0===u||requestAnimationFrame((function(){t.animatingItemMap[n]=!0,o.style.transform="translate("+s+"px, "+u+"px)",o.style.transition="transform 0s",requestAnimationFrame((function(){o.style.transform="",o.style.transition="transform 200ms cubic-bezier(0.2, 0, 0, 1) 0s",setTimeout((function(){return t.animatingItemMap[n]=!1}),200)}))}))})))},t.prototype.componentDidMount=function(){this.isRtl=this.container&&"rtl"===getComputedStyle(this.container).direction||!1},t.prototype.componentWillUnmount=function(){this.isUnmounted=!0},t.prototype.parentOffset=function(){var e=this.offsetParent;if(e&&e.ownerDocument&&e!==e.ownerDocument.body){var t=e.getBoundingClientRect();return{left:t.left-e.scrollLeft,top:t.top-e.scrollTop}}return{left:0,top:0}},t.prototype.render=function(){var e=this.props,t=e.data,n=e.style,r=e.className;return s.createElement(l.Draggable,{onPress:this.onDragStart,onDrag:this.onDragOver,onRelease:this.onDragEnd,ref:this.draggableRefAssign},s.createElement("div",a({},b,{className:r,style:a({touchAction:"none"},n),onKeyDown:this.onKeyDown}),t&&t.length?this.renderData():this.renderNoData(),this.renderDragCue()))},t.defaultProps={navigation:!0,animation:!0,emptyItemUI:function(e){return s.createElement("div",null,e.message)}},t.propTypes={idField:c.string.isRequired,disabledField:c.string,data:c.array.isRequired,tabIndex:c.number,navigation:c.bool,animation:c.bool,itemUI:c.func.isRequired,emptyItemUI:c.func,style:c.object,className:c.string,onDragStart:c.func,onDragOver:c.func,onDragEnd:c.func,onNavigate:c.func},t}(s.Component);t.Sortable=y,m.registerForLocalization(y)},function(e,t){e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){this.prevented=!1}return e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}();t.PreventableEvent=r},function(e,t){e.exports=r},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.noData="sortable.noData",t.messages=((r={})[t.noData]="No Data",r)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6);t.find=function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return e[n]};t.findIndex=function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1};var o=function(e){return String(e).trim().split(" ")};t.toClassList=o;t.hasClasses=function(e,t){var n=o(t);return Boolean(o(e.className).find((function(e){return n.indexOf(e)>=0})))};var i=/^(?:a|input|select|option|textarea|button|object)$/i;t.isFocusable=function(e){if(e.tagName){var t=e.tagName.toLowerCase(),n=e.getAttribute("tabIndex"),r="-1"===n,o=null!==n&&!r;return i.test(t)&&(o=!e.disabled&&!r),o}return!1};t.closest=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e};var a=function(){if(!r.canUseDOM||!document.body)return!1;var e=document.createElement("div");e.style.transform="matrix(10, 0, 0, 10, 0, 0)",e.innerHTML='<div style="position: fixed; top: 10px;">child</div>',document.body.appendChild(e);var t=10!==e.children[0].getBoundingClientRect().top;return document.body.removeChild(e),t}();t.relativeContextElement=function(e){if(!e||!a)return null;for(var t=e.parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}}}])})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("prop-types"),require("react-dom"),require("@progress/kendo-react-intl")):"function"==typeof define&&define.amd?define(["react","prop-types","react-dom","@progress/kendo-react-intl"],t):"object"==typeof exports?exports.KendoReactSortable=t(require("react"),require("prop-types"),require("react-dom"),require("@progress/kendo-react-intl")):e.KendoReactSortable=t(e.React,e.PropTypes,e.ReactDOM,e.KendoReactIntl)}(window,(function(e,t,n,r){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=7)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=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])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t,n,r){var o=e.call(this)||this;return o.target=t,o.prevIndex=n,o.element=r,o}return o(t,e),t}(n(10).PreventableEvent);t.SortableOnDragStartEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t,n,r){this.target=e,this.prevIndex=t,this.nextIndex=n,this.newState=r};t.SortableOnDragOverEvent=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t,n,r){this.target=e,this.prevIndex=t,this.nextIndex=n,this.newState=r};t.SortableOnDragEndEvent=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t,n,r){this.target=e,this.prevIndex=t,this.nextIndex=n,this.newState=r};t.SortableOnNavigateEvent=r},function(e,t,n){"use strict";n.r(t),n.d(t,"classNames",(function(){return r})),n.d(t,"useAsyncFocusBlur",(function(){return E})),n.d(t,"guid",(function(){return o})),n.d(t,"Keys",(function(){return i})),n.d(t,"noop",(function(){return a})),n.d(t,"FormComponent",(function(){return u})),n.d(t,"dispatchEvent",(function(){return s})),n.d(t,"canUseDOM",(function(){return c})),n.d(t,"Draggable",(function(){return I})),n.d(t,"focusFirstFocusableChild",(function(){return w})),n.d(t,"useRtl",(function(){return O})),n.d(t,"getter",(function(){return M})),n.d(t,"setter",(function(){return T})),n.d(t,"clone",(function(){return A})),n.d(t,"cloneArray",(function(){return H})),n.d(t,"cloneValue",(function(){return K})),n.d(t,"cloneObject",(function(){return F})),n.d(t,"cloneDate",(function(){return N})),n.d(t,"getTabIndex",(function(){return U}));var r=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter((function(e){return!0!==e&&!!e})).map((function(e){return Array.isArray(e)?r.apply(void 0,e):"object"==typeof e?Object.keys(e).map((function(t,n){return e[n]||e[t]&&t||null})).filter((function(e){return null!==e})).join(" "):e})).filter((function(e){return!!e})).join(" ")},o=function(){var e,t,n="";for(e=0;e<32;e++)t=16*Math.random()|0,8!==e&&12!==e&&16!==e&&20!==e||(n+="-"),n+=(12===e?4:16===e?3&t|8:t).toString(16);return n},i={backspace:8,tab:9,enter:13,shift:16,esc:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,delete:46},a=function(){},u=function(){};function s(e,t,n,r){if(e){var o={syntheticEvent:t,nativeEvent:t.nativeEvent,target:n};e.call(void 0,Object.assign(o,r))}}var c=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),l=n(0),d=n(1),f=function(e,t){return function(n){return t(e(n))}},p=function(e,t,n){return e.addEventListener&&e.addEventListener(t,n)},v=function(e,t,n){return e&&e.removeEventListener&&e.removeEventListener(t,n)},m=function(){},g=function(e){return e.preventDefault()},h=/touch/;function b(e){return e.type.match(h)?{pageX:e.changedTouches[0].pageX,pageY:e.changedTouches[0].pageY,clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY,type:e.type,originalEvent:e,isTouch:!0}:{pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY,offsetX:e.offsetX,offsetY:e.offsetY,type:e.type,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,originalEvent:e}}var y=function(e){var t=this,n=e.press;void 0===n&&(n=m);var r=e.drag;void 0===r&&(r=m);var o=e.release;void 0===o&&(o=m);var i=e.mouseOnly;void 0===i&&(i=!1),this._pressHandler=f(b,n),this._dragHandler=f(b,r),this._releaseHandler=f(b,o),this._ignoreMouse=!1,this._mouseOnly=i,this._touchstart=function(e){1===e.touches.length&&t._pressHandler(e)},this._touchmove=function(e){1===e.touches.length&&t._dragHandler(e)},this._touchend=function(e){0===e.touches.length&&1===e.changedTouches.length&&(t._releaseHandler(e),t._ignoreMouse=!0,setTimeout(t._restoreMouse,2e3))},this._restoreMouse=function(){t._ignoreMouse=!1},this._mousedown=function(e){var n=e.which;n&&n>1||t._ignoreMouse||(p(document,"mousemove",t._mousemove),p(document,"mouseup",t._mouseup),t._pressHandler(e))},this._mousemove=function(e){t._dragHandler(e)},this._mouseup=function(e){v(document,"mousemove",t._mousemove),v(document,"mouseup",t._mouseup),t._releaseHandler(e)},this._pointerdown=function(e){e.isPrimary&&0===e.button&&(p(document,"pointermove",t._pointermove),p(document,"pointerup",t._pointerup),p(document,"pointercancel",t._pointerup),p(document,"contextmenu",g),t._pressHandler(e))},this._pointermove=function(e){e.isPrimary&&t._dragHandler(e)},this._pointerup=function(e){e.isPrimary&&(v(document,"pointermove",t._pointermove),v(document,"pointerup",t._pointerup),v(document,"pointercancel",t._pointerup),v(document,"contextmenu",g),t._releaseHandler(e))}};y.supportPointerEvent=function(){return"undefined"!=typeof window&&window.PointerEvent},y.prototype.bindTo=function(e){e!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=e,this._bindToCurrent())},y.prototype._bindToCurrent=function(){var e=this._element;this._usePointers()?p(e,"pointerdown",this._pointerdown):(p(e,"mousedown",this._mousedown),this._mouseOnly||(p(e,"touchstart",this._touchstart),p(e,"touchmove",this._touchmove),p(e,"touchend",this._touchend)))},y.prototype._unbindFromCurrent=function(){var e=this._element;if(this._usePointers())return v(e,"pointerdown",this._pointerdown),v(document,"pointermove",this._pointermove),v(document,"pointerup",this._pointerup),v(document,"contextmenu",g),void v(document,"pointercancel",this._pointerup);v(e,"mousedown",this._mousedown),this._mouseOnly||(v(e,"touchstart",this._touchstart),v(e,"touchmove",this._touchmove),v(e,"touchend",this._touchend))},y.prototype._usePointers=function(){return!this._mouseOnly&&y.supportPointerEvent()},y.prototype.destroy=function(){this._unbindFromCurrent(),this._element=null},y.default=y;var _,D=y,S=(_=function(e,t){return(_=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])})(e,t)},function(e,t){function n(){this.constructor=e}_(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),I=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.element=null,t.draggable=new D({press:function(e){t.element&&t.props.onPress&&t.props.onPress.call(void 0,{target:t,event:e,element:t.element})},drag:function(e){t.element&&t.props.onDrag&&t.props.onDrag.call(void 0,{target:t,event:e,element:t.element})},release:function(e){t.element&&t.props.onRelease&&t.props.onRelease.call(void 0,{target:t,event:e})}}),t.assingRef=function(e){t.element=e},t}return S(t,e),t.prototype.componentDidMount=function(){this.element&&this.draggable.bindTo(this.element)},t.prototype.componentWillUnmount=function(){this.draggable.destroy()},t.prototype.render=function(){return l.cloneElement(l.Children.only(this.props.children),{ref:this.assingRef})},t.propTypes={children:d.element.isRequired},t}(l.Component),w=function(e){if(e){if((e instanceof HTMLInputElement||-1!==e.tabIndex)&&e.focus)return void e.focus();var t=e.querySelector('input, [tabindex]:not([tabindex="-1"])');t&&t.focus&&t.focus()}},O=function(e,t){var n=l.useState(t),r=n[0],o=n[1];return l.useEffect((function(){if(!r&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&o(t)}}),[]),r};function E(e){var t=e.onFocus,n=e.onBlur,r=l.useRef(0),o=l.useCallback((function(e){clearTimeout(r.current),r.current=setTimeout((function(){return e()}))}),[r]);return{onFocus:l.useCallback((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];clearTimeout(r.current),t&&t.call.apply(t,[void 0].concat(e))}),[t,r]),onBlur:l.useCallback((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];o((function(){n&&n.call.apply(n,[void 0].concat(e))}))}),[o])}}var x=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;function P(e){var t=[];return e.replace(x,(function(e,n,r,o){t.push(void 0!==n?n:r||o)})),t}var C={};function M(e){if(C[e])return C[e];var t=P(e);return C[e]=function(e){for(var n=e,r=0;r<t.length&&n;r++)n=n[t[r]];return n},C[e]}C.undefined=function(){};var j={undefined:function(e){return e}},R=function(e,t){return t&&t.arrays&&!isNaN(Number(e))?[]:{}};function T(e){if(j[e])return j[e];var t=P(e);return j[e]=function(e,n,r){for(var o=e,i=t.length-1,a=0;a<i&&o;a++)o=o[t[a]]=o[t[a]]||R(t[a+1],r);o[t[i]]=n},j[e]}var N=function(e){return e?new Date(e.getTime()):null};function A(e){var t={};return F(e,t),t}function F(e,t){for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];t[n]=K(r,t[n])}}function K(e,t){if(Array.isArray(e))return H(e);if(e instanceof Date)return N(e);if(e&&"object"==typeof e){var n=t||{};return F(e,n),n}return e}function H(e){return e.map((function(e){return K(e,void 0)}))}var U=function(e,t,n){var r="string"==typeof e?parseInt(e,void 0):e;if(NaN!==r)return void 0!==r?r:t?n?void 0:-1:0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(8);t.Sortable=r.Sortable;var o=n(2);t.SortableOnDragStartEvent=o.SortableOnDragStartEvent;var i=n(3);t.SortableOnDragOverEvent=i.SortableOnDragOverEvent;var a=n(4);t.SortableOnDragEndEvent=a.SortableOnDragEndEvent;var u=n(5);t.SortableOnNavigateEvent=u.SortableOnNavigateEvent},function(e,t,n){"use strict";var r,o,i=this&&this.__extends||(r=function(e,t){return(r=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])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var u=n(0),s=n(9),c=n(1),l=n(6),d=n(2),f=n(3),p=n(4),v=n(5),m=n(11),g=n(12),h=n(13),b=((o={})["data-sortable-component"]=!0,o),y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={clientX:0,clientY:0,isDragging:!1,isDragPrevented:!1,activeId:"",dragCueWidth:0,dragCueHeight:0},t.itemRefsMap={},t.oldSizesMap={},t.animatingItemMap={},t.isUnmounted=!1,t.focusActiveId=!1,t.isKeyboardNavigated=!1,t.swapItems=function(e,t,n){var r=e[t];return e[t]=e[n],e[n]=r,t=n},t.generateNewState=function(e,n){var r=t.props.data,o=r.slice();if(e>n)for(var i=e-1;i>=n;i--){var a=r[i];t.isItemDisabled(a)||(e=t.swapItems(o,e,i))}else for(i=e+1;i<=n;i++){a=r[i];t.isItemDisabled(a)||(e=t.swapItems(o,e,i))}return o},t.closestSortableItem=function(e){for(var n=e;n;){var r=n.getAttribute("data-sortable-id");if(r&&t.itemRefsMap[r]===n)return{id:r,element:n};n=n.parentElement}return{id:"",element:null}},t.isSortable=function(e){return Boolean(e.hasAttribute("data-sortable-component"))},t.closestSortable=function(e){for(var n=e;n;){if(t.isSortable(n))return n;n=n.parentElement}return null},t.isSameSortable=function(e){return t.closestSortable(e)===t.container},t.idComparer=function(e,t){return e+""==t+""},t.findItem=function(e){var n=t.props,r=n.data,o=n.idField;if(e+"")return h.find(r,(function(n){return t.idComparer(n[o],e)}))},t.findIndex=function(e){var n=t.props,r=n.data,o=n.idField;return e+""?h.findIndex(r,(function(n){return t.idComparer(n[o],e)})):-1},t.isItemDisabled=function(e){return e&&!0===e[t.props.disabledField||""]},t.isActiveElementSortableItem=function(){return document.activeElement instanceof HTMLElement&&t.closestSortableItem(document.activeElement).element!==document.activeElement},t.widgetTarget=function(e){var n=h.closest(e,(function(e){return h.hasClasses(e,"k-widget")||t.isSortable(e)}));return n&&!t.isSortable(n)},t.allowDrag=function(e){return e.hasAttribute("data-sortable-id")||!(h.isFocusable(e)||t.widgetTarget(e))},t.onDragStart=function(e){var n=e.event,r=t.props.onDragStart,o=document.elementFromPoint(n.clientX,n.clientY),i=t.closestSortableItem(o),a=i.id,u=i.element,s=t.findItem(a);if(!a||s&&t.isItemDisabled(s)||!t.allowDrag(o)||!t.isSameSortable(o))t.setState({isDragPrevented:!0});else{n.isTouch&&n.originalEvent.preventDefault();var c=new d.SortableOnDragStartEvent(t,t.findIndex(a),o);r&&r.call(void 0,c);var l=c.isDefaultPrevented();l||(t.offsetParent=h.relativeContextElement(t.container)),t.setState({isDragPrevented:l,activeId:a,dragCueWidth:u&&u.clientWidth||0,dragCueHeight:u&&u.clientHeight||0})}},t.onDragOver=function(e){var n=e.event,r=t.props,o=r.onDragOver,i=r.data;if(n.originalEvent.preventDefault(),!t.state.isDragPrevented){var a=t.findIndex(t.state.activeId);if(-1!==a){var u=document.elementFromPoint(n.clientX,n.clientY),s=t.closestSortableItem(u),c=t.findIndex(s.id),l=i[c];if(o&&c>-1&&a!==c&&!t.isItemDisabled(l)&&!t.animatingItemMap[s.id]){var d=new f.SortableOnDragOverEvent(t,a,c,t.generateNewState(a,c));o.call(void 0,d)}var p=t.parentOffset();t.setState({clientX:n.clientX-p.left,clientY:n.clientY-p.top,isDragging:!0})}else t.resetState()}},t.onDragEnd=function(e){var n=t.isActiveElementSortableItem();if(t.state.isDragPrevented)t.resetState(n);else{var r=e.event,o=t.props,i=o.onDragEnd,a=o.data,u=document.elementFromPoint(r.clientX,r.clientY),s=t.closestSortableItem(u),c=t.findIndex(s.id),l=t.findIndex(t.state.activeId),d=t.isItemDisabled(a[c]);if((-1===c||d)&&(c=l),i){var f=new p.SortableOnDragEndEvent(t,l,c,t.generateNewState(l,c));i.call(void 0,f)}t.resetState(n)}},t.onItemBlur=function(){setTimeout((function(){t.isUnmounted||t.isActiveElementSortableItem()&&!t.state.isDragging&&t.setState({activeId:""})}))},t.onItemFocus=function(e){var n=t.closestSortableItem(e.currentTarget),r=n.id,o=n.element;!t.idComparer(r,t.state.activeId)&&t.isSameSortable(e.target)&&o===e.target&&t.setState({activeId:r})},t.onKeyDown=function(e){var n=t.props,r=n.data,o=n.idField,i=n.onNavigate,a=n.navigation,u=t.state.activeId;if(a&&u&&t.isSameSortable(e.target)){var s=t.isRtl,c=r.filter((function(e){return!t.isItemDisabled(e)})),d=h.findIndex(c,(function(e){return t.idComparer(e[o],u)})),f=c.length-1,p=d;switch(e.keyCode===l.Keys.left&&(e.keyCode=s?l.Keys.down:l.Keys.up),e.keyCode===l.Keys.right&&(e.keyCode=s?l.Keys.up:l.Keys.down),e.keyCode){case l.Keys.up:d>0&&(p=d-1);break;case l.Keys.down:d<f&&(p=d+1)}if(p!==d){e.stopPropagation(),e.preventDefault();var m=c[p],g=m?m[o]:"",b=c[d],y=b?b[o]:"";if(e.ctrlKey){if(i){var _=t.findIndex(y),D=t.findIndex(g),S=new v.SortableOnNavigateEvent(t,_,D,t.generateNewState(_,D));t.isKeyboardNavigated=!0,i.call(void 0,S)}}else t.focusActiveId=!0,t.setState({activeId:g+""})}}},t.resetState=function(e){t.setState({clientX:0,clientY:0,isDragging:!1,isDragPrevented:!1,dragCueWidth:0,dragCueHeight:0,activeId:e?"":t.state.activeId})},t.renderData=function(){var e=t.props,n=e.data,r=e.itemUI,o=e.idField,i=e.tabIndex;return n.map((function(e){var n,a=e[o],s=t.isItemDisabled(e),c=t.idComparer(t.state.activeId,a);return u.createElement(r,{key:a,forwardRef:function(e){return t.refAssign(e,a)},dataItem:e,isDisabled:s,isActive:c,isDragged:c&&t.state.isDragging,isDragCue:!1,attributes:(n={},n["data-sortable-id"]=a,n["aria-disabled"]=s,n["aria-grabbed"]=c&&t.state.isDragging&&!t.state.isDragPrevented,n["aria-dropeffect"]=s?"none":"move",n.tabIndex=l.getTabIndex(i,s),n.onFocus=t.onItemFocus,n.onBlur=t.onItemBlur,n),style:{cursor:s?"auto":"move",MozUserSelect:"none",msUserSelect:"none",WebkitUserSelect:"none",userSelect:"none"}})}))},t.renderNoData=function(){var e=t.props.emptyItemUI,n=m.provideLocalizationService(t).toLanguageString(g.noData,g.messages[g.noData]);if(e)return u.createElement(e,{message:n})},t.renderDragCue=function(){var e=t.props.itemUI,n=t.state,r=n.isDragging,o=n.activeId,i=n.clientX,a=n.clientY,s=t.findItem(o);if(r&&s)return u.createElement(e,{dataItem:s,isDisabled:!1,isActive:!0,isDragged:!0,isDragCue:!0,style:{position:"fixed",top:a+10,left:i+10,width:t.state.dragCueWidth,height:t.state.dragCueHeight},attributes:{}})},t.refAssign=function(e,n){e?t.itemRefsMap[n]=e:delete t.itemRefsMap[n]},t.draggableRefAssign=function(e){t.draggableRef=e},t}return i(t,e),Object.defineProperty(t.prototype,"container",{get:function(){return this.draggableRef&&this.draggableRef.element},enumerable:!0,configurable:!0}),t.prototype.getSnapshotBeforeUpdate=function(){var e=this,t=this.props,n=t.idField,r=t.animation;return this.oldSizesMap={},r?(this.props.data.forEach((function(t){var r=t[n],o=e.itemRefsMap[r],i=s.findDOMNode(o);i&&(e.oldSizesMap[r]=i.getBoundingClientRect())})),null):null},t.prototype.componentDidUpdate=function(e){var t=this,n=this.props,r=n.idField,o=n.animation;this.focusActiveId&&(this.focusActiveId=!1,this.itemRefsMap[this.state.activeId].focus()),o&&(this.state.isDragging||this.isKeyboardNavigated)&&(this.isKeyboardNavigated=!1,e.data.forEach((function(e){var n=e[r],o=t.itemRefsMap[n],i=o.getBoundingClientRect(),a=t.oldSizesMap[n],u=a.left-i.left,s=a.top-i.top;0===u&&0===s||requestAnimationFrame((function(){t.animatingItemMap[n]=!0,o.style.transform="translate("+u+"px, "+s+"px)",o.style.transition="transform 0s",requestAnimationFrame((function(){o.style.transform="",o.style.transition="transform 200ms cubic-bezier(0.2, 0, 0, 1) 0s",setTimeout((function(){return t.animatingItemMap[n]=!1}),200)}))}))})))},t.prototype.componentDidMount=function(){this.isRtl=this.container&&"rtl"===getComputedStyle(this.container).direction||!1},t.prototype.componentWillUnmount=function(){this.isUnmounted=!0},t.prototype.parentOffset=function(){var e=this.offsetParent;if(e&&e.ownerDocument&&e!==e.ownerDocument.body){var t=e.getBoundingClientRect();return{left:t.left-e.scrollLeft,top:t.top-e.scrollTop}}return{left:0,top:0}},t.prototype.render=function(){var e=this.props,t=e.data,n=e.style,r=e.className;return u.createElement(l.Draggable,{onPress:this.onDragStart,onDrag:this.onDragOver,onRelease:this.onDragEnd,ref:this.draggableRefAssign},u.createElement("div",a({},b,{className:r,style:a({touchAction:"none"},n),onKeyDown:this.onKeyDown}),t&&t.length?this.renderData():this.renderNoData(),this.renderDragCue()))},t.defaultProps={navigation:!0,animation:!0,emptyItemUI:function(e){return u.createElement("div",null,e.message)}},t.propTypes={idField:c.string.isRequired,disabledField:c.string,data:c.array.isRequired,tabIndex:c.number,navigation:c.bool,animation:c.bool,itemUI:c.func.isRequired,emptyItemUI:c.func,style:c.object,className:c.string,onDragStart:c.func,onDragOver:c.func,onDragEnd:c.func,onNavigate:c.func},t}(u.Component);t.Sortable=y,m.registerForLocalization(y)},function(e,t){e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){this.prevented=!1}return e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}();t.PreventableEvent=r},function(e,t){e.exports=r},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.noData="sortable.noData",t.messages=((r={})[t.noData]="No Data",r)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6);t.find=function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return e[n]};t.findIndex=function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1};var o=function(e){return String(e).trim().split(" ")};t.toClassList=o;t.hasClasses=function(e,t){var n=o(t);return Boolean(o(e.className).find((function(e){return n.indexOf(e)>=0})))};var i=/^(?:a|input|select|option|textarea|button|object)$/i;t.isFocusable=function(e){if(e.tagName){var t=e.tagName.toLowerCase(),n=e.getAttribute("tabIndex"),r="-1"===n,o=null!==n&&!r;return i.test(t)&&(o=!e.disabled&&!r),o}return!1};t.closest=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e};var a=function(){if(!r.canUseDOM||!document.body)return!1;var e=document.createElement("div");e.style.transform="matrix(10, 0, 0, 10, 0, 0)",e.innerHTML='<div style="position: fixed; top: 10px;">child</div>',document.body.appendChild(e);var t=10!==e.children[0].getBoundingClientRect().top;return document.body.removeChild(e),t}();t.relativeContextElement=function(e){if(!e||!a)return null;for(var t=e.parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}}}])})); |
@@ -1,1 +0,1 @@ | ||
System.register("@progress/kendo-react-sortable",["react","react-dom","@progress/kendo-react-common","prop-types"],function(u){var i,o,s,l;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){i=t(e)},function(e){o=t(e)},function(e){s=t(e)},function(e){l=t(e)}],execute:function(){function a(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,a),t.l=!0,t.exports}var n,r;r={},a.m=n=[function(e,t){e.exports=i},function(e,t){e.exports=l},function(e,t){e.exports=s},function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return(r=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])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i,o=(i=n(10).PreventableEvent,a(s,i),s);function s(e,t,n){var r=i.call(this)||this;return r.target=e,r.prevIndex=t,r.element=n,r}t.SortableOnDragStartEvent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.SortableOnDragOverEvent=function(e,t,n,r){this.target=e,this.prevIndex=t,this.nextIndex=n,this.newState=r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.SortableOnDragEndEvent=function(e,t,n,r){this.target=e,this.prevIndex=t,this.nextIndex=n,this.newState=r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.SortableOnNavigateEvent=function(e,t,n,r){this.target=e,this.prevIndex=t,this.nextIndex=n,this.newState=r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(8);t.Sortable=r.Sortable;var a=n(3);t.SortableOnDragStartEvent=a.SortableOnDragStartEvent;var i=n(4);t.SortableOnDragOverEvent=i.SortableOnDragOverEvent;var o=n(5);t.SortableOnDragEndEvent=o.SortableOnDragEndEvent;var s=n(6);t.SortableOnNavigateEvent=s.SortableOnNavigateEvent,function(e){for(var t in e)u(t,e[t])}(t)},function(e,t,n){"use strict";var r,a,i=this&&this.__extends||(r=function(e,t){return(r=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])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var s,u=n(0),l=n(9),c=n(1),b=n(2),d=n(3),m=n(4),f=n(5),S=n(6),p=n(13),v=n(11),D=n(12),y=((a={})["data-sortable-component"]=!0,a),g=(s=u.Component,i(h,s),Object.defineProperty(h.prototype,"container",{get:function(){return this.draggableRef&&this.draggableRef.element},enumerable:!0,configurable:!0}),h.prototype.getSnapshotBeforeUpdate=function(){var a=this,e=this.props,i=e.idField,t=e.animation;return this.oldSizesMap={},t&&this.props.data.forEach(function(e){var t=e[i],n=a.itemRefsMap[t],r=l.findDOMNode(n);r&&(a.oldSizesMap[t]=r.getBoundingClientRect())}),null},h.prototype.componentDidUpdate=function(e){var s=this,t=this.props,u=t.idField,n=t.animation;this.focusActiveId&&(this.focusActiveId=!1,this.itemRefsMap[this.state.activeId].focus()),n&&(this.state.isDragging||this.isKeyboardNavigated)&&(this.isKeyboardNavigated=!1,e.data.forEach(function(e){var t=e[u],n=s.itemRefsMap[t],r=n.getBoundingClientRect(),a=s.oldSizesMap[t],i=a.left-r.left,o=a.top-r.top;0==i&&0==o||requestAnimationFrame(function(){s.animatingItemMap[t]=!0,n.style.transform="translate("+i+"px, "+o+"px)",n.style.transition="transform 0s",requestAnimationFrame(function(){n.style.transform="",n.style.transition="transform 200ms cubic-bezier(0.2, 0, 0, 1) 0s",setTimeout(function(){return s.animatingItemMap[t]=!1},200)})})}))},h.prototype.componentDidMount=function(){this.isRtl=this.container&&"rtl"===getComputedStyle(this.container).direction||!1},h.prototype.componentWillUnmount=function(){this.isUnmounted=!0},h.prototype.parentOffset=function(){var e=this.offsetParent;if(e&&e.ownerDocument&&e!==e.ownerDocument.body){var t=e.getBoundingClientRect();return{left:t.left-e.scrollLeft,top:t.top-e.scrollTop}}return{left:0,top:0}},h.prototype.render=function(){var e=this.props,t=e.data,n=e.style,r=e.className;return u.createElement(b.Draggable,{onPress:this.onDragStart,onDrag:this.onDragOver,onRelease:this.onDragEnd,ref:this.draggableRefAssign},u.createElement("div",o({},y,{className:r,style:o({touchAction:"none"},n),onKeyDown:this.onKeyDown}),t&&t.length?this.renderData():this.renderNoData(),this.renderDragCue()))},h.defaultProps={navigation:!0,animation:!0,emptyItemUI:function(e){return u.createElement("div",null,e.message)}},h.propTypes={idField:c.string.isRequired,disabledField:c.string,data:c.array.isRequired,tabIndex:c.number,navigation:c.bool,animation:c.bool,itemUI:c.func.isRequired,emptyItemUI:c.func,style:c.object,className:c.string,onDragStart:c.func,onDragOver:c.func,onDragEnd:c.func,onNavigate:c.func},h);function h(){var M=null!==s&&s.apply(this,arguments)||this;return M.state={clientX:0,clientY:0,isDragging:!1,isDragPrevented:!1,activeId:"",dragCueWidth:0,dragCueHeight:0},M.itemRefsMap={},M.oldSizesMap={},M.animatingItemMap={},M.isUnmounted=!1,M.focusActiveId=!1,M.isKeyboardNavigated=!1,M.swapItems=function(e,t,n){var r=e[t];return e[t]=e[n],e[n]=r,n},M.generateNewState=function(e,t){var n=M.props.data,r=n.slice();if(t<e)for(var a=e-1;t<=a;a--){var i=n[a];M.isItemDisabled(i)||(e=M.swapItems(r,e,a))}else for(a=e+1;a<=t;a++)i=n[a],M.isItemDisabled(i)||(e=M.swapItems(r,e,a));return r},M.closestSortableItem=function(e){for(var t=e;t;){var n=t.getAttribute("data-sortable-id");if(n&&M.itemRefsMap[n]===t)return{id:n,element:t};t=t.parentElement}return{id:"",element:null}},M.isSortable=function(e){return Boolean(e.hasAttribute("data-sortable-component"))},M.closestSortable=function(e){for(var t=e;t;){if(M.isSortable(t))return t;t=t.parentElement}return null},M.isSameSortable=function(e){return M.closestSortable(e)===M.container},M.idComparer=function(e,t){return e+""==t+""},M.findItem=function(t){var e=M.props,n=e.data,r=e.idField;if(t+"")return D.find(n,function(e){return M.idComparer(e[r],t)})},M.findIndex=function(t){var e=M.props,n=e.data,r=e.idField;return t+""?D.findIndex(n,function(e){return M.idComparer(e[r],t)}):-1},M.isItemDisabled=function(e){return e&&!0===e[M.props.disabledField||""]},M.isActiveElementSortableItem=function(){return document.activeElement instanceof HTMLElement&&M.closestSortableItem(document.activeElement).element!==document.activeElement},M.widgetTarget=function(e){var t=D.closest(e,function(e){return D.hasClasses(e,"k-widget")||M.isSortable(e)});return t&&!M.isSortable(t)},M.allowDrag=function(e){return e.hasAttribute("data-sortable-id")||!(D.isFocusable(e)||M.widgetTarget(e))},M.onDragStart=function(e){var t=e.event,n=M.props.onDragStart,r=document.elementFromPoint(t.clientX,t.clientY),a=M.closestSortableItem(r),i=a.id,o=a.element,s=M.findItem(i);if(!i||s&&M.isItemDisabled(s)||!M.allowDrag(r)||!M.isSameSortable(r))M.setState({isDragPrevented:!0});else{t.isTouch&&t.originalEvent.preventDefault();var u=new d.SortableOnDragStartEvent(M,M.findIndex(i),r);n&&n.call(void 0,u);var l=u.isDefaultPrevented();l||(M.offsetParent=D.relativeContextElement(M.container)),M.setState({isDragPrevented:l,activeId:i,dragCueWidth:o&&o.clientWidth||0,dragCueHeight:o&&o.clientHeight||0})}},M.onDragOver=function(e){var t=e.event,n=M.props,r=n.onDragOver,a=n.data;if(t.originalEvent.preventDefault(),!M.state.isDragPrevented){var i=M.findIndex(M.state.activeId);if(-1!==i){var o=document.elementFromPoint(t.clientX,t.clientY),s=M.closestSortableItem(o),u=M.findIndex(s.id),l=a[u];if(r&&-1<u&&i!==u&&!M.isItemDisabled(l)&&!M.animatingItemMap[s.id]){var c=new m.SortableOnDragOverEvent(M,i,u,M.generateNewState(i,u));r.call(void 0,c)}var d=M.parentOffset();M.setState({clientX:t.clientX-d.left,clientY:t.clientY-d.top,isDragging:!0})}else M.resetState()}},M.onDragEnd=function(e){var t=M.isActiveElementSortableItem();if(M.state.isDragPrevented)M.resetState(t);else{var n=e.event,r=M.props,a=r.onDragEnd,i=r.data,o=document.elementFromPoint(n.clientX,n.clientY),s=M.closestSortableItem(o),u=M.findIndex(s.id),l=M.findIndex(M.state.activeId),c=M.isItemDisabled(i[u]);if(-1!==u&&!c||(u=l),a){var d=new f.SortableOnDragEndEvent(M,l,u,M.generateNewState(l,u));a.call(void 0,d)}M.resetState(t)}},M.onItemBlur=function(){setTimeout(function(){M.isUnmounted||M.isActiveElementSortableItem()&&!M.state.isDragging&&M.setState({activeId:""})})},M.onItemFocus=function(e){var t=M.closestSortableItem(e.currentTarget),n=t.id,r=t.element;!M.idComparer(n,M.state.activeId)&&M.isSameSortable(e.target)&&r===e.target&&M.setState({activeId:n})},M.onKeyDown=function(e){var t=M.props,n=t.data,r=t.idField,a=t.onNavigate,i=t.navigation,o=M.state.activeId;if(i&&o&&M.isSameSortable(e.target)){var s=M.isRtl,u=n.filter(function(e){return!M.isItemDisabled(e)}),l=D.findIndex(u,function(e){return M.idComparer(e[r],o)}),c=u.length-1,d=l;switch(e.keyCode===b.Keys.left&&(e.keyCode=s?b.Keys.down:b.Keys.up),e.keyCode===b.Keys.right&&(e.keyCode=s?b.Keys.up:b.Keys.down),e.keyCode){case b.Keys.up:0<l&&(d=l-1);break;case b.Keys.down:l<c&&(d=l+1)}if(d!==l){e.stopPropagation(),e.preventDefault();var m=u[d],f=m?m[r]:"",p=u[l],v=p?p[r]:"";if(e.ctrlKey){if(a){var y=M.findIndex(v),g=M.findIndex(f),h=new S.SortableOnNavigateEvent(M,y,g,M.generateNewState(y,g));M.isKeyboardNavigated=!0,a.call(void 0,h)}}else M.focusActiveId=!0,M.setState({activeId:f+""})}}},M.resetState=function(e){M.setState({clientX:0,clientY:0,isDragging:!1,isDragPrevented:!1,dragCueWidth:0,dragCueHeight:0,activeId:e?"":M.state.activeId})},M.renderData=function(){var e=M.props,t=e.data,i=e.itemUI,o=e.idField,s=e.tabIndex;return t.map(function(e){var t,n=e[o],r=M.isItemDisabled(e),a=M.idComparer(M.state.activeId,n);return u.createElement(i,{key:n,forwardRef:function(e){return M.refAssign(e,n)},dataItem:e,isDisabled:r,isActive:a,isDragged:a&&M.state.isDragging,isDragCue:!1,attributes:((t={})["data-sortable-id"]=n,t["aria-disabled"]=r,t["aria-grabbed"]=a&&M.state.isDragging&&!M.state.isDragPrevented,t["aria-dropeffect"]=r?"none":"move",t.tabIndex=b.getTabIndex(s,r),t.onFocus=M.onItemFocus,t.onBlur=M.onItemBlur,t),style:{cursor:r?"auto":"move",MozUserSelect:"none",msUserSelect:"none",WebkitUserSelect:"none",userSelect:"none"}})})},M.renderNoData=function(){var e=M.props.emptyItemUI,t=p.provideLocalizationService(M).toLanguageString(v.noData,v.messages[v.noData]);if(e)return u.createElement(e,{message:t})},M.renderDragCue=function(){var e=M.props.itemUI,t=M.state,n=t.isDragging,r=t.activeId,a=t.clientX,i=t.clientY,o=M.findItem(r);if(n&&o)return u.createElement(e,{dataItem:o,isDisabled:!1,isActive:!0,isDragged:!0,isDragCue:!0,style:{position:"fixed",top:i+10,left:a+10,width:M.state.dragCueWidth,height:M.state.dragCueHeight},attributes:{}})},M.refAssign=function(e,t){e?M.itemRefsMap[t]=e:delete M.itemRefsMap[t]},M.draggableRefAssign=function(e){M.draggableRef=e},M}t.Sortable=g,p.registerForLocalization(g)},function(e,t){e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(a.prototype.preventDefault=function(){this.prevented=!0},a.prototype.isDefaultPrevented=function(){return this.prevented},a);function a(){this.prevented=!1}t.PreventableEvent=r},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.noData="sortable.noData",t.messages=((r={})[t.noData]="No Data",r)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2);t.find=function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return e[n]},t.findIndex=function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1};function a(e){return String(e).trim().split(" ")}t.toClassList=a,t.hasClasses=function(e,t){var n=a(t);return Boolean(a(e.className).find(function(e){return 0<=n.indexOf(e)}))};var i=/^(?:a|input|select|option|textarea|button|object)$/i;t.isFocusable=function(e){if(e.tagName){var t=e.tagName.toLowerCase(),n=e.getAttribute("tabIndex"),r="-1"===n,a=null!==n&&!r;return i.test(t)&&(a=!e.disabled&&!r),a}return!1},t.closest=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e};var o=function(){if(!r.canUseDOM||!document.body)return!1;var e=document.createElement("div");e.style.transform="matrix(10, 0, 0, 10, 0, 0)",e.innerHTML='<div style="position: fixed; top: 10px;">child</div>',document.body.appendChild(e);var t=10!==e.children[0].getBoundingClientRect().top;return document.body.removeChild(e),t}();t.relativeContextElement=function(e){if(!e||!o)return null;for(var t=e.parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}}},function(e,t,n){"use strict";n.r(t),n.d(t,"IntlProvider",function(){return Mt}),n.d(t,"IntlService",function(){return yt}),n.d(t,"loadMessages",function(){return xt}),n.d(t,"LocalizationProvider",function(){return Ct}),n.d(t,"LocalizationService",function(){return Ot}),n.d(t,"load",function(){return T}),n.d(t,"provideIntlService",function(){return kt}),n.d(t,"provideLocalizationService",function(){return _t}),n.d(t,"registerForIntl",function(){return Pt}),n.d(t,"registerForLocalization",function(){return At}),n.d(t,"useInternationalization",function(){return zt}),n.d(t,"useLocalization",function(){return Lt});var r=n(0),a=n(1);function f(e){return"string"==typeof e}function i(e){var t=e.name,n=e.message;if(!t||!n)throw new Error("{ name: string, message: string } object is required!");this.name=t,this.message=n}var o=/\{(\d+)}?\}/g;i.prototype.formatMessage=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=u(e),r=this.message.replace(o,function(e,t){return n[parseInt(t,10)]});return this.name+": "+r},i.prototype.error=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new Error(this.formatMessage(e))};var s,u=function(e){return e.reduce(function(e,t){return e.concat(t)},[])},p=(s={NoLocale:"Missing locale info for '{0}'",NoCurrency:"Cannot determine currency information. Please load the locale currencies data.",NoSupplementalCurrency:"Cannot determine currency. Please load the supplemental currencyData.",NoCurrencyRegion:"No currency data for region '{0}'",NoCurrencyDisplay:"Cannot determine currency display information. Please load the locale currencies data. The default culture does not include the all currencies data.",NoGMTInfo:"Cannot determine locale GMT format. Please load the locale timeZoneNames data.",NoWeekData:"Cannot determine locale first day of week. Please load the supplemental weekData.",NoFirstDay:"Cannot determine locale first day of week. Please load the supplemental weekData. The default culture includes only the 'en-US' first day info.",NoValidCurrency:"Cannot determine a default currency for the {0} locale. Please specify explicitly the currency with the format options.",NoDateFieldNames:"Cannot determine the locale date field names. Please load the locale dateFields data."},Object.keys(s).reduce(function(e,t){return e[t]=new i({name:t,message:s[t]}),e},{})),C={en:{name:"en",identity:{version:{_number:"$Revision: 12418 $",_cldrVersion:"29"},language:"en"},territory:"US",numbers:{symbols:{decimal:".",group:",",list:";",percentSign:"%",plusSign:"+",minusSign:"-",exponential:"E",superscriptingExponent:"×",perMille:"‰",infinity:"∞",nan:"NaN",timeSeparator:":"},decimal:{patterns:["n"],groupSize:[3]},scientific:{patterns:["nEn"],groupSize:[]},percent:{patterns:["n%"],groupSize:[3]},currency:{patterns:["$n"],groupSize:[3],"unitPattern-count-one":"n $","unitPattern-count-other":"n $"},currencies:{BGN:{displayName:"Bulgarian Lev","displayName-count-one":"Bulgarian lev","displayName-count-other":"Bulgarian leva",symbol:"BGN"},EUR:{displayName:"Euro","displayName-count-one":"euro","displayName-count-other":"euros",symbol:"€","symbol-alt-narrow":"€"},USD:{displayName:"US Dollar","displayName-count-one":"US dollar","displayName-count-other":"US dollars",symbol:"$","symbol-alt-narrow":"$"}},localeCurrency:"USD",accounting:{patterns:["$n","($n)"],groupSize:[3]}},calendar:{gmtFormat:"GMT{0}",gmtZeroFormat:"GMT",patterns:{d:"M/d/y",D:"EEEE, MMMM d, y",m:"MMM d",M:"MMMM d",y:"MMM y",Y:"MMMM y",F:"EEEE, MMMM d, y h:mm:ss a",g:"M/d/y h:mm a",G:"M/d/y h:mm:ss a",t:"h:mm a",T:"h:mm:ss a",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'"},dateTimeFormats:{full:"{1} 'at' {0}",long:"{1} 'at' {0}",medium:"{1}, {0}",short:"{1}, {0}",availableFormats:{Bh:"h B",Bhm:"h:mm B",Bhms:"h:mm:ss B",d:"d",E:"ccc",EBhm:"E h:mm B",EBhms:"E h:mm:ss B",Ed:"d E",Ehm:"E h:mm a",EHm:"E HH:mm",Ehms:"E h:mm:ss a",EHms:"E HH:mm:ss",Gy:"y G",GyMMM:"MMM y G",GyMMMd:"MMM d, y G",GyMMMEd:"E, MMM d, y G",h:"h a",H:"HH",hm:"h:mm a",Hm:"HH:mm",hms:"h:mm:ss a",Hms:"HH:mm:ss",hmsv:"h:mm:ss a v",Hmsv:"HH:mm:ss v",hmv:"h:mm a v",Hmv:"HH:mm v",M:"L",Md:"M/d",MEd:"E, M/d",MMM:"LLL",MMMd:"MMM d",MMMEd:"E, MMM d",MMMMd:"MMMM d","MMMMW-count-one":"'week' W 'of' MMMM","MMMMW-count-other":"'week' W 'of' MMMM",ms:"mm:ss",y:"y",yM:"M/y",yMd:"M/d/y",yMEd:"E, M/d/y",yMMM:"MMM y",yMMMd:"MMM d, y",yMMMEd:"E, MMM d, y",yMMMM:"MMMM y",yQQQ:"QQQ y",yQQQQ:"QQQQ y","yw-count-one":"'week' w 'of' Y","yw-count-other":"'week' w 'of' Y"}},timeFormats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateFormats:{full:"EEEE, MMMM d, y",long:"MMMM d, y",medium:"MMM d, y",short:"M/d/yy"},days:{format:{abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},"stand-alone":{abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]}},months:{format:{abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},"stand-alone":{abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]}},quarters:{format:{abbreviated:["Q1","Q2","Q3","Q4"],narrow:["1","2","3","4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},"stand-alone":{abbreviated:["Q1","Q2","Q3","Q4"],narrow:["1","2","3","4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]}},dayPeriods:{format:{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},narrow:{midnight:"mi",am:"a","am-alt-variant":"am",noon:"n",pm:"p","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"}},"stand-alone":{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"},narrow:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"}}},eras:{format:{wide:{0:"Before Christ",1:"Anno Domini","0-alt-variant":"Before Common Era","1-alt-variant":"Common Era"},abbreviated:{0:"BC",1:"AD","0-alt-variant":"BCE","1-alt-variant":"CE"},narrow:{0:"B",1:"A","0-alt-variant":"BCE","1-alt-variant":"CE"}}},dateFields:{era:{wide:"era"},year:{wide:"year",short:"yr.",narrow:"yr."},quarter:{wide:"quarter",short:"qtr.",narrow:"qtr."},month:{wide:"month",short:"mo.",narrow:"mo."},week:{wide:"week",short:"wk.",narrow:"wk."},day:{wide:"day",short:"day",narrow:"day"},weekday:{wide:"day of the week"},dayperiod:{wide:"AM/PM"},hour:{wide:"hour",short:"hr.",narrow:"hr."},minute:{wide:"minute",short:"min.",narrow:"min."},second:{wide:"second",short:"sec.",narrow:"sec."},zone:{wide:"time zone"}}}},supplemental:{likelySubtags:{en:"en-Latn-US"},currencyData:{region:{US:[{USD:{_from:"1792-01-01"}}]}},weekData:{firstDay:{US:"sun"},weekendStart:{"001":"sat"},weekendEnd:{"001":"sun"}}}};function d(e){return f(e)?v(e):e}function v(e){if(C[e])return C[e];if(C.supplemental.likelySubtags){var t=e.split("-"),n=t[0],r=t.slice(1),a=function(e,t){for(var n=C.supplemental.likelySubtags,r=0;r<t.length;r++){var a=n[e+"-"+t[r]];if(a)return a}if(n[e])return n[e]}(n,r),i=a?(s=r,u=(o=a).split("-"),l=u[0],c=u[1],d=u[2],C[o]||-1!==s.indexOf(d)&&C[l+"-"+d]||-1!==s.indexOf(c)&&C[l+"-"+c]||C[l]):null;if(i)return i}var o,s,u,l,c,d;throw p.NoLocale.error(e)}var l=/([#,0.]+)/g,c=/¤/g;function m(e){return l.lastIndex=0,e.replace(c,"$").replace(l,"n").split(";")}function y(e){return l.lastIndex=0,l.exec(e.split(";")[0])[0].split(".")[0].split(",").slice(1).map(function(e){return e.length}).reverse()}function g(e,t){for(var n in t)n.startsWith("unitPattern")&&(e[n]=t[n].replace("{0}","n").replace("{1}","$"))}function h(e,t){var n=C[e],r=n.numbers=n.numbers||{};for(var a in r.symbols=r.symbols||{},t)if("symbols-numberSystem-latn"===a)Object.assign(r.symbols,t[a]);else if(a.includes("Formats-numberSystem-latn")){var i=a.substr(0,a.indexOf("Formats-numberSystem-latn")),o=t[a].standard;r[i]={patterns:m(o)},"currency"===i?(r[i].groupSize=y((t["decimalFormats-numberSystem-latn"]||t[a]).standard),g(r[i],t[a]),r.accounting={patterns:m(t[a].accounting),groupSize:r[i].groupSize}):r[i].groupSize=y(o)}else"currencies"===a&&(r.currencies=t[a])}var M={s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'"},b=/y+/g,S=[["dateFormats","short"]],D={D:[["dateFormats","full"]],m:[["dateTimeFormats","availableFormats","MMMd"]],M:[["dateTimeFormats","availableFormats","MMMMd"]],y:[["dateTimeFormats","availableFormats","yMMM"]],Y:[["dateTimeFormats","availableFormats","yMMMM"]],F:[["dateFormats","full"],["timeFormats","medium"]],g:[["dateTimeFormats","availableFormats","yMd"],["timeFormats","short"]],G:[["dateTimeFormats","availableFormats","yMd"],["timeFormats","medium"]],t:[["timeFormats","short"]],T:[["timeFormats","medium"]]};function w(e){for(var t=[],n=Object.getOwnPropertyNames(e),r=0;r<n.length;r++){var a=e[n[r]];t.push(a)}return t}function x(e,t){var n={};for(var r in e){var a=n[r]={};for(var i in e[r]){var o=e[r][i];a[i]=t?o:w(o)}}return n}function I(e,t){var n=C[e].calendar,r={};for(var a in t){var i=a.split("-"),o=i[0],s=i[1];void 0===s&&(s="wide");var u=r[o]||{},l=t[a].displayName;l&&(u[s]=l,r[o]=u)}n.dateFields=r}function F(e,t){for(var n=[],r=0;r<e.length;r++){for(var a=e[r],i=t,o=0;o<a.length;o++)i=i[a[o]];n.push(i)}return n.join(" ")}function O(e,t){var n=C[e].calendar,r=n.patterns={};for(var a in r.d=F(S,t).replace(b,"y"),D)r[a]=F(D[a],t);for(var i in M)r[i]=M[i];var o=t.dateTimeFormats;n.dateTimeFormats={full:o.full,long:o.long,medium:o.medium,short:o.short,availableFormats:o.availableFormats},n.timeFormats=t.timeFormats,n.dateFormats=t.dateFormats}function E(e,t){var n,r,a,i=C[e].calendar=C[e].calendar||{};for(var o in t)"timeZoneNames"===o?(i.gmtFormat=t[o].gmtFormat,i.gmtZeroFormat=t[o].gmtZeroFormat):"calendars"===o&&t[o].gregorian?(O(e,t[o].gregorian),n=e,r=t[o].gregorian,a=void 0,(a=C[n].calendar).days=x(r.days),a.months=x(r.months),a.quarters=x(r.quarters),a.dayPeriods=x(r.dayPeriods,!0),a.eras=function(e){var t={},n=t.format={},r={eraAbbr:"abbreviated",eraNames:"wide",eraNarrow:"narrow"};for(var a in e)n[r[a]]=e[a];return t}(r.eras)):"fields"===o&&I(e,t.fields)}function N(e){if(e.territory)return e.territory;var t,n=e.name,r=e.identity;return t=r&&r.territory?r.territory:function(e,t){var n=C.supplemental.likelySubtags,r=e.split("-");if(n){var a=n[e]||n[r[0]];a&&(r=a.split("-"))}if(t)for(var i=r.length-1;1<=i;i--){var o=r[i];o!==t.variant&&o!==t.script||r.splice(i,1)}var s=r.length;if(1<s)return r[s-1].toUpperCase()}(n,r),e.territory=t}function H(e,t){for(var n in t)"numbers"===n?h(e,t[n]):"dates"===n&&E(e,t[n])}function T(){for(var e=arguments,t=arguments.length,n=0;n<t;n++){var r=e[n];if(r.main){var a=Object.keys(r.main)[0],i=r.main[a],o=C[a]=C[a]||{};o.name=o.name||a,o.identity=o.identity||i.identity,N(o),H(a,i)}else if(r.supplemental)if(r.supplemental.weekData)C.supplemental.weekData={firstDay:r.supplemental.weekData.firstDay,weekendStart:r.supplemental.weekData.weekendStart,weekendEnd:r.supplemental.weekData.weekendEnd};else if(r.supplemental.likelySubtags)C.supplemental.likelySubtags=Object.assign(C.supplemental.likelySubtags,r.supplemental.likelySubtags);else if(r.supplemental.currencyData){var s=C.supplemental.currencyData;s.region=Object.assign(s.region||{},r.supplemental.currencyData.region),s.fractions=Object.assign(s.fractions||{},r.supplemental.currencyData.fractions)}}}function k(e,t){var n,r=t.type,a=t.nameType,i=t.standAlone,o=t.lower,s=i?"stand-alone":"format",u=(o?"lower-":"")+a,l=d(e).calendar[r][s],c=l[u];return!c&&o&&(c=l[u]=(n=l[a],(Array.isArray(n)?function(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].toLowerCase());return t}:function(e){var t={};for(var n in e)t[n]=e[n].toLowerCase();return t})(n))),c}function _(e){var t=e.split("-"),n=parseInt(t[0],10),r=parseInt(t[1],10)-1,a=parseInt(t[2],10);return new Date(n,r,a)}var P=p.NoCurrency,A=p.NoCurrencyDisplay,z=p.NoSupplementalCurrency,L=p.NoCurrencyRegion,j=p.NoValidCurrency,U={"001":"USD",150:"EUR"};function X(e,t,n){var r=d(e).numbers.currencies;if(r){var a=r[t];if(a)return a;if(n)throw A.error()}else if(n)throw P.error()}function B(e,t){return t.length-e.length}function q(e,t){var n=d(e),r=n.numbers;if(!r.localeCurrency){var a=function(e,t){if(void 0===t&&(t=!0),U[e])return U[e];var n=C.supplemental.currencyData;if(n){var r=n.region[e];if(r)return function(e){for(var t,n,r,a,i=0;i<e.length;i++){var o=e[i],s=Object.keys(o)[0],u=o[s];if("XXX"!==s&&"false"!==u._tender&&u._from)if(u._to){if(!r){var l=_(u._from),c=_(u._to);(!n||n.to<c||n.from<l)&&(t=s,n={from:l,to:c})}}else{var d=_(u._from);(!a||a<d)&&(r=s,a=d)}}return r||t}(r);if(t)throw L.error(e)}else if(t)throw z.error()}(N(n),t);if(!a&&t)throw j.error(n.name);r.localeCurrency=a}return r.localeCurrency}var R=["sun","mon","tue","wed","thu","fri","sat"],G=p.NoWeekData,Z=p.NoFirstDay;function Q(e){var t=d(e);if(!isNaN(t.firstDay))return t.firstDay;var n=C.supplemental.weekData;if(!n)throw G.error();var r=n.firstDay[N(t)]||n.firstDay["001"];if(!r)throw Z.error();return t.firstDay=R.indexOf(r),t.firstDay}function W(e){return 1/e==-1/0}function $(e,i){return void 0===i&&(i={}),i.currency||(i.currency=q(e,!0)),function(e){var t=i.value,n=i.currency,r=i.currencyDisplay;if(void 0===r&&(r="symbol"),"code"===r)return n;var a=X(e,n,!0);return"symbol"===r?a["symbol-alt-narrow"]||a.symbol:1!==t?a["displayName-count-other"]:a["displayName-count-one"]}(e)}function K(e,t,n,r,a){var i=a.numbers.symbols,o=e.indexOf(i.decimal),s=r.groupSize.slice(),u=s.shift(),l=-1!==o?o:n+1,c=e.substring(t,l),d=e,m=c.length;if(u<=m){for(var f=m,p=[];-1<f;){var v=c.substring(f-u,f);v&&p.push(v),f-=u;var y=s.shift();if(0===(u=void 0!==y?y:u)){(v=c.substring(0,f))&&p.push(v);break}}c=p.reverse().join(i.group),d=e.substring(0,t)+c+e.substring(l)}return d}function Y(e){return"currency"===e||"accounting"===e}function J(e,t,n){void 0===t&&(t=2),void 0===n&&(n=!1);var r=t-String(e).length,a=e;if(0<r){var i=new Array(1+r).join("0");a=n?e+i:i+e}return a}function V(e,t){var n=e,r=t||0;return n=n.toString().split("e"),n=(n=Math.round(Number(n[0]+"e"+(n[1]?Number(n[1])+r:r)))).toString().split("e"),(n=Number(n[0]+"e"+(n[1]?Number(n[1])-r:-r))).toFixed(Math.min(r,20))}p.NoWeekData;var ee=/0+$/;var te=/(\\.)|(['][^']*[']?)|(["][^"]*["]?)/g;function ne(e,t){var n=e.format;-1!==n.indexOf("%")&&(e.style="percent",e.symbol=t.numbers.symbols.percentSign,e.number*=100),-1!==n.indexOf("$")&&(e.style="currency",e.symbol=$(t))}function re(e){var t=e.format;if(-1<t.indexOf("'")||-1<t.indexOf('"')||-1<t.indexOf("\\")){var r=e.literals=[];e.format=t.replace(te,function(e){var t=e.charAt(0).replace("\\",""),n=e.slice(1).replace(t,"");return r.push(n),"__??__"})}}var ae=/(\.(?:[0-9]*[1-9])?)0+$/g,ie=/\.$/,oe=/\,/g;function se(e,t,n){return-1===e&&-1!==t?t:-1!==e&&-1===t?e:n?Math.min(e,t):Math.max(e,t)}function ue(e,t,n){var M,r,a,i,o,s,u,l,c,d,m={negative:e<0,number:Math.abs(e),negativeZero:W(e),format:t};return function(e){var t,n=e.number,r=e.format;if(r=r.split(";"),(e.negative||e.negativeZero)&&r[1])r=r[1],e.hasNegativeFormat=!0;else if(0===n){var a=r[2];r=a||r[0],a&&(-1===(t=a).indexOf("#")&&-1===t.indexOf("0"))&&(e.constant=a)}else r=r[0];e.format=r}(m),m.constant?m.constant:(re(m),ne(m,n),(d=m).hasGroup=-1<d.format.indexOf(","),d.hasGroup&&(d.format=d.format.replace(oe,"")),function(e){var t,n,r=e.number,a=e.format,i=a.indexOf(".");if(-1!==i){var o=a.lastIndexOf("0")-i,s=a.lastIndexOf("#")-i,u=-1<o,l=-1<s,c=r.toString().split("e"),d=(c=(c=c[1]?V(r,Math.abs(c[1])):c[0]).split(".")[1]||"").length,m=-1;u||l?u&&s<o?d=o:o<s&&(l&&s<d?d=s:u&&d<o&&(d=o),m=u?o:0):(e.format=a.substring(0,i)+a.substring(i+1),i=-1,d=0),-1<d&&(r=V(r,d),-1<m&&(t=r,n=0===m?ae:new RegExp("(\\.[0-9]{"+m+"}[1-9]*)0+$","g"),r=t.replace(n,"$1").replace(ie,"")))}else r=V(r);e.negative&&0<=-1*r&&!e.negativeZero&&(e.negative=!1),e.number=r,e.decimalIndex=i}(m),o=(i=m).format,s=o.indexOf("#"),u=o.indexOf("0"),l=se(s,u,!0),c=se(s=o.lastIndexOf("#"),u=o.lastIndexOf("0")),l===o.length&&(c=l),i.start=l,i.end=c,i.lastZeroIndex=u,r=n,a=(M=m).number,-1!==M.start&&(a=function(e,t){var n=e;if(t)for(var r=t.length,a=0;a<r;a++)n=n.replace("__??__",t[a]);return n}(a=function(e,t,n){var r=e;if("currency"===t||"percent"===t){r="";for(var a=0,i=e.length;a<i;a++){var o=e.charAt(a);r+="$"===o||"%"===o?n:o}}return r}(a=function(e){var t=M.start,n=M.end,r=M.negative,a=M.negativeZero,i=M.format,o=M.decimalIndex,s=M.lastZeroIndex,u=M.hasNegativeFormat,l=M.hasGroup,c=M.number,d=c.toString().split("."),m=i.length,f=d[0],p=d[1]||"",v=f.length,y="";c=i.substring(0,t),!r&&!a||u||(c+="-");for(var g=t;g<m;g++){var h=i.charAt(g);if(-1===o){if(n-g<v){c+=f;break}}else if(-1!==s&&s<g&&(y=""),o-g<=v&&-1<o-g&&(c+=f,g=o),o===g){c+=(p?e.numbers.symbols.decimal:"")+p,g+=n-o+1;continue}"0"===h?(c+=h,y=h):"#"===h&&(c+=y)}return l&&(c=K(c,t+(r&&!u?1:0),Math.max(n,v+t),e.numbers.decimal,e)),t<=n&&(c+=i.substring(n+1)),c}(r),M.style,M.symbol),M.literals)),a)}var le=/^(n|c|p|e|a)(\d*)$/i;function ce(e){return f(e)?function(e){var t=le.exec(e);if(t){var n={style:"decimal"},r=t[1].toLowerCase();return"c"===r?n.style="currency":"a"===r?n.style="accounting":"p"===r?n.style="percent":"e"===r&&(n.style="scientific"),t[2]&&(n.minimumFractionDigits=n.maximumFractionDigits=parseInt(t[2],10)),n}}(e):e}function de(e,t,n){if(void 0===t&&(t="n"),void 0===n&&(n="en"),null==e)return"";if(!isFinite(e))return String(e);var r,a=v(n),i=ce(t);if(i){var o=i.style||"decimal";r=function(e,t,n){var r=n.numbers.symbols,a=t.style,i=Y(a);if("scientific"===a)return(void 0!==t.minimumFractionDigits?e.toExponential(t.minimumFractionDigits):e.toExponential()).replace(".",r.decimal);var o,s=e;i&&(t.value=s,o=$(n,t)),"percent"===a&&(s*=100,o=r.percentSign);var u,l,c,d,m,f,p,v,y,g,h=(p=(u=t).minimumFractionDigits,v=u.maximumFractionDigits,y=u.style,(g=Y(y))&&(c=u.currency,m=d=2,(f=((C.supplemental.currencyData||{}).fractions||{})[c])&&f._digits&&(m=d=parseInt(f._digits,10)),l={minimumFractionDigits:d,maximumFractionDigits:m}),void 0===p&&(p=g?l.minimumFractionDigits:0),void 0===v&&(v="percent"===y?Math.max(p,0):g?Math.max(p,l.maximumFractionDigits):Math.max(p,3)),{minimumFractionDigits:p,maximumFractionDigits:v}),M=h.minimumFractionDigits,b=(s=V(s,h.maximumFractionDigits))<0,S=W(e),D=s.split("."),w=D[0],x=J(D[1]?D[1].replace(ee,""):"",M,!0);b&&(w=w.substring(1)),t.minimumIntegerDigits&&(w=J(w,t.minimumIntegerDigits));var I,F,O,E=!1!==t.useGrouping?K(w,0,w.length,t,n):w;if(x&&(E+=r.decimal+x),i&&"name"===t.currencyDisplay)F=n.numbers.currency,O=1!==e?F["unitPattern-count-other"]:F["unitPattern-count-one"],e<0&&(O=O.replace("n","-n")),I=O;else{var N=t.patterns;I=b||S?N[1]||"-"+N[0]:N[0]}return"n"!==I||b?function(e,t,n){for(var r="",a=0,i=t.length;a<i;a++){var o=t.charAt(a);r+="n"===o?e:"$"===o||"%"===o?n:o}return r}(E,I,o):E}(e,Object.assign({},a.numbers[o],i),a)}else r=ue(e,t,a);return r}function me(e){return"number"==typeof e}var fe=/[eE][\-+]?[0-9]+/,pe=/\u00A0/g;function ve(e,t){if(1<t.length){var n=(t[1]||"").replace("$","").split("n");if(-1<e.indexOf(n[0])&&-1<e.indexOf(n[1]))return e.replace(n[0],"").replace(n[1],"")}}var ye=/\{(\d+)}/g;function ge(e){var n=arguments;return e.replace(ye,function(e,t){return n[parseInt(t,10)+1]})}var he=[2,1,5,3,4],Me={};Me[(-2).toString()]=8,Me[(-1).toString()]=6,Me[2..toString()]=6;var be={numeric:1,"2-digit":2,short:Me[1..toString()]=3,long:4,narrow:5},Se=/[hHmsSzZoOvVxX]/,De=[{key:"era",specifier:"G"},{key:"year",specifier:"y"},{key:"month",specifier:"M"},{key:"day",specifier:"d"},{key:"weekday",specifier:"E"},{key:"hour",getSpecifier:function(e){return e.hour12?"h":"H"}},{key:"minute",specifier:"m"},{key:"second",specifier:"s"},{key:"timeZoneName",specifier:"z"}],we={e:"c",E:"c",M:"L",Q:"q"},xe={},Ie={};function Fe(e){return xe[e]||(xe[e]=new RegExp(e+"+")),xe[e]}function Oe(e){for(var t=[],n=e.charAt(0),r=n,a=1;a<e.length;a++){var i=e.charAt(a);i===r?n+=i:(t.push(n),n=r=i)}return t.push(n),t}function Ee(e,t){var n,r,a=e.length,i=-Number.MAX_VALUE;for(var o in t){for(var s=[],u=o.replace("v","z"),l=0,c=0;c<a;c++){var d=e[c],m=(Fe(d[0]).exec(u)||[])[0];if(m){if(u=u.replace(m,""),m.length!==d.length){var f=Math.max(Math.min(he[m.length]-he[d.length],2),-2);l-=Me[f]}}else l-=120;if(s.push(m),l<i)break}u.length&&(l-=20*Oe(u).length),i<l&&(i=l,n=s,r=t[o])}r=r.replace("v","z");for(var p=0;p<a;p++){var v=n[p];if(v&&v!==e[p]){var y=n[p][0];r=r.replace(Fe(y),e[p]),we[y]&&(r=r.replace(Fe(we[y]),e[p]))}}return r}function Ne(e,t){var n,r=t.calendar;if(f(e))n=r.patterns[e]?r.patterns[e]:e;else if(e){if(e.pattern)return e.pattern;var a=e.skeleton;a||(e.datetime?n=ge(r.dateTimeFormats[e.datetime],r.timeFormats[e.datetime],r.dateFormats[e.datetime]):e.date?n=r.dateFormats[e.date]:e.time?n=r.timeFormats[e.time]:a=function(e){for(var t=[],n=0;n<De.length;n++){var r=De[n],a=e[r.key];if(a){var i=r.specifier||r.getSpecifier(e);t.push(i.repeat(be[a]))}}return t.join("")}(e)),a&&(n=function(e,t){var n=t.calendar.dateTimeFormats.availableFormats;if(n[e])return n[e];if(Ie[t.name]&&Ie[t.name][e])return Ie[t.name][e];var r,a,i,o,s=e.search(Se);if(0<s){var u=e.substr(0,s),l=e.substr(s);r=ge(t.calendar.dateTimeFormats.short,n[l]||Ee(Oe(l),n),n[u]||Ee(Oe(u),n))}else r=Ee(Oe(e),n);return a=e,i=r,o=t.name,Ie[o]||(Ie[o]={}),Ie[o][a]=i,r}(a,t))}return n=n||r.patterns.d}function Ce(e){var t;return e<=3?t="abbreviated":4===e?t="wide":5===e?t="narrow":6===e&&(t="short"),t}function He(e,t,n,r,a){return k(e,{type:t,nameType:Ce(n),standAlone:r,lower:a})}function Te(e){return"function"==typeof e}function ke(e){return Boolean(e)&&Te(e.getTime)&&Te(e.getMonth)}var _e={G:"era",y:"year",q:"quarter",Q:"quarter",M:"month",L:"month",d:"day",E:"weekday",c:"weekday",e:"weekday",h:"hour",H:"hour",k:"hour",K:"hour",m:"minute",s:"second",a:"dayperiod",x:"zone",X:"zone",z:"zone",Z:"zone"},Pe=/d{1,2}|E{1,6}|e{1,6}|c{3,6}|c{1}|M{1,5}|L{1,5}|y{1,4}|H{1,2}|h{1,2}|k{1,2}|K{1,2}|m{1,2}|a{1,5}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|x{1,5}|X{1,5}|G{1,5}|q{1,5}|Q{1,5}|"[^"]*"|'[^']*'/g;function Ae(e,t,n,r){return t<=2?J(e+1,t):He(n,"months",t,r)[e]}function ze(e,t,n,r){var a=Math.floor(e.getMonth()/3);return t<3?a+1:He(n,"quarters",t,r)[a]}function Le(e,t,n){var r=n.shortHours,a=n.optionalMinutes,i=n.separator,o=n.localizedName,s=n.zZeroOffset,u=e.getTimezoneOffset()/60;if(0==u&&s)return"Z";var l=u<=0?"+":"-",c=Math.abs(u).toString().split("."),d=c[1]||0,m=l+(r?c[0]:J(c[0],2));return!d&&a||(m+=(i?":":"")+J(d,2)),o&&(m=ge(0==u?t.calendar.gmtZeroFormat:t.calendar.gmtFormat,m)),m}function je(e,t,n,r){var a,i;return t<3?((a=e.getDay())<(i=Q(n))?7-i+a:a-i)+1:He(n,"days",t,r)[e.getDay()]}var Ue={};function Xe(n,e,t){if(void 0===t&&(t="en"),!ke(n))return null==n?"":n;var r=v(t);return Ne(e,r).replace(Pe,function(e){var t=e.length;return e.includes("'")||e.includes('"')?e.slice(1,t-1):Ue[e[0]](n,t,r)})}function Be(e,t,n){var r=e.getTimezoneOffset(),a=new Date(e.getTime()+6e4*(t-n)),i=a.getTimezoneOffset();return new Date(a.getTime()+6e4*(i-r))}Ue.d=function(e,t){return J(e.getDate(),t)},Ue.E=function(e,t,n){return He(n,"days",t)[e.getDay()]},Ue.M=function(e,t,n){return Ae(e.getMonth(),t,n,!1)},Ue.L=function(e,t,n){return Ae(e.getMonth(),t,n,!0)},Ue.y=function(e,t){var n=e.getFullYear();return 2===t&&(n%=100),J(n,t)},Ue.h=function(e,t){return J(e.getHours()%12||12,t)},Ue.H=function(e,t){return J(e.getHours(),t)},Ue.k=function(e,t){return J(e.getHours()||24,t)},Ue.K=function(e,t){return J(e.getHours()%12,t)},Ue.m=function(e,t){return J(e.getMinutes(),t)},Ue.s=function(e,t){return J(e.getSeconds(),t)},Ue.S=function(e,t){return 0!==e.getMilliseconds()?String(e.getMilliseconds()/1e3).split(".")[1].substr(0,t):J("",t)},Ue.a=function(e,t,n){return He(n,"dayPeriods",t)[e.getHours()<12?"am":"pm"]},Ue.z=function(e,t,n){return Le(e,n,{shortHours:t<4,optionalMinutes:t<4,separator:!0,localizedName:!0})},Ue.Z=function(e,t,n){return Le(e,n,{separator:3<t,localizedName:4===t,zZeroOffset:5===t})},Ue.x=function(e,t,n){return Le(e,n,{optionalMinutes:1===t,separator:3===t||5===t})},Ue.X=function(e,t,n){return Le(e,n,{optionalMinutes:1===t,separator:3===t||5===t,zZeroOffset:!0})},Ue.G=function(e,t,n){var r=0<=e.getFullYear()?1:0;return He(n,"eras",t)[r]},Ue.e=je,Ue.c=function(e,t,n){return je(e,t,n,!0)},Ue.q=function(e,t,n){return ze(e,t,n,!0)},Ue.Q=ze;var qe=/([+|\-]\d{1,2})(:?)(\d{2})?/,Re=/^\/Date\((.*?)\)\/$/,Ge=/[+-]\d*/,Ze={2:/^\d{1,2}/,3:/^\d{1,3}/,4:/^\d{4}/},Qe=/\d+/,We=/^ */,$e=/ *$/,Ke=["yyyy/MM/dd HH:mm:ss","yyyy/MM/dd HH:mm","yyyy/MM/dd","E MMM dd yyyy HH:mm:ss","yyyy-MM-ddTHH:mm:ss.SSSSSSSXXX","yyyy-MM-ddTHH:mm:ss.SSSXXX","yyyy-MM-ddTHH:mm:ss.SSXXX","yyyy-MM-ddTHH:mm:ssXXX","yyyy-MM-ddTHH:mm:ss.SSSSSSS","yyyy-MM-ddTHH:mm:ss.SSS","yyyy-MM-ddTHH:mmXXX","yyyy-MM-ddTHH:mmX","yyyy-MM-ddTHH:mm:ss","yyyy-MM-ddTHH:mm","yyyy-MM-dd HH:mm:ss","yyyy-MM-dd HH:mm","yyyy-MM-dd","HH:mm:ss","HH:mm"],Ye=["G","g","F","Y","y","M","m","D","d","y","T","t"];function Je(e,t,n){return!(t<=e&&e<=n)}function Ve(e,t){for(var n=t.format,r=t.idx,a=0;n[r]===e;)a++,r++;return 0<a&&--r,t.idx=r,a}function et(e,t){var n=e?Ze[e]||new RegExp("^\\d{1,"+e+"}"):Qe,r=t.value.substr(t.valueIdx,e).match(n);return r?(r=r[0],t.valueIdx+=r.length,parseInt(r,10)):null}function tt(e,t,n){for(var r,a,i,o=0,s=e.length,u=0,l=0;o<s;o++)a=(r=e[o]).length,i=t.value.substr(t.valueIdx,a),n&&(i=i.toLowerCase()),i===r&&u<a&&(u=a,l=o);return u?(t.valueIdx+=u,l+1):null}function nt(e){var t=!1;return e.value.charAt(e.valueIdx)===e.format[e.idx]&&(e.valueIdx++,t=!0),t}function rt(e,t,n){var r=n.shortHours,a=n.noSeparator,i=n.optionalMinutes,o=n.localizedName,s=n.zLiteral;if(e.UTC=!0,s&&"Z"===e.value.charAt(e.valueIdx))return e.valueIdx++,!1;if(o&&!tt(function(e){var t=e.gmtFormat,n=e.gmtZeroFormat;if(!t)throw p.NoGMTInfo.error();return[t.replace("{0}","").toLowerCase(),n.replace("{0}","").toLowerCase()]}(t.calendar),e,!0))return!0;var u=qe.exec(e.value.substr(e.valueIdx,6));if(!u)return!o;var l=u[1],c=u[3],d=parseInt(l,10),m=u[2],f=parseInt(c,10);return!!(isNaN(d)||!r&&3!==l.length||!i&&isNaN(f)||a&&m)||(isNaN(f)&&(f=null),!!(Je(d,-12,13)||f&&Je(f,0,59))||(e.valueIdx+=u[0].length,e.hoursOffset=d,void(e.minutesOffset=f)))}function at(e,t,n){var r=Ve(e,t),a=He(n,"months",r,"L"===e,!0),i=r<3?et(2,t):tt(a,t,!0);if(null===i||Je(i,1,12))return!0;t.month=i-1}function it(e,t,n){var r=Ve(e,t),a=He(n,"days",r,"c"===e,!0),i=r<3?et(1,t):tt(a,t,!0);if(!i&&0!==i||Je(i,1,7))return!0}var ot={};function st(e,t,n){for(var r=Ne(t,n).split(""),a={format:r,idx:0,value:(u=e,l=t,""+We.exec(l)[0]+u+$e.exec(l)[0]),valueIdx:0,year:null,month:null,day:null,hours:null,minutes:null,seconds:null,milliseconds:null},i=r.length,o=!1;a.idx<i;a.idx++){var s=r[a.idx];if(o)"'"===s&&(o=!1),nt(a);else if(ot[s]){if(ot[s](a,n))return null}else if("'"===s)o=!0,nt(a);else if(!nt(a))return null}var u,l,c,d,m,f,p,v,y,g,h,M,b,S,D,w,x;return a.valueIdx<e.length?null:(m=a.year,f=a.month,p=a.day,v=a.hours,y=a.minutes,g=a.seconds,h=a.milliseconds,M=a.pmHour,b=a.UTC,S=a.hoursOffset,D=a.minutesOffset,w=null!==v||null!==y||g||null,x=new Date,null===m&&null===f&&null===p&&w?(m=x.getFullYear(),f=x.getMonth(),p=x.getDate()):(null===m&&(m=x.getFullYear()),null===p&&(p=1)),M&&v<12&&(v+=12),b?(S&&(v+=-S),D&&(y+=-D*(S<0?-1:1)),c=new Date(Date.UTC(m,f,p,v,y,g,h))):(d=c=new Date(m,f,p,v,y,g,h),v||23!==d.getHours()||d.setHours(d.getHours()+2)),m<100&&c.setFullYear(m),(c.getDate()!==p&&void 0===b?null:c)||null)}function ut(e,t,n){if(void 0===n&&(n="en"),!e)return null;if(ke(e))return e;var r=String(e).trim(),a=function(e){if(e&&0===e.indexOf("/D")){var t=Re.exec(e);if(t){t=t[1];var n=Ge.exec(t.substring(1));return t=new Date(parseInt(t,10)),n&&(a="-"===(r=n[0]).substr(0,1)?-1:1,i=r.substring(1),n=a*(i=60*parseInt(i.substr(0,2),10)+parseInt(i.substring(2),10)),t=Be(t,t.getTimezoneOffset(),0),t=Be(t,0,-1*n)),t}}var r,a,i}(r);if(a)return a;for(var i=v(n),o=t||function(){for(var e=[],t=i.calendar.patterns,n=Ye.length,r=0;r<n;r++)e.push(t[Ye[r]]);return e.concat(Ke)}(),s=(o=Array.isArray(o)?o:[o]).length,u=0;u<s;u++)if(a=st(r,o[u],i))return a;return a}ot.d=function(e){Ve("d",e);var t=et(2,e);if(null===t||Je(t,1,31))return!0;null===e.day&&(e.day=t)},ot.E=function(e,t){if(null===tt(He(t,"days",Ve("E",e),!1,!0),e,!0))return!0},ot.M=function(e,t){return at("M",e,t)},ot.L=function(e,t){return at("L",e,t)},ot.y=function(e){var t=Ve("y",e),n=et(1===t?void 0:t,e);if(null===n)return!0;if(2===t){var r=(new Date).getFullYear();2029<(n=r-r%100+n)&&(n-=100)}e.year=n},ot.h=function(e){Ve("h",e);var t=et(2,e);if(12===t&&(t=0),null===t||Je(t,0,11))return!0;e.hours=t},ot.K=function(e){Ve("K",e);var t=et(2,e);if(null===t||Je(t,0,11))return!0;e.hours=t},ot.a=function(e,t){var n=He(t,"dayPeriods",Ve("a",e),!1,!0),r=tt([n.pm],e,!0);if(!r&&!tt([n.am],e,!0))return!0;e.pmHour=r},ot.H=function(e){Ve("H",e);var t=et(2,e);if(null===t||Je(t,0,23))return!0;e.hours=t},ot.k=function(e){Ve("k",e);var t=et(2,e);if(null===t||Je(t,1,24))return!0;e.hours=24===t?0:t},ot.m=function(e){Ve("m",e);var t=et(2,e);if(null===t||Je(t,0,59))return!0;e.minutes=t},ot.s=function(e){Ve("s",e);var t=et(2,e);if(null===t||Je(t,0,59))return!0;e.seconds=t},ot.S=function(e){var t=Ve("S",e),n=e.value.substr(e.valueIdx,t),r=null;if(isNaN(parseInt(n,10))||(r=V(r=parseFloat("0."+n,10),3),r*=1e3,e.valueIdx+=t),null===r||Je(r,0,999))return!0;e.milliseconds=r},ot.z=function(e,t){var n=Ve("z",e)<4,r=rt(e,t,{shortHours:n,optionalMinutes:n,localizedName:!0});if(r)return r},ot.Z=function(e,t){var n=Ve("Z",e),r=rt(e,t,{noSeparator:n<4,zLiteral:5===n,localizedName:4===n});if(r)return r},ot.x=function(e,t){var n=Ve("x",e),r=rt(e,t,{noSeparator:3!==n&&5!==n,optionalMinutes:1===n});if(r)return r},ot.X=function(e,t){var n=Ve("X",e),r=rt(e,t,{noSeparator:3!==n&&5!==n,optionalMinutes:1===n,zLiteral:!0});if(r)return r},ot.G=function(e,t){var n=He(t,"eras",Ve("G",e),!1,!0);if(null===tt([n[0],n[1]],e,!0))return!0},ot.e=function(e,t){return it("e",e,t)},ot.c=function(e,t){return it("c",e,t)};var lt={month:{type:"months",minLength:3,standAlone:"L"},quarter:{type:"quarters",minLength:3,standAlone:"q"},weekday:{type:"days",minLength:{E:0,c:3,e:3},standAlone:"c"},dayperiod:{type:"dayPeriods",minLength:0},era:{type:"eras",minLength:0}};function ct(e,t){var n=e[e.length-1];n&&"literal"===n.type?n.pattern+=t:e.push({type:"literal",pattern:t})}var dt=/\{(\d+)(:[^\}]+)?\}/g;function mt(e,t,n){if(t){if(ke(e))return Xe(e,t,n);if(me(e))return de(e,t,n)}return null!=e?e:""}function ft(e,r,a){return e.replace(dt,function(e,t,n){return mt(r[parseInt(t,10)],n?n.substring(1):"",a)})}var pt,vt,yt=(wt.prototype.format=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return 1===t.length&&Array.isArray(t[0])?ft(e,t[0],this.locale):ft(e,t,this.locale)},wt.prototype.formatDate=function(e,t){return Xe(e,t,this.locale)},wt.prototype.toString=function(e,t){return mt(e,t,this.locale)},wt.prototype.parseNumber=function(e,t){return function(e,t,n){if(void 0===t&&(t="en"),void 0===n&&(n={}),!e&&0!==e)return null;if(me(e))return e;var r,a=v(t),i=a.numbers.symbols,o=e.toString(),s=n||{};if(f(n)&&(re(s={format:n}),o=function(e){var t=s.literals,n=e;if(t)for(var r=0;r<t.length;r++)n=n.replace(t[r],"");return n}(o),ne(s,a)),("percent"===s.style||-1<o.indexOf(i.percentSign))&&(o=o.replace(i.percentSign,""),r=!0),fe.test(o))return o=parseFloat(o.replace(i.decimal,".")),isNaN(o)?null:o;var u=function(e,i,t){var n,r=ce(t)||{},a=Y(r.style),o=e,s=r.currency||q(i,a);if(s){var u=function(e,t){void 0===t&&(t=!0);var n=X(i,e,t);if(n){if(!n.displays){var r=[e];for(var a in n)r.push(n[a]);r.sort(B),n.displays=r}return n.displays}}(s,a);if(u)for(var l=0;l<u.length;l++){var c=u[l];if(o.includes(c)){o=o.replace(c,""),a=!0;break}}if(a){var d=ve(o,i.numbers.currency.patterns)||ve(o,i.numbers.accounting.patterns);d&&(n=!0,o=d)}}return{number:o,negative:n}}(o,a,s),l=u.negative,c=u.number,d=(o=String(c).trim()).indexOf("-");if(0<d)return null;var m=-1<d;return m=void 0!==l?l:m,o=o.replace("-","").replace(pe," ").split(i.group.replace(pe," ")).join("").replace(i.decimal,"."),o=parseFloat(o),isNaN(o)?o=null:m&&(o*=-1),o&&r&&(o/=100),o}(e,this.locale,t)},wt.prototype.parseDate=function(e,t){return ut(e,t,this.locale)},wt.prototype.formatNumber=function(e,t){return de(e,t,this.locale)},wt.prototype.dateFieldName=function(e){return function(e,t){void 0===t&&(t="en");var n=v(t).calendar.dateFields;if(!n)throw p.NoDateFieldNames.error();var r=n[e.type]||{};return r[e.nameType]||r.wide}(e,this.locale)},wt.prototype.dateFormatNames=function(e){return k(this.locale,e)},wt.prototype.splitDateFormat=function(e){return function(e,t){void 0===t&&(t="en");for(var n=Ne(e,v(t)),r=[],a=Pe.lastIndex=0,i=Pe.exec(n);i;){var o=i[0];if(a<i.index&&ct(r,n.substring(a,i.index)),o.startsWith('"')||o.startsWith("'"))ct(r,o);else{var s=o[0],u=_e[s],l={type:u,pattern:o};"hour"===u&&(l.hour12="h"===(f=o)||"K"===f);var c=lt[u];if(c){var d=me(c.minLength)?c.minLength:c.minLength[s],m=o.length;d<=m&&(l.names={type:c.type,nameType:Ce(m),standAlone:c.standAlone===s})}r.push(l)}a=Pe.lastIndex,i=Pe.exec(n)}var f;return a<n.length&&ct(r,n.substring(a)),r}(e,this.locale)},wt.prototype.numberSymbols=function(){return d(this.locale).numbers.symbols},wt.prototype.firstDay=function(){return Q(this.locale)},wt),gt=r.createContext(new yt("en")),ht=(pt=function(e,t){return(pt=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])})(e,t)},function(e,t){function n(){this.constructor=e}pt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Mt=(vt=r.Component,ht(Dt,vt),Dt.prototype.getIntlService=function(){return new yt(this.props.locale)},Dt.prototype.getChildContext=function(){return{kendoIntlService:this.getIntlService()}},Dt.prototype.render=function(){return r.createElement(gt.Provider,{value:this.getIntlService()},r.Children.only(this.props.children))},Dt.propTypes={locale:a.string},Dt.childContextTypes={kendoIntlService:a.object},Dt),bt=Object.create({}),St=function(e,t,n){for(var r in e)if(e.hasOwnProperty(r)){var a=n.slice();if(a.push(r),"string"!=typeof e[r])St(e[r],t,a);else{var i=e[r];Object.defineProperty(t,a.join("."),{value:i})}}};function Dt(){return null!==vt&&vt.apply(this,arguments)||this}function wt(e){this.locale=e}function xt(e,t){var n=bt[t]=bt[t]||{};St(e,n,[])}var It,Ft,Ot=(Tt.prototype.toLanguageString=function(e,t){return this.language&&bt[this.language]&&bt[this.language].hasOwnProperty(e)?bt[this.language][e]:t},Tt),Et=r.createContext(new Ot("en")),Nt=(Ft=function(e,t){return(Ft=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])})(e,t)},function(e,t){function n(){this.constructor=e}Ft(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Ct=(It=r.Component,Nt(Ht,It),Ht.prototype.getLocalizationService=function(){return new Ot(this.props.language)},Ht.prototype.getChildContext=function(){return{kendoLocalizationService:this.getLocalizationService()}},Ht.prototype.render=function(){return r.createElement(Et.Provider,{value:this.getLocalizationService()},r.Children.only(this.props.children))},Ht.propTypes={language:a.string},Ht.childContextTypes={kendoLocalizationService:a.object},Ht);function Ht(){return null!==It&&It.apply(this,arguments)||this}function Tt(e){this.language=e}function kt(e){return e.context&&e.context.kendoIntlService||new yt("en")}function _t(e){return e.context&&e.context.kendoLocalizationService||new Ot}function Pt(e){var t={kendoIntlService:a.object};e.contextTypes?Object.assign(e.contextTypes,t):e.contextTypes=t}function At(e){var t={kendoLocalizationService:a.object};e.contextTypes?Object.assign(e.contextTypes,t):e.contextTypes=t}var zt=function(){return r.useContext(gt)},Lt=function(){return r.useContext(Et)}}],a.c=r,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(t,e){if(1&e&&(t=a(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)a.d(n,r,function(e){return t[e]}.bind(null,r));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=7)}}}); | ||
System.register("@progress/kendo-react-sortable",["react","react-dom","prop-types","@progress/kendo-react-common"],function(u){var i,o,s,l;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){i=t(e)},function(e){o=t(e)},function(e){s=t(e)},function(e){l=t(e)}],execute:function(){function a(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,a),t.l=!0,t.exports}var n,r;r={},a.m=n=[function(e,t){e.exports=i},function(e,t){e.exports=s},function(e,t){e.exports=l},function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return(r=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])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i,o=(i=n(10).PreventableEvent,a(s,i),s);function s(e,t,n){var r=i.call(this)||this;return r.target=e,r.prevIndex=t,r.element=n,r}t.SortableOnDragStartEvent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.SortableOnDragOverEvent=function(e,t,n,r){this.target=e,this.prevIndex=t,this.nextIndex=n,this.newState=r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.SortableOnDragEndEvent=function(e,t,n,r){this.target=e,this.prevIndex=t,this.nextIndex=n,this.newState=r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.SortableOnNavigateEvent=function(e,t,n,r){this.target=e,this.prevIndex=t,this.nextIndex=n,this.newState=r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(8);t.Sortable=r.Sortable;var a=n(3);t.SortableOnDragStartEvent=a.SortableOnDragStartEvent;var i=n(4);t.SortableOnDragOverEvent=i.SortableOnDragOverEvent;var o=n(5);t.SortableOnDragEndEvent=o.SortableOnDragEndEvent;var s=n(6);t.SortableOnNavigateEvent=s.SortableOnNavigateEvent,function(e){for(var t in e)u(t,e[t])}(t)},function(e,t,n){"use strict";var r,a,i=this&&this.__extends||(r=function(e,t){return(r=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])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var s,u=n(0),l=n(9),c=n(1),b=n(2),d=n(3),m=n(4),f=n(5),S=n(6),p=n(13),v=n(11),D=n(12),y=((a={})["data-sortable-component"]=!0,a),g=(s=u.Component,i(h,s),Object.defineProperty(h.prototype,"container",{get:function(){return this.draggableRef&&this.draggableRef.element},enumerable:!0,configurable:!0}),h.prototype.getSnapshotBeforeUpdate=function(){var a=this,e=this.props,i=e.idField,t=e.animation;return this.oldSizesMap={},t&&this.props.data.forEach(function(e){var t=e[i],n=a.itemRefsMap[t],r=l.findDOMNode(n);r&&(a.oldSizesMap[t]=r.getBoundingClientRect())}),null},h.prototype.componentDidUpdate=function(e){var s=this,t=this.props,u=t.idField,n=t.animation;this.focusActiveId&&(this.focusActiveId=!1,this.itemRefsMap[this.state.activeId].focus()),n&&(this.state.isDragging||this.isKeyboardNavigated)&&(this.isKeyboardNavigated=!1,e.data.forEach(function(e){var t=e[u],n=s.itemRefsMap[t],r=n.getBoundingClientRect(),a=s.oldSizesMap[t],i=a.left-r.left,o=a.top-r.top;0==i&&0==o||requestAnimationFrame(function(){s.animatingItemMap[t]=!0,n.style.transform="translate("+i+"px, "+o+"px)",n.style.transition="transform 0s",requestAnimationFrame(function(){n.style.transform="",n.style.transition="transform 200ms cubic-bezier(0.2, 0, 0, 1) 0s",setTimeout(function(){return s.animatingItemMap[t]=!1},200)})})}))},h.prototype.componentDidMount=function(){this.isRtl=this.container&&"rtl"===getComputedStyle(this.container).direction||!1},h.prototype.componentWillUnmount=function(){this.isUnmounted=!0},h.prototype.parentOffset=function(){var e=this.offsetParent;if(e&&e.ownerDocument&&e!==e.ownerDocument.body){var t=e.getBoundingClientRect();return{left:t.left-e.scrollLeft,top:t.top-e.scrollTop}}return{left:0,top:0}},h.prototype.render=function(){var e=this.props,t=e.data,n=e.style,r=e.className;return u.createElement(b.Draggable,{onPress:this.onDragStart,onDrag:this.onDragOver,onRelease:this.onDragEnd,ref:this.draggableRefAssign},u.createElement("div",o({},y,{className:r,style:o({touchAction:"none"},n),onKeyDown:this.onKeyDown}),t&&t.length?this.renderData():this.renderNoData(),this.renderDragCue()))},h.defaultProps={navigation:!0,animation:!0,emptyItemUI:function(e){return u.createElement("div",null,e.message)}},h.propTypes={idField:c.string.isRequired,disabledField:c.string,data:c.array.isRequired,tabIndex:c.number,navigation:c.bool,animation:c.bool,itemUI:c.func.isRequired,emptyItemUI:c.func,style:c.object,className:c.string,onDragStart:c.func,onDragOver:c.func,onDragEnd:c.func,onNavigate:c.func},h);function h(){var M=null!==s&&s.apply(this,arguments)||this;return M.state={clientX:0,clientY:0,isDragging:!1,isDragPrevented:!1,activeId:"",dragCueWidth:0,dragCueHeight:0},M.itemRefsMap={},M.oldSizesMap={},M.animatingItemMap={},M.isUnmounted=!1,M.focusActiveId=!1,M.isKeyboardNavigated=!1,M.swapItems=function(e,t,n){var r=e[t];return e[t]=e[n],e[n]=r,n},M.generateNewState=function(e,t){var n=M.props.data,r=n.slice();if(t<e)for(var a=e-1;t<=a;a--){var i=n[a];M.isItemDisabled(i)||(e=M.swapItems(r,e,a))}else for(a=e+1;a<=t;a++)i=n[a],M.isItemDisabled(i)||(e=M.swapItems(r,e,a));return r},M.closestSortableItem=function(e){for(var t=e;t;){var n=t.getAttribute("data-sortable-id");if(n&&M.itemRefsMap[n]===t)return{id:n,element:t};t=t.parentElement}return{id:"",element:null}},M.isSortable=function(e){return Boolean(e.hasAttribute("data-sortable-component"))},M.closestSortable=function(e){for(var t=e;t;){if(M.isSortable(t))return t;t=t.parentElement}return null},M.isSameSortable=function(e){return M.closestSortable(e)===M.container},M.idComparer=function(e,t){return e+""==t+""},M.findItem=function(t){var e=M.props,n=e.data,r=e.idField;if(t+"")return D.find(n,function(e){return M.idComparer(e[r],t)})},M.findIndex=function(t){var e=M.props,n=e.data,r=e.idField;return t+""?D.findIndex(n,function(e){return M.idComparer(e[r],t)}):-1},M.isItemDisabled=function(e){return e&&!0===e[M.props.disabledField||""]},M.isActiveElementSortableItem=function(){return document.activeElement instanceof HTMLElement&&M.closestSortableItem(document.activeElement).element!==document.activeElement},M.widgetTarget=function(e){var t=D.closest(e,function(e){return D.hasClasses(e,"k-widget")||M.isSortable(e)});return t&&!M.isSortable(t)},M.allowDrag=function(e){return e.hasAttribute("data-sortable-id")||!(D.isFocusable(e)||M.widgetTarget(e))},M.onDragStart=function(e){var t=e.event,n=M.props.onDragStart,r=document.elementFromPoint(t.clientX,t.clientY),a=M.closestSortableItem(r),i=a.id,o=a.element,s=M.findItem(i);if(!i||s&&M.isItemDisabled(s)||!M.allowDrag(r)||!M.isSameSortable(r))M.setState({isDragPrevented:!0});else{t.isTouch&&t.originalEvent.preventDefault();var u=new d.SortableOnDragStartEvent(M,M.findIndex(i),r);n&&n.call(void 0,u);var l=u.isDefaultPrevented();l||(M.offsetParent=D.relativeContextElement(M.container)),M.setState({isDragPrevented:l,activeId:i,dragCueWidth:o&&o.clientWidth||0,dragCueHeight:o&&o.clientHeight||0})}},M.onDragOver=function(e){var t=e.event,n=M.props,r=n.onDragOver,a=n.data;if(t.originalEvent.preventDefault(),!M.state.isDragPrevented){var i=M.findIndex(M.state.activeId);if(-1!==i){var o=document.elementFromPoint(t.clientX,t.clientY),s=M.closestSortableItem(o),u=M.findIndex(s.id),l=a[u];if(r&&-1<u&&i!==u&&!M.isItemDisabled(l)&&!M.animatingItemMap[s.id]){var c=new m.SortableOnDragOverEvent(M,i,u,M.generateNewState(i,u));r.call(void 0,c)}var d=M.parentOffset();M.setState({clientX:t.clientX-d.left,clientY:t.clientY-d.top,isDragging:!0})}else M.resetState()}},M.onDragEnd=function(e){var t=M.isActiveElementSortableItem();if(M.state.isDragPrevented)M.resetState(t);else{var n=e.event,r=M.props,a=r.onDragEnd,i=r.data,o=document.elementFromPoint(n.clientX,n.clientY),s=M.closestSortableItem(o),u=M.findIndex(s.id),l=M.findIndex(M.state.activeId),c=M.isItemDisabled(i[u]);if(-1!==u&&!c||(u=l),a){var d=new f.SortableOnDragEndEvent(M,l,u,M.generateNewState(l,u));a.call(void 0,d)}M.resetState(t)}},M.onItemBlur=function(){setTimeout(function(){M.isUnmounted||M.isActiveElementSortableItem()&&!M.state.isDragging&&M.setState({activeId:""})})},M.onItemFocus=function(e){var t=M.closestSortableItem(e.currentTarget),n=t.id,r=t.element;!M.idComparer(n,M.state.activeId)&&M.isSameSortable(e.target)&&r===e.target&&M.setState({activeId:n})},M.onKeyDown=function(e){var t=M.props,n=t.data,r=t.idField,a=t.onNavigate,i=t.navigation,o=M.state.activeId;if(i&&o&&M.isSameSortable(e.target)){var s=M.isRtl,u=n.filter(function(e){return!M.isItemDisabled(e)}),l=D.findIndex(u,function(e){return M.idComparer(e[r],o)}),c=u.length-1,d=l;switch(e.keyCode===b.Keys.left&&(e.keyCode=s?b.Keys.down:b.Keys.up),e.keyCode===b.Keys.right&&(e.keyCode=s?b.Keys.up:b.Keys.down),e.keyCode){case b.Keys.up:0<l&&(d=l-1);break;case b.Keys.down:l<c&&(d=l+1)}if(d!==l){e.stopPropagation(),e.preventDefault();var m=u[d],f=m?m[r]:"",p=u[l],v=p?p[r]:"";if(e.ctrlKey){if(a){var y=M.findIndex(v),g=M.findIndex(f),h=new S.SortableOnNavigateEvent(M,y,g,M.generateNewState(y,g));M.isKeyboardNavigated=!0,a.call(void 0,h)}}else M.focusActiveId=!0,M.setState({activeId:f+""})}}},M.resetState=function(e){M.setState({clientX:0,clientY:0,isDragging:!1,isDragPrevented:!1,dragCueWidth:0,dragCueHeight:0,activeId:e?"":M.state.activeId})},M.renderData=function(){var e=M.props,t=e.data,i=e.itemUI,o=e.idField,s=e.tabIndex;return t.map(function(e){var t,n=e[o],r=M.isItemDisabled(e),a=M.idComparer(M.state.activeId,n);return u.createElement(i,{key:n,forwardRef:function(e){return M.refAssign(e,n)},dataItem:e,isDisabled:r,isActive:a,isDragged:a&&M.state.isDragging,isDragCue:!1,attributes:((t={})["data-sortable-id"]=n,t["aria-disabled"]=r,t["aria-grabbed"]=a&&M.state.isDragging&&!M.state.isDragPrevented,t["aria-dropeffect"]=r?"none":"move",t.tabIndex=b.getTabIndex(s,r),t.onFocus=M.onItemFocus,t.onBlur=M.onItemBlur,t),style:{cursor:r?"auto":"move",MozUserSelect:"none",msUserSelect:"none",WebkitUserSelect:"none",userSelect:"none"}})})},M.renderNoData=function(){var e=M.props.emptyItemUI,t=p.provideLocalizationService(M).toLanguageString(v.noData,v.messages[v.noData]);if(e)return u.createElement(e,{message:t})},M.renderDragCue=function(){var e=M.props.itemUI,t=M.state,n=t.isDragging,r=t.activeId,a=t.clientX,i=t.clientY,o=M.findItem(r);if(n&&o)return u.createElement(e,{dataItem:o,isDisabled:!1,isActive:!0,isDragged:!0,isDragCue:!0,style:{position:"fixed",top:i+10,left:a+10,width:M.state.dragCueWidth,height:M.state.dragCueHeight},attributes:{}})},M.refAssign=function(e,t){e?M.itemRefsMap[t]=e:delete M.itemRefsMap[t]},M.draggableRefAssign=function(e){M.draggableRef=e},M}t.Sortable=g,p.registerForLocalization(g)},function(e,t){e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(a.prototype.preventDefault=function(){this.prevented=!0},a.prototype.isDefaultPrevented=function(){return this.prevented},a);function a(){this.prevented=!1}t.PreventableEvent=r},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.noData="sortable.noData",t.messages=((r={})[t.noData]="No Data",r)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2);t.find=function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return e[n]},t.findIndex=function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1};function a(e){return String(e).trim().split(" ")}t.toClassList=a,t.hasClasses=function(e,t){var n=a(t);return Boolean(a(e.className).find(function(e){return 0<=n.indexOf(e)}))};var i=/^(?:a|input|select|option|textarea|button|object)$/i;t.isFocusable=function(e){if(e.tagName){var t=e.tagName.toLowerCase(),n=e.getAttribute("tabIndex"),r="-1"===n,a=null!==n&&!r;return i.test(t)&&(a=!e.disabled&&!r),a}return!1},t.closest=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e};var o=function(){if(!r.canUseDOM||!document.body)return!1;var e=document.createElement("div");e.style.transform="matrix(10, 0, 0, 10, 0, 0)",e.innerHTML='<div style="position: fixed; top: 10px;">child</div>',document.body.appendChild(e);var t=10!==e.children[0].getBoundingClientRect().top;return document.body.removeChild(e),t}();t.relativeContextElement=function(e){if(!e||!o)return null;for(var t=e.parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}}},function(e,t,n){"use strict";n.r(t),n.d(t,"IntlProvider",function(){return Mt}),n.d(t,"IntlService",function(){return yt}),n.d(t,"loadMessages",function(){return xt}),n.d(t,"LocalizationProvider",function(){return Ct}),n.d(t,"LocalizationService",function(){return Ot}),n.d(t,"load",function(){return T}),n.d(t,"provideIntlService",function(){return kt}),n.d(t,"provideLocalizationService",function(){return _t}),n.d(t,"registerForIntl",function(){return Pt}),n.d(t,"registerForLocalization",function(){return At}),n.d(t,"useInternationalization",function(){return zt}),n.d(t,"useLocalization",function(){return Lt});var r=n(0),a=n(1);function f(e){return"string"==typeof e}function i(e){var t=e.name,n=e.message;if(!t||!n)throw new Error("{ name: string, message: string } object is required!");this.name=t,this.message=n}var o=/\{(\d+)}?\}/g;i.prototype.formatMessage=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=u(e),r=this.message.replace(o,function(e,t){return n[parseInt(t,10)]});return this.name+": "+r},i.prototype.error=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new Error(this.formatMessage(e))};var s,u=function(e){return e.reduce(function(e,t){return e.concat(t)},[])},p=(s={NoLocale:"Missing locale info for '{0}'",NoCurrency:"Cannot determine currency information. Please load the locale currencies data.",NoSupplementalCurrency:"Cannot determine currency. Please load the supplemental currencyData.",NoCurrencyRegion:"No currency data for region '{0}'",NoCurrencyDisplay:"Cannot determine currency display information. Please load the locale currencies data. The default culture does not include the all currencies data.",NoGMTInfo:"Cannot determine locale GMT format. Please load the locale timeZoneNames data.",NoWeekData:"Cannot determine locale first day of week. Please load the supplemental weekData.",NoFirstDay:"Cannot determine locale first day of week. Please load the supplemental weekData. The default culture includes only the 'en-US' first day info.",NoValidCurrency:"Cannot determine a default currency for the {0} locale. Please specify explicitly the currency with the format options.",NoDateFieldNames:"Cannot determine the locale date field names. Please load the locale dateFields data."},Object.keys(s).reduce(function(e,t){return e[t]=new i({name:t,message:s[t]}),e},{})),C={en:{name:"en",identity:{version:{_number:"$Revision: 12418 $",_cldrVersion:"29"},language:"en"},territory:"US",numbers:{symbols:{decimal:".",group:",",list:";",percentSign:"%",plusSign:"+",minusSign:"-",exponential:"E",superscriptingExponent:"×",perMille:"‰",infinity:"∞",nan:"NaN",timeSeparator:":"},decimal:{patterns:["n"],groupSize:[3]},scientific:{patterns:["nEn"],groupSize:[]},percent:{patterns:["n%"],groupSize:[3]},currency:{patterns:["$n"],groupSize:[3],"unitPattern-count-one":"n $","unitPattern-count-other":"n $"},currencies:{BGN:{displayName:"Bulgarian Lev","displayName-count-one":"Bulgarian lev","displayName-count-other":"Bulgarian leva",symbol:"BGN"},EUR:{displayName:"Euro","displayName-count-one":"euro","displayName-count-other":"euros",symbol:"€","symbol-alt-narrow":"€"},USD:{displayName:"US Dollar","displayName-count-one":"US dollar","displayName-count-other":"US dollars",symbol:"$","symbol-alt-narrow":"$"}},localeCurrency:"USD",accounting:{patterns:["$n","($n)"],groupSize:[3]}},calendar:{gmtFormat:"GMT{0}",gmtZeroFormat:"GMT",patterns:{d:"M/d/y",D:"EEEE, MMMM d, y",m:"MMM d",M:"MMMM d",y:"MMM y",Y:"MMMM y",F:"EEEE, MMMM d, y h:mm:ss a",g:"M/d/y h:mm a",G:"M/d/y h:mm:ss a",t:"h:mm a",T:"h:mm:ss a",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'"},dateTimeFormats:{full:"{1} 'at' {0}",long:"{1} 'at' {0}",medium:"{1}, {0}",short:"{1}, {0}",availableFormats:{Bh:"h B",Bhm:"h:mm B",Bhms:"h:mm:ss B",d:"d",E:"ccc",EBhm:"E h:mm B",EBhms:"E h:mm:ss B",Ed:"d E",Ehm:"E h:mm a",EHm:"E HH:mm",Ehms:"E h:mm:ss a",EHms:"E HH:mm:ss",Gy:"y G",GyMMM:"MMM y G",GyMMMd:"MMM d, y G",GyMMMEd:"E, MMM d, y G",h:"h a",H:"HH",hm:"h:mm a",Hm:"HH:mm",hms:"h:mm:ss a",Hms:"HH:mm:ss",hmsv:"h:mm:ss a v",Hmsv:"HH:mm:ss v",hmv:"h:mm a v",Hmv:"HH:mm v",M:"L",Md:"M/d",MEd:"E, M/d",MMM:"LLL",MMMd:"MMM d",MMMEd:"E, MMM d",MMMMd:"MMMM d","MMMMW-count-one":"'week' W 'of' MMMM","MMMMW-count-other":"'week' W 'of' MMMM",ms:"mm:ss",y:"y",yM:"M/y",yMd:"M/d/y",yMEd:"E, M/d/y",yMMM:"MMM y",yMMMd:"MMM d, y",yMMMEd:"E, MMM d, y",yMMMM:"MMMM y",yQQQ:"QQQ y",yQQQQ:"QQQQ y","yw-count-one":"'week' w 'of' Y","yw-count-other":"'week' w 'of' Y"}},timeFormats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateFormats:{full:"EEEE, MMMM d, y",long:"MMMM d, y",medium:"MMM d, y",short:"M/d/yy"},days:{format:{abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},"stand-alone":{abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]}},months:{format:{abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},"stand-alone":{abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]}},quarters:{format:{abbreviated:["Q1","Q2","Q3","Q4"],narrow:["1","2","3","4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},"stand-alone":{abbreviated:["Q1","Q2","Q3","Q4"],narrow:["1","2","3","4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]}},dayPeriods:{format:{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},narrow:{midnight:"mi",am:"a","am-alt-variant":"am",noon:"n",pm:"p","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"}},"stand-alone":{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"},narrow:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"}}},eras:{format:{wide:{0:"Before Christ",1:"Anno Domini","0-alt-variant":"Before Common Era","1-alt-variant":"Common Era"},abbreviated:{0:"BC",1:"AD","0-alt-variant":"BCE","1-alt-variant":"CE"},narrow:{0:"B",1:"A","0-alt-variant":"BCE","1-alt-variant":"CE"}}},dateFields:{era:{wide:"era"},year:{wide:"year",short:"yr.",narrow:"yr."},quarter:{wide:"quarter",short:"qtr.",narrow:"qtr."},month:{wide:"month",short:"mo.",narrow:"mo."},week:{wide:"week",short:"wk.",narrow:"wk."},day:{wide:"day",short:"day",narrow:"day"},weekday:{wide:"day of the week"},dayperiod:{wide:"AM/PM"},hour:{wide:"hour",short:"hr.",narrow:"hr."},minute:{wide:"minute",short:"min.",narrow:"min."},second:{wide:"second",short:"sec.",narrow:"sec."},zone:{wide:"time zone"}}}},supplemental:{likelySubtags:{en:"en-Latn-US"},currencyData:{region:{US:[{USD:{_from:"1792-01-01"}}]}},weekData:{firstDay:{US:"sun"},weekendStart:{"001":"sat"},weekendEnd:{"001":"sun"}}}};function d(e){return f(e)?v(e):e}function v(e){if(C[e])return C[e];if(C.supplemental.likelySubtags){var t=e.split("-"),n=t[0],r=t.slice(1),a=function(e,t){for(var n=C.supplemental.likelySubtags,r=0;r<t.length;r++){var a=n[e+"-"+t[r]];if(a)return a}if(n[e])return n[e]}(n,r),i=a?(s=r,u=(o=a).split("-"),l=u[0],c=u[1],d=u[2],C[o]||-1!==s.indexOf(d)&&C[l+"-"+d]||-1!==s.indexOf(c)&&C[l+"-"+c]||C[l]):null;if(i)return i}var o,s,u,l,c,d;throw p.NoLocale.error(e)}var l=/([#,0.]+)/g,c=/¤/g;function m(e){return l.lastIndex=0,e.replace(c,"$").replace(l,"n").split(";")}function y(e){return l.lastIndex=0,l.exec(e.split(";")[0])[0].split(".")[0].split(",").slice(1).map(function(e){return e.length}).reverse()}function g(e,t){for(var n in t)n.startsWith("unitPattern")&&(e[n]=t[n].replace("{0}","n").replace("{1}","$"))}function h(e,t){var n=C[e],r=n.numbers=n.numbers||{};for(var a in r.symbols=r.symbols||{},t)if("symbols-numberSystem-latn"===a)Object.assign(r.symbols,t[a]);else if(a.includes("Formats-numberSystem-latn")){var i=a.substr(0,a.indexOf("Formats-numberSystem-latn")),o=t[a].standard;r[i]={patterns:m(o)},"currency"===i?(r[i].groupSize=y((t["decimalFormats-numberSystem-latn"]||t[a]).standard),g(r[i],t[a]),r.accounting={patterns:m(t[a].accounting),groupSize:r[i].groupSize}):r[i].groupSize=y(o)}else"currencies"===a&&(r.currencies=t[a])}var M={s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'"},b=/y+/g,S=[["dateFormats","short"]],D={D:[["dateFormats","full"]],m:[["dateTimeFormats","availableFormats","MMMd"]],M:[["dateTimeFormats","availableFormats","MMMMd"]],y:[["dateTimeFormats","availableFormats","yMMM"]],Y:[["dateTimeFormats","availableFormats","yMMMM"]],F:[["dateFormats","full"],["timeFormats","medium"]],g:[["dateTimeFormats","availableFormats","yMd"],["timeFormats","short"]],G:[["dateTimeFormats","availableFormats","yMd"],["timeFormats","medium"]],t:[["timeFormats","short"]],T:[["timeFormats","medium"]]};function w(e){for(var t=[],n=Object.getOwnPropertyNames(e),r=0;r<n.length;r++){var a=e[n[r]];t.push(a)}return t}function x(e,t){var n={};for(var r in e){var a=n[r]={};for(var i in e[r]){var o=e[r][i];a[i]=t?o:w(o)}}return n}function I(e,t){var n=C[e].calendar,r={};for(var a in t){var i=a.split("-"),o=i[0],s=i[1];void 0===s&&(s="wide");var u=r[o]||{},l=t[a].displayName;l&&(u[s]=l,r[o]=u)}n.dateFields=r}function F(e,t){for(var n=[],r=0;r<e.length;r++){for(var a=e[r],i=t,o=0;o<a.length;o++)i=i[a[o]];n.push(i)}return n.join(" ")}function O(e,t){var n=C[e].calendar,r=n.patterns={};for(var a in r.d=F(S,t).replace(b,"y"),D)r[a]=F(D[a],t);for(var i in M)r[i]=M[i];var o=t.dateTimeFormats;n.dateTimeFormats={full:o.full,long:o.long,medium:o.medium,short:o.short,availableFormats:o.availableFormats},n.timeFormats=t.timeFormats,n.dateFormats=t.dateFormats}function E(e,t){var n,r,a,i=C[e].calendar=C[e].calendar||{};for(var o in t)"timeZoneNames"===o?(i.gmtFormat=t[o].gmtFormat,i.gmtZeroFormat=t[o].gmtZeroFormat):"calendars"===o&&t[o].gregorian?(O(e,t[o].gregorian),n=e,r=t[o].gregorian,a=void 0,(a=C[n].calendar).days=x(r.days),a.months=x(r.months),a.quarters=x(r.quarters),a.dayPeriods=x(r.dayPeriods,!0),a.eras=function(e){var t={},n=t.format={},r={eraAbbr:"abbreviated",eraNames:"wide",eraNarrow:"narrow"};for(var a in e)n[r[a]]=e[a];return t}(r.eras)):"fields"===o&&I(e,t.fields)}function N(e){if(e.territory)return e.territory;var t,n=e.name,r=e.identity;return t=r&&r.territory?r.territory:function(e,t){var n=C.supplemental.likelySubtags,r=e.split("-");if(n){var a=n[e]||n[r[0]];a&&(r=a.split("-"))}if(t)for(var i=r.length-1;1<=i;i--){var o=r[i];o!==t.variant&&o!==t.script||r.splice(i,1)}var s=r.length;if(1<s)return r[s-1].toUpperCase()}(n,r),e.territory=t}function H(e,t){for(var n in t)"numbers"===n?h(e,t[n]):"dates"===n&&E(e,t[n])}function T(){for(var e=arguments,t=arguments.length,n=0;n<t;n++){var r=e[n];if(r.main){var a=Object.keys(r.main)[0],i=r.main[a],o=C[a]=C[a]||{};o.name=o.name||a,o.identity=o.identity||i.identity,N(o),H(a,i)}else if(r.supplemental)if(r.supplemental.weekData)C.supplemental.weekData={firstDay:r.supplemental.weekData.firstDay,weekendStart:r.supplemental.weekData.weekendStart,weekendEnd:r.supplemental.weekData.weekendEnd};else if(r.supplemental.likelySubtags)C.supplemental.likelySubtags=Object.assign(C.supplemental.likelySubtags,r.supplemental.likelySubtags);else if(r.supplemental.currencyData){var s=C.supplemental.currencyData;s.region=Object.assign(s.region||{},r.supplemental.currencyData.region),s.fractions=Object.assign(s.fractions||{},r.supplemental.currencyData.fractions)}}}function k(e,t){var n,r=t.type,a=t.nameType,i=t.standAlone,o=t.lower,s=i?"stand-alone":"format",u=(o?"lower-":"")+a,l=d(e).calendar[r][s],c=l[u];return!c&&o&&(c=l[u]=(n=l[a],(Array.isArray(n)?function(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].toLowerCase());return t}:function(e){var t={};for(var n in e)t[n]=e[n].toLowerCase();return t})(n))),c}function _(e){var t=e.split("-"),n=parseInt(t[0],10),r=parseInt(t[1],10)-1,a=parseInt(t[2],10);return new Date(n,r,a)}var P=p.NoCurrency,A=p.NoCurrencyDisplay,z=p.NoSupplementalCurrency,L=p.NoCurrencyRegion,j=p.NoValidCurrency,U={"001":"USD",150:"EUR"};function X(e,t,n){var r=d(e).numbers.currencies;if(r){var a=r[t];if(a)return a;if(n)throw A.error()}else if(n)throw P.error()}function B(e,t){return t.length-e.length}function q(e,t){var n=d(e),r=n.numbers;if(!r.localeCurrency){var a=function(e,t){if(void 0===t&&(t=!0),U[e])return U[e];var n=C.supplemental.currencyData;if(n){var r=n.region[e];if(r)return function(e){for(var t,n,r,a,i=0;i<e.length;i++){var o=e[i],s=Object.keys(o)[0],u=o[s];if("XXX"!==s&&"false"!==u._tender&&u._from)if(u._to){if(!r){var l=_(u._from),c=_(u._to);(!n||n.to<c||n.from<l)&&(t=s,n={from:l,to:c})}}else{var d=_(u._from);(!a||a<d)&&(r=s,a=d)}}return r||t}(r);if(t)throw L.error(e)}else if(t)throw z.error()}(N(n),t);if(!a&&t)throw j.error(n.name);r.localeCurrency=a}return r.localeCurrency}var R=["sun","mon","tue","wed","thu","fri","sat"],G=p.NoWeekData,Z=p.NoFirstDay;function Q(e){var t=d(e);if(!isNaN(t.firstDay))return t.firstDay;var n=C.supplemental.weekData;if(!n)throw G.error();var r=n.firstDay[N(t)]||n.firstDay["001"];if(!r)throw Z.error();return t.firstDay=R.indexOf(r),t.firstDay}function W(e){return 1/e==-1/0}function $(e,i){return void 0===i&&(i={}),i.currency||(i.currency=q(e,!0)),function(e){var t=i.value,n=i.currency,r=i.currencyDisplay;if(void 0===r&&(r="symbol"),"code"===r)return n;var a=X(e,n,!0);return"symbol"===r?a["symbol-alt-narrow"]||a.symbol:1!==t?a["displayName-count-other"]:a["displayName-count-one"]}(e)}function K(e,t,n,r,a){var i=a.numbers.symbols,o=e.indexOf(i.decimal),s=r.groupSize.slice(),u=s.shift(),l=-1!==o?o:n+1,c=e.substring(t,l),d=e,m=c.length;if(u<=m){for(var f=m,p=[];-1<f;){var v=c.substring(f-u,f);v&&p.push(v),f-=u;var y=s.shift();if(0===(u=void 0!==y?y:u)){(v=c.substring(0,f))&&p.push(v);break}}c=p.reverse().join(i.group),d=e.substring(0,t)+c+e.substring(l)}return d}function Y(e){return"currency"===e||"accounting"===e}function J(e,t,n){void 0===t&&(t=2),void 0===n&&(n=!1);var r=t-String(e).length,a=e;if(0<r){var i=new Array(1+r).join("0");a=n?e+i:i+e}return a}function V(e,t){var n=e,r=t||0;return n=n.toString().split("e"),n=(n=Math.round(Number(n[0]+"e"+(n[1]?Number(n[1])+r:r)))).toString().split("e"),(n=Number(n[0]+"e"+(n[1]?Number(n[1])-r:-r))).toFixed(Math.min(r,20))}p.NoWeekData;var ee=/0+$/;var te=/(\\.)|(['][^']*[']?)|(["][^"]*["]?)/g;function ne(e,t){var n=e.format;-1!==n.indexOf("%")&&(e.style="percent",e.symbol=t.numbers.symbols.percentSign,e.number*=100),-1!==n.indexOf("$")&&(e.style="currency",e.symbol=$(t))}function re(e){var t=e.format;if(-1<t.indexOf("'")||-1<t.indexOf('"')||-1<t.indexOf("\\")){var r=e.literals=[];e.format=t.replace(te,function(e){var t=e.charAt(0).replace("\\",""),n=e.slice(1).replace(t,"");return r.push(n),"__??__"})}}var ae=/(\.(?:[0-9]*[1-9])?)0+$/g,ie=/\.$/,oe=/\,/g;function se(e,t,n){return-1===e&&-1!==t?t:-1!==e&&-1===t?e:n?Math.min(e,t):Math.max(e,t)}function ue(e,t,n){var M,r,a,i,o,s,u,l,c,d,m={negative:e<0,number:Math.abs(e),negativeZero:W(e),format:t};return function(e){var t,n=e.number,r=e.format;if(r=r.split(";"),(e.negative||e.negativeZero)&&r[1])r=r[1],e.hasNegativeFormat=!0;else if(0===n){var a=r[2];r=a||r[0],a&&(-1===(t=a).indexOf("#")&&-1===t.indexOf("0"))&&(e.constant=a)}else r=r[0];e.format=r}(m),m.constant?m.constant:(re(m),ne(m,n),(d=m).hasGroup=-1<d.format.indexOf(","),d.hasGroup&&(d.format=d.format.replace(oe,"")),function(e){var t,n,r=e.number,a=e.format,i=a.indexOf(".");if(-1!==i){var o=a.lastIndexOf("0")-i,s=a.lastIndexOf("#")-i,u=-1<o,l=-1<s,c=r.toString().split("e"),d=(c=(c=c[1]?V(r,Math.abs(c[1])):c[0]).split(".")[1]||"").length,m=-1;u||l?u&&s<o?d=o:o<s&&(l&&s<d?d=s:u&&d<o&&(d=o),m=u?o:0):(e.format=a.substring(0,i)+a.substring(i+1),i=-1,d=0),-1<d&&(r=V(r,d),-1<m&&(t=r,n=0===m?ae:new RegExp("(\\.[0-9]{"+m+"}[1-9]*)0+$","g"),r=t.replace(n,"$1").replace(ie,"")))}else r=V(r);e.negative&&0<=-1*r&&!e.negativeZero&&(e.negative=!1),e.number=r,e.decimalIndex=i}(m),o=(i=m).format,s=o.indexOf("#"),u=o.indexOf("0"),l=se(s,u,!0),c=se(s=o.lastIndexOf("#"),u=o.lastIndexOf("0")),l===o.length&&(c=l),i.start=l,i.end=c,i.lastZeroIndex=u,r=n,a=(M=m).number,-1!==M.start&&(a=function(e,t){var n=e;if(t)for(var r=t.length,a=0;a<r;a++)n=n.replace("__??__",t[a]);return n}(a=function(e,t,n){var r=e;if("currency"===t||"percent"===t){r="";for(var a=0,i=e.length;a<i;a++){var o=e.charAt(a);r+="$"===o||"%"===o?n:o}}return r}(a=function(e){var t=M.start,n=M.end,r=M.negative,a=M.negativeZero,i=M.format,o=M.decimalIndex,s=M.lastZeroIndex,u=M.hasNegativeFormat,l=M.hasGroup,c=M.number,d=c.toString().split("."),m=i.length,f=d[0],p=d[1]||"",v=f.length,y="";c=i.substring(0,t),!r&&!a||u||(c+="-");for(var g=t;g<m;g++){var h=i.charAt(g);if(-1===o){if(n-g<v){c+=f;break}}else if(-1!==s&&s<g&&(y=""),o-g<=v&&-1<o-g&&(c+=f,g=o),o===g){c+=(p?e.numbers.symbols.decimal:"")+p,g+=n-o+1;continue}"0"===h?(c+=h,y=h):"#"===h&&(c+=y)}return l&&(c=K(c,t+(r&&!u?1:0),Math.max(n,v+t),e.numbers.decimal,e)),t<=n&&(c+=i.substring(n+1)),c}(r),M.style,M.symbol),M.literals)),a)}var le=/^(n|c|p|e|a)(\d*)$/i;function ce(e){return f(e)?function(e){var t=le.exec(e);if(t){var n={style:"decimal"},r=t[1].toLowerCase();return"c"===r?n.style="currency":"a"===r?n.style="accounting":"p"===r?n.style="percent":"e"===r&&(n.style="scientific"),t[2]&&(n.minimumFractionDigits=n.maximumFractionDigits=parseInt(t[2],10)),n}}(e):e}function de(e,t,n){if(void 0===t&&(t="n"),void 0===n&&(n="en"),null==e)return"";if(!isFinite(e))return String(e);var r,a=v(n),i=ce(t);if(i){var o=i.style||"decimal";r=function(e,t,n){var r=n.numbers.symbols,a=t.style,i=Y(a);if("scientific"===a)return(void 0!==t.minimumFractionDigits?e.toExponential(t.minimumFractionDigits):e.toExponential()).replace(".",r.decimal);var o,s=e;i&&(t.value=s,o=$(n,t)),"percent"===a&&(s*=100,o=r.percentSign);var u,l,c,d,m,f,p,v,y,g,h=(p=(u=t).minimumFractionDigits,v=u.maximumFractionDigits,y=u.style,(g=Y(y))&&(c=u.currency,m=d=2,(f=((C.supplemental.currencyData||{}).fractions||{})[c])&&f._digits&&(m=d=parseInt(f._digits,10)),l={minimumFractionDigits:d,maximumFractionDigits:m}),void 0===p&&(p=g?l.minimumFractionDigits:0),void 0===v&&(v="percent"===y?Math.max(p,0):g?Math.max(p,l.maximumFractionDigits):Math.max(p,3)),{minimumFractionDigits:p,maximumFractionDigits:v}),M=h.minimumFractionDigits,b=(s=V(s,h.maximumFractionDigits))<0,S=W(e),D=s.split("."),w=D[0],x=J(D[1]?D[1].replace(ee,""):"",M,!0);b&&(w=w.substring(1)),t.minimumIntegerDigits&&(w=J(w,t.minimumIntegerDigits));var I,F,O,E=!1!==t.useGrouping?K(w,0,w.length,t,n):w;if(x&&(E+=r.decimal+x),i&&"name"===t.currencyDisplay)F=n.numbers.currency,O=1!==e?F["unitPattern-count-other"]:F["unitPattern-count-one"],e<0&&(O=O.replace("n","-n")),I=O;else{var N=t.patterns;I=b||S?N[1]||"-"+N[0]:N[0]}return"n"!==I||b?function(e,t,n){for(var r="",a=0,i=t.length;a<i;a++){var o=t.charAt(a);r+="n"===o?e:"$"===o||"%"===o?n:o}return r}(E,I,o):E}(e,Object.assign({},a.numbers[o],i),a)}else r=ue(e,t,a);return r}function me(e){return"number"==typeof e}var fe=/[eE][\-+]?[0-9]+/,pe=/\u00A0/g;function ve(e,t){if(1<t.length){var n=(t[1]||"").replace("$","").split("n");if(-1<e.indexOf(n[0])&&-1<e.indexOf(n[1]))return e.replace(n[0],"").replace(n[1],"")}}var ye=/\{(\d+)}/g;function ge(e){var n=arguments;return e.replace(ye,function(e,t){return n[parseInt(t,10)+1]})}var he=[2,1,5,3,4],Me={};Me[(-2).toString()]=8,Me[(-1).toString()]=6,Me[2..toString()]=6;var be={numeric:1,"2-digit":2,short:Me[1..toString()]=3,long:4,narrow:5},Se=/[hHmsSzZoOvVxX]/,De=[{key:"era",specifier:"G"},{key:"year",specifier:"y"},{key:"month",specifier:"M"},{key:"day",specifier:"d"},{key:"weekday",specifier:"E"},{key:"hour",getSpecifier:function(e){return e.hour12?"h":"H"}},{key:"minute",specifier:"m"},{key:"second",specifier:"s"},{key:"timeZoneName",specifier:"z"}],we={e:"c",E:"c",M:"L",Q:"q"},xe={},Ie={};function Fe(e){return xe[e]||(xe[e]=new RegExp(e+"+")),xe[e]}function Oe(e){for(var t=[],n=e.charAt(0),r=n,a=1;a<e.length;a++){var i=e.charAt(a);i===r?n+=i:(t.push(n),n=r=i)}return t.push(n),t}function Ee(e,t){var n,r,a=e.length,i=-Number.MAX_VALUE;for(var o in t){for(var s=[],u=o.replace("v","z"),l=0,c=0;c<a;c++){var d=e[c],m=(Fe(d[0]).exec(u)||[])[0];if(m){if(u=u.replace(m,""),m.length!==d.length){var f=Math.max(Math.min(he[m.length]-he[d.length],2),-2);l-=Me[f]}}else l-=120;if(s.push(m),l<i)break}u.length&&(l-=20*Oe(u).length),i<l&&(i=l,n=s,r=t[o])}r=r.replace("v","z");for(var p=0;p<a;p++){var v=n[p];if(v&&v!==e[p]){var y=n[p][0];r=r.replace(Fe(y),e[p]),we[y]&&(r=r.replace(Fe(we[y]),e[p]))}}return r}function Ne(e,t){var n,r=t.calendar;if(f(e))n=r.patterns[e]?r.patterns[e]:e;else if(e){if(e.pattern)return e.pattern;var a=e.skeleton;a||(e.datetime?n=ge(r.dateTimeFormats[e.datetime],r.timeFormats[e.datetime],r.dateFormats[e.datetime]):e.date?n=r.dateFormats[e.date]:e.time?n=r.timeFormats[e.time]:a=function(e){for(var t=[],n=0;n<De.length;n++){var r=De[n],a=e[r.key];if(a){var i=r.specifier||r.getSpecifier(e);t.push(i.repeat(be[a]))}}return t.join("")}(e)),a&&(n=function(e,t){var n=t.calendar.dateTimeFormats.availableFormats;if(n[e])return n[e];if(Ie[t.name]&&Ie[t.name][e])return Ie[t.name][e];var r,a,i,o,s=e.search(Se);if(0<s){var u=e.substr(0,s),l=e.substr(s);r=ge(t.calendar.dateTimeFormats.short,n[l]||Ee(Oe(l),n),n[u]||Ee(Oe(u),n))}else r=Ee(Oe(e),n);return a=e,i=r,o=t.name,Ie[o]||(Ie[o]={}),Ie[o][a]=i,r}(a,t))}return n=n||r.patterns.d}function Ce(e){var t;return e<=3?t="abbreviated":4===e?t="wide":5===e?t="narrow":6===e&&(t="short"),t}function He(e,t,n,r,a){return k(e,{type:t,nameType:Ce(n),standAlone:r,lower:a})}function Te(e){return"function"==typeof e}function ke(e){return Boolean(e)&&Te(e.getTime)&&Te(e.getMonth)}var _e={G:"era",y:"year",q:"quarter",Q:"quarter",M:"month",L:"month",d:"day",E:"weekday",c:"weekday",e:"weekday",h:"hour",H:"hour",k:"hour",K:"hour",m:"minute",s:"second",a:"dayperiod",x:"zone",X:"zone",z:"zone",Z:"zone"},Pe=/d{1,2}|E{1,6}|e{1,6}|c{3,6}|c{1}|M{1,5}|L{1,5}|y{1,4}|H{1,2}|h{1,2}|k{1,2}|K{1,2}|m{1,2}|a{1,5}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|x{1,5}|X{1,5}|G{1,5}|q{1,5}|Q{1,5}|"[^"]*"|'[^']*'/g;function Ae(e,t,n,r){return t<=2?J(e+1,t):He(n,"months",t,r)[e]}function ze(e,t,n,r){var a=Math.floor(e.getMonth()/3);return t<3?a+1:He(n,"quarters",t,r)[a]}function Le(e,t,n){var r=n.shortHours,a=n.optionalMinutes,i=n.separator,o=n.localizedName,s=n.zZeroOffset,u=e.getTimezoneOffset()/60;if(0==u&&s)return"Z";var l=u<=0?"+":"-",c=Math.abs(u).toString().split("."),d=c[1]||0,m=l+(r?c[0]:J(c[0],2));return!d&&a||(m+=(i?":":"")+J(d,2)),o&&(m=ge(0==u?t.calendar.gmtZeroFormat:t.calendar.gmtFormat,m)),m}function je(e,t,n,r){var a,i;return t<3?((a=e.getDay())<(i=Q(n))?7-i+a:a-i)+1:He(n,"days",t,r)[e.getDay()]}var Ue={};function Xe(n,e,t){if(void 0===t&&(t="en"),!ke(n))return null==n?"":n;var r=v(t);return Ne(e,r).replace(Pe,function(e){var t=e.length;return e.includes("'")||e.includes('"')?e.slice(1,t-1):Ue[e[0]](n,t,r)})}function Be(e,t,n){var r=e.getTimezoneOffset(),a=new Date(e.getTime()+6e4*(t-n)),i=a.getTimezoneOffset();return new Date(a.getTime()+6e4*(i-r))}Ue.d=function(e,t){return J(e.getDate(),t)},Ue.E=function(e,t,n){return He(n,"days",t)[e.getDay()]},Ue.M=function(e,t,n){return Ae(e.getMonth(),t,n,!1)},Ue.L=function(e,t,n){return Ae(e.getMonth(),t,n,!0)},Ue.y=function(e,t){var n=e.getFullYear();return 2===t&&(n%=100),J(n,t)},Ue.h=function(e,t){return J(e.getHours()%12||12,t)},Ue.H=function(e,t){return J(e.getHours(),t)},Ue.k=function(e,t){return J(e.getHours()||24,t)},Ue.K=function(e,t){return J(e.getHours()%12,t)},Ue.m=function(e,t){return J(e.getMinutes(),t)},Ue.s=function(e,t){return J(e.getSeconds(),t)},Ue.S=function(e,t){return 0!==e.getMilliseconds()?String(e.getMilliseconds()/1e3).split(".")[1].substr(0,t):J("",t)},Ue.a=function(e,t,n){return He(n,"dayPeriods",t)[e.getHours()<12?"am":"pm"]},Ue.z=function(e,t,n){return Le(e,n,{shortHours:t<4,optionalMinutes:t<4,separator:!0,localizedName:!0})},Ue.Z=function(e,t,n){return Le(e,n,{separator:3<t,localizedName:4===t,zZeroOffset:5===t})},Ue.x=function(e,t,n){return Le(e,n,{optionalMinutes:1===t,separator:3===t||5===t})},Ue.X=function(e,t,n){return Le(e,n,{optionalMinutes:1===t,separator:3===t||5===t,zZeroOffset:!0})},Ue.G=function(e,t,n){var r=0<=e.getFullYear()?1:0;return He(n,"eras",t)[r]},Ue.e=je,Ue.c=function(e,t,n){return je(e,t,n,!0)},Ue.q=function(e,t,n){return ze(e,t,n,!0)},Ue.Q=ze;var qe=/([+|\-]\d{1,2})(:?)(\d{2})?/,Re=/^\/Date\((.*?)\)\/$/,Ge=/[+-]\d*/,Ze={2:/^\d{1,2}/,3:/^\d{1,3}/,4:/^\d{4}/},Qe=/\d+/,We=/^ */,$e=/ *$/,Ke=["yyyy/MM/dd HH:mm:ss","yyyy/MM/dd HH:mm","yyyy/MM/dd","E MMM dd yyyy HH:mm:ss","yyyy-MM-ddTHH:mm:ss.SSSSSSSXXX","yyyy-MM-ddTHH:mm:ss.SSSXXX","yyyy-MM-ddTHH:mm:ss.SSXXX","yyyy-MM-ddTHH:mm:ssXXX","yyyy-MM-ddTHH:mm:ss.SSSSSSS","yyyy-MM-ddTHH:mm:ss.SSS","yyyy-MM-ddTHH:mmXXX","yyyy-MM-ddTHH:mmX","yyyy-MM-ddTHH:mm:ss","yyyy-MM-ddTHH:mm","yyyy-MM-dd HH:mm:ss","yyyy-MM-dd HH:mm","yyyy-MM-dd","HH:mm:ss","HH:mm"],Ye=["G","g","F","Y","y","M","m","D","d","y","T","t"];function Je(e,t,n){return!(t<=e&&e<=n)}function Ve(e,t){for(var n=t.format,r=t.idx,a=0;n[r]===e;)a++,r++;return 0<a&&--r,t.idx=r,a}function et(e,t){var n=e?Ze[e]||new RegExp("^\\d{1,"+e+"}"):Qe,r=t.value.substr(t.valueIdx,e).match(n);return r?(r=r[0],t.valueIdx+=r.length,parseInt(r,10)):null}function tt(e,t,n){for(var r,a,i,o=0,s=e.length,u=0,l=0;o<s;o++)a=(r=e[o]).length,i=t.value.substr(t.valueIdx,a),n&&(i=i.toLowerCase()),i===r&&u<a&&(u=a,l=o);return u?(t.valueIdx+=u,l+1):null}function nt(e){var t=!1;return e.value.charAt(e.valueIdx)===e.format[e.idx]&&(e.valueIdx++,t=!0),t}function rt(e,t,n){var r=n.shortHours,a=n.noSeparator,i=n.optionalMinutes,o=n.localizedName,s=n.zLiteral;if(e.UTC=!0,s&&"Z"===e.value.charAt(e.valueIdx))return e.valueIdx++,!1;if(o&&!tt(function(e){var t=e.gmtFormat,n=e.gmtZeroFormat;if(!t)throw p.NoGMTInfo.error();return[t.replace("{0}","").toLowerCase(),n.replace("{0}","").toLowerCase()]}(t.calendar),e,!0))return!0;var u=qe.exec(e.value.substr(e.valueIdx,6));if(!u)return!o;var l=u[1],c=u[3],d=parseInt(l,10),m=u[2],f=parseInt(c,10);return!!(isNaN(d)||!r&&3!==l.length||!i&&isNaN(f)||a&&m)||(isNaN(f)&&(f=null),!!(Je(d,-12,13)||f&&Je(f,0,59))||(e.valueIdx+=u[0].length,e.hoursOffset=d,void(e.minutesOffset=f)))}function at(e,t,n){var r=Ve(e,t),a=He(n,"months",r,"L"===e,!0),i=r<3?et(2,t):tt(a,t,!0);if(null===i||Je(i,1,12))return!0;t.month=i-1}function it(e,t,n){var r=Ve(e,t),a=He(n,"days",r,"c"===e,!0),i=r<3?et(1,t):tt(a,t,!0);if(!i&&0!==i||Je(i,1,7))return!0}var ot={};function st(e,t,n){for(var r=Ne(t,n).split(""),a={format:r,idx:0,value:(u=e,l=t,""+We.exec(l)[0]+u+$e.exec(l)[0]),valueIdx:0,year:null,month:null,day:null,hours:null,minutes:null,seconds:null,milliseconds:null},i=r.length,o=!1;a.idx<i;a.idx++){var s=r[a.idx];if(o)"'"===s&&(o=!1),nt(a);else if(ot[s]){if(ot[s](a,n))return null}else if("'"===s)o=!0,nt(a);else if(!nt(a))return null}var u,l,c,d,m,f,p,v,y,g,h,M,b,S,D,w,x;return a.valueIdx<e.length?null:(m=a.year,f=a.month,p=a.day,v=a.hours,y=a.minutes,g=a.seconds,h=a.milliseconds,M=a.pmHour,b=a.UTC,S=a.hoursOffset,D=a.minutesOffset,w=null!==v||null!==y||g||null,x=new Date,null===m&&null===f&&null===p&&w?(m=x.getFullYear(),f=x.getMonth(),p=x.getDate()):(null===m&&(m=x.getFullYear()),null===p&&(p=1)),M&&v<12&&(v+=12),b?(S&&(v+=-S),D&&(y+=-D*(S<0?-1:1)),c=new Date(Date.UTC(m,f,p,v,y,g,h))):(d=c=new Date(m,f,p,v,y,g,h),v||23!==d.getHours()||d.setHours(d.getHours()+2)),m<100&&c.setFullYear(m),(c.getDate()!==p&&void 0===b?null:c)||null)}function ut(e,t,n){if(void 0===n&&(n="en"),!e)return null;if(ke(e))return e;var r=String(e).trim(),a=function(e){if(e&&0===e.indexOf("/D")){var t=Re.exec(e);if(t){t=t[1];var n=Ge.exec(t.substring(1));return t=new Date(parseInt(t,10)),n&&(a="-"===(r=n[0]).substr(0,1)?-1:1,i=r.substring(1),n=a*(i=60*parseInt(i.substr(0,2),10)+parseInt(i.substring(2),10)),t=Be(t,t.getTimezoneOffset(),0),t=Be(t,0,-1*n)),t}}var r,a,i}(r);if(a)return a;for(var i=v(n),o=t||function(){for(var e=[],t=i.calendar.patterns,n=Ye.length,r=0;r<n;r++)e.push(t[Ye[r]]);return e.concat(Ke)}(),s=(o=Array.isArray(o)?o:[o]).length,u=0;u<s;u++)if(a=st(r,o[u],i))return a;return a}ot.d=function(e){Ve("d",e);var t=et(2,e);if(null===t||Je(t,1,31))return!0;null===e.day&&(e.day=t)},ot.E=function(e,t){if(null===tt(He(t,"days",Ve("E",e),!1,!0),e,!0))return!0},ot.M=function(e,t){return at("M",e,t)},ot.L=function(e,t){return at("L",e,t)},ot.y=function(e){var t=Ve("y",e),n=et(1===t?void 0:t,e);if(null===n)return!0;if(2===t){var r=(new Date).getFullYear();2029<(n=r-r%100+n)&&(n-=100)}e.year=n},ot.h=function(e){Ve("h",e);var t=et(2,e);if(12===t&&(t=0),null===t||Je(t,0,11))return!0;e.hours=t},ot.K=function(e){Ve("K",e);var t=et(2,e);if(null===t||Je(t,0,11))return!0;e.hours=t},ot.a=function(e,t){var n=He(t,"dayPeriods",Ve("a",e),!1,!0),r=tt([n.pm],e,!0);if(!r&&!tt([n.am],e,!0))return!0;e.pmHour=r},ot.H=function(e){Ve("H",e);var t=et(2,e);if(null===t||Je(t,0,23))return!0;e.hours=t},ot.k=function(e){Ve("k",e);var t=et(2,e);if(null===t||Je(t,1,24))return!0;e.hours=24===t?0:t},ot.m=function(e){Ve("m",e);var t=et(2,e);if(null===t||Je(t,0,59))return!0;e.minutes=t},ot.s=function(e){Ve("s",e);var t=et(2,e);if(null===t||Je(t,0,59))return!0;e.seconds=t},ot.S=function(e){var t=Ve("S",e),n=e.value.substr(e.valueIdx,t),r=null;if(isNaN(parseInt(n,10))||(r=V(r=parseFloat("0."+n,10),3),r*=1e3,e.valueIdx+=t),null===r||Je(r,0,999))return!0;e.milliseconds=r},ot.z=function(e,t){var n=Ve("z",e)<4,r=rt(e,t,{shortHours:n,optionalMinutes:n,localizedName:!0});if(r)return r},ot.Z=function(e,t){var n=Ve("Z",e),r=rt(e,t,{noSeparator:n<4,zLiteral:5===n,localizedName:4===n});if(r)return r},ot.x=function(e,t){var n=Ve("x",e),r=rt(e,t,{noSeparator:3!==n&&5!==n,optionalMinutes:1===n});if(r)return r},ot.X=function(e,t){var n=Ve("X",e),r=rt(e,t,{noSeparator:3!==n&&5!==n,optionalMinutes:1===n,zLiteral:!0});if(r)return r},ot.G=function(e,t){var n=He(t,"eras",Ve("G",e),!1,!0);if(null===tt([n[0],n[1]],e,!0))return!0},ot.e=function(e,t){return it("e",e,t)},ot.c=function(e,t){return it("c",e,t)};var lt={month:{type:"months",minLength:3,standAlone:"L"},quarter:{type:"quarters",minLength:3,standAlone:"q"},weekday:{type:"days",minLength:{E:0,c:3,e:3},standAlone:"c"},dayperiod:{type:"dayPeriods",minLength:0},era:{type:"eras",minLength:0}};function ct(e,t){var n=e[e.length-1];n&&"literal"===n.type?n.pattern+=t:e.push({type:"literal",pattern:t})}var dt=/\{(\d+)(:[^\}]+)?\}/g;function mt(e,t,n){if(t){if(ke(e))return Xe(e,t,n);if(me(e))return de(e,t,n)}return null!=e?e:""}function ft(e,r,a){return e.replace(dt,function(e,t,n){return mt(r[parseInt(t,10)],n?n.substring(1):"",a)})}var pt,vt,yt=(wt.prototype.format=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return 1===t.length&&Array.isArray(t[0])?ft(e,t[0],this.locale):ft(e,t,this.locale)},wt.prototype.formatDate=function(e,t){return Xe(e,t,this.locale)},wt.prototype.toString=function(e,t){return mt(e,t,this.locale)},wt.prototype.parseNumber=function(e,t){return function(e,t,n){if(void 0===t&&(t="en"),void 0===n&&(n={}),!e&&0!==e)return null;if(me(e))return e;var r,a=v(t),i=a.numbers.symbols,o=e.toString(),s=n||{};if(f(n)&&(re(s={format:n}),o=function(e){var t=s.literals,n=e;if(t)for(var r=0;r<t.length;r++)n=n.replace(t[r],"");return n}(o),ne(s,a)),("percent"===s.style||-1<o.indexOf(i.percentSign))&&(o=o.replace(i.percentSign,""),r=!0),fe.test(o))return o=parseFloat(o.replace(i.decimal,".")),isNaN(o)?null:o;var u=function(e,i,t){var n,r=ce(t)||{},a=Y(r.style),o=e,s=r.currency||q(i,a);if(s){var u=function(e,t){void 0===t&&(t=!0);var n=X(i,e,t);if(n){if(!n.displays){var r=[e];for(var a in n)r.push(n[a]);r.sort(B),n.displays=r}return n.displays}}(s,a);if(u)for(var l=0;l<u.length;l++){var c=u[l];if(o.includes(c)){o=o.replace(c,""),a=!0;break}}if(a){var d=ve(o,i.numbers.currency.patterns)||ve(o,i.numbers.accounting.patterns);d&&(n=!0,o=d)}}return{number:o,negative:n}}(o,a,s),l=u.negative,c=u.number,d=(o=String(c).trim()).indexOf("-");if(0<d)return null;var m=-1<d;return m=void 0!==l?l:m,o=o.replace("-","").replace(pe," ").split(i.group.replace(pe," ")).join("").replace(i.decimal,"."),o=parseFloat(o),isNaN(o)?o=null:m&&(o*=-1),o&&r&&(o/=100),o}(e,this.locale,t)},wt.prototype.parseDate=function(e,t){return ut(e,t,this.locale)},wt.prototype.formatNumber=function(e,t){return de(e,t,this.locale)},wt.prototype.dateFieldName=function(e){return function(e,t){void 0===t&&(t="en");var n=v(t).calendar.dateFields;if(!n)throw p.NoDateFieldNames.error();var r=n[e.type]||{};return r[e.nameType]||r.wide}(e,this.locale)},wt.prototype.dateFormatNames=function(e){return k(this.locale,e)},wt.prototype.splitDateFormat=function(e){return function(e,t){void 0===t&&(t="en");for(var n=Ne(e,v(t)),r=[],a=Pe.lastIndex=0,i=Pe.exec(n);i;){var o=i[0];if(a<i.index&&ct(r,n.substring(a,i.index)),o.startsWith('"')||o.startsWith("'"))ct(r,o);else{var s=o[0],u=_e[s],l={type:u,pattern:o};"hour"===u&&(l.hour12="h"===(f=o)||"K"===f);var c=lt[u];if(c){var d=me(c.minLength)?c.minLength:c.minLength[s],m=o.length;d<=m&&(l.names={type:c.type,nameType:Ce(m),standAlone:c.standAlone===s})}r.push(l)}a=Pe.lastIndex,i=Pe.exec(n)}var f;return a<n.length&&ct(r,n.substring(a)),r}(e,this.locale)},wt.prototype.numberSymbols=function(){return d(this.locale).numbers.symbols},wt.prototype.firstDay=function(){return Q(this.locale)},wt),gt=r.createContext(new yt("en")),ht=(pt=function(e,t){return(pt=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])})(e,t)},function(e,t){function n(){this.constructor=e}pt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Mt=(vt=r.Component,ht(Dt,vt),Dt.prototype.getIntlService=function(){return new yt(this.props.locale)},Dt.prototype.getChildContext=function(){return{kendoIntlService:this.getIntlService()}},Dt.prototype.render=function(){return r.createElement(gt.Provider,{value:this.getIntlService()},r.Children.only(this.props.children))},Dt.propTypes={locale:a.string},Dt.childContextTypes={kendoIntlService:a.object},Dt),bt=Object.create({}),St=function(e,t,n){for(var r in e)if(e.hasOwnProperty(r)){var a=n.slice();if(a.push(r),"string"!=typeof e[r])St(e[r],t,a);else{var i=e[r];Object.defineProperty(t,a.join("."),{value:i})}}};function Dt(){return null!==vt&&vt.apply(this,arguments)||this}function wt(e){this.locale=e}function xt(e,t){var n=bt[t]=bt[t]||{};St(e,n,[])}var It,Ft,Ot=(Tt.prototype.toLanguageString=function(e,t){return this.language&&bt[this.language]&&bt[this.language].hasOwnProperty(e)?bt[this.language][e]:t},Tt),Et=r.createContext(new Ot("en")),Nt=(Ft=function(e,t){return(Ft=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])})(e,t)},function(e,t){function n(){this.constructor=e}Ft(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Ct=(It=r.Component,Nt(Ht,It),Ht.prototype.getLocalizationService=function(){return new Ot(this.props.language)},Ht.prototype.getChildContext=function(){return{kendoLocalizationService:this.getLocalizationService()}},Ht.prototype.render=function(){return r.createElement(Et.Provider,{value:this.getLocalizationService()},r.Children.only(this.props.children))},Ht.propTypes={language:a.string},Ht.childContextTypes={kendoLocalizationService:a.object},Ht);function Ht(){return null!==It&&It.apply(this,arguments)||this}function Tt(e){this.language=e}function kt(e){return e.context&&e.context.kendoIntlService||new yt("en")}function _t(e){return e.context&&e.context.kendoLocalizationService||new Ot}function Pt(e){var t={kendoIntlService:a.object};e.contextTypes?Object.assign(e.contextTypes,t):e.contextTypes=t}function At(e){var t={kendoLocalizationService:a.object};e.contextTypes?Object.assign(e.contextTypes,t):e.contextTypes=t}var zt=function(){return r.useContext(gt)},Lt=function(){return r.useContext(Et)}}],a.c=r,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(t,e){if(1&e&&(t=a(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)a.d(n,r,function(e){return t[e]}.bind(null,r));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=7)}}}); |
{ | ||
"name": "@progress/kendo-react-sortable", | ||
"version": "3.13.0-dev.202004090817", | ||
"version": "3.13.0-dev.202004091724", | ||
"description": "KendoReact Sortable package", | ||
@@ -37,7 +37,7 @@ "repository": { | ||
"dependencies": { | ||
"@progress/kendo-react-common": "3.13.0-dev.202004090817", | ||
"@progress/kendo-react-common": "3.13.0-dev.202004091724", | ||
"prop-types": "^15.6.0" | ||
}, | ||
"devDependencies": { | ||
"@progress/kendo-react-intl": "3.12.1-dev.202003250848" | ||
"@progress/kendo-react-intl": "3.13.0-dev.202004091724" | ||
}, | ||
@@ -44,0 +44,0 @@ "@progress": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
225566
+ Added@progress/kendo-react-common@3.13.0-dev.202004091724(transitive)
- Removed@progress/kendo-react-common@3.13.0-dev.202004090817(transitive)