@progress/kendo-react-inputs 4.12.0 → 4.13.0-dev.202111290654
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("prop-types"),require("react"),require("@progress/kendo-react-intl"),require("@progress/kendo-licensing"),require("@progress/kendo-drawing"),require("react-dom")):"function"==typeof define&&define.amd?define(["prop-types","react","@progress/kendo-react-intl","@progress/kendo-licensing","@progress/kendo-drawing","react-dom"],t):"object"==typeof exports?exports.KendoReactInputs=t(require("prop-types"),require("react"),require("@progress/kendo-react-intl"),require("@progress/kendo-licensing"),require("@progress/kendo-drawing"),require("react-dom")):e.KendoReactInputs=t(e.PropTypes,e.React,e.KendoReactIntl,e.KendoLicensing,e.KendoDrawing,e.ReactDOM)}(window,(function(e,t,n,r,o,a){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=9)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){"use strict";n.r(t),n.d(t,"BrowserSupportService",(function(){return o})),n.d(t,"canUseDOM",(function(){return a})),n.d(t,"canUseRef",(function(){return i})),n.d(t,"classNames",(function(){return s})),n.d(t,"cloneDate",(function(){return c})),n.d(t,"clone",(function(){return u})),n.d(t,"cloneObject",(function(){return d})),n.d(t,"cloneValue",(function(){return p})),n.d(t,"cloneArray",(function(){return f})),n.d(t,"Draggable",(function(){return P})),n.d(t,"focusFirstFocusableChild",(function(){return N})),n.d(t,"FormComponent",(function(){return S})),n.d(t,"getTabIndex",(function(){return I})),n.d(t,"getter",(function(){return M})),n.d(t,"guid",(function(){return T})),n.d(t,"Keys",(function(){return A})),n.d(t,"noop",(function(){return B})),n.d(t,"getScrollbarWidth",(function(){return L})),n.d(t,"setScrollbarWidth",(function(){return V})),n.d(t,"setter",(function(){return G})),n.d(t,"mapTree",(function(){return U})),n.d(t,"mapTreeItem",(function(){return q})),n.d(t,"extendDataItem",(function(){return W})),n.d(t,"getItemPath",(function(){return X})),n.d(t,"validatePackage",(function(){return Z})),n.d(t,"hasRelativeStackingContext",(function(){return $})),n.d(t,"dispatchEvent",(function(){return J})),n.d(t,"AsyncFocusBlur",(function(){return te})),n.d(t,"createPropsContext",(function(){return oe})),n.d(t,"withPropsContext",(function(){return ae})),n.d(t,"useDir",(function(){return ie})),n.d(t,"useAsyncFocusBlur",(function(){return Q})),n.d(t,"useDraggable",(function(){return se})),n.d(t,"useRtl",(function(){return le})),n.d(t,"useMouse",(function(){return ce})),n.d(t,"useCustomComponent",(function(){return ue})),n.d(t,"usePropsContext",(function(){return ne})),n.d(t,"Icon",(function(){return he})),n.d(t,"SvgIcon",(function(){return be})),n.d(t,"Typography",(function(){return Re}));var r=function(){return"undefined"!=typeof document?document:{}},o=function(){function e(){}return Object.defineProperty(e.prototype,"scrollbarWidth",{get:function(){var e=r();if(!this.scrollbar&&e&&e.createElement){var t=e.createElement("div");t.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",t.innerHTML=" ",e.body.appendChild(t),this.scrollbar=t.offsetWidth-t.scrollWidth,e.body.removeChild(t)}return this.scrollbar},enumerable:!0,configurable:!0}),e}(),a=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),i=function(e){return"string"!=typeof Comment&&(function(e){return Boolean("function"==typeof e&&!!e.prototype.isReactComponent)}(e)||function(e){return Boolean(e.$$typeof&&"function"==typeof e.render)}(e))},s=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)?s.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(" ")},l=n(1),c=function(e){return e?new Date(e.getTime()):null};function u(e){var t={};return d(e,t),t}function d(e,t){for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];t[n]=p(r,t[n])}}function p(e,t){if(Array.isArray(e))return f(e);if(e instanceof Date)return c(e);if(l.isValidElement(e))return l.cloneElement(e,e.props);if(e&&"object"==typeof e){var n=t||{};return d(e,n),n}return e}function f(e){return e.map((function(e){return p(e,void 0)}))}var h=n(0),m=function(e,t){return function(n){return t(e(n))}},v=function(e,t,n){return e.addEventListener&&e.addEventListener(t,n)},g=function(e,t,n){return e&&e.removeEventListener&&e.removeEventListener(t,n)},b=function(){},y=function(e){return e.preventDefault()},k=/touch/;function C(e){return e.type.match(k)?{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 w=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 a=e.mouseOnly;void 0===a&&(a=!1),this._pressHandler=m(C,n),this._dragHandler=m(C,r),this._releaseHandler=m(C,o),this._ignoreMouse=!1,this._mouseOnly=a,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||(v(t.document,"mousemove",t._mousemove),v(t.document,"mouseup",t._mouseup),t._pressHandler(e))},this._mousemove=function(e){t._dragHandler(e)},this._mouseup=function(e){g(t.document,"mousemove",t._mousemove),g(t.document,"mouseup",t._mouseup),t._releaseHandler(e)},this._pointerdown=function(e){e.isPrimary&&0===e.button&&(v(t.document,"pointermove",t._pointermove),v(t.document,"pointerup",t._pointerup),v(t.document,"pointercancel",t._pointerup),v(t.document,"contextmenu",y),t._pressHandler(e))},this._pointermove=function(e){e.isPrimary&&t._dragHandler(e)},this._pointerup=function(e){e.isPrimary&&(g(t.document,"pointermove",t._pointermove),g(t.document,"pointerup",t._pointerup),g(t.document,"pointercancel",t._pointerup),g(t.document,"contextmenu",y),t._releaseHandler(e))}},O={document:{configurable:!0}};w.supportPointerEvent=function(){return"undefined"!=typeof window&&window.PointerEvent},O.document.get=function(){return this._element?this._element.ownerDocument:document},w.prototype.bindTo=function(e){e!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=e,this._bindToCurrent())},w.prototype._bindToCurrent=function(){var e=this._element;this._usePointers()?v(e,"pointerdown",this._pointerdown):(v(e,"mousedown",this._mousedown),this._mouseOnly||(v(e,"touchstart",this._touchstart),v(e,"touchmove",this._touchmove),v(e,"touchend",this._touchend)))},w.prototype._unbindFromCurrent=function(){var e=this._element;if(this._usePointers())return g(e,"pointerdown",this._pointerdown),g(this.document,"pointermove",this._pointermove),g(this.document,"pointerup",this._pointerup),g(this.document,"contextmenu",y),void g(this.document,"pointercancel",this._pointerup);g(e,"mousedown",this._mousedown),this._mouseOnly||(g(e,"touchstart",this._touchstart),g(e,"touchmove",this._touchmove),g(e,"touchend",this._touchend))},w.prototype._usePointers=function(){return!this._mouseOnly&&w.supportPointerEvent()},w.prototype.update=function(e){var t=e.press;void 0===t&&(t=b);var n=e.drag;void 0===n&&(n=b);var r=e.release;void 0===r&&(r=b);var o=e.mouseOnly;void 0===o&&(o=!1),this._pressHandler=m(C,t),this._dragHandler=m(C,n),this._releaseHandler=m(C,r),this._mouseOnly=o},w.prototype.destroy=function(){this._unbindFromCurrent(),this._element=null},Object.defineProperties(w.prototype,O),w.default=w;var x,_=w,E=(x=function(e,t){return(x=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}x(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),P=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.element=null,t.draggable=new _({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.childRef=function(e){var n=t.props.childRef;t.element=e,n&&"function"==typeof n&&n(e)},t}return E(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.childRef})},t.propTypes={children:h.element.isRequired},t}(l.Component),N=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()}},S=function(){},I=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},R=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;function j(e){var t=[];return e.replace(R,(function(e,n,r,o){t.push(void 0!==n?n:r||o)})),t}var D={};function M(e){if(D[e])return D[e];var t=j(e);return D[e]=function(e){for(var n=e,r=0;r<t.length&&n;r++)n=n[t[r]];return n},D[e]}D.undefined=function(){};var T=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},B=function(){},L=function(){return!(!a||!document.body)&&(new o).scrollbarWidth},V=function(){if(!a||!document.body)return!1;var e=(new o).scrollbarWidth;document.body.style.setProperty("--kendo-scrollbar-width",e+"px")},F={undefined:function(e){return e}},K=function(e,t){return t&&t.arrays&&!isNaN(Number(e))?[]:{}};function G(e){if(F[e])return F[e];var t=j(e);return F[e]=function(e,n,r){for(var o=e,a=t.length-1,i=0;i<a&&o;i++)o=o[t[i]]=o[t[i]]||K(t[i+1],r);o[t[a]]=n},F[e]}var z=function(){return(z=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)};function H(e,t,n){var r;return n?z({},e,((r={})[t]=n.length?n.slice():void 0,r)):e&&e[t]?e[t].slice():[]}var U=function(e,t,n){return e.map((function(e){return function e(t,n,r){if(t[n]){var o=H(t,n).map((function(t){return e(t,n,r)}));return r(H(t,n,o))}return r(t)}(e,t,n)})).slice()},q=function(e,t,n,r){for(var o=e,a=[],i=0;i<t.length;i++)o=o[t[i]],o=Array.isArray(o)?o:o[n],a.push(o);var s=a.length>1?a[a.length-2]:e,l=t[t.length-1],c=r(s[l]);s.splice(l,1,c)},W=function(e,t,n){var r;return Object.assign({},e,e[t]?((r={})[t]=e[t].slice(),r):{},n||{})},X=function(e,t,n){var r=[],o=t.slice();if(o.length){var a=e[o.shift()||0];for(r.push(a);o.length&&n;)a=a[n][o.shift()||0],r.push(a)}return r},Y=n(11);function Z(e){if(void 0!==Y)Y.validatePackage(e);else{var t="License activation failed for "+e.name+"\n";t+="The @progress/kendo-licensing script is not loaded.\n",t+="See "+e.licensingDocsUrl+" for more information.\n",console.warn(t)}}var $=function(e){if(!a)return!1;var t=e?e.ownerDocument:document;if(!t||!t.body)return!1;var n=t.createElement("div");n.style.transform="matrix(10, 0, 0, 10, 0, 0)",n.innerHTML='<div style="position: fixed; top: 10px;">child</div>',t.body.appendChild(n);var r=10!==n.children[0].getBoundingClientRect().top;return t.body.removeChild(n),r};function J(e,t,n,r){if(e){var o={syntheticEvent:t,nativeEvent:t.nativeEvent,target:n};e.call(void 0,Object.assign(o,r))}}function Q(e){var t=e.onFocus,n=e.onBlur,r=e.onSyncFocus,o=e.onSyncBlur,a=l.useRef(!1),i=l.useRef(0),s=l.useCallback((function(e){clearTimeout(i.current),i.current=window.setTimeout((function(){return e()}))}),[i]),c=l.useCallback((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];clearTimeout(i.current),r&&r.call.apply(r,[void 0].concat(e)),a.current||(a.current=!0,t&&t.call.apply(t,[void 0].concat(e)))}),[a,t,r]),u=l.useCallback((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];o&&o.call.apply(o,[void 0].concat(e)),s((function(){a.current&&n&&(a.current=!1,n.call.apply(n,[void 0].concat(e)))}))}),[a,s,n,o]);return l.useEffect((function(){return function(){clearTimeout(i.current)}}),[]),{onFocus:c,onBlur:u}}var ee=function(){return(ee=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)},te=function(e){var t=e.children,n=Q({onFocus:e.onFocus,onBlur:e.onBlur,onSyncFocus:e.onSyncFocus,onSyncBlur:e.onSyncBlur});return t.call(void 0,ee({},n))},ne=function(e,t){return l.useContext(e)(t)},re=function(){return(re=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)},oe=function(){return l.createContext((function(e){return e}))},ae=function(e,t){return l.forwardRef((function(n,r){var o=ne(e,n);return l.createElement(t,re({},o,{ref:r}))}))};function ie(e,t,n){var r=l.useState(t),o=r[0],a=r[1];return l.useEffect((function(){if(!o&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&a(t)}}),n),o}function se(e,t){var n=t.onPress,r=t.onDrag,o=t.onRelease,a=l.useMemo((function(){return new _({press:n,drag:r,release:o})}),[]);l.useEffect((function(){var t=e.current;if(t)return a.bindTo(t),function(){a.destroy()}}),[]),l.useEffect((function(){a.update({press:n,drag:r,release:o})}),[n,r,o])}function le(e,t,n){var r=l.useState(t),o=r[0],a=r[1];return l.useEffect((function(){if(!o&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&a(t)}}),n),o}var ce=function(e,t,n){void 0===n&&(n={});var r=l.useCallback((function(r){n.onMouseDown&&n.onMouseDown.call(void 0,r),e.onMouseDown&&e.onMouseDown.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseDown,e.onMouseDown,t]),o=l.useCallback((function(r){n.onMouseUp&&n.onMouseUp.call(void 0,r),e.onMouseUp&&e.onMouseUp.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseUp,e.onMouseUp,t]);return{onClick:l.useCallback((function(r){n.onClick&&n.onClick.call(void 0,r),e.onClick&&e.onClick.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onClick,e.onClick,t]),onMouseUp:o,onMouseDown:r,onDoubleClick:l.useCallback((function(r){n.onDoubleClick&&n.onDoubleClick.call(void 0,r),e.onDoubleClick&&e.onDoubleClick.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onDoubleClick,e.onDoubleClick,t]),onMouseEnter:l.useCallback((function(r){n.onMouseEnter&&n.onMouseEnter.call(void 0,r),e.onMouseEnter&&e.onMouseEnter.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseEnter,e.onMouseEnter,t]),onMouseLeave:l.useCallback((function(r){n.onMouseLeave&&n.onMouseLeave.call(void 0,r),e.onMouseLeave&&e.onMouseLeave.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseLeave,e.onMouseLeave,t]),onMouseMove:l.useCallback((function(r){n.onMouseMove&&n.onMouseMove.call(void 0,r),e.onMouseMove&&e.onMouseMove.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseMove,e.onMouseMove,t]),onMouseOut:l.useCallback((function(r){n.onMouseOut&&n.onMouseOut.call(void 0,r),e.onMouseOut&&e.onMouseOut.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseOut,e.onMouseOut,t]),onMouseOver:l.useCallback((function(r){n.onMouseOver&&n.onMouseOver.call(void 0,r),e.onMouseOver&&e.onMouseOver.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseOver,e.onMouseOver,t])}},ue=function(e){return l.isValidElement(e)?[e.type,e.props]:[e,{}]},de={default:"",xsmall:"k-icon-xs",small:"k-icon-sm",medium:"k-icon-md",large:"k-icon-lg",xlarge:"k-icon-xl"},pe=function(){return(pe=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)},fe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},he=l.forwardRef((function(e,t){var n=e.className,r=e.name,o=e.themeColor,a=e.size,i=e.flip,c=e.style,u=fe(e,["className","name","themeColor","size","flip","style"]),d=l.useRef(null),p=l.useRef(null);l.useImperativeHandle(d,(function(){return{element:p.current}})),l.useImperativeHandle(t,(function(){return d.current}));var f=l.useMemo((function(){return o||me.themeColor}),[o]),h=l.useMemo((function(){return a||me.size}),[a]),m=l.useMemo((function(){return i||me.flip}),[i]),v=l.useMemo((function(){return s("k-icon","k-i-"+r,"k-color-"+f,{"k-flip-h":"horizontal"===m||"both"===m,"k-flip-v":"vertical"===m||"both"===m},de[h],n)}),[r,f,h,m,n]),g=ce(e,d);return l.createElement("span",pe({ref:p},u,g,{className:v,style:c,role:"presentation"}))}));he.propTypes={style:h.object,classNames:h.string,name:h.string,themeColor:h.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:h.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:h.oneOf(["default","horizontal","vertical","both"])};var me={size:"default",themeColor:"inherit",flip:"default"};he.displayName="KendoIcon";var ve=function(){return(ve=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)},ge=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},be=l.forwardRef((function(e,t){var n=e.children,r=e.className,o=e.svgClassName,a=e.icon,i=e.flip,c=e.size,u=e.style,d=e.svgStyle,p=e.themeColor,f=e.viewBox,h=ge(e,["children","className","svgClassName","icon","flip","size","style","svgStyle","themeColor","viewBox"]),m=l.useRef(null);l.useImperativeHandle(t,(function(){return{element:m.current}}));var v=l.useMemo((function(){return a?a.name:ye.icon}),[a]),g=l.useMemo((function(){return p||ye.themeColor}),[p]),b=l.useMemo((function(){return c||ye.size}),[c]),y=l.useMemo((function(){return i||ye.flip}),[i]),k=l.useMemo((function(){return f||ye.viewBox}),[f]),C=l.useMemo((function(){return s("k-svg-icon","k-color-"+g,"k-svg-i-"+v,{"k-flip-h":"horizontal"===y||"both"===y,"k-flip-v":"vertical"===y||"both"===y},de[b],r)}),[v,g,b,y,r]),w=l.useMemo((function(){return e.width&&e.height?ve({width:e.width,height:e.height},u):e.width?ve({width:e.width,height:e.width},u):e.height?ve({width:e.height,height:e.height},u):ve({},u)}),[e.width,e.height,u]);return l.createElement("span",{className:C,style:w,ref:m},l.createElement("svg",ve({className:o,style:d,"aria-hidden":!0,focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:a?a.viewBox:k,dangerouslySetInnerHTML:a?{__html:a.content}:void 0},h),a?void 0:n))}));be.propTypes={style:h.object,classNames:h.string,children:h.any,icon:h.object,themeColor:h.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:h.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:h.oneOf(["default","horizontal","vertical","both"])};var ye={size:"default",themeColor:"inherit",flip:"default",icon:"",viewBox:"0 0 24 24"};be.displayName="KendoSvgIcon";var ke={xsmall:"k-fs-xs",small:"k-fs-sm",medium:"k-fs-md",large:"k-fs-lg",xlarge:"k-fs-xl"},Ce={light:"k-font-weight-light",normal:"k-font-weight-normal",bold:"k-font-weight-bold"},we={xsmall:"k-m-xs",small:"k-m-sm",medium:"k-m-md",large:"k-m-lg",xlarge:"k-m-xl",thin:"k-m-thin",hair:"k-m-hair"},Oe={xsmall:"xs",small:"sm",medium:"md",large:"lg",xlarge:"xl",thin:"thin",hair:"hair"},xe={top:"k-mt-",right:"k-mr-",bottom:"k-mb-",left:"k-ml-"},_e={left:"k-text-left",right:"k-text-right",center:"k-text-center",justify:"k-text-justify"},Ee={lowercase:"k-text-lowercase",uppercase:"k-text-uppercase",capitalize:"k-text-capitalize"},Pe={inherit:"k-color-inherit",primary:"k-color-primary",secondary:"k-color-secondary",tertiary:"k-color-tertiary",info:"k-color-info",success:"k-color-success",warning:"k-color-warning",error:"k-color-error",dark:"k-color-dark",light:"k-color-light",inverse:"k-color-inverse"},Ne=function(){return(Ne=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)},Se=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},Ie=function(e){var t=l.forwardRef((function(t,n){var r=t.className,o=t.fontSize,a=t.fontWeight,i=t.textAlign,s=t.textTransform,c=t.themeColor,u=t.margin,d=Se(t,["className","fontSize","fontWeight","textAlign","textTransform","themeColor","margin"]),p=l.useRef(null),f=l.useRef(null);l.useImperativeHandle(p,(function(){return{element:f.current,props:t}})),l.useImperativeHandle(n,(function(){return p.current}));var h=e,m=function(){if(void 0!==u){if("string"==typeof u)return[we[u]];if("number"==typeof u&&u>=0&&u<=24)return["k-m-"+u];if("object"==typeof u){var e=[];return Object.keys(u).forEach((function(t){var n,r;null!==u[t]&&void 0!==u[t]&&e.push((n=t,r=u[t],""+xe[n]+("string"==typeof r?Oe[r]:r)))})),e.join(" ")}}};return l.createElement(h,Ne({ref:f,className:["k-"+("p"===e?"paragraph":e),ke[o],Ce[a],_e[i],Ee[s],Pe[c],m(),r].filter((function(e){return void 0!==e})).join(" ")},d),t.children)}));return t.propTypes={style:h.object,className:h.string,fontSize:h.oneOf(["xsmall","small","medium","large","xlarge"]),fontWeight:h.oneOf(["light","normal","bold"]),margin:h.oneOfType([h.number,h.object,h.oneOf(["xsmall","small","medium","large","xlarge","thin","hair"])]),textAlign:h.oneOf(["left","right","center","justify"]),textTransform:h.oneOf(["lowercase","uppercase","capitalize"]),themeColor:h.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"])},t.displayName="KendoReactTypography"+e.toUpperCase(),t},Re={h1:Ie("h1"),h2:Ie("h2"),h3:Ie("h3"),h4:Ie("h4"),h5:Ie("h5"),h6:Ie("h6"),p:Ie("p"),code:Ie("code"),pre:Ie("pre")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-react-inputs",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1637584443,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"}},function(e,t){e.exports=n},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.numericIncreaseValue="numerictextbox.increment",t.numericDecreaseValue="numerictextbox.decrement",t.sliderIncreaseValue="slider.increment",t.sliderDecreaseValue="slider.decrement",t.sliderDragTitle="slider.dragTitle",t.colorGradientR="colorGradient.r",t.colorGradientG="colorGradient.g",t.colorGradientB="colorGradient.b",t.colorGradientA="colorGradient.a",t.colorGradientHex="colorGradient.hex",t.colorGradientContrastRatio="colorGradient.contrastRatio",t.colorGradientAALevel="colorGradient.colorGradientAALevel",t.colorGradientAAALevel="colorGradient.colorGradientAAALevel",t.colorGradientPass="colorGradient.colorGradientPass",t.colorGradientFail="colorGradient.colorGradientFail",t.flatColorPickerCancelBtn="flatColorPicker.cancelBtn",t.flatColorPickerApplyBtn="flatColorPicker.applyBtn",t.checkboxValidation="checkbox.validation",t.checkboxOptionalText="checkbox.optionalText",t.radioButtonValidation="radioButton.validation",t.switchValidation="switch.validation",t.messages=((r={})[t.numericIncreaseValue]="Increase value",r[t.numericDecreaseValue]="Decrease value",r[t.sliderIncreaseValue]="Increase",r[t.sliderDecreaseValue]="Decrease",r[t.sliderDragTitle]="Drag",r[t.colorGradientR]="r",r[t.colorGradientG]="g",r[t.colorGradientB]="b",r[t.colorGradientA]="a",r[t.colorGradientHex]="hex",r[t.colorGradientContrastRatio]="Contrast ratio",r[t.colorGradientAALevel]="AA",r[t.colorGradientAAALevel]="AAA",r[t.colorGradientPass]="Pass",r[t.colorGradientFail]="Fail",r[t.flatColorPickerCancelBtn]="Cancel",r[t.flatColorPickerApplyBtn]="Apply",r[t.checkboxValidation]="Please check this box if you want to proceed!",r[t.checkboxOptionalText]="(Optional)",r[t.radioButtonValidation]="Please select option if you want to proceed!",r[t.switchValidation]="Please turn on if you want to proceed!",r)},function(e,t,n){"use strict";n.r(t),n.d(t,"Popup",(function(){return le})),n.d(t,"PopupPropsContext",(function(){return se}));var r=n(1),o=n(22),a=n(0),i=function(e){e.style.transitionDuration="",e.classList.remove("k-slide-down-appear","k-slide-down-appear-active","k-slide-down-exit","k-slide-down-exit-active","k-slide-up-appear","k-slide-up-appear-active","k-slide-up-exit","k-slide-up-exit-active")},s="undefined"!=typeof window&&/Firefox/.test(window.navigator.userAgent),l=n(2),c="bottom",u="center",d="middle",p="left",f="right",h="top",m=function(e){var t=e.anchorRect,n=e.anchorAlign,r=e.elementRect,o=e.elementAlign,a=e.margin;void 0===a&&(a={});var i=n.horizontal,s=n.vertical,l=o.horizontal,p=o.vertical,h=a.horizontal||0,m=a.vertical||0,v=t.top,g=t.left;return s===c&&(v+=t.height),s!==u&&s!==d||(v+=Math.round(t.height/2)),p===c&&(v-=r.height,m*=-1),p!==u&&p!==d||(v-=Math.round(r.height/2),m*=-1),i===f&&(g+=t.width),i!==u&&i!==d||(g+=Math.round(t.width/2)),l===f&&(g-=r.width,h*=-1),l!==u&&l!==d||(g-=Math.round(r.width/2),h*=-1),{top:v+m,left:g+h}};function v(e){return e.ownerDocument||e.document||e}var g=function(e){return v(e).defaultView},b=function(e){return v(e).documentElement},y=0;function k(){if(!y&&"undefined"!=typeof document){var e=document.createElement("div");e.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",e.innerHTML=" ",document.body.appendChild(e),y=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return y}function C(e){var t=g(e),n=b(e),r={height:t.innerHeight,width:t.innerWidth};return n.scrollHeight-n.clientHeight>0&&(r.width-=k()),r}var w=function(e){if(!e.getBoundingClientRect){var t=C(e);return{bottom:t.height,left:0,right:t.width,top:0}}var n=e.getBoundingClientRect();return{bottom:n.bottom,left:n.left,right:n.right,top:n.top}},O=function(e){for(var t=e.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||b(e)},x=function(e){return O(e)===e.ownerDocument.body},_=function(e){var t=e.getBoundingClientRect(),n=t.left,r=t.top;return t.height||t.width||(t=function(e){var t=e.style,n=t.display,r=t.left,o=t.position;e.style.display="",e.style.left="-10000px",e.style.position="absolute";var a=e.getBoundingClientRect();return e.style.display=n,e.style.left=r,e.style.position=o,a}(e)),{top:r,left:n,height:t.height,width:t.width}},E=function(e,t){for(var n=[],r=e.parentNode;r&&(n.push(r),r!==t);)r=r.parentNode;return n};function P(e){var t=b(e),n=g(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}}var N=function(e){return e===(e.ownerDocument||{}).body?P(e):{x:e.scrollLeft,y:e.scrollTop}};var S=function(e,t){var n=g(e),r=n.getComputedStyle(e),o=_(e),a=t||O(e),i=e.ownerDocument,s=a!==i.body&&a!==i.documentElement,l={top:0,left:0};if("fixed"!==r.position&&s){var c=n.getComputedStyle(a);(l=_(a)).top+=parseInt(c.borderTopWidth,10),l.left+=parseInt(c.borderLeftWidth,10)}return{top:o.top-l.top,left:o.left-l.left,height:o.height,width:o.width}},I=function(e,t){return e?N(e):function(e){var t=O(e);return t?N(t):{x:0,y:0}}(t)};var R="fit",j="flip",D=function(e,t,n){var r=0;return e+t>n&&(r=n-(e+t)),e<0&&(r=-e),r},M=function(e){var t=e.offset,n=e.size,r=e.anchorSize,o=e.viewPortSize,a=e.anchorAlignPoint,i=e.elementAlignPoint,s=0,l=2*e.margin;if(i!==a&&!(i===u||i===d)&&!(a===u||a===d)){var c=a===h||a===p;t<0&&c?t+(s=n+r+l)+n>o&&(s=0):t>=0&&!c&&(t+n>o&&(s+=-(r+n+l)),t+s<0&&(s=0))}return s},T=function(e){var t=e.anchorRect,n=e.anchorAlign,r=e.elementRect,o=e.elementAlign,a=e.collisions,i=e.viewPort,s=e.margin;void 0===s&&(s={});var l=r.top,c=r.left,u=r.height,d=r.width,p=i.height,f=i.width,h=s.horizontal||0,m=s.vertical||0,v=0,g=0,b=a.horizontal===j,y=a.vertical===j;a.vertical===R&&(g+=D(l,u,p)),a.horizontal===R&&(v+=D(c,d,f)),y&&(g+=M({margin:m,offset:l,size:u,anchorSize:t.height,viewPortSize:p,anchorAlignPoint:n.vertical,elementAlignPoint:o.vertical})),b&&(v+=M({margin:h,offset:c,size:d,anchorSize:t.width,viewPortSize:f,anchorAlignPoint:n.horizontal,elementAlignPoint:o.horizontal}));var k=b&&0!==v,C=y&&0!==g;return{flipped:k||C,flip:{horizontal:k,vertical:C},offset:{left:v,top:g}}},A=function(e){for(var t=[],n=e.parentNode.firstElementChild;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t},B=function(e,t){for(var n,r,o=E(e),a=t;a&&(n=A(a),!(r=o.reduce((function(e,t){return e.concat(n.filter((function(e){return e===t})))}),[])[0]));)a=a.parentElement;return r};var L,V=function(e,t){return e||{height:0,left:t.left,top:t.top,width:0}},F=/auto|scroll/,K=function(e){var t=window.getComputedStyle(e);return""+t.overflow+t.overflowX+t.overflowY},G=Object(l.hasRelativeStackingContext)(),z="fit",H="flip",U="left",q="center",W="right",X="bottom",Y="top",Z=function(){function e(e){this._dom=e}return e.prototype.alignElement=function(e){var t=e.anchor,n=e.element,r=e.anchorAlign,o=e.elementAlign,a=e.offset,i=!this._dom.hasOffsetParent(n)?this.absoluteRect(t,n,a):this.relativeRect(t,n,a);return this._dom.align({anchorAlign:r,anchorRect:i,elementAlign:o,elementRect:this._dom.offset(n)})},e.prototype.absoluteRect=function(e,t,n){var r=this._dom,o=function(e,t){return t?{height:e.height,left:e.left-t.left,top:e.top-t.top,width:e.width}:e}(V(r.offset(e),n),r.stackingElementOffset(t)),a=r.stackingElementScroll(t),i=r.addScroll(o,a),s=this.elementScrollPosition(e,t),l=r.removeScroll(i,s);return l.left+=window.scrollX||window.pageXOffset,l.top+=window.scrollY||window.pageYOffset,l},e.prototype.elementScrollPosition=function(e,t){return e?{x:0,y:0}:this._dom.scrollPosition(t)},e.prototype.relativeRect=function(e,t,n){return V(this._dom.position(e,t),n)},e}(),$=function(){function e(){}return e.prototype.addOffset=function(e,t){return{left:e.left+t.left,top:e.top+t.top}},e.prototype.align=function(e){return m(e)},e.prototype.boundingOffset=function(e){return w(e)},e.prototype.getWindow=function(){return l.canUseDOM?window:null},e.prototype.isBodyOffset=function(e){return x(e)},e.prototype.hasOffsetParent=function(e){if(!e)return!1;var t=e.offsetParent;return t&&!("BODY"===t.nodeName&&"static"===window.getComputedStyle(t).position)},e.prototype.offset=function(e){return e?_(e):null},e.prototype.staticOffset=function(e){if(!e)return null;var t=e.style,n=t.left,r=t.top;e.style.left="0px",e.style.top="0px";var o=_(e);return e.style.left=n,e.style.top=r,o},e.prototype.position=function(e,t){return e&&t?function(e,t,n){void 0===n&&(n=1);var r=t?O(t):null,o=S(e,r),a=o.top,i=o.left,s=o.height,l=o.width,c=I(r,e),u=c.x,d=c.y,p=e.ownerDocument,f=r===p.body||r===p.documentElement?1:n;return{top:a+d*f,left:i+u*f,height:s,width:l}}(e,B(e,t)):null},e.prototype.relativeOffset=function(e,t){return n=this.offset(e),r=t,o=this.isBodyOffset(e),a=n.top,i=n.left,o&&(i=0,a=0),{top:a+r.top,left:i+r.left,height:n.height,width:n.width};var n,r,o,a,i},e.prototype.addScroll=function(e,t){return function(e,t){return{top:e.top+t.y,left:e.left+t.x,height:e.height,width:e.width}}(e,t)},e.prototype.removeScroll=function(e,t){return function(e,t){return{top:e.top-t.y,left:e.left-t.x,height:e.height,width:e.width}}(e,t)},e.prototype.restrictToView=function(e){return T(e)},e.prototype.scrollPosition=function(e){return P(e)},e.prototype.scrollableParents=function(e){return function(e){var t=[];if(!l.canUseDOM)return t;for(var n=e.parentElement;n;)F.test(K(n))&&t.push(n),n=n.parentElement;return t.push(window),t}(e)},e.prototype.stackingElementOffset=function(e){var t=this.getRelativeContextElement(e);return t?_(t):null},e.prototype.stackingElementScroll=function(e){var t=this.getRelativeContextElement(e);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}},e.prototype.stackingElementViewPort=function(e){var t=this.getRelativeContextElement(e);return t?{height:t.scrollHeight,width:t.scrollWidth}:null},e.prototype.getRelativeContextElement=function(e){if(!e||!G)return null;for(var t=e.parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}return null},e.prototype.useRelativePosition=function(e){return!!this.getRelativeContextElement(e)},e.prototype.windowViewPort=function(e){return C(e)},e.prototype.zIndex=function(e,t){return function(e,t){if(!e||!l.canUseDOM)return null;var n=B(e,t);if(!n)return null;var r=[e].concat(E(e,n)).reduce((function(e,t){var n=t.style.zIndex||window.getComputedStyle(t).zIndex,r=parseInt(n,10);return r>e?r:e}),0);return r?r+1:null}(e,t)},e.prototype.zoomLevel=function(){return l.canUseDOM?parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2)):1},e.prototype.isZoomed=function(){return this.zoomLevel()>1},e}(),J=function(){function e(e){this._dom=e}return e.prototype.positionElement=function(e){var t,n,r=e.anchor,o=e.currentLocation,a=e.element,i=e.anchorAlign,s=e.elementAlign,l=e.collisions,c=this._dom,u=e.viewPort||c.stackingElementViewPort(a)||c.windowViewPort(a),d=V(c.offset(r),o),p=(t=c.staticOffset(a),(n=o)?{height:t.height,left:n.left,top:n.top,width:t.width}:t),f=this.elementRect(a,p),h=c.restrictToView({anchorAlign:i,anchorRect:d,collisions:l,elementAlign:s,elementRect:f,viewPort:u});return{flipped:h.flipped,offset:c.addOffset(p,h.offset)}},e.prototype.elementRect=function(e,t){return this._dom.removeScroll(t,this._dom.scrollPosition(e))},e}(),Q={name:"@progress/kendo-react-popup",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1637584105,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"},ee=(L=function(e,t){return(L=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}L(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),te=function(){return(te=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)};function ne(e,t){if(e===t)return!0;if(!!e!=!!t)return!1;var n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertyNames(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++){var a=n[o];if(e[a]!==t[a])return!1}return!0}var re,oe={left:-1e3,top:0};!function(e){e.hiding="hiding",e.hidden="hidden",e.showing="showing",e.shown="shown",e.reposition="reposition"}(re||(re={}));var ae=function(e){function t(t){var n=e.call(this,t)||this;return n.state={current:re.hidden,previous:re.hidden,props:{}},n._popup=null,n.show=function(e){n.setPosition(e),n.animate(e.firstChild,"enter",n.onOpened),n.setState({current:re.shown,previous:n.state.current})},n.setPosition=function(e){var t=n.props,r=t.anchorAlign,o=t.popupAlign,a=t.collision,i=t.offset,s=t.anchor,l=e.firstElementChild,c=getComputedStyle(l),u=c.width,d=c.height;l.style.position="absolute",l.style.width=u,l.style.height=d;var p=n._alignService.alignElement({anchor:s,element:l,elementAlign:o,anchorAlign:r,offset:i}),f=n._positionService.positionElement({anchor:s,anchorAlign:r,collisions:a,element:l,currentLocation:p,elementAlign:o});f.offset&&(e.style.top=f.offset.top+"px",e.style.left=f.offset.left+"px",l.style.position="",l.style.width="",l.style.height=""),n._flipped=f.flipped},n.onOpened=function(){var e=n._popup;e&&(n.props.show&&e.classList.add("k-animation-container-shown"),n.attachRepositionHandlers(e),n.props.onOpen&&n.props.onOpen.call(void 0,{target:n}))},n.animate=function(e,t,r){!function(e,t,n,r,o){if(0===n)return o();var a="k-slide-"+t+"-"+r,l=a+"-active",c=function(){e.removeEventListener("transitionend",c),i(e),o()};e.addEventListener("transitionend",c);var u=e.ownerDocument;if(u){var d=u.defaultView;if(d){var p=function(){i(e),e.classList.add(a),d.requestAnimationFrame((function(){e.style.transitionDuration=n+"ms",e.classList.add(l)}))};s?d.requestAnimationFrame(p):p()}}}(e,n._flipped?"up":"down",n.animationDuration[t],t,r)},n.onClosing=function(e){n.props.show||e.classList.remove("k-animation-container-shown"),n.detachRepositionHandlers()},n.onClosed=function(){n.state.current===re.hiding&&n.state.previous===re.shown&&n.setState({current:re.hidden,previous:n.state.current}),n.props.onClose&&n.props.onClose.call(void 0,{target:n})},Object(l.validatePackage)(Q),n._domService=new $,n._alignService=new Z(n._domService),n._positionService=new J(n._domService),n.reposition=function(e,t,n){var r,o,a,i;void 0===n&&(n={});var s=0;n=n||{};var l=function(){s=!1===n.leading?0:(new Date).getTime(),r=null,i=e.apply(o,a),r||(o=a=null)};return function(){var c=(new Date).getTime();s||!1!==n.leading||(s=c);var u=t-(c-s);return o=this,a=arguments,u<=0||u>t?(r&&(clearTimeout(r),r=null),s=c,i=e.apply(o,a),r||(o=a=null)):r||!1===n.trailing||(r=window.setTimeout(l,u)),i}}(n.reposition.bind(n),1e3/60),n}return ee(t,e),t.getDerivedStateFromProps=function(e,t){var n=e.show,r=e.anchor,o=e.anchorAlign,a=e.appendTo,i=e.collision,s=e.popupAlign,l=e.className,c=e.popupClass,u=e.style,d=e.offset,p=e.contentKey,f=te({},t,{props:{show:n,anchor:r,anchorAlign:o,appendTo:a,collision:i,popupAlign:s,className:l,popupClass:c,style:u,offset:d,contentKey:p}});return e.show?t.current===re.hidden||t.current===re.hiding?te({},f,{current:re.showing,previous:t.current}):t.current===re.showing?te({},f,{current:re.shown,previous:t.current}):t.current!==re.shown||ne(d,t.props.offset)&&ne(o,t.props.anchorAlign)&&ne(a,t.props.appendTo)&&ne(i,t.props.collision)&&ne(s,t.props.popupAlign)&&ne(u,t.props.style)&&r===t.props.anchor&&c===t.props.popupClass&&l===t.props.className?f:te({},f,{current:re.reposition,previous:t.current}):t.current===re.hiding||t.current===re.hidden?te({},f,{current:re.hidden,previous:t.current}):te({},f,{current:re.hiding,previous:t.current})},t.prototype.componentDidUpdate=function(e){this.state.current===re.showing&&this._popup?this.show(this._popup):this.state.current===re.hiding&&this._popup?(this.onClosing(this._popup),this.animate(this._popup.firstChild,"exit",this.onClosed)):this.state.current===re.reposition&&this.state.previous===re.shown?this.setState({current:re.shown,previous:this.state.current}):this.state.current===re.shown&&e.contentKey!==this.props.contentKey&&this._popup&&this.setPosition(this._popup)},t.prototype.componentDidMount=function(){this.state.current===re.showing&&this._popup&&this.show(this._popup)},t.prototype.componentWillUnmount=function(){this.detachRepositionHandlers()},t.prototype.render=function(){var e=this,t=this.props,n=t.children,a=t.className,i=t.popupClass,s=t.show,c=t.id,u=this.props.appendTo?this.props.appendTo:l.canUseDOM?this.props.anchor&&this.props.anchor.ownerDocument?this.props.anchor.ownerDocument.body:document.body:void 0;this.state.current===re.reposition&&this.state.previous===re.shown&&this._popup&&this.setPosition(this._popup);var d=Object.assign({},{position:"absolute"},this.props.style||{}),p=this.state.current===re.hiding;if((s||p)&&u){var f=r.createElement("div",{className:Object(l.classNames)("k-animation-container","k-animation-container-relative",a),id:c,ref:function(t){return e._popup=t},style:d},r.createElement("div",{className:Object(l.classNames)(i,"k-popup","k-child-animation-container"),style:{transitionDelay:"0ms"}},n));return o.createPortal(f,u)}return null},Object.defineProperty(t.prototype,"animationDuration",{get:function(){var e=this.props.animate,t=0,n=0;return e&&(!0===e?t=n=300:(t=e.openDuration||0,n=e.closeDuration||0)),{enter:t,exit:n}},enumerable:!0,configurable:!0}),t.prototype.attachRepositionHandlers=function(e){var t=this;this.detachRepositionHandlers(),this._scrollableParents=this._domService.scrollableParents(this.props.anchor||e),this._scrollableParents.map((function(e){return e.addEventListener("scroll",t.reposition)})),window.addEventListener("resize",this.reposition)},t.prototype.detachRepositionHandlers=function(){var e=this;this._scrollableParents&&(this._scrollableParents.map((function(t){return t.removeEventListener("scroll",e.reposition)})),this._scrollableParents=void 0),window.removeEventListener("resize",this.reposition)},t.prototype.reposition=function(){this.setState({current:re.reposition,previous:this.state.current})},t.propTypes={anchor:function(e){var t=e.anchor;return t&&"number"!=typeof t.nodeType?new Error("Invalid prop `anchor` supplied to `Kendo React Popup`. Validation failed."):null},appendTo:function(e){var t=e.appendTo;return t&&"number"!=typeof t.nodeType?new Error("Invalid prop `appendTo` supplied to `Kendo React Popup`. Validation failed."):null},className:a.string,id:a.string,popupClass:a.string,collision:a.shape({horizontal:a.oneOf([z,H]),vertical:a.oneOf([z,H])}),anchorAlign:a.shape({horizontal:a.oneOf([U,q,W]),vertical:a.oneOf([Y,q,X])}),popupAlign:a.shape({horizontal:a.oneOf([U,q,W]),vertical:a.oneOf([Y,q,X])}),offset:a.shape({left:a.number,top:a.number}),children:a.oneOfType([a.element,a.node]),show:a.bool,animate:a.oneOfType([a.bool,a.shape({openDuration:a.number,closeDuration:a.number})])},t.defaultProps={collision:{horizontal:z,vertical:H},anchorAlign:{horizontal:U,vertical:X},popupAlign:{horizontal:U,vertical:Y},offset:oe,animate:!0,show:!1},t}(r.Component),ie=function(){return(ie=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)},se=r.createContext((function(e){return e})),le=r.forwardRef((function(e,t){var n=r.useContext(se).call(void 0,e);return r.createElement(ae,ie({ref:t},n))}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPresent=function(e){return null!=e},t.fitIntoBounds=function(e,n,r){return!t.isPresent(e)||isNaN(e)||e<=n?n:e>=r?r:e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(13),o=n(7);t.parseColor=function(e,t,n){void 0===n&&(n=!0);if(-1===["hex","rgba"].indexOf(t))throw new Error("Unsupported color output format '"+t+"'. The available options are 'hex' or 'rgba'.");if(o.isPresent(e)){var a=r.parseColor(e.trim(),n);if(o.isPresent(a))return"hex"===t?a.toCss():a.toCssRgba()}},t.getHSV=function(e,t){void 0===t&&(t=!0);var n=r.parseColor(e,t);return o.isPresent(n)?n.toHSV():{}},t.getRGBA=function(e,t){void 0===t&&(t=!0);var n=r.parseColor(e,t);return o.isPresent(n)?n.toBytes():{}},t.getColorFromHSV=function(e){var t=o.fitIntoBounds(e.h,0,359.9),n=o.fitIntoBounds(e.s,0,1),a=o.fitIntoBounds(e.v,0,1),i=o.fitIntoBounds(e.a,0,1);return r.Color.fromHSV(t,n,a,i).toCssRgba()},t.getColorFromHue=function(e){return t.getColorFromHSV({h:e,s:1,v:1,a:1})},t.getColorFromRGBA=function(e){var t=o.fitIntoBounds(e.r,0,255),n=o.fitIntoBounds(e.g,0,255),a=o.fitIntoBounds(e.b,0,255),i=o.fitIntoBounds(e.a,0,1);return r.Color.fromBytes(t,n,a,i).toCssRgba()},t.getRGBFromRGBA=function(e,t){var n=o.fitIntoBounds(e.r,0,255),r=o.fitIntoBounds(e.g,0,255),a=o.fitIntoBounds(e.b,0,255),i=o.fitIntoBounds(e.a,0,1),s=o.fitIntoBounds(t.r,0,255),l=o.fitIntoBounds(t.g,0,255),c=o.fitIntoBounds(t.b,0,255);return{r:Math.round((1-i)*s+i*n),g:Math.round((1-i)*l+i*r),b:Math.round((1-i)*c+i*a)}},t.getLuminance=function(e){var t=[e.r,e.g,e.b].map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}));return.2126*t[0]+.7152*t[1]+.0722*t[2]},t.getContrast=function(e,t){return(Math.max(e,t)+.05)/(Math.min(e,t)+.05)},t.getContrastFromTwoRGBAs=function(e,n){return t.getContrast(t.getLuminance(t.getRGBFromRGBA(e,n)),t.getLuminance(t.getRGBFromRGBA(n,{r:0,g:0,b:0,a:1})))}},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(12)),r(n(14)),r(n(31)),r(n(33)),r(n(34)),r(n(35)),r(n(40)),r(n(42)),r(n(17)),r(n(43)),r(n(45)),r(n(46)),r(n(47)),r(n(18)),r(n(48)),r(n(49)),r(n(19))},function(e,t,n){"use strict";n.r(t),n.d(t,"FloatingLabel",(function(){return m})),n.d(t,"Label",(function(){return u})),n.d(t,"Error",(function(){return d})),n.d(t,"Hint",(function(){return p}));var r,o=n(1),a=n(0),i=n(2),s=((r={})["labels.optional"]="(Optional)",r),l=n(4),c={name:"@progress/kendo-react-labels",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1637584290,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"},u=function(e){Object(i.validatePackage)(c);var t=e.id,n=e.editorId,r=e.editorRef,a=e.editorDisabled,u=e.children,d=e.editorValid,p=e.style,f=e.className,h=e.optional,m=Object(l.useLocalization)(),v=h?m.toLanguageString("labels.optional",s["labels.optional"]):"",g=v&&o.createElement("span",{className:"k-label-optional"},v),b=o.useCallback((function(e){if(r&&r.current&&!a){r.current.focus&&(e.preventDefault(),r.current.focus());var t=r.current.actionElement;t&&(e.preventDefault(),t.click())}}),[r]),y=Object(i.classNames)({"k-label":!0,"k-label-empty":!u,"k-text-error":!1===d,"k-text-disabled":!0===a},f);return o.createElement("label",{id:t,htmlFor:n,onClick:b,style:p,className:y},u,g)};u.propTypes={id:a.string,editorId:a.string,editorRef:a.oneOfType([a.func,a.shape({current:a.any})]),editorValid:a.bool,editorDisabled:a.bool,style:a.object,className:a.string,optional:a.bool},u.displayName="KendoReactLabel";var d=function(e){Object(i.validatePackage)(c);var t=Object(i.classNames)({"k-form-error":!0,"k-text-start":"start"===e.direction,"k-text-end":"end"===e.direction},e.className);return o.createElement("div",{id:e.id,role:"alert",style:e.style,className:t},e.children)};d.propTypes={id:a.string,direction:a.oneOf(["start","end"]),children:a.oneOfType([a.element,a.node]),style:a.object,className:a.string},d.defaultProps={direction:"start"},d.displayName="KendoReactError";var p=function(e){Object(i.validatePackage)(c);var t=Object(i.classNames)({"k-form-hint":!0,"k-text-start":"start"===e.direction,"k-text-end":"end"===e.direction,"k-text-disabled":!0===e.editorDisabled},e.className);return o.createElement("div",{id:e.id,style:e.style,className:t},e.children)};p.propTypes={id:a.string,direction:a.oneOf(["start","end"]),children:a.oneOfType([a.element,a.node]),style:a.object,className:a.string,editorDisabled:a.bool},p.defaultProps={direction:"start"},p.displayName="KendoReactHint";var f,h=(f=function(e,t){return(f=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}f(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),m=function(e){function t(t){var n=e.call(this,t)||this;return n.state={focused:!1},n.handleFocus=function(e){n.setState({focused:!0})},n.handleBlur=function(e){n.setState({focused:!1})},Object(i.validatePackage)(c),n}return h(t,e),t.prototype.render=function(){var e=this.props,t=e.label,n=e.editorId,r=e.className,a=e.editorValue,c=e.editorPlaceholder,u=e.editorValid,d=e.editorDisabled,p=e.style,f=e.id,h=e.optional,m=Object(l.provideLocalizationService)(this),v=h?m.toLanguageString("labels.optional",s["labels.optional"]):"",g=v&&o.createElement("span",{className:"k-label-optional"},v),b=Object(i.classNames)({"k-textbox-container":!0,"k-state-focused":this.state.focused,"k-state-empty":!c&&!a&&0!==a,"k-text-disabled":d,"k-rtl":"rtl"===this.props.dir},r),y=Object(i.classNames)({"k-label":!0,"k-text-error":!1===u,"k-text-disabled":d});return o.createElement("span",{className:b,onFocus:this.handleFocus,onBlur:this.handleBlur,style:p,dir:this.props.dir},this.props.children,t?n?o.createElement("label",{id:f,htmlFor:n,className:y},t,g):o.createElement("span",{id:f,className:y},t,g):null)},t.propTypes={label:a.string,editorId:a.string,editorValue:a.oneOfType([a.string,a.bool,a.number]),editorPlaceholder:a.string,editorValid:a.bool,editorDisabled:a.bool,id:a.string,style:a.object,className:a.string,optional:a.bool},t}(o.Component);Object(l.registerForLocalization)(m)},function(e,t){e.exports=r},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 a=n(1),i=n(0),s=n(2),l=n(2),c=n(3),u=n(9),d=n(7),p=n(8),f=n(23),h=n(24),m=n(26),v=n(27),g=function(e){function t(n){var r=e.call(this,n)||this;r.onHexChange=function(e,t,n){if(r.isUncontrolled){var o=p.getHSV(t);r.setState({hsva:o,backgroundColor:p.getColorFromHue(o.h),rgba:p.getRGBA(t),hex:e})}else f.cacheHex(r.state.guid,t,e);r.dispatchChangeEvent(t,n,n.nativeEvent)},r.onRgbaChange=function(e,t){var n=p.getColorFromRGBA(e);if(r.isUncontrolled){var o=p.getHSV(n),a=p.parseColor(n,"hex");r.setState({hsva:o,backgroundColor:p.getColorFromHue(o.h),rgba:e,hex:a})}else f.cacheRgba(r.state.guid,n,e);r.dispatchChangeEvent(n,t.syntheticEvent,t.nativeEvent)},r.onAlphaSliderChange=function(e){r.handleHsvaChange(Object.assign({},r.state.hsva,{a:e.value/100}),e.syntheticEvent,e.nativeEvent)},r.onHueSliderChange=function(e){r.handleHsvaChange(Object.assign({},r.state.hsva,{h:e.value}),e.syntheticEvent,e.nativeEvent)},r.onDrag=function(e){r.gradientWrapper.classList.add("k-dragging"),r.changePosition(e.event)},r.onRelease=function(){r.gradientWrapper.classList.remove("k-dragging")},r.onGradientWrapperClick=function(e){r.changePosition(e)},r.changePosition=function(e){var t=r.getGradientRectMetrics(),n=e.clientX-t.left,o=e.clientY-t.top,a=d.fitIntoBounds(n,0,t.width),i=d.fitIntoBounds(o,0,t.height),s=Object.assign({},r.state.hsva,{s:a/t.width,v:1-i/t.height});r.handleHsvaChange(s,e,e.nativeEvent)},r.onFocus=function(e){r.props.onFocus&&r.props.onFocus.call(void 0,{nativeEvent:e,target:r})},r.focus=function(){s.focusFirstFocusableChild(r.wrapper)},l.validatePackage(c.packageMetadata);var o=n.value||n.defaultValue||p.parseColor("rgba(255, 255, 255, 1)","rgba");return r.state=Object.assign({},t.getStateFromValue(o),{isFirstRender:!0,guid:s.guid()}),r}return o(t,e),t.getDerivedStateFromProps=function(e,n){return e.value&&!n.isFirstRender?t.getStateFromValue(e.value,n.guid):null},t.prototype.componentDidMount=function(){this.setAlphaSliderBackground(this.state.backgroundColor),this.state.isFirstRender&&this.setState({isFirstRender:!1})},t.prototype.componentWillUnmount=function(){f.removeCachedColor(this.state.guid)},t.prototype.componentDidUpdate=function(e,t){t.backgroundColor!==this.state.backgroundColor&&this.setAlphaSliderBackground(this.state.backgroundColor)},t.prototype.renderRectangleDragHandle=function(){var e={};if(!this.state.isFirstRender){var t=this.getGradientRectMetrics(),n=(1-this.state.hsva.v)*t.height,r=this.state.hsva.s*t.width;e.top=n+"px",e.left=r+"px"}return a.createElement("div",{className:"k-hsv-draghandle k-draghandle",style:e})},t.prototype.handleHsvaChange=function(e,t,n){var r=p.getColorFromHSV(e);if(this.isUncontrolled){var o=p.parseColor(r,"hex");this.setState({hsva:e,backgroundColor:p.getColorFromHue(e.h),rgba:p.getRGBA(r),hex:o})}else f.cacheHsva(this.state.guid,r,e);this.dispatchChangeEvent(r,t,n)},t.prototype.dispatchChangeEvent=function(e,t,n){this.props.onChange&&this.props.onChange.call(void 0,{syntheticEvent:t,nativeEvent:n,target:this,value:e})},t.getStateFromValue=function(e,t){d.isPresent(p.parseColor(e,"hex"))||(e="rgba(255, 255, 255, 1)");var n=f.getCachedHsva(t,e)||p.getHSV(e),r=f.getCachedRgba(t,e)||p.getRGBA(e),o=f.getCachedHex(t,e)||p.parseColor(e,"hex");return{hsva:n,backgroundColor:p.getColorFromHue(n.h),rgba:r,hex:o}},t.prototype.setAlphaSliderBackground=function(e){this.props.opacity&&this.alphaSlider&&this.alphaSlider.sliderTrack&&(this.alphaSlider.sliderTrack.style.background="linear-gradient(to top, transparent, "+e+")")},Object.defineProperty(t.prototype,"isUncontrolled",{get:function(){return void 0===this.props.value},enumerable:!0,configurable:!0}),t.prototype.getGradientRectMetrics=function(){return this.gradientWrapper.getBoundingClientRect()},t.prototype.render=function(){var e=this,t=s.classNames("k-colorgradient",{"k-state-disabled":this.props.disabled});return a.createElement("div",{id:this.props.id,className:t,"aria-disabled":this.props.disabled?"true":void 0,style:this.props.style,ref:function(t){return e.wrapper=t},tabIndex:s.getTabIndex(this.props.tabIndex,this.props.disabled),"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,onFocus:this.onFocus},a.createElement("div",{className:"k-colorgradient-canvas k-hstack"},a.createElement("div",{className:"k-hsv-rectangle",style:{background:this.state.backgroundColor}},a.createElement(s.Draggable,{onDrag:this.onDrag,onRelease:this.onRelease,ref:function(t){return e.gradientWrapper=t?t.element:void 0}},a.createElement("div",{className:"k-hsv-gradient",style:{touchAction:"none"},onClick:this.onGradientWrapperClick},this.renderRectangleDragHandle())),this.props.backgroundColor&&!this.state.isFirstRender&&a.createElement(v.ColorContrastSvg,{metrics:this.gradientWrapper?this.getGradientRectMetrics():void 0,hsva:this.state.hsva,backgroundColor:this.props.backgroundColor})),a.createElement("div",{className:"k-hsv-controls k-hstack"},a.createElement(u.Slider,{value:this.state.hsva.h,buttons:!1,vertical:!0,min:0,max:360,step:5,onChange:this.onHueSliderChange,className:"k-hue-slider k-colorgradient-slider",disabled:this.props.disabled}),this.props.opacity&&a.createElement(u.Slider,{value:d.isPresent(this.state.hsva.a)?100*this.state.hsva.a:100,buttons:!1,vertical:!0,min:0,max:100,step:1,onChange:this.onAlphaSliderChange,className:"k-alpha-slider k-colorgradient-slider",disabled:this.props.disabled,ref:function(t){return e.alphaSlider=t}}))),a.createElement(h.default,{rgba:this.state.rgba,onRgbaChange:this.onRgbaChange,hex:this.state.hex,onHexChange:this.onHexChange,opacity:this.props.opacity,disabled:this.props.disabled}),this.props.backgroundColor&&a.createElement(m.ColorContrastLabels,{bgColor:p.getRGBA(this.props.backgroundColor),rgba:this.state.rgba}))},t.propTypes={defaultValue:i.string,value:i.string,onChange:i.func,onFocus:i.func,opacity:i.bool,backgroundColor:i.string,disabled:i.bool,style:i.any,id:i.string,ariaLabelledBy:i.string,ariaDescribedBy:i.string},t.defaultProps={opacity:!0},t}(a.Component);t.ColorGradient=g},function(e,t){e.exports=o},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 a=n(1),i=n(0),s=n(29),l=n(2),c=n(2),u=n(3),d=n(30),p=n(7),f=n(8);t.DEFAULT_TILE_SIZE=24,t.DEFAULT_COLUMNS_COUNT=10,t.DEFAULT_PRESET="office";var h=function(e){function n(t){var n=e.call(this,t)||this;return n.wrapper=null,n.guid=l.guid(),n.focus=function(){n.wrapper&&n.wrapper.focus()},n.onKeyDown=function(e){switch(e.keyCode){case l.Keys.down:n.handleCellNavigation(0,1);break;case l.Keys.up:n.handleCellNavigation(0,-1);break;case l.Keys.right:n.handleCellNavigation(1,0);break;case l.Keys.left:n.handleCellNavigation(-1,0);break;case l.Keys.enter:n.handleEnter(e);break;default:return}e.preventDefault()},n.onColorClick=function(e,t){n.isUncontrolled?n.setState({selectedColor:e,focusedColor:e}):n.setState({focusedColor:e}),n.dispatchChangeEvent(e,t)},n.onFocus=function(e){n.setState({focusedColor:n.state.selectedColor||n.paletteService.colorRows[0][0]}),n.props.onFocus&&n.props.onFocus.call(void 0,{nativeEvent:e,target:n})},n.onBlur=function(){n.setState({focusedColor:void 0})},c.validatePackage(u.packageMetadata),n.state={selectedColor:void 0!==n.props.value?n.props.value:n.props.defaultValue,isFirstRender:!0},n}return o(n,e),n.prototype.render=function(){var e=this,t=this.getPaletteInfo(),n=this.paletteService=new s.ColorPaletteService;n.setColorMatrix(t.colors,t.columns);var r=n.getCellCoordsFor(this.state.selectedColor),o=n.getCellCoordsFor(this.state.focusedColor),i=l.classNames("k-colorpalette",{"k-state-disabled":this.props.disabled});return t.colors.length?a.createElement("div",{id:this.props.id,className:i,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,"aria-disabled":this.props.disabled?"true":void 0,"aria-activedescendant":r&&this.createCellId(r),"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,tabIndex:l.getTabIndex(this.props.tabIndex,this.props.disabled),ref:function(t){return e.wrapper=t}},a.createElement("div",{className:"k-colorpalette-table-wrap",role:"grid"},a.createElement("table",{className:"k-colorpalette-table k-palette",role:"presentation"},a.createElement("tbody",null,this.renderRows(n.colorRows,r,o))))):""},n.getDerivedStateFromProps=function(e,t){if(t.isFirstRender||void 0===e.value){if(t.isFirstRender)return{isFirstRender:!1}}else{if(""===e.value&&void 0!==t.selectedColor)return{selectedColor:void 0};if(""!==e.value&&e.value!==t.selectedColor)return{selectedColor:e.value}}return null},n.prototype.handleCellNavigation=function(e,t){if(this.focusedColorCooridanates){var n=this.paletteService.getNextCell(this.focusedColorCooridanates,e,t);this.setState({focusedColor:this.paletteService.getColorAt(n)})}else this.setState({focusedColor:this.paletteService.colorRows[0][0]})},n.prototype.handleEnter=function(e){this.isUncontrolled&&this.setState({selectedColor:this.state.focusedColor}),this.dispatchChangeEvent(this.state.focusedColor,e)},n.prototype.dispatchChangeEvent=function(e,t){l.dispatchEvent(this.props.onChange,t,this,{value:e,rgbaValue:f.parseColor(e,"rgba")})},Object.defineProperty(n.prototype,"focusedColorCooridanates",{get:function(){return this.state.focusedColor?this.paletteService.getCellCoordsFor(this.state.focusedColor):void 0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isUncontrolled",{get:function(){return void 0===this.props.value},enumerable:!0,configurable:!0}),n.prototype.getPaletteInfo=function(){if("string"==typeof this.props.palette){var e=d.PALETTEPRESETS[this.props.palette];return p.isPresent(e)?{colors:e.colors,columns:this.props.columns||e.columns||t.DEFAULT_COLUMNS_COUNT}:{colors:[],columns:0}}return{colors:this.props.palette||[],columns:this.props.columns||t.DEFAULT_COLUMNS_COUNT}},n.prototype.renderRows=function(e,t,n){var r=this;return e.map((function(e,o){return a.createElement("tr",{role:"row",key:o},r.renderColumns(e,o,t,n))}))},n.prototype.renderColumns=function(e,t,n,r){var o=this,i=void 0!==n&&n.row===t,s=n&&n.col,c=void 0!==r&&r.row===t,u=r&&r.col,d="number"!=typeof this.props.tileSize?this.props.tileSize:{width:this.props.tileSize,height:this.props.tileSize},p=d.width+"px",f=d.height+"px";return e.map((function(e,n){var r=i&&s===n,d=l.classNames("k-colorpalette-tile",{"k-state-selected":r,"k-state-focus":c&&u===n});return a.createElement("td",{className:d,"aria-label":e,"aria-selected":!!r||!!o.props.disabled&&void 0,style:{backgroundColor:e,width:p,height:f,minWidth:p},onClick:function(t){return o.onColorClick(e,t)},id:o.createCellId({row:t,col:n}),key:n})}))},n.prototype.createCellId=function(e){return this.guid+"_"+e.row+"_"+e.col},n.propTypes={palette:i.oneOfType([i.arrayOf(i.string),i.string]),columns:i.number,tileSize:i.any,defaultValue:i.string,value:i.string,disabled:i.bool,tabIndex:i.number,onChange:i.func,onFocus:i.func,id:i.string,ariaLabelledBy:i.string,ariaDescribedBy:i.string},n.defaultProps={palette:t.DEFAULT_PRESET,tileSize:t.DEFAULT_TILE_SIZE},n}(a.Component);t.ColorPalette=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(16),o=n(38),a=function(e){return(e||"").split("")},i=function(){function e(e){this.parse=e}return e.prototype.run=function(e,t){return void 0===t&&(t=""),e instanceof o.Stream?this.parse(e):this.parse(new o.Stream(a(e),a(t)))},e.prototype.map=function(t){var n=this;return new e((function(e){return n.parse(e).map(t)}))},e.prototype.chain=function(t){var n=this;return new e((function(e){return n.parse(e).chain((function(e,n){return t(e).run(n)}))}))},e.prototype.isLiteral=function(e){return this.run(e).type===r.ResultType.Literal},e}();t.Parser=i,t.mask=function(e){var t=e.prompt,n=e.promptPlaceholder;return function(e){return new i((function(o){for(;!o.eof();){var a=o.peek(),i=a.char,s=a.control;if(i===s&&s===t)return o.eat(),new r.Result(t,o,r.ResultType.Mask);if(e.test(i))return o.eat(),new r.Result(i,o,r.ResultType.Mask);if(i===n)return o.eat(),new r.Result(t,o,r.ResultType.Mask);o.eat_input()}return o.eat(),new r.Result(t,o,r.ResultType.Mask)}))}},t.literal=function(e){return new i((function(t){return t.peek().char===e?(t.eat(),new r.Result(e,t,r.ResultType.Literal)):new r.Result(e,t,r.ResultType.Literal)}))},t.unmask=function(e){return function(t){return new i((function(n){for(;!n.eof();){var o=n.peek(),a=o.char,i=o.control;if(a===e&&i===e)return n.eat(),new r.Result(a,n);if(t.test(a))return n.eat(),new r.Result(a,n);n.eat_input()}return n.eat(),new r.Result("",n)}))}},t.unliteral=function(e){return new i((function(t){return t.eof()?new r.Result("",t):(t.peek().char===e&&t.eat(),new r.Result(e,t))}))},t.token=function(e,t){return new i((function(n){var o=n.next().char,a=e[o];return"\\"===o?(o=n.next().char,new r.Result(t.literal(o),n)):a?new r.Result(t.mask(a),n):new r.Result(t.literal(o),n)}))},t.rawMask=function(e){var t=e.prompt,n=e.promptPlaceholder;return new i((function(e){var o=e.next().char;return o===t?new r.Result(n,e):new r.Result(o,e)}))},t.rawLiteral=function(e){return new i((function(t){var n=t.next().char;return e?new r.Result(n,t):new r.Result("",t)}))}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Literal=0]="Literal",e[e.Mask=1]="Mask",e[e.Undefined=2]="Undefined"}(r=t.ResultType||(t.ResultType={}));var o=function(){function e(e,t,n){void 0===n&&(n=r.Undefined),this.value=e,this.rest=t,this.type=n}return e.prototype.map=function(t){return new e(t(this.value),this.rest)},e.prototype.chain=function(e){return e(this.value,this.rest)},e.prototype.fold=function(e,t){return e(this.value,this.rest)},e.prototype.concat=function(e){return this.map((function(t,n){return e.chain((function(e,n){return t.concat([e])}))}))},e.prototype.toString=function(){return"Result({ value: '"+this.value+"', rest: "+this.rest+" })"},e}();t.Result=o},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=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 o=n(1),a=n(2);t.SLIDER_LABEL_ATTRIBUTE="data-slider-label",t.SliderLabel=function(e){var n,i,s=o.useRef(null),l=a.useDir(s),c=e.vertical?{bottom:e.position+"%",height:"1px",width:"100%"}:((n={})["rtl"===l?"right":"left"]=e.position+"%",n.width="1px",n);return o.createElement("li",{ref:s,role:"presentation",className:"k-tick k-tick-large",title:e.title,style:r({zIndex:1,position:"absolute"},c)},o.createElement("span",r({},((i={})[t.SLIDER_LABEL_ATTRIBUTE]=!0,i),{className:"k-label",onClick:e.onClick}),e.children))}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=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)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),i=n(0),s=n(2),l=n(2),c=n(3);t.RadioButton=a.forwardRef((function(e,t){l.validatePackage(c.packageMetadata);var n=e.ariaDescribedBy,i=e.checked,u=e.children,d=e.className,p=e.disabled,f=e.id,h=e.label,m=e.labelPlacement,v=e.name,g=e.style,b=e.tabIndex,y=e.value,k=e.valid,C=e.onChange,w=e.onFocus,O=e.onBlur,x=o(e,["ariaDescribedBy","checked","children","className","disabled","id","label","labelPlacement","name","style","tabIndex","value","valid","onChange","onFocus","onBlur"]),_=a.useRef(null),E=a.useCallback((function(){_.current&&_.current.focus()}),[]),P=a.useCallback((function(){return{element:_.current,focus:E}}),[E]);a.useImperativeHandle(t,P);var N=a.useMemo((function(){return s.guid()}),[]),S=a.useCallback((function(e){s.dispatchEvent(C,e,P(),{value:y})}),[C,y,p]),I=a.useCallback((function(e){w&&!p&&s.dispatchEvent(w,e,P(),void 0)}),[w,p]),R=a.useCallback((function(e){O&&!p&&s.dispatchEvent(O,e,P(),void 0)}),[O,p]),j=r({type:"radio",id:f||N,name:v,className:s.classNames({"k-radio":!0,"k-state-invalid":!1===k,"k-invalid":!1===k},d),ref:_,disabled:p,tabIndex:s.getTabIndex(b,p),checked:i,style:g,"aria-describedby":n,value:y,onChange:S,onFocus:I,onBlur:R},x),D=a.createElement(a.Fragment,null,void 0!==h?a.createElement("label",{className:"k-radio-label",htmlFor:f||N,style:{userSelect:"none"},"aria-label":h},h):null),M=a.createElement("input",r({},j));return"before"===m?a.createElement(a.Fragment,null,D,M,u):a.createElement(a.Fragment,null,M,D,u)})),t.RadioButton.propTypes={ariaDescribedBy:i.string,checked:i.bool,className:i.string,disabled:i.bool,id:i.string,label:i.string,labelPlacement:i.string,name:i.string,style:i.object,tabIndex:i.number,value:i.any,valid:i.bool,onChange:i.func,onFocus:i.func,onBlur:i.func},t.RadioButton.displayName="KendoRadioButton"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),a=n(2);t.RatingItem=r.forwardRef((function(e,t){var n=r.useRef(null),o=r.useRef(null),i=a.useDir(o,e.dir);r.useImperativeHandle(n,(function(){return{element:o.current,props:e,value:e.value}})),r.useImperativeHandle(t,(function(){return n.current}));var s=r.useCallback((function(t){e.onClick&&e.onClick.call(void 0,{value:e.value,target:n.current,syntheticEvent:t})}),[e.onClick,e.value]),l=r.useCallback((function(t){e.onKeyDown&&e.onKeyDown.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onKeyDown]),c=r.useCallback((function(t){e.onFocus&&e.onFocus.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onFocus]),u=r.useCallback((function(t){e.onBlur&&e.onBlur.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onBlur]),d=r.useCallback((function(t){e.onMouseMove&&e.onMouseMove.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onMouseMove]),p=r.useCallback((function(t){e.onMouseEnter&&e.onMouseEnter.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onMouseEnter]),f=r.useCallback((function(t){e.onMouseLeave&&e.onMouseLeave.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onMouseLeave]);return r.createElement("span",{id:e.id,ref:o,dir:i,"data-half":e.half,tabIndex:e.tabIndex,title:e.title,style:e.style,className:a.classNames("k-rating-item",{"k-rtl":"rtl"===i,"k-state-selected":e.selected,"k-state-hovered":e.hovered},e.className),onClick:s,onKeyDown:l,onFocus:c,onBlur:u,onMouseEnter:p,onMouseLeave:f,onMouseMove:d},e.children)}));var i={id:o.string,icon:o.any,dir:o.oneOf(["ltr","rtl"]),title:o.string,value:o.number,half:o.bool,selected:o.bool,hovered:o.bool};t.RatingItem.displayName="KendoReactRatingItem",t.RatingItem.propTypes=i,t.RatingItem.defaultProps={dir:"ltr"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toRound=function(e,t){if(e%1){var n=Math.pow(10,(t.toString().split(".")[1]||t.toString().split(".")[0]).length);return Math.round(e*n)/n}return e},t.getRemainder=function(e,t){return e-t*Math.floor(e/t)},t.isHalf=function(e,n,r){return t.toRound(e-r,r)<n&&n<e},t.isSelected=function(e,n,r,o){return null!==n&&("continues"===o?t.isHalf(e,n,r)?t.toRound(e-r/2,r/2)<=n:e<=n:"single"===o&&(t.isHalf(e,n,r)?t.toRound(e-r/2,r/2)===n:e===n))},t.calcIsFirstHalf=function(e,t,n){return"ltr"===e?n<t.x+t.width/2:n>t.x+t.width/2},t.isCorrectValue=function(e,t,n,r){for(var o=e;o<=t;o+=n)if(r===o)return!0;return!1}},function(e,t,n){"use strict";n.r(t),n.d(t,"Toolbar",(function(){return F})),n.d(t,"ToolbarItem",(function(){return G})),n.d(t,"ToolbarSeparator",(function(){return H})),n.d(t,"ToolbarSpacer",(function(){return U})),n.d(t,"Button",(function(){return m})),n.d(t,"ButtonGroup",(function(){return y})),n.d(t,"SplitButton",(function(){return j})),n.d(t,"SplitButtonItem",(function(){return O})),n.d(t,"DropDownButton",(function(){return B})),n.d(t,"DropDownButtonItem",(function(){return M})),n.d(t,"Chip",(function(){return ae})),n.d(t,"ChipList",(function(){return te})),n.d(t,"FloatingActionButton",(function(){return be})),n.d(t,"FloatingActionButtonItem",(function(){return ue}));var r,o=n(1),a=n(0),i=n(2),s={name:"@progress/kendo-react-buttons",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1637584136,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"},l=':not(.k-state-disabled):not([disabled]):not([disabled="true"])',c=["button"+l,".k-button-group > button"+l,".k-dropdown > .k-dropdown-wrap"+l,".k-colorpicker > .k-picker-wrap"+l],u={button:"k-button",flat:"k-flat",outline:"k-outline",clear:"k-button-clear",primary:"k-primary","state-selected":"k-state-selected","button-icon":"k-button-icon","button-icontext":"k-button-icontext","state-disabled":"k-state-disabled","group-start":"k-group-start","group-end":"k-group-end","button-group":"k-button-group","button-group-stretched":"k-button-group-stretched",ltr:"k-ltr",rtl:"k-rtl"},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)}),p=function(){return(p=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)},f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},h=u;var m=function(e){function t(t){var n=e.call(this,t)||this;return n._element=null,n.handleClick=function(e){n.toggleIfApplicable(),n.props.onClick&&n.props.onClick.call(void 0,e)},Object(i.validatePackage)(s),n.state={selected:!0===n.props.togglable&&!0===n.props.selected},n}return d(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return void 0!==this._selectedTemp?this._selectedTemp:this.state.selected},enumerable:!0,configurable:!0}),t.getDerivedStateFromProps=function(e,t){return e.togglable&&void 0!==e.selected&&e.selected!==t.selected?{selected:e.selected}:null},t.prototype.render=function(){var e,t=this,n=this.props,r=n.children,a=n.look,s=n.primary,l=n.togglable,c=n.icon,u=n.iconClass,d=n.imageUrl,m=n.imageAlt,v=n.className,g=(n.onClick,f(n,["children","look","primary","togglable","icon","iconClass","imageUrl","imageAlt","className","onClick"])),b=void 0!==c||void 0!==u||void 0!==d,y=void 0!==r,k={className:Object(i.classNames)([h.button],((e={})[h[""+a]]="default"!==a,e[h.primary]=s,e[h["state-disabled"]]=this.props.disabled,e[h["state-selected"]]=this.state.selected,e[h["button-icon"]]=!y&&b,e[h["button-icontext"]]=y&&b,e),[h[""+this.props.dir]],v),onClick:this.handleClick,role:l?"checkbox":void 0,"aria-disabled":this.props.disabled||void 0,"aria-checked":l?this.state.selected:void 0},C=function(e){var t=e.imageUrl,n=e.icon,r=e.iconClass,a=e.imageAlt;if(t)return o.createElement("img",{role:"presentation",className:"k-image",alt:a,src:t});if(n){var s=Object(i.classNames)("k-icon","k-i-"+n);return o.createElement("span",{role:"presentation",className:s})}return r?o.createElement("span",{role:"presentation",className:r}):null}({icon:c,iconClass:u,imageUrl:d,imageAlt:m});return o.createElement("button",p({},k,g,{ref:function(e){return t._element=e}}),C,r)},t.prototype.toggleIfApplicable=function(){var e=this;if(this.props.togglable&&void 0===this.props.selected){var t=!this.state.selected;this._selectedTemp=t,this.setState({selected:t},(function(){return e._selectedTemp=void 0}))}},t.propTypes={children:a.node,look:a.oneOf(["default","flat","outline","clear"]),primary:a.bool,selected:a.bool,togglable:a.bool,icon:a.string,iconClass:a.string,imageUrl:a.string,imageAlt:a.string},t.defaultProps={look:"default",primary:!1,togglable:!1},t}(o.Component),v=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)}}(),g=function(){return(g=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)},b=u,y=function(e){function t(t){var n=e.call(this,t)||this;return n._element=null,Object(i.validatePackage)(s),n}return v(t,e),t.prototype.render=function(){var e,t=this,n=this.mapButtons(this.props.children),r=Object(i.classNames)([b["button-group"]],((e={})[b["state-disabled"]]=this.props.disabled,e[b["button-group-stretched"]]=!!this.props.width,e),this.props.className),a={className:r,style:{width:""+this.props.width},dir:this.props.dir,role:"group","aria-disabled":this.props.disabled};return o.createElement("div",g({ref:function(e){t._element=e}},a,{className:r}),n)},t.prototype.mapButtons=function(e){var t=this,n=o.Children.count(e),r=void 0!==this.props.dir?"rtl"===this.props.dir:this._element&&"rtl"===getComputedStyle(this._element).direction||!1;return o.Children.map(e,(function(e,a){return o.isValidElement(e)?t.renderButton(e,a,a===n-1,r):e}))},t.prototype.renderButton=function(e,t,n,r){var a,s=Object(i.classNames)(e.props.className,((a={})[b["group-start"]]=r?n:0===t,a[b["group-end"]]=r?0===t:n,a)),l=g({},this.props.width?{width:this.props.width}:{},e.props.style||{}),c=this.props.disabled||e.props.disabled,u=g({},e.props,s?{className:s}:{},Object.keys(l).length?{style:l}:{},void 0!==c?{disabled:c}:{});return o.Children.count(e.props.children)>0?o.cloneElement(e,u,e.props.children):o.cloneElement(e,u)},t.propTypes={children:a.oneOfType([a.arrayOf(a.element),a.element]),className:a.string,disabled:a.bool,width:a.string,dir:a.string},t}(o.Component),k=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)}}(),C=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onClick=function(e){return t.props.onClick(e,t.props.index)},t}return k(t,e),t.prototype.render=function(){var e=this.props,t=e.dataItem,n=e.focused,r=e.id,a=e.onDown,s=e.render,l=o.createElement("li",{id:r,className:Object(i.classNames)("k-item",{"k-state-focused":n,"k-state-selected":t.selected,"k-state-disabled":t.disabled}),onClick:this.onClick,onMouseDown:a,onPointerDown:a,role:"menuItem","aria-disabled":t.disabled||void 0},this.renderContent());return void 0!==this.props.item&&void 0!==s?s.call(void 0,l,this.props):l},t.prototype.renderContent=function(){var e=this.props,t=e.dataItem,n=e.textField,r=e.index,a=this.props.dataItem.render||this.props.item||(void 0===this.props.item?this.props.render:null),i=void 0!==t.text?t.text:n?t[n]:t,s=t.icon?"k-icon k-i-"+t.icon:t.iconClass;return a&&o.createElement(a,{item:t,itemIndex:r})||[s&&o.createElement("span",{className:s,role:"presentation",key:"icon"}),t.imageUrl&&o.createElement("img",{className:"k-image",alt:"",src:t.imageUrl,role:"presentation",key:"image"}),i]},t}(o.Component),w=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)}}(),O=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return w(t,e),t.prototype.render=function(){return null},t.propTypes={text:a.string,icon:a.string,iconClass:a.string,imageUrl:a.string,disabled:a.bool,render:a.any},t}(o.Component),x=function(e,t,n,r){if(n)return e;switch(t){case i.Keys.enter:case i.Keys.space:case i.Keys.esc:return-1;case i.Keys.up:case i.Keys.left:return Math.max(0,e-1);case i.Keys.down:case i.Keys.right:return Math.min(r-1,e+1);default:return e}},_=n(6);function E(e){var t={horizontal:"left",vertical:"bottom"};return e&&(t.horizontal="right"),t}function P(e){var t={horizontal:"left",vertical:"top"};return e&&(t.horizontal="right"),t}var N,S,I=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)}}(),R=u,j=function(e){function t(t){var n=e.call(this,t)||this;return n.state={focused:!1,focusedIndex:-1,opened:!1},n.wrapper=null,n.mainButton=null,n.guid=Object(i.guid)(),n.buttonsData=[],n.onKeyDown=function(e){var t=n.state.focusedIndex;if(e.altKey)n.opened||e.keyCode!==i.Keys.down?n.opened&&e.keyCode===i.Keys.up&&(n.dispatchPopupEvent(e,!1),n.setState({focusedIndex:-1,opened:!1})):(n.dispatchPopupEvent(e,!0),n.setState({focusedIndex:0,opened:!0}));else{var r=void 0;if(e.keyCode===i.Keys.enter||e.keyCode===i.Keys.space?(e.preventDefault(),n.dispatchClickEvent(e,t),t>=0&&(r={focusedIndex:n.opened?-1:0,opened:!n.opened},n.dispatchPopupEvent(e,r.opened))):n.opened&&e.keyCode===i.Keys.esc&&(r={focusedIndex:-1,opened:!1},n.dispatchPopupEvent(e,r.opened)),n.opened){var o=x(t,e.keyCode,e.altKey,n.buttonsData.length);o!==t&&((r=r||{}).focusedIndex=o);var a=e.keyCode===i.Keys.up||e.keyCode===i.Keys.down||e.keyCode===i.Keys.left||e.keyCode===i.Keys.right;!e.altKey&&a&&e.preventDefault()}r&&n.setState(r)}},n.onFocus=function(e){Object(i.dispatchEvent)(n.props.onFocus,e,n,void 0),n.setState({focused:!0,focusedIndex:-1})},n.onItemClick=function(e,t){var r=n.opened;r&&n.setState({focusedIndex:0,opened:!1}),n.dispatchClickEvent(e,t),r&&n.dispatchPopupEvent(e,!1)},n.onBlur=function(e){n.setState({focused:!1,focusedIndex:-1,opened:!1}),Object(i.dispatchEvent)(n.props.onBlur,e,n,void 0),n.opened&&n.dispatchPopupEvent(e,!1)},n.onSplitPartClick=function(e){if(n.buttonsData.length){var t=!n.opened;n.dispatchPopupEvent(e,t),n.setState({focusedIndex:t?0:-1,opened:t,focused:!0})}},n.onDownSplitPart=function(e){e.preventDefault(),n.element&&document.activeElement!==n.element&&n.element.focus()},n.onItemDown=function(e){document.activeElement===n.element&&e.preventDefault()},n.dispatchPopupEvent=function(e,t){Object(i.dispatchEvent)(t?n.props.onOpen:n.props.onClose,e,n,void 0)},Object(i.validatePackage)(s),n}return I(t,e),Object.defineProperty(t.prototype,"opened",{get:function(){return void 0===this.props.opened?this.state.opened:this.props.opened},enumerable:!0,configurable:!0}),t.prototype.render=function(){var e=this;this.buttonsData=this.props.items||o.Children.toArray(this.props.children).filter((function(e){return e&&e.type===O})).map((function(e){return e.props}));var t=this.isRtl(),n=t?"rtl":void 0,r=this.props,a=r.tabIndex,s=r.disabled,l=this.state.focusedIndex;return o.createElement("div",{className:Object(i.classNames)("k-widget","k-split-button","k-button-group",[R[""+this.props.look]],{"k-state-focused":this.state.focused},this.props.className),onKeyDown:this.onKeyDown,onFocus:this.onFocus,onBlur:this.onBlur,dir:n,ref:function(t){return e.wrapper=t}},o.createElement(m,{onClick:function(t){return e.onItemClick(t,-1)},disabled:s||void 0,tabIndex:a,accessKey:this.props.accessKey,className:this.props.buttonClass,icon:this.props.icon,iconClass:this.props.iconClass,imageUrl:this.props.imageUrl,look:this.props.look,dir:n,ref:function(t){return e.mainButton=t&&t.element},type:"button","aria-disabled":s,"aria-haspopup":!0,"aria-expanded":this.opened,"aria-label":this.props.text+" splitbutton","aria-owns":this.guid,"aria-activedescendant":l>=0?this.guid+"-"+l:void 0},this.props.text),o.createElement(m,{icon:"arrow-s",disabled:s||void 0,tabIndex:-1,look:this.props.look,onClick:this.onSplitPartClick,onMouseDown:this.onDownSplitPart,onPointerDown:this.onDownSplitPart,dir:n,"aria-label":"menu toggling button"}),this.renderPopup(t))},t.prototype.componentDidMount=function(){(void 0===this.props.dir&&this.isRtl()||this.opened)&&this.forceUpdate()},Object.defineProperty(t.prototype,"element",{get:function(){return this.mainButton},enumerable:!0,configurable:!0}),t.prototype.dispatchClickEvent=function(e,t){this.isItemDisabled(t)||(-1===t?Object(i.dispatchEvent)(this.props.onButtonClick,e,this,void 0):Object(i.dispatchEvent)(this.props.onItemClick,e,this,{item:this.buttonsData[t],itemIndex:t}))},t.prototype.renderPopup=function(e){var t=this.props.popupSettings,n=void 0===t?{}:t;return o.createElement(_.Popup,{anchor:this.wrapper,show:this.opened,animate:n.animate,popupClass:Object(i.classNames)("k-list-container k-reset k-group",n.popupClass),anchorAlign:n.anchorAlign||E(e),popupAlign:n.popupAlign||P(e),style:e?{direction:"rtl"}:void 0},o.createElement("ul",{className:"k-list k-reset",role:"menu",id:this.guid},this.renderChildItems()))},t.prototype.renderChildItems=function(){var e=this,t=this.props,n=t.item,r=t.itemRender,a=t.textField;return this.buttonsData.length>0?this.buttonsData.map((function(t,i){return o.createElement(C,{dataItem:t,textField:a,focused:e.state.focusedIndex===i,onClick:e.onItemClick,onDown:e.onItemDown,render:r,item:n,key:i,index:i,id:e.guid+"-"+i})})):null},t.prototype.isItemDisabled=function(e){return this.buttonsData[e]?this.buttonsData[e].disabled:this.props.disabled},t.prototype.isRtl=function(){return void 0!==this.props.dir?"rtl"===this.props.dir:!!this.wrapper&&"rtl"===getComputedStyle(this.wrapper).direction},t.propTypes={accessKey:a.string,onButtonClick:a.func,onFocus:a.func,onBlur:a.func,onItemClick:a.func,onOpen:a.func,onClose:a.func,text:a.string,items:a.arrayOf(a.any),textField:a.string,tabIndex:a.number,disabled:a.bool,icon:a.string,iconClass:a.string,imageUrl:a.string,popupSettings:a.object,itemRender:a.any,item:a.func,look:a.string,className:a.string,buttonClass:a.string,dir:a.string},t}(o.Component),D=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)}}(),M=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return D(t,e),t.prototype.render=function(){return null},t.propTypes={text:a.string,icon:a.string,iconClass:a.string,imageUrl:a.string,selected:a.bool,disabled:a.bool,render:a.any},t}(o.Component),T=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)}}(),A=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)},B=function(e){function t(t){var n=e.call(this,t)||this;return n.state={opened:!1,focused:!1,focusedIndex:-1},n.wrapper=null,n.mainButton=null,n.guid=Object(i.guid)(),n.buttonsData=[],n.onKeyDown=function(e){var t=n.state.focusedIndex;if(e.altKey)n.opened||e.keyCode!==i.Keys.down?n.opened&&e.keyCode===i.Keys.up&&(n.dispatchPopupEvent(e,!1),n.setState({focusedIndex:-1,opened:!1})):(n.dispatchPopupEvent(e,!0),n.setState({focusedIndex:0,opened:!0}));else{var r=A({},n.state);if(e.keyCode===i.Keys.enter||e.keyCode===i.Keys.space?(t>=0&&n.dispatchClickEvent(e,t),e.preventDefault(),r.focusedIndex=n.opened?-1:0,r.opened=!n.opened,n.dispatchPopupEvent(e,r.opened)):n.opened&&e.keyCode===i.Keys.esc&&(r.focusedIndex=-1,r.opened=!1,n.dispatchPopupEvent(e,r.opened)),n.opened){var o=x(t,e.keyCode,e.altKey,n.buttonsData.length);r.focusedIndex=o;var a=e.keyCode===i.Keys.up||e.keyCode===i.Keys.down||e.keyCode===i.Keys.left||e.keyCode===i.Keys.right;!e.altKey&&a&&e.preventDefault()}n.setState(r)}},n.onFocus=function(e){n.setState({focused:!0,focusedIndex:n.opened?0:-1}),Object(i.dispatchEvent)(n.props.onFocus,e,n,void 0)},n.onBlur=function(e){n.setState({focused:!1,opened:!1,focusedIndex:-1}),Object(i.dispatchEvent)(n.props.onBlur,e,n,void 0),n.opened&&n.dispatchPopupEvent(e,!1)},n.onItemClick=function(e,t){n.setState({focusedIndex:-1,opened:!1}),n.dispatchClickEvent(e,t),n.dispatchPopupEvent(e,!1)},n.onItemDown=function(e){document.activeElement===n.element&&e.preventDefault()},n.mouseDown=function(e){e.preventDefault()},n.onClickMainButton=function(e){if(n.buttonsData.length){var t=!n.opened;n.setState({opened:t,focused:!0,focusedIndex:t?0:-1}),n.dispatchPopupEvent(e,t)}},n.dispatchPopupEvent=function(e,t){Object(i.dispatchEvent)(t?n.props.onOpen:n.props.onClose,e,n,void 0)},Object(i.validatePackage)(s),n}return T(t,e),Object.defineProperty(t.prototype,"opened",{get:function(){return void 0===this.props.opened?this.state.opened:this.props.opened},enumerable:!0,configurable:!0}),t.prototype.render=function(){var e=this,t=this.isRtl(),n=t?"rtl":void 0,r=this.props,a=r.tabIndex,s=r.disabled,l=this.state.focusedIndex;return this.buttonsData=this.props.items||o.Children.toArray(this.props.children).filter((function(e){return e&&e.type===M})).map((function(e){return e.props})),o.createElement("div",{className:Object(i.classNames)("k-widget","k-dropdown-button",this.props.className,{"k-state-focused":this.state.focused}),onKeyDown:this.onKeyDown,onFocus:this.onFocus,onBlur:this.onBlur,dir:n,ref:function(t){return e.wrapper=t}},o.createElement(m,{onClick:this.onClickMainButton,onMouseDown:this.mouseDown,disabled:s||void 0,tabIndex:a,accessKey:this.props.accessKey,icon:this.props.icon,iconClass:this.props.iconClass,className:this.props.buttonClass,imageUrl:this.props.imageUrl,look:this.props.look,primary:this.props.primary,dir:n,ref:function(t){return e.mainButton=t&&t.element},type:"button","aria-disabled":s,"aria-haspopup":!0,"aria-expanded":this.opened,"aria-label":this.props.text+" dropdownbutton","aria-owns":this.guid,"aria-activedescendant":l>=0?this.guid+"-"+l:void 0},this.props.text),this.renderPopup(t))},t.prototype.componentDidMount=function(){(void 0===this.props.dir&&this.isRtl()||this.opened)&&this.forceUpdate()},t.prototype.componentDidUpdate=function(){this.state.focused&&this.element&&this.element.focus()},Object.defineProperty(t.prototype,"element",{get:function(){return this.mainButton},enumerable:!0,configurable:!0}),t.prototype.dispatchClickEvent=function(e,t){this.isItemDisabled(t)||Object(i.dispatchEvent)(this.props.onItemClick,e,this,{item:this.buttonsData[t],itemIndex:t})},t.prototype.renderPopup=function(e){var t=this.props.popupSettings,n=void 0===t?{}:t;return o.createElement(_.Popup,{anchor:this.wrapper,show:this.opened,animate:n.animate,popupClass:Object(i.classNames)("k-list-container k-reset k-group",n.popupClass),anchorAlign:n.anchorAlign||E(e),popupAlign:n.popupAlign||P(e),style:e?{direction:"rtl"}:void 0},o.createElement("ul",{className:"k-list k-reset",role:"menu",id:this.guid},this.renderChildItems()))},t.prototype.renderChildItems=function(){var e=this,t=this.props,n=t.item,r=t.itemRender,a=t.textField;return this.buttonsData.length>0?this.buttonsData.map((function(t,i){return o.createElement(C,{dataItem:t,textField:a,focused:e.state.focusedIndex===i,onClick:e.onItemClick,onDown:e.onItemDown,render:r,item:n,index:i,key:i,id:e.guid+"-"+i})})):null},t.prototype.isItemDisabled=function(e){return this.buttonsData[e]?this.buttonsData[e].disabled:this.props.disabled},t.prototype.isRtl=function(){return void 0!==this.props.dir?"rtl"===this.props.dir:!!this.wrapper&&"rtl"===getComputedStyle(this.wrapper).direction},t.propTypes={accessKey:a.string,primary:a.bool,onFocus:a.func,onBlur:a.func,onItemClick:a.func,onOpen:a.func,onClose:a.func,items:a.arrayOf(a.any),textField:a.string,tabIndex:a.number,disabled:a.bool,icon:a.string,iconClass:a.string,imageUrl:a.string,popupSettings:a.object,itemRender:a.func,item:a.func,look:a.string,className:a.string,buttonClass:a.string,dir:a.string},t}(o.Component),L=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)}}(),V=function(){return(V=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)},F=function(e){function t(n){var r=e.call(this,n)||this;return r._element=null,r.offsetHeight=0,r.offsetWidth=0,r.buttons=[],r.focusedSelector=r.selectors.map((function(e){return e+":focus"})).join(","),r.setTabIndex=function(e){var n=r.props.tabIndex,o=void 0===n?t.defaultProps.tabIndex:n;r.buttons.forEach((function(t,n){t.tabIndex=n===e?o:-1}))},r.onKeyDown=function(e){var t=e.target;if((e.keyCode===i.Keys.left||e.keyCode===i.Keys.right)&&!e.defaultPrevented&&-1!==r.buttons.findIndex((function(e){return e===t}))){var n=r.focusedIndex;e.keyCode===i.Keys.left?r.focusButton(n,n-1):r.focusButton(n,n+1)}},r.onWindowResize=function(e){var t=r.element;if(t){var n=t.offsetWidth,o=t.offsetHeight;if(r.offsetWidth!==n||r.offsetHeight!==o){r.offsetWidth=n,r.offsetHeight=o;var a={offsetWidth:r.offsetWidth,offsetHeight:r.offsetHeight};r.props.onResize&&r.props.onResize.call(void 0,V({target:r},a,{nativeEvent:e}))}}},Object(i.validatePackage)(s),r}return L(t,e),Object.defineProperty(t.prototype,"selectors",{get:function(){return this.props.buttons||c},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"focusedIndex",{get:function(){var e=this.element&&this.element.querySelector(this.focusedSelector);return Math.max(0,this.buttons.findIndex((function(t){return t===e})))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),t.prototype.componentDidMount=function(){window.addEventListener("resize",this.onWindowResize);var e=this.element;e&&(this.offsetWidth=e.offsetWidth,this.offsetHeight=e.offsetHeight,!1!==this.props.keyboardNavigation&&(this.buttons=Array.from(e.querySelectorAll(this.selectors.join(","))),this.setTabIndex(0)))},t.prototype.componentDidUpdate=function(){var e=this.element;e&&!1!==this.props.keyboardNavigation&&(this.buttons=Array.from(e.querySelectorAll(this.selectors.join(","))),this.setTabIndex(this.focusedIndex))},t.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.onWindowResize),this.buttons.length=0},t.prototype.render=function(){var e=this;return o.createElement("div",{className:Object(i.classNames)("k-widget k-toolbar",this.props.className),style:this.props.style,role:"toolbar",dir:this.props.dir,ref:function(t){return e._element=t},onKeyDown:!1!==this.props.keyboardNavigation?this.onKeyDown:void 0},this.props.children)},t.prototype.focusButton=function(e,n){var r=this.props.tabIndex,o=void 0===r?t.defaultProps.tabIndex:r,a=this.buttons[n];if(a){a.tabIndex=o,a.focus();var i=this.buttons[e];i&&(i.tabIndex=-1)}},t.propTypes={tabIndex:a.number,dir:a.string,keyboardNavigation:a.bool,style:a.object,className:a.string,onResize:a.func,buttons:a.arrayOf(a.string)},t.defaultProps={tabIndex:0},t}(o.Component),K=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)}}(),G=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._element=null,t}return K(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),t.prototype.render=function(){var e=this;return o.createElement("span",{className:this.props.className,style:this.props.style,ref:function(t){return e._element=t}},this.props.children)},t.propTypes={className:a.string},t}(o.PureComponent),z=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)}}(),H=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return z(t,e),t.prototype.render=function(){return o.createElement(G,{className:"k-separator"})},t}(o.PureComponent),U=o.forwardRef((function(e,t){var n=o.useRef(null),r=o.useRef(null);o.useImperativeHandle(r,(function(){return{element:n.current}})),o.useImperativeHandle(t,(function(){return{element:n.current}}));var a=o.useMemo((function(){return Object(i.classNames)("k-spacer",e.className)}),[e.className]);return o.createElement("span",{ref:n,className:a})}));U.propTypes={className:a.string},function(e){e.single="single",e.multiple="multiple",e.none="none"}(N||(N={})),function(e){e.toggle="toggle",e.remove="remove"}(S||(S={}));var q;!function(e){e.next="next",e.prev="prev",e.current="current",e.reset="reset"}(q||(q={}));var W;!function(e){e.remove="remove",e.add="add",e.reorder="reorder"}(W||(W={}));var X=function(){return(X=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)},Y=o.createContext([null,function(e){}]),Z=o.createContext([null,function(e){}]),$=o.createContext([null,function(e){}]),J=function(e,t,n){var r=o.useState(e),a=r[0],i=r[1];return[a,function(e){var r=function(e,t){switch(t.selection){case N.single:switch(t.type){case S.toggle:if(!Array.isArray(e)||null===e)return t.payload===e?null:t.payload;throw new Error("State cannot be an array in single selection");case S.remove:return t.payload===e?null:e;default:return e}case N.multiple:switch(t.type){case S.toggle:if(Array.isArray(e))return e.some((function(e){return e===t.payload}))?e.filter((function(e){return e!==t.payload})):e.concat([t.payload]);if(null===e)return[t.payload];throw new Error("State cannot be non-array in multiple selection");case S.remove:return Array.isArray(e)?e.some((function(e){return e===t.payload}))?e.filter((function(e){return e!==t.payload})):e.concat([t.payload]):e;default:return e}case N.none:return null;default:return e}}(t.state||a,X({},e,t));n&&n(r,e.event),i(r)}]},Q=function(e){var t=o.useState(null),n=t[0],r=t[1];return[n,function(t){var n=function(e,t){var n=t.items.findIndex((function(t){return t===e}));switch(t.type){case q.next:return n===t.items.length-1?e:t.items[n+1];case q.prev:return 0===n?e:t.items[n-1];case q.current:return t.payload;case q.reset:return null;default:return e}}(t.payload,X({},t,e));r(n)}]},ee=function(e,t,n){var r=o.useState(e),a=r[0],i=r[1];return[a,function(e){var r=function(e,t){switch(t.type){case W.add:break;case W.remove:return e.filter((function(e){return e[t.valueField]!==t.payload}));case W.reorder:break;default:return e}}(t.state||a,X({},e,t));n&&n(r,e.event),i(r)}]},te=o.forwardRef((function(e,t){Object(i.validatePackage)(s);var n=o.useRef(null),r=o.useRef(null),a=Object(i.useDir)(r,e.dir),l=o.useMemo((function(){return e.chip||ae}),[e.chip,ae]),c=o.useMemo((function(){return e.selection||re.selection}),[e.selection,re.selection]);o.useImperativeHandle(n,(function(){return{element:r.current,props:e}})),o.useImperativeHandle(t,(function(){return n.current}));var u=o.useCallback((function(t,r){e.onChange&&n.current&&e.onChange.call(void 0,{value:t,target:n.current,syntheticEvent:r})}),[e.onChange]),d=J(e.value||e.defaultValue,{selection:c,state:e.value},u),p=d[0],f=d[1],h=o.useCallback((function(t,r){e.onDataChange&&n.current&&e.onDataChange.call(void 0,{value:t,target:n.current,syntheticEvent:r})}),[e.onDataChange]),m=ee(e.data||e.defaultData||re.defaultData,{state:e.data,valueField:e.valueField||re.valueField},h),v=m[0],g=m[1],b=o.useCallback((function(t,n){return t.push(n[e.valueField||re.valueField]),t}),[e.valueField,re.valueField]),y=o.useMemo((function(){return e.data||v}),[e.data,v]),k=o.useMemo((function(){return e.value||p}),[e.value,p]),C=o.useMemo((function(){return y.reduce(b,[])}),[y,b]),w=Q({items:C}),O=w[0],x=w[1],_=Object(i.useMouse)(e,n);return o.createElement(Y.Provider,{value:[k,f]},o.createElement(Z.Provider,{value:[O,x]},o.createElement($.Provider,{value:[y,g]},o.createElement("div",X({ref:r},_,{role:"listbox",id:e.id,dir:a,style:e.style,tabIndex:Object(i.getTabIndex)(e.tabIndex,e.disabled,void 0),className:Object(i.classNames)("k-chip-list",{"k-rtl":"rtl"===a,"k-selection-single":"single"===c,"k-selection-multiple":"multiple"===c,"k-state-disabled":e.disabled},e.className),"aria-labelledby":e.ariaLabelledBy,"aria-describedby":e.ariaDescribedBy}),y.map((function(t){return o.createElement(l,{role:"option",dataItem:t,key:t[e.valueField||re.valueField],text:t[e.textField||re.textField],value:t[e.valueField||re.valueField]})}))))))})),ne={id:a.string,className:a.string,tabIndex:a.number,data:a.any,defaultData:a.arrayOf(a.any),onDataChange:a.func,value:a.oneOfType([a.any,a.arrayOf(a.any)]),defaultValue:a.oneOfType([a.any,a.arrayOf(a.any)]),onChange:a.func,selection:a.oneOf(["single","none","multiple"]),textField:a.string,valueField:a.string,disabled:a.bool,dir:a.oneOf(["ltr","rtl"]),ariaLabelledBy:a.string,ariaDescribedBy:a.string},re={chip:ae,disabled:!1,defaultValue:null,defaultData:[],dir:"ltr",selection:"none",textField:"text",valueField:"value",removable:"removable"};te.displayName="KendoReactChipList",te.propTypes=ne,te.defaultProps=re;var oe=function(){return(oe=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)},ae=o.forwardRef((function(e,t){Object(i.validatePackage)(s);var n=o.useRef(null),r=o.useRef(null),a=Object(i.useDir)(r,e.dir);o.useImperativeHandle(n,(function(){return{element:r.current,props:e}})),o.useImperativeHandle(t,(function(){return n.current}));var l=o.useContext(Y),c=l[0],u=l[1],d=o.useContext(Z),p=d[0],f=d[1],h=o.useContext($)[1],m=o.useMemo((function(){return e.selected||(Array.isArray(c)?c.some((function(t){return t===e.value})):c===e.value)}),[e.selected,e.value,c]),v=o.useMemo((function(){return p===e.value}),[e.value,p]),g=o.useMemo((function(){return e.look||se.look}),[e.look]);o.useEffect((function(){v&&r.current&&r.current.focus()}),[v]);var b=o.useCallback((function(t){u({type:S.toggle,payload:e.value,event:t}),e.onClick&&e.onClick.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onClick,u,e.value]),y=o.useCallback((function(t){e.removable&&(h({type:W.remove,payload:e.value,event:t}),f({type:q.reset,payload:e.value,event:t}),u({type:S.remove,payload:e.value,event:t}),e.onRemove&&e.onRemove.call(void 0,{target:n.current,syntheticEvent:t}))}),[e.onRemove,e.removable,h,f,u]),k=o.useCallback((function(t){switch(t.keyCode){case i.Keys.left:f({type:q.prev,payload:e.value,event:t});break;case i.Keys.right:f({type:q.next,payload:e.value,event:t});break;case i.Keys.enter:u({type:S.toggle,payload:e.value,event:t});break;case i.Keys.delete:y(t)}e.onKeyDown&&e.onKeyDown.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onKeyDown,f,u,y]),C=o.useCallback((function(t){f({payload:e.value,type:q.current,event:t}),e.onFocus&&e.onFocus.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onFocus,f]),w=o.useCallback((function(t){e.onBlur&&e.onBlur.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onBlur]),O=Object(i.useMouse)(e,n,{onClick:b});return o.createElement("div",oe({},O,{role:e.role,id:e.value,style:e.style,ref:r,dir:a,tabIndex:Object(i.getTabIndex)(e.tabIndex,e.disabled,void 0),className:Object(i.classNames)("k-chip",{"k-rtl":"rtl"===a,"k-state-disabled":e.disabled,"k-state-selected":m,"k-state-focus":v,"k-chip-success":"success"===e.type,"k-chip-warning":"warning"===e.type,"k-chip-error":"error"===e.type,"k-chip-info":"info"===e.type,"k-chip-has-icon":e.icon,"k-chip-outline":"outline"===g||"outlined"===g,"k-chip-solid":"solid"===g||"filled"===g},e.className),"aria-checked":m,"aria-disabled":e.disabled,"aria-describedby":e.ariaDescribedBy,onFocus:C,onBlur:w,onKeyDown:k}),m&&o.createElement("span",{className:"k-selected-icon-wrapper"},o.createElement("span",{className:"k-selected-icon k-icon "+(e.selectedIcon||se.selectedIcon)})),e.icon&&o.createElement("span",{className:"k-icon k-chip-icon "+e.icon}),o.createElement("span",{className:"k-chip-content"},void 0!==e.children?e.children:e.text&&o.createElement("span",{"aria-label":e.text,className:"k-chip-label"},e.text)),e.removable&&o.createElement("span",{className:"k-remove-icon",onClick:y},o.createElement("span",{className:"k-icon "+e.removeIcon})))})),ie={id:a.string,text:a.string,value:a.any,type:a.oneOf(["none","success","warning","error","info"]),dir:a.oneOf(["ltr","rtl"]),removable:a.bool,removeIcon:a.string,disabled:a.bool,icon:a.string,selectedIcon:a.string,look:a.string,onRemove:a.func,dataItem:a.any,selected:a.bool,ariaDescribedBy:a.string},se={disabled:!1,removable:!1,selectedIcon:"k-i-check",look:"solid",removeIcon:"k-i-close-circle",dir:"ltr"};ae.displayName="KendoReactChip",ae.propTypes=ie,ae.defaultProps=se;var le=function(){return(le=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)},ce=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},ue=o.forwardRef((function(e,t){var n=e.className,r=e.disabled,a=e.text,s=e.icon,l=e.style,c=e.id,u=e.focused,d=e.tabIndex,p=e.index,f=e.dataItem,h=e.item,m=e.onDown,v=e.onClick,g=ce(e,["className","disabled","text","icon","style","id","focused","tabIndex","index","dataItem","item","onDown","onClick"]),b=o.useRef(null),y=o.useCallback((function(){b.current&&b.current.focus()}),[]),k=o.useCallback((function(){return{element:b.current,focus:y}}),[y]);o.useImperativeHandle(t,k);var C=o.useCallback((function(e){v&&void 0!==p&&!r&&v(e,p)}),[v,p]),w=o.useMemo((function(){return Object(i.classNames)("k-fab-item",{"k-state-focus":u,"k-state-disabled":r},n)}),[n,r,u]),O=h;return o.createElement("li",le({ref:b,id:c,className:w,style:l,role:"menuitem",tabIndex:Object(i.getTabIndex)(d,r),"aria-disabled":r,"aria-label":(a||"")+" floatingactionbutton item",onClick:C,onMouseDown:m,onPointerDown:m},g),O?o.createElement(O,{itemIndex:p,item:f}):o.createElement(o.Fragment,null,a&&o.createElement("span",{className:"k-fab-item-text"},a),s&&o.createElement("span",{className:Object(i.classNames)("k-fab-item-icon k-icon k-i-"+s)})))}));ue.propTypes={className:a.string,style:a.object,children:a.any,disabled:a.bool,focused:a.bool,index:a.number,icon:a.string,text:a.string,tabIndex:a.number,customProp:a.any},ue.displayName="KendoFloatingActionButtonItem";var de=function(e){return"number"==typeof e?e+"px":e},pe=function(e,t){var n={horizontal:t?"right":"left",vertical:"bottom"};return"end"===e.horizontal&&(n.horizontal=t?"left":"right"),n},fe=function(e,t){var n={horizontal:t?"right":"left",vertical:"top"};return"end"===e.horizontal&&(n.horizontal=t?"left":"right"),n},he=function(e,t){return{end:t?"left":"right",center:"left",start:t?"right":"left"}[e.horizontal||"end"]},me=function(e){return{top:"top",middle:"top",bottom:"bottom"}[e.vertical||"bottom"]},ve=function(){return(ve=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)},ge=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},be=o.forwardRef((function(e,t){Object(i.validatePackage)(s);var n=e.align,r=void 0===n?ye.align:n,a=e.alignOffset,l=e.className,c=e.disabled,u=e.icon,d=e.iconClass,p=e.id,f=e.items,h=e.item,m=e.text,v=e.positionMode,g=void 0===v?ye.positionMode:v,b=e.shape,y=void 0===b?ye.shape:b,k=e.size,C=void 0===k?ye.size:k,w=e.style,O=e.themeColor,x=void 0===O?ye.themeColor:O,E=e.tabIndex,P=e.accessKey,N=e.popupSettings,S=void 0===N?{}:N,I=e.onClick,R=e.onItemClick,j=e.onFocus,D=e.onBlur,M=e.onKeyDown,T=e.onOpen,A=e.onClose,B=ge(e,["align","alignOffset","className","disabled","icon","iconClass","id","items","item","text","positionMode","shape","size","style","themeColor","tabIndex","accessKey","popupSettings","onClick","onItemClick","onFocus","onBlur","onKeyDown","onOpen","onClose"]),L=o.useRef(null),V=o.useRef(null),F=o.useRef(null),K=o.useRef(null),G=o.useCallback((function(){V.current&&V.current.focus()}),[]),z=o.useCallback((function(){return{element:V.current,focus:G}}),[G]);o.useImperativeHandle(L,z),o.useImperativeHandle(t,(function(){return L.current}));var H=o.useState(!1),U=H[0],q=H[1],W=o.useState(!1),X=W[0],Y=W[1],Z=o.useState(-1),$=Z[0],J=Z[1],Q=o.useMemo((function(){return Object(i.guid)()}),[]),ee=Object(i.useDir)(V,e.dir),te="rtl"===ee,ne=o.useMemo((function(){return Object(i.guid)()}),[]);o.useEffect((function(){!function(e,t,n,r){var o=t.horizontal,a=t.vertical;if(e.current){var i=n&&void 0!==n.x?de(n.x):"16px",s=n&&void 0!==n.x?"calc(50% + "+de(n.x)+")":"50%",l=n&&void 0!==n.y?de(n.y):"16px",c=n&&void 0!==n.y?"calc(50% + "+de(n.y)+")":"50%";e.current.style.setProperty(he(t,r),"center"===o?s:i),e.current.style.setProperty(me(t),"middle"===a?c:l),r&&("top"!==a&&"bottom"!==a||"start"!==o||e.current.style.setProperty("left","unset"),"middle"===a&&"end"===o&&e.current.style.setProperty("right","unset"),"middle"===a&&"start"===o&&e.current.style.setProperty("left","unset"))}}(V,r,a,te)}),[V,r,a,te]),o.useEffect((function(){X&&V&&V.current&&V.current.focus()}),[X,V]);var re=o.useCallback((function(e,t){f&&Object(i.dispatchEvent)(t?T:A,e,z(),void 0)}),[T,A,f]),oe=o.useCallback((function(e){e.target&&!c&&(!f&&I?Object(i.dispatchEvent)(I,e,z(),void 0):(q(!U),Y(!0),J(U?-1:0),re(e,!U)))}),[q,Y,J,I,re,U,f,c]),ae=o.useCallback((function(e){Y(!0),J(U?0:-1),j&&Object(i.dispatchEvent)(j,e,z(),void 0)}),[j,Y,J]),ie=o.useCallback((function(e){Y(!1),q(!1),J(-1),Object(i.dispatchEvent)(D,e,z(),void 0),U&&re(e,!1)}),[D,Y,q,J,re]),se=o.useCallback((function(e){e.preventDefault()}),[]),le=o.useCallback((function(e,t){f&&(f[t].disabled||Object(i.dispatchEvent)(R,e,z(),{itemProps:f[t],itemIndex:t}))}),[R]),ce=o.useCallback((function(e,t){e.target&&f&&(J(t),q(!1),le(e,t),re(e,!1))}),[J,q,le,re]),be=o.useCallback((function(e){document.activeElement===V.current&&e.preventDefault()}),[V,document.activeElement]),ke=o.useCallback((function(e){var t=$,n=f?f.length-1:-1,o="bottom"===r.vertical;switch(e.keyCode){case i.Keys.enter:case i.Keys.space:t>=0&&le(e,t),e.preventDefault(),q(!U),J(U?-1:0);break;case i.Keys.esc:e.preventDefault(),q(!1),J(-1);break;case i.Keys.home:e.preventDefault(),J(0);break;case i.Keys.end:e.preventDefault(),J(n);break;case i.Keys.down:case i.Keys.right:e.preventDefault(),t<n&&!o&&J(t+1),t>0&&o&&J(t-1);break;case i.Keys.up:case i.Keys.left:e.preventDefault(),t>0&&!o&&J(t-1),t<n&&o&&J(t+1)}Object(i.dispatchEvent)(M,e,z(),void 0)}),[M,$,J,te,q]),Ce=o.useMemo((function(){return Object(i.classNames)("k-fab","k-fab-"+x,"k-fab-"+y,{"k-fab-sm":"small"===C,"k-fab-md":"medium"===C,"k-fab-lg":"large"===C,"k-state-disabled":c,"k-pos-absolute":"absolute"===g,"k-pos-fixed":"fixed"===g,"k-state-focus":X},"k-"+r.vertical+"-"+r.horizontal,l)}),[x,C,y,c,g,r,X,l]),we=f&&f.map((function(e,t){return o.createElement(ue,ve({},e,{key:t,index:t,id:ne+"-"+t,disabled:c||e.disabled,focused:$===t,dataItem:e,item:h,className:Object(i.classNames)(e.className,(n=ee||"ltr",a=r.horizontal,{rtl:{end:"k-text-left",start:"k-text-right"},ltr:{start:"k-text-left",end:"k-text-right"}}[n]["end"===a?"end":"start"])),onClick:ce,onDown:be}));var n,a})),Oe=u&&!m,xe=(V.current?V.current.offsetWidth:0)/2-16;return o.createElement(o.Fragment,null,o.createElement("button",ve({ref:V,id:p||Q,role:f?"menubutton":"button",type:"button","aria-disabled":c,"aria-expanded":f?U:void 0,"aria-haspopup":!!f,"aria-label":(m||"")+" floatingactionbutton","aria-owns":f?ne:void 0,"aria-activedescendant":$>=0&&f?ne+"-"+$:void 0,tabIndex:Object(i.getTabIndex)(E,c),accessKey:P,dir:ee,disabled:c,className:Ce,style:w,onClick:oe,onMouseDown:se,onFocus:ae,onBlur:ie,onKeyDown:ke},B),u?o.createElement("span",{role:"presentation",className:Object(i.classNames)("k-fab-icon k-icon k-i-"+u)}):d?o.createElement("span",{role:"presentation",className:d}):null,m&&o.createElement("span",{className:"k-fab-text"},m)),o.createElement(_.Popup,{ref:K,anchor:V.current,show:U,animate:S.animate,popupClass:Object(i.classNames)("k-popup-transparent k-fab-popup",S.popupClass),anchorAlign:S.anchorAlign||pe(r,te),popupAlign:S.popupAlign||fe(r,te),style:{boxShadow:"none"}},o.createElement("ul",{ref:F,role:"menu","aria-labelledby":p,id:ne,className:Object(i.classNames)("k-fab-items",{"k-fab-items-bottom":"bottom"!==r.vertical,"k-fab-items-top":"bottom"===r.vertical}),style:{paddingLeft:Oe?xe:void 0,paddingRight:Oe?xe:void 0}},we)))}));be.propTypes={className:a.string,style:a.object,id:a.string,dir:a.string,tabIndex:a.number,accessKey:a.string,disabled:a.bool,icon:a.string,iconClass:a.string,text:a.string,alignOffset:a.shape({x:a.oneOfType([a.number,a.string]),y:a.oneOfType([a.number,a.string])}),align:a.shape({vertical:a.oneOf(["top","middle","bottom"]),horizontal:a.oneOf(["start","center","end"])}),positionMode:a.oneOf(["absolute","fixed"]),shape:a.oneOf(["rectangle","rounded","pill"]),size:a.oneOf(["small","medium","large"]),themeColor:a.oneOf(["primary","secondary","tertiary","info","success","warning","error","dark","light","inverse"])};var ye={align:{vertical:"bottom",horizontal:"end"},shape:"pill",size:"medium",themeColor:"primary",positionMode:"fixed"};be.displayName="KendoFloatingActionButton"},function(e,t){e.exports=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={};t.cacheHsva=function(e,t,n){r[e]={value:t,hsva:n}},t.cacheRgba=function(e,t,n){r[e]={value:t,rgba:n}},t.cacheHex=function(e,t,n){r[e]={value:t,hex:n}},t.removeCachedColor=function(e){delete r[e]},t.getCachedHex=function(e,t){if(e){var n=r[e];return n&&n.value===t?n.hex:void 0}},t.getCachedHsva=function(e,t){if(e){var n=r[e];return n&&n.value===t?n.hsva:void 0}},t.getCachedRgba=function(e,t){if(e){var n=r[e];return n&&n.value===t?n.rgba:void 0}}},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)}),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 i=n(1),s=n(9),l=n(25),c=n(21),u=n(10),d=n(4),p=n(5),f=["rgba","rgb","hex"],h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={inputMode:f[1]},t.onRgbaRChange=function(e){t.dispatchRgbaChange({r:e.value},e)},t.onRgbaGChange=function(e){t.dispatchRgbaChange({g:e.value},e)},t.onRgbaBChange=function(e){t.dispatchRgbaChange({b:e.value},e)},t.onRgbaAChange=function(e){t.dispatchRgbaChange({a:e.value},e)},t}return o(t,e),t.prototype.render=function(){var e=d.provideLocalizationService(this),t=e.toLanguageString(p.colorGradientR,p.messages[p.colorGradientHex]),n=e.toLanguageString(p.colorGradientR,p.messages[p.colorGradientR]),r=e.toLanguageString(p.colorGradientR,p.messages[p.colorGradientG]),o=e.toLanguageString(p.colorGradientR,p.messages[p.colorGradientB]),a=e.toLanguageString(p.colorGradientR,p.messages[p.colorGradientA]);return i.createElement("div",{className:"k-colorgradient-inputs k-hstack"},i.createElement("div",{className:"k-vstack"},i.createElement(c.Button,{look:"flat",icon:"arrows-kpi",className:"k-colorgradient-toggle-mode k-icon-button",onClick:this.onToggleModeChange.bind(this)})),"hex"===this.state.inputMode&&i.createElement("div",{className:"k-vstack k-flex-1"},i.createElement("span",{className:"k-hex-value k-textbox"},i.createElement(l.default,{hex:this.props.hex,onHexChange:this.props.onHexChange,disabled:this.props.disabled})),i.createElement(u.Label,{className:"k-colorgradient-input-label"},t)),("rgb"===this.state.inputMode||"rgba"===this.state.inputMode)&&i.createElement(i.Fragment,null,i.createElement("div",{className:"k-vstack"},i.createElement(s.NumericTextBox,{value:this.props.rgba.r,min:0,max:255,spinners:!1,format:"n",onChange:this.onRgbaRChange,disabled:this.props.disabled}),i.createElement(u.Label,{className:"k-colorgradient-input-label"},n)),i.createElement("div",{className:"k-vstack"},i.createElement(s.NumericTextBox,{value:this.props.rgba.g,min:0,max:255,spinners:!1,format:"n",onChange:this.onRgbaGChange,disabled:this.props.disabled}),i.createElement(u.Label,{className:"k-colorgradient-input-label"},r)),i.createElement("div",{className:"k-vstack"},i.createElement(s.NumericTextBox,{value:this.props.rgba.b,min:0,max:255,spinners:!1,format:"n",onChange:this.onRgbaBChange,disabled:this.props.disabled}),i.createElement(u.Label,{className:"k-colorgradient-input-label"},o))),"rgba"===this.state.inputMode&&i.createElement("div",{className:"k-vstack"},this.props.opacity&&i.createElement(s.NumericTextBox,{value:this.props.rgba.a,min:0,max:1,step:.01,spinners:!1,format:"n2",onChange:this.onRgbaAChange,disabled:this.props.disabled}),this.props.opacity&&i.createElement(u.Label,{className:"k-colorgradient-input-label"},a)))},t.prototype.dispatchRgbaChange=function(e,t){var n=a({},this.props.rgba);void 0!==e.r&&(n.r=e.r),void 0!==e.g&&(n.g=e.g),void 0!==e.b&&(n.b=e.b),void 0!==e.a&&(n.a=e.a),this.props.onRgbaChange(n,t)},t.prototype.onToggleModeChange=function(){var e=f.length-1===f.indexOf(this.state.inputMode)?0:f.indexOf(this.state.inputMode)+1;if(this.props.opacity)this.setState({inputMode:f[e]});else{var t="rgba"===f[e]?e+1:e;this.setState({inputMode:f[t]})}},t}(i.Component);t.default=h,d.registerForIntl(h),d.registerForLocalization(h)},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 a=n(1),i=n(8),s=n(7),l=function(e){function t(t){var n=e.call(this,t)||this;return n.onChange=function(e){var t=e.target.value,r=i.parseColor(t,"rgba");n.setState({hex:t}),s.isPresent(r)&&n.props.onHexChange(t,r,e)},n.onBlur=function(){s.isPresent(i.parseColor(n.state.hex,"rgba"))||n.setState({hex:n.state.originalHex})},n.state={hex:n.props.hex,originalHex:n.props.hex},n}return o(t,e),t.prototype.render=function(){return a.createElement("input",{value:this.state.hex,className:"k-input",onChange:this.onChange,onBlur:this.onBlur,disabled:this.props.disabled})},t.getDerivedStateFromProps=function(e,t){return e.hex!==t.originalHex?{hex:e.hex,originalHex:e.hex}:null},t}(a.Component);t.default=l},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 a=n(1),i=n(4),s=n(5),l=n(8),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=i.provideLocalizationService(this),t=e.toLanguageString(s.colorGradientContrastRatio,s.messages[s.colorGradientContrastRatio]),n=e.toLanguageString(s.colorGradientAALevel,s.messages[s.colorGradientAALevel]),r=e.toLanguageString(s.colorGradientAAALevel,s.messages[s.colorGradientAAALevel]),o=e.toLanguageString(s.colorGradientPass,s.messages[s.colorGradientPass]),c=e.toLanguageString(s.colorGradientFail,s.messages[s.colorGradientFail]),u=l.getContrastFromTwoRGBAs(this.props.rgba,this.props.bgColor),d=4.5.toFixed(1),p=7..toFixed(1),f=t+": "+u.toFixed(2),h=n+": "+d,m=r+": "+p,v=a.createElement("span",{className:"k-contrast-validation k-text-success"},o," ",a.createElement("span",{className:"k-icon k-i-check"})),g=a.createElement("span",{className:"k-contrast-validation k-text-error"},c," ",a.createElement("span",{className:"k-icon k-i-close"}));return a.createElement("div",{className:"k-vbox k-colorgradient-color-contrast"},a.createElement("div",{className:"k-contrast-ratio"},a.createElement("span",{className:"k-contrast-ratio-text"},f),u>=4.5?a.createElement("span",{className:"k-contrast-validation k-text-success"},a.createElement("span",{className:"k-icon k-i-check"}),u>=7&&a.createElement("span",{className:"k-icon k-i-check"})):a.createElement("span",{className:"k-contrast-validation k-text-error"},a.createElement("span",{className:"k-icon k-i-close"}))),a.createElement("div",null,a.createElement("span",null,h),u>=4.5?v:g),a.createElement("div",null,a.createElement("span",null,m),u>=7?v:g))},t}(a.Component);t.ColorContrastLabels=c,i.registerForLocalization(c)},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 a=n(1),i=n(28),s=n(8),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.renderSvgCurveLine=function(){var e=this,t=this.props.metrics,n=function(r,o,a,i,l){var c=(a+i)/2,u=Object.assign({},e.props.hsva,{s:o/t.width,v:1-c/t.height}),d=s.getContrastFromTwoRGBAs(s.getRGBA(s.getColorFromHSV(u)),s.getRGBA(e.props.backgroundColor||""));return a+.5>i?d<r+1&&d>r-1?c:null:l(d,r)?n(r,o,a,i-(i-a)/2,l):n(r,o,a+(i-a)/2,i,l)},r=function(e,r,o){void 0===o&&(o=!1);for(var a=[],i=0;i<=t.width;i+=t.width/r){var s=n(e,i,0,t.height,o?function(e,t){return e<t}:function(e,t){return e>t});null!==s&&a.push([i,s])}return a},o=i.bezierCommand(i.controlPoint(i.line));return i.svgPath(r(4.5,16),o)+i.svgPath(r(4.5,16,!0),o)+i.svgPath(r(7,16),o)+i.svgPath(r(7,16,!0),o)},t.prototype.shouldComponentUpdate=function(e){return e.hsva.h!==this.props.hsva.h||e.hsva.a!==this.props.hsva.a||this.props.backgroundColor!==e.backgroundColor},t.prototype.render=function(){return a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"k-color-contrast-svg",dangerouslySetInnerHTML:{__html:this.renderSvgCurveLine()},style:{position:"absolute",overflow:"visible",pointerEvents:"none",left:0,top:0,zIndex:3}})},t}(a.Component);t.ColorContrastSvg=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.svgPath=function(e,t){return 0===e.length?"":'<path d="'+e.reduce((function(e,n,r,o){return 0===r?"M "+n[0]+","+n[1]:e+" "+t(n,r,o)}),"")+'" fill="none" stroke="white" stroke-width="1"/>'},t.line=function(e,t){var n=t[0]-e[0],r=t[1]-e[1];return{length:Math.sqrt(Math.pow(n,2)+Math.pow(r,2)),angle:Math.atan2(r,n)}},t.controlPoint=function(e){return function(t,n,r,o){var a=e(n||t,r||t),i=a.angle+(o?Math.PI:0),s=.1*a.length;return[t[0]+Math.cos(i)*s,t[1]+Math.sin(i)*s]}},t.bezierCommand=function(e){return function(t,n,r){var o=e(r[n-1],r[n-2],t),a=o[0],i=o[1],s=e(t,r[n-1],r[n+1],!0);return"C "+a+","+i+" "+s[0]+","+s[1]+" "+t[0]+","+t[1]}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(7),o=n(13),a=function(){function e(){this.colorRows=[]}return e.prototype.setColorMatrix=function(e,t){if(this.colorRows=[],r.isPresent(e)&&e.length){t=t||e.length;for(var n=0;n<e.length;n+=t){var o=e.slice(n,t+n);this.colorRows.push(o)}}},e.prototype.getCellCoordsFor=function(e){var t=this;if(r.isPresent(e)){var n=e?o.parseColor(e,!0):e,a=[e];r.isPresent(n)&&a.push(n.toCss(),n.toCssRgba());for(var i=function(e){for(var n=function(n){if(a.some((function(r){return r===t.colorRows[e][n]})))return{value:{row:e,col:n}}},r=0;r<s.colorRows[e].length;r++){var o=n(r);if("object"==typeof o)return o}},s=this,l=0;l<this.colorRows.length;l++){var c=i(l);if("object"==typeof c)return c.value}}},e.prototype.getColorAt=function(e){if(r.isPresent(e)&&r.isPresent(this.colorRows[e.row]))return this.colorRows[e.row][e.col]},e.prototype.getNextCell=function(e,t,n){if(!(r.isPresent(e)&&r.isPresent(e.row)&&r.isPresent(e.col)))return{row:0,col:0};var o=this.clampIndex(e.row+n,this.colorRows.length-1);return{row:o,col:this.clampIndex(e.col+t,this.colorRows[o].length-1)}},e.prototype.clampIndex=function(e,t){return e<0?0:e>t?t:e},e}();t.ColorPaletteService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PALETTEPRESETS={basic:{colors:["#000000","#7f7f7f","#880015","#ed1c24","#ff7f27","#fff200","#22b14c","#00a2e8","#3f48cc","#a349a4"," ffffff","#c3c3c3","#b97a57","#ffaec9","#ffc90e","#efe4b0","#b5e61d","#99d9ea","#7092be","#c8bfe7"],columns:10},office:{colors:["#ffffff","#000000","#e6e6e6","#435569","#4371c4","#ed7e32","#a5a4a5","#febf04","#5a9bd5","#71ae48","#f2f2f3","#7f7f7f","#d1cece","#d5dde3","#dae1f4","#fce5d4","#deeded","#fff2cc","#deeaf6","#e1efd9","#d7d8d8","#585959","#aeabab","#adbaca","#b4c5e7","#f6caac","#dbdbdb","#ffe498","#bcd6ee","#c5e0b2","#bfbfc0","#3f3f3f","#767070","#8595b1","#8fabdb","#f5b183","#c9c8c9","#fed965","#9bc4e5","#a8d08d","#a5a5a6","#262625","#393939","#334050","#2e5496","#c45a11","#7b7b7a","#bf9000","#2f75b5","#548235","#7f7f7f","#0b0c0c","#161616","#222a34","#203764","#843d0b","#525252","#7f6000","#1d4d79","#375623"],columns:10},apex:{colors:["#ffffff","#000000","#c9c2d1","#69676d","#ceb966","#9cb084","#6bb1c9","#6585cf","#7e6bc9","#a379bb","#f2f2f2","#7f7f7f","#f4f2f5","#e0e0e2","#f5f1e0","#ebefe6","#e1eff4","#e0e6f5","#e5e1f4","#ece4f1","#d8d8d8","#595959","#e9e6ec","#c2c1c5","#ebe3c1","#d7dfcd","#c3dfe9","#c1ceeb","#cbc3e9","#dac9e3","#bfbfbf","#3f3f3f","#dedae3","#a4a3a8","#e1d5a3","#c3cfb5","#a6d0de","#a2b5e2","#b1a6de","#c7aed6","#a5a5a5","#262626","#9688a5","#4e4d51","#ae9638","#758c5a","#3d8da9","#365bb0","#533da9","#7d4d99","#7f7f7f","#0c0c0c","#635672","#343336","#746425","#4e5d3c","#295e70","#243c75","#372970","#533366"],columns:10},austin:{colors:["#ffffff","#000000","#caf278","#3e3d2d","#94c600","#71685a","#ff6700","#909465","#956b43","#fea022","#f2f2f2","#7f7f7f","#f4fce4","#dddcd0","#efffc0","#e3e1dc","#ffe0cb","#e8e9df","#ece1d6","#feecd2","#d8d8d8","#595959","#e9f9c9","#bbb9a1","#dfff82","#c8c3ba","#ffc299","#d2d4c0","#dac3ad","#fed9a6","#bfbfbf","#3f3f3f","#dff7ae","#ada598","#cfff43","#ada598","#ffa365","#bcbfa1","#c8a585","#fec67a","#a5a5a5","#262626","#a9ea25","#2e2d21","#6f9400","#544e43","#bf4d00","#6c6f4b","#6f5032","#d77b00","#7f7f7f","#0c0c0c","#74a50f","#1f1e16","#4a6300","#38342d","#7f3300","#484a32","#4a3521","#8f5200"],columns:10},clarity:{colors:["#ffffff","#292934","#f3f2dc","#d2533c","#93a299","#ad8f67","#726056","#4c5a6a","#808da0","#79463d","#f2f2f2","#e7e7ec","#e7e5b9","#f6dcd8","#e9ecea","#eee8e0","#e4dedb","#d8dde3","#e5e8ec","#e9d6d3","#d8d8d8","#c4c4d1","#d5d185","#edbab1","#d3d9d6","#ded2c2","#c9beb8","#b2bcc8","#ccd1d9","#d3aea7","#bfbfbf","#8a8aa3","#aca73b","#e4978a","#bec7c1","#cdbba3","#af9e94","#8c9bac","#b2bac6","#bd857c","#a5a5a5","#56566e","#56531d","#a43925","#6b7c72","#866b48","#554840","#39434f","#5c697b","#5a342d","#7f7f7f","#3b3b4b","#22210b","#6d2619","#47534c","#594730","#39302b","#262d35","#3d4652","#3c231e"],columns:10},slipstream:{colors:["#ffffff","#000000","#b4dcfa","#212745","#4e67c8","#5eccf3","#a7ea52","#5dceaf","#ff8021","#f14124","#f2f2f2","#7f7f7f","#8bc9f7","#c7cce4","#dbe0f4","#def4fc","#edfadc","#def5ef","#ffe5d2","#fcd9d3","#d8d8d8","#595959","#4facf3","#909aca","#b8c2e9","#beeafa","#dbf6b9","#beebdf","#ffcca6","#f9b3a7","#bfbfbf","#3f3f3f","#0d78c9","#5967af","#94a3de","#9ee0f7","#caf297","#9de1cf","#ffb279","#f68d7b","#a5a5a5","#262626","#063c64","#181d33","#31479f","#11b2eb","#81d319","#34ac8b","#d85c00","#c3260c","#7f7f7f","#0c0c0c","#021828","#101322","#202f6a","#0b769c","#568c11","#22725c","#903d00","#821908"],columns:10},metro:{colors:["#ffffff","#000000","#d6ecff","#4e5b6f","#7fd13b","#ea157a","#feb80a","#00addc","#738ac8","#1ab39f","#f2f2f2","#7f7f7f","#a7d6ff","#d9dde4","#e5f5d7","#fad0e4","#fef0cd","#c5f2ff","#e2e7f4","#c9f7f1","#d8d8d8","#595959","#60b5ff","#b3bcca","#cbecb0","#f6a1c9","#fee29c","#8be6ff","#c7d0e9","#94efe3","#bfbfbf","#3f3f3f","#007dea","#8d9baf","#b2e389","#f272af","#fed46b","#51d9ff","#aab8de","#5fe7d5","#a5a5a5","#262626","#003e75","#3a4453","#5ea226","#af0f5b","#c58c00","#0081a5","#425ea9","#138677","#7f7f7f","#0c0c0c","#00192e","#272d37","#3f6c19","#750a3d","#835d00","#00566e","#2c3f71","#0c594f"],columns:10},flow:{colors:["#ffffff","#000000","#dbf5f9","#04617b","#0f6fc6","#009dd9","#0bd0d9","#10cf9b","#7cca62","#a5c249","#f2f2f2","#7f7f7f","#b2e9f2","#b4ecfc","#c7e2fa","#c4eeff","#c9fafc","#c9faed","#e4f4df","#edf2da","#d8d8d8","#595959","#76d9e8","#6adafa","#90c6f6","#89deff","#93f5f9","#94f6db","#cae9c0","#dbe6b6","#bfbfbf","#3f3f3f","#21b2c8","#20c8f7","#59a9f2","#4fceff","#5df0f6","#5ff2ca","#b0dfa0","#c9da91","#a5a5a5","#262626","#105964","#02485c","#0b5394","#0075a2","#089ca2","#0b9b74","#54a838","#7e9532","#7f7f7f","#0c0c0c","#062328","#01303d","#073763","#004e6c","#05686c","#07674d","#387025","#546321"],columns:10},hardcover:{colors:["#ffffff","#000000","#ece9c6","#895d1d","#873624","#d6862d","#d0be40","#877f6c","#972109","#aeb795","#f2f2f2","#7f7f7f","#e1dca5","#f2e0c6","#f0d0c9","#f6e6d5","#f5f2d8","#e7e5e1","#fbc7bc","#eef0e9","#d8d8d8","#595959","#d0c974","#e6c28d","#e2a293","#eeceaa","#ece5b2","#cfccc3","#f78f7a","#dee2d4","#bfbfbf","#3f3f3f","#a29a36","#daa454","#d4735e","#e6b681","#e2d88c","#b7b2a5","#f35838","#ced3bf","#a5a5a5","#262626","#514d1b","#664515","#65281a","#a2641f","#a39428","#655f50","#711806","#879464","#7f7f7f","#0c0c0c","#201e0a","#442e0e","#431b11","#6c4315","#6d621a","#433f35","#4b1004","#5a6243"],columns:10},trek:{colors:["#ffffff","#000000","#fbeec9","#4e3b30","#f0a22e","#a5644e","#b58b80","#c3986d","#a19574","#c17529","#f2f2f2","#7f7f7f","#f7e09e","#e1d6cf","#fcecd5","#eddfda","#f0e7e5","#f3eae1","#ece9e3","#f5e3d1","#d8d8d8","#595959","#f3cc5f","#c4ad9f","#f9d9ab","#dcc0b6","#e1d0cc","#e7d5c4","#d9d4c7","#ebc7a3","#bfbfbf","#3f3f3f","#d29f0f","#a78470","#f6c781","#cba092","#d2b9b2","#dbc1a7","#c6bfab","#e1ac76","#a5a5a5","#262626","#694f07","#3a2c24","#c87d0e","#7b4b3a","#926255","#a17242","#7b7153","#90571e","#7f7f7f","#0c0c0c","#2a1f03","#271d18","#855309","#523226","#614138","#6b4c2c","#524b37","#603a14"],columns:10},verve:{colors:["#ffffff","#000000","#d2d2d2","#666666","#ff388c","#e40059","#9c007f","#68007f","#005bd3","#00349e","#f2f2f2","#7f7f7f","#bdbdbd","#e0e0e0","#ffd7e8","#ffc6dc","#ffb8f1","#f1b2ff","#c3dcff","#b8cfff","#d8d8d8","#595959","#9d9d9d","#c1c1c1","#ffafd1","#ff8eba","#ff71e4","#e365ff","#87baff","#72a0ff","#bfbfbf","#3f3f3f","#696969","#a3a3a3","#ff87ba","#ff5597","#ff2ad7","#d519ff","#4b98ff","#2b71ff","#a5a5a5","#262626","#343434","#4c4c4c","#e90062","#ab0042","#75005f","#4e005f","#00449e","#002676","#7f7f7f","#0c0c0c","#151515","#333333","#9b0041","#72002c","#4e003f","#34003f","#002d69","#00194f"],columns:10},monochrome:{colors:["#000000","#1a1a1a","#333333","#4d4d4d","#666666","#808080","#999999","#b3b3b3","#cccccc","#e6e6e6","#f2f2f2","#ffffff"],columns:12}}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=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 o=n(1),a=n(0),i=n(2),s=n(2),l=n(3),c=n(32),u=n(12),d=n(14),p={palette:d.DEFAULT_PRESET,tileSize:d.DEFAULT_TILE_SIZE},f=function(e){return void 0!==e};t.ColorPicker=o.forwardRef((function(e,t){s.validatePackage(l.packageMetadata);var n=e.popupSettings,a=e.gradientSettings,p=e.paletteSettings,h=e.valid,m=e.disabled,v=e.tabIndex,g=e.view,b=e.icon,y=e.onChange,k=e.onFocus,C=e.onBlur,w=e.onActiveColorClick,O=o.useRef(null),x=o.useRef(null),_=o.useRef(null),E=o.useRef(),P=o.useRef(null),N=o.useCallback((function(){O.current&&O.current.focus()}),[]);o.useImperativeHandle(t,(function(){return{element:O.current,actionElement:P.current,focus:N}}));var S=o.useState(!1),I=S[0],R=S[1],j=o.useState(e.defaultValue),D=j[0],M=j[1],T=o.useState(!1),A=T[0],B=T[1],L=f(e.value),V=f(e.open),F=L?e.value:D,K=V?e.open:A,G=o.useCallback((function(e,t){V||(!e&&!t&&O&&O.current&&O.current.focus(),B(e))}),[V]),z=o.useCallback((function(e){var t=e.altKey,n=e.keyCode;if(n!==i.Keys.esc)return n!==i.Keys.enter||V?void(!t||n!==i.Keys.up&&n!==i.Keys.down||(e.preventDefault(),e.stopPropagation(),n===i.Keys.up&&O&&O.current&&(O.current.focus(),G(!1)),n===i.Keys.down&&G(!0))):(e.preventDefault(),e.stopPropagation(),void G(!K));G(!1)}),[K,V]),H=o.useCallback((function(){V||(x.current?x.current.focus():_.current&&_.current.focus())}),[V]),U=o.useCallback((function(){G(!K,!0)}),[K]),q=o.useCallback((function(e){w&&w.call(void 0,{syntheticEvent:e,nativeEvent:e.nativeEvent,value:F})}),[w,F]),W=o.useCallback((function(e){E.current?(clearTimeout(E.current),E.current=void 0):R(!0),k&&k.call(void 0,{nativeEvent:e.nativeEvent,syntheticEvent:e})}),[k]),X=o.useCallback((function(){G(!1,!0),R(!1),E.current=void 0}),[]),Y=o.useCallback((function(e){clearTimeout(E.current),E.current=window.setTimeout(X),C&&C.call(void 0,{nativeEvent:e.nativeEvent,syntheticEvent:e})}),[C]),Z=o.useCallback((function(e,t){var n=t?e.rgbaValue:e.value;L||M(n),t&&G(!1),y&&y.call(void 0,{value:n,nativeEvent:e.nativeEvent,syntheticEvent:e.syntheticEvent})}),[L,y]),$=o.useCallback((function(e){return Z(e,!0)}),[f,Z]),J=i.useDir(O,e.dir),Q=e.iconClassName||b&&"k-icon k-i-"+b,ee=i.classNames({"k-widget":!0,"k-colorpicker":!0,"k-state-invalid":!1===h}),te=o.useMemo((function(){return i.classNames({"k-picker-wrap":!0,"k-state-disabled":m,"k-state-focused":I})}),[I,m]);return o.createElement("span",{className:ee,dir:J},o.createElement("span",{id:e.id,"aria-labelledby":e.ariaLabelledBy,"aria-describedby":e.ariaDescribedBy,className:te,ref:O,tabIndex:i.getTabIndex(v,m),title:e.title,onKeyDown:z,onFocus:W,onBlur:Y},o.createElement(c.Picker,{dir:J,open:K,onOpen:H,popupAnchor:O.current||void 0,popupSettings:r({},n),input:Q?o.createElement("span",{onClick:q,className:i.classNames("k-tool-icon",Q)},o.createElement("span",{className:"k-selected-color",style:{backgroundColor:F}})):o.createElement("span",{onClick:q,className:"k-selected-color",style:{backgroundColor:F}},!F&&o.createElement("span",{className:"k-icon k-i-line"})),button:o.createElement("span",{onClick:U,className:"k-select",ref:P},o.createElement("span",{className:"k-icon k-i-arrow-s"})),content:o.createElement(o.Fragment,null,("combo"===g||"gradient"===g)&&o.createElement(u.ColorGradient,r({},a,{tabIndex:0,ref:x,value:F,onChange:Z})),("combo"===g||"palette"===g)&&o.createElement(d.ColorPalette,r({},p,{ref:_,value:F,onChange:$})))})))})),t.ColorPicker.propTypes={value:a.string,defaultValue:a.string,disabled:a.bool,view:a.oneOf(["gradient","palette","combo"]),dir:a.string,id:a.string,ariaLabelledBy:a.string,ariaDescribedBy:a.string},t.ColorPicker.defaultProps={view:"palette",gradientSettings:{opacity:!0},paletteSettings:p},t.ColorPicker.displayName="KendoColorPicker"},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=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 o=n(1),a=n(6),i=n(2);t.Picker=function(e){var t=e.popupSettings||{},n="rtl"===e.dir?"right":"left",s=o.useMemo((function(){return{horizontal:n,vertical:"bottom"}}),[n]),l=o.useMemo((function(){return{horizontal:n,vertical:"top"}}),[n]);return o.createElement(o.Fragment,null,e.input,e.button,o.createElement(a.Popup,r({style:r({},(t||{}).style,{direction:e.dir})},t,{anchor:e.popupAnchor,anchorAlign:s,popupAlign:l,show:e.open,onOpen:e.onOpen,onClose:e.onClose,className:i.classNames("k-reset",t.className)}),e.content))},t.Picker.displayName="KendoPickerComponent"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),a=n(2),i=n(21),s=n(9),l=n(3),c=n(5);t.FlatColorPicker=r.forwardRef((function(e,t){a.validatePackage(l.packageMetadata);var n=r.useRef(null),o=r.useRef(null),u=r.useRef(null),p=r.useState("ColorGradient"===(e.view||"ColorGradient")),f=p[0],h=p[1],m=r.useState("rgba(255, 255, 255, 1)"),v=m[0],g=m[1],b=r.useState("rgba(255, 255, 255, 1)"),y=b[0],k=b[1],C=r.useCallback((function(){n.current&&n.current.focus()}),[n]);r.useImperativeHandle(n,(function(){return{element:o.current,focus:C,props:e}})),r.useImperativeHandle(t,(function(){return n.current}));var w=r.useCallback((function(e){("ColorGradient"===e&&!f||"ColorPalette"===e&&f)&&h(!f)}),[f]),O=r.useCallback((function(){g("rgba(255, 255, 255, 1)")}),[]),x=r.useCallback((function(e){g(e.value)}),[]),_=r.useCallback((function(){k(v)}),[v]),E=r.useCallback((function(){k("rgba(255, 255, 255, 1)")}),[]),P=r.useCallback((function(){g(y)}),[y]),N=r.useCallback((function(){o.current&&o.current.focus()}),[o]),S=r.useCallback((function(){k(v)}),[v]);return r.createElement("div",{id:e.id,style:e.style,ref:o,tabIndex:a.getTabIndex(e.tabIndex,e.disabled),className:a.classNames("k-flatcolorpicker k-coloreditor",{"k-state-disabled":e.disabled},e.className),onBlur:S},e.header||r.createElement("div",{className:"k-coloreditor-header k-hstack"},r.createElement("div",{className:"k-coloreditor-header-actions k-hstack"},r.createElement(i.ButtonGroup,null,r.createElement(i.Button,{type:"button",togglable:!0,look:"flat",selected:f,onClick:function(){return w("ColorGradient")}},r.createElement("span",{className:"k-icon k-i-color-canvas"})),r.createElement(i.Button,{type:"button",togglable:!0,look:"flat",selected:!f,onClick:function(){return w("ColorPalette")}},r.createElement("span",{className:"k-icon k-i-palette"})))),r.createElement("div",{className:"k-spacer"}),r.createElement("div",{className:"k-coloreditor-header-actions k-hstack"},e.showClearButton&&d.showClearButton&&r.createElement(i.Button,{type:"button",look:"flat",onClick:O},r.createElement("span",{className:"k-icon k-i-reset-color"})),e.showPreview&&d.showPreview&&r.createElement("div",{className:"k-coloreditor-preview k-vstack"},r.createElement("span",{className:"k-coloreditor-preview-color k-color-preview",style:{background:v}}),r.createElement("span",{className:"k-coloreditor-current-color k-color-preview",style:{background:y},onClick:P})))),r.createElement("div",{className:"k-coloreditor-views k-vstack"},f?r.createElement(s.ColorGradient,{ref:u,value:v,onChange:x,onFocus:N}):r.createElement(s.ColorPalette,{value:v,onChange:x,onFocus:N})),e.showButtons&&d.showButtons&&r.createElement("div",{className:"k-coloreditor-footer k-actions k-actions-end"},r.createElement(i.Button,{type:"button",className:"k-coloreditor-cancel",onClick:E},c.messages[c.flatColorPickerCancelBtn]),r.createElement(i.Button,{type:"button",className:"k-coloreditor-apply k-primary",onClick:_},c.messages[c.flatColorPickerApplyBtn])))}));var u={id:o.string,value:o.string,view:o.string,header:o.elementType,showClearButton:o.bool,showPreview:o.bool,showButtons:o.bool},d={showClearButton:!0,showPreview:!0,showButtons:!0};t.FlatColorPicker.displayName="KendoFlatColorPicker",t.FlatColorPicker.propTypes=u,t.FlatColorPicker.defaultProps=d},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)}),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)},i=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var s=n(1),l=n(0),c=n(2),u=n(10),d=n(2),p=n(3),f=function(e){function t(n){var r=e.call(this,n)||this;return r._inputId=c.guid(),r.focus=function(){r._input&&r._input.focus()},r.isInvalid=function(e){var t=!1;for(var n in e)e.hasOwnProperty(n)&&(t=t||e[n]);return t},r.setValidity=function(){r._input&&r._input.setCustomValidity&&(r.validity.valid||!r.validityStyles?r._input.classList.remove("k-state-invalid"):r._input.classList.add("k-state-invalid"),r._input.setCustomValidity(r.validity.valid?"":r.props.validationMessage||""))},r.handleChange=function(e){r.setState({value:e.target.value}),r.valueDuringOnChange=e.target.value,r.props.onChange&&r.props.onChange.call(void 0,{syntheticEvent:e,nativeEvent:e.nativeEvent,value:e.target.value,target:r}),r.valueDuringOnChange=void 0},r.handleAutoFill=function(e){if("autoFillStart"===e.animationName){var t=e.target.parentNode;t&&t.classList.contains("k-state-empty")&&t.classList.remove("k-state-empty")}},d.validatePackage(p.packageMetadata),r.state={value:r.props.defaultValue||t.defaultProps.defaultValue},r}return o(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._input},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.props.value?this.props.value:this.state.value},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){var e={badInput:!!this._input&&this._input.validity.badInput,patternMismatch:!!this._input&&this._input.validity.patternMismatch,rangeOverflow:!!this._input&&this._input.validity.rangeOverflow,rangeUnderflow:!!this._input&&this._input.validity.rangeUnderflow,stepMismatch:!!this._input&&this._input.validity.stepMismatch,tooLong:!!this._input&&this._input.validity.tooLong,typeMismatch:!!this._input&&this._input.validity.typeMismatch,valueMissing:!!this._input&&this._input.validity.valueMissing};return a({},e,{customError:void 0!==this.props.validationMessage,valid:void 0!==this.props.valid?this.props.valid:!this._input||!this.isInvalid(e)})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!0,configurable:!0}),t.prototype.componentDidMount=function(){this.forceUpdate()},t.prototype.componentDidUpdate=function(){this.setValidity()},t.prototype.render=function(){var e=this,t=this.props,n=t.className,r=t.label,o=t.id,l=(t.validationMessage,t.defaultValue,t.valid,t.visited,t.touched,t.modified,t.ariaLabelledBy),d=t.ariaDescribedBy,p=(t.validityStyles,t.style),f=i(t,["className","label","id","validationMessage","defaultValue","valid","visited","touched","modified","ariaLabelledBy","ariaDescribedBy","validityStyles","style"]),h=o||this._inputId,m=!this.validityStyles||this.validity.valid,v=c.classNames(n,"k-textbox"),g=s.createElement("input",a({"aria-labelledby":l,"aria-describedby":d},f,{style:r?void 0:p,value:this.value,id:h,className:v,onChange:this.handleChange,onAnimationStart:this.handleAutoFill,ref:function(t){e._input=t}}));return r?s.createElement(u.FloatingLabel,{label:r,editorId:h,editorValue:String(this.value),editorValid:m,editorDisabled:f.disabled,editorPlaceholder:f.placeholder,children:g,style:p,dir:f.dir}):g},t.propTypes={label:l.string,validationMessage:l.string,required:l.bool,validate:l.bool,id:l.string,ariaLabelledBy:l.string,ariaDescribedBy:l.string},t.defaultProps={defaultValue:"",required:!1,validityStyles:!0},t}(s.Component);t.Input=f},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)}),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 i=n(1),s=n(0),l=n(36),c=n(39),u=n(2),d=n(10),p=n(2),f=n(3),h=function(e){function t(t){var n=e.call(this,t)||this;return n.state={},n._inputId="k-"+u.guid(),n._service=new l.MaskingService,n._isPasted=!1,n._selection=[null,null],n._input=null,n.focus=function(){n._input&&n._input.focus()},n.pasteHandler=function(e){var t=e.target,r=t.selectionStart,o=t.selectionEnd;o!==r&&(n._isPasted=!0,n._selection=[r||0,o||0])},n.onChangeHandler=function(e){var t=e.currentTarget,r=t.value,o=n._selection[0]||0,a=n._selection[1]||0;if(!n.props.mask)return n._isPasted=!1,n._selection=[null,null],void n.triggerOnChange(r,e);var i,s=n.value;if(n._isPasted){n._isPasted=!1;var l=s.length-a,c=r.length-l;i=n._service.maskInRange(r.slice(o,c),s,o,a)}else i=n._service.maskInput(r,s,t.selectionStart||0);n._selection=[i.selection,i.selection],n.triggerOnChange(i.value,e)},n.focusHandler=function(e){n.state.focused||(n.setState({focused:!0}),n.props.onFocus&&n.props.onFocus.call(void 0,{target:n,syntheticEvent:e,nativeEvent:e.nativeEvent}))},n.blurHandler=function(e){n.state.focused&&(n.setState({focused:!1}),n.props.onBlur&&n.props.onBlur.call(void 0,{target:n,syntheticEvent:e,nativeEvent:e.nativeEvent}))},n.setValidity=function(){n.element&&n.element.setCustomValidity(n.validity.valid?"":n.props.validationMessage||"")},p.validatePackage(f.packageMetadata),n}return o(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._input},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return void 0!==this._valueDuringOnChange?this._valueDuringOnChange:void 0!==this.props.value?this.props.value:void 0!==this.state.value?this.state.value:void 0!==this.props.defaultValue?this.props.defaultValue:""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rawValue",{get:function(){return this._service.rawValue(this.value)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){var e=this.value,t=this._service.validationValue(e);return{customError:void 0!==this.props.validationMessage,valid:void 0!==this.props.valid?this.props.valid:!(this.required&&!t||this.props.maskValidation&&this.props.prompt&&-1!==e.indexOf(this.props.prompt)),valueMissing:!t}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:t.defaultProps.required},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!0,configurable:!0}),t.prototype.componentDidUpdate=function(e,t){if(this.element&&this.state.focused&&t.focused){var n=this._selection,r=n[0],o=n[1],a=e.selection,i=this.props.selection;(!a&&i||a&&i&&(a.start!==i.start||a.end!==i.end))&&(r=i.start,o=i.end),null!==r&&null!==o&&this.element.setSelectionRange(r,o)}c.maskingChanged(e,this.props)&&this.updateService(),this.setValidity()},t.prototype.componentDidMount=function(){this.updateService(),this.setValidity()},t.prototype.render=function(){var e=this,t=this.props.id||this._inputId,n=!this.validityStyles||this.validity.valid,r=this.props.style||{},o=i.createElement("span",{dir:this.props.dir,className:u.classNames("k-widget k-maskedtextbox",this.props.className,{"k-state-focused":this.state.focused,"k-state-disabled":this.props.disabled,"k-state-invalid":!n}),style:this.props.label?r:a({width:this.props.width},r)},i.createElement("input",{type:"text",autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:!1,className:"k-textbox",value:this.value,id:t,"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,name:this.props.name,tabIndex:u.getTabIndex(this.props.tabIndex,this.props.disabled,!0),accessKey:this.props.accessKey,title:this.props.title,disabled:this.props.disabled||void 0,readOnly:this.props.readonly||void 0,placeholder:this.props.placeholder,ref:function(t){return e._input=t},onChange:this.onChangeHandler,onPaste:this.pasteHandler,onFocus:this.focusHandler,onBlur:this.blurHandler,onDragStart:c.returnFalse,onDrop:c.returnFalse}));return this.props.label?i.createElement(d.FloatingLabel,{label:this.props.label,editorId:t,editorValue:this.value,editorValid:n,editorDisabled:this.props.disabled,editorPlaceholder:this.props.placeholder,children:o,style:{width:this.props.width},dir:this.props.dir}):o},t.prototype.triggerOnChange=function(e,t){this.setState({value:e}),this.props.onChange&&(this._valueDuringOnChange=e,this.props.onChange.call(void 0,{syntheticEvent:t,nativeEvent:t.nativeEvent,selectionStart:this._selection[0],selectionEnd:this._selection[1],target:this,value:this.value}),this._valueDuringOnChange=void 0)},t.prototype.updateService=function(e){var t=Object.assign({includeLiterals:this.props.includeLiterals,mask:this.props.mask,prompt:this.props.prompt,promptPlaceholder:this.props.promptPlaceholder,rules:this.rules},e);this._service.update(t)},Object.defineProperty(t.prototype,"rules",{get:function(){return Object.assign({},c.defaultRules,this.props.rules)},enumerable:!0,configurable:!0}),t.propTypes={value:s.string,defaultValue:s.string,placeholder:s.string,title:s.string,dir:s.string,id:s.string,style:s.object,className:s.string,ariaLabelledBy:s.string,ariaDescribedBy:s.string,width:s.oneOfType([s.string,s.number]),tabIndex:s.number,accessKey:s.string,disabled:s.bool,readonly:s.bool,prompt:s.string,promptPlaceholder:s.string,includeLiterals:s.bool,maskValidation:s.bool,mask:s.string,rules:function(e,t,n){var r=e.rules;if(void 0!==r)return Object.entries(r).some((function(e){return"string"!=typeof e||!(r[e]instanceof RegExp)}))?null:new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Validation failed.")},selection:s.shape({start:s.number.isRequired,end:s.number.isRequired}),name:s.string,label:s.string,validationMessage:s.string,required:s.bool,valid:s.bool,validityStyles:s.bool,onChange:s.func},t.defaultProps={prompt:"_",promptPlaceholder:" ",includeLiterals:!1,maskValidation:!0,rules:c.defaultRules,required:!1,validityStyles:!0},t}(i.Component);t.MaskedTextBox=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(37),o=n(15),a=function(){function e(){this.rules={},this.prompt="_",this.mask="",this.promptPlaceholder=" ",this.includeLiterals=!1,this.maskTokens=[],this.unmaskTokens=[],this.rawTokens=[],this.validationTokens=[]}return e.prototype.update=function(e){var t=e.mask,n=void 0===t?"":t,r=e.prompt,o=void 0===r?"":r,a=e.promptPlaceholder,i=void 0===a?" ":a,s=e.rules,l=void 0===s?{}:s,c=e.includeLiterals,u=void 0!==c&&c;this.mask=n,this.prompt=o,this.promptPlaceholder=i,this.rules=l,this.includeLiterals=u,this.tokenize()},e.prototype.validationValue=function(e){void 0===e&&(e="");var t=e;return r.sequence(this.validationTokens).run(e).fold((function(e){t=e.join("")})),t},e.prototype.rawValue=function(e){void 0===e&&(e="");var t=e;return this.rawTokens.length?(r.sequence(this.rawTokens).run(e).fold((function(e){t=e.join("")})),t):t},e.prototype.maskRaw=function(e){void 0===e&&(e="");var t=e;return this.maskTokens.length?(r.sequence(this.maskTokens).run(e).fold((function(e){t=e.join("")})),t):t},e.prototype.maskInput=function(e,t,n){return e.length<t.length?this.maskRemoved(e,t,n):this.maskInserted(e,t,n)},e.prototype.maskInRange=function(e,t,n,o){var a="",i=o,s=t.split("").slice(0,n),l=t.split("").slice(o);return r.sequence(this.maskTokens.slice(n,o)).run(e).fold((function(e){a=s.concat(e).concat(l).join("")})),{selection:i,value:a}},e.prototype.maskRemoved=function(e,t,n){var o=this,a="",i=n,s=e.split("").slice(n),l=e.split("").slice(0,n).join(""),c=this.maskTokens.length-(e.length-n);return r.sequence(this.maskTokens.slice(0,c)).run(l,t).fold((function(e){i=o.adjustPosition(e,i),a=e.concat(s).join("")})),{selection:i,value:a}},e.prototype.adjustPosition=function(e,t){var n=e[t];return this.maskTokens[t].isLiteral(n)||n===this.prompt?t:t+1},e.prototype.maskInserted=function(e,t,n){var o=this,a="",i=n,s=e.slice(0,n);return r.sequence(this.unmaskTokens).run(s,t).chain((function(e){i=e.join("").length;var n=t.slice(i);return r.sequence(o.maskTokens).run(e.join("")+n,t)})).fold((function(e){a=e.join("")})),{selection:i,value:a}},Object.defineProperty(e.prototype,"maskTokenCreator",{get:function(){var e=this.prompt,t=this.promptPlaceholder;return{literal:function(e){return o.literal(e)},mask:function(n){return o.mask({prompt:e,promptPlaceholder:t})(n)}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"unmaskTokenCreator",{get:function(){var e=this;return{literal:function(e){return o.unliteral(e)},mask:function(t){return o.unmask(e.prompt)(t)}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rawTokenCreator",{get:function(){var e=this.prompt,t=this.promptPlaceholder,n=this.includeLiterals;return{literal:function(e){return o.rawLiteral(n)},mask:function(n){return o.rawMask({prompt:e,promptPlaceholder:t})}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validationTokenCreator",{get:function(){var e=this.prompt;return{literal:function(e){return o.rawLiteral(!1)},mask:function(t){return o.rawMask({prompt:e,promptPlaceholder:""})}}},enumerable:!0,configurable:!0}),e.prototype.tokenize=function(){var e=this;r.greedy(o.token(this.rules,this.maskTokenCreator)).run(this.mask).fold((function(t,n){e.maskTokens=t})),r.greedy(o.token(this.rules,this.unmaskTokenCreator)).run(this.mask).fold((function(t,n){e.unmaskTokens=t})),r.greedy(o.token(this.rules,this.rawTokenCreator)).run(this.mask).fold((function(t,n){e.rawTokens=t})),r.greedy(o.token(this.rules,this.validationTokenCreator)).run(this.mask).fold((function(t,n){e.validationTokens=t}))},e}();t.MaskingService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(15),o=n(16);t.sequence=function(e){return e.reduce((function(e,t){return n=t,e.chain((function(e){return n.map((function(t){return e.concat([t])}))}));var n}),(t=[],new r.Parser((function(e){return new o.Result(t,e)}))));var t},t.greedy=function(e){return new r.Parser((function(t){for(var n=new o.Result([],t);!t.eof();)n=n.concat(e.run(t));return n}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){void 0===e&&(e=[]),void 0===t&&(t=[]),this.input=e,this.control=t,this.inputCursor=0,this.controlCursor=0}return e.prototype.eof=function(){return this.inputCursor>=this.input.length},e.prototype.next=function(){return{char:this.input[this.inputCursor++],control:this.control[this.controlCursor++]}},e.prototype.peek=function(){return{char:this.input[this.inputCursor],control:this.control[this.controlCursor]}},e.prototype.eat_input=function(){this.inputCursor++},e.prototype.eat_control=function(){this.controlCursor++},e.prototype.eat=function(){this.inputCursor++,this.controlCursor++},e}();t.Stream=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.defaultRules={"#":/[\d\s\+\-]/,"&":/[\S]/,0:/[\d]/,9:/[\d\s]/,"?":/[a-zA-Z\s]/,A:/[a-zA-Z0-9]/,C:/./,L:/[a-zA-Z]/,a:/[a-zA-Z0-9\s]/};t.returnFalse=function(){return!1};t.maskingChanged=function(e,t){return e.includeLiterals!==t.includeLiterals||e.mask!==t.mask||e.prompt!==t.prompt||e.promptPlaceholder!==t.promptPlaceholder||!r(e.rules,t.rules)};var r=function(e,t){if(!!e!=!!t)return!1;if(e===t||!e||!t)return!0;var n=!0;for(var r in e)if(e[r]!==t[r]){n=!1;break}if(n)for(var r in t)if(!e.hasOwnProperty(r)){n=!1;break}return n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),a=n(4),i=n(2),s=n(10),l=n(2),c=n(3),u=n(5),d=n(41);t.NumericTextBox=r.forwardRef((function(e,t){l.validatePackage(c.packageMetadata);var n=r.useMemo((function(){return i.guid()}),[]),o=e.id||n,p=a.useInternationalization(),f=a.useLocalization(),h=r.useRef(null),m=r.useRef(null),v=r.useRef(),g=r.useState(!1),b=g[0],y=g[1],k=r.useRef(d.getInitialState()),C=r.useRef(!1),w=r.useRef(),O=r.useRef(e.defaultValue),x=d.formatValue(k.current.focused&&!e.disabled?k.current.currentLooseValue:d.getStateOrPropsValue(e.value,O.current),e.format,p);w.current=x,r.useEffect((function(){h.current&&h.current.setCustomValidity&&h.current.setCustomValidity(S().valid?"":e.validationMessage||"Please enter a valid value!")}));var _=r.useCallback((function(){h.current&&h.current.focus()}),[]),E=r.useCallback((function(){return void 0!==v.current?v.current:d.getStateOrPropsValue(e.value,O.current)}),[e.value]),P=r.useCallback((function(){return e.name}),[e.name]),N=r.useCallback((function(){return e.required}),[e.required]),S=r.useCallback((function(){var t=void 0!==e.validationMessage,n=E();return{customError:t,valid:void 0!==e.valid?e.valid:!(k.current.valueIsOutOfRange||N()&&null==n),valueMissing:null==n}}),[e.validationMessage,e.valid,E,N]),I=r.useCallback((function(){return e.validityStyles}),[e.validityStyles]),R=r.useCallback((function(){return e}),[e]),j=r.useCallback((function(){var e={element:h.current,focus:_};return Object.defineProperty(e,"name",{get:P}),Object.defineProperty(e,"value",{get:E}),Object.defineProperty(e,"validity",{get:S}),Object.defineProperty(e,"validityStyles",{get:I}),Object.defineProperty(e,"required",{get:N}),Object.defineProperty(e,"props",{get:R}),e}),[P,E,S,I,N,_,R]);r.useImperativeHandle(t,j);var D=r.useCallback((function(){return{eventValue:d.getStateOrPropsValue(e.value,O.current),prevLooseValue:w.current,currentLooseValue:h.current.value,selectionStart:h.current.selectionStart,selectionEnd:h.current.selectionEnd,decimalSelect:!1,valueIsCorrected:!1,valueIsOutOfRange:!1,isPaste:C.current,focused:k.current.focused}}),[e.value]),M=r.useCallback((function(t,n){if(!e.disabled){v.current=n.eventValue,O.current=n.eventValue;var r=d.formatValue(d.rangeValue(n.eventValue,e.min,e.max),e.format,p),o=d.rangeValue(p.parseNumber(r,e.format),e.min,e.max);if(o!==n.eventValue&&(n.valueIsOutOfRange=!0,n.eventValue=o,O.current=o),n.valueIsCorrected){var a=m.current;a&&-1===a.className.indexOf("k-state-invalid")&&(a.className+=" k-state-invalid",window.setTimeout((function(){return a.className=a.className.replace(" k-state-invalid","")}),50))}e.value!==n.eventValue&&i.dispatchEvent(e.onChange,t,j(),{value:n.eventValue}),v.current=void 0,k.current=n,y((function(e){return!e}))}}),[e.value,e.onChange,e.disabled,y,j]),T=r.useCallback((function(t){var n=D();C.current=!1,M(t,d.sanitizeNumber(n,e.format,p))}),[e.format,e.onChange,p,M,D]),A=r.useCallback((function(t){var n=D(),r=p.parseNumber(String(n.currentLooseValue),e.format);if(n.selectionEnd>n.selectionStart&&n.selectionEnd-n.selectionStart===String(n.currentLooseValue).length)C.current=!0;else{switch(t.keyCode){case 38:d.increaseValue(r,n,e.step,e.min,e.max,e.format,p);break;case 40:d.decreaseValue(r,n,e.step,e.min,e.max,e.format,p);break;case 13:if(!1===e.rangeOnEnter)return;var o=d.formatValue(d.rangeValue(r,e.min,e.max),e.format,p),a=d.rangeValue(p.parseNumber(o,e.format),e.min,e.max);n.eventValue=a,n.currentLooseValue=d.formatValue(a,e.format,p),n.selectionStart=n.selectionEnd=n.currentLooseValue.length;break;case 110:var i=h.current,s=p.numberSymbols();i&&(n.currentLooseValue=n.currentLooseValue.slice(0,n.selectionStart)+s.decimal+n.currentLooseValue.slice(n.selectionEnd),n.selectionStart=n.selectionEnd=n.selectionStart+1,n=d.sanitizeNumber(n,e.format,p));break;default:return}t.preventDefault(),M(t,n)}}),[e.format,e.min,e.max,e.step,e.onChange,e.rangeOnEnter,M,D]),B=r.useCallback((function(){C.current=!0}),[]),L=r.useCallback((function(t){if(!e.readOnly&&!e.disabled){var n=D();d.increaseValue(p.parseNumber(String(n.currentLooseValue),e.format),n,e.step,e.min,e.max,e.format,p),M(t,n)}}),[e.format,e.min,e.max,e.step,e.onChange,e.readOnly,e.disabled,M,D]),V=r.useCallback((function(t){if(!e.readOnly&&!e.disabled){var n=D();d.decreaseValue(p.parseNumber(String(n.currentLooseValue),e.format),n,e.step,e.min,e.max,e.format,p),M(t,n)}}),[e.format,e.min,e.max,e.step,e.onChange,e.readOnly,e.disabled,M,D]),F=r.useCallback((function(t){document&&document.activeElement===h.current&&h.current&&!e.readOnly&&!e.disabled&&(t.nativeEvent.deltaY<0&&L(t),t.nativeEvent.deltaY>0&&V(t))}),[L,V,e.disabled,e.readOnly]),K=r.useCallback((function(t){k.current.currentLooseValue=w.current,k.current.focused=!0,i.dispatchEvent(e.onFocus,t,j(),{}),y((function(e){return!e}))}),[e.onFocus,y,j]),G=r.useCallback((function(t){k.current=d.getInitialState(),i.dispatchEvent(e.onBlur,t,j(),{}),y((function(e){return!e}))}),[e.onBlur,y,j]),z=r.useCallback((function(e){document&&h.current&&(e.preventDefault(),document.activeElement!==h.current&&h.current.focus())}),[]);r.useLayoutEffect((function(){h.current&&void 0!==k.current.selectionStart&&void 0!==k.current.selectionEnd&&(h.current.selectionStart=k.current.selectionStart,h.current.selectionEnd=k.current.selectionEnd,k.current.selectionStart=void 0,k.current.selectionEnd=void 0)}),[b]);var H=!I()||S().valid,U=r.createElement("span",{dir:e.dir,style:e.label?void 0:{width:e.width},className:"k-widget k-numerictextbox"+(e.className?" "+e.className:""),"aria-disabled":e.disabled?"true":void 0},r.createElement("span",{className:i.classNames("k-numeric-wrap",{"k-state-disabled":e.disabled,"k-state-invalid":!H,"k-state-focused":k.current.focused}),ref:m},r.createElement("input",{value:null===x?"":x,tabIndex:i.getTabIndex(e.tabIndex,e.disabled),accessKey:e.accessKey,disabled:e.disabled,title:e.title,"aria-valuemin":e.min,"aria-valuemax":e.max,"aria-labelledby":e.ariaLabelledBy,"aria-describedby":e.ariaDescribedBy,placeholder:e.placeholder,spellCheck:!1,autoComplete:"off",autoCorrect:"off",type:e.inputType||"tel",className:"k-input k-formatted-value",id:o,name:e.name,readOnly:e.readOnly,onChange:T,onFocus:K,onBlur:G,onKeyDown:A,onPaste:B,onWheel:F,ref:h}),e.children,e.spinners&&r.createElement("span",{className:"k-select",onMouseDown:z},r.createElement("span",{className:"k-link k-link-increase","aria-label":f.toLanguageString(u.numericIncreaseValue,u.messages[u.numericIncreaseValue]),title:f.toLanguageString(u.numericIncreaseValue,u.messages[u.numericIncreaseValue]),onClick:L},r.createElement("span",{className:"k-icon k-i-arrow-n"})),r.createElement("span",{className:"k-link k-link-decrease","aria-label":f.toLanguageString(u.numericDecreaseValue,u.messages[u.numericDecreaseValue]),title:f.toLanguageString(u.numericDecreaseValue,u.messages[u.numericDecreaseValue]),onClick:V},r.createElement("span",{className:"k-icon k-i-arrow-s"})))));return e.label?r.createElement(s.FloatingLabel,{label:e.label,editorId:o,editorValue:null===x?"":x,editorValid:H,editorDisabled:e.disabled,editorPlaceholder:e.placeholder,children:U,style:{width:e.width},dir:e.dir}):U})),t.NumericTextBox.propTypes={value:o.number,defaultValue:o.number,step:o.number,format:o.oneOfType([o.string,o.shape({style:o.oneOf(["decimal","currency","percent","scientific","accounting"]),currency:o.string,currencyDisplay:o.oneOf(["symbol","code","name"]),useGrouping:o.bool,minimumIntegerDigits:o.number,minimumFractionDigits:o.number,maximumFractionDigits:o.number})]),width:o.oneOfType([o.string,o.number]),tabIndex:o.number,accessKey:o.string,title:o.string,placeholder:o.string,min:o.number,max:o.number,spinners:o.bool,disabled:o.bool,readOnly:o.bool,dir:o.string,name:o.string,label:o.string,validationMessage:o.string,required:o.bool,id:o.string,rangeOnEnter:o.bool,ariaLabelledBy:o.string,ariaDescribedBy:o.string,onChange:o.func,onFocus:o.func,onBlur:o.func},t.NumericTextBox.displayName="KendoNumericTextBox",t.NumericTextBox.defaultProps={step:1,spinners:!0,disabled:!1,required:!1,validityStyles:!0,rangeOnEnter:!0,onChange:function(e){},onFocus:function(e){},onBlur:function(e){}}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=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 o=/\d/;t.getInitialState=function(){return{eventValue:null,prevLooseValue:"",currentLooseValue:"",focused:!1,selectionStart:void 0,selectionEnd:void 0,decimalSelect:!1,valueIsCorrected:!1,valueIsOutOfRange:!1}},t.getStateOrPropsValue=function(e,t){return void 0!==e?e:t},t.formatValue=function(e,t,n){return null===e&&void 0===e?"":"string"==typeof e?e:n.formatNumber(e,t)},t.fractionLength=function(e){return(String(e).split(".")[1]||"").length};var a=function(e,n){return Math.max(t.fractionLength(e),t.fractionLength(n))};t.limitPrecision=function(e){return Math.min(e,15)},t.toFixedPrecision=function(e,n){var r=t.limitPrecision(n);return parseFloat(e.toFixed(r))},t.increaseValue=function(e,n,r,i,s,l,c){var u=a(e||0,r||0),d=t.rangeValue(t.toFixedPrecision((e||0)+(r||0),u),i,s);n.eventValue=d,n.currentLooseValue=t.formatValue(d,l,c),n.selectionStart=n.selectionEnd=t.getLastNumberIndex(n.currentLooseValue,o)},t.decreaseValue=function(e,n,r,i,s,l,c){var u=a(e||0,r||0),d=t.rangeValue(t.toFixedPrecision((e||0)-(r||0),u),i,s);n.eventValue=d,n.currentLooseValue=t.formatValue(d,l,c),n.selectionStart=n.selectionEnd=t.getLastNumberIndex(n.currentLooseValue,o)},t.rangeValue=function(e,t,n){return null==e?e:e>1||e<1||1===e?void 0!==n&&void 0!==t&&n<t?null:(void 0!==n&&e>n&&(e=n),void 0!==t&&e<t&&(e=t),e):null},t.getMaxCursorPosition=function(e,t){var n=t.findIndex((function(t){t[0];var n=t[1];return Boolean(n)&&e.indexOf(n)===e.length-n.length}));if(-1===n)return-1;var r=t[n][1];return e.length-r.length},t.getMinCursorPosition=function(e,t){var n=t.findIndex((function(t){var n=t[0];t[1];return Boolean(n)&&0===e.indexOf(n)}));return-1===n?-1:t[n][0].length},t.rangeSelection=function(e,n,r){var o=t.getMaxCursorPosition(e,n);if(-1!==o&&r.selectionStart>o)r.selectionStart=r.selectionEnd=o;else{r.selectionStart>e.length&&(r.selectionStart=r.selectionEnd=e.length);var a=t.getMinCursorPosition(e,n);-1!==a&&r.selectionStart<a&&(r.selectionStart=r.selectionEnd=a),-1===r.selectionStart&&(r.selectionStart=r.selectionEnd=0)}},t.setSelection=function(e,n,r,o){e.selectionStart=e.selectionEnd=n,t.rangeSelection(r,o,e)},t.setInvalid=function(e,n,r,o){e.eventValue=o.parseNumber(e.prevLooseValue,n),e.currentLooseValue=e.prevLooseValue,e.valueIsCorrected=!0,t.setSelection(e,e.selectionStart,e.currentLooseValue,r)},t.isMinusSymbolAdded=function(e,t){var n=String(e.currentLooseValue),r=String(e.prevLooseValue);return n.split(t.minusSign).length!==r.split(t.minusSign).length&&n.length===r.length+t.minusSign.length},t.isMinusSymbolRemoved=function(e,t){var n=String(e.currentLooseValue),r=String(e.prevLooseValue);return-1===n.indexOf(t.minusSign)&&-1!==r.indexOf(t.minusSign)},t.isDecimalDuplicated=function(e,t){return String(e.currentLooseValue).split(t.decimal).length>2},t.getFormatPrefixSufix=function(e,n){var r=n.formatNumber(1111111.1111111,e),o=n.formatNumber(-1111111.1111111,e),a=n.formatNumber(0,e),i=n.formatNumber(1,e),s=t.getPrefix(r),l=t.getPrefix(o),c=t.getPrefix(a),u=t.getPrefix(i);return{positiveInfo:[s,t.getSuffix(r)],negativeInfo:[l,t.getSuffix(o)],zeroInfo:[c,t.getSuffix(a)],oneInfo:[u,t.getSuffix(i)]}},t.getFormatSymbols=function(e,t){var n=t.formatNumber(1111111.1111111,e),r=t.formatNumber(-1111111.1111111,e),o=t.formatNumber(0,e),a=t.formatNumber(1,e),i=t.numberSymbols(),s=new RegExp("[\\d\\"+i.decimal+i.group+"]","g");return[n,r,o,a].map((function(e){return e.replace(s,"")})).join("").split("").filter((function(e,t,n){return n.indexOf(e)===t})).join("")},t.getInitialPosition=function(e,n){var r=e.indexOf(n.decimal);return r>-1?r:t.getLastNumberIndex(e,o)},t.reverseString=function(e){return e.split("").reverse().join("")},t.getLastNumberIndex=function(e,n){return e.length-t.reverseString(e).search(n)},t.getPrefix=function(e){return e.split(e[e.search(o)])[0]},t.getSuffix=function(e){var n=t.reverseString(e);return t.reverseString(n.split(n[n.search(o)])[0])},t.getFirstNumberIndex=function(e,t){return e.search(t)},t.getDecimalCount=function(e,t){var n=e.indexOf(t);return n>-1?e.length-n-1:0},t.changeBasedSelection=function(e,t,n,r,a){var i="0"===e.replace(a,"")[0],s="0"===t.replace(a,"")[0];if(i&&!s)return n-1;if(s&&r)return n+1;for(var l=0,c=0;c<n;c++)o.test(e.charAt(c))&&l++;for(var u=0;l>0&&t.length>u;)o.test(t.charAt(u))&&l--,u++;return u},t.sanitizeNumber=function(e,n,a){var i=r({},e),s=i.prevLooseValue,l=a.numberSymbols(),c=t.getFormatSymbols(n,a),u=String(i.currentLooseValue),d=String(s),p=new RegExp("[^\\d\\"+l.decimal+"]","g"),f=new RegExp("[^\\d\\"+l.decimal+"\\"+l.group+"]","g"),h=new RegExp("[\\d\\"+l.decimal+"\\"+l.group+"]"),m=u.replace(p,""),v=t.getFirstNumberIndex(u,o),g=-1===v?-1:t.getLastNumberIndex(u,o),b=u.indexOf(l.decimal),y=(u.substring(0,v)+u.substring(v,g).replace(f,"")+u.substring(g,u.length)).split("").filter((function(e){return-1!==c.indexOf(e)||-1!==e.search(h)})).join(""),k=a.formatNumber(.31111111111111117,n).replace(p,""),C=k.indexOf(l.decimal),w=C>-1?k.length-C-1:0,O=a.formatNumber(1,n).replace(p,""),x=O.indexOf(l.decimal),_=x>-1?O.length-x-1:0,E=t.getFormatPrefixSufix(n,a),P=[E.positiveInfo,E.negativeInfo,E.zeroInfo,E.oneInfo],N=1!==P.findIndex((function(e){return-1!==e.findIndex((function(e){return Boolean(e)}))})),S=u.length>0&&u.length<d.length,I=n&&"p"===n[0]&&u&&-1===u.indexOf(l.percentSign);if(!i.isPaste){if(""===u)return i.eventValue=null,i.currentLooseValue="",i;if(i.currentLooseValue===l.minusSign&&a.formatNumber(-0,n)!==d)return i.eventValue=-0,i.currentLooseValue=t.formatValue(i.eventValue,n,a),t.setSelection(i,t.getInitialPosition(i.currentLooseValue,l),i.currentLooseValue,P),i;if(t.isMinusSymbolAdded(i,l)){var R=a.parseNumber(s,n);i.eventValue=-(null!==R?R:0),i.currentLooseValue=t.formatValue(i.eventValue,n,a);var j=t.getFirstNumberIndex(i.currentLooseValue,o),D=t.getFirstNumberIndex(d,o);return t.setSelection(i,i.selectionEnd-1+(j-D),i.currentLooseValue,P),i}if(t.isMinusSymbolRemoved(i,l))return i.eventValue=a.parseNumber(i.currentLooseValue,n),t.setSelection(i,i.selectionStart,i.currentLooseValue,P),i;if(i.currentLooseValue===l.decimal){i.eventValue=0;var M=t.formatValue(i.eventValue,n,a);if(0===_&&w>0){var T=t.getLastNumberIndex(M,o);i.currentLooseValue=M.substring(0,T)+l.decimal+M.substring(T)}else i.currentLooseValue=M;return t.setSelection(i,t.getInitialPosition(i.currentLooseValue,l)+1,i.currentLooseValue,P),i}if(t.isDecimalDuplicated(i,l))return t.setInvalid(i,n,P,a),i;if(I)return i.eventValue=a.parseNumber(u,n)/100,i.currentLooseValue=t.formatValue(i.eventValue,n,a),i;if(String(i.currentLooseValue).replace(/[^\d]/g,"").length>15)return t.setInvalid(i,n,P,a),i;if(m!==u&&u&&N)if(-1===P.findIndex((function(e){var t=e[0],n=e[1],r=u.indexOf(t),o=u.indexOf(n),a=0===r,i=o===u.length-n.length,s=r+t.length!==v&&-1!==v&&u[r+t.length]!==l.decimal,c=o!==g&&-1!==g&&u[o-1]!==l.decimal;return t&&n?!s&&!c&&(a&&i):t?!s&&a:!!n&&(!c&&i)})))return t.setInvalid(i,n,P,a),i;if(m[m.length-1]===l.decimal&&w>0)return i.eventValue=a.parseNumber(u,n),i.currentLooseValue=y,i;if(i.currentLooseValue&&s)if((c+l.decimal+l.group).split("").findIndex((function(e){return u.split("").filter((function(t){return t===e})).length<d.split("").filter((function(t){return t===e})).length&&u.length+1===d.length&&(e!==l.decimal||0!==t.getDecimalCount(d.replace(p,""),l.decimal))}))>-1)return i.eventValue=a.parseNumber(e.prevLooseValue,n),i.currentLooseValue=e.prevLooseValue,i;var A=t.getDecimalCount(m,l.decimal),B="0"===m[m.length-1];if(S&&B&&A<_)return i.eventValue=a.parseNumber(i.currentLooseValue,n),i.currentLooseValue=t.formatValue(i.eventValue,n,a),i;if(A>0){var L=u.substring(0,b);if(B&&(!L||0!==d.indexOf(L))){i.eventValue=a.parseNumber(i.currentLooseValue,n);var V=t.formatValue(i.eventValue,n,a);return t.setSelection(i,t.changeBasedSelection(u,V,i.selectionEnd,S,p),V,P),i.currentLooseValue=V,i}if(A>w){var F=u.indexOf(l.decimal),K=u.substring(0,F)+u.substring(F,F+1+w)+u.substring(g,String(i.currentLooseValue).length);return i.eventValue=a.parseNumber(K,n),i.currentLooseValue=K,t.setSelection(i,i.selectionStart,K,P),i}if(_!==w&&A<=w&&B)return i.eventValue=a.parseNumber(i.currentLooseValue,n),i.currentLooseValue=y,i;if(A<_)return i.eventValue=a.parseNumber(i.currentLooseValue,n),i.currentLooseValue=t.formatValue(i.eventValue,n,a),i}}if(i.eventValue=a.parseNumber(i.currentLooseValue,n),I&&(i.eventValue=i.eventValue/100),"number"==typeof i.eventValue){V=t.formatValue(i.eventValue,n,a);1===u.length?t.setSelection(i,t.getInitialPosition(V,l),V,P):t.setSelection(i,t.changeBasedSelection(u,V,i.selectionEnd,S,p),V,P),i.currentLooseValue=V}else i.currentLooseValue=t.formatValue(a.parseNumber(m),n,a);return i}},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)}),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 i=n(1),s=n(0),l=n(2),c=n(4),u=n(5),d=n(17),p=n(2),f=n(3),h=function(e){function t(t){var n=e.call(this,t)||this;return n.state={value:void 0===n.props.defaultValue?n.props.min:n.props.defaultValue,focused:!1,dir:n.props.dir},n.buttons=function(e){return e.enabled?i.createElement(i.Fragment,null,i.createElement("a",{className:"k-button k-button-decrease",style:{position:"relative"},title:e.decrementTitle,onClick:e.decrement},i.createElement("span",{className:l.classNames("k-icon",{"k-i-arrow-s":n.props.vertical,"k-i-arrow-w":!n.props.vertical})})),e.children,i.createElement("a",{className:"k-button k-button-increase",style:{position:"relative"},title:e.incrementTitle,onClick:e.increment},i.createElement("span",{className:l.classNames("k-icon",{"k-i-arrow-n":n.props.vertical,"k-i-arrow-e":!n.props.vertical})}))):e.children},n.focus=function(){n._element&&n._element.focus()},n.isLabel=function(e){for(var t=e;t;){if(Boolean(t.getAttribute(d.SLIDER_LABEL_ATTRIBUTE)))return!0;t=t.parentElement}return!1},n.onFocus=function(){n.setState({focused:!0})},n.onBlur=function(){n.setState({focused:!1})},n.onKeyDown=function(e){var t=void 0;e.keyCode===l.Keys.left||e.keyCode===l.Keys.down?t=n.state.value-(n.props.step||0):e.keyCode===l.Keys.right||e.keyCode===l.Keys.up?t=n.state.value+(n.props.step||0):e.keyCode===l.Keys.home?t=n.props.min:e.keyCode===l.Keys.end&&(t=n.props.max),void 0!==t&&(e.preventDefault(),n.change(e,t))},n.decrement=function(e){e.preventDefault(),n.change(e,n.state.value-(n.props.step||0))},n.increment=function(e){e.preventDefault(),n.change(e,n.state.value+(n.props.step||0))},n.dragStart=function(e){n.isLabel(e.event.originalEvent.target)||(e.event.isTouch&&e.event.originalEvent.preventDefault(),n.drag(e))},n.dragOver=function(e){e.event.originalEvent.preventDefault(),n.drag(e)},n.drag=function(e){var t=e.element.getBoundingClientRect(),r=(n.props.vertical?t.bottom-e.event.clientY:"rtl"===n.state.dir?t.right-e.event.clientX:e.event.clientX-t.left)/(n.props.vertical?t.height:t.width);n.change(e,n.props.min+r*(n.props.max-n.props.min))},p.validatePackage(f.packageMetadata),n}return o(t,e),t.getDerivedStateFromProps=function(e,t){var n=void 0!==e.value?e.value:t.value,r=e.min,o=e.max;return void 0===n?null:{value:Math.min(Math.max(n,r),o)}},t.prototype.componentDidMount=function(){if(!this.state.dir&&window&&this._element){var e=window.getComputedStyle(this._element).direction;e&&this.setState({dir:e})}},t.prototype.render=function(){var e,t,n=this,r=c.provideLocalizationService(this),o=(this.state.value-this.props.min)/(this.props.max-this.props.min)*100,s=this.props.vertical?{marginTop:"0.5rem",marginBottom:"0.5rem"}:{marginLeft:"0.5rem",marginRight:"0.5rem"},d=this.props.vertical?{paddingTop:0,height:"100%"}:{};return i.createElement("div",{ref:function(e){return n._element=e},"aria-valuemin":this.props.min,"aria-valuemax":this.props.max,"aria-valuenow":this.state.value,"aria-disabled":this.props.disabled?"true":void 0,"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,dir:this.state.dir,role:"slider",id:this.props.id,style:this.props.style,tabIndex:l.getTabIndex(this.props.tabIndex,this.props.disabled,void 0),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,className:l.classNames("k-slider k-widget",{"k-state-focused":this.state.focused,"k-state-disabled":this.props.disabled,"k-slider-horizontal":!this.props.vertical,"k-slider-vertical":this.props.vertical},this.props.className)},i.createElement("div",{className:l.classNames("k-slider-wrap",{"k-slider-buttons":this.props.buttons}),style:{display:"flex",position:"relative",flexDirection:this.props.vertical?"column-reverse":"row"}},i.createElement(this.buttons,{enabled:this.props.buttons,decrement:this.decrement,increment:this.increment,incrementTitle:r.toLanguageString(u.sliderIncreaseValue,u.messages[u.sliderIncreaseValue]),decrementTitle:r.toLanguageString(u.sliderDecreaseValue,u.messages[u.sliderDecreaseValue])},i.createElement(l.Draggable,{onDrag:this.dragOver,onPress:this.dragStart},i.createElement("div",{className:"k-slider-track-wrap",style:a({flexGrow:1,position:"relative",touchAction:"none"},s)},this.props.children&&i.createElement("ul",{className:"k-reset k-slider-items",style:a({margin:0},d)},i.Children.map(this.props.children,(function(e){return e&&i.cloneElement(e,{position:100*(e.props.position-n.props.min)/(n.props.max-n.props.min),vertical:n.props.vertical},e.props.children)}))),i.createElement("div",{className:"k-slider-track",style:this.props.vertical?{bottom:0,height:"100%"}:(e={},e["rtl"===this.state.dir?"right":"left"]=0,e.width="100%",e),ref:function(e){return n._sliderTrack=e}},i.createElement("div",{className:"k-slider-selection",style:this.props.vertical?{height:o+"%"}:{width:o+"%"}}),i.createElement("a",{className:"k-draghandle",title:r.toLanguageString(u.sliderDragTitle,u.messages[u.sliderDragTitle]),style:this.props.vertical?{bottom:"calc("+o+"% - 8px)",zIndex:1}:(t={},t["rtl"===this.state.dir?"right":"left"]="calc("+o+"% - 8px)",t.zIndex=1,t)})))))))},Object.defineProperty(t.prototype,"sliderTrack",{get:function(){return this._sliderTrack},enumerable:!0,configurable:!0}),t.prototype.change=function(e,t){t=Math.min(Math.max(t,this.props.min),this.props.max),this.setState({value:t}),l.dispatchEvent(this.props.onChange,e,this,{value:t})},t.propTypes={min:s.number.isRequired,max:s.number.isRequired,value:s.number,vertical:s.bool,id:s.string,ariaLabelledBy:s.string,ariaDescribedBy:s.string},t}(i.Component);t.Slider=h,c.registerForLocalization(h)},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=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 o=n(1),a=n(0),i=n(2),s=n(5),l=n(4),c=n(44),u=n(2),d=n(3);t.RangeSlider=o.forwardRef((function(e,t){var n,a,p,h;u.validatePackage(d.packageMetadata);var m=o.useRef(null),v=o.useRef(null),g=o.useRef(null),b=o.useRef(null),y=o.useRef(null),k=o.useCallback((function(){b.current&&b.current.focus()}),[b]);o.useImperativeHandle(m,(function(){return{element:v.current,focus:k,props:e}})),o.useImperativeHandle(t,(function(){return m.current}));var C=o.useMemo((function(){return e.min}),[e.min]),w=o.useMemo((function(){return e.max}),[e.max]),O=o.useMemo((function(){return void 0!==e.step?e.step:f.step}),[e.step,f.step]),x=i.useDir(v,e.dir),_=o.useState(""),E=_[0],P=_[1],N=function(e,t,n){var a=o.useState(e),i=a[0],s=a[1],l=o.useCallback((function(e){var o=c.rangeReducer(t.state||i,r({},e,t));n&&n(o,e.event),s(o)}),[t,n]);return[i,l]}(e.defaultValue||f.defaultValue,{min:C,max:w,step:O,state:e.value},(function(t,n){e.onChange&&m.current&&e.onChange.call(void 0,{value:t,target:m.current,syntheticEvent:n})})),S=N[0],I=N[1],R=o.useMemo((function(){return e.value||S}),[e.value,S]),j=o.useRef(null),D=o.useRef(null),M=o.useMemo((function(){return(R.start-C)/(w-C)*100}),[R.start,C,w]),T=o.useMemo((function(){return(R.end-C)/(w-C)*100}),[R.end,C,w]),A=o.useMemo((function(){return e.vertical?{paddingTop:0,height:"100%"}:{}}),[e.vertical]),B=o.useMemo((function(){return e.vertical?{marginTop:"0.5rem",marginBottom:"0.5rem"}:{marginLeft:"0.5rem",marginRight:"0.5rem"}}),[e.vertical]),L=l.useLocalization(),V=o.useCallback((function(t){if(D.current){t.originalEvent.preventDefault();var n=D.current.getBoundingClientRect(),r=e.vertical?n.bottom-t.clientY:"rtl"===x?n.right-t.clientX:t.clientX-n.left,o=e.vertical?n.height:n.width;return C+r/o*(w-C)}}),[D,e.vertical,x,C,w,S.start,S.end,e.value&&e.value.start,e.value&&e.value.end]),F=o.useCallback((function(e){return e<=R.start?"start":e>=R.end?"end":2*e<R.end+R.start?"start":"end"}),[S.start,S.end,e.value&&e.value.start,e.value&&e.value.end]),K=o.useCallback((function(e){switch(e.keyCode){case i.Keys.right:e.preventDefault(),I({type:"rtl"===x?c.RANGE_ACTION.decrease:c.RANGE_ACTION.increase,key:"start",event:e});break;case i.Keys.up:e.preventDefault(),I({type:c.RANGE_ACTION.increase,key:"start",event:e});break;case i.Keys.left:e.preventDefault(),I({type:"rtl"===x?c.RANGE_ACTION.increase:c.RANGE_ACTION.decrease,key:"start",event:e});break;case i.Keys.down:e.preventDefault(),I({type:c.RANGE_ACTION.decrease,key:"start",event:e});break;case i.Keys.home:e.preventDefault(),I({type:c.RANGE_ACTION.min,key:"start",event:e});break;case i.Keys.end:e.preventDefault(),I({type:c.RANGE_ACTION.max,key:"start",event:e})}}),[I]),G=o.useCallback((function(e){switch(e.keyCode){case i.Keys.right:e.preventDefault(),I({type:"rtl"===x?c.RANGE_ACTION.decrease:c.RANGE_ACTION.increase,key:"end",event:e});break;case i.Keys.up:e.preventDefault(),I({type:c.RANGE_ACTION.increase,key:"end",event:e});break;case i.Keys.left:e.preventDefault(),I({type:"rtl"===x?c.RANGE_ACTION.increase:c.RANGE_ACTION.decrease,key:"end",event:e});break;case i.Keys.down:e.preventDefault(),I({type:c.RANGE_ACTION.decrease,key:"end",event:e});break;case i.Keys.home:e.preventDefault(),I({type:c.RANGE_ACTION.min,key:"end",event:e});break;case i.Keys.end:e.preventDefault(),I({type:c.RANGE_ACTION.max,key:"end",event:e})}}),[I,x]),z=o.useCallback((function(e){var t=V(e),n=F(t);P(n),"end"===n?y.current.focus():b.current.focus();var r="end"===n?c.RANGE_ACTION.end:c.RANGE_ACTION.start;I({type:r,payload:t,event:e})}),[e.vertical,C,w,I]);return i.useDraggable(D,{onPress:z,onDrag:function(e){var t=V(e),n="end"===E?c.RANGE_ACTION.end:c.RANGE_ACTION.start;I({type:n,payload:t,event:e})},onRelease:function(e){var t=V(e),n="end"===E?c.RANGE_ACTION.end:c.RANGE_ACTION.start;I({type:n,payload:t,event:e}),P("")}}),o.createElement("div",{role:"slider",id:e.id,style:e.style,ref:v,dir:x,className:i.classNames("k-widget k-slider",{"k-rtl":"rtl"===x,"k-state-disabled":e.disabled,"k-slider-vertical":e.vertical,"k-slider-horizontal":!e.vertical},e.className),"aria-labelledby":e.ariaLabelledBy,"aria-describedby":e.ariaDescribedBy},o.createElement("div",{className:"k-slider-wrap",style:{display:"flex",position:"relative",flexDirection:e.vertical?"column-reverse":"row"}},o.createElement("div",{ref:D,className:"k-slider-track-wrap",style:r({flexGrow:1,position:"relative",touchAction:"none"},B)},e.children&&o.createElement("ul",{className:"k-reset k-slider-items",style:r({margin:0},A)},o.Children.map(e.children,(function(t){return t&&o.cloneElement(t,{position:100*(t.props.position-e.min)/(e.max-e.min),vertical:e.vertical},t.props.children)}))),o.createElement("div",{ref:j,className:"k-slider-track",style:e.vertical?{bottom:0,height:"100%"}:(n={},n["rtl"===x?"right":"left"]=0,n.width="100%",n)},null!==M&&null!==T&&o.createElement("div",{"data-selection":!0,ref:g,title:R.start+" - "+R.end,className:"k-slider-selection",style:e.vertical?{height:T-M+"%",bottom:M+"%"}:(a={},a["rtl"===x?"right":"left"]=M+"%",a.width=T-M+"%",a)}),o.createElement("a",{ref:b,role:"slider",tabIndex:i.getTabIndex(e.startTabIndex,e.disabled,void 0),"aria-valuemin":C,"aria-valuemax":Math.max(w,R.end),"aria-valuenow":R.start,"aria-disabled":e.disabled?"true":void 0,className:"k-draghandle",title:L.toLanguageString(s.sliderDragTitle,s.messages[s.sliderDragTitle]),style:e.vertical?{bottom:"calc("+M+"% - 8px)",zIndex:1}:(p={},p["rtl"===x?"right":"left"]="calc("+M+"% - 8px)",p.zIndex=1,p),onKeyDown:K}),o.createElement("a",{ref:y,role:"slider",tabIndex:i.getTabIndex(e.endTabIndex,e.disabled,void 0),"aria-valuemin":Math.min(C,R.start),"aria-valuemax":w,"aria-valuenow":R.end,"aria-disabled":e.disabled?"true":void 0,className:"k-draghandle",title:L.toLanguageString(s.sliderDragTitle,s.messages[s.sliderDragTitle]),style:e.vertical?{bottom:"calc("+T+"% - 8px)",zIndex:1}:(h={},h["rtl"===x?"right":"left"]="calc("+T+"% - 8px)",h.zIndex=1,h),onKeyDown:G})))))}));var p={value:function(e,t,n){if(e.value){var r=e.value.start,o=e.value.end,a=e.min,i=e.max;if(r>o||r>i||r<a||o>i||o<a||o<r)return new Error("Invalid prop + "+t+" supplied to "+n+".\n The { start, end } value must be between the min & max value and { start, end } must be start < end.\n ")}return null},defaultValue:function(e,t,n){if(e.defaultValue){var r=e.defaultValue.start,o=e.defaultValue.end,a=e.min,i=e.max;if(r>o||r>i||r<a||o>i||o<a||o<r)return new Error("Invalid prop + "+t+" supplied to "+n+".\n The { start, end } value must be between the min & max value and { start, end } must be start < end.\n ")}return null},onChange:a.func,step:a.number,min:function(e,t,n){var r=e[t],o=e.min,a=e.max;return void 0===o?new Error("Invalid prop + "+t+" supplied to "+n+".\n "+t+" value can not be undefined.\n "):r&&o>=a?new Error("Invalid prop + "+t+" supplied to "+n+".\n "+t+" value can not be equal to or bigger than the max value.\n "):null},max:function(e,t,n){var r=e[t],o=e.min,a=e.max;return void 0===a?new Error("Invalid prop + "+t+" supplied to "+n+".\n "+t+" value can not be undefined.\n "):r&&a<=o?new Error("Invalid prop + "+t+" supplied to "+n+".\n "+t+" value can not be equal to or smaller than the min value.\n "):null},vertical:a.bool,disabled:a.bool,dir:a.oneOf(["ltr","rtl"])},f={step:1,defaultValue:{start:0,end:0},vertical:!1,disabled:!1};t.RangeSlider.displayName="KendoReactRangeSlider",t.RangeSlider.propTypes=p,t.RangeSlider.defaultProps=f},function(e,t,n){"use strict";var r,o=this&&this.__assign||function(){return(o=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}),function(e){e.start="start",e.end="end",e.min="min",e.max="max",e.increase="increase",e.decrease="decrease"}(r=t.RANGE_ACTION||(t.RANGE_ACTION={})),t.rangeReducer=function(e,t){var n,a;switch(t.type){case r.start:if(void 0===t.payload)return e;n={start:t.payload>e.end?e.end:Math.max(t.payload,t.min),end:e.end};break;case r.end:if(void 0===t.payload)return e;n={start:e.start,end:t.payload<e.start?e.start:Math.min(t.payload,t.max)};break;case r.min:n="start"===t.key?o({},e,{start:t.min}):o({},e,{end:Math.max(t.min,e.start)});break;case r.max:n="start"===t.key?o({},e,{start:Math.min(t.max,e.end)}):o({},e,{end:t.max});break;case r.increase:if(void 0===t.step||void 0===t.key)return e;a=e[t.key]+t.step,n="start"===t.key?a<t.min?o({},e,{start:t.min}):o({},e,{start:Math.min(a,e.end)}):a>t.max?o({},e,{end:t.max}):o({},e,{end:Math.max(a,e.start)});break;case r.decrease:if(void 0===t.step||void 0===t.key)return e;a=e[t.key]-t.step,n="start"===t.key?a<t.min?o({},e,{start:t.min}):o({},e,{start:Math.min(a,e.end)}):a>t.max?o({},e,{end:t.max}):o({},e,{end:Math.max(a,e.start)});break;default:n=e}return n}},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)}),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 i=n(1),s=n(0),l=n(2),c=n(4),u=n(5),d=n(2),p=n(3),f=function(e){function t(n){var r=e.call(this,n)||this;return r.setValidity=function(){r._input&&r._input.setCustomValidity&&r._input.setCustomValidity(r.validity.valid?"":r.props.validationMessage||r.defaultValidationMessage.toLanguageString(u.switchValidation,u.messages[u.switchValidation]))},r.limit=function(e,t,n){var r=n.offsetWidth,o=t.offsetWidth;return e<0?0:e>r-o?r-o:e},r.toggle=function(e,t){r.setState({checked:e}),r.valueDuringOnChange=e,l.dispatchEvent(r.props.onChange,t,r,{value:e}),r.valueDuringOnChange=void 0},r._id=l.guid(),r.defaultValidationMessage=c.provideLocalizationService(r),r.focus=function(){r._element&&r._element.focus()},r.dummyInput=function(e){return i.createElement("input",{type:"checkbox",checked:r.props.checked,ref:function(e){r._input=e},tabIndex:-1,"aria-hidden":!0,value:e,style:{opacity:0,width:1,border:0,zIndex:-1,position:"absolute",left:"50%"},onChange:l.noop})},r.handleClick=function(e){r.eventTimeStamp!==e.timeStamp&&(r.eventTimeStamp=e.timeStamp,r.toggle(!r.value,e))},r.handleKeyDown=function(e){if(!r.props.disabled){var t=e.keyCode;t!==l.Keys.space&&t!==l.Keys.enter||r.toggle(!r.value,e)}},r.handleWrapperFocus=function(e){if(!r.props.disabled){r.setState({focused:!0});var t=r.props.onFocus;t&&t.call(void 0,e)}},r.handleWrapperBlur=function(e){if(!r.props.disabled){r.setState({focused:!1});var t=r.props.onBlur;t&&t.call(void 0,e)}},d.validatePackage(p.packageMetadata),r.state={checked:n.defaultChecked||t.defaultProps.defaultChecked,focused:!1},r}return o(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.props.checked?this.props.checked:this.state.checked},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"actionElement",{get:function(){return this._wrapper},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){var e=void 0!==this.props.validationMessage,t=void 0!==this.props.valid?this.props.valid:!this.props.required||!!this.value;return{customError:e,valid:void 0!==this.props.valid?this.props.valid:t,valueMissing:null===this.value}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:t.defaultProps.required},enumerable:!0,configurable:!0}),t.prototype.componentDidMount=function(){this.setValidity(),this.forceUpdate()},t.prototype.componentDidUpdate=function(){this.setValidity()},t.prototype.render=function(){var e=this,t=this.state.focused,n=this.props,r=n.dir,o=n.disabled,s=n.id,c=n.offLabel,u=n.onLabel,d=n.tabIndex;this.dir=r||this._wrapper&&getComputedStyle(this._wrapper).direction||void 0;var p=!this.validityStyles||this.validity.valid,f=l.classNames({"k-widget":!0,"k-switch":!0,"k-switch-on":this.value,"k-switch-off":!this.value,"k-state-focused":t,"k-state-disabled":o,"k-state-invalid":!p},this.props.className),h={"aria-checked":this.value,"aria-disabled":o||void 0};return i.createElement("span",{ref:function(t){e._wrapper=t},className:f,dir:this.dir,onKeyDown:this.handleKeyDown,onClick:this.handleClick,onBlur:this.handleWrapperBlur,onFocus:this.handleWrapperFocus},i.createElement("span",a({className:"k-switch-container",id:s||this._id,role:"switch"},h,{"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,ref:function(t){e._element=t},tabIndex:l.getTabIndex(d,o,void 0),accessKey:this.props.accessKey}),this.dummyInput(this.value),i.createElement("span",{className:"k-switch-label-on"},u),i.createElement("span",{className:"k-switch-label-off"},c),i.createElement("span",{className:"k-switch-handle"})))},t.propTypes={accessKey:s.string,checked:s.bool,className:s.string,disabled:s.bool,defaultChecked:s.bool,dir:s.string,id:s.string,ariaLabelledBy:s.string,ariaDescribedBy:s.string,offLabel:s.string,required:s.bool,tabIndex:s.number,valid:s.bool,validate:s.bool,validationMessage:s.string,onBlur:s.any,onChange:s.any,onFocus:s.any,onLabel:s.string},t.defaultProps={disabled:!1,defaultChecked:!1,offLabel:"OFF",onBlur:l.noop,onFocus:l.noop,onLabel:"ON",required:!1,validityStyles:!0},t}(i.Component);t.Switch=f},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=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)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),i=n(0),s=n(2),l=n(2),c=n(3),u=n(4),d=n(5);t.Checkbox=a.forwardRef((function(e,t){l.validatePackage(c.packageMetadata);var n=e,i=n.ariaDescribedBy,p=n.ariaLabelledBy,f=n.checked,h=n.className,m=n.children,v=n.defaultChecked,g=n.disabled,b=n.defaultValue,y=n.id,k=n.label,C=n.labelPlacement,w=n.name,O=n.labelOptional,x=n.onChange,_=n.onFocus,E=n.onBlur,P=n.tabIndex,N=n.value,S=n.required,I=n.valid,R=n.validationMessage,j=n.validityStyles,D=(n.visited,n.touched,n.modified,o(n,["ariaDescribedBy","ariaLabelledBy","checked","className","children","defaultChecked","disabled","defaultValue","id","label","labelPlacement","name","labelOptional","onChange","onFocus","onBlur","tabIndex","value","required","valid","validationMessage","validityStyles","visited","touched","modified"])),M=a.useRef(null),T=a.useCallback((function(){M.current&&M.current.focus()}),[]),A=a.useCallback((function(){return{element:M.current,focus:T,get name(){return M.current&&M.current.name}}}),[T]);a.useImperativeHandle(t,A);var B=a.useState(v),L=B[0],V=B[1],F=a.useState(b),K=F[0],G=F[1],z="boolean"==typeof N||null===N,H=void 0!==f,U=z,q=U?N:K,W=H?f:U?void 0:L,X=void 0===W&&q,Y=X?q:W,Z=X||U?null===N?N:void 0:N||q,$=null===Y||null===Z,J=a.useMemo((function(){return s.guid()}),[]),Q=u.useLocalization(),ee=function(e){return Q.toLanguageString(e,d.messages[e])},te=ee(d.checkboxValidation),ne=ee(d.checkboxOptionalText),re=void 0!==I?I:!S||!!W;a.useEffect((function(){M.current&&M.current.setCustomValidity&&M.current.setCustomValidity(re?"":R||te)}),[re,R,te]);var oe=a.useCallback((function(e,t){U||g||(G(t),H||g||V(t)),x&&!g&&s.dispatchEvent(x,e,r({},A(),{value:t}),{value:t})}),[H,g,x,U,A]),ae=a.useCallback((function(e){var t=e.target.checked;oe(e,t)}),[oe,N]),ie=a.useCallback((function(e){if(!g){var t=e.keyCode,n=e.currentTarget.checked;t===s.Keys.space&&(e.preventDefault(),e.stopPropagation(),oe(e,!n))}}),[g,oe]),se=a.useCallback((function(e){g||e.keyCode===s.Keys.space&&e.preventDefault()}),[g]),le=a.useCallback((function(e){_&&!g&&s.dispatchEvent(_,e,A(),void 0)}),[_,g,A]),ce=a.useCallback((function(e){E&&!g&&s.dispatchEvent(E,e,A(),void 0)}),[E,g,A]),ue=s.useDir(M,e.dir),de=s.classNames({"k-state-disabled":g},h),pe=r({type:"checkbox",className:s.classNames({"k-checkbox":!0,"k-state-indeterminate":$,"k-state-invalid k-invalid":!(re||void 0!==j||!0===j)}),ref:M,name:w,id:y||J,"aria-labelledby":p,"aria-describedby":i,checked:Boolean(Y),disabled:g,tabIndex:s.getTabIndex(P,g),role:"checkbox",required:void 0!==S&&S,"aria-checked":!(!W&&!Y)||!!$&&"mixed","aria-disabled":g||void 0},D,{onChange:ae,onKeyDown:ie,onKeyUp:se,onFocus:le,onBlur:ce}),fe=a.createElement(a.Fragment,null,void 0===Z?a.createElement("input",r({},pe)):a.createElement("input",r({},pe,{value:z?void 0:null===Z?"":Z}))),he=a.createElement(a.Fragment,null,void 0!==k?a.createElement("label",{className:"k-checkbox-label",htmlFor:y||J,style:{userSelect:"none"}},k,O&&a.createElement("span",{className:"k-label-optional"},ne)):null);return a.createElement(a.Fragment,null,"before"===C?a.createElement("span",{className:de,dir:"rtl"},fe,he,m):a.createElement("span",{className:de,dir:ue},fe,he,m))})),t.Checkbox.propTypes={checked:i.bool,className:i.string,defaultChecked:i.bool,defaultValue:i.any,dir:i.string,disabled:i.bool,id:i.string,ariaLabelledBy:i.string,ariaDescribedBy:i.string,label:i.any,labelPlacement:i.string,labelOptional:i.bool,name:i.string,tabIndex:i.number,value:i.any,validationMessage:i.string,required:i.bool,validate:i.bool,valid:i.bool,onChange:i.func,onFocus:i.func,onBlur:i.func},t.Checkbox.displayName="KendoCheckbox"},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=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 o=n(1),a=n(0),i=n(18),s=n(2),l=n(2),c=n(3);t.RadioGroup=o.forwardRef((function(e,t){l.validatePackage(c.packageMetadata);var n=e.ariaLabelledBy,a=e.ariaDescribedBy,d=e.className,p=e.data,f=e.defaultValue,h=e.disabled,m=e.name,v=e.labelPlacement,g=e.layout,b=e.style,y=e.value,k=e.valid,C=e.item,w=void 0===C?u.item:C,O=e.onChange,x=e.onFocus,_=o.useRef(null),E=o.useCallback((function(){_.current&&s.focusFirstFocusableChild(_.current)}),[]),P=o.useCallback((function(){return{element:_.current,focus:E}}),[E]);o.useImperativeHandle(t,P);var N=o.useState(f),S=N[0],I=N[1],R=void 0!==y,j=R?y:S,D=o.useCallback((function(e){var t=e.value;R||h||I(t),O&&!h&&s.dispatchEvent(O,e.syntheticEvent,P(),{value:t})}),[I,O,h]),M=o.useCallback((function(e){x&&!h&&s.dispatchEvent(x,e.syntheticEvent,P(),void 0)}),[x,h]),T=o.useMemo((function(){return s.guid()}),[]),A=s.classNames("k-radio-list",{"k-list-horizontal":"horizontal"===g,"k-list-vertical":"vertical"===g||void 0===g},d),B=s.useRtl(_,e.dir),L=p&&p.map((function(e,t){var n=j===e.value,a=null==j,l=r({},e,{valid:k,checked:n,disabled:!(!e.disabled&&!h),labelPlacement:e.labelPlacement?e.labelPlacement:v,tabIndex:e.tabIndex?e.tabIndex:a&&0===t||n?0:-1,index:t,name:m||T,onChange:D,onFocus:M});return o.createElement(w,{className:s.classNames("k-radio-item",{"k-state-disabled":l.disabled||h}),key:t,role:"radio"},o.createElement(i.RadioButton,r({},l)))}));return o.createElement("ul",{role:"radiogroup",className:A,ref:_,dir:B,style:b,"aria-labelledby":n,"aria-describedby":a},L)}));var u={item:function(e){return o.createElement("li",r({},e))}};t.RadioGroup.propTypes={ariaLabelledBy:a.string,ariaDescribedBy:a.string,className:a.string,data:a.arrayOf(a.object),defaultValue:a.any,dir:a.string,disabled:a.bool,labelPlacement:a.string,layout:a.string,name:a.string,style:a.object,value:a.any,onChange:a.func,onFocus:a.func},t.RadioGroup.defaultProps=u,t.RadioGroup.displayName="KendoRadioGroup"},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=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)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),i=n(0),s=n(2);t.TextArea=a.forwardRef((function(e,t){var n=e,i=n.ariaDescribedBy,l=n.ariaLabelledBy,c=n.autoSize,u=n.className,d=n.defaultValue,p=n.disabled,f=n.readOnly,h=n.required,m=n.rows,v=n.id,g=n.name,b=n.placeholder,y=n.style,k=n.tabIndex,C=n.value,w=n.valid,O=n.validationMessage,x=n.validityStyles,_=n.onChange,E=n.onFocus,P=n.onBlur,N=(n.visited,n.touched,n.modified,o(n,["ariaDescribedBy","ariaLabelledBy","autoSize","className","defaultValue","disabled","readOnly","required","rows","id","name","placeholder","style","tabIndex","value","valid","validationMessage","validityStyles","onChange","onFocus","onBlur","visited","touched","modified"])),S=a.useRef(null),I=a.useCallback((function(){S.current&&S.current.focus()}),[]),R=a.useCallback((function(){return{element:S,focus:I,get name(){return S.current&&S.current.name}}}),[I]);a.useImperativeHandle(t,R);var j=a.useState(d),D=j[0],M=j[1],T=a.useState("auto"),A=T[0],B=T[1],L=a.useMemo((function(){return s.guid()}),[]),V=s.useDir(S,e.dir),F=void 0!==C,K=F?C:D,G=void 0!==w?w:!h||!!K;a.useEffect((function(){S.current&&S.current.setCustomValidity&&S.current.setCustomValidity(G?"":O||"")}),[G,O]),a.useLayoutEffect((function(){S.current&&B(S.current.scrollHeight+"px")}),[K]);var z=a.useCallback((function(e){var t=e.target.value;F||p||(B("auto"),M(t)),_&&!p&&s.dispatchEvent(_,e,R(),{value:t})}),[M,_,p,F]),H=a.useCallback((function(e){E&&!p&&s.dispatchEvent(E,e,R(),void 0)}),[E,p]),U=a.useCallback((function(e){P&&!p&&s.dispatchEvent(P,e,R(),void 0)}),[P,p]),q={className:s.classNames("k-textarea",{"k-state-invalid":!(G||void 0!==x||!0===x),"k-state-disabled":p},u),style:y,dir:V},W=r({id:v||L,name:g,className:"k-input",ref:S,disabled:p,rows:m,placeholder:b,readOnly:f,required:h,tabIndex:s.getTabIndex(k,p),style:c?{resize:"none",overflow:"hidden",height:A}:{},"aria-labelledby":l,"aria-describedby":i,"aria-multiline":!0,"aria-disabled":p||void 0,value:F?C:D},N,{onChange:z,onFocus:H,onBlur:U});return a.createElement("span",r({},q),a.createElement("textarea",r({},W)))})),t.TextArea.propTypes={ariaDescribedBy:i.string,ariaLabelledBy:i.string,autoSize:i.bool,className:i.string,defaultValue:i.string,dir:i.string,disabled:i.bool,readOnly:i.bool,rows:i.number,id:i.string,name:i.string,placeholder:i.string,style:i.object,tabIndex:i.number,value:i.oneOfType([i.string,i.arrayOf(i.string),i.number]),onChange:i.func,onFocus:i.func,onBlur:i.func},t.TextArea.displayName="KendoTextArea"},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=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 o=n(1),a=n(0),i=n(2),s=n(19),l=n(50),c=n(20),u=function(e,t,n){var a=o.useState(e),i=a[0],s=a[1];return[i,function(e){var o=l.ratingReducer(t.state||i,r({},e,t));n&&n(o,e.event),s(o)}]};t.Rating=o.forwardRef((function(e,t){var n,r,a,s,d=o.useRef(null),f=o.useRef(null),h=i.useDir(f,e.dir);o.useImperativeHandle(d,(function(){return{element:f.current,props:e}})),o.useImperativeHandle(t,(function(){return d.current}));for(var m=o.useCallback((function(t,n){e.onChange&&d.current&&e.onChange.call(void 0,{value:t,target:d.current,syntheticEvent:n})}),[e.onChange]),v=o.useMemo((function(){return void 0!==e.min?e.min:p.min}),[e.min]),g=o.useMemo((function(){return void 0!==e.max?e.max:p.max}),[e.max]),b=o.useMemo((function(){return e.precision||p.precision}),[e.precision]),y=o.useMemo((function(){return void 0!==e.step?e.step:p.step}),[e.step]),k=o.useMemo((function(){return e.readonly||p.readonly}),[e.readonly]),C=o.useMemo((function(){return e.disabled||p.disabled}),[e.disabled]),w=o.useMemo((function(){return e.item||p.item}),[e.item]),O=u(e.defaultValue||p.defaultValue,{state:e.value,min:v,max:g,step:"half"===b?y/2:y},m),x=O[0],_=O[1],E=u(null,{state:e.value,min:v,max:g,step:"half"===b?y/2:y,precision:b}),P=E[0],N=E[1],S=o.useMemo((function(){return e.value||x}),[e.value,x]),I=o.useMemo((function(){return P}),[P]),R=o.useMemo((function(){return e.selection||p.selection}),[e.selection]),j=o.useMemo((function(){return y/("half"===b?2:1)}),[y,b]),D=o.useCallback((function(t){if(t.target&&t.target.element&&!k&&!C){if("half"===b){var n=t.target.element.getBoundingClientRect(),r=c.calcIsFirstHalf(h||"ltr",n,t.syntheticEvent.clientX)?c.toRound(t.target.value-y/2,j):t.target.value;_({type:l.RATING_ACTION.select,payload:r,event:t.syntheticEvent})}else _({type:l.RATING_ACTION.select,payload:t.target.value,event:t.syntheticEvent});e.onClick&&e.onClick.call(void 0,{value:S,target:d.current,syntheticEvent:t.syntheticEvent})}}),[e.onClick,_,S]),M=o.useCallback((function(t){if(!k&&!C){switch(t.keyCode){case i.Keys.right:t.preventDefault(),_({type:"rtl"===h?l.RATING_ACTION.decrease:l.RATING_ACTION.increase,event:t});break;case i.Keys.left:t.preventDefault(),_({type:"rtl"===h?l.RATING_ACTION.increase:l.RATING_ACTION.decrease,event:t});break;case i.Keys.home:t.preventDefault(),_({type:"rtl"===h?l.RATING_ACTION.min:l.RATING_ACTION.max,event:t});break;case i.Keys.end:t.preventDefault(),_({type:"rtl"===h?l.RATING_ACTION.max:l.RATING_ACTION.min,event:t});break;case i.Keys.esc:t.preventDefault(),_({type:l.RATING_ACTION.deselect,event:t})}e.onKeyDown&&e.onKeyDown.call(void 0,{value:S,target:d.current,syntheticEvent:t})}}),[e.onKeyDown,_,S]),T=o.useCallback((function(t){e.onFocus&&e.onFocus.call(void 0,{target:d.current,syntheticEvent:t})}),[e.onFocus]),A=o.useCallback((function(t){e.onBlur&&e.onBlur.call(void 0,{target:d.current,syntheticEvent:t})}),[e.onBlur]),B=o.useCallback((function(e){if(e.target&&e.target.element)if("half"===b){var t=e.target.element.getBoundingClientRect(),n=c.calcIsFirstHalf(h||"ltr",t,e.syntheticEvent.clientX)?e.target.value-y/2:e.target.value;N({type:l.RATING_ACTION.select,payload:n,event:e.syntheticEvent})}else N({type:l.RATING_ACTION.select,payload:e.target.value,event:e.syntheticEvent})}),[b,y,h]),L=o.useCallback((function(e){N({type:l.RATING_ACTION.reset,event:e.syntheticEvent})}),[]),V=[],F=c.getRemainder(c.toRound(g-v,j),y),K=v;K<=g;K=c.toRound(K+y,j)){var G=c.toRound(K+F,j),z="half"===b&&c.isHalf(G,null!==I?I:null!==S?S:0,y),H=c.isSelected(G,S,y,R),U=c.isSelected(G,null!==I?I:S,y,R),q=c.isSelected(G,I,y,R);V.push(o.createElement(w,{key:G,value:G,dir:h,title:String(z?c.toRound(G-y/2,j):G),icon:e.icon,half:z,selected:H||U,hovered:q,onClick:D,onMouseMove:B,onMouseLeave:L},z&&o.createElement("span",{className:"k-rating-precision-complement",style:(n={width:"12px"},n["rtl"===h?"right":"left"]="50%",n)},o.createElement("span",{className:i.classNames("k-icon",(r={"k-i-star-outline":!e.icon},r[e.icon+"-outline"]=e.icon,r))})),z&&o.createElement("span",{className:"k-rating-precision-part",style:{width:"12px"}},o.createElement("span",{className:i.classNames("k-icon",(a={"k-i-star":!e.icon},a[""+e.icon]=e.icon,a))})),z&&o.createElement("span",{style:{width:"24px",height:"24px",display:"block"}}),!z&&o.createElement("span",{className:i.classNames("k-icon",(s={"k-i-star":!e.icon&&(q||U&&!q),"k-i-star-outline":!e.icon&&!q},s[""+e.icon]=e.icon&&(q||U&&!q),s[e.icon+"-outline"]=e.icon&&!q,s))})))}return o.createElement("span",{id:e.id,style:e.style,ref:f,role:"slider",dir:h,tabIndex:i.getTabIndex(e.tabIndex,e.disabled,void 0),className:i.classNames("k-rating k-widget",{"k-rtl":"rtl"===h,"k-state-readonly":k,"k-state-disabled":C},e.className),onKeyDown:M,onFocus:T,onBlur:A,"aria-valuemin":v,"aria-valuemax":g,"aria-valuenow":null!==S?S:void 0,"aria-disabled":C?"true":void 0,"aria-labelledby":e.ariaLabelledBy,"aria-describedby":e.ariaDescribedBy},o.createElement("input",{id:"rating",className:"k-hidden",readOnly:k,disabled:C}),o.createElement("span",{className:"k-rating-container"},V),e.label&&o.createElement("span",{className:"k-rating-label"},e.label))}));var d={id:a.string,dir:a.oneOf(["ltr","rtl"]),selection:a.oneOf(["continues","single"]),precision:a.oneOf(["item","half"]),value:function(e,t,n){if(e.value&&e.min&&e.max&&e.step&&(!("half"===e.precision?c.isCorrectValue(e.min,e.max,e.step/2,e.value):c.isCorrectValue(e.min,e.max,e.step,e.value))&&"half"===e.precision))return new Error("Invalid prop + "+t+" supplied to "+n+".\n The value of the { value } property is not correct, please check your values.\n ");return null},defaultValue:a.number,min:a.number,max:a.number,step:function(e,t,n){return void 0!==e.step&&e.step<=0?new Error("Invalid prop + "+t+" supplied to "+n+'.\n The value of the { step } property is cannot be equal or less than "0", please check your values.\n '):null},hovered:a.number,label:a.string,readonly:a.bool,disabled:a.bool,half:a.bool,icon:a.string,ariaDescribedBy:a.string},p={dir:"ltr",min:1,max:5,step:1,item:s.RatingItem,defaultValue:null,readonly:!1,disabled:!1,selection:"continues",precision:"item"};t.Rating.displayName="KendoReactRating",t.Rating.propTypes=d,t.Rating.defaultProps=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(20);!function(e){e.select="select",e.deselect="deselect",e.increase="increase",e.decrease="decrease",e.min="min",e.max="max",e.reset="reset"}(r=t.RATING_ACTION||(t.RATING_ACTION={})),t.ratingReducer=function(e,t){switch(t.type){case r.select:return void 0===t.payload||void 0===t.step?e:t.payload===e?null:t.payload>=t.min?t.payload<t.max?o.toRound(t.payload,t.step):t.max:t.min;case r.deselect:return null;case r.increase:return void 0===t.step?e:e<t.min?t.min:e+t.step<t.max?o.toRound(e+t.step,t.step):t.max;case r.decrease:return void 0===t.step?e:o.toRound(e-t.step,t.step)>=t.min?o.toRound(e-t.step,t.step):t.min;case r.min:return void 0===t.step?e:t.min;case r.max:return t.max;case r.reset:return null;default:return e}}}])}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("prop-types"),require("@progress/kendo-react-intl"),require("@progress/kendo-licensing"),require("@progress/kendo-drawing"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","prop-types","@progress/kendo-react-intl","@progress/kendo-licensing","@progress/kendo-drawing","react-dom"],t):"object"==typeof exports?exports.KendoReactInputs=t(require("react"),require("prop-types"),require("@progress/kendo-react-intl"),require("@progress/kendo-licensing"),require("@progress/kendo-drawing"),require("react-dom")):e.KendoReactInputs=t(e.React,e.PropTypes,e.KendoReactIntl,e.KendoLicensing,e.KendoDrawing,e.ReactDOM)}(window,(function(e,t,n,r,o,a){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=9)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){"use strict";n.r(t),n.d(t,"BrowserSupportService",(function(){return o})),n.d(t,"canUseDOM",(function(){return a})),n.d(t,"canUseRef",(function(){return i})),n.d(t,"classNames",(function(){return s})),n.d(t,"cloneDate",(function(){return c})),n.d(t,"clone",(function(){return u})),n.d(t,"cloneObject",(function(){return d})),n.d(t,"cloneValue",(function(){return p})),n.d(t,"cloneArray",(function(){return f})),n.d(t,"focusFirstFocusableChild",(function(){return h})),n.d(t,"FormComponent",(function(){return v})),n.d(t,"getTabIndex",(function(){return m})),n.d(t,"getter",(function(){return k})),n.d(t,"guid",(function(){return C})),n.d(t,"Keys",(function(){return O})),n.d(t,"noop",(function(){return w})),n.d(t,"getScrollbarWidth",(function(){return x})),n.d(t,"setScrollbarWidth",(function(){return E})),n.d(t,"setter",(function(){return N})),n.d(t,"mapTree",(function(){return R})),n.d(t,"mapTreeItem",(function(){return D})),n.d(t,"extendDataItem",(function(){return j})),n.d(t,"getItemPath",(function(){return T})),n.d(t,"validatePackage",(function(){return L})),n.d(t,"hasRelativeStackingContext",(function(){return A})),n.d(t,"dispatchEvent",(function(){return B})),n.d(t,"AsyncFocusBlur",(function(){return K})),n.d(t,"createPropsContext",(function(){return H})),n.d(t,"withPropsContext",(function(){return U})),n.d(t,"useDir",(function(){return W})),n.d(t,"useAsyncFocusBlur",(function(){return V})),n.d(t,"useRtl",(function(){return q})),n.d(t,"useMouse",(function(){return Y})),n.d(t,"useCustomComponent",(function(){return Z})),n.d(t,"usePropsContext",(function(){return G})),n.d(t,"COLLECTION_ACTION",(function(){return X})),n.d(t,"useCollection",(function(){return $})),n.d(t,"Icon",(function(){return ne})),n.d(t,"SvgIcon",(function(){return ie})),n.d(t,"Typography",(function(){return ke})),n.d(t,"DragAndDrop",(function(){return Ve})),n.d(t,"Draggable",(function(){return Fe})),n.d(t,"Droppable",(function(){return Ke})),n.d(t,"useDraggable",(function(){return Me})),n.d(t,"useDroppable",(function(){return Le}));var r=function(){return"undefined"!=typeof document?document:{}},o=function(){function e(){}return Object.defineProperty(e.prototype,"scrollbarWidth",{get:function(){var e=r();if(!this.scrollbar&&e&&e.createElement){var t=e.createElement("div");t.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",t.innerHTML=" ",e.body.appendChild(t),this.scrollbar=t.offsetWidth-t.scrollWidth,e.body.removeChild(t)}return this.scrollbar},enumerable:!0,configurable:!0}),e}(),a=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),i=function(e){return"string"!=typeof Comment&&(function(e){return Boolean("function"==typeof e&&!!e.prototype.isReactComponent)}(e)||function(e){return Boolean(e.$$typeof&&"function"==typeof e.render)}(e))},s=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)?s.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(" ")},l=n(0),c=function(e){return e?new Date(e.getTime()):null};function u(e){var t={};return d(e,t),t}function d(e,t){for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];t[n]=p(r,t[n])}}function p(e,t){if(Array.isArray(e))return f(e);if(e instanceof Date)return c(e);if(l.isValidElement(e))return l.cloneElement(e,e.props);if(e&&"object"==typeof e){var n=t||{};return d(e,n),n}return e}function f(e){return e.map((function(e){return p(e,void 0)}))}var h=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()}},v=function(){},m=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},g=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;function b(e){var t=[];return e.replace(g,(function(e,n,r,o){t.push(void 0!==n?n:r||o)})),t}var y={};function k(e){if(y[e])return y[e];var t=b(e);return y[e]=function(e){for(var n=e,r=0;r<t.length&&n;r++)n=n[t[r]];return n},y[e]}y.undefined=function(){};var C=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},O={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},w=function(){},x=function(){return!(!a||!document.body)&&(new o).scrollbarWidth},E=function(){if(!a||!document.body)return!1;var e=(new o).scrollbarWidth;document.body.style.setProperty("--kendo-scrollbar-width",e+"px")},_={undefined:function(e){return e}},P=function(e,t){return t&&t.arrays&&!isNaN(Number(e))?[]:{}};function N(e){if(_[e])return _[e];var t=b(e);return _[e]=function(e,n,r){for(var o=e,a=t.length-1,i=0;i<a&&o;i++)o=o[t[i]]=o[t[i]]||P(t[i+1],r);o[t[a]]=n},_[e]}var S=function(){return(S=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)};function I(e,t,n){var r;return n?S({},e,((r={})[t]=n.length?n.slice():void 0,r)):e&&e[t]?e[t].slice():[]}var R=function(e,t,n){return e.map((function(e){return function e(t,n,r){if(t[n]){var o=I(t,n).map((function(t){return e(t,n,r)}));return r(I(t,n,o))}return r(t)}(e,t,n)})).slice()},D=function(e,t,n,r){for(var o=e,a=[],i=0;i<t.length;i++)o=o[t[i]],o=Array.isArray(o)?o:o[n],a.push(o);var s=a.length>1?a[a.length-2]:e,l=t[t.length-1],c=r(s[l]);s.splice(l,1,c)},j=function(e,t,n){var r;return Object.assign({},e,e[t]?((r={})[t]=e[t].slice(),r):{},n||{})},T=function(e,t,n){var r=[],o=t.slice();if(o.length){var a=e[o.shift()||0];for(r.push(a);o.length&&n;)a=a[n][o.shift()||0],r.push(a)}return r},M=n(11);function L(e){if(void 0!==M)M.validatePackage(e);else{var t="License activation failed for "+e.name+"\n";t+="The @progress/kendo-licensing script is not loaded.\n",t+="See "+e.licensingDocsUrl+" for more information.\n",console.warn(t)}}var A=function(e){if(!a)return!1;var t=e?e.ownerDocument:document;if(!t||!t.body)return!1;var n=t.createElement("div");n.style.transform="matrix(10, 0, 0, 10, 0, 0)",n.innerHTML='<div style="position: fixed; top: 10px;">child</div>',t.body.appendChild(n);var r=10!==n.children[0].getBoundingClientRect().top;return t.body.removeChild(n),r};function B(e,t,n,r){if(e){var o={syntheticEvent:t,nativeEvent:t.nativeEvent,target:n};e.call(void 0,Object.assign(o,r))}}function V(e){var t=e.onFocus,n=e.onBlur,r=e.onSyncFocus,o=e.onSyncBlur,a=l.useRef(!1),i=l.useRef(0),s=l.useCallback((function(e){clearTimeout(i.current),i.current=window.setTimeout((function(){return e()}))}),[i]),c=l.useCallback((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];clearTimeout(i.current),r&&r.call.apply(r,[void 0].concat(e)),a.current||(a.current=!0,t&&t.call.apply(t,[void 0].concat(e)))}),[a,t,r]),u=l.useCallback((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];o&&o.call.apply(o,[void 0].concat(e)),s((function(){a.current&&n&&(a.current=!1,n.call.apply(n,[void 0].concat(e)))}))}),[a,s,n,o]);return l.useEffect((function(){return function(){clearTimeout(i.current)}}),[]),{onFocus:c,onBlur:u}}var F=function(){return(F=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)},K=function(e){var t=e.children,n=V({onFocus:e.onFocus,onBlur:e.onBlur,onSyncFocus:e.onSyncFocus,onSyncBlur:e.onSyncBlur});return t.call(void 0,F({},n))},G=function(e,t){return l.useContext(e)(t)},z=function(){return(z=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)},H=function(){return l.createContext((function(e){return e}))},U=function(e,t){return l.forwardRef((function(n,r){var o=G(e,n);return l.createElement(t,z({},o,{ref:r}))}))};function W(e,t,n){var r=l.useState(t),o=r[0],a=r[1];return l.useEffect((function(){if(!o&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&a(t)}}),n),o}function q(e,t,n){var r=l.useState(t),o=r[0],a=r[1];return l.useEffect((function(){if(!o&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&a(t)}}),n),o}var X,Y=function(e,t,n){void 0===n&&(n={});var r=l.useCallback((function(r){n.onMouseDown&&n.onMouseDown.call(void 0,r),e.onMouseDown&&e.onMouseDown.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseDown,e.onMouseDown,t]),o=l.useCallback((function(r){n.onMouseUp&&n.onMouseUp.call(void 0,r),e.onMouseUp&&e.onMouseUp.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseUp,e.onMouseUp,t]);return{onClick:l.useCallback((function(r){n.onClick&&n.onClick.call(void 0,r),e.onClick&&e.onClick.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onClick,e.onClick,t]),onMouseUp:o,onMouseDown:r,onDoubleClick:l.useCallback((function(r){n.onDoubleClick&&n.onDoubleClick.call(void 0,r),e.onDoubleClick&&e.onDoubleClick.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onDoubleClick,e.onDoubleClick,t]),onMouseEnter:l.useCallback((function(r){n.onMouseEnter&&n.onMouseEnter.call(void 0,r),e.onMouseEnter&&e.onMouseEnter.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseEnter,e.onMouseEnter,t]),onMouseLeave:l.useCallback((function(r){n.onMouseLeave&&n.onMouseLeave.call(void 0,r),e.onMouseLeave&&e.onMouseLeave.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseLeave,e.onMouseLeave,t]),onMouseMove:l.useCallback((function(r){n.onMouseMove&&n.onMouseMove.call(void 0,r),e.onMouseMove&&e.onMouseMove.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseMove,e.onMouseMove,t]),onMouseOut:l.useCallback((function(r){n.onMouseOut&&n.onMouseOut.call(void 0,r),e.onMouseOut&&e.onMouseOut.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseOut,e.onMouseOut,t]),onMouseOver:l.useCallback((function(r){n.onMouseOver&&n.onMouseOver.call(void 0,r),e.onMouseOver&&e.onMouseOver.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseOver,e.onMouseOver,t])}},Z=function(e){return l.isValidElement(e)?[e.type,e.props]:[e,{}]};!function(e){e[e.add=0]="add",e[e.remove=1]="remove"}(X||(X={}));var $=function(e){void 0===e&&(e=[]);var t=l.useRef(e),n=l.useCallback((function(e){switch(e.type){case X.add:t.current.push(e.item);break;case X.remove:var n=t.current.indexOf(e.item);t.current.splice(n,1)}}),[]);return[t.current,n]},J=n(1),Q={default:"",xsmall:"k-icon-xs",small:"k-icon-sm",medium:"k-icon-md",large:"k-icon-lg",xlarge:"k-icon-xl"},ee=function(){return(ee=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)},te=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},ne=l.forwardRef((function(e,t){var n=e.className,r=e.name,o=e.themeColor,a=e.size,i=e.flip,c=e.style,u=te(e,["className","name","themeColor","size","flip","style"]),d=l.useRef(null),p=l.useRef(null);l.useImperativeHandle(d,(function(){return{element:p.current}})),l.useImperativeHandle(t,(function(){return d.current}));var f=l.useMemo((function(){return o||re.themeColor}),[o]),h=l.useMemo((function(){return a||re.size}),[a]),v=l.useMemo((function(){return i||re.flip}),[i]),m=l.useMemo((function(){return s("k-icon","k-i-"+r,"k-color-"+f,{"k-flip-h":"horizontal"===v||"both"===v,"k-flip-v":"vertical"===v||"both"===v},Q[h],n)}),[r,f,h,v,n]),g=Y(e,d);return l.createElement("span",ee({ref:p},u,g,{className:m,style:c,role:"presentation"}))}));ne.propTypes={style:J.object,classNames:J.string,name:J.string,themeColor:J.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:J.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:J.oneOf(["default","horizontal","vertical","both"])};var re={size:"default",themeColor:"inherit",flip:"default"};ne.displayName="KendoIcon";var oe=function(){return(oe=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)},ae=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},ie=l.forwardRef((function(e,t){var n=e.children,r=e.className,o=e.svgClassName,a=e.icon,i=e.flip,c=e.size,u=e.style,d=e.svgStyle,p=e.themeColor,f=e.viewBox,h=ae(e,["children","className","svgClassName","icon","flip","size","style","svgStyle","themeColor","viewBox"]),v=l.useRef(null);l.useImperativeHandle(t,(function(){return{element:v.current}}));var m=l.useMemo((function(){return a?a.name:se.icon}),[a]),g=l.useMemo((function(){return p||se.themeColor}),[p]),b=l.useMemo((function(){return c||se.size}),[c]),y=l.useMemo((function(){return i||se.flip}),[i]),k=l.useMemo((function(){return f||se.viewBox}),[f]),C=l.useMemo((function(){return s("k-svg-icon","k-color-"+g,"k-svg-i-"+m,{"k-flip-h":"horizontal"===y||"both"===y,"k-flip-v":"vertical"===y||"both"===y},Q[b],r)}),[m,g,b,y,r]),O=l.useMemo((function(){return e.width&&e.height?oe({width:e.width,height:e.height},u):e.width?oe({width:e.width,height:e.width},u):e.height?oe({width:e.height,height:e.height},u):oe({},u)}),[e.width,e.height,u]);return l.createElement("span",{className:C,style:O,ref:v},l.createElement("svg",oe({className:o,style:d,"aria-hidden":!0,focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:a?a.viewBox:k,dangerouslySetInnerHTML:a?{__html:a.content}:void 0},h),a?void 0:n))}));ie.propTypes={style:J.object,classNames:J.string,children:J.any,icon:J.object,themeColor:J.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:J.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:J.oneOf(["default","horizontal","vertical","both"])};var se={size:"default",themeColor:"inherit",flip:"default",icon:"",viewBox:"0 0 24 24"};ie.displayName="KendoSvgIcon";var le,ce={xsmall:"k-fs-xs",small:"k-fs-sm",medium:"k-fs-md",large:"k-fs-lg",xlarge:"k-fs-xl"},ue={light:"k-font-weight-light",normal:"k-font-weight-normal",bold:"k-font-weight-bold"},de={xsmall:"k-m-xs",small:"k-m-sm",medium:"k-m-md",large:"k-m-lg",xlarge:"k-m-xl",thin:"k-m-thin",hair:"k-m-hair"},pe={xsmall:"xs",small:"sm",medium:"md",large:"lg",xlarge:"xl",thin:"thin",hair:"hair"},fe={top:"k-mt-",right:"k-mr-",bottom:"k-mb-",left:"k-ml-"},he={left:"k-text-left",right:"k-text-right",center:"k-text-center",justify:"k-text-justify"},ve={lowercase:"k-text-lowercase",uppercase:"k-text-uppercase",capitalize:"k-text-capitalize"},me={inherit:"k-color-inherit",primary:"k-color-primary",secondary:"k-color-secondary",tertiary:"k-color-tertiary",info:"k-color-info",success:"k-color-success",warning:"k-color-warning",error:"k-color-error",dark:"k-color-dark",light:"k-color-light",inverse:"k-color-inverse"},ge=function(){return(ge=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)},be=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},ye=function(e){var t=l.forwardRef((function(t,n){var r=t.className,o=t.fontSize,a=t.fontWeight,i=t.textAlign,s=t.textTransform,c=t.themeColor,u=t.margin,d=be(t,["className","fontSize","fontWeight","textAlign","textTransform","themeColor","margin"]),p=l.useRef(null),f=l.useRef(null);l.useImperativeHandle(p,(function(){return{element:f.current,props:t}})),l.useImperativeHandle(n,(function(){return p.current}));var h=e,v=function(){if(void 0!==u){if("string"==typeof u)return[de[u]];if("number"==typeof u&&u>=0&&u<=24)return["k-m-"+u];if("object"==typeof u){var e=[];return Object.keys(u).forEach((function(t){var n,r;null!==u[t]&&void 0!==u[t]&&e.push((n=t,r=u[t],""+fe[n]+("string"==typeof r?pe[r]:r)))})),e.join(" ")}}};return l.createElement(h,ge({ref:f,className:["k-"+("p"===e?"paragraph":e),ce[o],ue[a],he[i],ve[s],me[c],v(),r].filter((function(e){return void 0!==e})).join(" ")},d),t.children)}));return t.propTypes={style:J.object,className:J.string,fontSize:J.oneOf(["xsmall","small","medium","large","xlarge"]),fontWeight:J.oneOf(["light","normal","bold"]),margin:J.oneOfType([J.number,J.object,J.oneOf(["xsmall","small","medium","large","xlarge","thin","hair"])]),textAlign:J.oneOf(["left","right","center","justify"]),textTransform:J.oneOf(["lowercase","uppercase","capitalize"]),themeColor:J.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"])},t.displayName="KendoReactTypography"+e.toUpperCase(),t},ke={h1:ye("h1"),h2:ye("h2"),h3:ye("h3"),h4:ye("h4"),h5:ye("h5"),h6:ye("h6"),p:ye("p"),code:ye("code"),pre:ye("pre")},Ce=function(e,t){var n=0,r=null;return t.forEach((function(t){if(t&&e){var o=function(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=Math.max(r.top,n.top),a=Math.max(r.left,n.left),i=Math.min(r.left+r.width,n.left+n.width),s=Math.min(r.top+r.height,n.top+n.height),l=i-a,c=s-o;if(a<i&&o<s){var u=r.width*r.height,d=n.width*n.height,p=l*c;return Number((p/(u+d-p)).toFixed(4))}return 0}(e,t);o>n&&(n=o,r=t)}})),r},Oe=function(){var e=window&&window.navigator.userAgent;if(!e)return!1;var t=!1,n=[],r={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome|crios)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i};for(var o in r)if(r.hasOwnProperty(o)&&(n=e.match(r[o]))){(t={})[o]=!0,t[n[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,t.version=parseInt(document.DOCUMENT_NODE||n[2],10);break}return t},we=function(e){return e&&e.ownerDocument||window.document},xe=function(e){var t=Oe(),n=we(e);return t.edge||t.safari?n.body:n.documentElement},Ee=function(e){if(e&&e.className&&"string"==typeof e.className&&e.className.indexOf("k-auto-scrollable")>-1)return!0;var t=window.getComputedStyle(e,"overflow").overflow;return t.indexOf("auto")>-1||t.indexOf("scroll")>-1},_e=function(e){var t=xe(e);if(!e||e===document.body||e===document.documentElement)return t;for(var n=e;n&&!Ee(n)&&n!==document.body;)n=n.parentNode;return n===document.body?t:n};!function(e){e.POINTER_DOWN="pointerdown",e.POINTER_MOVE="pointermove",e.POINTER_UP="pointerup",e.POINTER_CANCEL="pointercancel",e.MOUSE_DOWN="mousedown",e.MOUSE_MOVE="mousemove",e.MOUSE_UP="mouseup",e.CONTEXT_MENU="contextmenu",e.TOUCH_START="touchstart",e.TOUCH_MOVE="touchmove",e.TOUCH_END="touchend",e.TOUCH_CANCEL="touchcancel",e.SCROLL="scroll",e.START="KENDO_DRAG_AND_DROP_START",e.MOVE="KENDO_DRAG_AND_DROP_MOVE",e.END="KENDO_DRAG_AND_DROP_END",e.CANCEL="KENDO_DRAG_AND_DROP_CANCEL"}(le||(le={}));var Pe=function(){},Ne=function(e,t,n){void 0===n&&(n={});var r,o,a,i,s=n.onIsPressedChange,l=void 0===s?Pe:s,c=n.onIsScrollingChange,u=void 0===c?Pe:c,d=n.onVelocityChange,p=void 0===d?Pe:d,f=n.onOffsetChange,h=void 0===f?Pe:f,v=n.onPageOffsetChange,m=void 0===v?Pe:v,g=n.onClientOffsetChange,b=void 0===g?Pe:g,y=n.onScrollOffsetChange,k=void 0===y?Pe:y,C=n.onInitialScrollOffsetChange,O=void 0===C?Pe:C,w=t.payload,x=w.element,E=w.hint,_=e.autoScrollDirection,P=e.scrollableParent,N=function(e,t){return function(e){return/^touch/.test(e.type)}(e)?{pageX:e.changedTouches[0].pageX,pageY:e.changedTouches[0].pageY,clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY,scrollX:t.scrollOffset.x,scrollY:t.scrollOffset.y,offsetX:t.offset.x,offsetY:t.offset.y,type:e.type,originalEvent:e,isTouch:!0,altKey:!1,ctrlKey:!1,shiftKey:!1,metaKey:!1}:function(e){return/^(scroll)/.test(e.type)}(e)?{pageX:t.pageOffset.x,pageY:t.pageOffset.y,clientX:t.clientOffset.x,clientY:t.clientOffset.y,scrollX:t.scrollOffset.x,scrollY:t.scrollOffset.y,offsetX:t.offset.x,offsetY:t.offset.y,type:e.type,originalEvent:e,altKey:!1,ctrlKey:!1,shiftKey:!1,metaKey:!1}:{pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY,offsetX:e.offsetX,offsetY:e.offsetY,scrollX:t.scrollOffset.x,scrollY:t.scrollOffset.y,type:e.type,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey,originalEvent:e}}(t.event,e);switch(N.type){case le.POINTER_DOWN:if(N.type===le.POINTER_DOWN&&(!N.originalEvent.isPrimary||0!==N.originalEvent.button))break;case le.MOUSE_DOWN:if(N.type===le.MOUSE_DOWN&&N.originalEvent.which&&N.originalEvent.which>1||e.ignoreMouse)break;case le.TOUCH_START:if(N.type===le.TOUCH_START&&1!==N.originalEvent.touches.length)break;case le.START:var S=P||_e(t.payload.element);O(S instanceof Window?{x:S.scrollX,y:S.scrollY}:{x:S.scrollLeft,y:S.scrollTop}),b({x:N.clientX,y:N.clientY}),m({x:N.pageX,y:N.pageY}),h({x:N.offsetX,y:N.offsetY}),l(!0),w.onPress&&w.onPress(N);break;case le.SCROLL:if(N.type===le.SCROLL&&!e.pressed)break;var I=P||_e(x),R=I instanceof Window?{x:I.scrollX,y:I.scrollY}:{x:I.scrollLeft,y:I.scrollTop};N.scrollX=R.x-e.initialScrollOffset.x,N.scrollY=R.y-e.initialScrollOffset.y,k({x:N.scrollX,y:N.scrollY});case le.POINTER_MOVE:if(N.type===le.POINTER_MOVE&&!N.originalEvent.isPrimary)break;case le.MOUSE_MOVE:case le.TOUCH_MOVE:if(N.type===le.TOUCH_MOVE&&1!==N.originalEvent.touches.length)break;case le.MOVE:if(e.pressed){if(e.autoScroll&&"scroll"!==N.originalEvent.type&&x){var D=we(x),j=P||_e(D.elementFromPoint(N.clientX,N.clientY)),T=function(e,t,n){var r={x:0,y:0};return e-n.left<50?r.x=-(50-(e-n.left)):n.right-e<50&&(r.x=50-(n.right-e)),t-n.top<50?r.y=-(50-(t-n.top)):n.bottom-t<50&&(r.y=50-(n.bottom-t)),r}(N.pageX,N.pageY,function(e,t){var n=xe(e);if(e===n)return{top:n.scrollTop,left:n.scrollLeft,bottom:n.scrollTop+t.innerHeight,right:n.scrollLeft+t.innerWidth};var r=e.getBoundingClientRect();return{bottom:r.top+r.height,right:r.left+r.width,left:r.left,top:r.top}}(j,function(e){var t=we(e);return t&&t.defaultView||window}(x)));p({x:_&&!1===_.horizontal?0:T.x,y:_&&!1===_.vertical?0:T.y}),u(0!==T.y||0!==T.x)}!e.drag&&w.onDragStart&&w.onDragStart(N),w.onDrag&&w.onDrag(N);var M=Ce(E||x,e.drops.map((function(e){return e&&e.element})).filter((function(e){return e!==(E||x)}))),L=e.drops.find((function(e){return e.element===M}));L&&M&&(r=N.clientX,o=N.clientY,a=P||_e(M),(i=a.getBoundingClientRect()).top<=o&&i.left<=r&&o<=i.bottom&&r<=i.right)&&M!==x?(e.drop&&e.drop.element)!==M?(e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(N),L.onDragEnter&&L.onDragEnter(N)):L.onDragOver&&L.onDragOver(N):e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(N)}b({x:N.clientX,y:N.clientY}),m({x:N.pageX,y:N.pageY});break;case le.POINTER_UP:if(N.type===le.POINTER_UP&&!N.originalEvent.isPrimary)break;case le.MOUSE_UP:case le.TOUCH_END:if(N.type===le.TOUCH_END&&1!==N.originalEvent.touches.length)break;case le.END:l(!1),u(!1),w.onRelease&&w.onRelease(N),e.drop&&e.drop.onDrop&&e.drop.onDrop(N),w.onDragEnd&&w.onDragEnd(N);break;case le.POINTER_CANCEL:case le.CONTEXT_MENU:case le.TOUCH_CANCEL:case le.CANCEL:l(!1),u(!1),w.onDragEnd&&w.onDragEnd(N),e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(N)}},Se=function(e,t){if(e){var n,r;e===xe(e)?(n=document.body.scrollHeight>window.innerHeight,r=document.body.scrollWidth>window.innerWidth):(n=e.offsetHeight<=e.scrollHeight,r=e.offsetWidth<=e.scrollWidth);var o=e.scrollTop+t.y,a=n&&o>0&&o<e.scrollHeight,i=e.scrollLeft+t.x,s=r&&i>0&&i<e.scrollWidth;a?e.scrollTop+=t.y:n&&o<0&&(e.scrollTop=0),s?e.scrollLeft+=t.x:r&&i<0&&(e.scrollLeft=0)}},Ie=function(e,t){var n=l.useContext(e),r=n[0],o=n[1],a=l.useState(t),i=a[0],s=a[1];return[void 0!==r?r:i,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];void 0!==r?o.apply(void 0,e):s(e[0])}]},Re=l.createContext([void 0,w]),De=l.createContext([void 0,w]),je=l.createContext([[],w,w]),Te=l.createContext([[],w,w]);function Me(e,t,n){void 0===n&&(n={});var r=t.onPress,o=void 0===r?w:r,a=t.onRelease,i=void 0===a?w:a,s=t.onDragStart,c=void 0===s?w:s,u=t.onDrag,d=void 0===u?w:u,p=t.onDragEnd,f=void 0===p?w:p,h=n.hint,v=void 0===h?null:h,m=n.mouseOnly,g=void 0!==m&&m,b=n.autoScroll,y=void 0===b||b,k=n.scrollContainer,C=void 0===k?null:k,O=l.useState(!1),x=O[0],E=O[1],_=l.useState(!1),P=_[0],N=_[1],S=Ie(De)[0],I=Ie(Re),R=I[0],D=I[1],j=l.useContext(Te)[0],T=l.useContext(je),M=T[0],L=T[1],A=T[2],B=l.useRef({x:0,y:0}),V=l.useRef(),F=l.useRef(!1),K=l.useRef(),G=l.useRef(!1),z=l.useRef({x:0,y:0}),H=l.useRef({x:0,y:0}),U=l.useRef({x:0,y:0}),W=l.useRef({x:0,y:0}),q=l.useRef({x:0,y:0}),X=l.useRef({x:0,y:0}),Y=Boolean(window&&"undefined"!=typeof window&&window.PointerEvent),Z=!g&&Y,$=l.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]),J=l.useCallback((function(){return v&&v.current&&v.current.element?v.current.element:v?v.current:null}),[v]),Q=l.useCallback((function(){return C&&C.current&&C.current.element?C.current.element:C?C.current:null}),[C]),ee=l.useCallback((function(){return"object"==typeof y&&y.boundaryElementRef&&y.boundaryElementRef.current&&y.boundaryElementRef.current.element?y.boundaryElementRef.current.element:"object"==typeof y&&y.boundaryElementRef&&y.boundaryElementRef.current?y.boundaryElementRef.current:null}),[y]),te=l.useRef(null);l.useImperativeHandle(te,(function(){return{element:$(),hint:J(),onPress:he,onDragStart:me,onDrag:ge,onDragEnd:be,onRelease:ve,data:e.current}}));var ne=l.useCallback((function(){var e=$();return e&&e.ownerDocument||document}),[$]),re=l.useCallback((function(){var e=ne();return e&&e.defaultView||window}),[ne]),oe=l.useCallback((function(){return{drag:R?R.current:null,drop:S?S.current:null,drags:M.map((function(e){return e.current})),drops:j.map((function(e){return e.current})),pressed:x,ignoreMouse:F.current,scrollOffset:q.current,offset:z.current,pageOffset:H.current,initialScrollOffset:X.current,clientOffset:U.current,initialClientOffset:W.current,velocity:B.current,autoScroll:Boolean("object"==typeof y?!1!==y.enabled:y),scrollableParent:ee(),autoScrollDirection:"object"==typeof y?y.direction:{horizontal:!0,vertical:!0},isScrolling:P}}),[R,S,M,j,x,y,ee,P]),ae=l.useCallback((function(e){E(e)}),[]),ie=l.useCallback((function(e){N(e)}),[]),se=l.useCallback((function(e){B.current=e}),[]),le=l.useCallback((function(e){z.current=e}),[]),ce=l.useCallback((function(e){U.current=e}),[]),ue=l.useCallback((function(e){H.current=e}),[]),de=l.useCallback((function(e){W.current=e}),[]),pe=l.useCallback((function(e){q.current=e}),[]),fe=l.useCallback((function(e){X.current=e}),[]),he=l.useCallback((function(e){o(e)}),[o]),ve=l.useCallback((function(e){i(e)}),[i]),me=l.useCallback((function(t){D(te,{target:e.current,event:t}),c(t)}),[D,e,c]),ge=l.useCallback((function(e){d(e)}),[d]),be=l.useCallback((function(t){G.current||(D(null,{target:e.current,event:t}),f(t))}),[f,D,e]),ye=l.useCallback((function(e){Ne(oe(),{event:e,payload:te.current},{onVelocityChange:se,onOffsetChange:le,onClientOffsetChange:ce,onPageOffsetChange:ue,onInitialClientOffsetChange:de,onScrollOffsetChange:pe,onInitialScrollOffsetChange:fe,onIsPressedChange:ae,onIsScrollingChange:ie})}),[oe,se,le,ue,ce,de,fe,ae,pe,ie]),ke=l.useCallback((function(e){ye(e)}),[ye]),Ce=l.useCallback((function(e){ye(e)}),[ye]),Oe=l.useCallback((function(e){ye(e)}),[ye]),we=l.useCallback((function(e){ye(e)}),[ye]),xe=l.useCallback((function(e){ye(e)}),[ye]),Ee=l.useCallback((function(e){ye(e)}),[ye]),Pe=l.useCallback((function(e){ye(e)}),[ye]),Me=l.useCallback((function(e){e.preventDefault(),ye(e)}),[ye]),Le=l.useCallback((function(e){e.preventDefault(),ye(e)}),[ye]),Ae=l.useCallback((function(e){e.preventDefault(),ye(e)}),[ye]),Be=l.useCallback((function(e){if(0===e.touches.length&&1===e.changedTouches.length){var t=re();F.current=!0,K.current=t.setTimeout((function(){F.current=!1}),2e3)}ye(e)}),[ye,re]),Ve=l.useCallback((function(e){ye(e)}),[ye]),Fe=l.useCallback((function(){var e=$();if(e){var t=e.style.touchAction;return e.style.touchAction="none",function(){e.style.touchAction=t}}}),[$]),Ke=l.useCallback((function(){return L(te),function(){A(te)}}),[A,L]);l.useEffect((function(){var e=re();if(P){var t=Q()||_e(document.elementFromPoint(U.current.x,U.current.y));e.clearInterval(V.current),V.current=e.setInterval((function(){Se(t,{x:B.current.x,y:B.current.y})}),50)}return function(){e.clearInterval(V.current)}}),[$,Q,re,P]),l.useEffect(Fe,[Fe]),l.useEffect((function(){var e=re(),t=$(),n=ne();if(Z){if(t)_e(t).addEventListener("scroll",Ve,{passive:!0}),t.addEventListener("pointerdown",ke,{passive:!0});x&&(n.addEventListener("pointermove",Ce),n.addEventListener("pointerup",we,!0),n.addEventListener("contextmenu",Me),n.addEventListener("pointercancel",Oe,{passive:!0}))}else e.addEventListener("touchmove",w,{capture:!1,passive:!1}),t&&(t.addEventListener("mousedown",xe,{passive:!0}),g||(t.addEventListener("touchstart",Le,{passive:!0}),x&&(t.addEventListener("touchmove",Ae,{passive:!0}),t.addEventListener("touchend",Be,{passive:!0})))),x&&(n.addEventListener("mousemove",Ee,{passive:!0}),n.addEventListener("mouseup",Pe,{passive:!0}));return function(){if(t){var r=_e(t);r&&r.removeEventListener("scroll",Ve),t.removeEventListener("pointerdown",ke),t.removeEventListener("mousedown",xe),t.removeEventListener("touchstart",Le),t.removeEventListener("touchmove",Ae),t.removeEventListener("touchend",Be)}n.removeEventListener("pointermove",Ce),n.removeEventListener("pointerup",we,!0),n.removeEventListener("contextmenu",Me),n.removeEventListener("pointercancel",Oe),n.removeEventListener("mousemove",Ee),n.removeEventListener("mouseup",Pe),e.removeEventListener("touchmove",w),e.clearTimeout(K.current)}}),[x,re,$,ne,g,Z,Me,xe,Ee,Pe,Oe,ke,Ce,we,Be,Ae,Le,Ve]),l.useEffect((function(){return function(){G.current=!0}}),[]),l.useLayoutEffect(Ke,[Ke])}function Le(e,t){void 0===t&&(t={onDragEnter:w,onDragOver:w,onDragLeave:w,onDrop:w});var n=t.onDragEnter,r=void 0===n?w:n,o=t.onDragOver,a=void 0===o?w:o,i=t.onDragLeave,s=void 0===i?w:i,c=t.onDrop,u=void 0===c?w:c,d=Ie(De)[1],p=l.useContext(Te),f=p[1],h=p[2],v=l.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]),m=l.useRef(null);l.useImperativeHandle(m,(function(){return{element:v(),onDragEnter:g,onDragOver:b,onDragLeave:y,onDrop:k,data:e.current}}));var g=l.useCallback((function(t){d(m,{target:e.current,event:t}),r(t)}),[d,e,r]),b=l.useCallback((function(e){a(e)}),[a]),y=l.useCallback((function(t){d(null,{target:e.current,event:t}),s(t)}),[d,e,s]),k=l.useCallback((function(t){d(null,{target:e.current,event:t}),u(t)}),[d,e,u]),C=l.useCallback((function(){return f(m),function(){h(m)}}),[h,f]);l.useLayoutEffect(C,[C])}var Ae=function(){return(Ae=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)},Be=function(e,t,n){var r=l.useState(t||e),o=r[0],a=r[1];return[void 0!==t?t:o,l.useCallback((function(e,t){a(e),n&&n.call(void 0,Ae({},t,{value:e}))}),[n,a])]},Ve=function(e){var t=Be(null,void 0),n=t[0],r=t[1],o=Be(null,void 0),a=o[0],i=o[1],s=$([]),c=s[0],u=s[1],d=$([]),p=d[0],f=d[1];return l.createElement(Re.Provider,{value:[n,r]},l.createElement(De.Provider,{value:[a,i]},l.createElement(je.Provider,{value:[c,function(e){u({type:X.add,item:e})},function(e){u({type:X.remove,item:e})}]},l.createElement(Te.Provider,{value:[p,function(e){f({type:X.add,item:e})},function(e){f({type:X.remove,item:e})}]},e.children))))};Ve.displayName="KendoReactDragAndDrop";var Fe=l.forwardRef((function(e,t){var n=l.useRef(null),r=l.useRef(null),o=l.useCallback((function(){return n.current&&n.current.element?n.current.element:n.current}),[n]);l.useImperativeHandle(r,(function(){return{element:o()||null}})),l.useImperativeHandle(t,(function(){return r.current})),l.useImperativeHandle(e.childRef,(function(){return n.current}));var a=l.useCallback((function(t){e.onPress&&e.onPress({element:o(),target:r.current,event:t})}),[o,e.onPress]),i=l.useCallback((function(t){e.onRelease&&e.onRelease({element:o(),target:r.current,event:t})}),[o,e.onRelease]),s=l.useCallback((function(t){e.onDragStart&&e.onDragStart({element:o(),target:r.current,event:t})}),[e,o]),c=l.useCallback((function(t){e.onDrag&&e.onDrag({element:o(),target:r.current,event:t})}),[o,e.onDrag]),u=l.useCallback((function(t){e.onDragEnd&&e.onDragEnd({element:o(),target:r.current,event:t})}),[o,e.onDragEnd]);return Me(n,{onPress:a,onRelease:i,onDragStart:s,onDrag:c,onDragEnd:u},{mouseOnly:e.mouseOnly,autoScroll:e.autoScroll,hint:e.hint,scrollContainer:e.scrollContainer}),e.children?l.cloneElement(l.Children.only(e.children),{ref:n}):null}));Fe.displayName="KendoReactDraggable";var Ke=l.forwardRef((function(e,t){var n=l.useRef(null),r=l.useRef(null),o=l.useCallback((function(){return n.current&&n.current.element?n.current.element:n.current}),[n]);l.useImperativeHandle(r,(function(){return{element:o()||void 0}})),l.useImperativeHandle(t,(function(){return r.current})),l.useImperativeHandle(e.childRef,(function(){return n.current}));var a=l.useCallback((function(t){e.onDragEnter&&e.onDragEnter({element:o(),target:r.current,event:t})}),[e.onDragEnter,o]),i=l.useCallback((function(t){e.onDragOver&&e.onDragOver({element:o(),target:r.current,event:t})}),[o,e.onDragOver]),s=l.useCallback((function(t){e.onDragLeave&&e.onDragLeave({element:o(),target:r.current,event:t})}),[e.onDragLeave,o]),c=l.useCallback((function(t){e.onDrop&&e.onDrop({element:o(),target:r.current,event:t})}),[e.onDrop,o]);return Le(n,{onDragEnter:a,onDragOver:i,onDragLeave:s,onDrop:c}),e.children?l.cloneElement(l.Children.only(e.children),{ref:n}):null}));Ke.displayName="KendoReactDroppable"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-react-inputs",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1638167814,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"}},function(e,t){e.exports=n},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.numericIncreaseValue="numerictextbox.increment",t.numericDecreaseValue="numerictextbox.decrement",t.sliderIncreaseValue="slider.increment",t.sliderDecreaseValue="slider.decrement",t.sliderDragTitle="slider.dragTitle",t.colorGradientR="colorGradient.r",t.colorGradientG="colorGradient.g",t.colorGradientB="colorGradient.b",t.colorGradientA="colorGradient.a",t.colorGradientHex="colorGradient.hex",t.colorGradientContrastRatio="colorGradient.contrastRatio",t.colorGradientAALevel="colorGradient.colorGradientAALevel",t.colorGradientAAALevel="colorGradient.colorGradientAAALevel",t.colorGradientPass="colorGradient.colorGradientPass",t.colorGradientFail="colorGradient.colorGradientFail",t.flatColorPickerCancelBtn="flatColorPicker.cancelBtn",t.flatColorPickerApplyBtn="flatColorPicker.applyBtn",t.checkboxValidation="checkbox.validation",t.checkboxOptionalText="checkbox.optionalText",t.radioButtonValidation="radioButton.validation",t.switchValidation="switch.validation",t.messages=((r={})[t.numericIncreaseValue]="Increase value",r[t.numericDecreaseValue]="Decrease value",r[t.sliderIncreaseValue]="Increase",r[t.sliderDecreaseValue]="Decrease",r[t.sliderDragTitle]="Drag",r[t.colorGradientR]="r",r[t.colorGradientG]="g",r[t.colorGradientB]="b",r[t.colorGradientA]="a",r[t.colorGradientHex]="hex",r[t.colorGradientContrastRatio]="Contrast ratio",r[t.colorGradientAALevel]="AA",r[t.colorGradientAAALevel]="AAA",r[t.colorGradientPass]="Pass",r[t.colorGradientFail]="Fail",r[t.flatColorPickerCancelBtn]="Cancel",r[t.flatColorPickerApplyBtn]="Apply",r[t.checkboxValidation]="Please check this box if you want to proceed!",r[t.checkboxOptionalText]="(Optional)",r[t.radioButtonValidation]="Please select option if you want to proceed!",r[t.switchValidation]="Please turn on if you want to proceed!",r)},function(e,t,n){"use strict";n.r(t),n.d(t,"Popup",(function(){return le})),n.d(t,"PopupPropsContext",(function(){return se}));var r=n(0),o=n(22),a=n(1),i=function(e){e.style.transitionDuration="",e.classList.remove("k-slide-down-appear","k-slide-down-appear-active","k-slide-down-exit","k-slide-down-exit-active","k-slide-up-appear","k-slide-up-appear-active","k-slide-up-exit","k-slide-up-exit-active")},s="undefined"!=typeof window&&/Firefox/.test(window.navigator.userAgent),l=n(2),c="bottom",u="center",d="middle",p="left",f="right",h="top",v=function(e){var t=e.anchorRect,n=e.anchorAlign,r=e.elementRect,o=e.elementAlign,a=e.margin;void 0===a&&(a={});var i=n.horizontal,s=n.vertical,l=o.horizontal,p=o.vertical,h=a.horizontal||0,v=a.vertical||0,m=t.top,g=t.left;return s===c&&(m+=t.height),s!==u&&s!==d||(m+=Math.round(t.height/2)),p===c&&(m-=r.height,v*=-1),p!==u&&p!==d||(m-=Math.round(r.height/2),v*=-1),i===f&&(g+=t.width),i!==u&&i!==d||(g+=Math.round(t.width/2)),l===f&&(g-=r.width,h*=-1),l!==u&&l!==d||(g-=Math.round(r.width/2),h*=-1),{top:m+v,left:g+h}};function m(e){return e.ownerDocument||e.document||e}var g=function(e){return m(e).defaultView},b=function(e){return m(e).documentElement},y=0;function k(){if(!y&&"undefined"!=typeof document){var e=document.createElement("div");e.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",e.innerHTML=" ",document.body.appendChild(e),y=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return y}function C(e){var t=g(e),n=b(e),r={height:t.innerHeight,width:t.innerWidth};return n.scrollHeight-n.clientHeight>0&&(r.width-=k()),r}var O=function(e){if(!e.getBoundingClientRect){var t=C(e);return{bottom:t.height,left:0,right:t.width,top:0}}var n=e.getBoundingClientRect();return{bottom:n.bottom,left:n.left,right:n.right,top:n.top}},w=function(e){for(var t=e.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||b(e)},x=function(e){return w(e)===e.ownerDocument.body},E=function(e){var t=e.getBoundingClientRect(),n=t.left,r=t.top;return t.height||t.width||(t=function(e){var t=e.style,n=t.display,r=t.left,o=t.position;e.style.display="",e.style.left="-10000px",e.style.position="absolute";var a=e.getBoundingClientRect();return e.style.display=n,e.style.left=r,e.style.position=o,a}(e)),{top:r,left:n,height:t.height,width:t.width}},_=function(e,t){for(var n=[],r=e.parentNode;r&&(n.push(r),r!==t);)r=r.parentNode;return n};function P(e){var t=b(e),n=g(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}}var N=function(e){return e===(e.ownerDocument||{}).body?P(e):{x:e.scrollLeft,y:e.scrollTop}};var S=function(e,t){var n=g(e),r=n.getComputedStyle(e),o=E(e),a=t||w(e),i=e.ownerDocument,s=a!==i.body&&a!==i.documentElement,l={top:0,left:0};if("fixed"!==r.position&&s){var c=n.getComputedStyle(a);(l=E(a)).top+=parseInt(c.borderTopWidth,10),l.left+=parseInt(c.borderLeftWidth,10)}return{top:o.top-l.top,left:o.left-l.left,height:o.height,width:o.width}},I=function(e,t){return e?N(e):function(e){var t=w(e);return t?N(t):{x:0,y:0}}(t)};var R="fit",D="flip",j=function(e,t,n){var r=0;return e+t>n&&(r=n-(e+t)),e<0&&(r=-e),r},T=function(e){var t=e.offset,n=e.size,r=e.anchorSize,o=e.viewPortSize,a=e.anchorAlignPoint,i=e.elementAlignPoint,s=0,l=2*e.margin;if(i!==a&&!(i===u||i===d)&&!(a===u||a===d)){var c=a===h||a===p;t<0&&c?t+(s=n+r+l)+n>o&&(s=0):t>=0&&!c&&(t+n>o&&(s+=-(r+n+l)),t+s<0&&(s=0))}return s},M=function(e){var t=e.anchorRect,n=e.anchorAlign,r=e.elementRect,o=e.elementAlign,a=e.collisions,i=e.viewPort,s=e.margin;void 0===s&&(s={});var l=r.top,c=r.left,u=r.height,d=r.width,p=i.height,f=i.width,h=s.horizontal||0,v=s.vertical||0,m=0,g=0,b=a.horizontal===D,y=a.vertical===D;a.vertical===R&&(g+=j(l,u,p)),a.horizontal===R&&(m+=j(c,d,f)),y&&(g+=T({margin:v,offset:l,size:u,anchorSize:t.height,viewPortSize:p,anchorAlignPoint:n.vertical,elementAlignPoint:o.vertical})),b&&(m+=T({margin:h,offset:c,size:d,anchorSize:t.width,viewPortSize:f,anchorAlignPoint:n.horizontal,elementAlignPoint:o.horizontal}));var k=b&&0!==m,C=y&&0!==g;return{flipped:k||C,flip:{horizontal:k,vertical:C},offset:{left:m,top:g}}},L=function(e){for(var t=[],n=e.parentNode.firstElementChild;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t},A=function(e,t){for(var n,r,o=_(e),a=t;a&&(n=L(a),!(r=o.reduce((function(e,t){return e.concat(n.filter((function(e){return e===t})))}),[])[0]));)a=a.parentElement;return r};var B,V=function(e,t){return e||{height:0,left:t.left,top:t.top,width:0}},F=/auto|scroll/,K=function(e){var t=window.getComputedStyle(e);return""+t.overflow+t.overflowX+t.overflowY},G=Object(l.hasRelativeStackingContext)(),z="fit",H="flip",U="left",W="center",q="right",X="bottom",Y="top",Z=function(){function e(e){this._dom=e}return e.prototype.alignElement=function(e){var t=e.anchor,n=e.element,r=e.anchorAlign,o=e.elementAlign,a=e.offset,i=!this._dom.hasOffsetParent(n)?this.absoluteRect(t,n,a):this.relativeRect(t,n,a);return this._dom.align({anchorAlign:r,anchorRect:i,elementAlign:o,elementRect:this._dom.offset(n)})},e.prototype.absoluteRect=function(e,t,n){var r=this._dom,o=function(e,t){return t?{height:e.height,left:e.left-t.left,top:e.top-t.top,width:e.width}:e}(V(r.offset(e),n),r.stackingElementOffset(t)),a=r.stackingElementScroll(t),i=r.addScroll(o,a),s=this.elementScrollPosition(e,t),l=r.removeScroll(i,s);return l.left+=window.scrollX||window.pageXOffset,l.top+=window.scrollY||window.pageYOffset,l},e.prototype.elementScrollPosition=function(e,t){return e?{x:0,y:0}:this._dom.scrollPosition(t)},e.prototype.relativeRect=function(e,t,n){return V(this._dom.position(e,t),n)},e}(),$=function(){function e(){}return e.prototype.addOffset=function(e,t){return{left:e.left+t.left,top:e.top+t.top}},e.prototype.align=function(e){return v(e)},e.prototype.boundingOffset=function(e){return O(e)},e.prototype.getWindow=function(){return l.canUseDOM?window:null},e.prototype.isBodyOffset=function(e){return x(e)},e.prototype.hasOffsetParent=function(e){if(!e)return!1;var t=e.offsetParent;return t&&!("BODY"===t.nodeName&&"static"===window.getComputedStyle(t).position)},e.prototype.offset=function(e){return e?E(e):null},e.prototype.staticOffset=function(e){if(!e)return null;var t=e.style,n=t.left,r=t.top;e.style.left="0px",e.style.top="0px";var o=E(e);return e.style.left=n,e.style.top=r,o},e.prototype.position=function(e,t){return e&&t?function(e,t,n){void 0===n&&(n=1);var r=t?w(t):null,o=S(e,r),a=o.top,i=o.left,s=o.height,l=o.width,c=I(r,e),u=c.x,d=c.y,p=e.ownerDocument,f=r===p.body||r===p.documentElement?1:n;return{top:a+d*f,left:i+u*f,height:s,width:l}}(e,A(e,t)):null},e.prototype.relativeOffset=function(e,t){return n=this.offset(e),r=t,o=this.isBodyOffset(e),a=n.top,i=n.left,o&&(i=0,a=0),{top:a+r.top,left:i+r.left,height:n.height,width:n.width};var n,r,o,a,i},e.prototype.addScroll=function(e,t){return function(e,t){return{top:e.top+t.y,left:e.left+t.x,height:e.height,width:e.width}}(e,t)},e.prototype.removeScroll=function(e,t){return function(e,t){return{top:e.top-t.y,left:e.left-t.x,height:e.height,width:e.width}}(e,t)},e.prototype.restrictToView=function(e){return M(e)},e.prototype.scrollPosition=function(e){return P(e)},e.prototype.scrollableParents=function(e){return function(e){var t=[];if(!l.canUseDOM)return t;for(var n=e.parentElement;n;)F.test(K(n))&&t.push(n),n=n.parentElement;return t.push(window),t}(e)},e.prototype.stackingElementOffset=function(e){var t=this.getRelativeContextElement(e);return t?E(t):null},e.prototype.stackingElementScroll=function(e){var t=this.getRelativeContextElement(e);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}},e.prototype.stackingElementViewPort=function(e){var t=this.getRelativeContextElement(e);return t?{height:t.scrollHeight,width:t.scrollWidth}:null},e.prototype.getRelativeContextElement=function(e){if(!e||!G)return null;for(var t=e.parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}return null},e.prototype.useRelativePosition=function(e){return!!this.getRelativeContextElement(e)},e.prototype.windowViewPort=function(e){return C(e)},e.prototype.zIndex=function(e,t){return function(e,t){if(!e||!l.canUseDOM)return null;var n=A(e,t);if(!n)return null;var r=[e].concat(_(e,n)).reduce((function(e,t){var n=t.style.zIndex||window.getComputedStyle(t).zIndex,r=parseInt(n,10);return r>e?r:e}),0);return r?r+1:null}(e,t)},e.prototype.zoomLevel=function(){return l.canUseDOM?parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2)):1},e.prototype.isZoomed=function(){return this.zoomLevel()>1},e}(),J=function(){function e(e){this._dom=e}return e.prototype.positionElement=function(e){var t,n,r=e.anchor,o=e.currentLocation,a=e.element,i=e.anchorAlign,s=e.elementAlign,l=e.collisions,c=this._dom,u=e.viewPort||c.stackingElementViewPort(a)||c.windowViewPort(a),d=V(c.offset(r),o),p=(t=c.staticOffset(a),(n=o)?{height:t.height,left:n.left,top:n.top,width:t.width}:t),f=this.elementRect(a,p),h=c.restrictToView({anchorAlign:i,anchorRect:d,collisions:l,elementAlign:s,elementRect:f,viewPort:u});return{flipped:h.flipped,offset:c.addOffset(p,h.offset)}},e.prototype.elementRect=function(e,t){return this._dom.removeScroll(t,this._dom.scrollPosition(e))},e}(),Q={name:"@progress/kendo-react-popup",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1638167484,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"},ee=(B=function(e,t){return(B=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}B(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),te=function(){return(te=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)};function ne(e,t){if(e===t)return!0;if(!!e!=!!t)return!1;var n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertyNames(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++){var a=n[o];if(e[a]!==t[a])return!1}return!0}var re,oe={left:-1e3,top:0};!function(e){e.hiding="hiding",e.hidden="hidden",e.showing="showing",e.shown="shown",e.reposition="reposition"}(re||(re={}));var ae=function(e){function t(t){var n=e.call(this,t)||this;return n.state={current:re.hidden,previous:re.hidden,props:{}},n._popup=null,n.show=function(e){n.setPosition(e),n.animate(e.firstChild,"enter",n.onOpened),n.setState({current:re.shown,previous:n.state.current})},n.setPosition=function(e){var t=n.props,r=t.anchorAlign,o=t.popupAlign,a=t.collision,i=t.offset,s=t.anchor,l=e.firstElementChild,c=getComputedStyle(l),u=c.width,d=c.height;l.style.position="absolute",l.style.width=u,l.style.height=d;var p=n._alignService.alignElement({anchor:s,element:l,elementAlign:o,anchorAlign:r,offset:i}),f=n._positionService.positionElement({anchor:s,anchorAlign:r,collisions:a,element:l,currentLocation:p,elementAlign:o});f.offset&&(e.style.top=f.offset.top+"px",e.style.left=f.offset.left+"px",l.style.position="",l.style.width="",l.style.height=""),n._flipped=f.flipped},n.onOpened=function(){var e=n._popup;e&&(n.props.show&&e.classList.add("k-animation-container-shown"),n.attachRepositionHandlers(e),n.props.onOpen&&n.props.onOpen.call(void 0,{target:n}))},n.animate=function(e,t,r){!function(e,t,n,r,o){if(0===n)return o();var a="k-slide-"+t+"-"+r,l=a+"-active",c=function(){e.removeEventListener("transitionend",c),i(e),o()};e.addEventListener("transitionend",c);var u=e.ownerDocument;if(u){var d=u.defaultView;if(d){var p=function(){i(e),e.classList.add(a),d.requestAnimationFrame((function(){e.style.transitionDuration=n+"ms",e.classList.add(l)}))};s?d.requestAnimationFrame(p):p()}}}(e,n._flipped?"up":"down",n.animationDuration[t],t,r)},n.onClosing=function(e){n.props.show||e.classList.remove("k-animation-container-shown"),n.detachRepositionHandlers()},n.onClosed=function(){n.state.current===re.hiding&&n.state.previous===re.shown&&n.setState({current:re.hidden,previous:n.state.current}),n.props.onClose&&n.props.onClose.call(void 0,{target:n})},Object(l.validatePackage)(Q),n._domService=new $,n._alignService=new Z(n._domService),n._positionService=new J(n._domService),n.reposition=function(e,t,n){var r,o,a,i;void 0===n&&(n={});var s=0;n=n||{};var l=function(){s=!1===n.leading?0:(new Date).getTime(),r=null,i=e.apply(o,a),r||(o=a=null)};return function(){var c=(new Date).getTime();s||!1!==n.leading||(s=c);var u=t-(c-s);return o=this,a=arguments,u<=0||u>t?(r&&(clearTimeout(r),r=null),s=c,i=e.apply(o,a),r||(o=a=null)):r||!1===n.trailing||(r=window.setTimeout(l,u)),i}}(n.reposition.bind(n),1e3/60),n}return ee(t,e),t.getDerivedStateFromProps=function(e,t){var n=e.show,r=e.anchor,o=e.anchorAlign,a=e.appendTo,i=e.collision,s=e.popupAlign,l=e.className,c=e.popupClass,u=e.style,d=e.offset,p=e.contentKey,f=te({},t,{props:{show:n,anchor:r,anchorAlign:o,appendTo:a,collision:i,popupAlign:s,className:l,popupClass:c,style:u,offset:d,contentKey:p}});return e.show?t.current===re.hidden||t.current===re.hiding?te({},f,{current:re.showing,previous:t.current}):t.current===re.showing?te({},f,{current:re.shown,previous:t.current}):t.current!==re.shown||ne(d,t.props.offset)&&ne(o,t.props.anchorAlign)&&ne(a,t.props.appendTo)&&ne(i,t.props.collision)&&ne(s,t.props.popupAlign)&&ne(u,t.props.style)&&r===t.props.anchor&&c===t.props.popupClass&&l===t.props.className?f:te({},f,{current:re.reposition,previous:t.current}):t.current===re.hiding||t.current===re.hidden?te({},f,{current:re.hidden,previous:t.current}):te({},f,{current:re.hiding,previous:t.current})},t.prototype.componentDidUpdate=function(e){this.state.current===re.showing&&this._popup?this.show(this._popup):this.state.current===re.hiding&&this._popup?(this.onClosing(this._popup),this.animate(this._popup.firstChild,"exit",this.onClosed)):this.state.current===re.reposition&&this.state.previous===re.shown?this.setState({current:re.shown,previous:this.state.current}):this.state.current===re.shown&&e.contentKey!==this.props.contentKey&&this._popup&&this.setPosition(this._popup)},t.prototype.componentDidMount=function(){this.state.current===re.showing&&this._popup&&this.show(this._popup)},t.prototype.componentWillUnmount=function(){this.detachRepositionHandlers()},t.prototype.render=function(){var e=this,t=this.props,n=t.children,a=t.className,i=t.popupClass,s=t.show,c=t.id,u=this.props.appendTo?this.props.appendTo:l.canUseDOM?this.props.anchor&&this.props.anchor.ownerDocument?this.props.anchor.ownerDocument.body:document.body:void 0;this.state.current===re.reposition&&this.state.previous===re.shown&&this._popup&&this.setPosition(this._popup);var d=Object.assign({},{position:"absolute"},this.props.style||{}),p=this.state.current===re.hiding;if((s||p)&&u){var f=r.createElement("div",{className:Object(l.classNames)("k-animation-container","k-animation-container-relative",a),id:c,ref:function(t){return e._popup=t},style:d},r.createElement("div",{className:Object(l.classNames)(i,"k-popup","k-child-animation-container"),style:{transitionDelay:"0ms"}},n));return o.createPortal(f,u)}return null},Object.defineProperty(t.prototype,"animationDuration",{get:function(){var e=this.props.animate,t=0,n=0;return e&&(!0===e?t=n=300:(t=e.openDuration||0,n=e.closeDuration||0)),{enter:t,exit:n}},enumerable:!0,configurable:!0}),t.prototype.attachRepositionHandlers=function(e){var t=this;this.detachRepositionHandlers(),this._scrollableParents=this._domService.scrollableParents(this.props.anchor||e),this._scrollableParents.map((function(e){return e.addEventListener("scroll",t.reposition)})),window.addEventListener("resize",this.reposition)},t.prototype.detachRepositionHandlers=function(){var e=this;this._scrollableParents&&(this._scrollableParents.map((function(t){return t.removeEventListener("scroll",e.reposition)})),this._scrollableParents=void 0),window.removeEventListener("resize",this.reposition)},t.prototype.reposition=function(){this.setState({current:re.reposition,previous:this.state.current})},t.propTypes={anchor:function(e){var t=e.anchor;return t&&"number"!=typeof t.nodeType?new Error("Invalid prop `anchor` supplied to `Kendo React Popup`. Validation failed."):null},appendTo:function(e){var t=e.appendTo;return t&&"number"!=typeof t.nodeType?new Error("Invalid prop `appendTo` supplied to `Kendo React Popup`. Validation failed."):null},className:a.string,id:a.string,popupClass:a.string,collision:a.shape({horizontal:a.oneOf([z,H]),vertical:a.oneOf([z,H])}),anchorAlign:a.shape({horizontal:a.oneOf([U,W,q]),vertical:a.oneOf([Y,W,X])}),popupAlign:a.shape({horizontal:a.oneOf([U,W,q]),vertical:a.oneOf([Y,W,X])}),offset:a.shape({left:a.number,top:a.number}),children:a.oneOfType([a.element,a.node]),show:a.bool,animate:a.oneOfType([a.bool,a.shape({openDuration:a.number,closeDuration:a.number})])},t.defaultProps={collision:{horizontal:z,vertical:H},anchorAlign:{horizontal:U,vertical:X},popupAlign:{horizontal:U,vertical:Y},offset:oe,animate:!0,show:!1},t}(r.Component),ie=function(){return(ie=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)},se=r.createContext((function(e){return e})),le=r.forwardRef((function(e,t){var n=r.useContext(se).call(void 0,e);return r.createElement(ae,ie({ref:t},n))}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPresent=function(e){return null!=e},t.fitIntoBounds=function(e,n,r){return!t.isPresent(e)||isNaN(e)||e<=n?n:e>=r?r:e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(13),o=n(7);t.parseColor=function(e,t,n){void 0===n&&(n=!0);if(-1===["hex","rgba"].indexOf(t))throw new Error("Unsupported color output format '"+t+"'. The available options are 'hex' or 'rgba'.");if(o.isPresent(e)){var a=r.parseColor(e.trim(),n);if(o.isPresent(a))return"hex"===t?a.toCss():a.toCssRgba()}},t.getHSV=function(e,t){void 0===t&&(t=!0);var n=r.parseColor(e,t);return o.isPresent(n)?n.toHSV():{}},t.getRGBA=function(e,t){void 0===t&&(t=!0);var n=r.parseColor(e,t);return o.isPresent(n)?n.toBytes():{}},t.getColorFromHSV=function(e){var t=o.fitIntoBounds(e.h,0,359.9),n=o.fitIntoBounds(e.s,0,1),a=o.fitIntoBounds(e.v,0,1),i=o.fitIntoBounds(e.a,0,1);return r.Color.fromHSV(t,n,a,i).toCssRgba()},t.getColorFromHue=function(e){return t.getColorFromHSV({h:e,s:1,v:1,a:1})},t.getColorFromRGBA=function(e){var t=o.fitIntoBounds(e.r,0,255),n=o.fitIntoBounds(e.g,0,255),a=o.fitIntoBounds(e.b,0,255),i=o.fitIntoBounds(e.a,0,1);return r.Color.fromBytes(t,n,a,i).toCssRgba()},t.getRGBFromRGBA=function(e,t){var n=o.fitIntoBounds(e.r,0,255),r=o.fitIntoBounds(e.g,0,255),a=o.fitIntoBounds(e.b,0,255),i=o.fitIntoBounds(e.a,0,1),s=o.fitIntoBounds(t.r,0,255),l=o.fitIntoBounds(t.g,0,255),c=o.fitIntoBounds(t.b,0,255);return{r:Math.round((1-i)*s+i*n),g:Math.round((1-i)*l+i*r),b:Math.round((1-i)*c+i*a)}},t.getLuminance=function(e){var t=[e.r,e.g,e.b].map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}));return.2126*t[0]+.7152*t[1]+.0722*t[2]},t.getContrast=function(e,t){return(Math.max(e,t)+.05)/(Math.min(e,t)+.05)},t.getContrastFromTwoRGBAs=function(e,n){return t.getContrast(t.getLuminance(t.getRGBFromRGBA(e,n)),t.getLuminance(t.getRGBFromRGBA(n,{r:0,g:0,b:0,a:1})))}},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(12)),r(n(14)),r(n(31)),r(n(33)),r(n(34)),r(n(35)),r(n(40)),r(n(42)),r(n(17)),r(n(43)),r(n(45)),r(n(46)),r(n(47)),r(n(18)),r(n(48)),r(n(49)),r(n(19))},function(e,t,n){"use strict";n.r(t),n.d(t,"FloatingLabel",(function(){return v})),n.d(t,"Label",(function(){return u})),n.d(t,"Error",(function(){return d})),n.d(t,"Hint",(function(){return p}));var r,o=n(0),a=n(1),i=n(2),s=((r={})["labels.optional"]="(Optional)",r),l=n(4),c={name:"@progress/kendo-react-labels",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1638167660,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"},u=function(e){Object(i.validatePackage)(c);var t=e.id,n=e.editorId,r=e.editorRef,a=e.editorDisabled,u=e.children,d=e.editorValid,p=e.style,f=e.className,h=e.optional,v=Object(l.useLocalization)(),m=h?v.toLanguageString("labels.optional",s["labels.optional"]):"",g=m&&o.createElement("span",{className:"k-label-optional"},m),b=o.useCallback((function(e){if(r&&r.current&&!a){r.current.focus&&(e.preventDefault(),r.current.focus());var t=r.current.actionElement;t&&(e.preventDefault(),t.click())}}),[r]),y=Object(i.classNames)({"k-label":!0,"k-label-empty":!u,"k-text-error":!1===d,"k-text-disabled":!0===a},f);return o.createElement("label",{id:t,htmlFor:n,onClick:b,style:p,className:y},u,g)};u.propTypes={id:a.string,editorId:a.string,editorRef:a.oneOfType([a.func,a.shape({current:a.any})]),editorValid:a.bool,editorDisabled:a.bool,style:a.object,className:a.string,optional:a.bool},u.displayName="KendoReactLabel";var d=function(e){Object(i.validatePackage)(c);var t=Object(i.classNames)({"k-form-error":!0,"k-text-start":"start"===e.direction,"k-text-end":"end"===e.direction},e.className);return o.createElement("div",{id:e.id,role:"alert",style:e.style,className:t},e.children)};d.propTypes={id:a.string,direction:a.oneOf(["start","end"]),children:a.oneOfType([a.element,a.node]),style:a.object,className:a.string},d.defaultProps={direction:"start"},d.displayName="KendoReactError";var p=function(e){Object(i.validatePackage)(c);var t=Object(i.classNames)({"k-form-hint":!0,"k-text-start":"start"===e.direction,"k-text-end":"end"===e.direction,"k-text-disabled":!0===e.editorDisabled},e.className);return o.createElement("div",{id:e.id,style:e.style,className:t},e.children)};p.propTypes={id:a.string,direction:a.oneOf(["start","end"]),children:a.oneOfType([a.element,a.node]),style:a.object,className:a.string,editorDisabled:a.bool},p.defaultProps={direction:"start"},p.displayName="KendoReactHint";var f,h=(f=function(e,t){return(f=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}f(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),v=function(e){function t(t){var n=e.call(this,t)||this;return n.state={focused:!1},n.handleFocus=function(e){n.setState({focused:!0})},n.handleBlur=function(e){n.setState({focused:!1})},Object(i.validatePackage)(c),n}return h(t,e),t.prototype.render=function(){var e=this.props,t=e.label,n=e.editorId,r=e.className,a=e.editorValue,c=e.editorPlaceholder,u=e.editorValid,d=e.editorDisabled,p=e.style,f=e.id,h=e.optional,v=Object(l.provideLocalizationService)(this),m=h?v.toLanguageString("labels.optional",s["labels.optional"]):"",g=m&&o.createElement("span",{className:"k-label-optional"},m),b=Object(i.classNames)({"k-textbox-container":!0,"k-state-focused":this.state.focused,"k-state-empty":!c&&!a&&0!==a,"k-text-disabled":d,"k-rtl":"rtl"===this.props.dir},r),y=Object(i.classNames)({"k-label":!0,"k-text-error":!1===u,"k-text-disabled":d});return o.createElement("span",{className:b,onFocus:this.handleFocus,onBlur:this.handleBlur,style:p,dir:this.props.dir},this.props.children,t?n?o.createElement("label",{id:f,htmlFor:n,className:y},t,g):o.createElement("span",{id:f,className:y},t,g):null)},t.propTypes={label:a.string,editorId:a.string,editorValue:a.oneOfType([a.string,a.bool,a.number]),editorPlaceholder:a.string,editorValid:a.bool,editorDisabled:a.bool,id:a.string,style:a.object,className:a.string,optional:a.bool},t}(o.Component);Object(l.registerForLocalization)(v)},function(e,t){e.exports=r},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 a=n(0),i=n(1),s=n(2),l=n(2),c=n(3),u=n(9),d=n(7),p=n(8),f=n(23),h=n(24),v=n(26),m=n(27),g=function(e){function t(n){var r=e.call(this,n)||this;r.onHexChange=function(e,t,n){if(r.isUncontrolled){var o=p.getHSV(t);r.setState({hsva:o,backgroundColor:p.getColorFromHue(o.h),rgba:p.getRGBA(t),hex:e})}else f.cacheHex(r.state.guid,t,e);r.dispatchChangeEvent(t,n,n.nativeEvent)},r.onRgbaChange=function(e,t){var n=p.getColorFromRGBA(e);if(r.isUncontrolled){var o=p.getHSV(n),a=p.parseColor(n,"hex");r.setState({hsva:o,backgroundColor:p.getColorFromHue(o.h),rgba:e,hex:a})}else f.cacheRgba(r.state.guid,n,e);r.dispatchChangeEvent(n,t.syntheticEvent,t.nativeEvent)},r.onAlphaSliderChange=function(e){r.handleHsvaChange(Object.assign({},r.state.hsva,{a:e.value/100}),e.syntheticEvent,e.nativeEvent)},r.onHueSliderChange=function(e){r.handleHsvaChange(Object.assign({},r.state.hsva,{h:e.value}),e.syntheticEvent,e.nativeEvent)},r.onDrag=function(e){r.gradientWrapper.classList.add("k-dragging"),r.changePosition(e.event)},r.onRelease=function(){r.gradientWrapper.classList.remove("k-dragging")},r.onGradientWrapperClick=function(e){r.changePosition(e)},r.changePosition=function(e){var t=r.getGradientRectMetrics(),n=e.clientX-t.left,o=e.clientY-t.top,a=d.fitIntoBounds(n,0,t.width),i=d.fitIntoBounds(o,0,t.height),s=Object.assign({},r.state.hsva,{s:a/t.width,v:1-i/t.height});r.handleHsvaChange(s,e,e.nativeEvent)},r.onFocus=function(e){r.props.onFocus&&r.props.onFocus.call(void 0,{nativeEvent:e,target:r})},r.focus=function(){s.focusFirstFocusableChild(r.wrapper)},l.validatePackage(c.packageMetadata);var o=n.value||n.defaultValue||p.parseColor("rgba(255, 255, 255, 1)","rgba");return r.state=Object.assign({},t.getStateFromValue(o),{isFirstRender:!0,guid:s.guid()}),r}return o(t,e),t.getDerivedStateFromProps=function(e,n){return e.value&&!n.isFirstRender?t.getStateFromValue(e.value,n.guid):null},t.prototype.componentDidMount=function(){this.setAlphaSliderBackground(this.state.backgroundColor),this.state.isFirstRender&&this.setState({isFirstRender:!1})},t.prototype.componentWillUnmount=function(){f.removeCachedColor(this.state.guid)},t.prototype.componentDidUpdate=function(e,t){t.backgroundColor!==this.state.backgroundColor&&this.setAlphaSliderBackground(this.state.backgroundColor)},t.prototype.renderRectangleDragHandle=function(){var e={};if(!this.state.isFirstRender){var t=this.getGradientRectMetrics(),n=(1-this.state.hsva.v)*t.height,r=this.state.hsva.s*t.width;e.top=n+"px",e.left=r+"px"}return a.createElement("div",{className:"k-hsv-draghandle k-draghandle",style:e})},t.prototype.handleHsvaChange=function(e,t,n){var r=p.getColorFromHSV(e);if(this.isUncontrolled){var o=p.parseColor(r,"hex");this.setState({hsva:e,backgroundColor:p.getColorFromHue(e.h),rgba:p.getRGBA(r),hex:o})}else f.cacheHsva(this.state.guid,r,e);this.dispatchChangeEvent(r,t,n)},t.prototype.dispatchChangeEvent=function(e,t,n){this.props.onChange&&this.props.onChange.call(void 0,{syntheticEvent:t,nativeEvent:n,target:this,value:e})},t.getStateFromValue=function(e,t){d.isPresent(p.parseColor(e,"hex"))||(e="rgba(255, 255, 255, 1)");var n=f.getCachedHsva(t,e)||p.getHSV(e),r=f.getCachedRgba(t,e)||p.getRGBA(e),o=f.getCachedHex(t,e)||p.parseColor(e,"hex");return{hsva:n,backgroundColor:p.getColorFromHue(n.h),rgba:r,hex:o}},t.prototype.setAlphaSliderBackground=function(e){this.props.opacity&&this.alphaSlider&&this.alphaSlider.sliderTrack&&(this.alphaSlider.sliderTrack.style.background="linear-gradient(to top, transparent, "+e+")")},Object.defineProperty(t.prototype,"isUncontrolled",{get:function(){return void 0===this.props.value},enumerable:!0,configurable:!0}),t.prototype.getGradientRectMetrics=function(){return this.gradientWrapper.getBoundingClientRect()},t.prototype.render=function(){var e=this,t=s.classNames("k-colorgradient",{"k-state-disabled":this.props.disabled});return a.createElement("div",{id:this.props.id,className:t,"aria-disabled":this.props.disabled?"true":void 0,style:this.props.style,ref:function(t){return e.wrapper=t},tabIndex:s.getTabIndex(this.props.tabIndex,this.props.disabled),"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,onFocus:this.onFocus},a.createElement("div",{className:"k-colorgradient-canvas k-hstack"},a.createElement("div",{className:"k-hsv-rectangle",style:{background:this.state.backgroundColor}},a.createElement(s.Draggable,{onDrag:this.onDrag,onRelease:this.onRelease,ref:function(t){return e.gradientWrapper=t?t.element:void 0}},a.createElement("div",{className:"k-hsv-gradient",style:{touchAction:"none"},onClick:this.onGradientWrapperClick},this.renderRectangleDragHandle())),this.props.backgroundColor&&!this.state.isFirstRender&&a.createElement(m.ColorContrastSvg,{metrics:this.gradientWrapper?this.getGradientRectMetrics():void 0,hsva:this.state.hsva,backgroundColor:this.props.backgroundColor})),a.createElement("div",{className:"k-hsv-controls k-hstack"},a.createElement(u.Slider,{value:this.state.hsva.h,buttons:!1,vertical:!0,min:0,max:360,step:5,onChange:this.onHueSliderChange,className:"k-hue-slider k-colorgradient-slider",disabled:this.props.disabled}),this.props.opacity&&a.createElement(u.Slider,{value:d.isPresent(this.state.hsva.a)?100*this.state.hsva.a:100,buttons:!1,vertical:!0,min:0,max:100,step:1,onChange:this.onAlphaSliderChange,className:"k-alpha-slider k-colorgradient-slider",disabled:this.props.disabled,ref:function(t){return e.alphaSlider=t}}))),a.createElement(h.default,{rgba:this.state.rgba,onRgbaChange:this.onRgbaChange,hex:this.state.hex,onHexChange:this.onHexChange,opacity:this.props.opacity,disabled:this.props.disabled}),this.props.backgroundColor&&a.createElement(v.ColorContrastLabels,{bgColor:p.getRGBA(this.props.backgroundColor),rgba:this.state.rgba}))},t.propTypes={defaultValue:i.string,value:i.string,onChange:i.func,onFocus:i.func,opacity:i.bool,backgroundColor:i.string,disabled:i.bool,style:i.any,id:i.string,ariaLabelledBy:i.string,ariaDescribedBy:i.string},t.defaultProps={opacity:!0},t}(a.Component);t.ColorGradient=g},function(e,t){e.exports=o},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 a=n(0),i=n(1),s=n(29),l=n(2),c=n(2),u=n(3),d=n(30),p=n(7),f=n(8);t.DEFAULT_TILE_SIZE=24,t.DEFAULT_COLUMNS_COUNT=10,t.DEFAULT_PRESET="office";var h=function(e){function n(t){var n=e.call(this,t)||this;return n.wrapper=null,n.guid=l.guid(),n.focus=function(){n.wrapper&&n.wrapper.focus()},n.onKeyDown=function(e){switch(e.keyCode){case l.Keys.down:n.handleCellNavigation(0,1);break;case l.Keys.up:n.handleCellNavigation(0,-1);break;case l.Keys.right:n.handleCellNavigation(1,0);break;case l.Keys.left:n.handleCellNavigation(-1,0);break;case l.Keys.enter:n.handleEnter(e);break;default:return}e.preventDefault()},n.onColorClick=function(e,t){n.isUncontrolled?n.setState({selectedColor:e,focusedColor:e}):n.setState({focusedColor:e}),n.dispatchChangeEvent(e,t)},n.onFocus=function(e){n.setState({focusedColor:n.state.selectedColor||n.paletteService.colorRows[0][0]}),n.props.onFocus&&n.props.onFocus.call(void 0,{nativeEvent:e,target:n})},n.onBlur=function(){n.setState({focusedColor:void 0})},c.validatePackage(u.packageMetadata),n.state={selectedColor:void 0!==n.props.value?n.props.value:n.props.defaultValue,isFirstRender:!0},n}return o(n,e),n.prototype.render=function(){var e=this,t=this.getPaletteInfo(),n=this.paletteService=new s.ColorPaletteService;n.setColorMatrix(t.colors,t.columns);var r=n.getCellCoordsFor(this.state.selectedColor),o=n.getCellCoordsFor(this.state.focusedColor),i=l.classNames("k-colorpalette",{"k-state-disabled":this.props.disabled});return t.colors.length?a.createElement("div",{id:this.props.id,className:i,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,"aria-disabled":this.props.disabled?"true":void 0,"aria-activedescendant":r&&this.createCellId(r),"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,tabIndex:l.getTabIndex(this.props.tabIndex,this.props.disabled),ref:function(t){return e.wrapper=t}},a.createElement("div",{className:"k-colorpalette-table-wrap",role:"grid"},a.createElement("table",{className:"k-colorpalette-table k-palette",role:"presentation"},a.createElement("tbody",null,this.renderRows(n.colorRows,r,o))))):""},n.getDerivedStateFromProps=function(e,t){if(t.isFirstRender||void 0===e.value){if(t.isFirstRender)return{isFirstRender:!1}}else{if(""===e.value&&void 0!==t.selectedColor)return{selectedColor:void 0};if(""!==e.value&&e.value!==t.selectedColor)return{selectedColor:e.value}}return null},n.prototype.handleCellNavigation=function(e,t){if(this.focusedColorCooridanates){var n=this.paletteService.getNextCell(this.focusedColorCooridanates,e,t);this.setState({focusedColor:this.paletteService.getColorAt(n)})}else this.setState({focusedColor:this.paletteService.colorRows[0][0]})},n.prototype.handleEnter=function(e){this.isUncontrolled&&this.setState({selectedColor:this.state.focusedColor}),this.dispatchChangeEvent(this.state.focusedColor,e)},n.prototype.dispatchChangeEvent=function(e,t){l.dispatchEvent(this.props.onChange,t,this,{value:e,rgbaValue:f.parseColor(e,"rgba")})},Object.defineProperty(n.prototype,"focusedColorCooridanates",{get:function(){return this.state.focusedColor?this.paletteService.getCellCoordsFor(this.state.focusedColor):void 0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isUncontrolled",{get:function(){return void 0===this.props.value},enumerable:!0,configurable:!0}),n.prototype.getPaletteInfo=function(){if("string"==typeof this.props.palette){var e=d.PALETTEPRESETS[this.props.palette];return p.isPresent(e)?{colors:e.colors,columns:this.props.columns||e.columns||t.DEFAULT_COLUMNS_COUNT}:{colors:[],columns:0}}return{colors:this.props.palette||[],columns:this.props.columns||t.DEFAULT_COLUMNS_COUNT}},n.prototype.renderRows=function(e,t,n){var r=this;return e.map((function(e,o){return a.createElement("tr",{role:"row",key:o},r.renderColumns(e,o,t,n))}))},n.prototype.renderColumns=function(e,t,n,r){var o=this,i=void 0!==n&&n.row===t,s=n&&n.col,c=void 0!==r&&r.row===t,u=r&&r.col,d="number"!=typeof this.props.tileSize?this.props.tileSize:{width:this.props.tileSize,height:this.props.tileSize},p=d.width+"px",f=d.height+"px";return e.map((function(e,n){var r=i&&s===n,d=l.classNames("k-colorpalette-tile",{"k-state-selected":r,"k-state-focus":c&&u===n});return a.createElement("td",{className:d,"aria-label":e,"aria-selected":!!r||!!o.props.disabled&&void 0,style:{backgroundColor:e,width:p,height:f,minWidth:p},onClick:function(t){return o.onColorClick(e,t)},id:o.createCellId({row:t,col:n}),key:n})}))},n.prototype.createCellId=function(e){return this.guid+"_"+e.row+"_"+e.col},n.propTypes={palette:i.oneOfType([i.arrayOf(i.string),i.string]),columns:i.number,tileSize:i.any,defaultValue:i.string,value:i.string,disabled:i.bool,tabIndex:i.number,onChange:i.func,onFocus:i.func,id:i.string,ariaLabelledBy:i.string,ariaDescribedBy:i.string},n.defaultProps={palette:t.DEFAULT_PRESET,tileSize:t.DEFAULT_TILE_SIZE},n}(a.Component);t.ColorPalette=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(16),o=n(38),a=function(e){return(e||"").split("")},i=function(){function e(e){this.parse=e}return e.prototype.run=function(e,t){return void 0===t&&(t=""),e instanceof o.Stream?this.parse(e):this.parse(new o.Stream(a(e),a(t)))},e.prototype.map=function(t){var n=this;return new e((function(e){return n.parse(e).map(t)}))},e.prototype.chain=function(t){var n=this;return new e((function(e){return n.parse(e).chain((function(e,n){return t(e).run(n)}))}))},e.prototype.isLiteral=function(e){return this.run(e).type===r.ResultType.Literal},e}();t.Parser=i,t.mask=function(e){var t=e.prompt,n=e.promptPlaceholder;return function(e){return new i((function(o){for(;!o.eof();){var a=o.peek(),i=a.char,s=a.control;if(i===s&&s===t)return o.eat(),new r.Result(t,o,r.ResultType.Mask);if(e.test(i))return o.eat(),new r.Result(i,o,r.ResultType.Mask);if(i===n)return o.eat(),new r.Result(t,o,r.ResultType.Mask);o.eat_input()}return o.eat(),new r.Result(t,o,r.ResultType.Mask)}))}},t.literal=function(e){return new i((function(t){return t.peek().char===e?(t.eat(),new r.Result(e,t,r.ResultType.Literal)):new r.Result(e,t,r.ResultType.Literal)}))},t.unmask=function(e){return function(t){return new i((function(n){for(;!n.eof();){var o=n.peek(),a=o.char,i=o.control;if(a===e&&i===e)return n.eat(),new r.Result(a,n);if(t.test(a))return n.eat(),new r.Result(a,n);n.eat_input()}return n.eat(),new r.Result("",n)}))}},t.unliteral=function(e){return new i((function(t){return t.eof()?new r.Result("",t):(t.peek().char===e&&t.eat(),new r.Result(e,t))}))},t.token=function(e,t){return new i((function(n){var o=n.next().char,a=e[o];return"\\"===o?(o=n.next().char,new r.Result(t.literal(o),n)):a?new r.Result(t.mask(a),n):new r.Result(t.literal(o),n)}))},t.rawMask=function(e){var t=e.prompt,n=e.promptPlaceholder;return new i((function(e){var o=e.next().char;return o===t?new r.Result(n,e):new r.Result(o,e)}))},t.rawLiteral=function(e){return new i((function(t){var n=t.next().char;return e?new r.Result(n,t):new r.Result("",t)}))}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Literal=0]="Literal",e[e.Mask=1]="Mask",e[e.Undefined=2]="Undefined"}(r=t.ResultType||(t.ResultType={}));var o=function(){function e(e,t,n){void 0===n&&(n=r.Undefined),this.value=e,this.rest=t,this.type=n}return e.prototype.map=function(t){return new e(t(this.value),this.rest)},e.prototype.chain=function(e){return e(this.value,this.rest)},e.prototype.fold=function(e,t){return e(this.value,this.rest)},e.prototype.concat=function(e){return this.map((function(t,n){return e.chain((function(e,n){return t.concat([e])}))}))},e.prototype.toString=function(){return"Result({ value: '"+this.value+"', rest: "+this.rest+" })"},e}();t.Result=o},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=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 o=n(0),a=n(2);t.SLIDER_LABEL_ATTRIBUTE="data-slider-label",t.SliderLabel=function(e){var n,i,s=o.useRef(null),l=a.useDir(s),c=e.vertical?{bottom:e.position+"%",height:"1px",width:"100%"}:((n={})["rtl"===l?"right":"left"]=e.position+"%",n.width="1px",n);return o.createElement("li",{ref:s,role:"presentation",className:"k-tick k-tick-large",title:e.title,style:r({zIndex:1,position:"absolute"},c)},o.createElement("span",r({},((i={})[t.SLIDER_LABEL_ATTRIBUTE]=!0,i),{className:"k-label",onClick:e.onClick}),e.children))}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=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)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(1),s=n(2),l=n(2),c=n(3);t.RadioButton=a.forwardRef((function(e,t){l.validatePackage(c.packageMetadata);var n=e.ariaDescribedBy,i=e.checked,u=e.children,d=e.className,p=e.disabled,f=e.id,h=e.label,v=e.labelPlacement,m=e.name,g=e.style,b=e.tabIndex,y=e.value,k=e.valid,C=e.onChange,O=e.onFocus,w=e.onBlur,x=o(e,["ariaDescribedBy","checked","children","className","disabled","id","label","labelPlacement","name","style","tabIndex","value","valid","onChange","onFocus","onBlur"]),E=a.useRef(null),_=a.useCallback((function(){E.current&&E.current.focus()}),[]),P=a.useCallback((function(){return{element:E.current,focus:_}}),[_]);a.useImperativeHandle(t,P);var N=a.useMemo((function(){return s.guid()}),[]),S=a.useCallback((function(e){s.dispatchEvent(C,e,P(),{value:y})}),[C,y,p]),I=a.useCallback((function(e){O&&!p&&s.dispatchEvent(O,e,P(),void 0)}),[O,p]),R=a.useCallback((function(e){w&&!p&&s.dispatchEvent(w,e,P(),void 0)}),[w,p]),D=r({type:"radio",id:f||N,name:m,className:s.classNames({"k-radio":!0,"k-state-invalid":!1===k,"k-invalid":!1===k},d),ref:E,disabled:p,tabIndex:s.getTabIndex(b,p),checked:i,style:g,"aria-describedby":n,value:y,onChange:S,onFocus:I,onBlur:R},x),j=a.createElement(a.Fragment,null,void 0!==h?a.createElement("label",{className:"k-radio-label",htmlFor:f||N,style:{userSelect:"none"},"aria-label":h},h):null),T=a.createElement("input",r({},D));return"before"===v?a.createElement(a.Fragment,null,j,T,u):a.createElement(a.Fragment,null,T,j,u)})),t.RadioButton.propTypes={ariaDescribedBy:i.string,checked:i.bool,className:i.string,disabled:i.bool,id:i.string,label:i.string,labelPlacement:i.string,name:i.string,style:i.object,tabIndex:i.number,value:i.any,valid:i.bool,onChange:i.func,onFocus:i.func,onBlur:i.func},t.RadioButton.displayName="KendoRadioButton"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(1),a=n(2);t.RatingItem=r.forwardRef((function(e,t){var n=r.useRef(null),o=r.useRef(null),i=a.useDir(o,e.dir);r.useImperativeHandle(n,(function(){return{element:o.current,props:e,value:e.value}})),r.useImperativeHandle(t,(function(){return n.current}));var s=r.useCallback((function(t){e.onClick&&e.onClick.call(void 0,{value:e.value,target:n.current,syntheticEvent:t})}),[e.onClick,e.value]),l=r.useCallback((function(t){e.onKeyDown&&e.onKeyDown.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onKeyDown]),c=r.useCallback((function(t){e.onFocus&&e.onFocus.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onFocus]),u=r.useCallback((function(t){e.onBlur&&e.onBlur.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onBlur]),d=r.useCallback((function(t){e.onMouseMove&&e.onMouseMove.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onMouseMove]),p=r.useCallback((function(t){e.onMouseEnter&&e.onMouseEnter.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onMouseEnter]),f=r.useCallback((function(t){e.onMouseLeave&&e.onMouseLeave.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onMouseLeave]);return r.createElement("span",{id:e.id,ref:o,dir:i,"data-half":e.half,tabIndex:e.tabIndex,title:e.title,style:e.style,className:a.classNames("k-rating-item",{"k-rtl":"rtl"===i,"k-state-selected":e.selected,"k-state-hovered":e.hovered},e.className),onClick:s,onKeyDown:l,onFocus:c,onBlur:u,onMouseEnter:p,onMouseLeave:f,onMouseMove:d},e.children)}));var i={id:o.string,icon:o.any,dir:o.oneOf(["ltr","rtl"]),title:o.string,value:o.number,half:o.bool,selected:o.bool,hovered:o.bool};t.RatingItem.displayName="KendoReactRatingItem",t.RatingItem.propTypes=i,t.RatingItem.defaultProps={dir:"ltr"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toRound=function(e,t){if(e%1){var n=Math.pow(10,(t.toString().split(".")[1]||t.toString().split(".")[0]).length);return Math.round(e*n)/n}return e},t.getRemainder=function(e,t){return e-t*Math.floor(e/t)},t.isHalf=function(e,n,r){return t.toRound(e-r,r)<n&&n<e},t.isSelected=function(e,n,r,o){return null!==n&&("continues"===o?t.isHalf(e,n,r)?t.toRound(e-r/2,r/2)<=n:e<=n:"single"===o&&(t.isHalf(e,n,r)?t.toRound(e-r/2,r/2)===n:e===n))},t.calcIsFirstHalf=function(e,t,n){return"ltr"===e?n<t.x+t.width/2:n>t.x+t.width/2},t.isCorrectValue=function(e,t,n,r){for(var o=e;o<=t;o+=n)if(r===o)return!0;return!1}},function(e,t,n){"use strict";n.r(t),n.d(t,"Toolbar",(function(){return F})),n.d(t,"ToolbarItem",(function(){return G})),n.d(t,"ToolbarSeparator",(function(){return H})),n.d(t,"ToolbarSpacer",(function(){return U})),n.d(t,"Button",(function(){return v})),n.d(t,"ButtonGroup",(function(){return y})),n.d(t,"SplitButton",(function(){return D})),n.d(t,"SplitButtonItem",(function(){return w})),n.d(t,"DropDownButton",(function(){return A})),n.d(t,"DropDownButtonItem",(function(){return T})),n.d(t,"Chip",(function(){return ae})),n.d(t,"ChipList",(function(){return te})),n.d(t,"FloatingActionButton",(function(){return be})),n.d(t,"FloatingActionButtonItem",(function(){return ue}));var r,o=n(0),a=n(1),i=n(2),s={name:"@progress/kendo-react-buttons",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1638167513,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"},l=':not(.k-state-disabled):not([disabled]):not([disabled="true"])',c=["button"+l,".k-button-group > button"+l,".k-dropdown > .k-dropdown-wrap"+l,".k-colorpicker > .k-picker-wrap"+l],u={button:"k-button",flat:"k-flat",outline:"k-outline",clear:"k-button-clear",primary:"k-primary","state-selected":"k-state-selected","button-icon":"k-button-icon","button-icontext":"k-button-icontext","state-disabled":"k-state-disabled","group-start":"k-group-start","group-end":"k-group-end","button-group":"k-button-group","button-group-stretched":"k-button-group-stretched",ltr:"k-ltr",rtl:"k-rtl"},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)}),p=function(){return(p=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)},f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},h=u;var v=function(e){function t(t){var n=e.call(this,t)||this;return n._element=null,n.handleClick=function(e){n.toggleIfApplicable(),n.props.onClick&&n.props.onClick.call(void 0,e)},Object(i.validatePackage)(s),n.state={selected:!0===n.props.togglable&&!0===n.props.selected},n}return d(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return void 0!==this._selectedTemp?this._selectedTemp:this.state.selected},enumerable:!0,configurable:!0}),t.getDerivedStateFromProps=function(e,t){return e.togglable&&void 0!==e.selected&&e.selected!==t.selected?{selected:e.selected}:null},t.prototype.render=function(){var e,t=this,n=this.props,r=n.children,a=n.look,s=n.primary,l=n.togglable,c=n.icon,u=n.iconClass,d=n.imageUrl,v=n.imageAlt,m=n.className,g=(n.onClick,f(n,["children","look","primary","togglable","icon","iconClass","imageUrl","imageAlt","className","onClick"])),b=void 0!==c||void 0!==u||void 0!==d,y=void 0!==r,k={className:Object(i.classNames)([h.button],((e={})[h[""+a]]="default"!==a,e[h.primary]=s,e[h["state-disabled"]]=this.props.disabled,e[h["state-selected"]]=this.state.selected,e[h["button-icon"]]=!y&&b,e[h["button-icontext"]]=y&&b,e),[h[""+this.props.dir]],m),onClick:this.handleClick,role:l?"checkbox":void 0,"aria-disabled":this.props.disabled||void 0,"aria-checked":l?this.state.selected:void 0},C=function(e){var t=e.imageUrl,n=e.icon,r=e.iconClass,a=e.imageAlt;if(t)return o.createElement("img",{role:"presentation",className:"k-image",alt:a,src:t});if(n){var s=Object(i.classNames)("k-icon","k-i-"+n);return o.createElement("span",{role:"presentation",className:s})}return r?o.createElement("span",{role:"presentation",className:r}):null}({icon:c,iconClass:u,imageUrl:d,imageAlt:v});return o.createElement("button",p({},k,g,{ref:function(e){return t._element=e}}),C,r)},t.prototype.toggleIfApplicable=function(){var e=this;if(this.props.togglable&&void 0===this.props.selected){var t=!this.state.selected;this._selectedTemp=t,this.setState({selected:t},(function(){return e._selectedTemp=void 0}))}},t.propTypes={children:a.node,look:a.oneOf(["default","flat","outline","clear"]),primary:a.bool,selected:a.bool,togglable:a.bool,icon:a.string,iconClass:a.string,imageUrl:a.string,imageAlt:a.string},t.defaultProps={look:"default",primary:!1,togglable:!1},t}(o.Component),m=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)}}(),g=function(){return(g=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)},b=u,y=function(e){function t(t){var n=e.call(this,t)||this;return n._element=null,Object(i.validatePackage)(s),n}return m(t,e),t.prototype.render=function(){var e,t=this,n=this.mapButtons(this.props.children),r=Object(i.classNames)([b["button-group"]],((e={})[b["state-disabled"]]=this.props.disabled,e[b["button-group-stretched"]]=!!this.props.width,e),this.props.className),a={className:r,style:{width:""+this.props.width},dir:this.props.dir,role:"group","aria-disabled":this.props.disabled};return o.createElement("div",g({ref:function(e){t._element=e}},a,{className:r}),n)},t.prototype.mapButtons=function(e){var t=this,n=o.Children.count(e),r=void 0!==this.props.dir?"rtl"===this.props.dir:this._element&&"rtl"===getComputedStyle(this._element).direction||!1;return o.Children.map(e,(function(e,a){return o.isValidElement(e)?t.renderButton(e,a,a===n-1,r):e}))},t.prototype.renderButton=function(e,t,n,r){var a,s=Object(i.classNames)(e.props.className,((a={})[b["group-start"]]=r?n:0===t,a[b["group-end"]]=r?0===t:n,a)),l=g({},this.props.width?{width:this.props.width}:{},e.props.style||{}),c=this.props.disabled||e.props.disabled,u=g({},e.props,s?{className:s}:{},Object.keys(l).length?{style:l}:{},void 0!==c?{disabled:c}:{});return o.Children.count(e.props.children)>0?o.cloneElement(e,u,e.props.children):o.cloneElement(e,u)},t.propTypes={children:a.oneOfType([a.arrayOf(a.element),a.element]),className:a.string,disabled:a.bool,width:a.string,dir:a.string},t}(o.Component),k=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)}}(),C=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onClick=function(e){return t.props.onClick(e,t.props.index)},t}return k(t,e),t.prototype.render=function(){var e=this.props,t=e.dataItem,n=e.focused,r=e.id,a=e.onDown,s=e.render,l=o.createElement("li",{id:r,className:Object(i.classNames)("k-item",{"k-state-focused":n,"k-state-selected":t.selected,"k-state-disabled":t.disabled}),onClick:this.onClick,onMouseDown:a,onPointerDown:a,role:"menuItem","aria-disabled":t.disabled||void 0},this.renderContent());return void 0!==this.props.item&&void 0!==s?s.call(void 0,l,this.props):l},t.prototype.renderContent=function(){var e=this.props,t=e.dataItem,n=e.textField,r=e.index,a=this.props.dataItem.render||this.props.item||(void 0===this.props.item?this.props.render:null),i=void 0!==t.text?t.text:n?t[n]:t,s=t.icon?"k-icon k-i-"+t.icon:t.iconClass;return a&&o.createElement(a,{item:t,itemIndex:r})||[s&&o.createElement("span",{className:s,role:"presentation",key:"icon"}),t.imageUrl&&o.createElement("img",{className:"k-image",alt:"",src:t.imageUrl,role:"presentation",key:"image"}),i]},t}(o.Component),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(){return null!==e&&e.apply(this,arguments)||this}return O(t,e),t.prototype.render=function(){return null},t.propTypes={text:a.string,icon:a.string,iconClass:a.string,imageUrl:a.string,disabled:a.bool,render:a.any},t}(o.Component),x=function(e,t,n,r){if(n)return e;switch(t){case i.Keys.enter:case i.Keys.space:case i.Keys.esc:return-1;case i.Keys.up:case i.Keys.left:return Math.max(0,e-1);case i.Keys.down:case i.Keys.right:return Math.min(r-1,e+1);default:return e}},E=n(6);function _(e){var t={horizontal:"left",vertical:"bottom"};return e&&(t.horizontal="right"),t}function P(e){var t={horizontal:"left",vertical:"top"};return e&&(t.horizontal="right"),t}var N,S,I=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)}}(),R=u,D=function(e){function t(t){var n=e.call(this,t)||this;return n.state={focused:!1,focusedIndex:-1,opened:!1},n.wrapper=null,n.mainButton=null,n.guid=Object(i.guid)(),n.buttonsData=[],n.onKeyDown=function(e){var t=n.state.focusedIndex;if(e.altKey)n.opened||e.keyCode!==i.Keys.down?n.opened&&e.keyCode===i.Keys.up&&(n.dispatchPopupEvent(e,!1),n.setState({focusedIndex:-1,opened:!1})):(n.dispatchPopupEvent(e,!0),n.setState({focusedIndex:0,opened:!0}));else{var r=void 0;if(e.keyCode===i.Keys.enter||e.keyCode===i.Keys.space?(e.preventDefault(),n.dispatchClickEvent(e,t),t>=0&&(r={focusedIndex:n.opened?-1:0,opened:!n.opened},n.dispatchPopupEvent(e,r.opened))):n.opened&&e.keyCode===i.Keys.esc&&(r={focusedIndex:-1,opened:!1},n.dispatchPopupEvent(e,r.opened)),n.opened){var o=x(t,e.keyCode,e.altKey,n.buttonsData.length);o!==t&&((r=r||{}).focusedIndex=o);var a=e.keyCode===i.Keys.up||e.keyCode===i.Keys.down||e.keyCode===i.Keys.left||e.keyCode===i.Keys.right;!e.altKey&&a&&e.preventDefault()}r&&n.setState(r)}},n.onFocus=function(e){Object(i.dispatchEvent)(n.props.onFocus,e,n,void 0),n.setState({focused:!0,focusedIndex:-1})},n.onItemClick=function(e,t){var r=n.opened;r&&n.setState({focusedIndex:0,opened:!1}),n.dispatchClickEvent(e,t),r&&n.dispatchPopupEvent(e,!1)},n.onBlur=function(e){n.setState({focused:!1,focusedIndex:-1,opened:!1}),Object(i.dispatchEvent)(n.props.onBlur,e,n,void 0),n.opened&&n.dispatchPopupEvent(e,!1)},n.onSplitPartClick=function(e){if(n.buttonsData.length){var t=!n.opened;n.dispatchPopupEvent(e,t),n.setState({focusedIndex:t?0:-1,opened:t,focused:!0})}},n.onDownSplitPart=function(e){e.preventDefault(),n.element&&document.activeElement!==n.element&&n.element.focus()},n.onItemDown=function(e){document.activeElement===n.element&&e.preventDefault()},n.dispatchPopupEvent=function(e,t){Object(i.dispatchEvent)(t?n.props.onOpen:n.props.onClose,e,n,void 0)},Object(i.validatePackage)(s),n}return I(t,e),Object.defineProperty(t.prototype,"opened",{get:function(){return void 0===this.props.opened?this.state.opened:this.props.opened},enumerable:!0,configurable:!0}),t.prototype.render=function(){var e=this;this.buttonsData=this.props.items||o.Children.toArray(this.props.children).filter((function(e){return e&&e.type===w})).map((function(e){return e.props}));var t=this.isRtl(),n=t?"rtl":void 0,r=this.props,a=r.tabIndex,s=r.disabled,l=this.state.focusedIndex;return o.createElement("div",{className:Object(i.classNames)("k-widget","k-split-button","k-button-group",[R[""+this.props.look]],{"k-state-focused":this.state.focused},this.props.className),onKeyDown:this.onKeyDown,onFocus:this.onFocus,onBlur:this.onBlur,dir:n,ref:function(t){return e.wrapper=t}},o.createElement(v,{onClick:function(t){return e.onItemClick(t,-1)},disabled:s||void 0,tabIndex:a,accessKey:this.props.accessKey,className:this.props.buttonClass,icon:this.props.icon,iconClass:this.props.iconClass,imageUrl:this.props.imageUrl,look:this.props.look,dir:n,ref:function(t){return e.mainButton=t&&t.element},type:"button","aria-disabled":s,"aria-haspopup":!0,"aria-expanded":this.opened,"aria-label":this.props.text+" splitbutton","aria-owns":this.guid,"aria-activedescendant":l>=0?this.guid+"-"+l:void 0},this.props.text),o.createElement(v,{icon:"arrow-s",disabled:s||void 0,tabIndex:-1,look:this.props.look,onClick:this.onSplitPartClick,onMouseDown:this.onDownSplitPart,onPointerDown:this.onDownSplitPart,dir:n,"aria-label":"menu toggling button"}),this.renderPopup(t))},t.prototype.componentDidMount=function(){(void 0===this.props.dir&&this.isRtl()||this.opened)&&this.forceUpdate()},Object.defineProperty(t.prototype,"element",{get:function(){return this.mainButton},enumerable:!0,configurable:!0}),t.prototype.dispatchClickEvent=function(e,t){this.isItemDisabled(t)||(-1===t?Object(i.dispatchEvent)(this.props.onButtonClick,e,this,void 0):Object(i.dispatchEvent)(this.props.onItemClick,e,this,{item:this.buttonsData[t],itemIndex:t}))},t.prototype.renderPopup=function(e){var t=this.props.popupSettings,n=void 0===t?{}:t;return o.createElement(E.Popup,{anchor:this.wrapper,show:this.opened,animate:n.animate,popupClass:Object(i.classNames)("k-list-container k-reset k-group",n.popupClass),anchorAlign:n.anchorAlign||_(e),popupAlign:n.popupAlign||P(e),style:e?{direction:"rtl"}:void 0},o.createElement("ul",{className:"k-list k-reset",role:"menu",id:this.guid},this.renderChildItems()))},t.prototype.renderChildItems=function(){var e=this,t=this.props,n=t.item,r=t.itemRender,a=t.textField;return this.buttonsData.length>0?this.buttonsData.map((function(t,i){return o.createElement(C,{dataItem:t,textField:a,focused:e.state.focusedIndex===i,onClick:e.onItemClick,onDown:e.onItemDown,render:r,item:n,key:i,index:i,id:e.guid+"-"+i})})):null},t.prototype.isItemDisabled=function(e){return this.buttonsData[e]?this.buttonsData[e].disabled:this.props.disabled},t.prototype.isRtl=function(){return void 0!==this.props.dir?"rtl"===this.props.dir:!!this.wrapper&&"rtl"===getComputedStyle(this.wrapper).direction},t.propTypes={accessKey:a.string,onButtonClick:a.func,onFocus:a.func,onBlur:a.func,onItemClick:a.func,onOpen:a.func,onClose:a.func,text:a.string,items:a.arrayOf(a.any),textField:a.string,tabIndex:a.number,disabled:a.bool,icon:a.string,iconClass:a.string,imageUrl:a.string,popupSettings:a.object,itemRender:a.any,item:a.func,look:a.string,className:a.string,buttonClass:a.string,dir:a.string},t}(o.Component),j=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)}}(),T=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return j(t,e),t.prototype.render=function(){return null},t.propTypes={text:a.string,icon:a.string,iconClass:a.string,imageUrl:a.string,selected:a.bool,disabled:a.bool,render:a.any},t}(o.Component),M=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)}}(),L=function(){return(L=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)},A=function(e){function t(t){var n=e.call(this,t)||this;return n.state={opened:!1,focused:!1,focusedIndex:-1},n.wrapper=null,n.mainButton=null,n.guid=Object(i.guid)(),n.buttonsData=[],n.onKeyDown=function(e){var t=n.state.focusedIndex;if(e.altKey)n.opened||e.keyCode!==i.Keys.down?n.opened&&e.keyCode===i.Keys.up&&(n.dispatchPopupEvent(e,!1),n.setState({focusedIndex:-1,opened:!1})):(n.dispatchPopupEvent(e,!0),n.setState({focusedIndex:0,opened:!0}));else{var r=L({},n.state);if(e.keyCode===i.Keys.enter||e.keyCode===i.Keys.space?(t>=0&&n.dispatchClickEvent(e,t),e.preventDefault(),r.focusedIndex=n.opened?-1:0,r.opened=!n.opened,n.dispatchPopupEvent(e,r.opened)):n.opened&&e.keyCode===i.Keys.esc&&(r.focusedIndex=-1,r.opened=!1,n.dispatchPopupEvent(e,r.opened)),n.opened){var o=x(t,e.keyCode,e.altKey,n.buttonsData.length);r.focusedIndex=o;var a=e.keyCode===i.Keys.up||e.keyCode===i.Keys.down||e.keyCode===i.Keys.left||e.keyCode===i.Keys.right;!e.altKey&&a&&e.preventDefault()}n.setState(r)}},n.onFocus=function(e){n.setState({focused:!0,focusedIndex:n.opened?0:-1}),Object(i.dispatchEvent)(n.props.onFocus,e,n,void 0)},n.onBlur=function(e){n.setState({focused:!1,opened:!1,focusedIndex:-1}),Object(i.dispatchEvent)(n.props.onBlur,e,n,void 0),n.opened&&n.dispatchPopupEvent(e,!1)},n.onItemClick=function(e,t){n.setState({focusedIndex:-1,opened:!1}),n.dispatchClickEvent(e,t),n.dispatchPopupEvent(e,!1)},n.onItemDown=function(e){document.activeElement===n.element&&e.preventDefault()},n.mouseDown=function(e){e.preventDefault()},n.onClickMainButton=function(e){if(n.buttonsData.length){var t=!n.opened;n.setState({opened:t,focused:!0,focusedIndex:t?0:-1}),n.dispatchPopupEvent(e,t)}},n.dispatchPopupEvent=function(e,t){Object(i.dispatchEvent)(t?n.props.onOpen:n.props.onClose,e,n,void 0)},Object(i.validatePackage)(s),n}return M(t,e),Object.defineProperty(t.prototype,"opened",{get:function(){return void 0===this.props.opened?this.state.opened:this.props.opened},enumerable:!0,configurable:!0}),t.prototype.render=function(){var e=this,t=this.isRtl(),n=t?"rtl":void 0,r=this.props,a=r.tabIndex,s=r.disabled,l=this.state.focusedIndex;return this.buttonsData=this.props.items||o.Children.toArray(this.props.children).filter((function(e){return e&&e.type===T})).map((function(e){return e.props})),o.createElement("div",{className:Object(i.classNames)("k-widget","k-dropdown-button",this.props.className,{"k-state-focused":this.state.focused}),onKeyDown:this.onKeyDown,onFocus:this.onFocus,onBlur:this.onBlur,dir:n,ref:function(t){return e.wrapper=t}},o.createElement(v,{onClick:this.onClickMainButton,onMouseDown:this.mouseDown,disabled:s||void 0,tabIndex:a,accessKey:this.props.accessKey,icon:this.props.icon,iconClass:this.props.iconClass,className:this.props.buttonClass,imageUrl:this.props.imageUrl,look:this.props.look,primary:this.props.primary,dir:n,ref:function(t){return e.mainButton=t&&t.element},type:"button","aria-disabled":s,"aria-haspopup":!0,"aria-expanded":this.opened,"aria-label":this.props.text+" dropdownbutton","aria-owns":this.guid,"aria-activedescendant":l>=0?this.guid+"-"+l:void 0},this.props.text),this.renderPopup(t))},t.prototype.componentDidMount=function(){(void 0===this.props.dir&&this.isRtl()||this.opened)&&this.forceUpdate()},t.prototype.componentDidUpdate=function(){this.state.focused&&this.element&&this.element.focus()},Object.defineProperty(t.prototype,"element",{get:function(){return this.mainButton},enumerable:!0,configurable:!0}),t.prototype.dispatchClickEvent=function(e,t){this.isItemDisabled(t)||Object(i.dispatchEvent)(this.props.onItemClick,e,this,{item:this.buttonsData[t],itemIndex:t})},t.prototype.renderPopup=function(e){var t=this.props.popupSettings,n=void 0===t?{}:t;return o.createElement(E.Popup,{anchor:this.wrapper,show:this.opened,animate:n.animate,popupClass:Object(i.classNames)("k-list-container k-reset k-group",n.popupClass),anchorAlign:n.anchorAlign||_(e),popupAlign:n.popupAlign||P(e),style:e?{direction:"rtl"}:void 0},o.createElement("ul",{className:"k-list k-reset",role:"menu",id:this.guid},this.renderChildItems()))},t.prototype.renderChildItems=function(){var e=this,t=this.props,n=t.item,r=t.itemRender,a=t.textField;return this.buttonsData.length>0?this.buttonsData.map((function(t,i){return o.createElement(C,{dataItem:t,textField:a,focused:e.state.focusedIndex===i,onClick:e.onItemClick,onDown:e.onItemDown,render:r,item:n,index:i,key:i,id:e.guid+"-"+i})})):null},t.prototype.isItemDisabled=function(e){return this.buttonsData[e]?this.buttonsData[e].disabled:this.props.disabled},t.prototype.isRtl=function(){return void 0!==this.props.dir?"rtl"===this.props.dir:!!this.wrapper&&"rtl"===getComputedStyle(this.wrapper).direction},t.propTypes={accessKey:a.string,primary:a.bool,onFocus:a.func,onBlur:a.func,onItemClick:a.func,onOpen:a.func,onClose:a.func,items:a.arrayOf(a.any),textField:a.string,tabIndex:a.number,disabled:a.bool,icon:a.string,iconClass:a.string,imageUrl:a.string,popupSettings:a.object,itemRender:a.func,item:a.func,look:a.string,className:a.string,buttonClass:a.string,dir:a.string},t}(o.Component),B=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)}}(),V=function(){return(V=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)},F=function(e){function t(n){var r=e.call(this,n)||this;return r._element=null,r.offsetHeight=0,r.offsetWidth=0,r.buttons=[],r.focusedSelector=r.selectors.map((function(e){return e+":focus"})).join(","),r.setTabIndex=function(e){var n=r.props.tabIndex,o=void 0===n?t.defaultProps.tabIndex:n;r.buttons.forEach((function(t,n){t.tabIndex=n===e?o:-1}))},r.onKeyDown=function(e){var t=e.target;if((e.keyCode===i.Keys.left||e.keyCode===i.Keys.right)&&!e.defaultPrevented&&-1!==r.buttons.findIndex((function(e){return e===t}))){var n=r.focusedIndex;e.keyCode===i.Keys.left?r.focusButton(n,n-1):r.focusButton(n,n+1)}},r.onWindowResize=function(e){var t=r.element;if(t){var n=t.offsetWidth,o=t.offsetHeight;if(r.offsetWidth!==n||r.offsetHeight!==o){r.offsetWidth=n,r.offsetHeight=o;var a={offsetWidth:r.offsetWidth,offsetHeight:r.offsetHeight};r.props.onResize&&r.props.onResize.call(void 0,V({target:r},a,{nativeEvent:e}))}}},Object(i.validatePackage)(s),r}return B(t,e),Object.defineProperty(t.prototype,"selectors",{get:function(){return this.props.buttons||c},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"focusedIndex",{get:function(){var e=this.element&&this.element.querySelector(this.focusedSelector);return Math.max(0,this.buttons.findIndex((function(t){return t===e})))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),t.prototype.componentDidMount=function(){window.addEventListener("resize",this.onWindowResize);var e=this.element;e&&(this.offsetWidth=e.offsetWidth,this.offsetHeight=e.offsetHeight,!1!==this.props.keyboardNavigation&&(this.buttons=Array.from(e.querySelectorAll(this.selectors.join(","))),this.setTabIndex(0)))},t.prototype.componentDidUpdate=function(){var e=this.element;e&&!1!==this.props.keyboardNavigation&&(this.buttons=Array.from(e.querySelectorAll(this.selectors.join(","))),this.setTabIndex(this.focusedIndex))},t.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.onWindowResize),this.buttons.length=0},t.prototype.render=function(){var e=this;return o.createElement("div",{className:Object(i.classNames)("k-widget k-toolbar",this.props.className),style:this.props.style,role:"toolbar",dir:this.props.dir,ref:function(t){return e._element=t},onKeyDown:!1!==this.props.keyboardNavigation?this.onKeyDown:void 0},this.props.children)},t.prototype.focusButton=function(e,n){var r=this.props.tabIndex,o=void 0===r?t.defaultProps.tabIndex:r,a=this.buttons[n];if(a){a.tabIndex=o,a.focus();var i=this.buttons[e];i&&(i.tabIndex=-1)}},t.propTypes={tabIndex:a.number,dir:a.string,keyboardNavigation:a.bool,style:a.object,className:a.string,onResize:a.func,buttons:a.arrayOf(a.string)},t.defaultProps={tabIndex:0},t}(o.Component),K=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)}}(),G=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._element=null,t}return K(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),t.prototype.render=function(){var e=this;return o.createElement("span",{className:this.props.className,style:this.props.style,ref:function(t){return e._element=t}},this.props.children)},t.propTypes={className:a.string},t}(o.PureComponent),z=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)}}(),H=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return z(t,e),t.prototype.render=function(){return o.createElement(G,{className:"k-separator"})},t}(o.PureComponent),U=o.forwardRef((function(e,t){var n=o.useRef(null),r=o.useRef(null);o.useImperativeHandle(r,(function(){return{element:n.current}})),o.useImperativeHandle(t,(function(){return{element:n.current}}));var a=o.useMemo((function(){return Object(i.classNames)("k-spacer",e.className)}),[e.className]);return o.createElement("span",{ref:n,className:a})}));U.propTypes={className:a.string},function(e){e.single="single",e.multiple="multiple",e.none="none"}(N||(N={})),function(e){e.toggle="toggle",e.remove="remove"}(S||(S={}));var W;!function(e){e.next="next",e.prev="prev",e.current="current",e.reset="reset"}(W||(W={}));var q;!function(e){e.remove="remove",e.add="add",e.reorder="reorder"}(q||(q={}));var X=function(){return(X=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)},Y=o.createContext([null,function(e){}]),Z=o.createContext([null,function(e){}]),$=o.createContext([null,function(e){}]),J=function(e,t,n){var r=o.useState(e),a=r[0],i=r[1];return[a,function(e){var r=function(e,t){switch(t.selection){case N.single:switch(t.type){case S.toggle:if(!Array.isArray(e)||null===e)return t.payload===e?null:t.payload;throw new Error("State cannot be an array in single selection");case S.remove:return t.payload===e?null:e;default:return e}case N.multiple:switch(t.type){case S.toggle:if(Array.isArray(e))return e.some((function(e){return e===t.payload}))?e.filter((function(e){return e!==t.payload})):e.concat([t.payload]);if(null===e)return[t.payload];throw new Error("State cannot be non-array in multiple selection");case S.remove:return Array.isArray(e)?e.some((function(e){return e===t.payload}))?e.filter((function(e){return e!==t.payload})):e.concat([t.payload]):e;default:return e}case N.none:return null;default:return e}}(t.state||a,X({},e,t));n&&n(r,e.event),i(r)}]},Q=function(e){var t=o.useState(null),n=t[0],r=t[1];return[n,function(t){var n=function(e,t){var n=t.items.findIndex((function(t){return t===e}));switch(t.type){case W.next:return n===t.items.length-1?e:t.items[n+1];case W.prev:return 0===n?e:t.items[n-1];case W.current:return t.payload;case W.reset:return null;default:return e}}(t.payload,X({},t,e));r(n)}]},ee=function(e,t,n){var r=o.useState(e),a=r[0],i=r[1];return[a,function(e){var r=function(e,t){switch(t.type){case q.add:break;case q.remove:return e.filter((function(e){return e[t.valueField]!==t.payload}));case q.reorder:break;default:return e}}(t.state||a,X({},e,t));n&&n(r,e.event),i(r)}]},te=o.forwardRef((function(e,t){Object(i.validatePackage)(s);var n=o.useRef(null),r=o.useRef(null),a=Object(i.useDir)(r,e.dir),l=o.useMemo((function(){return e.chip||ae}),[e.chip,ae]),c=o.useMemo((function(){return e.selection||re.selection}),[e.selection,re.selection]);o.useImperativeHandle(n,(function(){return{element:r.current,props:e}})),o.useImperativeHandle(t,(function(){return n.current}));var u=o.useCallback((function(t,r){e.onChange&&n.current&&e.onChange.call(void 0,{value:t,target:n.current,syntheticEvent:r})}),[e.onChange]),d=J(e.value||e.defaultValue,{selection:c,state:e.value},u),p=d[0],f=d[1],h=o.useCallback((function(t,r){e.onDataChange&&n.current&&e.onDataChange.call(void 0,{value:t,target:n.current,syntheticEvent:r})}),[e.onDataChange]),v=ee(e.data||e.defaultData||re.defaultData,{state:e.data,valueField:e.valueField||re.valueField},h),m=v[0],g=v[1],b=o.useCallback((function(t,n){return t.push(n[e.valueField||re.valueField]),t}),[e.valueField,re.valueField]),y=o.useMemo((function(){return e.data||m}),[e.data,m]),k=o.useMemo((function(){return e.value||p}),[e.value,p]),C=o.useMemo((function(){return y.reduce(b,[])}),[y,b]),O=Q({items:C}),w=O[0],x=O[1],E=Object(i.useMouse)(e,n);return o.createElement(Y.Provider,{value:[k,f]},o.createElement(Z.Provider,{value:[w,x]},o.createElement($.Provider,{value:[y,g]},o.createElement("div",X({ref:r},E,{role:"listbox",id:e.id,dir:a,style:e.style,tabIndex:Object(i.getTabIndex)(e.tabIndex,e.disabled,void 0),className:Object(i.classNames)("k-chip-list",{"k-rtl":"rtl"===a,"k-selection-single":"single"===c,"k-selection-multiple":"multiple"===c,"k-state-disabled":e.disabled},e.className),"aria-labelledby":e.ariaLabelledBy,"aria-describedby":e.ariaDescribedBy}),y.map((function(t){return o.createElement(l,{role:"option",dataItem:t,key:Object(i.getter)(e.valueField||re.valueField)(t),text:Object(i.getter)(e.textField||re.textField)(t),value:Object(i.getter)(e.valueField||re.valueField)(t)})}))))))})),ne={id:a.string,className:a.string,tabIndex:a.number,data:a.any,defaultData:a.arrayOf(a.any),onDataChange:a.func,value:a.oneOfType([a.any,a.arrayOf(a.any)]),defaultValue:a.oneOfType([a.any,a.arrayOf(a.any)]),onChange:a.func,selection:a.oneOf(["single","none","multiple"]),textField:a.string,valueField:a.string,disabled:a.bool,dir:a.oneOf(["ltr","rtl"]),ariaLabelledBy:a.string,ariaDescribedBy:a.string},re={chip:ae,disabled:!1,defaultValue:null,defaultData:[],dir:"ltr",selection:"none",textField:"text",valueField:"value",removable:"removable"};te.displayName="KendoReactChipList",te.propTypes=ne,te.defaultProps=re;var oe=function(){return(oe=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)},ae=o.forwardRef((function(e,t){Object(i.validatePackage)(s);var n=o.useRef(null),r=o.useRef(null),a=Object(i.useDir)(r,e.dir);o.useImperativeHandle(n,(function(){return{element:r.current,props:e}})),o.useImperativeHandle(t,(function(){return n.current}));var l=o.useContext(Y),c=l[0],u=l[1],d=o.useContext(Z),p=d[0],f=d[1],h=o.useContext($)[1],v=o.useMemo((function(){return e.selected||(Array.isArray(c)?c.some((function(t){return t===e.value})):c===e.value)}),[e.selected,e.value,c]),m=o.useMemo((function(){return p===e.value}),[e.value,p]),g=o.useMemo((function(){return e.look||se.look}),[e.look]);o.useEffect((function(){m&&r.current&&r.current.focus()}),[m]);var b=o.useCallback((function(t){u({type:S.toggle,payload:e.value,event:t}),e.onClick&&e.onClick.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onClick,u,e.value]),y=o.useCallback((function(t){e.removable&&(h({type:q.remove,payload:e.value,event:t}),f({type:W.reset,payload:e.value,event:t}),u({type:S.remove,payload:e.value,event:t}),e.onRemove&&e.onRemove.call(void 0,{target:n.current,syntheticEvent:t}))}),[e.onRemove,e.removable,h,f,u]),k=o.useCallback((function(t){switch(t.keyCode){case i.Keys.left:f({type:W.prev,payload:e.value,event:t});break;case i.Keys.right:f({type:W.next,payload:e.value,event:t});break;case i.Keys.enter:u({type:S.toggle,payload:e.value,event:t});break;case i.Keys.delete:y(t)}e.onKeyDown&&e.onKeyDown.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onKeyDown,f,u,y]),C=o.useCallback((function(t){f({payload:e.value,type:W.current,event:t}),e.onFocus&&e.onFocus.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onFocus,f]),O=o.useCallback((function(t){e.onBlur&&e.onBlur.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onBlur]),w=Object(i.useMouse)(e,n,{onClick:b});return o.createElement("div",oe({},w,{role:e.role,id:e.value,style:e.style,ref:r,dir:a,tabIndex:Object(i.getTabIndex)(e.tabIndex,e.disabled,void 0),className:Object(i.classNames)("k-chip",{"k-rtl":"rtl"===a,"k-state-disabled":e.disabled,"k-state-selected":v,"k-state-focus":m,"k-chip-success":"success"===e.type,"k-chip-warning":"warning"===e.type,"k-chip-error":"error"===e.type,"k-chip-info":"info"===e.type,"k-chip-has-icon":e.icon,"k-chip-outline":"outline"===g||"outlined"===g,"k-chip-solid":"solid"===g||"filled"===g},e.className),"aria-checked":v,"aria-disabled":e.disabled,"aria-describedby":e.ariaDescribedBy,onFocus:C,onBlur:O,onKeyDown:k}),v&&o.createElement("span",{className:"k-selected-icon-wrapper"},o.createElement("span",{className:"k-selected-icon k-icon "+(e.selectedIcon||se.selectedIcon)})),e.icon&&o.createElement("span",{className:"k-icon k-chip-icon "+e.icon}),o.createElement("span",{className:"k-chip-content"},void 0!==e.children?e.children:e.text&&o.createElement("span",{"aria-label":e.text,className:"k-chip-label"},e.text)),e.removable&&o.createElement("span",{className:"k-remove-icon",onClick:y},o.createElement("span",{className:"k-icon "+e.removeIcon})))})),ie={id:a.string,text:a.string,value:a.any,type:a.oneOf(["none","success","warning","error","info"]),dir:a.oneOf(["ltr","rtl"]),removable:a.bool,removeIcon:a.string,disabled:a.bool,icon:a.string,selectedIcon:a.string,look:a.string,onRemove:a.func,dataItem:a.any,selected:a.bool,ariaDescribedBy:a.string},se={disabled:!1,removable:!1,selectedIcon:"k-i-check",look:"solid",removeIcon:"k-i-close-circle",dir:"ltr"};ae.displayName="KendoReactChip",ae.propTypes=ie,ae.defaultProps=se;var le=function(){return(le=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)},ce=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},ue=o.forwardRef((function(e,t){var n=e.className,r=e.disabled,a=e.text,s=e.icon,l=e.style,c=e.id,u=e.focused,d=e.tabIndex,p=e.index,f=e.dataItem,h=e.item,v=e.onDown,m=e.onClick,g=ce(e,["className","disabled","text","icon","style","id","focused","tabIndex","index","dataItem","item","onDown","onClick"]),b=o.useRef(null),y=o.useCallback((function(){b.current&&b.current.focus()}),[]),k=o.useCallback((function(){return{element:b.current,focus:y}}),[y]);o.useImperativeHandle(t,k);var C=o.useCallback((function(e){m&&void 0!==p&&!r&&m(e,p)}),[m,p]),O=o.useMemo((function(){return Object(i.classNames)("k-fab-item",{"k-state-focus":u,"k-state-disabled":r},n)}),[n,r,u]),w=h;return o.createElement("li",le({ref:b,id:c,className:O,style:l,role:"menuitem",tabIndex:Object(i.getTabIndex)(d,r),"aria-disabled":r,"aria-label":(a||"")+" floatingactionbutton item",onClick:C,onMouseDown:v,onPointerDown:v},g),w?o.createElement(w,{itemIndex:p,item:f}):o.createElement(o.Fragment,null,a&&o.createElement("span",{className:"k-fab-item-text"},a),s&&o.createElement("span",{className:Object(i.classNames)("k-fab-item-icon k-icon k-i-"+s)})))}));ue.propTypes={className:a.string,style:a.object,children:a.any,disabled:a.bool,focused:a.bool,index:a.number,icon:a.string,text:a.string,tabIndex:a.number,customProp:a.any},ue.displayName="KendoFloatingActionButtonItem";var de=function(e){return"number"==typeof e?e+"px":e},pe=function(e,t){var n={horizontal:t?"right":"left",vertical:"bottom"};return"end"===e.horizontal&&(n.horizontal=t?"left":"right"),n},fe=function(e,t){var n={horizontal:t?"right":"left",vertical:"top"};return"end"===e.horizontal&&(n.horizontal=t?"left":"right"),n},he=function(e,t){return{end:t?"left":"right",center:"left",start:t?"right":"left"}[e.horizontal||"end"]},ve=function(e){return{top:"top",middle:"top",bottom:"bottom"}[e.vertical||"bottom"]},me=function(){return(me=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)},ge=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},be=o.forwardRef((function(e,t){Object(i.validatePackage)(s);var n=e.align,r=void 0===n?ye.align:n,a=e.alignOffset,l=e.className,c=e.disabled,u=e.icon,d=e.iconClass,p=e.id,f=e.items,h=e.item,v=e.text,m=e.positionMode,g=void 0===m?ye.positionMode:m,b=e.shape,y=void 0===b?ye.shape:b,k=e.size,C=void 0===k?ye.size:k,O=e.style,w=e.themeColor,x=void 0===w?ye.themeColor:w,_=e.tabIndex,P=e.accessKey,N=e.popupSettings,S=void 0===N?{}:N,I=e.onClick,R=e.onItemClick,D=e.onFocus,j=e.onBlur,T=e.onKeyDown,M=e.onOpen,L=e.onClose,A=ge(e,["align","alignOffset","className","disabled","icon","iconClass","id","items","item","text","positionMode","shape","size","style","themeColor","tabIndex","accessKey","popupSettings","onClick","onItemClick","onFocus","onBlur","onKeyDown","onOpen","onClose"]),B=o.useRef(null),V=o.useRef(null),F=o.useRef(null),K=o.useRef(null),G=o.useCallback((function(){V.current&&V.current.focus()}),[]),z=o.useCallback((function(){return{element:V.current,focus:G}}),[G]);o.useImperativeHandle(B,z),o.useImperativeHandle(t,(function(){return B.current}));var H=o.useState(!1),U=H[0],W=H[1],q=o.useState(!1),X=q[0],Y=q[1],Z=o.useState(-1),$=Z[0],J=Z[1],Q=o.useMemo((function(){return Object(i.guid)()}),[]),ee=Object(i.useDir)(V,e.dir),te="rtl"===ee,ne=o.useMemo((function(){return Object(i.guid)()}),[]);o.useEffect((function(){!function(e,t,n,r){var o=t.horizontal,a=t.vertical;if(e.current){var i=n&&void 0!==n.x?de(n.x):"16px",s=n&&void 0!==n.x?"calc(50% + "+de(n.x)+")":"50%",l=n&&void 0!==n.y?de(n.y):"16px",c=n&&void 0!==n.y?"calc(50% + "+de(n.y)+")":"50%";e.current.style.setProperty(he(t,r),"center"===o?s:i),e.current.style.setProperty(ve(t),"middle"===a?c:l),r&&("top"!==a&&"bottom"!==a||"start"!==o||e.current.style.setProperty("left","unset"),"middle"===a&&"end"===o&&e.current.style.setProperty("right","unset"),"middle"===a&&"start"===o&&e.current.style.setProperty("left","unset"))}}(V,r,a,te)}),[V,r,a,te]),o.useEffect((function(){X&&V&&V.current&&V.current.focus()}),[X,V]);var re=o.useCallback((function(e,t){f&&Object(i.dispatchEvent)(t?M:L,e,z(),void 0)}),[M,L,f]),oe=o.useCallback((function(e){e.target&&!c&&(!f&&I?Object(i.dispatchEvent)(I,e,z(),void 0):(W(!U),Y(!0),J(U?-1:0),re(e,!U)))}),[W,Y,J,I,re,U,f,c]),ae=o.useCallback((function(e){Y(!0),J(U?0:-1),D&&Object(i.dispatchEvent)(D,e,z(),void 0)}),[D,Y,J]),ie=o.useCallback((function(e){Y(!1),W(!1),J(-1),Object(i.dispatchEvent)(j,e,z(),void 0),U&&re(e,!1)}),[j,Y,W,J,re]),se=o.useCallback((function(e){e.preventDefault()}),[]),le=o.useCallback((function(e,t){f&&(f[t].disabled||Object(i.dispatchEvent)(R,e,z(),{itemProps:f[t],itemIndex:t}))}),[R]),ce=o.useCallback((function(e,t){e.target&&f&&(J(t),W(!1),le(e,t),re(e,!1))}),[J,W,le,re]),be=o.useCallback((function(e){document.activeElement===V.current&&e.preventDefault()}),[V,document.activeElement]),ke=o.useCallback((function(e){var t=$,n=f?f.length-1:-1,o="bottom"===r.vertical;switch(e.keyCode){case i.Keys.enter:case i.Keys.space:t>=0&&le(e,t),e.preventDefault(),W(!U),J(U?-1:0);break;case i.Keys.esc:e.preventDefault(),W(!1),J(-1);break;case i.Keys.home:e.preventDefault(),J(0);break;case i.Keys.end:e.preventDefault(),J(n);break;case i.Keys.down:case i.Keys.right:e.preventDefault(),t<n&&!o&&J(t+1),t>0&&o&&J(t-1);break;case i.Keys.up:case i.Keys.left:e.preventDefault(),t>0&&!o&&J(t-1),t<n&&o&&J(t+1)}Object(i.dispatchEvent)(T,e,z(),void 0)}),[T,$,J,te,W]),Ce=o.useMemo((function(){return Object(i.classNames)("k-fab","k-fab-"+x,"k-fab-"+y,{"k-fab-sm":"small"===C,"k-fab-md":"medium"===C,"k-fab-lg":"large"===C,"k-state-disabled":c,"k-pos-absolute":"absolute"===g,"k-pos-fixed":"fixed"===g,"k-state-focus":X},"k-"+r.vertical+"-"+r.horizontal,l)}),[x,C,y,c,g,r,X,l]),Oe=f&&f.map((function(e,t){return o.createElement(ue,me({},e,{key:t,index:t,id:ne+"-"+t,disabled:c||e.disabled,focused:$===t,dataItem:e,item:h,className:Object(i.classNames)(e.className,(n=ee||"ltr",a=r.horizontal,{rtl:{end:"k-text-left",start:"k-text-right"},ltr:{start:"k-text-left",end:"k-text-right"}}[n]["end"===a?"end":"start"])),onClick:ce,onDown:be}));var n,a})),we=u&&!v,xe=(V.current?V.current.offsetWidth:0)/2-16;return o.createElement(o.Fragment,null,o.createElement("button",me({ref:V,id:p||Q,role:f?"menubutton":"button",type:"button","aria-disabled":c,"aria-expanded":f?U:void 0,"aria-haspopup":!!f,"aria-label":(v||"")+" floatingactionbutton","aria-owns":f?ne:void 0,"aria-activedescendant":$>=0&&f?ne+"-"+$:void 0,tabIndex:Object(i.getTabIndex)(_,c),accessKey:P,dir:ee,disabled:c,className:Ce,style:O,onClick:oe,onMouseDown:se,onFocus:ae,onBlur:ie,onKeyDown:ke},A),u?o.createElement("span",{role:"presentation",className:Object(i.classNames)("k-fab-icon k-icon k-i-"+u)}):d?o.createElement("span",{role:"presentation",className:d}):null,v&&o.createElement("span",{className:"k-fab-text"},v)),o.createElement(E.Popup,{ref:K,anchor:V.current,show:U,animate:S.animate,popupClass:Object(i.classNames)("k-popup-transparent k-fab-popup",S.popupClass),anchorAlign:S.anchorAlign||pe(r,te),popupAlign:S.popupAlign||fe(r,te),style:{boxShadow:"none"}},o.createElement("ul",{ref:F,role:"menu","aria-labelledby":p,id:ne,className:Object(i.classNames)("k-fab-items",{"k-fab-items-bottom":"bottom"!==r.vertical,"k-fab-items-top":"bottom"===r.vertical}),style:{paddingLeft:we?xe:void 0,paddingRight:we?xe:void 0}},Oe)))}));be.propTypes={className:a.string,style:a.object,id:a.string,dir:a.string,tabIndex:a.number,accessKey:a.string,disabled:a.bool,icon:a.string,iconClass:a.string,text:a.string,alignOffset:a.shape({x:a.oneOfType([a.number,a.string]),y:a.oneOfType([a.number,a.string])}),align:a.shape({vertical:a.oneOf(["top","middle","bottom"]),horizontal:a.oneOf(["start","center","end"])}),positionMode:a.oneOf(["absolute","fixed"]),shape:a.oneOf(["rectangle","rounded","pill"]),size:a.oneOf(["small","medium","large"]),themeColor:a.oneOf(["primary","secondary","tertiary","info","success","warning","error","dark","light","inverse"])};var ye={align:{vertical:"bottom",horizontal:"end"},shape:"pill",size:"medium",themeColor:"primary",positionMode:"fixed"};be.displayName="KendoFloatingActionButton"},function(e,t){e.exports=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={};t.cacheHsva=function(e,t,n){r[e]={value:t,hsva:n}},t.cacheRgba=function(e,t,n){r[e]={value:t,rgba:n}},t.cacheHex=function(e,t,n){r[e]={value:t,hex:n}},t.removeCachedColor=function(e){delete r[e]},t.getCachedHex=function(e,t){if(e){var n=r[e];return n&&n.value===t?n.hex:void 0}},t.getCachedHsva=function(e,t){if(e){var n=r[e];return n&&n.value===t?n.hsva:void 0}},t.getCachedRgba=function(e,t){if(e){var n=r[e];return n&&n.value===t?n.rgba:void 0}}},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)}),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 i=n(0),s=n(9),l=n(25),c=n(21),u=n(10),d=n(4),p=n(5),f=["rgba","rgb","hex"],h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={inputMode:f[1]},t.onRgbaRChange=function(e){t.dispatchRgbaChange({r:e.value},e)},t.onRgbaGChange=function(e){t.dispatchRgbaChange({g:e.value},e)},t.onRgbaBChange=function(e){t.dispatchRgbaChange({b:e.value},e)},t.onRgbaAChange=function(e){t.dispatchRgbaChange({a:e.value},e)},t}return o(t,e),t.prototype.render=function(){var e=d.provideLocalizationService(this),t=e.toLanguageString(p.colorGradientR,p.messages[p.colorGradientHex]),n=e.toLanguageString(p.colorGradientR,p.messages[p.colorGradientR]),r=e.toLanguageString(p.colorGradientR,p.messages[p.colorGradientG]),o=e.toLanguageString(p.colorGradientR,p.messages[p.colorGradientB]),a=e.toLanguageString(p.colorGradientR,p.messages[p.colorGradientA]);return i.createElement("div",{className:"k-colorgradient-inputs k-hstack"},i.createElement("div",{className:"k-vstack"},i.createElement(c.Button,{look:"flat",icon:"arrows-kpi",className:"k-colorgradient-toggle-mode k-icon-button",onClick:this.onToggleModeChange.bind(this)})),"hex"===this.state.inputMode&&i.createElement("div",{className:"k-vstack k-flex-1"},i.createElement("span",{className:"k-hex-value k-textbox"},i.createElement(l.default,{hex:this.props.hex,onHexChange:this.props.onHexChange,disabled:this.props.disabled})),i.createElement(u.Label,{className:"k-colorgradient-input-label"},t)),("rgb"===this.state.inputMode||"rgba"===this.state.inputMode)&&i.createElement(i.Fragment,null,i.createElement("div",{className:"k-vstack"},i.createElement(s.NumericTextBox,{value:this.props.rgba.r,min:0,max:255,spinners:!1,format:"n",onChange:this.onRgbaRChange,disabled:this.props.disabled}),i.createElement(u.Label,{className:"k-colorgradient-input-label"},n)),i.createElement("div",{className:"k-vstack"},i.createElement(s.NumericTextBox,{value:this.props.rgba.g,min:0,max:255,spinners:!1,format:"n",onChange:this.onRgbaGChange,disabled:this.props.disabled}),i.createElement(u.Label,{className:"k-colorgradient-input-label"},r)),i.createElement("div",{className:"k-vstack"},i.createElement(s.NumericTextBox,{value:this.props.rgba.b,min:0,max:255,spinners:!1,format:"n",onChange:this.onRgbaBChange,disabled:this.props.disabled}),i.createElement(u.Label,{className:"k-colorgradient-input-label"},o))),"rgba"===this.state.inputMode&&i.createElement("div",{className:"k-vstack"},this.props.opacity&&i.createElement(s.NumericTextBox,{value:this.props.rgba.a,min:0,max:1,step:.01,spinners:!1,format:"n2",onChange:this.onRgbaAChange,disabled:this.props.disabled}),this.props.opacity&&i.createElement(u.Label,{className:"k-colorgradient-input-label"},a)))},t.prototype.dispatchRgbaChange=function(e,t){var n=a({},this.props.rgba);void 0!==e.r&&(n.r=e.r),void 0!==e.g&&(n.g=e.g),void 0!==e.b&&(n.b=e.b),void 0!==e.a&&(n.a=e.a),this.props.onRgbaChange(n,t)},t.prototype.onToggleModeChange=function(){var e=f.length-1===f.indexOf(this.state.inputMode)?0:f.indexOf(this.state.inputMode)+1;if(this.props.opacity)this.setState({inputMode:f[e]});else{var t="rgba"===f[e]?e+1:e;this.setState({inputMode:f[t]})}},t}(i.Component);t.default=h,d.registerForIntl(h),d.registerForLocalization(h)},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 a=n(0),i=n(8),s=n(7),l=function(e){function t(t){var n=e.call(this,t)||this;return n.onChange=function(e){var t=e.target.value,r=i.parseColor(t,"rgba");n.setState({hex:t}),s.isPresent(r)&&n.props.onHexChange(t,r,e)},n.onBlur=function(){s.isPresent(i.parseColor(n.state.hex,"rgba"))||n.setState({hex:n.state.originalHex})},n.state={hex:n.props.hex,originalHex:n.props.hex},n}return o(t,e),t.prototype.render=function(){return a.createElement("input",{value:this.state.hex,className:"k-input",onChange:this.onChange,onBlur:this.onBlur,disabled:this.props.disabled})},t.getDerivedStateFromProps=function(e,t){return e.hex!==t.originalHex?{hex:e.hex,originalHex:e.hex}:null},t}(a.Component);t.default=l},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 a=n(0),i=n(4),s=n(5),l=n(8),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=i.provideLocalizationService(this),t=e.toLanguageString(s.colorGradientContrastRatio,s.messages[s.colorGradientContrastRatio]),n=e.toLanguageString(s.colorGradientAALevel,s.messages[s.colorGradientAALevel]),r=e.toLanguageString(s.colorGradientAAALevel,s.messages[s.colorGradientAAALevel]),o=e.toLanguageString(s.colorGradientPass,s.messages[s.colorGradientPass]),c=e.toLanguageString(s.colorGradientFail,s.messages[s.colorGradientFail]),u=l.getContrastFromTwoRGBAs(this.props.rgba,this.props.bgColor),d=4.5.toFixed(1),p=7..toFixed(1),f=t+": "+u.toFixed(2),h=n+": "+d,v=r+": "+p,m=a.createElement("span",{className:"k-contrast-validation k-text-success"},o," ",a.createElement("span",{className:"k-icon k-i-check"})),g=a.createElement("span",{className:"k-contrast-validation k-text-error"},c," ",a.createElement("span",{className:"k-icon k-i-close"}));return a.createElement("div",{className:"k-vbox k-colorgradient-color-contrast"},a.createElement("div",{className:"k-contrast-ratio"},a.createElement("span",{className:"k-contrast-ratio-text"},f),u>=4.5?a.createElement("span",{className:"k-contrast-validation k-text-success"},a.createElement("span",{className:"k-icon k-i-check"}),u>=7&&a.createElement("span",{className:"k-icon k-i-check"})):a.createElement("span",{className:"k-contrast-validation k-text-error"},a.createElement("span",{className:"k-icon k-i-close"}))),a.createElement("div",null,a.createElement("span",null,h),u>=4.5?m:g),a.createElement("div",null,a.createElement("span",null,v),u>=7?m:g))},t}(a.Component);t.ColorContrastLabels=c,i.registerForLocalization(c)},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 a=n(0),i=n(28),s=n(8),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.renderSvgCurveLine=function(){var e=this,t=this.props.metrics,n=function(r,o,a,i,l){var c=(a+i)/2,u=Object.assign({},e.props.hsva,{s:o/t.width,v:1-c/t.height}),d=s.getContrastFromTwoRGBAs(s.getRGBA(s.getColorFromHSV(u)),s.getRGBA(e.props.backgroundColor||""));return a+.5>i?d<r+1&&d>r-1?c:null:l(d,r)?n(r,o,a,i-(i-a)/2,l):n(r,o,a+(i-a)/2,i,l)},r=function(e,r,o){void 0===o&&(o=!1);for(var a=[],i=0;i<=t.width;i+=t.width/r){var s=n(e,i,0,t.height,o?function(e,t){return e<t}:function(e,t){return e>t});null!==s&&a.push([i,s])}return a},o=i.bezierCommand(i.controlPoint(i.line));return i.svgPath(r(4.5,16),o)+i.svgPath(r(4.5,16,!0),o)+i.svgPath(r(7,16),o)+i.svgPath(r(7,16,!0),o)},t.prototype.shouldComponentUpdate=function(e){return e.hsva.h!==this.props.hsva.h||e.hsva.a!==this.props.hsva.a||this.props.backgroundColor!==e.backgroundColor},t.prototype.render=function(){return a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"k-color-contrast-svg",dangerouslySetInnerHTML:{__html:this.renderSvgCurveLine()},style:{position:"absolute",overflow:"visible",pointerEvents:"none",left:0,top:0,zIndex:3}})},t}(a.Component);t.ColorContrastSvg=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.svgPath=function(e,t){return 0===e.length?"":'<path d="'+e.reduce((function(e,n,r,o){return 0===r?"M "+n[0]+","+n[1]:e+" "+t(n,r,o)}),"")+'" fill="none" stroke="white" stroke-width="1"/>'},t.line=function(e,t){var n=t[0]-e[0],r=t[1]-e[1];return{length:Math.sqrt(Math.pow(n,2)+Math.pow(r,2)),angle:Math.atan2(r,n)}},t.controlPoint=function(e){return function(t,n,r,o){var a=e(n||t,r||t),i=a.angle+(o?Math.PI:0),s=.1*a.length;return[t[0]+Math.cos(i)*s,t[1]+Math.sin(i)*s]}},t.bezierCommand=function(e){return function(t,n,r){var o=e(r[n-1],r[n-2],t),a=o[0],i=o[1],s=e(t,r[n-1],r[n+1],!0);return"C "+a+","+i+" "+s[0]+","+s[1]+" "+t[0]+","+t[1]}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(7),o=n(13),a=function(){function e(){this.colorRows=[]}return e.prototype.setColorMatrix=function(e,t){if(this.colorRows=[],r.isPresent(e)&&e.length){t=t||e.length;for(var n=0;n<e.length;n+=t){var o=e.slice(n,t+n);this.colorRows.push(o)}}},e.prototype.getCellCoordsFor=function(e){var t=this;if(r.isPresent(e)){var n=e?o.parseColor(e,!0):e,a=[e];r.isPresent(n)&&a.push(n.toCss(),n.toCssRgba());for(var i=function(e){for(var n=function(n){if(a.some((function(r){return r===t.colorRows[e][n]})))return{value:{row:e,col:n}}},r=0;r<s.colorRows[e].length;r++){var o=n(r);if("object"==typeof o)return o}},s=this,l=0;l<this.colorRows.length;l++){var c=i(l);if("object"==typeof c)return c.value}}},e.prototype.getColorAt=function(e){if(r.isPresent(e)&&r.isPresent(this.colorRows[e.row]))return this.colorRows[e.row][e.col]},e.prototype.getNextCell=function(e,t,n){if(!(r.isPresent(e)&&r.isPresent(e.row)&&r.isPresent(e.col)))return{row:0,col:0};var o=this.clampIndex(e.row+n,this.colorRows.length-1);return{row:o,col:this.clampIndex(e.col+t,this.colorRows[o].length-1)}},e.prototype.clampIndex=function(e,t){return e<0?0:e>t?t:e},e}();t.ColorPaletteService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PALETTEPRESETS={basic:{colors:["#000000","#7f7f7f","#880015","#ed1c24","#ff7f27","#fff200","#22b14c","#00a2e8","#3f48cc","#a349a4"," ffffff","#c3c3c3","#b97a57","#ffaec9","#ffc90e","#efe4b0","#b5e61d","#99d9ea","#7092be","#c8bfe7"],columns:10},office:{colors:["#ffffff","#000000","#e6e6e6","#435569","#4371c4","#ed7e32","#a5a4a5","#febf04","#5a9bd5","#71ae48","#f2f2f3","#7f7f7f","#d1cece","#d5dde3","#dae1f4","#fce5d4","#deeded","#fff2cc","#deeaf6","#e1efd9","#d7d8d8","#585959","#aeabab","#adbaca","#b4c5e7","#f6caac","#dbdbdb","#ffe498","#bcd6ee","#c5e0b2","#bfbfc0","#3f3f3f","#767070","#8595b1","#8fabdb","#f5b183","#c9c8c9","#fed965","#9bc4e5","#a8d08d","#a5a5a6","#262625","#393939","#334050","#2e5496","#c45a11","#7b7b7a","#bf9000","#2f75b5","#548235","#7f7f7f","#0b0c0c","#161616","#222a34","#203764","#843d0b","#525252","#7f6000","#1d4d79","#375623"],columns:10},apex:{colors:["#ffffff","#000000","#c9c2d1","#69676d","#ceb966","#9cb084","#6bb1c9","#6585cf","#7e6bc9","#a379bb","#f2f2f2","#7f7f7f","#f4f2f5","#e0e0e2","#f5f1e0","#ebefe6","#e1eff4","#e0e6f5","#e5e1f4","#ece4f1","#d8d8d8","#595959","#e9e6ec","#c2c1c5","#ebe3c1","#d7dfcd","#c3dfe9","#c1ceeb","#cbc3e9","#dac9e3","#bfbfbf","#3f3f3f","#dedae3","#a4a3a8","#e1d5a3","#c3cfb5","#a6d0de","#a2b5e2","#b1a6de","#c7aed6","#a5a5a5","#262626","#9688a5","#4e4d51","#ae9638","#758c5a","#3d8da9","#365bb0","#533da9","#7d4d99","#7f7f7f","#0c0c0c","#635672","#343336","#746425","#4e5d3c","#295e70","#243c75","#372970","#533366"],columns:10},austin:{colors:["#ffffff","#000000","#caf278","#3e3d2d","#94c600","#71685a","#ff6700","#909465","#956b43","#fea022","#f2f2f2","#7f7f7f","#f4fce4","#dddcd0","#efffc0","#e3e1dc","#ffe0cb","#e8e9df","#ece1d6","#feecd2","#d8d8d8","#595959","#e9f9c9","#bbb9a1","#dfff82","#c8c3ba","#ffc299","#d2d4c0","#dac3ad","#fed9a6","#bfbfbf","#3f3f3f","#dff7ae","#ada598","#cfff43","#ada598","#ffa365","#bcbfa1","#c8a585","#fec67a","#a5a5a5","#262626","#a9ea25","#2e2d21","#6f9400","#544e43","#bf4d00","#6c6f4b","#6f5032","#d77b00","#7f7f7f","#0c0c0c","#74a50f","#1f1e16","#4a6300","#38342d","#7f3300","#484a32","#4a3521","#8f5200"],columns:10},clarity:{colors:["#ffffff","#292934","#f3f2dc","#d2533c","#93a299","#ad8f67","#726056","#4c5a6a","#808da0","#79463d","#f2f2f2","#e7e7ec","#e7e5b9","#f6dcd8","#e9ecea","#eee8e0","#e4dedb","#d8dde3","#e5e8ec","#e9d6d3","#d8d8d8","#c4c4d1","#d5d185","#edbab1","#d3d9d6","#ded2c2","#c9beb8","#b2bcc8","#ccd1d9","#d3aea7","#bfbfbf","#8a8aa3","#aca73b","#e4978a","#bec7c1","#cdbba3","#af9e94","#8c9bac","#b2bac6","#bd857c","#a5a5a5","#56566e","#56531d","#a43925","#6b7c72","#866b48","#554840","#39434f","#5c697b","#5a342d","#7f7f7f","#3b3b4b","#22210b","#6d2619","#47534c","#594730","#39302b","#262d35","#3d4652","#3c231e"],columns:10},slipstream:{colors:["#ffffff","#000000","#b4dcfa","#212745","#4e67c8","#5eccf3","#a7ea52","#5dceaf","#ff8021","#f14124","#f2f2f2","#7f7f7f","#8bc9f7","#c7cce4","#dbe0f4","#def4fc","#edfadc","#def5ef","#ffe5d2","#fcd9d3","#d8d8d8","#595959","#4facf3","#909aca","#b8c2e9","#beeafa","#dbf6b9","#beebdf","#ffcca6","#f9b3a7","#bfbfbf","#3f3f3f","#0d78c9","#5967af","#94a3de","#9ee0f7","#caf297","#9de1cf","#ffb279","#f68d7b","#a5a5a5","#262626","#063c64","#181d33","#31479f","#11b2eb","#81d319","#34ac8b","#d85c00","#c3260c","#7f7f7f","#0c0c0c","#021828","#101322","#202f6a","#0b769c","#568c11","#22725c","#903d00","#821908"],columns:10},metro:{colors:["#ffffff","#000000","#d6ecff","#4e5b6f","#7fd13b","#ea157a","#feb80a","#00addc","#738ac8","#1ab39f","#f2f2f2","#7f7f7f","#a7d6ff","#d9dde4","#e5f5d7","#fad0e4","#fef0cd","#c5f2ff","#e2e7f4","#c9f7f1","#d8d8d8","#595959","#60b5ff","#b3bcca","#cbecb0","#f6a1c9","#fee29c","#8be6ff","#c7d0e9","#94efe3","#bfbfbf","#3f3f3f","#007dea","#8d9baf","#b2e389","#f272af","#fed46b","#51d9ff","#aab8de","#5fe7d5","#a5a5a5","#262626","#003e75","#3a4453","#5ea226","#af0f5b","#c58c00","#0081a5","#425ea9","#138677","#7f7f7f","#0c0c0c","#00192e","#272d37","#3f6c19","#750a3d","#835d00","#00566e","#2c3f71","#0c594f"],columns:10},flow:{colors:["#ffffff","#000000","#dbf5f9","#04617b","#0f6fc6","#009dd9","#0bd0d9","#10cf9b","#7cca62","#a5c249","#f2f2f2","#7f7f7f","#b2e9f2","#b4ecfc","#c7e2fa","#c4eeff","#c9fafc","#c9faed","#e4f4df","#edf2da","#d8d8d8","#595959","#76d9e8","#6adafa","#90c6f6","#89deff","#93f5f9","#94f6db","#cae9c0","#dbe6b6","#bfbfbf","#3f3f3f","#21b2c8","#20c8f7","#59a9f2","#4fceff","#5df0f6","#5ff2ca","#b0dfa0","#c9da91","#a5a5a5","#262626","#105964","#02485c","#0b5394","#0075a2","#089ca2","#0b9b74","#54a838","#7e9532","#7f7f7f","#0c0c0c","#062328","#01303d","#073763","#004e6c","#05686c","#07674d","#387025","#546321"],columns:10},hardcover:{colors:["#ffffff","#000000","#ece9c6","#895d1d","#873624","#d6862d","#d0be40","#877f6c","#972109","#aeb795","#f2f2f2","#7f7f7f","#e1dca5","#f2e0c6","#f0d0c9","#f6e6d5","#f5f2d8","#e7e5e1","#fbc7bc","#eef0e9","#d8d8d8","#595959","#d0c974","#e6c28d","#e2a293","#eeceaa","#ece5b2","#cfccc3","#f78f7a","#dee2d4","#bfbfbf","#3f3f3f","#a29a36","#daa454","#d4735e","#e6b681","#e2d88c","#b7b2a5","#f35838","#ced3bf","#a5a5a5","#262626","#514d1b","#664515","#65281a","#a2641f","#a39428","#655f50","#711806","#879464","#7f7f7f","#0c0c0c","#201e0a","#442e0e","#431b11","#6c4315","#6d621a","#433f35","#4b1004","#5a6243"],columns:10},trek:{colors:["#ffffff","#000000","#fbeec9","#4e3b30","#f0a22e","#a5644e","#b58b80","#c3986d","#a19574","#c17529","#f2f2f2","#7f7f7f","#f7e09e","#e1d6cf","#fcecd5","#eddfda","#f0e7e5","#f3eae1","#ece9e3","#f5e3d1","#d8d8d8","#595959","#f3cc5f","#c4ad9f","#f9d9ab","#dcc0b6","#e1d0cc","#e7d5c4","#d9d4c7","#ebc7a3","#bfbfbf","#3f3f3f","#d29f0f","#a78470","#f6c781","#cba092","#d2b9b2","#dbc1a7","#c6bfab","#e1ac76","#a5a5a5","#262626","#694f07","#3a2c24","#c87d0e","#7b4b3a","#926255","#a17242","#7b7153","#90571e","#7f7f7f","#0c0c0c","#2a1f03","#271d18","#855309","#523226","#614138","#6b4c2c","#524b37","#603a14"],columns:10},verve:{colors:["#ffffff","#000000","#d2d2d2","#666666","#ff388c","#e40059","#9c007f","#68007f","#005bd3","#00349e","#f2f2f2","#7f7f7f","#bdbdbd","#e0e0e0","#ffd7e8","#ffc6dc","#ffb8f1","#f1b2ff","#c3dcff","#b8cfff","#d8d8d8","#595959","#9d9d9d","#c1c1c1","#ffafd1","#ff8eba","#ff71e4","#e365ff","#87baff","#72a0ff","#bfbfbf","#3f3f3f","#696969","#a3a3a3","#ff87ba","#ff5597","#ff2ad7","#d519ff","#4b98ff","#2b71ff","#a5a5a5","#262626","#343434","#4c4c4c","#e90062","#ab0042","#75005f","#4e005f","#00449e","#002676","#7f7f7f","#0c0c0c","#151515","#333333","#9b0041","#72002c","#4e003f","#34003f","#002d69","#00194f"],columns:10},monochrome:{colors:["#000000","#1a1a1a","#333333","#4d4d4d","#666666","#808080","#999999","#b3b3b3","#cccccc","#e6e6e6","#f2f2f2","#ffffff"],columns:12}}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=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 o=n(0),a=n(1),i=n(2),s=n(2),l=n(3),c=n(32),u=n(12),d=n(14),p={palette:d.DEFAULT_PRESET,tileSize:d.DEFAULT_TILE_SIZE},f=function(e){return void 0!==e};t.ColorPicker=o.forwardRef((function(e,t){s.validatePackage(l.packageMetadata);var n=e.popupSettings,a=e.gradientSettings,p=e.paletteSettings,h=e.valid,v=e.disabled,m=e.tabIndex,g=e.view,b=e.icon,y=e.onChange,k=e.onFocus,C=e.onBlur,O=e.onActiveColorClick,w=o.useRef(null),x=o.useRef(null),E=o.useRef(null),_=o.useRef(),P=o.useRef(null),N=o.useCallback((function(){w.current&&w.current.focus()}),[]);o.useImperativeHandle(t,(function(){return{element:w.current,actionElement:P.current,focus:N}}));var S=o.useState(!1),I=S[0],R=S[1],D=o.useState(e.defaultValue),j=D[0],T=D[1],M=o.useState(!1),L=M[0],A=M[1],B=f(e.value),V=f(e.open),F=B?e.value:j,K=V?e.open:L,G=o.useCallback((function(e,t){V||(!e&&!t&&w&&w.current&&w.current.focus(),A(e))}),[V]),z=o.useCallback((function(e){var t=e.altKey,n=e.keyCode;if(n!==i.Keys.esc)return n!==i.Keys.enter||V?void(!t||n!==i.Keys.up&&n!==i.Keys.down||(e.preventDefault(),e.stopPropagation(),n===i.Keys.up&&w&&w.current&&(w.current.focus(),G(!1)),n===i.Keys.down&&G(!0))):(e.preventDefault(),e.stopPropagation(),void G(!K));G(!1)}),[K,V]),H=o.useCallback((function(){V||(x.current?x.current.focus():E.current&&E.current.focus())}),[V]),U=o.useCallback((function(){G(!K,!0)}),[K]),W=o.useCallback((function(e){O&&O.call(void 0,{syntheticEvent:e,nativeEvent:e.nativeEvent,value:F})}),[O,F]),q=o.useCallback((function(e){_.current?(clearTimeout(_.current),_.current=void 0):R(!0),k&&k.call(void 0,{nativeEvent:e.nativeEvent,syntheticEvent:e})}),[k]),X=o.useCallback((function(){G(!1,!0),R(!1),_.current=void 0}),[]),Y=o.useCallback((function(e){clearTimeout(_.current),_.current=window.setTimeout(X),C&&C.call(void 0,{nativeEvent:e.nativeEvent,syntheticEvent:e})}),[C]),Z=o.useCallback((function(e,t){var n=t?e.rgbaValue:e.value;B||T(n),t&&G(!1),y&&y.call(void 0,{value:n,nativeEvent:e.nativeEvent,syntheticEvent:e.syntheticEvent})}),[B,y]),$=o.useCallback((function(e){return Z(e,!0)}),[f,Z]),J=i.useDir(w,e.dir),Q=e.iconClassName||b&&"k-icon k-i-"+b,ee=i.classNames({"k-widget":!0,"k-colorpicker":!0,"k-state-invalid":!1===h}),te=o.useMemo((function(){return i.classNames({"k-picker-wrap":!0,"k-state-disabled":v,"k-state-focused":I})}),[I,v]);return o.createElement("span",{className:ee,dir:J},o.createElement("span",{id:e.id,"aria-labelledby":e.ariaLabelledBy,"aria-describedby":e.ariaDescribedBy,className:te,ref:w,tabIndex:i.getTabIndex(m,v),title:e.title,onKeyDown:z,onFocus:q,onBlur:Y},o.createElement(c.Picker,{dir:J,open:K,onOpen:H,popupAnchor:w.current||void 0,popupSettings:r({},n),input:Q?o.createElement("span",{onClick:W,className:i.classNames("k-tool-icon",Q)},o.createElement("span",{className:"k-selected-color",style:{backgroundColor:F}})):o.createElement("span",{onClick:W,className:"k-selected-color",style:{backgroundColor:F}},!F&&o.createElement("span",{className:"k-icon k-i-line"})),button:o.createElement("span",{onClick:U,className:"k-select",ref:P},o.createElement("span",{className:"k-icon k-i-arrow-s"})),content:o.createElement(o.Fragment,null,("combo"===g||"gradient"===g)&&o.createElement(u.ColorGradient,r({},a,{tabIndex:0,ref:x,value:F,onChange:Z})),("combo"===g||"palette"===g)&&o.createElement(d.ColorPalette,r({},p,{ref:E,value:F,onChange:$})))})))})),t.ColorPicker.propTypes={value:a.string,defaultValue:a.string,disabled:a.bool,view:a.oneOf(["gradient","palette","combo"]),dir:a.string,id:a.string,ariaLabelledBy:a.string,ariaDescribedBy:a.string},t.ColorPicker.defaultProps={view:"palette",gradientSettings:{opacity:!0},paletteSettings:p},t.ColorPicker.displayName="KendoColorPicker"},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=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 o=n(0),a=n(6),i=n(2);t.Picker=function(e){var t=e.popupSettings||{},n="rtl"===e.dir?"right":"left",s=o.useMemo((function(){return{horizontal:n,vertical:"bottom"}}),[n]),l=o.useMemo((function(){return{horizontal:n,vertical:"top"}}),[n]);return o.createElement(o.Fragment,null,e.input,e.button,o.createElement(a.Popup,r({style:r({},(t||{}).style,{direction:e.dir})},t,{anchor:e.popupAnchor,anchorAlign:s,popupAlign:l,show:e.open,onOpen:e.onOpen,onClose:e.onClose,className:i.classNames("k-reset",t.className)}),e.content))},t.Picker.displayName="KendoPickerComponent"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(1),a=n(2),i=n(21),s=n(9),l=n(3),c=n(5);t.FlatColorPicker=r.forwardRef((function(e,t){a.validatePackage(l.packageMetadata);var n=r.useRef(null),o=r.useRef(null),u=r.useRef(null),p=r.useState("ColorGradient"===(e.view||"ColorGradient")),f=p[0],h=p[1],v=r.useState("rgba(255, 255, 255, 1)"),m=v[0],g=v[1],b=r.useState("rgba(255, 255, 255, 1)"),y=b[0],k=b[1],C=r.useCallback((function(){n.current&&n.current.focus()}),[n]);r.useImperativeHandle(n,(function(){return{element:o.current,focus:C,props:e}})),r.useImperativeHandle(t,(function(){return n.current}));var O=r.useCallback((function(e){("ColorGradient"===e&&!f||"ColorPalette"===e&&f)&&h(!f)}),[f]),w=r.useCallback((function(){g("rgba(255, 255, 255, 1)")}),[]),x=r.useCallback((function(e){g(e.value)}),[]),E=r.useCallback((function(){k(m)}),[m]),_=r.useCallback((function(){k("rgba(255, 255, 255, 1)")}),[]),P=r.useCallback((function(){g(y)}),[y]),N=r.useCallback((function(){o.current&&o.current.focus()}),[o]),S=r.useCallback((function(){k(m)}),[m]);return r.createElement("div",{id:e.id,style:e.style,ref:o,tabIndex:a.getTabIndex(e.tabIndex,e.disabled),className:a.classNames("k-flatcolorpicker k-coloreditor",{"k-state-disabled":e.disabled},e.className),onBlur:S},e.header||r.createElement("div",{className:"k-coloreditor-header k-hstack"},r.createElement("div",{className:"k-coloreditor-header-actions k-hstack"},r.createElement(i.ButtonGroup,null,r.createElement(i.Button,{type:"button",togglable:!0,look:"flat",selected:f,onClick:function(){return O("ColorGradient")}},r.createElement("span",{className:"k-icon k-i-color-canvas"})),r.createElement(i.Button,{type:"button",togglable:!0,look:"flat",selected:!f,onClick:function(){return O("ColorPalette")}},r.createElement("span",{className:"k-icon k-i-palette"})))),r.createElement("div",{className:"k-spacer"}),r.createElement("div",{className:"k-coloreditor-header-actions k-hstack"},e.showClearButton&&d.showClearButton&&r.createElement(i.Button,{type:"button",look:"flat",onClick:w},r.createElement("span",{className:"k-icon k-i-reset-color"})),e.showPreview&&d.showPreview&&r.createElement("div",{className:"k-coloreditor-preview k-vstack"},r.createElement("span",{className:"k-coloreditor-preview-color k-color-preview",style:{background:m}}),r.createElement("span",{className:"k-coloreditor-current-color k-color-preview",style:{background:y},onClick:P})))),r.createElement("div",{className:"k-coloreditor-views k-vstack"},f?r.createElement(s.ColorGradient,{ref:u,value:m,onChange:x,onFocus:N}):r.createElement(s.ColorPalette,{value:m,onChange:x,onFocus:N})),e.showButtons&&d.showButtons&&r.createElement("div",{className:"k-coloreditor-footer k-actions k-actions-end"},r.createElement(i.Button,{type:"button",className:"k-coloreditor-cancel",onClick:_},c.messages[c.flatColorPickerCancelBtn]),r.createElement(i.Button,{type:"button",className:"k-coloreditor-apply k-primary",onClick:E},c.messages[c.flatColorPickerApplyBtn])))}));var u={id:o.string,value:o.string,view:o.string,header:o.elementType,showClearButton:o.bool,showPreview:o.bool,showButtons:o.bool},d={showClearButton:!0,showPreview:!0,showButtons:!0};t.FlatColorPicker.displayName="KendoFlatColorPicker",t.FlatColorPicker.propTypes=u,t.FlatColorPicker.defaultProps=d},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)}),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)},i=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var s=n(0),l=n(1),c=n(2),u=n(10),d=n(2),p=n(3),f=function(e){function t(n){var r=e.call(this,n)||this;return r._inputId=c.guid(),r.focus=function(){r._input&&r._input.focus()},r.isInvalid=function(e){var t=!1;for(var n in e)e.hasOwnProperty(n)&&(t=t||e[n]);return t},r.setValidity=function(){r._input&&r._input.setCustomValidity&&(r.validity.valid||!r.validityStyles?r._input.classList.remove("k-state-invalid"):r._input.classList.add("k-state-invalid"),r._input.setCustomValidity(r.validity.valid?"":r.props.validationMessage||""))},r.handleChange=function(e){r.setState({value:e.target.value}),r.valueDuringOnChange=e.target.value,r.props.onChange&&r.props.onChange.call(void 0,{syntheticEvent:e,nativeEvent:e.nativeEvent,value:e.target.value,target:r}),r.valueDuringOnChange=void 0},r.handleAutoFill=function(e){if("autoFillStart"===e.animationName){var t=e.target.parentNode;t&&t.classList.contains("k-state-empty")&&t.classList.remove("k-state-empty")}},d.validatePackage(p.packageMetadata),r.state={value:r.props.defaultValue||t.defaultProps.defaultValue},r}return o(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._input},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.props.value?this.props.value:this.state.value},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){var e={badInput:!!this._input&&this._input.validity.badInput,patternMismatch:!!this._input&&this._input.validity.patternMismatch,rangeOverflow:!!this._input&&this._input.validity.rangeOverflow,rangeUnderflow:!!this._input&&this._input.validity.rangeUnderflow,stepMismatch:!!this._input&&this._input.validity.stepMismatch,tooLong:!!this._input&&this._input.validity.tooLong,typeMismatch:!!this._input&&this._input.validity.typeMismatch,valueMissing:!!this._input&&this._input.validity.valueMissing};return a({},e,{customError:void 0!==this.props.validationMessage,valid:void 0!==this.props.valid?this.props.valid:!this._input||!this.isInvalid(e)})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!0,configurable:!0}),t.prototype.componentDidMount=function(){this.forceUpdate()},t.prototype.componentDidUpdate=function(){this.setValidity()},t.prototype.render=function(){var e=this,t=this.props,n=t.className,r=t.label,o=t.id,l=(t.validationMessage,t.defaultValue,t.valid,t.visited,t.touched,t.modified,t.ariaLabelledBy),d=t.ariaDescribedBy,p=(t.validityStyles,t.style),f=i(t,["className","label","id","validationMessage","defaultValue","valid","visited","touched","modified","ariaLabelledBy","ariaDescribedBy","validityStyles","style"]),h=o||this._inputId,v=!this.validityStyles||this.validity.valid,m=c.classNames(n,"k-textbox"),g=s.createElement("input",a({"aria-labelledby":l,"aria-describedby":d},f,{style:r?void 0:p,value:this.value,id:h,className:m,onChange:this.handleChange,onAnimationStart:this.handleAutoFill,ref:function(t){e._input=t}}));return r?s.createElement(u.FloatingLabel,{label:r,editorId:h,editorValue:String(this.value),editorValid:v,editorDisabled:f.disabled,editorPlaceholder:f.placeholder,children:g,style:p,dir:f.dir}):g},t.propTypes={label:l.string,validationMessage:l.string,required:l.bool,validate:l.bool,id:l.string,ariaLabelledBy:l.string,ariaDescribedBy:l.string},t.defaultProps={defaultValue:"",required:!1,validityStyles:!0},t}(s.Component);t.Input=f},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)}),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 i=n(0),s=n(1),l=n(36),c=n(39),u=n(2),d=n(10),p=n(2),f=n(3),h=function(e){function t(t){var n=e.call(this,t)||this;return n.state={},n._inputId="k-"+u.guid(),n._service=new l.MaskingService,n._isPasted=!1,n._selection=[null,null],n._input=null,n.focus=function(){n._input&&n._input.focus()},n.pasteHandler=function(e){var t=e.target,r=t.selectionStart,o=t.selectionEnd;o!==r&&(n._isPasted=!0,n._selection=[r||0,o||0])},n.onChangeHandler=function(e){var t=e.currentTarget,r=t.value,o=n._selection[0]||0,a=n._selection[1]||0;if(!n.props.mask)return n._isPasted=!1,n._selection=[null,null],void n.triggerOnChange(r,e);var i,s=n.value;if(n._isPasted){n._isPasted=!1;var l=s.length-a,c=r.length-l;i=n._service.maskInRange(r.slice(o,c),s,o,a)}else i=n._service.maskInput(r,s,t.selectionStart||0);n._selection=[i.selection,i.selection],n.triggerOnChange(i.value,e)},n.focusHandler=function(e){n.state.focused||(n.setState({focused:!0}),n.props.onFocus&&n.props.onFocus.call(void 0,{target:n,syntheticEvent:e,nativeEvent:e.nativeEvent}))},n.blurHandler=function(e){n.state.focused&&(n.setState({focused:!1}),n.props.onBlur&&n.props.onBlur.call(void 0,{target:n,syntheticEvent:e,nativeEvent:e.nativeEvent}))},n.setValidity=function(){n.element&&n.element.setCustomValidity(n.validity.valid?"":n.props.validationMessage||"")},p.validatePackage(f.packageMetadata),n}return o(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._input},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return void 0!==this._valueDuringOnChange?this._valueDuringOnChange:void 0!==this.props.value?this.props.value:void 0!==this.state.value?this.state.value:void 0!==this.props.defaultValue?this.props.defaultValue:""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rawValue",{get:function(){return this._service.rawValue(this.value)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){var e=this.value,t=this._service.validationValue(e);return{customError:void 0!==this.props.validationMessage,valid:void 0!==this.props.valid?this.props.valid:!(this.required&&!t||this.props.maskValidation&&this.props.prompt&&-1!==e.indexOf(this.props.prompt)),valueMissing:!t}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:t.defaultProps.required},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!0,configurable:!0}),t.prototype.componentDidUpdate=function(e,t){if(this.element&&this.state.focused&&t.focused){var n=this._selection,r=n[0],o=n[1],a=e.selection,i=this.props.selection;(!a&&i||a&&i&&(a.start!==i.start||a.end!==i.end))&&(r=i.start,o=i.end),null!==r&&null!==o&&this.element.setSelectionRange(r,o)}c.maskingChanged(e,this.props)&&this.updateService(),this.setValidity()},t.prototype.componentDidMount=function(){this.updateService(),this.setValidity()},t.prototype.render=function(){var e=this,t=this.props.id||this._inputId,n=!this.validityStyles||this.validity.valid,r=this.props.style||{},o=i.createElement("span",{dir:this.props.dir,className:u.classNames("k-widget k-maskedtextbox",this.props.className,{"k-state-focused":this.state.focused,"k-state-disabled":this.props.disabled,"k-state-invalid":!n}),style:this.props.label?r:a({width:this.props.width},r)},i.createElement("input",{type:"text",autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:!1,className:"k-textbox",value:this.value,id:t,"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,name:this.props.name,tabIndex:u.getTabIndex(this.props.tabIndex,this.props.disabled,!0),accessKey:this.props.accessKey,title:this.props.title,disabled:this.props.disabled||void 0,readOnly:this.props.readonly||void 0,placeholder:this.props.placeholder,ref:function(t){return e._input=t},onChange:this.onChangeHandler,onPaste:this.pasteHandler,onFocus:this.focusHandler,onBlur:this.blurHandler,onDragStart:c.returnFalse,onDrop:c.returnFalse}));return this.props.label?i.createElement(d.FloatingLabel,{label:this.props.label,editorId:t,editorValue:this.value,editorValid:n,editorDisabled:this.props.disabled,editorPlaceholder:this.props.placeholder,children:o,style:{width:this.props.width},dir:this.props.dir}):o},t.prototype.triggerOnChange=function(e,t){this.setState({value:e}),this.props.onChange&&(this._valueDuringOnChange=e,this.props.onChange.call(void 0,{syntheticEvent:t,nativeEvent:t.nativeEvent,selectionStart:this._selection[0],selectionEnd:this._selection[1],target:this,value:this.value}),this._valueDuringOnChange=void 0)},t.prototype.updateService=function(e){var t=Object.assign({includeLiterals:this.props.includeLiterals,mask:this.props.mask,prompt:this.props.prompt,promptPlaceholder:this.props.promptPlaceholder,rules:this.rules},e);this._service.update(t)},Object.defineProperty(t.prototype,"rules",{get:function(){return Object.assign({},c.defaultRules,this.props.rules)},enumerable:!0,configurable:!0}),t.propTypes={value:s.string,defaultValue:s.string,placeholder:s.string,title:s.string,dir:s.string,id:s.string,style:s.object,className:s.string,ariaLabelledBy:s.string,ariaDescribedBy:s.string,width:s.oneOfType([s.string,s.number]),tabIndex:s.number,accessKey:s.string,disabled:s.bool,readonly:s.bool,prompt:s.string,promptPlaceholder:s.string,includeLiterals:s.bool,maskValidation:s.bool,mask:s.string,rules:function(e,t,n){var r=e.rules;if(void 0!==r)return Object.entries(r).some((function(e){return"string"!=typeof e||!(r[e]instanceof RegExp)}))?null:new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Validation failed.")},selection:s.shape({start:s.number.isRequired,end:s.number.isRequired}),name:s.string,label:s.string,validationMessage:s.string,required:s.bool,valid:s.bool,validityStyles:s.bool,onChange:s.func},t.defaultProps={prompt:"_",promptPlaceholder:" ",includeLiterals:!1,maskValidation:!0,rules:c.defaultRules,required:!1,validityStyles:!0},t}(i.Component);t.MaskedTextBox=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(37),o=n(15),a=function(){function e(){this.rules={},this.prompt="_",this.mask="",this.promptPlaceholder=" ",this.includeLiterals=!1,this.maskTokens=[],this.unmaskTokens=[],this.rawTokens=[],this.validationTokens=[]}return e.prototype.update=function(e){var t=e.mask,n=void 0===t?"":t,r=e.prompt,o=void 0===r?"":r,a=e.promptPlaceholder,i=void 0===a?" ":a,s=e.rules,l=void 0===s?{}:s,c=e.includeLiterals,u=void 0!==c&&c;this.mask=n,this.prompt=o,this.promptPlaceholder=i,this.rules=l,this.includeLiterals=u,this.tokenize()},e.prototype.validationValue=function(e){void 0===e&&(e="");var t=e;return r.sequence(this.validationTokens).run(e).fold((function(e){t=e.join("")})),t},e.prototype.rawValue=function(e){void 0===e&&(e="");var t=e;return this.rawTokens.length?(r.sequence(this.rawTokens).run(e).fold((function(e){t=e.join("")})),t):t},e.prototype.maskRaw=function(e){void 0===e&&(e="");var t=e;return this.maskTokens.length?(r.sequence(this.maskTokens).run(e).fold((function(e){t=e.join("")})),t):t},e.prototype.maskInput=function(e,t,n){return e.length<t.length?this.maskRemoved(e,t,n):this.maskInserted(e,t,n)},e.prototype.maskInRange=function(e,t,n,o){var a="",i=o,s=t.split("").slice(0,n),l=t.split("").slice(o);return r.sequence(this.maskTokens.slice(n,o)).run(e).fold((function(e){a=s.concat(e).concat(l).join("")})),{selection:i,value:a}},e.prototype.maskRemoved=function(e,t,n){var o=this,a="",i=n,s=e.split("").slice(n),l=e.split("").slice(0,n).join(""),c=this.maskTokens.length-(e.length-n);return r.sequence(this.maskTokens.slice(0,c)).run(l,t).fold((function(e){i=o.adjustPosition(e,i),a=e.concat(s).join("")})),{selection:i,value:a}},e.prototype.adjustPosition=function(e,t){var n=e[t];return this.maskTokens[t].isLiteral(n)||n===this.prompt?t:t+1},e.prototype.maskInserted=function(e,t,n){var o=this,a="",i=n,s=e.slice(0,n);return r.sequence(this.unmaskTokens).run(s,t).chain((function(e){i=e.join("").length;var n=t.slice(i);return r.sequence(o.maskTokens).run(e.join("")+n,t)})).fold((function(e){a=e.join("")})),{selection:i,value:a}},Object.defineProperty(e.prototype,"maskTokenCreator",{get:function(){var e=this.prompt,t=this.promptPlaceholder;return{literal:function(e){return o.literal(e)},mask:function(n){return o.mask({prompt:e,promptPlaceholder:t})(n)}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"unmaskTokenCreator",{get:function(){var e=this;return{literal:function(e){return o.unliteral(e)},mask:function(t){return o.unmask(e.prompt)(t)}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rawTokenCreator",{get:function(){var e=this.prompt,t=this.promptPlaceholder,n=this.includeLiterals;return{literal:function(e){return o.rawLiteral(n)},mask:function(n){return o.rawMask({prompt:e,promptPlaceholder:t})}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validationTokenCreator",{get:function(){var e=this.prompt;return{literal:function(e){return o.rawLiteral(!1)},mask:function(t){return o.rawMask({prompt:e,promptPlaceholder:""})}}},enumerable:!0,configurable:!0}),e.prototype.tokenize=function(){var e=this;r.greedy(o.token(this.rules,this.maskTokenCreator)).run(this.mask).fold((function(t,n){e.maskTokens=t})),r.greedy(o.token(this.rules,this.unmaskTokenCreator)).run(this.mask).fold((function(t,n){e.unmaskTokens=t})),r.greedy(o.token(this.rules,this.rawTokenCreator)).run(this.mask).fold((function(t,n){e.rawTokens=t})),r.greedy(o.token(this.rules,this.validationTokenCreator)).run(this.mask).fold((function(t,n){e.validationTokens=t}))},e}();t.MaskingService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(15),o=n(16);t.sequence=function(e){return e.reduce((function(e,t){return n=t,e.chain((function(e){return n.map((function(t){return e.concat([t])}))}));var n}),(t=[],new r.Parser((function(e){return new o.Result(t,e)}))));var t},t.greedy=function(e){return new r.Parser((function(t){for(var n=new o.Result([],t);!t.eof();)n=n.concat(e.run(t));return n}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){void 0===e&&(e=[]),void 0===t&&(t=[]),this.input=e,this.control=t,this.inputCursor=0,this.controlCursor=0}return e.prototype.eof=function(){return this.inputCursor>=this.input.length},e.prototype.next=function(){return{char:this.input[this.inputCursor++],control:this.control[this.controlCursor++]}},e.prototype.peek=function(){return{char:this.input[this.inputCursor],control:this.control[this.controlCursor]}},e.prototype.eat_input=function(){this.inputCursor++},e.prototype.eat_control=function(){this.controlCursor++},e.prototype.eat=function(){this.inputCursor++,this.controlCursor++},e}();t.Stream=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.defaultRules={"#":/[\d\s\+\-]/,"&":/[\S]/,0:/[\d]/,9:/[\d\s]/,"?":/[a-zA-Z\s]/,A:/[a-zA-Z0-9]/,C:/./,L:/[a-zA-Z]/,a:/[a-zA-Z0-9\s]/};t.returnFalse=function(){return!1};t.maskingChanged=function(e,t){return e.includeLiterals!==t.includeLiterals||e.mask!==t.mask||e.prompt!==t.prompt||e.promptPlaceholder!==t.promptPlaceholder||!r(e.rules,t.rules)};var r=function(e,t){if(!!e!=!!t)return!1;if(e===t||!e||!t)return!0;var n=!0;for(var r in e)if(e[r]!==t[r]){n=!1;break}if(n)for(var r in t)if(!e.hasOwnProperty(r)){n=!1;break}return n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(1),a=n(4),i=n(2),s=n(10),l=n(2),c=n(3),u=n(5),d=n(41);t.NumericTextBox=r.forwardRef((function(e,t){l.validatePackage(c.packageMetadata);var n=r.useMemo((function(){return i.guid()}),[]),o=e.id||n,p=a.useInternationalization(),f=a.useLocalization(),h=r.useRef(null),v=r.useRef(null),m=r.useRef(),g=r.useState(!1),b=g[0],y=g[1],k=r.useRef(d.getInitialState()),C=r.useRef(!1),O=r.useRef(),w=r.useRef(e.defaultValue),x=d.formatValue(k.current.focused&&!e.disabled?k.current.currentLooseValue:d.getStateOrPropsValue(e.value,w.current),e.format,p);O.current=x,r.useEffect((function(){h.current&&h.current.setCustomValidity&&h.current.setCustomValidity(S().valid?"":e.validationMessage||"Please enter a valid value!")}));var E=r.useCallback((function(){h.current&&h.current.focus()}),[]),_=r.useCallback((function(){return void 0!==m.current?m.current:d.getStateOrPropsValue(e.value,w.current)}),[e.value]),P=r.useCallback((function(){return e.name}),[e.name]),N=r.useCallback((function(){return e.required}),[e.required]),S=r.useCallback((function(){var t=void 0!==e.validationMessage,n=_();return{customError:t,valid:void 0!==e.valid?e.valid:!(k.current.valueIsOutOfRange||N()&&null==n),valueMissing:null==n}}),[e.validationMessage,e.valid,_,N]),I=r.useCallback((function(){return e.validityStyles}),[e.validityStyles]),R=r.useCallback((function(){return e}),[e]),D=r.useCallback((function(){var e={element:h.current,focus:E};return Object.defineProperty(e,"name",{get:P}),Object.defineProperty(e,"value",{get:_}),Object.defineProperty(e,"validity",{get:S}),Object.defineProperty(e,"validityStyles",{get:I}),Object.defineProperty(e,"required",{get:N}),Object.defineProperty(e,"props",{get:R}),e}),[P,_,S,I,N,E,R]);r.useImperativeHandle(t,D);var j=r.useCallback((function(){return{eventValue:d.getStateOrPropsValue(e.value,w.current),prevLooseValue:O.current,currentLooseValue:h.current.value,selectionStart:h.current.selectionStart,selectionEnd:h.current.selectionEnd,decimalSelect:!1,valueIsCorrected:!1,valueIsOutOfRange:!1,isPaste:C.current,focused:k.current.focused}}),[e.value]),T=r.useCallback((function(t,n){if(!e.disabled){m.current=n.eventValue,w.current=n.eventValue;var r=d.formatValue(d.rangeValue(n.eventValue,e.min,e.max),e.format,p),o=d.rangeValue(p.parseNumber(r,e.format),e.min,e.max);if(o!==n.eventValue&&(n.valueIsOutOfRange=!0,n.eventValue=o,w.current=o),n.valueIsCorrected){var a=v.current;a&&-1===a.className.indexOf("k-state-invalid")&&(a.className+=" k-state-invalid",window.setTimeout((function(){return a.className=a.className.replace(" k-state-invalid","")}),50))}e.value!==n.eventValue&&i.dispatchEvent(e.onChange,t,D(),{value:n.eventValue}),m.current=void 0,k.current=n,y((function(e){return!e}))}}),[e.value,e.onChange,e.disabled,y,D]),M=r.useCallback((function(t){var n=j();C.current=!1,T(t,d.sanitizeNumber(n,e.format,p))}),[e.format,e.onChange,p,T,j]),L=r.useCallback((function(t){var n=j(),r=p.parseNumber(String(n.currentLooseValue),e.format);if(n.selectionEnd>n.selectionStart&&n.selectionEnd-n.selectionStart===String(n.currentLooseValue).length)C.current=!0;else{switch(t.keyCode){case 38:d.increaseValue(r,n,e.step,e.min,e.max,e.format,p);break;case 40:d.decreaseValue(r,n,e.step,e.min,e.max,e.format,p);break;case 13:if(!1===e.rangeOnEnter)return;var o=d.formatValue(d.rangeValue(r,e.min,e.max),e.format,p),a=d.rangeValue(p.parseNumber(o,e.format),e.min,e.max);n.eventValue=a,n.currentLooseValue=d.formatValue(a,e.format,p),n.selectionStart=n.selectionEnd=n.currentLooseValue.length;break;case 110:var i=h.current,s=p.numberSymbols();i&&(n.currentLooseValue=n.currentLooseValue.slice(0,n.selectionStart)+s.decimal+n.currentLooseValue.slice(n.selectionEnd),n.selectionStart=n.selectionEnd=n.selectionStart+1,n=d.sanitizeNumber(n,e.format,p));break;default:return}t.preventDefault(),T(t,n)}}),[e.format,e.min,e.max,e.step,e.onChange,e.rangeOnEnter,T,j]),A=r.useCallback((function(){C.current=!0}),[]),B=r.useCallback((function(t){if(!e.readOnly&&!e.disabled){var n=j();d.increaseValue(p.parseNumber(String(n.currentLooseValue),e.format),n,e.step,e.min,e.max,e.format,p),T(t,n)}}),[e.format,e.min,e.max,e.step,e.onChange,e.readOnly,e.disabled,T,j]),V=r.useCallback((function(t){if(!e.readOnly&&!e.disabled){var n=j();d.decreaseValue(p.parseNumber(String(n.currentLooseValue),e.format),n,e.step,e.min,e.max,e.format,p),T(t,n)}}),[e.format,e.min,e.max,e.step,e.onChange,e.readOnly,e.disabled,T,j]),F=r.useCallback((function(t){document&&document.activeElement===h.current&&h.current&&!e.readOnly&&!e.disabled&&(t.nativeEvent.deltaY<0&&B(t),t.nativeEvent.deltaY>0&&V(t))}),[B,V,e.disabled,e.readOnly]),K=r.useCallback((function(t){k.current.currentLooseValue=O.current,k.current.focused=!0,i.dispatchEvent(e.onFocus,t,D(),{}),y((function(e){return!e}))}),[e.onFocus,y,D]),G=r.useCallback((function(t){k.current=d.getInitialState(),i.dispatchEvent(e.onBlur,t,D(),{}),y((function(e){return!e}))}),[e.onBlur,y,D]),z=r.useCallback((function(e){document&&h.current&&(e.preventDefault(),document.activeElement!==h.current&&h.current.focus())}),[]);r.useLayoutEffect((function(){h.current&&void 0!==k.current.selectionStart&&void 0!==k.current.selectionEnd&&(h.current.selectionStart=k.current.selectionStart,h.current.selectionEnd=k.current.selectionEnd,k.current.selectionStart=void 0,k.current.selectionEnd=void 0)}),[b]);var H=!I()||S().valid,U=r.createElement("span",{dir:e.dir,style:e.label?void 0:{width:e.width},className:"k-widget k-numerictextbox"+(e.className?" "+e.className:""),"aria-disabled":e.disabled?"true":void 0},r.createElement("span",{className:i.classNames("k-numeric-wrap",{"k-state-disabled":e.disabled,"k-state-invalid":!H,"k-state-focused":k.current.focused}),ref:v},r.createElement("input",{value:null===x?"":x,tabIndex:i.getTabIndex(e.tabIndex,e.disabled),accessKey:e.accessKey,disabled:e.disabled,title:e.title,"aria-valuemin":e.min,"aria-valuemax":e.max,"aria-labelledby":e.ariaLabelledBy,"aria-describedby":e.ariaDescribedBy,placeholder:e.placeholder,spellCheck:!1,autoComplete:"off",autoCorrect:"off",type:e.inputType||"tel",className:"k-input k-formatted-value",id:o,name:e.name,readOnly:e.readOnly,onChange:M,onFocus:K,onBlur:G,onKeyDown:L,onPaste:A,onWheel:F,ref:h}),e.children,e.spinners&&r.createElement("span",{className:"k-select",onMouseDown:z},r.createElement("span",{className:"k-link k-link-increase","aria-label":f.toLanguageString(u.numericIncreaseValue,u.messages[u.numericIncreaseValue]),title:f.toLanguageString(u.numericIncreaseValue,u.messages[u.numericIncreaseValue]),onClick:B},r.createElement("span",{className:"k-icon k-i-arrow-n"})),r.createElement("span",{className:"k-link k-link-decrease","aria-label":f.toLanguageString(u.numericDecreaseValue,u.messages[u.numericDecreaseValue]),title:f.toLanguageString(u.numericDecreaseValue,u.messages[u.numericDecreaseValue]),onClick:V},r.createElement("span",{className:"k-icon k-i-arrow-s"})))));return e.label?r.createElement(s.FloatingLabel,{label:e.label,editorId:o,editorValue:null===x?"":x,editorValid:H,editorDisabled:e.disabled,editorPlaceholder:e.placeholder,children:U,style:{width:e.width},dir:e.dir}):U})),t.NumericTextBox.propTypes={value:o.number,defaultValue:o.number,step:o.number,format:o.oneOfType([o.string,o.shape({style:o.oneOf(["decimal","currency","percent","scientific","accounting"]),currency:o.string,currencyDisplay:o.oneOf(["symbol","code","name"]),useGrouping:o.bool,minimumIntegerDigits:o.number,minimumFractionDigits:o.number,maximumFractionDigits:o.number})]),width:o.oneOfType([o.string,o.number]),tabIndex:o.number,accessKey:o.string,title:o.string,placeholder:o.string,min:o.number,max:o.number,spinners:o.bool,disabled:o.bool,readOnly:o.bool,dir:o.string,name:o.string,label:o.string,validationMessage:o.string,required:o.bool,id:o.string,rangeOnEnter:o.bool,ariaLabelledBy:o.string,ariaDescribedBy:o.string,onChange:o.func,onFocus:o.func,onBlur:o.func},t.NumericTextBox.displayName="KendoNumericTextBox",t.NumericTextBox.defaultProps={step:1,spinners:!0,disabled:!1,required:!1,validityStyles:!0,rangeOnEnter:!0,onChange:function(e){},onFocus:function(e){},onBlur:function(e){}}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=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 o=/\d/;t.getInitialState=function(){return{eventValue:null,prevLooseValue:"",currentLooseValue:"",focused:!1,selectionStart:void 0,selectionEnd:void 0,decimalSelect:!1,valueIsCorrected:!1,valueIsOutOfRange:!1}},t.getStateOrPropsValue=function(e,t){return void 0!==e?e:t},t.formatValue=function(e,t,n){return null===e&&void 0===e?"":"string"==typeof e?e:n.formatNumber(e,t)},t.fractionLength=function(e){return(String(e).split(".")[1]||"").length};var a=function(e,n){return Math.max(t.fractionLength(e),t.fractionLength(n))};t.limitPrecision=function(e){return Math.min(e,15)},t.toFixedPrecision=function(e,n){var r=t.limitPrecision(n);return parseFloat(e.toFixed(r))},t.increaseValue=function(e,n,r,i,s,l,c){var u=a(e||0,r||0),d=t.rangeValue(t.toFixedPrecision((e||0)+(r||0),u),i,s);n.eventValue=d,n.currentLooseValue=t.formatValue(d,l,c),n.selectionStart=n.selectionEnd=t.getLastNumberIndex(n.currentLooseValue,o)},t.decreaseValue=function(e,n,r,i,s,l,c){var u=a(e||0,r||0),d=t.rangeValue(t.toFixedPrecision((e||0)-(r||0),u),i,s);n.eventValue=d,n.currentLooseValue=t.formatValue(d,l,c),n.selectionStart=n.selectionEnd=t.getLastNumberIndex(n.currentLooseValue,o)},t.rangeValue=function(e,t,n){return null==e?e:e>1||e<1||1===e?void 0!==n&&void 0!==t&&n<t?null:(void 0!==n&&e>n&&(e=n),void 0!==t&&e<t&&(e=t),e):null},t.getMaxCursorPosition=function(e,t){var n=t.findIndex((function(t){t[0];var n=t[1];return Boolean(n)&&e.indexOf(n)===e.length-n.length}));if(-1===n)return-1;var r=t[n][1];return e.length-r.length},t.getMinCursorPosition=function(e,t){var n=t.findIndex((function(t){var n=t[0];t[1];return Boolean(n)&&0===e.indexOf(n)}));return-1===n?-1:t[n][0].length},t.rangeSelection=function(e,n,r){var o=t.getMaxCursorPosition(e,n);if(-1!==o&&r.selectionStart>o)r.selectionStart=r.selectionEnd=o;else{r.selectionStart>e.length&&(r.selectionStart=r.selectionEnd=e.length);var a=t.getMinCursorPosition(e,n);-1!==a&&r.selectionStart<a&&(r.selectionStart=r.selectionEnd=a),-1===r.selectionStart&&(r.selectionStart=r.selectionEnd=0)}},t.setSelection=function(e,n,r,o){e.selectionStart=e.selectionEnd=n,t.rangeSelection(r,o,e)},t.setInvalid=function(e,n,r,o){e.eventValue=o.parseNumber(e.prevLooseValue,n),e.currentLooseValue=e.prevLooseValue,e.valueIsCorrected=!0,t.setSelection(e,e.selectionStart,e.currentLooseValue,r)},t.isMinusSymbolAdded=function(e,t){var n=String(e.currentLooseValue),r=String(e.prevLooseValue);return n.split(t.minusSign).length!==r.split(t.minusSign).length&&n.length===r.length+t.minusSign.length},t.isMinusSymbolRemoved=function(e,t){var n=String(e.currentLooseValue),r=String(e.prevLooseValue);return-1===n.indexOf(t.minusSign)&&-1!==r.indexOf(t.minusSign)},t.isDecimalDuplicated=function(e,t){return String(e.currentLooseValue).split(t.decimal).length>2},t.getFormatPrefixSufix=function(e,n){var r=n.formatNumber(1111111.1111111,e),o=n.formatNumber(-1111111.1111111,e),a=n.formatNumber(0,e),i=n.formatNumber(1,e),s=t.getPrefix(r),l=t.getPrefix(o),c=t.getPrefix(a),u=t.getPrefix(i);return{positiveInfo:[s,t.getSuffix(r)],negativeInfo:[l,t.getSuffix(o)],zeroInfo:[c,t.getSuffix(a)],oneInfo:[u,t.getSuffix(i)]}},t.getFormatSymbols=function(e,t){var n=t.formatNumber(1111111.1111111,e),r=t.formatNumber(-1111111.1111111,e),o=t.formatNumber(0,e),a=t.formatNumber(1,e),i=t.numberSymbols(),s=new RegExp("[\\d\\"+i.decimal+i.group+"]","g");return[n,r,o,a].map((function(e){return e.replace(s,"")})).join("").split("").filter((function(e,t,n){return n.indexOf(e)===t})).join("")},t.getInitialPosition=function(e,n){var r=e.indexOf(n.decimal);return r>-1?r:t.getLastNumberIndex(e,o)},t.reverseString=function(e){return e.split("").reverse().join("")},t.getLastNumberIndex=function(e,n){return e.length-t.reverseString(e).search(n)},t.getPrefix=function(e){return e.split(e[e.search(o)])[0]},t.getSuffix=function(e){var n=t.reverseString(e);return t.reverseString(n.split(n[n.search(o)])[0])},t.getFirstNumberIndex=function(e,t){return e.search(t)},t.getDecimalCount=function(e,t){var n=e.indexOf(t);return n>-1?e.length-n-1:0},t.changeBasedSelection=function(e,t,n,r,a){var i="0"===e.replace(a,"")[0],s="0"===t.replace(a,"")[0];if(i&&!s)return n-1;if(s&&r)return n+1;for(var l=0,c=0;c<n;c++)o.test(e.charAt(c))&&l++;for(var u=0;l>0&&t.length>u;)o.test(t.charAt(u))&&l--,u++;return u},t.sanitizeNumber=function(e,n,a){var i=r({},e),s=i.prevLooseValue,l=a.numberSymbols(),c=t.getFormatSymbols(n,a),u=String(i.currentLooseValue),d=String(s),p=new RegExp("[^\\d\\"+l.decimal+"]","g"),f=new RegExp("[^\\d\\"+l.decimal+"\\"+l.group+"]","g"),h=new RegExp("[\\d\\"+l.decimal+"\\"+l.group+"]"),v=u.replace(p,""),m=t.getFirstNumberIndex(u,o),g=-1===m?-1:t.getLastNumberIndex(u,o),b=u.indexOf(l.decimal),y=(u.substring(0,m)+u.substring(m,g).replace(f,"")+u.substring(g,u.length)).split("").filter((function(e){return-1!==c.indexOf(e)||-1!==e.search(h)})).join(""),k=a.formatNumber(.31111111111111117,n).replace(p,""),C=k.indexOf(l.decimal),O=C>-1?k.length-C-1:0,w=a.formatNumber(1,n).replace(p,""),x=w.indexOf(l.decimal),E=x>-1?w.length-x-1:0,_=t.getFormatPrefixSufix(n,a),P=[_.positiveInfo,_.negativeInfo,_.zeroInfo,_.oneInfo],N=1!==P.findIndex((function(e){return-1!==e.findIndex((function(e){return Boolean(e)}))})),S=u.length>0&&u.length<d.length,I=n&&"p"===n[0]&&u&&-1===u.indexOf(l.percentSign);if(!i.isPaste){if(""===u)return i.eventValue=null,i.currentLooseValue="",i;if(i.currentLooseValue===l.minusSign&&a.formatNumber(-0,n)!==d)return i.eventValue=-0,i.currentLooseValue=t.formatValue(i.eventValue,n,a),t.setSelection(i,t.getInitialPosition(i.currentLooseValue,l),i.currentLooseValue,P),i;if(t.isMinusSymbolAdded(i,l)){var R=a.parseNumber(s,n);i.eventValue=-(null!==R?R:0),i.currentLooseValue=t.formatValue(i.eventValue,n,a);var D=t.getFirstNumberIndex(i.currentLooseValue,o),j=t.getFirstNumberIndex(d,o);return t.setSelection(i,i.selectionEnd-1+(D-j),i.currentLooseValue,P),i}if(t.isMinusSymbolRemoved(i,l))return i.eventValue=a.parseNumber(i.currentLooseValue,n),t.setSelection(i,i.selectionStart,i.currentLooseValue,P),i;if(i.currentLooseValue===l.decimal){i.eventValue=0;var T=t.formatValue(i.eventValue,n,a);if(0===E&&O>0){var M=t.getLastNumberIndex(T,o);i.currentLooseValue=T.substring(0,M)+l.decimal+T.substring(M)}else i.currentLooseValue=T;return t.setSelection(i,t.getInitialPosition(i.currentLooseValue,l)+1,i.currentLooseValue,P),i}if(t.isDecimalDuplicated(i,l))return t.setInvalid(i,n,P,a),i;if(I)return i.eventValue=a.parseNumber(u,n)/100,i.currentLooseValue=t.formatValue(i.eventValue,n,a),i;if(String(i.currentLooseValue).replace(/[^\d]/g,"").length>15)return t.setInvalid(i,n,P,a),i;if(v!==u&&u&&N)if(-1===P.findIndex((function(e){var t=e[0],n=e[1],r=u.indexOf(t),o=u.indexOf(n),a=0===r,i=o===u.length-n.length,s=r+t.length!==m&&-1!==m&&u[r+t.length]!==l.decimal,c=o!==g&&-1!==g&&u[o-1]!==l.decimal;return t&&n?!s&&!c&&(a&&i):t?!s&&a:!!n&&(!c&&i)})))return t.setInvalid(i,n,P,a),i;if(v[v.length-1]===l.decimal&&O>0)return i.eventValue=a.parseNumber(u,n),i.currentLooseValue=y,i;if(i.currentLooseValue&&s)if((c+l.decimal+l.group).split("").findIndex((function(e){return u.split("").filter((function(t){return t===e})).length<d.split("").filter((function(t){return t===e})).length&&u.length+1===d.length&&(e!==l.decimal||0!==t.getDecimalCount(d.replace(p,""),l.decimal))}))>-1)return i.eventValue=a.parseNumber(e.prevLooseValue,n),i.currentLooseValue=e.prevLooseValue,i;var L=t.getDecimalCount(v,l.decimal),A="0"===v[v.length-1];if(S&&A&&L<E)return i.eventValue=a.parseNumber(i.currentLooseValue,n),i.currentLooseValue=t.formatValue(i.eventValue,n,a),i;if(L>0){var B=u.substring(0,b);if(A&&(!B||0!==d.indexOf(B))){i.eventValue=a.parseNumber(i.currentLooseValue,n);var V=t.formatValue(i.eventValue,n,a);return t.setSelection(i,t.changeBasedSelection(u,V,i.selectionEnd,S,p),V,P),i.currentLooseValue=V,i}if(L>O){var F=u.indexOf(l.decimal),K=u.substring(0,F)+u.substring(F,F+1+O)+u.substring(g,String(i.currentLooseValue).length);return i.eventValue=a.parseNumber(K,n),i.currentLooseValue=K,t.setSelection(i,i.selectionStart,K,P),i}if(E!==O&&L<=O&&A)return i.eventValue=a.parseNumber(i.currentLooseValue,n),i.currentLooseValue=y,i;if(L<E)return i.eventValue=a.parseNumber(i.currentLooseValue,n),i.currentLooseValue=t.formatValue(i.eventValue,n,a),i}}if(i.eventValue=a.parseNumber(i.currentLooseValue,n),I&&(i.eventValue=i.eventValue/100),"number"==typeof i.eventValue){V=t.formatValue(i.eventValue,n,a);1===u.length?t.setSelection(i,t.getInitialPosition(V,l),V,P):t.setSelection(i,t.changeBasedSelection(u,V,i.selectionEnd,S,p),V,P),i.currentLooseValue=V}else i.currentLooseValue=t.formatValue(a.parseNumber(v),n,a);return i}},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)}),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 i=n(0),s=n(1),l=n(2),c=n(4),u=n(5),d=n(17),p=n(2),f=n(3),h=function(e){function t(t){var n=e.call(this,t)||this;return n.state={value:void 0===n.props.defaultValue?n.props.min:n.props.defaultValue,focused:!1,dir:n.props.dir},n.buttons=function(e){return e.enabled?i.createElement(i.Fragment,null,i.createElement("a",{className:"k-button k-button-decrease",style:{position:"relative"},title:e.decrementTitle,onClick:e.decrement},i.createElement("span",{className:l.classNames("k-icon",{"k-i-arrow-s":n.props.vertical,"k-i-arrow-w":!n.props.vertical})})),e.children,i.createElement("a",{className:"k-button k-button-increase",style:{position:"relative"},title:e.incrementTitle,onClick:e.increment},i.createElement("span",{className:l.classNames("k-icon",{"k-i-arrow-n":n.props.vertical,"k-i-arrow-e":!n.props.vertical})}))):e.children},n.focus=function(){n._element&&n._element.focus()},n.isLabel=function(e){for(var t=e;t;){if(Boolean(t.getAttribute(d.SLIDER_LABEL_ATTRIBUTE)))return!0;t=t.parentElement}return!1},n.onFocus=function(){n.setState({focused:!0})},n.onBlur=function(){n.setState({focused:!1})},n.onKeyDown=function(e){var t=void 0;e.keyCode===l.Keys.left||e.keyCode===l.Keys.down?t=n.state.value-(n.props.step||0):e.keyCode===l.Keys.right||e.keyCode===l.Keys.up?t=n.state.value+(n.props.step||0):e.keyCode===l.Keys.home?t=n.props.min:e.keyCode===l.Keys.end&&(t=n.props.max),void 0!==t&&(e.preventDefault(),n.change(e,t))},n.decrement=function(e){e.preventDefault(),n.change(e,n.state.value-(n.props.step||0))},n.increment=function(e){e.preventDefault(),n.change(e,n.state.value+(n.props.step||0))},n.dragStart=function(e){n.isLabel(e.event.originalEvent.target)||(e.event.isTouch&&e.event.originalEvent.preventDefault(),n.drag(e))},n.dragOver=function(e){e.event.originalEvent.preventDefault(),n.drag(e)},n.drag=function(e){var t=e.element.getBoundingClientRect(),r=(n.props.vertical?t.bottom-e.event.clientY:"rtl"===n.state.dir?t.right-e.event.clientX:e.event.clientX-t.left)/(n.props.vertical?t.height:t.width);n.change(e,n.props.min+r*(n.props.max-n.props.min))},p.validatePackage(f.packageMetadata),n}return o(t,e),t.getDerivedStateFromProps=function(e,t){var n=void 0!==e.value?e.value:t.value,r=e.min,o=e.max;return void 0===n?null:{value:Math.min(Math.max(n,r),o)}},t.prototype.componentDidMount=function(){if(!this.state.dir&&window&&this._element){var e=window.getComputedStyle(this._element).direction;e&&this.setState({dir:e})}},t.prototype.render=function(){var e,t,n=this,r=c.provideLocalizationService(this),o=(this.state.value-this.props.min)/(this.props.max-this.props.min)*100,s=this.props.vertical?{marginTop:"0.5rem",marginBottom:"0.5rem"}:{marginLeft:"0.5rem",marginRight:"0.5rem"},d=this.props.vertical?{paddingTop:0,height:"100%"}:{};return i.createElement("div",{ref:function(e){return n._element=e},"aria-valuemin":this.props.min,"aria-valuemax":this.props.max,"aria-valuenow":this.state.value,"aria-disabled":this.props.disabled?"true":void 0,"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,dir:this.state.dir,role:"slider",id:this.props.id,style:this.props.style,tabIndex:l.getTabIndex(this.props.tabIndex,this.props.disabled,void 0),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,className:l.classNames("k-slider k-widget",{"k-state-focused":this.state.focused,"k-state-disabled":this.props.disabled,"k-slider-horizontal":!this.props.vertical,"k-slider-vertical":this.props.vertical},this.props.className)},i.createElement("div",{className:l.classNames("k-slider-wrap",{"k-slider-buttons":this.props.buttons}),style:{display:"flex",position:"relative",flexDirection:this.props.vertical?"column-reverse":"row"}},i.createElement(this.buttons,{enabled:this.props.buttons,decrement:this.decrement,increment:this.increment,incrementTitle:r.toLanguageString(u.sliderIncreaseValue,u.messages[u.sliderIncreaseValue]),decrementTitle:r.toLanguageString(u.sliderDecreaseValue,u.messages[u.sliderDecreaseValue])},i.createElement(l.Draggable,{onDrag:this.dragOver,onPress:this.dragStart},i.createElement("div",{className:"k-slider-track-wrap",style:a({flexGrow:1,position:"relative",touchAction:"none"},s)},this.props.children&&i.createElement("ul",{className:"k-reset k-slider-items",style:a({margin:0},d)},i.Children.map(this.props.children,(function(e){return e&&i.cloneElement(e,{position:100*(e.props.position-n.props.min)/(n.props.max-n.props.min),vertical:n.props.vertical},e.props.children)}))),i.createElement("div",{className:"k-slider-track",style:this.props.vertical?{bottom:0,height:"100%"}:(e={},e["rtl"===this.state.dir?"right":"left"]=0,e.width="100%",e),ref:function(e){return n._sliderTrack=e}},i.createElement("div",{className:"k-slider-selection",style:this.props.vertical?{height:o+"%"}:{width:o+"%"}}),i.createElement("a",{className:"k-draghandle",title:r.toLanguageString(u.sliderDragTitle,u.messages[u.sliderDragTitle]),style:this.props.vertical?{bottom:"calc("+o+"% - 8px)",zIndex:1}:(t={},t["rtl"===this.state.dir?"right":"left"]="calc("+o+"% - 8px)",t.zIndex=1,t)})))))))},Object.defineProperty(t.prototype,"sliderTrack",{get:function(){return this._sliderTrack},enumerable:!0,configurable:!0}),t.prototype.change=function(e,t){t=Math.min(Math.max(t,this.props.min),this.props.max),this.setState({value:t}),l.dispatchEvent(this.props.onChange,e,this,{value:t})},t.propTypes={min:s.number.isRequired,max:s.number.isRequired,value:s.number,vertical:s.bool,id:s.string,ariaLabelledBy:s.string,ariaDescribedBy:s.string},t}(i.Component);t.Slider=h,c.registerForLocalization(h)},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=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 o=n(0),a=n(1),i=n(2),s=n(5),l=n(4),c=n(44),u=n(2),d=n(3);t.RangeSlider=o.forwardRef((function(e,t){var n,a,p,h;u.validatePackage(d.packageMetadata);var v=o.useRef(null),m=o.useRef(null),g=o.useRef(null),b=o.useRef(null),y=o.useRef(null),k=o.useCallback((function(){b.current&&b.current.focus()}),[b]);o.useImperativeHandle(v,(function(){return{element:m.current,focus:k,props:e}})),o.useImperativeHandle(t,(function(){return v.current}));var C=o.useMemo((function(){return e.min}),[e.min]),O=o.useMemo((function(){return e.max}),[e.max]),w=o.useMemo((function(){return void 0!==e.step?e.step:f.step}),[e.step,f.step]),x=i.useDir(m,e.dir),E=o.useState(""),_=E[0],P=E[1],N=function(e,t,n){var a=o.useState(e),i=a[0],s=a[1],l=o.useCallback((function(e){var o=c.rangeReducer(t.state||i,r({},e,t));n&&n(o,e.event),s(o)}),[t,n]);return[i,l]}(e.defaultValue||f.defaultValue,{min:C,max:O,step:w,state:e.value},(function(t,n){e.onChange&&v.current&&e.onChange.call(void 0,{value:t,target:v.current,syntheticEvent:n})})),S=N[0],I=N[1],R=o.useMemo((function(){return e.value||S}),[e.value,S]),D=o.useRef(null),j=o.useRef(null),T=o.useMemo((function(){return(R.start-C)/(O-C)*100}),[R.start,C,O]),M=o.useMemo((function(){return(R.end-C)/(O-C)*100}),[R.end,C,O]),L=o.useMemo((function(){return e.vertical?{paddingTop:0,height:"100%"}:{}}),[e.vertical]),A=o.useMemo((function(){return e.vertical?{marginTop:"0.5rem",marginBottom:"0.5rem"}:{marginLeft:"0.5rem",marginRight:"0.5rem"}}),[e.vertical]),B=l.useLocalization(),V=o.useCallback((function(t){if(j.current){t.originalEvent.preventDefault();var n=j.current.getBoundingClientRect(),r=e.vertical?n.bottom-t.clientY:"rtl"===x?n.right-t.clientX:t.clientX-n.left,o=e.vertical?n.height:n.width;return C+r/o*(O-C)}}),[j,e.vertical,x,C,O,S.start,S.end,e.value&&e.value.start,e.value&&e.value.end]),F=o.useCallback((function(e){return e<=R.start?"start":e>=R.end?"end":2*e<R.end+R.start?"start":"end"}),[S.start,S.end,e.value&&e.value.start,e.value&&e.value.end]),K=o.useCallback((function(e){switch(e.keyCode){case i.Keys.right:e.preventDefault(),I({type:"rtl"===x?c.RANGE_ACTION.decrease:c.RANGE_ACTION.increase,key:"start",event:e});break;case i.Keys.up:e.preventDefault(),I({type:c.RANGE_ACTION.increase,key:"start",event:e});break;case i.Keys.left:e.preventDefault(),I({type:"rtl"===x?c.RANGE_ACTION.increase:c.RANGE_ACTION.decrease,key:"start",event:e});break;case i.Keys.down:e.preventDefault(),I({type:c.RANGE_ACTION.decrease,key:"start",event:e});break;case i.Keys.home:e.preventDefault(),I({type:c.RANGE_ACTION.min,key:"start",event:e});break;case i.Keys.end:e.preventDefault(),I({type:c.RANGE_ACTION.max,key:"start",event:e})}}),[I]),G=o.useCallback((function(e){switch(e.keyCode){case i.Keys.right:e.preventDefault(),I({type:"rtl"===x?c.RANGE_ACTION.decrease:c.RANGE_ACTION.increase,key:"end",event:e});break;case i.Keys.up:e.preventDefault(),I({type:c.RANGE_ACTION.increase,key:"end",event:e});break;case i.Keys.left:e.preventDefault(),I({type:"rtl"===x?c.RANGE_ACTION.increase:c.RANGE_ACTION.decrease,key:"end",event:e});break;case i.Keys.down:e.preventDefault(),I({type:c.RANGE_ACTION.decrease,key:"end",event:e});break;case i.Keys.home:e.preventDefault(),I({type:c.RANGE_ACTION.min,key:"end",event:e});break;case i.Keys.end:e.preventDefault(),I({type:c.RANGE_ACTION.max,key:"end",event:e})}}),[I,x]),z=o.useCallback((function(e){var t=V(e),n=F(t);P(n),"end"===n?y.current.focus():b.current.focus();var r="end"===n?c.RANGE_ACTION.end:c.RANGE_ACTION.start;I({type:r,payload:t,event:e})}),[e.vertical,C,O,I]);return i.useDraggable(j,{onPress:z,onDrag:function(e){var t=V(e),n="end"===_?c.RANGE_ACTION.end:c.RANGE_ACTION.start;I({type:n,payload:t,event:e})},onRelease:function(e){var t=V(e),n="end"===_?c.RANGE_ACTION.end:c.RANGE_ACTION.start;I({type:n,payload:t,event:e}),P("")}}),o.createElement("div",{role:"slider",id:e.id,style:e.style,ref:m,dir:x,className:i.classNames("k-widget k-slider",{"k-rtl":"rtl"===x,"k-state-disabled":e.disabled,"k-slider-vertical":e.vertical,"k-slider-horizontal":!e.vertical},e.className),"aria-labelledby":e.ariaLabelledBy,"aria-describedby":e.ariaDescribedBy},o.createElement("div",{className:"k-slider-wrap",style:{display:"flex",position:"relative",flexDirection:e.vertical?"column-reverse":"row"}},o.createElement("div",{ref:j,className:"k-slider-track-wrap",style:r({flexGrow:1,position:"relative",touchAction:"none"},A)},e.children&&o.createElement("ul",{className:"k-reset k-slider-items",style:r({margin:0},L)},o.Children.map(e.children,(function(t){return t&&o.cloneElement(t,{position:100*(t.props.position-e.min)/(e.max-e.min),vertical:e.vertical},t.props.children)}))),o.createElement("div",{ref:D,className:"k-slider-track",style:e.vertical?{bottom:0,height:"100%"}:(n={},n["rtl"===x?"right":"left"]=0,n.width="100%",n)},null!==T&&null!==M&&o.createElement("div",{"data-selection":!0,ref:g,title:R.start+" - "+R.end,className:"k-slider-selection",style:e.vertical?{height:M-T+"%",bottom:T+"%"}:(a={},a["rtl"===x?"right":"left"]=T+"%",a.width=M-T+"%",a)}),o.createElement("a",{ref:b,role:"slider",tabIndex:i.getTabIndex(e.startTabIndex,e.disabled,void 0),"aria-valuemin":C,"aria-valuemax":Math.max(O,R.end),"aria-valuenow":R.start,"aria-disabled":e.disabled?"true":void 0,className:"k-draghandle",title:B.toLanguageString(s.sliderDragTitle,s.messages[s.sliderDragTitle]),style:e.vertical?{bottom:"calc("+T+"% - 8px)",zIndex:1}:(p={},p["rtl"===x?"right":"left"]="calc("+T+"% - 8px)",p.zIndex=1,p),onKeyDown:K}),o.createElement("a",{ref:y,role:"slider",tabIndex:i.getTabIndex(e.endTabIndex,e.disabled,void 0),"aria-valuemin":Math.min(C,R.start),"aria-valuemax":O,"aria-valuenow":R.end,"aria-disabled":e.disabled?"true":void 0,className:"k-draghandle",title:B.toLanguageString(s.sliderDragTitle,s.messages[s.sliderDragTitle]),style:e.vertical?{bottom:"calc("+M+"% - 8px)",zIndex:1}:(h={},h["rtl"===x?"right":"left"]="calc("+M+"% - 8px)",h.zIndex=1,h),onKeyDown:G})))))}));var p={value:function(e,t,n){if(e.value){var r=e.value.start,o=e.value.end,a=e.min,i=e.max;if(r>o||r>i||r<a||o>i||o<a||o<r)return new Error("Invalid prop + "+t+" supplied to "+n+".\n The { start, end } value must be between the min & max value and { start, end } must be start < end.\n ")}return null},defaultValue:function(e,t,n){if(e.defaultValue){var r=e.defaultValue.start,o=e.defaultValue.end,a=e.min,i=e.max;if(r>o||r>i||r<a||o>i||o<a||o<r)return new Error("Invalid prop + "+t+" supplied to "+n+".\n The { start, end } value must be between the min & max value and { start, end } must be start < end.\n ")}return null},onChange:a.func,step:a.number,min:function(e,t,n){var r=e[t],o=e.min,a=e.max;return void 0===o?new Error("Invalid prop + "+t+" supplied to "+n+".\n "+t+" value can not be undefined.\n "):r&&o>=a?new Error("Invalid prop + "+t+" supplied to "+n+".\n "+t+" value can not be equal to or bigger than the max value.\n "):null},max:function(e,t,n){var r=e[t],o=e.min,a=e.max;return void 0===a?new Error("Invalid prop + "+t+" supplied to "+n+".\n "+t+" value can not be undefined.\n "):r&&a<=o?new Error("Invalid prop + "+t+" supplied to "+n+".\n "+t+" value can not be equal to or smaller than the min value.\n "):null},vertical:a.bool,disabled:a.bool,dir:a.oneOf(["ltr","rtl"])},f={step:1,defaultValue:{start:0,end:0},vertical:!1,disabled:!1};t.RangeSlider.displayName="KendoReactRangeSlider",t.RangeSlider.propTypes=p,t.RangeSlider.defaultProps=f},function(e,t,n){"use strict";var r,o=this&&this.__assign||function(){return(o=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}),function(e){e.start="start",e.end="end",e.min="min",e.max="max",e.increase="increase",e.decrease="decrease"}(r=t.RANGE_ACTION||(t.RANGE_ACTION={})),t.rangeReducer=function(e,t){var n,a;switch(t.type){case r.start:if(void 0===t.payload)return e;n={start:t.payload>e.end?e.end:Math.max(t.payload,t.min),end:e.end};break;case r.end:if(void 0===t.payload)return e;n={start:e.start,end:t.payload<e.start?e.start:Math.min(t.payload,t.max)};break;case r.min:n="start"===t.key?o({},e,{start:t.min}):o({},e,{end:Math.max(t.min,e.start)});break;case r.max:n="start"===t.key?o({},e,{start:Math.min(t.max,e.end)}):o({},e,{end:t.max});break;case r.increase:if(void 0===t.step||void 0===t.key)return e;a=e[t.key]+t.step,n="start"===t.key?a<t.min?o({},e,{start:t.min}):o({},e,{start:Math.min(a,e.end)}):a>t.max?o({},e,{end:t.max}):o({},e,{end:Math.max(a,e.start)});break;case r.decrease:if(void 0===t.step||void 0===t.key)return e;a=e[t.key]-t.step,n="start"===t.key?a<t.min?o({},e,{start:t.min}):o({},e,{start:Math.min(a,e.end)}):a>t.max?o({},e,{end:t.max}):o({},e,{end:Math.max(a,e.start)});break;default:n=e}return n}},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)}),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 i=n(0),s=n(1),l=n(2),c=n(4),u=n(5),d=n(2),p=n(3),f=function(e){function t(n){var r=e.call(this,n)||this;return r.setValidity=function(){r._input&&r._input.setCustomValidity&&r._input.setCustomValidity(r.validity.valid?"":r.props.validationMessage||r.defaultValidationMessage.toLanguageString(u.switchValidation,u.messages[u.switchValidation]))},r.limit=function(e,t,n){var r=n.offsetWidth,o=t.offsetWidth;return e<0?0:e>r-o?r-o:e},r.toggle=function(e,t){r.setState({checked:e}),r.valueDuringOnChange=e,l.dispatchEvent(r.props.onChange,t,r,{value:e}),r.valueDuringOnChange=void 0},r._id=l.guid(),r.defaultValidationMessage=c.provideLocalizationService(r),r.focus=function(){r._element&&r._element.focus()},r.dummyInput=function(e){return i.createElement("input",{type:"checkbox",checked:r.props.checked,ref:function(e){r._input=e},tabIndex:-1,"aria-hidden":!0,value:e,style:{opacity:0,width:1,border:0,zIndex:-1,position:"absolute",left:"50%"},onChange:l.noop})},r.handleClick=function(e){r.eventTimeStamp!==e.timeStamp&&(r.eventTimeStamp=e.timeStamp,r.toggle(!r.value,e))},r.handleKeyDown=function(e){if(!r.props.disabled){var t=e.keyCode;t!==l.Keys.space&&t!==l.Keys.enter||r.toggle(!r.value,e)}},r.handleWrapperFocus=function(e){if(!r.props.disabled){r.setState({focused:!0});var t=r.props.onFocus;t&&t.call(void 0,e)}},r.handleWrapperBlur=function(e){if(!r.props.disabled){r.setState({focused:!1});var t=r.props.onBlur;t&&t.call(void 0,e)}},d.validatePackage(p.packageMetadata),r.state={checked:n.defaultChecked||t.defaultProps.defaultChecked,focused:!1},r}return o(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.props.checked?this.props.checked:this.state.checked},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"actionElement",{get:function(){return this._wrapper},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){var e=void 0!==this.props.validationMessage,t=void 0!==this.props.valid?this.props.valid:!this.props.required||!!this.value;return{customError:e,valid:void 0!==this.props.valid?this.props.valid:t,valueMissing:null===this.value}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:t.defaultProps.required},enumerable:!0,configurable:!0}),t.prototype.componentDidMount=function(){this.setValidity(),this.forceUpdate()},t.prototype.componentDidUpdate=function(){this.setValidity()},t.prototype.render=function(){var e=this,t=this.state.focused,n=this.props,r=n.dir,o=n.disabled,s=n.id,c=n.offLabel,u=n.onLabel,d=n.tabIndex;this.dir=r||this._wrapper&&getComputedStyle(this._wrapper).direction||void 0;var p=!this.validityStyles||this.validity.valid,f=l.classNames({"k-widget":!0,"k-switch":!0,"k-switch-on":this.value,"k-switch-off":!this.value,"k-state-focused":t,"k-state-disabled":o,"k-state-invalid":!p},this.props.className),h={"aria-checked":this.value,"aria-disabled":o||void 0};return i.createElement("span",{ref:function(t){e._wrapper=t},className:f,dir:this.dir,onKeyDown:this.handleKeyDown,onClick:this.handleClick,onBlur:this.handleWrapperBlur,onFocus:this.handleWrapperFocus},i.createElement("span",a({className:"k-switch-container",id:s||this._id,role:"switch"},h,{"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,ref:function(t){e._element=t},tabIndex:l.getTabIndex(d,o,void 0),accessKey:this.props.accessKey}),this.dummyInput(this.value),i.createElement("span",{className:"k-switch-label-on"},u),i.createElement("span",{className:"k-switch-label-off"},c),i.createElement("span",{className:"k-switch-handle"})))},t.propTypes={accessKey:s.string,checked:s.bool,className:s.string,disabled:s.bool,defaultChecked:s.bool,dir:s.string,id:s.string,ariaLabelledBy:s.string,ariaDescribedBy:s.string,offLabel:s.string,required:s.bool,tabIndex:s.number,valid:s.bool,validate:s.bool,validationMessage:s.string,onBlur:s.any,onChange:s.any,onFocus:s.any,onLabel:s.string},t.defaultProps={disabled:!1,defaultChecked:!1,offLabel:"OFF",onBlur:l.noop,onFocus:l.noop,onLabel:"ON",required:!1,validityStyles:!0},t}(i.Component);t.Switch=f},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=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)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(1),s=n(2),l=n(2),c=n(3),u=n(4),d=n(5);t.Checkbox=a.forwardRef((function(e,t){l.validatePackage(c.packageMetadata);var n=e,i=n.ariaDescribedBy,p=n.ariaLabelledBy,f=n.checked,h=n.className,v=n.children,m=n.defaultChecked,g=n.disabled,b=n.defaultValue,y=n.id,k=n.label,C=n.labelPlacement,O=n.name,w=n.labelOptional,x=n.onChange,E=n.onFocus,_=n.onBlur,P=n.tabIndex,N=n.value,S=n.required,I=n.valid,R=n.validationMessage,D=n.validityStyles,j=(n.visited,n.touched,n.modified,o(n,["ariaDescribedBy","ariaLabelledBy","checked","className","children","defaultChecked","disabled","defaultValue","id","label","labelPlacement","name","labelOptional","onChange","onFocus","onBlur","tabIndex","value","required","valid","validationMessage","validityStyles","visited","touched","modified"])),T=a.useRef(null),M=a.useCallback((function(){T.current&&T.current.focus()}),[]),L=a.useCallback((function(){return{element:T.current,focus:M,get name(){return T.current&&T.current.name}}}),[M]);a.useImperativeHandle(t,L);var A=a.useState(m),B=A[0],V=A[1],F=a.useState(b),K=F[0],G=F[1],z="boolean"==typeof N||null===N,H=void 0!==f,U=z,W=U?N:K,q=H?f:U?void 0:B,X=void 0===q&&W,Y=X?W:q,Z=X||U?null===N?N:void 0:N||W,$=null===Y||null===Z,J=a.useMemo((function(){return s.guid()}),[]),Q=u.useLocalization(),ee=function(e){return Q.toLanguageString(e,d.messages[e])},te=ee(d.checkboxValidation),ne=ee(d.checkboxOptionalText),re=void 0!==I?I:!S||!!q;a.useEffect((function(){T.current&&T.current.setCustomValidity&&T.current.setCustomValidity(re?"":R||te)}),[re,R,te]);var oe=a.useCallback((function(e,t){U||g||(G(t),H||g||V(t)),x&&!g&&s.dispatchEvent(x,e,r({},L(),{value:t}),{value:t})}),[H,g,x,U,L]),ae=a.useCallback((function(e){var t=e.target.checked;oe(e,t)}),[oe,N]),ie=a.useCallback((function(e){if(!g){var t=e.keyCode,n=e.currentTarget.checked;t===s.Keys.space&&(e.preventDefault(),e.stopPropagation(),oe(e,!n))}}),[g,oe]),se=a.useCallback((function(e){g||e.keyCode===s.Keys.space&&e.preventDefault()}),[g]),le=a.useCallback((function(e){E&&!g&&s.dispatchEvent(E,e,L(),void 0)}),[E,g,L]),ce=a.useCallback((function(e){_&&!g&&s.dispatchEvent(_,e,L(),void 0)}),[_,g,L]),ue=s.useDir(T,e.dir),de=s.classNames({"k-state-disabled":g},h),pe=r({type:"checkbox",className:s.classNames({"k-checkbox":!0,"k-state-indeterminate":$,"k-state-invalid k-invalid":!(re||void 0!==D||!0===D)}),ref:T,name:O,id:y||J,"aria-labelledby":p,"aria-describedby":i,checked:Boolean(Y),disabled:g,tabIndex:s.getTabIndex(P,g),role:"checkbox",required:void 0!==S&&S,"aria-checked":!(!q&&!Y)||!!$&&"mixed","aria-disabled":g||void 0},j,{onChange:ae,onKeyDown:ie,onKeyUp:se,onFocus:le,onBlur:ce}),fe=a.createElement(a.Fragment,null,void 0===Z?a.createElement("input",r({},pe)):a.createElement("input",r({},pe,{value:z?void 0:null===Z?"":Z}))),he=a.createElement(a.Fragment,null,void 0!==k?a.createElement("label",{className:"k-checkbox-label",htmlFor:y||J,style:{userSelect:"none"}},k,w&&a.createElement("span",{className:"k-label-optional"},ne)):null);return a.createElement(a.Fragment,null,"before"===C?a.createElement("span",{className:de,dir:"rtl"},fe,he,v):a.createElement("span",{className:de,dir:ue},fe,he,v))})),t.Checkbox.propTypes={checked:i.bool,className:i.string,defaultChecked:i.bool,defaultValue:i.any,dir:i.string,disabled:i.bool,id:i.string,ariaLabelledBy:i.string,ariaDescribedBy:i.string,label:i.any,labelPlacement:i.string,labelOptional:i.bool,name:i.string,tabIndex:i.number,value:i.any,validationMessage:i.string,required:i.bool,validate:i.bool,valid:i.bool,onChange:i.func,onFocus:i.func,onBlur:i.func},t.Checkbox.displayName="KendoCheckbox"},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=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 o=n(0),a=n(1),i=n(18),s=n(2),l=n(2),c=n(3);t.RadioGroup=o.forwardRef((function(e,t){l.validatePackage(c.packageMetadata);var n=e.ariaLabelledBy,a=e.ariaDescribedBy,d=e.className,p=e.data,f=e.defaultValue,h=e.disabled,v=e.name,m=e.labelPlacement,g=e.layout,b=e.style,y=e.value,k=e.valid,C=e.item,O=void 0===C?u.item:C,w=e.onChange,x=e.onFocus,E=o.useRef(null),_=o.useCallback((function(){E.current&&s.focusFirstFocusableChild(E.current)}),[]),P=o.useCallback((function(){return{element:E.current,focus:_}}),[_]);o.useImperativeHandle(t,P);var N=o.useState(f),S=N[0],I=N[1],R=void 0!==y,D=R?y:S,j=o.useCallback((function(e){var t=e.value;R||h||I(t),w&&!h&&s.dispatchEvent(w,e.syntheticEvent,P(),{value:t})}),[I,w,h]),T=o.useCallback((function(e){x&&!h&&s.dispatchEvent(x,e.syntheticEvent,P(),void 0)}),[x,h]),M=o.useMemo((function(){return s.guid()}),[]),L=s.classNames("k-radio-list",{"k-list-horizontal":"horizontal"===g,"k-list-vertical":"vertical"===g||void 0===g},d),A=s.useRtl(E,e.dir),B=p&&p.map((function(e,t){var n=D===e.value,a=null==D,l=r({},e,{valid:k,checked:n,disabled:!(!e.disabled&&!h),labelPlacement:e.labelPlacement?e.labelPlacement:m,tabIndex:e.tabIndex?e.tabIndex:a&&0===t||n?0:-1,index:t,name:v||M,onChange:j,onFocus:T});return o.createElement(O,{className:s.classNames("k-radio-item",{"k-state-disabled":l.disabled||h}),key:t,role:"radio"},o.createElement(i.RadioButton,r({},l)))}));return o.createElement("ul",{role:"radiogroup",className:L,ref:E,dir:A,style:b,"aria-labelledby":n,"aria-describedby":a},B)}));var u={item:function(e){return o.createElement("li",r({},e))}};t.RadioGroup.propTypes={ariaLabelledBy:a.string,ariaDescribedBy:a.string,className:a.string,data:a.arrayOf(a.object),defaultValue:a.any,dir:a.string,disabled:a.bool,labelPlacement:a.string,layout:a.string,name:a.string,style:a.object,value:a.any,onChange:a.func,onFocus:a.func},t.RadioGroup.defaultProps=u,t.RadioGroup.displayName="KendoRadioGroup"},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=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)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(1),s=n(2);t.TextArea=a.forwardRef((function(e,t){var n=e,i=n.ariaDescribedBy,l=n.ariaLabelledBy,c=n.autoSize,u=n.className,d=n.defaultValue,p=n.disabled,f=n.readOnly,h=n.required,v=n.rows,m=n.id,g=n.name,b=n.placeholder,y=n.style,k=n.tabIndex,C=n.value,O=n.valid,w=n.validationMessage,x=n.validityStyles,E=n.onChange,_=n.onFocus,P=n.onBlur,N=(n.visited,n.touched,n.modified,o(n,["ariaDescribedBy","ariaLabelledBy","autoSize","className","defaultValue","disabled","readOnly","required","rows","id","name","placeholder","style","tabIndex","value","valid","validationMessage","validityStyles","onChange","onFocus","onBlur","visited","touched","modified"])),S=a.useRef(null),I=a.useCallback((function(){S.current&&S.current.focus()}),[]),R=a.useCallback((function(){return{element:S,focus:I,get name(){return S.current&&S.current.name}}}),[I]);a.useImperativeHandle(t,R);var D=a.useState(d),j=D[0],T=D[1],M=a.useState("auto"),L=M[0],A=M[1],B=a.useMemo((function(){return s.guid()}),[]),V=s.useDir(S,e.dir),F=void 0!==C,K=F?C:j,G=void 0!==O?O:!h||!!K;a.useEffect((function(){S.current&&S.current.setCustomValidity&&S.current.setCustomValidity(G?"":w||"")}),[G,w]),a.useLayoutEffect((function(){S.current&&A(S.current.scrollHeight+"px")}),[K]);var z=a.useCallback((function(e){var t=e.target.value;F||p||(A("auto"),T(t)),E&&!p&&s.dispatchEvent(E,e,R(),{value:t})}),[T,E,p,F]),H=a.useCallback((function(e){_&&!p&&s.dispatchEvent(_,e,R(),void 0)}),[_,p]),U=a.useCallback((function(e){P&&!p&&s.dispatchEvent(P,e,R(),void 0)}),[P,p]),W={className:s.classNames("k-textarea",{"k-state-invalid":!(G||void 0!==x||!0===x),"k-state-disabled":p},u),style:y,dir:V},q=r({id:m||B,name:g,className:"k-input",ref:S,disabled:p,rows:v,placeholder:b,readOnly:f,required:h,tabIndex:s.getTabIndex(k,p),style:c?{resize:"none",overflow:"hidden",height:L}:{},"aria-labelledby":l,"aria-describedby":i,"aria-multiline":!0,"aria-disabled":p||void 0,value:F?C:j},N,{onChange:z,onFocus:H,onBlur:U});return a.createElement("span",r({},W),a.createElement("textarea",r({},q)))})),t.TextArea.propTypes={ariaDescribedBy:i.string,ariaLabelledBy:i.string,autoSize:i.bool,className:i.string,defaultValue:i.string,dir:i.string,disabled:i.bool,readOnly:i.bool,rows:i.number,id:i.string,name:i.string,placeholder:i.string,style:i.object,tabIndex:i.number,value:i.oneOfType([i.string,i.arrayOf(i.string),i.number]),onChange:i.func,onFocus:i.func,onBlur:i.func},t.TextArea.displayName="KendoTextArea"},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=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 o=n(0),a=n(1),i=n(2),s=n(19),l=n(50),c=n(20),u=function(e,t,n){var a=o.useState(e),i=a[0],s=a[1];return[i,function(e){var o=l.ratingReducer(t.state||i,r({},e,t));n&&n(o,e.event),s(o)}]};t.Rating=o.forwardRef((function(e,t){var n,r,a,s,d=o.useRef(null),f=o.useRef(null),h=i.useDir(f,e.dir);o.useImperativeHandle(d,(function(){return{element:f.current,props:e}})),o.useImperativeHandle(t,(function(){return d.current}));for(var v=o.useCallback((function(t,n){e.onChange&&d.current&&e.onChange.call(void 0,{value:t,target:d.current,syntheticEvent:n})}),[e.onChange]),m=o.useMemo((function(){return void 0!==e.min?e.min:p.min}),[e.min]),g=o.useMemo((function(){return void 0!==e.max?e.max:p.max}),[e.max]),b=o.useMemo((function(){return e.precision||p.precision}),[e.precision]),y=o.useMemo((function(){return void 0!==e.step?e.step:p.step}),[e.step]),k=o.useMemo((function(){return e.readonly||p.readonly}),[e.readonly]),C=o.useMemo((function(){return e.disabled||p.disabled}),[e.disabled]),O=o.useMemo((function(){return e.item||p.item}),[e.item]),w=u(e.defaultValue||p.defaultValue,{state:e.value,min:m,max:g,step:"half"===b?y/2:y},v),x=w[0],E=w[1],_=u(null,{state:e.value,min:m,max:g,step:"half"===b?y/2:y,precision:b}),P=_[0],N=_[1],S=o.useMemo((function(){return e.value||x}),[e.value,x]),I=o.useMemo((function(){return P}),[P]),R=o.useMemo((function(){return e.selection||p.selection}),[e.selection]),D=o.useMemo((function(){return y/("half"===b?2:1)}),[y,b]),j=o.useCallback((function(t){if(t.target&&t.target.element&&!k&&!C){if("half"===b){var n=t.target.element.getBoundingClientRect(),r=c.calcIsFirstHalf(h||"ltr",n,t.syntheticEvent.clientX)?c.toRound(t.target.value-y/2,D):t.target.value;E({type:l.RATING_ACTION.select,payload:r,event:t.syntheticEvent})}else E({type:l.RATING_ACTION.select,payload:t.target.value,event:t.syntheticEvent});e.onClick&&e.onClick.call(void 0,{value:S,target:d.current,syntheticEvent:t.syntheticEvent})}}),[e.onClick,E,S]),T=o.useCallback((function(t){if(!k&&!C){switch(t.keyCode){case i.Keys.right:t.preventDefault(),E({type:"rtl"===h?l.RATING_ACTION.decrease:l.RATING_ACTION.increase,event:t});break;case i.Keys.left:t.preventDefault(),E({type:"rtl"===h?l.RATING_ACTION.increase:l.RATING_ACTION.decrease,event:t});break;case i.Keys.home:t.preventDefault(),E({type:"rtl"===h?l.RATING_ACTION.min:l.RATING_ACTION.max,event:t});break;case i.Keys.end:t.preventDefault(),E({type:"rtl"===h?l.RATING_ACTION.max:l.RATING_ACTION.min,event:t});break;case i.Keys.esc:t.preventDefault(),E({type:l.RATING_ACTION.deselect,event:t})}e.onKeyDown&&e.onKeyDown.call(void 0,{value:S,target:d.current,syntheticEvent:t})}}),[e.onKeyDown,E,S]),M=o.useCallback((function(t){e.onFocus&&e.onFocus.call(void 0,{target:d.current,syntheticEvent:t})}),[e.onFocus]),L=o.useCallback((function(t){e.onBlur&&e.onBlur.call(void 0,{target:d.current,syntheticEvent:t})}),[e.onBlur]),A=o.useCallback((function(e){if(e.target&&e.target.element)if("half"===b){var t=e.target.element.getBoundingClientRect(),n=c.calcIsFirstHalf(h||"ltr",t,e.syntheticEvent.clientX)?e.target.value-y/2:e.target.value;N({type:l.RATING_ACTION.select,payload:n,event:e.syntheticEvent})}else N({type:l.RATING_ACTION.select,payload:e.target.value,event:e.syntheticEvent})}),[b,y,h]),B=o.useCallback((function(e){N({type:l.RATING_ACTION.reset,event:e.syntheticEvent})}),[]),V=[],F=c.getRemainder(c.toRound(g-m,D),y),K=m;K<=g;K=c.toRound(K+y,D)){var G=c.toRound(K+F,D),z="half"===b&&c.isHalf(G,null!==I?I:null!==S?S:0,y),H=c.isSelected(G,S,y,R),U=c.isSelected(G,null!==I?I:S,y,R),W=c.isSelected(G,I,y,R);V.push(o.createElement(O,{key:G,value:G,dir:h,title:String(z?c.toRound(G-y/2,D):G),icon:e.icon,half:z,selected:H||U,hovered:W,onClick:j,onMouseMove:A,onMouseLeave:B},z&&o.createElement("span",{className:"k-rating-precision-complement",style:(n={width:"12px"},n["rtl"===h?"right":"left"]="50%",n)},o.createElement("span",{className:i.classNames("k-icon",(r={"k-i-star-outline":!e.icon},r[e.icon+"-outline"]=e.icon,r))})),z&&o.createElement("span",{className:"k-rating-precision-part",style:{width:"12px"}},o.createElement("span",{className:i.classNames("k-icon",(a={"k-i-star":!e.icon},a[""+e.icon]=e.icon,a))})),z&&o.createElement("span",{style:{width:"24px",height:"24px",display:"block"}}),!z&&o.createElement("span",{className:i.classNames("k-icon",(s={"k-i-star":!e.icon&&(W||U&&!W),"k-i-star-outline":!e.icon&&!W},s[""+e.icon]=e.icon&&(W||U&&!W),s[e.icon+"-outline"]=e.icon&&!W,s))})))}return o.createElement("span",{id:e.id,style:e.style,ref:f,role:"slider",dir:h,tabIndex:i.getTabIndex(e.tabIndex,e.disabled,void 0),className:i.classNames("k-rating k-widget",{"k-rtl":"rtl"===h,"k-state-readonly":k,"k-state-disabled":C},e.className),onKeyDown:T,onFocus:M,onBlur:L,"aria-valuemin":m,"aria-valuemax":g,"aria-valuenow":null!==S?S:void 0,"aria-disabled":C?"true":void 0,"aria-labelledby":e.ariaLabelledBy,"aria-describedby":e.ariaDescribedBy},o.createElement("input",{id:"rating",className:"k-hidden",readOnly:k,disabled:C}),o.createElement("span",{className:"k-rating-container"},V),e.label&&o.createElement("span",{className:"k-rating-label"},e.label))}));var d={id:a.string,dir:a.oneOf(["ltr","rtl"]),selection:a.oneOf(["continues","single"]),precision:a.oneOf(["item","half"]),value:function(e,t,n){if(e.value&&e.min&&e.max&&e.step&&(!("half"===e.precision?c.isCorrectValue(e.min,e.max,e.step/2,e.value):c.isCorrectValue(e.min,e.max,e.step,e.value))&&"half"===e.precision))return new Error("Invalid prop + "+t+" supplied to "+n+".\n The value of the { value } property is not correct, please check your values.\n ");return null},defaultValue:a.number,min:a.number,max:a.number,step:function(e,t,n){return void 0!==e.step&&e.step<=0?new Error("Invalid prop + "+t+" supplied to "+n+'.\n The value of the { step } property is cannot be equal or less than "0", please check your values.\n '):null},hovered:a.number,label:a.string,readonly:a.bool,disabled:a.bool,half:a.bool,icon:a.string,ariaDescribedBy:a.string},p={dir:"ltr",min:1,max:5,step:1,item:s.RatingItem,defaultValue:null,readonly:!1,disabled:!1,selection:"continues",precision:"item"};t.Rating.displayName="KendoReactRating",t.Rating.propTypes=d,t.Rating.defaultProps=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(20);!function(e){e.select="select",e.deselect="deselect",e.increase="increase",e.decrease="decrease",e.min="min",e.max="max",e.reset="reset"}(r=t.RATING_ACTION||(t.RATING_ACTION={})),t.ratingReducer=function(e,t){switch(t.type){case r.select:return void 0===t.payload||void 0===t.step?e:t.payload===e?null:t.payload>=t.min?t.payload<t.max?o.toRound(t.payload,t.step):t.max:t.min;case r.deselect:return null;case r.increase:return void 0===t.step?e:e<t.min?t.min:e+t.step<t.max?o.toRound(e+t.step,t.step):t.max;case r.decrease:return void 0===t.step?e:o.toRound(e-t.step,t.step)>=t.min?o.toRound(e-t.step,t.step):t.min;case r.min:return void 0===t.step?e:t.min;case r.max:return t.max;case r.reset:return null;default:return e}}}])}));
|