@progress/kendo-react-scheduler 5.5.0-dev.202206221002 → 5.5.0-dev.202206270752

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,2 +1,2 @@
1
1
  /*! For license information please see kendo-react-scheduler.js.LICENSE.txt */
2
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("prop-types"),require("@progress/kendo-date-math"),require("@progress/kendo-licensing"),require("@progress/kendo-react-intl"),require("react-dom"),require("@progress/kendo-drawing"),require("react-transition-group")):"function"==typeof define&&define.amd?define(["react","prop-types","@progress/kendo-date-math","@progress/kendo-licensing","@progress/kendo-react-intl","react-dom","@progress/kendo-drawing","react-transition-group"],t):"object"==typeof exports?exports.KendoReactScheduler=t(require("react"),require("prop-types"),require("@progress/kendo-date-math"),require("@progress/kendo-licensing"),require("@progress/kendo-react-intl"),require("react-dom"),require("@progress/kendo-drawing"),require("react-transition-group")):e.KendoReactScheduler=t(e.React,e.PropTypes,e.KendoDateMath,e.KendoLicensing,e.KendoReactIntl,e.ReactDOM,e.KendoDrawing,e.ReactTransitionGroup)}(self,(function(e,t,n,r,o,i,a,l){return(()=>{"use strict";var s={4960:function(e,t,n){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},r.apply(this,arguments)},o=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.Scheduler=t.DATA_ACTION=void 0;var i,a=n(3899),l=n(189),s=n(5538),u=n(3865),c=n(6266),d=n(1995),p=n(499),f=n(352),h=n(4692),m=n(2557),v=n(619),g=n(6763),y=n(2888),b=n(3364),C=n(7340),E=n(7238),w=n(6198),k=n(468),S=n(3865),O=n(7363);!function(e){e[e.create=0]="create",e[e.update=1]="update",e[e.remove=2]="remove"}(i=t.DATA_ACTION||(t.DATA_ACTION={})),t.Scheduler=a.forwardRef((function(e,t){(0,S.validatePackage)(O.packageMetadata);var n=e.timezone,l=e.onDataChange,f=a.useRef(null),g=a.useRef(null);a.useImperativeHandle(g,(function(){return{props:e,element:f.current}})),a.useImperativeHandle(t,(function(){return g.current}));var x=(0,u.useRtl)(f),I=(0,p.useInternationalization)(),T=(0,p.useLocalization)(),_=a.useMemo((function(){return(0,s.getModelFields)(e.modelFields)}),[e.modelFields]).fields,R=(0,d.useControlledState)(e.defaultDate||D.defaultDate,e.date,e.onDateChange),M=R[0],P=R[1],N=a.Children.toArray(e.children||[]),F=(0,d.useControlledState)(e.defaultView||N[0]&&N[0].props.name||"day",e.view,e.onViewChange),A=F[0],j=F[1],L=(0,d.useControlledState)(!0),V=L[0],z=L[1],B=N.find((function(e){return e.props.name===A}))||N[0]||a.createElement(k.DayView,null),H=e.data||D.data,U=(0,s.toSchedulerGroups)(e.group,e.resources),W=e.group&&e.group.orientation?e.group.orientation:"horizontal",K=B.props.selectedDateFormat||"{0:D}",q=B.props.selectedShortDateFormat||"{0:d}",Y=B.props.slotDuration,G=void 0!==B.props.dateRange?"function"==typeof B.props.dateRange?B.props.dateRange.call(void 0,{intl:I,date:M,timezone:n,numberOfDays:B.props.numberOfDays,workWeekStart:B.props.workWeekStart||I.firstDay(),workWeekEnd:B.props.workWeekEnd||(I.firstDay()+B.props.numberOfDays)%6}):B.props.dateRange:{start:D.defaultDate,end:D.defaultDate},Z=a.useCallback((function(e){var t=e.created,n=void 0===t?[]:t,r=e.updated,o=void 0===r?[]:r,i=e.deleted;if(l){var a={created:n,updated:o,deleted:void 0===i?[]:i};l.call(void 0,a)}}),[l]),X=a.useCallback((function(e){var t=[e.dataItem];Z({created:t})}),[Z]),$=a.useCallback((function(e){var t=[],n=[];if(e.series)if(Array.isArray(e.dataItem))e.dataItem.map((function(t){var r=(0,u.clone)((0,s.findMaster)(e.dataItem,_,H)),o=(0,u.clone)(t);(0,s.setField)(o,_.originalStart,(0,s.getField)(r,_.originalStart)),(0,s.setField)(o,_.recurrenceId,(0,s.getField)(r,_.recurrenceId)),(0,s.setField)(o,_.recurrenceExceptions,(0,s.getField)(r,_.recurrenceExceptions)),n.push(o)}));else{var r=(0,u.clone)((0,s.findMaster)(e.dataItem,_,H)),i=(0,u.clone)(e.dataItem);(0,s.setField)(i,_.originalStart,(0,s.getField)(r,_.originalStart)),(0,s.setField)(i,_.recurrenceId,(0,s.getField)(r,_.recurrenceId)),(0,s.setField)(i,_.recurrenceExceptions,(0,s.getField)(r,_.recurrenceExceptions)),n.push(i)}else if(Array.isArray(e.dataItem))e.dataItem.map((function(e){var r=null!==(0,s.getField)(e,_.recurrenceRule)&&void 0!==(0,s.getField)(e,_.recurrenceRule);if(null!==(0,s.getField)(e,_.recurrenceId)&&void 0!==(0,s.getField)(e,_.recurrenceId)&&r){var i=(0,u.clone)((0,s.findMaster)(e,_,H)),a=(0,s.getField)(e,_.originalStart),l=(0,s.getField)(i,_.recurrenceExceptions)||[];(0,s.setField)(i,_.recurrenceExceptions,o(o([],l,!0),[a],!1)),(0,s.setField)(e,_.recurrenceRule,null),n.push(i),t.push(e)}else n.push(e)}));else{var a=null!==(0,s.getField)(e.dataItem,_.recurrenceRule)&&void 0!==(0,s.getField)(e.dataItem,_.recurrenceRule);if(null!==(0,s.getField)(e.dataItem,_.recurrenceId)&&void 0!==(0,s.getField)(e.dataItem,_.recurrenceId)&&a){r=(0,u.clone)((0,s.findMaster)(e.dataItem,_,H));var l=(0,s.getField)(e.dataItem,_.originalStart),c=(0,s.getField)(r,_.recurrenceExceptions)||[];(0,s.setField)(r,_.recurrenceExceptions,o(o([],c,!0),[l],!1)),(0,s.setField)(e.dataItem,_.recurrenceRule,null),n.push(r),t.push(e.dataItem)}else n.push(e.dataItem)}Z({updated:n,created:t})}),[Z,_,H]),Q=a.useCallback((function(e){var t=[],n=[];if(e.series){var r=(0,u.clone)((0,s.findMaster)(e.dataItem,_,H)),i=(0,u.clone)(e.dataItem);(0,s.setField)(i,_.originalStart,(0,s.getField)(r,_.originalStart)),(0,s.setField)(i,_.recurrenceId,(0,s.getField)(r,_.recurrenceId)),(0,s.setField)(i,_.recurrenceRule,(0,s.getField)(r,_.recurrenceRule)),(0,s.setField)(i,_.recurrenceExceptions,(0,s.getField)(r,_.recurrenceExceptions)),n.push(i)}else if(null!==(0,s.getField)(e.dataItem,_.recurrenceRule)&&void 0!==(0,s.getField)(e.dataItem,_.recurrenceRule)){r=(0,u.clone)((0,s.findMaster)(e.dataItem,_,H));var a=(0,s.getField)(e.dataItem,_.originalStart),l=(0,s.getField)(r,_.recurrenceExceptions)||[];(0,s.setField)(r,_.recurrenceExceptions,o(o([],l,!0),[a],!1)),(0,s.setField)(e.dataItem,_.recurrenceRule,null),t.push(r)}else n.push(e.dataItem);Z({updated:t,deleted:n})}),[Z,_,H]),J=a.useCallback((function(e){switch(e.type){case i.create:X(e);break;case i.update:$(e);break;case i.remove:Q(e)}}),[X,Q,$]),ee=a.useCallback((function(e,t){j(e,r(r({},t),{target:g.current}))}),[j,g]),te=a.useCallback((function(e,t){P(e,r(r({},t),{target:g.current}))}),[P,g]),ne=a.useCallback((function(e){e.value&&P(e.value,r(r({},e),{target:g.current,nativeEvent:e.nativeEvent}))}),[P,g]),re=a.useCallback((function(e){e.preventDefault();var t=B.props.numberOfDays||1,n=t>27?(0,v.addMonths)(M,Math.round(t/27)):(0,v.addDays)(M,t);P(n,event)}),[M,P,B.props.numberOfDays]),oe=a.useCallback((function(e){e.preventDefault();var t=B.props.numberOfDays||1,n=t>27?(0,v.addMonths)(M,-Math.round(t/27)):(0,v.addDays)(M,-t);P(n,event)}),[M,P,B.props.numberOfDays]),ie=a.useCallback((function(e){e.preventDefault();var t=(0,s.getToday)();P(t,event)}),[P]),ae=a.useCallback((function(){z(!V)}),[z,V]),le=a.useCallback((function(){f.current&&(f.current.style.boxShadow="0 0.5px 0.5px 0.5px rgba(0, 0, 0, .12)")}),[f]),se=a.useCallback((function(){f.current&&(f.current.style.boxShadow="")}),[f]),ue=a.useMemo((function(){return r(r({},e.style),{height:e.height})}),[e.height,e.style]),ce=a.useMemo((function(){return(0,u.classNames)({"k-rtl":void 0!==e.rtl?e.rtl:"rtl"===x},"k-widget k-scheduler k-scheduler-flex k-floatwrap",e.className)}),[e.className,e.rtl,x]),de=T.toLanguageString(b.today,b.messages[b.today]),pe=T.toLanguageString(b.previousTitle,b.messages[b.previousTitle]),fe=T.toLanguageString(b.nextTitle,b.messages[b.nextTitle]),he=B.props.header||e.header||D.header,me=B.props.footer||e.footer||D.footer,ve=h.SchedulerNavigation,ge=m.SchedulerViewSelector;return a.createElement(c.SchedulerContext,{element:f,props:e,views:N,fields:_,groups:U,dateRange:G,orientation:W,dateFormat:{dateFormat:K,shortDateFormat:q},date:[M,te],activeView:[A,ee],data:[H,J]},a.createElement("div",{ref:f,id:e.id,style:ue,className:ce,tabIndex:e.tabIndex,dir:x,role:e.role,"aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,onFocus:le,onBlur:se},a.createElement(he,null,a.createElement(ve,null,a.createElement(y.ButtonGroup,{className:"k-scheduler-navigation"},a.createElement(y.Button,{role:"button",tabIndex:-1,title:de,"aria-label":de,onClick:ie},de),a.createElement(y.Button,{role:"button",tabIndex:-1,icon:"arrow-60-left",title:pe,"aria-label":pe,onClick:oe}),a.createElement(y.Button,{role:"button",tabIndex:-1,icon:"arrow-60-right",title:fe,"aria-label":fe,onClick:re}))),a.createElement(C.NavigationDatePicker,{value:M,onChange:ne}),a.createElement(y.ToolbarSpacer,null),a.createElement(ge,null,a.createElement(E.ViewSelectorList,null))),B&&a.createElement(B.type,r({editable:e.editable,key:B.props.name,item:e.item,viewItem:e.viewItem,editItem:e.editItem,task:e.task,viewTask:e.viewTask,editTask:e.viewTask,slot:e.slot,viewSlot:e.viewSlot,editSlot:e.editSlot,form:e.form,onDataAction:J,showWorkHours:V},B.props)),a.createElement(me,null,Y&&Y<1440&&a.createElement(w.BusinessHours,null,a.createElement(y.Button,{tabIndex:-1,onClick:ae},a.createElement("span",{className:"k-icon k-i-clock"})," ",T.toLanguageString(V?b.showFullDay:b.showWorkDay,b.messages[V?b.showFullDay:b.showWorkDay]))))))}));var D={data:[],height:600,tabIndex:-1,editable:!1,defaultDate:new Date,header:f.SchedulerHeader,footer:g.SchedulerFooter,navigation:h.SchedulerNavigation,viewSelector:m.SchedulerViewSelector};t.Scheduler.propTypes={data:l.array,editable:l.oneOfType([l.bool,l.shape({add:l.bool,drag:l.bool,edit:l.bool,remove:l.bool,resize:l.bool})]),view:l.string,defaultView:l.string,date:l.any,defaultDate:l.any,rtl:l.bool,height:l.oneOfType([l.number,l.string]),children:l.any,timezone:l.string,group:l.any,resources:l.any,modelFields:l.shape({id:l.string,start:l.string,startTimezone:l.string,end:l.string,endTimezone:l.string,isAllDay:l.string,title:l.string,description:l.string,recurrenceRule:l.string,recurrenceId:l.string,recurrenceException:l.string})},t.Scheduler.defaultProps=D,t.Scheduler.displayName="KendoReactScheduler"},7370:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BaseView=void 0;var r=n(3899),o=n(8586),i=n(3865),a=n(8744),l=n(1365),s=n(2334),u=n(3865);t.BaseView=r.forwardRef((function(e,t){var n=r.useRef(null);r.useImperativeHandle(t,(function(){return n.current}));var c=(0,u.useCollection)([]),d=c[0],p=c[1],f=(0,u.useCollection)([]),h=f[0],m=f[1],v=(0,o.useItemsFocus)(d),g=v[0],y=v[1],b=(0,o.useSlotsFocus)(h),C=b[0],E=b[1],w=(0,l.useItemsSelection)(d),k=w[0],S=w[1],O=(0,s.useSlotsSelection)(h),D=O[0],x=O[1],I=r.useCallback((function(e,t){x({type:s.SLOTS_SELECT_ACTION.reset}),S(e,t)}),[S,x]),T=r.useCallback((function(e,t){S({type:l.ITEMS_SELECT_ACTION.reset},t),x(e)}),[S,x]),_=r.useMemo((function(){return(0,i.classNames)("k-scheduler-layout k-scheduler-layout-flex",e.className)}),[e.className]);return(0,o.useCellSync)({element:n,selector:".k-group-cell",attribute:"data-depth-index",explicitDepth:!0}),(0,o.useCellSync)({element:n,selector:".k-side-cell",attribute:"data-depth-index",explicitDepth:!1}),r.createElement(a.SchedulerViewContext,{props:e.props,ranges:e.ranges,items:[d,p],slots:[h,m],selectedItems:[k,I],selectedSlots:[D,T],focusedItems:[g,y],focusedSlots:[C,E]},r.createElement("div",{ref:n,style:e.style,className:_,role:"presentation"},e.children))})),t.BaseView.displayName="KendoReactSchedulerBaseView"},6578:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CurrentTimeMarker=void 0;var r=n(3899),o=n(994),i=n(619),a=n(3865),l=n(7907),s=n(5538),u=n(3152);t.CurrentTimeMarker=function(e){var t,n=r.useState(!1),d=n[0],p=n[1],f=(0,l.useSchedulerElementContext)(),h=(0,l.useSchedulerPropsContext)(),m=r.useRef(void 0),v=r.useRef(null),g=r.useRef(null),y=e.updateInterval||c.updateInterval,b=r.useState(!1)[1],C=(0,a.useDir)(g,!0===h.rtl?"rtl":void 0),E=(0,l.useSchedulerViewSlotsContext)()[0],w=r.useCallback((function(){if(E){var t,n,r,o=E.filter((function(t){return t.current&&(void 0===e.groupIndex||null===e.groupIndex||t.current.props.group.index===e.groupIndex)&&(e.vertical?(0,s.intersects)(new Date,new Date,t.current.props.start,t.current.props.end,!0):(0,s.isInTimeRange)(new Date,t.current.props.start,t.current.props.end))&&!t.current.props.isAllDay}));if(o&&o.length&&v.current&&g.current){var a=(0,s.first)(o);if(!a.current)return;var l=e.vertical?function(e){var t=0;return e.forEach((function(e){if(e.current){var n=(0,u.getRect)(e.current.element);t+=n.height}})),t}(o):function(e){var t=0;return e.forEach((function(e){if(e.current){var n=(0,u.getRect)(e.current.element);t+=n.width}})),t}(o),c=(0,u.getRect)(a.current.element),d=(0,u.getRect)(v.current),f=(e.vertical?c.width:c.height)/(a.current.props.end.getTime()-a.current.props.start.getTime()),h=(Date.now()-(t=new Date,n=a.current.props.start,r=(0,i.cloneDate)(t),r.setHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),r).getTime())*f,m="rtl"===C,y=e.vertical?c.top:c.top+h-d.height/2,b=m?"right":"left",w=e.vertical?c[b]+h-d.width/2:c[b];e.vertical?v.current.style[b]="".concat(w,"px"):v.current.style.top="".concat(y,"px"),g.current.style[b]="".concat(w,"px"),g.current.style.top="".concat(y,"px"),g.current.style[e.vertical?"height":"width"]="".concat(l-1,"px"),p(!0)}else p(!1)}}),[E,e.groupIndex,e.vertical,C]),k=r.useCallback((function(){w(),b((function(e){return!e}))}),[w]);r.useEffect((function(){if(f.current&&window){clearInterval(m.current),m.current=window.setInterval(k,y);var e=new window.ResizeObserver(k);return e.observe(f.current),function(){clearInterval(m.current),e.disconnect()}}}),[w,k,f,y]),r.useEffect(w);var S=r.createElement("div",{ref:v,className:(0,a.classNames)("k-current-time",{"k-current-time-arrow-right":!e.vertical&&"rtl"!==C,"k-current-time-arrow-left":!e.vertical&&"rtl"===C,"k-current-time-arrow-down":e.vertical}),style:{transform:e.vertical?"rtl"===C?"translateX(50%)":"translateX(-50%)":"translateY(-50%)",visibility:d?void 0:"hidden"}});return r.createElement(r.Fragment,null,e.attachArrow&&e.attachArrow.current?o.createPortal(S,e.attachArrow.current):S,r.createElement("div",{className:"k-current-time",ref:g,style:(t={transform:e.vertical?"translateX(-50%)":"translateY(-50%)"},t[e.vertical?"width":"height"]="1px",t.visibility=d?void 0:"hidden",t)}))};var c={updateInterval:6e4};t.CurrentTimeMarker.defaultProps=c},8929:function(e,t,n){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},r.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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.DateHeaderCell=void 0;var i=n(3899),a=n(499),l=n(3865);t.DateHeaderCell=i.forwardRef((function(e,t){var n=e.as,u=void 0===n?s.as:n,c=o(e,["as"]),d=i.useRef(null),p=i.useRef(null),f=(0,a.useInternationalization)(),h=i.useMemo((function(){return(0,l.classNames)("k-scheduler-cell k-heading-cell",e.className)}),[e.className]);return i.useImperativeHandle(p,(function(){return{element:d.current&&d.current.element?d.current.element:d.current,props:e}})),i.useImperativeHandle(t,(function(){return p.current})),i.createElement(u,r({ref:u!==s.as?void 0:d},c,{className:h}),i.createElement("span",{className:"k-link k-nav-day"},f.formatDate(e.date,e.format)))}));var s={as:i.forwardRef((function(e,t){e.as,e.format,e.start,e.end;var n=o(e,["as","format","start","end"]);return i.createElement("div",r({},n,{ref:t}))})),format:"d"};t.DateHeaderCell.defaultProps=s,t.DateHeaderCell.displayName="KendoReactSchedulerDateHeaderCell"},3540:function(e,t,n){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},r.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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.SchedulerForm=void 0;var i=n(3899),a=n(994),l=n(3865),s=n(2888),u=n(1448),c=n(8530),d=n(499),p=n(4693),f=n(7907),h=n(3364);t.SchedulerForm=i.forwardRef((function(e,t){var n=e.onCancel,v=e.onClose,g=e.onSubmit,y=e.editor,b=e.dialog,C=void 0===b?m.dialog:b,E=e.validator,w=void 0===E?m.validator:E,k=o(e,["onCancel","onClose","onSubmit","editor","dialog","validator"]),S=i.useRef(null);i.useImperativeHandle(S,(function(){return{props:e}})),i.useImperativeHandle(t,(function(){return S.current}));var O=(0,d.useLocalization)(),D=(0,f.useSchedulerFieldsContext)(),x=i.useMemo((function(){return O.toLanguageString(h.editorValidationRequired,h.messages[h.editorValidationRequired])}),[O]),I=i.useMemo((function(){return O.toLanguageString(h.editorValidationEnd,h.messages[h.editorValidationEnd])}),[O]),T=i.useMemo((function(){return O.toLanguageString(h.editorSave,h.messages[h.editorSave])}),[O]),_=i.useMemo((function(){return O.toLanguageString(h.editorCancel,h.messages[h.editorCancel])}),[O]),R=i.useMemo((function(){return O.toLanguageString(h.editorTitle,h.messages[h.editorTitle])}),[O]),M=i.useMemo((function(){return O.toLanguageString(h.editorValidationStart,h.messages[h.editorValidationStart])}),[O]),P=i.useCallback((function(e){n&&n.call(void 0,{value:null,syntheticEvent:e,target:S.current})}),[n]),N=i.useCallback((function(e){var t=e.syntheticEvent;v&&v.call(void 0,{value:null,syntheticEvent:t,target:S.current})}),[v]),F=i.useCallback((function(e,t){g&&g.call(void 0,{value:e,syntheticEvent:t,target:S.current})}),[g]),A=i.useCallback((function(e,t){return Boolean(e&&t(D.end)&&e.getTime()>t(D.end).getTime())?M:void 0}),[D,M]),j=i.useCallback((function(e,t){return Boolean(e&&t(D.start)&&e.getTime()<t(D.start).getTime())?I:void 0}),[D,I]),L=i.useCallback((function(e){return e?void 0:x}),[x]),V=i.useCallback((function(e,t){var n={};n[D.start]=[L(t(D.start)),A(t(D.start),t)].filter(Boolean).reduce((function(e,t){return e||t}),""),n[D.end]=[L(t(D.start)),j(t(D.start),t)].filter(Boolean).reduce((function(e,t){return e||t}),"");var o=w(e,t);return r(r({},n),o)}),[j,D.end,D.start,L,A,w]);return l.canUseDOM?a.createPortal(i.createElement(u.Form,r({initialValues:e.dataItem,onSubmit:F,validator:V,render:function(e){return i.createElement(C,{title:R,minWidth:600,onClose:N,className:"k-scheduler-edit-dialog"},i.createElement(p.SchedulerFormEditor,r({},e,{as:y})),i.createElement(c.DialogActionsBar,null,i.createElement(s.Button,{disabled:!e.allowSubmit,onClick:e.onSubmit},T),i.createElement(s.Button,{onClick:P},_)))}},k)),document&&document.body):null}));var m={dialog:c.Dialog,validator:function(){return{}}};t.SchedulerForm.defaultProps=m,t.SchedulerForm.displayName="KendoReactSchedulerForm"},6809:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SchedulerOccurrenceDialog=void 0;var r=n(3899),o=n(994),i=n(8530),a=n(499),l=n(3364),s=n(3865),u=n(2888);t.SchedulerOccurrenceDialog=r.forwardRef((function(e,t){var n=e.isRemove,c=e.onClose,d=e.onSeriesClick,p=e.onOccurrenceClick,f=r.useRef(null);r.useImperativeHandle(f,(function(){return{props:e}})),r.useImperativeHandle(t,(function(){return f.current}));var h=(0,a.useLocalization)(),m=function(e){return h.toLanguageString(e,l.messages[e])},v=m(l.editorOccurrence),g=m(l.editorSeries),y=m(l.editorRecurringConfirmation),b=m(l.editorRecurringDialogTitle),C=m(l.deleteOccurrence),E=m(l.deleteSeries),w=m(l.deleteRecurringDialogTitle),k=m(l.deleteRecurringConfirmation),S=n?w:b,O=n?k:y,D=n?C:v,x=n?E:g,I=r.useCallback((function(e){var t=e.syntheticEvent;c&&c.call(void 0,{syntheticEvent:t,value:null,target:f.current})}),[c]),T=r.useCallback((function(e){d&&d.call(void 0,{syntheticEvent:e,value:null,target:f.current})}),[d]),_=r.useCallback((function(e){p&&p.call(void 0,{syntheticEvent:e,value:null,target:f.current})}),[p]);return s.canUseDOM?o.createPortal(r.createElement(i.Dialog,{title:S,onClose:I},O,r.createElement(i.DialogActionsBar,null,r.createElement(u.Button,{onClick:_},D),r.createElement(u.Button,{onClick:T},x))),document&&document.body):null})),t.SchedulerOccurrenceDialog.displayName="KendoReactSchedulerSchedulerOccurrenceDialog"},7160:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SchedulerRemoveDialog=void 0;var r=n(3899),o=n(994),i=n(8530),a=n(499),l=n(3364),s=n(3865),u=n(2888);t.SchedulerRemoveDialog=r.forwardRef((function(e,t){var n=e.onClose,c=e.onCancel,d=e.onConfirm,p=r.useRef(null);r.useImperativeHandle(p,(function(){return{props:e}})),r.useImperativeHandle(t,(function(){return p.current}));var f=(0,a.useLocalization)(),h=f.toLanguageString(l.editorCancel,l.messages[l.editorCancel]),m=f.toLanguageString(l.editorDelete,l.messages[l.editorDelete]),v=f.toLanguageString(l.deleteConfirmation,l.messages[l.deleteConfirmation]),g=f.toLanguageString(l.deleteDialogTitle,l.messages[l.deleteDialogTitle]),y=r.useCallback((function(e){var t=e.syntheticEvent;if(n){var r={syntheticEvent:t,value:null,target:p.current};n.call(void 0,r)}}),[n]),b=r.useCallback((function(e){c&&c.call(void 0,{syntheticEvent:e,value:null})}),[c]),C=r.useCallback((function(e){d&&d.call(void 0,{syntheticEvent:e,value:null})}),[d]);return s.canUseDOM?o.createPortal(r.createElement(i.Dialog,{title:g,onClose:y},v,r.createElement(i.DialogActionsBar,null,r.createElement(u.Button,{onClick:b},h),r.createElement(u.Button,{onClick:C},m))),document&&document.body):null})),t.SchedulerRemoveDialog.displayName="KendoReactSchedulerRemoveDialog"},3104:function(e,t,n){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},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.ShowMoreItemsButton=void 0;var o=n(3899),i=n(2888);t.ShowMoreItemsButton=o.forwardRef((function(e,t){var n=o.useRef(null),a=o.useRef(null);o.useImperativeHandle(n,(function(){return r({element:a.current&&a.current.element},e)})),o.useImperativeHandle(t,(function(){return n.current}));var l=o.useCallback((function(t){e.onClick&&n.current&&e.onClick.call(void 0,{target:n.current,syntheticEvent:t})}),[n,e.slot,e.onClick]);return o.createElement(i.Button,{ref:a,tabIndex:-1,className:"k-more-events",onClick:l},o.createElement("span",{className:"k-icon k-i-more-horizontal"}))})),t.ShowMoreItemsButton.displayName="KendoReactSchedulerShowMoreItemsButton"},4603:function(e,t,n){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},r.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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.TimeHeaderCell=void 0;var i=n(3899),a=n(499),l=n(3865);t.TimeHeaderCell=i.forwardRef((function(e,t){var n=e.as,u=void 0===n?s.as:n,c=o(e,["as"]),d=i.useRef(null),p=i.useRef(null),f=(0,a.useInternationalization)(),h=i.useMemo((function(){return(0,l.classNames)("k-scheduler-cell k-heading-cell",e.className)}),[e.className]);return i.useImperativeHandle(p,(function(){return{element:d.current&&d.current.element?d.current.element:d.current,props:e}})),i.useImperativeHandle(t,(function(){return p.current})),i.createElement(u,r({ref:u!==s.as?void 0:d},c,{className:h}),f.formatDate(e.date,e.format))}));var s={as:i.forwardRef((function(e,t){e.as,e.format,e.start,e.end;var n=o(e,["as","format","start","end"]);return i.createElement("div",r({},n,{ref:t}))})),format:"t"};t.TimeHeaderCell.defaultProps=s,t.TimeHeaderCell.displayName="KendoReactSchedulerTimeHeaderCell"},6763:function(e,t,n){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},r.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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.SchedulerFooter=void 0;var i=n(3899),a=n(3865),l=n(2888);t.SchedulerFooter=i.forwardRef((function(e,t){e.className;var n=e.style,s=o(e,["className","style"]),u=i.useRef(null),c=i.useRef(null);i.useImperativeHandle(u,(function(){return{element:c.current,props:e}})),i.useImperativeHandle(t,(function(){return u.current}));var d=i.useMemo((function(){return(0,a.classNames)("k-scheduler-footer",e.className)}),[e.className]);return i.createElement(l.Toolbar,r({ref:function(e){e&&(c.current=e.element)},className:d,style:r({boxShadow:"none"},n)},s),e.children)}))},6198:function(e,t,n){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},r.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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.BusinessHours=void 0;var i=n(3899),a=n(2888),l=n(3865);t.BusinessHours=i.forwardRef((function(e,t){var n=e.className,s=o(e,["className"]),u=i.useRef(null);return i.useImperativeHandle(t,(function(){return{element:u.current,props:e}})),i.createElement(a.ToolbarItem,r({ref:function(e){e&&(u.current=e.element)},className:(0,l.classNames)("k-scheduler-navigation",n)},s),e.children)}))},352:function(e,t,n){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},r.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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.SchedulerHeader=void 0;var i=n(3899),a=n(3865),l=n(2888);t.SchedulerHeader=i.forwardRef((function(e,t){var n=e.className,s=o(e,["className"]),u=i.useRef(null),c=i.useRef(null);i.useImperativeHandle(c,(function(){return{element:u.current,props:e}})),i.useImperativeHandle(t,(function(){return c.current}));var d=i.useMemo((function(){return(0,a.classNames)("k-scheduler-toolbar",n)}),[n]);return i.createElement(l.Toolbar,r({id:e.id,ref:function(e){e&&(u.current=e.element)},className:d},s),e.children)})),t.SchedulerHeader.displayName="KendoReactSchedulerHeader"},7340:function(e,t,n){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},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.NavigationDatePicker=void 0;var o=n(3899),i=n(8138),a=n(499),l=n(4814),s=n(2888),u=n(6266),c=n(619),d=n(5538);t.NavigationDatePicker=o.forwardRef((function(e,t){var n=(0,u.useSchedulerPropsContext)().timezone,a=c.ZonedDate.fromLocalDate(e.value,n),l=(0,c.getDate)(a),s=o.useCallback((function(t){if(e.onChange){var o=c.ZonedDate.fromUTCDate((0,d.toUTCDateTime)(t.value),n);e.onChange.call(void 0,r(r({},t),{value:o}))}}),[e.onChange]);return o.createElement(i.DatePicker,r({ref:t,dateInput:p,pickerWrap:f,toggleButton:h,width:"auto"},e,{value:l,onChange:s}))}));var p=function(){return null},f=function(e){return o.createElement(o.Fragment,null,e.children)},h=function(e){var t=(0,a.useInternationalization)(),n=(0,u.useSchedulerDateFormatContext)(),i=n.dateFormat,c=n.shortDateFormat,d=(0,u.useSchedulerDateRangeContext)(),p=(0,u.useSchedulerDateContext)()[0],f=d.end.getTime()-d.start.getTime()>27*l.MS_PER_DAY,h=t.format(i,f?p:d.zonedStart,f?p:d.zonedEnd.addDays(-1)),m=t.format(c,f?p:d.zonedStart,f?p:d.zonedEnd.addDays(-1));return o.createElement(s.Button,r({},e,{className:"k-nav-current",tabIndex:-1,fillMode:"flat"}),o.createElement("span",{className:"k-sm-date-format"},m),o.createElement("span",{className:"k-lg-date-format"},h))};t.NavigationDatePicker.displayName="KendoReactSchedulerNavigationDatePicker"},4692:function(e,t,n){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},r.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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.SchedulerNavigation=void 0;var i=n(3899),a=n(2888),l=n(3865);t.SchedulerNavigation=i.forwardRef((function(e,t){var n=e.className,s=o(e,["className"]),u=i.useRef(null);return i.useImperativeHandle(t,(function(){return{element:u.current,props:e}})),i.createElement(a.ToolbarItem,r({ref:function(e){e&&(u.current=e.element)},className:(0,l.classNames)(n)},s),e.children)})),t.SchedulerNavigation.displayName="KendoReactSchedulerSchedulerNavigation"},2557:function(e,t,n){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},r.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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.SchedulerViewSelector=void 0;var i=n(3899),a=n(2888),l=n(3865);t.SchedulerViewSelector=i.forwardRef((function(e,t){var n=e.className,s=o(e,["className"]),u=i.useRef(null);return i.useImperativeHandle(t,(function(){return{element:u.current,props:e}})),i.createElement(a.ToolbarItem,r({ref:function(e){e&&(u.current=e.element)},className:(0,l.classNames)("k-scheduler-views",n)},s),e.children)})),t.SchedulerViewSelector.displayName="KendoReactSchedulerViewSelector"},1419:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ViewSelectorItem=void 0;var r=n(3899),o=n(2888),i=n(499),a=n(468);t.ViewSelectorItem=function(e){var t=(0,a.useSchedulerActiveViewContext)(),n=t[0],l=t[1],s=(0,i.useLocalization)(),u=r.useMemo((function(){return"function"==typeof e.view.title?e.view.title.call(void 0,s):e.view.title}),[e.view.title,s]),c=r.useCallback((function(){e.view.name&&l(e.view.name)}),[l,e.view.name]);return r.createElement(o.Button,{role:"button",type:"button",tabIndex:-1,togglable:!0,selected:e.view.name===n,onClick:c},u)}},7238:function(e,t,n){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},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.ViewSelectorList=void 0;var o=n(3899),i=n(468),a=n(7907),l=n(499),s=n(2888),u=n(3865),c=n(1419);t.ViewSelectorList=o.forwardRef((function(){var e=o.useRef(null),t=o.useState("desktop"),n=t[0],d=t[1],p=(0,i.useSchedulerViewsContext)(),f=(0,u.useWindow)(e),h=(0,a.useSchedulerActiveViewContext)(),m=h[0],v=h[1],g=p.find((function(e){return e.props.name===m})),y=(0,l.useLocalization)(),b=o.useCallback((function(e){v&&(e.syntheticEvent.preventDefault(),v(e.item.name))}),[v]),C=function(){d(f().matchMedia("(min-width: 1024px)").matches?"desktop":"mobile")};return o.useEffect((function(){C();var t=new(f().ResizeObserver)(C);return t.observe(e.current),function(){t.disconnect()}}),[]),o.createElement("div",{className:"k-scheduler-views-wrapper",ref:e},g&&"mobile"===n&&o.createElement(s.DropDownButton,{className:"k-views-dropdown",onItemClick:b,popupSettings:{popupClass:"k-scheduler-toolbar"},textField:"title",items:p.map((function(e){return r(r({},e.props),{selected:e.props.name===m,title:"function"==typeof e.props.title?e.props.title.call(void 0,y):e.props.title})})),text:o.createElement(o.Fragment,null,"function"==typeof g.props.title?g.props.title.call(void 0,y):g.props.title,o.createElement("span",{className:"k-icon k-i-arrow-60-down"}))}),"desktop"===n&&o.createElement(s.ButtonGroup,{className:"k-scheduler-views"},p.map((function(e){return o.createElement(c.ViewSelectorItem,{key:e.props.name,view:e.props})}))))})),t.ViewSelectorList.displayName="KendoReactSchedulerViewSelectorList"},4814:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_RANGE=t.MAX_DATE=t.MIN_DATE=t.DEFAULT_GROUP=t.VISIBILITY_HIDDEN_STYLES=t.DISPLAY_NONE_STYLES=t.DEFAULT_ID=t.OCCURRENCE_ID=t.EMPTY_RESOURCE=t.HOURS_IN_DAY_COUNT=t.WEEKS_COUNT=t.DAYS_IN_WEEK_COUNT=t.DEFAULT_EVENT_HEIGHT=t.BORDER_WIDTH=t.TIME_FORMAT=t.MS_PER_HOUR=t.MS_PER_MINUTE=t.MS_PER_SECOND=t.MIDNIGHT_INVARIANT=t.MS_PER_DAY=void 0;var r=n(619),o=n(619);Object.defineProperty(t,"MS_PER_DAY",{enumerable:!0,get:function(){return o.MS_PER_DAY}}),t.MIDNIGHT_INVARIANT=new Date(1980,0,1),t.MS_PER_SECOND=1e3,t.MS_PER_MINUTE=60*t.MS_PER_SECOND,t.MS_PER_HOUR=60*t.MS_PER_MINUTE,t.TIME_FORMAT="t",t.BORDER_WIDTH=1,t.DEFAULT_EVENT_HEIGHT=25,t.DAYS_IN_WEEK_COUNT=7,t.WEEKS_COUNT=6,t.HOURS_IN_DAY_COUNT=24,t.EMPTY_RESOURCE=[{}],t.OCCURRENCE_ID=0,t.DEFAULT_ID=void 0,t.DISPLAY_NONE_STYLES={display:"none"},t.VISIBILITY_HIDDEN_STYLES={visibility:"hidden"},t.DEFAULT_GROUP={index:0,resources:[]},t.MIN_DATE=new Date(1900,0,1),t.MAX_DATE=new Date(2099,11,31),t.DEFAULT_RANGE={index:0,start:t.MIN_DATE,end:t.MAX_DATE,zonedStart:r.ZonedDate.fromLocalDate(t.MIN_DATE),zonedEnd:r.ZonedDate.fromLocalDate(t.MAX_DATE)}},6266:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SchedulerContext=t.useSchedulerActiveViewContext=t.SchedulerActiveViewContext=t.useSchedulerDataContext=t.SchedulerDataContext=t.useSchedulerDateContext=t.SchedulerDateContext=t.useSchedulerOrientationContext=t.SchedulerOrientationContext=t.useSchedulerDateRangeContext=t.SchedulerDateRangeContext=t.useSchedulerGroupsContext=t.SchedulerGroupsContext=t.useSchedulerDateFormatContext=t.SchedulerDateFormatContext=t.useSchedulerFieldsContext=t.SchedulerFieldsContext=t.useSchedulerViewsContext=t.SchedulerViewsContext=t.useSchedulerPropsContext=t.SchedulerPropsContext=t.useSchedulerElementContext=t.SchedulerElementContext=void 0;var r=n(3899),o=n(5538),i=n(4814),a=n(619);t.SchedulerElementContext=r.createContext({current:null}),t.useSchedulerElementContext=function(){return r.useContext(t.SchedulerElementContext)},t.SchedulerElementContext.displayName="SchedulerElementContext",t.SchedulerPropsContext=r.createContext({}),t.useSchedulerPropsContext=function(){return r.useContext(t.SchedulerPropsContext)},t.SchedulerPropsContext.displayName="SchedulerPropsContext",t.SchedulerViewsContext=r.createContext([]),t.useSchedulerViewsContext=function(){return r.useContext(t.SchedulerViewsContext)},t.SchedulerViewsContext.displayName="SchedulerViewsContext",t.SchedulerFieldsContext=r.createContext(o.defaultModelFields),t.useSchedulerFieldsContext=function(){return r.useContext(t.SchedulerFieldsContext)},t.SchedulerFieldsContext.displayName="SchedulerFieldsContext",t.SchedulerDateFormatContext=r.createContext({dateFormat:"{0:D}",shortDateFormat:"{0:d}"}),t.useSchedulerDateFormatContext=function(){return r.useContext(t.SchedulerDateFormatContext)},t.SchedulerDateFormatContext.displayName="SchedulerDateFormatContext",t.SchedulerGroupsContext=r.createContext([i.DEFAULT_GROUP]),t.useSchedulerGroupsContext=function(){return r.useContext(t.SchedulerGroupsContext)},t.SchedulerGroupsContext.displayName="SchedulerGroupsContext",t.SchedulerDateRangeContext=r.createContext({start:new Date,end:new Date,zonedStart:a.ZonedDate.fromLocalDate(new Date),zonedEnd:a.ZonedDate.fromLocalDate(new Date)}),t.useSchedulerDateRangeContext=function(){return r.useContext(t.SchedulerDateRangeContext)},t.SchedulerDateRangeContext.displayName="SchedulerDateRangeContext",t.SchedulerOrientationContext=r.createContext(null),t.useSchedulerOrientationContext=function(){return r.useContext(t.SchedulerOrientationContext)},t.SchedulerOrientationContext.displayName="SchedulerOrientationContext",t.SchedulerDateContext=r.createContext([new Date,o.noop]),t.useSchedulerDateContext=function(){return r.useContext(t.SchedulerDateContext)},t.SchedulerDateContext.displayName="SchedulerDateContext",t.SchedulerDataContext=r.createContext([[],o.noop]),t.useSchedulerDataContext=function(){return r.useContext(t.SchedulerDataContext)},t.SchedulerDataContext.displayName="SchedulerDataContext",t.SchedulerActiveViewContext=r.createContext(["day",o.noop]),t.useSchedulerActiveViewContext=function(){return r.useContext(t.SchedulerActiveViewContext)},t.SchedulerActiveViewContext.displayName="SchedulerActiveViewContext",t.SchedulerContext=function(e){var n=e.children,o=e.element,i=e.props,a=e.views,l=e.fields,s=e.groups,u=e.dateRange,c=e.dateFormat,d=e.orientation,p=e.date,f=e.data,h=e.activeView;return r.createElement(t.SchedulerElementContext.Provider,{value:o},r.createElement(t.SchedulerPropsContext.Provider,{value:i},r.createElement(t.SchedulerViewsContext.Provider,{value:a},r.createElement(t.SchedulerFieldsContext.Provider,{value:l},r.createElement(t.SchedulerDateFormatContext.Provider,{value:c},r.createElement(t.SchedulerGroupsContext.Provider,{value:s},r.createElement(t.SchedulerDateRangeContext.Provider,{value:u},r.createElement(t.SchedulerOrientationContext.Provider,{value:d},r.createElement(t.SchedulerDateContext.Provider,{value:p},r.createElement(t.SchedulerDataContext.Provider,{value:f},r.createElement(t.SchedulerActiveViewContext.Provider,{value:h},n)))))))))))}},9210:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SchedulerEditItemContext=t.useSchedulerEditItemShowOccurrenceDialogContext=t.SchedulerEditItemShowOccurrenceDialogContext=t.useSchedulerEditItemShowRemoveDialogContext=t.SchedulerEditItemShowRemoveDialogContext=t.useSchedulerEditItemRemoveItemContext=t.SchedulerEditItemRemoveItemContext=t.useSchedulerEditItemResizeItemContext=t.SchedulerEditItemResizeItemContext=t.useSchedulerEditItemDragItemContext=t.SchedulerEditItemDragItemContext=t.useSchedulerEditItemFormItemContext=t.SchedulerEditItemFormItemContext=t.useSchedulerEditItemPropsContext=t.SchedulerEditItemPropsContext=void 0;var r=n(3899),o=n(3865);t.SchedulerEditItemPropsContext=r.createContext([null]),t.useSchedulerEditItemPropsContext=function(){return r.useContext(t.SchedulerEditItemPropsContext)},t.SchedulerEditItemPropsContext.displayName="SchedulerEditItemPropsContext",t.SchedulerEditItemFormItemContext=r.createContext([null,o.noop,o.noop]),t.useSchedulerEditItemFormItemContext=function(){return r.useContext(t.SchedulerEditItemFormItemContext)},t.SchedulerEditItemFormItemContext.displayName="SchedulerEditItemFormItemContext",t.SchedulerEditItemDragItemContext=r.createContext([null,o.noop,o.noop]),t.useSchedulerEditItemDragItemContext=function(){return r.useContext(t.SchedulerEditItemDragItemContext)},t.SchedulerEditItemDragItemContext.displayName="SchedulerEditItemDragItemContext",t.SchedulerEditItemResizeItemContext=r.createContext([null,o.noop,o.noop]),t.useSchedulerEditItemResizeItemContext=function(){return r.useContext(t.SchedulerEditItemResizeItemContext)},t.SchedulerEditItemResizeItemContext.displayName="SchedulerEditItemResizeItemContext",t.SchedulerEditItemRemoveItemContext=r.createContext([null,o.noop,o.noop]),t.useSchedulerEditItemRemoveItemContext=function(){return r.useContext(t.SchedulerEditItemRemoveItemContext)},t.SchedulerEditItemRemoveItemContext.displayName="SchedulerEditItemRemoveItemContext",t.SchedulerEditItemShowRemoveDialogContext=r.createContext([!1,o.noop,o.noop]),t.useSchedulerEditItemShowRemoveDialogContext=function(){return r.useContext(t.SchedulerEditItemShowRemoveDialogContext)},t.SchedulerEditItemShowRemoveDialogContext.displayName="SchedulerEditItemShowRemoveDialogContext",t.SchedulerEditItemShowOccurrenceDialogContext=r.createContext([!1,o.noop,o.noop]),t.useSchedulerEditItemShowOccurrenceDialogContext=function(){return r.useContext(t.SchedulerEditItemShowOccurrenceDialogContext)},t.SchedulerEditItemShowOccurrenceDialogContext.displayName="SchedulerEditItemShowOccurrenceDialogContext",t.SchedulerEditItemContext=function(e){var n=e.props,o=e.form,i=e.drag,a=e.resize,l=e.remove,s=e.showRemoveDialog,u=e.showOccurrenceDialog,c=e.children;return r.createElement(t.SchedulerEditItemPropsContext.Provider,{value:n},r.createElement(t.SchedulerEditItemFormItemContext.Provider,{value:o},r.createElement(t.SchedulerEditItemDragItemContext.Provider,{value:i},r.createElement(t.SchedulerEditItemResizeItemContext.Provider,{value:a},r.createElement(t.SchedulerEditItemRemoveItemContext.Provider,{value:l},r.createElement(t.SchedulerEditItemShowRemoveDialogContext.Provider,{value:s},r.createElement(t.SchedulerEditItemShowOccurrenceDialogContext.Provider,{value:u},c)))))))}},2577:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SchedulerEditSlotContext=t.useSchedulerEditSlotFormItemContext=t.SchedulerEditSlotFormItemContext=t.useSchedulerEditSlotPropsContext=t.SchedulerEditSlotPropsContext=void 0;var r=n(3899);t.SchedulerEditSlotPropsContext=r.createContext([null]),t.useSchedulerEditSlotPropsContext=function(){return r.useContext(t.SchedulerEditSlotPropsContext)},t.SchedulerEditSlotPropsContext.displayName="SchedulerEditSlotPropsContext",t.SchedulerEditSlotFormItemContext=r.createContext([null]),t.useSchedulerEditSlotFormItemContext=function(){return r.useContext(t.SchedulerEditSlotFormItemContext)},t.SchedulerEditSlotFormItemContext.displayName="SchedulerEditSlotFormItemContext",t.SchedulerEditSlotContext=function(e){var n=e.props,o=e.form,i=e.children;return r.createElement(t.SchedulerEditSlotPropsContext.Provider,{value:n},r.createElement(t.SchedulerEditSlotFormItemContext.Provider,{value:o},i))}},8123:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SchedulerEditTaskContext=t.useSchedulerEditTaskShowOccurrenceDialogContext=t.SchedulerEditTaskShowOccurrenceDialogContext=t.useSchedulerEditTaskShowRemoveDialogContext=t.SchedulerEditTaskShowRemoveDialogContext=t.useSchedulerEditTaskRemoveItemContext=t.SchedulerEditTaskRemoveItemContext=void 0;var r=n(3899);t.SchedulerEditTaskRemoveItemContext=r.createContext([null]),t.useSchedulerEditTaskRemoveItemContext=function(){return r.useContext(t.SchedulerEditTaskRemoveItemContext)},t.SchedulerEditTaskShowRemoveDialogContext=r.createContext([!1]),t.useSchedulerEditTaskShowRemoveDialogContext=function(){return r.useContext(t.SchedulerEditTaskShowRemoveDialogContext)},t.SchedulerEditTaskShowOccurrenceDialogContext=r.createContext([!1]),t.useSchedulerEditTaskShowOccurrenceDialogContext=function(){return r.useContext(t.SchedulerEditTaskShowOccurrenceDialogContext)},t.SchedulerEditTaskContext=function(e){return r.createElement(t.SchedulerEditTaskRemoveItemContext.Provider,{value:e.remove},r.createElement(t.SchedulerEditTaskShowRemoveDialogContext.Provider,{value:e.showRemoveDialog},r.createElement(t.SchedulerEditTaskShowOccurrenceDialogContext.Provider,{value:e.showOccurrenceDialog},e.children)))}},7091:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useSchedulerResourceIteratorContext=t.SchedulerResourceIteratorContext=void 0;var r=n(3899);t.SchedulerResourceIteratorContext=r.createContext({resource:{},groupIndex:0}),t.useSchedulerResourceIteratorContext=function(){return r.useContext(t.SchedulerResourceIteratorContext)}},8744:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SchedulerViewContext=t.useSchedulerViewFocusedSlotsContext=t.SchedulerViewFocusedSlotsContext=t.useSchedulerViewFocusedItemsContext=t.SchedulerViewFocusedItemsContext=t.useSchedulerViewSelectedItemsContext=t.SchedulerViewSelectedItemsContext=t.useSchedulerViewSelectedSlotsContext=t.SchedulerViewSelectedSlotsContext=t.useSchedulerViewItemsContext=t.SchedulerViewItemsContext=t.useSchedulerViewSlotsContext=t.SchedulerViewSlotsContext=t.useSchedulerViewRangesContext=t.SchedulerViewRangesContext=t.useSchedulerViewPropsContext=t.SchedulerViewPropsContext=void 0;var r=n(3899),o=n(5538);t.SchedulerViewPropsContext=r.createContext({}),t.useSchedulerViewPropsContext=function(){return r.useContext(t.SchedulerViewPropsContext)},t.SchedulerViewPropsContext.displayName="SchedulerViewPropsContext",t.SchedulerViewRangesContext=r.createContext([]),t.useSchedulerViewRangesContext=function(){return r.useContext(t.SchedulerViewRangesContext)},t.SchedulerViewRangesContext.displayName="SchedulerViewRangesContext",t.SchedulerViewSlotsContext=r.createContext([[],o.noop]),t.useSchedulerViewSlotsContext=function(){return r.useContext(t.SchedulerViewSlotsContext)},t.SchedulerViewSlotsContext.displayName="SchedulerViewSlotsContext",t.SchedulerViewItemsContext=r.createContext([[],o.noop]),t.useSchedulerViewItemsContext=function(){return r.useContext(t.SchedulerViewItemsContext)},t.SchedulerViewItemsContext.displayName="SchedulerViewItemsContext",t.SchedulerViewSelectedSlotsContext=r.createContext([[],o.noop]),t.useSchedulerViewSelectedSlotsContext=function(){return r.useContext(t.SchedulerViewSelectedSlotsContext)},t.SchedulerViewSelectedSlotsContext.displayName="SchedulerViewSelectedSlotsContext",t.SchedulerViewSelectedItemsContext=r.createContext([[],o.noop]),t.useSchedulerViewSelectedItemsContext=function(){return r.useContext(t.SchedulerViewSelectedItemsContext)},t.SchedulerViewSelectedItemsContext.displayName="SchedulerViewSelectedItemsContext",t.SchedulerViewFocusedItemsContext=r.createContext([[],o.noop]),t.useSchedulerViewFocusedItemsContext=function(){return r.useContext(t.SchedulerViewFocusedItemsContext)},t.SchedulerViewFocusedItemsContext.displayName="SchedulerViewFocusedItemsContext",t.SchedulerViewFocusedSlotsContext=r.createContext([[],o.noop]),t.useSchedulerViewFocusedSlotsContext=function(){return r.useContext(t.SchedulerViewFocusedSlotsContext)},t.SchedulerViewFocusedSlotsContext.displayName="SchedulerViewFocusedSlotsContext",t.SchedulerViewContext=function(e){var n=e.children,o=e.props,i=e.ranges,a=e.slots,l=e.items,s=e.selectedSlots,u=e.selectedItems,c=e.focusedItems,d=e.focusedSlots;return r.createElement(t.SchedulerViewPropsContext.Provider,{value:o},r.createElement(t.SchedulerViewRangesContext.Provider,{value:i},r.createElement(t.SchedulerViewSlotsContext.Provider,{value:a},r.createElement(t.SchedulerViewItemsContext.Provider,{value:l},r.createElement(t.SchedulerViewSelectedSlotsContext.Provider,{value:s},r.createElement(t.SchedulerViewSelectedItemsContext.Provider,{value:u},r.createElement(t.SchedulerViewFocusedItemsContext.Provider,{value:c},r.createElement(t.SchedulerViewFocusedSlotsContext.Provider,{value:d},n))))))))}},7907:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(6266),t),o(n(9210),t),o(n(2577),t),o(n(8123),t),o(n(8744),t)},9249:function(e,t,n){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},r.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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.FilterableComboBox=void 0;var i=n(3899),a=n(9218),l=n(865);t.FilterableComboBox=function(e){var t=e.onChange,n=e.data,s=(e.validationMessage,e.visited,e.touched,e.modified,o(e,["onChange","data","validationMessage","visited","touched","modified"])),u=i.useState(n),c=u[0],d=u[1],p=i.useCallback((function(e){return t(e)}),[t]),f=i.useCallback((function(e){var t=(0,a.filterBy)(n||[],e.filter);d(t)}),[]);return i.createElement(l.ComboBox,r({style:{width:"100%"},data:c,filterable:!0,onFilterChange:f,onChange:p},s))}},7976:function(e,t,n){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},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.ResourceEditor=void 0;var o=n(3899),i=n(865),a=n(5538);t.ResourceEditor=function(e){var t=e.multiple?i.MultiSelect:i.DropDownList,n=o.useCallback((function(t){var n=t.target.props.dataItemKey,r=e.multiple?(t.target.value||[]).map((function(e){return e[n]})):t.target.value[n];e.onChange.call(void 0,{value:r})}),[e.multiple,e.onChange]),l=o.useCallback((function(t,n){var i=o.createElement(o.Fragment,null,e.colorField&&o.createElement("span",{key:1,className:"k-scheduler-mark",style:{backgroundColor:n.dataItem[e.colorField],marginRight:(0,a.isPresent)(n.dataItem[e.valueField])?"8px":"4px"}}," "),o.createElement("span",{key:2},"  ",t.props.children));return o.cloneElement(t,r({},t.props),i)}),[e.colorField,e.valueField]),s=o.useCallback((function(t,n){var r=o.createElement(o.Fragment,null,e.colorField&&n&&o.createElement("span",{key:1,className:"k-scheduler-mark",style:{backgroundColor:n[e.colorField],marginRight:n[e.valueField]?"8px":"4px"}}," "),t.props.children);return o.cloneElement(t,{},r)}),[e.colorField,e.valueField]),u=Array.isArray(e.value)?e.data.filter((function(t){return e.value.some((function(n){return t[e.valueField]===n}))})):e.data.find((function(t){return t[e.valueField]===e.value}));return o.createElement(t,{value:u,onChange:n,data:e.data,textField:e.textField,dataItemKey:e.valueField,valid:e.valid,validationMessage:e.validationMessage,itemRender:l,valueRender:s})}},4693:function(e,t,n){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},r.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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.SchedulerFormEditor=void 0;var i=n(3899),a=n(619),l=n(884),s=n(499),u=n(1448),c=n(3390),d=n(8138),p=n(3364),f=n(7907),h=n(9249),m=n(3865),v=n(245),g=n(7976),y=n(5476);t.SchedulerFormEditor=i.forwardRef((function(e,t){var n=i.useRef(null),c=i.useRef(null),h=(0,a.timezoneNames)(),v=(0,s.useLocalization)(),g=(0,f.useSchedulerFieldsContext)(),y=(0,f.useSchedulerPropsContext)(),C=y.resources,E=y.timezone;i.useImperativeHandle(c,(function(){return{element:n.current&&n.current.element?n.current.element:n.current,props:e}})),i.useImperativeHandle(t,(function(){return c.current}));var w=e.as,k=void 0===w?b.as:w,S=o(e,["as"]),O=e.titleLabel,D=void 0===O?b.titleLabel:O,x=e.titleError,I=void 0===x?b.titleError:x,T=e.titleEditor,_=void 0===T?b.titleEditor:T,R=e.startLabel,M=void 0===R?b.startLabel:R,P=e.startError,N=void 0===P?b.startError:P,F=e.startEditor,A=void 0===F?b.startEditor:F,j=e.startTimezoneLabel,L=void 0===j?b.startTimezoneLabel:j,V=e.startTimezoneError,z=void 0===V?b.startTimezoneError:V,B=e.startTimezoneEditor,H=void 0===B?b.startTimezoneEditor:B,U=e.startTimezoneCheckedLabel,W=void 0===U?b.startTimezoneCheckedLabel:U,K=e.startTimezoneCheckedEditor,q=void 0===K?b.startTimezoneCheckedEditor:K,Y=e.endLabel,G=void 0===Y?b.endLabel:Y,Z=e.endError,X=void 0===Z?b.endError:Z,$=e.endEditor,Q=void 0===$?b.endEditor:$,J=e.endTimezoneLabel,ee=void 0===J?b.endTimezoneLabel:J,te=e.endTimezoneError,ne=void 0===te?b.endTimezoneError:te,re=e.endTimezoneEditor,oe=void 0===re?b.endTimezoneEditor:re,ie=e.endTimezoneCheckedLabel,ae=void 0===ie?b.endTimezoneCheckedLabel:ie,le=e.endTimezoneCheckedEditor,se=void 0===le?b.endTimezoneCheckedEditor:le,ue=e.allDayLabel,ce=void 0===ue?b.allDayLabel:ue,de=e.allDayEditor,pe=void 0===de?b.allDayEditor:de,fe=e.recurrenceEditor,he=void 0===fe?b.recurrenceEditor:fe,me=e.descriptionLabel,ve=void 0===me?b.descriptionLabel:me,ge=e.descriptionEditor,ye=void 0===ge?b.descriptionEditor:ge,be=e.descriptionError,Ce=void 0===be?b.descriptionError:be,Ee=e.resourceLabel,we=void 0===Ee?b.resourceLabel:Ee,ke=e.resourceEditor,Se=void 0===ke?b.resourceEditor:ke,Oe=e.valueGetter(g.start)||new Date,De=e.valueGetter(g.startTimezone)||E||"",xe=e.valueGetter(g.endTimezone)||E||"",Ie=i.useMemo((function(){return v.toLanguageString(p.editorValidationRequired,p.messages[p.editorValidationRequired])}),[v]),Te=i.useState(Boolean(e.valueGetter(g.startTimezone))),_e=Te[0],Re=Te[1],Me=i.useState(Boolean(e.valueGetter(g.endTimezone))),Pe=Me[0],Ne=Me[1],Fe=i.useCallback((function(t){t.value||(e.onChange(g.startTimezone,{value:null}),e.onChange(g.endTimezone,{value:null}),Ne(t.value)),Re(t.value)}),[e.onChange,g.startTimezone,g.endTimezone]),Ae=i.useCallback((function(t){t.value||e.onChange(g.endTimezone,{value:null}),Ne(t.value)}),[e.onChange]),je=i.useCallback((function(e){return e?void 0:Ie}),[Ie]),Le=i.useCallback((function(e,t){return _e?je(t(g.startTimezone)):void 0}),[je,_e,g.startTimezone]),Ve=i.useCallback((function(e,t){return _e&&Pe?je(t(g.endTimezone))||je(t(g.startTimezone)):void 0}),[je,_e,Pe,g.startTimezone,g.endTimezone]),ze=i.useMemo((function(){return(0,m.classNames)("k-scheduler-edit-form",e.className)}),[e.className]);return i.createElement(k,r({ref:k===b.as?n:void 0},S,{className:ze}),i.createElement(i.Fragment,null,i.createElement("div",{className:"k-form-field"},i.createElement(u.Field,{name:g.title,component:D,editorId:"k-scheduler-editor-title"},v.toLanguageString(p.editorEventTitle,p.messages[p.editorEventTitle])),i.createElement("div",{className:"k-form-field-wrap"},i.createElement(u.Field,{id:"k-scheduler-editor-title",name:g.title,field:g.title,component:_}),e.errors[g.title]&&i.createElement(u.Field,{name:g.title,component:I},e.errors[g.title]))),i.createElement("div",{className:"k-form-field"},i.createElement(u.Field,{name:g.start,component:M,editorId:"k-scheduler-editor-start"},v.toLanguageString(p.editorEventStart,p.messages[p.editorEventStart])),i.createElement("div",{className:"k-form-field-wrap",style:{display:"flex"}},i.createElement("div",null,i.createElement(u.Field,{id:"k-scheduler-editor-start",name:g.start,width:"auto",component:A,as:e.valueGetter(g.isAllDay)?d.DatePicker:d.DateTimePicker,timezone:E}),e.errors[g.start]&&i.createElement(u.Field,{name:g.start,component:N},e.errors[g.start]))," ",i.createElement("div",null,i.createElement(q,{id:"k-scheduler-editor-set-start-timezone",onChange:Fe,value:_e})," ",i.createElement(W,{className:"k-checkbox-label",editorId:"k-scheduler-editor-set-start-timezone",style:{display:"inline-flex"}},v.toLanguageString(p.editorEventTimeZone,p.messages[p.editorEventTimeZone]))))),_e&&i.createElement("div",{className:"k-form-field"},i.createElement(u.Field,{name:g.start,component:L},v.toLanguageString(p.editorEventStartTimeZone,p.messages[p.editorEventStartTimeZone])),i.createElement("div",{className:"k-form-field-wrap"},i.createElement(u.Field,{component:H,value:De,validator:Le,data:h,name:g.startTimezone}),e.errors[g.startTimezone]&&i.createElement(u.Field,{name:g.startTimezone,component:z},e.errors[g.startTimezone]))),i.createElement("div",{className:"k-form-field"},i.createElement(u.Field,{name:g.end,component:G,editorId:"k-scheduler-editor-end"},v.toLanguageString(p.editorEventEnd,p.messages[p.editorEventEnd])),i.createElement("div",{className:"k-form-field-wrap",style:{display:"flex"}},i.createElement("div",null,i.createElement(u.Field,{id:"k-scheduler-editor-end",name:g.end,width:"auto",component:Q,as:e.valueGetter(g.isAllDay)?d.DatePicker:d.DateTimePicker,timezone:E}),e.errors[g.end]&&i.createElement(u.Field,{name:g.end,component:X},e.errors[g.end]))," ",i.createElement("div",null,_e&&i.createElement(i.Fragment,null,i.createElement(se,{id:"k-scheduler-editor-set-end-timezone",onChange:Ae,value:Pe})," ",i.createElement(ae,{className:"k-checkbox-label",editorId:"k-scheduler-editor-set-end-timezone",style:{display:"inline-flex"}},v.toLanguageString(p.editorEventSeparateTimeZones,p.messages[p.editorEventSeparateTimeZones])))))),Pe&&i.createElement("div",{className:"k-form-field"},i.createElement(u.Field,{name:g.endTimezone,component:ee},v.toLanguageString(p.editorEventEndTimeZone,p.messages[p.editorEventEndTimeZone])),i.createElement("div",{className:"k-form-field-wrap"},i.createElement(u.Field,{value:xe,data:h,validator:Ve,component:oe,name:g.endTimezone}),e.errors[g.endTimezone]&&i.createElement(u.Field,{name:g.endTimezone,component:ne},e.errors[g.endTimezone]))),i.createElement("div",{className:"k-form-field"},i.createElement(u.Field,{name:g.isAllDay,component:l.Label}),i.createElement("div",{className:"k-form-field-wrap"},i.createElement(u.Field,{id:"k-is-allday-checkbox",name:g.isAllDay,component:pe})," ",i.createElement(u.Field,{name:g.isAllDay,field:g.isAllDay,editorId:"k-is-allday-checkbox",className:"k-checkbox-label",component:ce},v.toLanguageString(p.editorEventAllDay,p.messages[p.editorEventAllDay])))),i.createElement(u.Field,{component:he,field:g.recurrenceRule,name:g.recurrenceRule,start:Oe}),i.createElement("div",{className:"k-form-field"},i.createElement(u.Field,{name:g.description,component:ve},v.toLanguageString(p.editorEventDescription,p.messages[p.editorEventDescription])),i.createElement("div",{className:"k-form-field-wrap"},i.createElement(u.Field,{component:ye,name:g.description,rows:1,id:"k-event-description",style:{width:"100%"}}),e.errors[g.description]&&i.createElement(u.Field,{name:g.description,component:Ce},e.errors[g.description]))),(C||[]).map((function(e){return i.createElement("div",{key:e.field},i.createElement("div",{className:"k-form-field"},i.createElement(u.Field,{name:e.field,component:we}),i.createElement(l.Label,null,e.name),i.createElement(u.Field,{name:e.field,component:Se,resource:e,multiple:e.multiple,data:e.data,textField:e.textField,valueField:e.valueField,colorField:e.colorField})))}))))}));var b={as:i.forwardRef((function(e,t){return i.createElement(u.FormElement,{ref:t,id:e.id,style:e.style,tabIndex:e.tabIndex,className:e.className,horizontal:e.horizontal,children:e.children})})),titleLabel:l.Label,titleError:l.Error,titleEditor:c.Input,startLabel:l.Label,startError:l.Error,startEditor:y.ZonedDateTime,startTimezoneLabel:l.Label,startTimezoneError:l.Error,startTimezoneEditor:h.FilterableComboBox,startTimezoneCheckedLabel:l.Label,startTimezoneCheckedEditor:c.Checkbox,endLabel:l.Label,endError:l.Error,endEditor:y.ZonedDateTime,endTimezoneLabel:l.Label,endTimezoneError:l.Error,endTimezoneEditor:h.FilterableComboBox,endTimezoneCheckedLabel:l.Label,endTimezoneCheckedEditor:c.Checkbox,allDayLabel:l.Label,allDayEditor:c.Checkbox,recurrenceEditor:v.RecurrenceEditor,descriptionLabel:l.Label,descriptionEditor:c.TextArea,descriptionError:l.Error,resourceLabel:l.Label,resourceEditor:g.ResourceEditor};t.SchedulerFormEditor.displayName="KendoReactSchedulerFormEditor",t.SchedulerFormEditor.defaultProps=b},5476:function(e,t,n){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},r.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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.ZonedDateTime=void 0;var i=n(3899),a=n(8138),l=n(619),s=n(6266);t.ZonedDateTime=function(e){var t=e.as,n=void 0===t?d.as:t,a=o(e,["as"]),l=(0,s.useSchedulerPropsContext)().timezone;return i.createElement(n,r({},a,{value:u(a.value,l),onChange:function(e){a.onChange&&a.onChange({value:c(e.target.value,l)})}}))};var u=function(e,t){return e?(0,l.toLocalDate)(l.ZonedDate.fromLocalDate(e,t).toUTCDate()):e},c=function(e,t){return e?l.ZonedDate.fromUTCDate(new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())),t).toLocalDate():e},d={as:a.DateTimePicker}},8586:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(2238),t),o(n(780),t),o(n(3475),t),o(n(1534),t),o(n(8644),t),o(n(9314),t),o(n(6548),t),o(n(7438),t),o(n(100),t),o(n(9027),t)},100:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useItemsFocus=t.ITEMS_FOCUS_ACTION=void 0;var r,o=n(5538);!function(e){e.next="ITEMS_FOCUS_NEXT",e.prev="ITEMS_FOCUS_PREV"}(r=t.ITEMS_FOCUS_ACTION||(t.ITEMS_FOCUS_ACTION={})),t.useItemsFocus=function(e){return[[],function(t,n){switch(t.type){case r.next:if(!t.item||!t.item.current||!e)return;(i=(0,o.findNextItem)(t.item,e,t.ignoreIsAllDay,!1))&&i.current&&i.current.element&&(n.preventDefault(),i.current.element.focus());break;case r.prev:if(!t.item||!t.item.current||!e)return;var i;(i=(0,o.findNextItem)(t.item,e,t.ignoreIsAllDay,!0))&&i.current&&i.current.element&&(n.preventDefault(),i.current.element.focus())}}]}},1365:function(e,t,n){var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.useItemsSelection=t.ITEMS_SELECT_ACTION=void 0;var o,i=n(3899),a=n(5538);!function(e){e.select="ITEMS_SELECT_SELECT",e.selectNext="ITEMS_SELECT_SELECT_NEXT",e.selectPrev="ITEMS_SELECT_SELECT_PREV",e.reset="ITEMS_SELECT_RESET",e.add="ITEMS_SELECT_ADD",e.remove="ITEMS_SELECT_REMOVE"}(o=t.ITEMS_SELECT_ACTION||(t.ITEMS_SELECT_ACTION={})),t.useItemsSelection=function(e){var t=i.useState([]),n=t[0],l=t[1],s=i.useCallback((function(t,i){switch(t.type){case o.select:if(!t.item)return;l([t.item]);break;case o.selectNext:if(!t.item||!t.item.current||!e)return;(s=(0,a.findNextItem)(t.item,e,t.ignoreIsAllDay,!1))&&(i.preventDefault(),l([s]));break;case o.selectPrev:if(!t.item||!t.item.current||!e)return;var s;(s=(0,a.findNextItem)(t.item,e,t.ignoreIsAllDay,!0))&&(i.preventDefault(),l([s]));break;case o.reset:l([]);break;case o.add:if(!t.item)return;n.some((function(e){return e===t.item}))||l(r(r([],n,!0),[t.item],!1));break;case o.remove:if(!t.item)return;l(r([],n.filter((function(e){return e!==t.item})),!0))}}),[e,n]);return[n,s]}},9027:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.findDownSlot=t.findRightSlot=t.findLeftSlot=t.findUpSlot=t.useSlotsFocus=t.SLOTS_FOCUS_ACTION=void 0,function(e){e.up="SLOT_FOCUS_UP",e.down="SLOT_FOCUS_DOWN",e.left="SLOT_FOCUS_LEFT",e.right="SLOT_FOCUS_RIGHT"}(n=t.SLOTS_FOCUS_ACTION||(t.SLOTS_FOCUS_ACTION={})),t.useSlotsFocus=function(e){return[[],function(r,o){switch(r.type){case n.up:if(!r.slot.current||!e)return;(i=(0,t.findUpSlot)(r.slot,e))&&i.current&&i.current.element&&(o.preventDefault(),i.current.element.focus());break;case n.down:if(!r.slot||!e)return;(i=(0,t.findDownSlot)(r.slot,e))&&i.current&&i.current.element&&(o.preventDefault(),i.current.element.focus());break;case n.left:if(!r.slot||!e)return;(i=(0,t.findLeftSlot)(r.slot,e))&&i.current&&i.current.element&&(o.preventDefault(),i.current.element.focus());break;case n.right:if(!r.slot||!e)return;var i;(i=(0,t.findRightSlot)(r.slot,e))&&i.current&&i.current.element&&(o.preventDefault(),i.current.element.focus())}}]},t.findUpSlot=function(e,t){return t.find((function(t){return null!==t.current&&null!==e.current&&t.current.props.row===e.current.props.row-1&&t.current.props.col===e.current.props.col}))},t.findLeftSlot=function(e,t){return t.find((function(t){return null!==t.current&&null!==e.current&&t.current.props.row===e.current.props.row&&t.current.props.col===e.current.props.col-1}))},t.findRightSlot=function(e,t){return t.find((function(t){return null!==t.current&&null!==e.current&&t.current.props.row===e.current.props.row&&t.current.props.col===e.current.props.col+1}))},t.findDownSlot=function(e,t){return t.find((function(t){return null!==t.current&&null!==e.current&&t.current.props.row===e.current.props.row+1&&t.current.props.col===e.current.props.col}))}},2334:function(e,t,n){var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.useSlotsSelection=t.SLOTS_SELECT_ACTION=void 0;var o,i=n(3899);!function(e){e.select="SLOTS_SELECT_SELECT",e.reset="SLOTS_SELECT_RESET",e.add="SLOTS_SELECT_ADD"}(o=t.SLOTS_SELECT_ACTION||(t.SLOTS_SELECT_ACTION={})),t.useSlotsSelection=function(e){var t=i.useState([]),n=t[0],a=t[1],l=i.useCallback((function(e){switch(e.type){case o.select:if(!e.slot)return;a([e.slot]);break;case o.reset:a([]);break;case o.add:if(!e.slot)return;n.some((function(t){return t===e.slot}))||a(r(r([],n,!0),[e.slot],!1))}}),[n]);return[n,l]}},1534:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useAsyncMouseEnterLeave=void 0;var r=n(3899);t.useAsyncMouseEnterLeave=function(e){var t=e.handleMouseEnter,n=e.handleMouseLeave,o=r.useRef(0).current;return{onMouseEnter:function(e){clearTimeout(o),t(e)},onMouseLeave:function(e){var t;t=function(){return n(e)},clearTimeout(o),o=window.setTimeout((function(){return t()}))}}}},780:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useCellSync=void 0;var r=n(3899),o=n(3152),i=n(3152);t.useCellSync=function(e,t){var n=e.element;r.useLayoutEffect((function(){if(n&&n.current){var t=[],r=[],a=[],l=n.current.querySelectorAll(e.selector);l.forEach((function(n){var l=n.getBoundingClientRect().width,s=e.explicitDepth&&void 0!==e.attribute?n.getAttribute(e.attribute):0,u=(0,o.getPadding)(n,!0),c=(0,i.getBorders)(n,!0);null!==s&&((!a[s]||c>a[s])&&(a[s]=c),(!r[s]||u>r[s])&&(r[s]=u),(!t[s]||l>t[s])&&(t[s]=l))})),l.forEach((function(n){var o=e.explicitDepth?n.getAttribute(e.attribute):0;null!==o&&(n.style.minWidth="".concat(t[o]-r[o]-a[o],"px"))}))}}),t)}},1995:function(e,t,n){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},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.useControlledState=void 0;var o=n(3899);t.useControlledState=function(e,t,n){var i=o.useState(t||e),a=i[0],l=i[1];return[void 0!==t?t:a,o.useCallback((function(e,t){l(e),n&&n.call(void 0,r(r({},t),{value:e}))}),[n,l])]}},8644:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useEditable=void 0;var r=n(3899),o=n(6266);t.useEditable=function(e){var t=r.useContext(o.SchedulerPropsContext),n=void 0!==e?e:t.editable||!1,i=!0===n||void 0!==n&&!1!==n&&!0===n.edit,a=!0===n||void 0!==n&&!1!==n&&!0===n.resize,l=!0===n||void 0!==n&&!1!==n&&!0===n.remove,s=!0===n||void 0!==n&&!1!==n&&!0===n.drag;return{add:!0===n||void 0!==n&&!1!==n&&!0===n.add,edit:i,drag:s,remove:l,resize:a,select:!0===n||void 0!==n&&!1!==n&&!0===n.select}}},2238:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.usePropOrState=void 0;var r=n(3899),o=n(3865);t.usePropOrState=function(e,t){var n=r.useState(t),i=n[0],a=n[1];return void 0!==e?[e,o.noop]:[i,a]}},3475:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useRowSync=void 0;var r=n(3899),o=n(3152),i=n(4814);t.useRowSync=function(e,t){var n=e.element;r.useEffect((function(){if(n&&n.current){var t=[[]];Array.from(n.current.querySelectorAll(e.selector)).filter((function(t){return!t.classList.contains((n=e.applyTo,n.slice(1,n.length)));var n})).forEach((function(n){var r=n.clientHeight,o=n.getAttribute(e.horizontalAttribute),a=n.getAttribute(e.verticalAttribute);null!==o&&null!==a&&(t[o]||(t[o]=[]),(!t[o][a]||r>t[o][a])&&(t[o][a]=r-i.BORDER_WIDTH))})),Array.from(n.current.querySelectorAll(e.applyTo)).forEach((function(n){var r=n.getAttribute(e.horizontalAttribute),i=n.getAttribute(e.verticalAttribute);if(null!==r&&null!==i){var a=(0,o.getPadding)(n),l=t[r][i]-a;(0,o.setRect)(n,{height:l},!0)}}))}}),t)}},7438:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useSchedulerItem=void 0;var r=n(3899),o=n(7907),i=n(3865);t.useSchedulerItem=function(e,t){var n=e._ref,a=e.itemRef,l=r.useRef(null),s=r.useRef(null),u=(0,o.useSchedulerViewItemsContext)()[1];return r.useImperativeHandle(l,(function(){return{element:s.current,props:e}})),r.useImperativeHandle(t,(function(){return l.current})),r.useImperativeHandle(n,(function(){return l.current})),r.useImperativeHandle(a,(function(){return l.current})),r.useLayoutEffect((function(){return u({type:i.COLLECTION_ACTION.add,item:l}),function(){u({type:i.COLLECTION_ACTION.remove,item:l})}})),{item:l,element:s}}},9530:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useSchedulerSlot=void 0;var r=n(3899),o=n(7907),i=n(3865);t.useSchedulerSlot=function(e,t){var n=e._ref,a=r.useRef(null),l=r.useRef(null),s=(0,o.useSchedulerViewSlotsContext)()[1];return r.useImperativeHandle(a,(function(){return{element:l.current,props:e}})),r.useImperativeHandle(t,(function(){return a.current})),r.useImperativeHandle(n,(function(){return a.current})),r.useEffect((function(){return s({type:i.COLLECTION_ACTION.add,item:a}),function(){s({type:i.COLLECTION_ACTION.remove,item:a})}})),{slot:a,element:l}}},9314:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useSlotExpand=void 0;var r=n(3899),o=n(3152),i=n(4814),a=n(7907);t.useSlotExpand=function(e,t){var n=r.useRef(),l=r.useRef(0),s=(0,a.useSchedulerElementContext)(),u=r.useCallback((function(){if(t&&e.current){var n=e.current.element,r=e.current.props;if(n){var a=(0,o.getPadding)(n),s=0,u=r.items.filter((function(e){return e._ref.current}));u.forEach((function(e){if(e._ref.current){var t=(0,o.getRect)(e._ref.current.element).height;s+=t}}));var c=u.length*i.BORDER_WIDTH*2+s-(a||0)+("object"==typeof t&&t.offsetTop?t.offsetTop:0)+("object"==typeof t&&t.offsetBottom?t.offsetBottom:0);u.length?c>l.current-a&&(0,o.setRect)(n,{height:c},!0):n&&(n.style.minHeight="")}}}),[t,e]),c=r.useCallback((function(){void 0!==n.current&&window.cancelAnimationFrame(n.current),n.current=window.requestAnimationFrame((function(){u()}))}),[u]);r.useLayoutEffect((function(){if(e.current){var t=e.current.element;t&&(l.current=t.clientHeight)}}),[]),r.useEffect(u,[e,e.current&&e.current.props,t]),r.useEffect((function(){if(e.current){var t=e.current.props.items.filter((function(e){return e._ref.current})).map((function(e){if(e._ref.current&&e._ref.current.element&&s.current){var t=new window.ResizeObserver(c);return t.observe(e._ref.current.element),function(){t.disconnect()}}}));return function(){t.forEach((function(e){return e&&e()}))}}}),[c,s,e])}},6548:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useWorkHours=void 0;var r=n(3899),o=n(8586);t.useWorkHours=function(e,t){var n=(0,o.usePropOrState)(e,t),i=n[0],a=n[1],l=r.useCallback((function(){a(!i)}),[i,a]);return[i,l]}},9299:function(e,t,n){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},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.SchedulerEditItem=void 0;var o=n(3899),i=n(6809),a=n(3540),l=n(7160),s=n(3865),u=n(3642),c=n(3999),d=n(6612),p=n(8586),f=n(7907),h=n(9210),m=n(9356),v=n(7966),g=n(8858),y=n(8569),b=n(9593),C=n(624),E=n(1611),w=n(1365);t.SchedulerEditItem=o.forwardRef((function(e,t){var n=e._ref,i=e.itemRef,a=e.onDataAction,l=e.ignoreIsAllDay,s=e.viewItem,u=e.series,c=e.onSeriesChange,d=e.form,S=e.formItem,O=e.onFormItemChange,D=e.drag,x=e.dragItem,I=e.onDragItemChange,T=e.resize,_=e.resizeItem,R=e.onResizeItemChange,M=e.removeDialog,P=e.removeItem,N=e.onRemoveItemChange,F=e.occurrenceDialog,A=e.showOccurrenceDialog,j=e.onShowOccurrenceDialogChange,L=e.showRemoveDialog,V=e.onShowRemoveDialogChange,z=e.onFocus,B=e.onFocusAction,H=e.onMouseDown,U=e.onMouseDownAction,W=e.onMouseUp,K=e.onMouseUpAction,q=e.onClick,Y=e.onClickAction,G=e.onDoubleClick,Z=e.onDoubleClickAction,X=e.onRemoveClick,$=e.onRemoveClickAction,Q=e.onPress,J=e.onPressAction,ee=e.onDrag,te=e.onDragAction,ne=e.onRelease,re=e.onReleaseAction,oe=e.onResizePress,ie=e.onResizePressAction,ae=e.onResizeStartDrag,le=e.onResizeStartDragAction,se=e.onResizeEndDrag,ue=e.onResizeEndDragAction,ce=e.onResizeRelease,de=e.onResizeReleaseAction,pe=e.onOccurrenceClick,fe=e.onOccurrenceClickAction,he=e.onSeriesClick,me=e.onSeriesClickAction,ve=e.onKeyDown,ge=e.onKeyDownAction,ye=e.onKeyUp,be=e.onKeyUpAction,Ce=e.onRemoveConfirm,Ee=e.onRemoveConfirmAction,we=e.onFormSubmit,ke=e.onFormSubmitAction,Se=e.onCancel,Oe=e.onCancelAction,De=o.useState(e.tabIndex),xe=De[0],Ie=De[1],Te=o.useRef(null),_e=o.useRef(null);o.useImperativeHandle(Te,(function(){return{props:e,element:_e.current&&_e.current.element}})),o.useImperativeHandle(t,(function(){return Te.current})),o.useImperativeHandle(n,(function(){return _e.current})),o.useImperativeHandle(i,(function(){return _e.current}));var Re=s||k.viewItem,Me=D||k.drag,Pe=T||k.resize,Ne=d||k.form,Fe=F||k.occurrenceDialog,Ae=M||k.removeDialog,je=(0,p.useEditable)(e.editable),Le=(0,f.useSchedulerViewSelectedItemsContext)(),Ve=Le[0],ze=Le[1],Be=(0,E.useSeries)(null,u,c),He=Be[0],Ue=Be[2],We=(0,m.useFormItem)({series:He,onDataAction:a},[null,S,O]),Ke=We[0],qe=We[1],Ye=We[2],Ge=(0,b.useDragItem)({dataItem:e.dataItem,ignoreIsAllDay:e.ignoreIsAllDay,isAllDay:e.isAllDay,onDataAction:a},[null,x,I]),Ze=Ge[0],Xe=Ge[1],$e=Ge[2],Qe=(0,C.useResizeItem)({dataItem:e.dataItem,onDataAction:a},[null,_,R]),Je=Qe[0],et=Qe[1],tt=Qe[2],nt=(0,g.useRemoveItem)({series:He,onDataAction:a},[null,P,N]),rt=nt[0],ot=nt[1],it=nt[2],at=(0,y.useShowRemoveDialog)(!1,L,V),lt=at[0],st=at[1],ut=at[2],ct=(0,v.useShowOccurrenceDialog)(!1,A,j),dt=ct[0],pt=ct[1],ft=ct[2],ht=(0,f.useSchedulerViewItemsContext)()[0],mt=(0,f.useSchedulerViewFocusedItemsContext)()[1],vt=(0,f.useSchedulerViewFocusedSlotsContext)()[1],gt=Boolean(Ve&&Ve.some((function(e){return e.current===_e.current}))),yt=o.useMemo((function(){return{selected:gt,series:He,formItem:Ke,dragItem:Ze,resizeItem:Je,removeItem:rt,showRemoveDialog:lt,showOccurrenceDialog:dt}}),[Ze,Ke,rt,Je,gt,He,dt,lt]),bt=o.useMemo((function(){var e;return(e={})[E.SERIES_ACTION.set]=Ue,e[E.SERIES_ACTION.toggle]=Ue,e[E.SERIES_ACTION.reset]=Ue,e[w.ITEMS_SELECT_ACTION.select]=ze,e[w.ITEMS_SELECT_ACTION.add]=ze,e[w.ITEMS_SELECT_ACTION.remove]=ze,e[w.ITEMS_SELECT_ACTION.reset]=ze,e[w.ITEMS_SELECT_ACTION.selectNext]=ze,e[w.ITEMS_SELECT_ACTION.selectPrev]=ze,e[m.FORM_ITEM_ACTION.set]=Ye,e[m.FORM_ITEM_ACTION.setMaster]=Ye,e[m.FORM_ITEM_ACTION.reset]=Ye,e[m.FORM_ITEM_ACTION.complete]=Ye,e[g.REMOVE_ITEM_ACTION.set]=it,e[g.REMOVE_ITEM_ACTION.reset]=it,e[g.REMOVE_ITEM_ACTION.complete]=it,e[v.SHOW_OCCURRENCE_DIALOG_ACTION.close]=ft,e[v.SHOW_OCCURRENCE_DIALOG_ACTION.open]=ft,e[v.SHOW_OCCURRENCE_DIALOG_ACTION.set]=ft,e[v.SHOW_OCCURRENCE_DIALOG_ACTION.toggle]=ft,e[v.SHOW_OCCURRENCE_DIALOG_ACTION.reset]=ft,e[y.SHOW_REMOVE_DIALOG_ACTION.close]=ut,e[y.SHOW_REMOVE_DIALOG_ACTION.open]=ut,e[y.SHOW_REMOVE_DIALOG_ACTION.set]=ut,e[y.SHOW_REMOVE_DIALOG_ACTION.toggle]=ut,e[y.SHOW_REMOVE_DIALOG_ACTION.reset]=ut,e[b.DRAG_ITEM_ACTION.start]=$e,e[b.DRAG_ITEM_ACTION.drag]=$e,e[b.DRAG_ITEM_ACTION.complete]=$e,e[b.DRAG_ITEM_ACTION.completeOccurrence]=$e,e[b.DRAG_ITEM_ACTION.completeSeries]=$e,e[b.DRAG_ITEM_ACTION.set]=$e,e[b.DRAG_ITEM_ACTION.reset]=$e,e[b.DRAG_ITEM_ACTION.dragSelected]=$e,e[C.RESIZE_ITEM_ACTION.start]=tt,e[C.RESIZE_ITEM_ACTION.startDrag]=tt,e[C.RESIZE_ITEM_ACTION.startDragSelected]=tt,e[C.RESIZE_ITEM_ACTION.endDrag]=tt,e[C.RESIZE_ITEM_ACTION.endDragSelected]=tt,e[C.RESIZE_ITEM_ACTION.complete]=tt,e[C.RESIZE_ITEM_ACTION.completeOccurrence]=tt,e[C.RESIZE_ITEM_ACTION.completeSeries]=tt,e[C.RESIZE_ITEM_ACTION.set]=tt,e[C.RESIZE_ITEM_ACTION.reset]=tt,e[p.ITEMS_FOCUS_ACTION.next]=mt,e[p.ITEMS_FOCUS_ACTION.prev]=mt,e[p.SLOTS_FOCUS_ACTION.left]=vt,e[p.SLOTS_FOCUS_ACTION.right]=vt,e[p.SLOTS_FOCUS_ACTION.up]=vt,e[p.SLOTS_FOCUS_ACTION.down]=vt,e.null=function(){},e}),[$e,Ye,ze,it,tt,Ue,ft,ut,mt,vt]),Ct=o.useCallback((function(t){if(B){var n=B(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r(r({},e),{item:_e}),t)})):bt[n.type](r(r({},n),{item:_e})))}z&&z.call(void 0,t)}),[bt,z,B,e,yt]),Et=o.useCallback((function(t){if(U){var n=U(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r(r({},e),{item:_e}),t)})):bt[n.type](r(r({},n),{item:_e})))}H&&H.call(void 0,t)}),[bt,H,U,e,yt]),wt=o.useCallback((function(t){if(K){var n=K(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r(r({},e),{item:_e}),t)})):bt[n.type](r(r({},n),{item:_e})))}W&&W.call(void 0,t)}),[bt,W,K,e,yt]),kt=o.useCallback((function(t){if(Y){var n=Y(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r(r({},e),{item:_e}),t)})):bt[n.type](r(r({},n),{item:_e})))}q&&q.call(void 0,t)}),[bt,q,Y,e,yt]),St=o.useCallback((function(t){if(Z){var n=Z(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r(r({},e),{item:_e}),t)})):bt[n.type](r(r({},n),{item:_e})))}G&&G.call(void 0,t)}),[Z,G,e,bt,yt]),Ot=o.useCallback((function(t){if($){var n=$(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r(r({},e),{item:_e}),t)})):bt[n.type](r(r({},n),{item:_e})))}X&&X.call(void 0,t)}),[$,X,e,bt,yt]),Dt=o.useCallback((function(t){if(J){var n=J(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r(r({},e),{item:_e}),t)})):bt[n.type](r(r({},n),{item:_e}),t))}Q&&Q.call(void 0,t)}),[J,Q,e,bt,yt]),xt=o.useCallback((function(t){if(te){var n=te(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r(r({},e),{item:_e}),t.dragEvent.originalEvent)})):bt[n.type](r(r({},n),{item:_e}),t.dragEvent.originalEvent))}ee&&ee.call(void 0,t)}),[te,ee,e,bt,yt]),It=o.useCallback((function(t){if(re){var n=re(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r(r({},e),{item:_e}),t.dragEvent.originalEvent)})):bt[n.type](r(r({},n),{item:_e}),t.dragEvent.originalEvent))}ne&&ne.call(void 0,t)}),[re,ne,e,bt,yt]),Tt=o.useCallback((function(t){if(ie){var n=ie(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r(r({},e),{item:_e}),t.dragEvent.originalEvent)})):bt[n.type](r(r({},n),{item:_e}),t.dragEvent.originalEvent))}oe&&oe.call(void 0,t)}),[ie,oe,e,yt,bt]),_t=o.useCallback((function(t){if(le){var n=le(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r(r({},e),{item:_e}),t.dragEvent.originalEvent)})):bt[n.type](r(r({},n),{item:_e}),t.dragEvent.originalEvent))}ae&&ae.call(void 0,t)}),[ae,le,e,bt,yt]),Rt=o.useCallback((function(t){if(ue){var n=ue(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r(r({},e),{item:_e}),t.dragEvent.originalEvent)})):bt[n.type](r(r({},n),{item:_e}),t.dragEvent.originalEvent))}se&&se.call(void 0,t)}),[se,ue,e,bt,yt]),Mt=o.useCallback((function(t){if(de){var n=de(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r(r({},e),{item:_e}),t.dragEvent.originalEvent)})):bt[n.type](r(r({},n),{item:_e}),t.dragEvent.originalEvent))}ce&&ce.call(void 0,t)}),[de,ce,e,bt,yt]),Pt=o.useCallback((function(t){if(ke){var n=ke(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r(r({},e),{item:_e}),t)})):bt[n.type](r(r({},n),{item:_e}),t))}we&&we.call(void 0,t)}),[ke,we,e,yt,bt]),Nt=o.useCallback((function(t){if(Oe){var n=Oe(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r(r({},e),{item:_e}),t)})):bt[n.type](r(r({},n),{item:_e}),t))}Se&&Se.call(void 0,t)}),[Oe,Se,e,yt,bt]),Ft=o.useCallback((function(t){if(fe){var n=fe(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r(r({},e),{item:_e}),t)})):bt[n.type](r(r({},n),{item:_e}),t))}pe&&pe.call(void 0,t)}),[fe,pe,e,yt,bt]),At=o.useCallback((function(t){if(me){var n=me(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r(r({},e),{item:_e}),t)})):bt[n.type](r(r({},n),{item:_e}),t))}he&&he.call(void 0,t)}),[me,he,e,yt,bt]),jt=o.useCallback((function(t){if(ge){var n=ge(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r(r({},e),{item:_e}),t.syntheticEvent)})):bt[n.type](r(r({},n),{item:_e}),t.syntheticEvent))}ve&&ve.call(void 0,t)}),[ge,ve,e,yt,bt]),Lt=o.useCallback((function(t){if(be){var n=be(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r(r({},e),{item:_e}),t.syntheticEvent)})):bt[n.type](r(r({},n),{item:_e}),t.syntheticEvent))}ye&&ye.call(void 0,t)}),[be,ye,e,yt,bt]),Vt=o.useCallback((function(t){if(Ee){var n=Ee(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r(r({},e),{item:_e}),t.syntheticEvent)})):bt[n.type](r(r({},n),{item:_e}),t.syntheticEvent))}Ce&&Ce.call(void 0,t)}),[Ee,Ce,e,yt,bt]);return o.useEffect((function(){var t=ht.length&&ht[0].current===_e.current;Ie(void 0!==e.tabIndex?null===e.tabIndex?void 0:e.tabIndex:0===Ve.length&&t?0:void 0)}),[ht,e.tabIndex,Ve.length]),o.createElement(h.SchedulerEditItemContext,{props:e,form:[Ke,qe,Ye],drag:[Ze,Xe,$e],resize:[Je,et,tt],remove:[rt,ot,it],showRemoveDialog:[lt,st,ut],showOccurrenceDialog:[dt,pt,ft]},o.createElement(Re,r({},e,{_ref:_e,itemRef:_e,selected:gt,tabIndex:xe,onKeyDown:jt,onKeyUp:Lt,onFocus:Ct,onMouseUp:wt,onMouseDown:Et,onClick:kt,onDoubleClick:St,onRemoveClick:Ot,onPress:Dt,onDrag:xt,onRelease:It,onResizePress:Tt,onResizeEndDrag:Rt,onResizeStartDrag:_t,onResizeRelease:Mt})),Ze&&je.drag&&(Array.isArray(Ze)?Ze.map((function(t,n){return o.createElement(Me,{key:n,ignoreIsAllDay:l,dataItem:t,vertical:e.vertical,viewItem:Re,item:e.item})})):o.createElement(Me,{ignoreIsAllDay:l,dataItem:Ze,vertical:e.vertical,viewItem:Re,item:e.item})),Je&&je.resize&&(Array.isArray(Je)?Je.map((function(t,n){return o.createElement(Pe,{key:n,format:e.format,ignoreIsAllDay:l,dataItem:t,viewItem:e.viewItem,item:e.item,vertical:e.vertical})})):o.createElement(Pe,{format:e.format,ignoreIsAllDay:l,dataItem:Je,viewItem:e.viewItem,item:e.item,vertical:e.vertical})),Ke&&!dt&&je.edit&&o.createElement(Ne,{dataItem:Ke,onSubmit:Pt,onClose:Nt,onCancel:Nt}),dt&&o.createElement(Fe,{dataItem:Ke||Ze||Je||rt,isRemove:null!==rt,onClose:Nt,onOccurrenceClick:Ft,onSeriesClick:At}),lt&&rt&&je.remove&&o.createElement(Ae,{dataItem:rt,onClose:Nt,onCancel:Nt,onConfirm:Vt}))}));var k={viewItem:d.SchedulerViewItem,drag:u.SchedulerDrag,resize:c.SchedulerResize,form:a.SchedulerForm,occurrenceDialog:i.SchedulerOccurrenceDialog,removeDialog:l.SchedulerRemoveDialog,onClickAction:function(e,t,n){return[{type:e.syntheticEvent.metaKey||e.syntheticEvent.ctrlKey?!n.selected||n.dragItem||n.resizeItem?w.ITEMS_SELECT_ACTION.add:w.ITEMS_SELECT_ACTION.remove:w.ITEMS_SELECT_ACTION.select}]},onDoubleClickAction:function(e,t){return t.editable?[{type:m.FORM_ITEM_ACTION.set,payload:t.dataItem},t.isRecurring&&{type:v.SHOW_OCCURRENCE_DIALOG_ACTION.open}].filter(Boolean):[]},onRemoveClickAction:function(e,t){return t.editable?[{type:g.REMOVE_ITEM_ACTION.set,payload:t.dataItem},t.isRecurring?{type:v.SHOW_OCCURRENCE_DIALOG_ACTION.open}:{type:y.SHOW_REMOVE_DIALOG_ACTION.open}]:[]},onPressAction:function(e,t){return t.editable?{type:b.DRAG_ITEM_ACTION.start,payload:{x:e.dragEvent.clientX,y:e.dragEvent.clientY}}:[]},onDragAction:function(e,t){return t.editable?{type:e.dragEvent.originalEvent.metaKey||e.dragEvent.originalEvent.ctrlKey?b.DRAG_ITEM_ACTION.dragSelected:b.DRAG_ITEM_ACTION.drag,payload:{x:e.dragEvent.clientX,y:e.dragEvent.clientY}}:[]},onReleaseAction:function(e,t,n){return t.editable&&n.dragItem?t.isRecurring&&!t.isException&&null===n.series?{type:v.SHOW_OCCURRENCE_DIALOG_ACTION.open}:{type:t.isRecurring?n.series?b.DRAG_ITEM_ACTION.completeSeries:b.DRAG_ITEM_ACTION.completeOccurrence:b.DRAG_ITEM_ACTION.complete,payload:{x:e.dragEvent.clientX,y:e.dragEvent.clientY}}:[]},onResizePressAction:function(e,t){return t.editable?{type:C.RESIZE_ITEM_ACTION.start,payload:{x:e.dragEvent.clientX,y:e.dragEvent.clientY}}:[]},onResizeStartDragAction:function(e,t){return t.editable?{type:e.dragEvent.originalEvent.metaKey||e.dragEvent.originalEvent.ctrlKey?C.RESIZE_ITEM_ACTION.startDragSelected:C.RESIZE_ITEM_ACTION.startDrag,payload:{x:e.dragEvent.clientX,y:e.dragEvent.clientY}}:[]},onResizeEndDragAction:function(e,t){return t.editable?{type:e.dragEvent.originalEvent.metaKey||e.dragEvent.originalEvent.ctrlKey?C.RESIZE_ITEM_ACTION.endDragSelected:C.RESIZE_ITEM_ACTION.endDrag,payload:{x:e.dragEvent.clientX,y:e.dragEvent.clientY}}:[]},onResizeReleaseAction:function(e,t,n){return t.editable&&n.resizeItem?t.isRecurring&&!t.isException&&null===n.series?{type:v.SHOW_OCCURRENCE_DIALOG_ACTION.open}:{type:t.isRecurring?n.series?C.RESIZE_ITEM_ACTION.completeSeries:C.RESIZE_ITEM_ACTION.completeOccurrence:C.RESIZE_ITEM_ACTION.complete,payload:{x:e.dragEvent.clientX,y:e.dragEvent.clientY}}:[]},onOccurrenceClickAction:function(e,t,n){return n.dragItem?[{type:b.DRAG_ITEM_ACTION.completeOccurrence},{type:v.SHOW_OCCURRENCE_DIALOG_ACTION.close}]:n.resizeItem?[{type:C.RESIZE_ITEM_ACTION.completeOccurrence},{type:v.SHOW_OCCURRENCE_DIALOG_ACTION.close}]:n.formItem?[{type:E.SERIES_ACTION.set,payload:!1},{type:m.FORM_ITEM_ACTION.set,payload:t.dataItem},{type:v.SHOW_OCCURRENCE_DIALOG_ACTION.close}]:n.removeItem?[{type:E.SERIES_ACTION.set,payload:!1},{type:g.REMOVE_ITEM_ACTION.set,payload:t.dataItem},{type:y.SHOW_REMOVE_DIALOG_ACTION.open},{type:v.SHOW_OCCURRENCE_DIALOG_ACTION.close}]:void 0},onSeriesClickAction:function(e,t,n){return n.dragItem?[{type:b.DRAG_ITEM_ACTION.completeSeries},{type:v.SHOW_OCCURRENCE_DIALOG_ACTION.close}]:n.resizeItem?[{type:C.RESIZE_ITEM_ACTION.completeSeries},{type:v.SHOW_OCCURRENCE_DIALOG_ACTION.close}]:n.formItem?[{type:E.SERIES_ACTION.set,payload:!0},{type:m.FORM_ITEM_ACTION.setMaster,payload:t.dataItem},{type:v.SHOW_OCCURRENCE_DIALOG_ACTION.close}]:n.removeItem?[{type:E.SERIES_ACTION.set,payload:!0},{type:g.REMOVE_ITEM_ACTION.set,payload:t.dataItem},{type:y.SHOW_REMOVE_DIALOG_ACTION.open},{type:v.SHOW_OCCURRENCE_DIALOG_ACTION.close}]:void 0},onKeyDownAction:function(e,t){switch(e.syntheticEvent.keyCode){case s.Keys.enter:return[{type:m.FORM_ITEM_ACTION.set,payload:t.dataItem},t.isRecurring&&{type:v.SHOW_OCCURRENCE_DIALOG_ACTION.open}];case s.Keys.tab:return[{type:e.syntheticEvent.shiftKey?p.ITEMS_FOCUS_ACTION.prev:p.ITEMS_FOCUS_ACTION.next,ignoreIsAllDay:t.ignoreIsAllDay},{type:e.syntheticEvent.shiftKey?w.ITEMS_SELECT_ACTION.selectPrev:w.ITEMS_SELECT_ACTION.selectNext,ignoreIsAllDay:t.ignoreIsAllDay}];case s.Keys.up:return[Boolean(t.slots.length&&t.slots[0]._ref.current)&&{type:p.SLOTS_FOCUS_ACTION.up,slot:t.slots[0]._ref}];case s.Keys.right:return[Boolean(t.slots.length&&t.slots[0]._ref.current)&&{type:p.SLOTS_FOCUS_ACTION.right,slot:t.slots[0]._ref}];case s.Keys.down:return[Boolean(t.slots.length&&t.slots[t.slots.length-1]._ref.current)&&{type:p.SLOTS_FOCUS_ACTION.down,slot:t.slots[t.slots.length-1]._ref}];case s.Keys.left:return[Boolean(t.slots.length&&t.slots[0]._ref.current)&&{type:p.SLOTS_FOCUS_ACTION.left,slot:t.slots[0]._ref}];default:return}},onFormSubmitAction:function(e){return{type:m.FORM_ITEM_ACTION.complete,payload:e.value}},onRemoveConfirmAction:function(){return[{type:g.REMOVE_ITEM_ACTION.complete},{type:v.SHOW_OCCURRENCE_DIALOG_ACTION.close}]},onCancelAction:function(){return[{type:E.SERIES_ACTION.reset},{type:g.REMOVE_ITEM_ACTION.reset},{type:m.FORM_ITEM_ACTION.reset},{type:b.DRAG_ITEM_ACTION.reset},{type:C.RESIZE_ITEM_ACTION.reset},{type:y.SHOW_REMOVE_DIALOG_ACTION.reset},{type:v.SHOW_OCCURRENCE_DIALOG_ACTION.reset}]}};t.SchedulerEditItem.defaultProps=k,t.SchedulerEditItem.displayName="KendoReactSchedulerEditItem"},7285:function(e,t,n){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},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.SchedulerItem=void 0;var o=n(3899),i=n(3865),a=n(499),l=n(3364),s=n(8586),u=n(5538);t.SchedulerItem=o.forwardRef((function(e,t){var n=e.onFocus,c=e.onBlur,d=e.onMouseDown,p=e.onClick,f=e.onMouseUp,h=e.onMouseOut,m=e.onMouseOver,v=e.onMouseEnter,g=e.onMouseLeave,y=e.onDoubleClick,b=e.onRemoveClick,C=e.onKeyUp,E=e.onKeyDown,w=e.onKeyPress,k=e.onPress,S=e.onDrag,O=e.onRelease,D=e.onResizePress,x=e.onResizeEndDrag,I=e.onResizeRelease,T=e.onResizeStartDrag,_=(0,s.useSchedulerItem)(e,t),R=_.item,M=_.element,P=o.useRef(null),N=o.useRef(null),F=o.useRef(null),A=o.useRef(null),j=(0,s.useEditable)(e.editable),L=(0,a.useInternationalization)(),V=(0,a.useLocalization)().toLanguageString(l.deleteTitle,l.messages[l.deleteTitle]),z=e.group.resources.find((function(e){return Boolean(e.colorField&&""!==e[e.colorField]&&void 0!==e[e.colorField])})),B=z&&z.colorField&&z[z.colorField],H=void 0!==e.tabIndex?null===e.tabIndex?void 0:e.tabIndex:e.selected?0:-1,U=o.useMemo((function(){return(0,i.classNames)({"k-event":!e.resizeHint,"k-selected":e.selected&&j.select,"k-event-drag-hint":e.dragHint,"k-scheduler-marquee":e.resizeHint,"k-marquee":e.resizeHint,"k-first":e.resizeHint&&!e.tail,"k-last":e.resizeHint&&!e.head},e.className)}),[e.resizeHint,e.selected,e.dragHint,e.tail,e.head,e.className,j.select]),W=o.useMemo((function(){return"".concat((0,u.formatEventTime)(L,e.zonedStart,e.zonedEnd,e.isAllDay),", ").concat(e.title)}),[L,e.isAllDay,e.title,e.zonedEnd,e.zonedStart]),K=o.useMemo((function(){return r({cursor:"pointer",userSelect:"none",borderColor:e.resizeHint?void 0:B,backgroundColor:e.resizeHint?void 0:B,touchAction:"none"},e.style)}),[B,e.style,e.resizeHint]),q=o.useCallback((function(e){n&&n.call(void 0,{syntheticEvent:e,target:R.current})}),[n,R]),Y=o.useCallback((function(e){c&&c.call(void 0,{syntheticEvent:e,target:R.current})}),[c,R]),G=o.useCallback((function(e){d&&d.call(void 0,{syntheticEvent:e,target:R.current})}),[d,R]),Z=o.useCallback((function(e){p&&p.call(void 0,{syntheticEvent:e,target:R.current})}),[p,R]),X=o.useCallback((function(e){f&&f.call(void 0,{syntheticEvent:e,target:R.current})}),[f,R]),$=o.useCallback((function(e){m&&m.call(void 0,{syntheticEvent:e,target:R.current})}),[m,R]),Q=o.useCallback((function(e){h&&h.call(void 0,{syntheticEvent:e,target:R.current})}),[h,R]),J=o.useCallback((function(e){v&&v.call(void 0,{syntheticEvent:e,target:R.current})}),[v,R]),ee=o.useCallback((function(e){g&&g.call(void 0,{syntheticEvent:e,target:R.current})}),[g,R]),te=o.useCallback((function(e){y&&y.call(void 0,{syntheticEvent:e,target:R.current})}),[y,R]),ne=o.useCallback((function(e){b&&b.call(void 0,{syntheticEvent:e,target:R.current})}),[b,R]),re=o.useCallback((function(e){E&&E.call(void 0,{syntheticEvent:e,target:R.current})}),[E,R]),oe=o.useCallback((function(e){w&&w.call(void 0,{syntheticEvent:e,target:R.current})}),[w,R]),ie=o.useCallback((function(e){C&&C.call(void 0,{syntheticEvent:e,target:R.current})}),[C,R]),ae=o.useCallback((function(e){k&&k.call(void 0,{dragEvent:e,target:R.current})}),[k,R]),le=o.useCallback((function(e){S&&S.call(void 0,{dragEvent:e,target:R.current})}),[S,R]),se=o.useCallback((function(e){O&&O.call(void 0,{dragEvent:e,target:R.current})}),[O,R]),ue=o.useCallback((function(e){D&&D.call(void 0,{dragEvent:e,target:R.current})}),[D,R]),ce=o.useCallback((function(e){T&&T.call(void 0,{dragEvent:e,target:R.current})}),[T,R]),de=o.useCallback((function(e){x&&x.call(void 0,{dragEvent:e,target:R.current})}),[x,R]),pe=o.useCallback((function(e){I&&I.call(void 0,{dragEvent:e,target:R.current})}),[I,R]);return(0,i.useDraggable)(M,{onPress:ae,onDrag:le,onRelease:se}),(0,i.useDraggable)(P,{onPress:ue,onDrag:de,onRelease:pe}),(0,i.useDraggable)(N,{onPress:ue,onDrag:ce,onRelease:pe}),(0,i.useDraggable)(F,{onPress:ue,onDrag:ce,onRelease:pe}),(0,i.useDraggable)(A,{onPress:ue,onDrag:de,onRelease:pe}),o.createElement("div",{ref:M,id:e.id,style:K,tabIndex:H,className:U,"aria-label":W,"aria-selected":e.selected,onFocus:q,onBlur:Y,onMouseUp:X,onMouseDown:G,onClick:Z,onMouseOver:$,onMouseOut:Q,onMouseEnter:J,onMouseLeave:ee,onDoubleClick:te,onKeyDown:re,onKeyPress:oe,onKeyUp:ie,"data-group-index":e.group.index,"data-range-index":e.range.index},e.children,!e.resizeHint&&o.createElement("span",{className:"k-event-actions"},j.remove&&o.createElement("a",{tabIndex:-1,"aria-hidden":"true",className:"k-link k-event-delete",title:V,"aria-label":V,onClick:ne},o.createElement("span",{className:"k-icon k-i-close"})),e.head&&o.createElement("span",{className:"k-icon k-i-arrow-60-right"})),j.resize&&e.vertical&&o.createElement(o.Fragment,null,o.createElement("span",{className:"k-resize-handle k-resize-n",ref:F}),o.createElement("span",{className:"k-resize-handle k-resize-s",ref:A})),j.resize&&!e.vertical&&o.createElement(o.Fragment,null,o.createElement("span",{className:"k-resize-handle k-resize-w",ref:N}),o.createElement("span",{className:"k-resize-handle k-resize-e",ref:P})),e.resizeHint&&o.createElement(o.Fragment,null,o.createElement("div",{className:"k-marquee-color",style:{borderColor:B,backgroundColor:B}}),o.createElement("div",{className:"k-marquee-text"},!e.tail&&o.createElement("div",{className:"k-label-top"},L.formatDate(e.zonedStart,e.format)),!e.head&&o.createElement("div",{className:"k-label-bottom"},L.formatDate(e.zonedEnd,e.format)))))})),t.SchedulerItem.displayName="KendoReactSchedulerItem"},8952:function(e,t,n){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},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.SchedulerItemContent=void 0;var o=n(3899),i=n(3865);t.SchedulerItemContent=o.forwardRef((function(e,t){var n=o.useMemo((function(){return(0,i.classNames)("k-event-template",e.className)}),[e.className]);return o.createElement("div",r({ref:t},e,{className:n}))}))},6612:function(e,t,n){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},r.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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.SchedulerViewItem=void 0;var i=n(3899),a=n(7285),l=n(5538),s=n(7907),u=n(3152),c=n(4814),d=n(499),p=n(8952);t.SchedulerViewItem=i.forwardRef((function(e,t){var n=e.item,a=e._ref,h=e.itemRef,m=o(e,["item","_ref","itemRef"]),v=i.useRef(),g=i.useRef(null),y=i.useRef(null),b=i.useRef(null);i.useImperativeHandle(y,(function(){return{props:e,element:g.current&&g.current.element}})),i.useImperativeHandle(t,(function(){return y.current})),i.useImperativeHandle(a,(function(){return g.current})),i.useImperativeHandle(h,(function(){return g.current}));var C=n||f.item,E=(0,d.useInternationalization)(),w=(0,s.useSchedulerViewItemsContext)()[0],k=(0,s.useSchedulerViewSlotsContext)()[0],S=(0,s.useSchedulerElementContext)(),O=i.useState(!0),D=O[0],x=O[1],I=i.useState(!1),T=I[0],_=I[1],R=i.useState(0),M=R[0],P=R[1],N=i.useMemo((function(){return e.isAllDay?E.toString(e.zonedStart,"t"):E.format("{0:t} - {1:t}",e.zonedStart,e.zonedEnd)}),[E,e.isAllDay,e.zonedEnd,e.zonedStart]),F=i.useMemo((function(){return"(".concat(N,"): ").concat(e.title)}),[N,e.title]),A=function(e,t){var n=1;return e.forEach((function(e){var r=t.filter((function(t){return j(e.current.props,t.props)}));r.length>n&&(n=r.length)})),n},j=function(t,n){return(0,l.intersects)(t.start,t.end,n.start,n.end)&&t.group.index===n.group.index&&t.range.index===n.range.index&&(e.ignoreIsAllDay||t.isAllDay===n.isAllDay)},L=function(){var t=(k||[]).filter((function(t){return t.current&&j(t.current.props,e)}));if(0!==t.length){var n=(0,l.first)(t);if(n.current&&g.current){var r=(0,u.getRect)(n.current.element);(0,u.setRect)(g.current.element,r)}}else x(!1)},V=function(){var t=g.current&&g.current.element;if(t){var n=(k||[]).filter((function(t){return t.current&&j(t.current.props,e)})),r=[],o=[],i=[];(w||[]).forEach((function(e){e.current&&(e.current.props.dragHint?o.push(e.current):e.current.props.resizeHint?i.push(e.current):r.push(e.current))}));var a=e.dragHint||e.resizeHint?(0,l.calculateOrder)(g.current,e.dragHint?o:i,n,e.ignoreIsAllDay):e.order||0,s=e.dragHint||e.resizeHint?A(n,e.dragHint?o:i):A(n,r),d=function(e,t){return e.map((function(e){return t.filter((function(t){return j(e.current.props,t.props)}))}))}(n,r),p=0,f=(0,u.getRect)(t);d.forEach((function(n){var r=0;n.forEach((function(n){(0,l.intersects)(n.props.start,n.props.end,e.start,e.end)&&!e.dragHint&&!e.resizeHint&&n.props._maxSiblingsPerSlot&&n.props._maxSiblingsPerSlot>s&&n.element!==t&&(s=n.props._maxSiblingsPerSlot);var o=(0,u.getRect)(n.element);null!==n.props.order&&n.props.order<a&&(r=o.top+o.height-f.top-c.BORDER_WIDTH*a+1)})),r>p&&(p=r)})),0!==n.length?(f.width=e.vertical?f.width/s-c.BORDER_WIDTH-20/s:f.width*n.length-c.BORDER_WIDTH-20,f.height=e.vertical?f.height*n.length-c.BORDER_WIDTH:(e.resizeHint||e.dragHint)&&s<=1?f.height:e.style&&e.style.height?e.style.height:25,f.left=e.vertical?f.left+a*f.width+c.BORDER_WIDTH*a:f.left,f.top=e.vertical?f.top:f.top+p+c.BORDER_WIDTH*a,P(s),(0,u.setRect)(t,f),_(!0),x(!0)):x(!1)}},z=i.useCallback((function(e){var t=e&&e[0],n=b.current;void 0!==v.current&&window.cancelAnimationFrame(v.current),n&&t&&(n.width!==t.contentRect.width||n.height!==t.contentRect.height)&&(v.current=window.requestAnimationFrame((function(){L(),V()}))),b.current={width:t.contentRect.width,height:t.contentRect.height}}),[L,V]);return i.useEffect(L),i.useEffect(V),i.useEffect((function(){if(S.current){var e=new window.ResizeObserver(z);return e.observe(S.current),function(){e.disconnect()}}}),[z,S]),i.createElement(C,r({},m,{_ref:g,_maxSiblingsPerSlot:M,itemRef:g,style:r({visibility:T?void 0:"hidden",display:D?void 0:"none"},e.style)}),!e.resizeHint&&i.createElement("span",{className:"k-event-actions"},e.tail&&i.createElement("span",{className:"k-icon k-i-arrow-60-left"}),e.isRecurring&&!e.isException&&i.createElement("span",{className:"k-icon k-i-reload"}),!e.isRecurring&&e.isException&&i.createElement("span",{className:"k-icon k-i-non-recurrence"})),!e.resizeHint&&i.createElement("div",{title:F},!e.isAllDay&&i.createElement(p.SchedulerItemContent,{className:"k-event-template k-event-time "},F),i.createElement(p.SchedulerItemContent,{className:"k-event-template"},e.title)))}));var f={item:a.SchedulerItem};t.SchedulerViewItem.defaultProps=f,t.SchedulerViewItem.displayName="KendoReactSchedulerViewItem"},9593:function(e,t,n){var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.useDragItem=t.DRAG_ITEM_ACTION=void 0;var o,i=n(3865),a=n(3899),l=n(7907),s=n(1995),u=n(468),c=n(5538);!function(e){e.set="DRAG_ITEM_SET",e.start="DRAG_ITEM_START",e.drag="DRAG_ITEM_DRAG",e.complete="DRAG_ITEM_COMPLETE",e.completeOccurrence="DRAG_ITEM_COMPLETE_OCCURRENCE",e.completeSeries="DRAG_ITEM_COMPLETE_SERIES",e.reset="DRAG_ITEM_RESET",e.dragSelected="DRAG_ITEM_DRAG_SELECTED"}(o=t.DRAG_ITEM_ACTION||(t.DRAG_ITEM_ACTION={})),t.useDragItem=function(e,t){var n=a.useRef(0),d=a.useRef(0),p=a.useRef(0),f=a.useRef(null),h=s.useControlledState.apply(void 0,t),m=h[0],v=h[1],g=(0,l.useSchedulerViewSelectedItemsContext)()[0],y=(0,l.useSchedulerFieldsContext)(),b=(0,l.useSchedulerGroupsContext)();return[m,v,function(t){switch(t.type){case o.set:v(t.payload);break;case o.reset:v(null);break;case o.dragSelected:if(Math.abs(d.current-t.payload.x)<10&&Math.abs(p.current-t.payload.y)<10)return;if(!(S=(0,c.slotDive)(t.payload.x,t.payload.y,7)))return;if(S===f.current)return;var a=(0,i.clone)(e.dataItem),l=S.getAttribute("data-slot-start"),s="true"===S.getAttribute("data-slot-allday");if(!e.ignoreIsAllDay&&s!==e.isAllDay)return;var h=new Date((0,c.getField)(a,y.start)),C=Number(l)-h.getTime(),E=g.map((function(e){if(!e.current)return null;var t=(0,i.clone)(e.current.props.dataItem),n=new Date(e.current.props.start.getTime()+C),r=new Date(e.current.props.end.getTime()+C);return(0,c.setField)(t,y.start,n),(0,c.setField)(t,y.end,r),t})).filter(Boolean);f.current=S,v(r([],E,!0));break;case o.start:var w=t.payload.x,k=t.payload.y;if(d.current=w,p.current=k,!(S=(0,c.slotDive)(w,k,7)))return;if(a=(0,i.clone)(e.dataItem),l=S.getAttribute("data-slot-start"),h=(0,c.getField)(a,y.start),null===l)return;n.current=Number(l)-new Date(h).getTime();break;case o.drag:if(Math.abs(d.current-t.payload.x)<10&&Math.abs(p.current-t.payload.y)<10)return;var S;if(!(S=(0,c.slotDive)(t.payload.x,t.payload.y,7)))return;if(S===f.current)return;var O=(0,i.clone)(e.dataItem),D=(l=S.getAttribute("data-slot-start"),S.getAttribute("data-slot-group"));if(s="true"===S.getAttribute("data-slot-allday"),!e.ignoreIsAllDay&&s!==e.isAllDay)return;h=new Date((0,c.getField)(O,y.start));var x=new Date((0,c.getField)(O,y.end)).getTime()-h.getTime(),I=new Date(Number(l)-Number(n.current)),T=new Date(Number(l)-Number(n.current)+x),_=b.find((function(e){return e.index===Number(D)}));(0,c.setField)(O,y.start,I),(0,c.setField)(O,y.end,T),_&&b.length>1&&_.resources.forEach((function(e){e.multiple||(0,c.setField)(O,e.field,e[e.valueField])})),f.current=S,O&&v(O);break;case o.complete:v(null),e.onDataAction&&m&&e.onDataAction.call(void 0,{type:u.DATA_ACTION.update,series:!1,dataItem:m});break;case o.completeOccurrence:var R=Array.isArray(m)?m.slice():(0,i.clone)(m);v(null),e.onDataAction&&m&&e.onDataAction.call(void 0,{type:u.DATA_ACTION.update,series:!1,dataItem:R});break;case o.completeSeries:var M=void 0;if(Array.isArray(m))M=m.map((function(e){var t=(0,i.clone)(e);return(0,c.setField)(t,y.start,(0,c.getField)(e,y.start)),(0,c.setField)(t,y.end,(0,c.getField)(e,y.end)),t}));else{var P=(0,i.clone)(m);(0,c.setField)(P,y.start,(0,c.getField)(m,y.start)),(0,c.setField)(P,y.end,(0,c.getField)(m,y.end)),M=P}v(null),e.onDataAction&&M&&e.onDataAction.call(void 0,{type:u.DATA_ACTION.update,series:!0,dataItem:M});break;default:v(m)}}]}},9356:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useFormItem=t.FORM_ITEM_ACTION=void 0;var r,o=n(3865),i=n(7907),a=n(1995),l=n(4960),s=n(5538);!function(e){e.set="FORM_ITEM_SET",e.setMaster="FORM_ITEM_SET_MASTER",e.reset="FORM_ITEM_RESET",e.complete="FORM_ITEM_COMPLETE"}(r=t.FORM_ITEM_ACTION||(t.FORM_ITEM_ACTION={})),t.useFormItem=function(e,t){var n=a.useControlledState.apply(void 0,t),u=n[0],c=n[1],d=(0,i.useSchedulerFieldsContext)(),p=(0,i.useSchedulerDataContext)()[0];return[u,c,function(t,n){var i;switch(t.type){case r.set:i=t.payload;break;case r.reset:i=null;break;case r.setMaster:i=(0,o.clone)((0,s.findMaster)(t.payload,d,p));break;case r.complete:e.onDataAction&&u&&(e.onDataAction.call(void 0,{type:l.DATA_ACTION.update,series:e.series,dataItem:t.payload}),i=null);break;default:i=u}c(i,n)}]}},8858:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useRemoveItem=t.REMOVE_ITEM_ACTION=void 0;var r,o=n(1995),i=n(4960);!function(e){e.set="REMOVE_ITEM_SET",e.reset="REMOVE_ITEM_RESET",e.complete="REMOVE_ITEM_COMPLETE"}(r=t.REMOVE_ITEM_ACTION||(t.REMOVE_ITEM_ACTION={})),t.useRemoveItem=function(e,t){var n=o.useControlledState.apply(void 0,t),a=n[0],l=n[1];return[a,l,function(t){var n;switch(t.type){case r.set:n=t.payload;break;case r.reset:n=null;break;case r.complete:e.onDataAction&&a&&e.onDataAction.call(void 0,{type:i.DATA_ACTION.remove,series:e.series,dataItem:a}),n=null;break;default:n=a}l(n)}]}},624:function(e,t,n){var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.useResizeItem=t.RESIZE_ITEM_ACTION=void 0;var o,i=n(3865),a=n(3899),l=n(7907),s=n(1995),u=n(4960),c=n(5538);!function(e){e.set="RESIZE_ITEM_SET",e.start="RESIZE_ITEM_START",e.startDrag="RESIZE_ITEM_START_DRAG",e.startDragSelected="RESIZE_ITEM_START_DRAG_SELECTED",e.endDrag="RESIZE_ITEM_END_DRAG",e.endDragSelected="RESIZE_ITEM_END_DRAG_SELECTED",e.complete="RESIZE_ITEM_COMPLETE",e.completeOccurrence="RESIZE_ITEM_COMPLETE_OCCURRENCE",e.completeSeries="RESIZE_ITEM_COMPLETE_SERIES",e.reset="RESIZE_ITEM_RESET"}(o=t.RESIZE_ITEM_ACTION||(t.RESIZE_ITEM_ACTION={})),t.useResizeItem=function(e,t){var n=a.useRef(null),d=s.useControlledState.apply(void 0,t),p=d[0],f=d[1],h=(0,l.useSchedulerViewSelectedItemsContext)()[0],m=(0,l.useSchedulerFieldsContext)();return[p,f,function(t,a){var l=p;switch(t.type){case o.set:l=t.payload;break;case o.reset:l=null;break;case o.start:a.stopPropagation(),a.preventDefault();var s=t.payload.x,d=t.payload.y;if(!(S=(0,c.slotDive)(s,d,7)))return;if(S===n.current)return;var v=S.getAttribute("data-slot-start"),g=new Date(Number(v)),y=(0,i.clone)(e.dataItem);if(g>=(0,c.getField)(y,m.end))return;(0,c.setField)(y,m.start,g),n.current=S,l=y;break;case o.startDragSelected:if(a.stopPropagation(),a.preventDefault(),s=t.payload.x,d=t.payload.y,y=(0,i.clone)(e.dataItem),!(S=(0,c.slotDive)(s,d,7)))return;if(S===n.current)return;v=S.getAttribute("data-slot-start");var b=new Date((0,c.getField)(y,m.start)),C=(g=new Date(Number(v))).getTime()-b.getTime(),E=!1,w=h.map((function(e){if(!e.current)return null;var t=(0,i.clone)(e.current.props.dataItem),n=new Date(e.current.props.start.getTime()+C);if(!(n>=(0,c.getField)(t,m.end)))return(0,c.setField)(t,m.start,n),t;E=!0})).filter(Boolean);E||(l=r([],w,!0));break;case o.startDrag:if(s=t.payload.x,d=t.payload.y,!(S=(0,c.slotDive)(s,d,7)))return;if(S===n.current)return;if(v=S.getAttribute("data-slot-start"),(g=new Date(Number(v)))>=(y=(0,i.clone)(e.dataItem)).end)return;(0,c.setField)(y,m.start,g),n.current=S,l=y;break;case o.endDrag:if(s=t.payload.x,d=t.payload.y,!(S=(0,c.slotDive)(s,d,7)))return;if(S===n.current)return;var k=S.getAttribute("data-slot-end");if((O=new Date(Number(k)))<=(y=(0,i.clone)(e.dataItem)).start)return;(0,c.setField)(y,m.end,O),n.current=S,l=y;break;case o.endDragSelected:var S;if(a.stopPropagation(),a.preventDefault(),s=t.payload.x,d=t.payload.y,y=(0,i.clone)(e.dataItem),!(S=(0,c.slotDive)(s,d,7)))return;if(S===n.current)return;k=S.getAttribute("data-slot-start");var O,D,x=new Date((0,c.getField)(y,m.end)),I=(O=new Date(Number(k))).getTime()-x.getTime();w=h.map((function(e){if(!e.current)return null;var t=(0,i.clone)(e.current.props.dataItem),n=new Date(e.current.props.end.getTime()+I);if(!(n<=(0,c.getField)(t,m.start)))return(0,c.setField)(t,m.end,n),t;D=!0})).filter(Boolean),D||(l=r([],w,!0));break;case o.complete:case o.completeOccurrence:l=null,e.onDataAction&&p&&e.onDataAction.call(void 0,{type:u.DATA_ACTION.update,series:!1,dataItem:p});break;case o.completeSeries:l=null;var T=void 0;if(Array.isArray(p))T=p.map((function(e){var t=(0,i.clone)(e);return(0,c.setField)(t,m.start,(0,c.getField)(e,m.start)),(0,c.setField)(t,m.end,(0,c.getField)(e,m.end)),t}));else{var _=(0,i.clone)(p);(0,c.setField)(_,m.start,(0,c.getField)(p,m.start)),(0,c.setField)(_,m.end,(0,c.getField)(p,m.end)),T=_}e.onDataAction&&T&&e.onDataAction.call(void 0,{type:u.DATA_ACTION.update,series:!0,dataItem:T});break;default:l=null}f(l)}]}},1611:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useSeries=t.SERIES_ACTION=void 0;var r,o=n(1995);!function(e){e.reset="SERIES_RESET",e.set="SERIES_SET",e.toggle="SERIES_TOGGLE"}(r=t.SERIES_ACTION||(t.SERIES_ACTION={})),t.useSeries=function(e,t,n){var i=(0,o.useControlledState)(e,t,n),a=i[0],l=i[1];return[a,l,function(e){var t=function(e,t){switch(t.type){case r.reset:return null;case r.set:return t.payload;case r.toggle:return!e;default:return e}}(a,e);l(t)}]}},7966:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useShowOccurrenceDialog=t.SHOW_OCCURRENCE_DIALOG_ACTION=void 0;var r,o=n(1995);!function(e){e.set="SHOW_OCCURRENCE_DIALOG_SET",e.open="SHOW_OCCURRENCE_DIALOG_OPEN",e.close="SHOW_OCCURRENCE_DIALOG_CLOSE",e.reset="SHOW_OCCURRENCE_DIALOG_RESET",e.toggle="SHOW_OCCURRENCE_DIALOG_TOGGLE"}(r=t.SHOW_OCCURRENCE_DIALOG_ACTION||(t.SHOW_OCCURRENCE_DIALOG_ACTION={})),t.useShowOccurrenceDialog=function(e,t,n){var i=(0,o.useControlledState)(e,t,n),a=i[0],l=i[1];return[a,l,function(e){var t=function(e,t){switch(t.type){case r.reset:return!1;case r.set:return t.payload;case r.open:return!0;case r.close:return!1;case r.toggle:return!e;default:return e}}(a,e);l(t)}]}},8569:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useShowRemoveDialog=t.SHOW_REMOVE_DIALOG_ACTION=void 0;var r,o=n(1995);!function(e){e.set="SHOW_REMOVE_DIALOG_SET",e.open="SHOW_REMOVE_DIALOG_OPEN",e.close="SHOW_REMOVE_DIALOG_CLOSE",e.reset="SHOW_REMOVE_DIALOG_RESET",e.toggle="SHOW_REMOVE_DIALOG_TOGGLE"}(r=t.SHOW_REMOVE_DIALOG_ACTION||(t.SHOW_REMOVE_DIALOG_ACTION={})),t.useShowRemoveDialog=function(e,t,n){var i=(0,o.useControlledState)(e,t,n),a=i[0],l=i[1];return[a,l,function(e){var t=function(e,t){switch(t.type){case r.reset:return!1;case r.set:return t.payload;case r.open:return!0;case r.close:return!1;case r.toggle:return!e;default:return e}}(a,e);l(t)}]}},468:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useSchedulerEditItemResizeItemContext=t.SchedulerEditItemResizeItemContext=t.useSchedulerEditItemRemoveItemContext=t.SchedulerEditItemRemoveItemContext=t.useSchedulerEditItemDragItemContext=t.SchedulerEditItemDragItemContext=t.useSchedulerEditItemFormItemContext=t.SchedulerEditItemFormItemContext=t.SchedulerRemoveDialog=t.SchedulerOccurrenceDialog=t.SchedulerFormEditor=t.SchedulerForm=t.SchedulerResize=t.SchedulerDrag=t.SchedulerEditTask=t.SchedulerViewTask=t.SchedulerTask=t.SchedulerEditSlot=t.SchedulerViewSlot=t.SchedulerSlot=t.SchedulerEditItem=t.SchedulerViewItem=t.SchedulerItemContent=t.SchedulerItem=t.useSchedulerDataContext=t.SchedulerDataContext=t.useSchedulerActiveViewContext=t.SchedulerActiveViewContext=t.useSchedulerDateContext=t.SchedulerDateContext=t.useSchedulerOrientationContext=t.SchedulerOrientationContext=t.useSchedulerDateRangeContext=t.SchedulerDateRangeContext=t.useSchedulerGroupsContext=t.SchedulerGroupsContext=t.useSchedulerFieldsContext=t.SchedulerFieldsContext=t.useSchedulerViewsContext=t.SchedulerViewsContext=t.useSchedulerPropsContext=t.SchedulerPropsContext=t.DATA_ACTION=t.MonthView=t.WorkWeekView=t.WeekView=t.DayView=t.TimelineView=t.AgendaView=t.Scheduler=void 0,t.SLOTS_SELECT_ACTION=t.SLOTS_FOCUS_ACTION=t.SHOW_REMOVE_DIALOG_ACTION=t.SHOW_OCCURRENCE_DIALOG_ACTION=t.SERIES_ACTION=t.RESIZE_ITEM_ACTION=t.REMOVE_ITEM_ACTION=t.ITEMS_SELECT_ACTION=t.ITEMS_FOCUS_ACTION=t.DRAG_ITEM_ACTION=t.TimeHeaderCell=t.DateHeaderCell=t.SchedulerFooter=t.SchedulerHeader=t.useSchedulerEditSlotPropsContext=t.SchedulerEditSlotPropsContext=t.useSchedulerEditSlotFormItemContext=t.SchedulerEditSlotFormItemContext=t.useSchedulerEditItemPropsContext=t.SchedulerEditItemPropsContext=t.useSchedulerEditItemShowOccurrenceDialogContext=t.SchedulerEditItemShowOccurrenceDialogContext=t.useSchedulerEditItemShowRemoveDialogContext=t.SchedulerEditItemShowRemoveDialogContext=void 0;var r=n(4960);Object.defineProperty(t,"Scheduler",{enumerable:!0,get:function(){return r.Scheduler}}),Object.defineProperty(t,"DATA_ACTION",{enumerable:!0,get:function(){return r.DATA_ACTION}});var o=n(7389);Object.defineProperty(t,"AgendaView",{enumerable:!0,get:function(){return o.AgendaView}});var i=n(97);Object.defineProperty(t,"TimelineView",{enumerable:!0,get:function(){return i.TimelineView}});var a=n(6469);Object.defineProperty(t,"DayView",{enumerable:!0,get:function(){return a.DayView}});var l=n(3750);Object.defineProperty(t,"WeekView",{enumerable:!0,get:function(){return l.WeekView}});var s=n(385);Object.defineProperty(t,"WorkWeekView",{enumerable:!0,get:function(){return s.WorkWeekView}});var u=n(5363);Object.defineProperty(t,"MonthView",{enumerable:!0,get:function(){return u.MonthView}});var c=n(7285);Object.defineProperty(t,"SchedulerItem",{enumerable:!0,get:function(){return c.SchedulerItem}});var d=n(8952);Object.defineProperty(t,"SchedulerItemContent",{enumerable:!0,get:function(){return d.SchedulerItemContent}});var p=n(6612);Object.defineProperty(t,"SchedulerViewItem",{enumerable:!0,get:function(){return p.SchedulerViewItem}});var f=n(9299);Object.defineProperty(t,"SchedulerEditItem",{enumerable:!0,get:function(){return f.SchedulerEditItem}});var h=n(8125);Object.defineProperty(t,"SchedulerSlot",{enumerable:!0,get:function(){return h.SchedulerSlot}});var m=n(4850);Object.defineProperty(t,"SchedulerViewSlot",{enumerable:!0,get:function(){return m.SchedulerViewSlot}});var v=n(6604);Object.defineProperty(t,"SchedulerEditSlot",{enumerable:!0,get:function(){return v.SchedulerEditSlot}});var g=n(273);Object.defineProperty(t,"SchedulerTask",{enumerable:!0,get:function(){return g.SchedulerTask}});var y=n(4771);Object.defineProperty(t,"SchedulerViewTask",{enumerable:!0,get:function(){return y.SchedulerViewTask}});var b=n(3188);Object.defineProperty(t,"SchedulerEditTask",{enumerable:!0,get:function(){return b.SchedulerEditTask}});var C=n(3642);Object.defineProperty(t,"SchedulerDrag",{enumerable:!0,get:function(){return C.SchedulerDrag}});var E=n(3999);Object.defineProperty(t,"SchedulerResize",{enumerable:!0,get:function(){return E.SchedulerResize}});var w=n(3540);Object.defineProperty(t,"SchedulerForm",{enumerable:!0,get:function(){return w.SchedulerForm}});var k=n(4693);Object.defineProperty(t,"SchedulerFormEditor",{enumerable:!0,get:function(){return k.SchedulerFormEditor}});var S=n(6809);Object.defineProperty(t,"SchedulerOccurrenceDialog",{enumerable:!0,get:function(){return S.SchedulerOccurrenceDialog}});var O=n(7160);Object.defineProperty(t,"SchedulerRemoveDialog",{enumerable:!0,get:function(){return O.SchedulerRemoveDialog}});var D=n(352);Object.defineProperty(t,"SchedulerHeader",{enumerable:!0,get:function(){return D.SchedulerHeader}});var x=n(8929);Object.defineProperty(t,"DateHeaderCell",{enumerable:!0,get:function(){return x.DateHeaderCell}});var I=n(4603);Object.defineProperty(t,"TimeHeaderCell",{enumerable:!0,get:function(){return I.TimeHeaderCell}});var T=n(6763);Object.defineProperty(t,"SchedulerFooter",{enumerable:!0,get:function(){return T.SchedulerFooter}});var _=n(7907);Object.defineProperty(t,"SchedulerPropsContext",{enumerable:!0,get:function(){return _.SchedulerPropsContext}}),Object.defineProperty(t,"useSchedulerPropsContext",{enumerable:!0,get:function(){return _.useSchedulerPropsContext}}),Object.defineProperty(t,"SchedulerViewsContext",{enumerable:!0,get:function(){return _.SchedulerViewsContext}}),Object.defineProperty(t,"useSchedulerViewsContext",{enumerable:!0,get:function(){return _.useSchedulerViewsContext}}),Object.defineProperty(t,"SchedulerFieldsContext",{enumerable:!0,get:function(){return _.SchedulerFieldsContext}}),Object.defineProperty(t,"useSchedulerFieldsContext",{enumerable:!0,get:function(){return _.useSchedulerFieldsContext}}),Object.defineProperty(t,"SchedulerGroupsContext",{enumerable:!0,get:function(){return _.SchedulerGroupsContext}}),Object.defineProperty(t,"useSchedulerGroupsContext",{enumerable:!0,get:function(){return _.useSchedulerGroupsContext}}),Object.defineProperty(t,"SchedulerDateRangeContext",{enumerable:!0,get:function(){return _.SchedulerDateRangeContext}}),Object.defineProperty(t,"useSchedulerDateRangeContext",{enumerable:!0,get:function(){return _.useSchedulerDateRangeContext}}),Object.defineProperty(t,"SchedulerOrientationContext",{enumerable:!0,get:function(){return _.SchedulerOrientationContext}}),Object.defineProperty(t,"useSchedulerOrientationContext",{enumerable:!0,get:function(){return _.useSchedulerOrientationContext}}),Object.defineProperty(t,"SchedulerDateContext",{enumerable:!0,get:function(){return _.SchedulerDateContext}}),Object.defineProperty(t,"useSchedulerDateContext",{enumerable:!0,get:function(){return _.useSchedulerDateContext}}),Object.defineProperty(t,"SchedulerActiveViewContext",{enumerable:!0,get:function(){return _.SchedulerActiveViewContext}}),Object.defineProperty(t,"useSchedulerActiveViewContext",{enumerable:!0,get:function(){return _.useSchedulerActiveViewContext}}),Object.defineProperty(t,"SchedulerDataContext",{enumerable:!0,get:function(){return _.SchedulerDataContext}}),Object.defineProperty(t,"useSchedulerDataContext",{enumerable:!0,get:function(){return _.useSchedulerDataContext}}),Object.defineProperty(t,"SchedulerEditItemFormItemContext",{enumerable:!0,get:function(){return _.SchedulerEditItemFormItemContext}}),Object.defineProperty(t,"useSchedulerEditItemFormItemContext",{enumerable:!0,get:function(){return _.useSchedulerEditItemFormItemContext}}),Object.defineProperty(t,"SchedulerEditItemDragItemContext",{enumerable:!0,get:function(){return _.SchedulerEditItemDragItemContext}}),Object.defineProperty(t,"useSchedulerEditItemDragItemContext",{enumerable:!0,get:function(){return _.useSchedulerEditItemDragItemContext}}),Object.defineProperty(t,"SchedulerEditItemRemoveItemContext",{enumerable:!0,get:function(){return _.SchedulerEditItemRemoveItemContext}}),Object.defineProperty(t,"useSchedulerEditItemRemoveItemContext",{enumerable:!0,get:function(){return _.useSchedulerEditItemRemoveItemContext}}),Object.defineProperty(t,"SchedulerEditItemResizeItemContext",{enumerable:!0,get:function(){return _.SchedulerEditItemResizeItemContext}}),Object.defineProperty(t,"useSchedulerEditItemResizeItemContext",{enumerable:!0,get:function(){return _.useSchedulerEditItemResizeItemContext}}),Object.defineProperty(t,"SchedulerEditItemShowRemoveDialogContext",{enumerable:!0,get:function(){return _.SchedulerEditItemShowRemoveDialogContext}}),Object.defineProperty(t,"useSchedulerEditItemShowRemoveDialogContext",{enumerable:!0,get:function(){return _.useSchedulerEditItemShowRemoveDialogContext}}),Object.defineProperty(t,"SchedulerEditItemShowOccurrenceDialogContext",{enumerable:!0,get:function(){return _.SchedulerEditItemShowOccurrenceDialogContext}}),Object.defineProperty(t,"useSchedulerEditItemShowOccurrenceDialogContext",{enumerable:!0,get:function(){return _.useSchedulerEditItemShowOccurrenceDialogContext}}),Object.defineProperty(t,"SchedulerEditItemPropsContext",{enumerable:!0,get:function(){return _.SchedulerEditItemPropsContext}}),Object.defineProperty(t,"useSchedulerEditItemPropsContext",{enumerable:!0,get:function(){return _.useSchedulerEditItemPropsContext}}),Object.defineProperty(t,"SchedulerEditSlotPropsContext",{enumerable:!0,get:function(){return _.SchedulerEditSlotPropsContext}}),Object.defineProperty(t,"useSchedulerEditSlotPropsContext",{enumerable:!0,get:function(){return _.useSchedulerEditSlotPropsContext}}),Object.defineProperty(t,"SchedulerEditSlotFormItemContext",{enumerable:!0,get:function(){return _.SchedulerEditSlotFormItemContext}}),Object.defineProperty(t,"useSchedulerEditSlotFormItemContext",{enumerable:!0,get:function(){return _.useSchedulerEditSlotFormItemContext}});var R=n(9593);Object.defineProperty(t,"DRAG_ITEM_ACTION",{enumerable:!0,get:function(){return R.DRAG_ITEM_ACTION}});var M=n(8586);Object.defineProperty(t,"ITEMS_FOCUS_ACTION",{enumerable:!0,get:function(){return M.ITEMS_FOCUS_ACTION}}),Object.defineProperty(t,"SLOTS_FOCUS_ACTION",{enumerable:!0,get:function(){return M.SLOTS_FOCUS_ACTION}});var P=n(1365);Object.defineProperty(t,"ITEMS_SELECT_ACTION",{enumerable:!0,get:function(){return P.ITEMS_SELECT_ACTION}});var N=n(8858);Object.defineProperty(t,"REMOVE_ITEM_ACTION",{enumerable:!0,get:function(){return N.REMOVE_ITEM_ACTION}});var F=n(624);Object.defineProperty(t,"RESIZE_ITEM_ACTION",{enumerable:!0,get:function(){return F.RESIZE_ITEM_ACTION}});var A=n(1611);Object.defineProperty(t,"SERIES_ACTION",{enumerable:!0,get:function(){return A.SERIES_ACTION}});var j=n(7966);Object.defineProperty(t,"SHOW_OCCURRENCE_DIALOG_ACTION",{enumerable:!0,get:function(){return j.SHOW_OCCURRENCE_DIALOG_ACTION}});var L=n(8569);Object.defineProperty(t,"SHOW_REMOVE_DIALOG_ACTION",{enumerable:!0,get:function(){return L.SHOW_REMOVE_DIALOG_ACTION}});var V=n(2334);Object.defineProperty(t,"SLOTS_SELECT_ACTION",{enumerable:!0,get:function(){return V.SLOTS_SELECT_ACTION}})},3364:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.recurrenceEditorOffsetPositionsFirst=t.recurrenceEditorFrequenciesYearly=t.recurrenceEditorFrequenciesWeekly=t.recurrenceEditorFrequenciesNever=t.recurrenceEditorFrequenciesMonthly=t.recurrenceEditorFrequenciesDaily=t.recurrenceEditorYearlyInterval=t.recurrenceEditorYearlyRepeatOn=t.recurrenceEditorYearlyRepeatEvery=t.recurrenceEditorYearlyOf=t.recurrenceEditorMonthlyRepeatOn=t.recurrenceEditorMonthlyRepeatEvery=t.recurrenceEditorMonthlyInterval=t.recurrenceEditorMonthlyDay=t.recurrenceEditorWeeklyRepeatOn=t.recurrenceEditorWeeklyRepeatEvery=t.recurrenceEditorWeeklyInterval=t.recurrenceEditorDailyRepeatEvery=t.recurrenceEditorDailyInterval=t.recurrenceEditorRepeat=t.editorEventTimeZone=t.editorEventSeparateTimeZones=t.editorEventDescription=t.editorEventAllDay=t.editorEventEndTimeZone=t.editorEventEnd=t.editorEventStartTimeZone=t.editorEventStart=t.editorEventTitle=t.editorTitle=t.editorCancel=t.editorSave=t.editorRecurringDialogTitle=t.editorRecurringConfirmation=t.editorSeries=t.editorOccurrence=t.showWorkDay=t.showFullDay=t.nextTitle=t.previousTitle=t.deleteTitle=t.monthViewTitle=t.dayViewTitle=t.agendaViewTitle=t.workWeekViewTitle=t.weekViewTitle=t.timelineViewTitle=t.today=t.allDay=t.allEvents=void 0,t.messages=t.noEvents=t.editorValidationEnd=t.editorValidationStart=t.editorValidationRequired=t.eventTitle=t.timeTitle=t.dateTitle=t.deleteRecurringDialogTitle=t.deleteDialogTitle=t.deleteSeries=t.deleteOccurrence=t.deleteRecurringConfirmation=t.deleteConfirmation=t.editorDelete=t.recurrenceEditorEndOn=t.recurrenceEditorEndNever=t.recurrenceEditorEndLabel=t.recurrenceEditorEndOccurrence=t.recurrenceEditorEndAfter=t.recurrenceEditorWeekdaysWeekendday=t.recurrenceEditorWeekdaysWeekday=t.recurrenceEditorWeekdaysDay=t.recurrenceEditorOffsetPositionsLast=t.recurrenceEditorOffsetPositionsFourth=t.recurrenceEditorOffsetPositionsThird=t.recurrenceEditorOffsetPositionsSecond=void 0,t.allEvents="scheduler.allEvents",t.allDay="scheduler.allDay",t.today="scheduler.today",t.timelineViewTitle="scheduler.timelineViewTitle",t.weekViewTitle="scheduler.weekViewTitle",t.workWeekViewTitle="scheduler.workWeekViewTitle",t.agendaViewTitle="scheduler.agendaViewTitle",t.dayViewTitle="scheduler.dayViewTitle",t.monthViewTitle="scheduler.monthViewTitle",t.deleteTitle="scheduler.deleteTitle",t.previousTitle="scheduler.previousTitle",t.nextTitle="scheduler.nextTitle",t.showFullDay="scheduler.showFullDay",t.showWorkDay="scheduler.showWorkDay",t.editorOccurrence="scheduler.editOccurrence",t.editorSeries="scheduler.editSeries",t.editorRecurringConfirmation="scheduler.editRecurringConfirmation",t.editorRecurringDialogTitle="scheduler.editRecurringDialogTitle",t.editorSave="scheduler.editSave",t.editorCancel="scheduler.editCancel",t.editorTitle="scheduler.editorTitle",t.editorEventTitle="scheduler.editorEventTitle",t.editorEventStart="scheduler.editorEventStart",t.editorEventStartTimeZone="scheduler.editorEventStartTimeZone",t.editorEventEnd="scheduler.editorEventEnd",t.editorEventEndTimeZone="scheduler.editorEventEndTimeZone",t.editorEventAllDay="scheduler.editorEventAllDay",t.editorEventDescription="scheduler.editorEventDescription",t.editorEventSeparateTimeZones="scheduler.editorEventSeparateTimeZones",t.editorEventTimeZone="scheduler.editorEventTimeZone",t.recurrenceEditorRepeat="scheduler.recurrenceEditorRepeat",t.recurrenceEditorDailyInterval="scheduler.recurrenceEditorDailyInterval",t.recurrenceEditorDailyRepeatEvery="scheduler.recurrenceEditorDailyRepeatEvery",t.recurrenceEditorWeeklyInterval="scheduler.recurrenceEditorWeeklyInterval",t.recurrenceEditorWeeklyRepeatEvery="scheduler.recurrenceEditorWeeklyRepeatEvery",t.recurrenceEditorWeeklyRepeatOn="scheduler.recurrenceEditorWeeklyRepeatOn",t.recurrenceEditorMonthlyDay="scheduler.recurrenceEditorMonthlyDay",t.recurrenceEditorMonthlyInterval="scheduler.recurrenceEditorMonthlyInterval",t.recurrenceEditorMonthlyRepeatEvery="scheduler.recurrenceEditorMonthlyRepeatEvery",t.recurrenceEditorMonthlyRepeatOn="scheduler.recurrenceEditorMonthlyRepeatOn",t.recurrenceEditorYearlyOf="scheduler.recurrenceEditorYearlyOf",t.recurrenceEditorYearlyRepeatEvery="scheduler.recurrenceEditorYearlyRepeatEvery",t.recurrenceEditorYearlyRepeatOn="scheduler.recurrenceEditorYearlyRepeatOn",t.recurrenceEditorYearlyInterval="scheduler.recurrenceEditorYearlyInterval",t.recurrenceEditorFrequenciesDaily="scheduler.recurrenceEditorFrequenciesDaily",t.recurrenceEditorFrequenciesMonthly="scheduler.recurrenceEditorFrequenciesMonthly",t.recurrenceEditorFrequenciesNever="scheduler.recurrenceEditorFrequenciesNever",t.recurrenceEditorFrequenciesWeekly="scheduler.recurrenceEditorFrequenciesWeekly",t.recurrenceEditorFrequenciesYearly="scheduler.recurrenceEditorFrequenciesYearly",t.recurrenceEditorOffsetPositionsFirst="scheduler.recurrenceEditorOffsetPositionsFirst",t.recurrenceEditorOffsetPositionsSecond="scheduler.recurrenceEditorOffsetPositionsSecond",t.recurrenceEditorOffsetPositionsThird="scheduler.recurrenceEditorOffsetPositionsThird",t.recurrenceEditorOffsetPositionsFourth="scheduler.recurrenceEditorOffsetPositionsFourth",t.recurrenceEditorOffsetPositionsLast="scheduler.recurrenceEditorOffsetPositionsLast",t.recurrenceEditorWeekdaysDay="scheduler.recurrenceEditorWeekdaysDay",t.recurrenceEditorWeekdaysWeekday="scheduler.recurrenceEditorWeekdaysWeekday",t.recurrenceEditorWeekdaysWeekendday="scheduler.recurrenceEditorWeekdaysWeekendday",t.recurrenceEditorEndAfter="scheduler.recurrenceEditorEndAfter",t.recurrenceEditorEndOccurrence="scheduler.recurrenceEditorEndOccurrence",t.recurrenceEditorEndLabel="scheduler.recurrenceEditorEndLabel",t.recurrenceEditorEndNever="scheduler.recurrenceEditorEndNever",t.recurrenceEditorEndOn="scheduler.recurrenceEditorEndOn",t.editorDelete="scheduler.editorDelete",t.deleteConfirmation="scheduler.deleteConfirmation",t.deleteRecurringConfirmation="scheduler.deleteRecurringConfirmation",t.deleteOccurrence="scheduler.deleteOccurrence",t.deleteSeries="scheduler.deleteSeries",t.deleteDialogTitle="scheduler.deleteDialogTitle",t.deleteRecurringDialogTitle="scheduler.deleteRecurringDialogTitle",t.dateTitle="scheduler.dateTitle",t.timeTitle="scheduler.timeTitle",t.eventTitle="scheduler.eventTitle",t.editorValidationRequired="scheduler.editorValidationRequired",t.editorValidationStart="scheduler.editorValidationStart",t.editorValidationEnd="scheduler.editorValidationEnd",t.noEvents="scheduler.noEvents",t.messages=((n={})[t.editorValidationRequired]="Field is required.",n[t.editorValidationStart]="Start time must be be before End time.",n[t.editorValidationEnd]="End time must be after Start time.",n[t.allEvents]="All events",n[t.allDay]="all day",n[t.today]="Today",n[t.dayViewTitle]="Day",n[t.monthViewTitle]="Month",n[t.weekViewTitle]="Week",n[t.workWeekViewTitle]="Work Week",n[t.timelineViewTitle]="Timeline",n[t.agendaViewTitle]="Agenda",n[t.deleteTitle]="Delete",n[t.previousTitle]="Previous",n[t.nextTitle]="Next",n[t.showFullDay]="Show full day",n[t.showWorkDay]="Show business hours",n[t.editorOccurrence]="Edit current occurrence",n[t.editorSeries]="Edit the series",n[t.editorRecurringConfirmation]="Do you want to edit only this event occurrence or the whole series?",n[t.editorRecurringDialogTitle]="Edit Recurring Item",n[t.editorSave]="Save",n[t.editorCancel]="Cancel",n[t.editorDelete]="Delete",n[t.editorTitle]="Event",n[t.editorEventTitle]="Title",n[t.editorEventStart]="Start",n[t.editorEventStartTimeZone]="Start Time Zone",n[t.editorEventEnd]="End",n[t.editorEventEndTimeZone]="End Time Zone",n[t.editorEventAllDay]="All Day Event",n[t.editorEventDescription]="Description",n[t.editorEventSeparateTimeZones]="End in different Time Zone",n[t.editorEventTimeZone]="Specify Time Zone",n[t.recurrenceEditorRepeat]="Repeat",n[t.recurrenceEditorDailyInterval]="day(s)",n[t.recurrenceEditorDailyRepeatEvery]="Repeat every",n[t.recurrenceEditorWeeklyInterval]="week(s)",n[t.recurrenceEditorWeeklyRepeatEvery]="Repeat every",n[t.recurrenceEditorWeeklyRepeatOn]="Repeat on",n[t.recurrenceEditorMonthlyDay]="Day",n[t.recurrenceEditorMonthlyInterval]="month(s)",n[t.recurrenceEditorMonthlyRepeatEvery]="Repeat every",n[t.recurrenceEditorMonthlyRepeatOn]="Repeat on",n[t.recurrenceEditorYearlyOf]="of",n[t.recurrenceEditorYearlyRepeatEvery]="Repeat every",n[t.recurrenceEditorYearlyRepeatOn]="Repeat on",n[t.recurrenceEditorYearlyInterval]="year(s)",n[t.recurrenceEditorFrequenciesDaily]="Daily",n[t.recurrenceEditorFrequenciesMonthly]="Monthly",n[t.recurrenceEditorFrequenciesNever]="Never",n[t.recurrenceEditorFrequenciesWeekly]="Weekly",n[t.recurrenceEditorFrequenciesYearly]="Yearly",n[t.recurrenceEditorOffsetPositionsFirst]="First",n[t.recurrenceEditorOffsetPositionsSecond]="Second",n[t.recurrenceEditorOffsetPositionsThird]="Third",n[t.recurrenceEditorOffsetPositionsFourth]="Fourth",n[t.recurrenceEditorOffsetPositionsLast]="Last",n[t.recurrenceEditorWeekdaysDay]="Day",n[t.recurrenceEditorWeekdaysWeekday]="Weekday",n[t.recurrenceEditorWeekdaysWeekendday]="Weekend Day",n[t.recurrenceEditorEndAfter]="After",n[t.recurrenceEditorEndOccurrence]="occurrence(s)",n[t.recurrenceEditorEndLabel]="End",n[t.recurrenceEditorEndNever]="Never",n[t.recurrenceEditorEndOn]="On",n[t.deleteConfirmation]="Are you sure you want to delete this event?",n[t.deleteRecurringConfirmation]="Do you want to delete only this event occurrence or the whole series?",n[t.deleteOccurrence]="Delete current occurrence",n[t.deleteSeries]="Delete the series",n[t.deleteDialogTitle]="Delete Event",n[t.deleteRecurringDialogTitle]="Delete Recurring Item",n[t.dateTitle]="Date",n[t.timeTitle]="Time",n[t.eventTitle]="Event",n[t.noEvents]="no events",n)},7363:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata=void 0,t.packageMetadata={name:"@progress/kendo-react-scheduler",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1655891672,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"}},245:function(e,t,n){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},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.RecurrenceEditor=void 0;var o=n(3899),i=n(499),a=n(3364),l=n(1025),s=n(619),u=n(9285),c=n(6692),d=n(1690),p=n(884),f=n(3390),h=n(865),m=n(8138),v=n(7907);t.RecurrenceEditor=function(e){var t=(0,i.useInternationalization)(),n=(0,i.useLocalization)(),r=(0,v.useSchedulerPropsContext)().timezone,y=o.useState(1),b=y[0],C=y[1],E=o.useState(s.ZonedDate.fromUTCDate(e.start)),w=E[0],k=E[1],S=o.useCallback((function(e,t){var r=t?e:"scheduler.recurrenceEditor"+e;return n.toLanguageString(r,a.messages[r])}),[n]),O=o.useMemo((function(){return(0,d.getRule)(e.value)}),[e.value]),D=o.useMemo((function(){return(0,d.getFrequencies)(S)}),[S]),x=o.useMemo((function(){return(0,d.getFrequency)(O)}),[O]),I=o.useMemo((function(){return(0,d.getExtendedWeekDays)(t,S)}),[t,S]),T=o.useMemo((function(){return(0,d.getWeekDay)(I,O,e.start)}),[I,O,e.start]),_=o.useMemo((function(){return(0,d.getMonths)(t)}),[t]),R=o.useMemo((function(){return(0,d.getMonth)(_,O)}),[_,O]),M=o.useMemo((function(){return(0,d.getOffsets)(S)}),[S]),P=o.useMemo((function(){return(0,d.getOffset)(M,O)}),[M,O]),N=o.useMemo((function(){return(0,d.getEndRule)(O)}),[O]),F=o.useMemo((function(){return(0,d.getMonthDay)(O,e.start)}),[O,e.start]),A=o.useMemo((function(){return(0,d.getUntil)(O)}),[O.until]),j=o.useMemo((function(){return(0,d.getWeekDays)(t)}),[t]),L=o.useMemo((function(){return(0,d.getRepeatOnRule)(O)}),[O.byWeekDay,O.byMonthDay]),V=o.useCallback((function(n){"never"===n.freq?e.onChange({value:null}):(void 0===n.weekStart&&(n.weekStart=t.firstDay()),e.onChange({value:(0,l.serializeRule)(n,e.timezone)}))}),[e.onChange,e.timezone]),z=o.useCallback((function(t){var n={};n.freq=t,n.interval=1,"weekly"===t&&(n.byWeekDay=[{day:s.ZonedDate.fromLocalDate(e.start,r).getDay(),offset:0}]),"monthly"!==t&&"yearly"!==t||(n.byMonthDay=[e.start.getDate()]),"yearly"===t&&(n.byMonth=[e.start.getMonth()+1]),V(n)}),[V,e.start,r]),B=o.useCallback((function(e){var t=e.value;V(Object.assign({},O,{interval:t}))}),[V,O]),H=o.useCallback((function(e){var t=e.value;V(Object.assign({},O,{count:t})),null!==t&&C(t)}),[V,O]),U=o.useCallback((function(t){var n=t.value;if(n){var r=s.ZonedDate.fromLocalDate(n,e.timezone);V(Object.assign({},O,{until:r})),k(r)}}),[V,O,e.timezone]),W=o.useCallback((function(e){V(Object.assign({},O,{byWeekDay:j.filter((function(t){return e.some((function(e){return e===t.value}))})).map((function(e){return{offset:0,day:e.value}}))}))}),[V,O,j]),K=o.useCallback((function(e){var t=Object.assign({},O),n=e.target.value;"string"==typeof n.value?(t.byWeekDay=(0,d.weekDayRuleFromString)(n.value),t.bySetPosition=[P.value]):t.byWeekDay=[{day:n.value,offset:P.value}],V(t)}),[V,O]),q=o.useCallback((function(e){V(Object.assign({},O,{byMonthDay:[e.value]}))}),[V,O]),Y=o.useCallback((function(e){var t=e.value;V(Object.assign({},O,{byMonth:[t.value]}))}),[V,O]),G=o.useCallback((function(e){var t=e.value,n=Object.assign({},O);switch(t){case"never":n.until=void 0,n.count=void 0;break;case"count":n.until=void 0,n.count=b;break;case"until":n.until=w,n.count=void 0}V(n)}),[V,O,e.timezone]),Z=o.useCallback((function(e){var t=Object.assign({},O);"monthday"===e.value?(t.byWeekDay=void 0,t.bySetPosition=void 0,t.byMonthDay=[F]):"weekday"===e.value&&(t.byMonthDay=void 0,"string"==typeof T.value?(t.bySetPosition=[P.value],t.byWeekDay=(0,d.weekDayRuleFromString)(T.value)):t.byWeekDay=[{day:T.value,offset:P.value}]),V(t)}),[V,O,F,T]),X=o.useCallback((function(e){var t=Object.assign({},O),n=e.value;if(t.byWeekDay)switch(t.byWeekDay.length){case 7:case 5:case 2:t.bySetPosition=[n.value];break;case 1:t.byWeekDay[0].offset=n.value}V(t)}),[V,O]);return o.createElement(o.Fragment,null,o.createElement("div",{className:"k-form-field"},o.createElement(p.Label,null,n.toLanguageString(a.recurrenceEditorRepeat,a.messages[a.recurrenceEditorRepeat])),o.createElement("div",{className:"k-form-field-wrap"},o.createElement(u.RecurrenceFrequencyEditor,{value:x,data:D,onChange:z}))),"never"!==x&&o.createElement("div",{className:"k-form-field"},o.createElement(p.Label,{editorId:"interval-editor"},S((0,d.capitalize)(x)+"RepeatEvery")),o.createElement("div",{className:"k-form-field-wrap"},o.createElement("div",{style:{display:"flex",alignItems:"center"}},o.createElement(f.NumericTextBox,{min:1,step:1,defaultValue:1,value:O.interval,onChange:B,id:"interval-editor"})," ",o.createElement(p.Label,{editorId:"interval-editor"},S((0,d.capitalize)(x)+"Interval"))))),"weekly"===x&&o.createElement("div",{className:"k-form-field"},o.createElement(p.Label,null,S(a.recurrenceEditorWeeklyRepeatOn,!0)),o.createElement("div",{className:"k-form-field-wrap"},o.createElement(c.RecurrenceRepeatOnWeekEditor,{data:j,value:(O.byWeekDay||[]).map((function(e){return e.day})),onChange:W}))),"monthly"===x&&o.createElement("div",{className:"k-form-field"},o.createElement(p.Label,{key:"recurrence-repeat-on-monthly-label"},S(a.recurrenceEditorMonthlyRepeatOn,!0)),o.createElement("div",{className:"k-form-field-wrap"},o.createElement(f.RadioGroup,{value:L,onChange:Z,item:g,className:"k-reset",data:[{value:"monthday",label:S(a.recurrenceEditorMonthlyDay,!0),children:[o.createElement(o.Fragment,{key:"separator"}," "),o.createElement(f.NumericTextBox,{key:"weekday-day",min:1,max:31,disabled:"monthday"!==L,value:O&&O.byMonthDay&&O.byMonthDay[0],onChange:q,width:"auto"})]},{value:"weekday",label:" ",children:[o.createElement(h.DropDownList,{key:"weekday-offset",textField:"text",dataItemKey:"value",disabled:"weekday"!==L,data:M,value:P,onChange:X,style:{width:"auto"}}),o.createElement(o.Fragment,{key:"separator"}," "),o.createElement(h.DropDownList,{key:"weekday-value",disabled:"weekday"!==L,value:T,data:I,onChange:K,textField:"text",dataItemKey:"value",style:{width:"auto"}})]}]}))),"yearly"===x&&o.createElement("div",{className:"k-form-field"},o.createElement(p.Label,null,S(a.recurrenceEditorYearlyRepeatOn,!0)),o.createElement("div",{className:"k-form-field-wrap"},o.createElement(f.RadioGroup,{value:L,item:g,onChange:Z,className:"k-reset",data:[{value:"monthday",label:" ",children:[o.createElement(h.DropDownList,{key:"monthday-month",disabled:"monthday"!==L,value:R,data:_,textField:"text",dataItemKey:"value",onChange:Y,style:{width:"auto"}}),o.createElement(o.Fragment,{key:"separator"}," "),o.createElement(f.NumericTextBox,{key:"monthday-day",min:1,max:31,disabled:"monthday"!==L,value:F,onChange:q,width:"auto"})]},{value:"weekday",label:" ",children:[o.createElement(h.DropDownList,{key:"yearly-weekday-offset",textField:"text",dataItemKey:"value",disabled:"weekday"!==L,data:M,value:P,onChange:X,style:{width:"auto"}}),o.createElement(o.Fragment,{key:"yearly-separator-1"}," "),o.createElement(h.DropDownList,{key:"yearly-weekday-day",textField:"text",dataItemKey:"value",disabled:"weekday"!==L,value:T,data:I,onChange:K,style:{width:"auto"}}),o.createElement(o.Fragment,{key:"yearly-separator-2"}," "),o.createElement("span",{key:"yearly-weekday-of-label"},S(a.recurrenceEditorYearlyOf,!0)," "),o.createElement(o.Fragment,{key:"yearly-separator-3"}," "),o.createElement(h.DropDownList,{key:"yearly-weekday-month",textField:"text",dataItemKey:"value",disabled:"weekday"!==L,value:R,data:_,onChange:Y,style:{width:"auto"}})]}]}))),"never"!==x&&o.createElement("div",{className:"k-form-field"},o.createElement(p.Label,null,S(a.recurrenceEditorEndLabel,!0)),o.createElement("div",{className:"k-form-field-wrap"},o.createElement(f.RadioGroup,{item:g,value:N,onChange:G,data:[{value:"never",label:S(a.recurrenceEditorEndNever,!0)},{value:"count",label:S(a.recurrenceEditorEndAfter,!0),children:[o.createElement(o.Fragment,{key:"separator-1"}," "),o.createElement(f.NumericTextBox,{key:"endrule-after-editor",id:"k-endrule-after",min:1,width:"70px",value:"count"===N?O.count:b,onChange:H,disabled:"count"!==N}),o.createElement(o.Fragment,{key:"separator-2"}," "),o.createElement(p.Label,{key:"endrule-after-label",className:"k-radio-label",editorId:"k-endrule-after"},S(a.recurrenceEditorEndOccurrence,!0))]},{value:"until",label:S(a.recurrenceEditorEndOn,!0),children:[o.createElement(o.Fragment,{key:"separator"}," "),o.createElement(m.DatePicker,{key:"k-endrule-until-editor",id:"k-endrule-until",disabled:"until"!==N,min:e.start,value:"until"===N?A:(0,s.toLocalDate)(w),onChange:U,width:"auto"})]}]}))))};var g=function(e){return o.createElement("li",r({},e,{style:{display:"flex",alignItems:"center",minHeight:30}}),e.children)};t.RecurrenceEditor.defaultProps={value:""},t.RecurrenceEditor.displayName="KendoReactSchedulerRepeatEditor"},9285:function(e,t,n){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},r.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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.RecurrenceFrequencyEditor=void 0;var i=n(3899),a=n(2888);t.RecurrenceFrequencyEditor=function(e){var t=e.value,n=e.data,l=e.onChange,s=o(e,["value","data","onChange"]),u=i.useCallback((function(e){l&&l.call(void 0,e.currentTarget.dataset.value)}),[l]);return i.createElement(a.ButtonGroup,r({width:"100%"},s),n.map((function(e){return i.createElement(a.Button,{type:"button",key:e.value,selected:e.value===t,onClick:u,"data-value":e.value,togglable:!0},e.text)})))}},6692:function(e,t,n){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},r.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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},i=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.RecurrenceRepeatOnWeekEditor=void 0;var a=n(3899),l=n(2888),s=n(1690);t.RecurrenceRepeatOnWeekEditor=function(e){var t=r(r({},u),e),n=t.value,c=(t.data,t.onChange,o(t,["value","data","onChange"])),d=function(t){var r=Number(t.currentTarget.dataset.key);e.onChange&&e.onChange.call(void 0,n.some((function(e){return e===r}))?n.filter((function(e){return e!==r})):i(i([],n,!0),[r],!1))};return a.createElement(a.Fragment,null,a.createElement(l.ButtonGroup,r({width:"auto"},c),(e.data||u.data).map((function(e){return a.createElement(l.Button,{type:"button",key:e.value,"data-key":e.value,selected:n.some((function(t){return t===e.value})),togglable:!0,onClick:d},(0,s.capitalize)(e.text))}))))};var u={data:[],value:[]};t.RecurrenceRepeatOnWeekEditor.defaultProps=u},1690:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getUntilMin=t.getUntilEnd=t.getMonthDay=t.getMonth=t.getRepeatOnRule=t.getEndRule=t.getOffsets=t.getOffset=t.getExtendedWeekDays=t.getWeekDay=t.getWeekDays=t.getMonths=t.getUntil=t.getFrequency=t.getFrequencies=t.getRule=t.weekDayRuleFromString=t.weekendRule=t.weekdayRule=t.dayRule=t.FREQUENCIES=t.OFFSET_POSITIONS=t.capitalize=void 0;var r=n(5538),o=n(1025),i=n(619);t.capitalize=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},t.OFFSET_POSITIONS=["first","second","third","fourth","last"],t.FREQUENCIES=["never","daily","weekly","monthly","yearly"],t.dayRule=[{day:0,offset:0},{day:1,offset:0},{day:2,offset:0},{day:3,offset:0},{day:4,offset:0},{day:5,offset:0},{day:6,offset:0}],t.weekdayRule=[{day:1,offset:0},{day:2,offset:0},{day:3,offset:0},{day:4,offset:0},{day:5,offset:0}],t.weekendRule=[{day:0,offset:0},{day:6,offset:0}],t.weekDayRuleFromString=function(e){switch(e){case"day":return t.dayRule;case"weekday":return t.weekdayRule;case"weekend":return t.weekendRule}},t.getRule=function(e){return(0,o.parseRule)({recurrenceRule:e})||{}},t.getFrequencies=function(e){return t.FREQUENCIES.map((function(n){return{value:n,text:e("Frequencies"+(0,t.capitalize)(n))}}))},t.getFrequency=function(e){return(0,r.isPresent)(e)&&!(0,r.isNullOrEmptyString)(e.freq)?e.freq:"never"},t.getUntil=function(e){return(0,r.isPresent)(e.until)?(0,i.toLocalDate)(e.until):null},t.getMonths=function(e){return e.dateFormatNames({type:"months",nameType:"wide",standAlone:!0}).map((function(e,t){return{text:e,value:t+1}}))},t.getWeekDays=function(e){var t=e.firstDay(),n=e.dateFormatNames({type:"days",nameType:"abbreviated"}).map((function(e,t){return{text:e,value:t}}));return n.slice(t).concat(n.slice(0,t))},t.getWeekDay=function(e,t,n){return e.find((function(e){var o;if((0,r.isPresent)(t.byWeekDay))switch(t.byWeekDay.length){case 7:o="day";break;case 5:o="weekday";break;case 2:o="weekend";break;case 1:o=t.byWeekDay[0].day;break;default:o=n.getDay()}return o===e.value}))||e[0]},t.getExtendedWeekDays=function(e,t){var n=e.firstDay(),r=e.dateFormatNames({type:"days",nameType:"wide"}).map((function(e,t){return{text:e,value:t}})),o=r.slice(n).concat(r.slice(0,n));return[{text:t("WeekdaysDay"),value:"day"},{text:t("WeekdaysWeekday"),value:"weekday"},{text:t("WeekdaysWeekendday"),value:"weekend"}].concat(o)},t.getOffset=function(e,t){return e.find((function(e){return e.value===(t.bySetPosition?t.bySetPosition[0]:t.byWeekDay&&t.byWeekDay[0]?t.byWeekDay[0].offset:1)}))||e[0]},t.getOffsets=function(e){var n=[1,2,3,4,-1];return t.OFFSET_POSITIONS.map((function(r,o){return{text:e("OffsetPositions"+(0,t.capitalize)(r)),value:n[o]}}))},t.getEndRule=function(e){return(0,r.isPresent)(e.count)?"count":(0,r.isPresent)(e.until)?"until":"never"},t.getRepeatOnRule=function(e){return(0,r.isPresent)(e.byWeekDay)?"weekday":(0,r.isPresent)(e.byMonthDay)?"monthday":void 0},t.getMonth=function(e,t){return e.find((function(e){return(t.byMonth?t.byMonth[0]:null)===e.value}))||e[0]},t.getMonthDay=function(e,t){return(0,r.isPresent)(e.byMonthDay)&&e.byMonthDay.length>0?e.byMonthDay[0]:t.getDate()},t.getUntilEnd=function(e,t){var n=e,o=t;return(0,r.isPresent)(o)?o:new Date(n.getFullYear(),n.getMonth(),n.getDate(),23,59,59)},t.getUntilMin=function(e,t){var n=e,o=t;return(0,r.isPresent)(o)&&o<n?o:n}},95:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(8963),t),o(n(6189),t),o(n(3539),t),o(n(8180),t)},8963:function(e,t,n){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},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.inRange=t.inSlot=t.inGroup=t.toItems=void 0;var o=n(3899),i=n(5538),a=n(9218),l=n(619);t.toItems=function(e,n,i){var u=n.timezone,c=i.groups,d=i.ranges,p=[];return(0,a.orderBy)(e,[{field:"start",dir:"asc"},{field:"end",dir:"desc"},{field:"isAllDay",dir:"desc"}]).forEach((function(e){c.forEach((function(n){var i=1===c.length?s(e,n):n;(0,t.inGroup)(e,i)&&d.forEach((function(n){if((0,t.inRange)(e,n)){var a=o.createRef(),s=o.createRef(),c=n.end<e.end,d=e.start<n.start,f=l.ZonedDate.fromLocalDate(e.start,u),h=l.ZonedDate.fromLocalDate(e.end,u),m=r(r({},e),{_ref:s,itemRef:a,head:c,tail:d,order:null,zonedStart:f,zonedEnd:h,group:i,range:n,slots:[],isRecurring:Boolean(e.recurrenceRule),isException:Boolean(!e.recurrenceRule&&null!==e.recurrenceId&&void 0!==e.recurrenceId),isAllDay:Boolean(e.isAllDay)});p.push(m)}}))}))})),p};var s=function(e,t){return{index:0,resources:t.resources.filter((function(t){return u(e,t)}))}},u=function(e,t){return t.multiple?(e.dataItem[t.field]||[]).some((function(e){return t[t.valueField]===e})):e.dataItem[t.field]===t[t.valueField]};t.inGroup=function(e,t){return!t.resources.some((function(t){return t.multiple?!e.dataItem[t.field].some((function(e){return t[t.valueField]===e})):e.dataItem[t.field]!==t[t.valueField]}))},t.inSlot=function(e,t){return(0,i.intersects)(t.start,t.end,e.start,e.end)},t.inRange=function(e,t){return(0,i.intersects)(t.start,t.end,e.start,e.end)&&(void 0===t.isAllDay||void 0===e.isAllDay||e.isAllDay===t.isAllDay)}},3539:function(e,t,n){var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.toOccurrences=void 0;var o=n(3865),i=n(1025),a=n(619),l=n(5538);t.toOccurrences=function(e,t){var n=t.dateRange,r=t.fields,o=t.timezone;return e.map(s(r)).reduce(u(n,o,r),[]).filter((function(e){return!(0,l.isMaster)(e.dataItem,r)}))};var s=function(e){return function(t){return{uid:(0,o.getter)(e.id||"id")(t),start:(0,o.getter)(e.start||"start")(t),startTimezone:(0,o.getter)(e.startTimezone||"startTimezone")(t),originalStart:(0,o.getter)(e.originalStart||"originalStart")(t),end:(0,o.getter)(e.end||"end")(t),endTimezone:(0,o.getter)(e.endTimezone||"endTimezone")(t),isAllDay:(0,o.getter)(e.isAllDay||"isAllDay")(t),title:(0,o.getter)(e.title||"title")(t),description:(0,o.getter)(e.description||"description")(t),occurrenceId:(0,o.getter)("occurrenceId")(t),recurrenceRule:(0,o.getter)(e.recurrenceRule||"recurrenceRule")(t),recurrenceExceptions:(0,o.getter)(e.recurrenceExceptions||"recurrenceExceptions")(t),recurrenceId:(0,o.getter)(e.recurrenceId||"recurrenceId")(t),dataItem:(0,o.clone)(t)}}},u=function(e,t,n){return function(o,i){return r(r([],o,!0),Boolean(i.recurrenceRule)&&Boolean(null===i.recurrenceId||void 0===i.recurrenceId)&&(0,l.isMaster)(i.dataItem,n)?r([],c(i,{dateRange:e,timezone:t,fields:n}),!0):[i],!0)}},c=function(e,t){var n=t.dateRange,r=t.timezone,s=t.fields,u=e.recurrenceRule,c=(0,i.parseRule)({recurrenceRule:u});c.start||(c.start=a.ZonedDate.fromLocalDate(e.start,r)),c.end||(c.end=a.ZonedDate.fromLocalDate(e.end,r));var d=e.recurrenceExceptions;d&&(c.exceptionDates=d.map((function(e){return a.ZonedDate.fromLocalDate(e,r)})));var p=n.zonedStart,f=n.zonedEnd,h=(0,i.expand)(c,{rangeStart:a.ZonedDate.fromUTCDate(p,r),rangeEnd:a.ZonedDate.fromUTCDate(f,r)});return h.events.length?h.events.map((function(t,n){var r=(0,o.clone)(e),i=(0,o.clone)(e.dataItem);return r.recurrenceId=r.uid,(0,l.setField)(i,s.recurrenceId,e.uid),r.originalStart=t.start.toLocalDate(),(0,l.setField)(i,s.originalStart,t.start.toLocalDate()),r.start=t.start.toLocalDate(),(0,l.setField)(i,s.start,t.start.toLocalDate()),r.end=t.end.toLocalDate(),(0,l.setField)(i,s.end,t.end.toLocalDate()),r.occurrenceId=String(n),(0,l.setField)(i,"occurrenceId",String(n)),r.dataItem=i,r})):[]}},8180:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toRanges=void 0;var r=n(619);t.toRanges=function(e,t){for(var n=t.step,o=t.timezone,i=[],a=r.ZonedDate.fromLocalDate(e.start,o),l=r.ZonedDate.fromLocalDate(e.end,o),s=a.clone(),u=0;s.getTime()<l.getTime();u++,s=s.addTime(n)){var c=s.clone(),d=c.clone().addTime(n),p=new Date(c.getTime()),f={index:u,end:new Date(d.getTime()),start:p,zonedStart:c,zonedEnd:d};i.push(f)}return i}},6189:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toSlots=void 0;var r=n(3899),o=n(619),i=n(4814);t.toSlots=function(e,t,n){var a=t.step,l=n.groups,s=n.ranges,u=[];return l.forEach((function(e){s.forEach((function(t){for(var n=t.zonedStart,l=t.zonedEnd,s=l.timezoneOffset-n.timezoneOffset,c=n.clone(),d=0,p=s<0?s*i.MS_PER_MINUTE*-1:0;c.getTime()<l.getTime();d++,c=c.addTime(a)){var f=r.createRef(),h=c.clone(),m=c.addTime(a),v=(m.timezoneOffset-h.timezoneOffset)*i.MS_PER_MINUTE,g=a<=Math.abs(v);p&&g&&(p-=a,c=c.addTime(-a));var y=new Date(h.getTime()),b={_ref:f,index:d,end:new Date(m.getTime()),start:y,zonedStart:h,zonedEnd:m,range:t,group:e,items:[],isAllDay:o.MS_PER_DAY<=a};u.push(b)}}))})),u}},6604:function(e,t,n){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},r.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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.SchedulerEditSlot=void 0;var i=n(3899),a=n(3865),l=n(4960),s=n(5538),u=n(3540),c=n(4850),d=n(8586),p=n(1995),f=n(6266),h=n(7907),m=n(2577),v=n(2334);t.SchedulerEditSlot=i.forwardRef((function(e,t){var n=e._ref,u=e.onDataAction,c=e.viewSlot,y=e.form,b=e.formItem,C=(e.onFormItemChange,o(e,["_ref","onDataAction","viewSlot","form","formItem","onFormItemChange"])),E=i.useState(e.tabIndex),w=E[0],k=E[1],S=i.useRef(null),O=i.useRef(null);i.useImperativeHandle(O,(function(){return{props:e}})),i.useImperativeHandle(t,(function(){return O.current})),i.useImperativeHandle(n,(function(){return S.current}));var D=(0,d.useEditable)(e.editable),x=(0,f.useSchedulerFieldsContext)(),I=(0,h.useSchedulerViewSlotsContext)()[0],T=(0,h.useSchedulerViewItemsContext)()[0],_=(0,h.useSchedulerViewSelectedSlotsContext)(),R=_[0],M=_[1],P=(0,h.useSchedulerViewFocusedSlotsContext)()[1],N=y||g.form,F=c||g.viewSlot,A=(0,p.useControlledState)(null,b,e.onFormItemChange),j=A[0],L=A[1],V=R.some((function(t){return Boolean(t.current&&t.current.props.start.getTime()===e.start.getTime()&&t.current.props.end.getTime()===e.end.getTime()&&t.current.props.index===e.index&&t.current.props.group.index===e.group.index&&t.current.props.range.index===e.range.index&&t.current.props.isAllDay===e.isAllDay)})),z=i.useCallback((function(){var t={};if((0,s.setField)(t,x.start,new Date(e.start.getTime())),(0,s.setField)(t,x.end,new Date(e.end.getTime())),(0,s.setField)(t,x.isAllDay,e.isAllDay),e.group.resources.length)for(var n=0;n<e.group.resources.length;n++){var r=e.group.resources[n];if((0,s.isGroupped)(e.group.resources)){var o=(0,s.getField)(e.group.resources[n],r.valueField);(0,s.setField)(t,r.field,r.multiple?[o]:o)}else(0,s.setField)(t,r.field,r.multiple?[]:void 0)}return t}),[x.start,x.end,x.isAllDay,e.start,e.end,e.isAllDay,e.group.resources]),B=i.useCallback((function(t){D.select&&M({type:v.SLOTS_SELECT_ACTION.select,slot:S},t.syntheticEvent),e.onFocus&&e.onFocus.call(void 0,t)}),[M,D.select,e.onFocus]),H=i.useCallback((function(t){if(D.add){var n=z();L(n,t)}e.onDoubleClick&&e.onDoubleClick.call(void 0,t)}),[z,D.add,e.onDoubleClick,L]),U=i.useCallback((function(e){var t;switch(e.syntheticEvent.keyCode){case a.Keys.left:if(!I)return;e.syntheticEvent.preventDefault(),P({type:d.SLOTS_FOCUS_ACTION.left,slot:S},e.syntheticEvent);break;case a.Keys.right:if(!I)return;e.syntheticEvent.preventDefault(),P({type:d.SLOTS_FOCUS_ACTION.right,slot:S},e.syntheticEvent);break;case a.Keys.up:if(!I)return;e.syntheticEvent.preventDefault(),P({type:d.SLOTS_FOCUS_ACTION.up,slot:S},e.syntheticEvent);break;case a.Keys.down:if(!I)return;e.syntheticEvent.preventDefault(),P({type:d.SLOTS_FOCUS_ACTION.down,slot:S},e.syntheticEvent);break;case a.Keys.enter:if(!I||!D.add)return;var n=z();L(n);break;case a.Keys.tab:t=(0,s.findFirstItem)(e.target)}t&&(e.syntheticEvent.preventDefault(),t.element&&t.element.focus())}),[z,P,D.add,L,I]),W=i.useCallback((function(e){u&&u.call(void 0,{type:l.DATA_ACTION.create,series:!1,dataItem:e.value},e),L(null,e.syntheticEvent)}),[u,L]),K=i.useCallback((function(e){L(null,e.syntheticEvent)}),[L]),q=i.useCallback((function(e){L(null,e)}),[L]),Y=i.useCallback((function(e,t){L&&L(e,t)}),[L]);return i.useEffect((function(){var t=I.length&&I[0].current===S.current;k(void 0!==e.tabIndex?null===e.tabIndex?void 0:e.tabIndex:0===R.length&&t&&0===T.length?0:void 0)}),[T,e.tabIndex,R.length,I]),i.createElement(m.SchedulerEditSlotContext,{props:e,form:[j,Y]},i.createElement(F,r({},C,{_ref:S,selected:V,tabIndex:w,onFocus:B,onDoubleClick:H,onKeyDown:U})),j&&i.createElement(N,{dataItem:j,onSubmit:W,onClose:q,onCancel:K}))}));var g={viewSlot:c.SchedulerViewSlot,form:u.SchedulerForm};t.SchedulerEditSlot.defaultProps=g,t.SchedulerEditSlot.displayName="KendoReactSchedulerEditSlot"},8125:function(e,t,n){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},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.SchedulerSlot=void 0;var o=n(3899),i=n(3865),a=n(5538),l=n(499),s=n(9530);t.SchedulerSlot=o.forwardRef((function(e,t){var n=e.onFocus,u=e.onBlur,c=e.onClick,d=e.onMouseEnter,p=e.onMouseLeave,f=e.onMouseOut,h=e.onMouseOver,m=e.onDoubleClick,v=e.onKeyDown,g=e.onKeyPress,y=e.onKeyUp,b=(0,s.useSchedulerSlot)(e,t),C=b.slot,E=b.element,w=(0,l.useInternationalization)(),k=void 0!==e.tabIndex?null===e.tabIndex?void 0:e.tabIndex:e.selected?0:-1,S=o.useMemo((function(){return(0,i.classNames)(e.className,"k-scheduler-cell k-slot-cell",{"k-nonwork-hour":!e.isWorkHour||!e.isWorkDay,"k-selected":e.selected})}),[e.className,e.selected,e.isWorkHour,e.isWorkDay]),O=o.useMemo((function(){return r({userSelect:"none"},e.style)}),[e.style]),D=o.useMemo((function(){return"".concat((0,a.formatEventTime)(w,e.zonedStart,e.zonedEnd,e.isAllDay||!1))}),[w,e.isAllDay,e.zonedEnd,e.zonedStart]),x=o.useCallback((function(e){n&&n.call(void 0,{syntheticEvent:e,target:C.current})}),[n,C]),I=o.useCallback((function(e){u&&u.call(void 0,{syntheticEvent:e,target:C.current})}),[u,C]),T=o.useCallback((function(e){c&&c.call(void 0,{syntheticEvent:e,target:C.current})}),[c,C]),_=o.useCallback((function(e){h&&h.call(void 0,{syntheticEvent:e,target:C.current})}),[h,C]),R=o.useCallback((function(e){f&&f.call(void 0,{syntheticEvent:e,target:C.current})}),[f,C]),M=o.useCallback((function(e){d&&d.call(void 0,{syntheticEvent:e,target:C.current})}),[d,C]),P=o.useCallback((function(e){p&&p.call(void 0,{syntheticEvent:e,target:C.current})}),[p,C]),N=o.useCallback((function(e){m&&m.call(void 0,{syntheticEvent:e,target:C.current})}),[m,C]),F=o.useCallback((function(e){v&&v.call(void 0,{syntheticEvent:e,target:C.current})}),[v,C]),A=o.useCallback((function(e){g&&g.call(void 0,{syntheticEvent:e,target:C.current})}),[g,C]),j=o.useCallback((function(e){y&&y.call(void 0,{syntheticEvent:e,target:C.current})}),[y,C]);return o.createElement("div",{ref:E,id:e.id,style:O,className:S,tabIndex:k,"aria-label":D,"aria-selected":e.selected,onFocus:x,onBlur:I,onClick:T,onMouseEnter:M,onMouseLeave:P,onMouseOver:_,onMouseOut:R,onDoubleClick:N,onKeyDown:F,onKeyPress:A,onKeyUp:j,"data-slot":!0,"data-slot-allday":e.isAllDay,"data-slot-start":e.start.getTime(),"data-slot-end":e.end.getTime(),"data-slot-group":e.group.index,"data-slot-range":e.range.index,"data-slot-index":e.index},e.children)})),t.SchedulerSlot.defaultProps={isWorkHour:!0,isWorkDay:!0},t.SchedulerSlot.displayName="KendoReactSchedulerSlot"},4850:function(e,t,n){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},r.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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.SchedulerViewSlot=void 0;var i=n(3899),a=n(8125),l=n(8586);t.SchedulerViewSlot=i.forwardRef((function(e,t){var n=e.slot,a=e._ref,u=o(e,["slot","_ref"]),c=n||s.slot,d=i.useRef(null),p=i.useRef(null);return i.useImperativeHandle(d,(function(){return{props:e}})),i.useImperativeHandle(a,(function(){return p.current})),i.useImperativeHandle(t,(function(){return d.current})),(0,l.useSlotExpand)(p,e.expandable),i.createElement(c,r({},u,{_ref:p}))}));var s={slot:a.SchedulerSlot,expandable:!1};t.SchedulerViewSlot.defaultProps=s,t.SchedulerViewSlot.displayName="KendoReactSchedulerViewSlot"},3188:function(e,t,n){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},r.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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.SchedulerEditTask=void 0;var i=n(3899),a=n(4771),l=n(1995),s=n(8586),u=n(5538),c=n(4960),d=n(7160),p=n(6809),f=n(6266),h=n(8123);t.SchedulerEditTask=i.forwardRef((function(e,t){var n=e._ref,a=e.onDataAction,d=e.viewTask,p=e.removeDialog,v=e.removeItem,g=e.onRemoveItemChange,y=e.occurrenceDialog,b=e.showOccurrenceDialog,C=e.onShowOccurrenceDialogChange,E=e.showRemoveDialog,w=e.onShowRemoveDialogChange,k=o(e,["_ref","onDataAction","viewTask","removeDialog","removeItem","onRemoveItemChange","occurrenceDialog","showOccurrenceDialog","onShowOccurrenceDialogChange","showRemoveDialog","onShowRemoveDialogChange"]),S=i.useRef(null);i.useImperativeHandle(S,(function(){return{props:e,element:S.current&&S.current.element}})),i.useImperativeHandle(n,(function(){return S.current})),i.useImperativeHandle(t,(function(){return S.current}));var O=d||m.viewTask,D=y||m.occurrenceDialog,x=p||m.removeDialog,I=(0,s.useEditable)(e.editable),T=(0,f.useSchedulerFieldsContext)(),_=(0,f.useSchedulerDataContext)(),R=_[0],M=_[1],P=i.useState(null),N=P[0],F=P[1],A=(0,l.useControlledState)(null,v,g),j=A[0],L=A[1],V=(0,l.useControlledState)(!1,E,w),z=V[0],B=V[1],H=(0,l.useControlledState)(!1,b,C),U=H[0],W=H[1],K=i.useCallback((function(t){I.remove&&(L(e.dataItem,t),e.isRecurring?W(!0,t):B(!0,t))}),[L,e.dataItem,e.isRecurring,W,B]),q=i.useCallback((function(e){F(null),L(null,e),B(!1,e),W(!1,e)}),[F,L,B,W]),Y=i.useCallback((function(e){a&&j&&a.call(void 0,{type:c.DATA_ACTION.remove,series:N,dataItem:j}),L(null,e),B(!1,e)}),[j,M,B]),G=i.useCallback((function(e,t){L&&L(e,t)}),[L]),Z=i.useCallback((function(e,t){B&&B(e,t)}),[B]),X=i.useCallback((function(e,t){W&&W(e,t)}),[W]),$=i.useCallback((function(t){j&&(F(!1),L(e.dataItem,t),B(!0,t)),W(!1,t)}),[F,e.dataItem,j,L,B]),Q=i.useCallback((function(e){if(j){F(!0);var t=(0,u.findMaster)(j,T,R);L(t,e),B(!0,e)}W(!1,e)}),[T,j,F,L,B,W]);return i.createElement(h.SchedulerEditTaskContext,{remove:[j,G],showRemoveDialog:[z,Z],showOccurrenceDialog:[U,X]},i.createElement(O,r({_ref:S},k,{onRemoveClick:K})),U&&i.createElement(D,{dataItem:j,isRemove:null!==j,onClose:q,onOccurrenceClick:$,onSeriesClick:Q}),z&&i.createElement(x,{dataItem:j,onClose:q,onCancel:q,onConfirm:Y}))}));var m={viewTask:a.SchedulerViewTask,occurrenceDialog:p.SchedulerOccurrenceDialog,removeDialog:d.SchedulerRemoveDialog};t.SchedulerEditTask.defaultProps=m,t.SchedulerEditTask.displayName="KendoReactSchedulerEditTask"},273:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SchedulerTask=void 0;var r=n(3899),o=n(499),i=n(3364),a=n(3865),l=n(8586);t.SchedulerTask=r.forwardRef((function(e,t){var n=e._ref,s=e.onRemoveClick,u=r.useRef(null),c=r.useRef(null);r.useImperativeHandle(u,(function(){return{props:e,element:c.current}})),r.useImperativeHandle(t,(function(){return u.current})),r.useImperativeHandle(n,(function(){return u.current}));var d=(0,l.useEditable)(e.editable),p=(0,o.useLocalization)().toLanguageString(i.deleteTitle,i.messages[i.deleteTitle]),f=e.group.resources.find((function(e){return Boolean(e.colorField&&void 0!==e[e.colorField])})),h=f&&f.colorField&&f[f.colorField],m=r.useCallback((function(e){s&&s.call(void 0,{syntheticEvent:e,target:u.current})}),[s,u]),v=r.useMemo((function(){return(0,a.classNames)("k-task",e.className)}),[e.className]);return r.createElement("div",{id:e.id,ref:c,style:e.style,className:v,tabIndex:e.tabIndex||void 0},h&&r.createElement("span",{className:"k-scheduler-mark",style:{color:h,backgroundColor:h}}),e.isRecurring&&r.createElement("span",{className:"k-icon k-i-reload"}),e.isException&&r.createElement("span",{className:"k-icon k-i-non-recurrence"}),e.title,d.remove&&r.createElement("a",{className:"k-link k-event-delete",title:p,"aria-label":p,onClick:m},r.createElement("span",{className:"k-icon k-i-close"})))})),t.SchedulerTask.displayName="KendoReactSchedulerTask"},4771:function(e,t,n){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},r.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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.SchedulerViewTask=void 0;var i=n(3899),a=n(273);t.SchedulerViewTask=i.forwardRef((function(e,t){var n=e.task,a=e._ref,s=o(e,["task","_ref"]),u=i.useRef(null),c=i.useRef(null);i.useImperativeHandle(c,(function(){return{props:e,element:u.current&&u.current.element}})),i.useImperativeHandle(a,(function(){return u.current})),i.useImperativeHandle(t,(function(){return c.current}));var d=n||l.task;return i.createElement(d,r({},s,{_ref:u}))}));var l={task:a.SchedulerTask};t.SchedulerViewTask.defaultProps=l,t.SchedulerViewTask.displayName="KendoReactSchedulerViewTask"},5538:function(e,t,n){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},r.apply(this,arguments)},o=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.orderSort=t.findNextItem=t.findFirstItem=t.noop=t.mapItemsToSlots=t.mapSlotsToItems=t.calculateOrder=t.findMissing=t.shallowCompare=t.extractResources=t.extractResourceFields=t.extractGroups=t.setTime=t.isNullOrEmptyString=t.isBlank=t.generateResourceFields=t.toSchedulerResources=t.toSchedulerGroups=t.isInTimeRange=t.getModelFields=t.defaultModelFields=t.roundAllDayEnd=t.intersects=t.isException=t.buildException=t.isMaster=t.findMaster=t.groupResources=t.isRecurring=t.isRecurringException=t.toInvariantTime=t.toUTCDateTime=t.getUTCDate=t.toUTCDate=t.isRecurringMaster=t.isPresent=t.assignFields=t.assignField=t.setField=t.getField=t.slotDive=t.getToday=t.dateWithTime=t.addUTCDays=t.formatEventTime=t.isGroupped=t.isMultiDay=t.last=t.first=void 0;var i=n(619),a=n(3152),l=n(3865),s=n(4814),u=n(9218);function c(e,n,r){(0,t.setField)(e,r,(0,t.getField)(n,r))}t.first=function(e){return e[0]},t.last=function(e){return e[e.length-1]},t.isMultiDay=function(e){return e.end.getTime()-e.start.getTime()>new Date(0).setHours(24)},t.isGroupped=function(e){var t=new Set;return e.forEach((function(e){t.add(e.field)})),t.size===e.length},t.formatEventTime=function(e,t,n,r){return r?"".concat(e.formatDate(t,{skeleton:"yMMMMEEEEd"})):"".concat(e.formatDate(t,{skeleton:"yMMMMEEEEdhm"}),"–").concat(e.formatDate(n,"t"))},t.addUTCDays=function(e,t){var n=new Date(e.getTime());return n.setUTCDate(n.getUTCDate()+t),n},t.dateWithTime=function(e,t){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),t.getHours(),t.getMinutes())},t.getToday=function(){return(0,i.getDate)(new Date)},t.slotDive=function(e,n,r,o){if(void 0===o&&(o=0),o===r)return null;var i=null,a=document.elementFromPoint(e,n);if(!a)return i;if("true"===a.getAttribute("data-slot"))return a;var l=a.style.pointerEvents;return a.style.pointerEvents="none",i=(0,t.slotDive)(e,n,r,o+1),a.style.pointerEvents=l,i},t.getField=function(e,t){return(0,l.getter)(t)(e)},t.setField=function(e,t,n){if(t)return(0,l.setter)(t)(e,n)},t.assignField=c,t.assignFields=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];for(var o=0;o<n.length;o++)c(e,t,n[o])},t.isPresent=function(e){return null!=e},t.isRecurringMaster=function(e){return e.recurrenceRule&&!(0,t.isPresent)(e.recurrenceId)},t.toUTCDate=function(e){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate()))},t.getUTCDate=function(e){return new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()))},t.toUTCDateTime=function(e){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()))},t.toInvariantTime=function(e){var t=new Date(1980,1,1,0,0,0);return e&&t.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t},t.isRecurringException=function(e){return e&&(0,t.isPresent)(e.recurrenceId)&&!e.recurrenceRule},t.isRecurring=function(e,t){var n=(0,l.getter)(t.recurrenceId||"recurrenceId")(e);return!(!(0,l.getter)(t.recurrenceRule||"recurrenceRule")(e)&&!n)},t.groupResources=function(e,t){var n=[];if(e&&e.resources&&e.resources.length)for(var r=e.resources,o=function(e){var o=t.find((function(t){return t.name===r[e]}));n.push(o)},i=0;i<r.length;i++)o(i);return n},t.findMaster=function(e,n,r){var o=(0,t.isMaster)(e,n)?(0,t.getField)(e,n.id):(0,t.getField)(e,n.recurrenceId);return r.find((function(e){return(0,t.getField)(e,n.id)===o}))},t.isMaster=function(e,n){var r=(0,t.getField)(e,n.id),o=(0,t.getField)(e,n.recurrenceId),i=(0,t.getField)(e,n.recurrenceRule);return!(!r||!i||null!=o)},t.buildException=function(e,n,r){var o=(0,t.findMaster)(e,n,r),i=(0,l.clone)(e);return c(i,o,n.id),void 0!==n.id&&(0,t.setField)(i,n.id,s.DEFAULT_ID),void 0!==n.recurrenceRule&&(0,t.setField)(i,n.recurrenceRule,void 0),void 0!==n.recurrenceId&&(0,t.setField)(i,n.recurrenceId,(0,t.getField)(o,n.id)),i},t.isException=function(e,n){return(0,t.isPresent)((0,t.getField)(e,n.recurrenceId))&&!(0,t.getField)(e,n.recurrenceRule)};var d=function(e,t){return Math.max(e.getTime(),t.getTime())},p=function(e,t){return Math.min(e.getTime(),t.getTime())};function f(e,n){for(var r=n.data,o=0;o<r.length;o++)if((0,t.getField)(r[o],n.valueField)===e)return o;return 0}t.intersects=function(e,t,n,r,o){return void 0===o&&(o=!1),o?d(t,r)-p(e,n)<=t.getTime()-e.getTime()+(r.getTime()-n.getTime()):d(t,r)-p(e,n)<t.getTime()-e.getTime()+(r.getTime()-n.getTime())},t.roundAllDayEnd=function(e){var t=e.start,n=e.end,r=t.stripTime(),o=n.stripTime();return o.getTime()!==n.getTime()||r.getTime()===o.getTime()?o.addDays(1):o},t.defaultModelFields={id:"id",start:"start",startTimezone:"startTimezone",originalStart:"originalStart",end:"end",endTimezone:"endTimezone",isAllDay:"isAllDay",title:"title",description:"description",recurrenceRule:"recurrenceRule",recurrenceId:"recurrenceId",recurrenceExceptions:"recurrenceExceptions"},t.getModelFields=function(e){return{fields:r(r({},t.defaultModelFields),e)}},t.isInTimeRange=function(e,t,n){return(t.getHours()<e.getHours()||t.getHours()===e.getHours()&&t.getMinutes()<=e.getMinutes())&&(e.getHours()<n.getHours()||n.getHours()===e.getHours()&&e.getMinutes()<n.getMinutes())},t.toSchedulerGroups=function(e,t){var n=(0,a.toGroupResources)(e,t),i=(0,a.toFlatGroupResources)(n);return 1===i.length?[{index:0,resources:(t||[]).reduce((function(e,t){return o(o([],e,!0),t.data.map((function(e){return r(r({},e),{field:t.field,valueField:t.valueField,colorField:t.colorField,multiple:t.multiple})})),!0)}),[])}]:i.map((function(e,t){return{index:t,resources:e}}))},t.toSchedulerResources=function(e){return void 0===e&&(e=[]),e.reduce((function(e,t){return o(o([],e,!0),t.data.map((function(e){return r(r({},e),{field:t.field,valueField:t.valueField,colorField:t.colorField,multiple:t.multiple})})),!0)}),[])},t.generateResourceFields=function(e,t){if(!e||!e.length)return t;var n={};return e.forEach((function(e){e.resources.forEach((function(e){void 0===n[e.field]&&(n[e.field]=e[e.valueField])}))})),n},t.isBlank=function(e){return null==e},t.isNullOrEmptyString=function(e){return(0,t.isBlank)(e)||e.trim&&0===e.trim().length},t.setTime=function(e,t){var n=(0,i.cloneDate)(e);return n.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),n},t.extractGroups=function(e,t,n,r){var i=(0,a.toGroupResources)(n,r);return(0,a.toFlatGroupResources)(i).reduce((function(n,r,i){var a=!0;return r.forEach((function(n){var r=n[n.valueField],o=e[t[n.field]||n.field];a=Array.isArray(o)?a&&o.indexOf(r)>=0:a&&o===r})),a?o(o([],n,!0),[{index:i,resources:r}],!1):n}),[])},t.extractResourceFields=function(e,t,n){var r={};return n&&n.length?(n.forEach((function(n){var o=n.data.find((function(r){return r.value===e[t[n.field]||n.field]}));o&&(r[n.field]=o.value)})),r):r},t.extractResources=function(e,n,o){void 0===o&&(o=[]);for(var i=0,a=[],l=0;l<o.length;l++){var s=o[l],u=(0,t.getField)(e,n[s.field]||s.field);Array.isArray(u)||(u=[u]);for(var c=0;c<u.length;c++){if(void 0!==u[c]){var d=f(u[c],s),p=s.data[d],h={text:(0,t.getField)(p,s.textField),color:(0,t.getField)(p,s.colorField),value:(0,t.getField)(p,s.valueField)};a.push(r(r({},h),{index:i}))}i++}}return a},t.shallowCompare=function(e,t){return JSON.stringify(e)===JSON.stringify(t)},t.findMissing=function(e){var t=0,n=e.slice();return n.sort((function(e,t){return e-t})).forEach((function(e,r){n[r]===r&&(t=r+1)})),t},t.calculateOrder=function(e,n,r,o){var i;return void 0===o&&(o=!1),r.forEach((function(r){var a=[];n.sort((function(e,t){return e.props.start.getTime()-t.props.start.getTime()})).forEach((function(n){if((o||n.props.isAllDay===r.current.props.isAllDay)&&n.props.range.index===r.current.props.range.index&&n.props.group.index===r.current.props.group.index&&(0,t.intersects)(n.props.start,n.props.end,r.current.props.start,r.current.props.end)){var l=(0,t.findMissing)(a);n===e&&void 0===i&&(i=l),a.splice(l,0,l)}}))})),i},t.mapSlotsToItems=function(e,n,r){void 0===r&&(r=!1),n.forEach((function(e){return e.items.splice(0,e.items.length)})),n.forEach((function(n){var o=[];e.forEach((function(e){if((r||e.isAllDay===n.isAllDay)&&e.range.index===n.range.index&&e.group.index===n.group.index&&(0,t.intersects)(e.start,e.end,n.start,n.end)){var i=(0,t.findMissing)(o);(null===e.order||void 0===e.order||e.order<i)&&(e.order=i),o.splice(e.order,0,e.order),n.items.push(e)}}))}))},t.mapItemsToSlots=function(e,n,r){void 0===r&&(r=!1),e.forEach((function(e){return e.slots.splice(0,e.slots.length)})),e.forEach((function(e){n.forEach((function(n){(r||e.isAllDay===n.isAllDay)&&e.range.index===n.range.index&&e.group.index===n.group.index&&(0,t.intersects)(e.start,e.end,n.start,n.end)&&e.slots.push(n)}))}))},t.noop=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},t.findFirstItem=function(e){var t=e.props.items.find((function(e){return 0===e.order}))||e.props.items[0];return t&&t._ref.current},t.findNextItem=function(e,t,n,r){void 0===n&&(n=!1),void 0===r&&(r=!1);var o=e.current;if(!o||!t)return null;var i=t.filter((function(e){return null!==e.current&&null!==e.current.element})),a=(0,u.orderBy)(i,[{field:"current.props.group.index",dir:"asc"},{field:"current.props.range.index",dir:"asc"},n?{field:""}:{field:"current.props.isAllDay",dir:"desc"},{field:"current.props.start",dir:"asc"}]),l=a.findIndex((function(e){return null!==e.current&&Boolean(e.current.props.uid===o.props.uid&&(void 0===e.current.props.occurrenceId||e.current.props.occurrenceId===o.props.occurrenceId)&&e.current.props.group.index===o.props.group.index&&e.current.props.range.index===o.props.range.index&&(n||e.current.props.isAllDay===o.props.isAllDay))}));return a[l+(r?-1:1)]},t.orderSort=function(e,t){return(e.order||0)-(t.order||0)}},7389:function(e,t,n){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},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.AgendaView=void 0;var o=n(3899),i=n(189),a=n(7370),l=n(535),s=n(3364),u=n(8586),c=n(4814),d=n(619),p=n(3865),f=n(499),h=n(8180),m=n(3539),v=n(8963),g=n(5538),y=n(95),b=n(3188),C=n(6604),E=n(6266),w=n(7091);t.AgendaView=function(e){var t=(0,E.useSchedulerPropsContext)(),n=t.group,i=t.timezone,c=t.resources,S=e.editTask||b.SchedulerEditTask,O=e.editSlot||C.SchedulerEditSlot,D=o.useRef(null),x=(0,f.useInternationalization)(),I=(0,f.useLocalization)(),T=(0,E.useSchedulerDataContext)()[0],_=(0,E.useSchedulerGroupsContext)(),R=(0,E.useSchedulerFieldsContext)(),M=(0,E.useSchedulerDateRangeContext)(),P=o.useMemo((function(){return(0,h.toRanges)(M,{step:d.MS_PER_DAY,timezone:i})}),[M.start.getTime(),M.end.getTime(),i]),N=o.useMemo((function(){return(0,y.toSlots)(M,{step:d.MS_PER_DAY},{groups:_,ranges:P})}),[M.start.getTime(),M.end.getTime(),i,_,P]),F=o.useMemo((function(){return(0,m.toOccurrences)(T,{dateRange:M,fields:R,timezone:i})}),[T,M.start.getTime(),M.end.getTime(),R,i]),A=o.useMemo((function(){return(0,v.toItems)(F,{timezone:i},{groups:_,ranges:P})}),[F,i,_,P]),j=o.useMemo((function(){return(0,p.classNames)("k-scheduler-agendaview",e.className)}),[e.className]);return(0,u.useCellSync)({element:D,selector:".k-scheduler-datecolumn",explicitDepth:!1}),(0,u.useCellSync)({element:D,selector:".k-scheduler-timecolumn",explicitDepth:!1}),o.useMemo((function(){return(0,g.mapItemsToSlots)(A,N,!0)}),[A,N]),o.useMemo((function(){return(0,g.mapSlotsToItems)(A,N,!0)}),[A,N]),o.createElement(a.BaseView,{ref:D,id:e.id,style:e.style,className:j,props:e,slots:A,ranges:P},o.createElement("div",{className:"k-scheduler-head"},o.createElement(l.VerticalResourceIterator,{resources:c,group:n},o.createElement(w.SchedulerResourceIteratorContext.Consumer,null,(function(e){var t=e.groupIndex;return o.createElement("div",{className:"k-scheduler-row",key:t},o.createElement("div",{className:"k-scheduler-cell k-heading-cell k-group-cell k-scheduler-datecolumn"},I.toLanguageString(s.dateTitle,s.messages[s.dateTitle])),o.createElement("div",{className:"k-scheduler-cell k-heading-cell k-group-cell k-scheduler-timecolumn"},I.toLanguageString(s.timeTitle,s.messages[s.timeTitle])),o.createElement("div",{className:"k-scheduler-cell k-heading-cell k-scheduler-eventcolumn"},I.toLanguageString(s.eventTitle,s.messages[s.eventTitle])))})))),o.createElement("div",{className:"k-scheduler-body"},o.createElement(l.VerticalResourceIterator,{resources:c,group:n,nested:!0},o.createElement(w.SchedulerResourceIteratorContext.Consumer,null,(function(t){var n=t.groupIndex;return N.filter((function(e){return e.group.index===(n||0)})).map((function(t,i,a){return o.createElement("div",{className:"k-scheduler-row k-scheduler-content",key:"".concat(n,":").concat(i)},o.createElement(O,r({},t,{editable:e.editable,row:a.length*(n||0)+i,col:0,slot:e.slot,viewSlot:e.viewSlot,className:"k-scheduler-datecolumn k-group-cell"}),o.createElement("div",null,o.createElement("strong",{className:"k-scheduler-agendaday"},x.formatDate(t.zonedStart,"dd")),o.createElement("em",{className:"k-scheduler-agendaweek"},x.formatDate(t.zonedStart,"EEEE")),o.createElement("span",{className:"k-scheduler-agendadate"},x.formatDate(t.zonedStart,"y")))),o.createElement("div",{className:"k-scheduler-cell k-group-content"},t.items.length?t.items.map((function(t,n){return o.createElement("div",{className:"k-scheduler-row",key:n},o.createElement("div",{className:"k-scheduler-cell k-scheduler-timecolumn"},o.createElement("div",null,t.tail&&o.createElement("span",{className:"k-icon k-i-arrow-60-left"}),t.isAllDay?I.toLanguageString(s.allDay,s.messages[s.allDay]):k(x,t),t.head&&o.createElement("span",{className:"k-icon k-i-arrow-60-right"}))),o.createElement("div",{className:"k-scheduler-cell"},o.createElement(S,r({key:"".concat(i,":").concat(n)},t,{onDataAction:e.onDataAction,task:e.task,viewTask:e.viewTask,editable:e.editable}))))})):o.createElement("div",{className:"k-scheduler-cell k-heading-cell k-group-cell"},I.toLanguageString(s.noEvents,s.messages[s.noEvents]))))}))})))))};var k=function(e,t){var n="{0:t}-{1:t}";return t.head?n="{0:t}":t.tail&&(n="{1:t}"),e.format(n,t.zonedStart,t.zonedEnd)},S=function(e){return(0,d.getDate)(e)},O={name:"agenda",title:function(e){return e.toLanguageString(s.agendaViewTitle,s.messages[s.agendaViewTitle])},dateRange:function(e){var t=e.intl,n=e.date,r=e.numberOfDays,o=void 0===r?1:r,i=e.timezone,a=d.ZonedDate.fromLocalDate(n,i),l=o===c.DAYS_IN_WEEK_COUNT?S((0,d.firstDayInWeek)(a,t.firstDay())):S(a),s=function(e,t){return(0,d.getDate)((0,d.addDays)(e,t||1))}(l,o),u=d.ZonedDate.fromUTCDate((0,g.toUTCDateTime)(l),i),p=d.ZonedDate.fromUTCDate((0,g.toUTCDateTime)(s),i);return{start:new Date(u.getTime()),end:new Date(p.getTime()),zonedStart:u,zonedEnd:p}},selectedDateFormat:"{0:D} - {1:D}",selectedShortDateFormat:"{0:d} - {1:d}",slotDuration:1440,slotDivision:1,step:c.DAYS_IN_WEEK_COUNT,numberOfDays:c.DAYS_IN_WEEK_COUNT},D={title:i.any};t.AgendaView.propTypes=D,t.AgendaView.defaultProps=O},5798:function(e,t,n){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},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultRowContent=t.HorizontalResourceIterator=void 0;var o=n(3899),i=n(3152),a=n(4814),l=n(7091);t.HorizontalResourceIterator=function(e){var n=e.nested,r=e.children,a=e.rowContentProps,l=e.rowContent||t.DefaultRowContent,c=e.childRowContent||l,d=(0,i.toGroupResources)(e.group,e.resources);return o.createElement("div",{className:"k-scheduler-group k-group-horizontal"},n?s({resources:d,children:r,nested:n,groupIndex:0,rowContent:l,rowContentProps:a,childRowContent:c}):u({resources:d,children:r,rowContent:l,nested:!!n,groupIndex:0,rowContentProps:a,childRowContent:c}))};var s=function(e){var t=e.resources,n=e.rowContent,a=e.nested,l=e.children,c=e.groupIndex,d=e.rowContentProps,p=e.childRowContent;if(c===t.length)return u({resources:t,rowContent:n,children:l,nested:a,groupIndex:c,rowContentProps:d,childRowContent:p});var f=(0,i.expandResources)(t,c),h=n;return o.createElement(o.Fragment,null,a?o.createElement("div",{className:"k-scheduler-row"},o.createElement(h,r({resources:t,groupIndex:c},d),f.map((function(e,t){return o.createElement("div",{key:t,className:"k-scheduler-cell k-heading-cell"},e.text)})))):o.createElement(h,r({resources:t,groupIndex:c},d),f.map((function(e,t){return o.createElement("div",{key:t,className:"k-scheduler-cell k-heading-cell"},e.text)}))),s({resources:t,children:l,nested:a,rowContent:n,childRowContent:p,groupIndex:c+1}))},u=function(e){var t=e.resources,n=e.childRowContent,s=e.children,u=e.rowContentProps,c=(0,i.expandResources)(t,t.length-1),d=n,p=t.length>0;return o.createElement("div",{className:"k-scheduler-row"},o.createElement(d,r({resources:t},u),(c.length?c:a.EMPTY_RESOURCE).map((function(e,t){return o.createElement("div",{key:t,className:"k-scheduler-cell k-group-cell"},o.createElement(l.SchedulerResourceIteratorContext.Provider,{value:{resource:e,groupIndex:p?t:0}},s))}))))};t.HorizontalResourceIterator.displayName="KendoReactSchedulerHorizontalResourceIterator",t.DefaultRowContent=function(e){return e.children}},3642:function(e,t,n){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},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.SchedulerDrag=void 0;var o=n(3899),i=n(95),a=n(7285),l=n(6612),s=n(7907),u=n(6266),c=n(5538);t.SchedulerDrag=function(e){var t=(0,s.useSchedulerViewRangesContext)(),n=(0,u.useSchedulerPropsContext)().timezone,a=(0,u.useSchedulerGroupsContext)(),l=(0,u.useSchedulerFieldsContext)(),p=(0,u.useSchedulerDateRangeContext)(),f=(0,s.useSchedulerViewSlotsContext)()[0],h=e.viewItem||d.viewItem,m=o.useMemo((function(){return(0,i.toOccurrences)([e.dataItem],{dateRange:p,fields:l,timezone:n})}),[e.dataItem,p,l,n]),v=o.useMemo((function(){return(0,i.toItems)(m,{timezone:n},{groups:a,ranges:t})}),[m,n,a,t]),g=(f||[]).map((function(e){return e.current.props}));return(0,c.mapItemsToSlots)(v,g),o.createElement(o.Fragment,null,v.map((function(t,n){return o.createElement(h,r({key:n},t,{item:e.item,dragHint:!0,vertical:e.vertical,ignoreIsAllDay:e.ignoreIsAllDay}))})))};var d={viewItem:l.SchedulerViewItem,item:a.SchedulerItem};t.SchedulerDrag.defaultProps=d,t.SchedulerDrag.displayName="KendoReactSchedulerDrag"},3999:function(e,t,n){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},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.SchedulerResize=void 0;var o=n(3899),i=n(95),a=n(7285),l=n(6612),s=n(7907),u=n(6266),c=n(5538);t.SchedulerResize=function(e){var t=(0,s.useSchedulerViewRangesContext)(),n=(0,u.useSchedulerPropsContext)().timezone,a=(0,u.useSchedulerGroupsContext)(),l=(0,u.useSchedulerFieldsContext)(),p=(0,u.useSchedulerDateRangeContext)(),f=(0,s.useSchedulerViewSlotsContext)()[0],h=e.viewItem||d.viewItem,m=o.useMemo((function(){return(0,i.toOccurrences)([e.dataItem],{dateRange:p,fields:l,timezone:n})}),[e.dataItem,p.start.getTime(),p.end.getTime(),l,n]),v=o.useMemo((function(){return(0,i.toItems)(m,{timezone:n},{groups:a,ranges:t})}),[m,n,a,t]),g=(f||[]).map((function(e){return e.current.props}));return(0,c.mapItemsToSlots)(v,g),o.createElement(o.Fragment,null,v.map((function(t,n){return o.createElement(h,r({key:n},t,{format:e.format,item:e.item,resizeHint:!0,vertical:e.vertical,ignoreIsAllDay:e.ignoreIsAllDay}))})))};var d={viewItem:l.SchedulerViewItem,item:a.SchedulerItem};t.SchedulerResize.defaultProps=d,t.SchedulerResize.displayName="KendoReactSchedulerResize"},535:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VerticalResourceIterator=void 0;var r=n(3899),o=n(3152),i=n(7091);t.VerticalResourceIterator=function(e){var t=e.nested,n=e.wrapGroup,i=e.children,c=e.cellContent||p,d=(0,o.toGroupResources)(e.group,e.resources);return r.createElement("div",{className:"k-scheduler-group"},t?n?r.createElement("div",{className:"k-scheduler-row"},r.createElement("div",{className:"k-sticky-cell"},s({resources:d,children:i,cellContent:c,depth:0,groupIndex:0})),r.createElement("div",{className:"k-scheduler-cell k-group-content"},l({resources:d,children:i,cellContent:c,depth:0,groupIndex:0},!1))):l({resources:d,children:i,cellContent:c,depth:0,groupIndex:0},!0):n?r.createElement("div",{className:"k-scheduler-row"},r.createElement("div",{className:"k-sticky-cell"},a({resources:d,children:i,cellContent:c,depth:0,groupIndex:0})),r.createElement("div",{className:"k-scheduler-cell k-group-content"},i)):u({resources:d,children:i,cellContent:c,depth:0,groupIndex:0}))};var a=function(e){return r.createElement("div",{className:"k-scheduler-row"},r.createElement("div",{className:"k-scheduler-row"},e.resources.map((function(e,t){return r.createElement("div",{key:t,className:"k-scheduler-cell k-resource-cell k-heading-cell","data-depth-index":t})}))))},l=function(e,t){void 0===t&&(t=!0);var n=e.resources,o=e.children,a=e.cellContent,s=e.groupIndex,u=e.depth,c=n.length>0;if(u===n.length||!c)return r.createElement(i.SchedulerResourceIteratorContext.Provider,{value:{resource:n[u],groupIndex:c?s:0}},o);var d=n[u].data.length;return n[u].data.map((function(e,i){return r.createElement("div",{key:i,className:"k-scheduler-row"},t&&r.createElement("div",{className:"k-scheduler-cell k-group-cell k-heading-cell","data-depth-index":u},e.text),r.createElement("div",{className:"k-scheduler-cell k-group-content k-resource-row","data-depth-index":u,"data-resource-index":d*s+i},l({resources:n,children:o,cellContent:a,groupIndex:d*s+i,depth:u+1},t)))}))},s=function(e){var t=e.resources,n=e.children,o=e.cellContent,i=e.groupIndex,a=e.depth,l=t.length?t[a].data.length:0;return t[a]?t[a].data.map((function(e,u){return r.createElement("div",{key:u,className:"k-scheduler-row"},r.createElement("div",{className:"k-scheduler-cell k-resource-cell k-resource-row k-heading-cell","data-depth-index":a,"data-resource-index":l*i+u},e.text),a+1!==t.length&&r.createElement("div",{className:"k-scheduler-cell k-resource-content"},s({resources:t,children:n,cellContent:o,groupIndex:l*i+u,depth:a+1})))})):null},u=function(e){var t=e.resources,n=e.children,o=e.groupIndex,i=e.cellContent;return r.createElement("div",{className:"k-scheduler-row"},d(t),i,c(n,t,o))},c=function(e,t,n){var o=t.length>0;return r.createElement("div",{className:"k-scheduler-cell k-group-content"},r.createElement(i.SchedulerResourceIteratorContext.Provider,{value:{resource:t[n],groupIndex:o?n:void 0}},e))},d=function(e){return e.map((function(e,t){return r.createElement("div",{key:t,className:"k-scheduler-cell k-group-cell k-heading-cell","data-depth-index":t})}))};t.VerticalResourceIterator.displayName="KendoReactSchedulerVerticalResourceIterator";var p=null},3152:function(e,t){var n=this&&this.__assign||function(){return n=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},n.apply(this,arguments)},r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.setRect=t.getBorders=t.getPadding=t.getRect=t.resourcesByIndex=t.expandResources=t.addUTCDays=t.toGroupResources=t.calculateEventRect=t.toFlatGroupResources=t.last=void 0,t.last=function(e){return e[e.length-1]},t.toFlatGroupResources=function(e,o,i,a){if(void 0===o&&(o=0),void 0===i&&(i=0),void 0===a&&(a=[]),e.length<=o)return[a];var l=[];return e[o].data.map((function(s){l.push.apply(l,(0,t.toFlatGroupResources)(e,o+1,i+1,r(r([],a,!0),[n(n({},s),{field:e[o].field,valueField:e[o].valueField,colorField:e[o].colorField,multiple:e[o].multiple})],!1)))})),l},t.calculateEventRect=function(e,n){if(e.length<1||!e[0]._ref||!e[0]._ref.current)return null;var r=(0,t.getRect)(e[0]._ref.current.element),o={top:r.top,left:r.left,right:r.right,width:r.width,height:0};return e.forEach((function(e){if(e._ref.current){var r=(0,t.getRect)(e._ref.current.element).height;void 0!==r&&(!n&&r>=o.height?o.height=r:o.height+=r)}})),o},t.toGroupResources=function(e,t){var n=[];if(!t||!t.length)return n;if(e&&e.resources&&e.resources.length)for(var r=e.resources,o=function(e){var o=t.find((function(t){return t.name===r[e]}));n.push(o)},i=0;i<r.length;i++)o(i);return n},t.addUTCDays=function(e,t){var n=new Date(e.getTime());return n.setUTCDate(n.getUTCDate()+t),n},t.expandResources=function(e,t){void 0===t&&(t=e.length-1);var r=Math.max(0,t),o=[];e&&e.length||(e=[{}]);for(var i=(e[r].data||[]).map((function(t){return n(n({},t),{text:t[e[r].textField]})}))||[],a=i.length,l=1,s=0;s<=r;s++)l*=(e[s].data||[]).length||1;for(s=0;s<l;s++)i[s%a]&&o.push(i[s%a]);return o},t.resourcesByIndex=function(e,t,n){for(var r=t,o=[],i=e,a=0;a<r.length;a++){var l=r[a].data||[],s=Math.floor(i/n[a]);o.push(l[s]),i-=s*n[a]}return o},t.getRect=function(e){return e?{top:e.offsetTop,left:e.offsetLeft,right:e.offsetParent?e.offsetParent.offsetWidth-(e.offsetLeft+e.offsetWidth):0,width:e.offsetWidth,height:e.offsetHeight}:{top:0,left:0,width:0,height:0,right:0}},t.getPadding=function(e,t){return void 0===t&&(t=!1),parseFloat(window.getComputedStyle(e)[t?"paddingLeft":"paddingTop"]||"0")+parseFloat(window.getComputedStyle(e)[t?"paddingRight":"paddingBottom"]||"0")},t.getBorders=function(e,t){return void 0===t&&(t=!1),parseFloat(window.getComputedStyle(e)[t?"borderLeftWidth":"borderTopWidth"]||"0")+parseFloat(window.getComputedStyle(e)[t?"borderRightWidth":"borderBottomWidth"]||"0")},t.setRect=function(e,t,n){void 0===n&&(n=!1),e&&(void 0!==t.top&&(e.style.top="".concat(t.top,"px")),void 0!==t.left&&(e.style.left="".concat(t.left,"px")),void 0!==t.width&&(e.style.width="".concat(t.width,"px")),void 0===t.height||n||(e.style.height="number"==typeof t.height?"".concat(t.height,"px"):t.height),n&&(e.style.minHeight=void 0!==t.height&&t.height>0?"".concat(t.height,"px"):""))}},6469:function(e,t,n){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},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.DayView=void 0;var o=n(3899),i=n(9150),a=n(3364);t.DayView=function(e){return o.createElement(i.MultiDayView,r({},e))};var l={name:"day",title:function(e){return e.toLanguageString(a.dayViewTitle,a.messages[a.dayViewTitle])},dateRange:i.defaultProps.dateRange,step:1,numberOfDays:1,slotDuration:60,slotDivisions:2,selectedDateFormat:"{0:D}",selectedShortDateFormat:"{0:d}"};t.DayView.defaultProps=l,t.DayView.displayName="KendoReactSchedulerDayView"},1584:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DayViewAllDayRowContent=void 0;var r=n(3899),o=n(499),i=n(3364);t.DayViewAllDayRowContent=function(e){var t=(0,o.useLocalization)();return r.createElement(r.Fragment,null,r.createElement("div",{className:"k-scheduler-cell k-heading-cell k-side-cell k-scheduler-times-all-day"},t.toLanguageString(i.allDay,i.messages[i.allDay])),e.children)}},9604:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DayViewGroupRowContent=void 0;var r=n(3899);t.DayViewGroupRowContent=function(e){return r.createElement(r.Fragment,null,r.createElement("div",{className:"k-scheduler-cell k-side-cell","data-range-index":e.rangeIndex}),e.children)}},1238:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DayViewRowContent=void 0;var r=n(3899),o=n(3865),i=n(4603);t.DayViewRowContent=function(e){var t=e.slot,n=e.children;return r.createElement(r.Fragment,null,e.isMaster?r.createElement(i.TimeHeaderCell,{as:e.timeHeaderCell,date:t.zonedStart,start:t.zonedStart,end:t.zonedEnd,className:(0,o.classNames)("k-side-cell",{"k-major-cell":!e.isLast})}):r.createElement("div",{className:"k-scheduler-cell k-heading-cell k-side-cell"}),n)}},9150:function(e,t,n){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},r.apply(this,arguments)},o=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultProps=t.MultiDayView=void 0;var i=n(3899),a=n(189),l=n(619),s=n(7370),u=n(5798),c=n(9604),d=n(535),p=n(1584),f=n(1238),h=n(3865),m=n(5538),v=n(499),g=n(4814),y=n(95),b=n(6604),C=n(9299),E=n(6266),w=n(7091),k=n(6578),S=n(8929),O=i.createElement("div",{className:"k-scheduler-cell k-side-cell"});t.MultiDayView=function(e){var n=(0,E.useSchedulerPropsContext)(),a=n.group,D=n.timezone,x=n.resources,I=(0,v.useInternationalization)(),T=e.editItem||C.SchedulerEditItem,_=e.editSlot||b.SchedulerEditSlot,R=e.showWorkHours,M=e.numberOfDays||t.defaultProps.numberOfDays,P=e.slotDivisions||t.defaultProps.slotDivisions,N=e.slotDuration||t.defaultProps.slotDuration,F=e.workWeekStart||t.defaultProps.workWeekStart,A=e.workWeekEnd||t.defaultProps.workWeekEnd,j=I.parseDate(e.workDayStart||e.isWorkDayStart||t.defaultProps.isWorkDayStart),L=I.parseDate(e.workDayEnd||e.isWorkDayEnd||t.defaultProps.isWorkDayEnd),V=I.parseDate(e.startTime||t.defaultProps.startTime),z=I.parseDate(e.endTime||t.defaultProps.endTime),B=(0,E.useSchedulerDataContext)()[0],H=(0,E.useSchedulerGroupsContext)(),U=(0,E.useSchedulerOrientationContext)(),W=(0,E.useSchedulerFieldsContext)(),K=(0,E.useSchedulerDateRangeContext)(),q=i.useMemo((function(){return R?j:V}),[R,j,V]),Y=i.useMemo((function(){return R?L:z}),[R,L,z]),G=i.useMemo((function(){return(0,y.toRanges)(K,{step:l.MS_PER_DAY*M,timezone:D}).map((function(e){return r(r({},e),{isAllDay:!0})}))}),[K.start.getTime(),K.end.getTime(),M]),Z=i.useMemo((function(){return(0,y.toRanges)(K,{step:l.MS_PER_DAY,timezone:D}).map((function(e){return r(r({},e),{isAllDay:!1})}))}),[K.start.getTime(),K.end.getTime(),D]),X=i.useMemo((function(){return(0,y.toSlots)(K,{step:l.MS_PER_DAY},{groups:H,ranges:G})}),[K.start.getTime(),K.end.getTime(),D,G,H]),$=i.useMemo((function(){return(0,y.toSlots)(K,{step:N*g.MS_PER_MINUTE/P},{groups:H,ranges:Z}).filter((function(e){return Y.getTime()===q.getTime()||(0,m.isInTimeRange)(e.zonedStart,q,Y)}))}),[K.start.getTime(),K.end.getTime(),N,P,q.getTime(),Y.getTime(),H,Z]),Q=i.useMemo((function(){return(0,y.toOccurrences)(B,{dateRange:K,fields:W,timezone:D})}),[B,K.start.getTime(),K.end.getTime(),W,D]),J=i.useMemo((function(){return Q.filter((function(e){return e.isAllDay}))}),[Q]),ee=i.useMemo((function(){return Q.filter((function(e){return!e.isAllDay}))}),[Q]),te=i.useMemo((function(){return(0,y.toItems)(J,{timezone:D},{groups:H,ranges:G})}),[Q,D,H,G]),ne=i.useMemo((function(){return(0,y.toItems)(ee,{timezone:D},{groups:H,ranges:Z}).filter((function(e){return q.getTime()===Y.getTime()||(0,m.isInTimeRange)(e.zonedStart,q,Y)||(0,m.isInTimeRange)(e.zonedEnd,q,Y)||(0,m.isInTimeRange)(new Date(e.zonedEnd.getTime()-(e.zonedEnd.getTime()-e.zonedStart.getTime())/2),q,Y)}))}),[Q,D,H,Z,q.getTime(),Y.getTime()]);i.useMemo((function(){return(0,m.mapItemsToSlots)(te,X,!1)}),[te,X]),i.useMemo((function(){return(0,m.mapSlotsToItems)(te,X,!1)}),[te,X]),i.useMemo((function(){return(0,m.mapItemsToSlots)(ne,$,!1)}),[ne,$]),i.useMemo((function(){return(0,m.mapSlotsToItems)(ne,$,!1)}),[ne,$]);var re=i.createElement(w.SchedulerResourceIteratorContext.Consumer,null,(function(t){var n=t.groupIndex;return i.createElement("div",{className:"k-scheduler-row",key:n},Z.map((function(t,n){return i.createElement(S.DateHeaderCell,{as:e.dateHeaderCell,key:n,date:l.ZonedDate.fromLocalDate(new Date(t.zonedEnd.getTime()-(t.zonedEnd.getTime()-t.zonedStart.getTime())/2),D),start:t.start,end:t.end,format:{skeleton:"MEd"}})})))})),oe=i.createElement(w.SchedulerResourceIteratorContext.Consumer,null,(function(t){var n=t.groupIndex;return i.createElement("div",{key:n,className:"k-scheduler-row"},G.map((function(t,o){return X.filter((function(e){return e.group.index===n&&e.range.index===o})).map((function(t,o,a){return i.createElement(_,r({},t,{onDataAction:e.onDataAction,form:e.form,slot:e.slot,viewSlot:e.viewSlot,key:"".concat(t.start.getTime(),":").concat(t.group.index),row:0,col:"horizontal"===U?a.length*(n||0)+o:o,isWorkDay:0<=t.zonedStart.getDay()+(M-F)&&(t.zonedStart.getDay()+(M-F))%M<=A+(M-F),expandable:!0}))}))})))})),ie=i.useMemo((function(){return(0,h.classNames)("k-scheduler-day-view",e.className)}),[e.className]);return i.createElement(i.Fragment,null,i.createElement(s.BaseView,{id:e.id,props:e,style:e.style,className:ie,ranges:o(o([],G,!0),Z,!0),slots:o(o([],X,!0),$,!0)},i.createElement("div",{className:"k-scheduler-head"},"horizontal"===U?i.createElement(i.Fragment,null,i.createElement(u.HorizontalResourceIterator,{nested:!0,group:a,resources:x,rowContent:c.DayViewGroupRowContent,childRowContent:c.DayViewGroupRowContent},re),i.createElement(u.HorizontalResourceIterator,{group:a,resources:x,rowContent:p.DayViewAllDayRowContent,childRowContent:p.DayViewAllDayRowContent},oe),te.map((function(t){return i.createElement(T,r({key:t.isRecurring?"".concat(t.uid,":").concat(t.group.index,":").concat(t.range.index,":").concat(t.originalStart):"".concat(t.uid,":").concat(t.group.index,":").concat(t.range.index)},t,{form:e.form,onDataAction:e.onDataAction,item:e.item,viewItem:e.viewItem,editable:e.editable,vertical:!1}))}))):i.createElement(d.VerticalResourceIterator,{group:a,resources:x,cellContent:O},re)),i.createElement("div",{className:"k-scheduler-body"},"horizontal"===U?i.createElement(i.Fragment,null,$.filter((function(e){return 0===e.group.index&&0===e.range.index})).map((function(t,n){return i.createElement(i.Fragment,{key:t.index},i.createElement(u.HorizontalResourceIterator,{nested:!1,group:a,resources:x,rowContent:f.DayViewRowContent,rowContentProps:{timeHeaderCell:e.timeHeaderCell,isMaster:n%P==0,isLast:(n+1)%P==0,slot:t}},i.createElement(w.SchedulerResourceIteratorContext.Consumer,null,(function(o){var a=o.groupIndex;return i.createElement("div",{className:(0,h.classNames)("k-scheduler-row",{"k-middle-row":!((n+1)%P==0)})},Z.map((function(o,l){return $.filter((function(e){return e.index===t.index&&e.range.index===l&&e.group.index===a})).map((function(t){return i.createElement(_,r({key:"".concat(t.start.getTime(),":").concat(t.group.index)},t,{onDataAction:e.onDataAction,slot:e.slot,viewSlot:e.viewSlot,form:e.form,row:n+1,col:Z.length*(a||0)+l,isWorkHour:(0,m.isInTimeRange)(t.zonedStart,j,L),isWorkDay:F<A?F<=t.zonedEnd.getDay()&&t.zonedEnd.getDay()<=A:t.zonedEnd.getDay()<=A||F<=t.zonedEnd.getDay(),editable:e.editable}))}))})))}))))})),e.currentTimeMarker&&(0,m.intersects)((0,m.first)(Z).start,(0,m.last)(Z).end,new Date,new Date,!0)&&i.createElement(k.CurrentTimeMarker,null)):i.createElement(i.Fragment,null,i.createElement(d.VerticalResourceIterator,{nested:!0,group:a,resources:x},i.createElement(w.SchedulerResourceIteratorContext.Consumer,null,(function(t){var n=t.groupIndex;return i.createElement(i.Fragment,{key:n},i.createElement("div",{className:"k-scheduler-row"},i.createElement(p.DayViewAllDayRowContent,{groupIndex:n},G.map((function(t,o){var a=$.filter((function(e){return e.group.index===n&&0===e.range.index})).length;return X.filter((function(e){return e.group.index===n&&e.range.index===o})).map((function(t,o){return i.createElement(_,r({slot:e.slot,viewSlot:e.viewSlot,form:e.form},t,{onDataAction:e.onDataAction,key:"".concat(t.start.getTime(),":").concat(t.group.index),className:"k-scheduler-alldays-slot",row:a*(n||0)+1*(n||0),col:o,expandable:!0}))}))})))),$.filter((function(e){return e.group.index===n&&0===e.range.index})).map((function(t,o,a){return i.createElement("div",{className:"k-scheduler-row",key:t.index},i.createElement(f.DayViewRowContent,{slot:t,isMaster:o%P==0,isLast:(o+1)%P==0,timeHeaderCell:e.timeHeaderCell},Z.map((function(l,s){return $.filter((function(e){return e.index===t.index&&e.group.index===n&&e.range.index===s})).map((function(t){return i.createElement(_,r({slot:e.slot,viewSlot:e.viewSlot,form:e.form,onDataAction:e.onDataAction},t,{key:"".concat(t.start.getTime(),":").concat(t.group.index),row:a.length*(n||0)+o+1*(n||0)+1,col:s,editable:e.editable,isWorkHour:(0,m.isInTimeRange)(t.zonedStart,j,L),isWorkDay:0<=t.zonedStart.getDay()+(M-F)&&(t.zonedStart.getDay()+(M-F))%M<=A+(M-F)}))}))}))))})),e.currentTimeMarker&&(0,m.intersects)((0,m.first)(Z).start,(0,m.last)(Z).end,new Date,new Date,!0)&&i.createElement(k.CurrentTimeMarker,{groupIndex:n}))}))),te.map((function(t){return i.createElement(T,r({key:t.isRecurring?"".concat(t.uid,":").concat(t.group.index,":").concat(t.range.index,":").concat(t.originalStart):"".concat(t.uid,":").concat(t.group.index,":").concat(t.range.index)},t,{onDataAction:e.onDataAction,viewItem:e.viewItem,item:e.item,form:e.form,editable:e.editable,vertical:!1}))}))),ne.map((function(t){return i.createElement(T,r({key:t.isRecurring?"".concat(t.uid,":").concat(t.group.index,":").concat(t.range.index,":").concat(t.originalStart):"".concat(t.uid,":").concat(t.group.index,":").concat(t.range.index)},t,{format:"t",onDataAction:e.onDataAction,viewItem:e.viewItem,item:e.item,form:e.form,editable:e.editable,vertical:!0}))})))))},t.defaultProps={name:"multi-day",title:"Multi Day",currentTimeMarker:!0,dateRange:function(e){var t=e.date,n=e.numberOfDays,r=void 0===n?1:n,o=e.timezone,i=l.ZonedDate.fromLocalDate(t,o),a=(0,l.getDate)(i),s=(0,l.addDays)(a,r),u=l.ZonedDate.fromUTCDate((0,m.toUTCDateTime)(a),o),c=l.ZonedDate.fromUTCDate((0,m.toUTCDateTime)(s),o);return{start:new Date(u.getTime()),end:new Date(c.getTime()),zonedStart:u,zonedEnd:c}},selectedDateFormat:"{0:D} - {1:D}",selectedShortDateFormat:"{0:d} - {1:d}",numberOfDays:1,startTime:"00:00",endTime:"23:59",isWorkDayStart:"08:00",isWorkDayEnd:"17:00",workWeekStart:l.Day.Monday,workWeekEnd:l.Day.Friday,step:1,slotDivisions:2,slotDuration:60,showCurrentTime:!0,defaultShowWorkHours:!0},t.MultiDayView.propTypes={currentTimeMarker:a.bool,name:a.string,numberOfDays:a.number,startTime:a.string,endTime:a.string,workDayStart:a.string,workDayEnd:a.string,workWeekStart:a.number,workWeekEnd:a.any,slotDivisions:a.number,slotDuration:a.number,showWorkHours:a.bool,selectedDateFormat:a.string,selectedShortDateFormat:a.string},t.MultiDayView.defaultProps=t.defaultProps,t.MultiDayView.displayName="KendoReactSchedulerMultiDayView"},5363:function(e,t,n){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},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.MonthView=void 0;var o=n(3899),i=n(189),a=n(7370),l=n(619),s=n(3865),u=n(535),c=n(5798),d=n(5538),p=n(3364),f=n(6604),h=n(499),m=n(4814),v=n(8180),g=n(6189),y=n(3539),b=n(8963),C=n(3104),E=n(9299),w=n(6266),k=n(7091),S=n(8929),O={skeleton:"dd"};t.MonthView=function(e){var t=(0,w.useSchedulerPropsContext)(),n=t.group,i=t.timezone,p=t.resources,x=e.editItem||E.SchedulerEditItem,I=e.editSlot||f.SchedulerEditSlot,T=(0,w.useSchedulerDataContext)()[0],_=(0,w.useSchedulerDateContext)()[1],R=(0,w.useSchedulerActiveViewContext)()[1],M=(0,w.useSchedulerViewsContext)(),P=(0,w.useSchedulerGroupsContext)(),N=(0,w.useSchedulerOrientationContext)(),F=(0,w.useSchedulerDateRangeContext)(),A=(0,h.useInternationalization)(),j=(0,w.useSchedulerFieldsContext)(),L=e.itemsPerSlot||D.itemsPerSlot,V=o.useMemo((function(){return(0,v.toRanges)(F,{step:l.MS_PER_DAY*m.DAYS_IN_WEEK_COUNT,timezone:i})}),[F.start.getTime(),F.end.getTime(),i]),z=o.useMemo((function(){return(0,g.toSlots)(F,{step:l.MS_PER_DAY},{groups:P,ranges:V})}),[F.start.getTime(),F.end.getTime(),P,V]),B=o.useMemo((function(){return(0,y.toOccurrences)(T,{dateRange:F,fields:j,timezone:i})}),[T,F.start.getTime(),F.end.getTime(),j,i]),H=o.useMemo((function(){return(0,b.toItems)(B,{timezone:i},{groups:P,ranges:V})}),[B,i,P,V]),U=o.useCallback((function(e){var t=M.find((function(e){return"day"===e.props.name}));R&&t&&t.props.name&&e.target.slot&&(R(t.props.name,e),_(e.target.slot.start,e))}),[R,M]);o.useMemo((function(){return(0,d.mapItemsToSlots)(H,z,!0)}),[H,z]),o.useMemo((function(){return(0,d.mapSlotsToItems)(H,z,!0)}),[H,z]);var W=o.createElement(k.SchedulerResourceIteratorContext.Consumer,null,(function(t){var n=t.groupIndex;return o.createElement("div",{className:"k-scheduler-row",key:n},z.filter((function(e){return e.group.index===n&&0===e.range.index})).map((function(t,n){return o.createElement(S.DateHeaderCell,{as:e.dateHeaderCell,key:n,"data-dayslot-index":n,date:l.ZonedDate.fromLocalDate(new Date(t.zonedEnd.getTime()-(t.zonedEnd.getTime()-t.zonedStart.getTime())/2),i),start:t.start,end:t.end,format:{skeleton:"EEEE"}})})))})),K=o.createElement(k.SchedulerResourceIteratorContext.Consumer,null,(function(t){var n=t.groupIndex;return V.map((function(t,i){return o.createElement("div",{className:"k-scheduler-row",key:i},z.filter((function(e){return e.group.index===n&&e.range.index===i})).map((function(t,a,l){return o.createElement(I,r({slot:e.slot,viewSlot:e.viewSlot,key:a,form:e.form},t,{expandable:{offsetTop:30,offsetBottom:L<t.items.length?15:0},onDataAction:e.onDataAction,col:"horizontal"===N?l.length*(n||0)+a:a,row:"horizontal"===N?i:V.length*(n||0)+i,editable:e.editable}),o.createElement("span",{className:"k-link k-nav-day"},A.formatDate(new Date(t.end.getTime()-(t.end.getTime()-t.start.getTime())/2),O)),L<t.items.length&&o.createElement(C.ShowMoreItemsButton,{slot:t,onClick:U}))})))}))}));return o.createElement(a.BaseView,{props:e,slots:z,ranges:V,className:(0,s.classNames)("k-scheduler-monthview",e.className)},o.createElement("div",{className:"k-scheduler-head"},"horizontal"===N?o.createElement(c.HorizontalResourceIterator,{nested:!0,resources:p,group:n},W):o.createElement(u.VerticalResourceIterator,{resources:p,group:n},W)),o.createElement("div",{className:"k-scheduler-body"},"horizontal"===N?o.createElement(c.HorizontalResourceIterator,{resources:p,group:n},K):o.createElement(u.VerticalResourceIterator,{nested:!0,resources:p,group:n},K),H.filter((function(e){return null===e.order||e.order<L})).sort(d.orderSort).map((function(t){return o.createElement(x,r({item:e.item,viewItem:e.viewItem,form:e.form,key:t.isRecurring?"".concat(t.uid,":").concat(t.group.index,":").concat(t.range.index,":").concat(t.originalStart):"".concat(t.uid,":").concat(t.group.index,":").concat(t.range.index)},t,{onDataAction:e.onDataAction,style:{transform:"translateY(30px)"},vertical:!1,editable:e.editable,ignoreIsAllDay:!0}))}))))};var D={name:"month",dateRange:function(e){var t=e.intl,n=e.date,r=e.timezone,o=(0,l.firstDayInWeek)((0,l.firstDayOfMonth)((0,l.getDate)(n)),t.firstDay()),i=(0,l.addDays)((0,l.firstDayInWeek)((0,l.lastDayOfMonth)((0,l.getDate)(n)),t.firstDay()),m.DAYS_IN_WEEK_COUNT),a=l.ZonedDate.fromUTCDate((0,d.toUTCDateTime)(o),r),s=l.ZonedDate.fromUTCDate((0,d.toUTCDateTime)(i),r);return{start:new Date(a.getTime()),end:new Date(s.getTime()),zonedStart:a,zonedEnd:s}},slotDuration:1440,slotDivision:1,itemsPerSlot:2,numberOfDays:31,title:function(e){return e.toLanguageString(p.monthViewTitle,p.messages[p.monthViewTitle])},selectedDateFormat:"{0:Y}",selectedShortDateFormat:"{0:Y}"},x={itemsPerSlot:i.number};t.MonthView.defaultProps=D,t.MonthView.propTypes=x,t.MonthView.displayName="KendoReactSchedulerMonthView"},7783:function(e,t,n){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},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultProps=t.MultiDayTimelineView=void 0;var o=n(3899),i=n(7370),a=n(8586),l=n(619),s=n(5798),u=n(45),c=n(5263),d=n(535),p=n(5538),f=n(3865),h=n(8180),m=n(6189),v=n(3539),g=n(8963),y=n(6604),b=n(4814),C=n(499),E=n(9299),w=n(6266),k=n(7091),S=n(6578),O=n(8929),D=n(4603);t.MultiDayTimelineView=function(e){var n=(0,w.useSchedulerPropsContext)(),x=n.group,I=n.timezone,T=n.resources,_=o.useRef(null),R=o.useRef(null),M=e.editItem||E.SchedulerEditItem,P=e.editSlot||y.SchedulerEditSlot,N=o.useRef(null),F=(0,w.useSchedulerDataContext)()[0],A=(0,w.useSchedulerOrientationContext)(),j=(0,w.useSchedulerGroupsContext)(),L=(0,w.useSchedulerDateRangeContext)(),V=(0,w.useSchedulerFieldsContext)(),z=(0,C.useInternationalization)(),B=e.showWorkHours,H=e.slotDivisions||t.defaultProps.slotDivisions,U=e.slotDuration||t.defaultProps.slotDuration,W=z.parseDate(e.workDayStart||e.isWorkDayStart||t.defaultProps.isWorkDayStart),K=z.parseDate(e.workDayEnd||e.isWorkDayEnd||t.defaultProps.isWorkDayEnd),q=z.parseDate(e.startTime||t.defaultProps.startTime),Y=z.parseDate(e.endTime||t.defaultProps.endTime),G=o.useMemo((function(){return B?W:q}),[B,W,q]),Z=o.useMemo((function(){return B?K:Y}),[B,K,Y]),X=o.useMemo((function(){return(0,h.toRanges)(L,{step:l.MS_PER_DAY,timezone:I})}),[L.start.getTime(),L.end.getTime(),I]),$=o.useMemo((function(){return(0,m.toSlots)(L,{step:U/H*l.MS_PER_MINUTE},{groups:j,ranges:X}).filter((function(e){return(0,p.isInTimeRange)(e.zonedStart,G,Z)||G.getTime()===Z.getTime()}))}),[j,X,L.start.getTime(),L.end.getTime(),I,U,H,G.getTime(),Z.getTime()]),Q=o.useMemo((function(){return(0,v.toOccurrences)(F,{dateRange:L,fields:V,timezone:I})}),[F,L.start.getTime(),L.end.getTime(),V,I]),J=o.useMemo((function(){return(0,g.toItems)(Q,{timezone:I},{groups:j,ranges:X}).filter((function(e){return G.getTime()===Z.getTime()||(0,p.isInTimeRange)(e.zonedStart,G,Z)||(0,p.isInTimeRange)(e.zonedEnd,G,Z)||(0,p.isInTimeRange)(new Date(e.zonedEnd.getTime()-(e.zonedEnd.getTime()-e.zonedStart.getTime())/2),G,Z)}))}),[Q,I,j,X,G.getTime(),Z.getTime()]);o.useMemo((function(){return(0,p.mapItemsToSlots)(J,$,!0)}),[J,$]),o.useMemo((function(){return(0,p.mapSlotsToItems)(J,$,!0)}),[J,$]);var ee=("horizontal"===A?$.length:$.length/j.length)*((e.columnWidth||t.defaultProps.columnWidth)+b.BORDER_WIDTH),te=o.createElement(k.SchedulerResourceIteratorContext.Consumer,null,(function(){return o.createElement(o.Fragment,null,o.createElement("div",{className:"k-scheduler-row"},X.map((function(t,n){return o.createElement(O.DateHeaderCell,{as:e.dateHeaderCell,key:n,date:t.zonedStart,start:t.start,end:t.end,format:"m"})}))),o.createElement("div",{className:"k-scheduler-row",ref:_},X.map((function(t,n){return $.filter((function(e){return 0===e.group.index&&e.range.index===n})).map((function(t){return t.zonedStart.getMinutes()%U==0?o.createElement(D.TimeHeaderCell,{key:t.index,as:e.timeHeaderCell,format:"t",date:t.zonedStart,start:t.zonedStart,end:t.zonedEnd}):null}))}))))})),ne=o.createElement(k.SchedulerResourceIteratorContext.Consumer,null,(function(t){var n=t.groupIndex;return o.createElement("div",{className:"k-scheduler-row"},X.map((function(t,i){return $.filter((function(e){return e.group.index===n&&e.range.index===i})).map((function(t,a,l){return o.createElement(P,r({key:"".concat(t.start.getTime(),":").concat(t.group.index),slot:e.slot,viewSlot:e.viewSlot},t,{form:e.form,onDataAction:e.onDataAction,isWorkHour:(0,p.isInTimeRange)(t.zonedStart,W,K),col:"horizontal"===A?i*l.length+a+l.length*X.length*(n||0):i*l.length+a,row:"horizontal"===A?0:n||0,expandable:!0,editable:e.editable}))}))})))})),re=o.useMemo((function(){return(0,f.classNames)("k-scheduler-timeline-view",e.className)}),[e.className]);return(0,a.useCellSync)({element:N,selector:".k-resource-cell",attribute:"data-depth-index",explicitDepth:!0}),(0,a.useRowSync)({element:N,selector:".k-resource-row",horizontalAttribute:"data-depth-index",verticalAttribute:"data-resource-index",applyTo:".k-resource-cell"}),o.createElement(o.Fragment,null,o.createElement(i.BaseView,{ref:N,id:e.id,style:r({},e.style),className:re,props:e,slots:$,ranges:X},o.createElement("div",{className:"k-scheduler-head",style:{width:ee}},"horizontal"===A?o.createElement(s.HorizontalResourceIterator,{nested:!0,group:x,resources:T,rowContent:u.TimelineViewRowContent},te):o.createElement(d.VerticalResourceIterator,{wrapGroup:!0,group:x,resources:T},te)),o.createElement("div",{className:"k-scheduler-body",style:{width:ee},ref:R},"horizontal"===A?o.createElement(s.HorizontalResourceIterator,{group:x,resources:T,rowContent:c.TimelineViewAllEventsRowContent},ne,o.createElement(k.SchedulerResourceIteratorContext.Consumer,null,(function(t){var n=t.groupIndex;return e.currentTimeMarker&&(0,p.intersects)((0,p.first)(X).start,(0,p.last)(X).end,new Date,new Date,!0)&&o.createElement(S.CurrentTimeMarker,{groupIndex:n,attachArrow:_,vertical:!0})}))):o.createElement(d.VerticalResourceIterator,{nested:!0,wrapGroup:!0,group:x,resources:T},ne),"vertical"===A&&e.currentTimeMarker&&(0,p.intersects)((0,p.first)(X).start,(0,p.last)(X).end,new Date,new Date,!0)&&o.createElement(S.CurrentTimeMarker,{attachArrow:_,vertical:!0}),J.sort(p.orderSort).map((function(t){return o.createElement(M,r({key:t.isRecurring?"".concat(t.uid,":").concat(t.group.index,":").concat(t.range.index,":").concat(t.originalStart):"".concat(t.uid,":").concat(t.group.index,":").concat(t.range.index)},t,{format:"t",form:e.form,onDataAction:e.onDataAction,item:e.item,viewItem:e.viewItem,editable:e.editable,ignoreIsAllDay:!0,vertical:!1}))})))))},t.defaultProps={name:"multi-day-timeline",title:"Multi Day Timeline",currentTimeMarker:!0,dateRange:function(e){var t=e.date,n=e.numberOfDays,r=void 0===n?1:n,o=e.timezone,i=l.ZonedDate.fromLocalDate(t,o),a=(0,l.getDate)(i),s=(0,l.addDays)(a,r),u=l.ZonedDate.fromUTCDate((0,p.toUTCDateTime)(a),o),c=l.ZonedDate.fromUTCDate((0,p.toUTCDateTime)(s),o);return{start:new Date(u.getTime()),end:new Date(c.getTime()),zonedStart:u,zonedEnd:c}},selectedDateFormat:"{0:D} - {1:D}",selectedShortDateFormat:"{0:d} - {1:d}",step:1,numberOfDays:1,startTime:"00:00",endTime:"00:00",isWorkDayStart:"8:00",isWorkDayEnd:"17:00",workWeekStart:l.Day.Monday,workWeekEnd:l.Day.Friday,slotDivisions:2,slotDuration:60,defaultShowWorkHours:!0,columnWidth:100},t.MultiDayTimelineView.defaultProps=t.defaultProps},97:function(e,t,n){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},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultProps=t.TimelineView=void 0;var o=n(3899),i=n(7783),a=n(3364);t.TimelineView=function(e){return o.createElement(i.MultiDayTimelineView,r({},e))},t.defaultProps={name:"timeline",title:function(e){return e.toLanguageString(a.timelineViewTitle,a.messages[a.timelineViewTitle])},dateRange:i.defaultProps.dateRange,step:1,slotDuration:60,slotDivisions:2,numberOfDays:1,selectedDateFormat:"{0:D}",selectedShortDateFormat:"{0:d}"},t.TimelineView.defaultProps=t.defaultProps,t.TimelineView.displayName="KendoReactSchedulerTimelineView"},5263:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TimelineViewAllEventsRowContent=void 0;var r=n(3899),o=n(3364),i=n(499);t.TimelineViewAllEventsRowContent=function(e){var t=(0,i.useLocalization)();return r.createElement(r.Fragment,null,r.createElement("div",{className:"k-sticky-cell"},r.createElement("div",{className:"k-scheduler-cell k-heading-cell k-side-cell k-scheduler-times-all-day","data-range-index":0},t.toLanguageString(o.allEvents,o.messages[o.allEvents]))),e.children)}},45:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TimelineViewRowContent=void 0;var r=n(3899),o=r.createElement("div",{className:"k-scheduler-cell k-side-cell"});t.TimelineViewRowContent=function(e){return r.createElement(r.Fragment,null,r.createElement("div",{className:"k-sticky-cell"},o),e.children)}},3750:function(e,t,n){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},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultProps=t.WeekView=void 0;var o=n(3899),i=n(9150),a=n(4814),l=n(619),s=n(3364),u=n(5538);t.WeekView=function(e){return o.createElement(i.MultiDayView,r({},e,{step:a.DAYS_IN_WEEK_COUNT,numberOfDays:e.numberOfDays}))},t.defaultProps={name:"week",slotDuration:60,slotDivisions:2,numberOfDays:a.DAYS_IN_WEEK_COUNT,dateRange:function(e){var t,n,r=e.intl,o=e.date,i=e.timezone,s=l.ZonedDate.fromLocalDate(o,i),c=function(e){return(0,l.getDate)(e)}((0,l.firstDayInWeek)(s,r.firstDay())),d=(t=c,n=a.DAYS_IN_WEEK_COUNT,(0,l.getDate)((0,l.addDays)(t,n||1))),p=l.ZonedDate.fromUTCDate((0,u.toUTCDateTime)(c),i),f=l.ZonedDate.fromUTCDate((0,u.toUTCDateTime)(d),i);return{start:new Date(p.getTime()),end:new Date(f.getTime()),zonedStart:p,zonedEnd:f}},title:function(e){return e.toLanguageString(s.weekViewTitle,s.messages[s.weekViewTitle])},selectedDateFormat:"{0:D} - {1:D}",selectedShortDateFormat:"{0:d} - {1:d}"},t.WeekView.defaultProps=t.defaultProps,t.WeekView.displayName="KendoReactSchedulerWeekView"},385:function(e,t,n){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},r.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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.WorkWeekView=void 0;var i=n(3899),a=n(619),l=n(4814),s=n(9150),u=n(3364),c=n(5538),d=n(468);t.WorkWeekView=function(e){var t=(0,d.useSchedulerDateRangeContext)(),n=Math.round((t.end.getTime()-t.start.getTime())/a.MS_PER_DAY);return i.createElement(s.MultiDayView,r({},e,{step:l.DAYS_IN_WEEK_COUNT,numberOfDays:n}))};var p={name:"work-week",slotDuration:60,slotDivisions:2,numberOfDays:7,dateRange:function(e){e.intl;var t=e.date,n=e.timezone,r=o(e,["intl","date","timezone"]),i=a.ZonedDate.fromLocalDate(t,n),s=void 0!==r.workWeekStart?r.workWeekStart:a.Day.Monday,u=void 0!==r.workWeekEnd?r.workWeekEnd:a.Day.Friday,d=u<s?l.DAYS_IN_WEEK_COUNT+u-s+1:u-s+1,p=(0,a.getDate)(function(e,t){void 0===t&&(t=a.Day.Sunday);for(var n=e.clone();n.getDay()!==t;)n=n.addDays(-1);return n}(i,s)),f=(0,a.addDays)(p,d),h=a.ZonedDate.fromUTCDate((0,c.toUTCDateTime)(p),n),m=a.ZonedDate.fromUTCDate((0,c.toUTCDateTime)(f),n);return{start:new Date(h.getTime()),end:new Date(m.getTime()),zonedStart:h,zonedEnd:m}},title:function(e){return e.toLanguageString(u.workWeekViewTitle,u.messages[u.workWeekViewTitle])},workWeekStart:a.Day.Monday,workWeekEnd:a.Day.Friday,selectedDateFormat:"{0:D} - {1:D}",selectedShortDateFormat:"{0:d} - {1:d}"};t.WorkWeekView.defaultProps=p,t.WorkWeekView.displayName="KendoReactSchedulerWorkWeekView"},7037:(e,t,n)=>{n.d(t,{z:()=>p});var r,o=n(3899),i=n(189),a=n(8047),l=n(2697),s=n(4006),u=n(2709),c=(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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(){return d=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},d.apply(this,arguments)},p=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)},(0,s.s)(u.k),n.state={selected:!0===n.props.togglable&&!0===n.props.selected},n}return c(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return void 0!==this._selectedTemp?this._selectedTemp:this.state.selected},enumerable:!1,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,n=this,r=this.props,i=r.children,s=r.togglable,u=r.icon,c=r.iconClass,p=r.imageUrl,f=r.imageAlt,h=(r.className,r.onClick,r.size),m=void 0===h?t.defaultProps.size:h,v=r.shape,g=void 0===v?t.defaultProps.shape:v,y=r.rounded,b=void 0===y?t.defaultProps.rounded:y,C=r.fillMode,E=void 0===C?t.defaultProps.fillMode:C,w=r.themeColor,k=void 0===w?t.defaultProps.themeColor:w,S=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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(r,["children","togglable","icon","iconClass","imageUrl","imageAlt","className","onClick","size","shape","rounded","fillMode","themeColor"]),O=void 0!==u||void 0!==c||void 0!==p,D=void 0!==i,x=function(e){var t=e.imageUrl,n=e.icon,r=e.iconClass,i=e.imageAlt;if(t)return o.createElement("img",{role:"presentation",className:"k-button-icon",alt:i,src:t});if(n){var l=(0,a.A)("k-button-icon k-icon","k-i-"+n);return o.createElement("span",{role:"presentation",className:l})}return r?o.createElement("span",{role:"presentation",className:(0,a.A)("k-button-icon",r)}):null}({icon:u,iconClass:c,imageUrl:p,imageAlt:f});return o.createElement("button",d({ref:function(e){return n._element=e},role:s?"checkbox":void 0,"aria-disabled":this.props.disabled||void 0,"aria-checked":s?this.state.selected:void 0},S,{onClick:this.handleClick,className:(0,a.A)("k-button",(e={},e["k-button-".concat(l.G.sizeMap[m]||m)]=m,e["k-button-".concat(g)]=g,e["k-button-".concat(E)]=E,e["k-button-".concat(E,"-").concat(k)]=Boolean(E&&k),e["k-rounded-".concat(l.G.roundedMap[b]||b)]=b,e["k-icon-button"]=!D&&O,e["k-disabled"]=this.props.disabled,e["k-selected"]=this.state.selected,e["k-rtl"]="rtl"===this.props.dir,e),this.props.className)}),x,i&&o.createElement("span",{className:"k-button-text"},i))},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:i.node,selected:i.bool,togglable:i.bool,icon:i.string,iconClass:i.string,imageUrl:i.string,imageAlt:i.string,size:i.oneOf([null,"small","medium","large"]),shape:i.oneOf([null,"rectangle","square"]),rounded:i.oneOf([null,"small","medium","large","full"]),fillMode:i.oneOf([null,"flat","link","outline","solid"]),themeColor:i.oneOf([null,"base","primary","secondary","tertiary","info","success","warning","error","dark","light","inverse"])},t.defaultProps={togglable:!1,size:"medium",shape:"rectangle",rounded:"medium",fillMode:"solid",themeColor:"base"},t}(o.Component)},7711:(e,t,n)=>{n.d(t,{h:()=>f});var r,o=n(3899),i=n(189),a=n(8047),l=n(4006),s=n(2709),u=n(1889),c=(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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(){return d=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},d.apply(this,arguments)},p=u.Z.styles,f=function(e){function t(t){var n=e.call(this,t)||this;return n._element=null,(0,l.s)(s.k),n}return c(t,e),t.prototype.render=function(){var e,t=this,n=this.mapButtons(this.props.children),r=(0,a.A)([p["button-group"]],((e={})["k-disabled"]=this.props.disabled,e[p["button-group-stretched"]]=!!this.props.width,e),this.props.className),i={className:r,style:{width:"".concat(this.props.width)},dir:this.props.dir,role:"group","aria-disabled":this.props.disabled};return o.createElement("div",d({ref:function(e){t._element=e}},i,{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,i){return o.isValidElement(e)?t.renderButton(e,i,i===n-1,r):e}))},t.prototype.renderButton=function(e,t,n,r){var i,l=(0,a.A)(e.props.className,((i={})[p["group-start"]]=r?n:0===t,i[p["group-end"]]=r?0===t:n,i)),s=d(d({},this.props.width?{width:this.props.width}:{}),e.props.style||{}),u=this.props.disabled||e.props.disabled,c=d(d(d(d({},e.props),l?{className:l}:{}),Object.keys(s).length?{style:s}:{}),void 0!==u?{disabled:u}:{});return o.Children.count(e.props.children)>0?o.cloneElement(e,c,e.props.children):o.cloneElement(e,c)},t.propTypes={children:i.oneOfType([i.arrayOf(i.element),i.element]),className:i.string,disabled:i.bool,width:i.string,dir:i.string},t}(o.Component)},1711:(e,t,n)=>{n.d(t,{A:()=>y});var r=n(3899),o=n(189),i=n(228),a=n(8199),l=n(3493),s=n(4703),u=n(8047),c=n(2697),d=n(4163),p=n(5770),f=n(5209),h=n(4006),m=n(2709),v=n(3322),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},g.apply(this,arguments)},y=r.forwardRef((function(e,t){var n;(0,h.s)(m.k);var o=r.useRef(null),y=r.useRef(null),b=(0,a.n)(y,e.dir);r.useImperativeHandle(o,(function(){return{element:y.current,props:e}})),r.useImperativeHandle(t,(function(){return o.current}));var C=r.useContext(i.Wn),E=C[0],w=C[1],k=r.useContext(i.OW),S=k[0],O=k[1],D=r.useContext(i.zD)[1],x=r.useMemo((function(){return e.selected||(Array.isArray(E)?E.some((function(t){return t===e.value})):E===e.value)}),[e.selected,e.value,E]),I=r.useMemo((function(){return S===e.value}),[e.value,S]);r.useEffect((function(){I&&y.current&&y.current.focus()}),[I]);var T=r.useCallback((function(t){w({type:f.ey.toggle,payload:e.value,event:t})}),[w,e.value]),_=r.useCallback((function(t){e.removable&&(D({type:p.S.remove,payload:e.value,event:t}),O({type:d.E.reset,payload:e.value,event:t}),w({type:f.ey.remove,payload:e.value,event:t}),e.onRemove&&e.onRemove.call(void 0,{target:o.current,syntheticEvent:t}))}),[e.onRemove,e.value,e.removable,D,O,w]),R=r.useCallback((function(t){switch(t.keyCode){case l.R.left:O({type:d.E.prev,payload:e.value,event:t});break;case l.R.right:O({type:d.E.next,payload:e.value,event:t});break;case l.R.enter:w({type:f.ey.toggle,payload:e.value,event:t});break;case l.R.delete:_(t)}e.onKeyDown&&e.onKeyDown.call(void 0,{target:o.current,syntheticEvent:t})}),[e.onKeyDown,e.value,O,w,_]),M=r.useCallback((function(t){O({payload:e.value,type:d.E.current,event:t}),e.onFocus&&e.onFocus.call(void 0,{target:o.current,syntheticEvent:t})}),[e.onFocus,e.value,O]),P=r.useCallback((function(t){e.onBlur&&e.onBlur.call(void 0,{target:o.current,syntheticEvent:t})}),[e.onBlur]),N=(0,v.i)(e,o,{onClick:T});return r.createElement("div",g({},N,{role:e.role,id:e.value,style:e.style,ref:y,dir:b,tabIndex:(0,s.p)(e.tabIndex,e.disabled,void 0),className:(0,u.A)("k-chip",(n={"k-rtl":"rtl"===b,"k-disabled":e.disabled,"k-selected":x,"k-focus":I},n["k-chip-".concat(c.G.sizeMap[e.size]||e.size)]=e.size,n["k-rounded-".concat(c.G.roundedMap[e.rounded]||e.rounded)]=e.rounded,n["k-chip-".concat(e.fillMode)]=e.fillMode,n["k-chip-".concat(e.fillMode,"-").concat(e.themeColor)]=Boolean(e.fillMode&&e.themeColor),n),e.className),"aria-checked":x,"aria-disabled":e.disabled,"aria-describedby":e.ariaDescribedBy,onFocus:M,onBlur:P,onKeyDown:R}),x&&e.selectedIcon&&r.createElement("span",{className:(0,u.A)("k-chip-icon","k-icon",e.selectedIcon)}),e.icon&&r.createElement("span",{className:(0,u.A)("k-chip-icon","k-icon",e.icon)}),r.createElement("span",{className:"k-chip-content"},void 0!==e.children?e.children:e.text&&r.createElement("span",{"aria-label":e.text,className:"k-chip-label"},e.text)),e.removable&&r.createElement("span",{className:"k-chip-actions"},r.createElement("span",{className:"k-chip-action"},r.createElement("span",{className:(0,u.A)("k-chip-remove-action","k-icon",e.removeIcon),onClick:_}))))})),b={id:o.string,text:o.string,value:o.any,dir:o.oneOf(["ltr","rtl"]),removable:o.bool,removeIcon:o.string,disabled:o.bool,icon:o.string,selectedIcon:o.string,onRemove:o.func,dataItem:o.any,selected:o.bool,ariaDescribedBy:o.string,size:o.oneOf([null,"small","medium","large"]),rounded:o.oneOf([null,"small","medium","large","full"]),fillMode:o.oneOf([null,"outline","solid"]),themeColor:o.oneOf([null,"base","info","success","warning","error"])};y.displayName="KendoReactChip",y.propTypes=b,y.defaultProps={disabled:!1,removable:!1,removeIcon:"k-i-x-circle",dir:"ltr",size:"medium",rounded:"medium",fillMode:"solid",themeColor:"base"}},228:(e,t,n)=>{n.d(t,{Wn:()=>y,OW:()=>b,zD:()=>C,jg:()=>E});var r=n(3899),o=n(189),i=n(8199),a=n(9659),l=n(3322),s=n(4703),u=n(8047),c=n(2697),d=n(5209),p=n(4163),f=n(5770),h=n(1711),m=n(4006),v=n(2709),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},g.apply(this,arguments)},y=r.createContext([null,function(e){}]),b=r.createContext([null,function(e){}]),C=r.createContext([null,function(e){}]),E=r.forwardRef((function(e,t){var n;(0,m.s)(v.k);var o=r.useRef(null),E=r.useRef(null),w=(0,i.n)(E,e.dir),S=e.chip,O=e.id,D=e.style,x=e.tabIndex,I=e.disabled,T=e.size,_=e.className,R=e.ariaDescribedBy,M=e.ariaLabelledBy,P=e.selection,N=void 0===P?k.selection:P,F=e.value,A=void 0===F?k.defaultValue:F,j=e.defaultData,L=void 0===j?k.defaultData:j,V=e.valueField,z=void 0===V?k.valueField:V,B=e.textField,H=void 0===B?k.textField:B,U=e.onChange,W=e.onDataChange,K=r.useMemo((function(){return S||h.A}),[S,h.A]);r.useImperativeHandle(o,(function(){return{element:E.current,props:e}})),r.useImperativeHandle(t,(function(){return o.current}));var q=r.useCallback((function(e,t){U&&o.current&&U.call(void 0,{value:e,target:o.current,syntheticEvent:t})}),[U]),Y=function(e,t,n){var o=r.useState(e),i=o[0],a=o[1];return[i,function(e){var r=(0,d.TX)(t.state||i,g(g({},e),t));n&&n(r,e.event),a(r)}]}(A,{selection:N,state:A},q),G=Y[0],Z=Y[1],X=r.useCallback((function(e,t){W&&o.current&&W.call(void 0,{value:e,target:o.current,syntheticEvent:t})}),[W]),$=function(e,t,n){var o=r.useState(e),i=o[0],a=o[1];return[i,function(e){var r=(0,f.I)(t.state||i,g(g({},e),t));n&&n(r,e.event),a(r)}]}(e.data||L,{state:e.data,valueField:z},X),Q=$[0],J=$[1],ee=r.useCallback((function(e,t){return e.push(t[z]),e}),[z]),te=r.useMemo((function(){return e.data||Q}),[e.data,Q]),ne=r.useMemo((function(){return A||G}),[A,G]),re=r.useMemo((function(){return te.reduce(ee,[])}),[te,ee]),oe=r.useCallback((function(e){return(0,a.Y)(z)(e)}),[z]),ie=r.useCallback((function(e){return(0,a.Y)(H)(e)}),[H]),ae=function(e){var t=r.useState(null),n=t[0],o=t[1];return[n,function(t){var n=(0,p.L)(t.payload,g(g({},t),e));o(n)}]}({items:re}),le=ae[0],se=ae[1],ue=(0,l.i)(e,o);return r.createElement(y.Provider,{value:[ne,Z]},r.createElement(b.Provider,{value:[le,se]},r.createElement(C.Provider,{value:[te,J]},r.createElement("div",g({ref:E},ue,{role:"listbox",id:O,dir:w,style:D,tabIndex:(0,s.p)(x,I,void 0),className:(0,u.A)("k-chip-list",(n={"k-rtl":"rtl"===w,"k-disabled":I},n["k-chip-list-".concat(c.G.sizeMap[T]||T)]=T,n),_),"aria-labelledby":M,"aria-describedby":R}),te.map((function(e,t){return r.createElement(K,{role:"option",dataItem:e,size:T,key:[oe(e),t].join("-"),text:ie(e),value:oe(e)})}))))))})),w={id:o.string,className:o.string,tabIndex:o.number,data:o.any,defaultData:o.arrayOf(o.any),onDataChange:o.func,value:o.oneOfType([o.any,o.arrayOf(o.any)]),defaultValue:o.oneOfType([o.any,o.arrayOf(o.any)]),onChange:o.func,selection:o.oneOf(["single","none","multiple"]),textField:o.string,valueField:o.string,disabled:o.bool,dir:o.oneOf(["ltr","rtl"]),ariaLabelledBy:o.string,ariaDescribedBy:o.string,size:o.oneOf([null,"small","medium","large"])},k={chip:h.A,size:"medium",disabled:!1,defaultValue:null,defaultData:[],dir:"ltr",selection:"none",textField:"text",valueField:"value",removable:"removable"};E.displayName="KendoReactChipList",E.propTypes=w,E.defaultProps=k},5770:(e,t,n)=>{var r;n.d(t,{S:()=>r,I:()=>o}),function(e){e.remove="remove",e.add="add",e.reorder="reorder"}(r||(r={}));var o=function(e,t){switch(t.type){case r.add:break;case r.remove:return e.filter((function(e){return e[t.valueField]!==t.payload}));case r.reorder:break;default:return e}}},4163:(e,t,n)=>{var r;n.d(t,{E:()=>r,L:()=>o}),function(e){e.next="next",e.prev="prev",e.current="current",e.reset="reset"}(r||(r={}));var o=function(e,t){var n=t.items.findIndex((function(t){return t===e}));switch(t.type){case r.next:return n===t.items.length-1?e:t.items[n+1];case r.prev:return 0===n?e:t.items[n-1];case r.current:return t.payload;case r.reset:return null;default:return e}}},5209:(e,t,n)=>{n.d(t,{ey:()=>o,TX:()=>a});var r,o,i=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};!function(e){e.single="single",e.multiple="multiple",e.none="none"}(r||(r={})),function(e){e.toggle="toggle",e.remove="remove"}(o||(o={}));var a=function(e,t){switch(t.selection){case r.single:switch(t.type){case o.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 o.remove:return t.payload===e?null:e;default:return e}case r.multiple:switch(t.type){case o.toggle:if(Array.isArray(e))return e.some((function(e){return e===t.payload}))?e.filter((function(e){return e!==t.payload})):i(i([],e,!0),[t.payload],!1);if(null===e)return[t.payload];throw new Error("State cannot be non-array in multiple selection");case o.remove:return Array.isArray(e)?e.some((function(e){return e===t.payload}))?e.filter((function(e){return e!==t.payload})):i(i([],e,!0),[t.payload],!1):e;default:return e}case r.none:return null;default:return e}}},2888:(e,t,n)=>{n.r(t),n.d(t,{Button:()=>r.z,ButtonGroup:()=>o.h,Chip:()=>L.A,ChipList:()=>V.jg,DropDownButton:()=>I,DropDownButtonItem:()=>O,FloatingActionButton:()=>X,FloatingActionButtonItem:()=>W,SplitButton:()=>k,SplitButtonItem:()=>m,Toolbar:()=>M,ToolbarItem:()=>N,ToolbarSeparator:()=>A,ToolbarSpacer:()=>j});var r=n(7037),o=n(7711),i=n(3899),a=n(189),l=n(3198),s=n(3493),u=n(8047),c=n(2697),d=n(5407),p=function(e){var t,n=i.useCallback((function(t){e.onClick(t,e.index)}),[e]),r=e.dataItem.render||e.item||(void 0===e.item?e.render:null),o=void 0!==e.dataItem.text?e.dataItem.text:e.textField?e.dataItem[e.textField]:e.dataItem,a=i.createElement("li",{id:e.id,className:(0,u.A)("k-item",e.className,{"k-focus":e.focused}),onClick:n,onMouseDown:e.onDown,onPointerDown:e.onDown,role:"menuitem","aria-disabled":e.dataItem.disabled||void 0},i.createElement("span",{tabIndex:-1,className:(0,u.A)("k-link k-menu-link",{"k-selected":e.dataItem.selected,"k-disabled":e.dataItem.disabled}),key:"icon"},r?i.createElement(r,{item:e.dataItem,itemIndex:e.index}):i.createElement(i.Fragment,null,(e.dataItem.icon||e.dataItem.iconClass)&&i.createElement("span",{className:(0,u.A)("k-icon",(t={},t["k-i-".concat(e.dataItem.icon)]=e.dataItem.icon,t["".concat(e.dataItem.iconClass)]=e.dataItem.iconClass,t))}),e.dataItem.imageUrl&&i.createElement("img",{role:"presentation",alt:"",src:e.dataItem.imageUrl,className:"k-icon"}),o&&i.createElement("span",{className:"k-menu-link-text"},o))));return void 0!==e.item&&void 0!==e.render?e.render.call(void 0,a,e):a};p.displayName="KendoReactButtonItem";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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},f(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");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(){return null!==e&&e.apply(this,arguments)||this}return h(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}(i.Component),v=function(e,t,n,r){if(n)return e;switch(t){case s.R.enter:case s.R.space:case s.R.esc:return-1;case s.R.up:case s.R.left:return Math.max(0,e-1);case s.R.down:case s.R.right:return Math.min(r-1,e+1);default:return e}},g=n(9222);function y(e){var t={horizontal:"left",vertical:"bottom"};return e&&(t.horizontal="right"),t}function b(e){var t={horizontal:"left",vertical:"top"};return e&&(t.horizontal="right"),t}var C=n(4006),E=n(2709),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),k=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=(0,l.M)(),n.buttonsData=[],n.onKeyDown=function(e){var t=n.state.focusedIndex;if(e.altKey)n.opened||e.keyCode!==s.R.down?n.opened&&e.keyCode===s.R.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===s.R.enter||e.keyCode===s.R.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===s.R.esc&&(r={focusedIndex:-1,opened:!1},n.dispatchPopupEvent(e,r.opened)),n.opened){var o=v(t,e.keyCode,e.altKey,n.buttonsData.length);o!==t&&((r=r||{}).focusedIndex=o);var i=e.keyCode===s.R.up||e.keyCode===s.R.down||e.keyCode===s.R.left||e.keyCode===s.R.right;!e.altKey&&i&&e.preventDefault()}r&&n.setState(r)}},n.onFocus=function(e){(0,d.N)(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}),(0,d.N)(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){(0,d.N)(t?n.props.onOpen:n.props.onClose,e,n,void 0)},(0,C.s)(E.k),n}return w(t,e),Object.defineProperty(t.prototype,"opened",{get:function(){return void 0===this.props.opened?this.state.opened:this.props.opened},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this;this.buttonsData=this.props.items||i.Children.toArray(this.props.children).filter((function(e){return e&&e.type===m})).map((function(e){return e.props}));var t=this.isRtl(),n=t?"rtl":void 0,o=this.props,a=o.id,l=o.style,s=o.tabIndex,d=o.disabled,p=this.state.focusedIndex;return i.createElement("div",{id:a,style:l,className:(0,u.A)("k-split-button","k-button-group",{"k-focus":this.state.focused},"k-rounded-".concat(c.G.roundedMap[this.props.rounded||"medium"]),this.props.className),onKeyDown:this.onKeyDown,onFocus:this.onFocus,onBlur:this.onBlur,dir:n,ref:function(t){return e.wrapper=t}},i.createElement(r.z,{ref:function(t){return e.mainButton=t&&t.element},type:"button",size:this.props.size,rounded:this.props.rounded,fillMode:this.props.fillMode,themeColor:this.props.themeColor,onClick:function(t){return e.onItemClick(t,-1)},disabled:d||void 0,tabIndex:s,accessKey:this.props.accessKey,className:this.props.buttonClass,icon:this.props.icon,iconClass:this.props.iconClass,imageUrl:this.props.imageUrl,dir:n,"aria-disabled":d,"aria-haspopup":!0,"aria-expanded":this.opened,"aria-label":"".concat(this.props.text," splitbutton"),"aria-owns":this.guid,"aria-activedescendant":p>=0?"".concat(this.guid,"-").concat(p):void 0},this.props.text),i.createElement(r.z,{type:"button",size:this.props.size,rounded:this.props.rounded,fillMode:this.props.fillMode,themeColor:this.props.themeColor,icon:"arrow-s",className:"k-split-button-arrow",disabled:d||void 0,tabIndex:-1,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:!1,configurable:!0}),t.prototype.dispatchClickEvent=function(e,t){this.isItemDisabled(t)||(-1===t?(0,d.N)(this.props.onButtonClick,e,this,void 0):(0,d.N)(this.props.onItemClick,e,this,{item:this.buttonsData[t],itemIndex:t}))},t.prototype.renderPopup=function(e){var t,n=this.props.popupSettings,r=void 0===n?{}:n;return i.createElement(g.G,{anchor:this.wrapper,show:this.opened,animate:r.animate,popupClass:(0,u.A)("k-menu-popup",r.popupClass),anchorAlign:r.anchorAlign||y(e),popupAlign:r.popupAlign||b(e),style:e?{direction:"rtl"}:void 0},i.createElement("ul",{role:"menu",id:this.guid,className:(0,u.A)("k-group k-menu-group k-reset",(t={},t["k-menu-group-".concat(c.G.sizeMap[this.props.size]||this.props.size)]=this.props.size,t))},this.renderChildItems()))},t.prototype.renderChildItems=function(){var e=this,t=this.props,n=t.item,r=t.itemRender,o=t.textField;return this.buttonsData.length>0?this.buttonsData.map((function(t,a){return i.createElement(p,{className:"k-menu-item",dataItem:t,textField:o,focused:e.state.focusedIndex===a,onClick:e.onItemClick,onDown:e.onItemDown,render:r,item:n,key:a,index:a,id:"".concat(e.guid,"-").concat(a)})})):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,className:a.string,buttonClass:a.string,dir:a.string},t.defaultProps={size:"medium",rounded:"medium",shape:"rectangle",fillMode:"solid",themeColor:"base"},t}(i.Component),S=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");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 S(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}(i.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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),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},x.apply(this,arguments)},I=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=(0,l.M)(),n.buttonsData=[],n.onKeyDown=function(e){var t=n.state.focusedIndex;if(e.altKey)n.opened||e.keyCode!==s.R.down?n.opened&&e.keyCode===s.R.up&&(n.dispatchPopupEvent(e,!1),n.setState({focusedIndex:-1,opened:!1})):(n.dispatchPopupEvent(e,!0),n.setState({focusedIndex:0,opened:!0}));else{var r=x({},n.state);if(e.keyCode===s.R.enter||e.keyCode===s.R.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===s.R.esc&&(r.focusedIndex=-1,r.opened=!1,n.dispatchPopupEvent(e,r.opened)),n.opened){var o=v(t,e.keyCode,e.altKey,n.buttonsData.length);r.focusedIndex=o;var i=e.keyCode===s.R.up||e.keyCode===s.R.down||e.keyCode===s.R.left||e.keyCode===s.R.right;!e.altKey&&i&&e.preventDefault()}n.setState(r)}},n.handleFocus=function(e){n.setState({focused:!0,focusedIndex:n.opened?0:-1}),(0,d.N)(n.props.onFocus,e,n,void 0)},n.handleBlur=function(e){n.setState({focused:!1,opened:!1,focusedIndex:-1}),(0,d.N)(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){(0,d.N)(t?n.props.onOpen:n.props.onClose,e,n,void 0)},(0,C.s)(E.k),n}return D(t,e),Object.defineProperty(t.prototype,"opened",{get:function(){return void 0===this.props.opened?this.state.opened:this.props.opened},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this,t=this.isRtl(),n=t?"rtl":void 0,o=this.props,a=o.id,l=o.style,s=o.tabIndex,c=o.disabled,d=this.state.focusedIndex;return this.buttonsData=this.props.items||i.Children.toArray(this.props.children).filter((function(e){return e&&e.type===O})).map((function(e){return e.props})),i.createElement("div",{id:a,style:l,className:(0,u.A)("k-dropdown-button",{"k-focus":this.state.focused},this.props.className),onKeyDown:this.onKeyDown,onFocus:this.handleFocus,onBlur:this.handleBlur,dir:n,ref:function(t){return e.wrapper=t}},i.createElement(r.z,{size:this.props.size,shape:this.props.shape,rounded:this.props.rounded,fillMode:this.props.fillMode,themeColor:this.props.themeColor,onClick:this.onClickMainButton,onMouseDown:this.mouseDown,disabled:c||void 0,tabIndex:s,accessKey:this.props.accessKey,icon:this.props.icon,iconClass:this.props.iconClass,className:this.props.buttonClass,imageUrl:this.props.imageUrl,dir:n,ref:function(t){return e.mainButton=t&&t.element},type:"button","aria-disabled":c,"aria-haspopup":!0,"aria-expanded":this.opened,"aria-label":"".concat(this.props.text," dropdownbutton"),"aria-owns":this.guid,"aria-activedescendant":d>=0?"".concat(this.guid,"-").concat(d):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:!1,configurable:!0}),t.prototype.dispatchClickEvent=function(e,t){this.isItemDisabled(t)||(0,d.N)(this.props.onItemClick,e,this,{item:this.buttonsData[t],itemIndex:t})},t.prototype.renderPopup=function(e){var t,n=this.props.popupSettings,r=void 0===n?{}:n;return i.createElement(g.G,{anchor:this.wrapper,show:this.opened,animate:r.animate,popupClass:(0,u.A)("k-menu-popup",r.popupClass),anchorAlign:r.anchorAlign||y(e),popupAlign:r.popupAlign||b(e),style:e?{direction:"rtl"}:void 0},i.createElement("ul",{role:"menu",id:this.guid,className:(0,u.A)("k-group k-menu-group k-reset",(t={},t["k-menu-group-".concat(c.G.sizeMap[this.props.size]||this.props.size)]=this.props.size,t))},this.renderChildItems()))},t.prototype.renderChildItems=function(){var e=this,t=this.props,n=t.item,r=t.itemRender,o=t.textField;return this.buttonsData.length>0?this.buttonsData.map((function(t,a){return i.createElement(p,{className:"k-menu-item",dataItem:t,textField:o,focused:e.state.focusedIndex===a,onClick:e.onItemClick,onDown:e.onItemDown,render:r,item:n,index:a,key:a,id:"".concat(e.guid,"-").concat(a)})})):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,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,className:a.string,buttonClass:a.string,dir:a.string},t.defaultProps={size:"medium",rounded:"medium",shape:"rectangle",fillMode:"solid",themeColor:"base"},t}(i.Component),T=n(1889),_=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),R=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},R.apply(this,arguments)},M=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===s.R.left||e.keyCode===s.R.right)&&!e.defaultPrevented&&-1!==r.buttons.findIndex((function(e){return e===t}))){var n=r.focusedIndex;e.keyCode===s.R.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 i={offsetWidth:r.offsetWidth,offsetHeight:r.offsetHeight};r.props.onResize&&r.props.onResize.call(void 0,R(R({target:r},i),{nativeEvent:e}))}}},(0,C.s)(E.k),r}return _(t,e),Object.defineProperty(t.prototype,"selectors",{get:function(){return this.props.buttons||T.w},enumerable:!1,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:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,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 i.createElement("div",{id:this.props.id,className:(0,u.A)("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,i=this.buttons[n];if(i){i.tabIndex=o,i.focus();var a=this.buttons[e];a&&(a.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}(i.Component),P=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),N=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._element=null,t}return P(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this;return i.createElement("span",{id:this.props.id,className:this.props.className,style:this.props.style,ref:function(t){return e._element=t}},this.props.children)},t.propTypes={className:a.string},t}(i.PureComponent),F=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),A=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return F(t,e),t.prototype.render=function(){return i.createElement(N,{className:"k-separator"})},t}(i.PureComponent),j=i.forwardRef((function(e,t){var n=i.useRef(null),r=i.useRef(null);i.useImperativeHandle(r,(function(){return{element:n.current}})),i.useImperativeHandle(t,(function(){return{element:n.current}}));var o=i.useMemo((function(){return(0,u.A)("k-spacer",e.className)}),[e.className]);return i.createElement("span",{ref:n,className:o})}));j.displayName="KendoReactToolbarSpacer",j.propTypes={className:a.string};var L=n(1711),V=n(228),z=n(8259),B=n(8199),H=n(4703),U=function(){return U=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},U.apply(this,arguments)},W=i.forwardRef((function(e,t){var n=e.className,r=e.disabled,o=e.text,a=e.icon,l=e.style,s=e.id,c=e.focused,d=e.tabIndex,p=e.index,f=e.dataItem,h=e.item,m=e.onDown,v=e.onClick,g=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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["className","disabled","text","icon","style","id","focused","tabIndex","index","dataItem","item","onDown","onClick"]),y=i.useRef(null),b=i.useCallback((function(){y.current&&y.current.focus()}),[]),C=i.useCallback((function(){return{element:y.current,focus:b}}),[b]);i.useImperativeHandle(t,C);var E=i.useCallback((function(e){v&&void 0!==p&&!r&&v(e,p)}),[v,p]),w=i.useMemo((function(){return(0,u.A)("k-fab-item",{"k-focus":c,"k-disabled":r},n)}),[n,r,c]),k=h;return i.createElement("li",U({ref:y,id:s,className:w,style:l,role:"menuitem",tabIndex:(0,H.p)(d,r),"aria-disabled":r,"aria-label":"".concat(o||""," floatingactionbutton item"),onClick:E,onMouseDown:m,onPointerDown:m},g),k?i.createElement(k,{itemIndex:p,item:f}):i.createElement(i.Fragment,null,o&&i.createElement("span",{className:"k-fab-item-text"},o),a&&i.createElement("span",{className:(0,u.A)("k-fab-item-icon k-icon k-i-".concat(a))})))}));W.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},W.displayName="KendoFloatingActionButtonItem";var K="16px",q=function(e){return"number"==typeof e?e+"px":e},Y=function(e,t){var n={horizontal:t?"right":"left",vertical:"bottom"};return"end"===e.horizontal&&(n.horizontal=t?"left":"right"),n},G=function(e,t){var n={horizontal:t?"right":"left",vertical:"top"};return"end"===e.horizontal&&(n.horizontal=t?"left":"right"),n},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},Z.apply(this,arguments)},X=i.forwardRef((function(e,t){(0,C.s)(E.k);var n=e.align,r=void 0===n?$.align:n,o=e.alignOffset,a=e.className,p=e.disabled,f=e.icon,h=e.iconClass,m=e.id,v=e.items,y=e.item,b=e.text,w=e.positionMode,k=void 0===w?$.positionMode:w,S=e.shape,O=void 0===S?$.shape:S,D=e.size,x=void 0===D?$.size:D,I=e.style,T=e.rounded,_=void 0===T?$.rounded:T,R=e.themeColor,M=void 0===R?$.themeColor:R,P=e.overlayStyle,N=e.tabIndex,F=e.accessKey,A=e.popupSettings,j=void 0===A?{}:A,L=e.modal,V=e.onClick,U=e.onItemClick,X=e.onFocus,Q=e.onBlur,J=e.onKeyDown,ee=e.onOpen,te=e.onClose,ne=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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["align","alignOffset","className","disabled","icon","iconClass","id","items","item","text","positionMode","shape","size","style","rounded","themeColor","overlayStyle","tabIndex","accessKey","popupSettings","modal","onClick","onItemClick","onFocus","onBlur","onKeyDown","onOpen","onClose"]),re=(0,z.u)(),oe=re?re+2:100,ie=i.useRef(null),ae=i.useRef(null),le=i.useRef(null),se=i.useRef(null),ue=i.useCallback((function(){ae.current&&ae.current.focus()}),[]),ce=i.useCallback((function(){return{element:ae.current,focus:ue}}),[ue]);i.useImperativeHandle(ie,ce),i.useImperativeHandle(t,(function(){return ie.current}));var de=i.useState(!1),pe=de[0],fe=de[1],he=i.useState(!1),me=he[0],ve=he[1],ge=i.useState(-1),ye=ge[0],be=ge[1],Ce=i.useMemo((function(){return(0,l.M)()}),[]),Ee=(0,B.n)(ae,e.dir),we="rtl"===Ee,ke=i.useMemo((function(){return(0,l.M)()}),[]);i.useEffect((function(){!function(e,t,n,r){var o=t.horizontal,i=t.vertical;if(e.current){var a=n&&void 0!==n.x?q(n.x):K,l=n&&void 0!==n.x?"calc(50% + ".concat(q(n.x),")"):"50%",s=n&&void 0!==n.y?q(n.y):K,u=n&&void 0!==n.y?"calc(50% + ".concat(q(n.y),")"):"50%";e.current.style.setProperty(function(e,t){return{end:t?"left":"right",center:"left",start:t?"right":"left"}[e.horizontal||"end"]}(t,r),"center"===o?l:a),e.current.style.setProperty(function(e){return{top:"top",middle:"top",bottom:"bottom"}[e.vertical||"bottom"]}(t),"middle"===i?u:s),r&&("top"!==i&&"bottom"!==i||"start"!==o||e.current.style.setProperty("left","unset"),"middle"===i&&"end"===o&&e.current.style.setProperty("right","unset"),"middle"===i&&"start"===o&&e.current.style.setProperty("left","unset"))}}(ae,r,o,we)}),[ae,r,o,we]),i.useEffect((function(){me&&ae&&ae.current&&ae.current.focus()}),[me,ae]);var Se=i.useCallback((function(e,t){v&&(0,d.N)(t?ee:te,e,ce(),void 0)}),[ee,te,v]),Oe=i.useCallback((function(e){e.target&&!p&&(!v&&V?(0,d.N)(V,e,ce(),void 0):(fe(!pe),ve(!0),be(pe?-1:0),Se(e,!pe)))}),[fe,ve,be,V,Se,pe,v,p]),De=i.useCallback((function(e){ve(!0),be(pe?0:-1),X&&(0,d.N)(X,e,ce(),void 0)}),[X,ve,be]),xe=i.useCallback((function(e){ve(!1),fe(!1),be(-1),(0,d.N)(Q,e,ce(),void 0),pe&&Se(e,!1)}),[Q,ve,fe,be,Se]),Ie=i.useCallback((function(e){e.preventDefault()}),[]),Te=i.useCallback((function(e,t){v&&(v[t].disabled||(0,d.N)(U,e,ce(),{itemProps:v[t],itemIndex:t}))}),[U]),_e=i.useCallback((function(e,t){e.target&&v&&(be(t),fe(!1),Te(e,t),Se(e,!1))}),[be,fe,Te,Se]),Re=i.useCallback((function(e){document.activeElement===ae.current&&e.preventDefault()}),[ae,document.activeElement]),Me=i.useCallback((function(e){var t=ye,n=v?v.length-1:-1,o="bottom"===r.vertical;switch(e.keyCode){case s.R.enter:case s.R.space:t>=0&&Te(e,t),e.preventDefault(),fe(!pe),be(pe?-1:0);break;case s.R.esc:e.preventDefault(),fe(!1),be(-1);break;case s.R.home:e.preventDefault(),be(0);break;case s.R.end:e.preventDefault(),be(n);break;case s.R.down:case s.R.right:e.preventDefault(),t<n&&!o&&be(t+1),t>0&&o&&be(t-1);break;case s.R.up:case s.R.left:e.preventDefault(),t>0&&!o&&be(t-1),t<n&&o&&be(t+1)}(0,d.N)(J,e,ce(),void 0)}),[J,ye,be,we,fe]),Pe=i.useMemo((function(){var e;return(0,u.A)("k-fab k-fab-solid",((e={})["k-fab-".concat(O)]=O,e["k-fab-sm"]="small"===x,e["k-fab-md"]="medium"===x,e["k-fab-lg"]="large"===x,e["k-disabled"]=p,e["k-pos-absolute"]="absolute"===k,e["k-pos-fixed"]="fixed"===k,e["k-focus"]=me,e["k-rounded-".concat(c.G.roundedMap[_]||_)]=_,e["k-fab-solid-".concat(M)]=M,e),"k-".concat(r.vertical,"-").concat(r.horizontal),a)}),[M,x,_,O,p,k,r,me,a]),Ne=v&&v.map((function(e,t){return i.createElement(W,Z({},e,{key:t,index:t,id:"".concat(ke,"-").concat(t),disabled:p||e.disabled,focused:ye===t,dataItem:e,item:y,className:(0,u.A)(e.className,(n=Ee||"ltr",o=r.horizontal,{rtl:{end:"k-text-left",start:"k-text-right"},ltr:{start:"k-text-left",end:"k-text-right"}}[n]["end"===o?"end":"start"])),onClick:_e,onDown:Re}));var n,o})),Fe=f&&!b,Ae=(ae.current?ae.current.offsetWidth:0)/2-16;return i.createElement(z.$.Provider,{value:oe},i.createElement(i.Fragment,null,i.createElement("button",Z({ref:ae,id:m||Ce,role:v?"menubutton":"button",type:"button","aria-disabled":p,"aria-expanded":v?pe:void 0,"aria-haspopup":!!v,"aria-label":"".concat(b||""," floatingactionbutton"),"aria-owns":v?ke:void 0,"aria-activedescendant":ye>=0&&v?"".concat(ke,"-").concat(ye):void 0,tabIndex:(0,H.p)(N,p),accessKey:F,dir:Ee,disabled:p,className:Pe,style:I,onClick:Oe,onMouseDown:Ie,onFocus:De,onBlur:xe,onKeyDown:Me},ne),f?i.createElement("span",{role:"presentation",className:(0,u.A)("k-fab-icon k-icon k-i-".concat(f))}):h?i.createElement("span",{role:"presentation",className:h}):null,b&&i.createElement("span",{className:"k-fab-text"},b)),L&&pe&&i.createElement("div",{className:"k-overlay",style:Z({zIndex:oe},P)}),i.createElement(g.G,{ref:se,anchor:ae.current,show:pe,animate:j.animate,popupClass:(0,u.A)("k-popup-transparent k-fab-popup",j.popupClass),anchorAlign:j.anchorAlign||Y(r,we),popupAlign:j.popupAlign||G(r,we),style:{boxShadow:"none"}},i.createElement("ul",{ref:le,role:"menu","aria-labelledby":m,id:ke,className:(0,u.A)("k-fab-items",{"k-fab-items-bottom":"bottom"!==r.vertical,"k-fab-items-top":"bottom"===r.vertical}),style:{paddingLeft:Fe?Ae:void 0,paddingRight:Fe?Ae:void 0}},Ne))))}));X.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([null,"rectangle","square"]),size:a.oneOf([null,"small","medium","large"]),rounded:a.oneOf([null,"small","medium","large","full"]),themeColor:a.oneOf([null,"primary","secondary","tertiary","info","success","warning","error","dark","light","inverse"]),modal:a.bool,overlayStyle:a.object};var $={align:{vertical:"bottom",horizontal:"end"},shape:"rectangle",size:"medium",rounded:"full",themeColor:"primary",positionMode:"fixed"};X.displayName="KendoFloatingActionButton"},2709:(e,t,n)=>{n.d(t,{k:()=>r});var r={name:"@progress/kendo-react-buttons",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1655890777,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"}},1889:(e,t,n)=>{n.d(t,{w:()=>o,Z:()=>i});var r=':not(.k-disabled):not([disabled]):not([disabled="true"])',o=["button"+r,".k-button-group > button"+r,".k-dropdown > .k-dropdown-wrap"+r,".k-colorpicker > .k-picker-wrap"+r];const i={styles:{button:"k-button",flat:"k-flat",outline:"k-outline",clear:"k-button-clear",primary:"k-primary","state-selected":"k-selected","button-icon":"k-button-icon","button-icontext":"k-button-icontext","state-disabled":"k-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"}}},8138:(e,t,n)=>{n.r(t),n.d(t,{Calendar:()=>Tt,CalendarCell:()=>P,CalendarHeaderTitle:()=>de,CalendarNavigationItem:()=>Xe,CalendarPropsContext:()=>It,CalendarViewEnum:()=>O,CalendarWeekCell:()=>A,DateInput:()=>ln,DateInputPropsContext:()=>an,DatePicker:()=>gn,DatePickerPropsContext:()=>vn,DateRangePicker:()=>kr,DateRangePickerPropsContext:()=>wr,DateTimePicker:()=>Mr,DateTimePickerPropsContext:()=>Rr,MultiViewCalendar:()=>yr,MultiViewCalendarPropsContext:()=>gr,PickerWrap:()=>cn,TimePicker:()=>lr,TimePickerPropsContext:()=>ar,ToggleButton:()=>un});var r,o,i,a,l,s=n(3899),u=n(189),c=n(3198),d=n(3493),p=n(4006),f=n(8047),h=n(848),m=n(619),v=n(499),g={name:"@progress/kendo-react-dateinputs",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1655890927,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"},y=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},b=function(){function e(e,t,n){void 0===e&&(e=0),this.total=e,this.rowHeight=t,this.detailRowHeight=n,this.offsets=[],this.heights=[];for(var r=0,o=0;o<e;o++)this.offsets.push(r),r+=t,this.heights.push(t)}return e.prototype.height=function(e){return this.heights[e]},e.prototype.expandDetail=function(e){this.height(e)===this.rowHeight&&this.updateRowHeight(e,this.detailRowHeight)},e.prototype.collapseDetail=function(e){this.height(e)>this.rowHeight&&this.updateRowHeight(e,-1*this.detailRowHeight)},e.prototype.index=function(e){for(var t=0;t<this.offsets.length;t++){if(e===this.offsets[t])return t;if(e<this.offsets[t])return t-1}return this.total-1},e.prototype.offset=function(e){return this.offsets[e]},e.prototype.totalHeight=function(){return this.heights.reduce((function(e,t){return e+t}),0)},e.prototype.updateRowHeight=function(e,t){this.heights[e]+=t,this.offsets=function(e,t,n){return y(y([],e.slice(0,t+1),!0),e.slice(t+1).map((function(e){return e+n})),!0)}(this.offsets,e,t)},e}(),C=function(e){return Math.max(e,0)},E=function(e){this.offset=e},w=function(e){this.skip=e},k=function(){function e(e,t){this.onScrollAction=e,this.onPageAction=t,this.direction="vertical",this.firstLoaded=0,this.lastLoaded=0,this.lastScrollTop=0,this.take=0,this.total=0,this.rowHeightService=null,this.bottomOffset=0,this.topOffset=0}return e.prototype.create=function(e,t,n,r,o,i,a){void 0===o&&(o=0),void 0===i&&(i=0),void 0===a&&(a="vertical"),this.rowHeightService=e,this.firstLoaded=t,this.lastLoaded=t+n,this.take=n,this.total=r,this.lastScrollTop=0,this.topOffset=o,this.bottomOffset=i,this.direction=a;var l=this.rowsForHeight(o),s=C(t-l);this.onScrollAction(new E(this.rowOffset(s))),this.onPageAction(new w(s))},e.prototype.onScroll=function(e){var t=e.scrollLeft,n=e.scrollTop,r=e.offsetHeight,o=e.offsetWidth,i="vertical"===this.direction?n:t,a="vertical"===this.direction?r:o;if(this.lastScrollTop!==i&&this.rowHeightService){var l=this.lastScrollTop>=i;this.lastScrollTop=i;var s=this.rowHeightService.index(C(i-this.topOffset)),u=this.rowHeightService.index(C(i+a-this.bottomOffset));if(!l&&u>=this.lastLoaded&&this.lastLoaded<this.total&&(this.firstLoaded=s,this.onScrollAction(new E(this.rowOffset(s))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),this.onPageAction(new w(this.firstLoaded))),l&&s<=this.firstLoaded){var c=Math.floor(.3*this.take);this.firstLoaded=C(s-c),this.onScrollAction(new E(this.rowOffset(this.firstLoaded))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),this.onPageAction(new w(this.firstLoaded))}}},e.prototype.rowOffset=function(e){return this.rowHeightService?this.rowHeightService.offset(e)+this.topOffset:0},e.prototype.rowsForHeight=function(e){return this.rowHeightService?Math.ceil(e/this.rowHeightService.height(0)):0},e}(),S=(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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});!function(e){e[e.Backward=0]="Backward",e[e.Forward=1]="Forward"}(l||(l={}));var O,D=((o={})[l.Forward]=function(e){return function(t){return t+e}},o[l.Backward]=function(e){return function(t){return t-e}},o),x=((i={})[l.Forward]=function(e){return function(t){return Math.min(t,e)}},i[l.Backward]=function(e){return function(t){return Math.max(t,e)}},i),I=((a={})[l.Forward]=function(e){return function(t){return t<e}},a[l.Backward]=function(e){return function(t){return t>e}},a),T=function(e){function t(n){var r=e.call(this,n)||this;return r.rowHeightService=null,r.scrollContainer=null,r.lastDirection=null,r.lastTotal=0,r.lastTake=0,r.animationInProgress=!1,r.scrollToIndexTimeout=0,r.scrollTo=function(e){var t="vertical"===r.direction?"scrollTop":"scrollLeft";r.scrollContainer&&(r.scrollContainer[t]=e)},r.scrollToIndex=function(e){void 0!==r.scrollToIndexTimeout&&window.cancelAnimationFrame(r.scrollToIndexTimeout),r.rowHeightService&&(r.scrollToIndexTimeout=window.requestAnimationFrame((function(){r.animationInProgress=!1,r.rowHeightService&&r.scrollTo(r.rowHeightService.offset(e))})))},r.animateToIndex=function(e){if(r.rowHeightService&&window){window.cancelAnimationFrame(r.cancelAnimation);var t=r.rowHeightService.offset(e),n=r.getContainerScrollDirection(t),o=r.scrollRange(t,n),i=o.start,a=o.end;if(i!==a){var l=r.scrollStep(i,a),s=D[n](l),u=x[n](a),c=I[n](s(a)),d=function(e){r.animationInProgress=!0;var t=s(e);r.scrollTo(u(t)),c(t)?r.cancelAnimation=window.requestAnimationFrame((function(){d(t)})):r.animationInProgress=!1};r.cancelAnimation=window.requestAnimationFrame((function(){d(i)}))}}},r.scrollToBottom=function(){r.rowHeightService&&r.scrollTo(r.rowHeightService.totalHeight()+r.props.bottomOffset)},r.scrollStep=function(e,n){var o=r.props.scrollDuration||t.defaultProps.scrollDuration;return Math.abs(n-e)/(o/17)},r.scrollRange=function(e,t){var n=r.containerScrollPosition;if(parseInt("".concat(e),10)===parseInt("".concat(n),10))return{start:e,end:e};var o,i,a,s=r.containerMaxScroll(),u=t===l.Backward?1:-1,c=(o=n,i=e,a=r.props.maxScrollDifference||0,Math.min(Math.abs(i-o),a)),d=Math.min(e,s);return{start:Math.min(Math.max(d+u*c,0),s),end:d}},r.containerMaxScroll=function(){return r.containerScrollSize-r.containerOffsetSize},r.getContainerScrollDirection=function(e){return e<r.containerScrollPosition?l.Backward:l.Forward},r.initServices=function(e){void 0===e&&(e=r.props);var t="vertical"===r.direction?e.itemHeight:e.itemWidth;void 0!==t&&(r.rowHeightService=new b(e.total,t,0),r.scrollerService.create(r.rowHeightService,e.skip,e.take,e.total,e.topOffset,r.scrollOffsetSize,r.direction))},r.getContainerProperty=function(e){return r.scrollContainer?r.scrollContainer[e]:0},r.handleScroll=function(e){if(r.scrollContainer&&r.rowHeightService){var t=e.target;r.scrollerService.onScroll({scrollLeft:t.scrollLeft,scrollTop:t.scrollTop,offsetHeight:t.offsetHeight,offsetWidth:t.offsetWidth});var n=r.rowHeightService.index(r.containerScrollPosition-r.props.topOffset),o=r.props.onScrollAction,i={index:n,target:t,scrollAction:r.scrollAction,pageAction:r.pageAction,animationInProgress:r.animationInProgress};r.props.onScroll&&r.props.onScroll.call(void 0,e),o&&o.call(void 0,i),r.scrollAction=void 0,r.pageAction=void 0}},r.handleScrollAction=function(e){r.scrollAction=e},r.handlePageAction=function(e){r.pageAction=e},r.scrollerService=new k(r.handleScrollAction,r.handlePageAction),r}return S(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this.scrollContainer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"containerOffsetSize",{get:function(){return this.getContainerProperty("vertical"===this.direction?"offsetHeight":"offsetWidth")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"containerScrollSize",{get:function(){return this.getContainerProperty("vertical"===this.direction?"scrollHeight":"scrollWidth")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"containerScrollPosition",{get:function(){return this.getContainerProperty("vertical"===this.direction?"scrollTop":"scrollLeft")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"direction",{get:function(){return void 0!==this.props.direction?this.props.direction:t.defaultProps.direction},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scrollOffsetSize",{get:function(){return void 0!==this.props.scrollOffsetSize?this.props.scrollOffsetSize:t.defaultProps.scrollOffsetSize},enumerable:!1,configurable:!0}),t.prototype.activeIndex=function(){return this.itemIndex(Math.ceil(this.containerScrollPosition))},t.prototype.itemIndex=function(e){return this.rowHeightService?this.rowHeightService.index(e):0},t.prototype.itemOffset=function(e){return this.rowHeightService?this.rowHeightService.offset(e):0},t.prototype.isIndexVisible=function(e){if(!this.rowHeightService)return!1;var t=this.containerScrollPosition,n=t+this.containerOffsetSize,r=this.rowHeightService.offset(e),o=r+this.rowHeightService.height(e);return r>=t&&o<=n},t.prototype.isListScrolled=function(e){return!!this.rowHeightService&&this.containerScrollPosition!==this.rowHeightService.offset(e)},t.prototype.componentDidMount=function(){var e=this.props.onMount;e&&e.call(void 0,this)},t.prototype.render=function(){var e=this;this.lastTotal===this.props.total&&this.lastDirection===this.direction&&this.lastTake===this.props.take||(this.initServices(),this.lastTotal=this.props.total,this.lastDirection=this.direction,this.lastTake=this.props.take);var t="".concat((this.rowHeightService?this.rowHeightService.totalHeight():0)+this.props.bottomOffset),n="vertical"===this.direction?{height:"".concat(t,"px")}:{width:"".concat(t,"px")},r=(0,f.A)("k-content k-calendar-content k-scrollable",{"k-scrollable-horizontal":"horizontal"===this.direction},this.props.className),o=(0,f.A)("k-scrollable-placeholder",{"k-scrollable-horizontal-placeholder":"horizontal"===this.direction});return s.createElement("div",{ref:function(t){e.scrollContainer=t},onScroll:this.handleScroll,className:r,tabIndex:this.props.tabIndex,role:this.props.role},this.props.children,s.createElement("div",{style:n,className:o}))},t.propTypes={bottomOffset:u.number.isRequired,className:u.string,direction:u.oneOf(["horizontal","vertical"]),forceScroll:u.bool,itemHeight:u.number,itemWidth:u.number,maxScrollDifference:u.number,onScroll:u.func,onScrollAction:u.func,scrollDuration:u.number,scrollOffsetSize:u.number,skip:u.number.isRequired,tabIndex:u.number,take:u.number.isRequired,topOffset:u.number.isRequired,total:u.number.isRequired,role:u.string},t.defaultProps={direction:"vertical",forceScroll:!1,scrollOffsetSize:0,maxScrollDifference:100,scrollDuration:100},t}(s.Component),_=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),R=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},R.apply(this,arguments)},M=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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},P=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){var n=t.props,r=n.onClick,o=n.value;r&&r.call(void 0,o,e)},t.handleMouseEnter=function(){var e=t.props,n=e.onMouseEnter,r=e.value;n&&n.call(void 0,r)},t.handleMouseLeave=function(){var e=t.props,n=e.onMouseLeave,r=e.value;n&&n.call(void 0,r)},t}return _(t,e),t.prototype.shouldComponentUpdate=function(e){var t=this.props,n=t.value,r=M(t,["value"]),o=e.value,i=M(e,["value"]);return!((!n||!o||n.getTime()===o.getTime())&&function(e,t){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 i=n[o];if(e[i]!==t[i])return!1}return!0}(r,i))},t.prototype.render=function(){var e=this.props,t=e.className,n=(e.formattedValue,e.isWeekend),r=e.isFocused,o=(e.isInRange,e.isSelected),i=e.isRangeStart,a=e.isRangeMid,l=e.isRangeEnd,u=e.isRangeSplitStart,c=e.isRangeSplitEnd,d=e.isToday,p=e.isDisabled,h=(e.view,e.value,M(e,["className","formattedValue","isWeekend","isFocused","isInRange","isSelected","isRangeStart","isRangeMid","isRangeEnd","isRangeSplitStart","isRangeSplitEnd","isToday","isDisabled","view","value"])),m="end"===this.props.activeRangeEnd&&l,v="start"===this.props.activeRangeEnd&&i,g=(0,f.A)("k-calendar-td",{"k-range-end":l,"k-range-mid":a,"k-range-split-end":c,"k-range-split-start":u,"k-range-start":i,"k-active":v||m,"k-state-pending-focus":r,"k-selected":o||i||l,"k-today":d,"k-weekend":n,"k-disabled":p},t);return s.createElement("td",R({},h,{className:g,onClick:this.handleClick,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave}),s.createElement("span",{className:"k-link"},this.props.children))},t}(s.Component),N=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),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},F.apply(this,arguments)},A=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return N(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=(e.firstDate,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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["className","firstDate"]));return s.createElement("td",F({className:(0,f.A)("k-calendar-td",t)},n),this.props.children)},t}(s.Component);!function(e){e[e.month=0]="month",e[e.year=1]="year",e[e.decade=2]="decade",e[e.century=3]="century"}(O||(O={}));var j={start:null,end:null},L=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};function V(e){var t=function(t,n,r){for(var o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];if(null===n[r])return null;var a=t?e.isRequired:e;return a.apply(void 0,L([n,r],o,!1))},n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}var z=function(e,t,n){return void 0===t||void 0===n||t<=e&&e<=n?e:e<t?t:n},B=new Date(1980,0,1),H=new Date(1900,0,1),U=new Date(2099,11,31),W=new Date(1980,0,1),K=new Date(1980,0,1,23,59,59),q=function(e,t){var n=(0,m.cloneDate)(e);return n.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),n},Y=function(){return(0,m.getDate)(new Date)},G=function(e,t,n){return!e||!(t&&t>e||n&&n<e)},Z=function(e,t,n){return null===e||!(t&&(0,m.getDate)(t)>(0,m.getDate)(e)||n&&(0,m.getDate)(n)<(0,m.getDate)(e))},X=function(e,t){var n=t||j,r=n.start,o=n.end;return!(!r||!o)&&r<e&&e<o},$=function(e,t,n){void 0===n&&(n=1);for(var r=[],o=e;o<t;o+=n)r.push(o);return r},Q=function(e,t,n){return t.getTime()<=e.getTime()&&e.getTime()<=n.getTime()},J=function(e,t){return e.slice(t).concat(e.slice(0,t))},ee=function(e,t,n){return e?t&&e<t?(0,m.cloneDate)(t):n&&e>n?(0,m.cloneDate)(n):e:e},te=function(e){return function(t,n,r){void 0===n&&(n=""),void 0===r&&(r={});var o=document.createElement(e);return o.className=n,Object.keys(r).map((function(e){return o.style[e]=r[e]})),"string"==typeof t?o.innerHTML=t||"":(t||[]).forEach((function(e){return e&&o.appendChild(e)})),o}},ne=function(){function e(e){this.intl=e}return e.prototype.getWeekNames=function(e){void 0===e&&(e=!1);var t=J(this.intl.dateFormatNames({nameType:"short",type:"days"}),this.intl.firstDay());return e?[""].concat(t):t},e}(),re=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),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},oe.apply(this,arguments)},ie=function(e){return s.createElement("td",{key:e,className:"k-calendar-td"}," ")},ae=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.intl=null,t.weekService=null,t.buildWeekNumber=function(e,n){if(!t.firstDate(e))return ie("week-cell-".concat(n));var r=t.firstDate(e),o=t.getWeekNumber(r),i="kendo-react-calendar-week-cell-".concat(o),a={className:"k-alt",value:o,firstDate:r};return t.props.weekCell?s.createElement(t.props.weekCell,oe({},a,{key:i}),o):s.createElement(A,oe({},a,{key:i}),o)},t.buildRow=function(e){return e.map((function(e,n){if(!e)return ie(n);var r={"aria-selected":e.isSelected},o="kendo-react-calendar-cell-".concat(e.value.getTime()),i=oe(oe(oe({},r),e),{isDisabled:!e.isInRange,view:t.props.activeView,onClick:t.handleClick,onMouseEnter:t.handleMouseEnter,onMouseLeave:t.handleMouseLeave});return t.props.cell?s.createElement(t.props.cell,oe({},i,{key:o}),e.formattedValue):s.createElement(P,oe({},i,{key:o}),e.formattedValue)}))},t.firstDate=function(e){var n=t.firstWeekDateContext(e);return n?n.value:null},t.firstWeekDateContext=function(e){if(!t.weekNumber)return null;for(var n=0,r=e[n];!r&&n<e.length;)r=e[++n];return r},t.handleClick=function(e,n){var r=t.props.onChange;if(r&&n){var o={value:(0,m.cloneDate)(e),target:t,nativeEvent:n&&n.nativeEvent,syntheticEvent:n};r.call(void 0,o)}},t.handleMouseEnter=function(e){var n=t.props.onCellEnter;n&&n.call(void 0,(0,m.cloneDate)(e))},t.handleMouseLeave=function(e){var n=t.props.onCellLeave;n&&n.call(void 0,(0,m.cloneDate)(e))},t}return re(t,e),Object.defineProperty(t.prototype,"min",{get:function(){return this.props.min},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this.props.max},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isHorizontal",{get:function(){return"horizontal"===this.props.direction},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isMonthView",{get:function(){return this.props.activeView===O.month},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"weekNumber",{get:function(){return Boolean(this.props.showWeekNumbers&&this.props.activeView===O.month)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedDate",{get:function(){return void 0!==this.props.selectedDate?this.props.selectedDate:t.defaultProps.selectedDate},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this;this.intl=(0,v.provideIntlService)(this),this.weekService=new ne(this.intl);var t=this.weekService.getWeekNames(this.weekNumber),n=this.props.service.rowLength(this.weekNumber),r=this.props.service.title(this.props.viewDate),o=Y(),i=q(this.props.viewDate,o),a=this.props.service.data({cellUID:this.props.cellUID,min:this.min,max:this.max,focusedDate:this.props.focusedDate,isActiveView:!this.props.bus.canMoveDown(this.props.activeView),selectedDate:this.selectedDate,selectionRange:this.props.selectionRange,viewDate:i});return s.createElement(s.Fragment,null,this.isMonthView&&this.isHorizontal&&s.createElement("thead",{role:"rowgroup",className:"k-calendar-thead"},s.createElement("tr",{role:"row",className:"k-calendar-tr"},t.map((function(e,t){return s.createElement("th",{key:t,className:"k-calendar-th"},e)})))),s.createElement("tbody",{role:"rowgroup",className:"k-calendar-tbody"},!this.isHorizontal&&s.createElement("tr",{role:"presentation",className:"k-calendar-tr"},s.createElement("th",{scope:"col",colSpan:n,className:"k-calendar-th"},r)),a.map((function(t,n){return s.createElement("tr",{role:"row",className:"k-calendar-tr",key:n},e.weekNumber&&e.buildWeekNumber(t,n),e.buildRow(t))}))))},t.prototype.getWeekNumber=function(e){return this.weekNumber&&this.intl?(0,m.weekInYear)(e,this.intl.firstDay()):null},t.propTypes={activeRangeEnd:u.oneOf(["start","end",null]),activeView:u.number.isRequired,cellUID:u.string.isRequired,direction:u.oneOf(["horizontal","vertical"]),focusedDate:u.instanceOf(Date).isRequired,max:u.instanceOf(Date).isRequired,min:u.instanceOf(Date).isRequired,onChange:u.func,selectedDate:u.oneOfType([u.instanceOf(Date),u.arrayOf(u.instanceOf(Date))]),showWeekNumbers:u.bool,viewDate:u.instanceOf(Date).isRequired},t.defaultProps={direction:"vertical",selectedDate:Y(),showWeekNumbers:!1},t}(s.Component);(0,v.registerForIntl)(ae);var le,se=n(7037),ue=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ce=function(){return ce=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},ce.apply(this,arguments)},de=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ue(t,e),t.prototype.render=function(){var e=this.props,t=(e.view,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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["view"]));return s.createElement(se.z,ce({type:"button",fillMode:"flat"},t),this.props.children)},t}(s.PureComponent),pe=new Date(1980,0,1),fe=new Date(1900,0,1),he=new Date(2099,11,31),me=new Date(1980,0,1),ve=new Date(1980,0,1,23,59,59),ge=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ye=function(){return ye=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},ye.apply(this,arguments)},be=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.getTitle=function(){if(!t.props.currentDate)return"";var e=t.rangeLength-1,n=t.props.service.title(t.props.currentDate),r=t.props.service.addToDate(t.props.currentDate,e);return e<1||!t.props.service.isInRange(r,t.min,t.max)?n:"".concat(n," - ").concat(t.props.service.title(r))},t.handleTitleClick=function(e){t.canMoveUp&&t.props.bus.moveUp(t.props.activeView,e)},t}return ge(t,e),Object.defineProperty(t.prototype,"min",{get:function(){return void 0!==this.props.min?this.props.min:t.defaultProps.min},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return void 0!==this.props.max?this.props.max:t.defaultProps.max},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rangeLength",{get:function(){return void 0!==this.props.rangeLength?this.props.rangeLength:t.defaultProps.rangeLength},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canMoveUp",{get:function(){return this.props.bus.canMoveUp(this.props.activeView)},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this.getTitle(),t=(0,f.A)("k-calendar-title"),n={children:e,value:e,view:this.props.activeView,className:t,onClick:this.handleTitleClick,disabled:!this.canMoveUp},r=this.props.headerTitle?s.createElement(this.props.headerTitle,ye({},n),e):s.createElement(de,ye({},n),e);return s.createElement("div",{className:"k-calendar-header k-hstack"},r,s.createElement("span",{className:"k-spacer"}),s.createElement("span",{className:"k-calendar-nav k-hstack"},this.props.commands))},t.propTypes={activeView:u.number.isRequired,currentDate:u.instanceOf(Date).isRequired,max:u.instanceOf(Date).isRequired,min:u.instanceOf(Date).isRequired,rangeLength:u.number},t.defaultProps={rangeLength:1,min:fe,max:he},t}(s.Component);(0,v.registerForLocalization)(be);var Ce="multiviewcalendar.prevView",Ee="multiviewcalendar.nextView",we="dateinput.increment",ke="dateinput.decrement",Se="calendar.today",Oe="datepicker.toggleCalendar",De="daterangepicker.swapStartEnd",xe="daterangepicker.start",Ie="daterangepicker.end",Te="daterangepicker.separator",_e="datetimepicker.toggleDateTimeSelector",Re="timepicker.now",Me="timepicker.selectNow",Pe="timepicker.cancel",Ne="timepicker.set",Fe="timepicker.toggleTimeSelector",Ae="timepicker.toggleClock",je="datetimepicker.date",Le="datetimepicker.time",Ve="datetimepicker.cancel",ze="datetimepicker.set",Be=((le={})[Se]="TODAY",le[Re]="NOW",le[Ne]="Set",le[Pe]="Cancel",le[je]="Date",le[Le]="Time",le[Ve]="Cancel",le[ze]="Set",le[xe]="Start",le[Ie]="End",le[Te]=" ",le[Me]="Select Now",le[Fe]="Toggle TimeSelector",le[Ae]="Toggle Clock",le[we]="Increase value",le[ke]="Decrease value",le[Oe]="Toggle calendar",le[Ce]="Navigate to previous view",le[Ee]="Navigate to next view",le[De]="Swap start and end values",le[_e]="Toggle date-time selector",le),He=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ue=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.localization=null,t.handleClick=function(e){if(t.todayIsInRange&&t.props.onClick){var n={syntheticEvent:e,nativeEvent:e.nativeEvent,value:ee(Y(),t.min,t.max),target:t,isTodayClick:!0};t.props.onClick.call(void 0,n)}},t}return He(t,e),Object.defineProperty(t.prototype,"min",{get:function(){return void 0!==this.props.min?this.props.min:t.defaultProps.min},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return void 0!==this.props.max?this.props.max:t.defaultProps.max},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"todayIsInRange",{get:function(){return G(Y(),(0,m.getDate)(this.min),(0,m.getDate)(this.max))},enumerable:!1,configurable:!0}),t.prototype.render=function(){this.localization=(0,v.provideLocalizationService)(this);var e=this.localization.toLanguageString(Se,Be[Se]),t=(0,f.A)("k-nav-today",{"k-disabled":this.props.disabled});return s.createElement("span",{className:t,onClick:this.handleClick},e)},t.propTypes={max:u.instanceOf(Date).isRequired,min:u.instanceOf(Date).isRequired,onClick:u.func,disabled:u.bool},t.defaultProps={min:fe,max:he},t}(s.Component);(0,v.registerForLocalization)(Ue);var We=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ke=function(e){function t(t){var n=e.call(this,t)||this;return n.virtualization=null,n.calendarView=null,n.table=null,n.intl=null,n.bottomOffset=0,n.viewOffset=0,n.viewHeight=0,n._element=null,n.isActive=!1,n.animateToIndex=!0,n.shouldScroll=!1,n.focusActiveDate=function(){if(n._element){var e=n._element.querySelector("td.k-focus"),t=n._element.querySelector(".k-state-pending-focus");e&&e[0]&&e[0].classList.remove("k-focus"),t&&t.classList.add("k-focus"),n.isActive=!0}},n.blurActiveDate=function(){if(n._element){var e=n._element.querySelector("td.k-focus");e&&e.classList.remove("k-focus"),n.isActive=!1}},n.handleVirtualizationMount=function(e){if(n.virtualization=e,n.virtualization&&n.table){n.table.style.transform="translateY(".concat(n.viewOffset,"px)");var t=ee(n.props.focusedDate,n.props.min,n.props.max),r=n.props.service.skip(t,n.props.min);n.virtualization.scrollToIndex(r)}},n.buildMonthView=function(e,t){return s.createElement("table",{key:"calendar-view-list-weekdays",className:"k-calendar-table k-calendar-weekdays"},s.createElement("colgroup",null,e.map((function(e,t){return s.createElement("col",{key:t})}))),s.createElement("thead",{className:"k-calendar-thead"},s.createElement("tr",{className:"k-calendar-tr"},t.map((function(e,t){return s.createElement("th",{key:t,className:"k-calendar-th"},e)})))))},n.buildDates=function(e,t){var r=n.props.cellUID;return s.createElement("table",{className:"k-calendar-table",ref:function(e){return n.table=e}},s.createElement("colgroup",null,e.map((function(e,t){return s.createElement("col",{key:t})}))),t.map((function(e){return s.createElement(ae,{ref:function(e){n.calendarView||(n.calendarView=e)},key:e.getTime(),activeView:n.props.activeView,viewDate:e,min:n.props.min,max:n.props.max,cellUID:r,focusedDate:n.props.focusedDate,cell:n.props.cell,selectedDate:n.props.value,showWeekNumbers:n.weekNumber,onChange:n.handleDateChange,bus:n.props.bus,service:n.props.service,weekCell:n.props.weekCell})})))},n.calculateHeights=function(){if(n.props.dom){var e=n.props.activeView===O.month?n.props.dom.scrollableContentHeight:n.props.dom.scrollableYearContentHeight;n.bottomOffset=e-n.props.dom.viewHeight(n.props.activeView),n.viewOffset=-1*n.props.dom.headerHeight,n.viewHeight=n.props.dom.viewHeight(n.props.activeView)||1}},n.getTake=function(e,t){return Math.min(t-e,n.take)},n.handleScrollAction=function(e){var t=e.index,r=e.scrollAction,o=e.pageAction,i=o?o.skip:n.state.skip;if(n.state.index===t&&n.state.skip===i||n.setState({index:t,skip:i}),n.table&&r){var a="translateY(".concat(r.offset,"px)");n.table.style.transform=a}},n.handleTodayClick=function(e){n.shouldScroll=!0,n.handleDateChange.call(void 0,e,!0)},n.handleDateChange=function(e,t){void 0===t&&(t=!1);var r=n.props.onChange;if(r){var o={syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,value:(0,m.cloneDate)(e.value),target:n,isTodayClick:t};r.call(void 0,o)}},n.lastView=n.props.activeView,n.lastFocus=n.props.focusedDate,n.state={skip:n.props.service.skip(n.props.focusedDate,n.props.min),index:n.props.service.skip(n.props.focusedDate,n.props.min)},n}return We(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"weekNames",{get:function(){this.intl=(0,v.provideIntlService)(this);var e=J(this.intl.dateFormatNames({nameType:"short",type:"days"}),this.intl.firstDay());return this.weekNumber?[""].concat(e):e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"weekNumber",{get:function(){return Boolean(this.props.showWeekNumbers&&this.props.activeView===O.month)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"take",{get:function(){return void 0!==this.props.take?this.props.take:t.defaultProps.take},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"animate",{get:function(){return Boolean(this.props.smoothScroll&&this.animateToIndex)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"todayIsInRange",{get:function(){return G(Y(),(0,m.getDate)(this.props.min),(0,m.getDate)(this.props.max))},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(e,t){this.shouldScroll=!1,void 0!==this.indexToScroll&&this.virtualization&&this.virtualization[this.animate?"animateToIndex":"scrollToIndex"](this.indexToScroll),this.isActive&&this.focusActiveDate(),this.lastView=this.props.activeView,this.indexToScroll=void 0},t.prototype.render=function(){var e=this;this.calculateHeights();var t=this.lastView!==this.props.activeView,n=ee(this.props.focusedDate,this.props.min,this.props.max),r=t?this.props.service.skip(n,this.props.min):this.state.skip,o=this.props.service.total(this.props.min,this.props.max),i=this.getTake(r,o),a=this.props.service.addToDate(this.props.min,r),l=this.props.service.addToDate(this.props.min,this.state.index),u=new Array(this.props.service.rowLength(this.weekNumber)).fill(""),c=this.props.activeView!==this.lastView;this.animateToIndex=!c,(c||!(0,m.isEqualDate)(this.lastFocus,n)||this.shouldScroll||!this.props.shouldScroll||this.props.shouldScroll())&&(this.indexToScroll=this.props.service.skip(n,this.props.min)),this.lastFocus=n;var d=(0,f.A)("k-calendar-view k-vstack",{"k-calendar-monthview":this.props.activeView===O.month,"k-calendar-yearview":this.props.activeView===O.year,"k-calendar-decadeview":this.props.activeView===O.decade,"k-calendar-centuryview":this.props.activeView===O.century}),p=this.buildDates(u,this.props.service.datesList(a,i)),h=s.createElement(s.Fragment,null,s.createElement(be,{key:"calendar-view-list-header",currentDate:l,min:this.props.min,max:this.props.max,activeView:this.props.activeView,bus:this.props.bus,service:this.props.service,headerTitle:this.props.headerTitle,commands:s.createElement(s.Fragment,null,s.createElement(Ue,{min:this.props.min,max:this.props.max,onClick:this.handleTodayClick,disabled:!this.todayIsInRange}))}),this.props.activeView===O.month&&this.buildMonthView(u,this.weekNames),s.createElement(T,{key:"calendar-view-list-content",skip:r,take:this.take,total:o,itemHeight:this.viewHeight,topOffset:this.viewOffset,bottomOffset:this.bottomOffset,scrollOffsetSize:this.viewOffset,maxScrollDifference:this.viewHeight,onScroll:this.props.onScroll,onScrollAction:this.handleScrollAction,onMount:this.handleVirtualizationMount,children:p}));return s.createElement("div",{ref:function(t){e._element=t},className:d},this.props.dom.didCalculate?h:null)},t.propTypes={activeView:u.number.isRequired,bottomOffset:u.number,cellUID:u.string.isRequired,focusedDate:u.instanceOf(Date).isRequired,max:u.instanceOf(Date).isRequired,min:u.instanceOf(Date).isRequired,onChange:u.func,showWeekNumbers:u.bool,smoothScroll:u.bool,take:u.number,value:u.instanceOf(Date),viewHeight:u.number,viewOffset:u.number},t.defaultProps={take:5,showWeekNumbers:!1,smoothScroll:!0},t}(s.Component);(0,v.registerForIntl)(Ke);var qe,Ye,Ge=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ze=function(){return Ze=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},Ze.apply(this,arguments)},Xe=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){var n=t.props,r=n.onClick,o=n.value;r&&r.call(void 0,o,e)},t}return Ge(t,e),t.prototype.render=function(){var e=this.props,t=e.isRangeStart,n=(e.value,e.text,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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["isRangeStart","value","text"]));return s.createElement("li",Ze({},n,{onClick:this.handleClick}),s.createElement("span",{className:(0,f.A)({"k-calendar-navigation-marker":t})},this.props.children))},t}(s.Component),$e=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qe=function(){return Qe=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},Qe.apply(this,arguments)},Je=function(e){function t(t){var n=e.call(this,t)||this;n.virtualization=null,n.list=null,n.itemHeight=0,n.topOffset=0,n.maxViewHeight=0,n.bottomOffset=0,n.handleVirtualizationMount=function(e){if(n.virtualization=e,n.virtualization&&n.list){n.list.style.transform="translateY(".concat(n.topOffset,"px)");var t=ee(n.props.focusedDate,n.props.min,n.props.max),r=n.props.service.skip(t,n.props.min);n.virtualization.scrollToIndex(r)}},n.buildNavigationItem=function(e){var t=n.props.service.navigationTitle(e),r=n.props.service.isRangeStart(e),o="kendo-react-calendar-nav-item-".concat(e.getTime()),i={text:t,value:e,isRangeStart:r,view:n.props.activeView,onClick:n.handleDateChange};return n.props.navigationItem?s.createElement(n.props.navigationItem,Qe({},i,{key:o}),t):s.createElement(Xe,Qe({},i,{key:o}),t)},n.calculateHeights=function(){var e=n.props.dom.calendarHeight;n.itemHeight=n.props.dom.navigationItemHeight||1,n.maxViewHeight=n.props.dom.monthViewHeight,n.topOffset=(e-n.itemHeight)/2,n.bottomOffset=e-n.itemHeight},n.handleDateChange=function(e,t){var r=n.props.onChange;if(r&&t){var o={value:(0,m.cloneDate)(e),target:n,nativeEvent:t&&t.nativeEvent,syntheticEvent:t};r.call(void 0,o)}},n.handleScrollAction=function(e){var t=e.scrollAction,r=e.pageAction,o=r?r.skip:n.state.skip;if(n.state.skip!==o&&n.setState({skip:o}),n.list&&t){var i="translateY(".concat(t.offset,"px)");n.list.style.transform=i}},n.lastView=n.props.activeView,n.lastFocus=n.props.focusedDate;var r=n.props.service.skip(n.props.focusedDate,n.props.min),o=n.props.service.total(n.props.min,n.props.max);return n.state={skip:r-n.getTake(r,o)>0?r:0},n}return $e(t,e),Object.defineProperty(t.prototype,"take",{get:function(){return void 0!==this.props.take?this.props.take:t.defaultProps.take},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(e,t){void 0!==this.indexToScroll&&this.virtualization&&this.virtualization.scrollToIndex(this.indexToScroll),this.lastView=this.props.activeView,this.lastFocus=this.props.focusedDate,this.indexToScroll=void 0},t.prototype.render=function(){var e=this;this.calculateHeights();var t=this.lastView!==this.props.activeView,n=ee(this.props.focusedDate,this.props.min,this.props.max),r=t?this.props.service.skip(n,this.props.min):this.state.skip,o=this.props.service.total(this.props.min,this.props.max),i=this.getTake(r,o),a=this.props.service.addToDate(this.props.min,r),l=this.props.service.datesList(a,i);this.props.activeView===this.lastView&&(0,m.isEqual)(n,this.lastFocus)||(this.indexToScroll=this.props.service.skip(n,this.props.min));var u=s.createElement(T,{skip:r,take:this.take,total:o,itemHeight:this.itemHeight,topOffset:this.topOffset,bottomOffset:this.bottomOffset,onScroll:this.props.onScroll,maxScrollDifference:this.maxViewHeight,onScrollAction:this.handleScrollAction,onMount:this.handleVirtualizationMount},s.createElement("ul",{ref:function(t){e.list=t},className:"k-reset"},l.map((function(t){return e.buildNavigationItem(t)}))));return s.createElement("div",{className:"k-calendar-navigation"},s.createElement("span",{className:"k-calendar-navigation-highlight"}),this.props.dom.didCalculate?u:null)},t.prototype.getTake=function(e,t){return Math.min(t-e,this.take)},t.propTypes={activeView:u.number.isRequired,focusedDate:u.instanceOf(Date).isRequired,max:u.instanceOf(Date).isRequired,min:u.instanceOf(Date).isRequired,onChange:u.func,take:u.number},t.defaultProps={take:30},t}(s.Component),et=n(7827),tt=function(){function e(){this.calendarHeight=0,this.headerHeight=0,this.monthViewHeight=0,this.yearViewHeight=0,this.decadeViewHeight=0,this.centuryViewHeight=0,this.navigationItemHeight=0,this.scrollableContentHeight=0,this.scrollableYearContentHeight=0,this.calendarWidth=0,this.monthViewWidth=0,this.yearViewWidth=0,this.decadeViewWidth=0,this.centuryViewWidth=0,this.scrollableContentWidth=0,this.didCalculate=!1,this.hostContainer=null}return e.prototype.ensureHeights=function(){void 0===this.calendarHeight&&this.calculateHeights()},e.prototype.calculateHeights=function(e){var t=this;if(et.N){var n,r=te("div"),o=te("ul"),i=te("li"),a=te("td"),l=te("th"),s=te("tr"),u=te("tbody"),c=te("thead"),d=te("table"),p=function(){return r('\n <span class="k-button k-button-md k-button-rectangle k-button-solid k-button-solid-base k-button-flat k-calendar-title">\n <span className="k-button-text">March 2017</span>\n </span>\n <span class="k-spacer"></span>\n <span class="k-calendar-nav k-hstack"><span class="k-nav-today">TODAY</span></span>\n ',"k-calendar-header k-hstack")},f=function(e,t){return new Array(e).fill("1").map(t)},h=function(e){return r(e,"k-content k-calendar-content k-scrollable")},m=function(e,t,n){var o,i=e.cells,m=e.rows;return function(){return et.N?(o||(o=function(e,t,n){return r(n?[p(),d([c([s([l("MO","k-calendar-th")],"k-calendar-tr")],"k-calendar-thead")],"k-calendar-table k-calendar-weekdays"),h([e,e])]:[p(),h([e,e])],t,{left:"-10000px",position:"absolute"})}(function(e,t){return void 0===t&&(t=1),d([u([s([a("1","k-calendar-td k-alt")])].concat(f(e,(function(){return s(f(t,(function(e){return a('<span class="k-link">'.concat(e,"</span>"),"k-calendar-td")})),"k-calendar-tr")}))),"k-calendar-tbody")],"k-calendar-table")}(m,i),t,n)),o):null}},v=function(e){return e.querySelector(".k-scrollable")},g=function(e){var t=v(e);return t.className="".concat(t.className," k-scrollable-horizontal"),e},y=m({cells:7,rows:6},"k-calendar-view k-calendar-monthview k-vstack",!0),b=m({cells:5,rows:3},"k-calendar-view k-calendar-yearview",!1),C=m({cells:5,rows:2},"k-calendar-view k-calendar-decadeview",!1),E=function(e){return parseFloat(window.getComputedStyle(e).height)||e.offsetHeight},w=function(e){var t=window.getComputedStyle(e);return parseFloat(t.width)+parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)||e.offsetWidth},k=function(e){return e.querySelector("tbody")};this.didCalculate=!0,e&&(this.hostContainer=e),this.batch(y(),(function(e){var n=k(e);t.calendarHeight=E(e),t.monthViewHeight=E(n),t.headerHeight=E(n.children[0]),t.scrollableContentHeight=E(v(e))})),this.batch(g(y()),(function(e){var n=k(e);t.calendarWidth=w(e),t.monthViewWidth=w(n),t.scrollableContentWidth=w(v(e))})),this.batch(b(),(function(e){t.yearViewHeight=E(k(e)),t.scrollableYearContentHeight=E(v(e))})),this.batch(g(b()),(function(e){t.yearViewWidth=w(k(e))})),this.batch(C(),(function(e){t.decadeViewHeight=E(k(e)),t.centuryViewHeight=t.decadeViewHeight})),this.batch(g(C()),(function(e){t.decadeViewWidth=w(k(e)),t.centuryViewWidth=t.decadeViewWidth})),this.batch(et.N?(n||(n=r([h([o([i("<span>FEB</span>")])])],"k-calendar-navigation",{left:"0px",position:"absolute"})),n):null,(function(e){t.navigationItemHeight=E(e.querySelector("li"))}))}},e.prototype.viewHeight=function(e){return this.viewDimension(e,"height")},e.prototype.viewWidth=function(e){return this.viewDimension(e,"width")},e.prototype.viewDimension=function(e,t){var n="height"===t?"ViewHeight":"ViewWidth";switch(e){case O.month:return this["month".concat(n)];case O.year:return this["year".concat(n)];case O.decade:return this["decade".concat(n)];case O.century:return this["century".concat(n)];default:return 1}},e.prototype.batch=function(e,t){var n=this.hostContainer||document.body,r=n.appendChild(e);t(r),n.removeChild(r)},e}();!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.Up=2]="Up",e[e.Down=3]="Down",e[e.PrevView=4]="PrevView",e[e.NextView=5]="NextView",e[e.FirstInView=6]="FirstInView",e[e.LastInView=7]="LastInView",e[e.LowerView=8]="LowerView",e[e.UpperView=9]="UpperView"}(qe||(qe={}));var nt,rt,ot,it,at=[[]],lt=((Ye={})[qe.Left]=function(e){return(0,m.addDecades)(e,-1)},Ye[qe.Up]=function(e){return(0,m.addDecades)(e,-5)},Ye[qe.Right]=function(e){return(0,m.addDecades)(e,1)},Ye[qe.Down]=function(e){return(0,m.addDecades)(e,5)},Ye[qe.PrevView]=function(e){return(0,m.addCenturies)(e,-1)},Ye[qe.NextView]=function(e){return(0,m.addCenturies)(e,1)},Ye[qe.FirstInView]=function(e){return(0,m.firstDecadeOfCentury)(e)},Ye[qe.LastInView]=function(e){return(0,m.lastDecadeOfCentury)(e)},Ye),st=function(){function e(){}return e.prototype.addToDate=function(e,t){return(0,m.addCenturies)(e,t)},e.prototype.datesList=function(e,t){return $(0,t).map((function(t){return(0,m.addCenturies)(e,t)}))},e.prototype.data=function(e){var t=this,n=e.cellUID,r=e.focusedDate,o=e.isActiveView,i=e.max,a=e.min,l=e.selectedDate,s=e.selectionRange,u=void 0===s?j:s,c=e.viewDate;if(!c)return at;var d=$(0,4),p=(0,m.firstDecadeOfCentury)(c),f=(0,m.lastDecadeOfCentury)(c),h=Y();return $(0,3).map((function(e){var s=(0,m.addDecades)(p,4*e);return d.map((function(e){var c=t.normalize((0,m.addDecades)(s,e),a,i),d=t.isEqual(c,u.start),v=t.isEqual(c,u.end),g=!d&&!v&&X(c,u),y=o&&(Array.isArray(l)?t.isSelectedFromArray(c,l,a,i):G(l,a,i)&&t.isEqual(c,l));return Q(c,p,f)?{formattedValue:t.value(c),id:"".concat(n).concat(c.getTime()),isFocused:t.isEqual(c,r),isSelected:y,isWeekend:!1,isInRange:G(c,a,i),isRangeStart:d,isRangeMid:g,isRangeEnd:v,isRangeSplitEnd:g&&t.isEqual(c,f),isRangeSplitStart:g&&t.isEqual(c,p),isToday:t.isEqual(c,h),title:t.cellTitle(c),value:c}:null}))}))},e.prototype.isSelectedFromArray=function(e,t,n,r){var o=this,i=!1;return t.forEach((function(t){G(e,n,r)&&o.isEqual(e,t)&&(i=!0)})),i},e.prototype.isEqual=function(e,t){return!(!e||!t)&&(0,m.firstYearOfDecade)(e).getFullYear()===(0,m.firstYearOfDecade)(t).getFullYear()},e.prototype.isInArray=function(e,t){if(!t.length)return!1;var n=e.getFullYear();return t[0].getFullYear()<=n&&n<=t[t.length-1].getFullYear()+99},e.prototype.isInRange=function(e,t,n){var r=(0,m.firstYearOfDecade)(e).getFullYear(),o=!t||(0,m.firstYearOfDecade)(t).getFullYear()<=r,i=!n||r<=(0,m.firstYearOfDecade)(n).getFullYear();return o&&i},e.prototype.isInSameView=function(e,t){return 0===(0,m.durationInCenturies)(e,t)},e.prototype.isRangeStart=function(e){return e.getFullYear()%1e3==0},e.prototype.move=function(e,t){var n=lt[t];return n?n(e):e},e.prototype.cellTitle=function(e){return(0,m.firstYearOfDecade)(e).getFullYear().toString()},e.prototype.navigationTitle=function(e){return e?(0,m.firstDecadeOfCentury)(e).getFullYear().toString():""},e.prototype.title=function(e){return e?"".concat((0,m.firstDecadeOfCentury)(e).getFullYear()," - ").concat((0,m.lastDecadeOfCentury)(e).getFullYear()):""},e.prototype.rowLength=function(e){return 4},e.prototype.skip=function(e,t){return(0,m.durationInCenturies)(t,e)},e.prototype.total=function(e,t){return(0,m.durationInCenturies)(e,t)+1},e.prototype.value=function(e){return e?(0,m.firstYearOfDecade)(e).getFullYear().toString():""},e.prototype.viewDate=function(e,t,n){return void 0===n&&(n=1),(0,m.durationInCenturies)(e,t)<n?(0,m.addCenturies)(e,-1):e},e.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?(0,m.cloneDate)(t):e>n&&this.isEqual(e,n)?(0,m.cloneDate)(n):e},e}(),ut=[[]],ct=((nt={})[qe.Left]=function(e){return(0,m.addYears)(e,-1)},nt[qe.Up]=function(e){return(0,m.addYears)(e,-5)},nt[qe.Right]=function(e){return(0,m.addYears)(e,1)},nt[qe.Down]=function(e){return(0,m.addYears)(e,5)},nt[qe.PrevView]=function(e){return(0,m.addDecades)(e,-1)},nt[qe.NextView]=function(e){return(0,m.addDecades)(e,1)},nt[qe.FirstInView]=function(e){return(0,m.firstYearOfDecade)(e)},nt[qe.LastInView]=function(e){return(0,m.lastYearOfDecade)(e)},nt),dt=function(){function e(){}return e.prototype.addToDate=function(e,t){return(0,m.addDecades)(e,t)},e.prototype.datesList=function(e,t){return $(0,t).map((function(t){return(0,m.addDecades)(e,t)}))},e.prototype.data=function(e){var t=this,n=e.cellUID,r=e.focusedDate,o=e.isActiveView,i=e.max,a=e.min,l=e.selectedDate,s=e.selectionRange,u=void 0===s?j:s,c=e.viewDate;if(!c)return ut;var d=$(0,4),p=(0,m.firstYearOfDecade)(c),f=(0,m.lastYearOfDecade)(c),h=Y();return $(0,3).map((function(e){var s=(0,m.addYears)(p,4*e);return d.map((function(e){var c=t.normalize((0,m.addYears)(s,e),a,i),d=t.isEqual(c,u.start),v=t.isEqual(c,u.end),g=!d&&!v&&X(c,u),y=o&&(Array.isArray(l)?t.isSelectedFromArray(c,l,a,i):G(l,a,i)&&t.isEqual(c,l));return Q(c,p,f)?{formattedValue:t.value(c),id:"".concat(n).concat(c.getTime()),isFocused:t.isEqual(c,r),isSelected:y,isWeekend:!1,isInRange:G(c,a,i),isRangeStart:d,isRangeMid:g,isRangeEnd:v,isRangeSplitEnd:g&&t.isEqual(c,f),isRangeSplitStart:g&&t.isEqual(c,p),isToday:t.isEqual(c,h),title:t.cellTitle(c),value:c}:null}))}))},e.prototype.isSelectedFromArray=function(e,t,n,r){var o=this,i=!1;return t.forEach((function(t){G(e,n,r)&&o.isEqual(e,t)&&(i=!0)})),i},e.prototype.isEqual=function(e,t){return!(!e||!t)&&e.getFullYear()===t.getFullYear()},e.prototype.isInArray=function(e,t){if(!t.length)return!1;var n=e.getFullYear();return t[0].getFullYear()<=n&&n<=t[t.length-1].getFullYear()+9},e.prototype.isInRange=function(e,t,n){var r=e.getFullYear(),o=!t||t.getFullYear()<=r,i=!n||r<=n.getFullYear();return o&&i},e.prototype.isRangeStart=function(e){return e.getFullYear()%100==0},e.prototype.isInSameView=function(e,t){return 0===(0,m.durationInDecades)(e,t)},e.prototype.move=function(e,t){var n=ct[t];return n?n(e):e},e.prototype.cellTitle=function(e){return e.getFullYear().toString()},e.prototype.navigationTitle=function(e){return e?(0,m.firstYearOfDecade)(e).getFullYear().toString():""},e.prototype.title=function(e){return e?"".concat((0,m.firstYearOfDecade)(e).getFullYear()," - ").concat((0,m.lastYearOfDecade)(e).getFullYear()):""},e.prototype.rowLength=function(e){return 4},e.prototype.skip=function(e,t){return(0,m.durationInDecades)(t,e)},e.prototype.total=function(e,t){return(0,m.durationInDecades)(e,t)+1},e.prototype.value=function(e){return e?e.getFullYear().toString():""},e.prototype.viewDate=function(e,t,n){return void 0===n&&(n=1),(0,m.durationInDecades)(e,t)<n?(0,m.addDecades)(e,-1):e},e.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?(0,m.cloneDate)(t):e>n&&this.isEqual(e,n)?(0,m.cloneDate)(n):e},e}(),pt=[[]],ft=((rt={})[qe.Left]=function(e){return(0,m.addDays)(e,-1)},rt[qe.Up]=function(e){return(0,m.addWeeks)(e,-1)},rt[qe.Right]=function(e){return(0,m.addDays)(e,1)},rt[qe.Down]=function(e){return(0,m.addWeeks)(e,1)},rt[qe.PrevView]=function(e){return(0,m.addMonths)(e,-1)},rt[qe.NextView]=function(e){return(0,m.addMonths)(e,1)},rt[qe.FirstInView]=function(e){return(0,m.firstDayOfMonth)(e)},rt[qe.LastInView]=function(e){return(0,m.lastDayOfMonth)(e)},rt),ht=function(){function e(e){this.intl=e}return e.prototype.addToDate=function(e,t){return(0,m.addMonths)(e,t)},e.prototype.datesList=function(e,t){return $(0,t).map((function(t){return(0,m.addMonths)(e,t)}))},e.prototype.data=function(e){var t=this,n=e.cellUID,r=e.focusedDate,o=e.isActiveView,i=e.max,a=e.min,l=e.selectedDate,s=e.selectionRange,u=void 0===s?j:s,c=e.viewDate;if(!c)return pt;var d=(0,m.firstDayOfMonth)(c),p=(0,m.lastDayOfMonth)(c),f=(0,m.dayOfWeek)(d,this.intl.firstDay(),-1),h=$(0,7),v=Y();return $(0,6).map((function(e){var s=(0,m.addDays)(f,7*e);return h.map((function(e){var c=t.normalize((0,m.addDays)(s,e),a,i);if(c<d||c>p)return null;var f=t.isEqual(c,u.start),h=t.isEqual(c,u.end),g=!f&&!h&&X(c,u),y=o&&(Array.isArray(l)?t.isSelectedFromArray(c,l,a,i):G(l,a,i)&&t.isEqual(c,l));return{formattedValue:t.value(c),id:"".concat(n).concat(c.getTime()),isFocused:t.isEqual(c,r),isSelected:y,isInRange:G(c,a,i),isWeekend:t.isWeekend(c),isRangeStart:f,isRangeMid:g,isRangeEnd:h,isRangeSplitStart:g&&t.isEqual(c,d),isRangeSplitEnd:g&&t.isEqual(c,p),isToday:t.isEqual(c,v),title:t.cellTitle(c),value:c}}))}))},e.prototype.isEqual=function(e,t){return!(!e||!t)&&(0,m.getDate)(e).getTime()===(0,m.getDate)(t).getTime()},e.prototype.isSelectedFromArray=function(e,t,n,r){var o=this,i=!1;return t.forEach((function(t){G(e,n,r)&&o.isEqual(e,t)&&(i=!0)})),i},e.prototype.isInArray=function(e,t){return!!t.length&&(0,m.firstDayOfMonth)(t[0])<=e&&e<=(0,m.lastDayOfMonth)(t[t.length-1])},e.prototype.isInRange=function(e,t,n){var r=(0,m.getDate)(e),o=!t||(0,m.getDate)(t)<=r,i=!n||r<=(0,m.getDate)(n);return o&&i},e.prototype.isInSameView=function(e,t){return 0===(0,m.durationInMonths)(e,t)},e.prototype.isRangeStart=function(e){return!e.getMonth()},e.prototype.move=function(e,t){var n=ft[t];return n?n(e):e},e.prototype.cellTitle=function(e){return this.intl.formatDate(e,"D")},e.prototype.navigationTitle=function(e){return e?this.isRangeStart(e)?e.getFullYear().toString():this.abbrMonthNames()[e.getMonth()]:""},e.prototype.title=function(e){return"".concat(this.wideMonthNames()[e.getMonth()]," ").concat(e.getFullYear())},e.prototype.rowLength=function(e){return 7+(e?1:0)},e.prototype.skip=function(e,t){return(0,m.durationInMonths)(t,e)},e.prototype.total=function(e,t){return(0,m.durationInMonths)(e,t)+1},e.prototype.value=function(e){return e?e.getDate().toString():""},e.prototype.viewDate=function(e,t,n){return void 0===n&&(n=1),(0,m.durationInMonths)(e,t)<n?(0,m.addMonths)(e,-1):e},e.prototype.isWeekend=function(e){var t=e.getDay();return 6===t||0===t},e.prototype.abbrMonthNames=function(){return this.intl.dateFormatNames({nameType:"abbreviated",type:"months"})},e.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?(0,m.getDate)(t):e>n&&this.isEqual(e,n)?(0,m.getDate)(n):e},e.prototype.wideMonthNames=function(){return this.intl.dateFormatNames({nameType:"wide",type:"months",standAlone:!0})},e}(),mt=[[]],vt=((ot={})[qe.Left]=function(e){return(0,m.addMonths)(e,-1)},ot[qe.Up]=function(e){return(0,m.addMonths)(e,(t=e.getMonth())>4?-5:t<2?-2:-7);var t},ot[qe.Right]=function(e){return(0,m.addMonths)(e,1)},ot[qe.Down]=function(e){return(0,m.addMonths)(e,(t=e.getMonth())<7?5:t<10?7:2);var t},ot[qe.PrevView]=function(e){return(0,m.addYears)(e,-1)},ot[qe.NextView]=function(e){return(0,m.addYears)(e,1)},ot[qe.FirstInView]=function(e){return(0,m.firstMonthOfYear)(e)},ot[qe.LastInView]=function(e){return(0,m.lastMonthOfYear)(e)},ot),gt=function(){function e(e){this._intl=e}return e.prototype.addToDate=function(e,t){return(0,m.addYears)(e,t)},e.prototype.datesList=function(e,t){return $(0,t).map((function(t){return(0,m.addYears)(e,t)}))},e.prototype.data=function(e){var t=this,n=e.cellUID,r=e.focusedDate,o=e.isActiveView,i=e.max,a=e.min,l=e.selectedDate,s=e.selectionRange,u=void 0===s?j:s,c=e.viewDate;if(!c)return mt;var d=this.abbrMonthNames(),p=(0,m.firstMonthOfYear)(c),f=(0,m.lastMonthOfYear)(c),h=p.getFullYear(),v=$(0,4),g=Y();return $(0,3).map((function(e){var s=(0,m.addMonths)(p,4*e);return v.map((function(e){var c=t.normalize((0,m.addMonths)(s,e),a,i);if(h<c.getFullYear())return null;var v=t.isEqual(c,u.start),y=t.isEqual(c,u.end),b=!v&&!y&&X(c,u),C=o&&(Array.isArray(l)?t.isSelectedFromArray(c,l,a,i):G(l,a,i)&&t.isEqual(c,l));return{formattedValue:d[c.getMonth()],id:"".concat(n).concat(c.getTime()),isFocused:t.isEqual(c,r),isSelected:C,isInRange:G(c,a,i),isWeekend:!1,isRangeStart:v,isRangeMid:b,isRangeEnd:y,isRangeSplitEnd:b&&t.isEqual(c,f),isRangeSplitStart:b&&t.isEqual(c,p),isToday:t.isEqual(c,g),title:t.cellTitle(c),value:c}}))}))},e.prototype.isSelectedFromArray=function(e,t,n,r){var o=this,i=!1;return t.forEach((function(t){G(e,n,r)&&o.isEqual(e,t)&&(i=!0)})),i},e.prototype.isEqual=function(e,t){return!(!e||!t)&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()},e.prototype.isInArray=function(e,t){if(!t.length)return!1;var n=e.getFullYear();return t[0].getFullYear()<=n&&n<=t[t.length-1].getFullYear()},e.prototype.isInRange=function(e,t,n){var r=(0,m.createDate)(e.getFullYear(),e.getMonth(),1),o=!t||(0,m.createDate)(t.getFullYear(),t.getMonth(),1)<=r,i=!n||r<=(0,m.createDate)(n.getFullYear(),n.getMonth(),1);return o&&i},e.prototype.isInSameView=function(e,t){return 0===(0,m.durationInYears)(e,t)},e.prototype.isRangeStart=function(e){return e.getFullYear()%10==0},e.prototype.move=function(e,t){var n=vt[t];return n?n(e):e},e.prototype.cellTitle=function(e){return"".concat(e.getFullYear()," ").concat(this.value(e))},e.prototype.navigationTitle=function(e){return this.title(e)},e.prototype.title=function(e){return e?e.getFullYear().toString():""},e.prototype.rowLength=function(e){return 4},e.prototype.skip=function(e,t){return(0,m.durationInYears)(t,e)},e.prototype.total=function(e,t){return(0,m.durationInYears)(e,t)+1},e.prototype.value=function(e){return e?this.abbrMonthNames()[e.getMonth()]:""},e.prototype.viewDate=function(e,t,n){return void 0===n&&(n=1),(0,m.durationInYears)(e,t)<n?(0,m.addYears)(e,-1):e},e.prototype.abbrMonthNames=function(){return this._intl.dateFormatNames({nameType:"abbreviated",type:"months"})},e.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?(0,m.cloneDate)(t):e>n&&this.isEqual(e,n)?(0,m.cloneDate)(n):e},e}(),yt=((it={})[O.month]=ht,it[O.year]=gt,it[O.decade]=dt,it[O.century]=st,it),bt=function(){function e(e){this.bottom=O.month,this.top=O.century,this.onViewChanged=e}return e.prototype.configure=function(e,t){this.bottom=e,this.top=t},e.prototype.service=function(e,t){return new(yt["".concat(e)])(t)},e.prototype.moveDown=function(e,t){this.move(e,-1,t)},e.prototype.moveUp=function(e,t){this.move(e,1,t)},e.prototype.moveToBottom=function(e){e!==this.bottom&&this.onViewChanged({view:this.bottom})},e.prototype.canMoveDown=function(e){return this.bottom<e},e.prototype.canMoveUp=function(e){return e<this.top},e.prototype.clamp=function(e){return e<this.bottom?this.bottom:e>this.top?this.top:e},e.prototype.move=function(e,t,n){var r=this.clamp(function(e,t){var n=O[O[e+t]];return void 0!==n?n:e}(e,t));r!==e&&this.onViewChanged({view:r},n)},e}(),Ct={33:qe.PrevView,34:qe.NextView,35:qe.LastInView,36:qe.FirstInView,37:qe.Left,38:qe.Up,39:qe.Right,40:qe.Down,"meta+38":qe.UpperView,"meta+40":qe.LowerView},Et=function(){function e(e){this.bus=e}return e.prototype.action=function(e){var t="".concat(e.ctrlKey||e.metaKey?"meta+":"").concat(e.keyCode);return Ct[t]},e.prototype.move=function(e,t,n,r,o){return r?t===qe.UpperView&&this.bus.canMoveUp(n)?(this.bus.moveUp(n,o),e):t===qe.LowerView&&this.bus.canMoveDown(n)?(this.bus.moveDown(n,o),e):r.move(e,t):e},e}(),wt=function(){function e(e){this.dom=e,this.divideByMagnitude=null,this.powerByMagnitude=null,this.navigator=null,this.view=null,this.monthScrolled=!1,this.navScrolled=!1}return e.prototype.configure=function(e){var t=Math.max(this.dom.viewHeight(e)/this.dom.navigationItemHeight,1);this.divideByMagnitude=function(e){return function(t){return Math.floor(t/e)}}(t),this.powerByMagnitude=function(e){return function(t){return t*e}}(t)},e.prototype.sync=function(e,t,n){if(e&&t){if(this.navigator=e,this.view=t,n.target===this.navigator.element){if(this.monthScrolled)return void(this.monthScrolled=!1);this.navScrolled=!0,this.scrollSiblingOf(this.navigator.element)}if(n.target===this.view.element){if(this.navScrolled)return void(this.navScrolled=!1);this.monthScrolled=!0,this.scrollSiblingOf(this.view.element)}}},e.prototype.scrollSiblingOf=function(e){var t=this.siblingComponent(e),n=this.calculateScroll(t,e.scrollTop);t.scrollTo(n)},e.prototype.siblingComponent=function(e){return this.navigator.element===e?this.view:this.navigator},e.prototype.calculateScroll=function(e,t){var n=e===this.navigator?this.divideByMagnitude:this.powerByMagnitude;return n?n(t):0},e}(),kt=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),St=function(){return St=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},St.apply(this,arguments)},Ot=function(e){return e?e.virtualization:null},Dt=function(e,t,n,r){return void 0===e&&(e=xt.defaultProps.min),void 0===t&&(t=xt.defaultProps.max),void 0!==r?null!==r&&G((0,m.getDate)(r),e,t)?r:null:null!==n&&G((0,m.getDate)(n),e,t)?n:null},xt=function(e){function t(n){var r=e.call(this,n)||this;r.scrollSyncService=null,r.focusedDate=null,r.cellUID=(0,c.M)(),r.id=(0,c.M)(),r.Navigation=null,r.calendarViewList=null,r._element=null,r.intl=null,r.service=null,r.isActive=!1,r.didNavigationChange=!1,r.focus=function(){r._element&&r._element.focus()},r.shouldScroll=function(){return r.didNavigationChange},r.handleScroll=function(e){r.scrollSyncService&&r.scrollSyncService.sync(Ot(r.Navigation),Ot(r.calendarViewList),e)},r.handleNavigationChange=function(e){if(!r.props.disabled){r.didNavigationChange=!0;var t=(0,m.cloneDate)(e.value);r.setState({focusedDate:t})}},r.handleViewChange=function(e){var t=e.view;r.scrollSyncService&&r.scrollSyncService.configure(t),r.setState({activeView:t})},r.handleDateChange=function(e){var t=(0,m.cloneDate)(e.value),n=(0,m.cloneDate)(e.value),o=r.bus.canMoveDown(r.state.activeView);if(!r.props.disabled){if(o){if(!e.isTodayClick)return r.bus.moveDown(r.state.activeView,e.syntheticEvent),void r.setState({focusedDate:n});r.bus.moveToBottom(r.state.activeView)}r.setState({value:t,focusedDate:n}),r.valueDuringOnChange=t;var i=r.props.onChange;if(i){var a={syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,value:t,target:r};i.call(void 0,a)}r.valueDuringOnChange=void 0}},r.handleFocus=function(e){if(r.isActive=!0,r.calendarViewList){r.calendarViewList.focusActiveDate();var t=r.props.onFocus;t&&t.call(void 0,e)}},r.handleBlur=function(e){if(r.isActive=!1,r.calendarViewList){r.calendarViewList.blurActiveDate();var t=r.props.onBlur;t&&t.call(void 0,e)}},r.handleKeyDown=function(e){var t=e.keyCode;if(r.focusedDate&&r.service){if(t===d.R.enter){if(null!==r.value&&(0,m.isEqualDate)(r.focusedDate,r.value)){var n=ee(r.focusedDate,r.min,r.max);Ot(r.calendarViewList).scrollToIndex(r.service.skip(n,r.min))}var o={syntheticEvent:e,nativeEvent:e.nativeEvent,value:r.focusedDate,target:r};r.handleDateChange(o)}else{var i=ee(r.navigation.move(r.focusedDate,r.navigation.action(e),r.state.activeView,r.service,e),r.min,r.max);if((0,m.isEqualDate)(r.focusedDate,i))return;r.setState({focusedDate:i})}e.preventDefault()}},r.handleMouseDown=function(e){e.preventDefault()},r.handleClick=function(e){r._element&&r._element.focus({preventScroll:!0})},(0,p.s)(g);var o=Dt(r.min,r.max,r.props.defaultValue||t.defaultProps.defaultValue,r.props.value);return r.state={value:o,activeView:z(O[n.defaultActiveView],r.bottomView,r.topView),focusedDate:ee(n.focusedDate||o||Y(),r.min,r.max)},r.dom=new tt,r.bus=new bt(r.handleViewChange),r.navigation=new Et(r.bus),r.oldValue=o,r}return kt(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,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:!1,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return(0,m.getDate)(void 0!==this.props.min?this.props.min:t.defaultProps.min)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return(0,m.getDate)(void 0!==this.props.max?this.props.max:t.defaultProps.max)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bottomView",{get:function(){return O[void 0!==this.props.bottomView?this.props.bottomView:t.defaultProps.bottomView]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"topView",{get:function(){return O[void 0!==this.props.topView?this.props.topView:t.defaultProps.topView]},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){var e=this;Promise.resolve().then((function(){e._element&&(e.dom.calculateHeights(e._element),e.scrollSyncService=new wt(e.dom),e.scrollSyncService.configure(e.state.activeView),e.forceUpdate())}))},t.prototype.componentDidUpdate=function(e,t){t.activeView!==this.state.activeView&&this.scrollSyncService&&this.scrollSyncService.configure(this.state.activeView),this.calendarViewList&&(this.isActive?this.calendarViewList.focusActiveDate:this.calendarViewList.blurActiveDate)(),this.didNavigationChange=!1,this.oldValue=this.value},t.prototype.render=function(){var e=this;this.props._ref&&this.props._ref(this);var n=null!==this.value&&null!==this.oldValue?!(0,m.isEqualDate)(this.value,this.oldValue):this.value!==this.oldValue,r=z(this.state.activeView,O[void 0!==this.props.bottomView?this.props.bottomView:t.defaultProps.bottomView],O[void 0!==this.props.topView?this.props.topView:t.defaultProps.topView]),o=Dt(this.min,this.max,this.value,this.value),i=o?(0,m.getDate)(o):null;this.focusedDate=(0,m.getDate)(ee(n&&null!==o?o:this.state.focusedDate,this.min,this.max)),this.intl=(0,v.provideIntlService)(this),this.bus.configure(this.bottomView,this.topView),this.service=this.bus.service(r,this.intl);var a=(0,f.A)("k-widget k-calendar k-calendar-infinite",{"k-disabled":this.props.disabled,"k-week-number":this.props.weekNumber},this.props.className),l={"aria-disabled":this.props.disabled,"aria-activedescendant":this.cellUID+this.focusedDate.getTime()},u=[this.props.navigation&&s.createElement(Je,{key:0,ref:function(t){e.Navigation=t},activeView:this.state.activeView,focusedDate:this.focusedDate,min:this.min,max:this.max,onScroll:this.handleScroll,onChange:this.handleNavigationChange,service:this.service,dom:this.dom,navigationItem:this.props.navigationItem}),s.createElement(Ke,{key:1,ref:function(t){e.calendarViewList=t},activeView:this.state.activeView,focusedDate:this.focusedDate,min:this.min,max:this.max,bus:this.bus,shouldScroll:this.shouldScroll,onScroll:this.handleScroll,service:this.service,cell:this.props.cell,weekCell:this.props.weekCell,dom:this.dom,smoothScroll:this.props.smoothScroll,showWeekNumbers:this.props.weekNumber,onChange:this.handleDateChange,value:i,cellUID:this.cellUID,headerTitle:this.props.headerTitle})];return s.createElement("div",St({},l,{ref:function(t){e._element=t},className:a,id:this.props.id||this.id,"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,role:"grid",tabIndex:this.props.disabled?void 0:this.props.tabIndex||0,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,onMouseDown:this.handleMouseDown,onClick:this.handleClick}),u)},t.displayName="Calendar",t.propTypes={className:u.string,defaultActiveView:u.oneOf(["month","year","decade","century"]),defaultValue:u.instanceOf(Date),disabled:u.bool,focusedDate:u.instanceOf(Date),id:u.string,ariaLabelledBy:u.string,ariaDescribedBy:u.string,max:u.instanceOf(Date),min:u.instanceOf(Date),navigation:u.bool,smoothScroll:u.bool,onBlur:u.func,onChange:u.func,onFocus:u.func,tabIndex:u.number,value:u.instanceOf(Date),weekNumber:u.bool,topView:function(e,t,n){var r=e[t],o=e.bottomView;return r&&o&&O[r]<O[o]?new Error("Invalid prop + ".concat(t," suplied to ").concat(n,".\n ").concat(t," can not be smaller than bottomView.\n ")):null},bottomView:function(e,t,n){var r=e[t],o=e.topView;return r&&o&&O[r]>O[o]?new Error("Invalid prop + ".concat(t," suplied to ").concat(n,".\n ").concat(t," can not be bigger than topView.\n ")):null}},t.defaultProps={disabled:!1,min:fe,max:he,navigation:!0,defaultActiveView:"month",defaultValue:null,smoothScroll:!0,topView:"century",bottomView:"month"},t}(s.Component),It=(0,h.Y)(),Tt=(0,h.u)(It,xt);Tt.displayName="KendoReactCalendar",(0,v.registerForIntl)(xt);var _t=function(){this.symbols="",this.partMap=[]},Rt=function(e,t){return e[t.pattern[0]]=t.type,e},Mt=["k-widget","k-dateinput"],Pt=function(){function e(e,t,n){this.year=!0,this.month=!0,this.date=!0,this.hours=!0,this.minutes=!0,this.seconds=!0,this.milliseconds=!0,this.leadingZero=null,this.typedMonthPart="",this.knownParts="adHhmMsEy",this.symbols={E:"E",H:"H",M:"M",a:"a",d:"d",h:"h",m:"m",s:"s",y:"y"},this._value=(0,m.getDate)(new Date),this.intlProvider=e,this.formatPlaceholder=t,this.format=n,this.monthNames=this.allFormatedMonths()}return Object.defineProperty(e.prototype,"intl",{get:function(){return this.intlProvider()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!1,configurable:!0}),e.prototype.setValue=function(e){e?(0,m.isEqual)(e,this._value)||(this._value=(0,m.cloneDate)(e),this.modifyExisting(!0)):(this._value=(0,m.getDate)(new Date),this.modifyExisting(!1))},e.prototype.hasValue=function(){var e=this;return this.intl.splitDateFormat(this.format).reduce((function(t,n){return t||"literal"!==n.type&&"dayperiod"!==n.type&&e.getExisting(n.pattern[0])}),!1)},e.prototype.getDateObject=function(){for(var e=0;e<this.knownParts.length;e++)if(!this.getExisting(this.knownParts[e]))return null;return(0,m.cloneDate)(this.value)},e.prototype.getTextAndFormat=function(){return this.merge(this.intl.formatDate(this.value,this.format),this.dateFormatString(this.value,this.format))},e.prototype.modifyExisting=function(e){for(var t=this.dateFormatString(this.value,this.format).symbols,n=0;n<t.length;n++)this.setExisting(t[n],e)},e.prototype.getExisting=function(e){switch(e){case"y":return this.year;case"M":case"L":return this.month;case"d":return this.date;case"E":return this.date&&this.month&&this.year;case"h":case"H":return this.hours;case"m":return this.minutes;case"s":return this.seconds;default:return!0}},e.prototype.setExisting=function(e,t){switch(e){case"y":this.year=t,!1===t&&this._value.setFullYear(2e3);break;case"M":this.month=t,!1===t&&this._value.setMonth(0);break;case"d":this.date=t;break;case"h":case"H":this.hours=t;break;case"m":this.minutes=t;break;case"s":this.seconds=t;break;default:return}},e.prototype.modifyPart=function(e,t){var n=(0,m.cloneDate)(this.value);switch(e){case"y":n.setFullYear(n.getFullYear()+t);break;case"M":n=(0,m.addMonths)(this.value,t);break;case"d":case"E":n.setDate(n.getDate()+t);break;case"h":case"H":n.setHours(n.getHours()+t);break;case"m":n.setMinutes(n.getMinutes()+t);break;case"s":n.setSeconds(n.getSeconds()+t);break;case"a":n.setHours(n.getHours()+12*t)}this.setExisting(e,!0),this._value=n},e.prototype.parsePart=function(e,t){var n;if(this.resetLeadingZero(),!t)return this.setExisting(e,!1),{value:null};for(var r=this.intl.formatDate(this.value,this.format),o=this.dateFormatString(this.value,this.format),i=o.symbols,a=!1,l="",s="",u="",c=0;c<r.length;c++)i[c]===e?(s+=this.getExisting(e)?r[c]:"0",a=!0):a?u+=r[c]:l+=r[c];for(var d=null,p=this.matchMonth(t);s.length>0&&"0"===s.charAt(0);)s=s.slice(1);for(s.length>=4&&(s=""),c=0;c<2;c++){var f=s+t,h=parseInt(f,10);if(!(d=this.intl.parseDate(l+f+u,this.format))&&!isNaN(h)&&!isNaN(parseInt(t,10))){if("M"===e&&!p){var v=h-1;v>-1&&v<12&&((d=(0,m.cloneDate)(this.value)).setMonth(v),d.getMonth()!==v&&(d=(0,m.lastDayOfMonth)((0,m.addMonths)(d,-1))))}"y"===e&&(d=(0,m.createDate)(parseInt(f,10),this.month?this.value.getMonth():0,this.date?this.value.getDate():1,this.hours?this.value.getHours():0,this.minutes?this.value.getMinutes():0,this.seconds?this.value.getSeconds():0,this.milliseconds?this.value.getMilliseconds():0),this.date&&d.getDate()!==this.value.getDate()&&(d=(0,m.lastDayOfMonth)((0,m.addMonths)(d,-1))))}if(d)return this._value=d,this.setExisting(e,!0),{value:this.value};s=""}return p&&(d=this.intl.parseDate(l+p+u,this.format))?(this._value=d,this.setExisting(e,!0),{value:this.value}):("0"===t&&(this.leadingZero=this.isAbbrMonth(o.partMap,e)?null:((n={})[e]=!0,n),this.setExisting(e,!1)),{value:null})},e.prototype.symbolMap=function(e){return this.intl.splitDateFormat(this.format).reduce(Rt,{})[e]},e.prototype.resetLeadingZero=function(){var e=null!==this.leadingZero;return this.leadingZero=null,e},e.prototype.isAbbrMonth=function(e,t){var n=this.partPattern(e,t);return"month"===n.type&&n.names},e.prototype.partPattern=function(e,t){return e.filter((function(e){return-1!==e.pattern.indexOf(t)}))[0]},e.prototype.matchMonth=function(e){if(this.typedMonthPart+=e.toLowerCase(),0===this.monthNames.length)return"";for(;this.typedMonthPart.length>0;){for(var t=0;t<this.monthNames.length;t++)if(0===this.monthNames[t].toLowerCase().indexOf(this.typedMonthPart))return this.monthNames[t];var n=parseInt(this.typedMonthPart,10);if(n>=1&&n<=12&&n.toString()===this.typedMonthPart)return this.monthNames[n-1];this.typedMonthPart=this.typedMonthPart.substring(1,this.typedMonthPart.length)}return""},e.prototype.allFormatedMonths=function(){for(var e=this.intl.splitDateFormat(this.format),t=0;t<e.length;t++)if("month"===e[t].type&&e[t].names)return this.intl.dateFormatNames(e[t].names);return[]},e.prototype.dateFormatString=function(e,t){for(var n=this.intl.splitDateFormat(t),r=[],o=[],i=0;i<n.length;i++)for(var a=this.intl.formatDate(e,{pattern:n[i].pattern}).length;a>0;)r.push(this.symbols[n[i].pattern[0]]||"_"),o.push(n[i]),a--;var l=new _t;return l.symbols=r.join(""),l.partMap=o,l},e.prototype.merge=function(e,t){for(var n="",r="",o=t.symbols,i=o.length-1;i>=0;i--)if(-1===this.knownParts.indexOf(o[i])||this.getExisting(o[i]))n=e[i]+n,r=o[i]+r;else{for(var a=o[i];i>=0&&a===o[i];)i--;for(i++,n=this.leadingZero&&this.leadingZero[a]?"0"+n:this.dateFieldName(t.partMap[i])+n;r.length<n.length;)r=o[i]+r}return{text:n,format:r}},e.prototype.dateFieldName=function(e){var t=this.formatPlaceholder||"wide";return t[e.type]?t[e.type]:"formatPattern"===t?e.pattern:this.intl.dateFieldName(Object.assign(e,{nameType:t}))},e}(),Nt=n(493),Ft=n(2697),At=n(3228),jt=n(6097),Lt="dayperiod",Vt="hour",zt="minute",Bt="second",Ht=function(e){return function(t,n){var r=(0,m.cloneDate)(t);return r[e](n),r}},Ut=[{type:Vt,getter:function(e){return e.getHours()}},{type:zt,getter:function(e){return e.getMinutes()}},{type:Bt,getter:function(e){return e.getSeconds()}},{type:"millisecond",getter:function(e){return e.getMilliseconds()}}],Wt=function(e){return function(t){return e.map(function(e){return function(t){return e[t.type]?(n=t.getter,function(e,t){return n(t)}):function(e){return function(t,n){return e(t)}}(t.getter);var n}}(function(e){return e.reduce((function(e,t){return e[t.type]=t.type,e}),{})}(t)))}}(Ut),Kt=function(e){return function(t,n){return e.map((function(e){var r=Math.floor(t[e.type]);return r?function(e,t,n,r){return function(o){var i=e(o),a=e(n);return"hour"===r?i-(i-a)%t:o.getTime()<=n.getTime()&&0!==i&&i<=a?Math.ceil(i/t)*t:i-i%t}}(e.getter,r,n,e.type):e.getter}))}}(Ut),qt=function(e){return function(t){var n=(0,m.cloneDate)(t);return n.setHours.apply(n,e.map((function(e){return e(n)}))),n}},Yt=Ht("setHours"),Gt=Ht("setMinutes"),Zt=Ht("setSeconds"),Xt=function(){return new Date},$t=function(e,t,n){void 0===n&&(n=1);for(var r=[],o=e;o<t;o+=n)r.push(o);return r},Qt=function(e,t,n){return{candidateValue:q(B,e),maxValue:(0,m.addDays)(q(B,n),t.getHours()<n.getHours()?0:1),minValue:q(B,t)}},Jt=function(e,t,n){if(!e||!t||!n)return!0;var r=Qt(e,t,n),o=r.candidateValue,i=r.minValue,a=r.maxValue;return i<=o&&o<=a},en=function(e,t){if(null===e||null===t)return!1;var n=q(B,e),r=q(B,t);return n.getTime()<r.getHours()},tn=function(e,t){if(null===e||null===t)return!1;var n=q(B,e);return q(B,t).getTime()<n.getHours()},nn=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),rn=function(){return rn=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},rn.apply(this,arguments)},on=function(e){function t(n){var r=e.call(this,n)||this;return r.kendoDate=null,r.currentFormat="",r.paste=!1,r._element=null,r._wrapper=null,r._inputId=(0,c.M)(),r._lastSelectedSymbol="",r.focus=function(){r._element&&r._element.focus()},r.setValidity=function(){r.element&&r.element.setCustomValidity&&r.element.setCustomValidity(r.validity.valid?"":r.props.validationMessage||t.defaultProps.validationMessage)},r.updateOnPaste=function(e){if(r.element&&r.kendoDate){var t=(0,v.provideIntlService)(r).parseDate(r.element.value,r.props.format)||r.value,n=r.value;r.kendoDate.setValue(t),r.triggerChange(e,n)}},r.spinnersMouseDown=function(e){e.preventDefault(),r.element&&document.activeElement!==r.element&&r.element.focus({preventScroll:!0})},r.handlePaste=function(){r.paste=!0},r.elementChange=function(e){if(r.element&&r.kendoDate){if(r.paste)return r.updateOnPaste(e),void(r.paste=!1);var t=r.kendoDate.getTextAndFormat(),n=t.text,o=t.format;r.currentFormat=o;var i=r.value,a=function(e,t,n,r){var o=e[r+e.length-n.length],i=e.substring(0,r+e.length-n.length),a=n.substring(0,r),l=[];if(i===a&&r>0)return l.push([t[r-1],a[r-1]]),l;if(0===i.indexOf(a)&&(0===a.length||t[a.length-1]!==t[a.length])){var s="";1===a.length&&l.push([t[0],a[0]]);for(var u=a.length;u<i.length;u++)t[u]!==s&&"_"!==t[u]&&(s=t[u],l.push([s,""]));return l}if(0===a.indexOf(i)||"_"===t[r-1]){var c=t[0];for(u=Math.max(0,i.length-1);u<t.length;u++)if("_"!==t[u]){c=t[u];break}return[[c,a[r-1]]]}return" "===a[a.length-1]||a[a.length-1]===o?[[t[r-1],"_"]]:[[t[r-1],a[r-1]]]}(n,r.currentFormat,r.element.value,r.selection.start),l=1===a.length&&"_"===a[0][1];if(!l)for(var s=0;s<a.length;s++)r.kendoDate.parsePart(a[s][0],a[s][1]);a.length&&"_"!==a[0][0]&&r.setSelection(r.selectionBySymbol(a[0][0])),l&&r.switchDateSegment(1),r.triggerChange(e,i)}},r.elementClick=function(e){r.setSelection(r.selectionByIndex(r.selection.start))},r.nativeWheel=function(e){e.preventDefault()},r.wheel=function(e){document.activeElement===r.element&&(e.nativeEvent.deltaY<0&&r.increasePart(e),e.nativeEvent.deltaY>0&&r.decreasePart(e))},r.increasePart=function(e){r.modifyDateSegmentValue(1,e)},r.decreasePart=function(e){r.modifyDateSegmentValue(-1,e)},r.elementKeyDown=function(e){if(!e.altKey){switch(e.keyCode){case 37:r.switchDateSegment(-1);break;case 38:r.modifyDateSegmentValue(1,e);break;case 39:r.switchDateSegment(1);break;case 40:r.modifyDateSegmentValue(-1,e);break;default:return}e.preventDefault()}},r.elementOnFocus=function(e){r.wrapper&&r.wrapper.classList.add("k-focus"),r.setState({focused:!0})},r.elementOnBlur=function(e){r.wrapper&&r.wrapper.classList.remove("k-focus"),r.setState({focused:!1})},(0,p.s)(g),r.state={focused:!1},r}return nn(t,e),t.prototype.componentDidMount=function(){this.setValidity(),this.wrapper&&this.wrapper.addEventListener("wheel",this.nativeWheel,{passive:!1})},t.prototype.componentDidUpdate=function(e,t){this._lastSelectedSymbol&&t.focused===this.state.focused?this.setSelection(this.selectionBySymbol(this._lastSelectedSymbol)):this.selection.start===this.selection.end&&this.setSelection({start:0,end:this.currentFormat.length}),this.setValidity()},t.prototype.componentWillUnmount=function(){this.wrapper&&this.wrapper.removeEventListener("wheel",this.nativeWheel)},t.prototype.render=function(){var e=this,n=this.props,r=n.size,o=void 0===r?t.defaultProps.size:r,i=n.fillMode,a=void 0===i?t.defaultProps.fillMode:i,l=n.rounded,u=void 0===l?t.defaultProps.rounded:l;this.props._ref&&(this.props._ref.current=this);var c=(0,v.provideLocalizationService)(this),d=rn(rn({},t.defaultProps),this.props),p=d.min,h=d.max,m=d.name,g=d.label,y=d.id,b=this.text,C=b===this.props.placeholder?"":b,E=b===this.props.placeholder?b:void 0,w=y||this._inputId,k=!this.validityStyles||this.validity.valid,S={"aria-valuemin":null===p?void 0:p.getTime(),"aria-valuemax":null===h?void 0:h.getTime(),"aria-valuetext":C};null!==this.value&&(S["aria-valuenow"]=this.value.getTime());var O=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([],Mt,!0);this.props.className&&O.push(this.props.className);var D=s.createElement(Nt.o,{onFocus:this.elementOnFocus,onBlur:this.elementOnBlur},(function(t){var n,r=t.onFocus,i=t.onBlur;return s.createElement("span",{ref:function(t){e._wrapper=t},style:g?void 0:{width:e.props.width},dir:e.props.dir,className:(0,f.A)("k-dateinput","k-input",(n={},n["k-input-".concat(Ft.G.sizeMap[o]||o)]=o,n["k-input-".concat(a)]=a,n["k-rounded-".concat(Ft.G.roundedMap[u]||u)]=u,n["k-invalid"]=!k,n["k-required"]=e.required,n["k-disabled"]=e.props.disabled,n),e.props.className),onFocus:r,onBlur:i},s.createElement("input",rn({role:"spinbutton",tabIndex:e.props.tabIndex,disabled:e.props.disabled,title:void 0!==e.props.title?e.props.title:b,type:"text",spellCheck:!1,autoComplete:"off",autoCorrect:"off",className:"k-input-inner",id:w,"aria-label":e.props.ariaLabel,"aria-labelledby":e.props.ariaLabelledBy,"aria-describedby":e.props.ariaDescribedBy,"aria-expanded":e.props.ariaExpanded,"aria-haspopup":e.props.ariaHasPopup,onWheel:e.wheel,onClick:e.elementClick,onInput:e.elementChange,onPaste:e.handlePaste,onKeyDown:e.elementKeyDown,onChange:At.Z,value:C,placeholder:E,name:m},S,{ref:function(t){return e._element=t}})),e.props.children,e.props.spinners&&s.createElement("span",{className:"k-input-spinner k-spin-button",onMouseDown:e.spinnersMouseDown},s.createElement(se.z,{tabIndex:-1,type:"button",className:"k-spinner-increase",icon:"arrow-n","aria-label":c.toLanguageString(we,Be[we]),title:c.toLanguageString(we,Be[we]),onClick:e.increasePart}),s.createElement(se.z,{tabIndex:-1,type:"button",className:"k-spinner-decrease",icon:"arrow-s","aria-label":c.toLanguageString(ke,Be[ke]),title:c.toLanguageString(ke,Be[ke]),onClick:e.decreasePart})))}));return g?s.createElement(jt._,{label:g,editorId:w,editorValue:b,editorValid:k,editorDisabled:this.props.disabled,children:D,style:{width:this.props.width}}):D},Object.defineProperty(t.prototype,"value",{get:function(){return void 0!==this.valueDuringOnChange?this.valueDuringOnChange:this.kendoDate&&this.kendoDate.getDateObject()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return void 0!==this.props.min?this.props.min:t.defaultProps.min},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return void 0!==this.props.max?this.props.max:t.defaultProps.max},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){var e=rn(rn({},ln.defaultProps),this.props),n=e.formatPlaceholder,r=void 0===n?t.defaultProps.formatPlaceholder:n,o=e.format,i=void 0===o?t.defaultProps.format:o,a=e.value,l=e.defaultValue;null===this.kendoDate?(this.kendoDate=new Pt(this.intl.bind(this),r,i),this.kendoDate.setValue(a||l||null)):(this.kendoDate.format=i,this.kendoDate.formatPlaceholder=r),void 0!==a&&this.value!==a&&this.kendoDate.setValue(a);var s=this.kendoDate.getTextAndFormat(),u=s.text,c=s.format;return this.currentFormat=c,null===e.placeholder||void 0===e.placeholder||this.state.focused||this.kendoDate.hasValue()?u:e.placeholder},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){var e,t,n,r=(e=this.value,t=this.min,n=this.max,(null===e||!(t&&t>e||n&&n<e))&&Jt(this.value,this.props.minTime,this.props.maxTime)),o=void 0!==this.props.validationMessage,i=(!this.required||null!==this.value)&&r,a=void 0!==this.props.valid?this.props.valid:i;return{customError:o,rangeOverflow:this.value&&this.max.getTime()<this.value.getTime()||!1,rangeUnderflow:this.value&&this.value.getTime()<this.min.getTime()||!1,valid:a,valueMissing:null===this.value}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:t.defaultProps.required},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wrapper",{get:function(){return this._wrapper},enumerable:!1,configurable:!0}),t.prototype.intl=function(){return(0,v.provideIntlService)(this)},Object.defineProperty(t.prototype,"selection",{get:function(){var e={start:0,end:0};return null!==this.element&&void 0!==this.element.selectionStart&&(e={start:this.element.selectionStart,end:this.element.selectionEnd}),e},enumerable:!1,configurable:!0}),t.prototype.setSelection=function(e){var t=this;this._lastSelectedSymbol=this.currentFormat[e.start],window.requestAnimationFrame((function(){t.element&&document.activeElement===t.element&&t.element.setSelectionRange(e.start,e.end)}))},t.prototype.triggerChange=function(e,t){this.valueDuringOnChange=this.value,this.forceUpdate(),this.props.onChange&&!(0,m.isEqual)(t,this.value)&&this.props.onChange.call(void 0,{syntheticEvent:e,nativeEvent:e.nativeEvent,value:this.value,target:this}),this.valueDuringOnChange=void 0},t.prototype.selectionBySymbol=function(e){for(var t=-1,n=0,r=0;r<this.currentFormat.length;r++)this.currentFormat[r]===e&&(n=r+1,-1===t&&(t=r));return t<0&&(t=0),{start:t,end:n}},t.prototype.selectionByIndex=function(e){for(var t={start:e,end:e},n=e,r=e-1;n<this.currentFormat.length||r>=0;n++,r--){if(n<this.currentFormat.length&&"_"!==this.currentFormat[n]){t=this.selectionBySymbol(this.currentFormat[n]);break}if(r>=0&&"_"!==this.currentFormat[r]){t=this.selectionBySymbol(this.currentFormat[r]);break}}return t},t.prototype.switchDateSegment=function(e){var t=this.selection,n=t.start,r=t.end;if(n<r&&this.currentFormat[n]!==this.currentFormat[r-1])this.setSelection(this.selectionByIndex(e>0?n:r-1));else{for(var o=this.currentFormat[n],i=n+e;i>0&&i<this.currentFormat.length&&(this.currentFormat[i]===o||"_"===this.currentFormat[i]);)i+=e;if("_"!==this.currentFormat[i]){for(var a=i;a>=0&&a<this.currentFormat.length&&this.currentFormat[a]===this.currentFormat[i];)a+=e;i>a&&(a+1!==n||i+1!==r)?this.setSelection({start:a+1,end:i+1}):i<a&&(i!==n||a!==r)&&this.setSelection({start:i,end:a})}}},t.prototype.modifyDateSegmentValue=function(e,t){if(this.kendoDate){var n=this.value,r=this.currentFormat[this.selection.start],o=this.kendoDate.symbolMap(r),i=((this.props.steps||{})[o]||1)*e;this.kendoDate.modifyPart(r,i),this.triggerChange(t,n)}},t.displayName="DateInput",t.propTypes={value:u.instanceOf(Date),format:u.oneOfType([u.string,u.shape({skeleton:u.string,pattern:u.string,date:u.oneOf(["short","medium","long","full"]),time:u.oneOf(["short","medium","long","full"]),datetime:u.oneOf(["short","medium","long","full"]),era:u.oneOf(["narrow","short","long"]),year:u.oneOf(["numeric","2-digit"]),month:u.oneOf(["numeric","2-digit","narrow","short","long"]),day:u.oneOf(["numeric","2-digit"]),weekday:u.oneOf(["narrow","short","long"]),hour:u.oneOf(["numeric","2-digit"]),hour12:u.bool,minute:u.oneOf(["numeric","2-digit"]),second:u.oneOf(["numeric","2-digit"]),timeZoneName:u.oneOf(["short","long"])})]),formatPlaceholder:u.oneOfType([u.oneOf(["wide","narrow","short","formatPattern"]),u.shape({year:u.string,month:u.string,day:u.string,hour:u.string,minute:u.string,second:u.string})]),width:u.oneOfType([u.string,u.number]),tabIndex:u.number,title:u.string,steps:u.shape({year:u.number,month:u.number,day:u.number,hour:u.number,minute:u.number,second:u.number}),min:u.instanceOf(Date),max:u.instanceOf(Date),disabled:u.bool,spinners:u.bool,name:u.string,dir:u.string,label:u.string,id:u.string,ariaLabelledBy:u.string,ariaDescribedBy:u.string,ariaLabel:u.string,ariaExpanded:u.oneOfType([u.bool]),onChange:u.func,validationMessage:u.string,required:u.bool,validate:u.bool,valid:u.bool,size:u.oneOf([null,"small","medium","large"]),rounded:u.oneOf([null,"small","medium","large","full"]),fillMode:u.oneOf([null,"solid","flat","outline"])},t.defaultProps={format:"d",size:"medium",rounded:"medium",fillMode:"solid",formatPlaceholder:"wide",spinners:!1,disabled:!1,max:(0,m.cloneDate)(U),min:(0,m.cloneDate)(H),minTime:(0,m.cloneDate)(me),maxTime:(0,m.cloneDate)(ve),required:!1,validityStyles:!0,validationMessage:"Please enter a valid value!",placeholder:null},t}(s.Component),an=(0,h.Y)(),ln=(0,h.u)(an,on);ln.displayName="KendoReactDateInput",(0,v.registerForIntl)(on),(0,v.registerForLocalization)(on);var sn=n(9222),un=se.z,cn=s.forwardRef((function(e,t){var n=e._ref,r=s.useRef(null);s.useImperativeHandle(t,(function(){return r.current})),s.useImperativeHandle(n,(function(){return r.current}));var o=s.useMemo((function(){return(0,f.A)(e.className,"k-picker-wrap")}),[e.className]);return s.createElement("span",{ref:r,id:e.id,style:e.style,className:o,tabIndex:e.tabIndex},e.children)})),dn=function(){return dn=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},dn.apply(this,arguments)},pn=function(e){var t=function(e){var t=s.useState(!1),n=t[0],r=t[1];return s.useEffect((function(){e.current&&r(Boolean(e.current.text))})),{editorValue:n}}(e.dateInput);return s.createElement(jt._,dn({},e,t))},fn=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),hn=function(){return hn=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},hn.apply(this,arguments)},mn=function(e){function t(n){var r=e.call(this,n)||this;return r._popupId=(0,c.M)(),r._element=null,r._dateInput=s.createRef(),r._calendar=null,r.shouldFocusDateInput=!1,r.prevShow=!1,r.focus=function(){r.dateInput&&r.dateInput.focus()},r.setCalendarRef=function(e){r._calendar=e},r.nextValue=function(e,t){return void 0!==e.value?e.value:t.value},r.nextShow=function(e,t){return void 0!==e.show?e.show:t.show},r.handleInputValueChange=function(e){r.handleValueChange(e.value,e)},r.handleCalendarValueChange=function(e){var t=r.mergeTime(e.value);r.handleValueChange(t,e)},r.handleValueChange=function(e,t){r.setState({value:(0,m.cloneDate)(e||void 0),show:!1}),r.valueDuringOnChange=e,r.showDuringOnChange=!1,r.shouldFocusDateInput=!0;var n=r.props.onChange;n&&n.call(void 0,{syntheticEvent:t.syntheticEvent,nativeEvent:t.nativeEvent,value:r.value,show:r.show,target:r}),r.valueDuringOnChange=void 0,r.showDuringOnChange=void 0},r.handleFocus=function(){r.setState({focused:!0})},r.handleBlur=function(){r.setState({focused:!1}),r.setShow(!1)},r.handleIconClick=function(){r.props.disabled||(r.shouldFocusDateInput=!0,r.setShow(!r.show))},r.handleIconMouseDown=function(e){e.preventDefault()},r.handleKeyDown=function(e){var t=e.altKey,n=e.keyCode;if(n===d.R.esc)return r.shouldFocusDateInput=!0,void r.setShow(!1);!t||n!==d.R.up&&n!==d.R.down||(e.preventDefault(),e.stopPropagation(),r.shouldFocusDateInput=n===d.R.up,r.setShow(n===d.R.down))},(0,p.s)(g),r.state={value:r.props.defaultValue||t.defaultProps.defaultValue,show:r.props.defaultShow||t.defaultProps.defaultShow,focused:!1},r}return fn(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dateInput",{get:function(){return this._dateInput.current},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"calendar",{get:function(){return this._calendar},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){var e=void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.props.value?this.props.value:this.state.value;return null!==e?(0,m.cloneDate)(e):null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"show",{get:function(){return void 0!==this.showDuringOnChange?this.showDuringOnChange:void 0!==this.props.show?this.props.show:this.state.show},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return void 0!==this.props.min?this.props.min:t.defaultProps.min},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return void 0!==this.props.max?this.props.max:t.defaultProps.max},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dateInputComp",{get:function(){return this.props.dateInput||t.defaultProps.dateInput},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"toggleButtonComp",{get:function(){return this.props.toggleButton||t.defaultProps.toggleButton},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"calendarComp",{get:function(){return this.props.calendar||t.defaultProps.calendar},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popupComp",{get:function(){return this.props.popup||t.defaultProps.popup},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pickerWrapComp",{get:function(){return this.props.pickerWrap||t.defaultProps.pickerWrap},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){var e=Z(this.value,this.min,this.max),t=void 0!==this.props.validationMessage,n=(!this.required||null!==this.value)&&e,r=void 0!==this.props.valid?this.props.valid:n;return{customError:t,rangeOverflow:this.value&&this.max.getTime()<this.value.getTime()||!1,rangeUnderflow:this.value&&this.value.getTime()<this.min.getTime()||!1,valid:r,valueMissing:null===this.value}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:t.defaultProps.required},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.show&&this.forceUpdate()},t.prototype.componentDidUpdate=function(){this._calendar&&this._calendar.element&&this.show&&!this.prevShow&&this._calendar.element.focus({preventScroll:!0}),this.dateInput&&this.dateInput.element&&!this.show&&this.shouldFocusDateInput&&this.dateInput.element.focus({preventScroll:!0}),this.prevShow=this.show,this.shouldFocusDateInput=!1},t.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},t.prototype.render=function(){var e=this,n=this.props,r=n.size,o=void 0===r?t.defaultProps.size:r,i=n.rounded,a=void 0===i?t.defaultProps.rounded:i,l=n.fillMode,u=void 0===l?t.defaultProps.fillMode:l,c=n.disabled,d=n.tabIndex,p=n.title,h=n.id,g=n.format,y=n.formatPlaceholder,b=n.min,C=n.max,E=n.weekNumber,w=n.focusedDate,k=n.className,S=n.width,O=n.name,D=n.validationMessage,x=n.required,I=n.validityStyles,T=n.ariaLabelledBy,_=n.ariaDescribedBy,R=n.ariaLabel,M=this.props.popupSettings,P=M.popupClass,N=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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(M,["popupClass"]),F=this.show,A=this.value,j=A&&(0,m.getDate)(A),L=!this.validityStyles||this.validity.valid,V=(0,f.A)("k-calendar-container k-group k-reset",P),z={disabled:c,format:g,formatPlaceholder:y,id:h,ariaLabelledBy:T,ariaDescribedBy:_,ariaLabel:R,max:C,min:b,name:O,onChange:this.handleInputValueChange,required:x,tabIndex:F?-1:d,title:p,valid:this.validity.valid,validationMessage:D,validityStyles:I,value:A,label:void 0,placeholder:this.state.focused?null:this.props.placeholder,ariaHasPopup:!0,ariaExpanded:this.show,size:null,fillMode:null,rounded:null},B=hn({show:F,anchor:this._element,className:V,id:this._popupId,anchorAlign:{horizontal:"left",vertical:"bottom"},popupAlign:{horizontal:"left",vertical:"top"}},N),H={disabled:c,value:j,min:b,max:C,weekNumber:E,focusedDate:w,onChange:this.handleCalendarValueChange},U=(0,v.provideLocalizationService)(this).toLanguageString(Oe,Be[Oe]),W=s.createElement(Nt.o,{onFocus:this.handleFocus,onBlur:this.handleBlur,onSyncBlur:this.props.onBlur,onSyncFocus:this.props.onFocus},(function(t){var n,r=t.onFocus,i=t.onBlur;return s.createElement("span",{role:"group","aria-expanded":e.show,ref:function(t){e._element=t},className:(0,f.A)("k-input","k-datepicker",(n={},n["k-input-".concat(Ft.G.sizeMap[o]||o)]=o,n["k-rounded-".concat(Ft.G.roundedMap[a]||a)]=a,n["k-input-".concat(u)]=u,n["k-invalid"]=!L,n["k-required"]=e.required,n["k-disabled"]=e.props.disabled,n),k),onKeyDown:e.handleKeyDown,style:{width:S},onFocus:r,onBlur:i},s.createElement(e.dateInputComp,hn({_ref:e._dateInput},z)),s.createElement(e.toggleButtonComp,{tabIndex:-1,type:"button",icon:"calendar",title:U,className:"k-input-button",rounded:null,onClick:e.handleIconClick,"aria-label":U,onMouseDown:e.handleIconMouseDown}),s.createElement(e.popupComp,hn({},B),s.createElement(e.calendarComp,hn({_ref:e.setCalendarRef},H))))}));return this.props.label?s.createElement(pn,{dateInput:this._dateInput,label:this.props.label,editorId:h,editorValid:L,editorDisabled:this.props.disabled,children:W,style:{width:this.props.width}}):W},t.prototype.setShow=function(e){this.show!==e&&this.setState({show:e})},t.prototype.mergeTime=function(e){return this.value&&e?q(e,this.value):e},t.prototype.nextTick=function(e){clearTimeout(this.nextTickId),this.nextTickId=window.setTimeout((function(){return e()}))},t.displayName="DatePicker",t.propTypes={className:u.string,defaultShow:u.bool,defaultValue:u.instanceOf(Date),disabled:u.bool,focusedDate:u.instanceOf(Date),format:u.oneOfType([u.string,u.shape({skeleton:u.string,pattern:u.string,date:u.oneOf(["short","medium","long","full"]),time:u.oneOf(["short","medium","long","full"]),datetime:u.oneOf(["short","medium","long","full"]),era:u.oneOf(["narrow","short","long"]),year:u.oneOf(["numeric","2-digit"]),month:u.oneOf(["numeric","2-digit","narrow","short","long"]),day:u.oneOf(["numeric","2-digit"]),weekday:u.oneOf(["narrow","short","long"]),hour:u.oneOf(["numeric","2-digit"]),hour12:u.bool,minute:u.oneOf(["numeric","2-digit"]),second:u.oneOf(["numeric","2-digit"]),timeZoneName:u.oneOf(["short","long"])})]),formatPlaceholder:u.oneOfType([u.oneOf(["wide","narrow","short","formatPattern"]),u.shape({year:u.string,month:u.string,day:u.string,hour:u.string,minute:u.string,second:u.string})]),id:u.string,ariaLabelledBy:u.string,ariaDescribedBy:u.string,ariaLabel:u.string,min:u.instanceOf(Date),max:u.instanceOf(Date),name:u.string,popupSettings:u.shape({animate:u.bool,appendTo:u.any,popupClass:u.string}),show:u.bool,tabIndex:u.number,title:u.string,value:u.instanceOf(Date),weekNumber:u.bool,width:u.oneOfType([u.number,u.string]),validationMessage:u.string,required:u.bool,validate:u.bool,valid:u.bool,size:u.oneOf([null,"small","medium","large"]),rounded:u.oneOf([null,"small","medium","large","full"]),fillMode:u.oneOf([null,"solid","flat","outline"])},t.defaultProps={defaultShow:!1,defaultValue:null,dateInput:ln,calendar:Tt,toggleButton:un,popup:sn.G,pickerWrap:cn,disabled:!1,format:"d",max:U,min:H,popupSettings:{},tabIndex:0,weekNumber:!1,required:!1,validityStyles:!0,size:"medium",rounded:"medium",fillMode:"solid"},t}(s.Component),vn=(0,h.Y)(),gn=(0,h.u)(vn,mn);gn.displayName="KendoReactDatePicker",(0,v.registerForLocalization)(mn);var yn,bn,Cn=function(e,t){var n=(0,m.cloneDate)(e);return n.setHours(t),n},En=function(e){return null!==e&&e<12},wn=function(e,t,n){return!t&&!n||e>=t&&e<=n},kn=function(e,t,n){return!t&&!n||e>=t||e<=n},Sn=function(){function e(e){this.intl=e,this.min=null,this.max=null,this.part=null}return e.prototype.apply=function(e,t){var n=e.getHours(),r=En(n),o=En(t.getHours());if(r&&o||!r&&!o)return e;var i=this.normalizedRange(),a=i[0],l=i[1],s=void 0===l?24:l,u=n+(o?-12:12);return Cn(e,Math.min(Math.max(a,u),s||24))},e.prototype.configure=function(e){var t=e.min,n=void 0===t?this.min:t,r=e.max,o=void 0===r?this.max:r,i=e.part,a=void 0===i?this.part:i;this.min=n,this.max=o,this.part=a},e.prototype.data=function(e){var t=this.part&&this.part.names;if(!t||!this.min)return[];var n,r=[],o=this.normalizedRange(),i=o[0],a=o[1],l=this.intl.dateFormatNames(t);return En(i)&&r.push({text:l.am,value:Cn(this.min,i)}),null!==(n=a)&&(!n||n>11)&&r.push({text:l.pm,value:Cn(this.min,Math.max(12,a))}),this.min.getHours()!==i?r.reverse():r},e.prototype.isRangeChanged=function(e,t){return!1},e.prototype.limitRange=function(e,t,n){return[e,t]},e.prototype.total=function(){var e=this.normalizedRange(),t=e[0],n=e[1];return(t||n)&&(t>11||n<12)?1:2},e.prototype.selectedIndex=function(e){if(!this.valueInList(e)||!this.min)return-1;var t=Math.floor(e.getHours()/12);return this.min.getHours()===this.normalizedRange()[0]?t:0===t?1:0},e.prototype.valueInList=function(e){return!(!this.min||!this.max)&&(this.min.getHours()!==this.normalizedRange()[0]?kn:wn)(e.getHours(),this.min.getHours(),this.max.getHours())},e.prototype.normalizedRange=function(){var e=this.min.getHours(),t=this.max.getHours();return[Math.min(e,t),Math.max(e,t)]},e}(),On=(24,function(e){return e%24}),Dn=function(e,t){return On(24+e-t)},xn=function(e){return function(t,n){return n&&(0,m.getDate)(t).getTime()!==(0,m.getDate)(n).getTime()?Yt(t,e):t}},In=xn(0),Tn=xn(23),_n=function(){function e(e){this.intl=e,this.boundRange=!1,this.insertUndividedMax=!1,this.min=null,this.max=null,this.step=0,this.toListItem=null}return e.prototype.apply=function(e,t){return Yt(e,t.getHours())},e.prototype.configure=function(e){var t=this,n=e.boundRange,r=void 0===n?this.boundRange:n,o=e.insertUndividedMax,i=void 0===o?this.insertUndividedMax:o,a=e.min,l=void 0===a?this.min:a,s=e.max,u=void 0===s?this.max:s,c=e.part,d=e.step,p=void 0===d?this.step:d;this.boundRange=r,this.insertUndividedMax=i,this.toListItem=function(e){var n=Yt(B,e);return{text:t.intl.formatDate(n,c.pattern),value:n}},this.min=l,this.max=u,this.step=p},e.prototype.data=function(e){var t=this,n=function(e,t){return function(n){return On(e+n*t)}}(this.range(e)[0],this.step),r=$t(0,this.countFromMin(e)).map((function(e){return t.toListItem&&t.toListItem(n(e))}));return this.addLast(r),e&&this.addMissing(r,e),r},e.prototype.isRangeChanged=function(e,t){return!(!this.min||!this.max||(0,m.isEqual)(this.min,e)&&(0,m.isEqual)(this.max,t))},e.prototype.limitRange=function(e,t,n){return this.boundRange?[In(e,n),Tn(t,n)]:[e,t]},e.prototype.total=function(e){var t=this.insertUndividedMax&&this.isLastMissing(e)?1:0,n=this.isMissing(e)?1:0;return this.countFromMin(e)+n+t},e.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},e.prototype.valueInList=function(e){return!e||this.insertUndividedMax&&this.lastHour(e)===e.getHours()||!this.isMissing(e)},e.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&this.toListItem&&e.push(this.toListItem(this.lastHour(t))),e},e.prototype.addMissing=function(e,t){if(this.valueInList(t))return e;if(this.toListItem){var n=this.toListItem(t.getHours());e.splice(this.selectedIndex(t),0,n)}return e},e.prototype.countFromMin=function(e){var t=this.range(e),n=t[0],r=t[1];return Math.floor(Dn(r,n)/this.step)+1},e.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},e.prototype.isLastMissing=function(e){return null!==this.max&&this.isMissing(Yt(this.max,this.lastHour(e)))},e.prototype.divideByStep=function(e){return Dn(e.getHours(),this.min.getHours())/this.step},e.prototype.lastHour=function(e){return this.range(e)[1]},e.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),n=t[0],r=t[1];return[n.getHours(),r.getHours()]},e}(),Rn=function(e){return e%60},Mn=function(e,t){return Rn(60+e-t)},Pn=function(e){return function(t,n){return n&&t.getHours()!==n.getHours()?Gt(t,e):t}},Nn=Pn(0),Fn=Pn(59),An=function(){function e(e){this.intl=e,this.toListItem=null,this.min=null,this.max=null,this.step=0,this.insertUndividedMax=!1}return e.prototype.apply=function(e,t){return Gt(e,t.getMinutes())},e.prototype.configure=function(e){var t=this,n=e.insertUndividedMax,r=void 0===n?this.insertUndividedMax:n,o=e.min,i=void 0===o?this.min:o,a=e.max,l=void 0===a?this.max:a,s=e.part,u=e.step,c=void 0===u?this.step:u;this.insertUndividedMax=r,this.toListItem=function(e){var n=Gt(B,e);return{text:t.intl.formatDate(n,s.pattern),value:n}},this.min=i,this.max=l,this.step=c},e.prototype.data=function(e){var t=this,n=function(e,t){return function(n){return Rn(e+n*t)}}(this.range(e)[0],this.step),r=$t(0,this.countFromMin(e)).map((function(e){return t.toListItem&&t.toListItem(n(e))}));return this.addLast(r),e&&this.addMissing(r,e),r},e.prototype.isRangeChanged=function(e,t){return!(null===this.min||null===this.max||(0,m.isEqual)(this.min,e)&&(0,m.isEqual)(this.max,t))},e.prototype.limitRange=function(e,t,n){return[Nn(e,n),Fn(t,n)]},e.prototype.total=function(e){var t=this.insertUndividedMax&&this.isLastMissing(e)?1:0,n=this.isMissing(e)?1:0;return this.countFromMin(e)+n+t},e.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},e.prototype.valueInList=function(e){return!e||this.insertUndividedMax&&this.lastMinute(e)===e.getMinutes()||!this.isMissing(e)},e.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&this.toListItem&&e.push(this.toListItem(this.lastMinute(t))),e},e.prototype.addMissing=function(e,t){if(this.valueInList(t))return e;if(this.toListItem){var n=this.toListItem(t.getMinutes());e.splice(this.selectedIndex(t),0,n)}return e},e.prototype.countFromMin=function(e){var t=this.range(e),n=t[0],r=t[1];return Math.floor(Mn(r,n)/this.step)+1},e.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},e.prototype.isLastMissing=function(e){return null!==this.max&&this.isMissing(Gt(this.max,this.lastMinute(e)))},e.prototype.divideByStep=function(e){return Mn(e.getMinutes(),this.min.getMinutes())/this.step},e.prototype.lastMinute=function(e){return this.range(e)[1]},e.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),n=t[0],r=t[1];return[n.getMinutes(),r.getMinutes()]},e}(),jn=function(e){return e%60},Ln=function(e,t){return jn(60+e-t)},Vn=function(e){return function(t,n){return!n||t.getMinutes()===n.getMinutes()&&t.getHours()===n.getHours()?t:Zt(t,e)}},zn=Vn(0),Bn=Vn(59),Hn=function(){function e(e){this.intl=e,this.toListItem=null,this.min=null,this.max=null,this.step=0,this.insertUndividedMax=!1}return e.prototype.apply=function(e,t){return Zt(e,t.getSeconds())},e.prototype.configure=function(e){var t=this,n=e.insertUndividedMax,r=void 0===n?this.insertUndividedMax:n,o=e.min,i=void 0===o?this.min:o,a=e.max,l=void 0===a?this.max:a,s=e.part,u=e.step,c=void 0===u?this.step:u;this.insertUndividedMax=r,this.toListItem=function(e){var n=Zt(B,e);return{text:t.intl.formatDate(n,s.pattern),value:n}},this.min=i,this.max=l,this.step=c},e.prototype.data=function(e){var t=this,n=function(e,t){return function(n){return jn(e+n*t)}}(this.range(e)[0],this.step),r=$t(0,this.countFromMin(e)).map((function(e){return t.toListItem&&t.toListItem(n(e))}));return this.addLast(r),e&&this.addMissing(r,e),r},e.prototype.isRangeChanged=function(e,t){return!(null===this.min||null===this.max||(0,m.isEqual)(this.min,e)&&(0,m.isEqual)(this.max,t))},e.prototype.limitRange=function(e,t,n){return[zn(e,n),Bn(t,n)]},e.prototype.total=function(e){var t=this.insertUndividedMax&&this.isLastMissing(e)?1:0,n=this.isMissing(e)?1:0;return this.countFromMin(e)+n+t},e.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},e.prototype.valueInList=function(e){return!e||this.insertUndividedMax&&this.lastSecond(e)===e.getSeconds()||!this.isMissing(e)},e.prototype.divideByStep=function(e){return Ln(e.getSeconds(),this.min.getSeconds())/this.step},e.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&this.toListItem&&e.push(this.toListItem(this.lastSecond(t))),e},e.prototype.addMissing=function(e,t){if(this.valueInList(t))return e;if(this.toListItem){var n=this.toListItem(t.getSeconds());e.splice(this.selectedIndex(t),0,n)}return e},e.prototype.countFromMin=function(e){var t=this.range(e),n=t[0],r=t[1];return Math.floor(Ln(r,n)/this.step)+1},e.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},e.prototype.isLastMissing=function(e){return null!==this.max&&this.isMissing(Zt(this.max,this.lastSecond(e)))},e.prototype.lastSecond=function(e){return this.range(e)[1]},e.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),n=t[0],r=t[1];return[n.getSeconds(),r.getSeconds()]},e}(),Un=function(){function e(){this.itemHeight=0,this.timeListHeight=0,this.didCalculate=!1}return e.prototype.ensureHeights=function(){void 0===this.timeListHeight&&this.calculateHeights()},e.prototype.calculateHeights=function(e){if(et.N){var t=te("div"),n=te("span"),r=te("ul"),o=te("li"),i=t([n("minute","k-title"),t([t([r([o("<span>02</span>","k-item")],"k-reset")],"k-content k-calendar-content k-scrollable k-time-container")],"k-time-list")],"k-time-list-wrapper",{left:"-10000px",position:"absolute"}),a=e&&e.querySelector(".k-time-container")||document.body,l=a.appendChild(i);this.timeListHeight=l.querySelector(".k-scrollable").offsetHeight,this.itemHeight=l.querySelector("li").offsetHeight,a.removeChild(l),this.didCalculate=!0}},e}(),Wn=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Kn=((yn={})[d.R.end]=function(e,t){return e[e.length-1]},yn[d.R.home]=function(e,t){return e[0]},yn[d.R.up]=function(e,t){return e[t-1]},yn[d.R.down]=function(e,t){return e[t+1]},yn),qn=((bn={}).dayperiod=Sn,bn.hour=_n,bn.minute=An,bn.second=Hn,bn),Yn=function(e){function t(n){var r=e.call(this,n)||this;return r.intl=null,r._element=null,r.service=null,r.virtualization=null,r.topOffset=0,r.bottomOffset=0,r.itemHeight=0,r.listHeight=0,r.topThreshold=0,r.bottomThreshold=0,r.animateToIndex=!1,r.focus=function(e){Promise.resolve().then((function(){r.element&&r.element.focus(e)}))},r.itemOffset=function(e){if(!r.virtualization||!r.service)return-1;var t=r.service.selectedIndex(r.props.value),n=r.virtualization.activeIndex(),o=r.virtualization.itemOffset(n),i=Math.abs(Math.ceil(e)-o);if(t===n&&i<2)return o;var a=t>n;return a&&i>=r.bottomThreshold||!a&&i>r.topThreshold?r.virtualization.itemOffset(n+1):o},r.calculateHeights=function(){r.dom.didCalculate&&(r.itemHeight=r.dom.itemHeight,r.listHeight=r.dom.timeListHeight,r.topOffset=(r.listHeight-r.itemHeight)/2,r.bottomOffset=r.listHeight-r.itemHeight,r.topThreshold=.05*r.itemHeight,r.bottomThreshold=.95*r.itemHeight)},r.configureServices=function(e){var t=void 0===e?r.props:e,n=t.min,o=t.max,i=t.value;if(r.service){var a=r.service.limitRange(n||r.min,o||r.max,i||r.props.value),l=a[0],s=a[1];r.service.configure(r.serviceSettings({min:l,max:s}))}},r.serviceSettings=function(e){var n={boundRange:r.props.boundRange||t.defaultProps.boundRange,insertUndividedMax:!1,min:(0,m.cloneDate)(r.min),max:(0,m.cloneDate)(r.max),part:r.props.part,step:r.step},o=Object.assign({},n,e);return o.boundRange="hour"!==o.part.type||r.props.boundRange||t.defaultProps.boundRange,o},r.handleScrollAction=function(e){var t=e.target,n=e.animationInProgress;if(r.virtualization&&r.service&&t&&!n){r.animateToIndex=!1;var o=r.virtualization.itemIndex(r.itemOffset(t.scrollTop)),i=r.service.data(r.props.value)[o];r.handleChange(i)}},r.handleFocus=function(e){var t=r.props.onFocus;t&&t.call(void 0,e)},r.handleBlur=function(e){var t=r.props.onBlur;t&&t.call(void 0,e)},r.handleMouseOver=function(){r._element&&document&&document.activeElement!==r._element&&r.props.show&&r._element.focus({preventScroll:!0})},r.handleKeyDown=function(e){if(r.service){var t=e.keyCode;t!==d.R.down&&t!==d.R.up&&t!==d.R.end&&t!==d.R.home||e.preventDefault();var n=(Kn[e.keyCode]||At.Z)(r.service.data(r.props.value),r.service.selectedIndex(r.props.value));n&&r.handleChange(n)}},r.handleChange=function(e){if(r.service){var t=r.service.apply(r.props.value,e.value);if(r.props.value.getTime()!==t.getTime()){r.setState({value:t});var n=r.props.onChange;n&&n.call(void 0,t)}}},r.dom=new Un,r}return Wn(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"animate",{get:function(){return Boolean(this.props.smoothScroll&&this.animateToIndex)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return this.props.min||t.defaultProps.min},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this.props.max||t.defaultProps.max},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"step",{get:function(){return void 0!==this.props.step&&0!==this.props.step?Math.floor(this.props.step):t.defaultProps.step},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){var e=this;Promise.resolve().then((function(){e._element&&(e.dom.calculateHeights(e._element),e.forceUpdate())}))},t.prototype.componentDidUpdate=function(){if(this.virtualization&&this.service){var e=this.service.selectedIndex(this.props.value);this.virtualization[this.animate?"animateToIndex":"scrollToIndex"](e),this.animateToIndex=!0}},t.prototype.render=function(){var e=this;if(this.props.part.type&&qn[this.props.part.type]){this.calculateHeights(),this.intl=(0,v.provideIntlService)(this),this.service=new qn[this.props.part.type](this.intl),this.configureServices();var t=this.service.data(this.props.value),n="translateY("+this.topOffset+"px)",r=this.service.total(this.props.value),o=s.createElement("ul",{style:{transform:n,msTransform:n},className:"k-reset"},t.map((function(t,n){return s.createElement("li",{key:n,className:"k-item",onClick:function(){e.handleChange(t)}},s.createElement("span",null,t.text))})));return s.createElement("div",{className:"k-time-list",id:String(this.props.id||""),tabIndex:this.props.disabled?-1:0,ref:function(t){e._element=t},onKeyDown:this.handleKeyDown,onFocus:this.handleFocus,onBlur:this.handleBlur,onMouseOver:this.handleMouseOver},this.dom.didCalculate?s.createElement(T,{bottomOffset:this.bottomOffset,children:o,className:"k-time-container",itemHeight:this.itemHeight,maxScrollDifference:this.listHeight,onScrollAction:this.handleScrollAction,ref:function(t){e.virtualization=t},role:"presentation",skip:0,tabIndex:-1,take:r,topOffset:this.topOffset,total:r}):s.createElement("div",{className:"k-time-container"},o))}},t.propTypes={id:u.number,max:u.instanceOf(Date),min:u.instanceOf(Date),part:function(e,t,n){var r=e[t];if(!r||!qn[r.type])throw new Error("\n Invalid prop '".concat(t,"' supplied to ").concat(n,".\n Supported part types are hour|minute|second|dayperiod.\n "));return null},step:function(e,t,n){var r=e[t];if(void 0!==r&&r<=0)throw new Error("\n Invalid prop '".concat(t,"' supplied to ").concat(n,".\n ").concat(t," cannot be less than 1.\n "));return null},value:u.instanceOf(Date),smoothScroll:u.bool,show:u.bool},t.defaultProps={boundRange:!1,max:K,min:B,step:1,smoothScroll:!0},t}(s.Component);(0,v.registerForIntl)(Yn);var Gn,Zn=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Xn=function(){return Xn=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},Xn.apply(this,arguments)},$n=new RegExp("".concat(Vt,"|").concat(zt,"|").concat(Bt,"|").concat(Lt,"|literal"));!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(Gn||(Gn={}));var Qn=function(e){function t(n){var r=e.call(this,n)||this;return r._element=null,r._nowButton=null,r.dateFormatParts=[],r.timeLists=[],r.focus=function(e){Promise.resolve().then((function(){var t=r.timeLists[0];-1===r.state.activeListIndex&&!r.hasActiveButton()&&t&&t.element&&t.focus(e)}))},r.timeFormatReducer=function(e,t){return e+t.pattern},r.timeFormatFilter=function(e,t,n){var r=t>=1&&n[t-1];return r&&r&&"literal"===e.type?$n.test(r.type||""):$n.test(e.type||"")},r.focusList=function(e){r.timeLists.length&&r.timeLists.reduce(r.listReducer,[]).map((function(t){return e===Gn.Right?t.next:t.prev})).map((function(e){return e&&e.element&&e.element.focus({preventScroll:!0})}))},r.listReducer=function(e,t,n,o){return e.length||t.props.id!==r.state.activeListIndex?e:[{next:o[n+1]||t,prev:o[n-1]||t}]},r.showNowButton=function(){return!r.hasSteps()&&r.props.nowButton&&Jt(Xt(),r.min,r.max)},r.handleKeyDown=function(e){switch(e.keyCode){case d.R.left:return e.preventDefault(),void r.focusList(Gn.Left);case d.R.right:return e.preventDefault(),void r.focusList(Gn.Right);default:return}},r.handleListBlur=function(){r.nextTick((function(){r.setState({activeListIndex:-1})}))},r.handleListFocus=function(e){clearTimeout(r.nextTickId),r.setState({activeListIndex:e})},r.handleChange=function(e){var t=r.props.onChange;t&&t.call(void 0,e)},r.snapTime=qt(Kt(r.props.steps,r.props.min||t.defaultProps.min)),r.state={activeListIndex:-1},r.hasActiveButton=r.hasActiveButton.bind(r),r}return Zn(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return function(e,t,n){if(!e||!t||!n)return e;var r=Qt(e,t,n),o=r.candidateValue,i=r.minValue,a=r.maxValue;return o<i?q(e,t):o>a?q(e,n):e}(this.snapTime((0,m.cloneDate)(this.props.value||B)),this.min,this.max)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"intl",{get:function(){return(0,v.provideIntlService)(this)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return this.snapTime(this.props.min||t.defaultProps.min)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this.snapTime(this.props.max||t.defaultProps.max)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"steps",{get:function(){return this.props.steps||t.defaultProps.steps},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"boundRange",{get:function(){return void 0!==this.props.boundRange?this.props.boundRange:t.defaultProps.boundRange},enumerable:!1,configurable:!0}),t.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},t.prototype.componentDidMount=function(){var e=this.props.onMount;e&&e.call(void 0,this.value)},t.prototype.render=function(){var e=this,n=this.props,r=n.format,o=n.smoothScroll,i=n.onNowClick,a=n.className,l=n.disabled;this.snapTime=qt(Kt(this.steps,this.min)),this.dateFormatParts=this.intl.splitDateFormat(r||t.defaultProps.format).filter(this.timeFormatFilter);var u=(0,f.A)({"k-disabled":l},a,"k-time-part");this.timeLists=[];var c=(0,v.provideLocalizationService)(this),d=c.toLanguageString(Me,Be[Me]);return s.createElement("div",{className:u},s.createElement("div",{className:"k-time-header"},s.createElement("span",{className:"k-title"},this.intl.formatDate(this.value,this.dateFormatParts.reduce(this.timeFormatReducer,""))),this.showNowButton()&&s.createElement(se.z,Xn({type:"button",ref:function(t){e._nowButton=t},className:"k-time-now",fillMode:"flat",themeColor:"primary",title:d},{"aria-label":d},{onClick:i,tabIndex:l?-1:0}),c.toLanguageString(Re,Be[Re]))),s.createElement("div",{className:"k-time-list-container",onKeyDown:this.handleKeyDown},s.createElement("span",{className:"k-time-highlight"}),this.dateFormatParts.map((function(t,n){return"literal"!==t.type?s.createElement("div",{key:n,className:(0,f.A)("k-time-list-wrapper",{"k-focus":n===e.state.activeListIndex}),role:"presentation",tabIndex:-1},s.createElement("span",{className:"k-title",onMouseDown:function(e){e.preventDefault()}},e.intl.dateFieldName(t)),s.createElement(Yn,{min:e.min,max:e.max,boundRange:e.boundRange,part:t,step:t.type?e.steps[t.type]:1,smoothScroll:o,ref:function(t){t&&e.timeLists.push(t)},id:n,onFocus:function(){e.handleListFocus(n)},onBlur:e.handleListBlur,onChange:e.handleChange,value:e.value,disabled:l,show:e.props.show})):s.createElement("div",{key:n,className:"k-time-separator"},t.pattern)}))))},t.prototype.nextTick=function(e){clearTimeout(this.nextTickId),this.nextTickId=window.setTimeout((function(){return e()}))},t.prototype.hasActiveButton=function(){return this._nowButton&&document.activeElement===this._nowButton.element},t.prototype.hasSteps=function(){var e=this,t=Object.keys(this.steps);return t.length!==t.reduce((function(t,n){return t+e.steps[n]}),0)},t.propTypes={cancelButton:u.bool,disabled:u.bool,format:u.oneOfType([u.string,u.shape({skeleton:u.string,pattern:u.string,date:u.oneOf(["short","medium","long","full"]),time:u.oneOf(["short","medium","long","full"]),datetime:u.oneOf(["short","medium","long","full"]),era:u.oneOf(["narrow","short","long"]),year:u.oneOf(["numeric","2-digit"]),month:u.oneOf(["numeric","2-digit","narrow","short","long"]),day:u.oneOf(["numeric","2-digit"]),weekday:u.oneOf(["narrow","short","long"]),hour:u.oneOf(["numeric","2-digit"]),hour12:u.bool,minute:u.oneOf(["numeric","2-digit"]),second:u.oneOf(["numeric","2-digit"]),timeZoneName:u.oneOf(["short","long"])})]),max:u.instanceOf(Date),min:u.instanceOf(Date),nowButton:u.bool,steps:u.shape({hour:u.number,minute:u.number,second:u.number}),smoothScroll:u.bool,tabIndex:u.number,value:u.instanceOf(Date),show:u.bool},t.defaultProps={value:null,disabled:!1,nowButton:!0,cancelButton:!0,format:"hh:mm a",min:W,max:K,steps:{},boundRange:!1},t}(s.Component);(0,v.registerForIntl)(Qn),(0,v.registerForLocalization)(Qn);var Jn,er=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),tr=function(){return tr=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},tr.apply(this,arguments)};!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(Jn||(Jn={}));var nr=function(e){function t(n){var r=e.call(this,n)||this;return r._element=null,r._cancelButton=null,r._acceptButton=null,r.timePart=null,r.focusActiveList=function(){r.timePart&&r.timePart.focus({preventScroll:!0})},r.handleKeyDown=function(e){e.keyCode!==d.R.enter||r.hasActiveButton()||r.handleAccept(e)},r.handleAccept=function(e){var t=r.mergeValue((0,m.cloneDate)(r.value||Xt()),r.timePart?r.timePart.value:r.current);r.setState({value:t}),r.valueDuringOnChange=t;var n=r.props.onChange;n&&n.call(void 0,{syntheticEvent:e,nativeEvent:e.nativeEvent,value:r.value,target:r}),r.valueDuringOnChange=void 0},r.handleReject=function(e){r.setState({current:r.value});var t=r.props.onReject;t&&t.call(void 0,e)},r.handleNowClick=function(e){var t=r.mergeValue((0,m.cloneDate)(r.value||Xt()),Xt());r.setState({current:t,value:t}),r.valueDuringOnChange=t;var n=r.props.onChange;n&&n.call(void 0,{syntheticEvent:e,nativeEvent:e.nativeEvent,value:r.value,target:r}),r.valueDuringOnChange=void 0},r.handleChange=function(e){r.setState({current:e})},r.dateFormatParts=r.intl.splitDateFormat(r.props.format||t.defaultProps.format),r.mergeValue=function(e){return function(t,n){return t.setHours.apply(t,e.map((function(e){return e(t,n)}))),t}}(Wt(r.dateFormatParts)),r.hasActiveButton=r.hasActiveButton.bind(r),r.state={current:r.props.value||B,value:r.props.value||t.defaultProps.value},r}return er(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){var e=void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.props.value?this.props.value:this.state.value;return null!==e?(0,m.cloneDate)(e):null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"intl",{get:function(){return(0,v.provideIntlService)(this)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"current",{get:function(){return null!==this.state.current?(0,m.cloneDate)(this.state.current):null},enumerable:!1,configurable:!0}),t.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},t.prototype.render=function(){var e=this,t=this.props,n=t.format,r=t.cancelButton,o=t.disabled,i=t.tabIndex,a=t.className,l=t.smoothScroll,u=t.min,c=t.max,d=t.boundRange,p=t.nowButton,h=t.steps,m=(0,v.provideLocalizationService)(this),g=m.toLanguageString(Pe,Be[Pe]),y=m.toLanguageString(Ne,Be[Ne]);return s.createElement("div",{ref:function(t){e._element=t},tabIndex:o?void 0:i||0,className:(0,f.A)("k-timeselector k-reset",a,{"k-disabled":o}),onKeyDown:this.handleKeyDown},s.createElement(Qn,{ref:function(t){e.timePart=t},value:this.current,onChange:this.handleChange,onNowClick:this.handleNowClick,format:n,smoothScroll:l,min:u,max:c,boundRange:d,disabled:o,nowButton:p,steps:h,show:this.props.show}),s.createElement("div",{className:"k-time-footer k-actions k-hstack k-justify-content-stretch"},r&&s.createElement(se.z,tr({type:"button",ref:function(t){e._cancelButton=t},className:"k-time-cancel",onClick:this.handleReject,title:g},{"aria-label":g}),g),s.createElement(se.z,tr({type:"button",ref:function(t){e._acceptButton=t},className:"k-time-accept",themeColor:"primary",onClick:this.handleAccept,title:y},{"aria-label":y}),y)))},t.prototype.nextTick=function(e){clearTimeout(this.nextTickId),this.nextTickId=window.setTimeout((function(){return e()}))},t.prototype.hasActiveButton=function(){return!(!this._acceptButton||!this._acceptButton.element)&&(this._acceptButton&&document.activeElement===this._acceptButton.element||this._cancelButton&&document.activeElement===this._cancelButton.element)},t.propTypes={cancelButton:u.bool,className:u.string,disabled:u.bool,format:u.oneOfType([u.string,u.shape({skeleton:u.string,pattern:u.string,date:u.oneOf(["short","medium","long","full"]),time:u.oneOf(["short","medium","long","full"]),datetime:u.oneOf(["short","medium","long","full"]),era:u.oneOf(["narrow","short","long"]),year:u.oneOf(["numeric","2-digit"]),month:u.oneOf(["numeric","2-digit","narrow","short","long"]),day:u.oneOf(["numeric","2-digit"]),weekday:u.oneOf(["narrow","short","long"]),hour:u.oneOf(["numeric","2-digit"]),hour12:u.bool,minute:u.oneOf(["numeric","2-digit"]),second:u.oneOf(["numeric","2-digit"]),timeZoneName:u.oneOf(["short","long"])})]),max:u.instanceOf(Date),min:u.instanceOf(Date),nowButton:u.bool,steps:u.shape({hour:u.number,minute:u.number,second:u.number}),smoothScroll:u.bool,tabIndex:u.number,value:u.instanceOf(Date),show:u.bool},t.defaultProps={value:null,disabled:!1,cancelButton:!0,format:"t",min:W,max:K,boundRange:!1},t}(s.Component);(0,v.registerForIntl)(nr),(0,v.registerForLocalization)(nr);var rr=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),or=function(){return or=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},or.apply(this,arguments)},ir=function(e){function t(n){var r=e.call(this,n)||this;return r._popupId=(0,c.M)(),r._element=null,r._dateInput=s.createRef(),r._timeSelector=null,r.shouldFocusDateInput=!1,r.prevShow=!1,r.focus=function(){r.dateInput&&r.dateInput.focus()},r.setTimeSelectorRef=function(e){r._timeSelector=e},r.nextValue=function(e,t){return void 0!==e.value?e.value:t.value},r.nextShow=function(e,t){return void 0!==e.show?e.show:t.show},r.handleInputValueChange=function(e){var t=r.mergeTime(e.value);r.handleValueChange(or(or({},e),{value:t}))},r.handleValueChange=function(e){r.setState({value:(0,m.cloneDate)(e.value),show:!1}),r.valueDuringOnChange=e.value,r.showDuringOnChange=!1,r.shouldFocusDateInput=!0;var t=r.props.onChange;t&&t.call(void 0,{syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,value:r.value,show:r.show,target:r}),r.valueDuringOnChange=void 0,r.showDuringOnChange=void 0},r.handleFocus=function(){r.setState({focused:!0})},r.handleBlur=function(){r.setState({focused:!1}),r.setShow(!1)},r.handleValueReject=function(e){r.setShow(!1)},r.handleIconClick=function(e){r.props.disabled||(r.shouldFocusDateInput=!0,r.setShow(!r.show))},r.handleIconMouseDown=function(e){e.preventDefault()},r.handleKeyDown=function(e){var t=e.altKey,n=e.keyCode;if(n===d.R.esc)return r.shouldFocusDateInput=!0,void r.setShow(!1);!t||n!==d.R.up&&n!==d.R.down||(e.preventDefault(),e.stopPropagation(),r.shouldFocusDateInput=n===d.R.up,r.setShow(n===d.R.down))},(0,p.s)(g),r.state={value:r.props.defaultValue||t.defaultProps.defaultValue,show:r.props.defaultShow||t.defaultProps.defaultShow,focused:!1},r.normalizeTime=r.normalizeTime.bind(r),r.setShow=r.setShow.bind(r),r.mergeTime=r.mergeTime.bind(r),r}return rr(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dateInput",{get:function(){return this._dateInput.current},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timeSelector",{get:function(){return this._timeSelector},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){var e=void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.props.value?this.props.value:this.state.value;return null!==e?(0,m.cloneDate)(e):null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"show",{get:function(){return void 0!==this.showDuringOnChange?this.showDuringOnChange:void 0!==this.props.show?this.props.show:this.state.show},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){var e=this.value&&this.normalizeTime(this.value),t=this.normalizeTime(this.min),n=this.normalizeTime(this.max),r=function(e,t,n){if(null===e)return!0;var r=Qt(e,t,n),o=r.candidateValue,i=r.minValue,a=r.maxValue;return i<=o&&o<=a}(e,t,n),o=void 0!==this.props.validationMessage,i=(!this.required||null!==this.value)&&r,a=void 0!==this.props.valid?this.props.valid:i;return{customError:o,rangeOverflow:tn(e,n),rangeUnderflow:en(e,t),valid:a,valueMissing:null===this.value}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:t.defaultProps.required},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popupSettings",{get:function(){return this.props.popupSettings||t.defaultProps.popupSettings},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return void 0!==this.props.min?this.props.min:t.defaultProps.min},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return void 0!==this.props.max?this.props.max:t.defaultProps.max},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dateInputComp",{get:function(){return this.props.dateInput||t.defaultProps.dateInput},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.show&&this.forceUpdate()},t.prototype.componentDidUpdate=function(){this._timeSelector&&this.show&&!this.prevShow?this._timeSelector.focusActiveList():this.dateInput&&this.dateInput.element&&!this.show&&this.shouldFocusDateInput&&this.dateInput.element.focus({preventScroll:!0}),this.prevShow=this.show,this.shouldFocusDateInput=!1},t.prototype.render=function(){var e=this,n=this.props,r=n.size,o=void 0===r?t.defaultProps.size:r,i=n.rounded,a=void 0===i?t.defaultProps.rounded:i,l=n.fillMode,u=void 0===l?t.defaultProps.fillMode:l,c=n.disabled,d=n.tabIndex,p=n.title,h=n.id,m=n.className,g=n.format,y=n.formatPlaceholder,b=n.smoothScroll,C=n.width,E=n.name,w=n.steps,k=n.cancelButton,S=n.nowButton,O=n.validationMessage,D=n.required,x=n.validityStyles,I=n.ariaLabelledBy,T=n.ariaDescribedBy,_=this.popupSettings,R=_.popupClass,M=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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(_,["popupClass"]),P=!this.validityStyles||this.validity.valid,N=(0,f.A)("k-group k-reset",R),F={disabled:c,format:g,formatPlaceholder:y,id:h,ariaLabelledBy:I,ariaDescribedBy:T,max:this.normalizeTime(this.max),min:this.normalizeTime(this.min),name:E,onChange:this.handleInputValueChange,required:D,steps:w,tabIndex:this.show?-1:d,title:p,valid:this.validity.valid,validationMessage:O,validityStyles:x,value:this.value&&this.normalizeTime(this.value),label:void 0,placeholder:this.state.focused?null:this.props.placeholder,ariaHasPopup:!0,ariaExpanded:this.show,size:null,fillMode:null,rounded:null},A=or({show:this.show,animate:null!==this.element,anchor:this.element,className:N,id:this._popupId,anchorAlign:{horizontal:"left",vertical:"bottom"},popupAlign:{horizontal:"left",vertical:"top"}},M),j=s.createElement(nr,{ref:this.setTimeSelectorRef,show:this.show,cancelButton:k,disabled:c,nowButton:S,format:g,min:this.min,max:this.max,steps:w,smoothScroll:b,value:this.value,onChange:this.handleValueChange,onReject:this.handleValueReject}),L=(0,v.provideLocalizationService)(this),V=L.toLanguageString(Ae,Be[Ae]),z=L.toLanguageString(Fe,Be[Fe]),B=s.createElement(Nt.o,{onFocus:this.handleFocus,onBlur:this.handleBlur,onSyncBlur:this.props.onBlur,onSyncFocus:this.props.onFocus},(function(t){var n,r=t.onFocus,i=t.onBlur;return s.createElement("div",{ref:function(t){e._element=t},className:(0,f.A)("k-input","k-timepicker",(n={},n["k-input-".concat(Ft.G.sizeMap[o]||o)]=o,n["k-rounded-".concat(Ft.G.roundedMap[a]||a)]=a,n["k-input-".concat(u)]=u,n["k-invalid"]=!P,n["k-required"]=e.required,n["k-disabled"]=e.props.disabled,n),m),onKeyDown:e.handleKeyDown,style:{width:C},onFocus:r,onBlur:i},s.createElement(e.dateInputComp,or({_ref:e._dateInput},F)),s.createElement(se.z,or({tabIndex:-1,type:"button",icon:"clock",onMouseDown:e.handleIconMouseDown,onClick:e.handleIconClick,title:z,className:"k-input-button",rounded:null},{"aria-controls":e._popupId,"aria-label":V})),e.props.popup?s.createElement(e.props.popup,or({},A),j):s.createElement(sn.G,or({},A),j))}));return this.props.label?s.createElement(pn,{dateInput:this._dateInput,label:this.props.label,editorId:h,editorValid:P,editorDisabled:this.props.disabled,children:B,style:{width:this.props.width}}):B},t.prototype.normalizeTime=function(e){return q(B,e)},t.prototype.setShow=function(e){this.show!==e&&this.setState({show:e})},t.prototype.mergeTime=function(e){return this.value&&e?q(this.value,e):e},t.displayName="TimePicker",t.propTypes={className:u.string,cancelButton:u.bool,nowButton:u.bool,defaultShow:u.bool,defaultValue:u.instanceOf(Date),disabled:u.bool,format:u.oneOfType([u.string,u.shape({skeleton:u.string,pattern:u.string,date:u.oneOf(["short","medium","long","full"]),time:u.oneOf(["short","medium","long","full"]),datetime:u.oneOf(["short","medium","long","full"]),era:u.oneOf(["narrow","short","long"]),year:u.oneOf(["numeric","2-digit"]),month:u.oneOf(["numeric","2-digit","narrow","short","long"]),day:u.oneOf(["numeric","2-digit"]),weekday:u.oneOf(["narrow","short","long"]),hour:u.oneOf(["numeric","2-digit"]),hour12:u.bool,minute:u.oneOf(["numeric","2-digit"]),second:u.oneOf(["numeric","2-digit"]),timeZoneName:u.oneOf(["short","long"])})]),formatPlaceholder:u.oneOfType([u.oneOf(["wide","narrow","short","formatPattern"]),u.shape({year:u.string,month:u.string,day:u.string,hour:u.string,minute:u.string,second:u.string})]),id:u.string,ariaLabelledBy:u.string,ariaDescribedBy:u.string,min:u.instanceOf(Date),max:u.instanceOf(Date),name:u.string,popupSettings:u.shape({animate:u.bool,appendTo:u.any,popupClass:u.string}),show:u.bool,steps:u.shape({hour:u.number,minute:u.number,second:u.number}),smoothScroll:u.bool,tabIndex:u.number,title:u.string,value:u.instanceOf(Date),width:u.oneOfType([u.number,u.string]),validationMessage:u.string,required:u.bool,validate:u.bool,valid:u.bool,size:u.oneOf([null,"small","medium","large"]),rounded:u.oneOf([null,"small","medium","large","full"]),fillMode:u.oneOf([null,"solid","flat","outline"])},t.defaultProps={defaultShow:!1,defaultValue:null,disabled:!1,format:"t",max:K,min:W,popupSettings:{},tabIndex:0,steps:{},required:!1,validityStyles:!0,dateInput:ln,size:"medium",rounded:"medium",fillMode:"solid"},t}(s.Component),ar=(0,h.Y)(),lr=(0,h.u)(ar,ir);lr.displayName="KendoReactTimePicker",(0,v.registerForLocalization)(ir);var sr=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ur=function(e){function t(t){var n=e.call(this,t)||this;return n._element=null,n.isActive=!1,n.focusActiveDate=function(){if(n._element){var e=n._element.querySelector("td.k-focus"),t=n._element.querySelector(".k-state-pending-focus");e&&e[0]&&e[0].classList.remove("k-focus"),t&&t.classList.add("k-focus"),n.isActive=!0}},n.blurActiveDate=function(){if(n._element){var e=n._element.querySelector("td.k-focus");e&&e.classList.remove("k-focus"),n.isActive=!1}},n.rotateSelectionRange=function(e){if(null===e.start||null===e.end)return e;var t=e.end<e.start;return{start:t?e.end:e.start,end:t?e.start:e.end}},n.handleDateChange=function(e,t){void 0===t&&(t=!1);var r=n.props.onChange;if(r){var o={syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,value:(0,m.cloneDate)(e.value),target:n,isTodayClick:t};r.call(void 0,o)}},n}return sr(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"weekNumber",{get:function(){return Boolean(this.props.showWeekNumbers&&this.props.activeView===O.month)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return void 0!==this.props.min?this.props.min:t.defaultProps.min},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return void 0!==this.props.max?this.props.max:t.defaultProps.max},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(){this.isActive&&this.focusActiveDate()},t.prototype.render=function(){var e=this,t=this.props.allowReverse?this.rotateSelectionRange(this.props.selectionRange):this.props.selectionRange,n=(0,f.A)("k-calendar-view k-hstack k-align-items-start k-justify-content-center",{"k-calendar-monthview":this.props.activeView===O.month,"k-calendar-yearview":this.props.activeView===O.year,"k-calendar-decadeview":this.props.activeView===O.decade,"k-calendar-centuryview":this.props.activeView===O.century});return s.createElement("div",{ref:function(t){e._element=t},className:n},this.props.dates.map((function(n){return s.createElement("table",{className:"k-calendar-table k-calendar-content k-content",key:n.getTime()},s.createElement(ae,{bus:e.props.bus,service:e.props.service,key:n.getTime(),direction:"horizontal",activeView:e.props.activeView,cellUID:e.props.cellUID,viewDate:n,min:e.min,max:e.max,focusedDate:e.props.focusedDate,selectionRange:t,selectedDate:e.props.value,showWeekNumbers:e.weekNumber,onChange:e.handleDateChange,onCellEnter:e.props.onCellEnter,cell:e.props.cell,weekCell:e.props.weekCell}))})))},t.defaultProps={showWeekNumbers:!1,views:2,take:2,allowReverse:!0,min:fe,max:he},t}(s.Component),cr=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),dr=function(){return dr=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},dr.apply(this,arguments)},pr=function(e,t,n){return void 0===e&&(e=vr.defaultProps.min),void 0===t&&(t=vr.defaultProps.max),n instanceof Date&&!Array.isArray(n)&&G((0,m.getDate)(n),e,t)?(0,m.getDate)(n):null},fr=function(e,t,n){return void 0===e&&(e=vr.defaultProps.min),void 0===t&&(t=vr.defaultProps.max),Array.isArray(n)?n.filter((function(n){return G(n,e,t)})).map((function(e){return(0,m.getDate)(e)})):null},hr=function(e){return"object"!=typeof e||e instanceof Date||null===e||Array.isArray(e)?j:e},mr=function(e,t,n){return e||t&&t[0]||n&&n.start},vr=function(e){function t(n){var r=e.call(this,n)||this;r.dates=[],r.selectedDate=null,r.selectedMultiple=null,r.selectedRange=j,r._focusedDate=new Date,r.cellUID=(0,c.M)(),r.activeRangeEnd="start",r._element=null,r.intl=null,r.localization=null,r.service=null,r.wrapperID=(0,c.M)(),r.calendarViewList=null,r.isActive=!1,r.calculateFocusFromValue=!0,r.focus=function(){r._element&&r._element.focus()},r.clampRange=function(e){return{start:e,end:null}},r.rangeWithFocused=function(e,t){return{start:e.start,end:null===e.end&&null!==e.start&&r.isActive?t:e.end}},r.generateRange=function(e,t){var n=t.end,o=t.start,i=null!==t.start&&e.getTime()<=t.start.getTime();return!r.props.allowReverse&&i?{start:e,end:r.selectedRange.start}:"end"!==r.activeRange?{start:e,end:n}:{start:o||r.selectedDate,end:e}},r.canNavigate=function(e){if(!r.service)return!1;var t=r.service.move(r.focusedDate,e);return r.min<=t&&t<=r.max||r.service.isInSameView(t,r.min)||r.service.isInSameView(t,r.max)},r.isListInRange=function(e){return r.min<e[0]&&r.max>e[Math.max(0,(r.props.views||t.defaultProps.views)-1)]},r.navigate=function(e){r.calculateFocusFromValue=!1;var t=r.move(e);r.setState({focusedDate:t})},r.move=function(e){return r.clampDate(r.service.move(r.focusedDate,e))},r.clampDate=function(e){return ee(e,r.min,r.max)},r.shouldAutoCorrect=function(e,t){var n=t.end,o=t.start;return"end"!==r.activeRange?null!==n&&e>n:null!==o&&e<o},r.handleCellEnter=function(e){"range"===r.props.mode&&(r.calculateFocusFromValue=!1,r.setState({focusedDate:e}))},r.handleMouseDown=function(e){e.preventDefault()},r.handleClick=function(e){r._element&&r._element.focus({preventScroll:!0})},r.handleFocus=function(e){if(r.isActive=!0,r.calendarViewList){r.calendarViewList.focusActiveDate();var t=r.props.onFocus;t&&t.call(void 0,e)}},r.handleBlur=function(e){if(r.isActive=!1,r.calendarViewList){r.calendarViewList.blurActiveDate();var t=r.props.onBlur;t&&t.call(void 0,e)}},r.handleTodayClick=function(e){r.todayIsInRange&&r.handleDateChange(e)},r.handlePrevButtonClick=function(){r.navigate(qe.PrevView)},r.handleNextButtonClick=function(){r.navigate(qe.NextView)},r.handleKeyDown=function(e){if(e.keyCode===d.R.enter){var t={syntheticEvent:e,nativeEvent:e.nativeEvent,value:r.focusedDate,target:r};r.handleDateChange(t)}else{var n=ee(r.navigation.move(r.focusedDate,r.navigation.action(e),r.state.activeView,r.service,e),r.min,r.max);if((0,m.isEqualDate)(r.focusedDate,n))return;r.calculateFocusFromValue=!1,r.setState({focusedDate:n})}e.preventDefault()},r.handleViewChange=function(e){var t=e.view;r.calculateFocusFromValue=!1,r.setState({activeView:t})},r.handleDateChange=function(e){var t=(0,m.cloneDate)(e.value),n=r.bus.canMoveDown(r.state.activeView);if(!r.props.disabled){if(n){if(!e.isTodayClick)return r.bus.moveDown(r.state.activeView,e.syntheticEvent),void r.setState({focusedDate:t});r.bus.moveToBottom(r.state.activeView)}var o;switch(r.calculateFocusFromValue=!0,r.props.mode){case"single":default:o=(0,m.cloneDate)(e.value);break;case"multiple":if(Array.isArray(r.selectedMultiple)){var i=r.selectedMultiple.slice(),a=-1;i.forEach((function(t,n){(0,m.isEqualDate)(t,e.value)&&(a=n)})),-1!==a?i.splice(a,1):i.push((0,m.cloneDate)(e.value)),o=i.slice()}else o=r.selectedDate?[(0,m.cloneDate)(r.selectedDate),(0,m.cloneDate)(e.value)]:[(0,m.cloneDate)(e.value)];break;case"range":o=null!==r.selectedRange.start&&null!==r.selectedRange.end&&"start"===r.activeRange?r.clampRange(e.value):r.generateRange(e.value,r.selectedRange),r.activeRangeEnd="end"!==r.activeRange?"end":"start"}r.valueDuringOnChange=o,r.setState({value:o,focusedDate:t}),r.valueDuringOnChange=o;var l=r.props.onChange;if(l){var s={syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,value:o,target:r};l.call(void 0,s)}r.valueDuringOnChange=void 0}};var o=void 0!==n.value?n.value:n.defaultValue||t.defaultProps.defaultValue,i=pr(r.min,r.max,o),a=fr(r.min,r.max,o),l=hr(o),s=mr(i,a,l),u=z(O[n.defaultActiveView],r.bottomView,r.topView),p=ee(n.focusedDate||s||Y(),r.min,r.max);return r.state={value:o,activeView:u,focusedDate:p},r.activeRangeEnd=function(e,t){return null===e.start&&null===t?"start":null===e.end?"end":"start"}(l,i),r.bus=new bt(r.handleViewChange),r.navigation=new Et(r.bus),r.calculateFocusFromValue=!1,r.lastView=u,r.lastViewsCount=r.props.views||ur.defaultProps.views,r}return cr(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,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:!1,configurable:!0}),Object.defineProperty(t.prototype,"focusedDate",{get:function(){return(0,m.cloneDate)(this._focusedDate)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return(0,m.getDate)(void 0!==this.props.min?this.props.min:t.defaultProps.min)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return(0,m.getDate)(void 0!==this.props.max?this.props.max:t.defaultProps.max)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bottomView",{get:function(){return O[void 0!==this.props.bottomView?this.props.bottomView:t.defaultProps.bottomView]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"topView",{get:function(){return O[void 0!==this.props.topView?this.props.topView:t.defaultProps.topView]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeRange",{get:function(){return void 0!==this.props.activeRangeEnd?this.props.activeRangeEnd:this.activeRangeEnd},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"todayIsInRange",{get:function(){return G(Y(),(0,m.getDate)(this.min),(0,m.getDate)(this.max))},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.calculateFocusFromValue=!0},t.prototype.componentDidUpdate=function(){this.calendarViewList&&(this.isActive?this.calendarViewList.focusActiveDate:this.calendarViewList.blurActiveDate)();var e=pr(this.min,this.max,this.value);this.calculateFocusFromValue=Boolean(this.selectedDate&&e&&this.selectedDate.getTime()&&e.getTime()),this.lastView=this.state.activeView,this.lastViewsCount=this.props.views||ur.defaultProps.views},t.prototype.render=function(){var e=this;this.props._ref&&this.props._ref(this),this.intl=(0,v.provideIntlService)(this),this.localization=(0,v.provideLocalizationService)(this),this.bus.configure(this.bottomView,this.topView);var t=z(this.state.activeView,this.bottomView,this.topView);this.service=this.bus.service(t,this.intl),this.selectedDate=pr(this.min,this.max,this.value),this.selectedMultiple=fr(this.min,this.max,this.value),this.selectedRange=hr(this.value);var n=mr(this.selectedDate,this.selectedMultiple,this.selectedRange);this._focusedDate=ee(this.calculateFocusFromValue&&null!==n?n:this.state.focusedDate,this.min,this.max);var r=(0,f.A)("k-widget k-calendar k-calendar-range",{"k-disabled":this.props.disabled},this.props.className),o=this.rangeWithFocused(this.selectedRange,this.focusedDate),i={"aria-disabled":this.props.disabled,"aria-activedescendant":this.cellUID+this.focusedDate.getTime()},a=this.localization.toLanguageString(Ce,Be[Ce]),l=this.localization.toLanguageString(Ee,Be[Ee]),u=!this.canNavigate(qe.PrevView),c=!this.canNavigate(qe.NextView),d={"aria-disabled":u},p={"aria-disabled":c},h=this.lastView!==t,g=this.dates&&this.service.isInArray(this.focusedDate,this.dates),y=this.lastViewsCount!==this.props.views;(!g||h||y)&&(this.dates=this.service.datesList(this.focusedDate,this.props.views||ur.defaultProps.views));var b=(0,m.cloneDate)(this.dates&&this.dates[0]?this.dates[0]:Y());return s.createElement("div",dr({ref:function(t){e._element=t},className:r,id:this.props.id||this.wrapperID,"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,role:"grid",tabIndex:this.props.disabled?void 0:this.props.tabIndex,onFocus:this.handleFocus,onBlur:this.handleBlur,onMouseDown:this.handleMouseDown,onClick:this.handleClick,onKeyDown:this.handleKeyDown},i),s.createElement(be,{key:".kendo.calendar.header.".concat(b.getTime()),activeView:t,currentDate:b,min:this.min,max:this.max,rangeLength:this.props.views,bus:this.bus,service:this.service,headerTitle:this.props.headerTitle,commands:s.createElement(s.Fragment,null,s.createElement(se.z,dr({type:"button",className:"k-nav-prev",icon:"arrow-chevron-left",fillMode:"flat",title:a,disabled:u,onClick:this.handlePrevButtonClick},d)),s.createElement(Ue,{min:this.min,max:this.max,onClick:this.handleTodayClick,disabled:!this.todayIsInRange}),s.createElement(se.z,dr({type:"button",className:"k-nav-next",icon:"arrow-chevron-right",fillMode:"flat",title:l,disabled:c,onClick:this.handleNextButtonClick},p)))}),s.createElement(ur,{ref:function(t){e.calendarViewList=t},dates:this.dates,activeView:t,focusedDate:this.focusedDate,min:this.min,max:this.max,bus:this.bus,service:this.service,selectionRange:o,value:this.selectedMultiple||this.selectedDate,cellUID:this.cellUID,views:this.props.views,onChange:this.handleDateChange,showWeekNumbers:this.props.weekNumber,onCellEnter:this.handleCellEnter,cell:this.props.cell,weekCell:this.props.weekCell,headerTitle:this.props.headerTitle}))},t.displayName="MultiViewCalendar",t.propTypes={activeRangeEnd:u.oneOf(["start","end"]),allowReverse:u.bool,bottomView:u.oneOf(["month","year","decade","century"]),className:u.string,defaultActiveView:u.oneOf(["month","year","decade","century"]),defaultValue:u.oneOfType([V(u.instanceOf(Date)),u.arrayOf(u.instanceOf(Date)),u.shape({start:V(u.instanceOf(Date)),end:V(u.instanceOf(Date))})]),disabled:u.bool,focusedDate:u.instanceOf(Date),id:u.string,ariaLabelledBy:u.string,ariaDescribedBy:u.string,max:u.instanceOf(Date),min:u.instanceOf(Date),mode:u.oneOf(["single","multiple","range"]),onBlur:u.func,onChange:u.func,onFocus:u.func,tabIndex:u.number,topView:u.oneOf(["month","year","decade","century"]),value:u.oneOfType([V(u.instanceOf(Date)),u.arrayOf(u.instanceOf(Date)),u.shape({start:V(u.instanceOf(Date).isRequired),end:V(u.instanceOf(Date).isRequired)})]),views:function(e,t,n){var r=e[t];return void 0!==r&&r<1?new Error("Invalid prop '".concat(t,"' supplied to")+"'".concat(n,"'. The '").concat(t,"' property cannot be less than 1'")):null},weekNumber:u.bool},t.defaultProps={disabled:!1,min:fe,max:he,navigation:!0,defaultActiveView:"month",defaultValue:null,topView:"century",tabIndex:0,bottomView:"month",views:2,allowReverse:!1},t}(s.Component),gr=(0,h.Y)(),yr=(0,h.u)(gr,vr);yr.displayName="KendoReactMultiViewCalendar",(0,v.registerForIntl)(vr),(0,v.registerForLocalization)(vr);var br=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Cr=function(){return Cr=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},Cr.apply(this,arguments)},Er=function(e){function t(n){var r=e.call(this,n)||this;return r._element=null,r._calendar=null,r._startDateInput=s.createRef(),r._endDateInput=s.createRef(),r._popupId=(0,c.M)(),r._startInputId=(0,c.M)(),r._endInputId=(0,c.M)(),r.shouldFocusDateInput=!1,r.shouldFocusCalendar=!1,r.focus=function(){r.startDateInput&&r.startDateInput.focus()},r.setCalendarRef=function(e){r._calendar=e},r.focusCalendarElement=function(){r._calendar&&r._calendar.element&&r._calendar.element.focus({preventScroll:!0})},r.calculateValue=function(e,t){return(void 0!==e.value?e.value:t.value)||j},r.calculateShow=function(e,t){return void 0!==e.show?e.show:t.show},r.handleReverseClick=function(e){var t={start:r.value.end,end:r.value.start},n={syntheticEvent:e,nativeEvent:e.nativeEvent};r.handleChange(t,n)},r.handleReverseMouseDown=function(e){e.preventDefault()},r.handleFocus=function(e){clearTimeout(r.nextTickId),r.shouldFocusDateInput||r.setShow(!0),r.startDateInput&&r.startDateInput.element&&r.startDateInput.element.classList.add("k-focus"),r.endDateInput&&r.endDateInput.element&&r.endDateInput.element.classList.add("k-focus");var t=r.props.onFocus;t&&t.call(void 0,e)},r.handleBlur=function(e){r.nextTick((function(){r.startDateInput&&r.startDateInput.element&&r.startDateInput.element.classList.remove("k-focus"),r.endDateInput&&r.endDateInput.element&&r.endDateInput.element.classList.remove("k-focus"),r.setShow(!1)}));var t=r.props.onBlur;t&&t.call(void 0,e)},r.handleEndChange=function(e){var t={start:r.value.start,end:(0,m.cloneDate)(e.value||void 0)};r.handleChange(t,e)},r.handleStartChange=function(e){var t={start:(0,m.cloneDate)(e.value||void 0),end:r.value.end};r.handleChange(t,e)},r.extractRangeFromValue=function(e){if(!(Array.isArray(e.value)||e.value instanceof Date))return e.value||j;var t=Array.isArray(e.value)?e.value[0]:e.value;return{start:null!==r.value.end?t:r.value.start,end:null!==r.value.start?t:r.value.end}},r.handleCalendarChange=function(e){var t=r.extractRangeFromValue(e);r.handleChange(t,e)},r.handleKeyDown=function(e){var t=e.keyCode,n=e.altKey;t===d.R.esc?(e.preventDefault(),r.shouldFocusDateInput=!0,r.setShow(!1)):n&&t===d.R.down?(e.preventDefault(),r.shouldFocusCalendar=!0,r.setShow(!0)):t===d.R.tab&&r.show&&r._calendar&&r._calendar.element&&r.endDateInput&&r.endDateInput.element&&document&&document.activeElement===r.endDateInput.element&&(e.preventDefault(),r.focusCalendarElement())},r.handleChange=function(e,t){r.setState({value:e}),r.valueDuringOnChange=e;var n=r.props.onChange;if(n){var o={syntheticEvent:t.syntheticEvent,nativeEvent:t.nativeEvent,value:r.value,show:r.show,target:r};n.call(void 0,o)}r.valueDuringOnChange=void 0},(0,p.s)(g),r.state={show:r.props.show||r.props.defaultShow||t.defaultProps.defaultShow,value:r.props.value||r.props.defaultValue||t.defaultProps.defaultValue},r.nextTick=r.nextTick.bind(r),r.setShow=r.setShow.bind(r),r.focusCalendarElement=r.focusCalendarElement.bind(r),r.focusDateInputElement=r.focusDateInputElement.bind(r),r}return br(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"startDateInput",{get:function(){return this._startDateInput.current},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"endDateInput",{get:function(){return this._endDateInput.current},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"calendar",{get:function(){return this._calendar},enumerable:!1,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)||j},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"show",{get:function(){return void 0!==this.showDuringOnChange?this.showDuringOnChange:void 0!==this.props.show?this.props.show:this.state.show},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return void 0!==this.props.min?this.props.min:t.defaultProps.min},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return void 0!==this.props.max?this.props.max:t.defaultProps.max},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.show&&this.forceUpdate()},t.prototype.componentDidUpdate=function(){this.shouldFocusCalendar&&this.focusCalendarElement(),this.shouldFocusDateInput&&this.focusDateInputElement(),this.shouldFocusCalendar=!1,this.shouldFocusDateInput=!1},t.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},t.prototype.render=function(){var e=this,t=this.value||j,n=(this.props.startDateInputSettings||{}).id||this._startInputId,r=(this.props.endDateInputSettings||{}).id||this._endInputId,o=(0,f.A)("k-daterangepicker",{"k-disabled":this.props.disabled},this.props.className),i=(0,v.provideLocalizationService)(this),a=i.toLanguageString(xe,Be[xe]),l=i.toLanguageString(Ie,Be[Ie]),u=i.toLanguageString(Te,Be[Te]),c=Cr(Cr({label:a,format:this.props.format,min:this.min,max:this.max,id:this._startInputId,disabled:this.props.disabled,valid:this.props.valid,ariaHasPopup:!0,ariaExpanded:this.show},this.props.startDateInputSettings),{value:t.start,onChange:this.handleStartChange}),d=Cr(Cr({label:l,format:this.props.format,min:this.min,max:this.max,id:this._endInputId,disabled:this.props.disabled,valid:this.props.valid,ariaHasPopup:!0,ariaExpanded:this.show},this.props.endDateInputSettings),{value:t.end,onChange:this.handleEndChange}),p=Cr(Cr({animate:null!==this._element,anchor:this._element,id:this._popupId,anchorAlign:{horizontal:"left",vertical:"bottom"},popupAlign:{horizontal:"left",vertical:"top"}},this.props.popupSettings),{show:this.show}),h=Cr(Cr({min:this.min,max:this.max,allowReverse:this.props.allowReverse,mode:"range",focusedDate:this.props.focusedDate,disabled:this.props.disabled},this.props.calendarSettings),{value:t,onChange:this.handleCalendarChange}),m=this.props.calendar?s.createElement(this.props.calendar,Cr({},h)):s.createElement(yr,Cr({},h,{ref:this.setCalendarRef})),g=s.createElement(se.z,Cr({className:"k-select",fillMode:"flat",title:(0,v.provideLocalizationService)(this).toLanguageString(De,Be[De]),onMouseDown:this.handleReverseMouseDown,onClick:this.handleReverseClick},{"aria-controls":n+" "+r,"aria-label":(0,v.provideLocalizationService)(this).toLanguageString(De,Be[De])}),s.createElement("span",{style:{transform:"rotate(90deg)"},className:"k-icon k-i-arrows-swap"}));return s.createElement("span",{ref:function(t){e._element=t},className:o,style:this.props.style,id:this.props.id,"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,tabIndex:this.props.tabIndex,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown},this.props.startDateInput?s.createElement(this.props.startDateInput,Cr({},c)):s.createElement(ln,Cr({},c,{ref:this._startDateInput})),(this.props.allowReverse||this.props.calendarSettings&&this.props.calendarSettings.allowReverse)&&this.props.swapButton?g:u,this.props.endDateInput?s.createElement(this.props.endDateInput,Cr({},d)):s.createElement(ln,Cr({},d,{ref:this._endDateInput})),this.props.popup?s.createElement(this.props.popup,Cr({},p),m):s.createElement(sn.G,Cr({},p),m))},t.prototype.focusDateInputElement=function(){document&&this.startDateInput&&this.startDateInput.element&&this.endDateInput&&this.endDateInput.element&&(null!==this.value.start&&null===this.value.end||document.activeElement===this.endDateInput.element?document.activeElement!==this.startDateInput.element&&this.endDateInput.element.focus({preventScroll:!0}):this.startDateInput.element.focus({preventScroll:!0}))},t.prototype.nextTick=function(e){clearTimeout(this.nextTickId),this.nextTickId=window.setTimeout((function(){return e()}))},t.prototype.setShow=function(e){this.show!==e&&this.setState({show:e})},t.displayName="DateRangePicker",t.propTypes={allowReverse:u.bool,calendarSettings:u.any,className:u.string,defaultShow:u.bool,defaultValue:u.shape({start:V(u.instanceOf(Date).isRequired),end:V(u.instanceOf(Date).isRequired)}),disabled:u.bool,endDateInputSettings:u.shape(on.propTypes),focusedDate:u.instanceOf(Date),format:u.oneOfType([u.string,u.shape({skeleton:u.string,pattern:u.string,date:u.oneOf(["short","medium","long","full"]),time:u.oneOf(["short","medium","long","full"]),datetime:u.oneOf(["short","medium","long","full"]),era:u.oneOf(["narrow","short","long"]),year:u.oneOf(["numeric","2-digit"]),month:u.oneOf(["numeric","2-digit","narrow","short","long"]),day:u.oneOf(["numeric","2-digit"]),weekday:u.oneOf(["narrow","short","long"]),hour:u.oneOf(["numeric","2-digit"]),hour12:u.bool,minute:u.oneOf(["numeric","2-digit"]),second:u.oneOf(["numeric","2-digit"]),timeZoneName:u.oneOf(["short","long"])})]),id:u.string,ariaLabelledBy:u.string,ariaDescribedBy:u.string,max:u.instanceOf(Date),min:u.instanceOf(Date),onBlur:u.func,onChange:u.func,onFocus:u.func,popupSettings:u.any,show:u.bool,startDateInputSettings:u.any,style:u.any,swapButton:u.any,tabIndex:u.number,value:u.shape({start:V(u.instanceOf(Date).isRequired),end:V(u.instanceOf(Date).isRequired)})},t.defaultProps={allowReverse:!1,defaultShow:!1,defaultValue:j,disabled:!1,format:"d",max:he,min:fe,swapButton:!1},t}(s.Component),wr=(0,h.Y)(),kr=(0,h.u)(wr,Er);kr.displayName="KendoReactDateRangePicker",(0,v.registerForLocalization)(Er);var Sr=n(7711),Or=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Dr=function(){return Dr=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},Dr.apply(this,arguments)},xr=function(e){function t(t){var n=e.call(this,t)||this;return n._calendar=null,n._timePart=null,n._cancelButton=null,n._acceptButton=null,n._calendarWrap=null,n.shouldFocusPart=!1,n.focus=function(e){Promise.resolve().then((function(){"time"===n.state.tab&&n._timePart&&n._timePart.focus(e);var t=n.calendarElement();"date"===n.state.tab&&t&&t.focus(e)}))},n.calendarElement=function(){return n._calendar&&n._calendar.element||n._calendarWrap&&n._calendarWrap.querySelector(".k-widget.k-calendar")},n.move=function(e){if(!("right"===e&&"time"===n.state.tab||"left"===e&&"date"===n.state.tab)){var t="left"===e?"date":"time";n.shouldFocusPart=!0,n.setState({tab:t})}},n.handleReject=function(e){n.setState({dateValue:n.props.value,timeValue:n.props.value||pe});var t=n.mergeDate(n.props.value,n.props.value||pe);if(n.props.onReject){var r={nativeEvent:e.nativeEvent,syntheticEvent:e,target:n,value:t};n.props.onReject.call(void 0,r)}},n.handleAccept=function(e,t){if(n.state.dateValue&&n.state.timeValue&&n.hasDateValue){var r=n.mergeDate(n.state.dateValue,t||n.state.timeValue);n.props.onChange.call(void 0,{syntheticEvent:e,nativeEvent:e.nativeEvent,value:r,target:n})}},n.handleNowClick=function(e){n.setState({timeValue:Xt()}),n.handleAccept(e,Xt())},n.handleCalendarValueChange=function(e){e.syntheticEvent.stopPropagation(),n.setState({dateValue:e.value,tab:"time"}),n.shouldFocusPart=!0},n.handleTimeListContainerChange=function(e){n.setState({timeValue:e})},n.handleDateClick=function(e){e.stopPropagation(),n.move("left")},n.handleTimeClick=function(e){e.stopPropagation(),n.move("right")},n.handleKeyDown=function(e){var t=e.keyCode,r=e.altKey;switch(t){case d.R.enter:return void(!n.hasActiveButton()&&n.hasDateValue&&n.handleAccept(e));case d.R.left:if(!r)return;return void n.move("left");case d.R.right:if(!r)return;return void n.move("right");default:return}},n.handleTimePartMount=function(e){n.setState({timeValue:e})},n.state={tab:"date",dateValue:n.props.value,timeValue:n.props.value||pe},n}return Or(t,e),Object.defineProperty(t.prototype,"calendar",{get:function(){return this._calendar},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timePart",{get:function(){return this._timePart},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasDateValue",{get:function(){return null!==this.state.dateValue},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(){this.shouldFocusPart&&this.focus({preventScroll:!0}),this.shouldFocusPart=!1},t.prototype.render=function(){var e=this,t=this.props,n=t.disabled,r=t.cancelButton,o=t.min,i=t.max,a=t.weekNumber,l=t.focusedDate,u=t.format,c=(0,f.A)({"k-date-tab":"date"===this.state.tab,"k-time-tab":"time"===this.state.tab,"k-disabled":n},"k-datetime-wrap"),d=(0,v.provideLocalizationService)(this),p=d.toLanguageString(je,Be[je]),h=d.toLanguageString(Le,Be[Le]),m=d.toLanguageString(Ve,Be[Ve]),g=d.toLanguageString(ze,Be[ze]),y={min:o,max:i,weekNumber:a,focusedDate:l,disabled:n||"date"!==this.state.tab,value:this.state.dateValue,onChange:this.handleCalendarValueChange,navigation:!1};return s.createElement("div",{onKeyDown:this.handleKeyDown,className:c,tabIndex:-1},s.createElement("div",{className:"k-datetime-buttongroup"},s.createElement(Sr.h,{width:"100%"},s.createElement(se.z,{type:"button",selected:"date"===this.state.tab,togglable:!0,onClick:this.handleDateClick},p),s.createElement(se.z,{type:"button",selected:"time"===this.state.tab,togglable:!0,onClick:this.handleTimeClick},h))),s.createElement("div",{className:"k-datetime-selector"},s.createElement("div",{className:"k-datetime-calendar-wrap",ref:function(t){return e._calendarWrap=t}},this.props.calendar?s.createElement(this.props.calendar,Dr({},y)):s.createElement(Tt,Dr({ref:function(t){e._calendar=t}},y))),s.createElement("div",{className:"k-datetime-time-wrap"},s.createElement(Qn,{key:1,onNowClick:this.handleNowClick,disabled:n||"time"!==this.state.tab,ref:function(t){e._timePart=t},min:this.minTime||W,max:this.maxTime||K,steps:this.props.steps,value:this.state.timeValue,format:u,onChange:this.handleTimeListContainerChange,onMount:this.handleTimePartMount}))),s.createElement("div",{className:"k-datetime-footer k-actions k-hstack k-justify-content-stretch"},r&&s.createElement(se.z,Dr({type:"button",ref:function(t){e._cancelButton=t},className:"k-time-cancel",onClick:this.handleReject,title:m},{"aria-label":m}),m),s.createElement(se.z,Dr({type:"button",themeColor:"primary",ref:function(t){e._acceptButton=t},className:"k-time-accept",disabled:!this.hasDateValue,onClick:this.handleAccept,title:g},{"aria-label":g}),g)))},Object.defineProperty(t.prototype,"minTime",{get:function(){return void 0!==this.props.minTime?this.props.minTime:this.normalizeRange(this.props.min,this.state.dateValue)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxTime",{get:function(){return void 0!==this.props.maxTime?this.props.maxTime:this.normalizeRange(this.props.max,this.state.dateValue)},enumerable:!1,configurable:!0}),t.prototype.normalizeRange=function(e,t){return(0,m.isEqualDate)(e,t||Y())?e:null},t.prototype.hasActiveButton=function(){return!!this._acceptButton&&(this._acceptButton&&document.activeElement===this._acceptButton.element||this._cancelButton&&document.activeElement===this._cancelButton.element)},t.prototype.mergeTime=function(e,t){return e&&t?q(t,e):t},t.prototype.mergeDate=function(e,t){return e?q(e||Y(),t):t},t}(s.Component);(0,v.registerForLocalization)(xr);var Ir=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Tr=function(){return Tr=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},Tr.apply(this,arguments)},_r=function(e){function t(n){var r=e.call(this,n)||this;return r._popupId=(0,c.M)(),r._element=null,r._dateInput=s.createRef(),r._dateTimeSelector=null,r.shouldFocusDateInput=!1,r.prevShow=!1,r.focus=function(){var e=r.dateInputElement();e&&e.focus()},r.handleReject=function(){r.shouldFocusDateInput=!0,r.setShow(!1)},r.handleValueChange=function(e){r.setState({value:(0,m.cloneDate)(e.value||void 0),show:!1}),r.valueDuringOnChange=e.value,r.showDuringOnChange=!1,r.shouldFocusDateInput=!0;var t=r.props.onChange;t&&t.call(void 0,{syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,value:r.value,show:r.show,target:r}),r.valueDuringOnChange=void 0,r.showDuringOnChange=void 0},r.handleFocus=function(){r.setState({focused:!0})},r.handleBlur=function(){r.setState({focused:!1}),r.setShow(!1)},r.handleDateIconClick=function(){r.props.disabled||(r.shouldFocusDateInput=!0,r.setShow(!r.show))},r.handleIconMouseDown=function(e){e.preventDefault()},r.handleKeyDown=function(e){var t=e.altKey,n=e.keyCode;if(n===d.R.esc)return r.shouldFocusDateInput=!0,void r.setShow(!1);!t||n!==d.R.up&&n!==d.R.down||(e.preventDefault(),e.stopPropagation(),r.shouldFocusDateInput=n===d.R.up,r.setShow(n===d.R.down))},r.dateInputElement=function(){return r.dateInput&&r.dateInput.element||r.element&&r.element.querySelector(".k-dateinput > input.k-input-inner")},(0,p.s)(g),r.state={value:r.props.defaultValue||t.defaultProps.defaultValue,show:r.props.defaultShow||t.defaultProps.defaultShow,focused:!1},r}return Ir(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dateInput",{get:function(){return this._dateInput.current},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){var e=void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.props.value?this.props.value:this.state.value;return null!==e?(0,m.cloneDate)(e):null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"show",{get:function(){return void 0!==this.showDuringOnChange?this.showDuringOnChange:void 0!==this.props.show?this.props.show:this.state.show},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return void 0!==this.props.min?this.props.min:t.defaultProps.min},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return void 0!==this.props.max?this.props.max:t.defaultProps.max},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){var e=Z(this.value,this.min,this.max)&&Jt(this.value,this.props.minTime||me,this.props.maxTime||K),t=void 0!==this.props.validationMessage,n=(!this.required||null!==this.value)&&e,r=void 0!==this.props.valid?this.props.valid:n;return{customError:t,rangeOverflow:this.value&&this.max.getTime()<this.value.getTime()||!1,rangeUnderflow:this.value&&this.value.getTime()<this.min.getTime()||!1,valid:r,valueMissing:null===this.value}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:t.defaultProps.required},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dateInputComp",{get:function(){return this.props.dateInput||t.defaultProps.dateInput},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.show&&this.forceUpdate()},t.prototype.componentDidUpdate=function(){var e=this.dateInputElement();this._dateTimeSelector&&this.show&&!this.prevShow&&this._dateTimeSelector.focus({preventScroll:!0}),e&&!this.show&&this.shouldFocusDateInput&&e.focus({preventScroll:!0}),this.prevShow=this.show,this.shouldFocusDateInput=!1},t.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},t.prototype.render=function(){var e=this,n=this.props,r=n.size,o=void 0===r?t.defaultProps.size:r,i=n.rounded,a=void 0===i?t.defaultProps.rounded:i,l=n.fillMode,u=void 0===l?t.defaultProps.fillMode:l,c=n.disabled,d=n.tabIndex,p=n.title,h=n.id,m=n.format,g=n.formatPlaceholder,y=n.min,b=n.max,C=n.weekNumber,E=n.focusedDate,w=n.className,k=n.width,S=n.name,O=n.validationMessage,D=n.required,x=n.validityStyles,I=n.cancelButton,T=n.minTime,_=n.maxTime,R=n.ariaLabelledBy,M=n.ariaDescribedBy,P=n.popup,N=void 0===P?sn.G:P,F=n.calendar,A=!this.validityStyles||this.validity.valid,j={id:h,ariaLabelledBy:R,ariaDescribedBy:M,format:m,formatPlaceholder:g,disabled:c,title:p,validityStyles:x,validationMessage:O,required:D,min:y,max:b,minTime:T,maxTime:_,name:S,tabIndex:this.show?-1:d,valid:this.validity.valid,value:this.value,onChange:this.handleValueChange,steps:this.props.steps,label:void 0,placeholder:this.state.focused?null:this.props.placeholder,ariaHasPopup:!0,ariaExpanded:this.show,size:null,fillMode:null,rounded:null},L=s.createElement(Nt.o,{onFocus:this.handleFocus,onBlur:this.handleBlur,onSyncFocus:this.props.onFocus,onSyncBlur:this.props.onBlur},(function(t){var n,r=t.onFocus,i=t.onBlur;return s.createElement("div",{ref:function(t){e._element=t},className:(0,f.A)("k-input","k-datetimepicker",(n={},n["k-input-".concat(Ft.G.sizeMap[o]||o)]=o,n["k-rounded-".concat(Ft.G.roundedMap[a]||a)]=a,n["k-input-".concat(u)]=u,n["k-invalid"]=!A,n["k-required"]=e.required,n["k-disabled"]=e.props.disabled,n),w),onKeyDown:e.handleKeyDown,style:{width:k},onFocus:r,onBlur:i},s.createElement(e.dateInputComp,Tr({_ref:e._dateInput},j)),s.createElement(se.z,Tr({tabIndex:-1,type:"button",icon:"calendar",onMouseDown:e.handleIconMouseDown,onClick:e.handleDateIconClick,title:(0,v.provideLocalizationService)(e).toLanguageString(_e,Be[_e]),className:"k-input-button",rounded:null},{"aria-controls":e._popupId,"aria-label":(0,v.provideLocalizationService)(e).toLanguageString(_e,Be[_e])})),s.createElement(N,{show:e.show,animate:null!==e.element,anchor:e.element,className:"k-datetime-container k-group k-reset",id:e._popupId,anchorAlign:{horizontal:"left",vertical:"bottom"},popupAlign:{horizontal:"left",vertical:"top"}},s.createElement(xr,{ref:function(t){e._dateTimeSelector=t},cancelButton:I,steps:e.props.steps,value:e.value,onChange:e.handleValueChange,onReject:e.handleReject,disabled:c,weekNumber:C,min:e.min,max:e.max,minTime:T,maxTime:_,focusedDate:E,format:m,calendar:F})))}));return this.props.label?s.createElement(pn,{dateInput:this._dateInput,label:this.props.label,editorId:h,editorValid:A,editorDisabled:this.props.disabled,children:L,style:{width:this.props.width}}):L},t.prototype.setShow=function(e){this.show!==e&&this.setState({show:e})},t.prototype.nextTick=function(e){clearTimeout(this.nextTickId),this.nextTickId=window.setTimeout((function(){return e()}))},t.displayName="DateTimePicker",t.propTypes={className:u.string,defaultShow:u.bool,defaultValue:u.instanceOf(Date),disabled:u.bool,focusedDate:u.instanceOf(Date),format:u.oneOfType([u.string,u.shape({skeleton:u.string,pattern:u.string,date:u.oneOf(["short","medium","long","full"]),time:u.oneOf(["short","medium","long","full"]),datetime:u.oneOf(["short","medium","long","full"]),era:u.oneOf(["narrow","short","long"]),year:u.oneOf(["numeric","2-digit"]),month:u.oneOf(["numeric","2-digit","narrow","short","long"]),day:u.oneOf(["numeric","2-digit"]),weekday:u.oneOf(["narrow","short","long"]),hour:u.oneOf(["numeric","2-digit"]),hour12:u.bool,minute:u.oneOf(["numeric","2-digit"]),second:u.oneOf(["numeric","2-digit"]),timeZoneName:u.oneOf(["short","long"])})]),formatPlaceholder:u.oneOfType([u.oneOf(["wide","narrow","short","formatPattern"]),u.shape({year:u.string,month:u.string,day:u.string,hour:u.string,minute:u.string,second:u.string})]),id:u.string,ariaLabelledBy:u.string,ariaDescribedBy:u.string,min:u.instanceOf(Date),max:u.instanceOf(Date),name:u.string,popupSettings:u.shape({animate:u.bool,appendTo:u.any,popupClass:u.string}),show:u.bool,tabIndex:u.number,title:u.string,value:u.instanceOf(Date),weekNumber:u.bool,width:u.oneOfType([u.number,u.string]),validationMessage:u.string,required:u.bool,validate:u.bool,valid:u.bool,cancelButton:u.bool,size:u.oneOf([null,"small","medium","large"]),rounded:u.oneOf([null,"small","medium","large","full"]),fillMode:u.oneOf([null,"solid","flat","outline"])},t.defaultProps={defaultShow:!1,defaultValue:null,disabled:!1,format:"g",max:U,min:H,popupSettings:{},tabIndex:0,weekNumber:!1,required:!1,validityStyles:!0,cancelButton:!0,dateInput:ln,size:"medium",rounded:"medium",fillMode:"solid"},t}(s.Component),Rr=(0,h.Y)(),Mr=(0,h.u)(Rr,_r);Mr.displayName="KendoReactDateTimePicker",(0,v.registerForLocalization)(_r)},8530:(e,t,n)=>{n.r(t),n.d(t,{Dialog:()=>x,DialogActionsBar:()=>u,DialogPropsContext:()=>D,Window:()=>U,WindowActionsBar:()=>j,WindowPropsContext:()=>H});var r=n(3899),o=n(994),i=n(189),a=n(7037),l=function(e){var t=e.children,n=e.onCloseButtonClick,o=e.id,i=e.closeIcon;return r.createElement("div",{className:"k-window-titlebar k-dialog-titlebar k-header",id:o},r.createElement("div",{className:"k-window-title k-dialog-title"},t),r.createElement("div",{className:"k-window-actions k-dialog-actions"},i&&r.createElement(a.z,{role:"button","aria-label":"Close",onClick:n,icon:"x",fillMode:"flat",className:"k-window-action k-dialog-action k-dialog-close"})))},s=n(8047),u=function(e){var t=e.layout,n=void 0===t?p.layout:t,o=e.children,i=(0,s.A)("k-dialog-buttongroup","k-actions","k-hstack",{"k-justify-content-start":"start"===n,"k-justify-content-center":"center"===n,"k-justify-content-end":"end"===n,"k-justify-content-stretch":"stretched"===n});return r.createElement("div",{className:i},o)};u.propTypes={children:i.any,layout:i.oneOf(["start","center","end","stretched"])};var c,d,p={layout:"stretched"},f=n(3198),h=n(5407),m=n(3493),v=n(8259),g=n(7827),y=n(848),b=n(4006),C={name:"@progress/kendo-react-dialogs",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1655891134,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"},E="data-windowid",w=function(e,t,n){var r=e;if(t&&t.defaultView){var o=t.querySelectorAll(".k-window:not(.k-dialog), .k-dialog-wrapper"),i=!1;return o.forEach((function(e){var o=t.defaultView.getComputedStyle(e,null);if(e.getAttribute(E)!==n&&null!==o.zIndex){var a=parseInt(o.zIndex,10);a>=r&&(r=a,i=!0)}})),i?r+2:r}return r},k=(c=function(e,t){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},c(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}c(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),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},S.apply(this,arguments)},O=function(e){function t(t){var n=e.call(this,t)||this;return n.context=0,n._id=(0,f.M)(),n.titleId=n.generateTitleId(),n.onCloseDialog=function(e){e.preventDefault(),(0,h.N)(n.props.onClose,e,n,void 0)},n.onKeyDown=function(e){e.keyCode===m.R.esc&&n.props.onClose&&(e.preventDefault(),n.onCloseDialog(e));var t=n.element;if(t&&e.keyCode===m.R.tab){var r=t.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),o=r[0],i=r[r.length-1],a=n.getDocument();e.shiftKey?(a&&a.activeElement===o||a&&a.activeElement===n.element)&&(i.focus(),e.preventDefault()):a&&a.activeElement===i&&(o.focus(),e.preventDefault())}},n.getCurrentZIndex=function(){return n.state&&void 0!==n.context?n.state.zIndex>(n.context?n.context+2:0)?n.state.zIndex:n.context+2:n.context?n.context:10002},n.getDocument=function(){return n.props.appendTo?n.props.appendTo.ownerDocument:document},(0,b.s)(C),n.state={zIndex:w(n.getCurrentZIndex(),n.getDocument(),n._id)},n}return k(t,e),t.prototype.componentDidMount=function(){this.element&&this.props.autoFocus&&this.element.focus()},t.prototype.render=function(){var e,t=this,n=void 0!==this.props.id?this.props.id:this.titleId,i=this.props,a=i.title,s=i.width,u=i.height,c=i.children,d=i.minWidth,p=i.dir,f=i.style,h=i.contentStyle,m=r.Children.toArray(c),y=this.getContent(m),b=this.getActionBar(m),C=a?{"aria-labelledby":n}:null,w=void 0===this.props.closeIcon||this.props.closeIcon,k=this.getCurrentZIndex(),O=r.createElement(v.$.Provider,{value:k},r.createElement("div",S({},((e={})[E]=this._id,e),{className:"k-dialog-wrapper"+(this.props.className?" "+this.props.className:""),onKeyDown:this.onKeyDown,tabIndex:0,dir:p,style:S({zIndex:k},f),ref:function(e){return t.element=e}}),r.createElement("div",{className:"k-overlay"}),r.createElement("div",S({},C,{className:"k-widget k-window k-dialog",role:"dialog",style:{width:s,height:u,minWidth:d}}),this.props.title&&r.createElement(l,{closeIcon:w,onCloseButtonClick:this.onCloseDialog,id:n},a),r.createElement("div",{className:"k-window-content k-dialog-content",style:h},y),b)));return g.N?null!==this.props.appendTo?o.createPortal(O,this.props.appendTo||document.body):O:null},t.prototype.getActionBar=function(e){return e.filter((function(e){return e&&e.type===u}))},t.prototype.getContent=function(e){return e.filter((function(e){return e&&e.type!==u}))},t.prototype.generateTitleId=function(){return"dialog-title"+this._id},t.displayName="Dialog",t.propTypes={title:i.any,id:i.string,dir:i.string,style:i.object,closeIcon:i.bool,width:i.oneOfType([i.number,i.string]),height:i.oneOfType([i.number,i.string]),minWidth:i.oneOfType([i.number,i.string]),autoFocus:i.bool},t.defaultProps={autoFocus:!1},t.contextType=v.$,t}(r.Component),D=(0,y.Y)(),x=(0,y.u)(D,O);x.displayName="KendoReactDialog",function(e){e.DEFAULT="DEFAULT",e.FULLSCREEN="FULLSCREEN",e.MINIMIZED="MINIMIZED"}(d||(d={}));var I=function(){return I=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},I.apply(this,arguments)},T=function(e){var t=e.children,n=e.onCloseButtonClick,o=e.onMinimizeButtonClick,i=e.onFullScreenButtonClick,l=e.onRestoreButtonClick,s=e.onDoubleClick,u=e.stage,c=e.forwardedRef,p=e.minimizeButton?r.createElement(e.minimizeButton,{onClick:o,stage:u}):r.createElement(a.z,{fillMode:"flat",icon:"window-minimize",onClick:o}),f=e.maximizeButton?r.createElement(e.maximizeButton,{onClick:i,stage:u}):r.createElement(a.z,{fillMode:"flat",icon:"window-maximize",onClick:i}),h=e.restoreButton?r.createElement(e.restoreButton,{onClick:l,stage:u}):r.createElement(a.z,{fillMode:"flat",icon:"window-restore",onClick:l}),m=e.closeButton?r.createElement(e.closeButton,{onClick:n,stage:u}):r.createElement(a.z,{fillMode:"flat",icon:"close",onClick:n});return r.createElement("div",{className:"k-window-titlebar k-dialog-titlebar",style:{touchAction:"none"},ref:c,onDoubleClick:s},r.createElement("div",{className:"k-window-title"},t||""),r.createElement("div",{className:"k-window-actions"},u===d.DEFAULT&&p,u===d.DEFAULT&&f,u!==d.DEFAULT&&h,m))},_=r.forwardRef((function(e,t){return r.createElement(T,I({},e,{forwardedRef:t}))})),R=n(1779),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),P=["n","e","s","w","se","sw","ne","nw"],N=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return M(t,e),t.prototype.render=function(){var e=this;return r.createElement("div",null," ",P.map((function(t,n){return r.createElement(R._,{key:n,onDrag:function(n){var r=n.event;r.originalEvent.preventDefault(),e.props.onResize(r,{end:!1,direction:t})},onRelease:function(n){var r=n.event;r.originalEvent.preventDefault(),e.props.onResize(r,{end:!0,direction:t})}},r.createElement("div",{className:"k-resize-handle k-resize-"+t,style:{display:"block",touchAction:"none"}}))})))},t}(r.Component),F=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),A=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return F(t,e),t.prototype.shouldComponentUpdate=function(e){return e.shouldUpdateOnDrag||!e.isDragging},t.prototype.render=function(){return this.props.children},t}(r.Component),j=function(e){var t=e.layout,n=void 0===t?L.layout:t,o=e.children,i=(0,s.A)("k-window-buttongroup","k-actions","k-hstack",{"k-justify-content-start":"start"===n,"k-justify-content-center":"center"===n,"k-justify-content-end":"end"===n,"k-justify-content-stretch":"stretched"===n});return r.createElement("div",{className:i},o)};j.propTypes={children:i.any,layout:i.oneOf(["start","center","end","stretched"])};var L={layout:"end"},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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),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},z.apply(this,arguments)},B=function(e){function t(t){var n=e.call(this,t)||this;return n.context=0,n.draggable=null,n.offSetCoordinates={x:0,y:0},n._id=(0,f.M)(),n.onKeyDown=function(e){if(e.target===e.currentTarget){var t=n.props.minWidth||120,r=n.props.minHeight||100;if(e.ctrlKey&&n.props.resizable){switch(e.keyCode){case m.R.up:e.preventDefault(),r<=n.height-5&&n.setState({height:n.height-5});break;case m.R.down:e.preventDefault(),n.setState({height:n.height+5});break;case m.R.left:t<=n.width-5&&n.setState({width:n.width-5});break;case m.R.right:n.setState({width:n.width+5});break;default:return}n.dispatchMoveEvent(n.props.onResize,e,!1,void 0)}else if(e.altKey)switch(e.keyCode){case m.R.up:n.windowStage===d.MINIMIZED?(n.handleRestore(e),(0,h.N)(n.props.onStageChange,e,n,{state:d.DEFAULT})):n.windowStage===d.DEFAULT&&(n.handleFullscreen(e),(0,h.N)(n.props.onStageChange,e,n,{state:d.FULLSCREEN}));break;case m.R.down:n.windowStage===d.FULLSCREEN?(n.handleRestore(e),(0,h.N)(n.props.onStageChange,e,n,{state:d.DEFAULT})):n.windowStage===d.DEFAULT&&(n.handleMinimize(e),(0,h.N)(n.props.onStageChange,e,n,{state:d.MINIMIZED}))}else{if(!e.ctrlKey)switch(e.keyCode){case m.R.esc:return void(n.props.onClose&&n.handleCloseWindow(e));case m.R.up:n.setState({top:n.state.top-5});break;case m.R.down:n.setState({top:n.state.top+5});break;case m.R.left:n.setState({left:n.state.left-5});break;case m.R.right:n.setState({left:n.state.left+5});break;default:return}n.dispatchMoveEvent(n.props.onMove,e,!1,void 0)}}},n.onPress=function(e){var t=e.event;n.windowCoordinatesState.differenceLeft=t.pageX-n.left,n.windowCoordinatesState.differenceTop=t.pageY-n.top},n.onDrag=function(e){var t=e.event;t.originalEvent.preventDefault(),n.windowStage!==d.FULLSCREEN&&n.props.draggable&&(n.setState({top:Math.max(t.pageY-n.windowCoordinatesState.differenceTop,0),left:t.pageX-n.windowCoordinatesState.differenceLeft,isDragging:!0}),n.props.onMove&&n.dispatchMoveEvent(n.props.onMove,t,!0,!1))},n.onRelease=function(e){var t=e.event;n.windowStage!==d.FULLSCREEN&&n.props.draggable&&n.props.onMove&&n.dispatchMoveEvent(n.props.onMove,t,!0,!0),n.setState({isDragging:!1})},n.onFocus=function(){n._blurTimeout?(clearTimeout(n._blurTimeout),n._blurTimeout=void 0):n.setState({focused:!0,zIndex:w(n.getCurrentZIndex(),n.getDocument(),n._id)})},n.onBlur=function(){clearTimeout(n._blurTimeout);var e=n.getWindow();e&&(n._blurTimeout=e.setTimeout((function(){n.setState({focused:!1}),n._blurTimeout=void 0})))},n.getInitialTop=function(){if(void 0!==n.props.top)return n.props.top;if(void 0!==n.props.initialTop)return n.props.initialTop;var e=300;if(void 0!==n.props.height?e=n.props.height:void 0!==n.props.initialHeight&&(e=n.props.initialHeight),n.props.appendTo)return n.props.appendTo.offsetHeight/2-e/2;var t=n.getWindow();return t?t.innerHeight/2-e/2:0},n.getInitialLeft=function(){if(void 0!==n.props.left)return n.props.left;if(void 0!==n.props.initialLeft)return n.props.initialLeft;var e=300;if(void 0!==n.props.width?e=n.props.width:void 0!==n.props.initialWidth&&(e=n.props.initialWidth),n.props.appendTo)return n.props.appendTo.offsetWidth/2-e/2;var t=n.getWindow();return t?t.innerWidth/2-e/2:0},n.getInitialWidth=function(){var e=300;return void 0!==n.props.width?e=n.props.width:void 0!==n.props.initialWidth&&(e=n.props.initialWidth),e},n.getInitialHeight=function(){var e=300;return void 0!==n.props.height?e=n.props.height:void 0!==n.props.initialHeight&&(e=n.props.initialHeight),e},n.handleMinimize=function(e){e.preventDefault(),n.windowCoordinatesState.leftBeforeAction=n.left,n.windowCoordinatesState.topBeforeAction=n.top,n.windowCoordinatesState.widthBeforeAction=n.width,n.windowCoordinatesState.heightBeforeAction=n.height,n.setState({stage:d.MINIMIZED,height:0}),(0,h.N)(n.props.onStageChange,e,n,{state:d.MINIMIZED})},n.handleFullscreen=function(e){e.preventDefault(),n.windowCoordinatesState.leftBeforeAction=n.left,n.windowCoordinatesState.topBeforeAction=n.top,n.windowCoordinatesState.widthBeforeAction=n.width,n.windowCoordinatesState.heightBeforeAction=n.height;var t=n.getWindow(),r=t?t.innerWidth:0,o=t?t.innerHeight:0;n.setState({left:0,top:0,width:n.props.appendTo?n.props.appendTo.offsetWidth:r,height:n.props.appendTo?n.props.appendTo.offsetHeight:o,stage:d.FULLSCREEN}),(0,h.N)(n.props.onStageChange,e,n,{state:d.FULLSCREEN})},n.handleRestore=function(e){e.preventDefault(),n.windowStage===d.FULLSCREEN?n.setState({stage:d.DEFAULT,left:n.windowCoordinatesState.leftBeforeAction,top:n.windowCoordinatesState.topBeforeAction,width:n.windowCoordinatesState.widthBeforeAction,height:n.windowCoordinatesState.heightBeforeAction}):n.windowStage===d.MINIMIZED&&n.setState({stage:d.DEFAULT,height:n.windowCoordinatesState.heightBeforeAction}),(0,h.N)(n.props.onStageChange,e,n,{state:d.DEFAULT})},n.handleCloseWindow=function(e){e.preventDefault(),(0,h.N)(n.props.onClose,e,n,{state:void 0})},n.handleDoubleClick=function(e){n.windowStage===d.FULLSCREEN||n.windowStage===d.MINIMIZED?n.handleRestore(e):n.handleFullscreen(e)},n.handleResize=function(e,t){var r=n.props.appendTo?e.pageX-n.offSetCoordinates.x:e.pageX,o=n.props.appendTo?e.pageY-n.offSetCoordinates.y:e.pageY,i=n.width,a=n.height,l=n.props.minWidth||120,s=n.props.minHeight||100,u=n.top-o,c=n.left-r,d=r-n.left,p=o-n.top,f=Object.assign({},n.state,{isDragging:!t.end});t.direction.indexOf("n")>=0&&s-(a+u)<0&&(n.top>0&&(f.height=a+u),f.top=o),t.direction.indexOf("s")>=0&&s-p<0&&(f.height=p),t.direction.indexOf("w")>=0&&l-(i+c)<0&&(n.left>0&&(f.width=i+c),f.left=r),t.direction.indexOf("e")>=0&&l-d<0&&(f.width=d),n.setState(f),n.dispatchMoveEvent(n.props.onResize,e,!0,t.end)},n.dispatchMoveEvent=function(e,t,r,o){e&&e.call(void 0,{nativeEvent:t.nativeEvent?t.nativeEvent:t.originalEvent,drag:r,end:o,target:n,left:n.state.left,top:n.state.top,width:n.state.width,hight:n.state.height,height:n.state.height})},n.handleBrowserWindowResize=function(){if(n.windowStage===d.FULLSCREEN){var e=n.getWindow(),t=e?e.innerWidth:0,r=e?e.innerHeight:0;n.setState({width:n.props.appendTo?n.props.appendTo.offsetWidth:t,height:n.props.appendTo?n.props.appendTo.offsetHeight:r})}},n.getCurrentZIndex=function(){return n.state&&void 0!==n.context?n.state.zIndex>(n.context?n.context+2:0)?n.state.zIndex:n.context+2:n.context?n.context:10002},n.getDocument=function(){return n.props.appendTo?n.props.appendTo.ownerDocument:document},n.getWindow=function(){var e=n.getDocument();return e&&e.defaultView},(0,b.s)(C),n.state={stage:n.props.stage||d.DEFAULT,isDragging:!1,top:n.getInitialTop(),left:n.getInitialLeft(),width:n.getInitialWidth(),height:n.getInitialHeight(),focused:!0,zIndex:w(n.getCurrentZIndex(),n.getDocument(),n._id)},n.windowCoordinatesState={leftBeforeAction:n.getInitialLeft(),topBeforeAction:n.getInitialTop(),widthBeforeAction:n.getInitialWidth(),heightBeforeAction:n.getInitialHeight()},n}return V(t,e),t.prototype.componentDidMount=function(){var e=this.getWindow();e&&e.addEventListener("resize",this.handleBrowserWindowResize);var t=this.getDocument();if(this.props.appendTo&&t){var n=this.props.appendTo.getBoundingClientRect(),r=t.body.getBoundingClientRect();this.offSetCoordinates.x=n.left-r.left,this.offSetCoordinates.y=n.top-r.top}},t.prototype.componentWillUnmount=function(){var e=this.getWindow();e&&e.removeEventListener("resize",this.handleBrowserWindowResize)},t.prototype.componentDidUpdate=function(){var e=this.getDocument();if(this.props.appendTo&&e){var t=this.props.appendTo.getBoundingClientRect(),n=e.body.getBoundingClientRect();this.offSetCoordinates.x=t.left-n.left,this.offSetCoordinates.y=t.top-n.top}},t.prototype.render=function(){var e,t=this,n=r.Children.toArray(this.props.children),i=this.getContent(n),a=this.getActionBar(n),l=this.getCurrentZIndex(),u=(0,s.A)("k-widget","k-window",this.props.className,{"k-window-minimized":"MINIMIZED"===this.state.stage},{"k-window-focused":this.state.focused}),c=r.createElement(v.$.Provider,{value:l},r.createElement(r.Fragment,null,this.props.modal&&r.createElement("div",{className:"k-overlay",style:z({zIndex:l},this.props.overlayStyle)}),r.createElement("div",z({},((e={})[E]=this._id,e),{tabIndex:0,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,ref:function(e){t.windowElement=e,t.element=e},className:u,style:z({top:this.top,left:this.left,width:this.width,height:this.height||"",zIndex:l},this.props.style)}),r.createElement(A,{shouldUpdateOnDrag:this.props.shouldUpdateOnDrag||!1,isDragging:this.state.isDragging},r.createElement(R._,{onPress:this.onPress,onDrag:this.onDrag,onRelease:this.onRelease,ref:function(e){return t.draggable=e}},r.createElement(_,{stage:this.windowStage,onDoubleClick:this.props.doubleClickStageChange?this.handleDoubleClick:void 0,onMinimizeButtonClick:this.handleMinimize,onFullScreenButtonClick:this.handleFullscreen,onRestoreButtonClick:this.handleRestore,onCloseButtonClick:this.handleCloseWindow,closeButton:this.props.closeButton,minimizeButton:this.props.minimizeButton,maximizeButton:this.props.maximizeButton,restoreButton:this.props.restoreButton},this.props.title)),this.windowStage!==d.MINIMIZED?r.createElement(r.Fragment,null,r.createElement("div",{className:"k-window-content"},i),a):null,this.windowStage===d.DEFAULT&&this.props.resizable?r.createElement(N,{onResize:this.handleResize}):null))));return g.N?null!==this.props.appendTo?o.createPortal(c,this.props.appendTo||document.body):c:null},Object.defineProperty(t.prototype,"top",{get:function(){return this.windowStage!==d.FULLSCREEN?Math.max(this.props.top||this.state.top,0):0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){return this.windowStage!==d.FULLSCREEN?Math.max(this.props.left||this.state.left,0):0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){var e=this.props.width||this.state.width;if(this.windowStage===d.FULLSCREEN){if(this.props.appendTo)return this.props.appendTo.offsetWidth;var t=this.getWindow();e=t?t.innerWidth:0}return e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){var e=this.props.height||this.state.height;if(this.windowStage===d.FULLSCREEN){if(this.props.appendTo)return this.props.appendTo.offsetHeight;var t=this.getWindow();e=t?t.innerHeight:0}else this.windowStage===d.MINIMIZED&&(e=0);return e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"windowStage",{get:function(){return this.props.stage||this.state.stage},enumerable:!1,configurable:!0}),t.prototype.getActionBar=function(e){return e.filter((function(e){return e&&e.type===j}))},t.prototype.getContent=function(e){return e.filter((function(e){return e&&e.type!==j}))},t.displayName="Window",t.propTypes={width:i.number,height:i.number,left:i.number,top:i.number,initialWidth:i.number,initialHeight:i.number,initialLeft:i.number,initialTop:i.number,minWidth:i.number,minHeight:i.number,resizable:i.bool,draggable:i.bool,title:i.any,shouldUpdateOnDrag:i.bool,stage:i.oneOf(["DEFAULT","MINIMIZED","FULLSCREEN"]),className:i.string,style:i.object,overlayStyle:i.object},t.defaultProps={minWidth:120,minHeight:100,resizable:!0,draggable:!0,modal:!1,doubleClickStageChange:!0},t.contextType=v.$,t}(r.Component),H=(0,y.Y)(),U=(0,y.u)(H,B);U.displayName="KendoReactWindow"},865:(e,t,n)=>{n.r(t),n.d(t,{AutoComplete:()=>xe,AutoCompletePropsContext:()=>De,ComboBox:()=>Ce,ComboBoxPropsContext:()=>be,DropDownList:()=>le,DropDownListPropsContext:()=>ae,DropDownTree:()=>un,DropDownTreePropsContext:()=>sn,MultiColumnComboBox:()=>Je,MultiColumnComboBoxPropsContext:()=>Qe,MultiSelect:()=>Ke,MultiSelectPropsContext:()=>We,MultiSelectTree:()=>gn,MultiSelectTreePropsContext:()=>vn,getMultiSelectTreeValue:()=>En,getValueMap:()=>Cn});var r,o=n(3899),i=n(189),a=n(2697),l=n(8047),s=n(3493),u=n(4703),c=n(848),d=n(6097),p=n(9222),f=(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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),h=function(){return h=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},h.apply(this,arguments)},m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.width,r=e.dir,i=e.itemsCount,a=e.popupSettings;return o.createElement(p.G,h({style:{width:n,direction:r},contentKey:i&&i.join()},a),t)},t}(o.Component);const v=m;var g=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),y=a.G.sizeMap,b=a.G.roundedMap,C=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.input=null,t}return g(t,e),t.prototype.render=function(){var e,t=this,n=this.props,r=n.size,i=n.rounded,a=n.fillMode,s=n.inputRef;return o.createElement("div",{className:"k-list-filter"},o.createElement("span",{className:(0,l.A)("k-searchbox k-input",(e={},e["k-input-".concat(y[r]||r)]=r,e["k-rounded-".concat(b[i]||i)]=i,e["k-input-".concat(a)]=a,e))},o.createElement("span",{className:"k-input-icon k-icon k-i-search"}),o.createElement("input",{ref:s||function(e){return t.input=e},value:this.props.value||"",className:"k-input-inner",onChange:this.props.onChange,onKeyDown:this.props.onKeyDown,tabIndex:this.props.tabIndex,onClick:function(e){return e.stopPropagation()}})))},t}(o.Component);const E=C;var w=function(e){return null!=e},k=function(e,t,n){if(!w(e))return!1;var r=String(e);return n&&(r=r.toLowerCase()),0===r.indexOf(t)},S=function(e,t,n){var r=-1;if(t){t=t.toLowerCase();for(var o=0;o<e.length;o++){var i=(D(e[o],n)||"")+"";if(i&&i.toLowerCase().startsWith(t)){r=o;break}}}return r},O=function(e,t,n,r){void 0===r&&(r=!1);var o=function(e){return r?e:e.toLowerCase()};return e.findIndex((function(e){return n?o(D(e,n))===o(t):o(t)===o(e.toString())}))},D=function(e,t){if(t&&w(e)){var n=t.split("."),r=e;return n.forEach((function(e){r=r?r[e]:void 0})),r}return e},x=function(e,t,n){t.forEach((function(t){var r=e.findIndex((function(e){return I(e,t,n)}));-1!==r&&e.splice(r,1)}))},I=function(e,t,n){return e===t||w(e)===w(t)&&D(e,n)===D(t,n)},T=function(e,t,n){if(t){var r=O(e,t,n,!0);return-1!==r?e[r]:e[S(e,t,n)]}return e[0]},_=function(e){"INPUT"!==e.target.nodeName&&e.preventDefault()},R=function(e,t,n){return!!e==!!t&&e.text===t.text&&(e===t||function(e,t,n){if(void 0===e&&(e=[]),void 0===t&&(t=[]),e===t)return!0;if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!I(e[r],t[r],n))return!1;return!0}(e.data,t.data,n))},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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),P=function(e){return e.preventDefault()},N=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return M(t,e),t.prototype.render=function(){var e=this.props,t=e.selected,n=e.defaultItem,r=e.textField;return o.createElement("div",{onClick:this.props.onClick,onMouseDown:P,style:{position:"unset"},className:(0,l.A)("k-list-optionlabel",{"k-selected":t})},D(n,r)||"")},t}(o.Component);const F=N;var A=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),j=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){return t.props.onClick(t.props.index,e)},t}return A(t,e),t.prototype.render=function(){var e=this.props,t=e.selected,n=e.group,r=e.dataItem,i=e.virtual,a=e.render,s=o.createElement("li",{id:this.props.id,role:"option","aria-selected":t,className:(0,l.A)("k-list-item",{"k-selected":t,"k-focus":this.props.focused,"k-first":Boolean(n)}),onClick:this.handleClick,style:{position:i?"relative":"unset"}},o.createElement("span",{className:"k-list-item-text"},D(r,this.props.textField).toString()),void 0!==n?o.createElement("div",{className:"k-list-item-group-label"},n):null);return void 0!==a?a.call(void 0,s,this.props):s},t}(o.Component);const L=j;var V,z=n(499),B="dropdowns.nodata",H="dropdowns.clear",U=((V={})[H]="clear",V[B]="NO DATA FOUND.",V),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),K=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return W(t,e),t.prototype.renderItems=function(){var e=this,t=this.props,n=t.textField,r=t.valueField,i=t.groupField,a=t.optionsGuid,l=t.skip,s=void 0===l?0:l,u=t.virtual,c=t.focusedIndex,d=t.highlightSelected,p=void 0===d||d,f=t.value,h=t.data,m=t.itemRender,v=Array.isArray(f);return h.map((function(t,l){var d,g,y=s+l,b=p&&(!v&&I(t,f,r)||v&&-1!==f.findIndex((function(e){return I(e,t,r)}))),C=void 0;return l>0&&void 0!==i&&(d=D(t,i),g=D(h[l-1],i),d&&g&&d!==g&&(C=d)),o.createElement(L,{id:"option-".concat(a,"-").concat(y),virtual:u,dataItem:t,selected:b,focused:c===l,index:y,key:y,onClick:e.props.onClick,textField:n,group:C,render:m})}))},t.prototype.renderNoValueElement=function(e){var t=this.props.noDataRender,n=o.createElement("div",{className:"k-nodata"},o.createElement("div",null,e.toLanguageString(B,U[B])));return t?t.call(void 0,n):n},t.prototype.render=function(){var e=(0,z.provideLocalizationService)(this),t=this.props,n=t.id,r=t.show,i=t.wrapperCssClass,a=t.wrapperStyle,l=t.listStyle,s=t.listRef,u=t.wrapperRef,c=t.listClassName,d=void 0===c?"k-list-ul":c,p=this.renderItems();return p.length?o.createElement("div",{className:i,style:a,ref:u,onMouseDown:this.props.onMouseDown,onBlur:this.props.onBlur,onScroll:this.props.onScroll,unselectable:"on"},o.createElement("ul",{id:n,role:"listbox","aria-hidden":!r||void 0,className:d,ref:s,style:l},p),this.props.scroller&&o.createElement("div",{className:"k-height-container"},this.props.scroller)):this.renderNoValueElement(e)},t}(o.Component);const q=K;(0,z.registerForLocalization)(K);const Y=function(){function e(){var e=this;this.container=null,this.scrollElement=null,this.list=null,this.containerHeight=0,this.skip=0,this.total=0,this.enabled=!1,this.pageSize=0,this.itemHeight=0,this.PageChange=null,this.prevScrollPos=0,this.listTranslate=0,this.scrollSyncing=!1,this.scrollerRef=function(t){var n=e;n.container=t,t&&(t.setAttribute("unselectable","on"),window.setTimeout(n.calcScrollElementHeight.bind(n),0))},this.calcScrollElementHeight=function(){e.scrollSyncing=!0;var t=!1;e.itemHeight=e.list?e.list.children[0].offsetHeight:e.itemHeight,e.containerHeight=Math.min(1533915,e.itemHeight*e.total);var n=e.containerHeight;return e.scrollElement&&(t=e.scrollElement.style.height!==n+"px")&&(e.scrollElement.style.height=n+"px"),e.scrollSyncing=!1,t},this.scrollHandler=this.scrollHandler.bind(this)}return Object.defineProperty(e.prototype,"translate",{get:function(){return this.listTranslate},enumerable:!1,configurable:!0}),e.prototype.changePage=function(e,t){var n=Math.min(Math.max(0,e),this.total-this.pageSize);n!==this.skip&&this.PageChange&&this.PageChange({skip:n,take:this.pageSize},t)},e.prototype.translateTo=function(e){this.listTranslate=e,this.list&&(this.list.style.transform="translateY("+e+"px)")},e.prototype.reset=function(){this.container&&(this.calcScrollElementHeight(),this.container.scrollTop=0,this.translateTo(0))},e.prototype.scrollToEnd=function(){this.container&&this.list&&(this.calcScrollElementHeight(),this.container.scrollTop=this.container.scrollHeight-this.container.offsetHeight,this.translateTo(this.container.scrollHeight))},e.prototype.localScrollUp=function(e){var t,n=this.itemHeight,r=this.container.scrollTop,o=this.listTranslate,i=r-o;if(!(i>n)){for(t=0;t<this.skip&&!(o+n+i<=r);t++)o-=n;if(o=this.validateTranslate(o),this.skip-t<=0&&o>=r)return this.translateTo(0),this.changePage(0,e),void(this.container.scrollTop=0);o!==this.listTranslate&&(this.translateTo(o),this.changePage(this.skip-t,e))}},e.prototype.localScrollDown=function(e){var t,n=this.itemHeight,r=this.container.scrollTop,o=this.listTranslate,i=this.list.children.length;for(t=0;t<i&&!(o+n>=r);t++)o+=n;o=this.validateTranslate(o),t>=i&&this.skip+t>=this.total?(this.translateTo(o),this.changePage(this.total-1,e)):o!==this.listTranslate&&(this.translateTo(o),this.changePage(this.skip+t,e))},e.prototype.scrollNonStrict=function(e){var t=this.total*this.prevScrollPos/this.containerHeight,n=Math.min(Math.floor(t),this.total-1),r=this.containerHeight*t/this.total;r=this.validateTranslate(r),this.translateTo(r),this.changePage(n,e)},e.prototype.scrollHandler=function(e){var t=this.container?this.container.scrollTop:0,n=this.prevScrollPos;this.prevScrollPos=t,this.enabled&&this.list&&this.container&&!this.scrollSyncing&&(t-n<=0&&t>this.listTranslate-this.list.scrollHeight/10?this.localScrollUp(e):t-n>0&&t<this.listTranslate+2*this.list.scrollHeight/3?this.localScrollDown(e):this.scrollNonStrict(e))},e.prototype.validateTranslate=function(e){return e=Math.max(0,e),Math.min(this.containerHeight,e)},e}();var G=function(){function e(){}return e.prototype.navigate=function(e){var t=e.keyCode;return t===s.R.up||t===s.R.left?this.next({current:e.current,min:e.min,max:e.max,step:-1}):t===s.R.down||t===s.R.right?this.next({current:e.current,min:e.min,max:e.max,step:1}):t===s.R.home?0:t===s.R.end?e.max:void 0},e.prototype.next=function(e){return w(e.current)?Math.min(e.max,Math.max(e.current+e.step,e.min)):e.min},e}(),Z=n(3198),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},X.apply(this,arguments)},$=function(){function e(e){var t=this;this.wrapper=null,this.list=null,this.vs=new Y,this.navigation=new G,this.handleItemClick=function(e,n){var r=t.initState();r.syntheticEvent=n,n.stopPropagation(),t.component.handleItemSelect(e,r),t.togglePopup(r),t.applyState(r)},this.handleFocus=function(e){if(!t.component.state.focused){var n=t.initState();n.data.focused=!0,n.events.push({type:"onFocus"}),n.syntheticEvent=e,t.applyState(n)}},this.filterChanged=function(e,n){var r=t.component.props,o=r.textField;r.filterable&&n.events.push({type:"onFilterChange",filter:{field:o,operator:"contains",ignoreCase:!0,value:e}})},this.togglePopup=function(e){var n=t.component.props,r=void 0!==n.opened?n.opened:t.component.state.opened;void 0===n.opened&&(e.data.opened=!r),r?e.events.push({type:"onClose"}):(e.events.push({type:"onOpen"}),t.calculatePopupWidth())},this.pageChange=function(e,n){var r=t.initState();r.syntheticEvent=n,t.triggerOnPageChange(r,e.skip,e.take),t.applyState(r)},this.scrollToVirtualItem=function(e,n){var r=t.vs;if(r.enabled=!1,0===e.skip)r.reset();else if(e.skip+e.pageSize===e.total)r.scrollToEnd();else{var o=r.translate;0===o&&(r.calcScrollElementHeight(),o=r.itemHeight*e.skip,r.translateTo(o-r.itemHeight)),r.container&&(r.container.scrollTop=o),t.scrollToItem(n,!0)}window.setTimeout((function(){return r.enabled=!0}),10)},this.renderScrollElement=function(){var e=t.vs;return e.enabled&&o.createElement("div",{ref:function(t){return e.scrollElement=t},key:"scrollElementKey"})},this.listBoxId=(0,Z.M)(),this.guid=(0,Z.M)(),this.component=e,this.vs.PageChange=this.pageChange}return e.prototype.didMount=function(){var e=this.component.props,t=e.popupSettings||{},n=e.style||{},r=t.width,o=!0===e.opened;void 0===r&&this.calculatePopupWidth(),void 0===e.dir&&void 0===n.direction&&(this.calculateDir(),o=!0),o&&this.component.forceUpdate()},e.prototype.calculateDir=function(){var e=this.component.element;e&&e.ownerDocument&&e.ownerDocument.defaultView&&(this.dirCalculated=e.ownerDocument.defaultView.getComputedStyle(e).direction||void 0)},e.prototype.calculatePopupWidth=function(){this.wrapper&&(this.popupWidth=this.wrapper.offsetWidth+"px")},e.prototype.scrollToItem=function(e,t){var n=this.list||this.vs.list;if(n&&e>=0){var r=this.vs,o=r.container||n.parentNode,i=void 0!==t?t:r.enabled;!function(e,t,n,r,o){var i=e.offsetHeight,a=t.children.item(n),l=a.offsetTop+(o?r-e.scrollTop:0),s=a.offsetHeight;if(o){var u=0;l+s>i?u=l+s-i:l<0&&(u=l),0!==u?e.scrollTop+=u:0===e.scrollTop&&0!==r&&(e.scrollTop=r)}else l+s>i+e.scrollTop?e.scrollTop=l+s-i:l<e.scrollTop&&(e.scrollTop-=e.scrollTop-l)}(o,n,e,r.translate,i)}},e.prototype.initState=function(){return{data:{},events:[],syntheticEvent:void 0}},e.prototype.applyState=function(e){var t=this;Object.keys(e.data).length>0&&this.component.setState(e.data);var n={syntheticEvent:e.syntheticEvent,nativeEvent:e.syntheticEvent?e.syntheticEvent.nativeEvent:void 0,target:this.component,value:this.component.value};e.events.forEach((function(e){var r=e.type;delete e.type;var o=r&&t.component.props[r];o&&o.call(void 0,X(X({},n),e))}))},e.prototype.triggerOnPageChange=function(e,t,n){var r=this.component.props.virtual;if(r){var o=Math.min(Math.max(0,t),Math.max(0,r.total-n));o!==r.skip&&e.events.push({type:"onPageChange",page:{skip:o,take:n}})}},e.prototype.triggerPageChangeCornerItems=function(e,t){var n=this.component.props,r=n.data,o=void 0===r?[]:r,i=n.dataItemKey,a=n.virtual,l=void 0!==n.opened?n.opened:this.component.state.opened;e&&a&&this.vs.enabled&&(a.skip>0&&I(e,o[0],i)?this.triggerOnPageChange(t,a.skip-1,a.pageSize):!l&&a.skip+a.pageSize<a.total&&I(e,o[o.length-1],i)&&this.triggerOnPageChange(t,a.skip+1,a.pageSize))},e.prototype.getPopupSettings=function(){return Object.assign({},e.defaultProps.popupSettings,this.component.props.popupSettings)},e.basicPropTypes={opened:i.bool,disabled:i.bool,dir:i.string,tabIndex:i.number,accessKey:i.string,data:i.array,textField:i.string,className:i.string,label:i.string,loading:i.bool,popupSettings:i.shape({animate:i.oneOfType([i.bool,i.shape({openDuration:i.number,closeDuration:i.number})]),popupClass:i.string,className:i.string,appendTo:i.instanceOf(Element),width:i.oneOfType([i.string,i.number]),height:i.oneOfType([i.string,i.number])}),onOpen:i.func,onClose:i.func,onFocus:i.func,onBlur:i.func,onChange:i.func,itemRender:i.func,listNoDataRender:i.func,focusedItemIndex:i.func,header:i.node,footer:i.node},e.propTypes=X(X({},e.basicPropTypes),{value:i.any,defaultValue:i.any,filterable:i.bool,filter:i.string,virtual:i.shape({pageSize:i.number.isRequired,skip:i.number.isRequired,total:i.number.isRequired}),onFilterChange:i.func,onPageChange:i.func}),e.defaultProps={popupSettings:{height:"200px"},required:!1,validityStyles:!0},e}();const Q=$;var J=n(4006),ee={name:"@progress/kendo-react-dropdowns",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1655891009,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"},te=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),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},ne.apply(this,arguments)},re=a.G.sizeMap,oe=a.G.roundedMap,ie=function(e){function t(t){var n=e.call(this,t)||this;return n.state={},n._element=null,n.base=new Q(n),n.searchState={word:"",last:""},n._select=null,n._skipFocusEvent=!1,n._filterInput=null,n._navigated=!1,n.focus=function(){n.base.wrapper&&n.base.wrapper.focus()},n.handleItemSelect=function(e,t){var r=n.props,o=r.data,i=void 0===o?[]:o,a=r.virtual,l=r.dataItemKey,s=r.defaultItem,u=a?a.skip:0,c=-1===e&&void 0!==s?s:i[e-u],d=!I(c,n.value,l);n.triggerOnChange(c,t),d&&n.base.triggerPageChangeCornerItems(c,t)},n.componentRef=function(e){n._element=e,n.base.wrapper=e},n.dummySelect=function(e){return o.createElement("select",{name:n.props.name,ref:function(e){n._select=e},tabIndex:-1,"aria-hidden":!0,title:n.props.label,style:{opacity:0,width:1,border:0,zIndex:-1,position:"absolute",left:"50%"}},o.createElement("option",{value:n.props.valueMap?n.props.valueMap.call(void 0,e):e}))},n.renderListContainer=function(){var e,t=n.props,r=t.header,i=t.footer,a=t.dir,s=t.data,u=void 0===s?[]:s,c=t.size,d=n.base,p=d.getPopupSettings(),f=void 0!==n.props.opened?n.props.opened:n.state.opened,h=void 0!==p.width?p.width:d.popupWidth,m={dir:void 0!==a?a:d.dirCalculated,width:h,popupSettings:{popupClass:(0,l.A)(p.popupClass,"k-list",(e={},e["k-list-".concat(re[c]||c)]=c,e["k-virtual-list"]=n.base.vs.enabled,e)),className:p.className,animate:p.animate,anchor:n.element,show:f,onOpen:n.onPopupOpened,onClose:n.onPopupClosed,appendTo:p.appendTo},itemsCount:[u.length]};return o.createElement(v,ne({},m),n.renderListFilter(),n.renderDefaultItem(),r&&o.createElement("div",{className:"k-list-header"},r),n.renderList(),i&&o.createElement("div",{className:"k-list-footer"},i))},n.renderList=function(){var e=n.props,t=e.data,r=void 0===t?[]:t,i=e.textField,a=e.dataItemKey,l=e.virtual,s=void 0===l?{skip:0}:l,u=e.listNoDataRender,c=e.itemRender,d=n.base.vs,p=s.skip,f=void 0!==n.props.opened?n.props.opened:n.state.opened,h=n.base.getPopupSettings(),m="translateY(".concat(d.translate,"px)");return o.createElement(q,{id:n.base.listBoxId,show:f,data:r.slice(),focusedIndex:n.focusedIndex(),value:n.value,textField:i,valueField:a,optionsGuid:n.base.guid,listRef:function(e){return d.list=n.base.list=e},wrapperStyle:{maxHeight:h.height},wrapperCssClass:"k-list-content",listStyle:d.enabled?{transform:m}:void 0,key:"listkey",skip:p,onClick:n.handleItemClick,itemRender:c,noDataRender:u,onScroll:function(e){d.scrollHandler(e)},wrapperRef:d.scrollerRef,scroller:n.base.renderScrollElement()})},n.renderListFilter=function(){var e=void 0!==n.props.filter?n.props.filter:n.state.text;return n.props.filterable&&o.createElement(E,{value:e,ref:function(e){return n._filterInput=e&&e.input},onChange:n.handleListFilterChange,onKeyDown:n.handleKeyDown,size:n.props.size,rounded:n.props.rounded,fillMode:n.props.fillMode})},n.renderDefaultItem=function(){var e=n.props,t=e.textField,r=e.defaultItem,i=e.dataItemKey;return void 0!==r&&o.createElement(F,{defaultItem:r,textField:t,selected:I(n.value,r,i),key:"defaultitemkey",onClick:n.handleDefaultItemClick})},n.search=function(e){clearTimeout(n._typingTimeout),n.props.filterable||(n._typingTimeout=window.setTimeout((function(){return n.searchState.word=""}),n.props.delay),n.selectNext(e))},n.selectNext=function(e){var t,r=n.props,o=r.data,i=void 0===o?[]:o,a=r.dataItemKey,l=i.map((function(e,t){return{item:e,itemIndex:t}})),s=n.searchState.word,u=n.searchState.last,c=function(e,t){for(var n=0;n<e.length;n++)if(e.charAt(n)!==t)return!1;return!0}(s,u),d=l.length,p=Math.max(0,i.findIndex((function(e){return I(e,n.value,a)})));n.props.defaultItem&&(t={item:n.props.defaultItem,itemIndex:-1},d+=1,p+=1),l=function(e,t,n){var r=e;return n&&(r=[n].concat(r)),r.slice(t).concat(r.slice(0,t))}(l,p+=c?1:0,t);for(var f,h,m,v=0,g=n.props,y=g.textField,b=g.ignoreCase;v<d;v++)if(f=D(l[v].item,y),h=c&&k(f,u,b),m=k(f,s,b),h||m){v=l[v].itemIndex;break}if(v!==d){var C=n.base.initState();C.syntheticEvent=e,n.handleItemSelect(v,C),n.applyState(C),n._valueDuringOnChange=void 0}},n.handleKeyDown=function(e){var t=n.props,r=t.data,o=void 0===r?[]:r,i=t.filterable,a=t.disabled,l=t.leftRightKeysNavigation,u=void 0===l||l,c=t.virtual,d=void 0===c?{skip:0,total:0,pageSize:0}:c,p=void 0!==n.props.opened?n.props.opened:n.state.opened,f=e.keyCode,h=f===s.R.home||f===s.R.end,m=f===s.R.up||f===s.R.down,v=!p&&(e.altKey&&f===s.R.down||f===s.R.enter||f===s.R.space),g=p&&(e.altKey&&f===s.R.up||f===s.R.esc),y=u&&(f===s.R.left||f===s.R.right),b=m||!i&&(y||h),C=n.base.initState();if(C.syntheticEvent=e,!a){if(h&&n.base.vs.enabled)f===s.R.home?0!==d.skip?(n.base.triggerOnPageChange(C,0,d.pageSize),n._navigated=!0):n.triggerOnChange(o[0],C):d.skip<d.total-d.pageSize?(n.base.triggerOnPageChange(C,d.total-d.pageSize,d.pageSize),n._navigated=!0):n.triggerOnChange(o[o.length-1],C);else if(p&&f===s.R.enter){var E=n.focusedIndex();void 0!==E&&n.handleItemSelect(E,C),n.base.togglePopup(C),e.preventDefault()}else v||g?(n.base.togglePopup(C),e.preventDefault()):b&&(n.onNavigate(C,f),e.preventDefault());n.applyState(C)}},n.handleItemClick=function(e,t){n.base.handleItemClick(e,t),n._valueDuringOnChange=void 0},n.handleFocus=function(e){n._skipFocusEvent||n.base.handleFocus(e)},n.handleBlur=function(e){if(!n._skipFocusEvent&&n.state.focused){var t=void 0!==n.props.opened?n.props.opened:n.state.opened,r=n.base.initState();r.syntheticEvent=e,r.data.focused=!1,r.events.push({type:"onBlur"}),t&&n.base.togglePopup(r),n.applyState(r)}},n.handleDefaultItemClick=function(e){var t=n.base.initState();t.syntheticEvent=e,n.base.togglePopup(t),n.triggerOnChange(n.props.defaultItem,t),n.applyState(t)},n.handleWrapperClick=function(e){if(!e.isPropagationStopped()){var t=n.base.initState();t.syntheticEvent=e,n.state.focused||(t.data.focused=!0),n.base.togglePopup(t),n.applyState(t)}},n.handleKeyPress=function(e){if(!n.props.filterable&&0!==e.which&&e.keyCode!==s.R.enter){var t=String.fromCharCode(e.charCode||e.keyCode);n.props.ignoreCase&&(t=t.toLowerCase())," "===t&&e.preventDefault(),n.searchState={word:n.searchState.word+t,last:n.searchState.last+t},n.search(e)}},n.handleListFilterChange=function(e){var t=n.base.initState();t.syntheticEvent=e,void 0===n.props.filter&&(t.data.text=e.target.value),n.base.filterChanged(e.target.value,t),n.applyState(t)},n.onPopupOpened=function(){n._filterInput&&n.focusElement(n._filterInput)},n.onPopupClosed=function(){n.state.focused&&window.setTimeout((function(){n.state.focused&&n.base.wrapper&&n.focusElement(n.base.wrapper)}))},n.setValidity=function(){n._select&&n._select.setCustomValidity&&n._select.setCustomValidity(n.validity.valid?"":n.props.validationMessage||"Please select a value from the list!")},(0,J.s)(ee),n}return te(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){var e;return void 0!==this._valueDuringOnChange?e=this._valueDuringOnChange:void 0!==this.props.value?e=this.props.value:void 0!==this.state.value?e=this.state.value:void 0!==this.props.defaultValue&&(e=this.props.defaultValue),w(e)||void 0===this.props.defaultItem||(e=this.props.defaultItem),e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){var e=this.props,t=e.data,n=void 0===t?[]:t,r=e.dataItemKey,o=this.value;return n.findIndex((function(e){return I(e,o,r)}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){var e=void 0!==this.props.validationMessage,t=!this.required||null!==this.value&&""!==this.value&&void 0!==this.value;return{customError:e,valid:void 0!==this.props.valid?this.props.valid:t,valueMissing:null===this.value}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:t.defaultProps.required},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(e,t){var n=this.props,r=n.data,o=void 0===r?[]:r,i=n.dataItemKey,a=n.virtual,l=e.virtual?e.virtual.total:0,s=void 0!==this.props.opened?this.props.opened:this.state.opened,u=void 0!==e.opened?e.opened:t.opened,c=!u&&s;if(this.base.getPopupSettings().animate||c&&this.onPopupOpened(),a&&a.total!==l)this.base.vs.calcScrollElementHeight(),this.base.vs.reset();else{var d=this.value,p=void 0!==e.value?e.value:t.value,f=o.findIndex((function(e){return I(e,d,i)})),h=!I(p,d,i);c&&a?this.base.scrollToVirtualItem(a,f):c&&!a||s&&u&&d&&h&&!this._navigated?this.base.scrollToItem(f):s&&u&&this._navigated&&(this._navigated&&a&&0===a.skip?this.base.vs.reset():this._navigated&&a&&a.skip===a.total-a.pageSize&&this.base.vs.scrollToEnd())}this._navigated=!1,this.setValidity()},t.prototype.componentDidMount=function(){this.base.didMount(),this.setValidity()},t.prototype.render=function(){var e,t,n=this.props,r=n.style,i=n.className,a=n.label,s=n.dir,c=n.virtual,p=n.size,f=n.rounded,h=n.fillMode,m=void 0!==this.props.opened?this.props.opened:this.state.opened,v=this.value,g=D(v,this.props.textField),y=!this.validityStyles||this.validity.valid,b=this.base;b.vs.enabled=void 0!==c,void 0!==c&&(b.vs.skip=c.skip,b.vs.total=c.total,b.vs.pageSize=c.pageSize);var C=this.props,E=C.dataItemKey,w=C.data,k=void 0===w?[]:w,S=C.disabled,O=C.tabIndex,x=C.loading,T=C.iconClassName,R=C.valueRender,M=this.state.focused,P=k.findIndex((function(e){return I(e,v,E)})),N=o.createElement("span",{className:"k-input-inner"},o.createElement("span",{className:"k-input-value-text"},g)),F=void 0!==R?R.call(void 0,N,v):N,A=o.createElement("span",{ref:this.componentRef,className:(0,l.A)("k-dropdownlist k-picker",i,(e={},e["k-picker-".concat(re[p]||p)]=p,e["k-rounded-".concat(oe[f]||f)]=f,e["k-picker-".concat(h)]=h,e["k-focus"]=M,e["k-disabled"]=S,e["k-invalid"]=!y,e["k-loading"]=x,e["k-required"]=this.required,e)),style:a?ne(ne({},r),{width:void 0}):r,dir:s,onMouseDown:m?_:void 0,onFocus:this.handleFocus,onBlur:this.handleBlur,tabIndex:(0,u.p)(O,S),accessKey:this.props.accessKey,onKeyDown:this.handleKeyDown,onKeyPress:this.handleKeyPress,onClick:S?void 0:this.handleWrapperClick,role:"listbox","aria-required":this.required,"aria-disabled":S||void 0,"aria-haspopup":!0,"aria-expanded":m||!1,"aria-owns":this.base.listBoxId,"aria-activedescendant":m?"option-"+this.base.guid+"-"+(P+(c?c.skip:0)):void 0,"aria-label":this.props.ariaLabel||this.props.label,"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,id:this.props.id,title:this.props.title},F,x&&o.createElement("span",{className:"k-icon k-i-loading k-input-loading-icon",key:"loading"}),o.createElement("button",{tabIndex:-1,type:"button","aria-hidden":!0,className:(0,l.A)("k-input-button k-button k-icon-button",(t={},t["k-button-".concat(re[p]||p)]=p,t["k-button-".concat(h)]=h,t["k-button-".concat(h,"-base")]=h,t)),onMouseDown:function(e){return e.preventDefault()}},o.createElement("span",{className:(0,l.A)("k-button-icon k-icon k-i-arrow-s",T)})),this.dummySelect(v),this.renderListContainer());return a?o.createElement(d._,{label:a,editorValue:g,editorValid:y,editorDisabled:this.props.disabled,style:{width:r?r.width:void 0},children:A}):A},t.prototype.onNavigate=function(e,t){var n=this.props,r=n.data,o=void 0===r?[]:r,i=n.defaultItem,a=n.dataItemKey,l=n.virtual,s=void 0===l?{skip:0,total:0,pageSize:0}:l,u=this.base.vs,c=this.value,d=o.findIndex((function(e){return I(e,c,a)})),p=this.base.navigation.navigate({current:s.skip+d,max:(u.enabled?s.total:o.length)-1,min:void 0!==i?-1:0,keyCode:t});void 0!==p&&this.handleItemSelect(p,e),this.applyState(e)},t.prototype.focusedIndex=function(){var e=w(this.props.filter)?this.props.filter:this.state.text,t=this.props,n=t.data,r=void 0===n?[]:n,o=t.virtual,i=void 0===o?{skip:0}:o,a=t.dataItemKey,l=t.textField,s=t.focusedItemIndex,u=this.value,c=!(r.findIndex((function(e){return I(e,u,a)}))<0&&!this.props.defaultItem);return!c&&e&&0===i.skip?s?s(r,e,l):r.indexOf(T(r,e,l)):c||0!==i.skip?void 0:0},t.prototype.focusElement=function(e){var t=this;this._skipFocusEvent=!0,e.focus(),window.setTimeout((function(){return t._skipFocusEvent=!1}),30)},t.prototype.triggerOnChange=function(e,t){I(this.value,e,this.props.dataItemKey)||(void 0===this.props.value&&(t.data.value=e),this._valueDuringOnChange=e,t.events.push({type:"onChange"}))},t.prototype.applyState=function(e){this.base.applyState(e),this._valueDuringOnChange=void 0},t.displayName="DropDownList",t.propTypes=ne({delay:i.number,ignoreCase:i.bool,iconClassName:i.string,defaultItem:i.any,valueRender:i.func,valueMap:i.func,validationMessage:i.string,required:i.bool,id:i.string,ariaLabelledBy:i.string,ariaDescribedBy:i.string,ariaLabel:i.string,leftRightKeysNavigation:i.bool,title:i.string},Q.propTypes),t.defaultProps=ne(ne({delay:500,tabIndex:0,ignoreCase:!0},Q.defaultProps),{required:!1,size:"medium",rounded:"medium",fillMode:"solid"}),t}(o.Component),ae=(0,c.Y)(),le=(0,c.u)(ae,ie);le.displayName="KendoReactDropDownList";var se=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ue=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._input=null,t}return se(t,e),Object.defineProperty(t.prototype,"input",{get:function(){return this._input},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(e){var t=e.value,n=e.suggestedText,r=this.props,o=r.value,i=r.suggestedText,a=r.focused,l=this.input,s=t!==o||i!==n,u=s&&t.startsWith(o)&&!(n&&i&&n.endsWith(i));a&&l&&document.activeElement!==l&&l.focus(),i&&s&&!u&&l&&l.setSelectionRange(o.length-i.length,o.length)},t.prototype.render=function(){var e=this,t=this.props,n=t.expanded,r=void 0!==n&&n,i=t.disabled,a=t.role,l=void 0===a?"listbox":a,s=t.render,u=o.createElement("input",{autoComplete:"off",id:this.props.id,type:"text",key:"searchbar",size:this.props.size,placeholder:this.props.placeholder,className:"k-input-inner",tabIndex:this.props.tabIndex,accessKey:this.props.accessKey,role:l,name:this.props.name,value:this.props.value,onChange:this.props.onChange,ref:function(t){return e._input=t},onKeyDown:this.props.onKeyDown,onFocus:this.props.onFocus,onBlur:this.props.onBlur,"aria-disabled":i||void 0,disabled:i||void 0,readOnly:this.props.readOnly||void 0,"aria-haspopup":"listbox","aria-expanded":r,"aria-owns":this.props.owns,"aria-activedescendant":r?this.props.activedescendant:void 0,"aria-describedby":this.props.ariaDescribedBy,"aria-labelledby":this.props.ariaLabelledBy});return s?s.call(void 0,u):u},t}(o.Component);const ce=ue;var de=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),pe=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseDown=function(e){return e.preventDefault()},t}return de(t,e),t.prototype.render=function(){var e=(0,z.provideLocalizationService)(this).toLanguageString(H,U[H]);return o.createElement("span",{className:"k-clear-value",role:"button",onClick:this.props.onClick,onMouseDown:this.onMouseDown,tabIndex:-1,title:e,key:"clearbutton"},o.createElement("span",{className:"k-icon k-i-x"}))},t}(o.Component);const fe=pe;(0,z.registerForLocalization)(pe);var he=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),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},me.apply(this,arguments)},ve=a.G.sizeMap,ge=a.G.roundedMap,ye=function(e){function t(t){var n=e.call(this,t)||this;return n.state={},n.base=new Q(n),n._element=null,n._inputId=(0,Z.M)(),n._suggested="",n._input=null,n.itemHeight=0,n.focus=function(){n._input&&n._input.focus()},n.handleItemSelect=function(e,t){var r=n.props,o=r.data,i=void 0===o?[]:o,a=r.virtual,l=r.dataItemKey,s=i[e-(a?a.skip:0)],u=!I(s,n.value,l);n.triggerOnChange(s,t),void 0!==n.state.text&&(t.data.text=void 0),u&&n.base.triggerPageChangeCornerItems(s,t)},n.componentRef=function(e){n._element=e,n.base.wrapper=e},n.toggleBtnClick=function(e){var t=n.base.initState();t.syntheticEvent=e,n.base.togglePopup(t),n.applyState(t)},n.onScroll=function(e){var t=n.base,r=t.vs,o=t.list;r.scrollHandler(e);var i=n.props,a=i.data,l=void 0===a?[]:a,s=i.groupField;if(s&&l.length){for(var u=n.itemHeight=n.itemHeight||(r.enabled?r.itemHeight:o?o.children[0].offsetHeight:0),c=e.target.scrollTop-r.skip*u,d=l[0][s],p=1;p<l.length&&!(u*p>c);p++)l[p]&&l[p][s]&&(d=l[p][s]);d!==n.state.group&&(n.setState({group:d}),n.props.onGroupScroll&&n.props.onGroupScroll.call(void 0,{group:d}))}},n.handleItemClick=function(e,t){n.base.handleItemClick(e,t),n._valueDuringOnChange=void 0},n.handleBlur=function(e){if(n.state.focused){var t=n.base.initState();t.data.focused=!1,t.events.push({type:"onBlur"}),t.syntheticEvent=e,n.applyValueOnRejectSuggestions(e.currentTarget.value,t)}},n.onInputKeyDown=function(e){var t=e.keyCode,r=void 0!==n.props.opened?n.props.opened:n.state.opened,o=n.base.initState();if(o.syntheticEvent=e,!e.altKey&&(t===s.R.up||t===s.R.down))return e.preventDefault(),n.onNavigate(o,t),void n.applyState(o);var i=function(){e.preventDefault(),n.base.togglePopup(o),n.applyState(o)};r?e.altKey&&t===s.R.up?i():t===s.R.enter?(e.preventDefault(),n.applyValueOnEnter(e.currentTarget.value,o)):t===s.R.esc&&n.applyValueOnRejectSuggestions(e.currentTarget.value,o):e.altKey&&t===s.R.down&&i()},n.inputOnChange=function(e){var t=n.base.initState();t.syntheticEvent=e;var r=void 0!==n.props.opened?n.props.opened:n.state.opened,o=e.currentTarget,i=o.value;if(n.props.suggest){var a=o.selectionEnd===i.length,l=void 0!==n.props.filter?n.props.filter:n.state.text;w(l)||(l=D(n.value,n.props.textField)||"");var s=l&&l===i,u=l&&l.length>i.length;s||u||!a?n._suggested="":n.suggestValue(i)}void 0===n.props.filter&&(t.data.text=i),void 0!==n.state.focusedItem&&(t.data.focusedItem=void 0),r||n.base.togglePopup(t),n.base.filterChanged(i,t),n.applyState(t)},n.clearButtonClick=function(e){var t=n.base.initState();t.syntheticEvent=e,e.stopPropagation(),n._suggested="",n.base.filterChanged("",t),void 0===n.props.filter&&void 0!==n.state.text&&(t.data.text=void 0),n.triggerOnChange(null,t),(void 0!==n.props.opened?n.props.opened:n.state.opened)&&n.base.togglePopup(t),n.applyState(t)},n.setValidity=function(){n._input&&n._input.setCustomValidity&&n._input.setCustomValidity(n.validity.valid?"":n.props.validationMessage||"Please enter a valid value!")},(0,J.s)(ee),n}return he(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,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:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){var e=this.props,t=e.data,n=void 0===t?[]:t,r=e.dataItemKey,o=this.value;return n.findIndex((function(e){return I(e,o,r)}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){var e=void 0!==this.props.validationMessage,t=!this.required||null!==this.value&&""!==this.value&&void 0!==this.value;return{customError:e,valid:void 0!==this.props.valid?this.props.valid:t,valueMissing:null===this.value}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:t.defaultProps.required},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(e,t){var n=this.props,r=n.data,o=void 0===r?[]:r,i=n.dataItemKey,a=n.virtual,l=e.virtual?e.virtual.total:0,s=void 0!==this.props.opened?this.props.opened:this.state.opened,u=void 0!==e.opened?e.opened:t.opened,c=!u&&s,d=this.value;if(this._valueOnDidUpdate=d,a&&a.total!==l)this.base.vs.calcScrollElementHeight(),this.base.vs.reset();else{var p=void 0!==e.value?e.value:t.value,f=o.findIndex((function(e){return I(e,d,i)})),h=!I(p,d,i);c&&a?this.base.scrollToVirtualItem(a,f):(c&&!a||s&&u&&d&&h)&&this.base.scrollToItem(f)}c&&this._input&&this._input.focus(),this.setValidity()},t.prototype.componentDidMount=function(){this.base.didMount(),this.setValidity()},t.prototype.render=function(){var e,n,r=this.props,i=r.dir,a=r.disabled,s=r.clearButton,u=void 0===s?t.defaultProps.clearButton:s,c=r.label,p=r.textField,f=r.className,h=r.style,m=r.loading,v=r.iconClassName,g=r.virtual,y=r.size,b=r.rounded,C=r.fillMode,E=!this.validityStyles||this.validity.valid,k=void 0!==this.props.filter?this.props.filter:this.state.text,S=D(this.value,p),O=w(k)?k:S,x=u&&(!!O||w(this.value)),I=this.base.vs,T=this.props.id||this._inputId;I.enabled=void 0!==g,void 0!==g&&(I.skip=g.skip,I.total=g.total,I.pageSize=g.pageSize);var _=o.createElement("span",{className:(0,l.A)("k-combobox k-input",(e={},e["k-input-".concat(ve[y]||y)]=y,e["k-rounded-".concat(ge[b]||b)]=b,e["k-input-".concat(C)]=C,e["k-invalid"]=!E,e["k-loading"]=m,e["k-required"]=this.required,e["k-disabled"]=a,e),f),ref:this.componentRef,style:c?me(me({},h),{width:void 0}):h,dir:i},this.renderSearchBar(O||"",T),x&&!m&&o.createElement(fe,{onClick:this.clearButtonClick,key:"clearbutton"}),m&&o.createElement("span",{className:"k-icon k-i-loading k-input-loading-icon",key:"loading"}),o.createElement("button",{tabIndex:-1,type:"button",className:(0,l.A)("k-input-button k-button k-icon-button",(n={},n["k-button-".concat(ve[y]||y)]=y,n["k-button-".concat(C)]=C,n["k-button-".concat(C,"-base")]=C,n)),onClick:this.toggleBtnClick,onMouseDown:function(e){return e.preventDefault()}},o.createElement("span",{className:(0,l.A)("k-button-icon k-icon k-i-arrow-s",v)})),this.renderListContainer());return c?o.createElement(d._,{label:c,editorId:T,editorValue:O,editorValid:E,editorDisabled:a,style:{width:h?h.width:void 0},children:_}):_},t.prototype.onNavigate=function(e,t){var n=this.props,r=n.data,o=void 0===r?[]:r,i=n.virtual,a=void 0===i?{skip:0}:i,l=this.props.filter?this.props.filter:this.state.text,s=this.getFocusedIndex(),u=this.base.vs,c=this.value;if(this._suggested="",-1===s||w(c))if(""===l)this.handleItemSelect(0,e);else{var d=a.skip+s,p=this.base.navigation.navigate({keyCode:t,current:d,max:(u.enabled?u.total:o.length)-1,min:0});void 0!==p&&this.handleItemSelect(p,e)}else this.handleItemSelect(s,e)},t.prototype.applyValueOnEnter=function(e,t){var n,r=this.props,o=r.data,i=void 0===o?[]:o,a=r.textField,l=r.allowCustom,s=void 0!==this.props.opened?this.props.opened:this.state.opened,u=D(this.value,a)===e?this.index:O(i,e,a),c=-1!==u,d=void 0;if(this._suggested="",c)d=i[u];else{if(!l)return this.selectFocusedItem(e,t);d=void 0!==a?((n={})[a]=e,n):e}this.triggerOnChange(d,t),s&&this.base.togglePopup(t),void 0===this.props.filter&&void 0!==this.state.text&&(t.data.text=void 0),this.applyState(t)},t.prototype.applyValueOnRejectSuggestions=function(e,t){var n,r=this.props,o=r.data,i=void 0===o?[]:o,a=r.textField,l=r.allowCustom,s=void 0!==this.props.opened?this.props.opened:this.state.opened,u=D(this.value,a);if(this._suggested="",e===u||""===e&&!w(u))return s&&this.base.togglePopup(t),this.applyState(t);var c=O(i,e,a,!0),d=null;-1!==c?d=i[c]:l&&(d=e?a?((n={})[a]=e,n):e:null),this.triggerOnChange(d,t),void 0!==this.state.text&&(t.data.text=void 0,this.base.filterChanged("",t)),s&&this.base.togglePopup(t),this.applyState(t)},t.prototype.selectFocusedItem=function(e,t){var n=void 0!==this.props.opened?this.props.opened:this.state.opened,r=this.props,o=r.data,i=void 0===o?[]:o,a=r.textField,l=r.virtual,s=void 0===l?{skip:0}:l,u=r.focusedItemIndex,c=void 0===u?S:u,d=s.skip,p=""===e&&0===d?0:c(i,e,a);return-1!==p?this.handleItemSelect(p+d,t):(this.triggerOnChange(null,t),void 0!==this.state.text&&(t.data.text=void 0)),n&&this.base.togglePopup(t),this.applyState(t)},t.prototype.renderListContainer=function(){var e,t=this.base,n=this.props,r=n.dir,i=n.header,a=n.footer,s=n.data,u=void 0===s?[]:s,c=n.groupField,d=n.size,p=n.list,f=n.virtual,h=void 0!==this.props.opened?this.props.opened:this.state.opened,m=t.getPopupSettings(),g=void 0!==m.width?m.width:t.popupWidth,y=this.state.group;return void 0===y&&void 0!==c&&(y=D(u[0],c)),o.createElement(v,{width:g,popupSettings:{animate:m.animate,anchor:this.element,show:h,popupClass:(0,l.A)(m.popupClass,"k-reset"),className:m.className,appendTo:m.appendTo},dir:void 0!==r?r:this.base.dirCalculated,itemsCount:[u.length]},o.createElement("div",{className:(0,l.A)((e={},e["k-list"]=!p,e["k-list-".concat(ve[d]||d)]=!p&&d,e["k-virtual-list"]=f,e["k-data-table"]=p,e["k-table-".concat(ve[d]||d)]=p&&d,e))},i&&o.createElement("div",{className:"k-table-header"},i),!p&&y&&o.createElement("div",{className:"k-list-group-sticky-header"},y),this.renderList(),a&&o.createElement("div",{className:"k-list-footer"},a)))},t.prototype.renderList=function(){var e,t=this,n=this.base,r=this.props,i=r.textField,a=r.dataItemKey,s=r.listNoDataRender,u=r.itemRender,c=r.data,d=void 0===c?[]:c,p=r.virtual,f=void 0===p?{skip:0}:p,h=n.getPopupSettings(),m=n.vs,v=f.skip,g=void 0!==this.props.opened?this.props.opened:this.state.opened,y="translateY(".concat(m.translate,"px)"),b=g?this.getFocusedIndex():void 0,C=void 0!==this.props.filter?this.props.filter:this.state.text,E=D(this.value,i),k=w(C)&&C!==E?null:this.value,S=this.props.list||q;return o.createElement(S,{id:n.listBoxId,virtual:Boolean(f),show:g,data:d,focusedIndex:b,value:k,textField:i,valueField:a,groupField:this.props.groupField,optionsGuid:n.guid,listRef:function(e){m.list=t.base.list=e,t.itemHeight=0},wrapperStyle:{maxHeight:h.height},wrapperCssClass:(0,l.A)("k-list-content",(e={},e["k-list-scroller"]=!f,e["k-virtual-content"]=f,e)),listStyle:m.enabled?{transform:y}:void 0,key:"listkey",skip:v,onClick:this.handleItemClick,itemRender:u,noDataRender:s,onMouseDown:function(e){return e.preventDefault()},onScroll:this.onScroll,wrapperRef:m.scrollerRef,scroller:this.base.renderScrollElement()})},t.prototype.renderSearchBar=function(e,t){var n=this,r=this.props,i=r.placeholder,a=r.tabIndex,l=r.disabled,s=r.data,u=void 0===s?[]:s,c=r.dataItemKey,d=r.virtual,p=void 0===d?{skip:0}:d,f=void 0!==this.props.opened?this.props.opened:this.state.opened,h=this.value,m=Math.max(0,u.findIndex((function(e){return I(e,h,c)})));return this._suggested&&!I(this._valueOnDidUpdate,h,c)&&(this._suggested=""),o.createElement(ce,{id:t,placeholder:i,tabIndex:a||void 0,accessKey:this.props.accessKey,value:e+this._suggested,suggestedText:this._suggested,ref:function(e){return n._input=e&&e.input},onKeyDown:this.onInputKeyDown,onChange:this.inputOnChange,onFocus:this.base.handleFocus,onBlur:this.handleBlur,disabled:l,expanded:f,owns:this.base.listBoxId,activedescendant:"option-".concat(this.base.guid,"-").concat(m+p.skip),role:"combobox",ariaLabelledBy:this.props.ariaLabelledBy,ariaDescribedBy:this.props.ariaDescribedBy,render:this.props.valueRender})},t.prototype.triggerOnChange=function(e,t){var n=this.value;!w(n)&&!w(e)||I(n,e,this.props.dataItemKey)||(void 0===this.props.value&&(t.data.value=e),this._valueDuringOnChange=e,t.events.push({type:"onChange"}))},t.prototype.getFocusedIndex=function(){var e=this.value,t=this.props,n=t.data,r=void 0===n?[]:n,o=t.textField,i=t.dataItemKey,a=t.virtual,l=void 0===a?{skip:0}:a,s=t.focusedItemIndex,u=void 0===s?S:s,c=this.props.filter?this.props.filter:this.state.text;return w(e)&&void 0===c?r.findIndex((function(t){return I(t,e,i)})):c?u(r,c,o):0===l.skip?0:-1},t.prototype.suggestValue=function(e){var t=this.props,n=t.data,r=t.textField;this._suggested=function(e,t,n){void 0===t&&(t=[]);var r="";if(e){var o=t[S(t,e,n)];if(o){var i=D(o,n);e.toLowerCase()!==i.toLowerCase()&&(r=i.substring(e.length))}}return r}(e,n,r)},t.prototype.applyState=function(e){this.base.applyState(e),this._valueDuringOnChange=void 0},t.displayName="ComboBox",t.propTypes=me(me({},Q.propTypes),{size:i.oneOf([null,"small","medium","large"]),rounded:i.oneOf([null,"small","medium","large","full"]),fillMode:i.oneOf([null,"solid","flat","outline"]),dataItemKey:i.string,groupField:i.string,suggest:i.bool,placeholder:i.string,allowCustom:i.bool,clearButton:i.bool,iconClassName:i.string,validationMessage:i.string,required:i.bool,id:i.string,ariaLabelledBy:i.string,ariaDescribedBy:i.string,list:i.any,valueRender:i.func}),t.defaultProps=me(me({},Q.defaultProps),{size:"medium",rounded:"medium",fillMode:"solid",allowCustom:!1,clearButton:!0,required:!1}),t}(o.Component),be=(0,c.Y)(),Ce=(0,c.u)(be,ye);Ce.displayName="KendoReactComboBox";var Ee=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),we=function(){return we=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},we.apply(this,arguments)},ke=a.G.sizeMap,Se=a.G.roundedMap,Oe=function(e){function t(t){var n=e.call(this,t)||this;return n.state={},n.base=new Q(n),n._element=null,n._inputId=(0,Z.M)(),n._suggested="",n._input=null,n.focus=function(){n._input&&n._input.focus()},n.handleItemSelect=function(e,t){var r=n.props.data,o=D((void 0===r?[]:r)[e],n.props.textField);n.triggerOnChange(o,t)},n.itemFocus=function(e,t){var r=n.props,o=r.data,i=void 0===o?[]:o,a=r.textField,l=i[e];I(n.state.focusedItem,l,a)||(t.data.focusedItem=l)},n.togglePopup=function(e){n.base.togglePopup(e)},n.setValidity=function(){n._input&&n._input.setCustomValidity&&n._input.setCustomValidity(n.validity.valid?"":n.props.validationMessage||"Please enter a valid value!")},n.handleItemClick=function(e,t){n.base.handleItemClick(e,t),n._valueDuringOnChange=void 0},n.onChangeHandler=function(e){var t=n.base.initState(),r=e.currentTarget,o=r.value,i=r.selectionEnd===o.length;t.syntheticEvent=e;var a=n._suggested,l=n.value,s=l&&l.substring(0,l.length-a.length),u=s&&s===o,c=s&&s.length>o.length,d=n.props.suggest,p=void 0!==n.props.opened?n.props.opened:n.state.opened;if(void 0!==d&&!1!==d){u||c||!i?n._suggested="":n.suggestValue(o);var f=o+n._suggested,h={userInput:o,value:n._suggested};n.triggerOnChange(f,t,{suggestion:h})}else n._suggested="",n.triggerOnChange(o,t);(!p&&o||p&&!o)&&n.togglePopup(t),t.data.focusedItem=void 0,n.applyState(t)},n.clearButtonClick=function(e){var t=n.base.initState(),r=void 0!==n.props.opened?n.props.opened:n.state.opened;t.syntheticEvent=e,n._suggested="",n.triggerOnChange("",t),void 0!==n.state.focusedItem&&(t.data.focusedItem=void 0),r&&n.togglePopup(t),n.applyState(t)},n.onInputKeyDown=function(e){var t=e.keyCode,r=void 0!==n.props.opened?n.props.opened:n.state.opened,o=n.base.initState();o.syntheticEvent=e;var i=function(){r&&e.preventDefault()};t===s.R.enter||t===s.R.esc?(i(),n.applyInputValue(e.currentTarget.value,o,e.keyCode)):t!==s.R.up&&t!==s.R.down||(i(),n.onNavigate(o,t))},n.handleBlur=function(e){if(n.state.focused){var t=n.base.initState();t.data.focused=!1,t.events.push({type:"onBlur"}),t.syntheticEvent=e,n.applyInputValue(e.currentTarget.value,t)}},(0,J.s)(ee),n}return Ee(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,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:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){var e=void 0!==this.props.validationMessage,t=!this.required||""!==this.value;return{customError:e,valid:void 0!==this.props.valid?this.props.valid:t,valueMissing:null===this.value}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:t.defaultProps.required},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(e,t){var n=this.props.data,r=void 0===n?[]:n,o=e.data,i=void 0===o?[]:o,a=this.focusedIndex(),l=r[a],s=i!==r,u=void 0!==l&&t.focusedItem!==l,c=void 0!==this.props.opened?this.props.opened:this.state.opened,d=void 0!==e.opened?e.opened:t.opened;(c&&(u||s)||!d&&c)&&this.base.scrollToItem(a),this.setValidity()},t.prototype.componentDidMount=function(){this.base.didMount(),this.setValidity()},t.prototype.render=function(){var e,t=this,n=this.props,r=n.dir,i=n.disabled,a=n.label,s=n.className,u=n.style,c=n.loading,p=n.suggest,f=n.size,h=n.rounded,m=n.fillMode,v=!this.validityStyles||this.validity.valid,g=this.base,y=this.value,b=!1!==this.props.clearButton&&!c&&!!y,C=this.props.id||this._inputId;"string"==typeof p&&(this._suggested=p);var E=o.createElement("span",{className:(0,l.A)("k-autocomplete k-input",s,(e={},e["k-input-".concat(ke[f]||f)]=f,e["k-rounded-".concat(Se[h]||h)]=h,e["k-input-".concat(m)]=m,e["k-invalid"]=!v,e["k-loading"]=c,e["k-required"]=this.required,e["k-disabled"]=i,e)),ref:function(e){t._element=e,g.wrapper=e},style:a?we(we({},u),{width:void 0}):u,dir:r},this.renderSearchBar(y||"",C),c&&o.createElement("span",{className:"k-icon k-i-loading k-input-loading-icon"}),b&&!c&&o.createElement(fe,{onClick:this.clearButtonClick,key:"clearbutton"}),this.renderListContainer());return a?o.createElement(d._,{label:a,editorId:C,editorValue:y,editorValid:v,editorDisabled:i,style:{width:u?u.width:void 0},children:E}):E},t.prototype.onNavigate=function(e,t){var n=this,r=this.value,o=this.props,i=o.data,a=void 0===i?[]:i,l=o.textField,s=o.focusedItemIndex,u=void 0!==this.state.focusedItem?a.findIndex((function(e){return I(e,n.state.focusedItem,l)})):s?s(a,r,l):a.indexOf(T(a,r,l)),c=this.base.navigation.navigate({keyCode:t,current:u,max:a.length-1,min:0});void 0!==c&&this.itemFocus(c,e),this.applyState(e)},t.prototype.applyInputValue=function(e,t,n){var r=void 0!==this.props.opened?this.props.opened:this.state.opened,o=this.props,i=o.data,a=void 0===i?[]:i,l=o.textField;if(this._suggested="",r&&n===s.R.enter){var u=D(a[this.focusedIndex(e)],l);this.triggerOnChange(u,t)}r&&this.togglePopup(t),this.applyState(t)},t.prototype.renderSearchBar=function(e,t){var n=this,r=this.base,i=this.props,a=i.placeholder,l=i.tabIndex,s=i.disabled,u=i.readonly,c=this.state.focused,d=void 0!==this.props.opened?this.props.opened:this.state.opened;return o.createElement(ce,{id:t,placeholder:a,tabIndex:l||void 0,accessKey:this.props.accessKey,value:e,suggestedText:this._suggested,focused:c,name:this.props.name,ref:function(e){return n._input=e&&e.input},onKeyDown:this.onInputKeyDown,onChange:this.onChangeHandler,onFocus:r.handleFocus,onBlur:this.handleBlur,disabled:s,readOnly:u,expanded:d,owns:r.listBoxId,activedescendant:"option-"+r.guid+"-"+this.focusedIndex(),role:"combobox",ariaLabelledBy:this.props.ariaLabelledBy,ariaDescribedBy:this.props.ariaDescribedBy,render:this.props.valueRender})},t.prototype.renderListContainer=function(){var e,t=this.base,n=this.props,r=n.dir,i=n.header,a=n.footer,s=n.data,u=void 0===s?[]:s,c=n.size,d=t.getPopupSettings(),p=void 0!==this.props.opened?this.props.opened:this.state.opened,f=void 0!==d.width?d.width:t.popupWidth;return o.createElement(v,{width:f,popupSettings:{animate:d.animate,anchor:this.element,show:p,popupClass:(0,l.A)(d.popupClass,"k-list",(e={},e["k-list-".concat(ke[c]||c)]=c,e)),className:d.className,appendTo:d.appendTo},dir:void 0!==r?r:this.base.dirCalculated,itemsCount:[u.length]},i&&o.createElement("div",{className:"k-list-header"},i),this.renderList(),a&&o.createElement("div",{className:"k-list-footer"},a))},t.prototype.renderList=function(){var e=this.base,t=e.getPopupSettings(),n=this.props,r=n.textField,i=n.data,a=void 0===i?[]:i,l=n.listNoDataRender,s=n.itemRender,u=this.value,c=void 0!==this.props.opened?this.props.opened:this.state.opened;return o.createElement(q,{id:e.listBoxId,show:c,data:a.slice(),focusedIndex:this.focusedIndex(),value:u,textField:r,valueField:r,highlightSelected:!1,optionsGuid:e.guid,listRef:function(t){return e.list=t},wrapperStyle:{maxHeight:t.height},wrapperCssClass:"k-list-content",onClick:this.handleItemClick,itemRender:s,noDataRender:l,onMouseDown:function(e){return e.preventDefault()}})},t.prototype.triggerOnChange=function(e,t,n){(this.value!==e||n)&&(t.data.value=e,this._valueDuringOnChange=e,t.events.push(we({type:"onChange"},n||{})))},t.prototype.applyState=function(e){this.base.applyState(e),this._valueDuringOnChange=void 0},t.prototype.suggestValue=function(e){if(this._suggested="",e){var t=this.props,n=t.data,r=void 0===n?[]:n,o=t.textField,i=r[S(r,e,o)];if(i){var a=D(i,o);e.toLowerCase()!==a.toLowerCase()&&(this._suggested=a.substring(e.length))}}},t.prototype.focusedIndex=function(e){var t=this,n=this.props,r=n.data,o=void 0===r?[]:r,i=n.textField,a=n.focusedItemIndex,l=void 0!==e?e:this.value;return void 0!==this.state.focusedItem?o.findIndex((function(e){return I(e,t.state.focusedItem,i)})):a?a(o,l,i):Math.max(0,o.indexOf(T(o,l,i)))},t.displayName="AutoComplete",t.propTypes=we(we({},Q.basicPropTypes),{size:i.oneOf([null,"small","medium","large"]),rounded:i.oneOf([null,"small","medium","large","full"]),fillMode:i.oneOf([null,"solid","flat","outline"]),suggest:i.oneOfType([i.bool,i.string]),placeholder:i.string,value:i.string,defaultValue:i.string,validationMessage:i.string,required:i.bool,readonly:i.bool,clearButton:i.bool,valueRender:i.func,id:i.string,ariaLabelledBy:i.string,ariaDescribedBy:i.string}),t.defaultProps=we(we({},Q.defaultProps),{size:"medium",rounded:"medium",fillMode:"solid"}),t}(o.Component),De=(0,c.Y)(),xe=(0,c.u)(De,Oe);xe.displayName="KendoReactAutoComplete";var Ie=n(1711),Te=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_e=function(e){return e.syntheticEvent.preventDefault()},Re=function(e){return e.syntheticEvent.stopPropagation()},Me=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Te(t,e),t.prototype.render=function(){var e=this.props,t=e.data,n=e.guid,r=e.focused,i=e.tagRender,a=e.tag,l=e.onTagDelete,s=e.size;return o.createElement(o.Fragment,null,t.map((function(e,u){var c=a?o.createElement(a,{key:e.text+u,tagData:e,guid:n,focusedTag:r,onTagDelete:l}):o.createElement(Ie.A,{id:"tag-".concat(n,"-").concat(e.text.replace(/\s+/g,"-")),"aria-selected":!0,role:"option","aria-setsize":t.length,key:e.text+u,text:e.text,removable:!0,removeIcon:"k-i-close",onRemove:function(t){return l.call(void 0,e.data,t.syntheticEvent)},onMouseDown:_e,onClick:Re,className:e===r?"k-focus":void 0,size:s});return i?i(e,c):c})),this.props.children)},t}(o.Component);const Pe=Me;var Ne;!function(e){e[e.PopupList=0]="PopupList",e[e.TagsList=1]="TagsList"}(Ne||(Ne={}));var Fe,Ae=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),je=function(){return je=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},je.apply(this,arguments)},Le=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},Ve=a.G.sizeMap,ze=a.G.roundedMap,Be=function(e){return e.preventDefault()},He=function(e){return e===Fe.CustomItem};!function(e){e[e.None=0]="None",e[e.ListItem=1]="ListItem",e[e.CustomItem=2]="CustomItem"}(Fe||(Fe={}));var Ue=function(e){function t(t){var n=e.call(this,t)||this;return n.state={activedescendant:Ne.PopupList},n._element=null,n._valueItemsDuringOnChange=null,n._inputId=(0,Z.M)(),n.base=new Q(n),n._tags=[],n._input=null,n._skipFocusEvent=!1,n.scrollToFocused=!1,n.focus=function(){n._input&&n._input.focus()},n.handleItemSelect=function(e,t){var r=n.props,o=r.data,i=void 0===o?[]:o,a=r.dataItemKey,l=r.virtual,s=i[e-(l?l.skip:0)],u=n.value.findIndex((function(e){return I(e,s,a)})),c=[];-1!==u?(c=n.value).splice(u,1):c=Le(Le([],n.value,!0),[s],!1),(void 0!==n.props.filter?n.props.filter:n.state.text)&&(n.state.text&&(t.data.text=""),n.base.filterChanged("",t)),void 0!==n.state.focusedIndex&&(t.data.focusedIndex=void 0),n.triggerOnChange(c,t),n.base.triggerPageChangeCornerItems(s,t)},n.onTagDelete=function(e,t){var r=void 0!==n.props.opened?n.props.opened:n.state.opened,o=n.base.initState();o.syntheticEvent=t,r&&n.base.togglePopup(o),n.state.focused||(o.data.focused=!0,n.focus());var i=n.value;x(i,e,n.props.dataItemKey),n.triggerOnChange(i,o),n.applyState(o)},n.itemFocus=function(e,t){var r=n.props,o=r.data,i=void 0===o?[]:o,a=r.allowCustom,l=r.virtual,s=l?l.skip:0,u=void 0!==n.props.filter?n.props.filter:n.state.text,c=n.getFocusedState().focusedIndex,d=a&&u,p=i[e-s];p&&c!==e?n.state.focusedIndex!==e&&(t.data.focusedIndex=e,t.data.activedescendant=Ne.PopupList):d&&-1===e&&void 0!==n.state.focusedIndex&&(t.data.focusedIndex=void 0),n.base.triggerPageChangeCornerItems(p,t)},n.componentRef=function(e){n._element=e,n.base.wrapper=e},n.searchbarRef=function(e){var t=n._input=e&&e.input;t&&n.state.focused&&window.setTimeout((function(){return t.focus()}),0)},n.onChangeHandler=function(e){var t=n.base.initState(),r=e.currentTarget.value,o=void 0!==n.props.opened?n.props.opened:n.state.opened;t.syntheticEvent=e,void 0===n.props.filter&&(t.data.text=r),t.data.focusedIndex=void 0,o||n.base.togglePopup(t),n.base.filterChanged(r,t),n.applyState(t)},n.clearButtonClick=function(e){var t=void 0!==n.props.opened?n.props.opened:n.state.opened,r=n.base.initState();r.syntheticEvent=e,e.stopPropagation(),n.value.length>0&&n.triggerOnChange([],r),void 0!==n.state.focusedIndex&&(r.data.focusedIndex=void 0),t&&n.base.togglePopup(r);var o=void 0!==n.props.filter?n.props.filter:n.state.text;w(o)&&""!==o&&n.base.filterChanged("",r),n.state.text&&(r.data.text=""),n.applyState(r)},n.onInputKeyDown=function(e){var t=e.keyCode,r=void 0!==n.props.filter?n.props.filter:n.state.text,o=void 0!==n.props.opened?n.props.opened:n.state.opened,i=n.getFocusedState().focusedItem,a=n.base.initState();if(a.syntheticEvent=e,!r&&n.value.length>0&&(t===s.R.left||t===s.R.right||t===s.R.home||t===s.R.end||t===s.R.delete||t===s.R.backspace))return n.onTagsNavigate(e,a);var l=function(){e.preventDefault(),n.base.togglePopup(a),n.applyState(a)};o?e.altKey&&t===s.R.up?l():t===s.R.up||t===s.R.down?(e.preventDefault(),n.onNavigate(a,t)):t===s.R.enter?(e.preventDefault(),n.props.allowCustom&&r&&null===i?n.customItemSelect(e):n.selectFocusedItem(e)):t===s.R.esc&&l():e.altKey&&t===s.R.down&&l()},n.renderListContainer=function(){var e,t,r=n.base,i=n.props,a=i.header,s=i.footer,u=i.allowCustom,c=i.dir,d=i.data,p=void 0===d?[]:d,f=i.size,h=n.base.getPopupSettings(),m=void 0!==n.props.opened?n.props.opened:n.state.opened,g=void 0!==n.props.filter?n.props.filter:n.state.text,y=void 0!==h.width?h.width:r.popupWidth,b={dir:void 0!==c?c:r.dirCalculated,width:y,popupSettings:{popupClass:(0,l.A)(h.popupClass,"k-list",(e={},e["k-list-".concat(Ve[f]||f)]=f,e["k-virtual-list"]=n.base.vs.enabled,e)),className:h.className,animate:h.animate,anchor:n.element,show:m,onOpen:n.onPopupOpened,onClose:n.onPopupClosed,appendTo:h.appendTo},itemsCount:[p.length,n.value.length]},C=n.getFocusedState().focusedType,E=u&&g&&o.createElement("div",{className:(0,l.A)("k-list",(t={},t["k-list-".concat(Ve[f]||f)]=f,t)),key:"customitem",onClick:n.customItemSelect,onMouseDown:Be},o.createElement("div",{className:(0,l.A)("k-list-item k-custom-item",{"k-focus":He(C)}),style:{fontStyle:"italic"}},g,o.createElement("span",{className:"k-icon k-i-plus",style:{position:"absolute",right:"0.5em"}})));return o.createElement(v,je({},b),a&&o.createElement("div",{className:"k-list-header"},a),E,n.renderList(),s&&o.createElement("div",{className:"k-list-footer"},s))},n.renderList=function(){var e=n.props,t=e.data,r=void 0===t?[]:t,i=e.textField,a=e.listNoDataRender,l=e.itemRender,s=e.dataItemKey,u=e.virtual,c=n.base.vs,d=u?u.skip:0,p=void 0!==n.props.opened?n.props.opened:n.state.opened,f=n.getFocusedState().focusedIndex,h=n.base.getPopupSettings(),m="translateY(".concat(c.translate,"px)");return o.createElement(q,{id:n.base.listBoxId,show:p,data:r.slice(),focusedIndex:f-d,value:n.value,textField:i,valueField:s,optionsGuid:n.base.guid,listRef:function(e){c.list=n.base.list=e},wrapperStyle:{maxHeight:h.height},wrapperCssClass:"k-list-content",listStyle:c.enabled?{transform:m}:void 0,key:"listKey",skip:d,onClick:n.handleItemClick,itemRender:l,noDataRender:a,onMouseDown:Be,onBlur:n.handleBlur,onScroll:function(e){c.scrollHandler(e)},wrapperRef:c.scrollerRef,scroller:n.base.renderScrollElement()})},n.customItemSelect=function(e){var t,r=void 0!==n.props.filter?n.props.filter:n.state.text,o=n.props.textField;if(r){var i=n.base.initState();i.syntheticEvent=e;var a=o?((t={})[o]=r,t):r;void 0!==n.state.text&&(i.data.text=""),i.data.focusedIndex=void 0,n.base.filterChanged("",i);var l=Le(Le([],n.value,!0),[a],!1);n.triggerOnChange(l,i),n.base.togglePopup(i),n.applyState(i)}},n.handleWrapperClick=function(e){var t=void 0!==n.props.opened?n.props.opened:n.state.opened,r=n._input;!t&&r&&n.focusElement(r);var o=n.base.initState();o.syntheticEvent=e,n.state.focused||(o.events.push({type:"onFocus"}),o.data.focused=!0),n.base.togglePopup(o),n.applyState(o)},n.handleItemClick=function(e,t){var r=n.base.initState();r.syntheticEvent=t,n.handleItemSelect(e,r),n.props.autoClose&&n.base.togglePopup(r),t.stopPropagation(),n.applyState(r)},n.handleBlur=function(e){if(n.state.focused&&!n._skipFocusEvent){var t=void 0!==n.props.opened?n.props.opened:n.state.opened,r=n.base.initState(),o=n.props,i=o.allowCustom,a=o.filterable;r.syntheticEvent=e,r.data.focused=!1,r.events.push({type:"onBlur"}),t&&(n.state.opened&&(r.data.opened=!1),r.events.push({type:"onClose"})),i||a||!n.state.text||(r.data.text=""),n.applyState(r)}},n.handleFocus=function(e){n._skipFocusEvent||n.base.handleFocus(e)},n.onPopupOpened=function(){n._input&&n.state.focused&&n.focusElement(n._input)},n.onPopupClosed=function(){n.state.focused&&window.setTimeout((function(){n.state.focused&&n.focusElement(n._input)}),0)},n.setValidity=function(){n._input&&n._input.setCustomValidity&&n._input.setCustomValidity(n.validity.valid?"":n.props.validationMessage||"Please enter a valid value!")},(0,J.s)(ee),n}return Ae(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){var e=[];return this._valueItemsDuringOnChange?e.push.apply(e,this._valueItemsDuringOnChange):this.props.value?e.push.apply(e,this.props.value):this.state.value?e.push.apply(e,this.state.value):this.props.defaultValue&&e.push.apply(e,this.props.defaultValue),e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){var e=void 0!==this.props.validationMessage,t=!this.required||null!==this.value&&this.value.length>0&&void 0!==this.value;return{customError:e,valid:void 0!==this.props.valid?this.props.valid:t,valueMissing:null===this.value}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:t.defaultProps.required},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(e,t){var n=this.props.virtual,r=n?n.skip:0,o=e.virtual?e.virtual.total:0,i=void 0!==this.props.opened?this.props.opened:this.state.opened,a=void 0!==e.opened?e.opened:t.opened,l=!a&&i,s=a&&!i;if(!this.base.getPopupSettings().animate&&s&&this.onPopupClosed(),n&&n.total!==o)this.base.vs.calcScrollElementHeight(),this.base.vs.reset();else{var u=this.getFocusedState(),c=u.focusedItem,d=u.focusedIndex;l&&n?this.base.scrollToVirtualItem(n,d-r):l&&!n?this.base.scrollToItem(d):i&&a&&c&&this.scrollToFocused&&this.base.scrollToItem(d-r)}this.scrollToFocused=!1,this.setValidity()},t.prototype.componentDidMount=function(){this.base.didMount(),this.setValidity()},t.prototype.onNavigate=function(e,t){var n=this.props,r=n.allowCustom,o=n.data,i=void 0===o?[]:o,a=void 0!==this.props.opened?this.props.opened:this.state.opened,l=void 0!==this.props.filter?this.props.filter:this.state.text,u=this.getFocusedState(),c=u.focusedType,d=u.focusedIndex,p=r&&l,f=He(c),h=this.base,m=h.vs;if(a&&t===s.R.up&&f)void 0!==this.state.focusedIndex&&(e.data.focusedIndex=void 0);else{var v=h.navigation.navigate({keyCode:t,current:d,max:(m.enabled?m.total:i.length)-1,min:p?-1:0});void 0!==v&&(this.itemFocus(v,e),this.scrollToFocused=!0)}this.applyState(e)},t.prototype.render=function(){var e,t,n=this.props,r=n.style,i=n.className,a=n.label,s=n.dir,u=n.disabled,c=n.tags,p=n.textField,f=n.dataItemKey,h=n.virtual,m=n.size,v=n.rounded,g=n.fillMode,y=n.loading,b=n.filter,C=this.state,E=C.text,w=C.focused,k=C.focusedTag,S=this.base.vs,O=this.props.id||this._inputId;S.enabled=void 0!==h,void 0!==h&&(S.skip=h.skip,S.total=h.total,S.pageSize=h.pageSize);var x=[];void 0===c?this.value.forEach((function(e){x.push({text:D(e,p),data:[e]})})):x.push.apply(x,c),this.setItems(x,this._tags);var I=!this.validityStyles||this.validity.valid,T=Boolean(void 0!==b?b:E)||this.value.length>0,M=o.createElement("div",{ref:this.componentRef,className:(0,l.A)("k-multiselect k-input",i,(e={},e["k-input-".concat(Ve[m]||m)]=m,e["k-rounded-".concat(ze[v]||v)]=v,e["k-input-".concat(g)]=g,e["k-focus"]=w&&!u,e["k-invalid"]=!I,e["k-disabled"]=u,e["k-loading"]=y,e["k-required"]=this.required,e)),style:a?je(je({},r),{width:void 0}):r,dir:s,onFocus:this.handleFocus,onBlur:this.handleBlur,onClick:this.handleWrapperClick,onMouseDown:_},o.createElement("div",{className:(0,l.A)("k-input-values k-chip-list k-selection-multiple",(t={},t["k-chip-list-".concat(Ve[m]||m)]=m,t)),role:"listbox",id:"tagslist-"+this.base.guid},x.length>0&&o.createElement(Pe,{tagRender:this.props.tagRender,onTagDelete:this.onTagDelete,data:x,guid:this.base.guid,focused:k?x.find((function(e){return R(e,k,f)})):void 0,size:m}),this.renderSearchbar(O)),y&&o.createElement("span",{className:"k-icon k-i-loading k-input-loading-icon"}),T&&o.createElement(fe,{onClick:this.clearButtonClick}),this.renderListContainer());return a?o.createElement(d._,{label:a,editorId:O,editorValue:E||D(this.value[0],p),editorValid:I,editorDisabled:u,style:{width:r?r.width:void 0},children:M}):M},t.prototype.renderSearchbar=function(e){var t=this.state,n=t.activedescendant,r=t.focusedTag,i=this.props,a=i.disabled,l=i.placeholder,s=i.ariaDescribedBy,u=(void 0!==this.props.filter?this.props.filter:this.state.text)||"",c=void 0!==this.props.opened?this.props.opened:this.state.opened,d=this.getFocusedState().focusedIndex,p=0!==this.value.length||u?void 0:l,f=n===Ne.TagsList&&void 0!==r?"tag-".concat(this.base.guid,"-").concat(r.text.replace(/\s+/g,"-")):"option-".concat(this.base.guid,"-").concat(d);return o.createElement(ce,{id:e,size:Math.max((p||"").length,u.length,1),tabIndex:this.props.tabIndex,accessKey:this.props.accessKey,placeholder:p,value:u,onChange:this.onChangeHandler,onKeyDown:this.onInputKeyDown,ref:this.searchbarRef,disabled:a,expanded:c,owns:this.base.listBoxId,activedescendant:f,ariaDescribedBy:"tagslist-".concat(this.base.guid).concat(s?" "+s:""),ariaLabelledBy:this.props.ariaLabelledBy})},t.prototype.onTagsNavigate=function(e,t){var n=e.keyCode,r=this.state.focusedTag,o=this._tags,i=this.props.dataItemKey,a=r?o.findIndex((function(e){return R(e,r,i)})):-1,l=void 0,u=-1!==a;if(n===s.R.left)l=o[a=u?Math.max(0,a-1):o.length-1];else if(n===s.R.right)a===o.length-1?l=void 0:u&&(l=o[a=Math.min(o.length-1,a+1)]);else if(n===s.R.home)l=o[0];else if(n===s.R.end)l=o[o.length-1];else if(n===s.R.delete){if(u){var c=this.value;x(c,o[a].data,i),this.triggerOnChange(c,t)}}else if(n===s.R.backspace)if(c=this.value,u)x(c,o[a].data,i),this.triggerOnChange(c,t);else if(!u&&o.length){var d=o.pop();x(c,d.data,i),this.triggerOnChange(c,t)}l!==r&&(t.data.focusedTag=l,t.data.activedescendant=Ne.TagsList),this.applyState(t)},t.prototype.triggerOnChange=function(e,t){void 0===this.props.value&&(t.data.value=Le([],e,!0)),this._valueItemsDuringOnChange=[],this.setItems(e,this._valueItemsDuringOnChange),t.events.push({type:"onChange"})},t.prototype.selectFocusedItem=function(e){var t=this.props,n=t.data,r=void 0===n?[]:n,o=t.virtual,i=this.getFocusedState().focusedIndex;void 0!==r[i-(o?o.skip:0)]&&this.handleItemClick(i,e)},t.prototype.setItems=function(e,t){t.length=0,t.push.apply(t,e)},t.prototype.getFocusedState=function(){var e,t=this.state.focusedIndex,n=void 0!==this.props.filter?this.props.filter:this.state.text,r=this.props,o=r.allowCustom,i=r.data,a=void 0===i?[]:i,l=r.dataItemKey,s=r.virtual,u=r.textField,c=r.focusedItemIndex,d=void 0===c?S:c,p=s&&s.skip||0;if(void 0!==t)return{focusedIndex:t,focusedItem:a[t-p],focusedType:Fe.ListItem};var f=this.value;if(o&&n)return{focusedItem:null,focusedIndex:-1,focusedType:Fe.CustomItem};if(n)return{focusedItem:a[e=d(a,n,u)],focusedIndex:e+p,focusedType:Fe.ListItem};if(f.length){var h=f[f.length-1];return e=a.findIndex((function(e){return I(e,h,l)})),void 0!==a[e]?{focusedIndex:e+p,focusedItem:a[e],focusedType:Fe.ListItem}:{focusedType:Fe.None,focusedIndex:-1}}return 0===p?{focusedItem:a[0],focusedIndex:0,focusedType:Fe.ListItem}:{focusedType:Fe.None,focusedIndex:-1}},t.prototype.focusElement=function(e){var t=this;this._skipFocusEvent=!0,e.focus(),window.setTimeout((function(){return t._skipFocusEvent=!1}),0)},t.prototype.applyState=function(e){this.base.applyState(e),this._valueItemsDuringOnChange=null},t.displayName="MultiSelect",t.propTypes=je(je({},Q.propTypes),{autoClose:i.bool,value:i.arrayOf(i.any),defaultValue:i.arrayOf(i.any),dataItemKey:i.string,placeholder:i.string,tags:i.arrayOf(i.shape({text:i.string,data:i.arrayOf(i.any)})),tagRender:i.func,id:i.string,ariaLabelledBy:i.string,ariaDescribedBy:i.string}),t.defaultProps=je(je({},Q.defaultProps),{autoClose:!0,required:!1,size:"medium",rounded:"medium",fillMode:"solid"}),t}(o.Component),We=(0,c.Y)(),Ke=(0,c.u)(We,Ue);Ke.displayName="KendoReactMultiSelect";var qe=function(){return qe=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},qe.apply(this,arguments)},Ye=function(e){return o.createElement(q,qe({},e,{wrapperCssClass:"k-table-body k-table-scroller",listClassName:"k-table k-table-list",listStyle:qe({},e.listStyle)}))},Ge=n(9656),Ze=n(2665),Xe=n(9659),$e=function(){return $e=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},$e.apply(this,arguments)},Qe=(0,c.Y)(),Je=o.forwardRef((function(e,t){var n=(0,Ge.Y)(Qe,e),r=o.useRef(null),i=o.useRef(null),a=(0,Ze.n)(),s=n.columns,u=void 0===s?tt.columns:s,c=n.popupSettings,d=void 0===c?tt.popupSettings:c,p=n.className,f=(n.size,n.onOpen),h=n.onClose,m=n.onFocus,v=n.onBlur,g=n.onChange,y=n.onFilterChange,b=n.onPageChange,C=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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(n,["columns","popupSettings","className","size","onOpen","onClose","onFocus","onBlur","onChange","onFilterChange","onPageChange"]);o.useImperativeHandle(r,(function(){return{element:i.current&&i.current.element,focus:function(){i.current&&i.current.focus()},get value(){return i.current&&i.current.value},get name(){return i.current&&i.current.name},props:n}})),o.useImperativeHandle(t,(function(){return r.current}));var E=o.useMemo((function(){if(void 0===E&&void 0!==n.groupField&&n.data)return D(n.data[0],n.groupField)}),[n.data,n.groupField]),w=o.useState(E),k=w[0],S=w[1],O=o.useMemo((function(){return o.createElement(o.Fragment,null,n.header,o.createElement("div",{className:"k-table-header-wrap"},o.createElement("table",{className:"k-table",role:"presentation"},o.createElement("colgroup",null,u.map((function(e,t){return o.createElement("col",{key:e.uniqueKey?e.uniqueKey:t,style:{width:e.width?e.width:tt.width}})}))),o.createElement("thead",{className:"k-table-thead"},o.createElement("tr",{className:"k-table-row"},u.map((function(e,t){return o.createElement("th",{className:"k-table-th",key:e.uniqueKey?e.uniqueKey:t},e.header||" ")}))),k&&o.createElement("tr",{className:"k-table-group-row"},o.createElement("th",{className:"k-table-th",colSpan:u.length},k))))))}),[n.header,u,k]),x=o.useMemo((function(){return"calc(".concat(u.map((function(e){return t=e.width,n=tt.width,t?"number"==typeof t?t+"px":t:n;var t,n})).filter(Boolean).join(" + ")," + ").concat(a,"px + 4px)")}),[u,a]),I=n.virtual?n.virtual.skip:0,T=o.useCallback((function(e,t){var r,i,a,s=u.map((function(e,n){return o.createElement("span",{className:"k-table-td",style:{width:e.width?e.width:tt.width},key:e.uniqueKey?e.uniqueKey:n},e.field?(0,Xe.Y)(e.field)(t.dataItem):"")})),c=void 0,d=n.data||[],p=t.index-I;void 0!==n.groupField&&(r=(a=(0,Xe.Y)(n.groupField))(d[p]),i=a(d[p-1]),r&&i&&r!==i&&(c=r)),c&&s.push(o.createElement("div",{key:"group",className:"k-table-td k-table-group-td"},o.createElement("span",null,c)));var f=o.cloneElement(e,$e($e({},e.props),{className:(0,l.A)("k-table-row",{"k-table-alt-row":t.index%2!=0,"k-focus":t.focused,"k-selected":t.selected,"k-first":Boolean(c)})}),s);return n.itemRender?n.itemRender.call(void 0,f,t):f}),[u,n.groupField,n.itemRender,n.data,I]),_=o.useCallback((function(e,t){e&&e.call(void 0,$e($e({},t),{target:r.current}))}),[]),R=o.useCallback((function(e){return _(f,e)}),[f]),M=o.useCallback((function(e){return _(h,e)}),[h]),P=o.useCallback((function(e){return _(m,e)}),[m]),N=o.useCallback((function(e){return _(v,e)}),[v]),F=o.useCallback((function(e){return _(g,e)}),[g]),A=o.useCallback((function(e){return _(y,e)}),[y]),j=o.useCallback((function(e){return _(b,e)}),[b]),L=o.useCallback((function(e){S(e.group)}),[]);o.useEffect((function(){(0,Ze.p)()}));var V=o.useCallback((function(e){return o.createElement(Ye,$e({},e))}),[]);return o.createElement(Ce,$e({},C,{list:V,popupSettings:$e($e({width:x},d),{popupClass:"k-dropdowngrid-popup k-reset",className:d.className}),ref:i,header:O,itemRender:T,size:n.size,rounded:n.rounded,fillMode:n.fillMode,onOpen:R,onClose:M,onFocus:P,onBlur:N,onChange:F,onFilterChange:A,onPageChange:j,onGroupScroll:L,className:(0,l.A)("k-dropdowngrid",p)}))})),et=$e($e({},ye.propTypes),{columns:i.any.isRequired}),tt={columns:[],popupSettings:{},width:"200px",size:"medium",rounded:"medium",fillMode:"solid"};Je.displayName="KendoMultiColumnComboBox",Je.propTypes=et,Je.defaultProps=tt;var nt=n(3228),rt=n(1573),ot=n(8006),it=n(5407),at="_";function lt(e,t,n){if(pt(e))return t[Number(e)];var r=t[Number(function(e){return dt(e)?e:e.split(at)[0]}(e))],o=r&&r[n]||[];return o.length?lt(function(e){if(dt(e))return e;var t=e.indexOf(at);return e.substring(t+1)}(e),o,n):void 0}function st(e){return ut("0",e)}function ut(e,t){return e=e.toString(),t?t+at+e:e}function ct(e){var t=e.lastIndexOf(at);return t<0?"":e.substring(0,t)}function dt(e){return""===e||e.indexOf(at)<0}function pt(e){return""!==e&&e.indexOf(at)<0}function ft(e){var t=e.lastIndexOf(at);return t<0?e:e.substring(t+1)}const ht=function(){function e(){this.objects=[]}return e.prototype.init=function(e){for(var t,n=0;n<e.length;n++)n%5e4==0&&(t={},this.objects.push(t)),t[e[n]]=!0},e.prototype.hasId=function(e){return this.objects.some((function(t){return t[e]}))},e}();function mt(e,t){var n=(e||"").split("."),r=t;return n.forEach((function(e){r=r?r[e]:void 0})),r}function vt(e,t){var n=mt(t,e);return Boolean(n&&n.length)}function gt(e,t){return t.expanded(e)&&vt(e,t.getChildrenField())}function yt(e,t,n,r){var o=function(e,t,n,r){var o=[],i=new ht;return i.init(e),Ct(i,t,n,"",o,r),o}([e],t,n,r);return o.length?o[0]:void 0}function bt(e,t,n){for(var r=function(e){return e.split(at)}(e),o=t,i=0;i<r.length;i++){var a=o[Number(r[i])];if(n.disabled(a))return!1;o=a[n.getChildrenField()]}return!0}function Ct(e,t,n,r,o,i){for(var a=0;a<n.length;a++){var l=n[a],s=ut(a,r);e.hasId(mt(t,l))&&o.push(s),vt(l,i)&&Ct(e,t,mt(i,l),s,o,i)}}function Et(e,t,n,r,o){switch(r){case s.R.left:return pt(t)||o.expanded(e)&&bt(t,n,o)?t:ct(t);case s.R.right:return gt(e,o)?st(t):t;case s.R.up:return i=Number(ft(t)),a=ct(t),i?kt(ut(i-1,a),n,o):pt(t)?t:a;case s.R.down:return gt(e,o)?st(t):wt(t,n,o)||t;case s.R.home:return"0";case s.R.end:return function(){for(var e,t=(n.length-1).toString(),r=n[n.length-1];gt(r,o);)t=ut((e=r[o.getChildrenField()]).length-1,t),r=e[e.length-1];return t}();default:return t}var i,a}function wt(e,t,n){var r=ct(e),o=r?lt(r,t,n.getChildrenField()):void 0,i=o?o[n.getChildrenField()]:t,a=Number(ft(e));return a<i.length-1?ut(a+1,r):o?wt(r,t,n):void 0}function kt(e,t,n){var r=lt(e,t,n.getChildrenField());return gt(r,n)?kt(ut(r[n.getChildrenField()].length-1,e),t,n):e}var St=n(1779),Ot=n(6144);const Dt=function(e){if(!e||!e.ownerDocument.defaultView)return 0;var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop),r=parseFloat(t.marginBottom);return e.offsetHeight+n+r},xt=function(e){if(!e||!e.ownerDocument.defaultView)return 0;var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginLeft),r=parseFloat(t.marginRight);return e.offsetWidth+n+r},It={"animation-container":"k-animation-container","animation-container-relative":"k-animation-container-relative","animation-container-fixed":"k-animation-container-fixed","push-right-enter":"k-push-right-enter","push-right-appear":"k-push-right-appear","push-right-enter-active":"k-push-right-enter-active","push-right-appear-active":"k-push-right-appear-active","push-right-exit":"k-push-right-exit","push-right-exit-active":"k-push-right-exit-active","push-left-enter":"k-push-left-enter","push-left-appear":"k-push-left-appear","push-left-enter-active":"k-push-left-enter-active","push-left-appear-active":"k-push-left-appear-active","push-left-exit":"k-push-left-exit","push-left-exit-active":"k-push-left-exit-active","push-down-enter":"k-push-down-enter","push-down-appear":"k-push-down-appear","push-down-enter-active":"k-push-down-enter-active","push-down-appear-active":"k-push-down-appear-active","push-down-exit":"k-push-down-exit","push-down-exit-active":"k-push-down-exit-active","push-up-enter":"k-push-up-enter","push-up-appear":"k-push-up-appear","push-up-enter-active":"k-push-up-enter-active","push-up-appear-active":"k-push-up-appear-active","push-up-exit":"k-push-up-exit","push-up-exit-active":"k-push-up-exit-active",expand:"k-expand","expand-vertical-enter":"k-expand-vertical-enter","expand-vertical-appear":"k-expand-vertical-appear","expand-vertical-enter-active":"k-expand-vertical-enter-active","expand-vertical-appear-active":"k-expand-vertical-appear-active","expand-vertical-exit":"k-expand-vertical-exit","expand-vertical-exit-active":"k-expand-vertical-exit-active","expand-horizontal-enter":"k-expand-horizontal-enter","expand-horizontal-appear":"k-expand-horizontal-appear","expand-horizontal-enter-active":"k-expand-horizontal-enter-active","expand-horizontal-appear-active":"k-expand-horizontal-appear-active","expand-horizontal-exit":"k-expand-horizontal-exit","expand-horizontal-exit-active":"k-expand-horizontal-exit-active","child-animation-container":"k-child-animation-container","fade-enter":"k-fade-enter","fade-appear":"k-fade-appear","fade-enter-active":"k-fade-enter-active","fade-appear-active":"k-fade-appear-active","fade-exit":"k-fade-exit","fade-exit-active":"k-fade-exit-active","zoom-in-enter":"k-zoom-in-enter","zoom-in-appear":"k-zoom-in-appear","zoom-in-enter-active":"k-zoom-in-enter-active","zoom-in-appear-active":"k-zoom-in-appear-active","zoom-in-exit":"k-zoom-in-exit","zoom-in-exit-active":"k-zoom-in-exit-active","zoom-out-enter":"k-zoom-out-enter","zoom-out-appear":"k-zoom-out-appear","zoom-out-enter-active":"k-zoom-out-enter-active","zoom-out-appear-active":"k-zoom-out-appear-active","zoom-out-exit":"k-zoom-out-exit","zoom-out-exit-active":"k-zoom-out-exit-active","slide-in-appear":"k-slide-in-appear",centered:"k-centered","slide-in-appear-active":"k-slide-in-appear-active","slide-down-enter":"k-slide-down-enter","slide-down-appear":"k-slide-down-appear","slide-down-enter-active":"k-slide-down-enter-active","slide-down-appear-active":"k-slide-down-appear-active","slide-down-exit":"k-slide-down-exit","slide-down-exit-active":"k-slide-down-exit-active","slide-up-enter":"k-slide-up-enter","slide-up-appear":"k-slide-up-appear","slide-up-enter-active":"k-slide-up-enter-active","slide-up-appear-active":"k-slide-up-appear-active","slide-up-exit":"k-slide-up-exit","slide-up-exit-active":"k-slide-up-exit-active","slide-right-enter":"k-slide-right-enter","slide-right-appear":"k-slide-right-appear","slide-right-enter-active":"k-slide-right-enter-active","slide-right-appear-active":"k-slide-right-appear-active","slide-right-exit":"k-slide-right-exit","slide-right-exit-active":"k-slide-right-exit-active","slide-left-enter":"k-slide-left-enter","slide-left-appear":"k-slide-left-appear","slide-left-enter-active":"k-slide-left-enter-active","slide-left-appear-active":"k-slide-left-appear-active","slide-left-exit":"k-slide-left-exit","slide-left-exit-active":"k-slide-left-exit-active","reveal-vertical-enter":"k-reveal-vertical-enter","reveal-vertical-appear":"k-reveal-vertical-appear","reveal-vertical-enter-active":"k-reveal-vertical-enter-active","reveal-vertical-appear-active":"k-reveal-vertical-appear-active","reveal-vertical-exit":"k-reveal-vertical-exit","reveal-vertical-exit-active":"k-reveal-vertical-exit-active","reveal-horizontal-enter":"k-reveal-horizontal-enter","reveal-horizontal-appear":"k-reveal-horizontal-appear","reveal-horizontal-enter-active":"k-reveal-horizontal-enter-active","reveal-horizontal-appear-active":"k-reveal-horizontal-appear-active","reveal-horizontal-exit":"k-reveal-horizontal-exit","reveal-horizontal-exit-active":"k-reveal-horizontal-exit-active"};var Tt=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_t=function(){return _t=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},_t.apply(this,arguments)},Rt=It,Mt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.elementRef=o.createRef(),t}return Tt(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this.elementRef.current},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this,t=this.props,n=t.children,r=t.style,i=t.appear,a=t.enter,s=t.exit,u=t.transitionName,c=t.transitionEnterDuration,d=t.transitionExitDuration,p=t.className,f=t.onEnter,h=t.onEntering,m=t.onEntered,v=t.onExit,g=t.onExiting,y=t.onExited,b=t.onAfterExited,C=t.mountOnEnter,E=t.unmountOnExit,w=t.animationEnteringStyle,k=t.animationEnteredStyle,S=t.animationExitingStyle,O=t.animationExitedStyle,D=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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["children","style","appear","enter","exit","transitionName","transitionEnterDuration","transitionExitDuration","className","onEnter","onEntering","onEntered","onExit","onExiting","onExited","onAfterExited","mountOnEnter","unmountOnExit","animationEnteringStyle","animationEnteredStyle","animationExitingStyle","animationExitedStyle"]),x=(0,l.A)(p,Rt["child-animation-container"]),I=_t({transitionDelay:"0ms"},r),T={entering:_t({transitionDuration:"".concat(c,"ms")},w),entered:_t({},k),exiting:_t({transitionDuration:"".concat(d,"ms")},S),exited:_t({},O)},_={in:this.props.in,appear:i,enter:a,exit:s,mountOnEnter:C,unmountOnExit:E,timeout:{enter:c,exit:d},onEnter:function(){f&&f.call(void 0,{animatedElement:e.element,target:e})},onEntering:function(){h&&h.call(void 0,{animatedElement:e.element,target:e})},onEntered:function(){m&&m.call(void 0,{animatedElement:e.element,target:e})},onExit:function(){v&&v.call(void 0,{animatedElement:e.element,target:e})},onExiting:function(){g&&g.call(void 0,{animatedElement:e.element,target:e})},onExited:function(){b&&b.call(void 0,{animatedElement:e.element,target:e}),y&&y.call(void 0,{animatedElement:e.element,target:e})},classNames:{appear:Rt["".concat(u,"-appear")]||"".concat(u,"-appear"),appearActive:Rt["".concat(u,"-appear-active")]||"".concat(u,"-appear-active"),enter:Rt["".concat(u,"-enter")]||"".concat(u,"-enter"),enterActive:Rt["".concat(u,"-enter-active")]||"".concat(u,"-enter-active"),exit:Rt["".concat(u,"-exit")]||"".concat(u,"-exit"),exitActive:Rt["".concat(u,"-exit-active")]||"".concat(u,"-exit-active")}};return o.createElement(Ot.CSSTransition,_t({},_,D,{nodeRef:this.elementRef}),(function(t){return o.createElement("div",{style:_t(_t({},I),T[t]),className:x,ref:e.elementRef},n)}))},t.propTypes={in:i.bool,children:i.oneOfType([i.arrayOf(i.node),i.node]),transitionName:i.string.isRequired,className:i.string,appear:i.bool,enter:i.bool,exit:i.bool,transitionEnterDuration:i.number.isRequired,transitionExitDuration:i.number.isRequired,mountOnEnter:i.bool,unmountOnExit:i.bool,animationEnteringStyle:i.object,animationEnteredStyle:i.object,animationExitingStyle:i.object,animationExitedStyle:i.object},t.defaultProps={mountOnEnter:!0,unmountOnExit:!1,onEnter:nt.Z,onEntering:nt.Z,onEntered:nt.Z,onExit:nt.Z,onExiting:nt.Z,onExited:nt.Z,onAfterExited:nt.Z,animationEnteringStyle:{},animationEnteredStyle:{},animationExitingStyle:{},animationExitedStyle:{}},t}(o.Component),Pt={name:"@progress/kendo-react-animation",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1655890683,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"},Nt=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ft=function(){return Ft=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},Ft.apply(this,arguments)},At=It,jt=function(e){function t(t){var n=e.call(this,t)||this;return(0,J.s)(Pt),n}return Nt(t,e),t.prototype.render=function(){var e=this.props,t=e.id,n=e.style,r=e.children,i=e.component,a=e.className,s=e.childFactory,u=(e.stackChildren,e.componentChildStyle),c=e.componentChildClassName,d=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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["id","style","children","component","className","childFactory","stackChildren","componentChildStyle","componentChildClassName"]),p={id:t,style:n,component:i,childFactory:s,className:(0,l.A)(At["animation-container"],At["animation-container-relative"],a)},f=o.Children.map(r||null,(function(e){return o.createElement(Mt,Ft({},d,{style:u,className:c}),e)}));return o.createElement(Ot.TransitionGroup,Ft({},p),f)},t.propTypes={children:i.oneOfType([i.arrayOf(i.node),i.node]),childFactory:i.any,className:i.string,component:i.string,id:i.string,style:i.any,transitionName:i.string.isRequired,appear:i.bool.isRequired,enter:i.bool.isRequired,exit:i.bool.isRequired,transitionEnterDuration:i.number.isRequired,transitionExitDuration:i.number.isRequired},t.defaultProps={component:"div"},t}(o.Component),Lt=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Vt=function(){return Vt=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},Vt.apply(this,arguments)},zt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={maxHeight:void 0,maxWidth:void 0},t.componentWillEnter=function(e){var n=t.props,r=n.onEnter,o=n.onBeforeEnter;o&&o.call(void 0,e),t.updateContainerDimensions(e.animatedElement,(function(){r&&r.call(void 0,e)}))},t.componentIsEntering=function(e){var n=t.props.onEntering;t.updateContainerDimensions(e.animatedElement,(function(){n&&n.call(void 0,e)}))},t.componentWillExit=function(e){var n=t.props.onExit;t.updateContainerDimensions(e.animatedElement,(function(){n&&n.call(void 0,e)}))},t.updateContainerDimensions=function(e,n){void 0===n&&(n=nt.Z);var r=e.firstChild;if(r){var o=Dt(r),i=xt(r);t.setState({maxHeight:o,maxWidth:i},n)}},t}return Lt(t,e),t.prototype.render=function(){var e,t=this.props,n=t.direction,r=t.children,i=t.childFactory,a=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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["direction","children","childFactory"]),l=this.state,s=l.maxHeight,u=l.maxWidth,c={maxHeight:(e="vertical"===n?{maxHeight:s?"".concat(s,"px"):""}:{maxWidth:u?"".concat(u,"px"):""}).maxHeight,maxWidth:e.maxWidth};return o.createElement(jt,Vt({},a,{childFactory:function(t){var n=i?i(t):t;return n.props.in?n:o.cloneElement(n,Vt(Vt({},n.props),{style:Vt(Vt({},n.props.style),{maxHeight:e.maxHeight,maxWidth:e.maxWidth})}))},onEnter:this.componentWillEnter,onEntering:this.componentIsEntering,onExit:this.componentWillExit,animationEnteringStyle:c,transitionName:"reveal-".concat(n)}),r)},t.propTypes={children:i.oneOfType([i.arrayOf(i.node),i.node]),childFactory:i.any,className:i.string,direction:i.oneOf(["horizontal","vertical"]),component:i.string,id:i.string,style:i.any},t.defaultProps={appear:!1,enter:!0,exit:!0,transitionEnterDuration:300,transitionExitDuration:300,direction:"vertical"},t}(o.Component),Bt="items",Ht=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ut=function(){return Ut=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},Ut.apply(this,arguments)},Wt=a.G.sizeMap,Kt=o.createContext((function(e){return e})),qt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.itemGuid=(0,Z.M)(),t.onCheckChange=function(e){t.props.onCheckChange(e,t.item,t.itemId)},t.onExpandChange=function(e){t.props.onExpandChange(e,t.item,t.itemId)},t.onItemClick=function(e){t.props.onItemClick(e,t.item,t.itemId)},t.onPress=function(e){t.props.onPress(e.event,t.item,t.itemId)},t.onDrag=function(e){t.props.onDrag(e.event,t.item,t.itemId)},t.onRelease=function(e){t.props.onRelease(e.event,t.item,t.itemId)},t.assignDraggableMeta=function(e){e&&(e._kendoItemId=t.props.itemId,e._kendoTreeViewGuid=t.props.treeGuid)},t}return Ht(t,e),t.prototype.render=function(){var e=this,t=this.renderSubitemsIfApplicable(),n=this.renderItemInPart();return o.createElement("li",{className:this.getRootClassName(),tabIndex:this.tabIndex,role:"treeitem","aria-expanded":this.ariaExpanded,"aria-selected":this.ariaSelected,"aria-checked":this.ariaChecked,"aria-disabled":!!this.fieldsSvc.disabled(this.item)||void 0,ref:function(t){return e.itemElement=t}},o.createElement("div",{className:"k-treeview-".concat(this.props.position),ref:this.assignDraggableMeta},this.renderExpandIcon(),this.renderCheckbox(),this.props.draggable?o.createElement(St._,{onPress:this.onPress,onDrag:this.onDrag,onRelease:this.onRelease},n):n),this.props.animate?o.createElement(zt,{transitionEnterDuration:200,transitionExitDuration:200,style:{display:"block"},children:t}):t)},t.prototype.componentDidMount=function(){var e=this.props.focusedItemId,t=this.itemId;e&&e===t&&this.props.onFocusDomElNeeded(this.itemElement),this.checkboxElement&&(this.checkboxElement.indeterminate=this.fieldsSvc.checkIndeterminate(this.item))},t.prototype.componentDidUpdate=function(e){var t=this.props.focusedItemId;if(t&&t!==e.focusedItemId&&t===this.itemId&&this.props.onFocusDomElNeeded(this.itemElement),this.checkboxElement){var n=this.fieldsSvc.checkIndeterminate(this.item);n!==e.fieldsService.checkIndeterminate(e.item)&&(this.checkboxElement.indeterminate=n)}},t.prototype.renderCheckbox=function(){var e,t=this;if(this.props.checkboxes){var n=this.props.size;return o.createElement("div",{className:"k-checkbox-wrap"},o.createElement("input",{type:"checkbox",className:(0,l.A)("k-checkbox k-rounded-md",(e={},e["k-checkbox-".concat(Wt[n]||n)]=n,e)),checked:Boolean(this.fieldsSvc.checked(this.item)),id:this.itemGuid,tabIndex:-1,onChange:this.onCheckChange,ref:function(e){return t.checkboxElement=e}}),o.createElement("label",{className:"k-checkbox-label",htmlFor:this.itemGuid}))}},t.prototype.renderExpandIcon=function(){return this.props.expandIcons&&(this.fieldsSvc.hasChildren(this.item)||vt(this.item,this.fieldsSvc.getChildrenField()))&&o.createElement("span",{className:"k-treeview-toggle"},o.createElement("span",{className:this.getIconClassName(),onClick:this.onExpandChange}))},t.prototype.renderSubitemsIfApplicable=function(){var e=this,t=this.fieldsSvc.children(this.item);return gt(this.item,this.fieldsSvc)?o.createElement("ul",{className:"k-treeview-group",role:"group"},t.map((function(n,r){return o.createElement(Yt,{item:n,position:0===r?"top":r===t.length-1?"bot":"mid",itemId:ut(r,e.itemId),treeGuid:e.props.treeGuid,animate:e.props.animate,focusedItemId:e.props.focusedItemId,tabbableItemId:e.props.tabbableItemId,fieldsService:e.props.fieldsService,itemUI:e.props.itemUI,checkboxes:e.props.checkboxes,ariaMultiSelectable:e.props.ariaMultiSelectable,onItemClick:e.props.onItemClick,onFocusDomElNeeded:e.props.onFocusDomElNeeded,draggable:e.props.draggable,onPress:e.props.onPress,onDrag:e.props.onDrag,onRelease:e.props.onRelease,expandIcons:e.props.expandIcons,onExpandChange:e.props.onExpandChange,onCheckChange:e.props.onCheckChange,key:r,size:e.props.size})}))):void 0},t.prototype.renderItemInPart=function(){return o.createElement("span",{className:this.getContentClassName(),style:{touchAction:"none"},onClick:this.onItemClick},o.createElement("span",{className:"k-treeview-leaf-text"},this.props.itemUI?o.createElement(this.props.itemUI,{item:this.item,itemHierarchicalIndex:this.itemId}):this.fieldsSvc.text(this.item)))},Object.defineProperty(t.prototype,"fieldsSvc",{get:function(){return this.props.fieldsService},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemId",{get:function(){return this.props.itemId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tabIndex",{get:function(){return(this.props.focusedItemId||this.props.tabbableItemId)===this.itemId?0:-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaExpanded",{get:function(){return this.fieldsSvc.hasChildren(this.item)||vt(this.item,this.fieldsSvc.getChildrenField())?Boolean(this.fieldsSvc.expanded(this.item)):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaChecked",{get:function(){return this.props.checkboxes?this.fieldsSvc.checked(this.item)?"true":this.fieldsSvc.checkIndeterminate(this.item)?"mixed":"false":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaSelected",{get:function(){return!!this.fieldsSvc.selected(this.item)||(this.props.ariaMultiSelectable?!!this.fieldsSvc.disabled(this.item)&&void 0:void 0)},enumerable:!1,configurable:!0}),t.prototype.getIconClassName=function(){var e=this.fieldsSvc.expanded(this.item);return(0,l.A)("k-icon",{"k-i-expand":!e,"k-i-collapse":e,"k-i-loading":e&&!vt(this.item,this.fieldsSvc.getChildrenField())})},t.prototype.getRootClassName=function(){return(0,l.A)("k-treeview-item",{"k-disabled":this.fieldsSvc.disabled(this.item)})},t.prototype.getContentClassName=function(){return(0,l.A)("k-treeview-leaf",{"k-focus":this.props.focusedItemId===this.itemId,"k-selected":this.fieldsSvc.selected(this.item)})},t.defaultProps={position:"top"},t}(o.Component),Yt=o.forwardRef((function(e,t){var n=o.useContext(Kt).call(void 0,e);return o.createElement(qt,Ut({ref:t},n))}));Yt.displayName="TreeViewItem";const Gt=function(){function e(e){this.expandField=e.expandField,this.selectField=e.selectField,this.hasChildrenField=e.hasChildrenField,this.childrenField=e.childrenField,this.textField=e.textField,this.disableField=e.disableField,this.checkField=e.checkField,this.checkIndeterminateField=e.checkIndeterminateField,this.focusIdField=e.focusIdField}return e.prototype.expanded=function(e){return mt(this.expandField,e)},e.prototype.selected=function(e){return mt(this.selectField,e)},e.prototype.text=function(e){return mt(this.textField,e)},e.prototype.disabled=function(e){return mt(this.disableField,e)},e.prototype.hasChildren=function(e){return mt(this.hasChildrenField,e)},e.prototype.children=function(e){return mt(this.childrenField,e)||[]},e.prototype.checked=function(e){return mt(this.checkField,e)},e.prototype.checkIndeterminate=function(e){return mt(this.checkIndeterminateField,e)},e.prototype.focusId=function(e){return this.focusIdField&&mt(this.focusIdField,e)},e.prototype.getChildrenField=function(){return this.childrenField},e}();var Zt={name:"@progress/kendo-react-treeview",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1655890981,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"},Xt=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$t=a.G.sizeMap,Qt=function(e){function t(t){var n=e.call(this,t)||this;return n.state={focusedItemId:void 0,focusedItemPublicId:void 0,tabbableItemId:"0"},n.fieldsSvc=null,n.allowExplicitFocus=!1,n.treeGuid=(0,Z.M)(),n._element=null,n.onFocusDomElNeeded=function(e){n.allowExplicitFocus&&n.focusDomItem(e)},n.onCheckChange=function(e,t,r){n.setFocus(r),n.dispatchCheckChange(e,t,r)},n.onExpandChange=function(e,t,r){n.setFocus(r),n.dispatchExpandChange(e,t,r)},n.onPress=function(e,t,r){n.props.onItemDragStart&&n.props.onItemDragStart.call(void 0,{target:n,item:t,itemHierarchicalIndex:r})},n.onDrag=function(e,t,r){var o=e.pageX,i=e.pageY,a=e.clientX,l=e.clientY;n.props.onItemDragOver&&n.props.onItemDragOver.call(void 0,{target:n,item:t,itemHierarchicalIndex:r,pageX:o,pageY:i,clientX:a,clientY:l})},n.onRelease=function(e,t,r){var o=e.pageX,i=e.pageY,a=e.clientX,l=e.clientY;n.props.onItemDragEnd&&n.props.onItemDragEnd.call(void 0,{target:n,item:t,itemHierarchicalIndex:r,pageX:o,pageY:i,clientX:a,clientY:l})},n.onItemClick=function(e,t,r){n.setFocus(r),n.dispatchItemClick(e,t,r)},n.onFocus=function(){clearTimeout(n.blurRequest),void 0===n.state.focusedItemId&&n.data.length&&n.setFocus(n.state.tabbableItemId)},n.onBlur=function(){clearTimeout(n.blurRequest),n.blurRequest=window.setTimeout((function(){return n.setFocus(void 0)}),0)},n.onKeyDown=function(e){var t=n.getFocusedItem();if(t&&n.fieldsSvc){var r=Et(t,n.state.focusedItemId,n.data,e.keyCode,n.fieldsSvc);r!==n.state.focusedItemId&&(e.preventDefault(),n.allowExplicitFocus=!0,n.setFocus(r)),n.dispatchEventsOnKeyDown(e,t)}},(0,J.s)(Zt),n}return Xt(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e,t=this;this.fieldsSvc=new Gt(this.props);var n=this.props,r=n.size,i=n.className;return o.createElement("div",{className:(0,l.A)("k-treeview",(e={},e["k-treeview-".concat($t[r]||r)]=r,e),i),onKeyDown:this.onKeyDown,onFocus:this.onFocus,onBlur:this.onBlur,role:"tree","aria-multiselectable":!!this.ariaMultiSelectable||void 0,"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],ref:function(e){return t._element=e},tabIndex:this.props.tabIndex},o.createElement("ul",{className:"k-treeview-lines k-treeview-group",role:"group"},this.data.map((function(e,n){return o.createElement(Yt,{item:e,position:0===n?"top":n===t.data.length-1?"bot":"mid",itemId:n.toString(),treeGuid:t.treeGuid,animate:t.props.animate,focusedItemId:t.state.focusedItemId,tabbableItemId:t.state.tabbableItemId,fieldsService:t.fieldsSvc,itemUI:t.props.item,checkboxes:t.props.checkboxes,ariaMultiSelectable:t.ariaMultiSelectable,onItemClick:t.onItemClick,onFocusDomElNeeded:t.onFocusDomElNeeded,draggable:t.props.draggable,onPress:t.onPress,onDrag:t.onDrag,onRelease:t.onRelease,expandIcons:t.props.expandIcons,onExpandChange:t.onExpandChange,onCheckChange:t.onCheckChange,key:n,size:r})}))))},t.prototype.componentDidUpdate=function(){this.allowExplicitFocus=!1,this.refocusDueToFocusIdField()},t.prototype.dispatchEventsOnKeyDown=function(e,t){var n=this;if(null!==this.fieldsSvc){var r=function(){return n.fieldsSvc&&bt(n.state.focusedItemId,n.data,n.fieldsSvc)};e.keyCode===s.R.left&&this.fieldsSvc.expanded(t)&&r()||e.keyCode===s.R.right&&!this.fieldsSvc.expanded(t)&&(this.fieldsSvc.hasChildren(t)||vt(t,this.props.childrenField))&&r()?this.dispatchExpandChange(e,t,this.state.focusedItemId):e.keyCode===s.R.enter&&r()?this.dispatchItemClick(e,t,this.state.focusedItemId):e.keyCode===s.R.space&&r()&&(e.preventDefault(),this.dispatchCheckChange(e,t,this.state.focusedItemId))}},t.prototype.setFocus=function(e){if(e&&this.fieldsSvc)if(this.fieldsSvc.focusIdField){var t=this.getItemById(e);this.setState({focusedItemId:e,focusedItemPublicId:this.fieldsSvc.focusId(t)})}else this.setState({focusedItemId:e});else this.setState((function(e){return{focusedItemId:void 0,focusedItemPublicId:void 0,tabbableItemId:e.focusedItemId}}))},t.prototype.getFocusedItem=function(){return this.state.focusedItemId?this.getItemById(this.state.focusedItemId):void 0},t.prototype.getItemById=function(e){return lt(e,this.data,this.props.childrenField||Bt)},t.prototype.dispatchCheckChange=function(e,t,n){(0,it.N)(this.props.onCheckChange,e,this,{item:t,itemHierarchicalIndex:n})},t.prototype.dispatchExpandChange=function(e,t,n){(0,it.N)(this.props.onExpandChange,e,this,{item:t,itemHierarchicalIndex:n})},t.prototype.dispatchItemClick=function(e,t,n){(0,it.N)(this.props.onItemClick,e,this,{item:t,itemHierarchicalIndex:n})},t.prototype.refocusDueToFocusIdField=function(){if(this.fieldsSvc&&this.fieldsSvc.focusIdField){var e=this.state.focusedItemPublicId;if(e){var t=this.props.getFocusHierarchicalIndex?this.props.getFocusHierarchicalIndex(e):yt(e,this.fieldsSvc.focusIdField,this.data,this.props.childrenField);t!==this.state.focusedItemId&&(this.allowExplicitFocus=!0,this.setState({focusedItemId:t}))}}},Object.defineProperty(t.prototype,"ariaMultiSelectable",{get:function(){return!0===this.props["aria-multiselectable"]||"true"===this.props["aria-multiselectable"]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"data",{get:function(){return this.props.data||[]},enumerable:!1,configurable:!0}),t.prototype.focusDomItem=function(e){e.focus()},Object.defineProperty(t.prototype,"guid",{get:function(){return this.treeGuid},enumerable:!1,configurable:!0}),t.propTypes={data:i.arrayOf(i.any),animate:i.bool,tabIndex:i.number,focusIdField:i.string,getHierarchicalIndexById:i.func,onExpandChange:i.func,onItemClick:i.func,expandField:i.string,selectField:i.string,childrenField:i.string,hasChildrenField:i.string,textField:i.string,disableField:i.string,item:i.any,"aria-multiselectable":function(e,t,n){return void 0!==e[t]&&!0!==e[t]&&!1!==e[t]&&"true"!==e[t]&&"false"!==e[t]?new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Validation failed."):null},"aria-label":i.string,"aria-labelledby":i.string,size:i.oneOf([null,"small","medium","large"])},t.defaultProps={animate:!0,expandField:"expanded",selectField:"selected",hasChildrenField:"hasChildren",childrenField:Bt,textField:"text",disableField:"disabled",checkField:"checked",checkIndeterminateField:"checkIndeterminate",size:"medium"},t}(o.Component);function Jt(e,t,n){var r=o.useState(t),i=r[0],a=r[1];return o.useEffect((function(){void 0!==i&&e.current&&a(e.current.offsetWidth)}),n),i}var en=function(e){return o.createElement("div",{className:"k-nodata"},o.createElement("div",null,e.children))},tn=function(){return tn=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},tn.apply(this,arguments)},nn=a.G.sizeMap,rn=a.G.roundedMap,on=function(e){return o.createElement("span",{className:"k-input-value-text"},e.children)},an=function(e){return e.split("_").map((function(e){return parseInt(e,10)}))},ln={selectField:"selected",subItemsField:"items",popupSettings:{animate:!0,width:"200px",height:"200px"},required:!1,validityStyles:!0,size:"medium",rounded:"medium",fillMode:"solid"},sn=(0,c.Y)(),un=o.forwardRef((function(e,t){var n,r;(0,J.s)(ee);var i=(0,Ge.Y)(sn,e),a=o.useMemo((function(){return(0,Z.M)()}),[]),c=i.id||a,f=i.data,h=void 0===f?[]:f,m=i.dataItemKey,v=i.popupSettings,g=void 0===v?{}:v,y=i.style,b=void 0===y?{}:y,C=i.opened,k=i.disabled,S=i.onOpen,O=void 0===S?nt.Z:S,x=i.onClose,T=void 0===x?nt.Z:x,_=i.placeholder,R=i.label,M=i.name,P=i.selectField,N=void 0===P?ln.selectField:P,F=i.subItemsField,A=void 0===F?ln.subItemsField:F,j=i.validationMessage,L=i.valid,V=i.required,W=i.validityStyles,K=(0,u.p)(i.tabIndex,k),q=o.useRef(null),Y=o.useRef(null),G=o.useRef(null),X=o.useRef(null),$=o.useRef(null),Q=o.useRef(!1),te=o.useState(void 0),ne=te[0],re=te[1],oe=void 0!==i.value,ie=oe?i.value:void 0!==ne?ne:i.defaultValue,ae=w(ie),le=ae?D(ie,i.textField):"",se=function(e,t){var n=e.valid;return{customError:void 0!==e.validationMessage,valid:Boolean(void 0!==n?n:!e.required||t),valueMissing:!t}}({validationMessage:j,valid:L,required:V},ae),ue=o.useCallback((function(){return Y.current&&Y.current.focus()}),[]);o.useImperativeHandle(q,(function(){return{props:i,element:Y.current,focus:ue}})),o.useImperativeHandle(t,(function(){return q.current}));var ce=(0,rt.V)(Y,i.dir),de=void 0!==g.width?g.width:void 0!==b.width?b.width:ln.popupSettings.width,pe=Jt(Y,de),fe=tn({width:pe},void 0!==ce?{direction:ce}:{}),he=o.useState(!1),me=he[0],ve=he[1],ge=void 0!==C?C:me,ye=o.useState(!1),be=ye[0],Ce=ye[1],Ee=o.useState(""),we=Ee[0],ke=Ee[1],Se=o.useCallback((function(){X.current&&X.current.setCustomValidity&&X.current.setCustomValidity(se.valid?"":void 0===j?"Please select a value from the list!":j)}),[j,se]);o.useEffect(Se);var Oe=o.useCallback((function(e){if(!ge){if(O){var t=tn({},e);O.call(void 0,t)}void 0===C&&ve(!0)}}),[ge,C,O]),De=o.useCallback((function(e){if(ge){if(T){var t=tn({},e);T.call(void 0,t)}void 0===C&&ve(!1)}}),[ge,C,T]),xe=o.useCallback((function(e){if(!e.isDefaultPrevented()&&q.current){Ce(!0);var t={syntheticEvent:e,nativeEvent:e.nativeEvent,target:q.current};(ge?De:Oe)(t)}}),[ge,C,O,T]),Ie=o.useCallback((function(e){Q.current=!0,e(),window.setTimeout((function(){return Q.current=!1}),0)}),[]),Te=o.useCallback((function(e){var t=e.keyCode,n=e.altKey,r=$.current&&$.current.element;if(q.current&&(!e.isDefaultPrevented()||G.current!==e.target)){var o={syntheticEvent:e,nativeEvent:e.nativeEvent,target:q.current};if(ge)if(t===s.R.esc||n&&t===s.R.up)e.preventDefault(),De(o);else if(r&&r.querySelector(".k-focus")&&(t===s.R.up||t===s.R.down||t===s.R.left||t===s.R.right||t===s.R.home||t===s.R.end)){if(t===s.R.up&&G.current){var i=Array.from(r.querySelectorAll(".k-treeview-item")),a=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([],i,!0).reverse().find((function(e){return Boolean(e&&e.querySelector(".k-focus"))}));if(a&&0===i.indexOf(a))return Ie((function(){Re(G.current)}))}Ie(nt.Z)}else t===s.R.down&&Ie((function(){Re(G.current||r)}));else n&&t===s.R.down&&(e.preventDefault(),Oe(o))}}),[ge,C,O,T]),_e=o.useCallback((function(e){var t=e.keyCode;e.altKey||t!==s.R.up&&t!==s.R.down||(e.preventDefault(),Ie(t===s.R.up?function(){Re(Y.current)}:function(){Re($.current&&$.current.element)}))}),[]),Re=o.useCallback((function(e){e&&Ie((function(){return e.focus()}))}),[]),Me=o.useCallback((function(){be||!ge||C?i.filterable?Re(G.current):Re($.current&&$.current.element):De({target:q.current})}),[T,i.filterable,be,C,ge]),Pe=o.useCallback((function(){be&&Re(Y.current)}),[be]),Ne=o.useCallback((function(e){if(!be&&!Q.current&&(Ce(!0),i.onFocus&&q.current)){var t={syntheticEvent:e,nativeEvent:e.nativeEvent,target:q.current};i.onFocus.call(void 0,t)}}),[be,i.onFocus]),Fe=o.useCallback((function(e){if(be&&!Q.current&&q.current){Ce(!1);var t={syntheticEvent:e,nativeEvent:e.nativeEvent,target:q.current};if(i.onBlur){var n=tn({},t);i.onBlur.call(void 0,n)}De(t)}}),[be,i.onBlur,ge,C,T]),Ae=o.useCallback((function(){be&&Ie(nt.Z)}),[be]),je=o.useCallback((function(e,t,n){if(i.onChange){var r=tn({value:t,level:n?an(n):[]},e);i.onChange.call(void 0,r)}oe||re(t)}),[i.onChange,oe]),Le=o.useCallback((function(e){if(!I(e.item,ie,m)&&q.current){var t=e.item,n=e.itemHierarchicalIndex,r=e.nativeEvent,o={syntheticEvent:e.syntheticEvent,nativeEvent:r,target:q.current};je(o,t,n),De(o)}}),[oe,ie,i.onChange,m,ge,C,T]),Ve=o.useCallback((function(e){if(q.current){var t={syntheticEvent:e,nativeEvent:e.nativeEvent,target:q.current};je(t,null),De(t),e.preventDefault()}}),[oe,i.onChange,ge,C,T]),ze=o.useCallback((function(e){if(e.syntheticEvent.stopPropagation(),i.onExpandChange&&q.current){var t=e.item,n=e.itemHierarchicalIndex,r=e.nativeEvent,o=e.syntheticEvent,a={level:an(n),item:t,nativeEvent:r,syntheticEvent:o,target:q.current};i.onExpandChange.call(void 0,a)}}),[i.onExpandChange]),Be=o.useCallback((function(e){if(i.onFilterChange&&q.current){var t={filter:{field:i.textField,operator:"contains",value:e.target.value},syntheticEvent:e,nativeEvent:e.nativeEvent,target:q.current};i.onFilterChange.call(void 0,t),void 0===i.filter&&ke(e.target.value)}}),[i.onFilterChange,i.filter,i.textField]),He=o.useMemo((function(){return oe||!ae?h:(0,ot.Gy)(h,A,(function(e){var t;return(0,ot.u5)(e,A,((t={})[N]=I(e,ie,m),t))}))}),[h,ie,oe,ae,N,A]),Ue=i.listNoData||en,We=i.valueHolder||on,Ke=(0,z.useLocalization)(),qe=!W||se.valid,Ye=i.size,Ze=i.rounded,Xe=i.fillMode,$e=o.createElement("span",{className:(0,l.A)("k-dropdowntree k-picker",i.className,(n={},n["k-picker-".concat(nn[Ye]||Ye)]=Ye,n["k-rounded-".concat(rn[Ze]||Ze)]=Ze,n["k-picker-".concat(Xe)]=Xe,n["k-focus"]=be,n["k-invalid"]=!qe,n["k-loading"]=i.loading,n["k-required"]=V,n["k-disabled"]=i.disabled,n)),tabIndex:K,accessKey:i.accessKey,id:c,style:R?tn(tn({},b),{width:void 0}):b,dir:ce,ref:Y,onKeyDown:k?void 0:Te,onMouseDown:Ae,onClick:k?void 0:xe,onFocus:Ne,onBlur:Fe,role:"listbox","aria-haspopup":"true","aria-expanded":ge,"aria-disabled":k,"aria-label":R,"aria-labelledby":i.ariaLabelledBy,"aria-describedby":i.ariaDescribedBy},o.createElement("span",{className:"k-input-inner"},o.createElement(We,{item:ie},le||_)),i.loading&&o.createElement("span",{className:"k-icon k-i-loading k-input-loading-icon"}),ae&&!k&&o.createElement("span",{onClick:Ve,className:"k-clear-value",title:Ke.toLanguageString(H,U[H]),role:"button",tabIndex:-1,onMouseDown:function(e){return e.preventDefault()}},o.createElement("span",{className:"k-icon k-i-x"})),o.createElement("button",{tabIndex:-1,type:"button","aria-label":"select",className:(0,l.A)("k-input-button k-button k-icon-button",(r={},r["k-button-".concat(nn[Ye]||Ye)]=Ye,r["k-button-".concat(Xe)]=Xe,r["k-button-".concat(Xe,"-base")]=Xe,r))},o.createElement("span",{className:"k-button-icon k-icon k-i-arrow-s"})),o.createElement("select",{name:M,ref:X,tabIndex:-1,"aria-hidden":!0,title:R,style:{opacity:0,width:1,border:0,zIndex:-1,position:"absolute",left:"50%"}},o.createElement("option",{value:i.valueMap?i.valueMap.call(void 0,ie):ie})),o.createElement(p.G,{className:(0,l.A)(g.className,{"k-rtl":"rtl"===ce}),popupClass:g.popupClass,style:fe,animate:g.animate,anchor:Y.current,show:ge,onOpen:Me,onClose:Pe,appendTo:g.appendTo},i.filterable&&o.createElement(E,{value:void 0===i.filter?we:i.filter,inputRef:G,onChange:Be,onKeyDown:_e,size:Ye,rounded:Ze,fillMode:Xe}),h.length>0?o.createElement(Qt,{ref:$,tabIndex:K,data:He,focusIdField:m,textField:i.textField,selectField:N,expandField:i.expandField,childrenField:A,expandIcons:!0,onItemClick:Le,onExpandChange:ze,size:Ye,item:i.item}):o.createElement(Ue,null,Ke.toLanguageString(B,U[B]))));return R?o.createElement(d._,{label:R,editorValue:le,editorPlaceholder:_,editorValid:qe,editorDisabled:k,editorId:c,style:{width:b?b.width:void 0},children:$e,dir:ce}):$e})),cn={opened:i.bool,disabled:i.bool,dir:i.string,tabIndex:i.number,accessKey:i.string,data:i.array,value:i.any,valueMap:i.func,placeholder:i.string,dataItemKey:i.string.isRequired,textField:i.string.isRequired,selectField:i.string,expandField:i.string,subItemsField:i.string,className:i.string,style:i.object,label:i.string,validationMessage:i.string,validityStyles:i.bool,valid:i.bool,required:i.bool,name:i.string,id:i.string,ariaLabelledBy:i.string,ariaDescribedBy:i.string,filterable:i.bool,filter:i.string,loading:i.bool,popupSettings:i.shape({animate:i.oneOfType([i.bool,i.shape({openDuration:i.number,closeDuration:i.number})]),popupClass:i.string,className:i.string,appendTo:i.instanceOf(Element),width:i.oneOfType([i.string,i.number]),height:i.oneOfType([i.string,i.number])}),onOpen:i.func,onClose:i.func,onFocus:i.func,onBlur:i.func,onChange:i.func,onFilterChange:i.func,onExpandChange:i.func,item:i.func,valueHolder:i.func,listNoData:i.func};un.displayName="KendoReactDropDownTree",un.defaultProps=ln,un.propTypes=cn;var dn=function(){return dn=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},dn.apply(this,arguments)},pn=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},fn=a.G.sizeMap,hn=a.G.roundedMap,mn={checkField:"checkField",checkIndeterminateField:"checkIndeterminateField",subItemsField:"items",popupSettings:{animate:!0,width:"200px",height:"200px"},size:"medium",rounded:"medium",fillMode:"solid",required:!1,validityStyles:!0},vn=(0,c.Y)(),gn=o.forwardRef((function(e,t){var n,r,i=(0,Ge.Y)(vn,e);(0,J.s)(ee);var a=o.useMemo((function(){return(0,Z.M)()}),[]),c=i.id||a,f=i.data,h=void 0===f?[]:f,m=i.dataItemKey,v=i.popupSettings,g=void 0===v?{}:v,y=i.style,b=void 0===y?{}:y,C=i.opened,w=i.disabled,k=i.onOpen,S=void 0===k?nt.Z:k,O=i.onClose,x=void 0===O?nt.Z:O,T=i.placeholder,_=i.label,M=i.name,P=i.checkField,N=void 0===P?mn.checkField:P,F=i.checkIndeterminateField,A=void 0===F?mn.checkIndeterminateField:F,j=i.subItemsField,L=void 0===j?mn.subItemsField:j,V=i.validationMessage,H=i.valid,W=i.tags,K=i.value,q=i.required,Y=void 0===q?mn.required:q,G=i.validityStyles,X=void 0===G?mn.validityStyles:G,$=(0,u.p)(i.tabIndex,w),Q=o.useRef(null),te=o.useRef(null),ne=o.useRef(null),re=o.useRef(null),oe=o.useRef(null),ie=o.useRef(!1),ae=o.useRef([]),le=o.useRef(null),se=o.useState(),ue=se[0],ce=se[1],de=o.useState(!1),pe=de[0],he=de[1],me=o.useState(!1),ve=me[0],ge=me[1],ye=o.useState(""),be=ye[0],Ce=ye[1],Ee=void 0!==C?C:pe,we=Boolean(Array.isArray(K)&&K.length),ke=function(e,t){var n=e.valid;return{customError:void 0!==e.validationMessage,valid:Boolean(void 0!==n?n:!e.required||t),valueMissing:!t}}({validationMessage:V,valid:H,required:Y},we),Se=(0,rt.V)(te,i.dir),Oe=void 0!==g.width?g.width:void 0!==b.width?b.width:mn.popupSettings.width,De=Jt(te,Oe),xe=dn({width:De},void 0!==Se?{direction:Se}:{}),Ie=o.useCallback((function(){return te.current&&te.current.focus()}),[]);ae.current=void 0===W?(K||[]).map((function(e){return{text:D(e,i.textField),data:[e]}})):pn([],W,!0),o.useImperativeHandle(Q,(function(){return{props:i,element:te.current,focus:Ie}})),o.useImperativeHandle(t,(function(){return Q.current}));var Te=o.useCallback((function(){re.current&&re.current.setCustomValidity&&re.current.setCustomValidity(ke.valid?"":void 0===V?"Please select a value from the list!":V)}),[V,ke]);o.useEffect(Te),o.useEffect((function(){le.current&&Ee&&le.current.setPosition(le.current._popup)}),[K,Ee]);var _e=o.useCallback((function(e,t,n){if(i.onChange){var r=dn({items:t,operation:n},e);i.onChange.call(void 0,r)}}),[i.onChange]),Re=o.useCallback((function(e){if(!I(e.item,K,m)&&Q.current){var t=e.item,n=e.nativeEvent,r={syntheticEvent:e.syntheticEvent,nativeEvent:n,target:Q.current};_e(r,[t],"toggle")}}),[K,m,_e]),Me=o.useCallback((function(e){if(!Ee){if(S){var t=dn({},e);S.call(void 0,t)}void 0===C&&he(!0)}}),[Ee,C,S]),Ne=o.useCallback((function(e){if(Ee){if(x){var t=dn({},e);x.call(void 0,t)}void 0===C&&he(!1)}}),[Ee,C,x]),Fe=o.useCallback((function(e){ie.current=!0,e(),window.setTimeout((function(){return ie.current=!1}),0)}),[]),Ae=o.useCallback((function(e){e&&Fe((function(){return e.focus()}))}),[Fe]),je=o.useCallback((function(){!ve&&Ee?Ne({target:Q.current}):i.filterable?Ae(ne.current):Ae(oe.current&&oe.current.element)}),[ve,Ee,Ae,Ne,i.filterable]),Le=o.useCallback((function(){ve&&Ae(te.current)}),[ve,Ae]),Ve=o.useCallback((function(e){if(!ve&&!ie.current&&(ge(!0),i.onFocus&&Q.current)){var t={syntheticEvent:e,nativeEvent:e.nativeEvent,target:Q.current};i.onFocus.call(void 0,t)}}),[ve,i.onFocus]),ze=o.useCallback((function(e){if(ve&&!ie.current&&Q.current){ge(!1);var t={syntheticEvent:e,nativeEvent:e.nativeEvent,target:Q.current};if(i.onBlur){var n=dn({},t);i.onBlur.call(void 0,n)}Ne(t)}}),[ve,i.onBlur,Ee,C,x]),Be=o.useCallback((function(){ve&&Fe(nt.Z)}),[ve,Fe]),He=o.useCallback((function(e){if(!e.isDefaultPrevented()&&Q.current){ge(!0);var t={syntheticEvent:e,nativeEvent:e.nativeEvent,target:Q.current};Ee||Me(t)}}),[Ee,Me]),Ue=o.useCallback((function(e){var t=e.keyCode,n=e.altKey,r=oe.current&&oe.current.element;if(Q.current&&(!e.isDefaultPrevented()||ne.current!==e.target)){var o={syntheticEvent:e,nativeEvent:e.nativeEvent,target:Q.current};if(K&&K.length>0&&(t===s.R.left||t===s.R.right||t===s.R.home||t===s.R.end||t===s.R.delete)){var i=ae.current,a=ue?i.findIndex((function(e){return R(e,ue,m)})):-1,l=void 0,u=-1!==a;t===s.R.left?l=i[a=u?Math.max(0,a-1):i.length-1]:t===s.R.right?a===i.length-1?l=void 0:u&&(l=i[a=Math.min(i.length-1,a+1)]):t===s.R.home?l=i[0]:t===s.R.end?l=i[i.length-1]:t===s.R.delete&&u&&_e(o,i[a].data,"delete"),l!==ue&&ce(l)}if(Ee)if(t===s.R.esc||n&&t===s.R.up)e.preventDefault(),Ne(o);else if(r&&r.querySelector(".k-focus")&&(t===s.R.up||t===s.R.down||t===s.R.left||t===s.R.right||t===s.R.home||t===s.R.end)){if(t===s.R.up&&ne.current){var c=Array.from(r.querySelectorAll(".k-treeview-item")),d=pn([],c,!0).reverse().find((function(e){return Boolean(e&&e.querySelector(".k-focus"))}));if(d&&0===c.indexOf(d))return Fe((function(){Ae(ne.current)}))}Fe(nt.Z)}else t===s.R.down&&Fe((function(){Ae(ne.current||r)}));else n&&t===s.R.down&&(e.preventDefault(),Me(o))}}),[Ee,Ne,Ae,Fe,Me,ue,m,K,_e]),We=o.useCallback((function(e){var t=e.keyCode;e.altKey||t!==s.R.up&&t!==s.R.down||(e.preventDefault(),Fe(t===s.R.up?function(){Ae(te.current)}:function(){Ae(oe.current&&oe.current.element)}))}),[Ae,Fe]),Ke=o.useCallback((function(e){if(Q.current){var t={syntheticEvent:e,nativeEvent:e.nativeEvent,target:Q.current};_e(t,[],"clear"),Ne(t),e.preventDefault()}}),[_e,Ne]),qe=o.useCallback((function(e,t){Ne({target:Q.current}),ve||Ae(ne.current),_e({syntheticEvent:t,nativeEvent:t.nativeEvent,target:Q.current},e,"delete")}),[_e,Ne,Ae,ve]),Ye=o.useCallback((function(e){if(i.onExpandChange&&Q.current){var t=e.item,n=e.itemHierarchicalIndex,r=e.nativeEvent,o=e.syntheticEvent,a={level:(l=n,l.split("_").map((function(e){return parseInt(e,10)}))),item:t,nativeEvent:r,syntheticEvent:o,target:Q.current};i.onExpandChange.call(void 0,a)}var l}),[i.onExpandChange]),Ze=o.useCallback((function(e){if(i.onFilterChange&&Q.current){var t={filter:{field:i.textField,operator:"contains",value:e.target.value},syntheticEvent:e,nativeEvent:e.nativeEvent,target:Q.current};i.onFilterChange.call(void 0,t),void 0===i.filter&&Ce(e.target.value)}}),[i.onFilterChange,i.filter,i.textField]),Xe=i.listNoData||en,$e=(0,z.useLocalization)(),Qe=!X||ke.valid,Je=i.size,et=i.rounded,tt=i.fillMode,ot=o.createElement("span",{className:(0,l.A)("k-multiselect k-input",i.className,(n={},n["k-input-".concat(fn[Je]||Je)]=Je,n["k-rounded-".concat(hn[et]||et)]=et,n["k-input-".concat(tt)]=tt,n["k-focus"]=ve&&!w,n["k-invalid"]=!Qe,n["k-disabled"]=w,n["k-loading"]=i.loading,n["k-required"]=Y,n)),tabIndex:$,accessKey:i.accessKey,id:c,style:_?dn(dn({},b),{width:void 0}):b,dir:Se,ref:te,onKeyDown:w?void 0:Ue,onMouseDown:Be,onFocus:Ve,onBlur:ze,role:"listbox","aria-haspopup":"true","aria-expanded":Ee,"aria-disabled":w,"aria-label":_,"aria-labelledby":i.ariaLabelledBy,"aria-describedby":i.ariaDescribedBy,onClick:w?void 0:He},ae.current.length>0&&o.createElement("div",{className:(0,l.A)("k-input-values k-chip-list k-selection-multiple",(r={},r["k-chip-list-".concat(fn[Je]||Je)]=Je,r)),role:"listbox",id:"tagslist-"+c},o.createElement(Pe,{tag:i.tag,onTagDelete:qe,data:ae.current,guid:c,focused:ue?ae.current.find((function(e){return R(e,ue,m)})):void 0,size:Je})),!we&&o.createElement("span",{className:"k-input-inner"},o.createElement("span",{className:"k-input-value-text"}," ")),i.loading&&o.createElement("span",{className:"k-icon k-i-loading k-input-loading-icon"}),we&&!w&&o.createElement(fe,{onClick:Ke}),o.createElement("select",{name:M,ref:re,tabIndex:-1,"aria-hidden":!0,title:_,style:{opacity:0,width:1,border:0,zIndex:-1,position:"absolute",left:"50%"}},o.createElement("option",{value:i.valueMap?i.valueMap.call(void 0,K):K})),o.createElement(p.G,{popupClass:g.popupClass,className:(0,l.A)(g.className,{"k-rtl":"rtl"===Se}),style:xe,animate:g.animate,anchor:te.current,show:Ee,onOpen:je,onClose:Le,appendTo:g.appendTo,ref:le},i.filterable&&o.createElement(E,{value:void 0===i.filter?be:i.filter,inputRef:ne,onChange:Ze,onKeyDown:We,tabIndex:$,size:Je,rounded:et,fillMode:tt}),h.length>0?o.createElement(Qt,{ref:oe,tabIndex:$,data:h,focusIdField:m,textField:i.textField,checkField:N,checkIndeterminateField:A,expandField:i.expandField,childrenField:L,expandIcons:!0,onItemClick:Re,onCheckChange:Re,onExpandChange:Ye,checkboxes:!0,size:Je,item:i.item}):o.createElement(Xe,null,$e.toLanguageString(B,U[B]))));return _?o.createElement(d._,{label:_,editorValue:we,editorPlaceholder:T,editorValid:Qe,editorDisabled:w,editorId:c,style:{width:b?b.width:void 0},children:ot,dir:Se}):ot})),yn={opened:i.bool,disabled:i.bool,dir:i.string,tabIndex:i.number,accessKey:i.string,data:i.array,value:i.any,valueMap:i.func,placeholder:i.string,dataItemKey:i.string.isRequired,textField:i.string.isRequired,checkField:i.string,checkIndeterminateField:i.string,expandField:i.string,subItemsField:i.string,className:i.string,style:i.object,label:i.string,validationMessage:i.string,validityStyles:i.bool,valid:i.bool,required:i.bool,name:i.string,id:i.string,ariaLabelledBy:i.string,ariaDescribedBy:i.string,filterable:i.bool,filter:i.string,loading:i.bool,tags:i.arrayOf(i.shape({text:i.string,data:i.arrayOf(i.any)})),popupSettings:i.shape({animate:i.oneOfType([i.bool,i.shape({openDuration:i.number,closeDuration:i.number})]),popupClass:i.string,className:i.string,appendTo:i.instanceOf(Element),width:i.oneOfType([i.string,i.number]),height:i.oneOfType([i.string,i.number])}),onOpen:i.func,onClose:i.func,onFocus:i.func,onBlur:i.func,onChange:i.func,onFilterChange:i.func,onExpandChange:i.func,item:i.func,listNoData:i.func};gn.displayName="KendoReactMultiSelectTree",gn.defaultProps=mn,gn.propTypes=yn;var bn=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},Cn=function(e,t){var n={};return e&&e.length&&e.forEach((function(e){n[t(e)]=!0})),n},En=function(e,t){var n=t.items,r=t.dataItemKey,o=t.value,i=t.subItemsField,a=void 0===i?"items":i,l=t.operation,s=(0,Xe.Y)(r),u=Cn(o,s);if("clear"===l)return[];if("delete"===l){var c=Cn(n,s);return o.filter((function(e){return!c[s(e)]}))}for(var d,p=n[0],f=s(p),h=(0,Xe.Y)(a),m=bn([],e,!0),v=[],g=[];m.length;){var y=m.pop();if(f===s(y)){g=v.map((function(e){return e.item})),d=y;break}v&&v.length&&v[v.length-1].parentPosition===m.length&&v.pop(),(I=h(y))&&I.length&&(v.push({item:y,parentPosition:m.length}),m.push.apply(m,I))}for(var b=bn([],h(d)||[],!0),C=[];b.length;)y=b.pop(),C.push(y),(I=h(y))&&I.length&&b.push.apply(b,I);var E=[];if(u[f]){var w=s(d),k=Cn(C,s),S=Cn(g,s);E.push.apply(E,o.filter((function(e){var t=s(e);return!k[t]&&w!==t&&!S[t]})))}else{E.push.apply(E,o),E.push(d),E.push.apply(E,C.filter((function(e){return!u[s(e)]})));for(var O=g.filter((function(e){return!u[s(e)]})),D=Cn(E,s),x=O.length-1;x>-1;x--){var I,T=O[x];if((I=h(T)).filter((function(e){return D[s(e)]})).length<I.length)break;E.push(T),D[s(T)]=!0}}return E}},1448:(e,t,n)=>{n.r(t),n.d(t,{Field:()=>a,FieldArray:()=>C,FieldWrapper:()=>w,Form:()=>y,FormElement:()=>S});var r=n(3899),o=r.createContext(null),i=function(){return i=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},i.apply(this,arguments)},a=function(e){var t=e.name,n=e.component,a=e.validator,l=e.children,s=e.onChange,u=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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["name","component","validator","children","onChange"]),c=r.useContext(o),d=c?c.id:"";r.useEffect((function(){if(c)return c.registerField(t,a)}),[t,d,a]);var p=r.useCallback((function(e){var n=e?void 0!==e.value?e.value:e.target?e.target.value:e.target:e;c.onChange(t,{value:n}),s&&s.call(void 0,e)}),[t,d,s]),f=r.useCallback((function(e){return c.onChange(t,{value:e.target.value})}),[t,d]),h=r.useCallback((function(){return c.onBlur(t)}),[t,d]),m=r.useCallback((function(){return c.onFocus(t)}),[t,d]);if(!c)return null;var v=c.valueGetter(t);return"string"==typeof n?r.createElement(n,i({onChange:f,onBlur:h,onFocus:m,value:v,children:l},u)):r.createElement(n,i(i({children:l},u),{onChange:p,onBlur:h,onFocus:m,value:v,validationMessage:c.errors[t],touched:c.touched[t],modified:c.modified[t],visited:c.visited[t],valid:!(Boolean(c.errors[t])&&c.touched[t]),name:t}))};a.displayName="KendoReactField";var l,s=n(189),u=n(3198),c=n(4500),d=n(9659),p=n(4431),f=n(4006),h={name:"@progress/kendo-react-form",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1655891309,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"},m=(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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},l(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}l(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),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},v.apply(this,arguments)},g=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},y=function(e){function t(t){var n=e.call(this,t)||this;return n._id=(0,u.M)(),n._touched={},n._visited={},n._modified={},n._validatorsByField={},n._values={},n._fields={},n._unmounted=!1,n._submitted=!1,n.isValid=function(){return n.isFormValid(n.errors)},n.accumulatedForceUpdate=function(){n._accumulatorTimeout&&clearTimeout(n._accumulatorTimeout),n._accumulatorTimeout=window.setTimeout((function(){n._accumulatorTimeout=void 0,n.forceUpdate()}),0)},n.resetForm=function(){n.values=(0,c.d9)(n.props.initialValues),n._id=(0,u.M)(),n._touched={},n._visited={},n._modified={},n._validatorsByField={},n._fields={},n._submitted=!1,n.forceUpdate()},n.onReset=function(){return n.resetForm()},n.addField=function(e){n._fields[e]=!0},n.onSubmit=function(e){var t={},r=n.fields;e&&("function"==typeof e.preventDefault&&e.preventDefault(),"function"==typeof e.stopPropagation&&e.stopPropagation()),r.forEach((function(e){t[e]=!0})),n.visited=v({},t),n.touched=v({},t);var o=n.values,i=n.isFormValid(n.errors),a=n.isFormModified(n.modified,r);n.props.onSubmitClick&&n.props.onSubmitClick.call(void 0,{values:o,isValid:i,isModified:a,event:e}),i&&(n.props.ignoreModified||a)&&n.props.onSubmit&&(n._submitted=!0,n.props.onSubmit.call(void 0,o,e)),n.forceUpdate()},n.onChange=function(e,t){var r,o=t.value;n.addField(e),n.modified[e]||(n.modified=v(v({},n.modified),((r={})[e]=!0,r))),n.valueSetter(e,o),n.forceUpdate()},n.onFocus=function(e,t){var r;n.visited[e]||(n.visited=v(v({},n.visited),((r={})[e]=!0,r)),t||n.forceUpdate())},n.onBlur=function(e,t){var r;n.touched[e]||(n.onFocus(e,t),n.touched=v(v({},n.touched),((r={})[e]=!0,r)),t||n.forceUpdate())},n.onFieldRegister=function(e,t){var r;n.addField(e);var o=n.validatorsByField[e]||[],i=o.length;return n.validatorsByField=v(v({},n.validatorsByField),((r={})[e]=g(g([],o,!0),[t],!1),r)),n.accumulatedForceUpdate(),function(){var t;if(!n._unmounted){var r=g([],n.validatorsByField[e]||[],!0),o=Boolean(r[i]);r[i]=void 0,n.validatorsByField=v(v({},n.validatorsByField),((t={})[e]=r,t)),o&&n.accumulatedForceUpdate()}}},n.isFormValid=function(e){return!Object.keys(e).some((function(t){return Boolean(e[t])}))},n.isFormModified=function(e,t){return t.some((function(t){return e[t]}))},n.isFormHasNotTouched=function(e,t){return t.some((function(t){return!e[t]}))},n.isFormTouched=function(e,t){return t.some((function(t){return e[t]}))},n.isFormVisited=function(e,t){return t.some((function(t){return e[t]}))},n.valueGetter=function(e){return(0,d.Y)(e)(n.values)},n.valueSetter=function(e,t){return(0,p.I)(e)(n.values,t)},n.onArrayAction=function(e){var t;n.addField(e),n.modified[e]||(n.modified=v(v({},n.modified),((t={})[e]=!0,t))),n.onBlur(e,!0)},n.onInsert=function(e,t){n.onArrayAction(e);var r=g([],n.valueGetter(e)||[],!0);r.splice(t.index,0,t.value),n.valueSetter(e,r),n.forceUpdate()},n.onUnshift=function(e,t){n.onInsert(e,{value:t.value,index:0})},n.onPush=function(e,t){n.onArrayAction(e);var r=g(g([],n.valueGetter(e)||[],!0),[t.value],!1);n.valueSetter(e,r),n.forceUpdate()},n.onPop=function(e){n.onArrayAction(e);var t=g([],n.valueGetter(e)||[],!0),r=t.pop();return n.valueSetter(e,t),n.forceUpdate(),r},n.onRemove=function(e,t){n.onArrayAction(e);var r=g([],n.valueGetter(e)||[],!0),o=r.splice(t.index,1);return n.valueSetter(e,r),n.forceUpdate(),o},n.onReplace=function(e,t){n.onArrayAction(e);var r=g([],n.valueGetter(e)||[],!0);r.splice(t.index,1,t.value),n.valueSetter(e,r),n.forceUpdate()},n.onMove=function(e,t){n.onArrayAction(e);var r=g([],n.valueGetter(e)||[],!0),o=r[t.prevIndex];r.splice(t.prevIndex,1),r.splice(t.nextIndex,0,o),n.valueSetter(e,r),n.forceUpdate()},(0,f.s)(h),n.values=(0,c.d9)(t.initialValues),n}return m(t,e),Object.defineProperty(t.prototype,"touched",{get:function(){return this._touched},set:function(e){this._touched=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visited",{get:function(){return this._visited},set:function(e){this._visited=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"modified",{get:function(){return this._modified},set:function(e){this._modified=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validatorsByField",{get:function(){return this._validatorsByField},set:function(e){this._validatorsByField=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"values",{get:function(){return this._values},set:function(e){this._values=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fields",{get:function(){return Object.keys(this._fields)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"formErrors",{get:function(){if(this.props.validator)return this.props.validator(this.values,this.valueGetter)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"errors",{get:function(){var e=this,t={},n=this.fields,r=this.validatorsByField;return n.forEach((function(n){if(t[n]="",r[n]){var o=[];r[n].forEach((function(e){Array.isArray(e)?o.push.apply(o,e):o.push(e)})),o.find((function(r){if(r){var o=r(e.valueGetter(n),e.valueGetter,{name:n});if(o)return t[n]=o,!0}return!1}))}})),this.formErrors&&(0,c.kI)(this.formErrors,t),t},enumerable:!1,configurable:!0}),t.prototype.componentWillUnmount=function(){this._unmounted=!0,this._accumulatorTimeout&&clearTimeout(this._accumulatorTimeout)},t.prototype.render=function(){var e=this.props.render,t=this.touched,n=this.visited,i=this.modified,a=this.fields,l=this.errors,s=this.isFormValid(l),u=this.isFormModified(i,a),c=this.isFormTouched(t,a),d=this.isFormVisited(n,a),p=this.isFormHasNotTouched(t,a)&&!s||s&&(this.props.ignoreModified||u);return r.createElement(o.Provider,{key:this._id,value:{id:this._id,valueGetter:this.valueGetter,errors:l,modified:i,touched:t,visited:n,registerField:this.onFieldRegister,onSubmit:this.onSubmit,onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,onUnshift:this.onUnshift,onPush:this.onPush,onInsert:this.onInsert,onPop:this.onPop,onRemove:this.onRemove,onReplace:this.onReplace,onMove:this.onMove}},e({valid:s,modified:u,touched:c,visited:d,submitted:this._submitted,valueGetter:this.valueGetter,errors:l,allowSubmit:p,onChange:this.onChange,onSubmit:this.onSubmit,onFormReset:this.resetForm}))},t.displayName="KendoReactForm",t.propTypes={initialValues:s.any,onSubmit:s.func,onSubmitClick:s.func,render:s.func.isRequired},t}(r.Component),b=function(){return b=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},b.apply(this,arguments)},C=function(e){var t=e.name,n=e.component,i=e.validator,a=(e.type,e.children),l=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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["name","component","validator","type","children"]),s=r.useContext(o),u=s?s.id:"";r.useEffect((function(){if(s)return s.registerField(t,i)}),[t,u,i]);var c=r.useCallback((function(e){return s.onUnshift(t,e)}),[t,u]),d=r.useCallback((function(e){return s.onPush(t,e)}),[t,u]),p=r.useCallback((function(e){return s.onInsert(t,e)}),[t,u]),f=r.useCallback((function(){return s.onPop(t)}),[t,u]),h=r.useCallback((function(e){return s.onRemove(t,e)}),[t,u]),m=r.useCallback((function(e){return s.onReplace(t,e)}),[t,u]),v=r.useCallback((function(e){return s.onMove(t,e)}),[t,u]);if(!s)return null;var g=s.valueGetter(t);return r.createElement(n,b({value:g,validationMessage:s.errors[t],touched:s.touched[t],modified:s.modified[t],visited:s.visited[t],valid:!(Boolean(s.errors[t])&&s.touched[t]),onUnshift:c,onPush:d,onInsert:p,onPop:f,onRemove:h,onReplace:m,onMove:v,children:a,name:t},l))};C.displayName="KendoReactFieldArray";var E=n(8047),w=function(e){var t=(0,E.A)({"k-form-field":!0,"k-rtl":"rtl"===e.dir},e.className);return r.createElement("div",{className:t,style:e.style},e.children)};w.displayName="KendoReactFieldWrapper";var k=function(){return k=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},k.apply(this,arguments)},S=r.forwardRef((function(e,t){var n=r.useRef(null),i=r.useRef(null);r.useImperativeHandle(i,(function(){return{element:n.current,props:e}})),r.useImperativeHandle(t,(function(){return i.current}));var a=r.useContext(o),l=e.className,s=(e.onSubmit,e.style,e.horizontal),u=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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["className","onSubmit","style","horizontal"]),c=(0,E.A)({"k-form":!0,"k-form-horizontal":!0===s},l);return r.createElement("form",k({ref:n},u,{style:e.style,className:c,onSubmit:a?a.onSubmit:void 0}),e.children)}));S.displayName="KendoReactFormElement"},3390:(e,t,n)=>{n.r(t),n.d(t,{Checkbox:()=>on,CheckboxPropsContext:()=>rn,ColorGradient:()=>rt,ColorGradientPropsContext:()=>nt,ColorPalette:()=>ct,ColorPalettePropsContext:()=>ut,ColorPicker:()=>yt,ColorPickerPropsContext:()=>gt,FlatColorPicker:()=>wt,Input:()=>Le,InputPropsContext:()=>je,MaskedTextBox:()=>Bt,MaskedTextBoxPropsContext:()=>zt,NumericTextBox:()=>Pe,NumericTextBoxPropsContext:()=>Me,RadioButton:()=>sn,RadioButtonPropsContext:()=>ln,RadioGroup:()=>pn,RadioGroupPropsContext:()=>dn,RangeSlider:()=>Yt,RangeSliderPropsContext:()=>qt,Rating:()=>In,RatingItem:()=>gn,RatingPropsContext:()=>xn,SLIDER_LABEL_ATTRIBUTE:()=>z,Slider:()=>Y,SliderLabel:()=>B,SliderPropsContext:()=>q,Switch:()=>tn,SwitchPropsContext:()=>en,TextArea:()=>vn,TextAreaPropsContext:()=>mn});var r,o,i=n(3899),a=n(189),l=n(9124),s=n(3198),u=n(8047),c=n(4703),d=n(1779),p=n(848),f=n(4006),h={name:"@progress/kendo-react-inputs",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1655891049,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"},m=n(3493),v=n(5407),g=n(499),y="numerictextbox.increment",b="numerictextbox.decrement",C="slider.dragTitle",E="colorGradient.r",w="colorGradient.g",k="colorGradient.b",S="colorGradient.a",O="colorGradient.hex",D="colorGradient.contrastRatio",x="colorGradient.colorGradientAALevel",I="colorGradient.colorGradientAAALevel",T="colorGradient.colorGradientPass",_="colorGradient.colorGradientFail",R="flatColorPicker.cancelBtn",M="flatColorPicker.applyBtn",P="checkbox.validation",N="checkbox.optionalText",F="switch.validation",A="colorPicker.dropdownButtonAriaLabel",j=((r={})[y]="Increase value",r[b]="Decrease value",r["slider.increment"]="Increase",r["slider.decrement"]="Decrease",r[C]="Drag",r[E]="r",r[w]="g",r[k]="b",r[S]="a",r[O]="hex",r[D]="Contrast ratio",r[x]="AA",r[I]="AAA",r[T]="Pass",r[_]="Fail",r[R]="Cancel",r[M]="Apply",r[P]="Please check this box if you want to proceed!",r[N]="(Optional)",r["radioButton.validation"]="Please select option if you want to proceed!",r[F]="Please turn on if you want to proceed!",r[A]="Select",r),L=n(8199),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},V.apply(this,arguments)},z="data-slider-label",B=function(e){var t,n,r=i.useRef(null),o=(0,L.n)(r),a=e.vertical?{bottom:"".concat(e.position,"%")}:((t={})["rtl"===o?"right":"left"]="".concat(e.position,"%"),t),l=e.vertical?"k-tick-vertical":"k-tick-horizontal";return i.createElement("li",{ref:r,role:"presentation",className:"k-tick k-tick-large ".concat(l),title:e.title,style:V({zIndex:1,position:"absolute"},a)},i.createElement("span",V({},((n={})[z]=!0,n),{className:"k-label",onClick:e.onClick}),e.children))},H=n(7037),U=(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),W=function(){return W=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},W.apply(this,arguments)},K=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._sliderTrack=null,n._element=null,n.buttons=function(e){return e.enabled?i.createElement(i.Fragment,null,i.createElement(H.z,{className:"k-button-decrease k-rounded-full",icon:n.props.vertical?"arrow-s":"arrow-w",title:e.decrementTitle,onClick:e.decrement}),e.children,i.createElement(H.z,{className:"k-button-increase k-rounded-full",icon:n.props.vertical?"arrow-n":"arrow-e",title:e.incrementTitle,onClick:e.increment})):e.children},n.focus=function(){n._element&&n._element.focus()},n.isLabel=function(e){for(var t=e;t;){if(Boolean(t.getAttribute(z)))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===m.R.left||e.keyCode===m.R.down?t=n.state.value-(n.props.step||0):e.keyCode===m.R.right||e.keyCode===m.R.up?t=n.state.value+(n.props.step||0):e.keyCode===m.R.home?t=n.props.min:e.keyCode===m.R.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))},(0,f.s)(h),n}return U(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=this,n=(0,g.provideLocalizationService)(this),r=(this.state.value-this.props.min)/(this.props.max-this.props.min)*100,o=this.props.vertical?{marginTop:"0.5rem",marginBottom:"0.5rem"}:{marginLeft:"0.5rem",marginRight:"0.5rem"},a=this.props.vertical?{paddingTop:0,height:"100%"}:{};return i.createElement("div",{ref:function(e){return t._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:W({gap:0},this.props.style),tabIndex:(0,c.p)(this.props.tabIndex,this.props.disabled,void 0),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,className:(0,u.A)("k-slider k-widget",{"k-focus":this.state.focused,"k-disabled":this.props.disabled,"k-slider-horizontal":!this.props.vertical,"k-slider-vertical":this.props.vertical},this.props.className)},i.createElement(this.buttons,{enabled:this.props.buttons,decrement:this.decrement,increment:this.increment,incrementTitle:n.toLanguageString("slider.increment",j["slider.increment"]),decrementTitle:n.toLanguageString("slider.decrement",j["slider.decrement"])},i.createElement(d._,{onDrag:this.dragOver,onPress:this.dragStart},i.createElement("div",{className:"k-slider-track-wrap",style:W({flexGrow:1,position:"relative",touchAction:"none"},o)},this.props.children&&i.createElement("ul",{className:"k-reset k-slider-items",style:W({margin:0},a)},i.Children.map(this.props.children,(function(e){return e&&i.cloneElement(e,{position:100*(e.props.position-t.props.min)/(t.props.max-t.props.min),vertical:t.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 t._sliderTrack=e}},i.createElement("div",{className:"k-slider-selection",style:this.props.vertical?{height:r+"%"}:{width:r+"%"}}),i.createElement("a",{className:"k-draghandle",title:n.toLanguageString(C,j[C]),style:this.props.vertical?{bottom:"calc("+r+"%)",zIndex:1}:"rtl"===this.state.dir?{right:"calc("+r+"% - 13px)",zIndex:1}:{left:"calc("+r+"%)",zIndex:1}}))))))},Object.defineProperty(t.prototype,"sliderTrack",{get:function(){return this._sliderTrack},enumerable:!1,configurable:!0}),t.prototype.change=function(e,t){t=Math.min(Math.max(t,this.props.min),this.props.max),this.setState({value:t}),(0,v.N)(this.props.onChange,e,this,{value:t})},t.displayName="Slider",t.propTypes={min:a.number.isRequired,max:a.number.isRequired,value:a.number,vertical:a.bool,id:a.string,ariaLabelledBy:a.string,ariaDescribedBy:a.string},t}(i.Component),q=(0,p.Y)(),Y=(0,p.u)(q,K);Y.displayName="KendoReactSlider",(0,g.registerForLocalization)(K);var G=function(e){return null!=e},Z=function(e,t,n){return!G(e)||isNaN(e)||e<=t?t:e>=n?n:e},X=n(4407),$=function(e,t,n){if(void 0===n&&(n=!0),-1===["hex","rgba"].indexOf(t))throw new Error("Unsupported color output format '".concat(t,"'. The available options are 'hex' or 'rgba'."));if(G(e)){var r=(0,X.parseColor)(e.trim(),n);if(G(r))return"hex"===t?r.toCss():r.toCssRgba()}},Q=function(e,t){void 0===t&&(t=!0);var n=(0,X.parseColor)(e,t);return G(n)?n.toHSV():{}},J=function(e,t){void 0===t&&(t=!0);var n=(0,X.parseColor)(e,t);return G(n)?n.toBytes():{}},ee=function(e){var t=Z(e.h,0,359.9),n=Z(e.s,0,1),r=Z(e.v,0,1),o=Z(e.a,0,1);return X.Color.fromHSV(t,n,r,o).toCssRgba()},te=function(e){return ee({h:e,s:1,v:1,a:1})},ne=function(e,t){var n=Z(e.r,0,255),r=Z(e.g,0,255),o=Z(e.b,0,255),i=Z(e.a,0,1),a=Z(t.r,0,255),l=Z(t.g,0,255),s=Z(t.b,0,255);return{r:Math.round((1-i)*a+i*n),g:Math.round((1-i)*l+i*r),b:Math.round((1-i)*s+i*o)}},re=function(e){var t=[e.r||0,e.g||0,e.b||0].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]},oe=function(e,t){return n=re(ne(e,t)),r=re(ne(t,{r:0,g:0,b:0,a:1})),(Math.max(n,r)+.05)/(Math.min(n,r)+.05);var n,r},ie={},ae=n(9656),le=n(2697),se=n(6097),ue=function(){return ue=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},ue.apply(this,arguments)},ce=1111111.1111111,de=/\d/,pe=function(e,t){return void 0!==e?e:t},fe=function(e,t,n){return null===e&&void 0===e?"":"string"==typeof e?e:n.formatNumber(e,t)},he=function(e){return(String(e).split(".")[1]||"").length},me=function(e,t){return Math.max(he(e),he(t))},ve=function(e,t){var n=function(e){return Math.min(e,15)}(t);return parseFloat(e.toFixed(n))},ge=function(e,t,n,r,o,i,a){var l=me(e||0,n||0),s=be(ve((e||0)+(n||0),l),r,o);t.eventValue=s,t.currentLooseValue=fe(s,i,a),t.selectionStart=t.selectionEnd=Se(t.currentLooseValue,de)},ye=function(e,t,n,r,o,i,a){var l=me(e||0,n||0),s=be(ve((e||0)-(n||0),l),r,o);t.eventValue=s,t.currentLooseValue=fe(s,i,a),t.selectionStart=t.selectionEnd=Se(t.currentLooseValue,de)},be=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},Ce=function(e,t,n,r){e.selectionStart=e.selectionEnd=t,function(e,t,n){var r=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}(e,t);if(-1!==r&&n.selectionStart>r)n.selectionStart=n.selectionEnd=r;else{n.selectionStart>e.length&&(n.selectionStart=n.selectionEnd=e.length);var o=function(e,t){var n=t.findIndex((function(t){var n=t[0];return t[1],Boolean(n)&&0===e.indexOf(n)}));return-1===n?-1:t[n][0].length}(e,t);-1!==o&&n.selectionStart<o&&(n.selectionStart=n.selectionEnd=o),-1===n.selectionStart&&(n.selectionStart=n.selectionEnd=0)}}(n,r,e)},Ee=function(e,t,n,r){e.eventValue=r.parseNumber(e.prevLooseValue,t),e.currentLooseValue=e.prevLooseValue,e.valueIsCorrected=!0,Ce(e,e.selectionStart,e.currentLooseValue,n)},we=function(e,t){var n=e.indexOf(t.decimal);return n>-1?n:Se(e,de)},ke=function(e){return e.split("").reverse().join("")},Se=function(e,t){return e.length-ke(e).search(t)},Oe=function(e){return e.split(e[e.search(de)])[0]},De=function(e){var t=ke(e);return ke(t.split(t[t.search(de)])[0])},xe=function(e,t){return e.search(t)},Ie=function(e,t){var n=e.indexOf(t);return n>-1?e.length-n-1:0},Te=function(e,t,n,r,o){var i="0"===e.replace(o,"")[0],a="0"===t.replace(o,"")[0];if(i&&!a)return n-1;if(a&&r)return n+1;for(var l=0,s=0;s<n;s++)de.test(e.charAt(s))&&l++;for(var u=0;l>0&&t.length>u;)de.test(t.charAt(u))&&l--,u++;return u},_e=function(e,t,n){var r=ue({},e),o=r.prevLooseValue,i=n.numberSymbols(),a=function(e,t){var n=t.formatNumber(ce,e),r=t.formatNumber(-ce,e),o=t.formatNumber(0,e),i=t.formatNumber(1,e),a=t.numberSymbols(),l=new RegExp("[\\d\\".concat(a.decimal).concat(a.group,"]"),"g");return[n,r,o,i].map((function(e){return e.replace(l,"")})).join("").split("").filter((function(e,t,n){return n.indexOf(e)===t})).join("")}(t,n),l=String(r.currentLooseValue),s=String(o),u=new RegExp("[^\\d\\".concat(i.decimal,"]"),"g"),c=new RegExp("[^\\d\\".concat(i.decimal,"\\").concat(i.group,"]"),"g"),d=new RegExp("[\\d\\".concat(i.decimal,"\\").concat(i.group,"]")),p=l.replace(u,""),f=xe(l,de),h=-1===f?-1:Se(l,de),m=l.indexOf(i.decimal),v=(l.substring(0,f)+l.substring(f,h).replace(c,"")+l.substring(h,l.length)).split("").filter((function(e){return-1!==a.indexOf(e)||-1!==e.search(d)})).join(""),g=n.formatNumber(.31111111111111117,t).replace(u,""),y=g.indexOf(i.decimal),b=y>-1?g.length-y-1:0,C=n.formatNumber(1,t).replace(u,""),E=C.indexOf(i.decimal),w=E>-1?C.length-E-1:0,k=function(e,t){var n=t.formatNumber(ce,e),r=t.formatNumber(-ce,e),o=t.formatNumber(0,e),i=t.formatNumber(1,e),a=Oe(n),l=Oe(r),s=Oe(o),u=Oe(i);return{positiveInfo:[a,De(n)],negativeInfo:[l,De(r)],zeroInfo:[s,De(o)],oneInfo:[u,De(i)]}}(t,n),S=[k.positiveInfo,k.negativeInfo,k.zeroInfo,k.oneInfo],O=1!==S.findIndex((function(e){return-1!==e.findIndex((function(e){return Boolean(e)}))})),D=l.length>0&&l.length<s.length,x="string"==typeof t&&"p"===t[0]&&l&&-1===l.indexOf(i.percentSign);if(!r.isPaste){if(""===l)return r.eventValue=null,r.currentLooseValue="",r;if(r.currentLooseValue===i.minusSign&&n.formatNumber(-0,t)!==s)return r.eventValue=-0,r.currentLooseValue=fe(r.eventValue,t,n),Ce(r,we(r.currentLooseValue,i),r.currentLooseValue,S),r;if(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}(r,i)){var I=n.parseNumber(o,t);r.eventValue=-(null!==I?I:0),r.currentLooseValue=fe(r.eventValue,t,n);var T=xe(r.currentLooseValue,de),_=xe(s,de);return Ce(r,r.selectionEnd-1+(T-_),r.currentLooseValue,S),r}if(function(e,t){var n=String(e.currentLooseValue),r=String(e.prevLooseValue);return-1===n.indexOf(t.minusSign)&&-1!==r.indexOf(t.minusSign)}(r,i))return r.eventValue=n.parseNumber(r.currentLooseValue,t),Ce(r,r.selectionStart,r.currentLooseValue,S),r;if(r.currentLooseValue===i.decimal){r.eventValue=0;var R=fe(r.eventValue,t,n);if(0===w&&b>0){var M=Se(R,de);r.currentLooseValue=R.substring(0,M)+i.decimal+R.substring(M)}else r.currentLooseValue=R;return Ce(r,we(r.currentLooseValue,i)+1,r.currentLooseValue,S),r}if(function(e,t){return String(e.currentLooseValue).split(t.decimal).length>2}(r,i))return Ee(r,t,S,n),r;if(x)return r.eventValue=n.parseNumber(l,t)/100,r.currentLooseValue=fe(r.eventValue,t,n),r;if(String(r.currentLooseValue).replace(/[^\d]/g,"").length>15)return Ee(r,t,S,n),r;if(p!==l&&l&&O){var P=S.findIndex((function(e){var t=e[0],n=e[1],r=l.indexOf(t),o=l.indexOf(n),a=0===r,s=o===l.length-n.length,u=r+t.length!==f&&-1!==f&&l[r+t.length]!==i.decimal,c=o!==h&&-1!==h&&l[o-1]!==i.decimal;return t&&n?!u&&!c&&a&&s:t?!u&&a:!!n&&!c&&s}));if(-1===P)return Ee(r,t,S,n),r}if(p[p.length-1]===i.decimal&&b>0)return r.eventValue=n.parseNumber(l,t),r.currentLooseValue=v,r;if(r.currentLooseValue&&o&&(a+i.decimal+i.group).split("").findIndex((function(e){return l.split("").filter((function(t){return t===e})).length<s.split("").filter((function(t){return t===e})).length&&l.length+1===s.length&&(e!==i.decimal||0!==Ie(s.replace(u,""),i.decimal))}))>-1)return r.eventValue=n.parseNumber(e.prevLooseValue,t),r.currentLooseValue=e.prevLooseValue,r;var N=Ie(p,i.decimal),F="0"===p[p.length-1];if(D&&F&&N<w)return r.eventValue=n.parseNumber(r.currentLooseValue,t),r.currentLooseValue=fe(r.eventValue,t,n),r;if(N>0){var A=l.substring(0,m);if(F&&(!A||0!==s.indexOf(A))){r.eventValue=n.parseNumber(r.currentLooseValue,t);var j=fe(r.eventValue,t,n);return Ce(r,Te(l,j,r.selectionEnd,D,u),j,S),r.currentLooseValue=j,r}if(N>b){var L=l.indexOf(i.decimal),V=l.substring(0,L)+l.substring(L,L+1+b)+l.substring(h,String(r.currentLooseValue).length);return r.eventValue=n.parseNumber(V,t),r.currentLooseValue=V,Ce(r,r.selectionStart,V,S),r}if(w!==b&&N<=b&&F)return r.eventValue=n.parseNumber(r.currentLooseValue,t),r.currentLooseValue=v,r;if(N<w)return r.eventValue=n.parseNumber(r.currentLooseValue,t),r.currentLooseValue=fe(r.eventValue,t,n),r}}return r.eventValue=n.parseNumber(r.currentLooseValue,t),x&&(r.eventValue=r.eventValue/100),"number"==typeof r.eventValue?(j=fe(r.eventValue,t,n),1===l.length?Ce(r,we(j,i),j,S):Ce(r,Te(l,j,r.selectionEnd,D,u),j,S),r.currentLooseValue=j):r.currentLooseValue=fe(n.parseNumber(p),t,n),r},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},Re.apply(this,arguments)},Me=(0,p.Y)(),Pe=i.forwardRef((function(e,t){var n;(0,f.s)(h);var r=(0,ae.Y)(Me,e),o=i.useMemo((function(){return(0,s.M)()}),[]),a=r.id||o,l=(0,g.useInternationalization)(),d=(0,g.useLocalization)(),p=i.useRef(null),m=i.useRef(),C=i.useState(!1),E=C[0],w=C[1],k=i.useRef({eventValue:null,prevLooseValue:"",currentLooseValue:"",focused:!1,selectionStart:void 0,selectionEnd:void 0,decimalSelect:!1,valueIsCorrected:!1,valueIsOutOfRange:!1}),S=i.useRef(!1),O=i.useRef(),D=i.useRef(r.defaultValue),x=fe(k.current.focused&&!r.disabled?k.current.currentLooseValue:pe(r.value,D.current),r.format,l);O.current=x,i.useEffect((function(){p.current&&p.current.setCustomValidity&&p.current.setCustomValidity(M().valid?"":r.validationMessage||"Please enter a valid value!")}));var I=i.useCallback((function(){p.current&&p.current.focus()}),[]),T=i.useCallback((function(){return void 0!==m.current?m.current:pe(r.value,D.current)}),[r.value]),_=i.useCallback((function(){return r.name}),[r.name]),R=i.useCallback((function(){return r.required}),[r.required]),M=i.useCallback((function(){var e=void 0!==r.validationMessage,t=T();return{customError:e,valid:void 0!==r.valid?r.valid:!(k.current.valueIsOutOfRange||R()&&null==t),valueMissing:null==t}}),[r.validationMessage,r.valid,T,R]),P=i.useCallback((function(){return r.validityStyles}),[r.validityStyles]),N=i.useCallback((function(){return r}),[r]),F=i.useCallback((function(){var e={element:p.current,focus:I};return Object.defineProperty(e,"name",{get:_}),Object.defineProperty(e,"value",{get:T}),Object.defineProperty(e,"validity",{get:M}),Object.defineProperty(e,"validityStyles",{get:P}),Object.defineProperty(e,"required",{get:R}),Object.defineProperty(e,"props",{get:N}),e}),[_,T,M,P,R,I,N]);i.useImperativeHandle(t,F);var A=i.useCallback((function(){return{eventValue:pe(r.value,D.current),prevLooseValue:O.current,currentLooseValue:p.current.value,selectionStart:p.current.selectionStart,selectionEnd:p.current.selectionEnd,decimalSelect:!1,valueIsCorrected:!1,valueIsOutOfRange:!1,isPaste:S.current,focused:k.current.focused}}),[r.value]),L=i.useCallback((function(e,t){if(!r.disabled){m.current=t.eventValue,D.current=t.eventValue;var n=fe(be(t.eventValue,r.min,r.max),r.format,l),o=be(l.parseNumber(n,r.format),r.min,r.max);o!==t.eventValue&&(t.valueIsOutOfRange=!0,t.eventValue=o,D.current=o),r.value!==t.eventValue&&(0,v.N)(r.onChange,e,F(),{value:t.eventValue}),m.current=void 0,k.current=t,w((function(e){return!e}))}}),[r.value,r.onChange,r.disabled,w,F]),V=i.useCallback((function(e){var t=A();S.current=!1,L(e,_e(t,r.format,l))}),[r.format,r.onChange,l,L,A]),z=i.useCallback((function(e){var t=A(),n=l.parseNumber(String(t.currentLooseValue),r.format);if(t.selectionEnd>t.selectionStart&&t.selectionEnd-t.selectionStart===String(t.currentLooseValue).length)S.current=!0;else{switch(e.keyCode){case 38:ge(n,t,r.step,r.min,r.max,r.format,l);break;case 40:ye(n,t,r.step,r.min,r.max,r.format,l);break;case 13:if(!1===r.rangeOnEnter)return;var o=fe(be(n,r.min,r.max),r.format,l),i=be(l.parseNumber(o,r.format),r.min,r.max);t.eventValue=i,t.currentLooseValue=fe(i,r.format,l),t.selectionStart=t.selectionEnd=t.currentLooseValue.length;break;case 110:var a=p.current,s=l.numberSymbols();a&&(t.currentLooseValue=t.currentLooseValue.slice(0,t.selectionStart)+s.decimal+t.currentLooseValue.slice(t.selectionEnd),t.selectionStart=t.selectionEnd=t.selectionStart+1,t=_e(t,r.format,l));break;default:return}e.preventDefault(),L(e,t)}}),[r.format,r.min,r.max,r.step,r.onChange,r.rangeOnEnter,L,A]),B=i.useCallback((function(){S.current=!0}),[]),U=i.useCallback((function(e){if(!r.readOnly&&!r.disabled){var t=A();ge(l.parseNumber(String(t.currentLooseValue),r.format),t,r.step,r.min,r.max,r.format,l),L(e,t)}}),[r.format,r.min,r.max,r.step,r.onChange,r.readOnly,r.disabled,L,A]),W=i.useCallback((function(e){if(!r.readOnly&&!r.disabled){var t=A();ye(l.parseNumber(String(t.currentLooseValue),r.format),t,r.step,r.min,r.max,r.format,l),L(e,t)}}),[r.format,r.min,r.max,r.step,r.onChange,r.readOnly,r.disabled,L,A]),K=i.useCallback((function(e){document&&document.activeElement===p.current&&p.current&&!r.readOnly&&!r.disabled&&(e.nativeEvent.deltaY<0&&U(e),e.nativeEvent.deltaY>0&&W(e))}),[U,W,r.disabled,r.readOnly]),q=i.useCallback((function(e){k.current.currentLooseValue=O.current,k.current.focused=!0,(0,v.N)(r.onFocus,e,F(),{}),w((function(e){return!e}))}),[r.onFocus,w,F]),Y=i.useCallback((function(e){k.current={eventValue:null,prevLooseValue:"",currentLooseValue:"",focused:!1,selectionStart:void 0,selectionEnd:void 0,decimalSelect:!1,valueIsCorrected:!1,valueIsOutOfRange:!1},(0,v.N)(r.onBlur,e,F(),{}),w((function(e){return!e}))}),[r.onBlur,w,F]),G=i.useCallback((function(e){document&&p.current&&(e.preventDefault(),document.activeElement!==p.current&&p.current.focus())}),[]);i.useLayoutEffect((function(){p.current&&void 0!==k.current.selectionStart&&void 0!==k.current.selectionEnd&&(p.current.selectionStart=k.current.selectionStart,p.current.selectionEnd=k.current.selectionEnd,k.current.selectionStart=void 0,k.current.selectionEnd=void 0)}),[E]);var Z=!P()||M().valid,X=i.createElement("span",{dir:r.dir,style:r.label?r.style:Re({width:r.width},r.style),className:(0,u.A)("k-input","k-numerictextbox",(n={},n["k-input-".concat(le.G.sizeMap[r.size]||r.size)]=r.size,n["k-input-".concat(r.fillMode)]=r.fillMode,n["k-rounded-".concat(le.G.roundedMap[r.rounded]||r.rounded)]=r.rounded,n["k-invalid"]=!Z,n["k-required"]=r.required,n["k-disabled"]=r.disabled,n),r.className),"aria-disabled":r.disabled?"true":void 0},i.createElement("input",{value:null===x?"":x,tabIndex:(0,c.p)(r.tabIndex,r.disabled),accessKey:r.accessKey,disabled:r.disabled,title:r.title,"aria-valuemin":r.min,"aria-valuemax":r.max,"aria-label":r.ariaLabel,"aria-labelledby":r.ariaLabelledBy,"aria-describedby":r.ariaDescribedBy,placeholder:r.placeholder,spellCheck:!1,autoComplete:"off",autoCorrect:"off",type:r.inputType||"tel",className:"k-input-inner",id:a,name:r.name,readOnly:r.readOnly,style:r.inputStyle,onChange:V,onFocus:q,onBlur:Y,onKeyDown:z,onPaste:B,onWheel:K,ref:p}),r.children,r.spinners&&i.createElement("span",{className:"k-input-spinner k-spin-button",onMouseDown:G},i.createElement(H.z,{tabIndex:-1,type:"button",icon:"arrow-n",rounded:null,className:"k-spinner-increase","aria-label":d.toLanguageString(y,j[y]),title:d.toLanguageString(y,j[y]),onClick:U}),i.createElement(H.z,{tabIndex:-1,type:"button",icon:"arrow-s",rounded:null,className:"k-spinner-decrease","aria-label":d.toLanguageString(b,j[b]),title:d.toLanguageString(b,j[b]),onClick:W})));return r.label?i.createElement(se._,{label:r.label,editorId:a,editorValue:null===x?"":x,editorValid:Z,editorDisabled:r.disabled,editorPlaceholder:r.placeholder,children:X,style:{width:r.width},dir:r.dir}):X}));Pe.propTypes={value:a.number,defaultValue:a.number,step:a.number,format:a.oneOfType([a.string,a.shape({style:a.oneOf(["decimal","currency","percent","scientific","accounting"]),currency:a.string,currencyDisplay:a.oneOf(["symbol","code","name"]),useGrouping:a.bool,minimumIntegerDigits:a.number,minimumFractionDigits:a.number,maximumFractionDigits:a.number})]),width:a.oneOfType([a.string,a.number]),tabIndex:a.number,accessKey:a.string,title:a.string,placeholder:a.string,min:a.number,max:a.number,spinners:a.bool,disabled:a.bool,readOnly:a.bool,dir:a.string,name:a.string,label:a.string,validationMessage:a.string,required:a.bool,id:a.string,rangeOnEnter:a.bool,ariaLabelledBy:a.string,ariaDescribedBy:a.string,ariaLabel:a.string,onChange:a.func,onFocus:a.func,onBlur:a.func,size:a.oneOf([null,"small","medium","large"]),rounded:a.oneOf([null,"small","medium","large","full"]),fillMode:a.oneOf([null,"solid","flat","outline"])},Pe.displayName="KendoNumericTextBox",Pe.defaultProps={step:1,spinners:!0,disabled:!1,required:!1,validityStyles:!0,rangeOnEnter:!0,onChange:function(e){},onFocus:function(e){},onBlur:function(e){},size:"medium",rounded:"medium",fillMode:"solid"};var Ne=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Fe=function(){return Fe=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},Fe.apply(this,arguments)},Ae=function(e){function t(n){var r=e.call(this,n)||this;return r._input=null,r._inputId=(0,s.M)(),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||Boolean(e[n]));return t},r.setValidity=function(){r._input&&r._input.setCustomValidity&&(r.validity.valid||!r.validityStyles?r._input.classList.remove("k-invalid"):r._input.classList.add("k-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-empty")&&t.classList.remove("k-empty")}},(0,f.s)(h),r.state={value:r.props.defaultValue||t.defaultProps.defaultValue},r}return Ne(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._input},enumerable:!1,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:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!1,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 Fe(Fe({},e),{customError:void 0!==this.props.validationMessage,valid:void 0!==this.props.valid?this.props.valid:!this._input||!this.isInvalid(e)})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!1,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,a=(t.validationMessage,t.defaultValue,t.valid,t.visited,t.touched,t.modified,t.ariaLabelledBy),l=t.ariaDescribedBy,s=(t.validityStyles,t.style),c=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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["className","label","id","validationMessage","defaultValue","valid","visited","touched","modified","ariaLabelledBy","ariaDescribedBy","validityStyles","style"]),d=o||this._inputId,p=!this.validityStyles||this.validity.valid,f=(0,u.A)(n,"k-input k-input-md k-rounded-md k-input-solid"),h=i.createElement("input",Fe({"aria-labelledby":a,"aria-describedby":l},c,{style:r?void 0:s,value:this.value,id:d,className:f,onChange:this.handleChange,onAnimationStart:this.handleAutoFill,ref:function(t){e._input=t}}));return r?i.createElement(se._,{label:r,editorId:d,editorValue:String(this.value),editorValid:p,editorDisabled:c.disabled,editorPlaceholder:c.placeholder,children:h,style:s,dir:c.dir}):h},t.displayName="Input",t.propTypes={label:a.string,validationMessage:a.string,required:a.bool,validate:a.bool,id:a.string,ariaLabelledBy:a.string,ariaDescribedBy:a.string},t.defaultProps={defaultValue:"",required:!1,validityStyles:!0},t}(i.Component),je=(0,p.Y)(),Le=(0,p.u)(je,Ae);Le.displayName="KendoReactInput";var Ve=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const ze=function(e){function t(t){var n=e.call(this,t)||this;return n.onChange=function(e){var t=e.target.value,r=$(t,"rgba");n.setState({hex:t}),G(r)&&n.props.onHexChange(t,r,e)},n.onBlur=function(){G($(n.state.hex,"rgba"))||n.setState({hex:n.state.originalHex})},n.state={hex:n.props.hex,originalHex:n.props.hex},n}return Ve(t,e),t.prototype.render=function(){return i.createElement(Le,{value:this.state.hex,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}(i.Component);var Be=n(3287),He=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ue=function(){return Ue=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},Ue.apply(this,arguments)},We=["rgba","rgb","hex"],Ke=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={inputMode:We[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 He(t,e),t.prototype.render=function(){var e=(0,g.provideLocalizationService)(this),t=e.toLanguageString(E,j[O]),n=e.toLanguageString(E,j[E]),r=e.toLanguageString(E,j[w]),o=e.toLanguageString(E,j[k]),a=e.toLanguageString(E,j[S]);return i.createElement("div",{className:"k-colorgradient-inputs k-hstack"},i.createElement("div",{className:"k-vstack"},i.createElement(H.z,{fillMode:"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 k-input"},i.createElement(ze,{hex:this.props.hex,onHexChange:this.props.onHexChange,disabled:this.props.disabled})),i.createElement(Be._,{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(Pe,{value:this.props.rgba.r,min:0,max:255,spinners:!1,format:"n",onChange:this.onRgbaRChange,disabled:this.props.disabled}),i.createElement(Be._,{className:"k-colorgradient-input-label"},n)),i.createElement("div",{className:"k-vstack"},i.createElement(Pe,{value:this.props.rgba.g,min:0,max:255,spinners:!1,format:"n",onChange:this.onRgbaGChange,disabled:this.props.disabled}),i.createElement(Be._,{className:"k-colorgradient-input-label"},r)),i.createElement("div",{className:"k-vstack"},i.createElement(Pe,{value:this.props.rgba.b,min:0,max:255,spinners:!1,format:"n",onChange:this.onRgbaBChange,disabled:this.props.disabled}),i.createElement(Be._,{className:"k-colorgradient-input-label"},o))),"rgba"===this.state.inputMode&&i.createElement("div",{className:"k-vstack"},this.props.opacity&&i.createElement(Pe,{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(Be._,{className:"k-colorgradient-input-label"},a)))},t.prototype.dispatchRgbaChange=function(e,t){var n=Ue({},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=We.length-1===We.indexOf(this.state.inputMode)?0:We.indexOf(this.state.inputMode)+1;if(this.props.opacity)this.setState({inputMode:We[e]});else{var t="rgba"===We[e]?e+1:e;this.setState({inputMode:We[t]})}},t}(i.Component);const qe=Ke;(0,g.registerForIntl)(Ke),(0,g.registerForLocalization)(Ke);var Ye=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ge=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ye(t,e),t.prototype.render=function(){var e=(0,g.provideLocalizationService)(this),t=e.toLanguageString(D,j[D]),n=e.toLanguageString(x,j[x]),r=e.toLanguageString(I,j[I]),o=e.toLanguageString(T,j[T]),a=e.toLanguageString(_,j[_]),l=oe(this.props.rgba,this.props.bgColor),s=4.5.toFixed(1),u=7..toFixed(1),c="".concat(t,": ").concat(l.toFixed(2)),d="".concat(n,": ").concat(s),p="".concat(r,": ").concat(u),f=i.createElement("span",{className:"k-contrast-validation k-text-success"},o," ",i.createElement("span",{className:"k-icon k-i-check"})),h=i.createElement("span",{className:"k-contrast-validation k-text-error"},a," ",i.createElement("span",{className:"k-icon k-i-close"}));return i.createElement("div",{className:"k-vbox k-colorgradient-color-contrast"},i.createElement("div",{className:"k-contrast-ratio"},i.createElement("span",{className:"k-contrast-ratio-text"},c),l>=4.5?i.createElement("span",{className:"k-contrast-validation k-text-success"},i.createElement("span",{className:"k-icon k-i-check"}),l>=7&&i.createElement("span",{className:"k-icon k-i-check"})):i.createElement("span",{className:"k-contrast-validation k-text-error"},i.createElement("span",{className:"k-icon k-i-close"}))),i.createElement("div",null,i.createElement("span",null,d),l>=4.5?f:h),i.createElement("div",null,i.createElement("span",null,p),l>=7?f:h))},t}(i.Component);(0,g.registerForLocalization)(Ge);var Ze=function(e,t){if(0===e.length)return"";var n=e.reduce((function(e,n,r,o){return 0===r?"M ".concat(n[0],",").concat(n[1]):"".concat(e," ").concat(t(n,r,o))}),"");return'<path d="'.concat(n,'" fill="none" stroke="white" stroke-width="1"/>')},Xe=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)}},$e=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $e(t,e),t.prototype.renderSvgCurveLine=function(){var e,t,n=this,r=this.props.metrics,o=function(e,t,i,a,l){var s=(i+a)/2,u=Object.assign({},n.props.hsva,{s:t/r.width,v:1-s/r.height}),c=oe(J(ee(u)),J(n.props.backgroundColor||""));return i+.5>a?c<e+1&&c>e-1?s:null:l(c,e)?o(e,t,i,a-(a-i)/2,l):o(e,t,i+(a-i)/2,a,l)},i=function(e,t,n){void 0===n&&(n=!1);for(var i=[],a=0;a<=r.width;a+=r.width/t){var l=o(e,a,0,r.height,n?function(e,t){return e<t}:function(e,t){return e>t});null!==l&&i.push([a,l])}return i},a=(t=Xe,e=function(e,n,r,o){var i=t(n||e,r||e),a=i.angle+(o?Math.PI:0),l=.1*i.length;return[e[0]+Math.cos(a)*l,e[1]+Math.sin(a)*l]},function(t,n,r){var o=e(r[n-1],r[n-2],t),i=o[0],a=o[1],l=e(t,r[n-1],r[n+1],!0),s=l[0],u=l[1];return"C ".concat(i,",").concat(a," ").concat(s,",").concat(u," ").concat(t[0],",").concat(t[1])});return Ze(i(4.5,16),a)+Ze(i(4.5,16,!0),a)+Ze(i(7,16),a)+Ze(i(7,16,!0),a)},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 i.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}(i.Component),Je=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),et="rgba(255, 255, 255, 1)",tt=function(e){function t(n){var r=e.call(this,n)||this;r.wrapper=null,r.onHexChange=function(e,t,n){if(r.isUncontrolled){var o=Q(t);r.setState({hsva:o,backgroundColor:te(o.h),rgba:J(t),hex:e})}else!function(e,t,n){ie[e]={value:t,hex:n}}(r.state.guid,t,e);r.dispatchChangeEvent(t,n,n.nativeEvent)},r.onRgbaChange=function(e,t){var n=function(e){var t=Z(e.r,0,255),n=Z(e.g,0,255),r=Z(e.b,0,255),o=Z(e.a,0,1);return X.Color.fromBytes(t,n,r,o).toCssRgba()}(e);if(r.isUncontrolled){var o=Q(n),i=$(n,"hex");r.setState({hsva:o,backgroundColor:te(o.h),rgba:e,hex:i})}else!function(e,t,n){ie[e]={value:t,rgba:n}}(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,i=Z(n,0,t.width),a=Z(o,0,t.height),l=Object.assign({},r.state.hsva,{s:i/t.width,v:1-a/t.height});r.handleHsvaChange(l,e,e.nativeEvent)},r.onFocus=function(e){r.props.onFocus&&r.props.onFocus.call(void 0,{nativeEvent:e,target:r})},r.focus=function(){(0,l.n)(r.wrapper)},(0,f.s)(h);var o=n.value||n.defaultValue||$(et,"rgba");return r.state=Object.assign({},t.getStateFromValue(o),{isFirstRender:!0,guid:(0,s.M)()}),r}return Je(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(){var e;e=this.state.guid,delete ie[e]},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="".concat(n,"px"),e.left="".concat(r,"px")}return i.createElement("div",{className:"k-hsv-draghandle k-draghandle",style:e})},t.prototype.handleHsvaChange=function(e,t,n){var r=ee(e);if(this.isUncontrolled){var o=$(r,"hex");this.setState({hsva:e,backgroundColor:te(e.h),rgba:J(r),hex:o})}else!function(e,t,n){ie[e]={value:t,hsva:n}}(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){G($(e,"hex"))||(e=et);var n=function(e,t){if(e){var n=ie[e];return n&&n.value===t?n.hsva:void 0}}(t,e)||Q(e),r=function(e,t){if(e){var n=ie[e];return n&&n.value===t?n.rgba:void 0}}(t,e)||J(e),o=function(e,t){if(e){var n=ie[e];return n&&n.value===t?n.hex:void 0}}(t,e)||$(e,"hex");return{hsva:n,backgroundColor:te(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, ".concat(e,")"))},Object.defineProperty(t.prototype,"isUncontrolled",{get:function(){return void 0===this.props.value},enumerable:!1,configurable:!0}),t.prototype.getGradientRectMetrics=function(){return this.gradientWrapper.getBoundingClientRect()},t.prototype.render=function(){var e=this,t=(0,u.A)("k-colorgradient",{"k-disabled":this.props.disabled});return i.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:(0,c.p)(this.props.tabIndex,this.props.disabled),"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,onFocus:this.onFocus},i.createElement("div",{className:"k-colorgradient-canvas k-hstack"},i.createElement("div",{className:"k-hsv-rectangle",style:{background:this.state.backgroundColor}},i.createElement(d._,{onDrag:this.onDrag,onRelease:this.onRelease,ref:function(t){return e.gradientWrapper=t?t.element:void 0}},i.createElement("div",{className:"k-hsv-gradient",style:{touchAction:"none"},onClick:this.onGradientWrapperClick},this.renderRectangleDragHandle())),this.props.backgroundColor&&!this.state.isFirstRender&&i.createElement(Qe,{metrics:this.gradientWrapper?this.getGradientRectMetrics():void 0,hsva:this.state.hsva,backgroundColor:this.props.backgroundColor})),i.createElement("div",{className:"k-hsv-controls k-hstack"},i.createElement(Y,{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&&i.createElement(Y,{value:G(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}}))),i.createElement(qe,{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&&i.createElement(Ge,{bgColor:J(this.props.backgroundColor),rgba:this.state.rgba}))},t.displayName="ColorGradient",t.propTypes={defaultValue:a.string,value:a.string,onChange:a.func,onFocus:a.func,opacity:a.bool,backgroundColor:a.string,disabled:a.bool,style:a.any,id:a.string,ariaLabelledBy:a.string,ariaDescribedBy:a.string},t.defaultProps={opacity:!0},t}(i.Component),nt=(0,p.Y)(),rt=(0,p.u)(nt,tt);rt.displayName="KendoReactColorGradient";var ot=function(){function e(){this.colorRows=[]}return e.prototype.setColorMatrix=function(e,t){if(this.colorRows=[],G(e)&&e.length){t=t||e.length;for(var n=0;n<e.length;n+=t){var r=e.slice(n,t+n);this.colorRows.push(r)}}},e.prototype.getCellCoordsFor=function(e){var t=this;if(G(e)){var n=e?(0,X.parseColor)(e,!0):e,r=[e];G(n)&&r.push(n.toCss(),n.toCssRgba());for(var o=function(e){for(var n=function(n){if(r.some((function(r){return r===t.colorRows[e][n]})))return{value:{row:e,col:n}}},o=0;o<i.colorRows[e].length;o++){var a=n(o);if("object"==typeof a)return a}},i=this,a=0;a<this.colorRows.length;a++){var l=o(a);if("object"==typeof l)return l.value}}},e.prototype.getColorAt=function(e){if(G(e)&&G(this.colorRows[e.row]))return this.colorRows[e.row][e.col]},e.prototype.getNextCell=function(e,t,n){if(!(G(e)&&G(e.row)&&G(e.col)))return{row:0,col:0};var r=this.clampIndex(e.row+n,this.colorRows.length-1);return{row:r,col:this.clampIndex(e.col+t,this.colorRows[r].length-1)}},e.prototype.clampIndex=function(e,t){return e<0?0:e>t?t:e},e}(),it={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}},at=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),lt="office",st=function(e){function t(t){var n=e.call(this,t)||this;return n.wrapper=null,n.paletteService=null,n.guid=(0,s.M)(),n.focus=function(){n.wrapper&&n.wrapper.focus()},n.onKeyDown=function(e){switch(e.keyCode){case m.R.down:n.handleCellNavigation(0,1);break;case m.R.up:n.handleCellNavigation(0,-1);break;case m.R.right:n.handleCellNavigation(1,0);break;case m.R.left:n.handleCellNavigation(-1,0);break;case m.R.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.paletteService&&(n.setState({focusedColor:n.state.selectedColor||n.paletteService.colorRows[0][0]}),n.props.onFocus&&n.props.onFocus.call(void 0,e))},n.onBlur=function(){n.setState({focusedColor:void 0})},(0,f.s)(h),n.state={selectedColor:void 0!==n.props.value?n.props.value:n.props.defaultValue,isFirstRender:!0},n}return at(t,e),t.prototype.render=function(){var e=this,t=this.getPaletteInfo(),n=this.paletteService=new ot;n.setColorMatrix(t.colors,t.columns);var r=n.getCellCoordsFor(this.state.selectedColor),o=n.getCellCoordsFor(this.state.focusedColor),a=(0,u.A)("k-colorpalette",{"k-disabled":this.props.disabled});return t.colors.length?i.createElement("div",{id:this.props.id,className:a,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:(0,c.p)(this.props.tabIndex,this.props.disabled),ref:function(t){return e.wrapper=t}},i.createElement("div",{className:"k-colorpalette-table-wrap",role:"grid"},i.createElement("table",{className:"k-colorpalette-table k-palette",role:"presentation"},i.createElement("tbody",null,this.renderRows(n.colorRows,r,o))))):""},t.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},t.prototype.handleCellNavigation=function(e,t){if(this.paletteService)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]})},t.prototype.handleEnter=function(e){this.isUncontrolled&&this.setState({selectedColor:this.state.focusedColor}),this.dispatchChangeEvent(this.state.focusedColor,e)},t.prototype.dispatchChangeEvent=function(e,t){(0,v.N)(this.props.onChange,t,this,{value:e,rgbaValue:$(e,"rgba")})},Object.defineProperty(t.prototype,"focusedColorCooridanates",{get:function(){return this.state.focusedColor&&this.paletteService?this.paletteService.getCellCoordsFor(this.state.focusedColor):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUncontrolled",{get:function(){return void 0===this.props.value},enumerable:!1,configurable:!0}),t.prototype.getPaletteInfo=function(){if("string"==typeof this.props.palette){var e=it[this.props.palette];return G(e)?{colors:e.colors,columns:this.props.columns||e.columns||10}:{colors:[],columns:0}}return{colors:this.props.palette||[],columns:this.props.columns||10}},t.prototype.renderRows=function(e,t,n){var r=this;return e.map((function(e,o){return i.createElement("tr",{role:"row",key:o},r.renderColumns(e,o,t,n))}))},t.prototype.renderColumns=function(e,t,n,r){var o=this,a=void 0!==n&&n.row===t,l=n&&n.col,s=void 0!==r&&r.row===t,c=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=a&&l===n,d=(0,u.A)("k-colorpalette-tile",{"k-selected":r,"k-focus":s&&c===n});return i.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})}))},t.prototype.createCellId=function(e){return"".concat(this.guid,"_").concat(e.row,"_").concat(e.col)},t.displayName="ColorPalette",t.propTypes={palette:a.oneOfType([a.arrayOf(a.string.isRequired),a.string]),columns:a.number,tileSize:a.any,defaultValue:a.string,value:a.string,disabled:a.bool,tabIndex:a.number,onChange:a.func,onFocus:a.func,id:a.string,ariaLabelledBy:a.string,ariaDescribedBy:a.string},t.defaultProps={palette:lt,tileSize:24},t}(i.Component),ut=(0,p.Y)(),ct=(0,p.u)(ut,st);ct.displayName="KendoReactColorPalette";var dt=n(9222),pt=function(){return pt=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},pt.apply(this,arguments)},ft=function(e){var t=e.popupSettings||{},n="rtl"===e.dir?"right":"left",r=i.useMemo((function(){return{horizontal:n,vertical:"bottom"}}),[n]),o=i.useMemo((function(){return{horizontal:n,vertical:"top"}}),[n]);return i.createElement(i.Fragment,null,e.input,e.button,i.createElement(dt.G,pt({style:pt(pt({},(t||{}).style),{direction:e.dir})},t,{anchor:e.popupAnchor,anchorAlign:r,popupAlign:o,show:e.open,onOpen:e.onOpen,onClose:e.onClose,className:(0,u.A)("k-reset",t.className)}),e.content))};ft.displayName="KendoPickerComponent";var ht=function(){return ht=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},ht.apply(this,arguments)},mt={palette:lt,tileSize:24},vt=function(e){return void 0!==e},gt=(0,p.Y)(),yt=i.forwardRef((function(e,t){var n,r;(0,f.s)(h);var o=(0,ae.Y)(gt,e),a=(0,g.useLocalization)(),l=o.size,s=void 0===l?bt.size:l,d=o.rounded,p=void 0===d?bt.rounded:d,v=o.fillMode,y=void 0===v?bt.fillMode:v,b=o.popupSettings,C=o.gradientSettings,E=o.paletteSettings,w=o.valid,k=o.disabled,S=o.tabIndex,O=o.view,D=o.icon,x=o.iconClassName,I=o.onChange,T=o.onFocus,_=o.onBlur,R=o.onActiveColorClick,M=i.useRef(null),P=i.useRef(null),N=i.useRef(null),F=i.useRef(),V=i.useRef(null),z=i.useCallback((function(){M.current&&M.current.focus()}),[]);i.useImperativeHandle(t,(function(){return{element:M.current,actionElement:V.current,focus:z}}));var B=i.useState(!1),U=B[0],W=B[1],K=i.useState(o.defaultValue),q=K[0],Y=K[1],G=i.useState(!1),Z=G[0],X=G[1],$=vt(o.value),Q=vt(o.open),J=$?o.value:q,ee=Q?o.open:Z,te=i.useCallback((function(e,t){Q||(!e&&!t&&M&&M.current&&M.current.focus(),X(e))}),[Q]),ne=i.useCallback((function(e){var t=e.altKey,n=e.keyCode;if(n!==m.R.esc)return n!==m.R.enter||Q?void(!t||n!==m.R.up&&n!==m.R.down||(e.preventDefault(),e.stopPropagation(),n===m.R.up&&M&&M.current&&(M.current.focus(),te(!1)),n===m.R.down&&te(!0))):(e.preventDefault(),e.stopPropagation(),void te(!ee));te(!1)}),[ee,Q]),re=i.useCallback((function(){Q||(P.current?P.current.focus():N.current&&N.current.focus())}),[Q]),oe=i.useCallback((function(){te(!ee,!0)}),[ee]),ie=i.useCallback((function(e){R&&R.call(void 0,{syntheticEvent:e,nativeEvent:e.nativeEvent,value:J})}),[R,J]),se=i.useCallback((function(e){F.current?(clearTimeout(F.current),F.current=void 0):W(!0),T&&T.call(void 0,{nativeEvent:e.nativeEvent,syntheticEvent:e})}),[T]),ue=i.useCallback((function(){te(!1,!0),W(!1),F.current=void 0}),[]),ce=i.useCallback((function(e){clearTimeout(F.current),F.current=window.setTimeout(ue),_&&_.call(void 0,{nativeEvent:e.nativeEvent,syntheticEvent:e})}),[_]),de=i.useCallback((function(e,t){var n=t?e.rgbaValue:e.value;$||Y(n),t&&te(!1),I&&I.call(void 0,{value:n,nativeEvent:e.nativeEvent,syntheticEvent:e.syntheticEvent})}),[$,I]),pe=i.useCallback((function(e){return de(e,!0)}),[vt,de]),fe=(0,L.n)(M,o.dir),he=!1!==w;return i.createElement("span",{id:o.id,"aria-labelledby":o.ariaLabelledBy,"aria-describedby":o.ariaDescribedBy,className:(0,u.A)("k-colorpicker","k-picker","k-icon-picker",(n={},n["k-picker-".concat(le.G.sizeMap[s]||s)]=s,n["k-picker-".concat(y)]=y,n["k-rounded-".concat(le.G.roundedMap[p]||p)]=p,n["k-invalid"]=!he,n["k-disabled"]=k,n["k-focus"]=U,n)),ref:M,tabIndex:(0,c.p)(S,k),title:o.title,onKeyDown:ne,onFocus:se,onBlur:ce,dir:fe},i.createElement(ft,{dir:fe,open:ee,onOpen:re,popupAnchor:M.current||void 0,popupSettings:ht({},b),input:i.createElement("span",{onClick:ie,className:"k-input-inner"},i.createElement("span",{className:(0,u.A)("k-value-icon","k-color-preview",{"k-no-color":!J,"k-icon-color-preview":D||x})},(x||D)&&i.createElement("span",{className:(0,u.A)("k-color-preview-icon",x,(r={},r["k-icon k-i-".concat(D)]=D&&!x,r))}),i.createElement("span",{className:"k-color-preview-mask",style:{backgroundColor:J}}))),button:i.createElement(H.z,{tabIndex:-1,type:"button",onClick:oe,className:"k-input-button",rounded:null,icon:"arrow-s","aria-label":a.toLanguageString(A,j[A])}),content:i.createElement(i.Fragment,null,("combo"===O||"gradient"===O)&&i.createElement(rt,ht({},C,{tabIndex:0,ref:P,value:J,onChange:de})),("combo"===O||"palette"===O)&&i.createElement(ct,ht({},E,{ref:N,value:J,onChange:pe})))}))}));yt.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,size:a.oneOf([null,"small","medium","large"]),rounded:a.oneOf([null,"small","medium","large","full"]),fillMode:a.oneOf([null,"solid","flat","outline"])};var bt={size:"medium",rounded:"medium",fillMode:"solid",view:"palette",gradientSettings:{opacity:!0},paletteSettings:mt};yt.defaultProps=bt,yt.displayName="KendoColorPicker";var Ct,Et=n(7711),wt=i.forwardRef((function(e,t){(0,f.s)(h);var n=i.useRef(null),r=i.useRef(null),o=i.useRef(null),a=i.useState("ColorGradient"===(e.view||"ColorGradient")),l=a[0],s=a[1],d=i.useState("rgba(255, 255, 255, 1)"),p=d[0],m=d[1],v=i.useState("rgba(255, 255, 255, 1)"),g=v[0],y=v[1],b=i.useCallback((function(){n.current&&n.current.focus()}),[n]);i.useImperativeHandle(n,(function(){return{element:r.current,focus:b,props:e}})),i.useImperativeHandle(t,(function(){return n.current}));var C=i.useCallback((function(e){("ColorGradient"===e&&!l||"ColorPalette"===e&&l)&&s(!l)}),[l]),E=i.useCallback((function(){m("rgba(255, 255, 255, 1)")}),[]),w=i.useCallback((function(e){m(e.value)}),[]),k=i.useCallback((function(){y(p)}),[p]),S=i.useCallback((function(){y("rgba(255, 255, 255, 1)")}),[]),O=i.useCallback((function(){m(g)}),[g]),D=i.useCallback((function(){r.current&&r.current.focus()}),[r]),x=i.useCallback((function(){y(p)}),[p]);return i.createElement("div",{id:e.id,style:e.style,ref:r,tabIndex:(0,c.p)(e.tabIndex,e.disabled),className:(0,u.A)("k-flatcolorpicker k-coloreditor",{"k-disabled":e.disabled},e.className),onBlur:x},i.createElement(i.Fragment,null,e.header||i.createElement("div",{className:"k-coloreditor-header k-hstack"},i.createElement("div",{className:"k-coloreditor-header-actions k-hstack"},i.createElement(Et.h,null,i.createElement(H.z,{type:"button",togglable:!0,fillMode:"flat",selected:l,onClick:function(){return C("ColorGradient")}},i.createElement("span",{className:"k-icon k-i-color-canvas"})),i.createElement(H.z,{type:"button",togglable:!0,fillMode:"flat",selected:!l,onClick:function(){return C("ColorPalette")}},i.createElement("span",{className:"k-icon k-i-palette"})))),i.createElement("div",{className:"k-spacer"}),i.createElement("div",{className:"k-coloreditor-header-actions k-hstack"},e.showClearButton&&St.showClearButton&&i.createElement(H.z,{type:"button",fillMode:"flat",onClick:E},i.createElement("span",{className:"k-icon k-i-reset-color"})),e.showPreview&&St.showPreview&&i.createElement("div",{className:"k-coloreditor-preview k-vstack"},i.createElement("span",{className:"k-coloreditor-preview-color k-color-preview",style:{background:p}}),i.createElement("span",{className:"k-coloreditor-current-color k-color-preview",style:{background:g},onClick:O})))),i.createElement("div",{className:"k-coloreditor-views k-vstack"},l?i.createElement(rt,{ref:o,value:p,onChange:w,onFocus:D}):i.createElement(ct,{value:p,onChange:w,onFocus:D})),e.showButtons&&St.showButtons&&i.createElement("div",{className:"k-coloreditor-footer k-actions k-actions-end"},i.createElement(H.z,{type:"button",className:"k-coloreditor-cancel",onClick:S},j[R]),i.createElement(H.z,{type:"button",className:"k-coloreditor-apply k-primary",onClick:k},j[M]))))})),kt={id:a.string,value:a.string,view:a.string,header:a.elementType,showClearButton:a.bool,showPreview:a.bool,showButtons:a.bool},St={showClearButton:!0,showPreview:!0,showButtons:!0};wt.displayName="KendoFlatColorPicker",wt.propTypes=kt,wt.defaultProps=St,function(e){e[e.Literal=0]="Literal",e[e.Mask=1]="Mask",e[e.Undefined=2]="Undefined"}(Ct||(Ct={}));var Ot=function(){function e(e,t,n){void 0===n&&(n=Ct.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: '".concat(this.value,"', rest: ").concat(this.rest," })")},e}(),Dt=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}(),xt=function(e){return(e||"").split("")},It=function(){function e(e){this.parse=e}return e.prototype.run=function(e,t){return void 0===t&&(t=""),e instanceof Dt?this.parse(e):this.parse(new Dt(xt(e),xt(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===Ct.Literal},e}(),Tt=function(e,t){return new It((function(n){var r=n.next().char,o=e[r];return"\\"===r?(r=n.next().char,new Ot(t.literal(r),n)):new Ot(o?t.mask(o):t.literal(r),n)}))},_t=function(e){return new It((function(t){var n=e.prompt,r=e.promptPlaceholder,o=t.next().char;return new Ot(o===n?r:o,t)}))},Rt=function(e){return new It((function(t){var n=t.next().char;return new Ot(e?n:"",t)}))},Mt=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 It((function(e){return new Ot(t,e)}))));var t},Pt=function(e){return new It((function(t){for(var n=new Ot([],t);!t.eof();)n=n.concat(e.run(t));return n}))},Nt=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,i=e.promptPlaceholder,a=void 0===i?" ":i,l=e.rules,s=void 0===l?{}:l,u=e.includeLiterals,c=void 0!==u&&u;this.mask=n,this.prompt=o,this.promptPlaceholder=a,this.rules=s,this.includeLiterals=c,this.tokenize()},e.prototype.validationValue=function(e){void 0===e&&(e="");var t=e;return Mt(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?(Mt(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?(Mt(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,r){var o="",i=r,a=t.split("").slice(0,n),l=t.split("").slice(r);return Mt(this.maskTokens.slice(n,r)).run(e).fold((function(e){o=a.concat(e).concat(l).join("")})),{selection:i,value:o}},e.prototype.maskRemoved=function(e,t,n){var r=this,o="",i=n,a=e.split("").slice(n),l=e.split("").slice(0,n).join(""),s=this.maskTokens.length-(e.length-n);return Mt(this.maskTokens.slice(0,s)).run(l,t).fold((function(e){i=r.adjustPosition(e,i),o=e.concat(a).join("")})),{selection:i,value:o}},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 r=this,o="",i=n,a=e.slice(0,n);return Mt(this.unmaskTokens).run(a,t).chain((function(e){i=e.join("").length;var n=t.slice(i);return Mt(r.maskTokens).run(e.join("")+n,t)})).fold((function(e){o=e.join("")})),{selection:i,value:o}},Object.defineProperty(e.prototype,"maskTokenCreator",{get:function(){var e=this.prompt,t=this.promptPlaceholder;return{literal:function(e){return t=e,new It((function(e){return e.peek().char===t?(e.eat(),new Ot(t,e,Ct.Literal)):new Ot(t,e,Ct.Literal)}));var t},mask:function(n){return(r={prompt:e,promptPlaceholder:t},function(e){return new It((function(t){for(var n=r.prompt,o=r.promptPlaceholder;!t.eof();){var i=t.peek(),a=i.char,l=i.control;if(a===l&&l===n)return t.eat(),new Ot(n,t,Ct.Mask);if(e.test(a))return t.eat(),new Ot(a,t,Ct.Mask);if(a===o)return t.eat(),new Ot(n,t,Ct.Mask);t.eat_input()}return t.eat(),new Ot(n,t,Ct.Mask)}))})(n);var r}}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"unmaskTokenCreator",{get:function(){var e=this;return{literal:function(e){return t=e,new It((function(e){return e.eof()?new Ot("",e):(e.peek().char===t&&e.eat(),new Ot(t,e))}));var t},mask:function(t){return(n=e.prompt,function(e){return new It((function(t){for(;!t.eof();){var r=t.peek(),o=r.char,i=r.control;if(o===n&&i===n)return t.eat(),new Ot(o,t);if(e.test(o))return t.eat(),new Ot(o,t);t.eat_input()}return t.eat(),new Ot("",t)}))})(t);var n}}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rawTokenCreator",{get:function(){var e=this,t=e.prompt,n=e.promptPlaceholder,r=e.includeLiterals;return{literal:function(e){return Rt(r)},mask:function(e){return _t({prompt:t,promptPlaceholder:n})}}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"validationTokenCreator",{get:function(){var e=this.prompt;return{literal:function(e){return Rt(!1)},mask:function(t){return _t({prompt:e,promptPlaceholder:""})}}},enumerable:!1,configurable:!0}),e.prototype.tokenize=function(){var e=this;Pt(Tt(this.rules,this.maskTokenCreator)).run(this.mask).fold((function(t,n){e.maskTokens=t})),Pt(Tt(this.rules,this.unmaskTokenCreator)).run(this.mask).fold((function(t,n){e.unmaskTokens=t})),Pt(Tt(this.rules,this.rawTokenCreator)).run(this.mask).fold((function(t,n){e.rawTokens=t})),Pt(Tt(this.rules,this.validationTokenCreator)).run(this.mask).fold((function(t,n){e.validationTokens=t}))},e}(),Ft={"#":/[\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]/},At=function(){return!1},jt=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Lt=function(){return Lt=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},Lt.apply(this,arguments)},Vt=function(e){function t(t){var n=e.call(this,t)||this;return n.state={},n._inputId="k-".concat((0,s.M)()),n._service=new Nt,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,i=n._selection[1]||0;if(!n.props.mask)return n._isPasted=!1,n._selection=[null,null],void n.triggerOnChange(r,e);var a,l=n.value;if(n._isPasted){n._isPasted=!1;var s=l.length-i,u=r.length-s;a=n._service.maskInRange(r.slice(o,u),l,o,i)}else a=n._service.maskInput(r,l,t.selectionStart||0);n._selection=[a.selection,a.selection],n.triggerOnChange(a.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||"")},(0,f.s)(h),n}return jt(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._input},enumerable:!1,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:!1,configurable:!0}),Object.defineProperty(t.prototype,"rawValue",{get:function(){return this._service.rawValue(this.value)},enumerable:!1,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:!1,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:t.defaultProps.required},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!1,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],i=e.selection,a=this.props.selection;(!i&&a||i&&a&&(i.start!==a.start||i.end!==a.end))&&(r=a.start,o=a.end),null!==r&&null!==o&&this.element.setSelectionRange(r,o)}var l,s;l=e,s=this.props,l.includeLiterals===s.includeLiterals&&l.mask===s.mask&&l.prompt===s.prompt&&l.promptPlaceholder===s.promptPlaceholder&&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}(l.rules,s.rules)||this.updateService(),this.setValidity()},t.prototype.componentDidMount=function(){this.updateService(),this.setValidity()},t.prototype.render=function(){var e,n=this,r=this.props,o=r.size,a=void 0===o?t.defaultProps.size:o,l=r.fillMode,s=void 0===l?t.defaultProps.fillMode:l,d=r.rounded,p=void 0===d?t.defaultProps.rounded:d,f=this.props.id||this._inputId,h=!this.validityStyles||this.validity.valid,m=this.props.style||{},v=i.createElement("span",{dir:this.props.dir,className:(0,u.A)("k-maskedtextbox k-input",(e={},e["k-input-".concat(le.G.sizeMap[a]||a)]=a,e["k-input-".concat(s)]=s,e["k-rounded-".concat(le.G.roundedMap[p]||p)]=p,e["k-invalid"]=!h,e["k-required"]=this.required,e["k-disabled"]=this.props.disabled,e),this.props.className),style:this.props.label?m:Lt({width:this.props.width},m)},i.createElement("input",{type:"text",autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:!1,className:"k-input-inner",value:this.value,id:f,"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,name:this.props.name,tabIndex:(0,c.p)(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(e){return n._input=e},onChange:this.onChangeHandler,onPaste:this.pasteHandler,onFocus:this.focusHandler,onBlur:this.blurHandler,onDragStart:At,onDrop:At}));return this.props.label?i.createElement(se._,{label:this.props.label,editorId:f,editorValue:this.value,editorValid:h,editorDisabled:this.props.disabled,editorPlaceholder:this.props.placeholder,children:v,style:{width:this.props.width},dir:this.props.dir}):v},t.prototype.triggerOnChange=function(e,t){if(this.setState({value:e}),this.props.onChange){this._valueDuringOnChange=e;var n={syntheticEvent:t,nativeEvent:t.nativeEvent,selectionStart:this._selection[0],selectionEnd:this._selection[1],target:this,value:this.value};this.props.onChange.call(void 0,n),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({},Ft,this.props.rules)},enumerable:!1,configurable:!0}),t.displayName="MaskedTextBox",t.propTypes={value:a.string,defaultValue:a.string,placeholder:a.string,title:a.string,dir:a.string,id:a.string,style:a.object,className:a.string,ariaLabelledBy:a.string,ariaDescribedBy:a.string,width:a.oneOfType([a.string,a.number]),tabIndex:a.number,accessKey:a.string,disabled:a.bool,readonly:a.bool,prompt:a.string,promptPlaceholder:a.string,includeLiterals:a.bool,maskValidation:a.bool,mask:a.string,rules:function(e,t,n){var r=e.rules;return void 0===r||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:a.shape({start:a.number.isRequired,end:a.number.isRequired}),name:a.string,label:a.string,validationMessage:a.string,required:a.bool,valid:a.bool,validityStyles:a.bool,onChange:a.func,size:a.oneOf([null,"small","medium","large"]),rounded:a.oneOf([null,"small","medium","large","full"]),fillMode:a.oneOf([null,"solid","flat","outline"])},t.defaultProps={prompt:"_",promptPlaceholder:" ",includeLiterals:!1,maskValidation:!0,rules:Ft,required:!1,validityStyles:!0,size:"medium",rounded:"medium",fillMode:"solid"},t}(i.Component),zt=(0,p.Y)(),Bt=(0,p.u)(zt,Vt);Bt.displayName="KendoReactMaskedTextBox";var Ht,Ut=n(9844),Wt=function(){return Wt=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},Wt.apply(this,arguments)};!function(e){e.start="start",e.end="end",e.min="min",e.max="max",e.increase="increase",e.decrease="decrease"}(Ht||(Ht={}));var Kt=function(){return Kt=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},Kt.apply(this,arguments)},qt=(0,p.Y)(),Yt=i.forwardRef((function(e,t){var n,r;(0,f.s)(h);var o=(0,ae.Y)(qt,e),a=i.useRef(null),l=i.useRef(null),s=i.useRef(null),d=i.useRef(null),p=i.useRef(null),v=i.useCallback((function(){d.current&&d.current.focus()}),[d]);i.useImperativeHandle(a,(function(){return{element:l.current,focus:v,props:o}})),i.useImperativeHandle(t,(function(){return a.current}));var y=i.useMemo((function(){return o.min}),[o.min]),b=i.useMemo((function(){return o.max}),[o.max]),E=i.useMemo((function(){return void 0!==o.step?o.step:Zt.step}),[o.step,Zt.step]),w=(0,L.n)(l,o.dir),k=i.useState(""),S=k[0],O=k[1],D=function(e,t,n){var r=i.useState(e),o=r[0],a=r[1],l=i.useCallback((function(e){var r=function(e,t){var n,r;switch(t.type){case Ht.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 Ht.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 Ht.min:n="start"===t.key?Wt(Wt({},e),{start:t.min}):Wt(Wt({},e),{end:Math.max(t.min,e.start)});break;case Ht.max:n="start"===t.key?Wt(Wt({},e),{start:Math.min(t.max,e.end)}):Wt(Wt({},e),{end:t.max});break;case Ht.increase:if(void 0===t.step||void 0===t.key)return e;r=e[t.key]+t.step,n="start"===t.key?r<t.min?Wt(Wt({},e),{start:t.min}):Wt(Wt({},e),{start:Math.min(r,e.end)}):r>t.max?Wt(Wt({},e),{end:t.max}):Wt(Wt({},e),{end:Math.max(r,e.start)});break;case Ht.decrease:if(void 0===t.step||void 0===t.key)return e;r=e[t.key]-t.step,n="start"===t.key?r<t.min?Wt(Wt({},e),{start:t.min}):Wt(Wt({},e),{start:Math.min(r,e.end)}):r>t.max?Wt(Wt({},e),{end:t.max}):Wt(Wt({},e),{end:Math.max(r,e.start)});break;default:n=e}return n}(t.state||o,Kt(Kt({},e),t));n&&n(r,e.event),a(r)}),[t,n]);return[o,l]}(o.defaultValue||Zt.defaultValue,{min:y,max:b,step:E,state:o.value},(function(e,t){o.onChange&&a.current&&o.onChange.call(void 0,{value:e,target:a.current,syntheticEvent:t})})),x=D[0],I=D[1],T=i.useMemo((function(){return o.value||x}),[o.value,x]),_=i.useRef(null),R=i.useRef(null),M=i.useMemo((function(){return(T.start-y)/(b-y)*100}),[T.start,y,b]),P=i.useMemo((function(){return(T.end-y)/(b-y)*100}),[T.end,y,b]),N=i.useMemo((function(){return o.vertical?{paddingTop:0,height:"100%"}:{}}),[o.vertical]),F=i.useMemo((function(){return o.vertical?{marginTop:"0.5rem",marginBottom:"0.5rem"}:{marginLeft:"0.5rem",marginRight:"0.5rem"}}),[o.vertical]),A=(0,g.useLocalization)(),V=i.useCallback((function(e){if(R.current){var t=R.current.getBoundingClientRect(),n=o.vertical?t.bottom-e.clientY:"rtl"===w?t.right-e.clientX:e.clientX-t.left,r=o.vertical?t.height:t.width;return y+n/r*(b-y)}}),[R,o.vertical,w,y,b,x.start,x.end,o.value&&o.value.start,o.value&&o.value.end]),z=i.useCallback((function(e){return e<=T.start?"start":e>=T.end?"end":2*e<T.end+T.start?"start":"end"}),[x.start,x.end,o.value&&o.value.start,o.value&&o.value.end]),B=i.useCallback((function(e){switch(e.keyCode){case m.R.right:e.preventDefault(),I({type:"rtl"===w?Ht.decrease:Ht.increase,key:"start",event:e});break;case m.R.up:e.preventDefault(),I({type:Ht.increase,key:"start",event:e});break;case m.R.left:e.preventDefault(),I({type:"rtl"===w?Ht.increase:Ht.decrease,key:"start",event:e});break;case m.R.down:e.preventDefault(),I({type:Ht.decrease,key:"start",event:e});break;case m.R.home:e.preventDefault(),I({type:Ht.min,key:"start",event:e});break;case m.R.end:e.preventDefault(),I({type:Ht.max,key:"start",event:e})}}),[I]),H=i.useCallback((function(e){switch(e.keyCode){case m.R.right:e.preventDefault(),I({type:"rtl"===w?Ht.decrease:Ht.increase,key:"end",event:e});break;case m.R.up:e.preventDefault(),I({type:Ht.increase,key:"end",event:e});break;case m.R.left:e.preventDefault(),I({type:"rtl"===w?Ht.increase:Ht.decrease,key:"end",event:e});break;case m.R.down:e.preventDefault(),I({type:Ht.decrease,key:"end",event:e});break;case m.R.home:e.preventDefault(),I({type:Ht.min,key:"end",event:e});break;case m.R.end:e.preventDefault(),I({type:Ht.max,key:"end",event:e})}}),[I,w]),U=i.useCallback((function(e){var t=V(e),n=z(t);O(n),"end"===n?p.current.focus():d.current.focus();var r="end"===n?Ht.end:Ht.start;I({type:r,payload:t,event:e})}),[o.vertical,y,b,I]);return(0,Ut.O)(R,{onPress:U,onDrag:function(e){var t=V(e),n="end"===S?Ht.end:Ht.start;I({type:n,payload:t,event:e})},onRelease:function(e){var t=V(e),n="end"===S?Ht.end:Ht.start;I({type:n,payload:t,event:e}),O("")}}),i.createElement("div",{role:"slider",id:o.id,style:o.style,ref:l,dir:w,className:(0,u.A)("k-widget k-slider",{"k-rtl":"rtl"===w,"k-disabled":o.disabled,"k-slider-vertical":o.vertical,"k-slider-horizontal":!o.vertical},o.className),"aria-labelledby":o.ariaLabelledBy,"aria-describedby":o.ariaDescribedBy},i.createElement("div",{ref:R,className:"k-slider-track-wrap",style:Kt({flexGrow:1,position:"relative",touchAction:"none"},F)},o.children&&i.createElement("ul",{className:"k-reset k-slider-items",style:Kt({},N)},i.Children.map(o.children,(function(e){return e&&i.cloneElement(e,{position:100*(e.props.position-o.min)/(o.max-o.min),vertical:o.vertical},e.props.children)}))),i.createElement("div",{ref:_,className:"k-slider-track",style:o.vertical?{bottom:0,height:"100%"}:(n={},n["rtl"===w?"right":"left"]=0,n.width="100%",n)},null!==M&&null!==P&&i.createElement("div",{"data-selection":!0,ref:s,title:"".concat(T.start," - ").concat(T.end),className:"k-slider-selection",style:o.vertical?{height:P-M+"%",bottom:M+"%"}:(r={},r["rtl"===w?"right":"left"]=M+"%",r.width=P-M+"%",r)}),i.createElement("a",{ref:d,role:"slider",tabIndex:(0,c.p)(o.startTabIndex,o.disabled,void 0),"aria-valuemin":y,"aria-valuemax":Math.max(b,T.end),"aria-valuenow":T.start,"aria-disabled":o.disabled?"true":void 0,className:"k-draghandle",title:A.toLanguageString(C,j[C]),style:o.vertical?{bottom:"calc("+M+"%)",zIndex:1}:"rtl"===w?{right:"calc("+M+"% - 13px)",zIndex:1}:{left:"calc("+M+"%)",zIndex:1},onKeyDown:B}),i.createElement("a",{ref:p,role:"slider",tabIndex:(0,c.p)(o.endTabIndex,o.disabled,void 0),"aria-valuemin":Math.min(y,T.start),"aria-valuemax":b,"aria-valuenow":T.end,"aria-disabled":o.disabled?"true":void 0,className:"k-draghandle",title:A.toLanguageString(C,j[C]),style:o.vertical?{bottom:"calc("+P+"%)",zIndex:1}:"rtl"===w?{right:"calc("+P+"% - 13px)",zIndex:1}:{left:"calc("+P+"%)",zIndex:1},onKeyDown:H}))))})),Gt={value:function(e,t,n){if(e.value){var r=e.value.start,o=e.value.end,i=e.min,a=e.max;if(r>o||r>a||r<i||o>a||o<i||o<r)return new Error("Invalid prop + ".concat(t," supplied to ").concat(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,i=e.min,a=e.max;if(r>o||r>a||r<i||o>a||o<i||o<r)return new Error("Invalid prop + ".concat(t," supplied to ").concat(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,i=e.max;return void 0===o?new Error("Invalid prop + ".concat(t," supplied to ").concat(n,".\n ").concat(t," value can not be undefined.\n ")):r&&o>=i?new Error("Invalid prop + ".concat(t," supplied to ").concat(n,".\n ").concat(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,i=e.max;return void 0===i?new Error("Invalid prop + ".concat(t," supplied to ").concat(n,".\n ").concat(t," value can not be undefined.\n ")):r&&i<=o?new Error("Invalid prop + ".concat(t," supplied to ").concat(n,".\n ").concat(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"])},Zt={step:1,defaultValue:{start:0,end:0},vertical:!1,disabled:!1};Yt.displayName="KendoReactRangeSlider",Yt.propTypes=Gt,Yt.defaultProps=Zt;var Xt=n(3228),$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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qt=function(){return Qt=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},Qt.apply(this,arguments)},Jt=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(F,j[F]))},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,(0,v.N)(r.props.onChange,t,r,{value:e}),r.valueDuringOnChange=void 0},r._element=null,r._wrapper=null,r._input=null,r._id=(0,s.M)(),r.defaultValidationMessage=(0,g.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:Xt.Z})},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!==m.R.space&&t!==m.R.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)}},(0,f.s)(h),r.state={checked:n.defaultChecked||t.defaultProps.defaultChecked,focused:!1},r}return $t(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:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"actionElement",{get:function(){return this._wrapper},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!1,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:!1,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:t.defaultProps.required},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.setValidity(),this.forceUpdate()},t.prototype.componentDidUpdate=function(){this.setValidity()},t.prototype.render=function(){var e,t,n,r=this,o=this.state.focused,a=this.props,l=a.dir,s=a.disabled,d=a.trackRounded,p=a.thumbRounded,f=a.size,h=a.id,m=a.offLabel,v=a.onLabel,g=a.tabIndex;this.dir=l||this._wrapper&&getComputedStyle(this._wrapper).direction||void 0;var y=!this.validityStyles||this.validity.valid,b=(0,u.A)("k-switch",((e={})["k-switch-".concat(le.G.sizeMap[f]||f)]=f,e["k-rounded-".concat(le.G.roundedMap[d]||d)]=d,e["k-switch-on"]=this.value,e["k-switch-off"]=!this.value,e["k-focus"]=o,e["k-disabled"]=s,e["k-invalid"]=!y,e),this.props.className),C={"aria-checked":this.value,"aria-disabled":s||void 0};return i.createElement("span",{ref:function(e){r._wrapper=e},className:b,dir:this.dir,onKeyDown:this.handleKeyDown,onClick:this.handleClick,onBlur:this.handleWrapperBlur,onFocus:this.handleWrapperFocus},i.createElement("span",Qt({className:(0,u.A)("k-switch-track",(t={},t["k-rounded-".concat(le.G.roundedMap[d]||d)]=d,t)),id:h||this._id,role:"switch"},C,{"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,ref:function(e){r._element=e},tabIndex:(0,c.p)(g,s,void 0),accessKey:this.props.accessKey}),this.dummyInput(this.value),i.createElement("span",{className:"k-switch-label-on"},v),i.createElement("span",{className:"k-switch-label-off"},m),i.createElement("span",{className:"k-switch-thumb-wrap"},i.createElement("span",{className:(0,u.A)("k-switch-thumb",(n={},n["k-rounded-".concat(p)]=p,n))}))))},t.displayName="Switch",t.propTypes={accessKey:a.string,checked:a.bool,className:a.string,disabled:a.bool,defaultChecked:a.bool,size:a.oneOf([null,"small","medium","large"]),trackRounded:a.oneOf([null,"small","medium","large","full"]),thumbRounded:a.oneOf([null,"small","medium","large","full"]),dir:a.string,id:a.string,ariaLabelledBy:a.string,ariaDescribedBy:a.string,offLabel:a.string,required:a.bool,tabIndex:a.number,valid:a.bool,validate:a.bool,validationMessage:a.string,onBlur:a.any,onChange:a.any,onFocus:a.any,onLabel:a.string},t.defaultProps={disabled:!1,defaultChecked:!1,size:"medium",trackRounded:"full",thumbRounded:"full",offLabel:"OFF",onBlur:Xt.Z,onFocus:Xt.Z,onLabel:"ON",required:!1,validityStyles:!0},t}(i.Component),en=(0,p.Y)(),tn=(0,p.u)(en,Jt);tn.displayName="KendoReactSwitch";var nn=function(){return nn=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},nn.apply(this,arguments)},rn=(0,p.Y)(),on=i.forwardRef((function(e,t){var n;(0,f.s)(h);var r=(0,ae.Y)(rn,e),o=r,a=o.ariaDescribedBy,l=o.ariaLabelledBy,d=o.checked,p=o.className,y=o.children,b=o.defaultChecked,C=o.disabled,E=o.defaultValue,w=o.id,k=o.size,S=o.rounded,O=o.label,D=o.labelPlacement,x=o.name,I=o.labelOptional,T=o.onChange,_=o.onFocus,R=o.onBlur,M=o.tabIndex,F=o.value,A=o.required,V=o.valid,z=o.validationMessage,B=o.validityStyles,H=(o.visited,o.touched,o.modified,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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(o,["ariaDescribedBy","ariaLabelledBy","checked","className","children","defaultChecked","disabled","defaultValue","id","size","rounded","label","labelPlacement","name","labelOptional","onChange","onFocus","onBlur","tabIndex","value","required","valid","validationMessage","validityStyles","visited","touched","modified"])),U=i.useRef(null),W=i.useCallback((function(){U.current&&U.current.focus()}),[]),K=i.useCallback((function(){return{element:U.current,focus:W,get name(){return U.current&&U.current.name}}}),[W]);i.useImperativeHandle(t,K);var q=i.useState(b),Y=q[0],G=q[1],Z=i.useState(E),X=Z[0],$=Z[1],Q="boolean"==typeof F||null===F,J=void 0!==d,ee=Q,te=ee?F:X,ne=J?d:ee?void 0:Y,re=void 0===ne&&te,oe=re?te:ne,ie=re||ee?null===F?F:void 0:F||te,se=null===oe||null===ie,ue=i.useMemo((function(){return(0,s.M)()}),[]),ce=(0,g.useLocalization)(),de=function(e){return ce.toLanguageString(e,j[e])},pe=de(P),fe=de(N),he=void 0!==V?V:!A||!!ne;i.useEffect((function(){U.current&&U.current.setCustomValidity&&U.current.setCustomValidity(he?"":z||pe)}),[he,z,pe]);var me=i.useCallback((function(e,t){ee||C||($(t),J||C||G(t)),T&&!C&&(0,v.N)(T,e,nn(nn({},K()),{value:t}),{value:t})}),[J,C,T,ee,K]),ve=i.useCallback((function(e){var t=e.target.checked;me(e,t)}),[me,F]),ge=i.useCallback((function(e){if(!C){var t=e.keyCode,n=e.currentTarget.checked;t===m.R.space&&(e.preventDefault(),e.stopPropagation(),me(e,!n))}}),[C,me]),ye=i.useCallback((function(e){C||e.keyCode===m.R.space&&e.preventDefault()}),[C]),be=i.useCallback((function(e){_&&!C&&(0,v.N)(_,e,K(),void 0)}),[_,C,K]),Ce=i.useCallback((function(e){R&&!C&&(0,v.N)(R,e,K(),void 0)}),[R,C,K]),Ee=(0,L.n)(U,r.dir),we=(0,u.A)({"k-disabled":C},p),ke=nn(nn({type:"checkbox",className:(0,u.A)("k-checkbox",(n={},n["k-checkbox-".concat(le.G.sizeMap[k]||k)]=k,n["k-rounded-".concat(le.G.roundedMap[S]||S)]=S,n["k-indeterminate"]=se,n["k-invalid k-invalid"]=!(he||void 0!==B||!0===B),n)),ref:U,name:x,id:w||ue,"aria-labelledby":l,"aria-describedby":a,checked:Boolean(oe),disabled:C,tabIndex:(0,c.p)(M,C),role:"checkbox",required:void 0!==A&&A,"aria-checked":!(!ne&&!oe)||!!se&&"mixed","aria-disabled":C||void 0},H),{onChange:ve,onKeyDown:ge,onKeyUp:ye,onFocus:be,onBlur:Ce}),Se=i.createElement(i.Fragment,null,void 0===ie?i.createElement("input",nn({},ke)):i.createElement("input",nn({},ke,{value:Q?void 0:null===ie?"":ie}))),Oe=i.createElement(i.Fragment,null,void 0!==O?i.createElement("label",{className:"k-checkbox-label",htmlFor:w||ue,style:{userSelect:"none"}},O,I&&i.createElement("span",{className:"k-label-optional"},fe)):null);return i.createElement(i.Fragment,null,"before"===D?i.createElement("span",{className:we,dir:"rtl"},Se,Oe,y):i.createElement("span",{className:we,dir:Ee},Se,Oe,y))}));on.propTypes={checked:a.bool,className:a.string,defaultChecked:a.bool,defaultValue:a.any,dir:a.string,disabled:a.bool,id:a.string,size:a.oneOf([null,"small","medium","large"]),rounded:a.oneOf([null,"small","medium","large"]),ariaLabelledBy:a.string,ariaDescribedBy:a.string,label:a.any,labelPlacement:a.string,labelOptional:a.bool,name:a.string,tabIndex:a.number,value:a.any,validationMessage:a.string,required:a.bool,validate:a.bool,valid:a.bool,onChange:a.func,onFocus:a.func,onBlur:a.func},on.defaultProps={size:"medium",rounded:"medium"},on.displayName="KendoCheckbox";var an=function(){return an=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},an.apply(this,arguments)},ln=(0,p.Y)(),sn=i.forwardRef((function(e,t){var n;(0,f.s)(h);var r=(0,ae.Y)(ln,e),o=r.ariaDescribedBy,a=r.checked,l=r.children,d=r.className,p=r.disabled,m=r.id,g=r.size,y=r.label,b=r.labelPlacement,C=r.name,E=r.style,w=r.tabIndex,k=r.value,S=r.valid,O=r.onChange,D=r.onFocus,x=r.onBlur,I=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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(r,["ariaDescribedBy","checked","children","className","disabled","id","size","label","labelPlacement","name","style","tabIndex","value","valid","onChange","onFocus","onBlur"]),T=i.useRef(null),_=i.useCallback((function(){T.current&&T.current.focus()}),[]),R=i.useCallback((function(){return{element:T.current,focus:_}}),[_]);i.useImperativeHandle(t,R);var M=i.useMemo((function(){return(0,s.M)()}),[]),P=i.useCallback((function(e){(0,v.N)(O,e,R(),{value:k})}),[O,k,p]),N=i.useCallback((function(e){D&&!p&&(0,v.N)(D,e,R(),void 0)}),[D,p]),F=i.useCallback((function(e){x&&!p&&(0,v.N)(x,e,R(),void 0)}),[x,p]),A=an({type:"radio",id:m||M,name:C,className:(0,u.A)("k-radio",(n={},n["k-radio-".concat(le.G.sizeMap[g]||g)]=g,n["k-invalid"]=!1===S,n),d),ref:T,disabled:p,tabIndex:(0,c.p)(w,p),checked:a,style:E,"aria-describedby":o,value:k,onChange:P,onFocus:N,onBlur:F},I),j=i.createElement(i.Fragment,null,void 0!==y?i.createElement("label",{className:"k-radio-label",htmlFor:m||M,style:{userSelect:"none"},"aria-label":y},y):null),L=i.createElement("input",an({},A));return"before"===b?i.createElement(i.Fragment,null,j,L,l):i.createElement(i.Fragment,null,L,j,l)}));sn.propTypes={ariaDescribedBy:a.string,checked:a.bool,className:a.string,disabled:a.bool,id:a.string,size:a.oneOf([null,"small","medium","large"]),label:a.string,labelPlacement:a.string,name:a.string,style:a.object,tabIndex:a.number,value:a.any,valid:a.bool,onChange:a.func,onFocus:a.func,onBlur:a.func},sn.displayName="KendoRadioButton",sn.defaultProps={size:"medium"};var un=n(1573),cn=function(){return cn=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},cn.apply(this,arguments)},dn=(0,p.Y)(),pn=i.forwardRef((function(e,t){(0,f.s)(h);var n=(0,ae.Y)(dn,e),r=n.ariaLabelledBy,o=n.ariaDescribedBy,a=n.className,c=n.data,d=n.defaultValue,p=n.disabled,m=n.name,g=n.labelPlacement,y=n.layout,b=n.style,C=n.value,E=n.valid,w=n.item,k=void 0===w?fn.item:w,S=n.onChange,O=n.onFocus,D=i.useRef(null),x=i.useCallback((function(){D.current&&(0,l.n)(D.current)}),[]),I=i.useCallback((function(){return{element:D.current,focus:x}}),[x]);i.useImperativeHandle(t,I);var T=i.useState(d),_=T[0],R=T[1],M=void 0!==C,P=M?C:_,N=i.useCallback((function(e){var t=e.value;M||p||R(t),S&&!p&&(0,v.N)(S,e.syntheticEvent,I(),{value:t})}),[R,S,p]),F=i.useCallback((function(e){O&&!p&&(0,v.N)(O,e.syntheticEvent,I(),void 0)}),[O,p]),A=i.useMemo((function(){return(0,s.M)()}),[]),j=(0,u.A)("k-radio-list",{"k-list-horizontal":"horizontal"===y,"k-list-vertical":"vertical"===y||void 0===y},a),L=(0,un.V)(D,n.dir),V=c&&c.map((function(e,t){var n=P===e.value,r=null==P,o=cn(cn({},e),{valid:E,checked:n,disabled:!(!e.disabled&&!p),labelPlacement:e.labelPlacement?e.labelPlacement:g,tabIndex:e.tabIndex?e.tabIndex:r&&0===t||n?0:-1,index:t,name:m||A,onChange:N,onFocus:F});return i.createElement(k,{className:(0,u.A)("k-radio-item",{"k-disabled":o.disabled||p}),key:t,role:"radio"},i.createElement(sn,cn({},o)))}));return i.createElement("ul",{role:"radiogroup",className:j,ref:D,dir:L,style:b,"aria-labelledby":r,"aria-describedby":o},V)})),fn={item:function(e){return i.createElement("li",cn({},e))}};pn.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},pn.defaultProps=fn,pn.displayName="KendoRadioGroup";var hn=function(){return hn=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},hn.apply(this,arguments)},mn=(0,p.Y)(),vn=i.forwardRef((function(e,t){var n,r=(0,ae.Y)(mn,e),o=r,a=o.size,l=o.rounded,d=o.fillMode,p=o.ariaDescribedBy,f=o.ariaLabelledBy,h=o.autoSize,m=o.className,g=o.defaultValue,y=o.disabled,b=o.readOnly,C=o.required,E=o.rows,w=o.id,k=o.name,S=o.placeholder,O=o.style,D=o.tabIndex,x=o.value,I=o.valid,T=o.validationMessage,_=o.validityStyles,R=o.onChange,M=o.onFocus,P=o.onBlur,N=(o.visited,o.touched,o.modified,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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(o,["size","rounded","fillMode","ariaDescribedBy","ariaLabelledBy","autoSize","className","defaultValue","disabled","readOnly","required","rows","id","name","placeholder","style","tabIndex","value","valid","validationMessage","validityStyles","onChange","onFocus","onBlur","visited","touched","modified"])),F=i.useRef(null),A=i.useCallback((function(){F.current&&F.current.focus()}),[]),j=i.useCallback((function(){return{element:F,focus:A,get name(){return F.current&&F.current.name}}}),[A]);i.useImperativeHandle(t,j);var V=i.useState(g),z=V[0],B=V[1],H=i.useState("auto"),U=H[0],W=H[1],K=i.useMemo((function(){return(0,s.M)()}),[]),q=(0,L.n)(F,r.dir),Y=void 0!==x,G=Y?x:z,Z=void 0!==I?I:!C||!!G;i.useEffect((function(){F.current&&F.current.setCustomValidity&&F.current.setCustomValidity(Z?"":T||"")}),[Z,T]),i.useLayoutEffect((function(){F.current&&W("".concat(F.current.scrollHeight,"px"))}),[G]);var X=i.useCallback((function(e){var t=e.target.value;Y||y||(W("auto"),B(t)),R&&!y&&(0,v.N)(R,e,j(),{value:t})}),[B,R,y,Y]),$=i.useCallback((function(e){M&&!y&&(0,v.N)(M,e,j(),void 0)}),[M,y]),Q=i.useCallback((function(e){P&&!y&&(0,v.N)(P,e,j(),void 0)}),[P,y]),J=hn(hn({id:w||K,name:k,className:"k-input-inner !k-overflow-auto",ref:F,disabled:y,rows:E,placeholder:S,readOnly:b,required:C,tabIndex:(0,c.p)(D,y),style:h?{resize:"none",overflow:"hidden",height:U}:{},"aria-labelledby":f,"aria-describedby":p,"aria-multiline":!0,"aria-disabled":y||void 0,value:Y?x:z},N),{onChange:X,onFocus:$,onBlur:Q});return i.createElement("span",{className:(0,u.A)("k-input","k-textarea",(n={},n["k-input-".concat(le.G.sizeMap[a]||a)]=a,n["k-input-".concat(d)]=d,n["k-rounded-".concat(le.G.roundedMap[l]||l)]=l,n["k-invalid"]=!(Z||void 0!==_||!0===_),n["k-required"]=C,n["k-disabled"]=y,n),m),style:O,dir:q},i.createElement("textarea",hn({},J)))}));vn.propTypes={ariaDescribedBy:a.string,ariaLabelledBy:a.string,autoSize:a.bool,className:a.string,defaultValue:a.string,dir:a.string,disabled:a.bool,readOnly:a.bool,rows:a.number,id:a.string,name:a.string,placeholder:a.string,style:a.object,tabIndex:a.number,value:a.oneOfType([a.string,a.arrayOf(a.string),a.number]),onChange:a.func,onFocus:a.func,onBlur:a.func,size:a.oneOf([null,"small","medium","large"]),rounded:a.oneOf([null,"small","medium","large","full"]),fillMode:a.oneOf([null,"solid","flat","outline"])},vn.displayName="KendoTextArea",vn.defaultProps={size:"medium",rounded:"medium",fillMode:"solid"};var gn=i.forwardRef((function(e,t){var n=i.useRef(null),r=i.useRef(null),o=(0,L.n)(r,e.dir);i.useImperativeHandle(n,(function(){return{element:r.current,props:e,value:e.value}})),i.useImperativeHandle(t,(function(){return n.current}));var a=i.useCallback((function(t){e.onClick&&e.onClick.call(void 0,{value:e.value,target:n.current,syntheticEvent:t})}),[e.onClick,e.value]),l=i.useCallback((function(t){e.onKeyDown&&e.onKeyDown.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onKeyDown]),s=i.useCallback((function(t){e.onFocus&&e.onFocus.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onFocus]),c=i.useCallback((function(t){e.onBlur&&e.onBlur.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onBlur]),d=i.useCallback((function(t){e.onMouseMove&&e.onMouseMove.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onMouseMove]),p=i.useCallback((function(t){e.onMouseEnter&&e.onMouseEnter.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onMouseEnter]),f=i.useCallback((function(t){e.onMouseLeave&&e.onMouseLeave.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onMouseLeave]);return i.createElement("span",{id:e.id,ref:r,dir:o,"data-half":e.half,tabIndex:e.tabIndex,title:e.title,style:e.style,className:(0,u.A)("k-rating-item",{"k-rtl":"rtl"===o,"k-selected":e.selected,"k-hover":e.hovered},e.className),onClick:a,onKeyDown:l,onFocus:s,onBlur:c,onMouseEnter:p,onMouseLeave:f,onMouseMove:d},e.children)})),yn={id:a.string,icon:a.any,dir:a.oneOf(["ltr","rtl"]),title:a.string,value:a.number,half:a.bool,selected:a.bool,hovered:a.bool};gn.displayName="KendoReactRatingItem",gn.propTypes=yn,gn.defaultProps={dir:"ltr"};var bn,Cn=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},En=function(e,t,n){return Cn(e-n,n)<t&&t<e},wn=function(e,t,n,r){return null!==t&&("continues"===r?En(e,t,n)?Cn(e-n/2,n/2)<=t:e<=t:"single"===r&&(En(e,t,n)?Cn(e-n/2,n/2)===t:e===t))},kn=function(e,t,n){return"ltr"===e?n<t.x+t.width/2:n>t.x+t.width/2},Sn=function(e,t,n,r){for(var o=e;o<=t;o+=n)if(r===o)return!0;return!1};!function(e){e.select="select",e.deselect="deselect",e.increase="increase",e.decrease="decrease",e.min="min",e.max="max",e.reset="reset"}(bn||(bn={}));var On=function(){return On=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},On.apply(this,arguments)},Dn=function(e,t,n){var r=i.useState(e),o=r[0],a=r[1];return[o,function(e){var r=function(e,t){switch(t.type){case bn.select:return void 0===t.payload||void 0===t.step?e:t.payload===e?null:t.payload>=t.min?t.payload<t.max?Cn(t.payload,t.step):t.max:t.min;case bn.deselect:return null;case bn.increase:return void 0===t.step?e:e<t.min?t.min:e+t.step<t.max?Cn(e+t.step,t.step):t.max;case bn.decrease:return void 0===t.step?e:Cn(e-t.step,t.step)>=t.min?Cn(e-t.step,t.step):t.min;case bn.min:return void 0===t.step?e:t.min;case bn.max:return t.max;case bn.reset:return null;default:return e}}(t.state||o,On(On({},e),t));n&&n(r,e.event),a(r)}]},xn=(0,p.Y)(),In=i.forwardRef((function(e,t){var n,r,o,a,l=(0,ae.Y)(xn,e),s=i.useRef(null),d=i.useRef(null),p=(0,L.n)(d,l.dir);i.useImperativeHandle(s,(function(){return{element:d.current,props:l}})),i.useImperativeHandle(t,(function(){return s.current}));for(var f,h,v=i.useCallback((function(e,t){l.onChange&&s.current&&l.onChange.call(void 0,{value:e,target:s.current,syntheticEvent:t})}),[l.onChange]),g=i.useMemo((function(){return void 0!==l.min?l.min:_n.min}),[l.min]),y=i.useMemo((function(){return void 0!==l.max?l.max:_n.max}),[l.max]),b=i.useMemo((function(){return l.precision||_n.precision}),[l.precision]),C=i.useMemo((function(){return void 0!==l.step?l.step:_n.step}),[l.step]),E=i.useMemo((function(){return l.readonly||_n.readonly}),[l.readonly]),w=i.useMemo((function(){return l.disabled||_n.disabled}),[l.disabled]),k=i.useMemo((function(){return l.item||_n.item}),[l.item]),S=Dn(l.defaultValue||_n.defaultValue,{state:l.value,min:g,max:y,step:"half"===b?C/2:C},v),O=S[0],D=S[1],x=Dn(null,{state:l.value,min:g,max:y,step:"half"===b?C/2:C,precision:b}),I=x[0],T=x[1],_=i.useMemo((function(){return l.value||O}),[l.value,O]),R=i.useMemo((function(){return I}),[I]),M=i.useMemo((function(){return l.selection||_n.selection}),[l.selection]),P=i.useMemo((function(){return C/("half"===b?2:1)}),[C,b]),N=i.useCallback((function(e){if(e.target&&e.target.element&&!E&&!w){if("half"===b){var t=e.target.element.getBoundingClientRect(),n=kn(p||"ltr",t,e.syntheticEvent.clientX)?Cn(e.target.value-C/2,P):e.target.value;D({type:bn.select,payload:n,event:e.syntheticEvent})}else D({type:bn.select,payload:e.target.value,event:e.syntheticEvent});if(l.onClick){var r={value:_,target:s.current,syntheticEvent:e.syntheticEvent};l.onClick.call(void 0,r)}}}),[l.onClick,D,_]),F=i.useCallback((function(e){if(!E&&!w){switch(e.keyCode){case m.R.right:e.preventDefault(),D({type:"rtl"===p?bn.decrease:bn.increase,event:e});break;case m.R.left:e.preventDefault(),D({type:"rtl"===p?bn.increase:bn.decrease,event:e});break;case m.R.home:e.preventDefault(),D({type:"rtl"===p?bn.min:bn.max,event:e});break;case m.R.end:e.preventDefault(),D({type:"rtl"===p?bn.max:bn.min,event:e});break;case m.R.esc:e.preventDefault(),D({type:bn.deselect,event:e})}l.onKeyDown&&l.onKeyDown.call(void 0,{value:_,target:s.current,syntheticEvent:e})}}),[l.onKeyDown,D,_]),A=i.useCallback((function(e){if(l.onFocus){var t={target:s.current,syntheticEvent:e};l.onFocus.call(void 0,t)}}),[l.onFocus]),j=i.useCallback((function(e){if(l.onBlur){var t={target:s.current,syntheticEvent:e};l.onBlur.call(void 0,t)}}),[l.onBlur]),V=i.useCallback((function(e){if(e.target&&e.target.element)if("half"===b){var t=e.target.element.getBoundingClientRect(),n=kn(p||"ltr",t,e.syntheticEvent.clientX)?e.target.value-C/2:e.target.value;T({type:bn.select,payload:n,event:e.syntheticEvent})}else T({type:bn.select,payload:e.target.value,event:e.syntheticEvent})}),[b,C,p]),z=i.useCallback((function(e){T({type:bn.reset,event:e.syntheticEvent})}),[]),B=[],H=(f=Cn(y-g,P))-(h=C)*Math.floor(f/h),U=g;U<=y;U=Cn(U+C,P)){var W=Cn(U+H,P),K="half"===b&&En(W,null!==R?R:null!==_?_:0,C),q=wn(W,_,C,M),Y=wn(W,null!==R?R:_,C,M),G=wn(W,R,C,M);B.push(i.createElement(k,{key:W,value:W,dir:p,title:String(K?Cn(W-C/2,P):W),icon:l.icon,half:K,selected:q||Y,hovered:G,onClick:N,onMouseMove:V,onMouseLeave:z},K&&i.createElement("span",{className:"k-rating-precision-complement",style:(n={width:"12px"},n["rtl"===p?"right":"left"]="50%",n)},i.createElement("span",{className:(0,u.A)("k-icon",(r={"k-i-star-outline":!l.icon},r["".concat(l.icon,"-outline")]=l.icon,r))})),K&&i.createElement("span",{className:"k-rating-precision-part",style:{width:"12px"}},i.createElement("span",{className:(0,u.A)("k-icon",(o={"k-i-star":!l.icon},o["".concat(l.icon)]=l.icon,o))})),K&&i.createElement("span",{style:{width:"24px",height:"24px",display:"block"}}),!K&&i.createElement("span",{className:(0,u.A)("k-icon",(a={"k-i-star":!l.icon&&(G||Y&&!G),"k-i-star-outline":!l.icon&&!G},a["".concat(l.icon)]=l.icon&&(G||Y&&!G),a["".concat(l.icon,"-outline")]=l.icon&&!G,a))})))}return i.createElement("span",{id:l.id,style:l.style,ref:d,role:"slider",dir:p,tabIndex:(0,c.p)(l.tabIndex,l.disabled,void 0),className:(0,u.A)("k-rating k-widget",{"k-rtl":"rtl"===p,"k-state-readonly":E,"k-disabled":w},l.className),onKeyDown:F,onFocus:A,onBlur:j,"aria-valuemin":g,"aria-valuemax":y,"aria-valuenow":null!==_?_:void 0,"aria-disabled":w?"true":void 0,"aria-labelledby":l.ariaLabelledBy,"aria-describedby":l.ariaDescribedBy},i.createElement("input",{id:"rating",className:"k-hidden",readOnly:E,disabled:w}),i.createElement("span",{className:"k-rating-container"},B),l.label&&i.createElement("span",{className:"k-rating-label"},l.label))})),Tn={id:a.string,dir:a.oneOf(["ltr","rtl"]),selection:a.oneOf(["continues","single"]),precision:a.oneOf(["item","half"]),value:function(e,t,n){return e.value&&e.min&&e.max&&e.step&&!("half"===e.precision?Sn(e.min,e.max,e.step/2,e.value):Sn(e.min,e.max,e.step,e.value))&&"half"===e.precision?new Error("Invalid prop + ".concat(t," supplied to ").concat(n,".\n The value of the { value } property is not correct, please check your values.\n ")):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 + ".concat(t," supplied to ").concat(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},_n={dir:"ltr",min:1,max:5,step:1,item:gn,defaultValue:null,readonly:!1,disabled:!1,selection:"continues",precision:"item"};In.displayName="KendoReactRating",In.propTypes=Tn,In.defaultProps=_n},6097:(e,t,n)=>{n.d(t,{_:()=>p});var r,o=n(3899),i=n(189),a=n(8047),l=n(499),s=n(2609),u=n(4006),c=n(8011),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=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})},(0,u.s)(c.k),n}return d(t,e),t.prototype.render=function(){var e=this.props,t=e.label,n=e.editorId,r=e.className,i=e.editorValue,u=e.editorPlaceholder,c=e.editorValid,d=e.editorDisabled,p=e.style,f=e.id,h=e.optional,m=(0,l.provideLocalizationService)(this),v=h?m.toLanguageString(s.y,s.s[s.y]):"",g=v&&o.createElement("span",{className:"k-label-optional"},v),y=(0,a.A)({"k-floating-label-container":!0,"k-focus":this.state.focused,"k-empty":!u&&!i&&0!==i,"k-text-disabled":d,"k-rtl":"rtl"===this.props.dir},r),b=(0,a.A)({"k-label":!0,"k-text-error":!1===c,"k-text-disabled":d});return o.createElement("span",{id:this.props.id,className:y,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:b},t,g):o.createElement("span",{id:f,className:b},t,g):null)},t.propTypes={label:i.string,editorId:i.string,editorValue:i.oneOfType([i.string,i.bool,i.number]),editorPlaceholder:i.string,editorValid:i.bool,editorDisabled:i.bool,id:i.string,style:i.object,className:i.string,optional:i.bool},t}(o.Component);(0,l.registerForLocalization)(p)},3287:(e,t,n)=>{n.d(t,{_:()=>c});var r=n(3899),o=n(189),i=n(8047),a=n(2609),l=n(499),s=n(4006),u=n(8011),c=function(e){(0,s.s)(u.k);var t=e.id,n=e.editorId,o=e.editorRef,c=e.editorDisabled,d=e.children,p=e.editorValid,f=e.style,h=e.className,m=e.optional,v=(0,l.useLocalization)(),g=m?v.toLanguageString(a.y,a.s[a.y]):"",y=g&&r.createElement("span",{className:"k-label-optional"},g),b=r.useCallback((function(e){if(o&&o.current&&!c){o.current.focus&&(e.preventDefault(),o.current.focus());var t=o.current.actionElement;t&&(e.preventDefault(),t.click())}}),[o]),C=(0,i.A)({"k-label":!0,"k-label-empty":!d,"k-text-error":!1===p,"k-text-disabled":!0===c},h);return r.createElement("label",{id:t,htmlFor:n,onClick:b,style:f,className:C},d,y)};c.propTypes={id:o.string,editorId:o.string,editorRef:o.oneOfType([o.func,o.shape({current:o.any})]),editorValid:o.bool,editorDisabled:o.bool,style:o.object,className:o.string,optional:o.bool},c.displayName="KendoReactLabel"},884:(e,t,n)=>{n.r(t),n.d(t,{Error:()=>u,FloatingLabel:()=>d._,Hint:()=>c,Label:()=>r._});var r=n(3287),o=n(3899),i=n(189),a=n(8047),l=n(4006),s=n(8011),u=function(e){(0,l.s)(s.k);var t=(0,a.A)({"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)};u.propTypes={id:i.string,direction:i.oneOf(["start","end"]),children:i.oneOfType([i.element,i.node]),style:i.object,className:i.string},u.defaultProps={direction:"start"},u.displayName="KendoReactError";var c=function(e){(0,l.s)(s.k);var t=(0,a.A)({"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)};c.propTypes={id:i.string,direction:i.oneOf(["start","end"]),children:i.oneOfType([i.element,i.node]),style:i.object,className:i.string,editorDisabled:i.bool},c.defaultProps={direction:"start"},c.displayName="KendoReactHint";var d=n(6097)},2609:(e,t,n)=>{var r;n.d(t,{y:()=>o,s:()=>i});var o="labels.optional",i=((r={})[o]="(Optional)",r)},8011:(e,t,n)=>{n.d(t,{k:()=>r});var r={name:"@progress/kendo-react-labels",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1655890897,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"}},9222:(e,t,n)=>{n.d(t,{G:()=>le});var r=n(3899),o=n(994),i=n(189),a=function(e){e.style.transitionDuration="",Array.from(e.classList).forEach((function(t){t.startsWith("k-slide-")&&e.classList.remove(t)}))},l="undefined"!=typeof window&&/Firefox/.test(window.navigator.userAgent),s=n(4006),u=n(7827),c=n(8259),d=n(8047);const p="bottom",f="center",h="middle",m="left",v="right",g="top",y="fit",b="flip",C="none";var E,w,k,S=function(e,t,n){var r=0;return e+t>n&&(r=n-(e+t)),e<0&&(r=-e),r},O=function(e){var t=e.offset,n=e.size,r=e.anchorSize,o=e.viewPortSize,i=e.anchorAlignPoint,a=e.elementAlignPoint,l=0,s=2*e.margin;if(a!==i&&a!==f&&a!==h&&i!==f&&i!==h){var u=i===g||i===m;t<0&&u?t+(l=n+r+s)+n>o&&(l=0):t>=0&&!u&&(t+n>o&&(l+=-(r+n+s)),t+l<0&&(l=0))}return l},D=(E=function(e){if(!x())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},k=!1,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return k||(w=E.apply(void 0,e),k=!0),w}),x=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)};const I={eitherRect:function(e,t){return e||{height:0,left:t.left,top:t.top,width:0}},scaleRect:function(e,t){return e&&1!==t?{height:e.height/t,left:e.left/t,top:e.top/t,width:e.width/t}:e},removeStackingOffset:function(e,t){return t?{height:e.height,left:e.left-t.left,top:e.top-t.top,width:e.width}:e},hasRelativeStackingContext:D,canUseDOM:x};function T(e){return e.ownerDocument||e.document||e}const _=function(e){return T(e).defaultView},R=function(e){return T(e).documentElement};var M=0;function P(){if(!M&&"undefined"!=typeof document){var e=document.createElement("div");e.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",e.innerHTML="&nbsp;",document.body.appendChild(e),M=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return M}function N(e){var t=_(e),n=R(e),r={height:t.innerHeight,width:t.innerWidth};return n.scrollHeight-n.clientHeight>0&&(r.width-=P()),r}function F(e){var t=R(e),n=_(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}}const A=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 i=e.getBoundingClientRect();return e.style.display=n,e.style.left=r,e.style.position=o,i}(e)),{top:r,left:n,height:t.height,width:t.width}};function j(e){return e===(e.ownerDocument||{}).body?F(e):{x:e.scrollLeft,y:e.scrollTop}}const L=function(e){for(var t=e.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||R(e)};function V(e,t){for(var n=[],r=e.parentNode;r&&(n.push(r),r!==t);)r=r.parentNode;return n}function z(e){for(var t=[],n=e.parentNode.firstElementChild;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t}var B=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],H=function(){return I.canUseDOM()?window:null},U=/auto|scroll/,W=function(e){return function(e){return""+e.style.overflow+e.style.overflowX+e.style.overflowY}(e)||function(e){var t=window.getComputedStyle(e);return""+t.overflow+t.overflowX+t.overflowY}(e)},K=function(e){if(!e||!I.hasRelativeStackingContext())return null;for(var t=e.parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}return null},q=function(){return I.canUseDOM()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},Y={addOffset:function(e,t){return{left:e.left+t.left,top:e.top+t.top}},addScroll:function(e,t){return{top:e.top+t.y,left:e.left+t.x,height:e.height,width:e.width}},align:function(e){var t=e.anchorRect,n=e.anchorAlign,r=e.elementRect,o=e.elementAlign,i=e.margin;void 0===i&&(i={});var a=n.horizontal,l=n.vertical,s=o.horizontal,u=o.vertical,c=i.horizontal||0,d=i.vertical||0,m=t.top,g=t.left;return l===p&&(m+=t.height),l!==f&&l!==h||(m+=Math.round(t.height/2)),u===p&&(m-=r.height,d*=-1),u!==f&&u!==h||(m-=Math.round(r.height/2),d*=-1),a===v&&(g+=t.width),a!==f&&a!==h||(g+=Math.round(t.width/2)),s===v&&(g-=r.width,c*=-1),s!==f&&s!==h||(g-=Math.round(r.width/2),c*=-1),{top:m+d,left:g+c}},boundingOffset:function(e){if(!e.getBoundingClientRect){var t=N(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}},getFontStyles:function(e){var t=H();if(!t||!e)return[];var n=t.getComputedStyle(e);return B.map((function(e){return{key:e,value:n[e]}}))},getWindow:H,hasOffsetParent:function(e){return!!e&&Boolean(e.offsetParent)},offset:function(e){return e?A(e):null},offsetAtPoint:function(e,t){if(!e)return null;var n=e.style,r=n.left,o=n.top,i=n.transition;e.style.transition="none",e.style.left=t.left+"px",e.style.top=t.top+"px";var a=A(e);return e.style.left=r,e.style.top=o,e.offsetHeight,e.style.transition=i,a},position:function(e,t,n){return e&&t?function(e,t,n){void 0===n&&(n=1);var r=t?L(t):null,o=function(e,t){var n=_(e),r=n.getComputedStyle(e),o=A(e),i=t||L(e),a=e.ownerDocument,l=i!==a.body&&i!==a.documentElement,s={top:0,left:0};if("fixed"!==r.position&&l){var u=n.getComputedStyle(i);(s=A(i)).top+=parseInt(u.borderTopWidth,10),s.left+=parseInt(u.borderLeftWidth,10)}return{top:o.top-s.top,left:o.left-s.left,height:o.height,width:o.width}}(e,r),i=o.top,a=o.left,l=o.height,s=o.width,u=function(e,t){return e?j(e):function(e){var t=L(e);return t?j(t):{x:0,y:0}}(t)}(r,e),c=u.x,d=u.y,p=e.ownerDocument,f=r===p.body||r===p.documentElement?1:n;return{top:i+d*f,left:a+c*f,height:l,width:s}}(e,t,n||1):null},removeScroll:function(e,t){return{top:e.top-t.y,left:e.left-t.x,height:e.height,width:e.width}},restrictToView:function(e){var t=e.anchorRect,n=e.anchorAlign,r=e.elementRect,o=e.elementAlign,i=e.collisions,a=e.viewPort,l=e.margin;void 0===l&&(l={});var s=r.top,u=r.left,c=r.height,d=r.width,p=a.height,f=a.width,h=l.horizontal||0,m=l.vertical||0,v=0,g=0,C=i.vertical===y,E=i.horizontal===y,w=i.vertical===b,k=i.horizontal===b;C&&(g+=S(s,c,p)),E&&(v+=S(u,d,f)),w&&(g+=O({margin:m,offset:s,size:c,anchorSize:t.height,viewPortSize:p,anchorAlignPoint:n.vertical,elementAlignPoint:o.vertical})),k&&(v+=O({margin:h,offset:u,size:d,anchorSize:t.width,viewPortSize:f,anchorAlignPoint:n.horizontal,elementAlignPoint:o.horizontal}));var D=w&&0!==g,x=k&&0!==v,I=C&&0!==g,T=E&&0!==v;return{flipped:x||D,fitted:I||T,flip:{horizontal:x,vertical:D},fit:{horizontal:T,vertical:I},offset:{left:v,top:g}}},scrollPosition:F,scrollableParents:function(e){var t=[];if(!I.canUseDOM())return t;for(var n=e.parentElement;n;)(U.test(W(n))||n.hasAttribute("data-scrollable"))&&t.push(n),n=n.parentElement;return t.push(window),t},getRelativeContextElement:K,stackingElementOffset:function(e){var t=K(e);return t?A(t):null},stackingElementScroll:function(e){var t=K(e);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}},stackingElementViewPort:function(e){var t=K(e);return t?{height:t.scrollHeight,width:t.scrollWidth}:null},useRelativePosition:function(e){return Boolean(K(e))},windowViewPort:N,zoomLevel:q,isZoomed:function(){return q()>1},zIndex:function(e,t){if(!e||!I.canUseDOM())return null;var n=function(e,t){for(var n,r,o=V(e),i=t;i&&(n=z(i),!(r=o.reduce((function(e,t){return e.concat(n.filter((function(e){return e===t})))}),[])[0]));)i=i.parentElement;return r}(e,t);if(!n)return null;var r=[e].concat(V(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}};const G=Y;const Z=function(e){var t=e.anchor,n=e.element,r=e.anchorAlign,o=e.elementAlign,i=e.margin,a=e.offset,l=e.positionMode,s=e.scale||1,u="fixed"!==l&&G.hasOffsetParent(n)?function(e,t,n,r){var o=I.eitherRect(G.position(e,t,r),n);return I.scaleRect(o,r)}(t,n,a,s):function(e,t,n,r){var o=function(e,t){return e?{x:0,y:0}:G.scrollPosition(t)}(e,t),i=I.eitherRect(G.offset(e),n),a=2*r,l=G.stackingElementScroll(t);1!==r&&l&&(l.x/=a,l.y/=a);var s=G.stackingElementOffset(t);return 1!==r&&s&&(s.left/=a,s.top/=a),G.removeScroll(G.addScroll(I.removeStackingOffset(I.scaleRect(i,r),s),l),o)}(t,n,a,s),c=I.scaleRect(G.offset(n),s);return G.align({anchorAlign:r,anchorRect:u,elementAlign:o,elementRect:c,margin:i})};var X,$={name:"@progress/kendo-react-popup",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1655890755,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"},Q=(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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},X(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}X(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),J=function(){return J=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},J.apply(this,arguments)};function ee(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 i=n[o];if(e[i]!==t[i])return!1}return!0}var te,ne={left:-1e3,top:0};!function(e){e.hiding="hiding",e.hidden="hidden",e.showing="showing",e.shown="shown",e.reposition="reposition"}(te||(te={}));var re="k-animation-container-shown",oe=function(e){function t(t){var n=e.call(this,t)||this;return n.context=0,n.state={current:te.hidden,previous:te.hidden,props:{}},n._popup=null,n.show=function(e){n.setPosition(e),n.animate(e.firstChild,"enter",n.onOpened),n.setState({current:te.shown,previous:n.state.current})},n.setPosition=function(e){var t=n.props,r=t.anchorAlign,o=t.popupAlign,i=t.collision,a=t.offset,l=t.anchor,s=t.margin,u=t.scale,c=t.positionMode,d=function(e){var t=e.anchor,n=e.currentLocation,r=e.element,o=e.anchorAlign,i=e.elementAlign,a=e.collisions,l=e.margin,s=e.scale||1,u=G.offsetAtPoint(r,n),c=I.scaleRect(u,s),d=I.scaleRect(G.offset(t),s),p=I.eitherRect(d,n),f=e.viewPort||G.windowViewPort(r);f.width=f.width/s,f.height=f.height/s;var h=G.restrictToView({anchorAlign:o,anchorRect:p,collisions:a,elementAlign:i,elementRect:c,margin:l,viewPort:f}),m=G.addOffset(n,h.offset);return{flip:h.flip,flipped:h.flipped,offset:m}}({anchor:l,anchorAlign:r,element:e,elementAlign:o,collisions:i,currentLocation:Z({anchor:l,anchorAlign:r,element:e,elementAlign:o,offset:a,margin:s,positionMode:c,scale:u}),margin:n.props.margin});if(e.style.top=d.offset.top+"px",e.style.left=d.offset.left+"px",n._collisions={fit:d.fit,fitted:d.fitted,flip:d.flip,flipped:d.flipped},n.props.onPosition){var p={target:n,flipped:d.flipped,fitted:d.fitted};n.props.onPosition.call(void 0,p)}},n.onOpened=function(){var e=n._popup;e&&(n.props.show&&e.classList.add(re),n.attachRepositionHandlers(e),n.props.onOpen&&n.props.onOpen.call(void 0,{target:n}))},n.animate=function(e,t,r){if(n.props.popupAlign){var o,i=n.props.popupAlign,s=i.horizontal,u=i.vertical;o="left"===s&&"center"===u?"right":"right"===s&&"center"===u?"left":"top"===u?"down":"up",n._collisions&&n._collisions.flipped&&(o={down:"up",up:"down",left:"right",right:"left"}[o]),function(e,t,n,r,o){if(0===n)return o();var i="k-slide-"+t+"-"+r,s=i+"-active",u=function(t){t.target===e&&(e.removeEventListener("transitionend",u),a(e),"exit"===r&&(e.style.display="none"),o())};e.addEventListener("transitionend",u);var c=e.ownerDocument;if(c){var d=c.defaultView;if(d){var p=function(){a(e),e.classList.add(i),d.requestAnimationFrame((function(){e.style.transitionDuration=n+"ms",e.classList.add(s)}))};l?d.requestAnimationFrame(p):p()}}}(e,o,n.animationDuration[t],t,r)}},n.onClosing=function(e){n.props.show||e.classList.remove(re),n.detachRepositionHandlers()},n.onClosed=function(){n.state.current===te.hiding&&n.state.previous===te.shown&&n.setState({current:te.hidden,previous:n.state.current}),n.props.onClose&&n.props.onClose.call(void 0,{target:n})},n.getCurrentZIndex=function(){return n.context?n.context+1:100},(0,s.s)($),n.reposition=function(e,t,n){var r,o,i,a;void 0===n&&(n={});var l=0;n=n||{};var s=function(){l=!1===n.leading?0:(new Date).getTime(),r=void 0,a=e.apply(o,i),r||(o=i=null)};return function(){var u=(new Date).getTime();l||!1!==n.leading||(l=u);var c=t-(u-l);return o=void 0,i=arguments,c<=0||c>t?(r&&(clearTimeout(r),r=void 0),l=u,a=e.apply(o,i),r||(o=i=null)):r||!1===n.trailing||(r=window.setTimeout(s,c)),a}}(n.reposition.bind(n),16.666666666666668),n}return Q(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._popup},enumerable:!1,configurable:!0}),t.getDerivedStateFromProps=function(e,t){var n=e.show,r=e.anchor,o=e.anchorAlign,i=e.appendTo,a=e.collision,l=e.popupAlign,s=e.className,u=e.popupClass,c=e.style,d=e.offset,p=e.contentKey,f=J(J({},t),{props:{show:n,anchor:r,anchorAlign:o,appendTo:i,collision:a,popupAlign:l,className:s,popupClass:u,style:c,offset:d,contentKey:p}});return e.show?t.current===te.hidden||t.current===te.hiding?J(J({},f),{current:te.showing,previous:t.current}):t.current===te.showing?J(J({},f),{current:te.shown,previous:t.current}):t.current!==te.shown||ee(d,t.props.offset)&&ee(o,t.props.anchorAlign)&&ee(i,t.props.appendTo)&&ee(a,t.props.collision)&&ee(l,t.props.popupAlign)&&ee(c,t.props.style)&&r===t.props.anchor&&u===t.props.popupClass&&s===t.props.className?f:J(J({},f),{current:te.reposition,previous:t.current}):t.current===te.hiding||t.current===te.hidden?J(J({},f),{current:te.hidden,previous:t.current}):J(J({},f),{current:te.hiding,previous:t.current})},t.prototype.componentDidUpdate=function(e){this.state.current===te.showing&&this._popup?this.show(this._popup):this.state.current===te.hiding&&this._popup?(this.onClosing(this._popup),this.animate(this._popup.firstChild,"exit",this.onClosed)):this.state.current===te.reposition&&this.state.previous===te.shown?this.setState({current:te.shown,previous:this.state.current}):this.state.current===te.shown&&e.contentKey!==this.props.contentKey&&this._popup&&this.setPosition(this._popup)},t.prototype.componentDidMount=function(){this.state.current===te.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,i=t.className,a=t.popupClass,l=t.show,s=t.id,p=t.positionMode,f=this.props.appendTo?this.props.appendTo:u.N?this.props.anchor&&this.props.anchor.ownerDocument?this.props.anchor.ownerDocument.body:document.body:void 0;this.state.current===te.reposition&&this.state.previous===te.shown&&this._popup&&this.setPosition(this._popup);var h=Object.assign({},{position:p,top:0,left:-1e4},this.props.style||{}),m=this.state.current===te.hiding;if((l||m)&&f){var v=this.getCurrentZIndex(),g=r.createElement(c.$.Provider,{value:v},r.createElement("div",{className:(0,d.A)("k-animation-container","k-animation-container-relative",i),id:s,ref:function(t){return e._popup=t},style:J({zIndex:v},h)},r.createElement("div",{className:(0,d.A)("k-popup",a,"k-child-animation-container"),style:{transitionDelay:"0ms"}},n)));return null!==this.props.appendTo?o.createPortal(g,f):g}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:!1,configurable:!0}),t.prototype.attachRepositionHandlers=function(e){var t=this;this.detachRepositionHandlers(),this._scrollableParents=G.scrollableParents(this.props.anchor||e),this._scrollableParents&&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:te.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:i.oneOfType([i.string,i.arrayOf(i.string),i.object]),id:i.string,popupClass:i.oneOfType([i.string,i.arrayOf(i.string),i.object]),collision:i.shape({horizontal:i.oneOf([y,b,C]),vertical:i.oneOf([y,b,C])}),anchorAlign:i.shape({horizontal:i.oneOf([m,f,v]),vertical:i.oneOf([g,f,p])}),popupAlign:i.shape({horizontal:i.oneOf([m,f,v]),vertical:i.oneOf([g,f,p])}),offset:i.shape({left:i.number,top:i.number}),children:i.oneOfType([i.element,i.node]),show:i.bool,animate:i.oneOfType([i.bool,i.shape({openDuration:i.number,closeDuration:i.number})]),margin:i.shape({horizontal:i.number,vertical:i.number}),positionMode:i.oneOf(["fixed","absolute"]),scale:i.number,style:i.object,onClose:i.func,onPosition:i.func,onOpen:i.func},t.defaultProps={collision:{horizontal:y,vertical:b},anchorAlign:{horizontal:m,vertical:p},popupAlign:{horizontal:m,vertical:g},offset:ne,animate:!0,show:!1,margin:{horizontal:0,vertical:0},positionMode:"absolute"},t.contextType=c.$,t.displayName="PopupComponent",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},ie.apply(this,arguments)},ae=r.createContext((function(e){return e})),le=r.forwardRef((function(e,t){var n=r.useContext(ae).call(void 0,e);return r.createElement(oe,ie({ref:t},n))}));le.displayName="Popup"},9218:(e,t,n)=>{n.r(t),n.d(t,{FilterOperator:()=>q,aggregateBy:()=>et,compileFilter:()=>it,composeSortDescriptors:()=>Ye,distinct:()=>ft,filterBy:()=>at,getter:()=>Y,groupBy:()=>ut,isCompositeFilterDescriptor:()=>m,normalizeFilters:()=>_,normalizeGroups:()=>lt,orderBy:()=>dt,process:()=>ht,toDataSourceRequest:()=>_e,toDataSourceRequestString:()=>Te,toODataString:()=>U,translateAggregateResults:()=>He,translateDataSourceResultGroups:()=>Be});var r,o,i,a,l=function(e){return null!=e},s=function(e){return null==e},u=function(e){return Array.isArray(e)},c=function(e){return"function"==typeof e},d=function(e){return"string"==typeof e},p=function(e){return!function(e){return s(e)||0===e.trim().length}(e)},f=function(e){return!isNaN(e-parseFloat(e))},h=function(e){return e&&e.getTime},m=function(e){return l(e.filters)},v=n(655),g=function(e,t,n){return function(r){return e(r)?t(r):n(r)}},y=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return e.reduceRight((function(e,t){return t(e)}),t)}},b=function(e){return e},C=function(e){return function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return e()?""+t[0]+n[0]+t[1]:n[0]}},E=function(e){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()))},w=function(e){var t=e.field,n=e.value,r=e.ignoreCase,o=e.operator;return{value:"'"+n.replace(/'/g,"''")+"'",field:t,ignoreCase:r,operator:o}},k=function(e){var t=e.field,n=e.value,r=e.ignoreCase,o=e.operator;return{value:""+encodeURIComponent(n),field:t,ignoreCase:r,operator:o}},S=function(e){var t=e.field,n=e.value,o=e.ignoreCase,i=e.operator;return{field:C((function(){return o}))(r||(r=v.cy(["tolower(",")"],["tolower(",")"])),t),value:n,ignoreCase:o,operator:i}},O=function(e){var t=e.field,n=e.value,r=e.ignoreCase,o=e.operator;return{value:n,field:t.replace(/\./g,"/"),ignoreCase:r,operator:o}},D=function(e){return d(e.value)},x=function(e){return h(e.value)},I=function(e,t){return function(n){return C((function(){return n.filters.length>1}))(o||(o=v.cy(["(",")"],["(",")"])),n.filters.map(e).join(t(n)))}},T=function(e){e.filters&&(e.filters=e.filters.map((function(e){var t,n=Object.assign({},e);return!m(e)&&d(e.operator)&&(n.operator={"!=":"neq","<":"lt","<=":"lte","==":"eq",">":"gt",">=":"gte",equal:"eq",equals:"eq",equalto:"eq",ge:"gte",greater:"gt",greaterthan:"gt",greaterthanequal:"gte",isempty:"isempty",isequalto:"eq",isgreaterthan:"gt",isgreaterthanorequalto:"gte",islessthan:"lt",islessthanorequalto:"lte",isnotempty:"isnotempty",isnotequalto:"neq",isnull:"isnull",le:"lte",less:"lt",lessthan:"lt",lessthanequal:"lte",ne:"neq",notequal:"neq",notequals:"neq",notequalto:"neq",notsubstringof:"doesnotcontain"}[(t=e.operator).toLowerCase()]||t),m(e)&&T(n),n})))},_=function(e){return l(e)&&(e=function(e){return m(e)?Object.assign({},e):{filters:u(e)?e:[e],logic:"and"}}(e),T(e)),e},R=function(e){var t=e.operator;return function(e){var n=e.field,r=e.value;return n+" "+t+" "+r}},M=function(e){return y(e,k,w,S,O)},P=function(e){return M((t=e.operator,function(e){var n=e.field,r=e.value;return t+"("+n+","+r+")"}));var t},N=function(e){return g(x,function(e){return y(R(e),O,(t=e.utcDates,function(e){var n=e.field,r=e.value,o=e.ignoreCase,i=e.operator;return{value:JSON.stringify(t?r:E(r)).replace(/"/g,""),field:n,ignoreCase:o,operator:i}}));var t}(e),function(e){return y(R(e),O)}(e))},F=function(e){return g(D,function(e){return M(R(e))}(e),N(e))},A=function(e){return e+" eq -1"},j=function(e){return y(e,O)},L=function(e){return" "+e.logic+" "},V=function(e){return I((function(t){return g(m,V(e),function(e){return function(t){return function(e,t){return{contains:P(v.pi({},t,{operator:"contains"})),doesnotcontain:y(A,P(v.pi({},t,{operator:"indexof"}))),endswith:P(v.pi({},t,{operator:"endswith"})),eq:F(v.pi({},t,{operator:"eq"})),gt:F(v.pi({},t,{operator:"gt"})),gte:F(v.pi({},t,{operator:"ge"})),isempty:j((function(e){return e.field+" eq ''"})),isnotempty:j((function(e){return e.field+" ne ''"})),isnotnull:j((function(e){return e.field+" ne null"})),isnull:j((function(e){return e.field+" eq null"})),lt:F(v.pi({},t,{operator:"lt"})),lte:F(v.pi({},t,{operator:"le"})),neq:F(v.pi({},t,{operator:"ne"})),startswith:P(v.pi({},t,{operator:"startswith"}))}[e]}(t.operator,e)(t)}}(e))(t)}),L)},z=function(e,t){return void 0===t&&(t={}),e.filters&&e.filters.length?"$filter="+V(t)(_(e)):""},B=("",function(){return""}),H=function(e,t){return g(l,(n=e[0],function(e){return n+e}),B)(t);var n},U=function(e,t){return void 0===t&&(t={}),Object.keys(e).map(function(e,t){return function(n){return{filter:z(t.filter||{},e),skip:H(i||(i=v.cy(["$skip=",""],["$skip=",""])),t.skip),sort:(r=t.sort||[],o=r.filter((function(e){return l(e.dir)})).map((function(e){var t=e.field.replace(/\./g,"/");return"desc"===e.dir?t+" desc":t})).join(","),o?"$orderby="+o:o),take:H(a||(a=v.cy(["$top=",""],["$top=",""])),t.take)}[n];var r,o}}(t,e)).filter(p).join("&")},W={},K=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;W[void 0]=function(e){return e};var q,Y=function(e,t){var n=e+t;if(W[n])return W[n];var r=[];return e.replace(K,(function(e,t,n,o){r.push(l(t)?t:n||o)})),W[n]=function(e){for(var n=e,o=0;o<r.length;o++)if(n=n[r[o]],!l(n)&&t)return n;return n},W[n]},G=function(e){return function(t){return[e,t]}},Z=function(){return null},X=function(e){return function(t){return l(e(t))}},$=function(e){return function(t){return function(e){return l(e)&&u(e)&&e.length>0}(e(t))}},Q=function(e,t){return g(e,t,Z)},J=function(e,t){return function(n){return e(n).map(t).join("~")}},ee=y.apply(void 0,[['"',""],[":","-"]].map((function(e){var t=e[0],n=e[1];return function(e){return e.replace(new RegExp(t,"g"),n)}}))),te=(".",function(e){return e.slice(0,e.indexOf("."))}),ne=function(e){var t=e.field,n=e.dir;return t+"-"+(void 0===n?"asc":n)},re=Y("take"),oe=Y("aggregates"),ie=Y("skip"),ae=Y("group"),le=Y("sort",!0),se=J(le,ne),ue=J(ae,ne),ce=J(oe,(function(e){return e.field+"-"+e.aggregate})),de=y((function(e){return"datetime'"+e+"'"}),te,ee,JSON.stringify,E),pe=y(G("page"),(function(e){var t=e.skip,n=e.take;return Math.floor((t||0)/n)+1})),fe=y(G("pageSize"),re),he=y(G("group"),ue),me=y(G("sort"),se),ve=y(G("aggregate"),ce),ge=Q(X(ie),pe),ye=Q(X(re),fe),be=Q($(ae),he),Ce=Q(X(oe),ve),Ee=y(Q($(le),me),(function(e){return Object.assign({},e,{sort:(le(e)||[]).filter((function(e){var t=e.dir;return p(t)}))})})),we=function(e){var t=e.field;return p(t)},ke=function(e){return e.field+"~"+e.operator+"~"+e.value},Se=g(x,y(ke,(function(e){var t=e.field,n=e.value,r=e.ignoreCase,o=e.operator;return{value:de(n),field:t,ignoreCase:r,operator:o}})),ke),Oe=function(e){return"~"+e.logic+"~"},De=function(e){return I((function(t){return g(m,De(e),function(e){return Q(we,g(D,y(ke,w,e?k:b),Se))}(e))(t)}),Oe)},xe=function(e,t){var n=e.filter;if(n&&n.filters){var r=De(t)(n);if(r.length)return["filter",r]}return null},Ie=function(e,t){return void 0===t&&(t=!0),function(n){return{aggregates:Ce(e),filter:xe(e,t),group:be(e),skip:ge(e),sort:Ee(e),take:ye(e)}[n]}},Te=function(e){return(t=Object.keys(e).map(Ie(e)).filter(l),t.reduce((function(e,t){var n=t[0],r=t[1];return e.concat([n+"="+r])}),[])).join("&");var t},_e=function(e){return Object.keys(e).map(Ie(e,!1)).filter(l).reduce((function(e,t){var n,r=t[0],o=t[1];return v.pi({},e,((n={})[r]=o,n))}),{})},Re=function(e,t,n){return t[e]=n,t},Me=function(e){return function(t){var n,r=t[e];return l(r)?r:t[(n=e,n.replace(/(^[A-Z])/g,(function(e,t){return t.toLowerCase()})))]}},Pe=Me("Member"),Ne=Me("AggregateMethodName"),Fe=Me("Value"),Ae=function(e){return function(t){return Object.keys(t).reduce(e.bind(null,t),{})}},je=Ae((function(e,t,n){return Re(n.toLowerCase(),t,e[n])})),Le=Ae((function(e,t,n){return Re(n,t,je(e[n]))})),Ve=function(e,t){return l(e)?e:t},ze=y((function(e){var t=e.field,n=e.hasSubgroups,r=e.value,o=e.aggregates,i=e.items;return{aggregates:Le(o),field:t,items:n?i.map(ze):i,value:r}}),(function(e){return{aggregates:e.Aggregates||e.aggregates,field:e.Member||e.member||e.field,hasSubgroups:e.HasSubgroups||e.hasSubgroups||!1,items:e.Items||e.items,value:Ve(e.Key,Ve(e.key,e.value))}})),Be=function(e){return e.map(ze)},He=function(e){return(e||[]).reduce((function(e,t){return Re(Pe(t),e,Re(Ne(t).toLowerCase(),e[Pe(t)]||{},Fe(t)))}),{})},Ue=function(e,t){return s(e)?e===t?0:-1:s(t)?1:e.localeCompare?e.localeCompare(t):e>t?1:e<t?-1:0},We=function(e,t){return Ue(t,e)},Ke=function(e){var t=Y(e.field,!0);return function(n,r){return("asc"===e.dir?Ue:We)(t(n),t(r))}},qe=function(e,t){return 0},Ye=function(e){return e.filter((function(e){return l(e.dir)})).map((function(e){return Ke(e)})).reduce((function(e,t){return function(n,r){return e(n,r)||t(n,r)}}),qe)},Ge=function(e,t){return e.push(t),e},Ze=function(e){return function(t){return function(n,r,o){return t(n,e(r,o))}}},Xe=function(e){return function(t){return function(n,r){return e(r)?t(n,r):n}}},$e=function(e){return l(e.__value)},Qe=function(e,t,n){for(var r=t,o=0,i=n.length;o<i;o++)if(r=e(r,n[o],o),$e(r)){r=r.__value;break}return r},Je=Ze((function(e){return e})),et=function(e,t,n){void 0===t&&(t=[]),void 0===n&&(n=Je);var r,o={};return t.length?(r=Qe(n(function(e){var t=e.map((function(e){var t=Y(e.field,!0),n=(e.aggregate||"").toLowerCase(),r=Y(n,!0);return function(o,i){var a=o[e.field]||{},s=r(a)||{average:function(){var e=0,t=0;return{calc:function(n){f(n)?(e+=n,t++):e=n},result:function(){return f(e)?e/t:e}}},count:function(){var e=0;return{calc:function(){return e++},result:function(){return e}}},max:function(){var e=Number.NEGATIVE_INFINITY;return{calc:function(t){(e=f(e)||h(e)?e:t)<t&&(f(t)||h(t))&&(e=t)},result:function(){return e}}},min:function(){var e=Number.POSITIVE_INFINITY;return{calc:function(t){(e=f(e)||h(e)?e:t)>t&&(f(t)||h(t))&&(e=t)},result:function(){return e}}},sum:function(){var e=0;return{calc:function(t){t=l(t)?t:0,e+=t},result:function(){return e}}}}[n]();return s.calc(t(i)),a[e.aggregate]=s,o[e.field]=a,o}}));return function(e,n){return t.reduce((function(e,t){return t(e,n)}),e)}}(t)),o,e),void 0===r&&(r={}),Object.keys(r).forEach((function(e){var t=r[e];Object.keys(t).forEach((function(e){t[e]=t[e].result()}))})),r):o},tt={or:{concat:function(e,t){return function(n){return e(n)||t(n)}},identity:function(){return!1}},and:{concat:function(e,t){return function(n){return e(n)&&t(n)}},identity:function(){return!0}}},nt={contains:function(e,t){return(e||"").indexOf(t)>=0},doesnotcontain:function(e,t){return-1===(e||"").indexOf(t)},doesnotendwith:function(e,t){return(e||"").indexOf(t,(e||"").length-(t||"").length)<0},doesnotstartwith:function(e,t){return-1===(e||"").lastIndexOf(t,0)},endswith:function(e,t){return(e||"").indexOf(t,(e||"").length-(t||"").length)>=0},eq:function(e,t){return e===t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t},isempty:function(e){return""===e},isnotempty:function(e){return""!==e},isnotnull:function(e){return l(e)},isnull:function(e){return s(e)},lt:function(e,t){return e<t},lte:function(e,t){return e<=t},neq:function(e,t){return e!=t},startswith:function(e,t){return 0===(e||"").lastIndexOf(t,0)}},rt=/^\/Date\((.*?)\)\/$/,ot=function(e){var t=tt[e.logic];return e.filters.filter(l).map((function(e){return m(e)?ot(e):function(e){var t=e.field,n=e.ignoreCase,r=e.value,o=e.operator;t=l(t)?t:function(e){return e},n=!l(n)||n;var i=function(e,t,n){if(!l(t))return e;var r=e;if(d(t)){var o=rt.exec(t);o?t=new Date(+o[1]):r=function(t){var r=e(t);return"string"==typeof r&&n?r.toLowerCase():f(r)?r+"":r}}return h(t)?function(e){var t=r(e);return h(t)?t.getTime():t}:r}(c(t)?t:Y(t,!0),r,n);r=function(e,t){if(null!=e&&d(e)){var n=rt.exec(e);if(n)return new Date(+n[1]).getTime();if(t)return e.toLowerCase()}else if(null!=e&&h(e))return e.getTime();return e}(r,n);var a=c(o)?o:nt[o];return function(e){return a(i(e),r,n)}}(e)})).reduce(t.concat,t.identity)},it=function(e){return e&&0!==e.filters.length?ot(e):function(){return!0}},at=function(e,t){return!l(t)||m(t)&&0===t.filters.length?e:e.filter(it(_(t)))},lt=function(e){return(e=u(e)?e:[e]).map((function(e){return Object.assign({dir:"asc"},e)}))},st=Ze((function(e){return e})),ut=function(e,t,n,r){if(void 0===t&&(t=[]),void 0===n&&(n=st),void 0===r&&(r=e),!(t=lt(t)).length)return e;var o=t[0],i=Qe(n(function(e){var t=Y(e,!0),n=0;return function(r,o){r[e]=r[e]||{};var i=t(o),a=function(e){return(e=l(e)&&e.getTime?e.getTime():e)+""}(i),s=r[e][a]||{__position:n++,aggregates:{},items:[],value:i};return s.items.push(o),r[e][a]=s,r}}(o.field)),{},e),a=[];return Object.keys(i).forEach((function(e){Object.keys(i[e]).forEach((function(n){var s=i[e][n],u={},c=r;l(o.aggregates)&&(c=at(r,{field:o.field,ignoreCase:!1,operator:"eq",value:s.value}),u=et(c,o.aggregates)),a[s.__position]={aggregates:u,field:e,items:t.length>1?ut(s.items,t.slice(1),st,c):s.items,value:s.value}}))})),a},ct=function(e,t,n,r){if(!(n-t<2)){var o=t+n>>>1;ct(e,t,o,r),ct(e,o,n,r),function(e,t,n,r,o){for(var i=n-t,a=r-n,l=[],s=0;s<i;s++)l.push(e[t+s]);var u=0,c=n,d=t;do{o(e[c],l[u])<0?(e[d++]=e[c++],a--):(e[d++]=l[u++],i--)}while(a>0&&i>0);for(;i;)e[d++]=l[u++],i--;for(;a;)e[d++]=e[c++],a--}(e,t,o,n,r)}},dt=function(e,t){if(t.some((function(e){return l(e.dir)}))){e=e.slice(0);var n=Ye(t);ct(e,0,e.length,n)}return e},pt=function(e,t){return e===t},ft=function(e,t){return void 0===t&&(t=pt),function(e,t){return e.filter((function(e,n,r){return r.findIndex(t.bind(null,e))===n}))}(e,function(e){if(d(e)){var t=Y(e);e=function(e,n){return t(e)===t(n)}}return e}(t))},ht=function(e,t){var n=t.skip,r=t.take,o=t.filter,i=t.sort,a=t.group,s=lt(a||[]).concat(i||[]);s.length&&(e=dt(e,s));var u,c=l(o)&&Xe.length,d=l(a)&&a.length;if(!c&&!d)return{data:r?e.slice(n,n+r):e,total:e.length};var p,f,h=[];if(c?(u=function(e,t){for(var n=0,r=0,o=e.length;r<o;r++)t(e[r])&&n++;return n}(e,p=it(_(o))),h.push(Xe(p))):u=e.length,l(n)&&l(r)&&(h.push((f=n,function(e){return function(t,n){return f--<=0?e(t,n):t}})),h.push(function(e){return function(t){return function(n,r){return e-- >0?t(n,r):function(e){return $e(e)?e:{__value:e,reduced:!0}}(n)}}}(r))),h.length){var m=y.apply(void 0,h),v=d?ut(e,a,m,function(e,t){return t?e.filter(t):e}(e,p)):Qe(m(Ge),[],e);return{data:v,total:u}}return{data:d?ut(e,a):e,total:u}};!function(e){e.Contains="contains",e.DoesNotContain="doesnotcontain",e.DoesNotEndWith="doesnotendwith",e.DoesNotStartWith="doesnotstartwith",e.EndsWith="endswith",e.EqualTo="eq",e.GreaterThan="gt",e.GreaterThanOrEqual="gte",e.IsEmpty="isempty",e.IsNotEmpty="isnotempty",e.IsNotNull="isnotnull",e.IsNull="isnull",e.LessThan="lt",e.LessThanOrEqual="lte",e.NotEqualTo="neq",e.StartsWith="startswith"}(q||(q={}))},1025:(e,t,n)=>{n.r(t),n.d(t,{expand:()=>Yt,parseRule:()=>Zt,serializeRule:()=>$t});var r={};n.r(r),n.d(r,{byHour:()=>It,byMinute:()=>Tt,byMonth:()=>kt,byMonthDay:()=>St,bySecond:()=>_t,byWeekDay:()=>xt,byWeekNumber:()=>Dt,byYearDay:()=>Ot});var o=n(619),i=n(655),a=function(e){return e instanceof Array&&e.length>0},l=function(e){return a(e.bySecond)||a(e.byMinute)||a(e.byHour)||a(e.byYearDay)||a(e.byMonthDay)||a(e.byWeekDay)||a(e.byMonth)||a(e.byWeekNumber)},s=function(e){for(var t=e.split(";"),n=[],r=null,o=0;o<t.length;o++){var i=t[o].split(":"),a=i[0],l=i[1],s=void 0===l?"":l,u=a.indexOf("TZID");-1!==u&&(r=a.substring(u).split("=")[1]),n=s.split(",").map((function(e){return ot(e,r)}))}return n.length&&null!==n[0]?n:null},u=function(e){var t=s(e);return null===t?null:t[0]};function c(e){return"string"==typeof e}var d=/\{(\d+)}?\}/g,p=function(e){var t=e.name,n=e.message;if(!t||!n)throw new Error("{ name: string, message: string } object is required!");this.name=t,this.message=n};p.prototype.formatMessage=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=h(e),r=this.message.replace(d,(function(e,t){return n[parseInt(t,10)]}));return this.name+": "+r},p.prototype.error=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new Error(this.formatMessage(e))};var f,h=function(e){return e.reduce((function(e,t){return e.concat(t)}),[])},m=(f={NoLocale:"Missing locale info for '{0}'",NoCurrency:"Cannot determine currency information. Please load the locale currencies data.",NoSupplementalCurrency:"Cannot determine currency. Please load the supplemental currencyData.",NoCurrencyRegion:"No currency data for region '{0}'",NoCurrencyDisplay:"Cannot determine currency display information. Please load the locale currencies data. The default culture does not include the all currencies data.",NoGMTInfo:"Cannot determine locale GMT format. Please load the locale timeZoneNames data.",NoWeekData:"Cannot determine locale first day of week. Please load the supplemental weekData.",NoFirstDay:"Cannot determine locale first day of week. Please load the supplemental weekData. The default culture includes only the 'en-US' first day info.",NoValidCurrency:"Cannot determine a default currency for the {0} locale. Please specify explicitly the currency with the format options.",NoDateFieldNames:"Cannot determine the locale date field names. Please load the locale dateFields data."},Object.keys(f).reduce((function(e,t){return e[t]=new p({name:t,message:f[t]}),e}),{})),v={en:{name:"en",identity:{version:{_number:"$Revision: 12418 $",_cldrVersion:"29"},language:"en"},territory:"US",numbers:{symbols:{decimal:".",group:",",list:";",percentSign:"%",plusSign:"+",minusSign:"-",exponential:"E",superscriptingExponent:"×",perMille:"‰",infinity:"∞",nan:"NaN",timeSeparator:":"},decimal:{patterns:["n"],groupSize:[3]},scientific:{patterns:["nEn"],groupSize:[]},percent:{patterns:["n%"],groupSize:[3]},currency:{patterns:["$n"],groupSize:[3],"unitPattern-count-one":"n $","unitPattern-count-other":"n $"},currencies:{BGN:{displayName:"Bulgarian Lev","displayName-count-one":"Bulgarian lev","displayName-count-other":"Bulgarian leva",symbol:"BGN"},EUR:{displayName:"Euro","displayName-count-one":"euro","displayName-count-other":"euros",symbol:"€","symbol-alt-narrow":"€"},USD:{displayName:"US Dollar","displayName-count-one":"US dollar","displayName-count-other":"US dollars",symbol:"$","symbol-alt-narrow":"$"}},localeCurrency:"USD",accounting:{patterns:["$n","($n)"],groupSize:[3]}},calendar:{gmtFormat:"GMT{0}",gmtZeroFormat:"GMT",patterns:{d:"M/d/y",D:"EEEE, MMMM d, y",m:"MMM d",M:"MMMM d",y:"MMM y",Y:"MMMM y",F:"EEEE, MMMM d, y h:mm:ss a",g:"M/d/y h:mm a",G:"M/d/y h:mm:ss a",t:"h:mm a",T:"h:mm:ss a",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'"},dateTimeFormats:{full:"{1} 'at' {0}",long:"{1} 'at' {0}",medium:"{1}, {0}",short:"{1}, {0}",availableFormats:{Bh:"h B",Bhm:"h:mm B",Bhms:"h:mm:ss B",d:"d",E:"ccc",EBhm:"E h:mm B",EBhms:"E h:mm:ss B",Ed:"d E",Ehm:"E h:mm a",EHm:"E HH:mm",Ehms:"E h:mm:ss a",EHms:"E HH:mm:ss",Gy:"y G",GyMMM:"MMM y G",GyMMMd:"MMM d, y G",GyMMMEd:"E, MMM d, y G",h:"h a",H:"HH",hm:"h:mm a",Hm:"HH:mm",hms:"h:mm:ss a",Hms:"HH:mm:ss",hmsv:"h:mm:ss a v",Hmsv:"HH:mm:ss v",hmv:"h:mm a v",Hmv:"HH:mm v",M:"L",Md:"M/d",MEd:"E, M/d",MMM:"LLL",MMMd:"MMM d",MMMEd:"E, MMM d",MMMMd:"MMMM d","MMMMW-count-one":"'week' W 'of' MMMM","MMMMW-count-other":"'week' W 'of' MMMM",ms:"mm:ss",y:"y",yM:"M/y",yMd:"M/d/y",yMEd:"E, M/d/y",yMMM:"MMM y",yMMMd:"MMM d, y",yMMMEd:"E, MMM d, y",yMMMM:"MMMM y",yQQQ:"QQQ y",yQQQQ:"QQQQ y","yw-count-one":"'week' w 'of' Y","yw-count-other":"'week' w 'of' Y"}},timeFormats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateFormats:{full:"EEEE, MMMM d, y",long:"MMMM d, y",medium:"MMM d, y",short:"M/d/yy"},days:{format:{abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},"stand-alone":{abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]}},months:{format:{abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},"stand-alone":{abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]}},quarters:{format:{abbreviated:["Q1","Q2","Q3","Q4"],narrow:["1","2","3","4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},"stand-alone":{abbreviated:["Q1","Q2","Q3","Q4"],narrow:["1","2","3","4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]}},dayPeriods:{format:{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},narrow:{midnight:"mi",am:"a","am-alt-variant":"am",noon:"n",pm:"p","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"}},"stand-alone":{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"},narrow:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"}}},eras:{format:{wide:{0:"Before Christ",1:"Anno Domini","0-alt-variant":"Before Common Era","1-alt-variant":"Common Era"},abbreviated:{0:"BC",1:"AD","0-alt-variant":"BCE","1-alt-variant":"CE"},narrow:{0:"B",1:"A","0-alt-variant":"BCE","1-alt-variant":"CE"}}},dateFields:{era:{wide:"era"},year:{wide:"year",short:"yr.",narrow:"yr."},quarter:{wide:"quarter",short:"qtr.",narrow:"qtr."},month:{wide:"month",short:"mo.",narrow:"mo."},week:{wide:"week",short:"wk.",narrow:"wk."},day:{wide:"day",short:"day",narrow:"day"},weekday:{wide:"day of the week"},dayperiod:{wide:"AM/PM"},hour:{wide:"hour",short:"hr.",narrow:"hr."},minute:{wide:"minute",short:"min.",narrow:"min."},second:{wide:"second",short:"sec.",narrow:"sec."},millisecond:{wide:"millisecond",short:"ms",narrow:"ms"},zone:{wide:"time zone"}}}},supplemental:{likelySubtags:{en:"en-Latn-US"},currencyData:{region:{US:[{USD:{_from:"1792-01-01"}}]}},weekData:{firstDay:{US:"sun"},weekendStart:{"001":"sat"},weekendEnd:{"001":"sun"}}}};function g(e){return c(e)?y(e):e}function y(e){if(v[e])return v[e];if(v.supplemental.likelySubtags){var t=e.split("-"),n=t[0],r=t.slice(1),o=function(e,t){for(var n=v.supplemental.likelySubtags,r=0;r<t.length;r++){var o=n[e+"-"+t[r]];if(o)return o}if(n[e])return n[e]}(n,r),i=o?function(e,t){var n=e.split("-"),r=n[0],o=n[1],i=n[2];return v[e]||-1!==t.indexOf(i)&&v[r+"-"+i]||-1!==t.indexOf(o)&&v[r+"-"+o]||v[r]}(o,r):null;if(i)return i}throw m.NoLocale.error(e)}function b(e){if(e.territory)return e.territory;var t,n=e.name,r=e.identity;return t=r&&r.territory?r.territory:function(e,t){var n=v.supplemental.likelySubtags,r=e.split("-");if(n){var o=n[e]||n[r[0]];o&&(r=o.split("-"))}if(t)for(var i=r.length-1;i>=1;i--){var a=r[i];a!==t.variant&&a!==t.script||r.splice(i,1)}var l=r.length;if(l>1)return r[l-1].toUpperCase()}(n,r),e.territory=t,t}var C="decimal",E="currency",w="accounting",k="percent",S="scientific",O="n",D=".",x="",I="en";function T(e){var t=e.split("-"),n=parseInt(t[0],10),r=parseInt(t[1],10)-1,o=parseInt(t[2],10);return new Date(n,r,o)}var _=m.NoCurrency,R=m.NoCurrencyDisplay,M=m.NoSupplementalCurrency,P=m.NoCurrencyRegion,N=m.NoValidCurrency,F="symbol",A={"001":"USD",150:"EUR"};var j=["sun","mon","tue","wed","thu","fri","sat"],L=m.NoWeekData,V=m.NoFirstDay;function z(e){return 1/e==-1/0}function B(e,t){void 0===t&&(t={}),t.currency||(t.currency=function(e,t){var n=g(e),r=n.numbers;if(!r.localeCurrency){var o=function(e,t){if(void 0===t&&(t=!0),A[e])return A[e];var n=v.supplemental.currencyData;if(n){var r=n.region[e];if(r){var o=function(e){for(var t,n,r,o,i=0;i<e.length;i++){var a=e[i],l=Object.keys(a)[0],s=a[l];if("XXX"!==l&&"false"!==s._tender&&s._from)if(s._to){if(!r){var u=T(s._from),c=T(s._to);(!n||n.to<c||n.from<u)&&(t=l,n={from:u,to:c})}}else{var d=T(s._from);(!o||o<d)&&(r=l,o=d)}}return r||t}(r);return o}if(t)throw P.error(e)}else if(t)throw M.error()}(b(n),true);if(!o)throw N.error(n.name);r.localeCurrency=o}return r.localeCurrency}(e));var n=function(e,t){var n=t.value,r=t.currency,o=t.currencyDisplay;if(void 0===o&&(o=F),"code"===o)return r;var i=function(e,t,n){var r=g(e).numbers.currencies;if(r){var o=r[t];if(o)return o;if(n)throw R.error()}else if(n)throw _.error()}(e,r,!0);return o===F?i["symbol-alt-narrow"]||i.symbol:void 0===typeof n||1!==n?i["displayName-count-other"]:i["displayName-count-one"]}(e,t);return n}function H(e,t,n,r,o){var i=o.numbers.symbols,a=e.indexOf(i.decimal),l=r.groupSize.slice(),s=l.shift(),u=-1!==a?a:n+1,c=e.substring(t,u),d=e,p=c.length;if(p>=s){for(var f=p,h=[];f>-1;){var m=c.substring(f-s,f);m&&h.push(m),f-=s;var v=l.shift();if(0===(s=void 0!==v?v:s)){(m=c.substring(0,f))&&h.push(m);break}}c=h.reverse().join(i.group),d=e.substring(0,t)+c+e.substring(u)}return d}function U(e){return e===E||e===w}function W(e,t,n){void 0===t&&(t=2),void 0===n&&(n=!1);var r=t-String(e).length,o=e;if(r>0){var i=new Array(r+1).join("0");o=n?e+i:i+e}return o}function K(e,t){var n=e,r=t||0;return n=n.toString().split("e"),n=(n=Math.round(Number(n[0]+"e"+(n[1]?Number(n[1])+r:r)))).toString().split("e"),(n=Number(n[0]+"e"+(n[1]?Number(n[1])-r:-r))).toFixed(Math.min(r,20))}m.NoWeekData;var q=/0+$/;function Y(e,t,n){var r=n.numbers.symbols,o=t.style,i=U(o);if(o===S)return(void 0!==t.minimumFractionDigits?e.toExponential(t.minimumFractionDigits):e.toExponential()).replace(D,r.decimal);var a,l=e;i&&(t.value=l,a=B(n,t)),o===k&&(l*=100,a=r.percentSign);var s=function(e){var t,n=e.minimumFractionDigits,r=e.maximumFractionDigits,o=e.style,i=U(o);return i&&(t=function(e){var t=2,n=2,r=((v.supplemental.currencyData||{}).fractions||{})[e];return r&&r._digits&&(n=t=parseInt(r._digits,10)),{minimumFractionDigits:t,maximumFractionDigits:n}}(e.currency)),void 0===n&&(n=i?t.minimumFractionDigits:0),void 0===r&&(r=o===k?Math.max(n,0):i?Math.max(n,t.maximumFractionDigits):Math.max(n,3)),{minimumFractionDigits:n,maximumFractionDigits:r}}(t),u=s.minimumFractionDigits,c=(l=K(l,s.maximumFractionDigits))<0,d=z(e),p=l.split(D),f=p[0],h=W(p[1]?p[1].replace(q,x):x,u,!0);c&&(f=f.substring(1)),t.minimumIntegerDigits&&(f=W(f,t.minimumIntegerDigits));var m,g=!1!==t.useGrouping?H(f,0,f.length,t,n):f;if(h&&(g+=r.decimal+h),i&&"name"===t.currencyDisplay)m=function(e,t){var n=e.numbers.currency,r=1!==t?n["unitPattern-count-other"]:n["unitPattern-count-one"];return t<0&&(r=r.replace(O,"-n")),r}(n,e);else{var y=t.patterns;m=c||d?y[1]||"-"+y[0]:y[0]}if(m===O&&!c)return g;var b=function(e,t,n){for(var r=x,o=0,i=t.length;o<i;o++){var a=t.charAt(o);r+=a===O?e:"$"===a||"%"===a?n:a}return r}(g,m,a);return b}var G=/(\\.)|(['][^']*[']?)|(["][^"]*["]?)/g,Z="__??__",X="#",$="0",Q=/(\.(?:[0-9]*[1-9])?)0+$/g,J=/\.$/,ee=/\,/g;function te(e,t,n){return-1===e&&-1!==t?t:-1!==e&&-1===t?e:n?Math.min(e,t):Math.max(e,t)}function ne(e,t,n){var r={negative:e<0,number:Math.abs(e),negativeZero:z(e),format:t};return function(e){var t=e.number,n=e.format;if(n=n.split(";"),(e.negative||e.negativeZero)&&n[1])n=n[1],e.hasNegativeFormat=!0;else if(0===t){var r=n[2];n=r||n[0],r&&function(e){return-1===e.indexOf(X)&&-1===e.indexOf($)}(r)&&(e.constant=r)}else n=n[0];e.format=n}(r),r.constant?r.constant:(function(e){var t=e.format;if(t.indexOf("'")>-1||t.indexOf('"')>-1||t.indexOf("\\")>-1){var n=e.literals=[];e.format=t.replace(G,(function(e){var t=e.charAt(0).replace("\\",x),r=e.slice(1).replace(t,x);return n.push(r),Z}))}}(r),function(e,t){var n=e.format;-1!==n.indexOf("%")&&(e.style=k,e.symbol=t.numbers.symbols.percentSign,e.number*=100),-1!==n.indexOf("$")&&(e.style=E,e.symbol=B(t))}(r,n),function(e){e.hasGroup=e.format.indexOf(",")>-1,e.hasGroup&&(e.format=e.format.replace(ee,x))}(r),function(e){var t,n,r,o=e.number,i=e.format,a=i.indexOf(D);if(-1!==a){var l=i.lastIndexOf($)-a,s=i.lastIndexOf(X)-a,u=l>-1,c=s>-1,d=o.toString().split("e"),p=(d=(d=d[1]?K(o,Math.abs(d[1])):d[0]).split(D)[1]||x).length,f=-1;u||c?u&&l>s?p=l:s>l&&(c&&p>s?p=s:u&&p<l&&(p=l),f=u?l:0):(e.format=i.substring(0,a)+i.substring(a+1),a=-1,p=0),p>-1&&(o=K(o,p),f>-1&&(t=o,r=0===(n=f)?Q:new RegExp("(\\.[0-9]{"+n+"}[1-9]*)0+$","g"),o=t.replace(r,"$1").replace(J,x)))}else o=K(o);e.negative&&-1*o>=0&&!e.negativeZero&&(e.negative=!1),e.number=o,e.decimalIndex=a}(r),function(e){var t=e.format,n=t.indexOf(X),r=t.indexOf($),o=te(n,r,!0),i=te(n=t.lastIndexOf(X),r=t.lastIndexOf($));o===t.length&&(i=o),e.start=o,e.end=i,e.lastZeroIndex=r}(r),function(e,t){var n=e.number;return-1!==e.start&&(n=function(e,t){var n=e.start,r=e.end,o=e.negative,i=e.negativeZero,a=e.format,l=e.decimalIndex,s=e.lastZeroIndex,u=e.hasNegativeFormat,c=e.hasGroup,d=e.number,p=d.toString().split(D),f=a.length,h=p[0],m=p[1]||x,v=h.length,g=x;d=a.substring(0,n),!o&&!i||u||(d+="-");for(var y=n;y<f;y++){var b=a.charAt(y);if(-1===l){if(r-y<v){d+=h;break}}else if(-1!==s&&s<y&&(g=x),l-y<=v&&l-y>-1&&(d+=h,y=l),l===y){d+=(m?t.numbers.symbols.decimal:x)+m,y+=r-l+1;continue}b===$?(d+=b,g=b):b===X&&(d+=g)}return c&&(d=H(d,n+(o&&!u?1:0),Math.max(r,v+n),t.numbers.decimal,t)),r>=n&&(d+=a.substring(r+1)),d}(e,t),n=function(e,t){var n=e;if(t)for(var r=t.length,o=0;o<r;o++)n=n.replace(Z,t[o]);return n}(n=function(e,t,n){var r=e;if(t===E||t===k){r=x;for(var o=0,i=e.length;o<i;o++){var a=e.charAt(o);r+="$"===a||"%"===a?n:a}}return r}(n,e.style,e.symbol),e.literals)),n}(r,n))}var re=/^(n|c|p|e|a)(\d*)$/i;var oe=/\{(\d+)}/g;function ie(e){var t=arguments;return e.replace(oe,(function(e,n){return t[parseInt(n,10)+1]}))}var ae=[2,1,5,3,4],le={};le[(-2).toString()]=8,le[(-1).toString()]=6,le[2..toString()]=6,le[1..toString()]=3;var se={numeric:1,"2-digit":2,short:3,long:4,narrow:5},ue=/[hHmsSzZoOvVxX]/,ce=[{key:"era",specifier:"G"},{key:"year",specifier:"y"},{key:"month",specifier:"M"},{key:"day",specifier:"d"},{key:"weekday",specifier:"E"},{key:"hour",getSpecifier:function(e){return e.hour12?"h":"H"}},{key:"minute",specifier:"m"},{key:"second",specifier:"s"},{key:"timeZoneName",specifier:"z"}],de={e:"c",E:"c",M:"L",Q:"q"},pe={},fe={};function he(e){return pe[e]||(pe[e]=new RegExp(e+"+")),pe[e]}function me(e){for(var t=[],n=e.charAt(0),r=n,o=1;o<e.length;o++){var i=e.charAt(o);i===r?n+=i:(t.push(n),n=r=i)}return t.push(n),t}function ve(e,t){var n,r,o=e.length,i=-Number.MAX_VALUE;for(var a in t){for(var l=[],s=a.replace("v","z"),u=0,c=0;c<o;c++){var d=e[c],p=(he(d[0]).exec(s)||[])[0];if(p){if(s=s.replace(p,x),p.length!==d.length){var f=Math.max(Math.min(ae[p.length]-ae[d.length],2),-2);u-=le[f]}}else u-=120;if(l.push(p),u<i)break}s.length&&(u-=20*me(s).length),u>i&&(i=u,n=l,r=t[a])}r=r.replace("v","z");for(var h=0;h<o;h++){var m=n[h];if(m&&m!==e[h]){var v=n[h][0];r=r.replace(he(v),e[h]),de[v]&&(r=r.replace(he(de[v]),e[h]))}}return r}function ge(e,t){var n,r=t.calendar;if(c(e))n=r.patterns[e]?r.patterns[e]:e;else if(e){if(e.pattern)return e.pattern;var o=e.skeleton;o||(e.datetime?n=ie(r.dateTimeFormats[e.datetime],r.timeFormats[e.datetime],r.dateFormats[e.datetime]):e.date?n=r.dateFormats[e.date]:e.time?n=r.timeFormats[e.time]:o=function(e){for(var t=[],n=0;n<ce.length;n++){var r=ce[n],o=e[r.key];if(o){var i=r.specifier||r.getSpecifier(e);t.push(i.repeat(se[o]))}}return t.join(x)}(e)),o&&(n=function(e,t){var n=t.calendar.dateTimeFormats.availableFormats;if(n[e])return n[e];if(fe[t.name]&&fe[t.name][e])return fe[t.name][e];var r,o=e.search(ue);if(o>0){var i=e.substr(0,o),a=e.substr(o);r=ie(t.calendar.dateTimeFormats.short,n[a]||ve(me(a),n),n[i]||ve(me(i),n))}else r=ve(me(e),n);return function(e,t,n){fe[n]||(fe[n]={}),fe[n][e]=t}(e,r,t.name),r}(o,t))}return n||(n=r.patterns.d),n}function ye(e){var t;return e<=3?t="abbreviated":4===e?t="wide":5===e?t="narrow":6===e&&(t="short"),t}function be(e,t,n,r,o){return function(e,t){var n=t.type,r=t.nameType,o=t.standAlone,i=t.lower,a=g(e),l=o?"stand-alone":"format",s=(i?"lower-":x)+r,u=a.calendar[n][l],c=u[s];return!c&&i&&(c=u[s]=function(e){var t=Array.isArray(e)?function(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].toLowerCase());return t}(e):function(e){var t={};for(var n in e)t[n]=e[n].toLowerCase();return t}(e);return t}(u[r])),c}(e,{type:t,nameType:ye(n),standAlone:r,lower:o})}function Ce(e){return"function"==typeof e}function Ee(e){return Boolean(e)&&Ce(e.getTime)&&Ce(e.getMonth)}var we=/d{1,2}|E{1,6}|e{1,6}|c{3,6}|c{1}|M{1,5}|L{1,5}|y{1,4}|H{1,2}|h{1,2}|k{1,2}|K{1,2}|m{1,2}|a{1,5}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|x{1,5}|X{1,5}|G{1,5}|q{1,5}|Q{1,5}|"[^"]*"|'[^']*'/g;function ke(e,t,n,r){return t<=2?W(e+1,t):be(n,"months",t,r)[e]}function Se(e,t,n,r){var o=Math.floor(e.getMonth()/3);return t<3?o+1:be(n,"quarters",t,r)[o]}function Oe(e,t,n){var r=n.shortHours,o=n.optionalMinutes,i=n.separator,a=n.localizedName,l=n.zZeroOffset,s=e.getTimezoneOffset()/60;if(0===s&&l)return"Z";var u=s<=0?"+":"-",c=Math.abs(s).toString().split("."),d=c[1]||0,p=u+(r?c[0]:W(c[0],2));return!d&&o||(p+=(i?":":x)+W(d,2)),a&&(p=ie(0===s?t.calendar.gmtZeroFormat:t.calendar.gmtFormat,p)),p}function De(e,t,n,r){return t<3?(o=e.getDay(),i=function(e){var t=g(e);if(!isNaN(t.firstDay))return t.firstDay;var n=v.supplemental.weekData;if(!n)throw L.error();var r=n.firstDay[b(t)]||n.firstDay["001"];if(!r)throw V.error();return t.firstDay=j.indexOf(r),t.firstDay}(n),(o<i?7-i+o:o-i)+1):be(n,"days",t,r)[e.getDay()];var o,i}var xe={};function Ie(e,t,n){if(void 0===n&&(n=I),!Ee(e))return null==e?x:e;var r=y(n);return ge(t,r).replace(we,(function(t){var n=t.length;return t.includes("'")||t.includes('"')?t.slice(1,n-1):xe[t[0]](e,n,r)}))}function Te(e,t,n){var r=e.getTimezoneOffset(),o=new Date(e.getTime()+6e4*(t-n)),i=o.getTimezoneOffset();return new Date(o.getTime()+6e4*(i-r))}xe.d=function(e,t){return W(e.getDate(),t)},xe.E=function(e,t,n){return be(n,"days",t)[e.getDay()]},xe.M=function(e,t,n){return ke(e.getMonth(),t,n,!1)},xe.L=function(e,t,n){return ke(e.getMonth(),t,n,!0)},xe.y=function(e,t){var n=e.getFullYear();return 2===t&&(n%=100),W(n,t)},xe.h=function(e,t){return W(e.getHours()%12||12,t)},xe.H=function(e,t){return W(e.getHours(),t)},xe.k=function(e,t){return W(e.getHours()||24,t)},xe.K=function(e,t){return W(e.getHours()%12,t)},xe.m=function(e,t){return W(e.getMinutes(),t)},xe.s=function(e,t){return W(e.getSeconds(),t)},xe.S=function(e,t){var n=e.getMilliseconds();return 0!==n?W(String(n/1e3).split(".")[1].substr(0,t),t,!0):W(x,t)},xe.a=function(e,t,n){return be(n,"dayPeriods",t)[e.getHours()<12?"am":"pm"]},xe.z=function(e,t,n){return Oe(e,n,{shortHours:t<4,optionalMinutes:t<4,separator:!0,localizedName:!0})},xe.Z=function(e,t,n){return Oe(e,n,{separator:t>3,localizedName:4===t,zZeroOffset:5===t})},xe.x=function(e,t,n){return Oe(e,n,{optionalMinutes:1===t,separator:3===t||5===t})},xe.X=function(e,t,n){return Oe(e,n,{optionalMinutes:1===t,separator:3===t||5===t,zZeroOffset:!0})},xe.G=function(e,t,n){var r=e.getFullYear()>=0?1:0;return be(n,"eras",t)[r]},xe.e=De,xe.c=function(e,t,n){return De(e,t,n,!0)},xe.q=function(e,t,n){return Se(e,t,n,!0)},xe.Q=Se;var _e=/([+|\-]\d{1,2})(:?)(\d{2})?/,Re=/^\/Date\((.*?)\)\/$/,Me=/[+-]\d*/,Pe={2:/^\d{1,2}/,3:/^\d{1,3}/,4:/^\d{4}/},Ne=/\d+/,Fe=/^ */,Ae=/ *$/,je=["yyyy/MM/dd HH:mm:ss","yyyy/MM/dd HH:mm","yyyy/MM/dd","E MMM dd yyyy HH:mm:ss","yyyy-MM-ddTHH:mm:ss.SSSSSSSXXX","yyyy-MM-ddTHH:mm:ss.SSSXXX","yyyy-MM-ddTHH:mm:ss.SSXXX","yyyy-MM-ddTHH:mm:ssXXX","yyyy-MM-ddTHH:mm:ss.SSSSSSS","yyyy-MM-ddTHH:mm:ss.SSS","yyyy-MM-ddTHH:mmXXX","yyyy-MM-ddTHH:mmX","yyyy-MM-ddTHH:mm:ss","yyyy-MM-ddTHH:mm","yyyy-MM-dd HH:mm:ss","yyyy-MM-dd HH:mm","yyyy-MM-dd","HH:mm:ss","HH:mm"],Le=["G","g","F","Y","y","M","m","D","d","y","T","t"];function Ve(e,t,n){return!(e>=t&&e<=n)}function ze(e,t){for(var n=t.format,r=t.idx,o=0;n[r]===e;)o++,r++;return o>0&&(r-=1),t.idx=r,o}function Be(e,t){var n=e?Pe[e]||new RegExp("^\\d{1,"+e+"}"):Ne,r=t.value.substr(t.valueIdx,e).match(n);return r?(r=r[0],t.valueIdx+=r.length,parseInt(r,10)):null}function He(e,t,n){for(var r,o,i,a=0,l=e.length,s=0,u=0;a<l;a++)o=(r=e[a]).length,i=t.value.substr(t.valueIdx,o),n&&(i=i.toLowerCase()),i===r&&o>s&&(s=o,u=a);return s?(t.valueIdx+=s,u+1):null}function Ue(e){var t=!1;return e.value.charAt(e.valueIdx)===e.format[e.idx]&&(e.valueIdx++,t=!0),t}function We(e,t,n){var r=n.shortHours,o=n.noSeparator,i=n.optionalMinutes,a=n.localizedName,l=n.zLiteral;if(e.UTC=!0,l&&"Z"===e.value.charAt(e.valueIdx))return e.valueIdx++,!1;if(a&&!He(function(e){var t=e.gmtFormat,n=e.gmtZeroFormat;if(!t)throw m.NoGMTInfo.error();return[t.replace("{0}",x).toLowerCase(),n.replace("{0}",x).toLowerCase()]}(t.calendar),e,!0))return!0;var s=_e.exec(e.value.substr(e.valueIdx,6));if(!s)return!a;var u=s[1],c=s[3],d=parseInt(u,10),p=s[2],f=parseInt(c,10);return!!(isNaN(d)||!r&&3!==u.length||!i&&isNaN(f)||o&&p)||(isNaN(f)&&(f=null),!!(Ve(d,-12,13)||f&&Ve(f,0,59))||(e.valueIdx+=s[0].length,e.hoursOffset=d,void(e.minutesOffset=f)))}function Ke(e,t,n){var r=ze(e,t),o=be(n,"months",r,"L"===e,!0),i=r<3?Be(2,t):He(o,t,!0);if(null===i||Ve(i,1,12))return!0;t.month=i-1}function qe(e,t,n){var r=ze(e,t),o=be(n,"days",r,"c"===e,!0),i=r<3?Be(1,t):He(o,t,!0);if(!i&&0!==i||Ve(i,1,7))return!0}var Ye={};function Ge(e,t){return""+Fe.exec(t)[0]+e+Ae.exec(t)[0]}function Ze(e,t,n){for(var r=ge(t,n).split(x),o={format:r,idx:0,value:Ge(e,t),valueIdx:0,year:null,month:null,day:null,hours:null,minutes:null,seconds:null,milliseconds:null},i=r.length,a=!1;o.idx<i;o.idx++){var l=r[o.idx];if(a)"'"===l&&(a=!1),Ue(o);else if(Ye[l]){if(Ye[l](o,n))return null}else if("'"===l)a=!0,Ue(o);else if(!Ue(o))return null}return o.valueIdx<e.length?null:function(e){var t,n=e.year,r=e.month,o=e.day,i=e.hours,a=e.minutes,l=e.seconds,s=e.milliseconds,u=e.pmHour,c=e.UTC,d=e.hoursOffset,p=e.minutesOffset,f=null!==i||null!==a||l||null,h=new Date;return null===n&&null===r&&null===o&&f?(n=h.getFullYear(),r=h.getMonth(),o=h.getDate()):(null===n&&(n=h.getFullYear()),null===o&&(o=1)),u&&i<12&&(i+=12),c?(d&&(i+=-d),p&&(a+=-p*(d<0?-1:1)),t=new Date(Date.UTC(n,r,o,i,a,l,s))):function(e,t){t||23!==e.getHours()||e.setHours(e.getHours()+2)}(t=new Date(n,r,o,i,a,l,s),i),n<100&&t.setFullYear(n),t.getDate()!==o&&void 0===c?null:t}(o)||null}function Xe(e,t,n){if(void 0===n&&(n=I),!e)return null;if(Ee(e))return e;var r=String(e).trim(),o=function(e){if(e&&0===e.indexOf("/D")){var t=Re.exec(e);if(t){t=t[1];var n=Me.exec(t.substring(1));return t=new Date(parseInt(t,10)),n&&(o="-"===(r=n[0]).substr(0,1)?-1:1,i=r.substring(1),n=o*(60*parseInt(i.substr(0,2),10)+parseInt(i.substring(2),10)),t=Te(t,t.getTimezoneOffset(),0),t=Te(t,0,-1*n)),t}}var r,o,i}(r);if(o)return o;for(var i=y(n),a=t||function(e){for(var t=[],n=e.patterns,r=Le.length,o=0;o<r;o++)t.push(n[Le[o]]);return t.concat(je)}(i.calendar),l=(a=Array.isArray(a)?a:[a]).length,s=0;s<l;s++)if(o=Ze(r,a[s],i))return o;return o}function $e(e,t,n){if(t){if(Ee(e))return Ie(e,t,n);if(function(e){return"number"==typeof e}(e))return function(e,t,n){if(void 0===t&&(t=O),void 0===n&&(n=I),null==e)return x;if(!isFinite(e))return String(e);var r,o=y(n),i=function(e){return c(e)?function(e){var t=re.exec(e);if(t){var n={style:C},r=t[1].toLowerCase();return"c"===r?n.style=E:"a"===r?n.style=w:"p"===r?n.style=k:"e"===r&&(n.style=S),t[2]&&(n.minimumFractionDigits=n.maximumFractionDigits=parseInt(t[2],10)),n}}(e):e}(t);if(i){var a=i.style||C;r=Y(e,Object.assign({},o.numbers[a],i),o)}else r=ne(e,t,o);return r}(e,t,n)}return null!=e?e:x}Ye.d=function(e){ze("d",e);var t=Be(2,e);if(null===t||Ve(t,1,31))return!0;null===e.day&&(e.day=t)},Ye.E=function(e,t){if(null===He(be(t,"days",ze("E",e),!1,!0),e,!0))return!0},Ye.M=function(e,t){return Ke("M",e,t)},Ye.L=function(e,t){return Ke("L",e,t)},Ye.y=function(e){var t=ze("y",e),n=Be(1===t?void 0:t,e);if(null===n)return!0;if(2===t){var r=(new Date).getFullYear();(n=r-r%100+n)>2029&&(n-=100)}e.year=n},Ye.h=function(e){ze("h",e);var t=Be(2,e);if(12===t&&(t=0),null===t||Ve(t,0,11))return!0;e.hours=t},Ye.K=function(e){ze("K",e);var t=Be(2,e);if(null===t||Ve(t,0,11))return!0;e.hours=t},Ye.a=function(e,t){var n=be(t,"dayPeriods",ze("a",e),!1,!0),r=He([n.pm],e,!0);if(!r&&!He([n.am],e,!0))return!0;e.pmHour=r},Ye.H=function(e){ze("H",e);var t=Be(2,e);if(null===t||Ve(t,0,23))return!0;e.hours=t},Ye.k=function(e){ze("k",e);var t=Be(2,e);if(null===t||Ve(t,1,24))return!0;e.hours=24===t?0:t},Ye.m=function(e){ze("m",e);var t=Be(2,e);if(null===t||Ve(t,0,59))return!0;e.minutes=t},Ye.s=function(e){ze("s",e);var t=Be(2,e);if(null===t||Ve(t,0,59))return!0;e.seconds=t},Ye.S=function(e){var t=ze("S",e),n=e.value.substr(e.valueIdx,t),r=null;if(isNaN(parseInt(n,10))||(r=K(r=parseFloat("0."+n,10),3),r*=1e3,e.valueIdx+=t),null===r||Ve(r,0,999))return!0;e.milliseconds=r},Ye.z=function(e,t){var n=ze("z",e)<4,r=We(e,t,{shortHours:n,optionalMinutes:n,localizedName:!0});if(r)return r},Ye.Z=function(e,t){var n=ze("Z",e),r=We(e,t,{noSeparator:n<4,zLiteral:5===n,localizedName:4===n});if(r)return r},Ye.x=function(e,t){var n=ze("x",e),r=We(e,t,{noSeparator:3!==n&&5!==n,optionalMinutes:1===n});if(r)return r},Ye.X=function(e,t){var n=ze("X",e),r=We(e,t,{noSeparator:3!==n&&5!==n,optionalMinutes:1===n,zLiteral:!0});if(r)return r},Ye.G=function(e,t){var n=be(t,"eras",ze("G",e),!1,!0);if(null===He([n[0],n[1]],e,!0))return!0},Ye.e=function(e,t){return qe("e",e,t)},Ye.c=function(e,t){return qe("c",e,t)};var Qe=function(e){if(!e||0===e.length)return"";var t=e[0].timezone,n="Etc/UTC"===t,r=n?"Z":"";return(t&&!n?";TZID="+t:"")+":"+e.map((function(e){return Ie(e,"yyyyMMddTHHmmss")+r})).join(",")+" "},Je=function(e,t){if(!t)return!1;var n=t.start,r=t.end;return e<n||e>r||0===e&&n<0},et=function(e,t){return e-t},tt=function(e,t){for(var n=[],r=0;r<e.length;r++){var o=parseInt(e[r],10);if(isNaN(o)||Je(o,t))return[];n.push(o)}return n.sort(et)},nt=["yyyyMMddTHHmmssSSSXXX","yyyyMMddTHHmmssXXX","yyyyMMddTHHmmss","yyyyMMddTHHmm","yyyyMMddTHH","yyyyMMdd"];function rt(e){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()))}var ot=function(e,t){var n=Xe(e)||Xe(e,nt);if(!n)return null;var r=t?rt(n):n;return o.ZonedDate.fromUTCDate(r,t||"Etc/UTC")},it={SU:o.Day.Sunday,MO:o.Day.Monday,TU:o.Day.Tuesday,WE:o.Day.Wednesday,TH:o.Day.Thursday,FR:o.Day.Friday,SA:o.Day.Saturday},at=function(e){return it[e]},lt=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n],o=at(r.substring(r.length-2).toUpperCase());if(void 0===o)return[];t.push({offset:parseInt(r.substring(0,r.length-2),10)||0,day:o})}return t},st=function(e,t,n){void 0===n&&(n=1),t=(t-e.getUTCDay()+7*n)%7,e.setUTCDate(e.getUTCDate()+t)},ut=function(e,t){return e+(e<t?7:0)},ct=function(e,t){return e-t},dt=function(e,t){var n=7-(rt((0,o.firstDayOfMonth)(e)).getUTCDay()+7-(t||7))||7;return n<0&&(n+=7),Math.ceil((e.getUTCDate()-n)/7)+1},pt=function(e,t){var n=(e=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()))).getUTCFullYear();void 0!==t?(st(e,t,-1),e.setUTCDate(e.getUTCDate()+4)):e.setUTCDate(e.getUTCDate()+(4-(e.getUTCDay()||7)));var r=Math.floor((e.getTime()-Date.UTC(n,0,1,-6))/864e5);return 1+Math.floor(r/7)},ft=function(e,t,n){var r=t.offset;if(!r)return dt(e,n);var o=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth()+1,0)),i=dt(o,n),a=ut(t.day,n),l=a<ut(new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),1)).getUTCDay(),n),s=a>ut(o.getUTCDay(),n);return r<0?r=i+(r+1-(s?1:0)):l&&(r+=1),i-=s?1:0,r<(l?1:0)||r>i?null:r},ht=function(e,t,n){return dt(e,n)===ft(e,t,n)},mt=function(e,t){return dt(new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth()+1,0)),t)},vt=[0,31,60,91,121,152,182,213,244,274,305,335,366],gt=[0,31,59,90,120,151,181,212,243,273,304,334,365],yt=function(e){return(e=e.getUTCFullYear())%4==0&&e%100!=0||e%400==0},bt=function(e){var t=e.getUTCMonth();return(yt(e)?vt[t]:gt[t])+e.getUTCDate()},Ct=[31,28,31,30,31,30,31,31,30,31,30,31],Et=function(e){var t=e.getUTCMonth();return 1===t?1===new Date(Date.UTC(e.getUTCFullYear(),1,29)).getUTCMonth()?29:28:Ct[t]},wt=function(e,t,n){for(var r=e.length,o=[],i=0;i<r;i++){var a=e[i];if(n&&(a=n(a)),t===a)return null;t<a&&o.push(a)}return o},kt=function(e,t,n){var r=n.byMonth,o=wt(r,e.getUTCMonth()+1),i=!1;return null!==o&&(o.length?e.setUTCMonth(o[0]-1,1):e.setUTCFullYear(e.getUTCFullYear()+1,r[0]-1,1),i=!0),i},St=function(e,t,n){var r,o=!1;function i(e){return e<0&&(e=r+e+1),e}for(;e<=t;){var a=e.getUTCMonth();r=Et(e);var l=wt(n.byMonthDay,e.getUTCDate(),i);if(null===l)return o;if(o=!0,l.length){if(e.setUTCMonth(a,l.sort(ct)[0]),a===e.getUTCMonth())break}else e.setUTCMonth(a+1,1)}return o},Ot=function(e,t,n){var r,o=!1;function i(e){return e<0&&(e=r+e),e}for(;e<t;){r=yt(e)?366:365;var a=wt(n.byYearDay,bt(e),i);if(null===a)return o;if(o=!0,r=e.getUTCFullYear(),a.length){e.setUTCFullYear(r,0,a.sort(ct)[0]);break}e.setUTCFullYear(r+1,0,1)}return o},Dt=function(e,t,n){var r=n.weekStart||o.Day.Monday,i=!1;function a(e){return e<0&&(e=53+e),e}for(;e<t;){var l=wt(n.byWeekNumber,pt(e,r),a);if(null===l)return i;i=!0;var s=e.getUTCFullYear();if(l.length){var u=7*l.sort(ct)[0]-1;e.setUTCFullYear(s,0,u),st(e,r,-1);break}e.setUTCFullYear(s+1,0,1)}return i},xt=function(e,t,n){var r=n.byWeekDay,i=n.weekStart||o.Day.Monday,a=function(e,t,n){for(var r,o,i,a,l=ut(t.getUTCDay(),n),s=e.length,u=[],c=0;c<s;c++)if(o=e[c],a=dt(t,n),null!==(r=ft(t,o,n)))if(a<r)u.push(o);else if(a===r)if(l<(i=ut(o.day,n)))u.push(o);else if(l===i)return null;return u}(r,e,i);if(null===a)return!1;a[0]||(a=r,st(e,i));var l=a.map((function(n){var r=(0,o.cloneDate)(e),a=n.day;if(n.offset)for(;r<=t&&!ht(r,n,i);)dt(r,i)===mt(r,i)?r.setUTCMonth(r.getUTCMonth()+1,1):(r.setUTCDate(r.getUTCDate()+7),st(r,i,-1));return r.getUTCDay()!==a&&st(r,a),r})).sort((function(e,t){return e.getTime()-t.getTime()}))[0];return l&&e.setTime(l),!0},It=function(e,t,n){var r=n.byHour,o=!1,i=n._startTime,a=i.getUTCHours(),l=wt(r,a);return null!==l&&(o=!0,e.setUTCHours(a),l.length?(l=l[0],e.setUTCHours(l)):(l=e.getUTCHours(),e.setUTCDate(e.getUTCDate()+1),l=r[0],e.setUTCHours(l)),n.byMinute&&e.setUTCMinutes(0),i.setUTCHours(l,e.getUTCMinutes())),o},Tt=function(e,t,n){var r=n.byMinute,o=e.getUTCMinutes(),i=wt(r,o),a=n._startTime.getUTCHours(),l=!1;return null!==i&&(l=!0,i.length?i=i[0]:(a+=1,i=r[0]),n.bySecond&&e.setUTCSeconds(0),e.setUTCHours(a,i),a%=24,n._startTime.setUTCHours(a,i,e.getUTCSeconds())),l},_t=function(e,t,n){var r=n.bySecond,o=wt(r,e.getUTCSeconds()),i=n._startTime.getUTCHours(),a=e.getUTCMinutes(),l=!1;return null!==o&&(l=!0,o.length?e.setUTCSeconds(o[0]):(a+=1,e.setUTCMinutes(a,r[0]),a>59&&(a%=60,i=(i+1)%24)),n._startTime.setUTCHours(i,a,e.getUTCSeconds())),l},Rt=["byMonth","byWeekNumber","byYearDay","byMonthDay","byWeekDay","byHour","byMinute","bySecond"],Mt=Rt.length,Pt=function(e,t){var n;return 0!==e&&e<t?n=t-e:(n=e%t)&&(n=t-n),n},Nt=function(){function e(){}return e.prototype.next=function(e,t){var n,r,o=t._startTime;if(t.bySecond)r=e.getUTCSeconds()+1,e.setUTCSeconds(r),o.setUTCSeconds(r);else{if(!t.byMinute)return!1;n=e.getUTCMinutes()+1,e.setUTCMinutes(n),o.setUTCMinutes(n)}return!0},e.prototype.normalize=function(e){var t=e.rule;4===e.idx&&t.byHour&&(t._startTime.setUTCHours(0),this._hour(e.date,t))},e.prototype.limit=function(e,t,n){for(var o,i=n.interval||1;e<=t;){var a=void 0,l=void 0,s=e.getUTCDate();for(o=0;o<Mt;o++){var u=Rt[o];if(n[u]){if(a=r[u](e,t,n),void 0!==l&&a)break;l=a}a&&this.normalize({date:e,rule:n,day:s,idx:o})}if((1===i||!this.interval(n,e))&&o===Mt)break}},e.prototype.interval=function(e,t){var n,r,i=e._startPeriod.toUTCDate(),a=t.getUTCHours(),s=e.weekStart,u=e.interval,c=e.freq,d=new Date(t),p=!1,f=0,h=0,m=1;return"hourly"===c?(r=e._startTime.getUTCHours(),d=d.getTime(),a!==r&&(d+=(r-a)*o.MS_PER_HOUR),d-=i.getTime(),n=Math.floor(d/o.MS_PER_HOUR),0!==(f=Pt(n,u))&&(this._hour(t,e,f),p=!0)):"daily"===c?(!function(e,t){e.setTime(e.getTime()+t)}(d,-i),n=Math.round(d/o.MS_PER_DAY),0!==(f=Pt(n,u))&&(this._date(t,e,f),p=!0)):"weekly"===c?(f=this.getNumberOfWeeksBetweenDates(i,t),ut(t.getUTCDay(),s)<ut(i.getUTCDay(),s)&&(f+=1),0!==(f=Pt(f,u))&&(st(t,e.weekStart,-1),t.setUTCDate(t.getUTCDate()+7*f),p=!0)):"monthly"===c?(n=t.getUTCFullYear()-i.getUTCFullYear(),n=t.getUTCMonth()-i.getUTCMonth()+12*n,0!==(f=Pt(n,u))&&(m=l(e)?1:t.getDate(),t.setUTCFullYear(t.getUTCFullYear(),t.getUTCMonth()+f,m),p=!0)):"yearly"===c&&(n=t.getUTCFullYear()-i.getUTCFullYear(),f=Pt(n,u),e.byMonth||(h=t.getUTCMonth()),e.byYearDay||e.byMonthDay||e.byWeekDay||(m=t.getUTCDate()),0!==f&&(t.setUTCFullYear(t.getUTCFullYear()+f,h,m),p=!0)),p},e.prototype._hour=function(e,t,n){var r=t._startTime,o=r.getUTCHours();n&&(o+=n),e.setUTCHours(o),o%=24,r.setUTCHours(o)},e.prototype._date=function(e,t,n){e.setUTCDate(e.getUTCDate()+n)},e.prototype.getNumberOfWeeksBetweenDates=function(e,t){var n=(t.getTime()-e.getTime())/6048e5,r=Math.floor(n);return n-r>.99&&(r=Math.round(n)),r},e}(),Ft=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.ZT(t,e),t.prototype.next=function(e,t){return Nt.prototype.next.call(this,e,t)||this._hour(e,t,1),!1},t.prototype.normalize=function(e){var t=e.rule;4===e.idx&&(t._startTime.setUTCHours(0),this._hour(e.date,t))},t}(Nt),At=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.ZT(t,e),t.prototype.next=function(e,t){return Nt.prototype.next.call(this,e,t)||this[t.byHour?"_hour":"_date"](e,t,1),!1},t}(Nt),jt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.ZT(t,e),t.prototype.setup=function(e,t){e.byWeekDay||(e.byWeekDay=[{day:t.getUTCDay(),offset:0}])},t}(At),Lt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.ZT(t,e),t.prototype.next=function(e,t){var n;if(!Nt.prototype.next.call(this,e,t))if(t.byHour)this._hour(e,t,1);else if(t.byMonthDay||t.byWeekDay||t.byYearDay||t.byWeekNumber)this._date(e,t,1);else{for(n=e.getUTCDate(),e.setUTCMonth(e.getUTCMonth()+1);e.getUTCDate()!==n;)e.setUTCDate(n);this._hour(e,t)}return!1},t.prototype.normalize=function(t){var n=t.rule,r=t.date;0!==t.idx||n.byMonthDay||n.byWeekDay?e.prototype.normalize.call(this,t):r.setUTCDate(t.day)},t.prototype.setup=function(e,t,n){e.byMonthDay||e.byWeekDay||n.setUTCDate(t.getUTCDate())},t}(Nt),Vt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.ZT(t,e),t.prototype.next=function(e,t){var n;if(!Nt.prototype.next.call(this,e,t))if(t.byHour)this._hour(e,t,1);else if(t.byMonthDay||t.byWeekDay||t.byYearDay||t.byWeekNumber)this._date(e,t,1);else if(t.byMonth){for(n=e.getUTCDate(),e.setUTCMonth(e.getUTCMonth()+1);e.getUTCDate()!==n;)e.setUTCDate(n);this._hour(e,t)}else e.setUTCFullYear(e.getUTCFullYear()+1),this._hour(e,t);return!1},t.prototype.setup=function(){},t}(Lt),zt={hourly:new Ft,daily:new At,weekly:new jt,monthly:new Lt,yearly:new Vt},Bt=function(e){return o.ZonedDate.fromLocalDate(e.toLocalDate(),e.timezone)},Ht=function(e){return e.getHours()*o.MS_PER_HOUR+e.getMinutes()*o.MS_PER_MINUTE+1e3*e.getSeconds()+e.getMilliseconds()},Ut=function(e,t){if(!e)return!1;for(var n=t.getTime()-t.getMilliseconds(),r=e.length,o=0;o<r;o++)if(e[o].getTime()===n)return!0;return!1},Wt=function(e,t){var n=e.toUTCDate();switch(t.freq){case"yearly":n.setUTCFullYear(n.getUTCFullYear(),11,31);break;case"monthly":n.setUTCFullYear(n.getUTCFullYear(),n.getUTCMonth()+1,0);break;case"weekly":st(n,t.weekStart,-1),n.setUTCDate(n.getUTCDate()+6)}return t.byHour&&n.setUTCHours(23),t.byMinute&&n.setUTCMinutes(59),t.bySecond&&n.setUTCSeconds(59),o.ZonedDate.fromUTCDate(n,e.timezone)},Kt=function(e,t,n){for(var r,o=e.length,i=[],a=0,l=n.length;a<l;a++){(r=n[a])<0?r=o+r:r-=1;var s=e[r];s&&s.start>=t&&i.push(s)}return i},qt=function(e,t){for(var n=[],r=0;r<e.length;r++){var o=e[r];o&&!Ut(t,o.start)&&n.push(o)}return n};function Yt(e,t){var n=t.rangeStart,r=t.rangeEnd;if(!e)return{success:!0,errorMessage:"",events:[]};var i,a=e.freq,l=zt[a],s=e.start,u=function(e,t){return t.getTime()-e.getTime()}(e.start,e.end);if(e.start.getTime()>e.end.getTime())return{success:!1,errorMessage:"Invalid recurrence rule: Start date ("+e.start+")is greater than End date "+e.start,events:[]};if(!l)return{success:!1,errorMessage:'Invalid recurrence frequency "'+a+'"',events:[]};var c=[],d=e.bySetPosition,p=d?0:1,f=e.exceptionDates,h=n.toTimezone(s.timezone),m=h,v=r.toTimezone(s.timezone),g=e.count;e.until&&e.until.getTime()<v.getTime()&&(v=e.until.clone());var y=h.getHours(),b=h.getMinutes(),C=h.getSeconds(),E="yearly"===a||"monthly"===a||"weekly"===a;if(h.getTime()<s.getTime()||g||e.interval>1||E)h=s.clone();else{e.byHour||(y=s.getHours()),e.byMinute||(b=s.getMinutes()),e.bySecond||(C=s.getSeconds());var w=h.toUTCDate();w.setUTCHours(y,b,C,s.getMilliseconds()),h=o.ZonedDate.fromUTCDate(w,h.timezone)}if(e._startPeriod=h.clone(),d){if(h=function(e,t){var n=e.toUTCDate();switch(t.freq){case"yearly":n.setUTCFullYear(n.getFullYear(),0,1);break;case"monthly":n.setUTCFullYear(n.getFullYear(),n.getMonth(),1);break;case"weekly":st(n,t.weekStart,-1)}return t.byHour&&n.setUTCHours(0),t.byMinute&&n.setUTCMinutes(0),t.bySecond&&n.setUTCSeconds(0),o.ZonedDate.fromUTCDate(n,e.timezone)}(h,e),v=Wt(v,e),Ht(v)-Ht(h)<0){var k=v.toUTCDate();k.setUTCHours(h.getHours(),h.getMinutes(),h.getSeconds(),h.getMilliseconds()),v=o.ZonedDate.fromUTCDate(k,v.timezone)}e._startPeriod=h.clone(),i=Wt(h,e)}var S=Ht(h);e._startTime=new Date(S);var O=h.toUTCDate();for(l.setup&&(l.setup(e,s,O),h=o.ZonedDate.fromUTCDate(O,h.timezone)),O=h.toUTCDate(),l.limit(O,v.toUTCDate(),e),h=o.ZonedDate.fromUTCDate(O,h.timezone);h<=v;){var D=h.addTime(u);if(((h>=m||D>m)&&!Ut(f,h)||d)&&(c.push({start:Bt(h),end:Bt(D)}),"hourly"!==a&&"minutely"!==a&&"secondly"!==a||(S=Ht(Bt(h)),e._startTime=new Date(S))),d){if(O=h.toUTCDate(),l.next(O,e),l.limit(O,v.toUTCDate(),e),(h=o.ZonedDate.fromUTCDate(O,h.timezone))>i){var x=Kt(c.slice(p),s,d);x=qt(x,f),c=c.slice(0,p).concat(x),i=Wt(h,e),p=c.length}if(g&&g===p)break}else{if(g&&g===p)break;p+=1,O=h.toUTCDate(),l.next(O,e),l.limit(O,v.toUTCDate(),e),h=o.ZonedDate.fromUTCDate(O,h.timezone)}}return{success:!0,errorMessage:"",events:c}}var Gt=function(e,t){return e+(e<t?7:0)},Zt=function(e){if(!e)return null;var t,n,r,o,i=e.recurrenceRule,a=e.weekStart,c=void 0===a?0:a,d={},p=0;if(!i)return null;var f=i.split("\n");for(f[1]||-1===i.indexOf("DTSTART")&&-1===i.indexOf("DTEND")&&-1===i.indexOf("EXDATE")||(f=i.split(" ")),p=0,r=f.length;p<r;p++){var h=(f[p]||"").trim();-1!==h.indexOf("DTSTART")?d.start=u(h):-1!==h.indexOf("DTEND")?d.end=u(h):-1!==h.indexOf("EXDATE")?d.exceptionDates=s(h):-1!==h.indexOf("RRULE")?o=h.substring(6):h.trim()&&(o=h)}for(p=0,r=(o=o.split(";")).length;p<r;p++)switch(n=((t=o[p].split("="))[1]||"").trim().split(","),t[0].trim().toUpperCase()){case"FREQ":d.freq=n[0].toLowerCase();break;case"UNTIL":d.until=ot(n[0]);break;case"COUNT":d.count=parseInt(n[0],10);break;case"INTERVAL":d.interval=parseInt(n[0],10);break;case"BYSECOND":d.bySecond=tt(n,{start:0,end:60});break;case"BYMINUTE":d.byMinute=tt(n,{start:0,end:59});break;case"BYHOUR":d.byHour=tt(n,{start:0,end:23});break;case"BYMONTHDAY":d.byMonthDay=tt(n,{start:-31,end:31});break;case"BYYEARDAY":d.byYearDay=tt(n,{start:-366,end:366});break;case"BYMONTH":d.byMonth=tt(n,{start:1,end:12});break;case"BYDAY":d.byWeekDay=lt(n);break;case"BYWEEKNO":d.byWeekNumber=tt(n,{start:-53,end:53});break;case"BYSETPOS":d.bySetPosition=tt(n,{start:-366,end:366});break;case"WKST":d.weekStart=at(n[0])}return void 0===d.freq||void 0!==d.count&&d.until?null:(void 0===d.weekStart&&(d.weekStart=c),d.interval||(d.interval=1),d.bySetPosition&&!l(d)&&(d.bySetPosition=[]),function(e){var t=e.byWeekDay,n=e.weekStart;t&&t.sort(function(e){return function(t,n){return Gt(t.day,e)-Gt(n.day,e)}}(n))}(d),d)},Xt={0:"SU",1:"MO",2:"TU",3:"WE",4:"TH",5:"FR",6:"SA"},$t=function(e,t){if(!e||!e.freq)return null;var n=e.weekStart,r="FREQ="+e.freq.toUpperCase(),o="",i="",a="",l=e.until;return e.interval>1&&(r+=";INTERVAL="+e.interval),e.count&&(r+=";COUNT="+e.count),l&&(r+=";UNTIL="+$e(l.toTimezone("Etc/UTC"),"yyyyMMddTHHmmss")+"Z"),e.byMonth&&(r+=";BYMONTH="+e.byMonth),e.byWeekNumber&&(r+=";BYWEEKNO="+e.byWeekNumber),e.byYearDay&&(r+=";BYYEARDAY="+e.byYearDay),e.byMonthDay&&(r+=";BYMONTHDAY="+e.byMonthDay),e.byWeekDay&&(r+=";BYDAY="+function(e){for(var t,n=e.length,r=[],o=0;o<n;o++){var i=e[o];"string"==typeof i?t=i:(t=""+Xt[i.day],i.offset&&(t=i.offset+t)),r.push(t)}return r.toString()}(e.byWeekDay)),e.byHour&&(r+=";BYHOUR="+e.byHour),e.byMinute&&(r+=";BYMINUTE="+e.byMinute),e.bySecond&&(r+=";BYSECOND="+e.bySecond),e.bySetPosition&&(r+=";BYSETPOS="+e.bySetPosition),void 0!==n&&(r+=";WKST="+Xt[n]),e.start&&(i="DTSTART"+Qe([e.start])),e.end&&(a="DTEND"+Qe([e.end])),e.exceptionDates&&(o="EXDATE"+Qe(e.exceptionDates)),(i||a||o)&&(r=i+a+o+"RRULE:"+r),r}},655:(e,t,n)=>{n.d(t,{ZT:()=>o,pi:()=>i,cy:()=>a});var 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])},r(e,t)};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=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},i.apply(this,arguments)};function a(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}},1779:(e,t,n)=>{n.d(t,{_:()=>i});var r=n(3899),o=n(9844),i=r.forwardRef((function(e,t){var n=r.useRef(null),i=r.useRef(null),a=r.useCallback((function(){return n.current&&n.current.element?n.current.element:n.current}),[n]);r.useImperativeHandle(i,(function(){return{element:a()||null}})),r.useImperativeHandle(t,(function(){return i.current})),r.useImperativeHandle(e.childRef,(function(){return n.current}));var l=r.useCallback((function(t){e.onPress&&e.onPress({element:a(),target:i.current,event:t})}),[a,e.onPress]),s=r.useCallback((function(t){e.onRelease&&e.onRelease({element:a(),target:i.current,event:t})}),[a,e.onRelease]),u=r.useCallback((function(t){e.onDragStart&&e.onDragStart({element:a(),target:i.current,event:t})}),[e,a]),c=r.useCallback((function(t){e.onDrag&&e.onDrag({element:a(),target:i.current,event:t})}),[a,e.onDrag]),d=r.useCallback((function(t){e.onDragEnd&&e.onDragEnd({element:a(),target:i.current,event:t})}),[a,e.onDragEnd]);return(0,o.O)(n,{onPress:l,onRelease:s,onDragStart:u,onDrag:c,onDragEnd:d},{mouseOnly:e.mouseOnly,autoScroll:e.autoScroll,hint:e.hint,scrollContainer:e.scrollContainer}),e.children?r.cloneElement(r.Children.only(e.children),{ref:n}):null}));i.displayName="KendoReactDraggable"},3503:(e,t,n)=>{n.d(t,{O:()=>o});var r=function(){return"undefined"!=typeof document?document:{}},o=function(){function e(){this.scrollbar=0}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="&nbsp;",e.body.appendChild(t),this.scrollbar=t.offsetWidth-t.scrollWidth,e.body.removeChild(t)}return this.scrollbar},enumerable:!1,configurable:!0}),e}()},7827:(e,t,n)=>{n.d(t,{N:()=>r});var r=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},8047:(e,t,n)=>{n.d(t,{A:()=>r});var r=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n={},r=function(e){return"object"==typeof e?Object.keys(e).forEach((function(t){n[t]=e[t]})):n[e]=!0},o=function(e){return e.filter((function(e){return!0!==e&&!!e})).map((function(e){return Array.isArray(e)?o(e):r(e)}))};return o(e),Object.keys(n).map((function(e){return n[e]&&e||null})).filter((function(e){return null!==e})).join(" ")}},4500:(e,t,n)=>{n.d(t,{ky:()=>o,d9:()=>i,kI:()=>a,Ve:()=>l,M2:()=>s});var r=n(3899),o=function(e){return e?new Date(e.getTime()):null};function i(e){var t={};return a(e,t),t}function a(e,t){for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];t[n]=l(r,t[n])}}function l(e,t){if(Array.isArray(e))return s(e);if(e instanceof Date)return o(e);if(r.isValidElement(e))return r.cloneElement(e,e.props);if(e&&"object"==typeof e){var n=t||{};return a(e,n),n}return e}function s(e){return e.map((function(e){return l(e,void 0)}))}},8259:(e,t,n)=>{n.d(t,{$:()=>o,u:()=>i});var r=n(3899),o=r.createContext(0),i=function(){return r.useContext(o)};o.displayName="KendoReactZIndexContext"},2333:(e,t,n)=>{n.d(t,{Dg:()=>i,Gc:()=>a,Fg:()=>l,tk:()=>s});var r=n(3899),o=n(3228),i=r.createContext([void 0,o.Z]),a=r.createContext([void 0,o.Z]),l=r.createContext([[],o.Z,o.Z]),s=r.createContext([[],o.Z,o.Z])},5407:(e,t,n)=>{function r(e,t,n,r){if(e){var o={syntheticEvent:t,nativeEvent:t.nativeEvent,target:n};e.call(void 0,Object.assign(o,r))}}n.d(t,{N:()=>r})},4100:(e,t,n)=>{n.d(t,{E:()=>o});var r=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;function o(e){var t=[];return e.replace(r,(function(e,n,r,o){t.push(void 0!==n?n:r||o)})),t}},9124:(e,t,n)=>{n.d(t,{n:()=>r});var r=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()}}},4703:(e,t,n)=>{n.d(t,{p:()=>r});var r=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}},9659:(e,t,n)=>{n.d(t,{Y:()=>i});var r=n(4100),o={};function i(e){if(o[e])return o[e];var t=(0,r.E)(e);return o[e]=function(e){for(var n=e,r=0;r<t.length&&n;r++)n=n[t[r]];return n},o[e]}o.undefined=function(){}},3198:(e,t,n)=>{n.d(t,{M:()=>r});var r=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}},493:(e,t,n)=>{n.d(t,{o:()=>a});var r=n(3899),o=n(6059),i=function(){return i=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},i.apply(this,arguments)},a=function(e){var t=e.children,n=e.onFocus,a=e.onBlur,l=e.onSyncFocus,s=e.onSyncBlur,u=(0,o.U)({onFocus:n,onBlur:a,onSyncFocus:l,onSyncBlur:s});return r.createElement(r.Fragment,null,t.call(void 0,i({},u)))}},848:(e,t,n)=>{n.d(t,{Y:()=>a,u:()=>l});var r=n(3899),o=n(9656),i=function(){return i=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},i.apply(this,arguments)},a=function(){return r.createContext((function(e){return e}))},l=function(e,t){return r.forwardRef((function(n,a){var l=(0,o.Y)(e,n);return r.createElement(t,i({},l,{ref:a}))}))}},6059:(e,t,n)=>{n.d(t,{U:()=>i});var r=n(3899),o=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};function i(e){var t=e.onFocus,n=e.onBlur,i=e.onSyncFocus,a=e.onSyncBlur,l=r.useRef(!1),s=r.useRef(0),u=r.useCallback((function(e){clearTimeout(s.current),s.current=window.setTimeout((function(){return e()}))}),[s]),c=r.useCallback((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];clearTimeout(s.current),i&&i.call(void 0,e[0]),l.current||(l.current=!0,t&&t.call.apply(t,o([void 0],e,!1)))}),[l,t,i]),d=r.useCallback((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];a&&a.call(void 0,e[0]),u((function(){l.current&&n&&(l.current=!1,n.call.apply(n,o([void 0],e,!1)))}))}),[l,u,n,a]);return r.useEffect((function(){return function(){clearTimeout(s.current)}}),[]),{onFocus:c,onBlur:d}}},8199:(e,t,n)=>{n.d(t,{n:()=>o});var r=n(3899);function o(e,t,n){var o=r.useState(t),i=o[0],a=o[1];return r.useEffect((function(){if(!i&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&a(t)}}),n),i}},9844:(e,t,n)=>{n.d(t,{O:()=>v});var r,o=n(3899),i=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},a=function(e){return e&&e.ownerDocument||window.document},l=function(e){var t=i(),n=a(e);return t.edge||t.safari?n.body:n.documentElement},s=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},u=function(e){var t=l(e);if(!e||e===document.body||e===document.documentElement)return t;for(var n=e;n&&n!==document.body&&n.nodeType!==Node.DOCUMENT_FRAGMENT_NODE&&n.nodeType!==Node.DOCUMENT_NODE&&!s(n);)n=n.parentNode;return!n||n!==document.body&&n.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?n:t};!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"}(r||(r={}));var c=function(){},d=function(e,t,n){void 0===n&&(n={});var o,i,s,d,p,f=n.onIsPressedChange,h=void 0===f?c:f,m=n.onIsScrollingChange,v=void 0===m?c:m,g=n.onVelocityChange,y=void 0===g?c:g,b=n.onOffsetChange,C=void 0===b?c:b,E=n.onPageOffsetChange,w=void 0===E?c:E,k=n.onClientOffsetChange,S=void 0===k?c:k,O=n.onScrollOffsetChange,D=void 0===O?c:O,x=n.onInitialScrollOffsetChange,I=void 0===x?c:x,T=t.payload,_=T.element,R=T.hint,M=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 r.POINTER_DOWN:if(N.type===r.POINTER_DOWN&&(!N.originalEvent.isPrimary||0!==N.originalEvent.button))break;case r.MOUSE_DOWN:if(N.type===r.MOUSE_DOWN&&N.originalEvent.which&&N.originalEvent.which>1||e.ignoreMouse)break;case r.TOUCH_START:if(N.type===r.TOUCH_START&&1!==N.originalEvent.touches.length)break;case r.START:var F=P||u(t.payload.element);I(F instanceof Window?{x:F.scrollX,y:F.scrollY}:{x:F.scrollLeft,y:F.scrollTop}),S({x:N.clientX,y:N.clientY}),w({x:N.pageX,y:N.pageY}),C({x:N.offsetX,y:N.offsetY}),h(!0),T.onPress&&T.onPress(N);break;case r.SCROLL:if(N.type===r.SCROLL&&!e.pressed)break;var A=P||u(_),j=A instanceof Window?{x:A.scrollX,y:A.scrollY}:{x:A.scrollLeft,y:A.scrollTop};N.scrollX=j.x-e.initialScrollOffset.x,N.scrollY=j.y-e.initialScrollOffset.y,D({x:N.scrollX,y:N.scrollY});case r.POINTER_MOVE:if(N.type===r.POINTER_MOVE&&!N.originalEvent.isPrimary)break;case r.MOUSE_MOVE:case r.TOUCH_MOVE:if(N.type===r.TOUCH_MOVE&&1!==N.originalEvent.touches.length)break;case r.MOVE:if(e.pressed){if(e.autoScroll&&"scroll"!==N.originalEvent.type&&_){var L=a(_),V=P||u(L.elementFromPoint(N.clientX,N.clientY)),z=(o=N.clientX,i=N.clientY,s=function(e,t){var n=l(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}}(V,function(e){var t=a(e);return t&&t.defaultView||window}(_)),d={x:0,y:0},p=50,o-s.left<p?d.x=-(p-(o-s.left)):s.right-o<p&&(d.x=p-(s.right-o)),i-s.top<p?d.y=-(p-(i-s.top)):s.bottom-i<p&&(d.y=p-(s.bottom-i)),d);y({x:M&&!1===M.horizontal?0:z.x,y:M&&!1===M.vertical?0:z.y}),v(0!==z.y||0!==z.x)}!e.drag&&T.onDragStart&&T.onDragStart(N),T.onDrag&&T.onDrag(N);var B=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),i=Math.max(r.left,n.left),a=Math.min(r.left+r.width,n.left+n.width),l=Math.min(r.top+r.height,n.top+n.height),s=a-i,u=l-o;if(i<a&&o<l){var c=r.width*r.height,d=n.width*n.height,p=s*u;return Number((p/(c+d-p)).toFixed(4))}return 0}(e,t);o>n&&(n=o,r=t)}})),r}(R||_,e.drops.map((function(e){return e&&e.element})).filter((function(e){return e!==(R||_)}))),H=e.drops.find((function(e){return e.element===B}));H&&B&&function(e,t,n){var r=n.getBoundingClientRect();return r.top<=t&&r.left<=e&&t<=r.bottom&&e<=r.right}(N.clientX,N.clientY,P||u(B))&&B!==_?(e.drop&&e.drop.element)!==B?(e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(N),H.onDragEnter&&H.onDragEnter(N)):H.onDragOver&&H.onDragOver(N):e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(N)}S({x:N.clientX,y:N.clientY}),w({x:N.pageX,y:N.pageY});break;case r.POINTER_UP:if(N.type===r.POINTER_UP&&!N.originalEvent.isPrimary)break;case r.MOUSE_UP:case r.TOUCH_END:if(N.type===r.TOUCH_END&&1!==N.originalEvent.touches.length)break;case r.END:h(!1),v(!1),T.onRelease&&T.onRelease(N),e.drop&&e.drop.onDrop&&e.drop.onDrop(N),T.onDragEnd&&T.onDragEnd(N);break;case r.POINTER_CANCEL:case r.CONTEXT_MENU:case r.TOUCH_CANCEL:case r.CANCEL:h(!1),v(!1),T.onDragEnd&&T.onDragEnd(N),e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(N)}},p=function(e,t){if(e){var n,r;e===l(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,i=n&&o>0&&o<e.scrollHeight,a=e.scrollLeft+t.x,s=r&&a>0&&a<e.scrollWidth;i?e.scrollTop+=t.y:n&&o<0&&(e.scrollTop=0),s?e.scrollLeft+=t.x:r&&a<0&&(e.scrollLeft=0)}},f=n(3228),h=n(4912),m=n(2333);function v(e,t,n){void 0===n&&(n={});var r=t.onPress,i=void 0===r?f.Z:r,a=t.onRelease,l=void 0===a?f.Z:a,s=t.onDragStart,c=void 0===s?f.Z:s,v=t.onDrag,g=void 0===v?f.Z:v,y=t.onDragEnd,b=void 0===y?f.Z:y,C=n.hint,E=void 0===C?null:C,w=n.mouseOnly,k=void 0!==w&&w,S=n.autoScroll,O=void 0===S||S,D=n.scrollContainer,x=void 0===D?null:D,I=o.useState(!1),T=I[0],_=I[1],R=o.useState(!1),M=R[0],P=R[1],N=(0,h.W)(m.Gc)[0],F=(0,h.W)(m.Dg),A=F[0],j=F[1],L=o.useContext(m.tk)[0],V=o.useContext(m.Fg),z=V[0],B=V[1],H=V[2],U=o.useRef({x:0,y:0}),W=o.useRef(),K=o.useRef(!1),q=o.useRef(),Y=o.useRef(null),G=o.useRef(!1),Z=o.useRef({x:0,y:0}),X=o.useRef({x:0,y:0}),$=o.useRef({x:0,y:0}),Q=o.useRef({x:0,y:0}),J=o.useRef({x:0,y:0}),ee=o.useRef({x:0,y:0}),te=Boolean("undefined"!=typeof window&&window.PointerEvent),ne=!k&&te,re=o.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]),oe=o.useCallback((function(){return E&&E.current&&E.current.element?E.current.element:E?E.current:null}),[E]),ie=o.useCallback((function(){return x&&x.current&&x.current.element?x.current.element:x?x.current:null}),[x]),ae=o.useCallback((function(){return"object"==typeof O&&O.boundaryElementRef&&O.boundaryElementRef.current&&O.boundaryElementRef.current.element?O.boundaryElementRef.current.element:"object"==typeof O&&O.boundaryElementRef&&O.boundaryElementRef.current?O.boundaryElementRef.current:null}),[O]),le=o.useRef(null);o.useImperativeHandle(le,(function(){return{element:re(),hint:oe(),onPress:Ce,onDragStart:we,onDrag:ke,onDragEnd:Se,onRelease:Ee,data:e.current}}));var se=o.useCallback((function(){var e=re();return e&&e.ownerDocument||document}),[re]),ue=o.useCallback((function(){var e=se();return e&&e.defaultView||window}),[se]),ce=o.useCallback((function(){return{drag:A?A.current:null,drop:N?N.current:null,drags:z.map((function(e){return e.current})),drops:L.map((function(e){return e.current})),pressed:T,ignoreMouse:K.current,scrollOffset:J.current,offset:Z.current,pageOffset:X.current,initialScrollOffset:ee.current,clientOffset:$.current,initialClientOffset:Q.current,velocity:U.current,autoScroll:Boolean("object"==typeof O?!1!==O.enabled:O),scrollableParent:ae(),autoScrollDirection:"object"==typeof O?O.direction:{horizontal:!0,vertical:!0},isScrolling:M}}),[A,N,z,L,T,O,ae,M]),de=o.useCallback((function(e){_(e)}),[]),pe=o.useCallback((function(e){P(e)}),[]),fe=o.useCallback((function(e){U.current=e}),[]),he=o.useCallback((function(e){Z.current=e}),[]),me=o.useCallback((function(e){$.current=e}),[]),ve=o.useCallback((function(e){X.current=e}),[]),ge=o.useCallback((function(e){Q.current=e}),[]),ye=o.useCallback((function(e){J.current=e}),[]),be=o.useCallback((function(e){ee.current=e}),[]),Ce=o.useCallback((function(e){i(e)}),[i]),Ee=o.useCallback((function(e){l(e)}),[l]),we=o.useCallback((function(t){j(le,{target:e.current,event:t}),c(t)}),[j,e,c]),ke=o.useCallback((function(e){g(e)}),[g]),Se=o.useCallback((function(t){G.current||(j(null,{target:e.current,event:t}),b(t))}),[b,j,e]),Oe=o.useCallback((function(e){d(ce(),{event:e,payload:le.current},{onVelocityChange:fe,onOffsetChange:he,onClientOffsetChange:me,onPageOffsetChange:ve,onInitialClientOffsetChange:ge,onScrollOffsetChange:ye,onInitialScrollOffsetChange:be,onIsPressedChange:de,onIsScrollingChange:pe})}),[ce,fe,he,ve,me,ge,be,de,ye,pe]),De=o.useCallback((function(e){Oe(e)}),[Oe]),xe=o.useCallback((function(e){Oe(e)}),[Oe]),Ie=o.useCallback((function(e){Oe(e)}),[Oe]),Te=o.useCallback((function(e){Oe(e)}),[Oe]),_e=o.useCallback((function(e){Oe(e)}),[Oe]),Re=o.useCallback((function(e){Oe(e)}),[Oe]),Me=o.useCallback((function(e){Oe(e)}),[Oe]),Pe=o.useCallback((function(e){e.preventDefault(),Oe(e)}),[Oe]),Ne=o.useCallback((function(e){e.preventDefault(),Oe(e)}),[Oe]),Fe=o.useCallback((function(e){e.preventDefault(),Oe(e)}),[Oe]),Ae=o.useCallback((function(e){if(0===e.touches.length&&1===e.changedTouches.length){var t=ue();K.current=!0,q.current=t.setTimeout((function(){K.current=!1}),2e3)}Oe(e)}),[Oe,ue]),je=o.useCallback((function(e){Oe(e)}),[Oe]),Le=o.useCallback((function(){var e=re();if(e){var t=e.style.touchAction;return e.style.touchAction="none",function(){e.style.touchAction=t}}}),[re]),Ve=o.useCallback((function(){return B(le),function(){H(le)}}),[H,B]);o.useEffect((function(){var e=ue();if(M){var t=ie()||u(document.elementFromPoint($.current.x,$.current.y));e.clearInterval(W.current),W.current=e.setInterval((function(){p(t,{x:U.current.x,y:U.current.y})}),50)}return function(){e.clearInterval(W.current)}}),[re,ie,ue,M]),o.useEffect(Le,[Le]),o.useEffect((function(){var e=ue(),t=re(),n=se();return ne?(t&&(Y.current=u(t),Y.current&&Y.current.addEventListener("scroll",je,{passive:!0}),t.addEventListener("pointerdown",De,{passive:!0})),T&&(n.addEventListener("pointermove",xe),n.addEventListener("pointerup",Te,!0),n.addEventListener("contextmenu",Pe),n.addEventListener("pointercancel",Ie,{passive:!0}))):(e.addEventListener("touchmove",f.Z,{capture:!1,passive:!1}),t&&(t.addEventListener("mousedown",_e,{passive:!0}),k||(t.addEventListener("touchstart",Ne,{passive:!0}),T&&(t.addEventListener("touchmove",Fe,{passive:!0}),t.addEventListener("touchend",Ae,{passive:!0})))),T&&(n.addEventListener("mousemove",Re,{passive:!0}),n.addEventListener("mouseup",Me,{passive:!0}))),function(){Y.current&&Y.current.removeEventListener("scroll",je),t&&(t.removeEventListener("pointerdown",De),t.removeEventListener("mousedown",_e),t.removeEventListener("touchstart",Ne),t.removeEventListener("touchmove",Fe),t.removeEventListener("touchend",Ae)),n.removeEventListener("pointermove",xe),n.removeEventListener("pointerup",Te,!0),n.removeEventListener("contextmenu",Pe),n.removeEventListener("pointercancel",Ie),n.removeEventListener("mousemove",Re),n.removeEventListener("mouseup",Me),e.removeEventListener("touchmove",f.Z),e.clearTimeout(q.current)}}),[T,ue,re,se,k,ne,Pe,_e,Re,Me,Ie,De,xe,Te,Ae,Fe,Ne,je]),o.useEffect((function(){return function(){G.current=!0}}),[]),o.useLayoutEffect(Ve,[Ve])}},4912:(e,t,n)=>{n.d(t,{W:()=>o});var r=n(3899),o=function(e,t){var n=r.useContext(e),o=n[0],i=n[1],a=r.useState(t),l=a[0],s=a[1];return[void 0!==o?o:l,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];void 0!==o?i.apply(void 0,e):s(e[0])}]}},3322:(e,t,n)=>{n.d(t,{i:()=>o});var r=n(3899),o=function(e,t,n){void 0===n&&(n={});var o=r.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]),i=r.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:r.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:i,onMouseDown:o,onDoubleClick:r.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:r.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:r.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:r.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:r.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:r.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])}}},9656:(e,t,n)=>{n.d(t,{Y:()=>o});var r=n(3899),o=function(e,t){return r.useContext(e)(t)}},1573:(e,t,n)=>{n.d(t,{V:()=>o});var r=n(3899);function o(e,t,n){var o=r.useState(t),i=o[0],a=o[1];return r.useEffect((function(){if(!i&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&a(t)}}),n),i}},3493:(e,t,n)=>{n.d(t,{R:()=>r});var r={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}},3865:(e,t,n)=>{n.r(t),n.d(t,{AsyncFocusBlur:()=>k.o,BrowserSupportService:()=>i.O,COLLECTION_ACTION:()=>r,DragAndDrop:()=>re,Draggable:()=>oe._,Droppable:()=>le,FormComponent:()=>d,Icon:()=>L,Keys:()=>m.R,SvgIcon:()=>B,Typography:()=>J,ZIndexContext:()=>o.$,canUseDOM:()=>a.N,canUseRef:()=>l,classNames:()=>s.A,clone:()=>u.d9,cloneArray:()=>u.M2,cloneDate:()=>u.ky,cloneObject:()=>u.kI,cloneValue:()=>u.Ve,createPropsContext:()=>S.Y,dispatchEvent:()=>w.N,extendDataItem:()=>b.u5,focusFirstFocusableChild:()=>c.n,getItemPath:()=>b.ym,getScrollbarWidth:()=>g.n,getTabIndex:()=>p.p,getter:()=>f.Y,guid:()=>h.M,hasRelativeStackingContext:()=>E,kendoThemeMaps:()=>ue.G,mapTree:()=>b.Gy,mapTreeItem:()=>b.eY,noop:()=>v.Z,setScrollbarWidth:()=>g.p,setter:()=>y.I,useAsyncFocusBlur:()=>D.U,useCollection:()=>M,useCustomComponent:()=>T,useDir:()=>O.n,useDocument:()=>P,useDraggable:()=>se.O,useDroppable:()=>ae,useMouse:()=>I.i,usePropsContext:()=>_.Y,useRtl:()=>x.V,useWindow:()=>N,useZIndexContext:()=>o.u,validatePackage:()=>C.s,withPropsContext:()=>S.u});var r,o=n(8259),i=n(3503),a=n(7827),l=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=n(8047),u=n(4500),c=n(9124),d=function(){},p=n(4703),f=n(9659),h=n(3198),m=n(3493),v=n(3228),g=n(2665),y=n(4431),b=n(8006),C=n(4006),E=function(e){if(!a.N)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: '.concat(10,'px;">child</div>'),t.body.appendChild(n);var r=10!==n.children[0].getBoundingClientRect().top;return t.body.removeChild(n),r},w=n(5407),k=n(493),S=n(848),O=n(8199),D=n(6059),x=n(1573),I=n(3322),T=function(e){return[e,{}]},_=n(9656),R=n(3899);!function(e){e[e.add=0]="add",e[e.remove=1]="remove"}(r||(r={}));var M=function(e){void 0===e&&(e=[]);var t=R.useRef(e),n=R.useCallback((function(e){switch(e.type){case r.add:t.current.push(e.item);break;case r.remove:var n=t.current.indexOf(e.item);t.current.splice(n,1)}}),[]);return[t.current,n]},P=function(e){var t=R.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]);return R.useCallback((function(){var e=t();return e&&e.ownerDocument||document}),[t])},N=function(e){var t=P(e);return R.useCallback((function(){var e=t();return e&&e.defaultView||window}),[t])},F=n(189),A={default:"",xsmall:"k-icon-xs",small:"k-icon-sm",medium:"k-icon-md",large:"k-icon-lg",xlarge:"k-icon-xl"},j=function(){return j=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},j.apply(this,arguments)},L=R.forwardRef((function(e,t){var n=e.className,r=e.name,o=e.themeColor,i=e.size,a=e.flip,l=e.style,u=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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["className","name","themeColor","size","flip","style"]),c=R.useRef(null),d=R.useRef(null);R.useImperativeHandle(c,(function(){return{element:d.current}})),R.useImperativeHandle(t,(function(){return c.current}));var p=R.useMemo((function(){return o||V.themeColor}),[o]),f=R.useMemo((function(){return i||V.size}),[i]),h=R.useMemo((function(){return a||V.flip}),[a]),m=R.useMemo((function(){return(0,s.A)("k-icon","k-i-"+r,"k-color-"+p,{"k-flip-h":"horizontal"===h||"both"===h,"k-flip-v":"vertical"===h||"both"===h},A[f],n)}),[r,p,f,h,n]),v=(0,I.i)(e,c);return R.createElement("span",j({ref:d},u,v,{className:m,style:l,role:"presentation"}))}));L.propTypes={style:F.object,classNames:F.string,name:F.string,themeColor:F.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:F.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:F.oneOf(["default","horizontal","vertical","both"])};var V={size:"default",themeColor:"inherit",flip:"default"};L.displayName="KendoIcon";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},z.apply(this,arguments)},B=R.forwardRef((function(e,t){var n=e.children,r=e.className,o=e.svgClassName,i=e.icon,a=e.flip,l=e.size,u=e.style,c=e.svgStyle,d=e.themeColor,p=e.viewBox,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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["children","className","svgClassName","icon","flip","size","style","svgStyle","themeColor","viewBox"]),h=R.useRef(null);R.useImperativeHandle(t,(function(){return{element:h.current}}));var m=R.useMemo((function(){return i?i.name:H.icon}),[i]),v=R.useMemo((function(){return d||H.themeColor}),[d]),g=R.useMemo((function(){return l||H.size}),[l]),y=R.useMemo((function(){return a||H.flip}),[a]),b=R.useMemo((function(){return p||H.viewBox}),[p]),C=R.useMemo((function(){return(0,s.A)("k-svg-icon","k-color-"+v,"k-svg-i-"+m,{"k-flip-h":"horizontal"===y||"both"===y,"k-flip-v":"vertical"===y||"both"===y},A[g],r)}),[m,v,g,y,r]),E=R.useMemo((function(){return e.width&&e.height?z({width:e.width,height:e.height},u):e.width?z({width:e.width,height:e.width},u):e.height?z({width:e.height,height:e.height},u):z({},u)}),[e.width,e.height,u]);return R.createElement("span",{className:C,style:E,ref:h},R.createElement("svg",z({className:o,style:c,"aria-hidden":!0,focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:i?i.viewBox:b,dangerouslySetInnerHTML:i?{__html:i.content}:void 0},f),i?void 0:n))}));B.propTypes={style:F.object,classNames:F.string,children:F.any,icon:F.object,themeColor:F.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:F.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:F.oneOf(["default","horizontal","vertical","both"])};var H={size:"default",themeColor:"inherit",flip:"default",icon:"",viewBox:"0 0 24 24"};B.displayName="KendoSvgIcon";var U={xsmall:"k-fs-xs",small:"k-fs-sm",medium:"k-fs-md",large:"k-fs-lg",xlarge:"k-fs-xl"},W={light:"k-font-weight-light",normal:"k-font-weight-normal",bold:"k-font-weight-bold"},K={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"},q={xsmall:"xs",small:"sm",medium:"md",large:"lg",xlarge:"xl",thin:"thin",hair:"hair"},Y={top:"k-mt-",right:"k-mr-",bottom:"k-mb-",left:"k-ml-"},G={left:"k-text-left",right:"k-text-right",center:"k-text-center",justify:"k-text-justify"},Z={lowercase:"k-text-lowercase",uppercase:"k-text-uppercase",capitalize:"k-text-capitalize"},X={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"},$=function(){return $=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)},Q=function(e){var t=R.forwardRef((function(t,n){var r=t.id,o=t.style,i=t.className,a=t.fontSize,l=t.fontWeight,s=t.textAlign,u=t.textTransform,c=t.themeColor,d=t.margin,p=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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["id","style","className","fontSize","fontWeight","textAlign","textTransform","themeColor","margin"]),f=R.useRef(null),h=R.useRef(null);R.useImperativeHandle(f,(function(){return{element:h.current,props:t}})),R.useImperativeHandle(n,(function(){return f.current}));var m=e;return R.createElement(m,$({id:r,ref:h,className:["k-".concat("p"===e?"paragraph":e),U[a],W[l],G[s],Z[u],X[c],function(){if(void 0!==d){if("string"==typeof d)return[K[d]];if("number"==typeof d&&d>=0&&d<=24)return["k-m-".concat(d)];if("object"==typeof d){var e=[];return Object.keys(d).forEach((function(t){var n,r,o;null!==d[t]&&void 0!==d[t]&&e.push((n=t,o="string"==typeof(r=d[t])?q[r]:r,"".concat(Y[n]).concat(o)))})),e.join(" ")}}}(),i].filter((function(e){return void 0!==e})).join(" "),style:o},p),t.children)}));return t.propTypes={style:F.object,className:F.string,fontSize:F.oneOf(["xsmall","small","medium","large","xlarge"]),fontWeight:F.oneOf(["light","normal","bold"]),margin:F.oneOfType([F.number,F.object,F.oneOf(["xsmall","small","medium","large","xlarge","thin","hair"])]),textAlign:F.oneOf(["left","right","center","justify"]),textTransform:F.oneOf(["lowercase","uppercase","capitalize"]),themeColor:F.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"])},t.displayName="KendoReactTypography".concat(e.toUpperCase()),t},J={h1:Q("h1"),h2:Q("h2"),h3:Q("h3"),h4:Q("h4"),h5:Q("h5"),h6:Q("h6"),p:Q("p"),code:Q("code"),pre:Q("pre")},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},ee.apply(this,arguments)},te=function(e,t,n){var r=R.useState(t||e),o=r[0],i=r[1];return[void 0!==t?t:o,R.useCallback((function(e,t){i(e),n&&n.call(void 0,ee(ee({},t),{value:e}))}),[n,i])]},ne=n(2333),re=function(e){var t=te(null,void 0),n=t[0],o=t[1],i=te(null,void 0),a=i[0],l=i[1],s=M([]),u=s[0],c=s[1],d=M([]),p=d[0],f=d[1];return R.createElement(ne.Dg.Provider,{value:[n,o]},R.createElement(ne.Gc.Provider,{value:[a,l]},R.createElement(ne.Fg.Provider,{value:[u,function(e){c({type:r.add,item:e})},function(e){c({type:r.remove,item:e})}]},R.createElement(ne.tk.Provider,{value:[p,function(e){f({type:r.add,item:e})},function(e){f({type:r.remove,item:e})}]},e.children))))};re.displayName="KendoReactDragAndDrop";var oe=n(1779),ie=n(4912);function ae(e,t){void 0===t&&(t={onDragEnter:v.Z,onDragOver:v.Z,onDragLeave:v.Z,onDrop:v.Z});var n=t.onDragEnter,r=void 0===n?v.Z:n,o=t.onDragOver,i=void 0===o?v.Z:o,a=t.onDragLeave,l=void 0===a?v.Z:a,s=t.onDrop,u=void 0===s?v.Z:s,c=(0,ie.W)(ne.Gc)[1],d=R.useContext(ne.tk),p=d[1],f=d[2],h=R.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]),m=R.useRef(null);R.useImperativeHandle(m,(function(){return{element:h(),onDragEnter:g,onDragOver:y,onDragLeave:b,onDrop:C,data:e.current}}));var g=R.useCallback((function(t){c(m,{target:e.current,event:t}),r(t)}),[c,e,r]),y=R.useCallback((function(e){i(e)}),[i]),b=R.useCallback((function(t){c(null,{target:e.current,event:t}),l(t)}),[c,e,l]),C=R.useCallback((function(t){c(null,{target:e.current,event:t}),u(t)}),[c,e,u]),E=R.useCallback((function(){return p(m),function(){f(m)}}),[f,p]);R.useLayoutEffect(E,[E])}var le=R.forwardRef((function(e,t){var n=R.useRef(null),r=R.useRef(null),o=R.useCallback((function(){return n.current&&n.current.element?n.current.element:n.current}),[n]);R.useImperativeHandle(r,(function(){return{element:o()||void 0}})),R.useImperativeHandle(t,(function(){return r.current})),R.useImperativeHandle(e.childRef,(function(){return n.current}));var i=R.useCallback((function(t){e.onDragEnter&&e.onDragEnter({element:o(),target:r.current,event:t})}),[e.onDragEnter,o]),a=R.useCallback((function(t){e.onDragOver&&e.onDragOver({element:o(),target:r.current,event:t})}),[o,e.onDragOver]),l=R.useCallback((function(t){e.onDragLeave&&e.onDragLeave({element:o(),target:r.current,event:t})}),[e.onDragLeave,o]),s=R.useCallback((function(t){e.onDrop&&e.onDrop({element:o(),target:r.current,event:t})}),[e.onDrop,o]);return ae(n,{onDragEnter:i,onDragOver:a,onDragLeave:l,onDrop:s}),e.children?R.cloneElement(R.Children.only(e.children),{ref:n}):null}));le.displayName="KendoReactDroppable";var se=n(9844),ue=n(2697)},3228:(e,t,n)=>{n.d(t,{Z:()=>r});var r=function(){}},2665:(e,t,n)=>{n.d(t,{n:()=>i,p:()=>a});var r=n(3503),o=n(7827),i=function(){return!(!o.N||!document.body)&&(new r.O).scrollbarWidth},a=function(){if(!o.N||!document.body)return!1;var e=(new r.O).scrollbarWidth;document.body.style.setProperty("--kendo-scrollbar-width","".concat(e,"px"))}},4431:(e,t,n)=>{n.d(t,{I:()=>a});var r=n(4100),o={undefined:function(e){return e}},i=function(e,t){return t&&t.arrays&&!isNaN(Number(e))?[]:{}};function a(e){if(o[e])return o[e];var t=(0,r.E)(e);return o[e]=function(e,n,r){for(var o=e,a=t.length-1,l=0;l<a&&o;l++)o=o[t[l]]=o[t[l]]||i(t[l+1],r);o[t[a]]=n},o[e]}},2697:(e,t,n)=>{n.d(t,{G:()=>r});var r={sizeMap:{small:"sm",medium:"md",large:"lg"},roundedMap:{small:"sm",medium:"md",large:"lg"}}},8006:(e,t,n)=>{n.d(t,{Gy:()=>l,eY:()=>s,u5:()=>u,ym:()=>c});var r=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},r.apply(this,arguments)},o=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};function i(e,t,n){var i;return n?r(r({},e),((i={})[t]=n.length?o([],n,!0):void 0,i)):e&&e[t]?o([],e[t],!0):[]}function a(e,t,n){if(e[t]){var r=i(e,t).map((function(e){return a(e,t,n)}));return n(i(e,t,r))}return n(e)}var l=function(e,t,n){return o([],e.map((function(e){return a(e,t,n)})),!0)},s=function(e,t,n,r){for(var o=e,i=[],a=0;a<t.length;a++)o=o[t[a]],o=Array.isArray(o)?o:o[n],i.push(o);var l=i.length>1?i[i.length-2]:e,s=t[t.length-1],u=r(l[s]);l.splice(s,1,u)},u=function(e,t,n){var r;return Object.assign({},e,e[t]?((r={})[t]=e[t].slice(),r):{},n||{})},c=function(e,t,n){var r=[],i=o([],t,!0);if(i.length){var a=e[i.shift()||0];for(r.push(a);i.length&&n;)a=a[n][i.shift()||0],r.push(a)}return r}},4006:(e,t,n)=>{n.d(t,{s:()=>o});var r=n(9302);function o(e){if(void 0!==r)r.validatePackage(e);else{var t="License activation failed for ".concat(e.name,"\n");t+="The @progress/kendo-licensing script is not loaded.\n",t+="See ".concat(e.licensingDocsUrl," for more information.\n"),console.warn(t)}}},619:e=>{e.exports=n},4407:e=>{e.exports=a},9302:e=>{e.exports=r},499:e=>{e.exports=o},189:e=>{e.exports=t},3899:t=>{t.exports=e},994:e=>{e.exports=i},6144:e=>{e.exports=l}},u={};function c(e){var t=u[e];if(void 0!==t)return t.exports;var n=u[e]={exports:{}};return s[e].call(n.exports,n,n.exports,c),n.exports}return c.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},c.d=(e,t)=>{for(var n in t)c.o(t,n)&&!c.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c(468)})()}));
2
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("prop-types"),require("@progress/kendo-date-math"),require("@progress/kendo-licensing"),require("@progress/kendo-react-intl"),require("react-dom"),require("@progress/kendo-drawing"),require("react-transition-group")):"function"==typeof define&&define.amd?define(["react","prop-types","@progress/kendo-date-math","@progress/kendo-licensing","@progress/kendo-react-intl","react-dom","@progress/kendo-drawing","react-transition-group"],t):"object"==typeof exports?exports.KendoReactScheduler=t(require("react"),require("prop-types"),require("@progress/kendo-date-math"),require("@progress/kendo-licensing"),require("@progress/kendo-react-intl"),require("react-dom"),require("@progress/kendo-drawing"),require("react-transition-group")):e.KendoReactScheduler=t(e.React,e.PropTypes,e.KendoDateMath,e.KendoLicensing,e.KendoReactIntl,e.ReactDOM,e.KendoDrawing,e.ReactTransitionGroup)}(self,(function(e,t,n,r,o,i,a,l){return(()=>{"use strict";var s={4960:function(e,t,n){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},r.apply(this,arguments)},o=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.Scheduler=t.DATA_ACTION=void 0;var i,a=n(3899),l=n(189),s=n(5538),u=n(3865),c=n(6266),d=n(1995),p=n(499),f=n(352),h=n(4692),m=n(2557),v=n(619),g=n(6763),y=n(2888),b=n(3364),C=n(7340),E=n(7238),w=n(6198),k=n(468),S=n(3865),O=n(7363);!function(e){e[e.create=0]="create",e[e.update=1]="update",e[e.remove=2]="remove"}(i=t.DATA_ACTION||(t.DATA_ACTION={})),t.Scheduler=a.forwardRef((function(e,t){(0,S.validatePackage)(O.packageMetadata);var n=e.timezone,l=e.onDataChange,f=a.useRef(null),g=a.useRef(null);a.useImperativeHandle(g,(function(){return{props:e,element:f.current}})),a.useImperativeHandle(t,(function(){return g.current}));var x=(0,u.useRtl)(f),I=(0,p.useInternationalization)(),T=(0,p.useLocalization)(),_=a.useMemo((function(){return(0,s.getModelFields)(e.modelFields)}),[e.modelFields]).fields,R=(0,d.useControlledState)(e.defaultDate||D.defaultDate,e.date,e.onDateChange),M=R[0],P=R[1],N=a.Children.toArray(e.children||[]),F=(0,d.useControlledState)(e.defaultView||N[0]&&N[0].props.name||"day",e.view,e.onViewChange),A=F[0],j=F[1],L=(0,d.useControlledState)(!0),V=L[0],z=L[1],B=N.find((function(e){return e.props.name===A}))||N[0]||a.createElement(k.DayView,null),H=e.data||D.data,U=(0,s.toSchedulerGroups)(e.group,e.resources),W=e.group&&e.group.orientation?e.group.orientation:"horizontal",K=B.props.selectedDateFormat||"{0:D}",q=B.props.selectedShortDateFormat||"{0:d}",Y=B.props.slotDuration,G=void 0!==B.props.dateRange?"function"==typeof B.props.dateRange?B.props.dateRange.call(void 0,{intl:I,date:M,timezone:n,numberOfDays:B.props.numberOfDays,workWeekStart:B.props.workWeekStart||I.firstDay(),workWeekEnd:B.props.workWeekEnd||(I.firstDay()+B.props.numberOfDays)%6}):B.props.dateRange:{start:D.defaultDate,end:D.defaultDate},Z=a.useCallback((function(e){var t=e.created,n=void 0===t?[]:t,r=e.updated,o=void 0===r?[]:r,i=e.deleted;if(l){var a={created:n,updated:o,deleted:void 0===i?[]:i};l.call(void 0,a)}}),[l]),X=a.useCallback((function(e){var t=[e.dataItem];Z({created:t})}),[Z]),$=a.useCallback((function(e){var t=[],n=[];if(e.series)if(Array.isArray(e.dataItem))e.dataItem.map((function(t){var r=(0,u.clone)((0,s.findMaster)(e.dataItem,_,H)),o=(0,u.clone)(t);(0,s.setField)(o,_.originalStart,(0,s.getField)(r,_.originalStart)),(0,s.setField)(o,_.recurrenceId,(0,s.getField)(r,_.recurrenceId)),(0,s.setField)(o,_.recurrenceExceptions,(0,s.getField)(r,_.recurrenceExceptions)),n.push(o)}));else{var r=(0,u.clone)((0,s.findMaster)(e.dataItem,_,H)),i=(0,u.clone)(e.dataItem);(0,s.setField)(i,_.originalStart,(0,s.getField)(r,_.originalStart)),(0,s.setField)(i,_.recurrenceId,(0,s.getField)(r,_.recurrenceId)),(0,s.setField)(i,_.recurrenceExceptions,(0,s.getField)(r,_.recurrenceExceptions)),n.push(i)}else if(Array.isArray(e.dataItem))e.dataItem.map((function(e){var r=null!==(0,s.getField)(e,_.recurrenceRule)&&void 0!==(0,s.getField)(e,_.recurrenceRule);if(null!==(0,s.getField)(e,_.recurrenceId)&&void 0!==(0,s.getField)(e,_.recurrenceId)&&r){var i=(0,u.clone)((0,s.findMaster)(e,_,H)),a=(0,s.getField)(e,_.originalStart),l=(0,s.getField)(i,_.recurrenceExceptions)||[];(0,s.setField)(i,_.recurrenceExceptions,o(o([],l,!0),[a],!1)),(0,s.setField)(e,_.recurrenceRule,null),n.push(i),t.push(e)}else n.push(e)}));else{var a=null!==(0,s.getField)(e.dataItem,_.recurrenceRule)&&void 0!==(0,s.getField)(e.dataItem,_.recurrenceRule);if(null!==(0,s.getField)(e.dataItem,_.recurrenceId)&&void 0!==(0,s.getField)(e.dataItem,_.recurrenceId)&&a){r=(0,u.clone)((0,s.findMaster)(e.dataItem,_,H));var l=(0,s.getField)(e.dataItem,_.originalStart),c=(0,s.getField)(r,_.recurrenceExceptions)||[];(0,s.setField)(r,_.recurrenceExceptions,o(o([],c,!0),[l],!1)),(0,s.setField)(e.dataItem,_.recurrenceRule,null),n.push(r),t.push(e.dataItem)}else n.push(e.dataItem)}Z({updated:n,created:t})}),[Z,_,H]),Q=a.useCallback((function(e){var t=[],n=[];if(e.series){var r=(0,u.clone)((0,s.findMaster)(e.dataItem,_,H)),i=(0,u.clone)(e.dataItem);(0,s.setField)(i,_.originalStart,(0,s.getField)(r,_.originalStart)),(0,s.setField)(i,_.recurrenceId,(0,s.getField)(r,_.recurrenceId)),(0,s.setField)(i,_.recurrenceRule,(0,s.getField)(r,_.recurrenceRule)),(0,s.setField)(i,_.recurrenceExceptions,(0,s.getField)(r,_.recurrenceExceptions)),n.push(i)}else if(null!==(0,s.getField)(e.dataItem,_.recurrenceRule)&&void 0!==(0,s.getField)(e.dataItem,_.recurrenceRule)){r=(0,u.clone)((0,s.findMaster)(e.dataItem,_,H));var a=(0,s.getField)(e.dataItem,_.originalStart),l=(0,s.getField)(r,_.recurrenceExceptions)||[];(0,s.setField)(r,_.recurrenceExceptions,o(o([],l,!0),[a],!1)),(0,s.setField)(e.dataItem,_.recurrenceRule,null),t.push(r)}else n.push(e.dataItem);Z({updated:t,deleted:n})}),[Z,_,H]),J=a.useCallback((function(e){switch(e.type){case i.create:X(e);break;case i.update:$(e);break;case i.remove:Q(e)}}),[X,Q,$]),ee=a.useCallback((function(e,t){j(e,r(r({},t),{target:g.current}))}),[j,g]),te=a.useCallback((function(e,t){P(e,r(r({},t),{target:g.current}))}),[P,g]),ne=a.useCallback((function(e){e.value&&P(e.value,r(r({},e),{target:g.current,nativeEvent:e.nativeEvent}))}),[P,g]),re=a.useCallback((function(e){e.preventDefault();var t=B.props.numberOfDays||1,n=t>27?(0,v.addMonths)(M,Math.round(t/27)):(0,v.addDays)(M,t);P(n,event)}),[M,P,B.props.numberOfDays]),oe=a.useCallback((function(e){e.preventDefault();var t=B.props.numberOfDays||1,n=t>27?(0,v.addMonths)(M,-Math.round(t/27)):(0,v.addDays)(M,-t);P(n,event)}),[M,P,B.props.numberOfDays]),ie=a.useCallback((function(e){e.preventDefault();var t=(0,s.getToday)();P(t,event)}),[P]),ae=a.useCallback((function(){z(!V)}),[z,V]),le=a.useCallback((function(){f.current&&(f.current.style.boxShadow="0 0.5px 0.5px 0.5px rgba(0, 0, 0, .12)")}),[f]),se=a.useCallback((function(){f.current&&(f.current.style.boxShadow="")}),[f]),ue=a.useMemo((function(){return r(r({},e.style),{height:e.height})}),[e.height,e.style]),ce=a.useMemo((function(){return(0,u.classNames)({"k-rtl":void 0!==e.rtl?e.rtl:"rtl"===x},"k-widget k-scheduler k-scheduler-flex k-floatwrap",e.className)}),[e.className,e.rtl,x]),de=T.toLanguageString(b.today,b.messages[b.today]),pe=T.toLanguageString(b.previousTitle,b.messages[b.previousTitle]),fe=T.toLanguageString(b.nextTitle,b.messages[b.nextTitle]),he=B.props.header||e.header||D.header,me=B.props.footer||e.footer||D.footer,ve=h.SchedulerNavigation,ge=m.SchedulerViewSelector;return a.createElement(c.SchedulerContext,{element:f,props:e,views:N,fields:_,groups:U,dateRange:G,orientation:W,dateFormat:{dateFormat:K,shortDateFormat:q},date:[M,te],activeView:[A,ee],data:[H,J]},a.createElement("div",{ref:f,id:e.id,style:ue,className:ce,tabIndex:e.tabIndex,dir:x,role:e.role,"aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,onFocus:le,onBlur:se},a.createElement(he,null,a.createElement(ve,null,a.createElement(y.ButtonGroup,{className:"k-scheduler-navigation"},a.createElement(y.Button,{role:"button",tabIndex:-1,title:de,"aria-label":de,onClick:ie},de),a.createElement(y.Button,{role:"button",tabIndex:-1,icon:"arrow-60-left",title:pe,"aria-label":pe,onClick:oe}),a.createElement(y.Button,{role:"button",tabIndex:-1,icon:"arrow-60-right",title:fe,"aria-label":fe,onClick:re}))),a.createElement(C.NavigationDatePicker,{value:M,onChange:ne}),a.createElement(y.ToolbarSpacer,null),a.createElement(ge,null,a.createElement(E.ViewSelectorList,null))),B&&a.createElement(B.type,r({editable:e.editable,key:B.props.name,item:e.item,viewItem:e.viewItem,editItem:e.editItem,task:e.task,viewTask:e.viewTask,editTask:e.viewTask,slot:e.slot,viewSlot:e.viewSlot,editSlot:e.editSlot,form:e.form,onDataAction:J,showWorkHours:V},B.props)),a.createElement(me,null,Y&&Y<1440&&a.createElement(w.BusinessHours,null,a.createElement(y.Button,{tabIndex:-1,onClick:ae},a.createElement("span",{className:"k-icon k-i-clock"})," ",T.toLanguageString(V?b.showFullDay:b.showWorkDay,b.messages[V?b.showFullDay:b.showWorkDay]))))))}));var D={data:[],height:600,tabIndex:-1,editable:!1,defaultDate:new Date,header:f.SchedulerHeader,footer:g.SchedulerFooter,navigation:h.SchedulerNavigation,viewSelector:m.SchedulerViewSelector};t.Scheduler.propTypes={data:l.array,editable:l.oneOfType([l.bool,l.shape({add:l.bool,drag:l.bool,edit:l.bool,remove:l.bool,resize:l.bool})]),view:l.string,defaultView:l.string,date:l.any,defaultDate:l.any,rtl:l.bool,height:l.oneOfType([l.number,l.string]),children:l.any,timezone:l.string,group:l.any,resources:l.any,modelFields:l.shape({id:l.string,start:l.string,startTimezone:l.string,end:l.string,endTimezone:l.string,isAllDay:l.string,title:l.string,description:l.string,recurrenceRule:l.string,recurrenceId:l.string,recurrenceException:l.string})},t.Scheduler.defaultProps=D,t.Scheduler.displayName="KendoReactScheduler"},7370:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BaseView=void 0;var r=n(3899),o=n(8586),i=n(3865),a=n(8744),l=n(1365),s=n(2334),u=n(3865);t.BaseView=r.forwardRef((function(e,t){var n=r.useRef(null);r.useImperativeHandle(t,(function(){return n.current}));var c=(0,u.useCollection)([]),d=c[0],p=c[1],f=(0,u.useCollection)([]),h=f[0],m=f[1],v=(0,o.useItemsFocus)(d),g=v[0],y=v[1],b=(0,o.useSlotsFocus)(h),C=b[0],E=b[1],w=(0,l.useItemsSelection)(d),k=w[0],S=w[1],O=(0,s.useSlotsSelection)(h),D=O[0],x=O[1],I=r.useCallback((function(e,t){x({type:s.SLOTS_SELECT_ACTION.reset}),S(e,t)}),[S,x]),T=r.useCallback((function(e,t){S({type:l.ITEMS_SELECT_ACTION.reset},t),x(e)}),[S,x]),_=r.useMemo((function(){return(0,i.classNames)("k-scheduler-layout k-scheduler-layout-flex",e.className)}),[e.className]);return(0,o.useCellSync)({element:n,selector:".k-group-cell",attribute:"data-depth-index",explicitDepth:!0}),(0,o.useCellSync)({element:n,selector:".k-side-cell",attribute:"data-depth-index",explicitDepth:!1}),r.createElement(a.SchedulerViewContext,{props:e.props,ranges:e.ranges,items:[d,p],slots:[h,m],selectedItems:[k,I],selectedSlots:[D,T],focusedItems:[g,y],focusedSlots:[C,E]},r.createElement("div",{ref:n,style:e.style,className:_,role:"presentation"},e.children))})),t.BaseView.displayName="KendoReactSchedulerBaseView"},6578:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CurrentTimeMarker=void 0;var r=n(3899),o=n(994),i=n(619),a=n(3865),l=n(7907),s=n(5538),u=n(3152);t.CurrentTimeMarker=function(e){var t,n=r.useState(!1),d=n[0],p=n[1],f=(0,l.useSchedulerElementContext)(),h=(0,l.useSchedulerPropsContext)(),m=r.useRef(void 0),v=r.useRef(null),g=r.useRef(null),y=e.updateInterval||c.updateInterval,b=r.useState(!1)[1],C=(0,a.useDir)(g,!0===h.rtl?"rtl":void 0),E=(0,l.useSchedulerViewSlotsContext)()[0],w=r.useCallback((function(){if(E){var t,n,r,o=E.filter((function(t){return t.current&&(void 0===e.groupIndex||null===e.groupIndex||t.current.props.group.index===e.groupIndex)&&(e.vertical?(0,s.intersects)(new Date,new Date,t.current.props.start,t.current.props.end,!0):(0,s.isInTimeRange)(new Date,t.current.props.start,t.current.props.end))&&!t.current.props.isAllDay}));if(o&&o.length&&v.current&&g.current){var a=(0,s.first)(o);if(!a.current)return;var l=e.vertical?function(e){var t=0;return e.forEach((function(e){if(e.current){var n=(0,u.getRect)(e.current.element);t+=n.height}})),t}(o):function(e){var t=0;return e.forEach((function(e){if(e.current){var n=(0,u.getRect)(e.current.element);t+=n.width}})),t}(o),c=(0,u.getRect)(a.current.element),d=(0,u.getRect)(v.current),f=(e.vertical?c.width:c.height)/(a.current.props.end.getTime()-a.current.props.start.getTime()),h=(Date.now()-(t=new Date,n=a.current.props.start,r=(0,i.cloneDate)(t),r.setHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),r).getTime())*f,m="rtl"===C,y=e.vertical?c.top:c.top+h-d.height/2,b=m?"right":"left",w=e.vertical?c[b]+h-d.width/2:c[b];e.vertical?v.current.style[b]="".concat(w,"px"):v.current.style.top="".concat(y,"px"),g.current.style[b]="".concat(w,"px"),g.current.style.top="".concat(y,"px"),g.current.style[e.vertical?"height":"width"]="".concat(l-1,"px"),p(!0)}else p(!1)}}),[E,e.groupIndex,e.vertical,C]),k=r.useCallback((function(){w(),b((function(e){return!e}))}),[w]);r.useEffect((function(){if(f.current&&window){clearInterval(m.current),m.current=window.setInterval(k,y);var e=new window.ResizeObserver(k);return e.observe(f.current),function(){clearInterval(m.current),e.disconnect()}}}),[w,k,f,y]),r.useEffect(w);var S=r.createElement("div",{ref:v,className:(0,a.classNames)("k-current-time",{"k-current-time-arrow-right":!e.vertical&&"rtl"!==C,"k-current-time-arrow-left":!e.vertical&&"rtl"===C,"k-current-time-arrow-down":e.vertical}),style:{transform:e.vertical?"rtl"===C?"translateX(50%)":"translateX(-50%)":"translateY(-50%)",visibility:d?void 0:"hidden"}});return r.createElement(r.Fragment,null,e.attachArrow&&e.attachArrow.current?o.createPortal(S,e.attachArrow.current):S,r.createElement("div",{className:"k-current-time",ref:g,style:(t={transform:e.vertical?"translateX(-50%)":"translateY(-50%)"},t[e.vertical?"width":"height"]="1px",t.visibility=d?void 0:"hidden",t)}))};var c={updateInterval:6e4};t.CurrentTimeMarker.defaultProps=c},8929:function(e,t,n){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},r.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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.DateHeaderCell=void 0;var i=n(3899),a=n(499),l=n(3865);t.DateHeaderCell=i.forwardRef((function(e,t){var n=e.as,u=void 0===n?s.as:n,c=o(e,["as"]),d=i.useRef(null),p=i.useRef(null),f=(0,a.useInternationalization)(),h=i.useMemo((function(){return(0,l.classNames)("k-scheduler-cell k-heading-cell",e.className)}),[e.className]);return i.useImperativeHandle(p,(function(){return{element:d.current&&d.current.element?d.current.element:d.current,props:e}})),i.useImperativeHandle(t,(function(){return p.current})),i.createElement(u,r({ref:u!==s.as?void 0:d},c,{className:h}),i.createElement("span",{className:"k-link k-nav-day"},f.formatDate(e.date,e.format)))}));var s={as:i.forwardRef((function(e,t){e.as,e.format,e.start,e.end;var n=o(e,["as","format","start","end"]);return i.createElement("div",r({},n,{ref:t}))})),format:"d"};t.DateHeaderCell.defaultProps=s,t.DateHeaderCell.displayName="KendoReactSchedulerDateHeaderCell"},3540:function(e,t,n){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},r.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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.SchedulerForm=void 0;var i=n(3899),a=n(994),l=n(3865),s=n(2888),u=n(1448),c=n(8530),d=n(499),p=n(4693),f=n(7907),h=n(3364);t.SchedulerForm=i.forwardRef((function(e,t){var n=e.onCancel,v=e.onClose,g=e.onSubmit,y=e.editor,b=e.dialog,C=void 0===b?m.dialog:b,E=e.validator,w=void 0===E?m.validator:E,k=o(e,["onCancel","onClose","onSubmit","editor","dialog","validator"]),S=i.useRef(null);i.useImperativeHandle(S,(function(){return{props:e}})),i.useImperativeHandle(t,(function(){return S.current}));var O=(0,d.useLocalization)(),D=(0,f.useSchedulerFieldsContext)(),x=i.useMemo((function(){return O.toLanguageString(h.editorValidationRequired,h.messages[h.editorValidationRequired])}),[O]),I=i.useMemo((function(){return O.toLanguageString(h.editorValidationEnd,h.messages[h.editorValidationEnd])}),[O]),T=i.useMemo((function(){return O.toLanguageString(h.editorSave,h.messages[h.editorSave])}),[O]),_=i.useMemo((function(){return O.toLanguageString(h.editorCancel,h.messages[h.editorCancel])}),[O]),R=i.useMemo((function(){return O.toLanguageString(h.editorTitle,h.messages[h.editorTitle])}),[O]),M=i.useMemo((function(){return O.toLanguageString(h.editorValidationStart,h.messages[h.editorValidationStart])}),[O]),P=i.useCallback((function(e){n&&n.call(void 0,{value:null,syntheticEvent:e,target:S.current})}),[n]),N=i.useCallback((function(e){var t=e.syntheticEvent;v&&v.call(void 0,{value:null,syntheticEvent:t,target:S.current})}),[v]),F=i.useCallback((function(e,t){g&&g.call(void 0,{value:e,syntheticEvent:t,target:S.current})}),[g]),A=i.useCallback((function(e,t){return Boolean(e&&t(D.end)&&e.getTime()>t(D.end).getTime())?M:void 0}),[D,M]),j=i.useCallback((function(e,t){return Boolean(e&&t(D.start)&&e.getTime()<t(D.start).getTime())?I:void 0}),[D,I]),L=i.useCallback((function(e){return e?void 0:x}),[x]),V=i.useCallback((function(e,t){var n={};n[D.start]=[L(t(D.start)),A(t(D.start),t)].filter(Boolean).reduce((function(e,t){return e||t}),""),n[D.end]=[L(t(D.start)),j(t(D.start),t)].filter(Boolean).reduce((function(e,t){return e||t}),"");var o=w(e,t);return r(r({},n),o)}),[j,D.end,D.start,L,A,w]);return l.canUseDOM?a.createPortal(i.createElement(u.Form,r({initialValues:e.dataItem,onSubmit:F,validator:V,render:function(e){return i.createElement(C,{title:R,minWidth:600,onClose:N,className:"k-scheduler-edit-dialog"},i.createElement(p.SchedulerFormEditor,r({},e,{as:y})),i.createElement(c.DialogActionsBar,null,i.createElement(s.Button,{disabled:!e.allowSubmit,onClick:e.onSubmit},T),i.createElement(s.Button,{onClick:P},_)))}},k)),document&&document.body):null}));var m={dialog:c.Dialog,validator:function(){return{}}};t.SchedulerForm.defaultProps=m,t.SchedulerForm.displayName="KendoReactSchedulerForm"},6809:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SchedulerOccurrenceDialog=void 0;var r=n(3899),o=n(994),i=n(8530),a=n(499),l=n(3364),s=n(3865),u=n(2888);t.SchedulerOccurrenceDialog=r.forwardRef((function(e,t){var n=e.isRemove,c=e.onClose,d=e.onSeriesClick,p=e.onOccurrenceClick,f=r.useRef(null);r.useImperativeHandle(f,(function(){return{props:e}})),r.useImperativeHandle(t,(function(){return f.current}));var h=(0,a.useLocalization)(),m=function(e){return h.toLanguageString(e,l.messages[e])},v=m(l.editorOccurrence),g=m(l.editorSeries),y=m(l.editorRecurringConfirmation),b=m(l.editorRecurringDialogTitle),C=m(l.deleteOccurrence),E=m(l.deleteSeries),w=m(l.deleteRecurringDialogTitle),k=m(l.deleteRecurringConfirmation),S=n?w:b,O=n?k:y,D=n?C:v,x=n?E:g,I=r.useCallback((function(e){var t=e.syntheticEvent;c&&c.call(void 0,{syntheticEvent:t,value:null,target:f.current})}),[c]),T=r.useCallback((function(e){d&&d.call(void 0,{syntheticEvent:e,value:null,target:f.current})}),[d]),_=r.useCallback((function(e){p&&p.call(void 0,{syntheticEvent:e,value:null,target:f.current})}),[p]);return s.canUseDOM?o.createPortal(r.createElement(i.Dialog,{title:S,onClose:I},O,r.createElement(i.DialogActionsBar,null,r.createElement(u.Button,{onClick:_},D),r.createElement(u.Button,{onClick:T},x))),document&&document.body):null})),t.SchedulerOccurrenceDialog.displayName="KendoReactSchedulerSchedulerOccurrenceDialog"},7160:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SchedulerRemoveDialog=void 0;var r=n(3899),o=n(994),i=n(8530),a=n(499),l=n(3364),s=n(3865),u=n(2888);t.SchedulerRemoveDialog=r.forwardRef((function(e,t){var n=e.onClose,c=e.onCancel,d=e.onConfirm,p=r.useRef(null);r.useImperativeHandle(p,(function(){return{props:e}})),r.useImperativeHandle(t,(function(){return p.current}));var f=(0,a.useLocalization)(),h=f.toLanguageString(l.editorCancel,l.messages[l.editorCancel]),m=f.toLanguageString(l.editorDelete,l.messages[l.editorDelete]),v=f.toLanguageString(l.deleteConfirmation,l.messages[l.deleteConfirmation]),g=f.toLanguageString(l.deleteDialogTitle,l.messages[l.deleteDialogTitle]),y=r.useCallback((function(e){var t=e.syntheticEvent;if(n){var r={syntheticEvent:t,value:null,target:p.current};n.call(void 0,r)}}),[n]),b=r.useCallback((function(e){c&&c.call(void 0,{syntheticEvent:e,value:null})}),[c]),C=r.useCallback((function(e){d&&d.call(void 0,{syntheticEvent:e,value:null})}),[d]);return s.canUseDOM?o.createPortal(r.createElement(i.Dialog,{title:g,onClose:y},v,r.createElement(i.DialogActionsBar,null,r.createElement(u.Button,{onClick:b},h),r.createElement(u.Button,{onClick:C},m))),document&&document.body):null})),t.SchedulerRemoveDialog.displayName="KendoReactSchedulerRemoveDialog"},3104:function(e,t,n){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},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.ShowMoreItemsButton=void 0;var o=n(3899),i=n(2888);t.ShowMoreItemsButton=o.forwardRef((function(e,t){var n=o.useRef(null),a=o.useRef(null);o.useImperativeHandle(n,(function(){return r({element:a.current&&a.current.element},e)})),o.useImperativeHandle(t,(function(){return n.current}));var l=o.useCallback((function(t){e.onClick&&n.current&&e.onClick.call(void 0,{target:n.current,syntheticEvent:t})}),[n,e.slot,e.onClick]);return o.createElement(i.Button,{ref:a,tabIndex:-1,className:"k-more-events",onClick:l},o.createElement("span",{className:"k-icon k-i-more-horizontal"}))})),t.ShowMoreItemsButton.displayName="KendoReactSchedulerShowMoreItemsButton"},4603:function(e,t,n){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},r.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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.TimeHeaderCell=void 0;var i=n(3899),a=n(499),l=n(3865);t.TimeHeaderCell=i.forwardRef((function(e,t){var n=e.as,u=void 0===n?s.as:n,c=o(e,["as"]),d=i.useRef(null),p=i.useRef(null),f=(0,a.useInternationalization)(),h=i.useMemo((function(){return(0,l.classNames)("k-scheduler-cell k-heading-cell",e.className)}),[e.className]);return i.useImperativeHandle(p,(function(){return{element:d.current&&d.current.element?d.current.element:d.current,props:e}})),i.useImperativeHandle(t,(function(){return p.current})),i.createElement(u,r({ref:u!==s.as?void 0:d},c,{className:h}),f.formatDate(e.date,e.format))}));var s={as:i.forwardRef((function(e,t){e.as,e.format,e.start,e.end;var n=o(e,["as","format","start","end"]);return i.createElement("div",r({},n,{ref:t}))})),format:"t"};t.TimeHeaderCell.defaultProps=s,t.TimeHeaderCell.displayName="KendoReactSchedulerTimeHeaderCell"},6763:function(e,t,n){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},r.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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.SchedulerFooter=void 0;var i=n(3899),a=n(3865),l=n(2888);t.SchedulerFooter=i.forwardRef((function(e,t){e.className;var n=e.style,s=o(e,["className","style"]),u=i.useRef(null),c=i.useRef(null);i.useImperativeHandle(u,(function(){return{element:c.current,props:e}})),i.useImperativeHandle(t,(function(){return u.current}));var d=i.useMemo((function(){return(0,a.classNames)("k-scheduler-footer",e.className)}),[e.className]);return i.createElement(l.Toolbar,r({ref:function(e){e&&(c.current=e.element)},className:d,style:r({boxShadow:"none"},n)},s),e.children)}))},6198:function(e,t,n){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},r.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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.BusinessHours=void 0;var i=n(3899),a=n(2888),l=n(3865);t.BusinessHours=i.forwardRef((function(e,t){var n=e.className,s=o(e,["className"]),u=i.useRef(null);return i.useImperativeHandle(t,(function(){return{element:u.current,props:e}})),i.createElement(a.ToolbarItem,r({ref:function(e){e&&(u.current=e.element)},className:(0,l.classNames)("k-scheduler-navigation",n)},s),e.children)}))},352:function(e,t,n){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},r.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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.SchedulerHeader=void 0;var i=n(3899),a=n(3865),l=n(2888);t.SchedulerHeader=i.forwardRef((function(e,t){var n=e.className,s=o(e,["className"]),u=i.useRef(null),c=i.useRef(null);i.useImperativeHandle(c,(function(){return{element:u.current,props:e}})),i.useImperativeHandle(t,(function(){return c.current}));var d=i.useMemo((function(){return(0,a.classNames)("k-scheduler-toolbar",n)}),[n]);return i.createElement(l.Toolbar,r({id:e.id,ref:function(e){e&&(u.current=e.element)},className:d},s),e.children)})),t.SchedulerHeader.displayName="KendoReactSchedulerHeader"},7340:function(e,t,n){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},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.NavigationDatePicker=void 0;var o=n(3899),i=n(8138),a=n(499),l=n(4814),s=n(2888),u=n(6266),c=n(619),d=n(5538);t.NavigationDatePicker=o.forwardRef((function(e,t){var n=(0,u.useSchedulerPropsContext)().timezone,a=c.ZonedDate.fromLocalDate(e.value,n),l=(0,c.getDate)(a),s=o.useCallback((function(t){if(e.onChange){var o=c.ZonedDate.fromUTCDate((0,d.toUTCDateTime)(t.value),n);e.onChange.call(void 0,r(r({},t),{value:o}))}}),[e.onChange]);return o.createElement(i.DatePicker,r({ref:t,dateInput:p,pickerWrap:f,toggleButton:h,width:"auto"},e,{value:l,onChange:s}))}));var p=function(){return null},f=function(e){return o.createElement(o.Fragment,null,e.children)},h=function(e){var t=(0,a.useInternationalization)(),n=(0,u.useSchedulerDateFormatContext)(),i=n.dateFormat,c=n.shortDateFormat,d=(0,u.useSchedulerDateRangeContext)(),p=(0,u.useSchedulerDateContext)()[0],f=d.end.getTime()-d.start.getTime()>27*l.MS_PER_DAY,h=t.format(i,f?p:d.zonedStart,f?p:d.zonedEnd.addDays(-1)),m=t.format(c,f?p:d.zonedStart,f?p:d.zonedEnd.addDays(-1));return o.createElement(s.Button,r({},e,{className:"k-nav-current",tabIndex:-1,fillMode:"flat"}),o.createElement("span",{className:"k-sm-date-format"},m),o.createElement("span",{className:"k-lg-date-format"},h))};t.NavigationDatePicker.displayName="KendoReactSchedulerNavigationDatePicker"},4692:function(e,t,n){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},r.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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.SchedulerNavigation=void 0;var i=n(3899),a=n(2888),l=n(3865);t.SchedulerNavigation=i.forwardRef((function(e,t){var n=e.className,s=o(e,["className"]),u=i.useRef(null);return i.useImperativeHandle(t,(function(){return{element:u.current,props:e}})),i.createElement(a.ToolbarItem,r({ref:function(e){e&&(u.current=e.element)},className:(0,l.classNames)(n)},s),e.children)})),t.SchedulerNavigation.displayName="KendoReactSchedulerSchedulerNavigation"},2557:function(e,t,n){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},r.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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.SchedulerViewSelector=void 0;var i=n(3899),a=n(2888),l=n(3865);t.SchedulerViewSelector=i.forwardRef((function(e,t){var n=e.className,s=o(e,["className"]),u=i.useRef(null);return i.useImperativeHandle(t,(function(){return{element:u.current,props:e}})),i.createElement(a.ToolbarItem,r({ref:function(e){e&&(u.current=e.element)},className:(0,l.classNames)("k-scheduler-views",n)},s),e.children)})),t.SchedulerViewSelector.displayName="KendoReactSchedulerViewSelector"},1419:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ViewSelectorItem=void 0;var r=n(3899),o=n(2888),i=n(499),a=n(468);t.ViewSelectorItem=function(e){var t=(0,a.useSchedulerActiveViewContext)(),n=t[0],l=t[1],s=(0,i.useLocalization)(),u=r.useMemo((function(){return"function"==typeof e.view.title?e.view.title.call(void 0,s):e.view.title}),[e.view.title,s]),c=r.useCallback((function(){e.view.name&&l(e.view.name)}),[l,e.view.name]);return r.createElement(o.Button,{role:"button",type:"button",tabIndex:-1,togglable:!0,selected:e.view.name===n,onClick:c},u)}},7238:function(e,t,n){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},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.ViewSelectorList=void 0;var o=n(3899),i=n(468),a=n(7907),l=n(499),s=n(2888),u=n(3865),c=n(1419);t.ViewSelectorList=o.forwardRef((function(){var e=o.useRef(null),t=o.useState("desktop"),n=t[0],d=t[1],p=(0,i.useSchedulerViewsContext)(),f=(0,u.useWindow)(e),h=(0,a.useSchedulerActiveViewContext)(),m=h[0],v=h[1],g=p.find((function(e){return e.props.name===m})),y=(0,l.useLocalization)(),b=o.useCallback((function(e){v&&(e.syntheticEvent.preventDefault(),v(e.item.name))}),[v]),C=function(){d(f().matchMedia("(min-width: 1024px)").matches?"desktop":"mobile")};return o.useEffect((function(){C();var t=new(f().ResizeObserver)(C);return t.observe(e.current),function(){t.disconnect()}}),[]),o.createElement("div",{className:"k-scheduler-views-wrapper",ref:e},g&&"mobile"===n&&o.createElement(s.DropDownButton,{className:"k-views-dropdown",onItemClick:b,popupSettings:{popupClass:"k-scheduler-toolbar"},textField:"title",items:p.map((function(e){return r(r({},e.props),{selected:e.props.name===m,title:"function"==typeof e.props.title?e.props.title.call(void 0,y):e.props.title})})),text:o.createElement(o.Fragment,null,"function"==typeof g.props.title?g.props.title.call(void 0,y):g.props.title,o.createElement("span",{className:"k-icon k-i-arrow-60-down"}))}),"desktop"===n&&o.createElement(s.ButtonGroup,{className:"k-scheduler-views"},p.map((function(e){return o.createElement(c.ViewSelectorItem,{key:e.props.name,view:e.props})}))))})),t.ViewSelectorList.displayName="KendoReactSchedulerViewSelectorList"},4814:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_RANGE=t.MAX_DATE=t.MIN_DATE=t.DEFAULT_GROUP=t.VISIBILITY_HIDDEN_STYLES=t.DISPLAY_NONE_STYLES=t.DEFAULT_ID=t.OCCURRENCE_ID=t.EMPTY_RESOURCE=t.HOURS_IN_DAY_COUNT=t.WEEKS_COUNT=t.DAYS_IN_WEEK_COUNT=t.DEFAULT_EVENT_HEIGHT=t.BORDER_WIDTH=t.TIME_FORMAT=t.MS_PER_HOUR=t.MS_PER_MINUTE=t.MS_PER_SECOND=t.MIDNIGHT_INVARIANT=t.MS_PER_DAY=void 0;var r=n(619),o=n(619);Object.defineProperty(t,"MS_PER_DAY",{enumerable:!0,get:function(){return o.MS_PER_DAY}}),t.MIDNIGHT_INVARIANT=new Date(1980,0,1),t.MS_PER_SECOND=1e3,t.MS_PER_MINUTE=60*t.MS_PER_SECOND,t.MS_PER_HOUR=60*t.MS_PER_MINUTE,t.TIME_FORMAT="t",t.BORDER_WIDTH=1,t.DEFAULT_EVENT_HEIGHT=25,t.DAYS_IN_WEEK_COUNT=7,t.WEEKS_COUNT=6,t.HOURS_IN_DAY_COUNT=24,t.EMPTY_RESOURCE=[{}],t.OCCURRENCE_ID=0,t.DEFAULT_ID=void 0,t.DISPLAY_NONE_STYLES={display:"none"},t.VISIBILITY_HIDDEN_STYLES={visibility:"hidden"},t.DEFAULT_GROUP={index:0,resources:[]},t.MIN_DATE=new Date(1900,0,1),t.MAX_DATE=new Date(2099,11,31),t.DEFAULT_RANGE={index:0,start:t.MIN_DATE,end:t.MAX_DATE,zonedStart:r.ZonedDate.fromLocalDate(t.MIN_DATE),zonedEnd:r.ZonedDate.fromLocalDate(t.MAX_DATE)}},6266:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SchedulerContext=t.useSchedulerActiveViewContext=t.SchedulerActiveViewContext=t.useSchedulerDataContext=t.SchedulerDataContext=t.useSchedulerDateContext=t.SchedulerDateContext=t.useSchedulerOrientationContext=t.SchedulerOrientationContext=t.useSchedulerDateRangeContext=t.SchedulerDateRangeContext=t.useSchedulerGroupsContext=t.SchedulerGroupsContext=t.useSchedulerDateFormatContext=t.SchedulerDateFormatContext=t.useSchedulerFieldsContext=t.SchedulerFieldsContext=t.useSchedulerViewsContext=t.SchedulerViewsContext=t.useSchedulerPropsContext=t.SchedulerPropsContext=t.useSchedulerElementContext=t.SchedulerElementContext=void 0;var r=n(3899),o=n(5538),i=n(4814),a=n(619);t.SchedulerElementContext=r.createContext({current:null}),t.useSchedulerElementContext=function(){return r.useContext(t.SchedulerElementContext)},t.SchedulerElementContext.displayName="SchedulerElementContext",t.SchedulerPropsContext=r.createContext({}),t.useSchedulerPropsContext=function(){return r.useContext(t.SchedulerPropsContext)},t.SchedulerPropsContext.displayName="SchedulerPropsContext",t.SchedulerViewsContext=r.createContext([]),t.useSchedulerViewsContext=function(){return r.useContext(t.SchedulerViewsContext)},t.SchedulerViewsContext.displayName="SchedulerViewsContext",t.SchedulerFieldsContext=r.createContext(o.defaultModelFields),t.useSchedulerFieldsContext=function(){return r.useContext(t.SchedulerFieldsContext)},t.SchedulerFieldsContext.displayName="SchedulerFieldsContext",t.SchedulerDateFormatContext=r.createContext({dateFormat:"{0:D}",shortDateFormat:"{0:d}"}),t.useSchedulerDateFormatContext=function(){return r.useContext(t.SchedulerDateFormatContext)},t.SchedulerDateFormatContext.displayName="SchedulerDateFormatContext",t.SchedulerGroupsContext=r.createContext([i.DEFAULT_GROUP]),t.useSchedulerGroupsContext=function(){return r.useContext(t.SchedulerGroupsContext)},t.SchedulerGroupsContext.displayName="SchedulerGroupsContext",t.SchedulerDateRangeContext=r.createContext({start:new Date,end:new Date,zonedStart:a.ZonedDate.fromLocalDate(new Date),zonedEnd:a.ZonedDate.fromLocalDate(new Date)}),t.useSchedulerDateRangeContext=function(){return r.useContext(t.SchedulerDateRangeContext)},t.SchedulerDateRangeContext.displayName="SchedulerDateRangeContext",t.SchedulerOrientationContext=r.createContext(null),t.useSchedulerOrientationContext=function(){return r.useContext(t.SchedulerOrientationContext)},t.SchedulerOrientationContext.displayName="SchedulerOrientationContext",t.SchedulerDateContext=r.createContext([new Date,o.noop]),t.useSchedulerDateContext=function(){return r.useContext(t.SchedulerDateContext)},t.SchedulerDateContext.displayName="SchedulerDateContext",t.SchedulerDataContext=r.createContext([[],o.noop]),t.useSchedulerDataContext=function(){return r.useContext(t.SchedulerDataContext)},t.SchedulerDataContext.displayName="SchedulerDataContext",t.SchedulerActiveViewContext=r.createContext(["day",o.noop]),t.useSchedulerActiveViewContext=function(){return r.useContext(t.SchedulerActiveViewContext)},t.SchedulerActiveViewContext.displayName="SchedulerActiveViewContext",t.SchedulerContext=function(e){var n=e.children,o=e.element,i=e.props,a=e.views,l=e.fields,s=e.groups,u=e.dateRange,c=e.dateFormat,d=e.orientation,p=e.date,f=e.data,h=e.activeView;return r.createElement(t.SchedulerElementContext.Provider,{value:o},r.createElement(t.SchedulerPropsContext.Provider,{value:i},r.createElement(t.SchedulerViewsContext.Provider,{value:a},r.createElement(t.SchedulerFieldsContext.Provider,{value:l},r.createElement(t.SchedulerDateFormatContext.Provider,{value:c},r.createElement(t.SchedulerGroupsContext.Provider,{value:s},r.createElement(t.SchedulerDateRangeContext.Provider,{value:u},r.createElement(t.SchedulerOrientationContext.Provider,{value:d},r.createElement(t.SchedulerDateContext.Provider,{value:p},r.createElement(t.SchedulerDataContext.Provider,{value:f},r.createElement(t.SchedulerActiveViewContext.Provider,{value:h},n)))))))))))}},9210:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SchedulerEditItemContext=t.useSchedulerEditItemShowOccurrenceDialogContext=t.SchedulerEditItemShowOccurrenceDialogContext=t.useSchedulerEditItemShowRemoveDialogContext=t.SchedulerEditItemShowRemoveDialogContext=t.useSchedulerEditItemRemoveItemContext=t.SchedulerEditItemRemoveItemContext=t.useSchedulerEditItemResizeItemContext=t.SchedulerEditItemResizeItemContext=t.useSchedulerEditItemDragItemContext=t.SchedulerEditItemDragItemContext=t.useSchedulerEditItemFormItemContext=t.SchedulerEditItemFormItemContext=t.useSchedulerEditItemPropsContext=t.SchedulerEditItemPropsContext=void 0;var r=n(3899),o=n(3865);t.SchedulerEditItemPropsContext=r.createContext([null]),t.useSchedulerEditItemPropsContext=function(){return r.useContext(t.SchedulerEditItemPropsContext)},t.SchedulerEditItemPropsContext.displayName="SchedulerEditItemPropsContext",t.SchedulerEditItemFormItemContext=r.createContext([null,o.noop,o.noop]),t.useSchedulerEditItemFormItemContext=function(){return r.useContext(t.SchedulerEditItemFormItemContext)},t.SchedulerEditItemFormItemContext.displayName="SchedulerEditItemFormItemContext",t.SchedulerEditItemDragItemContext=r.createContext([null,o.noop,o.noop]),t.useSchedulerEditItemDragItemContext=function(){return r.useContext(t.SchedulerEditItemDragItemContext)},t.SchedulerEditItemDragItemContext.displayName="SchedulerEditItemDragItemContext",t.SchedulerEditItemResizeItemContext=r.createContext([null,o.noop,o.noop]),t.useSchedulerEditItemResizeItemContext=function(){return r.useContext(t.SchedulerEditItemResizeItemContext)},t.SchedulerEditItemResizeItemContext.displayName="SchedulerEditItemResizeItemContext",t.SchedulerEditItemRemoveItemContext=r.createContext([null,o.noop,o.noop]),t.useSchedulerEditItemRemoveItemContext=function(){return r.useContext(t.SchedulerEditItemRemoveItemContext)},t.SchedulerEditItemRemoveItemContext.displayName="SchedulerEditItemRemoveItemContext",t.SchedulerEditItemShowRemoveDialogContext=r.createContext([!1,o.noop,o.noop]),t.useSchedulerEditItemShowRemoveDialogContext=function(){return r.useContext(t.SchedulerEditItemShowRemoveDialogContext)},t.SchedulerEditItemShowRemoveDialogContext.displayName="SchedulerEditItemShowRemoveDialogContext",t.SchedulerEditItemShowOccurrenceDialogContext=r.createContext([!1,o.noop,o.noop]),t.useSchedulerEditItemShowOccurrenceDialogContext=function(){return r.useContext(t.SchedulerEditItemShowOccurrenceDialogContext)},t.SchedulerEditItemShowOccurrenceDialogContext.displayName="SchedulerEditItemShowOccurrenceDialogContext",t.SchedulerEditItemContext=function(e){var n=e.props,o=e.form,i=e.drag,a=e.resize,l=e.remove,s=e.showRemoveDialog,u=e.showOccurrenceDialog,c=e.children;return r.createElement(t.SchedulerEditItemPropsContext.Provider,{value:n},r.createElement(t.SchedulerEditItemFormItemContext.Provider,{value:o},r.createElement(t.SchedulerEditItemDragItemContext.Provider,{value:i},r.createElement(t.SchedulerEditItemResizeItemContext.Provider,{value:a},r.createElement(t.SchedulerEditItemRemoveItemContext.Provider,{value:l},r.createElement(t.SchedulerEditItemShowRemoveDialogContext.Provider,{value:s},r.createElement(t.SchedulerEditItemShowOccurrenceDialogContext.Provider,{value:u},c)))))))}},2577:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SchedulerEditSlotContext=t.useSchedulerEditSlotFormItemContext=t.SchedulerEditSlotFormItemContext=t.useSchedulerEditSlotPropsContext=t.SchedulerEditSlotPropsContext=void 0;var r=n(3899);t.SchedulerEditSlotPropsContext=r.createContext([null]),t.useSchedulerEditSlotPropsContext=function(){return r.useContext(t.SchedulerEditSlotPropsContext)},t.SchedulerEditSlotPropsContext.displayName="SchedulerEditSlotPropsContext",t.SchedulerEditSlotFormItemContext=r.createContext([null]),t.useSchedulerEditSlotFormItemContext=function(){return r.useContext(t.SchedulerEditSlotFormItemContext)},t.SchedulerEditSlotFormItemContext.displayName="SchedulerEditSlotFormItemContext",t.SchedulerEditSlotContext=function(e){var n=e.props,o=e.form,i=e.children;return r.createElement(t.SchedulerEditSlotPropsContext.Provider,{value:n},r.createElement(t.SchedulerEditSlotFormItemContext.Provider,{value:o},i))}},8123:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SchedulerEditTaskContext=t.useSchedulerEditTaskShowOccurrenceDialogContext=t.SchedulerEditTaskShowOccurrenceDialogContext=t.useSchedulerEditTaskShowRemoveDialogContext=t.SchedulerEditTaskShowRemoveDialogContext=t.useSchedulerEditTaskRemoveItemContext=t.SchedulerEditTaskRemoveItemContext=void 0;var r=n(3899);t.SchedulerEditTaskRemoveItemContext=r.createContext([null]),t.useSchedulerEditTaskRemoveItemContext=function(){return r.useContext(t.SchedulerEditTaskRemoveItemContext)},t.SchedulerEditTaskShowRemoveDialogContext=r.createContext([!1]),t.useSchedulerEditTaskShowRemoveDialogContext=function(){return r.useContext(t.SchedulerEditTaskShowRemoveDialogContext)},t.SchedulerEditTaskShowOccurrenceDialogContext=r.createContext([!1]),t.useSchedulerEditTaskShowOccurrenceDialogContext=function(){return r.useContext(t.SchedulerEditTaskShowOccurrenceDialogContext)},t.SchedulerEditTaskContext=function(e){return r.createElement(t.SchedulerEditTaskRemoveItemContext.Provider,{value:e.remove},r.createElement(t.SchedulerEditTaskShowRemoveDialogContext.Provider,{value:e.showRemoveDialog},r.createElement(t.SchedulerEditTaskShowOccurrenceDialogContext.Provider,{value:e.showOccurrenceDialog},e.children)))}},7091:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useSchedulerResourceIteratorContext=t.SchedulerResourceIteratorContext=void 0;var r=n(3899);t.SchedulerResourceIteratorContext=r.createContext({resource:{},groupIndex:0}),t.useSchedulerResourceIteratorContext=function(){return r.useContext(t.SchedulerResourceIteratorContext)}},8744:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SchedulerViewContext=t.useSchedulerViewFocusedSlotsContext=t.SchedulerViewFocusedSlotsContext=t.useSchedulerViewFocusedItemsContext=t.SchedulerViewFocusedItemsContext=t.useSchedulerViewSelectedItemsContext=t.SchedulerViewSelectedItemsContext=t.useSchedulerViewSelectedSlotsContext=t.SchedulerViewSelectedSlotsContext=t.useSchedulerViewItemsContext=t.SchedulerViewItemsContext=t.useSchedulerViewSlotsContext=t.SchedulerViewSlotsContext=t.useSchedulerViewRangesContext=t.SchedulerViewRangesContext=t.useSchedulerViewPropsContext=t.SchedulerViewPropsContext=void 0;var r=n(3899),o=n(5538);t.SchedulerViewPropsContext=r.createContext({}),t.useSchedulerViewPropsContext=function(){return r.useContext(t.SchedulerViewPropsContext)},t.SchedulerViewPropsContext.displayName="SchedulerViewPropsContext",t.SchedulerViewRangesContext=r.createContext([]),t.useSchedulerViewRangesContext=function(){return r.useContext(t.SchedulerViewRangesContext)},t.SchedulerViewRangesContext.displayName="SchedulerViewRangesContext",t.SchedulerViewSlotsContext=r.createContext([[],o.noop]),t.useSchedulerViewSlotsContext=function(){return r.useContext(t.SchedulerViewSlotsContext)},t.SchedulerViewSlotsContext.displayName="SchedulerViewSlotsContext",t.SchedulerViewItemsContext=r.createContext([[],o.noop]),t.useSchedulerViewItemsContext=function(){return r.useContext(t.SchedulerViewItemsContext)},t.SchedulerViewItemsContext.displayName="SchedulerViewItemsContext",t.SchedulerViewSelectedSlotsContext=r.createContext([[],o.noop]),t.useSchedulerViewSelectedSlotsContext=function(){return r.useContext(t.SchedulerViewSelectedSlotsContext)},t.SchedulerViewSelectedSlotsContext.displayName="SchedulerViewSelectedSlotsContext",t.SchedulerViewSelectedItemsContext=r.createContext([[],o.noop]),t.useSchedulerViewSelectedItemsContext=function(){return r.useContext(t.SchedulerViewSelectedItemsContext)},t.SchedulerViewSelectedItemsContext.displayName="SchedulerViewSelectedItemsContext",t.SchedulerViewFocusedItemsContext=r.createContext([[],o.noop]),t.useSchedulerViewFocusedItemsContext=function(){return r.useContext(t.SchedulerViewFocusedItemsContext)},t.SchedulerViewFocusedItemsContext.displayName="SchedulerViewFocusedItemsContext",t.SchedulerViewFocusedSlotsContext=r.createContext([[],o.noop]),t.useSchedulerViewFocusedSlotsContext=function(){return r.useContext(t.SchedulerViewFocusedSlotsContext)},t.SchedulerViewFocusedSlotsContext.displayName="SchedulerViewFocusedSlotsContext",t.SchedulerViewContext=function(e){var n=e.children,o=e.props,i=e.ranges,a=e.slots,l=e.items,s=e.selectedSlots,u=e.selectedItems,c=e.focusedItems,d=e.focusedSlots;return r.createElement(t.SchedulerViewPropsContext.Provider,{value:o},r.createElement(t.SchedulerViewRangesContext.Provider,{value:i},r.createElement(t.SchedulerViewSlotsContext.Provider,{value:a},r.createElement(t.SchedulerViewItemsContext.Provider,{value:l},r.createElement(t.SchedulerViewSelectedSlotsContext.Provider,{value:s},r.createElement(t.SchedulerViewSelectedItemsContext.Provider,{value:u},r.createElement(t.SchedulerViewFocusedItemsContext.Provider,{value:c},r.createElement(t.SchedulerViewFocusedSlotsContext.Provider,{value:d},n))))))))}},7907:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(6266),t),o(n(9210),t),o(n(2577),t),o(n(8123),t),o(n(8744),t)},9249:function(e,t,n){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},r.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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.FilterableComboBox=void 0;var i=n(3899),a=n(9218),l=n(865);t.FilterableComboBox=function(e){var t=e.onChange,n=e.data,s=(e.validationMessage,e.visited,e.touched,e.modified,o(e,["onChange","data","validationMessage","visited","touched","modified"])),u=i.useState(n),c=u[0],d=u[1],p=i.useCallback((function(e){return t(e)}),[t]),f=i.useCallback((function(e){var t=(0,a.filterBy)(n||[],e.filter);d(t)}),[]);return i.createElement(l.ComboBox,r({style:{width:"100%"},data:c,filterable:!0,onFilterChange:f,onChange:p},s))}},7976:function(e,t,n){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},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.ResourceEditor=void 0;var o=n(3899),i=n(865),a=n(5538);t.ResourceEditor=function(e){var t=e.multiple?i.MultiSelect:i.DropDownList,n=o.useCallback((function(t){var n=t.target.props.dataItemKey,r=e.multiple?(t.target.value||[]).map((function(e){return e[n]})):t.target.value[n];e.onChange.call(void 0,{value:r})}),[e.multiple,e.onChange]),l=o.useCallback((function(t,n){var i=o.createElement(o.Fragment,null,e.colorField&&o.createElement("span",{key:1,className:"k-scheduler-mark",style:{backgroundColor:n.dataItem[e.colorField],marginRight:(0,a.isPresent)(n.dataItem[e.valueField])?"8px":"4px"}}," "),o.createElement("span",{key:2},"  ",t.props.children));return o.cloneElement(t,r({},t.props),i)}),[e.colorField,e.valueField]),s=o.useCallback((function(t,n){var r=o.createElement(o.Fragment,null,e.colorField&&n&&o.createElement("span",{key:1,className:"k-scheduler-mark",style:{backgroundColor:n[e.colorField],marginRight:n[e.valueField]?"8px":"4px"}}," "),t.props.children);return o.cloneElement(t,{},r)}),[e.colorField,e.valueField]),u=Array.isArray(e.value)?e.data.filter((function(t){return e.value.some((function(n){return t[e.valueField]===n}))})):e.data.find((function(t){return t[e.valueField]===e.value}));return o.createElement(t,{value:u,onChange:n,data:e.data,textField:e.textField,dataItemKey:e.valueField,valid:e.valid,validationMessage:e.validationMessage,itemRender:l,valueRender:s})}},4693:function(e,t,n){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},r.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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.SchedulerFormEditor=void 0;var i=n(3899),a=n(619),l=n(884),s=n(499),u=n(1448),c=n(3390),d=n(8138),p=n(3364),f=n(7907),h=n(9249),m=n(3865),v=n(245),g=n(7976),y=n(5476);t.SchedulerFormEditor=i.forwardRef((function(e,t){var n=i.useRef(null),c=i.useRef(null),h=(0,a.timezoneNames)(),v=(0,s.useLocalization)(),g=(0,f.useSchedulerFieldsContext)(),y=(0,f.useSchedulerPropsContext)(),C=y.resources,E=y.timezone;i.useImperativeHandle(c,(function(){return{element:n.current&&n.current.element?n.current.element:n.current,props:e}})),i.useImperativeHandle(t,(function(){return c.current}));var w=e.as,k=void 0===w?b.as:w,S=o(e,["as"]),O=e.titleLabel,D=void 0===O?b.titleLabel:O,x=e.titleError,I=void 0===x?b.titleError:x,T=e.titleEditor,_=void 0===T?b.titleEditor:T,R=e.startLabel,M=void 0===R?b.startLabel:R,P=e.startError,N=void 0===P?b.startError:P,F=e.startEditor,A=void 0===F?b.startEditor:F,j=e.startTimezoneLabel,L=void 0===j?b.startTimezoneLabel:j,V=e.startTimezoneError,z=void 0===V?b.startTimezoneError:V,B=e.startTimezoneEditor,H=void 0===B?b.startTimezoneEditor:B,U=e.startTimezoneCheckedLabel,W=void 0===U?b.startTimezoneCheckedLabel:U,K=e.startTimezoneCheckedEditor,q=void 0===K?b.startTimezoneCheckedEditor:K,Y=e.endLabel,G=void 0===Y?b.endLabel:Y,Z=e.endError,X=void 0===Z?b.endError:Z,$=e.endEditor,Q=void 0===$?b.endEditor:$,J=e.endTimezoneLabel,ee=void 0===J?b.endTimezoneLabel:J,te=e.endTimezoneError,ne=void 0===te?b.endTimezoneError:te,re=e.endTimezoneEditor,oe=void 0===re?b.endTimezoneEditor:re,ie=e.endTimezoneCheckedLabel,ae=void 0===ie?b.endTimezoneCheckedLabel:ie,le=e.endTimezoneCheckedEditor,se=void 0===le?b.endTimezoneCheckedEditor:le,ue=e.allDayLabel,ce=void 0===ue?b.allDayLabel:ue,de=e.allDayEditor,pe=void 0===de?b.allDayEditor:de,fe=e.recurrenceEditor,he=void 0===fe?b.recurrenceEditor:fe,me=e.descriptionLabel,ve=void 0===me?b.descriptionLabel:me,ge=e.descriptionEditor,ye=void 0===ge?b.descriptionEditor:ge,be=e.descriptionError,Ce=void 0===be?b.descriptionError:be,Ee=e.resourceLabel,we=void 0===Ee?b.resourceLabel:Ee,ke=e.resourceEditor,Se=void 0===ke?b.resourceEditor:ke,Oe=e.valueGetter(g.start)||new Date,De=e.valueGetter(g.startTimezone)||E||"",xe=e.valueGetter(g.endTimezone)||E||"",Ie=i.useMemo((function(){return v.toLanguageString(p.editorValidationRequired,p.messages[p.editorValidationRequired])}),[v]),Te=i.useState(Boolean(e.valueGetter(g.startTimezone))),_e=Te[0],Re=Te[1],Me=i.useState(Boolean(e.valueGetter(g.endTimezone))),Pe=Me[0],Ne=Me[1],Fe=i.useCallback((function(t){t.value||(e.onChange(g.startTimezone,{value:null}),e.onChange(g.endTimezone,{value:null}),Ne(t.value)),Re(t.value)}),[e.onChange,g.startTimezone,g.endTimezone]),Ae=i.useCallback((function(t){t.value||e.onChange(g.endTimezone,{value:null}),Ne(t.value)}),[e.onChange]),je=i.useCallback((function(e){return e?void 0:Ie}),[Ie]),Le=i.useCallback((function(e,t){return _e?je(t(g.startTimezone)):void 0}),[je,_e,g.startTimezone]),Ve=i.useCallback((function(e,t){return _e&&Pe?je(t(g.endTimezone))||je(t(g.startTimezone)):void 0}),[je,_e,Pe,g.startTimezone,g.endTimezone]),ze=i.useMemo((function(){return(0,m.classNames)("k-scheduler-edit-form",e.className)}),[e.className]);return i.createElement(k,r({ref:k===b.as?n:void 0},S,{className:ze}),i.createElement(i.Fragment,null,i.createElement("div",{className:"k-form-field"},i.createElement(u.Field,{name:g.title,component:D,editorId:"k-scheduler-editor-title"},v.toLanguageString(p.editorEventTitle,p.messages[p.editorEventTitle])),i.createElement("div",{className:"k-form-field-wrap"},i.createElement(u.Field,{id:"k-scheduler-editor-title",name:g.title,field:g.title,component:_}),e.errors[g.title]&&i.createElement(u.Field,{name:g.title,component:I},e.errors[g.title]))),i.createElement("div",{className:"k-form-field"},i.createElement(u.Field,{name:g.start,component:M,editorId:"k-scheduler-editor-start"},v.toLanguageString(p.editorEventStart,p.messages[p.editorEventStart])),i.createElement("div",{className:"k-form-field-wrap",style:{display:"flex"}},i.createElement("div",null,i.createElement(u.Field,{id:"k-scheduler-editor-start",name:g.start,width:"auto",component:A,as:e.valueGetter(g.isAllDay)?d.DatePicker:d.DateTimePicker,timezone:E}),e.errors[g.start]&&i.createElement(u.Field,{name:g.start,component:N},e.errors[g.start]))," ",i.createElement("div",null,i.createElement(q,{id:"k-scheduler-editor-set-start-timezone",onChange:Fe,value:_e})," ",i.createElement(W,{className:"k-checkbox-label",editorId:"k-scheduler-editor-set-start-timezone",style:{display:"inline-flex"}},v.toLanguageString(p.editorEventTimeZone,p.messages[p.editorEventTimeZone]))))),_e&&i.createElement("div",{className:"k-form-field"},i.createElement(u.Field,{name:g.start,component:L},v.toLanguageString(p.editorEventStartTimeZone,p.messages[p.editorEventStartTimeZone])),i.createElement("div",{className:"k-form-field-wrap"},i.createElement(u.Field,{component:H,value:De,validator:Le,data:h,name:g.startTimezone}),e.errors[g.startTimezone]&&i.createElement(u.Field,{name:g.startTimezone,component:z},e.errors[g.startTimezone]))),i.createElement("div",{className:"k-form-field"},i.createElement(u.Field,{name:g.end,component:G,editorId:"k-scheduler-editor-end"},v.toLanguageString(p.editorEventEnd,p.messages[p.editorEventEnd])),i.createElement("div",{className:"k-form-field-wrap",style:{display:"flex"}},i.createElement("div",null,i.createElement(u.Field,{id:"k-scheduler-editor-end",name:g.end,width:"auto",component:Q,as:e.valueGetter(g.isAllDay)?d.DatePicker:d.DateTimePicker,timezone:E}),e.errors[g.end]&&i.createElement(u.Field,{name:g.end,component:X},e.errors[g.end]))," ",i.createElement("div",null,_e&&i.createElement(i.Fragment,null,i.createElement(se,{id:"k-scheduler-editor-set-end-timezone",onChange:Ae,value:Pe})," ",i.createElement(ae,{className:"k-checkbox-label",editorId:"k-scheduler-editor-set-end-timezone",style:{display:"inline-flex"}},v.toLanguageString(p.editorEventSeparateTimeZones,p.messages[p.editorEventSeparateTimeZones])))))),Pe&&i.createElement("div",{className:"k-form-field"},i.createElement(u.Field,{name:g.endTimezone,component:ee},v.toLanguageString(p.editorEventEndTimeZone,p.messages[p.editorEventEndTimeZone])),i.createElement("div",{className:"k-form-field-wrap"},i.createElement(u.Field,{value:xe,data:h,validator:Ve,component:oe,name:g.endTimezone}),e.errors[g.endTimezone]&&i.createElement(u.Field,{name:g.endTimezone,component:ne},e.errors[g.endTimezone]))),i.createElement("div",{className:"k-form-field"},i.createElement(u.Field,{name:g.isAllDay,component:l.Label}),i.createElement("div",{className:"k-form-field-wrap"},i.createElement(u.Field,{id:"k-is-allday-checkbox",name:g.isAllDay,component:pe})," ",i.createElement(u.Field,{name:g.isAllDay,field:g.isAllDay,editorId:"k-is-allday-checkbox",className:"k-checkbox-label",component:ce},v.toLanguageString(p.editorEventAllDay,p.messages[p.editorEventAllDay])))),i.createElement(u.Field,{component:he,field:g.recurrenceRule,name:g.recurrenceRule,start:Oe}),i.createElement("div",{className:"k-form-field"},i.createElement(u.Field,{name:g.description,component:ve},v.toLanguageString(p.editorEventDescription,p.messages[p.editorEventDescription])),i.createElement("div",{className:"k-form-field-wrap"},i.createElement(u.Field,{component:ye,name:g.description,rows:1,id:"k-event-description",style:{width:"100%"}}),e.errors[g.description]&&i.createElement(u.Field,{name:g.description,component:Ce},e.errors[g.description]))),(C||[]).map((function(e){return i.createElement("div",{key:e.field},i.createElement("div",{className:"k-form-field"},i.createElement(u.Field,{name:e.field,component:we}),i.createElement(l.Label,null,e.name),i.createElement(u.Field,{name:e.field,component:Se,resource:e,multiple:e.multiple,data:e.data,textField:e.textField,valueField:e.valueField,colorField:e.colorField})))}))))}));var b={as:i.forwardRef((function(e,t){return i.createElement(u.FormElement,{ref:t,id:e.id,style:e.style,tabIndex:e.tabIndex,className:e.className,horizontal:e.horizontal,children:e.children})})),titleLabel:l.Label,titleError:l.Error,titleEditor:c.Input,startLabel:l.Label,startError:l.Error,startEditor:y.ZonedDateTime,startTimezoneLabel:l.Label,startTimezoneError:l.Error,startTimezoneEditor:h.FilterableComboBox,startTimezoneCheckedLabel:l.Label,startTimezoneCheckedEditor:c.Checkbox,endLabel:l.Label,endError:l.Error,endEditor:y.ZonedDateTime,endTimezoneLabel:l.Label,endTimezoneError:l.Error,endTimezoneEditor:h.FilterableComboBox,endTimezoneCheckedLabel:l.Label,endTimezoneCheckedEditor:c.Checkbox,allDayLabel:l.Label,allDayEditor:c.Checkbox,recurrenceEditor:v.RecurrenceEditor,descriptionLabel:l.Label,descriptionEditor:c.TextArea,descriptionError:l.Error,resourceLabel:l.Label,resourceEditor:g.ResourceEditor};t.SchedulerFormEditor.displayName="KendoReactSchedulerFormEditor",t.SchedulerFormEditor.defaultProps=b},5476:function(e,t,n){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},r.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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.ZonedDateTime=void 0;var i=n(3899),a=n(8138),l=n(619),s=n(6266);t.ZonedDateTime=function(e){var t=e.as,n=void 0===t?d.as:t,a=o(e,["as"]),l=(0,s.useSchedulerPropsContext)().timezone;return i.createElement(n,r({},a,{value:u(a.value,l),onChange:function(e){a.onChange&&a.onChange({value:c(e.target.value,l)})}}))};var u=function(e,t){return e?(0,l.toLocalDate)(l.ZonedDate.fromLocalDate(e,t).toUTCDate()):e},c=function(e,t){return e?l.ZonedDate.fromUTCDate(new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())),t).toLocalDate():e},d={as:a.DateTimePicker}},8586:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(2238),t),o(n(780),t),o(n(3475),t),o(n(1534),t),o(n(8644),t),o(n(9314),t),o(n(6548),t),o(n(7438),t),o(n(100),t),o(n(9027),t)},100:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useItemsFocus=t.ITEMS_FOCUS_ACTION=void 0;var r,o=n(5538);!function(e){e.next="ITEMS_FOCUS_NEXT",e.prev="ITEMS_FOCUS_PREV"}(r=t.ITEMS_FOCUS_ACTION||(t.ITEMS_FOCUS_ACTION={})),t.useItemsFocus=function(e){return[[],function(t,n){switch(t.type){case r.next:if(!t.item||!t.item.current||!e)return;(i=(0,o.findNextItem)(t.item,e,t.ignoreIsAllDay,!1))&&i.current&&i.current.element&&(n.preventDefault(),i.current.element.focus());break;case r.prev:if(!t.item||!t.item.current||!e)return;var i;(i=(0,o.findNextItem)(t.item,e,t.ignoreIsAllDay,!0))&&i.current&&i.current.element&&(n.preventDefault(),i.current.element.focus())}}]}},1365:function(e,t,n){var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.useItemsSelection=t.ITEMS_SELECT_ACTION=void 0;var o,i=n(3899),a=n(5538);!function(e){e.select="ITEMS_SELECT_SELECT",e.selectNext="ITEMS_SELECT_SELECT_NEXT",e.selectPrev="ITEMS_SELECT_SELECT_PREV",e.reset="ITEMS_SELECT_RESET",e.add="ITEMS_SELECT_ADD",e.remove="ITEMS_SELECT_REMOVE"}(o=t.ITEMS_SELECT_ACTION||(t.ITEMS_SELECT_ACTION={})),t.useItemsSelection=function(e){var t=i.useState([]),n=t[0],l=t[1],s=i.useCallback((function(t,i){switch(t.type){case o.select:if(!t.item)return;l([t.item]);break;case o.selectNext:if(!t.item||!t.item.current||!e)return;(s=(0,a.findNextItem)(t.item,e,t.ignoreIsAllDay,!1))&&(i.preventDefault(),l([s]));break;case o.selectPrev:if(!t.item||!t.item.current||!e)return;var s;(s=(0,a.findNextItem)(t.item,e,t.ignoreIsAllDay,!0))&&(i.preventDefault(),l([s]));break;case o.reset:l([]);break;case o.add:if(!t.item)return;n.some((function(e){return e===t.item}))||l(r(r([],n,!0),[t.item],!1));break;case o.remove:if(!t.item)return;l(r([],n.filter((function(e){return e!==t.item})),!0))}}),[e,n]);return[n,s]}},9027:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.findDownSlot=t.findRightSlot=t.findLeftSlot=t.findUpSlot=t.useSlotsFocus=t.SLOTS_FOCUS_ACTION=void 0,function(e){e.up="SLOT_FOCUS_UP",e.down="SLOT_FOCUS_DOWN",e.left="SLOT_FOCUS_LEFT",e.right="SLOT_FOCUS_RIGHT"}(n=t.SLOTS_FOCUS_ACTION||(t.SLOTS_FOCUS_ACTION={})),t.useSlotsFocus=function(e){return[[],function(r,o){switch(r.type){case n.up:if(!r.slot.current||!e)return;(i=(0,t.findUpSlot)(r.slot,e))&&i.current&&i.current.element&&(o.preventDefault(),i.current.element.focus());break;case n.down:if(!r.slot||!e)return;(i=(0,t.findDownSlot)(r.slot,e))&&i.current&&i.current.element&&(o.preventDefault(),i.current.element.focus());break;case n.left:if(!r.slot||!e)return;(i=(0,t.findLeftSlot)(r.slot,e))&&i.current&&i.current.element&&(o.preventDefault(),i.current.element.focus());break;case n.right:if(!r.slot||!e)return;var i;(i=(0,t.findRightSlot)(r.slot,e))&&i.current&&i.current.element&&(o.preventDefault(),i.current.element.focus())}}]},t.findUpSlot=function(e,t){return t.find((function(t){return null!==t.current&&null!==e.current&&t.current.props.row===e.current.props.row-1&&t.current.props.col===e.current.props.col}))},t.findLeftSlot=function(e,t){return t.find((function(t){return null!==t.current&&null!==e.current&&t.current.props.row===e.current.props.row&&t.current.props.col===e.current.props.col-1}))},t.findRightSlot=function(e,t){return t.find((function(t){return null!==t.current&&null!==e.current&&t.current.props.row===e.current.props.row&&t.current.props.col===e.current.props.col+1}))},t.findDownSlot=function(e,t){return t.find((function(t){return null!==t.current&&null!==e.current&&t.current.props.row===e.current.props.row+1&&t.current.props.col===e.current.props.col}))}},2334:function(e,t,n){var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.useSlotsSelection=t.SLOTS_SELECT_ACTION=void 0;var o,i=n(3899);!function(e){e.select="SLOTS_SELECT_SELECT",e.reset="SLOTS_SELECT_RESET",e.add="SLOTS_SELECT_ADD"}(o=t.SLOTS_SELECT_ACTION||(t.SLOTS_SELECT_ACTION={})),t.useSlotsSelection=function(e){var t=i.useState([]),n=t[0],a=t[1],l=i.useCallback((function(e){switch(e.type){case o.select:if(!e.slot)return;a([e.slot]);break;case o.reset:a([]);break;case o.add:if(!e.slot)return;n.some((function(t){return t===e.slot}))||a(r(r([],n,!0),[e.slot],!1))}}),[n]);return[n,l]}},1534:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useAsyncMouseEnterLeave=void 0;var r=n(3899);t.useAsyncMouseEnterLeave=function(e){var t=e.handleMouseEnter,n=e.handleMouseLeave,o=r.useRef(0).current;return{onMouseEnter:function(e){clearTimeout(o),t(e)},onMouseLeave:function(e){var t;t=function(){return n(e)},clearTimeout(o),o=window.setTimeout((function(){return t()}))}}}},780:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useCellSync=void 0;var r=n(3899),o=n(3152),i=n(3152);t.useCellSync=function(e,t){var n=e.element;r.useLayoutEffect((function(){if(n&&n.current){var t=[],r=[],a=[],l=n.current.querySelectorAll(e.selector);l.forEach((function(n){var l=n.getBoundingClientRect().width,s=e.explicitDepth&&void 0!==e.attribute?n.getAttribute(e.attribute):0,u=(0,o.getPadding)(n,!0),c=(0,i.getBorders)(n,!0);null!==s&&((!a[s]||c>a[s])&&(a[s]=c),(!r[s]||u>r[s])&&(r[s]=u),(!t[s]||l>t[s])&&(t[s]=l))})),l.forEach((function(n){var o=e.explicitDepth?n.getAttribute(e.attribute):0;null!==o&&(n.style.minWidth="".concat(t[o]-r[o]-a[o],"px"))}))}}),t)}},1995:function(e,t,n){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},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.useControlledState=void 0;var o=n(3899);t.useControlledState=function(e,t,n){var i=o.useState(t||e),a=i[0],l=i[1];return[void 0!==t?t:a,o.useCallback((function(e,t){l(e),n&&n.call(void 0,r(r({},t),{value:e}))}),[n,l])]}},8644:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useEditable=void 0;var r=n(3899),o=n(6266);t.useEditable=function(e){var t=r.useContext(o.SchedulerPropsContext),n=void 0!==e?e:t.editable||!1,i=!0===n||void 0!==n&&!1!==n&&!0===n.edit,a=!0===n||void 0!==n&&!1!==n&&!0===n.resize,l=!0===n||void 0!==n&&!1!==n&&!0===n.remove,s=!0===n||void 0!==n&&!1!==n&&!0===n.drag;return{add:!0===n||void 0!==n&&!1!==n&&!0===n.add,edit:i,drag:s,remove:l,resize:a,select:!0===n||void 0!==n&&!1!==n&&!0===n.select}}},2238:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.usePropOrState=void 0;var r=n(3899),o=n(3865);t.usePropOrState=function(e,t){var n=r.useState(t),i=n[0],a=n[1];return void 0!==e?[e,o.noop]:[i,a]}},3475:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useRowSync=void 0;var r=n(3899),o=n(3152),i=n(4814);t.useRowSync=function(e,t){var n=e.element;r.useEffect((function(){if(n&&n.current){var t=[[]];Array.from(n.current.querySelectorAll(e.selector)).filter((function(t){return!t.classList.contains((n=e.applyTo,n.slice(1,n.length)));var n})).forEach((function(n){var r=n.clientHeight,o=n.getAttribute(e.horizontalAttribute),a=n.getAttribute(e.verticalAttribute);null!==o&&null!==a&&(t[o]||(t[o]=[]),(!t[o][a]||r>t[o][a])&&(t[o][a]=r-i.BORDER_WIDTH))})),Array.from(n.current.querySelectorAll(e.applyTo)).forEach((function(n){var r=n.getAttribute(e.horizontalAttribute),i=n.getAttribute(e.verticalAttribute);if(null!==r&&null!==i){var a=(0,o.getPadding)(n),l=t[r][i]-a;(0,o.setRect)(n,{height:l},!0)}}))}}),t)}},7438:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useSchedulerItem=void 0;var r=n(3899),o=n(7907),i=n(3865);t.useSchedulerItem=function(e,t){var n=e._ref,a=e.itemRef,l=r.useRef(null),s=r.useRef(null),u=(0,o.useSchedulerViewItemsContext)()[1];return r.useImperativeHandle(l,(function(){return{element:s.current,props:e}})),r.useImperativeHandle(t,(function(){return l.current})),r.useImperativeHandle(n,(function(){return l.current})),r.useImperativeHandle(a,(function(){return l.current})),r.useLayoutEffect((function(){return u({type:i.COLLECTION_ACTION.add,item:l}),function(){u({type:i.COLLECTION_ACTION.remove,item:l})}})),{item:l,element:s}}},9530:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useSchedulerSlot=void 0;var r=n(3899),o=n(7907),i=n(3865);t.useSchedulerSlot=function(e,t){var n=e._ref,a=r.useRef(null),l=r.useRef(null),s=(0,o.useSchedulerViewSlotsContext)()[1];return r.useImperativeHandle(a,(function(){return{element:l.current,props:e}})),r.useImperativeHandle(t,(function(){return a.current})),r.useImperativeHandle(n,(function(){return a.current})),r.useEffect((function(){return s({type:i.COLLECTION_ACTION.add,item:a}),function(){s({type:i.COLLECTION_ACTION.remove,item:a})}})),{slot:a,element:l}}},9314:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useSlotExpand=void 0;var r=n(3899),o=n(3152),i=n(4814),a=n(7907);t.useSlotExpand=function(e,t){var n=r.useRef(),l=r.useRef(0),s=(0,a.useSchedulerElementContext)(),u=r.useCallback((function(){if(t&&e.current){var n=e.current.element,r=e.current.props;if(n){var a=(0,o.getPadding)(n),s=0,u=r.items.filter((function(e){return e._ref.current}));u.forEach((function(e){if(e._ref.current){var t=(0,o.getRect)(e._ref.current.element).height;s+=t}}));var c=u.length*i.BORDER_WIDTH*2+s-(a||0)+("object"==typeof t&&t.offsetTop?t.offsetTop:0)+("object"==typeof t&&t.offsetBottom?t.offsetBottom:0);u.length?c>l.current-a&&(0,o.setRect)(n,{height:c},!0):n&&(n.style.minHeight="")}}}),[t,e]),c=r.useCallback((function(){void 0!==n.current&&window.cancelAnimationFrame(n.current),n.current=window.requestAnimationFrame((function(){u()}))}),[u]);r.useLayoutEffect((function(){if(e.current){var t=e.current.element;t&&(l.current=t.clientHeight)}}),[]),r.useEffect(u,[e,e.current&&e.current.props,t]),r.useEffect((function(){if(e.current){var t=e.current.props.items.filter((function(e){return e._ref.current})).map((function(e){if(e._ref.current&&e._ref.current.element&&s.current){var t=new window.ResizeObserver(c);return t.observe(e._ref.current.element),function(){t.disconnect()}}}));return function(){t.forEach((function(e){return e&&e()}))}}}),[c,s,e])}},6548:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useWorkHours=void 0;var r=n(3899),o=n(8586);t.useWorkHours=function(e,t){var n=(0,o.usePropOrState)(e,t),i=n[0],a=n[1],l=r.useCallback((function(){a(!i)}),[i,a]);return[i,l]}},9299:function(e,t,n){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},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.SchedulerEditItem=void 0;var o=n(3899),i=n(6809),a=n(3540),l=n(7160),s=n(3865),u=n(3642),c=n(3999),d=n(6612),p=n(8586),f=n(7907),h=n(9210),m=n(9356),v=n(7966),g=n(8858),y=n(8569),b=n(9593),C=n(624),E=n(1611),w=n(1365);t.SchedulerEditItem=o.forwardRef((function(e,t){var n=e._ref,i=e.itemRef,a=e.onDataAction,l=e.ignoreIsAllDay,s=e.viewItem,u=e.series,c=e.onSeriesChange,d=e.form,S=e.formItem,O=e.onFormItemChange,D=e.drag,x=e.dragItem,I=e.onDragItemChange,T=e.resize,_=e.resizeItem,R=e.onResizeItemChange,M=e.removeDialog,P=e.removeItem,N=e.onRemoveItemChange,F=e.occurrenceDialog,A=e.showOccurrenceDialog,j=e.onShowOccurrenceDialogChange,L=e.showRemoveDialog,V=e.onShowRemoveDialogChange,z=e.onFocus,B=e.onFocusAction,H=e.onMouseDown,U=e.onMouseDownAction,W=e.onMouseUp,K=e.onMouseUpAction,q=e.onClick,Y=e.onClickAction,G=e.onDoubleClick,Z=e.onDoubleClickAction,X=e.onRemoveClick,$=e.onRemoveClickAction,Q=e.onPress,J=e.onPressAction,ee=e.onDrag,te=e.onDragAction,ne=e.onRelease,re=e.onReleaseAction,oe=e.onResizePress,ie=e.onResizePressAction,ae=e.onResizeStartDrag,le=e.onResizeStartDragAction,se=e.onResizeEndDrag,ue=e.onResizeEndDragAction,ce=e.onResizeRelease,de=e.onResizeReleaseAction,pe=e.onOccurrenceClick,fe=e.onOccurrenceClickAction,he=e.onSeriesClick,me=e.onSeriesClickAction,ve=e.onKeyDown,ge=e.onKeyDownAction,ye=e.onKeyUp,be=e.onKeyUpAction,Ce=e.onRemoveConfirm,Ee=e.onRemoveConfirmAction,we=e.onFormSubmit,ke=e.onFormSubmitAction,Se=e.onCancel,Oe=e.onCancelAction,De=o.useState(e.tabIndex),xe=De[0],Ie=De[1],Te=o.useRef(null),_e=o.useRef(null);o.useImperativeHandle(Te,(function(){return{props:e,element:_e.current&&_e.current.element}})),o.useImperativeHandle(t,(function(){return Te.current})),o.useImperativeHandle(n,(function(){return _e.current})),o.useImperativeHandle(i,(function(){return _e.current}));var Re=s||k.viewItem,Me=D||k.drag,Pe=T||k.resize,Ne=d||k.form,Fe=F||k.occurrenceDialog,Ae=M||k.removeDialog,je=(0,p.useEditable)(e.editable),Le=(0,f.useSchedulerViewSelectedItemsContext)(),Ve=Le[0],ze=Le[1],Be=(0,E.useSeries)(null,u,c),He=Be[0],Ue=Be[2],We=(0,m.useFormItem)({series:He,onDataAction:a},[null,S,O]),Ke=We[0],qe=We[1],Ye=We[2],Ge=(0,b.useDragItem)({dataItem:e.dataItem,ignoreIsAllDay:e.ignoreIsAllDay,isAllDay:e.isAllDay,onDataAction:a},[null,x,I]),Ze=Ge[0],Xe=Ge[1],$e=Ge[2],Qe=(0,C.useResizeItem)({dataItem:e.dataItem,onDataAction:a},[null,_,R]),Je=Qe[0],et=Qe[1],tt=Qe[2],nt=(0,g.useRemoveItem)({series:He,onDataAction:a},[null,P,N]),rt=nt[0],ot=nt[1],it=nt[2],at=(0,y.useShowRemoveDialog)(!1,L,V),lt=at[0],st=at[1],ut=at[2],ct=(0,v.useShowOccurrenceDialog)(!1,A,j),dt=ct[0],pt=ct[1],ft=ct[2],ht=(0,f.useSchedulerViewItemsContext)()[0],mt=(0,f.useSchedulerViewFocusedItemsContext)()[1],vt=(0,f.useSchedulerViewFocusedSlotsContext)()[1],gt=Boolean(Ve&&Ve.some((function(e){return e.current===_e.current}))),yt=o.useMemo((function(){return{selected:gt,series:He,formItem:Ke,dragItem:Ze,resizeItem:Je,removeItem:rt,showRemoveDialog:lt,showOccurrenceDialog:dt}}),[Ze,Ke,rt,Je,gt,He,dt,lt]),bt=o.useMemo((function(){var e;return(e={})[E.SERIES_ACTION.set]=Ue,e[E.SERIES_ACTION.toggle]=Ue,e[E.SERIES_ACTION.reset]=Ue,e[w.ITEMS_SELECT_ACTION.select]=ze,e[w.ITEMS_SELECT_ACTION.add]=ze,e[w.ITEMS_SELECT_ACTION.remove]=ze,e[w.ITEMS_SELECT_ACTION.reset]=ze,e[w.ITEMS_SELECT_ACTION.selectNext]=ze,e[w.ITEMS_SELECT_ACTION.selectPrev]=ze,e[m.FORM_ITEM_ACTION.set]=Ye,e[m.FORM_ITEM_ACTION.setMaster]=Ye,e[m.FORM_ITEM_ACTION.reset]=Ye,e[m.FORM_ITEM_ACTION.complete]=Ye,e[g.REMOVE_ITEM_ACTION.set]=it,e[g.REMOVE_ITEM_ACTION.reset]=it,e[g.REMOVE_ITEM_ACTION.complete]=it,e[v.SHOW_OCCURRENCE_DIALOG_ACTION.close]=ft,e[v.SHOW_OCCURRENCE_DIALOG_ACTION.open]=ft,e[v.SHOW_OCCURRENCE_DIALOG_ACTION.set]=ft,e[v.SHOW_OCCURRENCE_DIALOG_ACTION.toggle]=ft,e[v.SHOW_OCCURRENCE_DIALOG_ACTION.reset]=ft,e[y.SHOW_REMOVE_DIALOG_ACTION.close]=ut,e[y.SHOW_REMOVE_DIALOG_ACTION.open]=ut,e[y.SHOW_REMOVE_DIALOG_ACTION.set]=ut,e[y.SHOW_REMOVE_DIALOG_ACTION.toggle]=ut,e[y.SHOW_REMOVE_DIALOG_ACTION.reset]=ut,e[b.DRAG_ITEM_ACTION.start]=$e,e[b.DRAG_ITEM_ACTION.drag]=$e,e[b.DRAG_ITEM_ACTION.complete]=$e,e[b.DRAG_ITEM_ACTION.completeOccurrence]=$e,e[b.DRAG_ITEM_ACTION.completeSeries]=$e,e[b.DRAG_ITEM_ACTION.set]=$e,e[b.DRAG_ITEM_ACTION.reset]=$e,e[b.DRAG_ITEM_ACTION.dragSelected]=$e,e[C.RESIZE_ITEM_ACTION.start]=tt,e[C.RESIZE_ITEM_ACTION.startDrag]=tt,e[C.RESIZE_ITEM_ACTION.startDragSelected]=tt,e[C.RESIZE_ITEM_ACTION.endDrag]=tt,e[C.RESIZE_ITEM_ACTION.endDragSelected]=tt,e[C.RESIZE_ITEM_ACTION.complete]=tt,e[C.RESIZE_ITEM_ACTION.completeOccurrence]=tt,e[C.RESIZE_ITEM_ACTION.completeSeries]=tt,e[C.RESIZE_ITEM_ACTION.set]=tt,e[C.RESIZE_ITEM_ACTION.reset]=tt,e[p.ITEMS_FOCUS_ACTION.next]=mt,e[p.ITEMS_FOCUS_ACTION.prev]=mt,e[p.SLOTS_FOCUS_ACTION.left]=vt,e[p.SLOTS_FOCUS_ACTION.right]=vt,e[p.SLOTS_FOCUS_ACTION.up]=vt,e[p.SLOTS_FOCUS_ACTION.down]=vt,e.null=function(){},e}),[$e,Ye,ze,it,tt,Ue,ft,ut,mt,vt]),Ct=o.useCallback((function(t){if(B){var n=B(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r(r({},e),{item:_e}),t)})):bt[n.type](r(r({},n),{item:_e})))}z&&z.call(void 0,t)}),[bt,z,B,e,yt]),Et=o.useCallback((function(t){if(U){var n=U(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r(r({},e),{item:_e}),t)})):bt[n.type](r(r({},n),{item:_e})))}H&&H.call(void 0,t)}),[bt,H,U,e,yt]),wt=o.useCallback((function(t){if(K){var n=K(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r(r({},e),{item:_e}),t)})):bt[n.type](r(r({},n),{item:_e})))}W&&W.call(void 0,t)}),[bt,W,K,e,yt]),kt=o.useCallback((function(t){if(Y){var n=Y(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r(r({},e),{item:_e}),t)})):bt[n.type](r(r({},n),{item:_e})))}q&&q.call(void 0,t)}),[bt,q,Y,e,yt]),St=o.useCallback((function(t){if(Z){var n=Z(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r(r({},e),{item:_e}),t)})):bt[n.type](r(r({},n),{item:_e})))}G&&G.call(void 0,t)}),[Z,G,e,bt,yt]),Ot=o.useCallback((function(t){if($){var n=$(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r(r({},e),{item:_e}),t)})):bt[n.type](r(r({},n),{item:_e})))}X&&X.call(void 0,t)}),[$,X,e,bt,yt]),Dt=o.useCallback((function(t){if(J){var n=J(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r(r({},e),{item:_e}),t)})):bt[n.type](r(r({},n),{item:_e}),t))}Q&&Q.call(void 0,t)}),[J,Q,e,bt,yt]),xt=o.useCallback((function(t){if(te){var n=te(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r(r({},e),{item:_e}),t.dragEvent.originalEvent)})):bt[n.type](r(r({},n),{item:_e}),t.dragEvent.originalEvent))}ee&&ee.call(void 0,t)}),[te,ee,e,bt,yt]),It=o.useCallback((function(t){if(re){var n=re(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r(r({},e),{item:_e}),t.dragEvent.originalEvent)})):bt[n.type](r(r({},n),{item:_e}),t.dragEvent.originalEvent))}ne&&ne.call(void 0,t)}),[re,ne,e,bt,yt]),Tt=o.useCallback((function(t){if(ie){var n=ie(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r(r({},e),{item:_e}),t.dragEvent.originalEvent)})):bt[n.type](r(r({},n),{item:_e}),t.dragEvent.originalEvent))}oe&&oe.call(void 0,t)}),[ie,oe,e,yt,bt]),_t=o.useCallback((function(t){if(le){var n=le(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r(r({},e),{item:_e}),t.dragEvent.originalEvent)})):bt[n.type](r(r({},n),{item:_e}),t.dragEvent.originalEvent))}ae&&ae.call(void 0,t)}),[ae,le,e,bt,yt]),Rt=o.useCallback((function(t){if(ue){var n=ue(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r(r({},e),{item:_e}),t.dragEvent.originalEvent)})):bt[n.type](r(r({},n),{item:_e}),t.dragEvent.originalEvent))}se&&se.call(void 0,t)}),[se,ue,e,bt,yt]),Mt=o.useCallback((function(t){if(de){var n=de(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r(r({},e),{item:_e}),t.dragEvent.originalEvent)})):bt[n.type](r(r({},n),{item:_e}),t.dragEvent.originalEvent))}ce&&ce.call(void 0,t)}),[de,ce,e,bt,yt]),Pt=o.useCallback((function(t){if(ke){var n=ke(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r(r({},e),{item:_e}),t)})):bt[n.type](r(r({},n),{item:_e}),t))}we&&we.call(void 0,t)}),[ke,we,e,yt,bt]),Nt=o.useCallback((function(t){if(Oe){var n=Oe(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r(r({},e),{item:_e}),t)})):bt[n.type](r(r({},n),{item:_e}),t))}Se&&Se.call(void 0,t)}),[Oe,Se,e,yt,bt]),Ft=o.useCallback((function(t){if(fe){var n=fe(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r(r({},e),{item:_e}),t)})):bt[n.type](r(r({},n),{item:_e}),t))}pe&&pe.call(void 0,t)}),[fe,pe,e,yt,bt]),At=o.useCallback((function(t){if(me){var n=me(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r(r({},e),{item:_e}),t)})):bt[n.type](r(r({},n),{item:_e}),t))}he&&he.call(void 0,t)}),[me,he,e,yt,bt]),jt=o.useCallback((function(t){if(ge){var n=ge(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r(r({},e),{item:_e}),t.syntheticEvent)})):bt[n.type](r(r({},n),{item:_e}),t.syntheticEvent))}ve&&ve.call(void 0,t)}),[ge,ve,e,yt,bt]),Lt=o.useCallback((function(t){if(be){var n=be(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r(r({},e),{item:_e}),t.syntheticEvent)})):bt[n.type](r(r({},n),{item:_e}),t.syntheticEvent))}ye&&ye.call(void 0,t)}),[be,ye,e,yt,bt]),Vt=o.useCallback((function(t){if(Ee){var n=Ee(t,e,yt);n&&(Array.isArray(n)?n.filter(Boolean).map((function(e){return e&&bt[e.type](r(r({},e),{item:_e}),t.syntheticEvent)})):bt[n.type](r(r({},n),{item:_e}),t.syntheticEvent))}Ce&&Ce.call(void 0,t)}),[Ee,Ce,e,yt,bt]);return o.useEffect((function(){var t=ht.length&&ht[0].current===_e.current;Ie(void 0!==e.tabIndex?null===e.tabIndex?void 0:e.tabIndex:0===Ve.length&&t?0:void 0)}),[ht,e.tabIndex,Ve.length]),o.createElement(h.SchedulerEditItemContext,{props:e,form:[Ke,qe,Ye],drag:[Ze,Xe,$e],resize:[Je,et,tt],remove:[rt,ot,it],showRemoveDialog:[lt,st,ut],showOccurrenceDialog:[dt,pt,ft]},o.createElement(Re,r({},e,{_ref:_e,itemRef:_e,selected:gt,tabIndex:xe,onKeyDown:jt,onKeyUp:Lt,onFocus:Ct,onMouseUp:wt,onMouseDown:Et,onClick:kt,onDoubleClick:St,onRemoveClick:Ot,onPress:Dt,onDrag:xt,onRelease:It,onResizePress:Tt,onResizeEndDrag:Rt,onResizeStartDrag:_t,onResizeRelease:Mt})),Ze&&je.drag&&(Array.isArray(Ze)?Ze.map((function(t,n){return o.createElement(Me,{key:n,ignoreIsAllDay:l,dataItem:t,vertical:e.vertical,viewItem:Re,item:e.item})})):o.createElement(Me,{ignoreIsAllDay:l,dataItem:Ze,vertical:e.vertical,viewItem:Re,item:e.item})),Je&&je.resize&&(Array.isArray(Je)?Je.map((function(t,n){return o.createElement(Pe,{key:n,format:e.format,ignoreIsAllDay:l,dataItem:t,viewItem:e.viewItem,item:e.item,vertical:e.vertical})})):o.createElement(Pe,{format:e.format,ignoreIsAllDay:l,dataItem:Je,viewItem:e.viewItem,item:e.item,vertical:e.vertical})),Ke&&!dt&&je.edit&&o.createElement(Ne,{dataItem:Ke,onSubmit:Pt,onClose:Nt,onCancel:Nt}),dt&&o.createElement(Fe,{dataItem:Ke||Ze||Je||rt,isRemove:null!==rt,onClose:Nt,onOccurrenceClick:Ft,onSeriesClick:At}),lt&&rt&&je.remove&&o.createElement(Ae,{dataItem:rt,onClose:Nt,onCancel:Nt,onConfirm:Vt}))}));var k={viewItem:d.SchedulerViewItem,drag:u.SchedulerDrag,resize:c.SchedulerResize,form:a.SchedulerForm,occurrenceDialog:i.SchedulerOccurrenceDialog,removeDialog:l.SchedulerRemoveDialog,onClickAction:function(e,t,n){return[{type:e.syntheticEvent.metaKey||e.syntheticEvent.ctrlKey?!n.selected||n.dragItem||n.resizeItem?w.ITEMS_SELECT_ACTION.add:w.ITEMS_SELECT_ACTION.remove:w.ITEMS_SELECT_ACTION.select}]},onDoubleClickAction:function(e,t){return t.editable?[{type:m.FORM_ITEM_ACTION.set,payload:t.dataItem},t.isRecurring&&{type:v.SHOW_OCCURRENCE_DIALOG_ACTION.open}].filter(Boolean):[]},onRemoveClickAction:function(e,t){return t.editable?[{type:g.REMOVE_ITEM_ACTION.set,payload:t.dataItem},t.isRecurring?{type:v.SHOW_OCCURRENCE_DIALOG_ACTION.open}:{type:y.SHOW_REMOVE_DIALOG_ACTION.open}]:[]},onPressAction:function(e,t){return t.editable?{type:b.DRAG_ITEM_ACTION.start,payload:{x:e.dragEvent.clientX,y:e.dragEvent.clientY}}:[]},onDragAction:function(e,t){return t.editable?{type:e.dragEvent.originalEvent.metaKey||e.dragEvent.originalEvent.ctrlKey?b.DRAG_ITEM_ACTION.dragSelected:b.DRAG_ITEM_ACTION.drag,payload:{x:e.dragEvent.clientX,y:e.dragEvent.clientY}}:[]},onReleaseAction:function(e,t,n){return t.editable&&n.dragItem?t.isRecurring&&!t.isException&&null===n.series?{type:v.SHOW_OCCURRENCE_DIALOG_ACTION.open}:{type:t.isRecurring?n.series?b.DRAG_ITEM_ACTION.completeSeries:b.DRAG_ITEM_ACTION.completeOccurrence:b.DRAG_ITEM_ACTION.complete,payload:{x:e.dragEvent.clientX,y:e.dragEvent.clientY}}:[]},onResizePressAction:function(e,t){return t.editable?{type:C.RESIZE_ITEM_ACTION.start,payload:{x:e.dragEvent.clientX,y:e.dragEvent.clientY}}:[]},onResizeStartDragAction:function(e,t){return t.editable?{type:e.dragEvent.originalEvent.metaKey||e.dragEvent.originalEvent.ctrlKey?C.RESIZE_ITEM_ACTION.startDragSelected:C.RESIZE_ITEM_ACTION.startDrag,payload:{x:e.dragEvent.clientX,y:e.dragEvent.clientY}}:[]},onResizeEndDragAction:function(e,t){return t.editable?{type:e.dragEvent.originalEvent.metaKey||e.dragEvent.originalEvent.ctrlKey?C.RESIZE_ITEM_ACTION.endDragSelected:C.RESIZE_ITEM_ACTION.endDrag,payload:{x:e.dragEvent.clientX,y:e.dragEvent.clientY}}:[]},onResizeReleaseAction:function(e,t,n){return t.editable&&n.resizeItem?t.isRecurring&&!t.isException&&null===n.series?{type:v.SHOW_OCCURRENCE_DIALOG_ACTION.open}:{type:t.isRecurring?n.series?C.RESIZE_ITEM_ACTION.completeSeries:C.RESIZE_ITEM_ACTION.completeOccurrence:C.RESIZE_ITEM_ACTION.complete,payload:{x:e.dragEvent.clientX,y:e.dragEvent.clientY}}:[]},onOccurrenceClickAction:function(e,t,n){return n.dragItem?[{type:b.DRAG_ITEM_ACTION.completeOccurrence},{type:v.SHOW_OCCURRENCE_DIALOG_ACTION.close}]:n.resizeItem?[{type:C.RESIZE_ITEM_ACTION.completeOccurrence},{type:v.SHOW_OCCURRENCE_DIALOG_ACTION.close}]:n.formItem?[{type:E.SERIES_ACTION.set,payload:!1},{type:m.FORM_ITEM_ACTION.set,payload:t.dataItem},{type:v.SHOW_OCCURRENCE_DIALOG_ACTION.close}]:n.removeItem?[{type:E.SERIES_ACTION.set,payload:!1},{type:g.REMOVE_ITEM_ACTION.set,payload:t.dataItem},{type:y.SHOW_REMOVE_DIALOG_ACTION.open},{type:v.SHOW_OCCURRENCE_DIALOG_ACTION.close}]:void 0},onSeriesClickAction:function(e,t,n){return n.dragItem?[{type:b.DRAG_ITEM_ACTION.completeSeries},{type:v.SHOW_OCCURRENCE_DIALOG_ACTION.close}]:n.resizeItem?[{type:C.RESIZE_ITEM_ACTION.completeSeries},{type:v.SHOW_OCCURRENCE_DIALOG_ACTION.close}]:n.formItem?[{type:E.SERIES_ACTION.set,payload:!0},{type:m.FORM_ITEM_ACTION.setMaster,payload:t.dataItem},{type:v.SHOW_OCCURRENCE_DIALOG_ACTION.close}]:n.removeItem?[{type:E.SERIES_ACTION.set,payload:!0},{type:g.REMOVE_ITEM_ACTION.set,payload:t.dataItem},{type:y.SHOW_REMOVE_DIALOG_ACTION.open},{type:v.SHOW_OCCURRENCE_DIALOG_ACTION.close}]:void 0},onKeyDownAction:function(e,t){switch(e.syntheticEvent.keyCode){case s.Keys.enter:return[{type:m.FORM_ITEM_ACTION.set,payload:t.dataItem},t.isRecurring&&{type:v.SHOW_OCCURRENCE_DIALOG_ACTION.open}];case s.Keys.tab:return[{type:e.syntheticEvent.shiftKey?p.ITEMS_FOCUS_ACTION.prev:p.ITEMS_FOCUS_ACTION.next,ignoreIsAllDay:t.ignoreIsAllDay},{type:e.syntheticEvent.shiftKey?w.ITEMS_SELECT_ACTION.selectPrev:w.ITEMS_SELECT_ACTION.selectNext,ignoreIsAllDay:t.ignoreIsAllDay}];case s.Keys.up:return[Boolean(t.slots.length&&t.slots[0]._ref.current)&&{type:p.SLOTS_FOCUS_ACTION.up,slot:t.slots[0]._ref}];case s.Keys.right:return[Boolean(t.slots.length&&t.slots[0]._ref.current)&&{type:p.SLOTS_FOCUS_ACTION.right,slot:t.slots[0]._ref}];case s.Keys.down:return[Boolean(t.slots.length&&t.slots[t.slots.length-1]._ref.current)&&{type:p.SLOTS_FOCUS_ACTION.down,slot:t.slots[t.slots.length-1]._ref}];case s.Keys.left:return[Boolean(t.slots.length&&t.slots[0]._ref.current)&&{type:p.SLOTS_FOCUS_ACTION.left,slot:t.slots[0]._ref}];default:return}},onFormSubmitAction:function(e){return{type:m.FORM_ITEM_ACTION.complete,payload:e.value}},onRemoveConfirmAction:function(){return[{type:g.REMOVE_ITEM_ACTION.complete},{type:v.SHOW_OCCURRENCE_DIALOG_ACTION.close}]},onCancelAction:function(){return[{type:E.SERIES_ACTION.reset},{type:g.REMOVE_ITEM_ACTION.reset},{type:m.FORM_ITEM_ACTION.reset},{type:b.DRAG_ITEM_ACTION.reset},{type:C.RESIZE_ITEM_ACTION.reset},{type:y.SHOW_REMOVE_DIALOG_ACTION.reset},{type:v.SHOW_OCCURRENCE_DIALOG_ACTION.reset}]}};t.SchedulerEditItem.defaultProps=k,t.SchedulerEditItem.displayName="KendoReactSchedulerEditItem"},7285:function(e,t,n){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},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.SchedulerItem=void 0;var o=n(3899),i=n(3865),a=n(499),l=n(3364),s=n(8586),u=n(5538);t.SchedulerItem=o.forwardRef((function(e,t){var n=e.onFocus,c=e.onBlur,d=e.onMouseDown,p=e.onClick,f=e.onMouseUp,h=e.onMouseOut,m=e.onMouseOver,v=e.onMouseEnter,g=e.onMouseLeave,y=e.onDoubleClick,b=e.onRemoveClick,C=e.onKeyUp,E=e.onKeyDown,w=e.onKeyPress,k=e.onPress,S=e.onDrag,O=e.onRelease,D=e.onResizePress,x=e.onResizeEndDrag,I=e.onResizeRelease,T=e.onResizeStartDrag,_=(0,s.useSchedulerItem)(e,t),R=_.item,M=_.element,P=o.useRef(null),N=o.useRef(null),F=o.useRef(null),A=o.useRef(null),j=(0,s.useEditable)(e.editable),L=(0,a.useInternationalization)(),V=(0,a.useLocalization)().toLanguageString(l.deleteTitle,l.messages[l.deleteTitle]),z=e.group.resources.find((function(e){return Boolean(e.colorField&&""!==e[e.colorField]&&void 0!==e[e.colorField])})),B=z&&z.colorField&&z[z.colorField],H=void 0!==e.tabIndex?null===e.tabIndex?void 0:e.tabIndex:e.selected?0:-1,U=o.useMemo((function(){return(0,i.classNames)({"k-event":!e.resizeHint,"k-selected":e.selected&&j.select,"k-event-drag-hint":e.dragHint,"k-scheduler-marquee":e.resizeHint,"k-marquee":e.resizeHint,"k-first":e.resizeHint&&!e.tail,"k-last":e.resizeHint&&!e.head},e.className)}),[e.resizeHint,e.selected,e.dragHint,e.tail,e.head,e.className,j.select]),W=o.useMemo((function(){return"".concat((0,u.formatEventTime)(L,e.zonedStart,e.zonedEnd,e.isAllDay),", ").concat(e.title)}),[L,e.isAllDay,e.title,e.zonedEnd,e.zonedStart]),K=o.useMemo((function(){return r({cursor:"pointer",userSelect:"none",borderColor:e.resizeHint?void 0:B,backgroundColor:e.resizeHint?void 0:B,touchAction:"none"},e.style)}),[B,e.style,e.resizeHint]),q=o.useCallback((function(e){n&&n.call(void 0,{syntheticEvent:e,target:R.current})}),[n,R]),Y=o.useCallback((function(e){c&&c.call(void 0,{syntheticEvent:e,target:R.current})}),[c,R]),G=o.useCallback((function(e){d&&d.call(void 0,{syntheticEvent:e,target:R.current})}),[d,R]),Z=o.useCallback((function(e){p&&p.call(void 0,{syntheticEvent:e,target:R.current})}),[p,R]),X=o.useCallback((function(e){f&&f.call(void 0,{syntheticEvent:e,target:R.current})}),[f,R]),$=o.useCallback((function(e){m&&m.call(void 0,{syntheticEvent:e,target:R.current})}),[m,R]),Q=o.useCallback((function(e){h&&h.call(void 0,{syntheticEvent:e,target:R.current})}),[h,R]),J=o.useCallback((function(e){v&&v.call(void 0,{syntheticEvent:e,target:R.current})}),[v,R]),ee=o.useCallback((function(e){g&&g.call(void 0,{syntheticEvent:e,target:R.current})}),[g,R]),te=o.useCallback((function(e){y&&y.call(void 0,{syntheticEvent:e,target:R.current})}),[y,R]),ne=o.useCallback((function(e){b&&b.call(void 0,{syntheticEvent:e,target:R.current})}),[b,R]),re=o.useCallback((function(e){E&&E.call(void 0,{syntheticEvent:e,target:R.current})}),[E,R]),oe=o.useCallback((function(e){w&&w.call(void 0,{syntheticEvent:e,target:R.current})}),[w,R]),ie=o.useCallback((function(e){C&&C.call(void 0,{syntheticEvent:e,target:R.current})}),[C,R]),ae=o.useCallback((function(e){k&&k.call(void 0,{dragEvent:e,target:R.current})}),[k,R]),le=o.useCallback((function(e){S&&S.call(void 0,{dragEvent:e,target:R.current})}),[S,R]),se=o.useCallback((function(e){O&&O.call(void 0,{dragEvent:e,target:R.current})}),[O,R]),ue=o.useCallback((function(e){D&&D.call(void 0,{dragEvent:e,target:R.current})}),[D,R]),ce=o.useCallback((function(e){T&&T.call(void 0,{dragEvent:e,target:R.current})}),[T,R]),de=o.useCallback((function(e){x&&x.call(void 0,{dragEvent:e,target:R.current})}),[x,R]),pe=o.useCallback((function(e){I&&I.call(void 0,{dragEvent:e,target:R.current})}),[I,R]);return(0,i.useDraggable)(M,{onPress:ae,onDrag:le,onRelease:se}),(0,i.useDraggable)(P,{onPress:ue,onDrag:de,onRelease:pe}),(0,i.useDraggable)(N,{onPress:ue,onDrag:ce,onRelease:pe}),(0,i.useDraggable)(F,{onPress:ue,onDrag:ce,onRelease:pe}),(0,i.useDraggable)(A,{onPress:ue,onDrag:de,onRelease:pe}),o.createElement("div",{ref:M,id:e.id,style:K,tabIndex:H,className:U,"aria-label":W,"aria-selected":e.selected,onFocus:q,onBlur:Y,onMouseUp:X,onMouseDown:G,onClick:Z,onMouseOver:$,onMouseOut:Q,onMouseEnter:J,onMouseLeave:ee,onDoubleClick:te,onKeyDown:re,onKeyPress:oe,onKeyUp:ie,"data-group-index":e.group.index,"data-range-index":e.range.index},e.children,!e.resizeHint&&o.createElement("span",{className:"k-event-actions"},j.remove&&o.createElement("a",{tabIndex:-1,"aria-hidden":"true",className:"k-link k-event-delete",title:V,"aria-label":V,onClick:ne},o.createElement("span",{className:"k-icon k-i-close"})),e.head&&o.createElement("span",{className:"k-icon k-i-arrow-60-right"})),j.resize&&e.vertical&&o.createElement(o.Fragment,null,o.createElement("span",{className:"k-resize-handle k-resize-n",ref:F}),o.createElement("span",{className:"k-resize-handle k-resize-s",ref:A})),j.resize&&!e.vertical&&o.createElement(o.Fragment,null,o.createElement("span",{className:"k-resize-handle k-resize-w",ref:N}),o.createElement("span",{className:"k-resize-handle k-resize-e",ref:P})),e.resizeHint&&o.createElement(o.Fragment,null,o.createElement("div",{className:"k-marquee-color",style:{borderColor:B,backgroundColor:B}}),o.createElement("div",{className:"k-marquee-text"},!e.tail&&o.createElement("div",{className:"k-label-top"},L.formatDate(e.zonedStart,e.format)),!e.head&&o.createElement("div",{className:"k-label-bottom"},L.formatDate(e.zonedEnd,e.format)))))})),t.SchedulerItem.displayName="KendoReactSchedulerItem"},8952:function(e,t,n){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},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.SchedulerItemContent=void 0;var o=n(3899),i=n(3865);t.SchedulerItemContent=o.forwardRef((function(e,t){var n=o.useMemo((function(){return(0,i.classNames)("k-event-template",e.className)}),[e.className]);return o.createElement("div",r({ref:t},e,{className:n}))}))},6612:function(e,t,n){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},r.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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.SchedulerViewItem=void 0;var i=n(3899),a=n(7285),l=n(5538),s=n(7907),u=n(3152),c=n(4814),d=n(499),p=n(8952);t.SchedulerViewItem=i.forwardRef((function(e,t){var n=e.item,a=e._ref,h=e.itemRef,m=o(e,["item","_ref","itemRef"]),v=i.useRef(),g=i.useRef(null),y=i.useRef(null),b=i.useRef(null);i.useImperativeHandle(y,(function(){return{props:e,element:g.current&&g.current.element}})),i.useImperativeHandle(t,(function(){return y.current})),i.useImperativeHandle(a,(function(){return g.current})),i.useImperativeHandle(h,(function(){return g.current}));var C=n||f.item,E=(0,d.useInternationalization)(),w=(0,s.useSchedulerViewItemsContext)()[0],k=(0,s.useSchedulerViewSlotsContext)()[0],S=(0,s.useSchedulerElementContext)(),O=i.useState(!0),D=O[0],x=O[1],I=i.useState(!1),T=I[0],_=I[1],R=i.useState(0),M=R[0],P=R[1],N=i.useMemo((function(){return e.isAllDay?E.toString(e.zonedStart,"t"):E.format("{0:t} - {1:t}",e.zonedStart,e.zonedEnd)}),[E,e.isAllDay,e.zonedEnd,e.zonedStart]),F=i.useMemo((function(){return"(".concat(N,"): ").concat(e.title)}),[N,e.title]),A=function(e,t){var n=1;return e.forEach((function(e){var r=t.filter((function(t){return j(e.current.props,t.props)}));r.length>n&&(n=r.length)})),n},j=function(t,n){return(0,l.intersects)(t.start,t.end,n.start,n.end)&&t.group.index===n.group.index&&t.range.index===n.range.index&&(e.ignoreIsAllDay||t.isAllDay===n.isAllDay)},L=function(){var t=(k||[]).filter((function(t){return t.current&&j(t.current.props,e)}));if(0!==t.length){var n=(0,l.first)(t);if(n.current&&g.current){var r=(0,u.getRect)(n.current.element);(0,u.setRect)(g.current.element,r)}}else x(!1)},V=function(){var t=g.current&&g.current.element;if(t){var n=(k||[]).filter((function(t){return t.current&&j(t.current.props,e)})),r=[],o=[],i=[];(w||[]).forEach((function(e){e.current&&(e.current.props.dragHint?o.push(e.current):e.current.props.resizeHint?i.push(e.current):r.push(e.current))}));var a=e.dragHint||e.resizeHint?(0,l.calculateOrder)(g.current,e.dragHint?o:i,n,e.ignoreIsAllDay):e.order||0,s=e.dragHint||e.resizeHint?A(n,e.dragHint?o:i):A(n,r),d=function(e,t){return e.map((function(e){return t.filter((function(t){return j(e.current.props,t.props)}))}))}(n,r),p=0,f=(0,u.getRect)(t);d.forEach((function(n){var r=0;n.forEach((function(n){(0,l.intersects)(n.props.start,n.props.end,e.start,e.end)&&!e.dragHint&&!e.resizeHint&&n.props._maxSiblingsPerSlot&&n.props._maxSiblingsPerSlot>s&&n.element!==t&&(s=n.props._maxSiblingsPerSlot);var o=(0,u.getRect)(n.element);null!==n.props.order&&n.props.order<a&&(r=o.top+o.height-f.top-c.BORDER_WIDTH*a+1)})),r>p&&(p=r)})),0!==n.length?(f.width=e.vertical?f.width/s-c.BORDER_WIDTH-20/s:f.width*n.length-c.BORDER_WIDTH-20,f.height=e.vertical?f.height*n.length-c.BORDER_WIDTH:(e.resizeHint||e.dragHint)&&s<=1?f.height:e.style&&e.style.height?e.style.height:25,f.left=e.vertical?f.left+a*f.width+c.BORDER_WIDTH*a:f.left,f.top=e.vertical?f.top:f.top+p+c.BORDER_WIDTH*a,P(s),(0,u.setRect)(t,f),_(!0),x(!0)):x(!1)}},z=i.useCallback((function(e){var t=e&&e[0],n=b.current;void 0!==v.current&&window.cancelAnimationFrame(v.current),n&&t&&(n.width!==t.contentRect.width||n.height!==t.contentRect.height)&&(v.current=window.requestAnimationFrame((function(){L(),V()}))),b.current={width:t.contentRect.width,height:t.contentRect.height}}),[L,V]);return i.useEffect(L),i.useEffect(V),i.useEffect((function(){if(S.current){var e=new window.ResizeObserver(z);return e.observe(S.current),function(){e.disconnect()}}}),[z,S]),i.createElement(C,r({},m,{_ref:g,_maxSiblingsPerSlot:M,itemRef:g,style:r({visibility:T?void 0:"hidden",display:D?void 0:"none"},e.style)}),!e.resizeHint&&i.createElement("span",{className:"k-event-actions"},e.tail&&i.createElement("span",{className:"k-icon k-i-arrow-60-left"}),e.isRecurring&&!e.isException&&i.createElement("span",{className:"k-icon k-i-reload"}),!e.isRecurring&&e.isException&&i.createElement("span",{className:"k-icon k-i-non-recurrence"})),!e.resizeHint&&i.createElement("div",{title:F},!e.isAllDay&&i.createElement(p.SchedulerItemContent,{className:"k-event-template k-event-time "},F),i.createElement(p.SchedulerItemContent,{className:"k-event-template"},e.title)))}));var f={item:a.SchedulerItem};t.SchedulerViewItem.defaultProps=f,t.SchedulerViewItem.displayName="KendoReactSchedulerViewItem"},9593:function(e,t,n){var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.useDragItem=t.DRAG_ITEM_ACTION=void 0;var o,i=n(3865),a=n(3899),l=n(7907),s=n(1995),u=n(468),c=n(5538);!function(e){e.set="DRAG_ITEM_SET",e.start="DRAG_ITEM_START",e.drag="DRAG_ITEM_DRAG",e.complete="DRAG_ITEM_COMPLETE",e.completeOccurrence="DRAG_ITEM_COMPLETE_OCCURRENCE",e.completeSeries="DRAG_ITEM_COMPLETE_SERIES",e.reset="DRAG_ITEM_RESET",e.dragSelected="DRAG_ITEM_DRAG_SELECTED"}(o=t.DRAG_ITEM_ACTION||(t.DRAG_ITEM_ACTION={})),t.useDragItem=function(e,t){var n=a.useRef(0),d=a.useRef(0),p=a.useRef(0),f=a.useRef(null),h=s.useControlledState.apply(void 0,t),m=h[0],v=h[1],g=(0,l.useSchedulerViewSelectedItemsContext)()[0],y=(0,l.useSchedulerFieldsContext)(),b=(0,l.useSchedulerGroupsContext)();return[m,v,function(t){switch(t.type){case o.set:v(t.payload);break;case o.reset:v(null);break;case o.dragSelected:if(Math.abs(d.current-t.payload.x)<10&&Math.abs(p.current-t.payload.y)<10)return;if(!(S=(0,c.slotDive)(t.payload.x,t.payload.y,7)))return;if(S===f.current)return;var a=(0,i.clone)(e.dataItem),l=S.getAttribute("data-slot-start"),s="true"===S.getAttribute("data-slot-allday");if(!e.ignoreIsAllDay&&s!==e.isAllDay)return;var h=new Date((0,c.getField)(a,y.start)),C=Number(l)-h.getTime(),E=g.map((function(e){if(!e.current)return null;var t=(0,i.clone)(e.current.props.dataItem),n=new Date(e.current.props.start.getTime()+C),r=new Date(e.current.props.end.getTime()+C);return(0,c.setField)(t,y.start,n),(0,c.setField)(t,y.end,r),t})).filter(Boolean);f.current=S,v(r([],E,!0));break;case o.start:var w=t.payload.x,k=t.payload.y;if(d.current=w,p.current=k,!(S=(0,c.slotDive)(w,k,7)))return;if(a=(0,i.clone)(e.dataItem),l=S.getAttribute("data-slot-start"),h=(0,c.getField)(a,y.start),null===l)return;n.current=Number(l)-new Date(h).getTime();break;case o.drag:if(Math.abs(d.current-t.payload.x)<10&&Math.abs(p.current-t.payload.y)<10)return;var S;if(!(S=(0,c.slotDive)(t.payload.x,t.payload.y,7)))return;if(S===f.current)return;var O=(0,i.clone)(e.dataItem),D=(l=S.getAttribute("data-slot-start"),S.getAttribute("data-slot-group"));if(s="true"===S.getAttribute("data-slot-allday"),!e.ignoreIsAllDay&&s!==e.isAllDay)return;h=new Date((0,c.getField)(O,y.start));var x=new Date((0,c.getField)(O,y.end)).getTime()-h.getTime(),I=new Date(Number(l)-Number(n.current)),T=new Date(Number(l)-Number(n.current)+x),_=b.find((function(e){return e.index===Number(D)}));(0,c.setField)(O,y.start,I),(0,c.setField)(O,y.end,T),_&&b.length>1&&_.resources.forEach((function(e){e.multiple||(0,c.setField)(O,e.field,e[e.valueField])})),f.current=S,O&&v(O);break;case o.complete:v(null),e.onDataAction&&m&&e.onDataAction.call(void 0,{type:u.DATA_ACTION.update,series:!1,dataItem:m});break;case o.completeOccurrence:var R=Array.isArray(m)?m.slice():(0,i.clone)(m);v(null),e.onDataAction&&m&&e.onDataAction.call(void 0,{type:u.DATA_ACTION.update,series:!1,dataItem:R});break;case o.completeSeries:var M=void 0;if(Array.isArray(m))M=m.map((function(e){var t=(0,i.clone)(e);return(0,c.setField)(t,y.start,(0,c.getField)(e,y.start)),(0,c.setField)(t,y.end,(0,c.getField)(e,y.end)),t}));else{var P=(0,i.clone)(m);(0,c.setField)(P,y.start,(0,c.getField)(m,y.start)),(0,c.setField)(P,y.end,(0,c.getField)(m,y.end)),M=P}v(null),e.onDataAction&&M&&e.onDataAction.call(void 0,{type:u.DATA_ACTION.update,series:!0,dataItem:M});break;default:v(m)}}]}},9356:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useFormItem=t.FORM_ITEM_ACTION=void 0;var r,o=n(3865),i=n(7907),a=n(1995),l=n(4960),s=n(5538);!function(e){e.set="FORM_ITEM_SET",e.setMaster="FORM_ITEM_SET_MASTER",e.reset="FORM_ITEM_RESET",e.complete="FORM_ITEM_COMPLETE"}(r=t.FORM_ITEM_ACTION||(t.FORM_ITEM_ACTION={})),t.useFormItem=function(e,t){var n=a.useControlledState.apply(void 0,t),u=n[0],c=n[1],d=(0,i.useSchedulerFieldsContext)(),p=(0,i.useSchedulerDataContext)()[0];return[u,c,function(t,n){var i;switch(t.type){case r.set:i=t.payload;break;case r.reset:i=null;break;case r.setMaster:i=(0,o.clone)((0,s.findMaster)(t.payload,d,p));break;case r.complete:e.onDataAction&&u&&(e.onDataAction.call(void 0,{type:l.DATA_ACTION.update,series:e.series,dataItem:t.payload}),i=null);break;default:i=u}c(i,n)}]}},8858:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useRemoveItem=t.REMOVE_ITEM_ACTION=void 0;var r,o=n(1995),i=n(4960);!function(e){e.set="REMOVE_ITEM_SET",e.reset="REMOVE_ITEM_RESET",e.complete="REMOVE_ITEM_COMPLETE"}(r=t.REMOVE_ITEM_ACTION||(t.REMOVE_ITEM_ACTION={})),t.useRemoveItem=function(e,t){var n=o.useControlledState.apply(void 0,t),a=n[0],l=n[1];return[a,l,function(t){var n;switch(t.type){case r.set:n=t.payload;break;case r.reset:n=null;break;case r.complete:e.onDataAction&&a&&e.onDataAction.call(void 0,{type:i.DATA_ACTION.remove,series:e.series,dataItem:a}),n=null;break;default:n=a}l(n)}]}},624:function(e,t,n){var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.useResizeItem=t.RESIZE_ITEM_ACTION=void 0;var o,i=n(3865),a=n(3899),l=n(7907),s=n(1995),u=n(4960),c=n(5538);!function(e){e.set="RESIZE_ITEM_SET",e.start="RESIZE_ITEM_START",e.startDrag="RESIZE_ITEM_START_DRAG",e.startDragSelected="RESIZE_ITEM_START_DRAG_SELECTED",e.endDrag="RESIZE_ITEM_END_DRAG",e.endDragSelected="RESIZE_ITEM_END_DRAG_SELECTED",e.complete="RESIZE_ITEM_COMPLETE",e.completeOccurrence="RESIZE_ITEM_COMPLETE_OCCURRENCE",e.completeSeries="RESIZE_ITEM_COMPLETE_SERIES",e.reset="RESIZE_ITEM_RESET"}(o=t.RESIZE_ITEM_ACTION||(t.RESIZE_ITEM_ACTION={})),t.useResizeItem=function(e,t){var n=a.useRef(null),d=s.useControlledState.apply(void 0,t),p=d[0],f=d[1],h=(0,l.useSchedulerViewSelectedItemsContext)()[0],m=(0,l.useSchedulerFieldsContext)();return[p,f,function(t,a){var l=p;switch(t.type){case o.set:l=t.payload;break;case o.reset:l=null;break;case o.start:a.stopPropagation();var s=t.payload.x,d=t.payload.y;if(!(S=(0,c.slotDive)(s,d,7)))return;if(S===n.current)return;var v=S.getAttribute("data-slot-start"),g=new Date(Number(v)),y=(0,i.clone)(e.dataItem);if(g>=(0,c.getField)(y,m.end))return;(0,c.setField)(y,m.start,g),n.current=S,l=y;break;case o.startDragSelected:if(a.stopPropagation(),s=t.payload.x,d=t.payload.y,y=(0,i.clone)(e.dataItem),!(S=(0,c.slotDive)(s,d,7)))return;if(S===n.current)return;v=S.getAttribute("data-slot-start");var b=new Date((0,c.getField)(y,m.start)),C=(g=new Date(Number(v))).getTime()-b.getTime(),E=!1,w=h.map((function(e){if(!e.current)return null;var t=(0,i.clone)(e.current.props.dataItem),n=new Date(e.current.props.start.getTime()+C);if(!(n>=(0,c.getField)(t,m.end)))return(0,c.setField)(t,m.start,n),t;E=!0})).filter(Boolean);E||(l=r([],w,!0));break;case o.startDrag:if(s=t.payload.x,d=t.payload.y,!(S=(0,c.slotDive)(s,d,7)))return;if(S===n.current)return;if(v=S.getAttribute("data-slot-start"),(g=new Date(Number(v)))>=(y=(0,i.clone)(e.dataItem)).end)return;(0,c.setField)(y,m.start,g),n.current=S,l=y;break;case o.endDrag:if(s=t.payload.x,d=t.payload.y,!(S=(0,c.slotDive)(s,d,7)))return;if(S===n.current)return;var k=S.getAttribute("data-slot-end");if((O=new Date(Number(k)))<=(y=(0,i.clone)(e.dataItem)).start)return;(0,c.setField)(y,m.end,O),n.current=S,l=y;break;case o.endDragSelected:var S;if(a.stopPropagation(),s=t.payload.x,d=t.payload.y,y=(0,i.clone)(e.dataItem),!(S=(0,c.slotDive)(s,d,7)))return;if(S===n.current)return;k=S.getAttribute("data-slot-start");var O,D,x=new Date((0,c.getField)(y,m.end)),I=(O=new Date(Number(k))).getTime()-x.getTime();w=h.map((function(e){if(!e.current)return null;var t=(0,i.clone)(e.current.props.dataItem),n=new Date(e.current.props.end.getTime()+I);if(!(n<=(0,c.getField)(t,m.start)))return(0,c.setField)(t,m.end,n),t;D=!0})).filter(Boolean),D||(l=r([],w,!0));break;case o.complete:case o.completeOccurrence:l=null,e.onDataAction&&p&&e.onDataAction.call(void 0,{type:u.DATA_ACTION.update,series:!1,dataItem:p});break;case o.completeSeries:l=null;var T=void 0;if(Array.isArray(p))T=p.map((function(e){var t=(0,i.clone)(e);return(0,c.setField)(t,m.start,(0,c.getField)(e,m.start)),(0,c.setField)(t,m.end,(0,c.getField)(e,m.end)),t}));else{var _=(0,i.clone)(p);(0,c.setField)(_,m.start,(0,c.getField)(p,m.start)),(0,c.setField)(_,m.end,(0,c.getField)(p,m.end)),T=_}e.onDataAction&&T&&e.onDataAction.call(void 0,{type:u.DATA_ACTION.update,series:!0,dataItem:T});break;default:l=null}f(l)}]}},1611:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useSeries=t.SERIES_ACTION=void 0;var r,o=n(1995);!function(e){e.reset="SERIES_RESET",e.set="SERIES_SET",e.toggle="SERIES_TOGGLE"}(r=t.SERIES_ACTION||(t.SERIES_ACTION={})),t.useSeries=function(e,t,n){var i=(0,o.useControlledState)(e,t,n),a=i[0],l=i[1];return[a,l,function(e){var t=function(e,t){switch(t.type){case r.reset:return null;case r.set:return t.payload;case r.toggle:return!e;default:return e}}(a,e);l(t)}]}},7966:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useShowOccurrenceDialog=t.SHOW_OCCURRENCE_DIALOG_ACTION=void 0;var r,o=n(1995);!function(e){e.set="SHOW_OCCURRENCE_DIALOG_SET",e.open="SHOW_OCCURRENCE_DIALOG_OPEN",e.close="SHOW_OCCURRENCE_DIALOG_CLOSE",e.reset="SHOW_OCCURRENCE_DIALOG_RESET",e.toggle="SHOW_OCCURRENCE_DIALOG_TOGGLE"}(r=t.SHOW_OCCURRENCE_DIALOG_ACTION||(t.SHOW_OCCURRENCE_DIALOG_ACTION={})),t.useShowOccurrenceDialog=function(e,t,n){var i=(0,o.useControlledState)(e,t,n),a=i[0],l=i[1];return[a,l,function(e){var t=function(e,t){switch(t.type){case r.reset:return!1;case r.set:return t.payload;case r.open:return!0;case r.close:return!1;case r.toggle:return!e;default:return e}}(a,e);l(t)}]}},8569:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useShowRemoveDialog=t.SHOW_REMOVE_DIALOG_ACTION=void 0;var r,o=n(1995);!function(e){e.set="SHOW_REMOVE_DIALOG_SET",e.open="SHOW_REMOVE_DIALOG_OPEN",e.close="SHOW_REMOVE_DIALOG_CLOSE",e.reset="SHOW_REMOVE_DIALOG_RESET",e.toggle="SHOW_REMOVE_DIALOG_TOGGLE"}(r=t.SHOW_REMOVE_DIALOG_ACTION||(t.SHOW_REMOVE_DIALOG_ACTION={})),t.useShowRemoveDialog=function(e,t,n){var i=(0,o.useControlledState)(e,t,n),a=i[0],l=i[1];return[a,l,function(e){var t=function(e,t){switch(t.type){case r.reset:return!1;case r.set:return t.payload;case r.open:return!0;case r.close:return!1;case r.toggle:return!e;default:return e}}(a,e);l(t)}]}},468:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useSchedulerEditItemResizeItemContext=t.SchedulerEditItemResizeItemContext=t.useSchedulerEditItemRemoveItemContext=t.SchedulerEditItemRemoveItemContext=t.useSchedulerEditItemDragItemContext=t.SchedulerEditItemDragItemContext=t.useSchedulerEditItemFormItemContext=t.SchedulerEditItemFormItemContext=t.SchedulerRemoveDialog=t.SchedulerOccurrenceDialog=t.SchedulerFormEditor=t.SchedulerForm=t.SchedulerResize=t.SchedulerDrag=t.SchedulerEditTask=t.SchedulerViewTask=t.SchedulerTask=t.SchedulerEditSlot=t.SchedulerViewSlot=t.SchedulerSlot=t.SchedulerEditItem=t.SchedulerViewItem=t.SchedulerItemContent=t.SchedulerItem=t.useSchedulerDataContext=t.SchedulerDataContext=t.useSchedulerActiveViewContext=t.SchedulerActiveViewContext=t.useSchedulerDateContext=t.SchedulerDateContext=t.useSchedulerOrientationContext=t.SchedulerOrientationContext=t.useSchedulerDateRangeContext=t.SchedulerDateRangeContext=t.useSchedulerGroupsContext=t.SchedulerGroupsContext=t.useSchedulerFieldsContext=t.SchedulerFieldsContext=t.useSchedulerViewsContext=t.SchedulerViewsContext=t.useSchedulerPropsContext=t.SchedulerPropsContext=t.DATA_ACTION=t.MonthView=t.WorkWeekView=t.WeekView=t.DayView=t.TimelineView=t.AgendaView=t.Scheduler=void 0,t.SLOTS_SELECT_ACTION=t.SLOTS_FOCUS_ACTION=t.SHOW_REMOVE_DIALOG_ACTION=t.SHOW_OCCURRENCE_DIALOG_ACTION=t.SERIES_ACTION=t.RESIZE_ITEM_ACTION=t.REMOVE_ITEM_ACTION=t.ITEMS_SELECT_ACTION=t.ITEMS_FOCUS_ACTION=t.DRAG_ITEM_ACTION=t.TimeHeaderCell=t.DateHeaderCell=t.SchedulerFooter=t.SchedulerHeader=t.useSchedulerEditSlotPropsContext=t.SchedulerEditSlotPropsContext=t.useSchedulerEditSlotFormItemContext=t.SchedulerEditSlotFormItemContext=t.useSchedulerEditItemPropsContext=t.SchedulerEditItemPropsContext=t.useSchedulerEditItemShowOccurrenceDialogContext=t.SchedulerEditItemShowOccurrenceDialogContext=t.useSchedulerEditItemShowRemoveDialogContext=t.SchedulerEditItemShowRemoveDialogContext=void 0;var r=n(4960);Object.defineProperty(t,"Scheduler",{enumerable:!0,get:function(){return r.Scheduler}}),Object.defineProperty(t,"DATA_ACTION",{enumerable:!0,get:function(){return r.DATA_ACTION}});var o=n(7389);Object.defineProperty(t,"AgendaView",{enumerable:!0,get:function(){return o.AgendaView}});var i=n(97);Object.defineProperty(t,"TimelineView",{enumerable:!0,get:function(){return i.TimelineView}});var a=n(6469);Object.defineProperty(t,"DayView",{enumerable:!0,get:function(){return a.DayView}});var l=n(3750);Object.defineProperty(t,"WeekView",{enumerable:!0,get:function(){return l.WeekView}});var s=n(385);Object.defineProperty(t,"WorkWeekView",{enumerable:!0,get:function(){return s.WorkWeekView}});var u=n(5363);Object.defineProperty(t,"MonthView",{enumerable:!0,get:function(){return u.MonthView}});var c=n(7285);Object.defineProperty(t,"SchedulerItem",{enumerable:!0,get:function(){return c.SchedulerItem}});var d=n(8952);Object.defineProperty(t,"SchedulerItemContent",{enumerable:!0,get:function(){return d.SchedulerItemContent}});var p=n(6612);Object.defineProperty(t,"SchedulerViewItem",{enumerable:!0,get:function(){return p.SchedulerViewItem}});var f=n(9299);Object.defineProperty(t,"SchedulerEditItem",{enumerable:!0,get:function(){return f.SchedulerEditItem}});var h=n(8125);Object.defineProperty(t,"SchedulerSlot",{enumerable:!0,get:function(){return h.SchedulerSlot}});var m=n(4850);Object.defineProperty(t,"SchedulerViewSlot",{enumerable:!0,get:function(){return m.SchedulerViewSlot}});var v=n(6604);Object.defineProperty(t,"SchedulerEditSlot",{enumerable:!0,get:function(){return v.SchedulerEditSlot}});var g=n(273);Object.defineProperty(t,"SchedulerTask",{enumerable:!0,get:function(){return g.SchedulerTask}});var y=n(4771);Object.defineProperty(t,"SchedulerViewTask",{enumerable:!0,get:function(){return y.SchedulerViewTask}});var b=n(3188);Object.defineProperty(t,"SchedulerEditTask",{enumerable:!0,get:function(){return b.SchedulerEditTask}});var C=n(3642);Object.defineProperty(t,"SchedulerDrag",{enumerable:!0,get:function(){return C.SchedulerDrag}});var E=n(3999);Object.defineProperty(t,"SchedulerResize",{enumerable:!0,get:function(){return E.SchedulerResize}});var w=n(3540);Object.defineProperty(t,"SchedulerForm",{enumerable:!0,get:function(){return w.SchedulerForm}});var k=n(4693);Object.defineProperty(t,"SchedulerFormEditor",{enumerable:!0,get:function(){return k.SchedulerFormEditor}});var S=n(6809);Object.defineProperty(t,"SchedulerOccurrenceDialog",{enumerable:!0,get:function(){return S.SchedulerOccurrenceDialog}});var O=n(7160);Object.defineProperty(t,"SchedulerRemoveDialog",{enumerable:!0,get:function(){return O.SchedulerRemoveDialog}});var D=n(352);Object.defineProperty(t,"SchedulerHeader",{enumerable:!0,get:function(){return D.SchedulerHeader}});var x=n(8929);Object.defineProperty(t,"DateHeaderCell",{enumerable:!0,get:function(){return x.DateHeaderCell}});var I=n(4603);Object.defineProperty(t,"TimeHeaderCell",{enumerable:!0,get:function(){return I.TimeHeaderCell}});var T=n(6763);Object.defineProperty(t,"SchedulerFooter",{enumerable:!0,get:function(){return T.SchedulerFooter}});var _=n(7907);Object.defineProperty(t,"SchedulerPropsContext",{enumerable:!0,get:function(){return _.SchedulerPropsContext}}),Object.defineProperty(t,"useSchedulerPropsContext",{enumerable:!0,get:function(){return _.useSchedulerPropsContext}}),Object.defineProperty(t,"SchedulerViewsContext",{enumerable:!0,get:function(){return _.SchedulerViewsContext}}),Object.defineProperty(t,"useSchedulerViewsContext",{enumerable:!0,get:function(){return _.useSchedulerViewsContext}}),Object.defineProperty(t,"SchedulerFieldsContext",{enumerable:!0,get:function(){return _.SchedulerFieldsContext}}),Object.defineProperty(t,"useSchedulerFieldsContext",{enumerable:!0,get:function(){return _.useSchedulerFieldsContext}}),Object.defineProperty(t,"SchedulerGroupsContext",{enumerable:!0,get:function(){return _.SchedulerGroupsContext}}),Object.defineProperty(t,"useSchedulerGroupsContext",{enumerable:!0,get:function(){return _.useSchedulerGroupsContext}}),Object.defineProperty(t,"SchedulerDateRangeContext",{enumerable:!0,get:function(){return _.SchedulerDateRangeContext}}),Object.defineProperty(t,"useSchedulerDateRangeContext",{enumerable:!0,get:function(){return _.useSchedulerDateRangeContext}}),Object.defineProperty(t,"SchedulerOrientationContext",{enumerable:!0,get:function(){return _.SchedulerOrientationContext}}),Object.defineProperty(t,"useSchedulerOrientationContext",{enumerable:!0,get:function(){return _.useSchedulerOrientationContext}}),Object.defineProperty(t,"SchedulerDateContext",{enumerable:!0,get:function(){return _.SchedulerDateContext}}),Object.defineProperty(t,"useSchedulerDateContext",{enumerable:!0,get:function(){return _.useSchedulerDateContext}}),Object.defineProperty(t,"SchedulerActiveViewContext",{enumerable:!0,get:function(){return _.SchedulerActiveViewContext}}),Object.defineProperty(t,"useSchedulerActiveViewContext",{enumerable:!0,get:function(){return _.useSchedulerActiveViewContext}}),Object.defineProperty(t,"SchedulerDataContext",{enumerable:!0,get:function(){return _.SchedulerDataContext}}),Object.defineProperty(t,"useSchedulerDataContext",{enumerable:!0,get:function(){return _.useSchedulerDataContext}}),Object.defineProperty(t,"SchedulerEditItemFormItemContext",{enumerable:!0,get:function(){return _.SchedulerEditItemFormItemContext}}),Object.defineProperty(t,"useSchedulerEditItemFormItemContext",{enumerable:!0,get:function(){return _.useSchedulerEditItemFormItemContext}}),Object.defineProperty(t,"SchedulerEditItemDragItemContext",{enumerable:!0,get:function(){return _.SchedulerEditItemDragItemContext}}),Object.defineProperty(t,"useSchedulerEditItemDragItemContext",{enumerable:!0,get:function(){return _.useSchedulerEditItemDragItemContext}}),Object.defineProperty(t,"SchedulerEditItemRemoveItemContext",{enumerable:!0,get:function(){return _.SchedulerEditItemRemoveItemContext}}),Object.defineProperty(t,"useSchedulerEditItemRemoveItemContext",{enumerable:!0,get:function(){return _.useSchedulerEditItemRemoveItemContext}}),Object.defineProperty(t,"SchedulerEditItemResizeItemContext",{enumerable:!0,get:function(){return _.SchedulerEditItemResizeItemContext}}),Object.defineProperty(t,"useSchedulerEditItemResizeItemContext",{enumerable:!0,get:function(){return _.useSchedulerEditItemResizeItemContext}}),Object.defineProperty(t,"SchedulerEditItemShowRemoveDialogContext",{enumerable:!0,get:function(){return _.SchedulerEditItemShowRemoveDialogContext}}),Object.defineProperty(t,"useSchedulerEditItemShowRemoveDialogContext",{enumerable:!0,get:function(){return _.useSchedulerEditItemShowRemoveDialogContext}}),Object.defineProperty(t,"SchedulerEditItemShowOccurrenceDialogContext",{enumerable:!0,get:function(){return _.SchedulerEditItemShowOccurrenceDialogContext}}),Object.defineProperty(t,"useSchedulerEditItemShowOccurrenceDialogContext",{enumerable:!0,get:function(){return _.useSchedulerEditItemShowOccurrenceDialogContext}}),Object.defineProperty(t,"SchedulerEditItemPropsContext",{enumerable:!0,get:function(){return _.SchedulerEditItemPropsContext}}),Object.defineProperty(t,"useSchedulerEditItemPropsContext",{enumerable:!0,get:function(){return _.useSchedulerEditItemPropsContext}}),Object.defineProperty(t,"SchedulerEditSlotPropsContext",{enumerable:!0,get:function(){return _.SchedulerEditSlotPropsContext}}),Object.defineProperty(t,"useSchedulerEditSlotPropsContext",{enumerable:!0,get:function(){return _.useSchedulerEditSlotPropsContext}}),Object.defineProperty(t,"SchedulerEditSlotFormItemContext",{enumerable:!0,get:function(){return _.SchedulerEditSlotFormItemContext}}),Object.defineProperty(t,"useSchedulerEditSlotFormItemContext",{enumerable:!0,get:function(){return _.useSchedulerEditSlotFormItemContext}});var R=n(9593);Object.defineProperty(t,"DRAG_ITEM_ACTION",{enumerable:!0,get:function(){return R.DRAG_ITEM_ACTION}});var M=n(8586);Object.defineProperty(t,"ITEMS_FOCUS_ACTION",{enumerable:!0,get:function(){return M.ITEMS_FOCUS_ACTION}}),Object.defineProperty(t,"SLOTS_FOCUS_ACTION",{enumerable:!0,get:function(){return M.SLOTS_FOCUS_ACTION}});var P=n(1365);Object.defineProperty(t,"ITEMS_SELECT_ACTION",{enumerable:!0,get:function(){return P.ITEMS_SELECT_ACTION}});var N=n(8858);Object.defineProperty(t,"REMOVE_ITEM_ACTION",{enumerable:!0,get:function(){return N.REMOVE_ITEM_ACTION}});var F=n(624);Object.defineProperty(t,"RESIZE_ITEM_ACTION",{enumerable:!0,get:function(){return F.RESIZE_ITEM_ACTION}});var A=n(1611);Object.defineProperty(t,"SERIES_ACTION",{enumerable:!0,get:function(){return A.SERIES_ACTION}});var j=n(7966);Object.defineProperty(t,"SHOW_OCCURRENCE_DIALOG_ACTION",{enumerable:!0,get:function(){return j.SHOW_OCCURRENCE_DIALOG_ACTION}});var L=n(8569);Object.defineProperty(t,"SHOW_REMOVE_DIALOG_ACTION",{enumerable:!0,get:function(){return L.SHOW_REMOVE_DIALOG_ACTION}});var V=n(2334);Object.defineProperty(t,"SLOTS_SELECT_ACTION",{enumerable:!0,get:function(){return V.SLOTS_SELECT_ACTION}})},3364:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.recurrenceEditorOffsetPositionsFirst=t.recurrenceEditorFrequenciesYearly=t.recurrenceEditorFrequenciesWeekly=t.recurrenceEditorFrequenciesNever=t.recurrenceEditorFrequenciesMonthly=t.recurrenceEditorFrequenciesDaily=t.recurrenceEditorYearlyInterval=t.recurrenceEditorYearlyRepeatOn=t.recurrenceEditorYearlyRepeatEvery=t.recurrenceEditorYearlyOf=t.recurrenceEditorMonthlyRepeatOn=t.recurrenceEditorMonthlyRepeatEvery=t.recurrenceEditorMonthlyInterval=t.recurrenceEditorMonthlyDay=t.recurrenceEditorWeeklyRepeatOn=t.recurrenceEditorWeeklyRepeatEvery=t.recurrenceEditorWeeklyInterval=t.recurrenceEditorDailyRepeatEvery=t.recurrenceEditorDailyInterval=t.recurrenceEditorRepeat=t.editorEventTimeZone=t.editorEventSeparateTimeZones=t.editorEventDescription=t.editorEventAllDay=t.editorEventEndTimeZone=t.editorEventEnd=t.editorEventStartTimeZone=t.editorEventStart=t.editorEventTitle=t.editorTitle=t.editorCancel=t.editorSave=t.editorRecurringDialogTitle=t.editorRecurringConfirmation=t.editorSeries=t.editorOccurrence=t.showWorkDay=t.showFullDay=t.nextTitle=t.previousTitle=t.deleteTitle=t.monthViewTitle=t.dayViewTitle=t.agendaViewTitle=t.workWeekViewTitle=t.weekViewTitle=t.timelineViewTitle=t.today=t.allDay=t.allEvents=void 0,t.messages=t.noEvents=t.editorValidationEnd=t.editorValidationStart=t.editorValidationRequired=t.eventTitle=t.timeTitle=t.dateTitle=t.deleteRecurringDialogTitle=t.deleteDialogTitle=t.deleteSeries=t.deleteOccurrence=t.deleteRecurringConfirmation=t.deleteConfirmation=t.editorDelete=t.recurrenceEditorEndOn=t.recurrenceEditorEndNever=t.recurrenceEditorEndLabel=t.recurrenceEditorEndOccurrence=t.recurrenceEditorEndAfter=t.recurrenceEditorWeekdaysWeekendday=t.recurrenceEditorWeekdaysWeekday=t.recurrenceEditorWeekdaysDay=t.recurrenceEditorOffsetPositionsLast=t.recurrenceEditorOffsetPositionsFourth=t.recurrenceEditorOffsetPositionsThird=t.recurrenceEditorOffsetPositionsSecond=void 0,t.allEvents="scheduler.allEvents",t.allDay="scheduler.allDay",t.today="scheduler.today",t.timelineViewTitle="scheduler.timelineViewTitle",t.weekViewTitle="scheduler.weekViewTitle",t.workWeekViewTitle="scheduler.workWeekViewTitle",t.agendaViewTitle="scheduler.agendaViewTitle",t.dayViewTitle="scheduler.dayViewTitle",t.monthViewTitle="scheduler.monthViewTitle",t.deleteTitle="scheduler.deleteTitle",t.previousTitle="scheduler.previousTitle",t.nextTitle="scheduler.nextTitle",t.showFullDay="scheduler.showFullDay",t.showWorkDay="scheduler.showWorkDay",t.editorOccurrence="scheduler.editOccurrence",t.editorSeries="scheduler.editSeries",t.editorRecurringConfirmation="scheduler.editRecurringConfirmation",t.editorRecurringDialogTitle="scheduler.editRecurringDialogTitle",t.editorSave="scheduler.editSave",t.editorCancel="scheduler.editCancel",t.editorTitle="scheduler.editorTitle",t.editorEventTitle="scheduler.editorEventTitle",t.editorEventStart="scheduler.editorEventStart",t.editorEventStartTimeZone="scheduler.editorEventStartTimeZone",t.editorEventEnd="scheduler.editorEventEnd",t.editorEventEndTimeZone="scheduler.editorEventEndTimeZone",t.editorEventAllDay="scheduler.editorEventAllDay",t.editorEventDescription="scheduler.editorEventDescription",t.editorEventSeparateTimeZones="scheduler.editorEventSeparateTimeZones",t.editorEventTimeZone="scheduler.editorEventTimeZone",t.recurrenceEditorRepeat="scheduler.recurrenceEditorRepeat",t.recurrenceEditorDailyInterval="scheduler.recurrenceEditorDailyInterval",t.recurrenceEditorDailyRepeatEvery="scheduler.recurrenceEditorDailyRepeatEvery",t.recurrenceEditorWeeklyInterval="scheduler.recurrenceEditorWeeklyInterval",t.recurrenceEditorWeeklyRepeatEvery="scheduler.recurrenceEditorWeeklyRepeatEvery",t.recurrenceEditorWeeklyRepeatOn="scheduler.recurrenceEditorWeeklyRepeatOn",t.recurrenceEditorMonthlyDay="scheduler.recurrenceEditorMonthlyDay",t.recurrenceEditorMonthlyInterval="scheduler.recurrenceEditorMonthlyInterval",t.recurrenceEditorMonthlyRepeatEvery="scheduler.recurrenceEditorMonthlyRepeatEvery",t.recurrenceEditorMonthlyRepeatOn="scheduler.recurrenceEditorMonthlyRepeatOn",t.recurrenceEditorYearlyOf="scheduler.recurrenceEditorYearlyOf",t.recurrenceEditorYearlyRepeatEvery="scheduler.recurrenceEditorYearlyRepeatEvery",t.recurrenceEditorYearlyRepeatOn="scheduler.recurrenceEditorYearlyRepeatOn",t.recurrenceEditorYearlyInterval="scheduler.recurrenceEditorYearlyInterval",t.recurrenceEditorFrequenciesDaily="scheduler.recurrenceEditorFrequenciesDaily",t.recurrenceEditorFrequenciesMonthly="scheduler.recurrenceEditorFrequenciesMonthly",t.recurrenceEditorFrequenciesNever="scheduler.recurrenceEditorFrequenciesNever",t.recurrenceEditorFrequenciesWeekly="scheduler.recurrenceEditorFrequenciesWeekly",t.recurrenceEditorFrequenciesYearly="scheduler.recurrenceEditorFrequenciesYearly",t.recurrenceEditorOffsetPositionsFirst="scheduler.recurrenceEditorOffsetPositionsFirst",t.recurrenceEditorOffsetPositionsSecond="scheduler.recurrenceEditorOffsetPositionsSecond",t.recurrenceEditorOffsetPositionsThird="scheduler.recurrenceEditorOffsetPositionsThird",t.recurrenceEditorOffsetPositionsFourth="scheduler.recurrenceEditorOffsetPositionsFourth",t.recurrenceEditorOffsetPositionsLast="scheduler.recurrenceEditorOffsetPositionsLast",t.recurrenceEditorWeekdaysDay="scheduler.recurrenceEditorWeekdaysDay",t.recurrenceEditorWeekdaysWeekday="scheduler.recurrenceEditorWeekdaysWeekday",t.recurrenceEditorWeekdaysWeekendday="scheduler.recurrenceEditorWeekdaysWeekendday",t.recurrenceEditorEndAfter="scheduler.recurrenceEditorEndAfter",t.recurrenceEditorEndOccurrence="scheduler.recurrenceEditorEndOccurrence",t.recurrenceEditorEndLabel="scheduler.recurrenceEditorEndLabel",t.recurrenceEditorEndNever="scheduler.recurrenceEditorEndNever",t.recurrenceEditorEndOn="scheduler.recurrenceEditorEndOn",t.editorDelete="scheduler.editorDelete",t.deleteConfirmation="scheduler.deleteConfirmation",t.deleteRecurringConfirmation="scheduler.deleteRecurringConfirmation",t.deleteOccurrence="scheduler.deleteOccurrence",t.deleteSeries="scheduler.deleteSeries",t.deleteDialogTitle="scheduler.deleteDialogTitle",t.deleteRecurringDialogTitle="scheduler.deleteRecurringDialogTitle",t.dateTitle="scheduler.dateTitle",t.timeTitle="scheduler.timeTitle",t.eventTitle="scheduler.eventTitle",t.editorValidationRequired="scheduler.editorValidationRequired",t.editorValidationStart="scheduler.editorValidationStart",t.editorValidationEnd="scheduler.editorValidationEnd",t.noEvents="scheduler.noEvents",t.messages=((n={})[t.editorValidationRequired]="Field is required.",n[t.editorValidationStart]="Start time must be be before End time.",n[t.editorValidationEnd]="End time must be after Start time.",n[t.allEvents]="All events",n[t.allDay]="all day",n[t.today]="Today",n[t.dayViewTitle]="Day",n[t.monthViewTitle]="Month",n[t.weekViewTitle]="Week",n[t.workWeekViewTitle]="Work Week",n[t.timelineViewTitle]="Timeline",n[t.agendaViewTitle]="Agenda",n[t.deleteTitle]="Delete",n[t.previousTitle]="Previous",n[t.nextTitle]="Next",n[t.showFullDay]="Show full day",n[t.showWorkDay]="Show business hours",n[t.editorOccurrence]="Edit current occurrence",n[t.editorSeries]="Edit the series",n[t.editorRecurringConfirmation]="Do you want to edit only this event occurrence or the whole series?",n[t.editorRecurringDialogTitle]="Edit Recurring Item",n[t.editorSave]="Save",n[t.editorCancel]="Cancel",n[t.editorDelete]="Delete",n[t.editorTitle]="Event",n[t.editorEventTitle]="Title",n[t.editorEventStart]="Start",n[t.editorEventStartTimeZone]="Start Time Zone",n[t.editorEventEnd]="End",n[t.editorEventEndTimeZone]="End Time Zone",n[t.editorEventAllDay]="All Day Event",n[t.editorEventDescription]="Description",n[t.editorEventSeparateTimeZones]="End in different Time Zone",n[t.editorEventTimeZone]="Specify Time Zone",n[t.recurrenceEditorRepeat]="Repeat",n[t.recurrenceEditorDailyInterval]="day(s)",n[t.recurrenceEditorDailyRepeatEvery]="Repeat every",n[t.recurrenceEditorWeeklyInterval]="week(s)",n[t.recurrenceEditorWeeklyRepeatEvery]="Repeat every",n[t.recurrenceEditorWeeklyRepeatOn]="Repeat on",n[t.recurrenceEditorMonthlyDay]="Day",n[t.recurrenceEditorMonthlyInterval]="month(s)",n[t.recurrenceEditorMonthlyRepeatEvery]="Repeat every",n[t.recurrenceEditorMonthlyRepeatOn]="Repeat on",n[t.recurrenceEditorYearlyOf]="of",n[t.recurrenceEditorYearlyRepeatEvery]="Repeat every",n[t.recurrenceEditorYearlyRepeatOn]="Repeat on",n[t.recurrenceEditorYearlyInterval]="year(s)",n[t.recurrenceEditorFrequenciesDaily]="Daily",n[t.recurrenceEditorFrequenciesMonthly]="Monthly",n[t.recurrenceEditorFrequenciesNever]="Never",n[t.recurrenceEditorFrequenciesWeekly]="Weekly",n[t.recurrenceEditorFrequenciesYearly]="Yearly",n[t.recurrenceEditorOffsetPositionsFirst]="First",n[t.recurrenceEditorOffsetPositionsSecond]="Second",n[t.recurrenceEditorOffsetPositionsThird]="Third",n[t.recurrenceEditorOffsetPositionsFourth]="Fourth",n[t.recurrenceEditorOffsetPositionsLast]="Last",n[t.recurrenceEditorWeekdaysDay]="Day",n[t.recurrenceEditorWeekdaysWeekday]="Weekday",n[t.recurrenceEditorWeekdaysWeekendday]="Weekend Day",n[t.recurrenceEditorEndAfter]="After",n[t.recurrenceEditorEndOccurrence]="occurrence(s)",n[t.recurrenceEditorEndLabel]="End",n[t.recurrenceEditorEndNever]="Never",n[t.recurrenceEditorEndOn]="On",n[t.deleteConfirmation]="Are you sure you want to delete this event?",n[t.deleteRecurringConfirmation]="Do you want to delete only this event occurrence or the whole series?",n[t.deleteOccurrence]="Delete current occurrence",n[t.deleteSeries]="Delete the series",n[t.deleteDialogTitle]="Delete Event",n[t.deleteRecurringDialogTitle]="Delete Recurring Item",n[t.dateTitle]="Date",n[t.timeTitle]="Time",n[t.eventTitle]="Event",n[t.noEvents]="no events",n)},7363:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata=void 0,t.packageMetadata={name:"@progress/kendo-react-scheduler",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1656315878,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"}},245:function(e,t,n){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},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.RecurrenceEditor=void 0;var o=n(3899),i=n(499),a=n(3364),l=n(1025),s=n(619),u=n(9285),c=n(6692),d=n(1690),p=n(884),f=n(3390),h=n(865),m=n(8138),v=n(7907);t.RecurrenceEditor=function(e){var t=(0,i.useInternationalization)(),n=(0,i.useLocalization)(),r=(0,v.useSchedulerPropsContext)().timezone,y=o.useState(1),b=y[0],C=y[1],E=o.useState(s.ZonedDate.fromUTCDate(e.start)),w=E[0],k=E[1],S=o.useCallback((function(e,t){var r=t?e:"scheduler.recurrenceEditor"+e;return n.toLanguageString(r,a.messages[r])}),[n]),O=o.useMemo((function(){return(0,d.getRule)(e.value)}),[e.value]),D=o.useMemo((function(){return(0,d.getFrequencies)(S)}),[S]),x=o.useMemo((function(){return(0,d.getFrequency)(O)}),[O]),I=o.useMemo((function(){return(0,d.getExtendedWeekDays)(t,S)}),[t,S]),T=o.useMemo((function(){return(0,d.getWeekDay)(I,O,e.start)}),[I,O,e.start]),_=o.useMemo((function(){return(0,d.getMonths)(t)}),[t]),R=o.useMemo((function(){return(0,d.getMonth)(_,O)}),[_,O]),M=o.useMemo((function(){return(0,d.getOffsets)(S)}),[S]),P=o.useMemo((function(){return(0,d.getOffset)(M,O)}),[M,O]),N=o.useMemo((function(){return(0,d.getEndRule)(O)}),[O]),F=o.useMemo((function(){return(0,d.getMonthDay)(O,e.start)}),[O,e.start]),A=o.useMemo((function(){return(0,d.getUntil)(O)}),[O.until]),j=o.useMemo((function(){return(0,d.getWeekDays)(t)}),[t]),L=o.useMemo((function(){return(0,d.getRepeatOnRule)(O)}),[O.byWeekDay,O.byMonthDay]),V=o.useCallback((function(n){"never"===n.freq?e.onChange({value:null}):(void 0===n.weekStart&&(n.weekStart=t.firstDay()),e.onChange({value:(0,l.serializeRule)(n,e.timezone)}))}),[e.onChange,e.timezone]),z=o.useCallback((function(t){var n={};n.freq=t,n.interval=1,"weekly"===t&&(n.byWeekDay=[{day:s.ZonedDate.fromLocalDate(e.start,r).getDay(),offset:0}]),"monthly"!==t&&"yearly"!==t||(n.byMonthDay=[e.start.getDate()]),"yearly"===t&&(n.byMonth=[e.start.getMonth()+1]),V(n)}),[V,e.start,r]),B=o.useCallback((function(e){var t=e.value;V(Object.assign({},O,{interval:t}))}),[V,O]),H=o.useCallback((function(e){var t=e.value;V(Object.assign({},O,{count:t})),null!==t&&C(t)}),[V,O]),U=o.useCallback((function(t){var n=t.value;if(n){var r=s.ZonedDate.fromLocalDate(n,e.timezone);V(Object.assign({},O,{until:r})),k(r)}}),[V,O,e.timezone]),W=o.useCallback((function(e){V(Object.assign({},O,{byWeekDay:j.filter((function(t){return e.some((function(e){return e===t.value}))})).map((function(e){return{offset:0,day:e.value}}))}))}),[V,O,j]),K=o.useCallback((function(e){var t=Object.assign({},O),n=e.target.value;"string"==typeof n.value?(t.byWeekDay=(0,d.weekDayRuleFromString)(n.value),t.bySetPosition=[P.value]):t.byWeekDay=[{day:n.value,offset:P.value}],V(t)}),[V,O]),q=o.useCallback((function(e){V(Object.assign({},O,{byMonthDay:[e.value]}))}),[V,O]),Y=o.useCallback((function(e){var t=e.value;V(Object.assign({},O,{byMonth:[t.value]}))}),[V,O]),G=o.useCallback((function(e){var t=e.value,n=Object.assign({},O);switch(t){case"never":n.until=void 0,n.count=void 0;break;case"count":n.until=void 0,n.count=b;break;case"until":n.until=w,n.count=void 0}V(n)}),[V,O,e.timezone]),Z=o.useCallback((function(e){var t=Object.assign({},O);"monthday"===e.value?(t.byWeekDay=void 0,t.bySetPosition=void 0,t.byMonthDay=[F]):"weekday"===e.value&&(t.byMonthDay=void 0,"string"==typeof T.value?(t.bySetPosition=[P.value],t.byWeekDay=(0,d.weekDayRuleFromString)(T.value)):t.byWeekDay=[{day:T.value,offset:P.value}]),V(t)}),[V,O,F,T]),X=o.useCallback((function(e){var t=Object.assign({},O),n=e.value;if(t.byWeekDay)switch(t.byWeekDay.length){case 7:case 5:case 2:t.bySetPosition=[n.value];break;case 1:t.byWeekDay[0].offset=n.value}V(t)}),[V,O]);return o.createElement(o.Fragment,null,o.createElement("div",{className:"k-form-field"},o.createElement(p.Label,null,n.toLanguageString(a.recurrenceEditorRepeat,a.messages[a.recurrenceEditorRepeat])),o.createElement("div",{className:"k-form-field-wrap"},o.createElement(u.RecurrenceFrequencyEditor,{value:x,data:D,onChange:z}))),"never"!==x&&o.createElement("div",{className:"k-form-field"},o.createElement(p.Label,{editorId:"interval-editor"},S((0,d.capitalize)(x)+"RepeatEvery")),o.createElement("div",{className:"k-form-field-wrap"},o.createElement("div",{style:{display:"flex",alignItems:"center"}},o.createElement(f.NumericTextBox,{min:1,step:1,defaultValue:1,value:O.interval,onChange:B,id:"interval-editor"})," ",o.createElement(p.Label,{editorId:"interval-editor"},S((0,d.capitalize)(x)+"Interval"))))),"weekly"===x&&o.createElement("div",{className:"k-form-field"},o.createElement(p.Label,null,S(a.recurrenceEditorWeeklyRepeatOn,!0)),o.createElement("div",{className:"k-form-field-wrap"},o.createElement(c.RecurrenceRepeatOnWeekEditor,{data:j,value:(O.byWeekDay||[]).map((function(e){return e.day})),onChange:W}))),"monthly"===x&&o.createElement("div",{className:"k-form-field"},o.createElement(p.Label,{key:"recurrence-repeat-on-monthly-label"},S(a.recurrenceEditorMonthlyRepeatOn,!0)),o.createElement("div",{className:"k-form-field-wrap"},o.createElement(f.RadioGroup,{value:L,onChange:Z,item:g,className:"k-reset",data:[{value:"monthday",label:S(a.recurrenceEditorMonthlyDay,!0),children:[o.createElement(o.Fragment,{key:"separator"}," "),o.createElement(f.NumericTextBox,{key:"weekday-day",min:1,max:31,disabled:"monthday"!==L,value:O&&O.byMonthDay&&O.byMonthDay[0],onChange:q,width:"auto"})]},{value:"weekday",label:" ",children:[o.createElement(h.DropDownList,{key:"weekday-offset",textField:"text",dataItemKey:"value",disabled:"weekday"!==L,data:M,value:P,onChange:X,style:{width:"auto"}}),o.createElement(o.Fragment,{key:"separator"}," "),o.createElement(h.DropDownList,{key:"weekday-value",disabled:"weekday"!==L,value:T,data:I,onChange:K,textField:"text",dataItemKey:"value",style:{width:"auto"}})]}]}))),"yearly"===x&&o.createElement("div",{className:"k-form-field"},o.createElement(p.Label,null,S(a.recurrenceEditorYearlyRepeatOn,!0)),o.createElement("div",{className:"k-form-field-wrap"},o.createElement(f.RadioGroup,{value:L,item:g,onChange:Z,className:"k-reset",data:[{value:"monthday",label:" ",children:[o.createElement(h.DropDownList,{key:"monthday-month",disabled:"monthday"!==L,value:R,data:_,textField:"text",dataItemKey:"value",onChange:Y,style:{width:"auto"}}),o.createElement(o.Fragment,{key:"separator"}," "),o.createElement(f.NumericTextBox,{key:"monthday-day",min:1,max:31,disabled:"monthday"!==L,value:F,onChange:q,width:"auto"})]},{value:"weekday",label:" ",children:[o.createElement(h.DropDownList,{key:"yearly-weekday-offset",textField:"text",dataItemKey:"value",disabled:"weekday"!==L,data:M,value:P,onChange:X,style:{width:"auto"}}),o.createElement(o.Fragment,{key:"yearly-separator-1"}," "),o.createElement(h.DropDownList,{key:"yearly-weekday-day",textField:"text",dataItemKey:"value",disabled:"weekday"!==L,value:T,data:I,onChange:K,style:{width:"auto"}}),o.createElement(o.Fragment,{key:"yearly-separator-2"}," "),o.createElement("span",{key:"yearly-weekday-of-label"},S(a.recurrenceEditorYearlyOf,!0)," "),o.createElement(o.Fragment,{key:"yearly-separator-3"}," "),o.createElement(h.DropDownList,{key:"yearly-weekday-month",textField:"text",dataItemKey:"value",disabled:"weekday"!==L,value:R,data:_,onChange:Y,style:{width:"auto"}})]}]}))),"never"!==x&&o.createElement("div",{className:"k-form-field"},o.createElement(p.Label,null,S(a.recurrenceEditorEndLabel,!0)),o.createElement("div",{className:"k-form-field-wrap"},o.createElement(f.RadioGroup,{item:g,value:N,onChange:G,data:[{value:"never",label:S(a.recurrenceEditorEndNever,!0)},{value:"count",label:S(a.recurrenceEditorEndAfter,!0),children:[o.createElement(o.Fragment,{key:"separator-1"}," "),o.createElement(f.NumericTextBox,{key:"endrule-after-editor",id:"k-endrule-after",min:1,width:"70px",value:"count"===N?O.count:b,onChange:H,disabled:"count"!==N}),o.createElement(o.Fragment,{key:"separator-2"}," "),o.createElement(p.Label,{key:"endrule-after-label",className:"k-radio-label",editorId:"k-endrule-after"},S(a.recurrenceEditorEndOccurrence,!0))]},{value:"until",label:S(a.recurrenceEditorEndOn,!0),children:[o.createElement(o.Fragment,{key:"separator"}," "),o.createElement(m.DatePicker,{key:"k-endrule-until-editor",id:"k-endrule-until",disabled:"until"!==N,min:e.start,value:"until"===N?A:(0,s.toLocalDate)(w),onChange:U,width:"auto"})]}]}))))};var g=function(e){return o.createElement("li",r({},e,{style:{display:"flex",alignItems:"center",minHeight:30}}),e.children)};t.RecurrenceEditor.defaultProps={value:""},t.RecurrenceEditor.displayName="KendoReactSchedulerRepeatEditor"},9285:function(e,t,n){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},r.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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.RecurrenceFrequencyEditor=void 0;var i=n(3899),a=n(2888);t.RecurrenceFrequencyEditor=function(e){var t=e.value,n=e.data,l=e.onChange,s=o(e,["value","data","onChange"]),u=i.useCallback((function(e){l&&l.call(void 0,e.currentTarget.dataset.value)}),[l]);return i.createElement(a.ButtonGroup,r({width:"100%"},s),n.map((function(e){return i.createElement(a.Button,{type:"button",key:e.value,selected:e.value===t,onClick:u,"data-value":e.value,togglable:!0},e.text)})))}},6692:function(e,t,n){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},r.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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},i=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.RecurrenceRepeatOnWeekEditor=void 0;var a=n(3899),l=n(2888),s=n(1690);t.RecurrenceRepeatOnWeekEditor=function(e){var t=r(r({},u),e),n=t.value,c=(t.data,t.onChange,o(t,["value","data","onChange"])),d=function(t){var r=Number(t.currentTarget.dataset.key);e.onChange&&e.onChange.call(void 0,n.some((function(e){return e===r}))?n.filter((function(e){return e!==r})):i(i([],n,!0),[r],!1))};return a.createElement(a.Fragment,null,a.createElement(l.ButtonGroup,r({width:"auto"},c),(e.data||u.data).map((function(e){return a.createElement(l.Button,{type:"button",key:e.value,"data-key":e.value,selected:n.some((function(t){return t===e.value})),togglable:!0,onClick:d},(0,s.capitalize)(e.text))}))))};var u={data:[],value:[]};t.RecurrenceRepeatOnWeekEditor.defaultProps=u},1690:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getUntilMin=t.getUntilEnd=t.getMonthDay=t.getMonth=t.getRepeatOnRule=t.getEndRule=t.getOffsets=t.getOffset=t.getExtendedWeekDays=t.getWeekDay=t.getWeekDays=t.getMonths=t.getUntil=t.getFrequency=t.getFrequencies=t.getRule=t.weekDayRuleFromString=t.weekendRule=t.weekdayRule=t.dayRule=t.FREQUENCIES=t.OFFSET_POSITIONS=t.capitalize=void 0;var r=n(5538),o=n(1025),i=n(619);t.capitalize=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},t.OFFSET_POSITIONS=["first","second","third","fourth","last"],t.FREQUENCIES=["never","daily","weekly","monthly","yearly"],t.dayRule=[{day:0,offset:0},{day:1,offset:0},{day:2,offset:0},{day:3,offset:0},{day:4,offset:0},{day:5,offset:0},{day:6,offset:0}],t.weekdayRule=[{day:1,offset:0},{day:2,offset:0},{day:3,offset:0},{day:4,offset:0},{day:5,offset:0}],t.weekendRule=[{day:0,offset:0},{day:6,offset:0}],t.weekDayRuleFromString=function(e){switch(e){case"day":return t.dayRule;case"weekday":return t.weekdayRule;case"weekend":return t.weekendRule}},t.getRule=function(e){return(0,o.parseRule)({recurrenceRule:e})||{}},t.getFrequencies=function(e){return t.FREQUENCIES.map((function(n){return{value:n,text:e("Frequencies"+(0,t.capitalize)(n))}}))},t.getFrequency=function(e){return(0,r.isPresent)(e)&&!(0,r.isNullOrEmptyString)(e.freq)?e.freq:"never"},t.getUntil=function(e){return(0,r.isPresent)(e.until)?(0,i.toLocalDate)(e.until):null},t.getMonths=function(e){return e.dateFormatNames({type:"months",nameType:"wide",standAlone:!0}).map((function(e,t){return{text:e,value:t+1}}))},t.getWeekDays=function(e){var t=e.firstDay(),n=e.dateFormatNames({type:"days",nameType:"abbreviated"}).map((function(e,t){return{text:e,value:t}}));return n.slice(t).concat(n.slice(0,t))},t.getWeekDay=function(e,t,n){return e.find((function(e){var o;if((0,r.isPresent)(t.byWeekDay))switch(t.byWeekDay.length){case 7:o="day";break;case 5:o="weekday";break;case 2:o="weekend";break;case 1:o=t.byWeekDay[0].day;break;default:o=n.getDay()}return o===e.value}))||e[0]},t.getExtendedWeekDays=function(e,t){var n=e.firstDay(),r=e.dateFormatNames({type:"days",nameType:"wide"}).map((function(e,t){return{text:e,value:t}})),o=r.slice(n).concat(r.slice(0,n));return[{text:t("WeekdaysDay"),value:"day"},{text:t("WeekdaysWeekday"),value:"weekday"},{text:t("WeekdaysWeekendday"),value:"weekend"}].concat(o)},t.getOffset=function(e,t){return e.find((function(e){return e.value===(t.bySetPosition?t.bySetPosition[0]:t.byWeekDay&&t.byWeekDay[0]?t.byWeekDay[0].offset:1)}))||e[0]},t.getOffsets=function(e){var n=[1,2,3,4,-1];return t.OFFSET_POSITIONS.map((function(r,o){return{text:e("OffsetPositions"+(0,t.capitalize)(r)),value:n[o]}}))},t.getEndRule=function(e){return(0,r.isPresent)(e.count)?"count":(0,r.isPresent)(e.until)?"until":"never"},t.getRepeatOnRule=function(e){return(0,r.isPresent)(e.byWeekDay)?"weekday":(0,r.isPresent)(e.byMonthDay)?"monthday":void 0},t.getMonth=function(e,t){return e.find((function(e){return(t.byMonth?t.byMonth[0]:null)===e.value}))||e[0]},t.getMonthDay=function(e,t){return(0,r.isPresent)(e.byMonthDay)&&e.byMonthDay.length>0?e.byMonthDay[0]:t.getDate()},t.getUntilEnd=function(e,t){var n=e,o=t;return(0,r.isPresent)(o)?o:new Date(n.getFullYear(),n.getMonth(),n.getDate(),23,59,59)},t.getUntilMin=function(e,t){var n=e,o=t;return(0,r.isPresent)(o)&&o<n?o:n}},95:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(8963),t),o(n(6189),t),o(n(3539),t),o(n(8180),t)},8963:function(e,t,n){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},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.inRange=t.inSlot=t.inGroup=t.toItems=void 0;var o=n(3899),i=n(5538),a=n(9218),l=n(619);t.toItems=function(e,n,i){var u=n.timezone,c=i.groups,d=i.ranges,p=[];return(0,a.orderBy)(e,[{field:"start",dir:"asc"},{field:"end",dir:"desc"},{field:"isAllDay",dir:"desc"}]).forEach((function(e){c.forEach((function(n){var i=1===c.length?s(e,n):n;(0,t.inGroup)(e,i)&&d.forEach((function(n){if((0,t.inRange)(e,n)){var a=o.createRef(),s=o.createRef(),c=n.end<e.end,d=e.start<n.start,f=l.ZonedDate.fromLocalDate(e.start,u),h=l.ZonedDate.fromLocalDate(e.end,u),m=r(r({},e),{_ref:s,itemRef:a,head:c,tail:d,order:null,zonedStart:f,zonedEnd:h,group:i,range:n,slots:[],isRecurring:Boolean(e.recurrenceRule),isException:Boolean(!e.recurrenceRule&&null!==e.recurrenceId&&void 0!==e.recurrenceId),isAllDay:Boolean(e.isAllDay)});p.push(m)}}))}))})),p};var s=function(e,t){return{index:0,resources:t.resources.filter((function(t){return u(e,t)}))}},u=function(e,t){return t.multiple?(e.dataItem[t.field]||[]).some((function(e){return t[t.valueField]===e})):e.dataItem[t.field]===t[t.valueField]};t.inGroup=function(e,t){return!t.resources.some((function(t){return t.multiple?!e.dataItem[t.field].some((function(e){return t[t.valueField]===e})):e.dataItem[t.field]!==t[t.valueField]}))},t.inSlot=function(e,t){return(0,i.intersects)(t.start,t.end,e.start,e.end)},t.inRange=function(e,t){return(0,i.intersects)(t.start,t.end,e.start,e.end)&&(void 0===t.isAllDay||void 0===e.isAllDay||e.isAllDay===t.isAllDay)}},3539:function(e,t,n){var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.toOccurrences=void 0;var o=n(3865),i=n(1025),a=n(619),l=n(5538);t.toOccurrences=function(e,t){var n=t.dateRange,r=t.fields,o=t.timezone;return e.map(s(r)).reduce(u(n,o,r),[]).filter((function(e){return!(0,l.isMaster)(e.dataItem,r)}))};var s=function(e){return function(t){return{uid:(0,o.getter)(e.id||"id")(t),start:(0,o.getter)(e.start||"start")(t),startTimezone:(0,o.getter)(e.startTimezone||"startTimezone")(t),originalStart:(0,o.getter)(e.originalStart||"originalStart")(t),end:(0,o.getter)(e.end||"end")(t),endTimezone:(0,o.getter)(e.endTimezone||"endTimezone")(t),isAllDay:(0,o.getter)(e.isAllDay||"isAllDay")(t),title:(0,o.getter)(e.title||"title")(t),description:(0,o.getter)(e.description||"description")(t),occurrenceId:(0,o.getter)("occurrenceId")(t),recurrenceRule:(0,o.getter)(e.recurrenceRule||"recurrenceRule")(t),recurrenceExceptions:(0,o.getter)(e.recurrenceExceptions||"recurrenceExceptions")(t),recurrenceId:(0,o.getter)(e.recurrenceId||"recurrenceId")(t),dataItem:(0,o.clone)(t)}}},u=function(e,t,n){return function(o,i){return r(r([],o,!0),Boolean(i.recurrenceRule)&&Boolean(null===i.recurrenceId||void 0===i.recurrenceId)&&(0,l.isMaster)(i.dataItem,n)?r([],c(i,{dateRange:e,timezone:t,fields:n}),!0):[i],!0)}},c=function(e,t){var n=t.dateRange,r=t.timezone,s=t.fields,u=e.recurrenceRule,c=(0,i.parseRule)({recurrenceRule:u});c.start||(c.start=a.ZonedDate.fromLocalDate(e.start,r)),c.end||(c.end=a.ZonedDate.fromLocalDate(e.end,r));var d=e.recurrenceExceptions;d&&(c.exceptionDates=d.map((function(e){return a.ZonedDate.fromLocalDate(e,r)})));var p=n.zonedStart,f=n.zonedEnd,h=(0,i.expand)(c,{rangeStart:a.ZonedDate.fromUTCDate(p,r),rangeEnd:a.ZonedDate.fromUTCDate(f,r)});return h.events.length?h.events.map((function(t,n){var r=(0,o.clone)(e),i=(0,o.clone)(e.dataItem);return r.recurrenceId=r.uid,(0,l.setField)(i,s.recurrenceId,e.uid),r.originalStart=t.start.toLocalDate(),(0,l.setField)(i,s.originalStart,t.start.toLocalDate()),r.start=t.start.toLocalDate(),(0,l.setField)(i,s.start,t.start.toLocalDate()),r.end=t.end.toLocalDate(),(0,l.setField)(i,s.end,t.end.toLocalDate()),r.occurrenceId=String(n),(0,l.setField)(i,"occurrenceId",String(n)),r.dataItem=i,r})):[]}},8180:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toRanges=void 0;var r=n(619);t.toRanges=function(e,t){for(var n=t.step,o=t.timezone,i=[],a=r.ZonedDate.fromLocalDate(e.start,o),l=r.ZonedDate.fromLocalDate(e.end,o),s=a.clone(),u=0;s.getTime()<l.getTime();u++,s=s.addTime(n)){var c=s.clone(),d=c.clone().addTime(n),p=new Date(c.getTime()),f={index:u,end:new Date(d.getTime()),start:p,zonedStart:c,zonedEnd:d};i.push(f)}return i}},6189:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toSlots=void 0;var r=n(3899),o=n(619),i=n(4814);t.toSlots=function(e,t,n){var a=t.step,l=n.groups,s=n.ranges,u=[];return l.forEach((function(e){s.forEach((function(t){for(var n=t.zonedStart,l=t.zonedEnd,s=l.timezoneOffset-n.timezoneOffset,c=n.clone(),d=0,p=s<0?s*i.MS_PER_MINUTE*-1:0;c.getTime()<l.getTime();d++,c=c.addTime(a)){var f=r.createRef(),h=c.clone(),m=c.addTime(a),v=(m.timezoneOffset-h.timezoneOffset)*i.MS_PER_MINUTE,g=a<=Math.abs(v);p&&g&&(p-=a,c=c.addTime(-a));var y=new Date(h.getTime()),b={_ref:f,index:d,end:new Date(m.getTime()),start:y,zonedStart:h,zonedEnd:m,range:t,group:e,items:[],isAllDay:o.MS_PER_DAY<=a};u.push(b)}}))})),u}},6604:function(e,t,n){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},r.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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.SchedulerEditSlot=void 0;var i=n(3899),a=n(3865),l=n(4960),s=n(5538),u=n(3540),c=n(4850),d=n(8586),p=n(1995),f=n(6266),h=n(7907),m=n(2577),v=n(2334);t.SchedulerEditSlot=i.forwardRef((function(e,t){var n=e._ref,u=e.onDataAction,c=e.viewSlot,y=e.form,b=e.formItem,C=(e.onFormItemChange,o(e,["_ref","onDataAction","viewSlot","form","formItem","onFormItemChange"])),E=i.useState(e.tabIndex),w=E[0],k=E[1],S=i.useRef(null),O=i.useRef(null);i.useImperativeHandle(O,(function(){return{props:e}})),i.useImperativeHandle(t,(function(){return O.current})),i.useImperativeHandle(n,(function(){return S.current}));var D=(0,d.useEditable)(e.editable),x=(0,f.useSchedulerFieldsContext)(),I=(0,h.useSchedulerViewSlotsContext)()[0],T=(0,h.useSchedulerViewItemsContext)()[0],_=(0,h.useSchedulerViewSelectedSlotsContext)(),R=_[0],M=_[1],P=(0,h.useSchedulerViewFocusedSlotsContext)()[1],N=y||g.form,F=c||g.viewSlot,A=(0,p.useControlledState)(null,b,e.onFormItemChange),j=A[0],L=A[1],V=R.some((function(t){return Boolean(t.current&&t.current.props.start.getTime()===e.start.getTime()&&t.current.props.end.getTime()===e.end.getTime()&&t.current.props.index===e.index&&t.current.props.group.index===e.group.index&&t.current.props.range.index===e.range.index&&t.current.props.isAllDay===e.isAllDay)})),z=i.useCallback((function(){var t={};if((0,s.setField)(t,x.start,new Date(e.start.getTime())),(0,s.setField)(t,x.end,new Date(e.end.getTime())),(0,s.setField)(t,x.isAllDay,e.isAllDay),e.group.resources.length)for(var n=0;n<e.group.resources.length;n++){var r=e.group.resources[n];if((0,s.isGroupped)(e.group.resources)){var o=(0,s.getField)(e.group.resources[n],r.valueField);(0,s.setField)(t,r.field,r.multiple?[o]:o)}else(0,s.setField)(t,r.field,r.multiple?[]:void 0)}return t}),[x.start,x.end,x.isAllDay,e.start,e.end,e.isAllDay,e.group.resources]),B=i.useCallback((function(t){D.select&&M({type:v.SLOTS_SELECT_ACTION.select,slot:S},t.syntheticEvent),e.onFocus&&e.onFocus.call(void 0,t)}),[M,D.select,e.onFocus]),H=i.useCallback((function(t){if(D.add){var n=z();L(n,t)}e.onDoubleClick&&e.onDoubleClick.call(void 0,t)}),[z,D.add,e.onDoubleClick,L]),U=i.useCallback((function(e){var t;switch(e.syntheticEvent.keyCode){case a.Keys.left:if(!I)return;e.syntheticEvent.preventDefault(),P({type:d.SLOTS_FOCUS_ACTION.left,slot:S},e.syntheticEvent);break;case a.Keys.right:if(!I)return;e.syntheticEvent.preventDefault(),P({type:d.SLOTS_FOCUS_ACTION.right,slot:S},e.syntheticEvent);break;case a.Keys.up:if(!I)return;e.syntheticEvent.preventDefault(),P({type:d.SLOTS_FOCUS_ACTION.up,slot:S},e.syntheticEvent);break;case a.Keys.down:if(!I)return;e.syntheticEvent.preventDefault(),P({type:d.SLOTS_FOCUS_ACTION.down,slot:S},e.syntheticEvent);break;case a.Keys.enter:if(!I||!D.add)return;var n=z();L(n);break;case a.Keys.tab:t=(0,s.findFirstItem)(e.target)}t&&(e.syntheticEvent.preventDefault(),t.element&&t.element.focus())}),[z,P,D.add,L,I]),W=i.useCallback((function(e){u&&u.call(void 0,{type:l.DATA_ACTION.create,series:!1,dataItem:e.value},e),L(null,e.syntheticEvent)}),[u,L]),K=i.useCallback((function(e){L(null,e.syntheticEvent)}),[L]),q=i.useCallback((function(e){L(null,e)}),[L]),Y=i.useCallback((function(e,t){L&&L(e,t)}),[L]);return i.useEffect((function(){var t=I.length&&I[0].current===S.current;k(void 0!==e.tabIndex?null===e.tabIndex?void 0:e.tabIndex:0===R.length&&t&&0===T.length?0:void 0)}),[T,e.tabIndex,R.length,I]),i.createElement(m.SchedulerEditSlotContext,{props:e,form:[j,Y]},i.createElement(F,r({},C,{_ref:S,selected:V,tabIndex:w,onFocus:B,onDoubleClick:H,onKeyDown:U})),j&&i.createElement(N,{dataItem:j,onSubmit:W,onClose:q,onCancel:K}))}));var g={viewSlot:c.SchedulerViewSlot,form:u.SchedulerForm};t.SchedulerEditSlot.defaultProps=g,t.SchedulerEditSlot.displayName="KendoReactSchedulerEditSlot"},8125:function(e,t,n){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},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.SchedulerSlot=void 0;var o=n(3899),i=n(3865),a=n(5538),l=n(499),s=n(9530);t.SchedulerSlot=o.forwardRef((function(e,t){var n=e.onFocus,u=e.onBlur,c=e.onClick,d=e.onMouseEnter,p=e.onMouseLeave,f=e.onMouseOut,h=e.onMouseOver,m=e.onDoubleClick,v=e.onKeyDown,g=e.onKeyPress,y=e.onKeyUp,b=(0,s.useSchedulerSlot)(e,t),C=b.slot,E=b.element,w=(0,l.useInternationalization)(),k=void 0!==e.tabIndex?null===e.tabIndex?void 0:e.tabIndex:e.selected?0:-1,S=o.useMemo((function(){return(0,i.classNames)(e.className,"k-scheduler-cell k-slot-cell",{"k-nonwork-hour":!e.isWorkHour||!e.isWorkDay,"k-selected":e.selected})}),[e.className,e.selected,e.isWorkHour,e.isWorkDay]),O=o.useMemo((function(){return r({userSelect:"none"},e.style)}),[e.style]),D=o.useMemo((function(){return"".concat((0,a.formatEventTime)(w,e.zonedStart,e.zonedEnd,e.isAllDay||!1))}),[w,e.isAllDay,e.zonedEnd,e.zonedStart]),x=o.useCallback((function(e){n&&n.call(void 0,{syntheticEvent:e,target:C.current})}),[n,C]),I=o.useCallback((function(e){u&&u.call(void 0,{syntheticEvent:e,target:C.current})}),[u,C]),T=o.useCallback((function(e){c&&c.call(void 0,{syntheticEvent:e,target:C.current})}),[c,C]),_=o.useCallback((function(e){h&&h.call(void 0,{syntheticEvent:e,target:C.current})}),[h,C]),R=o.useCallback((function(e){f&&f.call(void 0,{syntheticEvent:e,target:C.current})}),[f,C]),M=o.useCallback((function(e){d&&d.call(void 0,{syntheticEvent:e,target:C.current})}),[d,C]),P=o.useCallback((function(e){p&&p.call(void 0,{syntheticEvent:e,target:C.current})}),[p,C]),N=o.useCallback((function(e){m&&m.call(void 0,{syntheticEvent:e,target:C.current})}),[m,C]),F=o.useCallback((function(e){v&&v.call(void 0,{syntheticEvent:e,target:C.current})}),[v,C]),A=o.useCallback((function(e){g&&g.call(void 0,{syntheticEvent:e,target:C.current})}),[g,C]),j=o.useCallback((function(e){y&&y.call(void 0,{syntheticEvent:e,target:C.current})}),[y,C]);return o.createElement("div",{ref:E,id:e.id,style:O,className:S,tabIndex:k,"aria-label":D,"aria-selected":e.selected,onFocus:x,onBlur:I,onClick:T,onMouseEnter:M,onMouseLeave:P,onMouseOver:_,onMouseOut:R,onDoubleClick:N,onKeyDown:F,onKeyPress:A,onKeyUp:j,"data-slot":!0,"data-slot-allday":e.isAllDay,"data-slot-start":e.start.getTime(),"data-slot-end":e.end.getTime(),"data-slot-group":e.group.index,"data-slot-range":e.range.index,"data-slot-index":e.index},e.children)})),t.SchedulerSlot.defaultProps={isWorkHour:!0,isWorkDay:!0},t.SchedulerSlot.displayName="KendoReactSchedulerSlot"},4850:function(e,t,n){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},r.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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.SchedulerViewSlot=void 0;var i=n(3899),a=n(8125),l=n(8586);t.SchedulerViewSlot=i.forwardRef((function(e,t){var n=e.slot,a=e._ref,u=o(e,["slot","_ref"]),c=n||s.slot,d=i.useRef(null),p=i.useRef(null);return i.useImperativeHandle(d,(function(){return{props:e}})),i.useImperativeHandle(a,(function(){return p.current})),i.useImperativeHandle(t,(function(){return d.current})),(0,l.useSlotExpand)(p,e.expandable),i.createElement(c,r({},u,{_ref:p}))}));var s={slot:a.SchedulerSlot,expandable:!1};t.SchedulerViewSlot.defaultProps=s,t.SchedulerViewSlot.displayName="KendoReactSchedulerViewSlot"},3188:function(e,t,n){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},r.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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.SchedulerEditTask=void 0;var i=n(3899),a=n(4771),l=n(1995),s=n(8586),u=n(5538),c=n(4960),d=n(7160),p=n(6809),f=n(6266),h=n(8123);t.SchedulerEditTask=i.forwardRef((function(e,t){var n=e._ref,a=e.onDataAction,d=e.viewTask,p=e.removeDialog,v=e.removeItem,g=e.onRemoveItemChange,y=e.occurrenceDialog,b=e.showOccurrenceDialog,C=e.onShowOccurrenceDialogChange,E=e.showRemoveDialog,w=e.onShowRemoveDialogChange,k=o(e,["_ref","onDataAction","viewTask","removeDialog","removeItem","onRemoveItemChange","occurrenceDialog","showOccurrenceDialog","onShowOccurrenceDialogChange","showRemoveDialog","onShowRemoveDialogChange"]),S=i.useRef(null);i.useImperativeHandle(S,(function(){return{props:e,element:S.current&&S.current.element}})),i.useImperativeHandle(n,(function(){return S.current})),i.useImperativeHandle(t,(function(){return S.current}));var O=d||m.viewTask,D=y||m.occurrenceDialog,x=p||m.removeDialog,I=(0,s.useEditable)(e.editable),T=(0,f.useSchedulerFieldsContext)(),_=(0,f.useSchedulerDataContext)(),R=_[0],M=_[1],P=i.useState(null),N=P[0],F=P[1],A=(0,l.useControlledState)(null,v,g),j=A[0],L=A[1],V=(0,l.useControlledState)(!1,E,w),z=V[0],B=V[1],H=(0,l.useControlledState)(!1,b,C),U=H[0],W=H[1],K=i.useCallback((function(t){I.remove&&(L(e.dataItem,t),e.isRecurring?W(!0,t):B(!0,t))}),[L,e.dataItem,e.isRecurring,W,B]),q=i.useCallback((function(e){F(null),L(null,e),B(!1,e),W(!1,e)}),[F,L,B,W]),Y=i.useCallback((function(e){a&&j&&a.call(void 0,{type:c.DATA_ACTION.remove,series:N,dataItem:j}),L(null,e),B(!1,e)}),[j,M,B]),G=i.useCallback((function(e,t){L&&L(e,t)}),[L]),Z=i.useCallback((function(e,t){B&&B(e,t)}),[B]),X=i.useCallback((function(e,t){W&&W(e,t)}),[W]),$=i.useCallback((function(t){j&&(F(!1),L(e.dataItem,t),B(!0,t)),W(!1,t)}),[F,e.dataItem,j,L,B]),Q=i.useCallback((function(e){if(j){F(!0);var t=(0,u.findMaster)(j,T,R);L(t,e),B(!0,e)}W(!1,e)}),[T,j,F,L,B,W]);return i.createElement(h.SchedulerEditTaskContext,{remove:[j,G],showRemoveDialog:[z,Z],showOccurrenceDialog:[U,X]},i.createElement(O,r({_ref:S},k,{onRemoveClick:K})),U&&i.createElement(D,{dataItem:j,isRemove:null!==j,onClose:q,onOccurrenceClick:$,onSeriesClick:Q}),z&&i.createElement(x,{dataItem:j,onClose:q,onCancel:q,onConfirm:Y}))}));var m={viewTask:a.SchedulerViewTask,occurrenceDialog:p.SchedulerOccurrenceDialog,removeDialog:d.SchedulerRemoveDialog};t.SchedulerEditTask.defaultProps=m,t.SchedulerEditTask.displayName="KendoReactSchedulerEditTask"},273:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SchedulerTask=void 0;var r=n(3899),o=n(499),i=n(3364),a=n(3865),l=n(8586);t.SchedulerTask=r.forwardRef((function(e,t){var n=e._ref,s=e.onRemoveClick,u=r.useRef(null),c=r.useRef(null);r.useImperativeHandle(u,(function(){return{props:e,element:c.current}})),r.useImperativeHandle(t,(function(){return u.current})),r.useImperativeHandle(n,(function(){return u.current}));var d=(0,l.useEditable)(e.editable),p=(0,o.useLocalization)().toLanguageString(i.deleteTitle,i.messages[i.deleteTitle]),f=e.group.resources.find((function(e){return Boolean(e.colorField&&void 0!==e[e.colorField])})),h=f&&f.colorField&&f[f.colorField],m=r.useCallback((function(e){s&&s.call(void 0,{syntheticEvent:e,target:u.current})}),[s,u]),v=r.useMemo((function(){return(0,a.classNames)("k-task",e.className)}),[e.className]);return r.createElement("div",{id:e.id,ref:c,style:e.style,className:v,tabIndex:e.tabIndex||void 0},h&&r.createElement("span",{className:"k-scheduler-mark",style:{color:h,backgroundColor:h}}),e.isRecurring&&r.createElement("span",{className:"k-icon k-i-reload"}),e.isException&&r.createElement("span",{className:"k-icon k-i-non-recurrence"}),e.title,d.remove&&r.createElement("a",{className:"k-link k-event-delete",title:p,"aria-label":p,onClick:m},r.createElement("span",{className:"k-icon k-i-close"})))})),t.SchedulerTask.displayName="KendoReactSchedulerTask"},4771:function(e,t,n){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},r.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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.SchedulerViewTask=void 0;var i=n(3899),a=n(273);t.SchedulerViewTask=i.forwardRef((function(e,t){var n=e.task,a=e._ref,s=o(e,["task","_ref"]),u=i.useRef(null),c=i.useRef(null);i.useImperativeHandle(c,(function(){return{props:e,element:u.current&&u.current.element}})),i.useImperativeHandle(a,(function(){return u.current})),i.useImperativeHandle(t,(function(){return c.current}));var d=n||l.task;return i.createElement(d,r({},s,{_ref:u}))}));var l={task:a.SchedulerTask};t.SchedulerViewTask.defaultProps=l,t.SchedulerViewTask.displayName="KendoReactSchedulerViewTask"},5538:function(e,t,n){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},r.apply(this,arguments)},o=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.orderSort=t.findNextItem=t.findFirstItem=t.noop=t.mapItemsToSlots=t.mapSlotsToItems=t.calculateOrder=t.findMissing=t.shallowCompare=t.extractResources=t.extractResourceFields=t.extractGroups=t.setTime=t.isNullOrEmptyString=t.isBlank=t.generateResourceFields=t.toSchedulerResources=t.toSchedulerGroups=t.isInTimeRange=t.getModelFields=t.defaultModelFields=t.roundAllDayEnd=t.intersects=t.isException=t.buildException=t.isMaster=t.findMaster=t.groupResources=t.isRecurring=t.isRecurringException=t.toInvariantTime=t.toUTCDateTime=t.getUTCDate=t.toUTCDate=t.isRecurringMaster=t.isPresent=t.assignFields=t.assignField=t.setField=t.getField=t.slotDive=t.getToday=t.dateWithTime=t.addUTCDays=t.formatEventTime=t.isGroupped=t.isMultiDay=t.last=t.first=void 0;var i=n(619),a=n(3152),l=n(3865),s=n(4814),u=n(9218);function c(e,n,r){(0,t.setField)(e,r,(0,t.getField)(n,r))}t.first=function(e){return e[0]},t.last=function(e){return e[e.length-1]},t.isMultiDay=function(e){return e.end.getTime()-e.start.getTime()>new Date(0).setHours(24)},t.isGroupped=function(e){var t=new Set;return e.forEach((function(e){t.add(e.field)})),t.size===e.length},t.formatEventTime=function(e,t,n,r){return r?"".concat(e.formatDate(t,{skeleton:"yMMMMEEEEd"})):"".concat(e.formatDate(t,{skeleton:"yMMMMEEEEdhm"}),"–").concat(e.formatDate(n,"t"))},t.addUTCDays=function(e,t){var n=new Date(e.getTime());return n.setUTCDate(n.getUTCDate()+t),n},t.dateWithTime=function(e,t){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),t.getHours(),t.getMinutes())},t.getToday=function(){return(0,i.getDate)(new Date)},t.slotDive=function(e,n,r,o){if(void 0===o&&(o=0),o===r)return null;var i=null,a=document.elementFromPoint(e,n);if(!a)return i;if("true"===a.getAttribute("data-slot"))return a;var l=a.style.pointerEvents;return a.style.pointerEvents="none",i=(0,t.slotDive)(e,n,r,o+1),a.style.pointerEvents=l,i},t.getField=function(e,t){return(0,l.getter)(t)(e)},t.setField=function(e,t,n){if(t)return(0,l.setter)(t)(e,n)},t.assignField=c,t.assignFields=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];for(var o=0;o<n.length;o++)c(e,t,n[o])},t.isPresent=function(e){return null!=e},t.isRecurringMaster=function(e){return e.recurrenceRule&&!(0,t.isPresent)(e.recurrenceId)},t.toUTCDate=function(e){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate()))},t.getUTCDate=function(e){return new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()))},t.toUTCDateTime=function(e){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()))},t.toInvariantTime=function(e){var t=new Date(1980,1,1,0,0,0);return e&&t.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t},t.isRecurringException=function(e){return e&&(0,t.isPresent)(e.recurrenceId)&&!e.recurrenceRule},t.isRecurring=function(e,t){var n=(0,l.getter)(t.recurrenceId||"recurrenceId")(e);return!(!(0,l.getter)(t.recurrenceRule||"recurrenceRule")(e)&&!n)},t.groupResources=function(e,t){var n=[];if(e&&e.resources&&e.resources.length)for(var r=e.resources,o=function(e){var o=t.find((function(t){return t.name===r[e]}));n.push(o)},i=0;i<r.length;i++)o(i);return n},t.findMaster=function(e,n,r){var o=(0,t.isMaster)(e,n)?(0,t.getField)(e,n.id):(0,t.getField)(e,n.recurrenceId);return r.find((function(e){return(0,t.getField)(e,n.id)===o}))},t.isMaster=function(e,n){var r=(0,t.getField)(e,n.id),o=(0,t.getField)(e,n.recurrenceId),i=(0,t.getField)(e,n.recurrenceRule);return!(!r||!i||null!=o)},t.buildException=function(e,n,r){var o=(0,t.findMaster)(e,n,r),i=(0,l.clone)(e);return c(i,o,n.id),void 0!==n.id&&(0,t.setField)(i,n.id,s.DEFAULT_ID),void 0!==n.recurrenceRule&&(0,t.setField)(i,n.recurrenceRule,void 0),void 0!==n.recurrenceId&&(0,t.setField)(i,n.recurrenceId,(0,t.getField)(o,n.id)),i},t.isException=function(e,n){return(0,t.isPresent)((0,t.getField)(e,n.recurrenceId))&&!(0,t.getField)(e,n.recurrenceRule)};var d=function(e,t){return Math.max(e.getTime(),t.getTime())},p=function(e,t){return Math.min(e.getTime(),t.getTime())};function f(e,n){for(var r=n.data,o=0;o<r.length;o++)if((0,t.getField)(r[o],n.valueField)===e)return o;return 0}t.intersects=function(e,t,n,r,o){return void 0===o&&(o=!1),o?d(t,r)-p(e,n)<=t.getTime()-e.getTime()+(r.getTime()-n.getTime()):d(t,r)-p(e,n)<t.getTime()-e.getTime()+(r.getTime()-n.getTime())},t.roundAllDayEnd=function(e){var t=e.start,n=e.end,r=t.stripTime(),o=n.stripTime();return o.getTime()!==n.getTime()||r.getTime()===o.getTime()?o.addDays(1):o},t.defaultModelFields={id:"id",start:"start",startTimezone:"startTimezone",originalStart:"originalStart",end:"end",endTimezone:"endTimezone",isAllDay:"isAllDay",title:"title",description:"description",recurrenceRule:"recurrenceRule",recurrenceId:"recurrenceId",recurrenceExceptions:"recurrenceExceptions"},t.getModelFields=function(e){return{fields:r(r({},t.defaultModelFields),e)}},t.isInTimeRange=function(e,t,n){return(t.getHours()<e.getHours()||t.getHours()===e.getHours()&&t.getMinutes()<=e.getMinutes())&&(e.getHours()<n.getHours()||n.getHours()===e.getHours()&&e.getMinutes()<n.getMinutes())},t.toSchedulerGroups=function(e,t){var n=(0,a.toGroupResources)(e,t),i=(0,a.toFlatGroupResources)(n);return 1===i.length?[{index:0,resources:(t||[]).reduce((function(e,t){return o(o([],e,!0),t.data.map((function(e){return r(r({},e),{field:t.field,valueField:t.valueField,colorField:t.colorField,multiple:t.multiple})})),!0)}),[])}]:i.map((function(e,t){return{index:t,resources:e}}))},t.toSchedulerResources=function(e){return void 0===e&&(e=[]),e.reduce((function(e,t){return o(o([],e,!0),t.data.map((function(e){return r(r({},e),{field:t.field,valueField:t.valueField,colorField:t.colorField,multiple:t.multiple})})),!0)}),[])},t.generateResourceFields=function(e,t){if(!e||!e.length)return t;var n={};return e.forEach((function(e){e.resources.forEach((function(e){void 0===n[e.field]&&(n[e.field]=e[e.valueField])}))})),n},t.isBlank=function(e){return null==e},t.isNullOrEmptyString=function(e){return(0,t.isBlank)(e)||e.trim&&0===e.trim().length},t.setTime=function(e,t){var n=(0,i.cloneDate)(e);return n.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),n},t.extractGroups=function(e,t,n,r){var i=(0,a.toGroupResources)(n,r);return(0,a.toFlatGroupResources)(i).reduce((function(n,r,i){var a=!0;return r.forEach((function(n){var r=n[n.valueField],o=e[t[n.field]||n.field];a=Array.isArray(o)?a&&o.indexOf(r)>=0:a&&o===r})),a?o(o([],n,!0),[{index:i,resources:r}],!1):n}),[])},t.extractResourceFields=function(e,t,n){var r={};return n&&n.length?(n.forEach((function(n){var o=n.data.find((function(r){return r.value===e[t[n.field]||n.field]}));o&&(r[n.field]=o.value)})),r):r},t.extractResources=function(e,n,o){void 0===o&&(o=[]);for(var i=0,a=[],l=0;l<o.length;l++){var s=o[l],u=(0,t.getField)(e,n[s.field]||s.field);Array.isArray(u)||(u=[u]);for(var c=0;c<u.length;c++){if(void 0!==u[c]){var d=f(u[c],s),p=s.data[d],h={text:(0,t.getField)(p,s.textField),color:(0,t.getField)(p,s.colorField),value:(0,t.getField)(p,s.valueField)};a.push(r(r({},h),{index:i}))}i++}}return a},t.shallowCompare=function(e,t){return JSON.stringify(e)===JSON.stringify(t)},t.findMissing=function(e){var t=0,n=e.slice();return n.sort((function(e,t){return e-t})).forEach((function(e,r){n[r]===r&&(t=r+1)})),t},t.calculateOrder=function(e,n,r,o){var i;return void 0===o&&(o=!1),r.forEach((function(r){var a=[];n.sort((function(e,t){return e.props.start.getTime()-t.props.start.getTime()})).forEach((function(n){if((o||n.props.isAllDay===r.current.props.isAllDay)&&n.props.range.index===r.current.props.range.index&&n.props.group.index===r.current.props.group.index&&(0,t.intersects)(n.props.start,n.props.end,r.current.props.start,r.current.props.end)){var l=(0,t.findMissing)(a);n===e&&void 0===i&&(i=l),a.splice(l,0,l)}}))})),i},t.mapSlotsToItems=function(e,n,r){void 0===r&&(r=!1),n.forEach((function(e){return e.items.splice(0,e.items.length)})),n.forEach((function(n){var o=[];e.forEach((function(e){if((r||e.isAllDay===n.isAllDay)&&e.range.index===n.range.index&&e.group.index===n.group.index&&(0,t.intersects)(e.start,e.end,n.start,n.end)){var i=(0,t.findMissing)(o);(null===e.order||void 0===e.order||e.order<i)&&(e.order=i),o.splice(e.order,0,e.order),n.items.push(e)}}))}))},t.mapItemsToSlots=function(e,n,r){void 0===r&&(r=!1),e.forEach((function(e){return e.slots.splice(0,e.slots.length)})),e.forEach((function(e){n.forEach((function(n){(r||e.isAllDay===n.isAllDay)&&e.range.index===n.range.index&&e.group.index===n.group.index&&(0,t.intersects)(e.start,e.end,n.start,n.end)&&e.slots.push(n)}))}))},t.noop=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},t.findFirstItem=function(e){var t=e.props.items.find((function(e){return 0===e.order}))||e.props.items[0];return t&&t._ref.current},t.findNextItem=function(e,t,n,r){void 0===n&&(n=!1),void 0===r&&(r=!1);var o=e.current;if(!o||!t)return null;var i=t.filter((function(e){return null!==e.current&&null!==e.current.element})),a=(0,u.orderBy)(i,[{field:"current.props.group.index",dir:"asc"},{field:"current.props.range.index",dir:"asc"},n?{field:""}:{field:"current.props.isAllDay",dir:"desc"},{field:"current.props.start",dir:"asc"}]),l=a.findIndex((function(e){return null!==e.current&&Boolean(e.current.props.uid===o.props.uid&&(void 0===e.current.props.occurrenceId||e.current.props.occurrenceId===o.props.occurrenceId)&&e.current.props.group.index===o.props.group.index&&e.current.props.range.index===o.props.range.index&&(n||e.current.props.isAllDay===o.props.isAllDay))}));return a[l+(r?-1:1)]},t.orderSort=function(e,t){return(e.order||0)-(t.order||0)}},7389:function(e,t,n){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},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.AgendaView=void 0;var o=n(3899),i=n(189),a=n(7370),l=n(535),s=n(3364),u=n(8586),c=n(4814),d=n(619),p=n(3865),f=n(499),h=n(8180),m=n(3539),v=n(8963),g=n(5538),y=n(95),b=n(3188),C=n(6604),E=n(6266),w=n(7091);t.AgendaView=function(e){var t=(0,E.useSchedulerPropsContext)(),n=t.group,i=t.timezone,c=t.resources,S=e.editTask||b.SchedulerEditTask,O=e.editSlot||C.SchedulerEditSlot,D=o.useRef(null),x=(0,f.useInternationalization)(),I=(0,f.useLocalization)(),T=(0,E.useSchedulerDataContext)()[0],_=(0,E.useSchedulerGroupsContext)(),R=(0,E.useSchedulerFieldsContext)(),M=(0,E.useSchedulerDateRangeContext)(),P=o.useMemo((function(){return(0,h.toRanges)(M,{step:d.MS_PER_DAY,timezone:i})}),[M.start.getTime(),M.end.getTime(),i]),N=o.useMemo((function(){return(0,y.toSlots)(M,{step:d.MS_PER_DAY},{groups:_,ranges:P})}),[M.start.getTime(),M.end.getTime(),i,_,P]),F=o.useMemo((function(){return(0,m.toOccurrences)(T,{dateRange:M,fields:R,timezone:i})}),[T,M.start.getTime(),M.end.getTime(),R,i]),A=o.useMemo((function(){return(0,v.toItems)(F,{timezone:i},{groups:_,ranges:P})}),[F,i,_,P]),j=o.useMemo((function(){return(0,p.classNames)("k-scheduler-agendaview",e.className)}),[e.className]);return(0,u.useCellSync)({element:D,selector:".k-scheduler-datecolumn",explicitDepth:!1}),(0,u.useCellSync)({element:D,selector:".k-scheduler-timecolumn",explicitDepth:!1}),o.useMemo((function(){return(0,g.mapItemsToSlots)(A,N,!0)}),[A,N]),o.useMemo((function(){return(0,g.mapSlotsToItems)(A,N,!0)}),[A,N]),o.createElement(a.BaseView,{ref:D,id:e.id,style:e.style,className:j,props:e,slots:A,ranges:P},o.createElement("div",{className:"k-scheduler-head"},o.createElement(l.VerticalResourceIterator,{resources:c,group:n},o.createElement(w.SchedulerResourceIteratorContext.Consumer,null,(function(e){var t=e.groupIndex;return o.createElement("div",{className:"k-scheduler-row",key:t},o.createElement("div",{className:"k-scheduler-cell k-heading-cell k-group-cell k-scheduler-datecolumn"},I.toLanguageString(s.dateTitle,s.messages[s.dateTitle])),o.createElement("div",{className:"k-scheduler-cell k-heading-cell k-group-cell k-scheduler-timecolumn"},I.toLanguageString(s.timeTitle,s.messages[s.timeTitle])),o.createElement("div",{className:"k-scheduler-cell k-heading-cell k-scheduler-eventcolumn"},I.toLanguageString(s.eventTitle,s.messages[s.eventTitle])))})))),o.createElement("div",{className:"k-scheduler-body"},o.createElement(l.VerticalResourceIterator,{resources:c,group:n,nested:!0},o.createElement(w.SchedulerResourceIteratorContext.Consumer,null,(function(t){var n=t.groupIndex;return N.filter((function(e){return e.group.index===(n||0)})).map((function(t,i,a){return o.createElement("div",{className:"k-scheduler-row k-scheduler-content",key:"".concat(n,":").concat(i)},o.createElement(O,r({},t,{editable:e.editable,row:a.length*(n||0)+i,col:0,slot:e.slot,viewSlot:e.viewSlot,className:"k-scheduler-datecolumn k-group-cell"}),o.createElement("div",null,o.createElement("strong",{className:"k-scheduler-agendaday"},x.formatDate(t.zonedStart,"dd")),o.createElement("em",{className:"k-scheduler-agendaweek"},x.formatDate(t.zonedStart,"EEEE")),o.createElement("span",{className:"k-scheduler-agendadate"},x.formatDate(t.zonedStart,"y")))),o.createElement("div",{className:"k-scheduler-cell k-group-content"},t.items.length?t.items.map((function(t,n){return o.createElement("div",{className:"k-scheduler-row",key:n},o.createElement("div",{className:"k-scheduler-cell k-scheduler-timecolumn"},o.createElement("div",null,t.tail&&o.createElement("span",{className:"k-icon k-i-arrow-60-left"}),t.isAllDay?I.toLanguageString(s.allDay,s.messages[s.allDay]):k(x,t),t.head&&o.createElement("span",{className:"k-icon k-i-arrow-60-right"}))),o.createElement("div",{className:"k-scheduler-cell"},o.createElement(S,r({key:"".concat(i,":").concat(n)},t,{onDataAction:e.onDataAction,task:e.task,viewTask:e.viewTask,editable:e.editable}))))})):o.createElement("div",{className:"k-scheduler-cell k-heading-cell k-group-cell"},I.toLanguageString(s.noEvents,s.messages[s.noEvents]))))}))})))))};var k=function(e,t){var n="{0:t}-{1:t}";return t.head?n="{0:t}":t.tail&&(n="{1:t}"),e.format(n,t.zonedStart,t.zonedEnd)},S=function(e){return(0,d.getDate)(e)},O={name:"agenda",title:function(e){return e.toLanguageString(s.agendaViewTitle,s.messages[s.agendaViewTitle])},dateRange:function(e){var t=e.intl,n=e.date,r=e.numberOfDays,o=void 0===r?1:r,i=e.timezone,a=d.ZonedDate.fromLocalDate(n,i),l=o===c.DAYS_IN_WEEK_COUNT?S((0,d.firstDayInWeek)(a,t.firstDay())):S(a),s=function(e,t){return(0,d.getDate)((0,d.addDays)(e,t||1))}(l,o),u=d.ZonedDate.fromUTCDate((0,g.toUTCDateTime)(l),i),p=d.ZonedDate.fromUTCDate((0,g.toUTCDateTime)(s),i);return{start:new Date(u.getTime()),end:new Date(p.getTime()),zonedStart:u,zonedEnd:p}},selectedDateFormat:"{0:D} - {1:D}",selectedShortDateFormat:"{0:d} - {1:d}",slotDuration:1440,slotDivision:1,step:c.DAYS_IN_WEEK_COUNT,numberOfDays:c.DAYS_IN_WEEK_COUNT},D={title:i.any};t.AgendaView.propTypes=D,t.AgendaView.defaultProps=O},5798:function(e,t,n){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},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultRowContent=t.HorizontalResourceIterator=void 0;var o=n(3899),i=n(3152),a=n(4814),l=n(7091);t.HorizontalResourceIterator=function(e){var n=e.nested,r=e.children,a=e.rowContentProps,l=e.rowContent||t.DefaultRowContent,c=e.childRowContent||l,d=(0,i.toGroupResources)(e.group,e.resources);return o.createElement("div",{className:"k-scheduler-group k-group-horizontal"},n?s({resources:d,children:r,nested:n,groupIndex:0,rowContent:l,rowContentProps:a,childRowContent:c}):u({resources:d,children:r,rowContent:l,nested:!!n,groupIndex:0,rowContentProps:a,childRowContent:c}))};var s=function(e){var t=e.resources,n=e.rowContent,a=e.nested,l=e.children,c=e.groupIndex,d=e.rowContentProps,p=e.childRowContent;if(c===t.length)return u({resources:t,rowContent:n,children:l,nested:a,groupIndex:c,rowContentProps:d,childRowContent:p});var f=(0,i.expandResources)(t,c),h=n;return o.createElement(o.Fragment,null,a?o.createElement("div",{className:"k-scheduler-row"},o.createElement(h,r({resources:t,groupIndex:c},d),f.map((function(e,t){return o.createElement("div",{key:t,className:"k-scheduler-cell k-heading-cell"},e.text)})))):o.createElement(h,r({resources:t,groupIndex:c},d),f.map((function(e,t){return o.createElement("div",{key:t,className:"k-scheduler-cell k-heading-cell"},e.text)}))),s({resources:t,children:l,nested:a,rowContent:n,childRowContent:p,groupIndex:c+1}))},u=function(e){var t=e.resources,n=e.childRowContent,s=e.children,u=e.rowContentProps,c=(0,i.expandResources)(t,t.length-1),d=n,p=t.length>0;return o.createElement("div",{className:"k-scheduler-row"},o.createElement(d,r({resources:t},u),(c.length?c:a.EMPTY_RESOURCE).map((function(e,t){return o.createElement("div",{key:t,className:"k-scheduler-cell k-group-cell"},o.createElement(l.SchedulerResourceIteratorContext.Provider,{value:{resource:e,groupIndex:p?t:0}},s))}))))};t.HorizontalResourceIterator.displayName="KendoReactSchedulerHorizontalResourceIterator",t.DefaultRowContent=function(e){return e.children}},3642:function(e,t,n){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},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.SchedulerDrag=void 0;var o=n(3899),i=n(95),a=n(7285),l=n(6612),s=n(7907),u=n(6266),c=n(5538);t.SchedulerDrag=function(e){var t=(0,s.useSchedulerViewRangesContext)(),n=(0,u.useSchedulerPropsContext)().timezone,a=(0,u.useSchedulerGroupsContext)(),l=(0,u.useSchedulerFieldsContext)(),p=(0,u.useSchedulerDateRangeContext)(),f=(0,s.useSchedulerViewSlotsContext)()[0],h=e.viewItem||d.viewItem,m=o.useMemo((function(){return(0,i.toOccurrences)([e.dataItem],{dateRange:p,fields:l,timezone:n})}),[e.dataItem,p,l,n]),v=o.useMemo((function(){return(0,i.toItems)(m,{timezone:n},{groups:a,ranges:t})}),[m,n,a,t]),g=(f||[]).map((function(e){return e.current.props}));return(0,c.mapItemsToSlots)(v,g),o.createElement(o.Fragment,null,v.map((function(t,n){return o.createElement(h,r({key:n},t,{item:e.item,dragHint:!0,vertical:e.vertical,ignoreIsAllDay:e.ignoreIsAllDay}))})))};var d={viewItem:l.SchedulerViewItem,item:a.SchedulerItem};t.SchedulerDrag.defaultProps=d,t.SchedulerDrag.displayName="KendoReactSchedulerDrag"},3999:function(e,t,n){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},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.SchedulerResize=void 0;var o=n(3899),i=n(95),a=n(7285),l=n(6612),s=n(7907),u=n(6266),c=n(5538);t.SchedulerResize=function(e){var t=(0,s.useSchedulerViewRangesContext)(),n=(0,u.useSchedulerPropsContext)().timezone,a=(0,u.useSchedulerGroupsContext)(),l=(0,u.useSchedulerFieldsContext)(),p=(0,u.useSchedulerDateRangeContext)(),f=(0,s.useSchedulerViewSlotsContext)()[0],h=e.viewItem||d.viewItem,m=o.useMemo((function(){return(0,i.toOccurrences)([e.dataItem],{dateRange:p,fields:l,timezone:n})}),[e.dataItem,p.start.getTime(),p.end.getTime(),l,n]),v=o.useMemo((function(){return(0,i.toItems)(m,{timezone:n},{groups:a,ranges:t})}),[m,n,a,t]),g=(f||[]).map((function(e){return e.current.props}));return(0,c.mapItemsToSlots)(v,g),o.createElement(o.Fragment,null,v.map((function(t,n){return o.createElement(h,r({key:n},t,{format:e.format,item:e.item,resizeHint:!0,vertical:e.vertical,ignoreIsAllDay:e.ignoreIsAllDay}))})))};var d={viewItem:l.SchedulerViewItem,item:a.SchedulerItem};t.SchedulerResize.defaultProps=d,t.SchedulerResize.displayName="KendoReactSchedulerResize"},535:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VerticalResourceIterator=void 0;var r=n(3899),o=n(3152),i=n(7091);t.VerticalResourceIterator=function(e){var t=e.nested,n=e.wrapGroup,i=e.children,c=e.cellContent||p,d=(0,o.toGroupResources)(e.group,e.resources);return r.createElement("div",{className:"k-scheduler-group"},t?n?r.createElement("div",{className:"k-scheduler-row"},r.createElement("div",{className:"k-sticky-cell"},s({resources:d,children:i,cellContent:c,depth:0,groupIndex:0})),r.createElement("div",{className:"k-scheduler-cell k-group-content"},l({resources:d,children:i,cellContent:c,depth:0,groupIndex:0},!1))):l({resources:d,children:i,cellContent:c,depth:0,groupIndex:0},!0):n?r.createElement("div",{className:"k-scheduler-row"},r.createElement("div",{className:"k-sticky-cell"},a({resources:d,children:i,cellContent:c,depth:0,groupIndex:0})),r.createElement("div",{className:"k-scheduler-cell k-group-content"},i)):u({resources:d,children:i,cellContent:c,depth:0,groupIndex:0}))};var a=function(e){return r.createElement("div",{className:"k-scheduler-row"},r.createElement("div",{className:"k-scheduler-row"},e.resources.map((function(e,t){return r.createElement("div",{key:t,className:"k-scheduler-cell k-resource-cell k-heading-cell","data-depth-index":t})}))))},l=function(e,t){void 0===t&&(t=!0);var n=e.resources,o=e.children,a=e.cellContent,s=e.groupIndex,u=e.depth,c=n.length>0;if(u===n.length||!c)return r.createElement(i.SchedulerResourceIteratorContext.Provider,{value:{resource:n[u],groupIndex:c?s:0}},o);var d=n[u].data.length;return n[u].data.map((function(e,i){return r.createElement("div",{key:i,className:"k-scheduler-row"},t&&r.createElement("div",{className:"k-scheduler-cell k-group-cell k-heading-cell","data-depth-index":u},e.text),r.createElement("div",{className:"k-scheduler-cell k-group-content k-resource-row","data-depth-index":u,"data-resource-index":d*s+i},l({resources:n,children:o,cellContent:a,groupIndex:d*s+i,depth:u+1},t)))}))},s=function(e){var t=e.resources,n=e.children,o=e.cellContent,i=e.groupIndex,a=e.depth,l=t.length?t[a].data.length:0;return t[a]?t[a].data.map((function(e,u){return r.createElement("div",{key:u,className:"k-scheduler-row"},r.createElement("div",{className:"k-scheduler-cell k-resource-cell k-resource-row k-heading-cell","data-depth-index":a,"data-resource-index":l*i+u},e.text),a+1!==t.length&&r.createElement("div",{className:"k-scheduler-cell k-resource-content"},s({resources:t,children:n,cellContent:o,groupIndex:l*i+u,depth:a+1})))})):null},u=function(e){var t=e.resources,n=e.children,o=e.groupIndex,i=e.cellContent;return r.createElement("div",{className:"k-scheduler-row"},d(t),i,c(n,t,o))},c=function(e,t,n){var o=t.length>0;return r.createElement("div",{className:"k-scheduler-cell k-group-content"},r.createElement(i.SchedulerResourceIteratorContext.Provider,{value:{resource:t[n],groupIndex:o?n:void 0}},e))},d=function(e){return e.map((function(e,t){return r.createElement("div",{key:t,className:"k-scheduler-cell k-group-cell k-heading-cell","data-depth-index":t})}))};t.VerticalResourceIterator.displayName="KendoReactSchedulerVerticalResourceIterator";var p=null},3152:function(e,t){var n=this&&this.__assign||function(){return n=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},n.apply(this,arguments)},r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.setRect=t.getBorders=t.getPadding=t.getRect=t.resourcesByIndex=t.expandResources=t.addUTCDays=t.toGroupResources=t.calculateEventRect=t.toFlatGroupResources=t.last=void 0,t.last=function(e){return e[e.length-1]},t.toFlatGroupResources=function(e,o,i,a){if(void 0===o&&(o=0),void 0===i&&(i=0),void 0===a&&(a=[]),e.length<=o)return[a];var l=[];return e[o].data.map((function(s){l.push.apply(l,(0,t.toFlatGroupResources)(e,o+1,i+1,r(r([],a,!0),[n(n({},s),{field:e[o].field,valueField:e[o].valueField,colorField:e[o].colorField,multiple:e[o].multiple})],!1)))})),l},t.calculateEventRect=function(e,n){if(e.length<1||!e[0]._ref||!e[0]._ref.current)return null;var r=(0,t.getRect)(e[0]._ref.current.element),o={top:r.top,left:r.left,right:r.right,width:r.width,height:0};return e.forEach((function(e){if(e._ref.current){var r=(0,t.getRect)(e._ref.current.element).height;void 0!==r&&(!n&&r>=o.height?o.height=r:o.height+=r)}})),o},t.toGroupResources=function(e,t){var n=[];if(!t||!t.length)return n;if(e&&e.resources&&e.resources.length)for(var r=e.resources,o=function(e){var o=t.find((function(t){return t.name===r[e]}));n.push(o)},i=0;i<r.length;i++)o(i);return n},t.addUTCDays=function(e,t){var n=new Date(e.getTime());return n.setUTCDate(n.getUTCDate()+t),n},t.expandResources=function(e,t){void 0===t&&(t=e.length-1);var r=Math.max(0,t),o=[];e&&e.length||(e=[{}]);for(var i=(e[r].data||[]).map((function(t){return n(n({},t),{text:t[e[r].textField]})}))||[],a=i.length,l=1,s=0;s<=r;s++)l*=(e[s].data||[]).length||1;for(s=0;s<l;s++)i[s%a]&&o.push(i[s%a]);return o},t.resourcesByIndex=function(e,t,n){for(var r=t,o=[],i=e,a=0;a<r.length;a++){var l=r[a].data||[],s=Math.floor(i/n[a]);o.push(l[s]),i-=s*n[a]}return o},t.getRect=function(e){return e?{top:e.offsetTop,left:e.offsetLeft,right:e.offsetParent?e.offsetParent.offsetWidth-(e.offsetLeft+e.offsetWidth):0,width:e.offsetWidth,height:e.offsetHeight}:{top:0,left:0,width:0,height:0,right:0}},t.getPadding=function(e,t){return void 0===t&&(t=!1),parseFloat(window.getComputedStyle(e)[t?"paddingLeft":"paddingTop"]||"0")+parseFloat(window.getComputedStyle(e)[t?"paddingRight":"paddingBottom"]||"0")},t.getBorders=function(e,t){return void 0===t&&(t=!1),parseFloat(window.getComputedStyle(e)[t?"borderLeftWidth":"borderTopWidth"]||"0")+parseFloat(window.getComputedStyle(e)[t?"borderRightWidth":"borderBottomWidth"]||"0")},t.setRect=function(e,t,n){void 0===n&&(n=!1),e&&(void 0!==t.top&&(e.style.top="".concat(t.top,"px")),void 0!==t.left&&(e.style.left="".concat(t.left,"px")),void 0!==t.width&&(e.style.width="".concat(t.width,"px")),void 0===t.height||n||(e.style.height="number"==typeof t.height?"".concat(t.height,"px"):t.height),n&&(e.style.minHeight=void 0!==t.height&&t.height>0?"".concat(t.height,"px"):""))}},6469:function(e,t,n){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},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.DayView=void 0;var o=n(3899),i=n(9150),a=n(3364);t.DayView=function(e){return o.createElement(i.MultiDayView,r({},e))};var l={name:"day",title:function(e){return e.toLanguageString(a.dayViewTitle,a.messages[a.dayViewTitle])},dateRange:i.defaultProps.dateRange,step:1,numberOfDays:1,slotDuration:60,slotDivisions:2,selectedDateFormat:"{0:D}",selectedShortDateFormat:"{0:d}"};t.DayView.defaultProps=l,t.DayView.displayName="KendoReactSchedulerDayView"},1584:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DayViewAllDayRowContent=void 0;var r=n(3899),o=n(499),i=n(3364);t.DayViewAllDayRowContent=function(e){var t=(0,o.useLocalization)();return r.createElement(r.Fragment,null,r.createElement("div",{className:"k-scheduler-cell k-heading-cell k-side-cell k-scheduler-times-all-day"},t.toLanguageString(i.allDay,i.messages[i.allDay])),e.children)}},9604:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DayViewGroupRowContent=void 0;var r=n(3899);t.DayViewGroupRowContent=function(e){return r.createElement(r.Fragment,null,r.createElement("div",{className:"k-scheduler-cell k-side-cell","data-range-index":e.rangeIndex}),e.children)}},1238:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DayViewRowContent=void 0;var r=n(3899),o=n(3865),i=n(4603);t.DayViewRowContent=function(e){var t=e.slot,n=e.children;return r.createElement(r.Fragment,null,e.isMaster?r.createElement(i.TimeHeaderCell,{as:e.timeHeaderCell,date:t.zonedStart,start:t.zonedStart,end:t.zonedEnd,className:(0,o.classNames)("k-side-cell",{"k-major-cell":!e.isLast})}):r.createElement("div",{className:"k-scheduler-cell k-heading-cell k-side-cell"}),n)}},9150:function(e,t,n){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},r.apply(this,arguments)},o=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultProps=t.MultiDayView=void 0;var i=n(3899),a=n(189),l=n(619),s=n(7370),u=n(5798),c=n(9604),d=n(535),p=n(1584),f=n(1238),h=n(3865),m=n(5538),v=n(499),g=n(4814),y=n(95),b=n(6604),C=n(9299),E=n(6266),w=n(7091),k=n(6578),S=n(8929),O=i.createElement("div",{className:"k-scheduler-cell k-side-cell"});t.MultiDayView=function(e){var n=(0,E.useSchedulerPropsContext)(),a=n.group,D=n.timezone,x=n.resources,I=(0,v.useInternationalization)(),T=e.editItem||C.SchedulerEditItem,_=e.editSlot||b.SchedulerEditSlot,R=e.showWorkHours,M=e.numberOfDays||t.defaultProps.numberOfDays,P=e.slotDivisions||t.defaultProps.slotDivisions,N=e.slotDuration||t.defaultProps.slotDuration,F=e.workWeekStart||t.defaultProps.workWeekStart,A=e.workWeekEnd||t.defaultProps.workWeekEnd,j=I.parseDate(e.workDayStart||e.isWorkDayStart||t.defaultProps.isWorkDayStart),L=I.parseDate(e.workDayEnd||e.isWorkDayEnd||t.defaultProps.isWorkDayEnd),V=I.parseDate(e.startTime||t.defaultProps.startTime),z=I.parseDate(e.endTime||t.defaultProps.endTime),B=(0,E.useSchedulerDataContext)()[0],H=(0,E.useSchedulerGroupsContext)(),U=(0,E.useSchedulerOrientationContext)(),W=(0,E.useSchedulerFieldsContext)(),K=(0,E.useSchedulerDateRangeContext)(),q=i.useMemo((function(){return R?j:V}),[R,j,V]),Y=i.useMemo((function(){return R?L:z}),[R,L,z]),G=i.useMemo((function(){return(0,y.toRanges)(K,{step:l.MS_PER_DAY*M,timezone:D}).map((function(e){return r(r({},e),{isAllDay:!0})}))}),[K.start.getTime(),K.end.getTime(),M]),Z=i.useMemo((function(){return(0,y.toRanges)(K,{step:l.MS_PER_DAY,timezone:D}).map((function(e){return r(r({},e),{isAllDay:!1})}))}),[K.start.getTime(),K.end.getTime(),D]),X=i.useMemo((function(){return(0,y.toSlots)(K,{step:l.MS_PER_DAY},{groups:H,ranges:G})}),[K.start.getTime(),K.end.getTime(),D,G,H]),$=i.useMemo((function(){return(0,y.toSlots)(K,{step:N*g.MS_PER_MINUTE/P},{groups:H,ranges:Z}).filter((function(e){return Y.getTime()===q.getTime()||(0,m.isInTimeRange)(e.zonedStart,q,Y)}))}),[K.start.getTime(),K.end.getTime(),N,P,q.getTime(),Y.getTime(),H,Z]),Q=i.useMemo((function(){return(0,y.toOccurrences)(B,{dateRange:K,fields:W,timezone:D})}),[B,K.start.getTime(),K.end.getTime(),W,D]),J=i.useMemo((function(){return Q.filter((function(e){return e.isAllDay}))}),[Q]),ee=i.useMemo((function(){return Q.filter((function(e){return!e.isAllDay}))}),[Q]),te=i.useMemo((function(){return(0,y.toItems)(J,{timezone:D},{groups:H,ranges:G})}),[Q,D,H,G]),ne=i.useMemo((function(){return(0,y.toItems)(ee,{timezone:D},{groups:H,ranges:Z}).filter((function(e){return q.getTime()===Y.getTime()||(0,m.isInTimeRange)(e.zonedStart,q,Y)||(0,m.isInTimeRange)(e.zonedEnd,q,Y)||(0,m.isInTimeRange)(new Date(e.zonedEnd.getTime()-(e.zonedEnd.getTime()-e.zonedStart.getTime())/2),q,Y)}))}),[Q,D,H,Z,q.getTime(),Y.getTime()]);i.useMemo((function(){return(0,m.mapItemsToSlots)(te,X,!1)}),[te,X]),i.useMemo((function(){return(0,m.mapSlotsToItems)(te,X,!1)}),[te,X]),i.useMemo((function(){return(0,m.mapItemsToSlots)(ne,$,!1)}),[ne,$]),i.useMemo((function(){return(0,m.mapSlotsToItems)(ne,$,!1)}),[ne,$]);var re=i.createElement(w.SchedulerResourceIteratorContext.Consumer,null,(function(t){var n=t.groupIndex;return i.createElement("div",{className:"k-scheduler-row",key:n},Z.map((function(t,n){return i.createElement(S.DateHeaderCell,{as:e.dateHeaderCell,key:n,date:l.ZonedDate.fromLocalDate(new Date(t.zonedEnd.getTime()-(t.zonedEnd.getTime()-t.zonedStart.getTime())/2),D),start:t.start,end:t.end,format:{skeleton:"MEd"}})})))})),oe=i.createElement(w.SchedulerResourceIteratorContext.Consumer,null,(function(t){var n=t.groupIndex;return i.createElement("div",{key:n,className:"k-scheduler-row"},G.map((function(t,o){return X.filter((function(e){return e.group.index===n&&e.range.index===o})).map((function(t,o,a){return i.createElement(_,r({},t,{onDataAction:e.onDataAction,form:e.form,slot:e.slot,viewSlot:e.viewSlot,key:"".concat(t.start.getTime(),":").concat(t.group.index),row:0,col:"horizontal"===U?a.length*(n||0)+o:o,isWorkDay:0<=t.zonedStart.getDay()+(M-F)&&(t.zonedStart.getDay()+(M-F))%M<=A+(M-F),expandable:!0}))}))})))})),ie=i.useMemo((function(){return(0,h.classNames)("k-scheduler-day-view",e.className)}),[e.className]);return i.createElement(i.Fragment,null,i.createElement(s.BaseView,{id:e.id,props:e,style:e.style,className:ie,ranges:o(o([],G,!0),Z,!0),slots:o(o([],X,!0),$,!0)},i.createElement("div",{className:"k-scheduler-head"},"horizontal"===U?i.createElement(i.Fragment,null,i.createElement(u.HorizontalResourceIterator,{nested:!0,group:a,resources:x,rowContent:c.DayViewGroupRowContent,childRowContent:c.DayViewGroupRowContent},re),i.createElement(u.HorizontalResourceIterator,{group:a,resources:x,rowContent:p.DayViewAllDayRowContent,childRowContent:p.DayViewAllDayRowContent},oe),te.map((function(t){return i.createElement(T,r({key:t.isRecurring?"".concat(t.uid,":").concat(t.group.index,":").concat(t.range.index,":").concat(t.originalStart):"".concat(t.uid,":").concat(t.group.index,":").concat(t.range.index)},t,{form:e.form,onDataAction:e.onDataAction,item:e.item,viewItem:e.viewItem,editable:e.editable,vertical:!1}))}))):i.createElement(d.VerticalResourceIterator,{group:a,resources:x,cellContent:O},re)),i.createElement("div",{className:"k-scheduler-body"},"horizontal"===U?i.createElement(i.Fragment,null,$.filter((function(e){return 0===e.group.index&&0===e.range.index})).map((function(t,n){return i.createElement(i.Fragment,{key:t.index},i.createElement(u.HorizontalResourceIterator,{nested:!1,group:a,resources:x,rowContent:f.DayViewRowContent,rowContentProps:{timeHeaderCell:e.timeHeaderCell,isMaster:n%P==0,isLast:(n+1)%P==0,slot:t}},i.createElement(w.SchedulerResourceIteratorContext.Consumer,null,(function(o){var a=o.groupIndex;return i.createElement("div",{className:(0,h.classNames)("k-scheduler-row",{"k-middle-row":!((n+1)%P==0)})},Z.map((function(o,l){return $.filter((function(e){return e.index===t.index&&e.range.index===l&&e.group.index===a})).map((function(t){return i.createElement(_,r({key:"".concat(t.start.getTime(),":").concat(t.group.index)},t,{onDataAction:e.onDataAction,slot:e.slot,viewSlot:e.viewSlot,form:e.form,row:n+1,col:Z.length*(a||0)+l,isWorkHour:(0,m.isInTimeRange)(t.zonedStart,j,L),isWorkDay:F<A?F<=t.zonedEnd.getDay()&&t.zonedEnd.getDay()<=A:t.zonedEnd.getDay()<=A||F<=t.zonedEnd.getDay(),editable:e.editable}))}))})))}))))})),e.currentTimeMarker&&(0,m.intersects)((0,m.first)(Z).start,(0,m.last)(Z).end,new Date,new Date,!0)&&i.createElement(k.CurrentTimeMarker,null)):i.createElement(i.Fragment,null,i.createElement(d.VerticalResourceIterator,{nested:!0,group:a,resources:x},i.createElement(w.SchedulerResourceIteratorContext.Consumer,null,(function(t){var n=t.groupIndex;return i.createElement(i.Fragment,{key:n},i.createElement("div",{className:"k-scheduler-row"},i.createElement(p.DayViewAllDayRowContent,{groupIndex:n},G.map((function(t,o){var a=$.filter((function(e){return e.group.index===n&&0===e.range.index})).length;return X.filter((function(e){return e.group.index===n&&e.range.index===o})).map((function(t,o){return i.createElement(_,r({slot:e.slot,viewSlot:e.viewSlot,form:e.form},t,{onDataAction:e.onDataAction,key:"".concat(t.start.getTime(),":").concat(t.group.index),className:"k-scheduler-alldays-slot",row:a*(n||0)+1*(n||0),col:o,expandable:!0}))}))})))),$.filter((function(e){return e.group.index===n&&0===e.range.index})).map((function(t,o,a){return i.createElement("div",{className:"k-scheduler-row",key:t.index},i.createElement(f.DayViewRowContent,{slot:t,isMaster:o%P==0,isLast:(o+1)%P==0,timeHeaderCell:e.timeHeaderCell},Z.map((function(l,s){return $.filter((function(e){return e.index===t.index&&e.group.index===n&&e.range.index===s})).map((function(t){return i.createElement(_,r({slot:e.slot,viewSlot:e.viewSlot,form:e.form,onDataAction:e.onDataAction},t,{key:"".concat(t.start.getTime(),":").concat(t.group.index),row:a.length*(n||0)+o+1*(n||0)+1,col:s,editable:e.editable,isWorkHour:(0,m.isInTimeRange)(t.zonedStart,j,L),isWorkDay:0<=t.zonedStart.getDay()+(M-F)&&(t.zonedStart.getDay()+(M-F))%M<=A+(M-F)}))}))}))))})),e.currentTimeMarker&&(0,m.intersects)((0,m.first)(Z).start,(0,m.last)(Z).end,new Date,new Date,!0)&&i.createElement(k.CurrentTimeMarker,{groupIndex:n}))}))),te.map((function(t){return i.createElement(T,r({key:t.isRecurring?"".concat(t.uid,":").concat(t.group.index,":").concat(t.range.index,":").concat(t.originalStart):"".concat(t.uid,":").concat(t.group.index,":").concat(t.range.index)},t,{onDataAction:e.onDataAction,viewItem:e.viewItem,item:e.item,form:e.form,editable:e.editable,vertical:!1}))}))),ne.map((function(t){return i.createElement(T,r({key:t.isRecurring?"".concat(t.uid,":").concat(t.group.index,":").concat(t.range.index,":").concat(t.originalStart):"".concat(t.uid,":").concat(t.group.index,":").concat(t.range.index)},t,{format:"t",onDataAction:e.onDataAction,viewItem:e.viewItem,item:e.item,form:e.form,editable:e.editable,vertical:!0}))})))))},t.defaultProps={name:"multi-day",title:"Multi Day",currentTimeMarker:!0,dateRange:function(e){var t=e.date,n=e.numberOfDays,r=void 0===n?1:n,o=e.timezone,i=l.ZonedDate.fromLocalDate(t,o),a=(0,l.getDate)(i),s=(0,l.addDays)(a,r),u=l.ZonedDate.fromUTCDate((0,m.toUTCDateTime)(a),o),c=l.ZonedDate.fromUTCDate((0,m.toUTCDateTime)(s),o);return{start:new Date(u.getTime()),end:new Date(c.getTime()),zonedStart:u,zonedEnd:c}},selectedDateFormat:"{0:D} - {1:D}",selectedShortDateFormat:"{0:d} - {1:d}",numberOfDays:1,startTime:"00:00",endTime:"23:59",isWorkDayStart:"08:00",isWorkDayEnd:"17:00",workWeekStart:l.Day.Monday,workWeekEnd:l.Day.Friday,step:1,slotDivisions:2,slotDuration:60,showCurrentTime:!0,defaultShowWorkHours:!0},t.MultiDayView.propTypes={currentTimeMarker:a.bool,name:a.string,numberOfDays:a.number,startTime:a.string,endTime:a.string,workDayStart:a.string,workDayEnd:a.string,workWeekStart:a.number,workWeekEnd:a.any,slotDivisions:a.number,slotDuration:a.number,showWorkHours:a.bool,selectedDateFormat:a.string,selectedShortDateFormat:a.string},t.MultiDayView.defaultProps=t.defaultProps,t.MultiDayView.displayName="KendoReactSchedulerMultiDayView"},5363:function(e,t,n){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},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.MonthView=void 0;var o=n(3899),i=n(189),a=n(7370),l=n(619),s=n(3865),u=n(535),c=n(5798),d=n(5538),p=n(3364),f=n(6604),h=n(499),m=n(4814),v=n(8180),g=n(6189),y=n(3539),b=n(8963),C=n(3104),E=n(9299),w=n(6266),k=n(7091),S=n(8929),O={skeleton:"dd"};t.MonthView=function(e){var t=(0,w.useSchedulerPropsContext)(),n=t.group,i=t.timezone,p=t.resources,x=e.editItem||E.SchedulerEditItem,I=e.editSlot||f.SchedulerEditSlot,T=(0,w.useSchedulerDataContext)()[0],_=(0,w.useSchedulerDateContext)()[1],R=(0,w.useSchedulerActiveViewContext)()[1],M=(0,w.useSchedulerViewsContext)(),P=(0,w.useSchedulerGroupsContext)(),N=(0,w.useSchedulerOrientationContext)(),F=(0,w.useSchedulerDateRangeContext)(),A=(0,h.useInternationalization)(),j=(0,w.useSchedulerFieldsContext)(),L=e.itemsPerSlot||D.itemsPerSlot,V=o.useMemo((function(){return(0,v.toRanges)(F,{step:l.MS_PER_DAY*m.DAYS_IN_WEEK_COUNT,timezone:i})}),[F.start.getTime(),F.end.getTime(),i]),z=o.useMemo((function(){return(0,g.toSlots)(F,{step:l.MS_PER_DAY},{groups:P,ranges:V})}),[F.start.getTime(),F.end.getTime(),P,V]),B=o.useMemo((function(){return(0,y.toOccurrences)(T,{dateRange:F,fields:j,timezone:i})}),[T,F.start.getTime(),F.end.getTime(),j,i]),H=o.useMemo((function(){return(0,b.toItems)(B,{timezone:i},{groups:P,ranges:V})}),[B,i,P,V]),U=o.useCallback((function(e){var t=M.find((function(e){return"day"===e.props.name}));R&&t&&t.props.name&&e.target.slot&&(R(t.props.name,e),_(e.target.slot.start,e))}),[R,M]);o.useMemo((function(){return(0,d.mapItemsToSlots)(H,z,!0)}),[H,z]),o.useMemo((function(){return(0,d.mapSlotsToItems)(H,z,!0)}),[H,z]);var W=o.createElement(k.SchedulerResourceIteratorContext.Consumer,null,(function(t){var n=t.groupIndex;return o.createElement("div",{className:"k-scheduler-row",key:n},z.filter((function(e){return e.group.index===n&&0===e.range.index})).map((function(t,n){return o.createElement(S.DateHeaderCell,{as:e.dateHeaderCell,key:n,"data-dayslot-index":n,date:l.ZonedDate.fromLocalDate(new Date(t.zonedEnd.getTime()-(t.zonedEnd.getTime()-t.zonedStart.getTime())/2),i),start:t.start,end:t.end,format:{skeleton:"EEEE"}})})))})),K=o.createElement(k.SchedulerResourceIteratorContext.Consumer,null,(function(t){var n=t.groupIndex;return V.map((function(t,i){return o.createElement("div",{className:"k-scheduler-row",key:i},z.filter((function(e){return e.group.index===n&&e.range.index===i})).map((function(t,a,l){return o.createElement(I,r({slot:e.slot,viewSlot:e.viewSlot,key:a,form:e.form},t,{expandable:{offsetTop:30,offsetBottom:L<t.items.length?15:0},onDataAction:e.onDataAction,col:"horizontal"===N?l.length*(n||0)+a:a,row:"horizontal"===N?i:V.length*(n||0)+i,editable:e.editable}),o.createElement("span",{className:"k-link k-nav-day"},A.formatDate(new Date(t.end.getTime()-(t.end.getTime()-t.start.getTime())/2),O)),L<t.items.length&&o.createElement(C.ShowMoreItemsButton,{slot:t,onClick:U}))})))}))}));return o.createElement(a.BaseView,{props:e,slots:z,ranges:V,className:(0,s.classNames)("k-scheduler-monthview",e.className)},o.createElement("div",{className:"k-scheduler-head"},"horizontal"===N?o.createElement(c.HorizontalResourceIterator,{nested:!0,resources:p,group:n},W):o.createElement(u.VerticalResourceIterator,{resources:p,group:n},W)),o.createElement("div",{className:"k-scheduler-body"},"horizontal"===N?o.createElement(c.HorizontalResourceIterator,{resources:p,group:n},K):o.createElement(u.VerticalResourceIterator,{nested:!0,resources:p,group:n},K),H.filter((function(e){return null===e.order||e.order<L})).sort(d.orderSort).map((function(t){return o.createElement(x,r({item:e.item,viewItem:e.viewItem,form:e.form,key:t.isRecurring?"".concat(t.uid,":").concat(t.group.index,":").concat(t.range.index,":").concat(t.originalStart):"".concat(t.uid,":").concat(t.group.index,":").concat(t.range.index)},t,{onDataAction:e.onDataAction,style:{transform:"translateY(30px)"},vertical:!1,editable:e.editable,ignoreIsAllDay:!0}))}))))};var D={name:"month",dateRange:function(e){var t=e.intl,n=e.date,r=e.timezone,o=(0,l.firstDayInWeek)((0,l.firstDayOfMonth)((0,l.getDate)(n)),t.firstDay()),i=(0,l.addDays)((0,l.firstDayInWeek)((0,l.lastDayOfMonth)((0,l.getDate)(n)),t.firstDay()),m.DAYS_IN_WEEK_COUNT),a=l.ZonedDate.fromUTCDate((0,d.toUTCDateTime)(o),r),s=l.ZonedDate.fromUTCDate((0,d.toUTCDateTime)(i),r);return{start:new Date(a.getTime()),end:new Date(s.getTime()),zonedStart:a,zonedEnd:s}},slotDuration:1440,slotDivision:1,itemsPerSlot:2,numberOfDays:31,title:function(e){return e.toLanguageString(p.monthViewTitle,p.messages[p.monthViewTitle])},selectedDateFormat:"{0:Y}",selectedShortDateFormat:"{0:Y}"},x={itemsPerSlot:i.number};t.MonthView.defaultProps=D,t.MonthView.propTypes=x,t.MonthView.displayName="KendoReactSchedulerMonthView"},7783:function(e,t,n){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},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultProps=t.MultiDayTimelineView=void 0;var o=n(3899),i=n(7370),a=n(8586),l=n(619),s=n(5798),u=n(45),c=n(5263),d=n(535),p=n(5538),f=n(3865),h=n(8180),m=n(6189),v=n(3539),g=n(8963),y=n(6604),b=n(4814),C=n(499),E=n(9299),w=n(6266),k=n(7091),S=n(6578),O=n(8929),D=n(4603);t.MultiDayTimelineView=function(e){var n=(0,w.useSchedulerPropsContext)(),x=n.group,I=n.timezone,T=n.resources,_=o.useRef(null),R=o.useRef(null),M=e.editItem||E.SchedulerEditItem,P=e.editSlot||y.SchedulerEditSlot,N=o.useRef(null),F=(0,w.useSchedulerDataContext)()[0],A=(0,w.useSchedulerOrientationContext)(),j=(0,w.useSchedulerGroupsContext)(),L=(0,w.useSchedulerDateRangeContext)(),V=(0,w.useSchedulerFieldsContext)(),z=(0,C.useInternationalization)(),B=e.showWorkHours,H=e.slotDivisions||t.defaultProps.slotDivisions,U=e.slotDuration||t.defaultProps.slotDuration,W=z.parseDate(e.workDayStart||e.isWorkDayStart||t.defaultProps.isWorkDayStart),K=z.parseDate(e.workDayEnd||e.isWorkDayEnd||t.defaultProps.isWorkDayEnd),q=z.parseDate(e.startTime||t.defaultProps.startTime),Y=z.parseDate(e.endTime||t.defaultProps.endTime),G=o.useMemo((function(){return B?W:q}),[B,W,q]),Z=o.useMemo((function(){return B?K:Y}),[B,K,Y]),X=o.useMemo((function(){return(0,h.toRanges)(L,{step:l.MS_PER_DAY,timezone:I})}),[L.start.getTime(),L.end.getTime(),I]),$=o.useMemo((function(){return(0,m.toSlots)(L,{step:U/H*l.MS_PER_MINUTE},{groups:j,ranges:X}).filter((function(e){return(0,p.isInTimeRange)(e.zonedStart,G,Z)||G.getTime()===Z.getTime()}))}),[j,X,L.start.getTime(),L.end.getTime(),I,U,H,G.getTime(),Z.getTime()]),Q=o.useMemo((function(){return(0,v.toOccurrences)(F,{dateRange:L,fields:V,timezone:I})}),[F,L.start.getTime(),L.end.getTime(),V,I]),J=o.useMemo((function(){return(0,g.toItems)(Q,{timezone:I},{groups:j,ranges:X}).filter((function(e){return G.getTime()===Z.getTime()||(0,p.isInTimeRange)(e.zonedStart,G,Z)||(0,p.isInTimeRange)(e.zonedEnd,G,Z)||(0,p.isInTimeRange)(new Date(e.zonedEnd.getTime()-(e.zonedEnd.getTime()-e.zonedStart.getTime())/2),G,Z)}))}),[Q,I,j,X,G.getTime(),Z.getTime()]);o.useMemo((function(){return(0,p.mapItemsToSlots)(J,$,!0)}),[J,$]),o.useMemo((function(){return(0,p.mapSlotsToItems)(J,$,!0)}),[J,$]);var ee=("horizontal"===A?$.length:$.length/j.length)*((e.columnWidth||t.defaultProps.columnWidth)+b.BORDER_WIDTH),te=o.createElement(k.SchedulerResourceIteratorContext.Consumer,null,(function(){return o.createElement(o.Fragment,null,o.createElement("div",{className:"k-scheduler-row"},X.map((function(t,n){return o.createElement(O.DateHeaderCell,{as:e.dateHeaderCell,key:n,date:t.zonedStart,start:t.start,end:t.end,format:"m"})}))),o.createElement("div",{className:"k-scheduler-row",ref:_},X.map((function(t,n){return $.filter((function(e){return 0===e.group.index&&e.range.index===n})).map((function(t){return t.zonedStart.getMinutes()%U==0?o.createElement(D.TimeHeaderCell,{key:t.index,as:e.timeHeaderCell,format:"t",date:t.zonedStart,start:t.zonedStart,end:t.zonedEnd}):null}))}))))})),ne=o.createElement(k.SchedulerResourceIteratorContext.Consumer,null,(function(t){var n=t.groupIndex;return o.createElement("div",{className:"k-scheduler-row"},X.map((function(t,i){return $.filter((function(e){return e.group.index===n&&e.range.index===i})).map((function(t,a,l){return o.createElement(P,r({key:"".concat(t.start.getTime(),":").concat(t.group.index),slot:e.slot,viewSlot:e.viewSlot},t,{form:e.form,onDataAction:e.onDataAction,isWorkHour:(0,p.isInTimeRange)(t.zonedStart,W,K),col:"horizontal"===A?i*l.length+a+l.length*X.length*(n||0):i*l.length+a,row:"horizontal"===A?0:n||0,expandable:!0,editable:e.editable}))}))})))})),re=o.useMemo((function(){return(0,f.classNames)("k-scheduler-timeline-view",e.className)}),[e.className]);return(0,a.useCellSync)({element:N,selector:".k-resource-cell",attribute:"data-depth-index",explicitDepth:!0}),(0,a.useRowSync)({element:N,selector:".k-resource-row",horizontalAttribute:"data-depth-index",verticalAttribute:"data-resource-index",applyTo:".k-resource-cell"}),o.createElement(o.Fragment,null,o.createElement(i.BaseView,{ref:N,id:e.id,style:r({},e.style),className:re,props:e,slots:$,ranges:X},o.createElement("div",{className:"k-scheduler-head",style:{width:ee}},"horizontal"===A?o.createElement(s.HorizontalResourceIterator,{nested:!0,group:x,resources:T,rowContent:u.TimelineViewRowContent},te):o.createElement(d.VerticalResourceIterator,{wrapGroup:!0,group:x,resources:T},te)),o.createElement("div",{className:"k-scheduler-body",style:{width:ee},ref:R},"horizontal"===A?o.createElement(s.HorizontalResourceIterator,{group:x,resources:T,rowContent:c.TimelineViewAllEventsRowContent},ne,o.createElement(k.SchedulerResourceIteratorContext.Consumer,null,(function(t){var n=t.groupIndex;return e.currentTimeMarker&&(0,p.intersects)((0,p.first)(X).start,(0,p.last)(X).end,new Date,new Date,!0)&&o.createElement(S.CurrentTimeMarker,{groupIndex:n,attachArrow:_,vertical:!0})}))):o.createElement(d.VerticalResourceIterator,{nested:!0,wrapGroup:!0,group:x,resources:T},ne),"vertical"===A&&e.currentTimeMarker&&(0,p.intersects)((0,p.first)(X).start,(0,p.last)(X).end,new Date,new Date,!0)&&o.createElement(S.CurrentTimeMarker,{attachArrow:_,vertical:!0}),J.sort(p.orderSort).map((function(t){return o.createElement(M,r({key:t.isRecurring?"".concat(t.uid,":").concat(t.group.index,":").concat(t.range.index,":").concat(t.originalStart):"".concat(t.uid,":").concat(t.group.index,":").concat(t.range.index)},t,{format:"t",form:e.form,onDataAction:e.onDataAction,item:e.item,viewItem:e.viewItem,editable:e.editable,ignoreIsAllDay:!0,vertical:!1}))})))))},t.defaultProps={name:"multi-day-timeline",title:"Multi Day Timeline",currentTimeMarker:!0,dateRange:function(e){var t=e.date,n=e.numberOfDays,r=void 0===n?1:n,o=e.timezone,i=l.ZonedDate.fromLocalDate(t,o),a=(0,l.getDate)(i),s=(0,l.addDays)(a,r),u=l.ZonedDate.fromUTCDate((0,p.toUTCDateTime)(a),o),c=l.ZonedDate.fromUTCDate((0,p.toUTCDateTime)(s),o);return{start:new Date(u.getTime()),end:new Date(c.getTime()),zonedStart:u,zonedEnd:c}},selectedDateFormat:"{0:D} - {1:D}",selectedShortDateFormat:"{0:d} - {1:d}",step:1,numberOfDays:1,startTime:"00:00",endTime:"00:00",isWorkDayStart:"8:00",isWorkDayEnd:"17:00",workWeekStart:l.Day.Monday,workWeekEnd:l.Day.Friday,slotDivisions:2,slotDuration:60,defaultShowWorkHours:!0,columnWidth:100},t.MultiDayTimelineView.defaultProps=t.defaultProps},97:function(e,t,n){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},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultProps=t.TimelineView=void 0;var o=n(3899),i=n(7783),a=n(3364);t.TimelineView=function(e){return o.createElement(i.MultiDayTimelineView,r({},e))},t.defaultProps={name:"timeline",title:function(e){return e.toLanguageString(a.timelineViewTitle,a.messages[a.timelineViewTitle])},dateRange:i.defaultProps.dateRange,step:1,slotDuration:60,slotDivisions:2,numberOfDays:1,selectedDateFormat:"{0:D}",selectedShortDateFormat:"{0:d}"},t.TimelineView.defaultProps=t.defaultProps,t.TimelineView.displayName="KendoReactSchedulerTimelineView"},5263:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TimelineViewAllEventsRowContent=void 0;var r=n(3899),o=n(3364),i=n(499);t.TimelineViewAllEventsRowContent=function(e){var t=(0,i.useLocalization)();return r.createElement(r.Fragment,null,r.createElement("div",{className:"k-sticky-cell"},r.createElement("div",{className:"k-scheduler-cell k-heading-cell k-side-cell k-scheduler-times-all-day","data-range-index":0},t.toLanguageString(o.allEvents,o.messages[o.allEvents]))),e.children)}},45:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TimelineViewRowContent=void 0;var r=n(3899),o=r.createElement("div",{className:"k-scheduler-cell k-side-cell"});t.TimelineViewRowContent=function(e){return r.createElement(r.Fragment,null,r.createElement("div",{className:"k-sticky-cell"},o),e.children)}},3750:function(e,t,n){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},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultProps=t.WeekView=void 0;var o=n(3899),i=n(9150),a=n(4814),l=n(619),s=n(3364),u=n(5538);t.WeekView=function(e){return o.createElement(i.MultiDayView,r({},e,{step:a.DAYS_IN_WEEK_COUNT,numberOfDays:e.numberOfDays}))},t.defaultProps={name:"week",slotDuration:60,slotDivisions:2,numberOfDays:a.DAYS_IN_WEEK_COUNT,dateRange:function(e){var t,n,r=e.intl,o=e.date,i=e.timezone,s=l.ZonedDate.fromLocalDate(o,i),c=function(e){return(0,l.getDate)(e)}((0,l.firstDayInWeek)(s,r.firstDay())),d=(t=c,n=a.DAYS_IN_WEEK_COUNT,(0,l.getDate)((0,l.addDays)(t,n||1))),p=l.ZonedDate.fromUTCDate((0,u.toUTCDateTime)(c),i),f=l.ZonedDate.fromUTCDate((0,u.toUTCDateTime)(d),i);return{start:new Date(p.getTime()),end:new Date(f.getTime()),zonedStart:p,zonedEnd:f}},title:function(e){return e.toLanguageString(s.weekViewTitle,s.messages[s.weekViewTitle])},selectedDateFormat:"{0:D} - {1:D}",selectedShortDateFormat:"{0:d} - {1:d}"},t.WeekView.defaultProps=t.defaultProps,t.WeekView.displayName="KendoReactSchedulerWeekView"},385:function(e,t,n){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},r.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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.WorkWeekView=void 0;var i=n(3899),a=n(619),l=n(4814),s=n(9150),u=n(3364),c=n(5538),d=n(468);t.WorkWeekView=function(e){var t=(0,d.useSchedulerDateRangeContext)(),n=Math.round((t.end.getTime()-t.start.getTime())/a.MS_PER_DAY);return i.createElement(s.MultiDayView,r({},e,{step:l.DAYS_IN_WEEK_COUNT,numberOfDays:n}))};var p={name:"work-week",slotDuration:60,slotDivisions:2,numberOfDays:7,dateRange:function(e){e.intl;var t=e.date,n=e.timezone,r=o(e,["intl","date","timezone"]),i=a.ZonedDate.fromLocalDate(t,n),s=void 0!==r.workWeekStart?r.workWeekStart:a.Day.Monday,u=void 0!==r.workWeekEnd?r.workWeekEnd:a.Day.Friday,d=u<s?l.DAYS_IN_WEEK_COUNT+u-s+1:u-s+1,p=(0,a.getDate)(function(e,t){void 0===t&&(t=a.Day.Sunday);for(var n=e.clone();n.getDay()!==t;)n=n.addDays(-1);return n}(i,s)),f=(0,a.addDays)(p,d),h=a.ZonedDate.fromUTCDate((0,c.toUTCDateTime)(p),n),m=a.ZonedDate.fromUTCDate((0,c.toUTCDateTime)(f),n);return{start:new Date(h.getTime()),end:new Date(m.getTime()),zonedStart:h,zonedEnd:m}},title:function(e){return e.toLanguageString(u.workWeekViewTitle,u.messages[u.workWeekViewTitle])},workWeekStart:a.Day.Monday,workWeekEnd:a.Day.Friday,selectedDateFormat:"{0:D} - {1:D}",selectedShortDateFormat:"{0:d} - {1:d}"};t.WorkWeekView.defaultProps=p,t.WorkWeekView.displayName="KendoReactSchedulerWorkWeekView"},7037:(e,t,n)=>{n.d(t,{z:()=>p});var r,o=n(3899),i=n(189),a=n(8047),l=n(2697),s=n(4006),u=n(2709),c=(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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(){return d=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},d.apply(this,arguments)},p=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)},(0,s.s)(u.k),n.state={selected:!0===n.props.togglable&&!0===n.props.selected},n}return c(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return void 0!==this._selectedTemp?this._selectedTemp:this.state.selected},enumerable:!1,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,n=this,r=this.props,i=r.children,s=r.togglable,u=r.icon,c=r.iconClass,p=r.imageUrl,f=r.imageAlt,h=(r.className,r.onClick,r.size),m=void 0===h?t.defaultProps.size:h,v=r.shape,g=void 0===v?t.defaultProps.shape:v,y=r.rounded,b=void 0===y?t.defaultProps.rounded:y,C=r.fillMode,E=void 0===C?t.defaultProps.fillMode:C,w=r.themeColor,k=void 0===w?t.defaultProps.themeColor:w,S=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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(r,["children","togglable","icon","iconClass","imageUrl","imageAlt","className","onClick","size","shape","rounded","fillMode","themeColor"]),O=void 0!==u||void 0!==c||void 0!==p,D=void 0!==i,x=function(e){var t=e.imageUrl,n=e.icon,r=e.iconClass,i=e.imageAlt;if(t)return o.createElement("img",{role:"presentation",className:"k-button-icon",alt:i,src:t});if(n){var l=(0,a.A)("k-button-icon k-icon","k-i-"+n);return o.createElement("span",{role:"presentation",className:l})}return r?o.createElement("span",{role:"presentation",className:(0,a.A)("k-button-icon",r)}):null}({icon:u,iconClass:c,imageUrl:p,imageAlt:f});return o.createElement("button",d({ref:function(e){return n._element=e},role:s?"checkbox":void 0,"aria-disabled":this.props.disabled||void 0,"aria-checked":s?this.state.selected:void 0},S,{onClick:this.handleClick,className:(0,a.A)("k-button",(e={},e["k-button-".concat(l.G.sizeMap[m]||m)]=m,e["k-button-".concat(g)]=g,e["k-button-".concat(E)]=E,e["k-button-".concat(E,"-").concat(k)]=Boolean(E&&k),e["k-rounded-".concat(l.G.roundedMap[b]||b)]=b,e["k-icon-button"]=!D&&O,e["k-disabled"]=this.props.disabled,e["k-selected"]=this.state.selected,e["k-rtl"]="rtl"===this.props.dir,e),this.props.className)}),x,i&&o.createElement("span",{className:"k-button-text"},i))},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:i.node,selected:i.bool,togglable:i.bool,icon:i.string,iconClass:i.string,imageUrl:i.string,imageAlt:i.string,size:i.oneOf([null,"small","medium","large"]),shape:i.oneOf([null,"rectangle","square"]),rounded:i.oneOf([null,"small","medium","large","full"]),fillMode:i.oneOf([null,"flat","link","outline","solid"]),themeColor:i.oneOf([null,"base","primary","secondary","tertiary","info","success","warning","error","dark","light","inverse"])},t.defaultProps={togglable:!1,size:"medium",shape:"rectangle",rounded:"medium",fillMode:"solid",themeColor:"base"},t}(o.Component)},7711:(e,t,n)=>{n.d(t,{h:()=>f});var r,o=n(3899),i=n(189),a=n(8047),l=n(4006),s=n(2709),u=n(1889),c=(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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(){return d=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},d.apply(this,arguments)},p=u.Z.styles,f=function(e){function t(t){var n=e.call(this,t)||this;return n._element=null,(0,l.s)(s.k),n}return c(t,e),t.prototype.render=function(){var e,t=this,n=this.mapButtons(this.props.children),r=(0,a.A)([p["button-group"]],((e={})["k-disabled"]=this.props.disabled,e[p["button-group-stretched"]]=!!this.props.width,e),this.props.className),i={className:r,style:{width:"".concat(this.props.width)},dir:this.props.dir,role:"group","aria-disabled":this.props.disabled};return o.createElement("div",d({ref:function(e){t._element=e}},i,{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,i){return o.isValidElement(e)?t.renderButton(e,i,i===n-1,r):e}))},t.prototype.renderButton=function(e,t,n,r){var i,l=(0,a.A)(e.props.className,((i={})[p["group-start"]]=r?n:0===t,i[p["group-end"]]=r?0===t:n,i)),s=d(d({},this.props.width?{width:this.props.width}:{}),e.props.style||{}),u=this.props.disabled||e.props.disabled,c=d(d(d(d({},e.props),l?{className:l}:{}),Object.keys(s).length?{style:s}:{}),void 0!==u?{disabled:u}:{});return o.Children.count(e.props.children)>0?o.cloneElement(e,c,e.props.children):o.cloneElement(e,c)},t.propTypes={children:i.oneOfType([i.arrayOf(i.element),i.element]),className:i.string,disabled:i.bool,width:i.string,dir:i.string},t}(o.Component)},1711:(e,t,n)=>{n.d(t,{A:()=>y});var r=n(3899),o=n(189),i=n(228),a=n(8199),l=n(3493),s=n(4703),u=n(8047),c=n(2697),d=n(4163),p=n(5770),f=n(5209),h=n(4006),m=n(2709),v=n(3322),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},g.apply(this,arguments)},y=r.forwardRef((function(e,t){var n;(0,h.s)(m.k);var o=r.useRef(null),y=r.useRef(null),b=(0,a.n)(y,e.dir);r.useImperativeHandle(o,(function(){return{element:y.current,props:e}})),r.useImperativeHandle(t,(function(){return o.current}));var C=r.useContext(i.Wn),E=C[0],w=C[1],k=r.useContext(i.OW),S=k[0],O=k[1],D=r.useContext(i.zD)[1],x=r.useMemo((function(){return e.selected||(Array.isArray(E)?E.some((function(t){return t===e.value})):E===e.value)}),[e.selected,e.value,E]),I=r.useMemo((function(){return S===e.value}),[e.value,S]);r.useEffect((function(){I&&y.current&&y.current.focus()}),[I]);var T=r.useCallback((function(t){w({type:f.ey.toggle,payload:e.value,event:t})}),[w,e.value]),_=r.useCallback((function(t){e.removable&&(D({type:p.S.remove,payload:e.value,event:t}),O({type:d.E.reset,payload:e.value,event:t}),w({type:f.ey.remove,payload:e.value,event:t}),e.onRemove&&e.onRemove.call(void 0,{target:o.current,syntheticEvent:t}))}),[e.onRemove,e.value,e.removable,D,O,w]),R=r.useCallback((function(t){switch(t.keyCode){case l.R.left:O({type:d.E.prev,payload:e.value,event:t});break;case l.R.right:O({type:d.E.next,payload:e.value,event:t});break;case l.R.enter:w({type:f.ey.toggle,payload:e.value,event:t});break;case l.R.delete:_(t)}e.onKeyDown&&e.onKeyDown.call(void 0,{target:o.current,syntheticEvent:t})}),[e.onKeyDown,e.value,O,w,_]),M=r.useCallback((function(t){O({payload:e.value,type:d.E.current,event:t}),e.onFocus&&e.onFocus.call(void 0,{target:o.current,syntheticEvent:t})}),[e.onFocus,e.value,O]),P=r.useCallback((function(t){e.onBlur&&e.onBlur.call(void 0,{target:o.current,syntheticEvent:t})}),[e.onBlur]),N=(0,v.i)(e,o,{onClick:T});return r.createElement("div",g({},N,{role:e.role,id:e.value,style:e.style,ref:y,dir:b,tabIndex:(0,s.p)(e.tabIndex,e.disabled,void 0),className:(0,u.A)("k-chip",(n={"k-rtl":"rtl"===b,"k-disabled":e.disabled,"k-selected":x,"k-focus":I},n["k-chip-".concat(c.G.sizeMap[e.size]||e.size)]=e.size,n["k-rounded-".concat(c.G.roundedMap[e.rounded]||e.rounded)]=e.rounded,n["k-chip-".concat(e.fillMode)]=e.fillMode,n["k-chip-".concat(e.fillMode,"-").concat(e.themeColor)]=Boolean(e.fillMode&&e.themeColor),n),e.className),"aria-checked":x,"aria-disabled":e.disabled,"aria-describedby":e.ariaDescribedBy,onFocus:M,onBlur:P,onKeyDown:R}),x&&e.selectedIcon&&r.createElement("span",{className:(0,u.A)("k-chip-icon","k-icon",e.selectedIcon)}),e.icon&&r.createElement("span",{className:(0,u.A)("k-chip-icon","k-icon",e.icon)}),r.createElement("span",{className:"k-chip-content"},void 0!==e.children?e.children:e.text&&r.createElement("span",{"aria-label":e.text,className:"k-chip-label"},e.text)),e.removable&&r.createElement("span",{className:"k-chip-actions"},r.createElement("span",{className:"k-chip-action"},r.createElement("span",{className:(0,u.A)("k-chip-remove-action","k-icon",e.removeIcon),onClick:_}))))})),b={id:o.string,text:o.string,value:o.any,dir:o.oneOf(["ltr","rtl"]),removable:o.bool,removeIcon:o.string,disabled:o.bool,icon:o.string,selectedIcon:o.string,onRemove:o.func,dataItem:o.any,selected:o.bool,ariaDescribedBy:o.string,size:o.oneOf([null,"small","medium","large"]),rounded:o.oneOf([null,"small","medium","large","full"]),fillMode:o.oneOf([null,"outline","solid"]),themeColor:o.oneOf([null,"base","info","success","warning","error"])};y.displayName="KendoReactChip",y.propTypes=b,y.defaultProps={disabled:!1,removable:!1,removeIcon:"k-i-x-circle",dir:"ltr",size:"medium",rounded:"medium",fillMode:"solid",themeColor:"base"}},228:(e,t,n)=>{n.d(t,{Wn:()=>y,OW:()=>b,zD:()=>C,jg:()=>E});var r=n(3899),o=n(189),i=n(8199),a=n(9659),l=n(3322),s=n(4703),u=n(8047),c=n(2697),d=n(5209),p=n(4163),f=n(5770),h=n(1711),m=n(4006),v=n(2709),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},g.apply(this,arguments)},y=r.createContext([null,function(e){}]),b=r.createContext([null,function(e){}]),C=r.createContext([null,function(e){}]),E=r.forwardRef((function(e,t){var n;(0,m.s)(v.k);var o=r.useRef(null),E=r.useRef(null),w=(0,i.n)(E,e.dir),S=e.chip,O=e.id,D=e.style,x=e.tabIndex,I=e.disabled,T=e.size,_=e.className,R=e.ariaDescribedBy,M=e.ariaLabelledBy,P=e.selection,N=void 0===P?k.selection:P,F=e.value,A=void 0===F?k.defaultValue:F,j=e.defaultData,L=void 0===j?k.defaultData:j,V=e.valueField,z=void 0===V?k.valueField:V,B=e.textField,H=void 0===B?k.textField:B,U=e.onChange,W=e.onDataChange,K=r.useMemo((function(){return S||h.A}),[S,h.A]);r.useImperativeHandle(o,(function(){return{element:E.current,props:e}})),r.useImperativeHandle(t,(function(){return o.current}));var q=r.useCallback((function(e,t){U&&o.current&&U.call(void 0,{value:e,target:o.current,syntheticEvent:t})}),[U]),Y=function(e,t,n){var o=r.useState(e),i=o[0],a=o[1];return[i,function(e){var r=(0,d.TX)(t.state||i,g(g({},e),t));n&&n(r,e.event),a(r)}]}(A,{selection:N,state:A},q),G=Y[0],Z=Y[1],X=r.useCallback((function(e,t){W&&o.current&&W.call(void 0,{value:e,target:o.current,syntheticEvent:t})}),[W]),$=function(e,t,n){var o=r.useState(e),i=o[0],a=o[1];return[i,function(e){var r=(0,f.I)(t.state||i,g(g({},e),t));n&&n(r,e.event),a(r)}]}(e.data||L,{state:e.data,valueField:z},X),Q=$[0],J=$[1],ee=r.useCallback((function(e,t){return e.push(t[z]),e}),[z]),te=r.useMemo((function(){return e.data||Q}),[e.data,Q]),ne=r.useMemo((function(){return A||G}),[A,G]),re=r.useMemo((function(){return te.reduce(ee,[])}),[te,ee]),oe=r.useCallback((function(e){return(0,a.Y)(z)(e)}),[z]),ie=r.useCallback((function(e){return(0,a.Y)(H)(e)}),[H]),ae=function(e){var t=r.useState(null),n=t[0],o=t[1];return[n,function(t){var n=(0,p.L)(t.payload,g(g({},t),e));o(n)}]}({items:re}),le=ae[0],se=ae[1],ue=(0,l.i)(e,o);return r.createElement(y.Provider,{value:[ne,Z]},r.createElement(b.Provider,{value:[le,se]},r.createElement(C.Provider,{value:[te,J]},r.createElement("div",g({ref:E},ue,{role:"listbox",id:O,dir:w,style:D,tabIndex:(0,s.p)(x,I,void 0),className:(0,u.A)("k-chip-list",(n={"k-rtl":"rtl"===w,"k-disabled":I},n["k-chip-list-".concat(c.G.sizeMap[T]||T)]=T,n),_),"aria-labelledby":M,"aria-describedby":R}),te.map((function(e,t){return r.createElement(K,{role:"option",dataItem:e,size:T,key:[oe(e),t].join("-"),text:ie(e),value:oe(e)})}))))))})),w={id:o.string,className:o.string,tabIndex:o.number,data:o.any,defaultData:o.arrayOf(o.any),onDataChange:o.func,value:o.oneOfType([o.any,o.arrayOf(o.any)]),defaultValue:o.oneOfType([o.any,o.arrayOf(o.any)]),onChange:o.func,selection:o.oneOf(["single","none","multiple"]),textField:o.string,valueField:o.string,disabled:o.bool,dir:o.oneOf(["ltr","rtl"]),ariaLabelledBy:o.string,ariaDescribedBy:o.string,size:o.oneOf([null,"small","medium","large"])},k={chip:h.A,size:"medium",disabled:!1,defaultValue:null,defaultData:[],dir:"ltr",selection:"none",textField:"text",valueField:"value",removable:"removable"};E.displayName="KendoReactChipList",E.propTypes=w,E.defaultProps=k},5770:(e,t,n)=>{var r;n.d(t,{S:()=>r,I:()=>o}),function(e){e.remove="remove",e.add="add",e.reorder="reorder"}(r||(r={}));var o=function(e,t){switch(t.type){case r.add:break;case r.remove:return e.filter((function(e){return e[t.valueField]!==t.payload}));case r.reorder:break;default:return e}}},4163:(e,t,n)=>{var r;n.d(t,{E:()=>r,L:()=>o}),function(e){e.next="next",e.prev="prev",e.current="current",e.reset="reset"}(r||(r={}));var o=function(e,t){var n=t.items.findIndex((function(t){return t===e}));switch(t.type){case r.next:return n===t.items.length-1?e:t.items[n+1];case r.prev:return 0===n?e:t.items[n-1];case r.current:return t.payload;case r.reset:return null;default:return e}}},5209:(e,t,n)=>{n.d(t,{ey:()=>o,TX:()=>a});var r,o,i=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};!function(e){e.single="single",e.multiple="multiple",e.none="none"}(r||(r={})),function(e){e.toggle="toggle",e.remove="remove"}(o||(o={}));var a=function(e,t){switch(t.selection){case r.single:switch(t.type){case o.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 o.remove:return t.payload===e?null:e;default:return e}case r.multiple:switch(t.type){case o.toggle:if(Array.isArray(e))return e.some((function(e){return e===t.payload}))?e.filter((function(e){return e!==t.payload})):i(i([],e,!0),[t.payload],!1);if(null===e)return[t.payload];throw new Error("State cannot be non-array in multiple selection");case o.remove:return Array.isArray(e)?e.some((function(e){return e===t.payload}))?e.filter((function(e){return e!==t.payload})):i(i([],e,!0),[t.payload],!1):e;default:return e}case r.none:return null;default:return e}}},2888:(e,t,n)=>{n.r(t),n.d(t,{Button:()=>r.z,ButtonGroup:()=>o.h,Chip:()=>L.A,ChipList:()=>V.jg,DropDownButton:()=>I,DropDownButtonItem:()=>O,FloatingActionButton:()=>X,FloatingActionButtonItem:()=>W,SplitButton:()=>k,SplitButtonItem:()=>m,Toolbar:()=>M,ToolbarItem:()=>N,ToolbarSeparator:()=>A,ToolbarSpacer:()=>j});var r=n(7037),o=n(7711),i=n(3899),a=n(189),l=n(3198),s=n(3493),u=n(8047),c=n(2697),d=n(5407),p=function(e){var t,n=i.useCallback((function(t){e.onClick(t,e.index)}),[e]),r=e.dataItem.render||e.item||(void 0===e.item?e.render:null),o=void 0!==e.dataItem.text?e.dataItem.text:e.textField?e.dataItem[e.textField]:e.dataItem,a=i.createElement("li",{id:e.id,className:(0,u.A)("k-item",e.className,{"k-focus":e.focused}),onClick:n,onMouseDown:e.onDown,onPointerDown:e.onDown,role:"menuitem","aria-disabled":e.dataItem.disabled||void 0},i.createElement("span",{tabIndex:-1,className:(0,u.A)("k-link k-menu-link",{"k-selected":e.dataItem.selected,"k-disabled":e.dataItem.disabled}),key:"icon"},r?i.createElement(r,{item:e.dataItem,itemIndex:e.index}):i.createElement(i.Fragment,null,(e.dataItem.icon||e.dataItem.iconClass)&&i.createElement("span",{className:(0,u.A)("k-icon",(t={},t["k-i-".concat(e.dataItem.icon)]=e.dataItem.icon,t["".concat(e.dataItem.iconClass)]=e.dataItem.iconClass,t))}),e.dataItem.imageUrl&&i.createElement("img",{role:"presentation",alt:"",src:e.dataItem.imageUrl,className:"k-icon"}),o&&i.createElement("span",{className:"k-menu-link-text"},o))));return void 0!==e.item&&void 0!==e.render?e.render.call(void 0,a,e):a};p.displayName="KendoReactButtonItem";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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},f(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");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(){return null!==e&&e.apply(this,arguments)||this}return h(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}(i.Component),v=function(e,t,n,r){if(n)return e;switch(t){case s.R.enter:case s.R.space:case s.R.esc:return-1;case s.R.up:case s.R.left:return Math.max(0,e-1);case s.R.down:case s.R.right:return Math.min(r-1,e+1);default:return e}},g=n(9222);function y(e){var t={horizontal:"left",vertical:"bottom"};return e&&(t.horizontal="right"),t}function b(e){var t={horizontal:"left",vertical:"top"};return e&&(t.horizontal="right"),t}var C=n(4006),E=n(2709),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),k=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=(0,l.M)(),n.buttonsData=[],n.onKeyDown=function(e){var t=n.state.focusedIndex;if(e.altKey)n.opened||e.keyCode!==s.R.down?n.opened&&e.keyCode===s.R.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===s.R.enter||e.keyCode===s.R.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===s.R.esc&&(r={focusedIndex:-1,opened:!1},n.dispatchPopupEvent(e,r.opened)),n.opened){var o=v(t,e.keyCode,e.altKey,n.buttonsData.length);o!==t&&((r=r||{}).focusedIndex=o);var i=e.keyCode===s.R.up||e.keyCode===s.R.down||e.keyCode===s.R.left||e.keyCode===s.R.right;!e.altKey&&i&&e.preventDefault()}r&&n.setState(r)}},n.onFocus=function(e){(0,d.N)(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}),(0,d.N)(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){(0,d.N)(t?n.props.onOpen:n.props.onClose,e,n,void 0)},(0,C.s)(E.k),n}return w(t,e),Object.defineProperty(t.prototype,"opened",{get:function(){return void 0===this.props.opened?this.state.opened:this.props.opened},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this;this.buttonsData=this.props.items||i.Children.toArray(this.props.children).filter((function(e){return e&&e.type===m})).map((function(e){return e.props}));var t=this.isRtl(),n=t?"rtl":void 0,o=this.props,a=o.id,l=o.style,s=o.tabIndex,d=o.disabled,p=this.state.focusedIndex;return i.createElement("div",{id:a,style:l,className:(0,u.A)("k-split-button","k-button-group",{"k-focus":this.state.focused},"k-rounded-".concat(c.G.roundedMap[this.props.rounded||"medium"]),this.props.className),onKeyDown:this.onKeyDown,onFocus:this.onFocus,onBlur:this.onBlur,dir:n,ref:function(t){return e.wrapper=t}},i.createElement(r.z,{ref:function(t){return e.mainButton=t&&t.element},type:"button",size:this.props.size,rounded:this.props.rounded,fillMode:this.props.fillMode,themeColor:this.props.themeColor,onClick:function(t){return e.onItemClick(t,-1)},disabled:d||void 0,tabIndex:s,accessKey:this.props.accessKey,className:this.props.buttonClass,icon:this.props.icon,iconClass:this.props.iconClass,imageUrl:this.props.imageUrl,dir:n,"aria-disabled":d,"aria-haspopup":!0,"aria-expanded":this.opened,"aria-label":"".concat(this.props.text," splitbutton"),"aria-owns":this.guid,"aria-activedescendant":p>=0?"".concat(this.guid,"-").concat(p):void 0},this.props.text),i.createElement(r.z,{type:"button",size:this.props.size,rounded:this.props.rounded,fillMode:this.props.fillMode,themeColor:this.props.themeColor,icon:"arrow-s",className:"k-split-button-arrow",disabled:d||void 0,tabIndex:-1,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:!1,configurable:!0}),t.prototype.dispatchClickEvent=function(e,t){this.isItemDisabled(t)||(-1===t?(0,d.N)(this.props.onButtonClick,e,this,void 0):(0,d.N)(this.props.onItemClick,e,this,{item:this.buttonsData[t],itemIndex:t}))},t.prototype.renderPopup=function(e){var t,n=this.props.popupSettings,r=void 0===n?{}:n;return i.createElement(g.G,{anchor:this.wrapper,show:this.opened,animate:r.animate,popupClass:(0,u.A)("k-menu-popup",r.popupClass),anchorAlign:r.anchorAlign||y(e),popupAlign:r.popupAlign||b(e),style:e?{direction:"rtl"}:void 0},i.createElement("ul",{role:"menu",id:this.guid,className:(0,u.A)("k-group k-menu-group k-reset",(t={},t["k-menu-group-".concat(c.G.sizeMap[this.props.size]||this.props.size)]=this.props.size,t))},this.renderChildItems()))},t.prototype.renderChildItems=function(){var e=this,t=this.props,n=t.item,r=t.itemRender,o=t.textField;return this.buttonsData.length>0?this.buttonsData.map((function(t,a){return i.createElement(p,{className:"k-menu-item",dataItem:t,textField:o,focused:e.state.focusedIndex===a,onClick:e.onItemClick,onDown:e.onItemDown,render:r,item:n,key:a,index:a,id:"".concat(e.guid,"-").concat(a)})})):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,className:a.string,buttonClass:a.string,dir:a.string},t.defaultProps={size:"medium",rounded:"medium",shape:"rectangle",fillMode:"solid",themeColor:"base"},t}(i.Component),S=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");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 S(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}(i.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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),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},x.apply(this,arguments)},I=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=(0,l.M)(),n.buttonsData=[],n.onKeyDown=function(e){var t=n.state.focusedIndex;if(e.altKey)n.opened||e.keyCode!==s.R.down?n.opened&&e.keyCode===s.R.up&&(n.dispatchPopupEvent(e,!1),n.setState({focusedIndex:-1,opened:!1})):(n.dispatchPopupEvent(e,!0),n.setState({focusedIndex:0,opened:!0}));else{var r=x({},n.state);if(e.keyCode===s.R.enter||e.keyCode===s.R.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===s.R.esc&&(r.focusedIndex=-1,r.opened=!1,n.dispatchPopupEvent(e,r.opened)),n.opened){var o=v(t,e.keyCode,e.altKey,n.buttonsData.length);r.focusedIndex=o;var i=e.keyCode===s.R.up||e.keyCode===s.R.down||e.keyCode===s.R.left||e.keyCode===s.R.right;!e.altKey&&i&&e.preventDefault()}n.setState(r)}},n.handleFocus=function(e){n.setState({focused:!0,focusedIndex:n.opened?0:-1}),(0,d.N)(n.props.onFocus,e,n,void 0)},n.handleBlur=function(e){n.setState({focused:!1,opened:!1,focusedIndex:-1}),(0,d.N)(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){(0,d.N)(t?n.props.onOpen:n.props.onClose,e,n,void 0)},(0,C.s)(E.k),n}return D(t,e),Object.defineProperty(t.prototype,"opened",{get:function(){return void 0===this.props.opened?this.state.opened:this.props.opened},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this,t=this.isRtl(),n=t?"rtl":void 0,o=this.props,a=o.id,l=o.style,s=o.tabIndex,c=o.disabled,d=this.state.focusedIndex;return this.buttonsData=this.props.items||i.Children.toArray(this.props.children).filter((function(e){return e&&e.type===O})).map((function(e){return e.props})),i.createElement("div",{id:a,style:l,className:(0,u.A)("k-dropdown-button",{"k-focus":this.state.focused},this.props.className),onKeyDown:this.onKeyDown,onFocus:this.handleFocus,onBlur:this.handleBlur,dir:n,ref:function(t){return e.wrapper=t}},i.createElement(r.z,{size:this.props.size,shape:this.props.shape,rounded:this.props.rounded,fillMode:this.props.fillMode,themeColor:this.props.themeColor,onClick:this.onClickMainButton,onMouseDown:this.mouseDown,disabled:c||void 0,tabIndex:s,accessKey:this.props.accessKey,icon:this.props.icon,iconClass:this.props.iconClass,className:this.props.buttonClass,imageUrl:this.props.imageUrl,dir:n,ref:function(t){return e.mainButton=t&&t.element},type:"button","aria-disabled":c,"aria-haspopup":!0,"aria-expanded":this.opened,"aria-label":"".concat(this.props.text," dropdownbutton"),"aria-owns":this.guid,"aria-activedescendant":d>=0?"".concat(this.guid,"-").concat(d):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:!1,configurable:!0}),t.prototype.dispatchClickEvent=function(e,t){this.isItemDisabled(t)||(0,d.N)(this.props.onItemClick,e,this,{item:this.buttonsData[t],itemIndex:t})},t.prototype.renderPopup=function(e){var t,n=this.props.popupSettings,r=void 0===n?{}:n;return i.createElement(g.G,{anchor:this.wrapper,show:this.opened,animate:r.animate,popupClass:(0,u.A)("k-menu-popup",r.popupClass),anchorAlign:r.anchorAlign||y(e),popupAlign:r.popupAlign||b(e),style:e?{direction:"rtl"}:void 0},i.createElement("ul",{role:"menu",id:this.guid,className:(0,u.A)("k-group k-menu-group k-reset",(t={},t["k-menu-group-".concat(c.G.sizeMap[this.props.size]||this.props.size)]=this.props.size,t))},this.renderChildItems()))},t.prototype.renderChildItems=function(){var e=this,t=this.props,n=t.item,r=t.itemRender,o=t.textField;return this.buttonsData.length>0?this.buttonsData.map((function(t,a){return i.createElement(p,{className:"k-menu-item",dataItem:t,textField:o,focused:e.state.focusedIndex===a,onClick:e.onItemClick,onDown:e.onItemDown,render:r,item:n,index:a,key:a,id:"".concat(e.guid,"-").concat(a)})})):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,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,className:a.string,buttonClass:a.string,dir:a.string},t.defaultProps={size:"medium",rounded:"medium",shape:"rectangle",fillMode:"solid",themeColor:"base"},t}(i.Component),T=n(1889),_=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),R=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},R.apply(this,arguments)},M=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===s.R.left||e.keyCode===s.R.right)&&!e.defaultPrevented&&-1!==r.buttons.findIndex((function(e){return e===t}))){var n=r.focusedIndex;e.keyCode===s.R.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 i={offsetWidth:r.offsetWidth,offsetHeight:r.offsetHeight};r.props.onResize&&r.props.onResize.call(void 0,R(R({target:r},i),{nativeEvent:e}))}}},(0,C.s)(E.k),r}return _(t,e),Object.defineProperty(t.prototype,"selectors",{get:function(){return this.props.buttons||T.w},enumerable:!1,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:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,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 i.createElement("div",{id:this.props.id,className:(0,u.A)("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,i=this.buttons[n];if(i){i.tabIndex=o,i.focus();var a=this.buttons[e];a&&(a.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}(i.Component),P=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),N=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._element=null,t}return P(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this;return i.createElement("span",{id:this.props.id,className:this.props.className,style:this.props.style,ref:function(t){return e._element=t}},this.props.children)},t.propTypes={className:a.string},t}(i.PureComponent),F=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),A=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return F(t,e),t.prototype.render=function(){return i.createElement(N,{className:"k-separator"})},t}(i.PureComponent),j=i.forwardRef((function(e,t){var n=i.useRef(null),r=i.useRef(null);i.useImperativeHandle(r,(function(){return{element:n.current}})),i.useImperativeHandle(t,(function(){return{element:n.current}}));var o=i.useMemo((function(){return(0,u.A)("k-spacer",e.className)}),[e.className]);return i.createElement("span",{ref:n,className:o})}));j.displayName="KendoReactToolbarSpacer",j.propTypes={className:a.string};var L=n(1711),V=n(228),z=n(8259),B=n(8199),H=n(4703),U=function(){return U=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},U.apply(this,arguments)},W=i.forwardRef((function(e,t){var n=e.className,r=e.disabled,o=e.text,a=e.icon,l=e.style,s=e.id,c=e.focused,d=e.tabIndex,p=e.index,f=e.dataItem,h=e.item,m=e.onDown,v=e.onClick,g=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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["className","disabled","text","icon","style","id","focused","tabIndex","index","dataItem","item","onDown","onClick"]),y=i.useRef(null),b=i.useCallback((function(){y.current&&y.current.focus()}),[]),C=i.useCallback((function(){return{element:y.current,focus:b}}),[b]);i.useImperativeHandle(t,C);var E=i.useCallback((function(e){v&&void 0!==p&&!r&&v(e,p)}),[v,p]),w=i.useMemo((function(){return(0,u.A)("k-fab-item",{"k-focus":c,"k-disabled":r},n)}),[n,r,c]),k=h;return i.createElement("li",U({ref:y,id:s,className:w,style:l,role:"menuitem",tabIndex:(0,H.p)(d,r),"aria-disabled":r,"aria-label":"".concat(o||""," floatingactionbutton item"),onClick:E,onMouseDown:m,onPointerDown:m},g),k?i.createElement(k,{itemIndex:p,item:f}):i.createElement(i.Fragment,null,o&&i.createElement("span",{className:"k-fab-item-text"},o),a&&i.createElement("span",{className:(0,u.A)("k-fab-item-icon k-icon k-i-".concat(a))})))}));W.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},W.displayName="KendoFloatingActionButtonItem";var K="16px",q=function(e){return"number"==typeof e?e+"px":e},Y=function(e,t){var n={horizontal:t?"right":"left",vertical:"bottom"};return"end"===e.horizontal&&(n.horizontal=t?"left":"right"),n},G=function(e,t){var n={horizontal:t?"right":"left",vertical:"top"};return"end"===e.horizontal&&(n.horizontal=t?"left":"right"),n},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},Z.apply(this,arguments)},X=i.forwardRef((function(e,t){(0,C.s)(E.k);var n=e.align,r=void 0===n?$.align:n,o=e.alignOffset,a=e.className,p=e.disabled,f=e.icon,h=e.iconClass,m=e.id,v=e.items,y=e.item,b=e.text,w=e.positionMode,k=void 0===w?$.positionMode:w,S=e.shape,O=void 0===S?$.shape:S,D=e.size,x=void 0===D?$.size:D,I=e.style,T=e.rounded,_=void 0===T?$.rounded:T,R=e.themeColor,M=void 0===R?$.themeColor:R,P=e.overlayStyle,N=e.tabIndex,F=e.accessKey,A=e.popupSettings,j=void 0===A?{}:A,L=e.modal,V=e.onClick,U=e.onItemClick,X=e.onFocus,Q=e.onBlur,J=e.onKeyDown,ee=e.onOpen,te=e.onClose,ne=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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["align","alignOffset","className","disabled","icon","iconClass","id","items","item","text","positionMode","shape","size","style","rounded","themeColor","overlayStyle","tabIndex","accessKey","popupSettings","modal","onClick","onItemClick","onFocus","onBlur","onKeyDown","onOpen","onClose"]),re=(0,z.u)(),oe=re?re+2:100,ie=i.useRef(null),ae=i.useRef(null),le=i.useRef(null),se=i.useRef(null),ue=i.useCallback((function(){ae.current&&ae.current.focus()}),[]),ce=i.useCallback((function(){return{element:ae.current,focus:ue}}),[ue]);i.useImperativeHandle(ie,ce),i.useImperativeHandle(t,(function(){return ie.current}));var de=i.useState(!1),pe=de[0],fe=de[1],he=i.useState(!1),me=he[0],ve=he[1],ge=i.useState(-1),ye=ge[0],be=ge[1],Ce=i.useMemo((function(){return(0,l.M)()}),[]),Ee=(0,B.n)(ae,e.dir),we="rtl"===Ee,ke=i.useMemo((function(){return(0,l.M)()}),[]);i.useEffect((function(){!function(e,t,n,r){var o=t.horizontal,i=t.vertical;if(e.current){var a=n&&void 0!==n.x?q(n.x):K,l=n&&void 0!==n.x?"calc(50% + ".concat(q(n.x),")"):"50%",s=n&&void 0!==n.y?q(n.y):K,u=n&&void 0!==n.y?"calc(50% + ".concat(q(n.y),")"):"50%";e.current.style.setProperty(function(e,t){return{end:t?"left":"right",center:"left",start:t?"right":"left"}[e.horizontal||"end"]}(t,r),"center"===o?l:a),e.current.style.setProperty(function(e){return{top:"top",middle:"top",bottom:"bottom"}[e.vertical||"bottom"]}(t),"middle"===i?u:s),r&&("top"!==i&&"bottom"!==i||"start"!==o||e.current.style.setProperty("left","unset"),"middle"===i&&"end"===o&&e.current.style.setProperty("right","unset"),"middle"===i&&"start"===o&&e.current.style.setProperty("left","unset"))}}(ae,r,o,we)}),[ae,r,o,we]),i.useEffect((function(){me&&ae&&ae.current&&ae.current.focus()}),[me,ae]);var Se=i.useCallback((function(e,t){v&&(0,d.N)(t?ee:te,e,ce(),void 0)}),[ee,te,v]),Oe=i.useCallback((function(e){e.target&&!p&&(!v&&V?(0,d.N)(V,e,ce(),void 0):(fe(!pe),ve(!0),be(pe?-1:0),Se(e,!pe)))}),[fe,ve,be,V,Se,pe,v,p]),De=i.useCallback((function(e){ve(!0),be(pe?0:-1),X&&(0,d.N)(X,e,ce(),void 0)}),[X,ve,be]),xe=i.useCallback((function(e){ve(!1),fe(!1),be(-1),(0,d.N)(Q,e,ce(),void 0),pe&&Se(e,!1)}),[Q,ve,fe,be,Se]),Ie=i.useCallback((function(e){e.preventDefault()}),[]),Te=i.useCallback((function(e,t){v&&(v[t].disabled||(0,d.N)(U,e,ce(),{itemProps:v[t],itemIndex:t}))}),[U]),_e=i.useCallback((function(e,t){e.target&&v&&(be(t),fe(!1),Te(e,t),Se(e,!1))}),[be,fe,Te,Se]),Re=i.useCallback((function(e){document.activeElement===ae.current&&e.preventDefault()}),[ae,document.activeElement]),Me=i.useCallback((function(e){var t=ye,n=v?v.length-1:-1,o="bottom"===r.vertical;switch(e.keyCode){case s.R.enter:case s.R.space:t>=0&&Te(e,t),e.preventDefault(),fe(!pe),be(pe?-1:0);break;case s.R.esc:e.preventDefault(),fe(!1),be(-1);break;case s.R.home:e.preventDefault(),be(0);break;case s.R.end:e.preventDefault(),be(n);break;case s.R.down:case s.R.right:e.preventDefault(),t<n&&!o&&be(t+1),t>0&&o&&be(t-1);break;case s.R.up:case s.R.left:e.preventDefault(),t>0&&!o&&be(t-1),t<n&&o&&be(t+1)}(0,d.N)(J,e,ce(),void 0)}),[J,ye,be,we,fe]),Pe=i.useMemo((function(){var e;return(0,u.A)("k-fab k-fab-solid",((e={})["k-fab-".concat(O)]=O,e["k-fab-sm"]="small"===x,e["k-fab-md"]="medium"===x,e["k-fab-lg"]="large"===x,e["k-disabled"]=p,e["k-pos-absolute"]="absolute"===k,e["k-pos-fixed"]="fixed"===k,e["k-focus"]=me,e["k-rounded-".concat(c.G.roundedMap[_]||_)]=_,e["k-fab-solid-".concat(M)]=M,e),"k-".concat(r.vertical,"-").concat(r.horizontal),a)}),[M,x,_,O,p,k,r,me,a]),Ne=v&&v.map((function(e,t){return i.createElement(W,Z({},e,{key:t,index:t,id:"".concat(ke,"-").concat(t),disabled:p||e.disabled,focused:ye===t,dataItem:e,item:y,className:(0,u.A)(e.className,(n=Ee||"ltr",o=r.horizontal,{rtl:{end:"k-text-left",start:"k-text-right"},ltr:{start:"k-text-left",end:"k-text-right"}}[n]["end"===o?"end":"start"])),onClick:_e,onDown:Re}));var n,o})),Fe=f&&!b,Ae=(ae.current?ae.current.offsetWidth:0)/2-16;return i.createElement(z.$.Provider,{value:oe},i.createElement(i.Fragment,null,i.createElement("button",Z({ref:ae,id:m||Ce,role:v?"menubutton":"button",type:"button","aria-disabled":p,"aria-expanded":v?pe:void 0,"aria-haspopup":!!v,"aria-label":"".concat(b||""," floatingactionbutton"),"aria-owns":v?ke:void 0,"aria-activedescendant":ye>=0&&v?"".concat(ke,"-").concat(ye):void 0,tabIndex:(0,H.p)(N,p),accessKey:F,dir:Ee,disabled:p,className:Pe,style:I,onClick:Oe,onMouseDown:Ie,onFocus:De,onBlur:xe,onKeyDown:Me},ne),f?i.createElement("span",{role:"presentation",className:(0,u.A)("k-fab-icon k-icon k-i-".concat(f))}):h?i.createElement("span",{role:"presentation",className:h}):null,b&&i.createElement("span",{className:"k-fab-text"},b)),L&&pe&&i.createElement("div",{className:"k-overlay",style:Z({zIndex:oe},P)}),i.createElement(g.G,{ref:se,anchor:ae.current,show:pe,animate:j.animate,popupClass:(0,u.A)("k-popup-transparent k-fab-popup",j.popupClass),anchorAlign:j.anchorAlign||Y(r,we),popupAlign:j.popupAlign||G(r,we),style:{boxShadow:"none"}},i.createElement("ul",{ref:le,role:"menu","aria-labelledby":m,id:ke,className:(0,u.A)("k-fab-items",{"k-fab-items-bottom":"bottom"!==r.vertical,"k-fab-items-top":"bottom"===r.vertical}),style:{paddingLeft:Fe?Ae:void 0,paddingRight:Fe?Ae:void 0}},Ne))))}));X.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([null,"rectangle","square"]),size:a.oneOf([null,"small","medium","large"]),rounded:a.oneOf([null,"small","medium","large","full"]),themeColor:a.oneOf([null,"primary","secondary","tertiary","info","success","warning","error","dark","light","inverse"]),modal:a.bool,overlayStyle:a.object};var $={align:{vertical:"bottom",horizontal:"end"},shape:"rectangle",size:"medium",rounded:"full",themeColor:"primary",positionMode:"fixed"};X.displayName="KendoFloatingActionButton"},2709:(e,t,n)=>{n.d(t,{k:()=>r});var r={name:"@progress/kendo-react-buttons",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1656314924,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"}},1889:(e,t,n)=>{n.d(t,{w:()=>o,Z:()=>i});var r=':not(.k-disabled):not([disabled]):not([disabled="true"])',o=["button"+r,".k-button-group > button"+r,".k-dropdown > .k-dropdown-wrap"+r,".k-colorpicker > .k-picker-wrap"+r];const i={styles:{button:"k-button",flat:"k-flat",outline:"k-outline",clear:"k-button-clear",primary:"k-primary","state-selected":"k-selected","button-icon":"k-button-icon","button-icontext":"k-button-icontext","state-disabled":"k-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"}}},8138:(e,t,n)=>{n.r(t),n.d(t,{Calendar:()=>Tt,CalendarCell:()=>P,CalendarHeaderTitle:()=>de,CalendarNavigationItem:()=>Xe,CalendarPropsContext:()=>It,CalendarViewEnum:()=>O,CalendarWeekCell:()=>A,DateInput:()=>ln,DateInputPropsContext:()=>an,DatePicker:()=>gn,DatePickerPropsContext:()=>vn,DateRangePicker:()=>kr,DateRangePickerPropsContext:()=>wr,DateTimePicker:()=>Mr,DateTimePickerPropsContext:()=>Rr,MultiViewCalendar:()=>yr,MultiViewCalendarPropsContext:()=>gr,PickerWrap:()=>cn,TimePicker:()=>lr,TimePickerPropsContext:()=>ar,ToggleButton:()=>un});var r,o,i,a,l,s=n(3899),u=n(189),c=n(3198),d=n(3493),p=n(4006),f=n(8047),h=n(848),m=n(619),v=n(499),g={name:"@progress/kendo-react-dateinputs",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1656315076,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"},y=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},b=function(){function e(e,t,n){void 0===e&&(e=0),this.total=e,this.rowHeight=t,this.detailRowHeight=n,this.offsets=[],this.heights=[];for(var r=0,o=0;o<e;o++)this.offsets.push(r),r+=t,this.heights.push(t)}return e.prototype.height=function(e){return this.heights[e]},e.prototype.expandDetail=function(e){this.height(e)===this.rowHeight&&this.updateRowHeight(e,this.detailRowHeight)},e.prototype.collapseDetail=function(e){this.height(e)>this.rowHeight&&this.updateRowHeight(e,-1*this.detailRowHeight)},e.prototype.index=function(e){for(var t=0;t<this.offsets.length;t++){if(e===this.offsets[t])return t;if(e<this.offsets[t])return t-1}return this.total-1},e.prototype.offset=function(e){return this.offsets[e]},e.prototype.totalHeight=function(){return this.heights.reduce((function(e,t){return e+t}),0)},e.prototype.updateRowHeight=function(e,t){this.heights[e]+=t,this.offsets=function(e,t,n){return y(y([],e.slice(0,t+1),!0),e.slice(t+1).map((function(e){return e+n})),!0)}(this.offsets,e,t)},e}(),C=function(e){return Math.max(e,0)},E=function(e){this.offset=e},w=function(e){this.skip=e},k=function(){function e(e,t){this.onScrollAction=e,this.onPageAction=t,this.direction="vertical",this.firstLoaded=0,this.lastLoaded=0,this.lastScrollTop=0,this.take=0,this.total=0,this.rowHeightService=null,this.bottomOffset=0,this.topOffset=0}return e.prototype.create=function(e,t,n,r,o,i,a){void 0===o&&(o=0),void 0===i&&(i=0),void 0===a&&(a="vertical"),this.rowHeightService=e,this.firstLoaded=t,this.lastLoaded=t+n,this.take=n,this.total=r,this.lastScrollTop=0,this.topOffset=o,this.bottomOffset=i,this.direction=a;var l=this.rowsForHeight(o),s=C(t-l);this.onScrollAction(new E(this.rowOffset(s))),this.onPageAction(new w(s))},e.prototype.onScroll=function(e){var t=e.scrollLeft,n=e.scrollTop,r=e.offsetHeight,o=e.offsetWidth,i="vertical"===this.direction?n:t,a="vertical"===this.direction?r:o;if(this.lastScrollTop!==i&&this.rowHeightService){var l=this.lastScrollTop>=i;this.lastScrollTop=i;var s=this.rowHeightService.index(C(i-this.topOffset)),u=this.rowHeightService.index(C(i+a-this.bottomOffset));if(!l&&u>=this.lastLoaded&&this.lastLoaded<this.total&&(this.firstLoaded=s,this.onScrollAction(new E(this.rowOffset(s))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),this.onPageAction(new w(this.firstLoaded))),l&&s<=this.firstLoaded){var c=Math.floor(.3*this.take);this.firstLoaded=C(s-c),this.onScrollAction(new E(this.rowOffset(this.firstLoaded))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),this.onPageAction(new w(this.firstLoaded))}}},e.prototype.rowOffset=function(e){return this.rowHeightService?this.rowHeightService.offset(e)+this.topOffset:0},e.prototype.rowsForHeight=function(e){return this.rowHeightService?Math.ceil(e/this.rowHeightService.height(0)):0},e}(),S=(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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});!function(e){e[e.Backward=0]="Backward",e[e.Forward=1]="Forward"}(l||(l={}));var O,D=((o={})[l.Forward]=function(e){return function(t){return t+e}},o[l.Backward]=function(e){return function(t){return t-e}},o),x=((i={})[l.Forward]=function(e){return function(t){return Math.min(t,e)}},i[l.Backward]=function(e){return function(t){return Math.max(t,e)}},i),I=((a={})[l.Forward]=function(e){return function(t){return t<e}},a[l.Backward]=function(e){return function(t){return t>e}},a),T=function(e){function t(n){var r=e.call(this,n)||this;return r.rowHeightService=null,r.scrollContainer=null,r.lastDirection=null,r.lastTotal=0,r.lastTake=0,r.animationInProgress=!1,r.scrollToIndexTimeout=0,r.scrollTo=function(e){var t="vertical"===r.direction?"scrollTop":"scrollLeft";r.scrollContainer&&(r.scrollContainer[t]=e)},r.scrollToIndex=function(e){void 0!==r.scrollToIndexTimeout&&window.cancelAnimationFrame(r.scrollToIndexTimeout),r.rowHeightService&&(r.scrollToIndexTimeout=window.requestAnimationFrame((function(){r.animationInProgress=!1,r.rowHeightService&&r.scrollTo(r.rowHeightService.offset(e))})))},r.animateToIndex=function(e){if(r.rowHeightService&&window){window.cancelAnimationFrame(r.cancelAnimation);var t=r.rowHeightService.offset(e),n=r.getContainerScrollDirection(t),o=r.scrollRange(t,n),i=o.start,a=o.end;if(i!==a){var l=r.scrollStep(i,a),s=D[n](l),u=x[n](a),c=I[n](s(a)),d=function(e){r.animationInProgress=!0;var t=s(e);r.scrollTo(u(t)),c(t)?r.cancelAnimation=window.requestAnimationFrame((function(){d(t)})):r.animationInProgress=!1};r.cancelAnimation=window.requestAnimationFrame((function(){d(i)}))}}},r.scrollToBottom=function(){r.rowHeightService&&r.scrollTo(r.rowHeightService.totalHeight()+r.props.bottomOffset)},r.scrollStep=function(e,n){var o=r.props.scrollDuration||t.defaultProps.scrollDuration;return Math.abs(n-e)/(o/17)},r.scrollRange=function(e,t){var n=r.containerScrollPosition;if(parseInt("".concat(e),10)===parseInt("".concat(n),10))return{start:e,end:e};var o,i,a,s=r.containerMaxScroll(),u=t===l.Backward?1:-1,c=(o=n,i=e,a=r.props.maxScrollDifference||0,Math.min(Math.abs(i-o),a)),d=Math.min(e,s);return{start:Math.min(Math.max(d+u*c,0),s),end:d}},r.containerMaxScroll=function(){return r.containerScrollSize-r.containerOffsetSize},r.getContainerScrollDirection=function(e){return e<r.containerScrollPosition?l.Backward:l.Forward},r.initServices=function(e){void 0===e&&(e=r.props);var t="vertical"===r.direction?e.itemHeight:e.itemWidth;void 0!==t&&(r.rowHeightService=new b(e.total,t,0),r.scrollerService.create(r.rowHeightService,e.skip,e.take,e.total,e.topOffset,r.scrollOffsetSize,r.direction))},r.getContainerProperty=function(e){return r.scrollContainer?r.scrollContainer[e]:0},r.handleScroll=function(e){if(r.scrollContainer&&r.rowHeightService){var t=e.target;r.scrollerService.onScroll({scrollLeft:t.scrollLeft,scrollTop:t.scrollTop,offsetHeight:t.offsetHeight,offsetWidth:t.offsetWidth});var n=r.rowHeightService.index(r.containerScrollPosition-r.props.topOffset),o=r.props.onScrollAction,i={index:n,target:t,scrollAction:r.scrollAction,pageAction:r.pageAction,animationInProgress:r.animationInProgress};r.props.onScroll&&r.props.onScroll.call(void 0,e),o&&o.call(void 0,i),r.scrollAction=void 0,r.pageAction=void 0}},r.handleScrollAction=function(e){r.scrollAction=e},r.handlePageAction=function(e){r.pageAction=e},r.scrollerService=new k(r.handleScrollAction,r.handlePageAction),r}return S(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this.scrollContainer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"containerOffsetSize",{get:function(){return this.getContainerProperty("vertical"===this.direction?"offsetHeight":"offsetWidth")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"containerScrollSize",{get:function(){return this.getContainerProperty("vertical"===this.direction?"scrollHeight":"scrollWidth")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"containerScrollPosition",{get:function(){return this.getContainerProperty("vertical"===this.direction?"scrollTop":"scrollLeft")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"direction",{get:function(){return void 0!==this.props.direction?this.props.direction:t.defaultProps.direction},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scrollOffsetSize",{get:function(){return void 0!==this.props.scrollOffsetSize?this.props.scrollOffsetSize:t.defaultProps.scrollOffsetSize},enumerable:!1,configurable:!0}),t.prototype.activeIndex=function(){return this.itemIndex(Math.ceil(this.containerScrollPosition))},t.prototype.itemIndex=function(e){return this.rowHeightService?this.rowHeightService.index(e):0},t.prototype.itemOffset=function(e){return this.rowHeightService?this.rowHeightService.offset(e):0},t.prototype.isIndexVisible=function(e){if(!this.rowHeightService)return!1;var t=this.containerScrollPosition,n=t+this.containerOffsetSize,r=this.rowHeightService.offset(e),o=r+this.rowHeightService.height(e);return r>=t&&o<=n},t.prototype.isListScrolled=function(e){return!!this.rowHeightService&&this.containerScrollPosition!==this.rowHeightService.offset(e)},t.prototype.componentDidMount=function(){var e=this.props.onMount;e&&e.call(void 0,this)},t.prototype.render=function(){var e=this;this.lastTotal===this.props.total&&this.lastDirection===this.direction&&this.lastTake===this.props.take||(this.initServices(),this.lastTotal=this.props.total,this.lastDirection=this.direction,this.lastTake=this.props.take);var t="".concat((this.rowHeightService?this.rowHeightService.totalHeight():0)+this.props.bottomOffset),n="vertical"===this.direction?{height:"".concat(t,"px")}:{width:"".concat(t,"px")},r=(0,f.A)("k-content k-calendar-content k-scrollable",{"k-scrollable-horizontal":"horizontal"===this.direction},this.props.className),o=(0,f.A)("k-scrollable-placeholder",{"k-scrollable-horizontal-placeholder":"horizontal"===this.direction});return s.createElement("div",{ref:function(t){e.scrollContainer=t},onScroll:this.handleScroll,className:r,tabIndex:this.props.tabIndex,role:this.props.role},this.props.children,s.createElement("div",{style:n,className:o}))},t.propTypes={bottomOffset:u.number.isRequired,className:u.string,direction:u.oneOf(["horizontal","vertical"]),forceScroll:u.bool,itemHeight:u.number,itemWidth:u.number,maxScrollDifference:u.number,onScroll:u.func,onScrollAction:u.func,scrollDuration:u.number,scrollOffsetSize:u.number,skip:u.number.isRequired,tabIndex:u.number,take:u.number.isRequired,topOffset:u.number.isRequired,total:u.number.isRequired,role:u.string},t.defaultProps={direction:"vertical",forceScroll:!1,scrollOffsetSize:0,maxScrollDifference:100,scrollDuration:100},t}(s.Component),_=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),R=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},R.apply(this,arguments)},M=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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},P=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){var n=t.props,r=n.onClick,o=n.value;r&&r.call(void 0,o,e)},t.handleMouseEnter=function(){var e=t.props,n=e.onMouseEnter,r=e.value;n&&n.call(void 0,r)},t.handleMouseLeave=function(){var e=t.props,n=e.onMouseLeave,r=e.value;n&&n.call(void 0,r)},t}return _(t,e),t.prototype.shouldComponentUpdate=function(e){var t=this.props,n=t.value,r=M(t,["value"]),o=e.value,i=M(e,["value"]);return!((!n||!o||n.getTime()===o.getTime())&&function(e,t){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 i=n[o];if(e[i]!==t[i])return!1}return!0}(r,i))},t.prototype.render=function(){var e=this.props,t=e.className,n=(e.formattedValue,e.isWeekend),r=e.isFocused,o=(e.isInRange,e.isSelected),i=e.isRangeStart,a=e.isRangeMid,l=e.isRangeEnd,u=e.isRangeSplitStart,c=e.isRangeSplitEnd,d=e.isToday,p=e.isDisabled,h=(e.view,e.value,M(e,["className","formattedValue","isWeekend","isFocused","isInRange","isSelected","isRangeStart","isRangeMid","isRangeEnd","isRangeSplitStart","isRangeSplitEnd","isToday","isDisabled","view","value"])),m="end"===this.props.activeRangeEnd&&l,v="start"===this.props.activeRangeEnd&&i,g=(0,f.A)("k-calendar-td",{"k-range-end":l,"k-range-mid":a,"k-range-split-end":c,"k-range-split-start":u,"k-range-start":i,"k-active":v||m,"k-state-pending-focus":r,"k-selected":o||i||l,"k-today":d,"k-weekend":n,"k-disabled":p},t);return s.createElement("td",R({},h,{className:g,onClick:this.handleClick,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave}),s.createElement("span",{className:"k-link"},this.props.children))},t}(s.Component),N=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),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},F.apply(this,arguments)},A=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return N(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=(e.firstDate,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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["className","firstDate"]));return s.createElement("td",F({className:(0,f.A)("k-calendar-td",t)},n),this.props.children)},t}(s.Component);!function(e){e[e.month=0]="month",e[e.year=1]="year",e[e.decade=2]="decade",e[e.century=3]="century"}(O||(O={}));var j={start:null,end:null},L=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};function V(e){var t=function(t,n,r){for(var o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];if(null===n[r])return null;var a=t?e.isRequired:e;return a.apply(void 0,L([n,r],o,!1))},n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}var z=function(e,t,n){return void 0===t||void 0===n||t<=e&&e<=n?e:e<t?t:n},B=new Date(1980,0,1),H=new Date(1900,0,1),U=new Date(2099,11,31),W=new Date(1980,0,1),K=new Date(1980,0,1,23,59,59),q=function(e,t){var n=(0,m.cloneDate)(e);return n.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),n},Y=function(){return(0,m.getDate)(new Date)},G=function(e,t,n){return!e||!(t&&t>e||n&&n<e)},Z=function(e,t,n){return null===e||!(t&&(0,m.getDate)(t)>(0,m.getDate)(e)||n&&(0,m.getDate)(n)<(0,m.getDate)(e))},X=function(e,t){var n=t||j,r=n.start,o=n.end;return!(!r||!o)&&r<e&&e<o},$=function(e,t,n){void 0===n&&(n=1);for(var r=[],o=e;o<t;o+=n)r.push(o);return r},Q=function(e,t,n){return t.getTime()<=e.getTime()&&e.getTime()<=n.getTime()},J=function(e,t){return e.slice(t).concat(e.slice(0,t))},ee=function(e,t,n){return e?t&&e<t?(0,m.cloneDate)(t):n&&e>n?(0,m.cloneDate)(n):e:e},te=function(e){return function(t,n,r){void 0===n&&(n=""),void 0===r&&(r={});var o=document.createElement(e);return o.className=n,Object.keys(r).map((function(e){return o.style[e]=r[e]})),"string"==typeof t?o.innerHTML=t||"":(t||[]).forEach((function(e){return e&&o.appendChild(e)})),o}},ne=function(){function e(e){this.intl=e}return e.prototype.getWeekNames=function(e){void 0===e&&(e=!1);var t=J(this.intl.dateFormatNames({nameType:"short",type:"days"}),this.intl.firstDay());return e?[""].concat(t):t},e}(),re=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),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},oe.apply(this,arguments)},ie=function(e){return s.createElement("td",{key:e,className:"k-calendar-td"}," ")},ae=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.intl=null,t.weekService=null,t.buildWeekNumber=function(e,n){if(!t.firstDate(e))return ie("week-cell-".concat(n));var r=t.firstDate(e),o=t.getWeekNumber(r),i="kendo-react-calendar-week-cell-".concat(o),a={className:"k-alt",value:o,firstDate:r};return t.props.weekCell?s.createElement(t.props.weekCell,oe({},a,{key:i}),o):s.createElement(A,oe({},a,{key:i}),o)},t.buildRow=function(e){return e.map((function(e,n){if(!e)return ie(n);var r={"aria-selected":e.isSelected},o="kendo-react-calendar-cell-".concat(e.value.getTime()),i=oe(oe(oe({},r),e),{isDisabled:!e.isInRange,view:t.props.activeView,onClick:t.handleClick,onMouseEnter:t.handleMouseEnter,onMouseLeave:t.handleMouseLeave});return t.props.cell?s.createElement(t.props.cell,oe({},i,{key:o}),e.formattedValue):s.createElement(P,oe({},i,{key:o}),e.formattedValue)}))},t.firstDate=function(e){var n=t.firstWeekDateContext(e);return n?n.value:null},t.firstWeekDateContext=function(e){if(!t.weekNumber)return null;for(var n=0,r=e[n];!r&&n<e.length;)r=e[++n];return r},t.handleClick=function(e,n){var r=t.props.onChange;if(r&&n){var o={value:(0,m.cloneDate)(e),target:t,nativeEvent:n&&n.nativeEvent,syntheticEvent:n};r.call(void 0,o)}},t.handleMouseEnter=function(e){var n=t.props.onCellEnter;n&&n.call(void 0,(0,m.cloneDate)(e))},t.handleMouseLeave=function(e){var n=t.props.onCellLeave;n&&n.call(void 0,(0,m.cloneDate)(e))},t}return re(t,e),Object.defineProperty(t.prototype,"min",{get:function(){return this.props.min},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this.props.max},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isHorizontal",{get:function(){return"horizontal"===this.props.direction},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isMonthView",{get:function(){return this.props.activeView===O.month},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"weekNumber",{get:function(){return Boolean(this.props.showWeekNumbers&&this.props.activeView===O.month)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedDate",{get:function(){return void 0!==this.props.selectedDate?this.props.selectedDate:t.defaultProps.selectedDate},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this;this.intl=(0,v.provideIntlService)(this),this.weekService=new ne(this.intl);var t=this.weekService.getWeekNames(this.weekNumber),n=this.props.service.rowLength(this.weekNumber),r=this.props.service.title(this.props.viewDate),o=Y(),i=q(this.props.viewDate,o),a=this.props.service.data({cellUID:this.props.cellUID,min:this.min,max:this.max,focusedDate:this.props.focusedDate,isActiveView:!this.props.bus.canMoveDown(this.props.activeView),selectedDate:this.selectedDate,selectionRange:this.props.selectionRange,viewDate:i});return s.createElement(s.Fragment,null,this.isMonthView&&this.isHorizontal&&s.createElement("thead",{role:"rowgroup",className:"k-calendar-thead"},s.createElement("tr",{role:"row",className:"k-calendar-tr"},t.map((function(e,t){return s.createElement("th",{key:t,className:"k-calendar-th"},e)})))),s.createElement("tbody",{role:"rowgroup",className:"k-calendar-tbody"},!this.isHorizontal&&s.createElement("tr",{role:"presentation",className:"k-calendar-tr"},s.createElement("th",{scope:"col",colSpan:n,className:"k-calendar-th"},r)),a.map((function(t,n){return s.createElement("tr",{role:"row",className:"k-calendar-tr",key:n},e.weekNumber&&e.buildWeekNumber(t,n),e.buildRow(t))}))))},t.prototype.getWeekNumber=function(e){return this.weekNumber&&this.intl?(0,m.weekInYear)(e,this.intl.firstDay()):null},t.propTypes={activeRangeEnd:u.oneOf(["start","end",null]),activeView:u.number.isRequired,cellUID:u.string.isRequired,direction:u.oneOf(["horizontal","vertical"]),focusedDate:u.instanceOf(Date).isRequired,max:u.instanceOf(Date).isRequired,min:u.instanceOf(Date).isRequired,onChange:u.func,selectedDate:u.oneOfType([u.instanceOf(Date),u.arrayOf(u.instanceOf(Date))]),showWeekNumbers:u.bool,viewDate:u.instanceOf(Date).isRequired},t.defaultProps={direction:"vertical",selectedDate:Y(),showWeekNumbers:!1},t}(s.Component);(0,v.registerForIntl)(ae);var le,se=n(7037),ue=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ce=function(){return ce=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},ce.apply(this,arguments)},de=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ue(t,e),t.prototype.render=function(){var e=this.props,t=(e.view,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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["view"]));return s.createElement(se.z,ce({type:"button",fillMode:"flat"},t),this.props.children)},t}(s.PureComponent),pe=new Date(1980,0,1),fe=new Date(1900,0,1),he=new Date(2099,11,31),me=new Date(1980,0,1),ve=new Date(1980,0,1,23,59,59),ge=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ye=function(){return ye=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},ye.apply(this,arguments)},be=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.getTitle=function(){if(!t.props.currentDate)return"";var e=t.rangeLength-1,n=t.props.service.title(t.props.currentDate),r=t.props.service.addToDate(t.props.currentDate,e);return e<1||!t.props.service.isInRange(r,t.min,t.max)?n:"".concat(n," - ").concat(t.props.service.title(r))},t.handleTitleClick=function(e){t.canMoveUp&&t.props.bus.moveUp(t.props.activeView,e)},t}return ge(t,e),Object.defineProperty(t.prototype,"min",{get:function(){return void 0!==this.props.min?this.props.min:t.defaultProps.min},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return void 0!==this.props.max?this.props.max:t.defaultProps.max},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rangeLength",{get:function(){return void 0!==this.props.rangeLength?this.props.rangeLength:t.defaultProps.rangeLength},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canMoveUp",{get:function(){return this.props.bus.canMoveUp(this.props.activeView)},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this.getTitle(),t=(0,f.A)("k-calendar-title"),n={children:e,value:e,view:this.props.activeView,className:t,onClick:this.handleTitleClick,disabled:!this.canMoveUp},r=this.props.headerTitle?s.createElement(this.props.headerTitle,ye({},n),e):s.createElement(de,ye({},n),e);return s.createElement("div",{className:"k-calendar-header k-hstack"},r,s.createElement("span",{className:"k-spacer"}),s.createElement("span",{className:"k-calendar-nav k-hstack"},this.props.commands))},t.propTypes={activeView:u.number.isRequired,currentDate:u.instanceOf(Date).isRequired,max:u.instanceOf(Date).isRequired,min:u.instanceOf(Date).isRequired,rangeLength:u.number},t.defaultProps={rangeLength:1,min:fe,max:he},t}(s.Component);(0,v.registerForLocalization)(be);var Ce="multiviewcalendar.prevView",Ee="multiviewcalendar.nextView",we="dateinput.increment",ke="dateinput.decrement",Se="calendar.today",Oe="datepicker.toggleCalendar",De="daterangepicker.swapStartEnd",xe="daterangepicker.start",Ie="daterangepicker.end",Te="daterangepicker.separator",_e="datetimepicker.toggleDateTimeSelector",Re="timepicker.now",Me="timepicker.selectNow",Pe="timepicker.cancel",Ne="timepicker.set",Fe="timepicker.toggleTimeSelector",Ae="timepicker.toggleClock",je="datetimepicker.date",Le="datetimepicker.time",Ve="datetimepicker.cancel",ze="datetimepicker.set",Be=((le={})[Se]="TODAY",le[Re]="NOW",le[Ne]="Set",le[Pe]="Cancel",le[je]="Date",le[Le]="Time",le[Ve]="Cancel",le[ze]="Set",le[xe]="Start",le[Ie]="End",le[Te]=" ",le[Me]="Select Now",le[Fe]="Toggle TimeSelector",le[Ae]="Toggle Clock",le[we]="Increase value",le[ke]="Decrease value",le[Oe]="Toggle calendar",le[Ce]="Navigate to previous view",le[Ee]="Navigate to next view",le[De]="Swap start and end values",le[_e]="Toggle date-time selector",le),He=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ue=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.localization=null,t.handleClick=function(e){if(t.todayIsInRange&&t.props.onClick){var n={syntheticEvent:e,nativeEvent:e.nativeEvent,value:ee(Y(),t.min,t.max),target:t,isTodayClick:!0};t.props.onClick.call(void 0,n)}},t}return He(t,e),Object.defineProperty(t.prototype,"min",{get:function(){return void 0!==this.props.min?this.props.min:t.defaultProps.min},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return void 0!==this.props.max?this.props.max:t.defaultProps.max},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"todayIsInRange",{get:function(){return G(Y(),(0,m.getDate)(this.min),(0,m.getDate)(this.max))},enumerable:!1,configurable:!0}),t.prototype.render=function(){this.localization=(0,v.provideLocalizationService)(this);var e=this.localization.toLanguageString(Se,Be[Se]),t=(0,f.A)("k-nav-today",{"k-disabled":this.props.disabled});return s.createElement("span",{className:t,onClick:this.handleClick},e)},t.propTypes={max:u.instanceOf(Date).isRequired,min:u.instanceOf(Date).isRequired,onClick:u.func,disabled:u.bool},t.defaultProps={min:fe,max:he},t}(s.Component);(0,v.registerForLocalization)(Ue);var We=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ke=function(e){function t(t){var n=e.call(this,t)||this;return n.virtualization=null,n.calendarView=null,n.table=null,n.intl=null,n.bottomOffset=0,n.viewOffset=0,n.viewHeight=0,n._element=null,n.isActive=!1,n.animateToIndex=!0,n.shouldScroll=!1,n.focusActiveDate=function(){if(n._element){var e=n._element.querySelector("td.k-focus"),t=n._element.querySelector(".k-state-pending-focus");e&&e[0]&&e[0].classList.remove("k-focus"),t&&t.classList.add("k-focus"),n.isActive=!0}},n.blurActiveDate=function(){if(n._element){var e=n._element.querySelector("td.k-focus");e&&e.classList.remove("k-focus"),n.isActive=!1}},n.handleVirtualizationMount=function(e){if(n.virtualization=e,n.virtualization&&n.table){n.table.style.transform="translateY(".concat(n.viewOffset,"px)");var t=ee(n.props.focusedDate,n.props.min,n.props.max),r=n.props.service.skip(t,n.props.min);n.virtualization.scrollToIndex(r)}},n.buildMonthView=function(e,t){return s.createElement("table",{key:"calendar-view-list-weekdays",className:"k-calendar-table k-calendar-weekdays"},s.createElement("colgroup",null,e.map((function(e,t){return s.createElement("col",{key:t})}))),s.createElement("thead",{className:"k-calendar-thead"},s.createElement("tr",{className:"k-calendar-tr"},t.map((function(e,t){return s.createElement("th",{key:t,className:"k-calendar-th"},e)})))))},n.buildDates=function(e,t){var r=n.props.cellUID;return s.createElement("table",{className:"k-calendar-table",ref:function(e){return n.table=e}},s.createElement("colgroup",null,e.map((function(e,t){return s.createElement("col",{key:t})}))),t.map((function(e){return s.createElement(ae,{ref:function(e){n.calendarView||(n.calendarView=e)},key:e.getTime(),activeView:n.props.activeView,viewDate:e,min:n.props.min,max:n.props.max,cellUID:r,focusedDate:n.props.focusedDate,cell:n.props.cell,selectedDate:n.props.value,showWeekNumbers:n.weekNumber,onChange:n.handleDateChange,bus:n.props.bus,service:n.props.service,weekCell:n.props.weekCell})})))},n.calculateHeights=function(){if(n.props.dom){var e=n.props.activeView===O.month?n.props.dom.scrollableContentHeight:n.props.dom.scrollableYearContentHeight;n.bottomOffset=e-n.props.dom.viewHeight(n.props.activeView),n.viewOffset=-1*n.props.dom.headerHeight,n.viewHeight=n.props.dom.viewHeight(n.props.activeView)||1}},n.getTake=function(e,t){return Math.min(t-e,n.take)},n.handleScrollAction=function(e){var t=e.index,r=e.scrollAction,o=e.pageAction,i=o?o.skip:n.state.skip;if(n.state.index===t&&n.state.skip===i||n.setState({index:t,skip:i}),n.table&&r){var a="translateY(".concat(r.offset,"px)");n.table.style.transform=a}},n.handleTodayClick=function(e){n.shouldScroll=!0,n.handleDateChange.call(void 0,e,!0)},n.handleDateChange=function(e,t){void 0===t&&(t=!1);var r=n.props.onChange;if(r){var o={syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,value:(0,m.cloneDate)(e.value),target:n,isTodayClick:t};r.call(void 0,o)}},n.lastView=n.props.activeView,n.lastFocus=n.props.focusedDate,n.state={skip:n.props.service.skip(n.props.focusedDate,n.props.min),index:n.props.service.skip(n.props.focusedDate,n.props.min)},n}return We(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"weekNames",{get:function(){this.intl=(0,v.provideIntlService)(this);var e=J(this.intl.dateFormatNames({nameType:"short",type:"days"}),this.intl.firstDay());return this.weekNumber?[""].concat(e):e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"weekNumber",{get:function(){return Boolean(this.props.showWeekNumbers&&this.props.activeView===O.month)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"take",{get:function(){return void 0!==this.props.take?this.props.take:t.defaultProps.take},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"animate",{get:function(){return Boolean(this.props.smoothScroll&&this.animateToIndex)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"todayIsInRange",{get:function(){return G(Y(),(0,m.getDate)(this.props.min),(0,m.getDate)(this.props.max))},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(e,t){this.shouldScroll=!1,void 0!==this.indexToScroll&&this.virtualization&&this.virtualization[this.animate?"animateToIndex":"scrollToIndex"](this.indexToScroll),this.isActive&&this.focusActiveDate(),this.lastView=this.props.activeView,this.indexToScroll=void 0},t.prototype.render=function(){var e=this;this.calculateHeights();var t=this.lastView!==this.props.activeView,n=ee(this.props.focusedDate,this.props.min,this.props.max),r=t?this.props.service.skip(n,this.props.min):this.state.skip,o=this.props.service.total(this.props.min,this.props.max),i=this.getTake(r,o),a=this.props.service.addToDate(this.props.min,r),l=this.props.service.addToDate(this.props.min,this.state.index),u=new Array(this.props.service.rowLength(this.weekNumber)).fill(""),c=this.props.activeView!==this.lastView;this.animateToIndex=!c,(c||!(0,m.isEqualDate)(this.lastFocus,n)||this.shouldScroll||!this.props.shouldScroll||this.props.shouldScroll())&&(this.indexToScroll=this.props.service.skip(n,this.props.min)),this.lastFocus=n;var d=(0,f.A)("k-calendar-view k-vstack",{"k-calendar-monthview":this.props.activeView===O.month,"k-calendar-yearview":this.props.activeView===O.year,"k-calendar-decadeview":this.props.activeView===O.decade,"k-calendar-centuryview":this.props.activeView===O.century}),p=this.buildDates(u,this.props.service.datesList(a,i)),h=s.createElement(s.Fragment,null,s.createElement(be,{key:"calendar-view-list-header",currentDate:l,min:this.props.min,max:this.props.max,activeView:this.props.activeView,bus:this.props.bus,service:this.props.service,headerTitle:this.props.headerTitle,commands:s.createElement(s.Fragment,null,s.createElement(Ue,{min:this.props.min,max:this.props.max,onClick:this.handleTodayClick,disabled:!this.todayIsInRange}))}),this.props.activeView===O.month&&this.buildMonthView(u,this.weekNames),s.createElement(T,{key:"calendar-view-list-content",skip:r,take:this.take,total:o,itemHeight:this.viewHeight,topOffset:this.viewOffset,bottomOffset:this.bottomOffset,scrollOffsetSize:this.viewOffset,maxScrollDifference:this.viewHeight,onScroll:this.props.onScroll,onScrollAction:this.handleScrollAction,onMount:this.handleVirtualizationMount,children:p}));return s.createElement("div",{ref:function(t){e._element=t},className:d},this.props.dom.didCalculate?h:null)},t.propTypes={activeView:u.number.isRequired,bottomOffset:u.number,cellUID:u.string.isRequired,focusedDate:u.instanceOf(Date).isRequired,max:u.instanceOf(Date).isRequired,min:u.instanceOf(Date).isRequired,onChange:u.func,showWeekNumbers:u.bool,smoothScroll:u.bool,take:u.number,value:u.instanceOf(Date),viewHeight:u.number,viewOffset:u.number},t.defaultProps={take:5,showWeekNumbers:!1,smoothScroll:!0},t}(s.Component);(0,v.registerForIntl)(Ke);var qe,Ye,Ge=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ze=function(){return Ze=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},Ze.apply(this,arguments)},Xe=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){var n=t.props,r=n.onClick,o=n.value;r&&r.call(void 0,o,e)},t}return Ge(t,e),t.prototype.render=function(){var e=this.props,t=e.isRangeStart,n=(e.value,e.text,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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["isRangeStart","value","text"]));return s.createElement("li",Ze({},n,{onClick:this.handleClick}),s.createElement("span",{className:(0,f.A)({"k-calendar-navigation-marker":t})},this.props.children))},t}(s.Component),$e=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qe=function(){return Qe=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},Qe.apply(this,arguments)},Je=function(e){function t(t){var n=e.call(this,t)||this;n.virtualization=null,n.list=null,n.itemHeight=0,n.topOffset=0,n.maxViewHeight=0,n.bottomOffset=0,n.handleVirtualizationMount=function(e){if(n.virtualization=e,n.virtualization&&n.list){n.list.style.transform="translateY(".concat(n.topOffset,"px)");var t=ee(n.props.focusedDate,n.props.min,n.props.max),r=n.props.service.skip(t,n.props.min);n.virtualization.scrollToIndex(r)}},n.buildNavigationItem=function(e){var t=n.props.service.navigationTitle(e),r=n.props.service.isRangeStart(e),o="kendo-react-calendar-nav-item-".concat(e.getTime()),i={text:t,value:e,isRangeStart:r,view:n.props.activeView,onClick:n.handleDateChange};return n.props.navigationItem?s.createElement(n.props.navigationItem,Qe({},i,{key:o}),t):s.createElement(Xe,Qe({},i,{key:o}),t)},n.calculateHeights=function(){var e=n.props.dom.calendarHeight;n.itemHeight=n.props.dom.navigationItemHeight||1,n.maxViewHeight=n.props.dom.monthViewHeight,n.topOffset=(e-n.itemHeight)/2,n.bottomOffset=e-n.itemHeight},n.handleDateChange=function(e,t){var r=n.props.onChange;if(r&&t){var o={value:(0,m.cloneDate)(e),target:n,nativeEvent:t&&t.nativeEvent,syntheticEvent:t};r.call(void 0,o)}},n.handleScrollAction=function(e){var t=e.scrollAction,r=e.pageAction,o=r?r.skip:n.state.skip;if(n.state.skip!==o&&n.setState({skip:o}),n.list&&t){var i="translateY(".concat(t.offset,"px)");n.list.style.transform=i}},n.lastView=n.props.activeView,n.lastFocus=n.props.focusedDate;var r=n.props.service.skip(n.props.focusedDate,n.props.min),o=n.props.service.total(n.props.min,n.props.max);return n.state={skip:r-n.getTake(r,o)>0?r:0},n}return $e(t,e),Object.defineProperty(t.prototype,"take",{get:function(){return void 0!==this.props.take?this.props.take:t.defaultProps.take},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(e,t){void 0!==this.indexToScroll&&this.virtualization&&this.virtualization.scrollToIndex(this.indexToScroll),this.lastView=this.props.activeView,this.lastFocus=this.props.focusedDate,this.indexToScroll=void 0},t.prototype.render=function(){var e=this;this.calculateHeights();var t=this.lastView!==this.props.activeView,n=ee(this.props.focusedDate,this.props.min,this.props.max),r=t?this.props.service.skip(n,this.props.min):this.state.skip,o=this.props.service.total(this.props.min,this.props.max),i=this.getTake(r,o),a=this.props.service.addToDate(this.props.min,r),l=this.props.service.datesList(a,i);this.props.activeView===this.lastView&&(0,m.isEqual)(n,this.lastFocus)||(this.indexToScroll=this.props.service.skip(n,this.props.min));var u=s.createElement(T,{skip:r,take:this.take,total:o,itemHeight:this.itemHeight,topOffset:this.topOffset,bottomOffset:this.bottomOffset,onScroll:this.props.onScroll,maxScrollDifference:this.maxViewHeight,onScrollAction:this.handleScrollAction,onMount:this.handleVirtualizationMount},s.createElement("ul",{ref:function(t){e.list=t},className:"k-reset"},l.map((function(t){return e.buildNavigationItem(t)}))));return s.createElement("div",{className:"k-calendar-navigation"},s.createElement("span",{className:"k-calendar-navigation-highlight"}),this.props.dom.didCalculate?u:null)},t.prototype.getTake=function(e,t){return Math.min(t-e,this.take)},t.propTypes={activeView:u.number.isRequired,focusedDate:u.instanceOf(Date).isRequired,max:u.instanceOf(Date).isRequired,min:u.instanceOf(Date).isRequired,onChange:u.func,take:u.number},t.defaultProps={take:30},t}(s.Component),et=n(7827),tt=function(){function e(){this.calendarHeight=0,this.headerHeight=0,this.monthViewHeight=0,this.yearViewHeight=0,this.decadeViewHeight=0,this.centuryViewHeight=0,this.navigationItemHeight=0,this.scrollableContentHeight=0,this.scrollableYearContentHeight=0,this.calendarWidth=0,this.monthViewWidth=0,this.yearViewWidth=0,this.decadeViewWidth=0,this.centuryViewWidth=0,this.scrollableContentWidth=0,this.didCalculate=!1,this.hostContainer=null}return e.prototype.ensureHeights=function(){void 0===this.calendarHeight&&this.calculateHeights()},e.prototype.calculateHeights=function(e){var t=this;if(et.N){var n,r=te("div"),o=te("ul"),i=te("li"),a=te("td"),l=te("th"),s=te("tr"),u=te("tbody"),c=te("thead"),d=te("table"),p=function(){return r('\n <span class="k-button k-button-md k-button-rectangle k-button-solid k-button-solid-base k-button-flat k-calendar-title">\n <span className="k-button-text">March 2017</span>\n </span>\n <span class="k-spacer"></span>\n <span class="k-calendar-nav k-hstack"><span class="k-nav-today">TODAY</span></span>\n ',"k-calendar-header k-hstack")},f=function(e,t){return new Array(e).fill("1").map(t)},h=function(e){return r(e,"k-content k-calendar-content k-scrollable")},m=function(e,t,n){var o,i=e.cells,m=e.rows;return function(){return et.N?(o||(o=function(e,t,n){return r(n?[p(),d([c([s([l("MO","k-calendar-th")],"k-calendar-tr")],"k-calendar-thead")],"k-calendar-table k-calendar-weekdays"),h([e,e])]:[p(),h([e,e])],t,{left:"-10000px",position:"absolute"})}(function(e,t){return void 0===t&&(t=1),d([u([s([a("1","k-calendar-td k-alt")])].concat(f(e,(function(){return s(f(t,(function(e){return a('<span class="k-link">'.concat(e,"</span>"),"k-calendar-td")})),"k-calendar-tr")}))),"k-calendar-tbody")],"k-calendar-table")}(m,i),t,n)),o):null}},v=function(e){return e.querySelector(".k-scrollable")},g=function(e){var t=v(e);return t.className="".concat(t.className," k-scrollable-horizontal"),e},y=m({cells:7,rows:6},"k-calendar-view k-calendar-monthview k-vstack",!0),b=m({cells:5,rows:3},"k-calendar-view k-calendar-yearview",!1),C=m({cells:5,rows:2},"k-calendar-view k-calendar-decadeview",!1),E=function(e){return parseFloat(window.getComputedStyle(e).height)||e.offsetHeight},w=function(e){var t=window.getComputedStyle(e);return parseFloat(t.width)+parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)||e.offsetWidth},k=function(e){return e.querySelector("tbody")};this.didCalculate=!0,e&&(this.hostContainer=e),this.batch(y(),(function(e){var n=k(e);t.calendarHeight=E(e),t.monthViewHeight=E(n),t.headerHeight=E(n.children[0]),t.scrollableContentHeight=E(v(e))})),this.batch(g(y()),(function(e){var n=k(e);t.calendarWidth=w(e),t.monthViewWidth=w(n),t.scrollableContentWidth=w(v(e))})),this.batch(b(),(function(e){t.yearViewHeight=E(k(e)),t.scrollableYearContentHeight=E(v(e))})),this.batch(g(b()),(function(e){t.yearViewWidth=w(k(e))})),this.batch(C(),(function(e){t.decadeViewHeight=E(k(e)),t.centuryViewHeight=t.decadeViewHeight})),this.batch(g(C()),(function(e){t.decadeViewWidth=w(k(e)),t.centuryViewWidth=t.decadeViewWidth})),this.batch(et.N?(n||(n=r([h([o([i("<span>FEB</span>")])])],"k-calendar-navigation",{left:"0px",position:"absolute"})),n):null,(function(e){t.navigationItemHeight=E(e.querySelector("li"))}))}},e.prototype.viewHeight=function(e){return this.viewDimension(e,"height")},e.prototype.viewWidth=function(e){return this.viewDimension(e,"width")},e.prototype.viewDimension=function(e,t){var n="height"===t?"ViewHeight":"ViewWidth";switch(e){case O.month:return this["month".concat(n)];case O.year:return this["year".concat(n)];case O.decade:return this["decade".concat(n)];case O.century:return this["century".concat(n)];default:return 1}},e.prototype.batch=function(e,t){var n=this.hostContainer||document.body,r=n.appendChild(e);t(r),n.removeChild(r)},e}();!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.Up=2]="Up",e[e.Down=3]="Down",e[e.PrevView=4]="PrevView",e[e.NextView=5]="NextView",e[e.FirstInView=6]="FirstInView",e[e.LastInView=7]="LastInView",e[e.LowerView=8]="LowerView",e[e.UpperView=9]="UpperView"}(qe||(qe={}));var nt,rt,ot,it,at=[[]],lt=((Ye={})[qe.Left]=function(e){return(0,m.addDecades)(e,-1)},Ye[qe.Up]=function(e){return(0,m.addDecades)(e,-5)},Ye[qe.Right]=function(e){return(0,m.addDecades)(e,1)},Ye[qe.Down]=function(e){return(0,m.addDecades)(e,5)},Ye[qe.PrevView]=function(e){return(0,m.addCenturies)(e,-1)},Ye[qe.NextView]=function(e){return(0,m.addCenturies)(e,1)},Ye[qe.FirstInView]=function(e){return(0,m.firstDecadeOfCentury)(e)},Ye[qe.LastInView]=function(e){return(0,m.lastDecadeOfCentury)(e)},Ye),st=function(){function e(){}return e.prototype.addToDate=function(e,t){return(0,m.addCenturies)(e,t)},e.prototype.datesList=function(e,t){return $(0,t).map((function(t){return(0,m.addCenturies)(e,t)}))},e.prototype.data=function(e){var t=this,n=e.cellUID,r=e.focusedDate,o=e.isActiveView,i=e.max,a=e.min,l=e.selectedDate,s=e.selectionRange,u=void 0===s?j:s,c=e.viewDate;if(!c)return at;var d=$(0,4),p=(0,m.firstDecadeOfCentury)(c),f=(0,m.lastDecadeOfCentury)(c),h=Y();return $(0,3).map((function(e){var s=(0,m.addDecades)(p,4*e);return d.map((function(e){var c=t.normalize((0,m.addDecades)(s,e),a,i),d=t.isEqual(c,u.start),v=t.isEqual(c,u.end),g=!d&&!v&&X(c,u),y=o&&(Array.isArray(l)?t.isSelectedFromArray(c,l,a,i):G(l,a,i)&&t.isEqual(c,l));return Q(c,p,f)?{formattedValue:t.value(c),id:"".concat(n).concat(c.getTime()),isFocused:t.isEqual(c,r),isSelected:y,isWeekend:!1,isInRange:G(c,a,i),isRangeStart:d,isRangeMid:g,isRangeEnd:v,isRangeSplitEnd:g&&t.isEqual(c,f),isRangeSplitStart:g&&t.isEqual(c,p),isToday:t.isEqual(c,h),title:t.cellTitle(c),value:c}:null}))}))},e.prototype.isSelectedFromArray=function(e,t,n,r){var o=this,i=!1;return t.forEach((function(t){G(e,n,r)&&o.isEqual(e,t)&&(i=!0)})),i},e.prototype.isEqual=function(e,t){return!(!e||!t)&&(0,m.firstYearOfDecade)(e).getFullYear()===(0,m.firstYearOfDecade)(t).getFullYear()},e.prototype.isInArray=function(e,t){if(!t.length)return!1;var n=e.getFullYear();return t[0].getFullYear()<=n&&n<=t[t.length-1].getFullYear()+99},e.prototype.isInRange=function(e,t,n){var r=(0,m.firstYearOfDecade)(e).getFullYear(),o=!t||(0,m.firstYearOfDecade)(t).getFullYear()<=r,i=!n||r<=(0,m.firstYearOfDecade)(n).getFullYear();return o&&i},e.prototype.isInSameView=function(e,t){return 0===(0,m.durationInCenturies)(e,t)},e.prototype.isRangeStart=function(e){return e.getFullYear()%1e3==0},e.prototype.move=function(e,t){var n=lt[t];return n?n(e):e},e.prototype.cellTitle=function(e){return(0,m.firstYearOfDecade)(e).getFullYear().toString()},e.prototype.navigationTitle=function(e){return e?(0,m.firstDecadeOfCentury)(e).getFullYear().toString():""},e.prototype.title=function(e){return e?"".concat((0,m.firstDecadeOfCentury)(e).getFullYear()," - ").concat((0,m.lastDecadeOfCentury)(e).getFullYear()):""},e.prototype.rowLength=function(e){return 4},e.prototype.skip=function(e,t){return(0,m.durationInCenturies)(t,e)},e.prototype.total=function(e,t){return(0,m.durationInCenturies)(e,t)+1},e.prototype.value=function(e){return e?(0,m.firstYearOfDecade)(e).getFullYear().toString():""},e.prototype.viewDate=function(e,t,n){return void 0===n&&(n=1),(0,m.durationInCenturies)(e,t)<n?(0,m.addCenturies)(e,-1):e},e.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?(0,m.cloneDate)(t):e>n&&this.isEqual(e,n)?(0,m.cloneDate)(n):e},e}(),ut=[[]],ct=((nt={})[qe.Left]=function(e){return(0,m.addYears)(e,-1)},nt[qe.Up]=function(e){return(0,m.addYears)(e,-5)},nt[qe.Right]=function(e){return(0,m.addYears)(e,1)},nt[qe.Down]=function(e){return(0,m.addYears)(e,5)},nt[qe.PrevView]=function(e){return(0,m.addDecades)(e,-1)},nt[qe.NextView]=function(e){return(0,m.addDecades)(e,1)},nt[qe.FirstInView]=function(e){return(0,m.firstYearOfDecade)(e)},nt[qe.LastInView]=function(e){return(0,m.lastYearOfDecade)(e)},nt),dt=function(){function e(){}return e.prototype.addToDate=function(e,t){return(0,m.addDecades)(e,t)},e.prototype.datesList=function(e,t){return $(0,t).map((function(t){return(0,m.addDecades)(e,t)}))},e.prototype.data=function(e){var t=this,n=e.cellUID,r=e.focusedDate,o=e.isActiveView,i=e.max,a=e.min,l=e.selectedDate,s=e.selectionRange,u=void 0===s?j:s,c=e.viewDate;if(!c)return ut;var d=$(0,4),p=(0,m.firstYearOfDecade)(c),f=(0,m.lastYearOfDecade)(c),h=Y();return $(0,3).map((function(e){var s=(0,m.addYears)(p,4*e);return d.map((function(e){var c=t.normalize((0,m.addYears)(s,e),a,i),d=t.isEqual(c,u.start),v=t.isEqual(c,u.end),g=!d&&!v&&X(c,u),y=o&&(Array.isArray(l)?t.isSelectedFromArray(c,l,a,i):G(l,a,i)&&t.isEqual(c,l));return Q(c,p,f)?{formattedValue:t.value(c),id:"".concat(n).concat(c.getTime()),isFocused:t.isEqual(c,r),isSelected:y,isWeekend:!1,isInRange:G(c,a,i),isRangeStart:d,isRangeMid:g,isRangeEnd:v,isRangeSplitEnd:g&&t.isEqual(c,f),isRangeSplitStart:g&&t.isEqual(c,p),isToday:t.isEqual(c,h),title:t.cellTitle(c),value:c}:null}))}))},e.prototype.isSelectedFromArray=function(e,t,n,r){var o=this,i=!1;return t.forEach((function(t){G(e,n,r)&&o.isEqual(e,t)&&(i=!0)})),i},e.prototype.isEqual=function(e,t){return!(!e||!t)&&e.getFullYear()===t.getFullYear()},e.prototype.isInArray=function(e,t){if(!t.length)return!1;var n=e.getFullYear();return t[0].getFullYear()<=n&&n<=t[t.length-1].getFullYear()+9},e.prototype.isInRange=function(e,t,n){var r=e.getFullYear(),o=!t||t.getFullYear()<=r,i=!n||r<=n.getFullYear();return o&&i},e.prototype.isRangeStart=function(e){return e.getFullYear()%100==0},e.prototype.isInSameView=function(e,t){return 0===(0,m.durationInDecades)(e,t)},e.prototype.move=function(e,t){var n=ct[t];return n?n(e):e},e.prototype.cellTitle=function(e){return e.getFullYear().toString()},e.prototype.navigationTitle=function(e){return e?(0,m.firstYearOfDecade)(e).getFullYear().toString():""},e.prototype.title=function(e){return e?"".concat((0,m.firstYearOfDecade)(e).getFullYear()," - ").concat((0,m.lastYearOfDecade)(e).getFullYear()):""},e.prototype.rowLength=function(e){return 4},e.prototype.skip=function(e,t){return(0,m.durationInDecades)(t,e)},e.prototype.total=function(e,t){return(0,m.durationInDecades)(e,t)+1},e.prototype.value=function(e){return e?e.getFullYear().toString():""},e.prototype.viewDate=function(e,t,n){return void 0===n&&(n=1),(0,m.durationInDecades)(e,t)<n?(0,m.addDecades)(e,-1):e},e.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?(0,m.cloneDate)(t):e>n&&this.isEqual(e,n)?(0,m.cloneDate)(n):e},e}(),pt=[[]],ft=((rt={})[qe.Left]=function(e){return(0,m.addDays)(e,-1)},rt[qe.Up]=function(e){return(0,m.addWeeks)(e,-1)},rt[qe.Right]=function(e){return(0,m.addDays)(e,1)},rt[qe.Down]=function(e){return(0,m.addWeeks)(e,1)},rt[qe.PrevView]=function(e){return(0,m.addMonths)(e,-1)},rt[qe.NextView]=function(e){return(0,m.addMonths)(e,1)},rt[qe.FirstInView]=function(e){return(0,m.firstDayOfMonth)(e)},rt[qe.LastInView]=function(e){return(0,m.lastDayOfMonth)(e)},rt),ht=function(){function e(e){this.intl=e}return e.prototype.addToDate=function(e,t){return(0,m.addMonths)(e,t)},e.prototype.datesList=function(e,t){return $(0,t).map((function(t){return(0,m.addMonths)(e,t)}))},e.prototype.data=function(e){var t=this,n=e.cellUID,r=e.focusedDate,o=e.isActiveView,i=e.max,a=e.min,l=e.selectedDate,s=e.selectionRange,u=void 0===s?j:s,c=e.viewDate;if(!c)return pt;var d=(0,m.firstDayOfMonth)(c),p=(0,m.lastDayOfMonth)(c),f=(0,m.dayOfWeek)(d,this.intl.firstDay(),-1),h=$(0,7),v=Y();return $(0,6).map((function(e){var s=(0,m.addDays)(f,7*e);return h.map((function(e){var c=t.normalize((0,m.addDays)(s,e),a,i);if(c<d||c>p)return null;var f=t.isEqual(c,u.start),h=t.isEqual(c,u.end),g=!f&&!h&&X(c,u),y=o&&(Array.isArray(l)?t.isSelectedFromArray(c,l,a,i):G(l,a,i)&&t.isEqual(c,l));return{formattedValue:t.value(c),id:"".concat(n).concat(c.getTime()),isFocused:t.isEqual(c,r),isSelected:y,isInRange:G(c,a,i),isWeekend:t.isWeekend(c),isRangeStart:f,isRangeMid:g,isRangeEnd:h,isRangeSplitStart:g&&t.isEqual(c,d),isRangeSplitEnd:g&&t.isEqual(c,p),isToday:t.isEqual(c,v),title:t.cellTitle(c),value:c}}))}))},e.prototype.isEqual=function(e,t){return!(!e||!t)&&(0,m.getDate)(e).getTime()===(0,m.getDate)(t).getTime()},e.prototype.isSelectedFromArray=function(e,t,n,r){var o=this,i=!1;return t.forEach((function(t){G(e,n,r)&&o.isEqual(e,t)&&(i=!0)})),i},e.prototype.isInArray=function(e,t){return!!t.length&&(0,m.firstDayOfMonth)(t[0])<=e&&e<=(0,m.lastDayOfMonth)(t[t.length-1])},e.prototype.isInRange=function(e,t,n){var r=(0,m.getDate)(e),o=!t||(0,m.getDate)(t)<=r,i=!n||r<=(0,m.getDate)(n);return o&&i},e.prototype.isInSameView=function(e,t){return 0===(0,m.durationInMonths)(e,t)},e.prototype.isRangeStart=function(e){return!e.getMonth()},e.prototype.move=function(e,t){var n=ft[t];return n?n(e):e},e.prototype.cellTitle=function(e){return this.intl.formatDate(e,"D")},e.prototype.navigationTitle=function(e){return e?this.isRangeStart(e)?e.getFullYear().toString():this.abbrMonthNames()[e.getMonth()]:""},e.prototype.title=function(e){return"".concat(this.wideMonthNames()[e.getMonth()]," ").concat(e.getFullYear())},e.prototype.rowLength=function(e){return 7+(e?1:0)},e.prototype.skip=function(e,t){return(0,m.durationInMonths)(t,e)},e.prototype.total=function(e,t){return(0,m.durationInMonths)(e,t)+1},e.prototype.value=function(e){return e?e.getDate().toString():""},e.prototype.viewDate=function(e,t,n){return void 0===n&&(n=1),(0,m.durationInMonths)(e,t)<n?(0,m.addMonths)(e,-1):e},e.prototype.isWeekend=function(e){var t=e.getDay();return 6===t||0===t},e.prototype.abbrMonthNames=function(){return this.intl.dateFormatNames({nameType:"abbreviated",type:"months"})},e.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?(0,m.getDate)(t):e>n&&this.isEqual(e,n)?(0,m.getDate)(n):e},e.prototype.wideMonthNames=function(){return this.intl.dateFormatNames({nameType:"wide",type:"months",standAlone:!0})},e}(),mt=[[]],vt=((ot={})[qe.Left]=function(e){return(0,m.addMonths)(e,-1)},ot[qe.Up]=function(e){return(0,m.addMonths)(e,(t=e.getMonth())>4?-5:t<2?-2:-7);var t},ot[qe.Right]=function(e){return(0,m.addMonths)(e,1)},ot[qe.Down]=function(e){return(0,m.addMonths)(e,(t=e.getMonth())<7?5:t<10?7:2);var t},ot[qe.PrevView]=function(e){return(0,m.addYears)(e,-1)},ot[qe.NextView]=function(e){return(0,m.addYears)(e,1)},ot[qe.FirstInView]=function(e){return(0,m.firstMonthOfYear)(e)},ot[qe.LastInView]=function(e){return(0,m.lastMonthOfYear)(e)},ot),gt=function(){function e(e){this._intl=e}return e.prototype.addToDate=function(e,t){return(0,m.addYears)(e,t)},e.prototype.datesList=function(e,t){return $(0,t).map((function(t){return(0,m.addYears)(e,t)}))},e.prototype.data=function(e){var t=this,n=e.cellUID,r=e.focusedDate,o=e.isActiveView,i=e.max,a=e.min,l=e.selectedDate,s=e.selectionRange,u=void 0===s?j:s,c=e.viewDate;if(!c)return mt;var d=this.abbrMonthNames(),p=(0,m.firstMonthOfYear)(c),f=(0,m.lastMonthOfYear)(c),h=p.getFullYear(),v=$(0,4),g=Y();return $(0,3).map((function(e){var s=(0,m.addMonths)(p,4*e);return v.map((function(e){var c=t.normalize((0,m.addMonths)(s,e),a,i);if(h<c.getFullYear())return null;var v=t.isEqual(c,u.start),y=t.isEqual(c,u.end),b=!v&&!y&&X(c,u),C=o&&(Array.isArray(l)?t.isSelectedFromArray(c,l,a,i):G(l,a,i)&&t.isEqual(c,l));return{formattedValue:d[c.getMonth()],id:"".concat(n).concat(c.getTime()),isFocused:t.isEqual(c,r),isSelected:C,isInRange:G(c,a,i),isWeekend:!1,isRangeStart:v,isRangeMid:b,isRangeEnd:y,isRangeSplitEnd:b&&t.isEqual(c,f),isRangeSplitStart:b&&t.isEqual(c,p),isToday:t.isEqual(c,g),title:t.cellTitle(c),value:c}}))}))},e.prototype.isSelectedFromArray=function(e,t,n,r){var o=this,i=!1;return t.forEach((function(t){G(e,n,r)&&o.isEqual(e,t)&&(i=!0)})),i},e.prototype.isEqual=function(e,t){return!(!e||!t)&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()},e.prototype.isInArray=function(e,t){if(!t.length)return!1;var n=e.getFullYear();return t[0].getFullYear()<=n&&n<=t[t.length-1].getFullYear()},e.prototype.isInRange=function(e,t,n){var r=(0,m.createDate)(e.getFullYear(),e.getMonth(),1),o=!t||(0,m.createDate)(t.getFullYear(),t.getMonth(),1)<=r,i=!n||r<=(0,m.createDate)(n.getFullYear(),n.getMonth(),1);return o&&i},e.prototype.isInSameView=function(e,t){return 0===(0,m.durationInYears)(e,t)},e.prototype.isRangeStart=function(e){return e.getFullYear()%10==0},e.prototype.move=function(e,t){var n=vt[t];return n?n(e):e},e.prototype.cellTitle=function(e){return"".concat(e.getFullYear()," ").concat(this.value(e))},e.prototype.navigationTitle=function(e){return this.title(e)},e.prototype.title=function(e){return e?e.getFullYear().toString():""},e.prototype.rowLength=function(e){return 4},e.prototype.skip=function(e,t){return(0,m.durationInYears)(t,e)},e.prototype.total=function(e,t){return(0,m.durationInYears)(e,t)+1},e.prototype.value=function(e){return e?this.abbrMonthNames()[e.getMonth()]:""},e.prototype.viewDate=function(e,t,n){return void 0===n&&(n=1),(0,m.durationInYears)(e,t)<n?(0,m.addYears)(e,-1):e},e.prototype.abbrMonthNames=function(){return this._intl.dateFormatNames({nameType:"abbreviated",type:"months"})},e.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?(0,m.cloneDate)(t):e>n&&this.isEqual(e,n)?(0,m.cloneDate)(n):e},e}(),yt=((it={})[O.month]=ht,it[O.year]=gt,it[O.decade]=dt,it[O.century]=st,it),bt=function(){function e(e){this.bottom=O.month,this.top=O.century,this.onViewChanged=e}return e.prototype.configure=function(e,t){this.bottom=e,this.top=t},e.prototype.service=function(e,t){return new(yt["".concat(e)])(t)},e.prototype.moveDown=function(e,t){this.move(e,-1,t)},e.prototype.moveUp=function(e,t){this.move(e,1,t)},e.prototype.moveToBottom=function(e){e!==this.bottom&&this.onViewChanged({view:this.bottom})},e.prototype.canMoveDown=function(e){return this.bottom<e},e.prototype.canMoveUp=function(e){return e<this.top},e.prototype.clamp=function(e){return e<this.bottom?this.bottom:e>this.top?this.top:e},e.prototype.move=function(e,t,n){var r=this.clamp(function(e,t){var n=O[O[e+t]];return void 0!==n?n:e}(e,t));r!==e&&this.onViewChanged({view:r},n)},e}(),Ct={33:qe.PrevView,34:qe.NextView,35:qe.LastInView,36:qe.FirstInView,37:qe.Left,38:qe.Up,39:qe.Right,40:qe.Down,"meta+38":qe.UpperView,"meta+40":qe.LowerView},Et=function(){function e(e){this.bus=e}return e.prototype.action=function(e){var t="".concat(e.ctrlKey||e.metaKey?"meta+":"").concat(e.keyCode);return Ct[t]},e.prototype.move=function(e,t,n,r,o){return r?t===qe.UpperView&&this.bus.canMoveUp(n)?(this.bus.moveUp(n,o),e):t===qe.LowerView&&this.bus.canMoveDown(n)?(this.bus.moveDown(n,o),e):r.move(e,t):e},e}(),wt=function(){function e(e){this.dom=e,this.divideByMagnitude=null,this.powerByMagnitude=null,this.navigator=null,this.view=null,this.monthScrolled=!1,this.navScrolled=!1}return e.prototype.configure=function(e){var t=Math.max(this.dom.viewHeight(e)/this.dom.navigationItemHeight,1);this.divideByMagnitude=function(e){return function(t){return Math.floor(t/e)}}(t),this.powerByMagnitude=function(e){return function(t){return t*e}}(t)},e.prototype.sync=function(e,t,n){if(e&&t){if(this.navigator=e,this.view=t,n.target===this.navigator.element){if(this.monthScrolled)return void(this.monthScrolled=!1);this.navScrolled=!0,this.scrollSiblingOf(this.navigator.element)}if(n.target===this.view.element){if(this.navScrolled)return void(this.navScrolled=!1);this.monthScrolled=!0,this.scrollSiblingOf(this.view.element)}}},e.prototype.scrollSiblingOf=function(e){var t=this.siblingComponent(e),n=this.calculateScroll(t,e.scrollTop);t.scrollTo(n)},e.prototype.siblingComponent=function(e){return this.navigator.element===e?this.view:this.navigator},e.prototype.calculateScroll=function(e,t){var n=e===this.navigator?this.divideByMagnitude:this.powerByMagnitude;return n?n(t):0},e}(),kt=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),St=function(){return St=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},St.apply(this,arguments)},Ot=function(e){return e?e.virtualization:null},Dt=function(e,t,n,r){return void 0===e&&(e=xt.defaultProps.min),void 0===t&&(t=xt.defaultProps.max),void 0!==r?null!==r&&G((0,m.getDate)(r),e,t)?r:null:null!==n&&G((0,m.getDate)(n),e,t)?n:null},xt=function(e){function t(n){var r=e.call(this,n)||this;r.scrollSyncService=null,r.focusedDate=null,r.cellUID=(0,c.M)(),r.id=(0,c.M)(),r.Navigation=null,r.calendarViewList=null,r._element=null,r.intl=null,r.service=null,r.isActive=!1,r.didNavigationChange=!1,r.focus=function(){r._element&&r._element.focus()},r.shouldScroll=function(){return r.didNavigationChange},r.handleScroll=function(e){r.scrollSyncService&&r.scrollSyncService.sync(Ot(r.Navigation),Ot(r.calendarViewList),e)},r.handleNavigationChange=function(e){if(!r.props.disabled){r.didNavigationChange=!0;var t=(0,m.cloneDate)(e.value);r.setState({focusedDate:t})}},r.handleViewChange=function(e){var t=e.view;r.scrollSyncService&&r.scrollSyncService.configure(t),r.setState({activeView:t})},r.handleDateChange=function(e){var t=(0,m.cloneDate)(e.value),n=(0,m.cloneDate)(e.value),o=r.bus.canMoveDown(r.state.activeView);if(!r.props.disabled){if(o){if(!e.isTodayClick)return r.bus.moveDown(r.state.activeView,e.syntheticEvent),void r.setState({focusedDate:n});r.bus.moveToBottom(r.state.activeView)}r.setState({value:t,focusedDate:n}),r.valueDuringOnChange=t;var i=r.props.onChange;if(i){var a={syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,value:t,target:r};i.call(void 0,a)}r.valueDuringOnChange=void 0}},r.handleFocus=function(e){if(r.isActive=!0,r.calendarViewList){r.calendarViewList.focusActiveDate();var t=r.props.onFocus;t&&t.call(void 0,e)}},r.handleBlur=function(e){if(r.isActive=!1,r.calendarViewList){r.calendarViewList.blurActiveDate();var t=r.props.onBlur;t&&t.call(void 0,e)}},r.handleKeyDown=function(e){var t=e.keyCode;if(r.focusedDate&&r.service){if(t===d.R.enter){if(null!==r.value&&(0,m.isEqualDate)(r.focusedDate,r.value)){var n=ee(r.focusedDate,r.min,r.max);Ot(r.calendarViewList).scrollToIndex(r.service.skip(n,r.min))}var o={syntheticEvent:e,nativeEvent:e.nativeEvent,value:r.focusedDate,target:r};r.handleDateChange(o)}else{var i=ee(r.navigation.move(r.focusedDate,r.navigation.action(e),r.state.activeView,r.service,e),r.min,r.max);if((0,m.isEqualDate)(r.focusedDate,i))return;r.setState({focusedDate:i})}e.preventDefault()}},r.handleMouseDown=function(e){e.preventDefault()},r.handleClick=function(e){r._element&&r._element.focus({preventScroll:!0})},(0,p.s)(g);var o=Dt(r.min,r.max,r.props.defaultValue||t.defaultProps.defaultValue,r.props.value);return r.state={value:o,activeView:z(O[n.defaultActiveView],r.bottomView,r.topView),focusedDate:ee(n.focusedDate||o||Y(),r.min,r.max)},r.dom=new tt,r.bus=new bt(r.handleViewChange),r.navigation=new Et(r.bus),r.oldValue=o,r}return kt(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,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:!1,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return(0,m.getDate)(void 0!==this.props.min?this.props.min:t.defaultProps.min)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return(0,m.getDate)(void 0!==this.props.max?this.props.max:t.defaultProps.max)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bottomView",{get:function(){return O[void 0!==this.props.bottomView?this.props.bottomView:t.defaultProps.bottomView]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"topView",{get:function(){return O[void 0!==this.props.topView?this.props.topView:t.defaultProps.topView]},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){var e=this;Promise.resolve().then((function(){e._element&&(e.dom.calculateHeights(e._element),e.scrollSyncService=new wt(e.dom),e.scrollSyncService.configure(e.state.activeView),e.forceUpdate())}))},t.prototype.componentDidUpdate=function(e,t){t.activeView!==this.state.activeView&&this.scrollSyncService&&this.scrollSyncService.configure(this.state.activeView),this.calendarViewList&&(this.isActive?this.calendarViewList.focusActiveDate:this.calendarViewList.blurActiveDate)(),this.didNavigationChange=!1,this.oldValue=this.value},t.prototype.render=function(){var e=this;this.props._ref&&this.props._ref(this);var n=null!==this.value&&null!==this.oldValue?!(0,m.isEqualDate)(this.value,this.oldValue):this.value!==this.oldValue,r=z(this.state.activeView,O[void 0!==this.props.bottomView?this.props.bottomView:t.defaultProps.bottomView],O[void 0!==this.props.topView?this.props.topView:t.defaultProps.topView]),o=Dt(this.min,this.max,this.value,this.value),i=o?(0,m.getDate)(o):null;this.focusedDate=(0,m.getDate)(ee(n&&null!==o?o:this.state.focusedDate,this.min,this.max)),this.intl=(0,v.provideIntlService)(this),this.bus.configure(this.bottomView,this.topView),this.service=this.bus.service(r,this.intl);var a=(0,f.A)("k-widget k-calendar k-calendar-infinite",{"k-disabled":this.props.disabled,"k-week-number":this.props.weekNumber},this.props.className),l={"aria-disabled":this.props.disabled,"aria-activedescendant":this.cellUID+this.focusedDate.getTime()},u=[this.props.navigation&&s.createElement(Je,{key:0,ref:function(t){e.Navigation=t},activeView:this.state.activeView,focusedDate:this.focusedDate,min:this.min,max:this.max,onScroll:this.handleScroll,onChange:this.handleNavigationChange,service:this.service,dom:this.dom,navigationItem:this.props.navigationItem}),s.createElement(Ke,{key:1,ref:function(t){e.calendarViewList=t},activeView:this.state.activeView,focusedDate:this.focusedDate,min:this.min,max:this.max,bus:this.bus,shouldScroll:this.shouldScroll,onScroll:this.handleScroll,service:this.service,cell:this.props.cell,weekCell:this.props.weekCell,dom:this.dom,smoothScroll:this.props.smoothScroll,showWeekNumbers:this.props.weekNumber,onChange:this.handleDateChange,value:i,cellUID:this.cellUID,headerTitle:this.props.headerTitle})];return s.createElement("div",St({},l,{ref:function(t){e._element=t},className:a,id:this.props.id||this.id,"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,role:"grid",tabIndex:this.props.disabled?void 0:this.props.tabIndex||0,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,onMouseDown:this.handleMouseDown,onClick:this.handleClick}),u)},t.displayName="Calendar",t.propTypes={className:u.string,defaultActiveView:u.oneOf(["month","year","decade","century"]),defaultValue:u.instanceOf(Date),disabled:u.bool,focusedDate:u.instanceOf(Date),id:u.string,ariaLabelledBy:u.string,ariaDescribedBy:u.string,max:u.instanceOf(Date),min:u.instanceOf(Date),navigation:u.bool,smoothScroll:u.bool,onBlur:u.func,onChange:u.func,onFocus:u.func,tabIndex:u.number,value:u.instanceOf(Date),weekNumber:u.bool,topView:function(e,t,n){var r=e[t],o=e.bottomView;return r&&o&&O[r]<O[o]?new Error("Invalid prop + ".concat(t," suplied to ").concat(n,".\n ").concat(t," can not be smaller than bottomView.\n ")):null},bottomView:function(e,t,n){var r=e[t],o=e.topView;return r&&o&&O[r]>O[o]?new Error("Invalid prop + ".concat(t," suplied to ").concat(n,".\n ").concat(t," can not be bigger than topView.\n ")):null}},t.defaultProps={disabled:!1,min:fe,max:he,navigation:!0,defaultActiveView:"month",defaultValue:null,smoothScroll:!0,topView:"century",bottomView:"month"},t}(s.Component),It=(0,h.Y)(),Tt=(0,h.u)(It,xt);Tt.displayName="KendoReactCalendar",(0,v.registerForIntl)(xt);var _t=function(){this.symbols="",this.partMap=[]},Rt=function(e,t){return e[t.pattern[0]]=t.type,e},Mt=["k-widget","k-dateinput"],Pt=function(){function e(e,t,n){this.year=!0,this.month=!0,this.date=!0,this.hours=!0,this.minutes=!0,this.seconds=!0,this.milliseconds=!0,this.leadingZero=null,this.typedMonthPart="",this.knownParts="adHhmMsEy",this.symbols={E:"E",H:"H",M:"M",a:"a",d:"d",h:"h",m:"m",s:"s",y:"y"},this._value=(0,m.getDate)(new Date),this.intlProvider=e,this.formatPlaceholder=t,this.format=n,this.monthNames=this.allFormatedMonths()}return Object.defineProperty(e.prototype,"intl",{get:function(){return this.intlProvider()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!1,configurable:!0}),e.prototype.setValue=function(e){e?(0,m.isEqual)(e,this._value)||(this._value=(0,m.cloneDate)(e),this.modifyExisting(!0)):(this._value=(0,m.getDate)(new Date),this.modifyExisting(!1))},e.prototype.hasValue=function(){var e=this;return this.intl.splitDateFormat(this.format).reduce((function(t,n){return t||"literal"!==n.type&&"dayperiod"!==n.type&&e.getExisting(n.pattern[0])}),!1)},e.prototype.getDateObject=function(){for(var e=0;e<this.knownParts.length;e++)if(!this.getExisting(this.knownParts[e]))return null;return(0,m.cloneDate)(this.value)},e.prototype.getTextAndFormat=function(){return this.merge(this.intl.formatDate(this.value,this.format),this.dateFormatString(this.value,this.format))},e.prototype.modifyExisting=function(e){for(var t=this.dateFormatString(this.value,this.format).symbols,n=0;n<t.length;n++)this.setExisting(t[n],e)},e.prototype.getExisting=function(e){switch(e){case"y":return this.year;case"M":case"L":return this.month;case"d":return this.date;case"E":return this.date&&this.month&&this.year;case"h":case"H":return this.hours;case"m":return this.minutes;case"s":return this.seconds;default:return!0}},e.prototype.setExisting=function(e,t){switch(e){case"y":this.year=t,!1===t&&this._value.setFullYear(2e3);break;case"M":this.month=t,!1===t&&this._value.setMonth(0);break;case"d":this.date=t;break;case"h":case"H":this.hours=t;break;case"m":this.minutes=t;break;case"s":this.seconds=t;break;default:return}},e.prototype.modifyPart=function(e,t){var n=(0,m.cloneDate)(this.value);switch(e){case"y":n.setFullYear(n.getFullYear()+t);break;case"M":n=(0,m.addMonths)(this.value,t);break;case"d":case"E":n.setDate(n.getDate()+t);break;case"h":case"H":n.setHours(n.getHours()+t);break;case"m":n.setMinutes(n.getMinutes()+t);break;case"s":n.setSeconds(n.getSeconds()+t);break;case"a":n.setHours(n.getHours()+12*t)}this.setExisting(e,!0),this._value=n},e.prototype.parsePart=function(e,t){var n;if(this.resetLeadingZero(),!t)return this.setExisting(e,!1),{value:null};for(var r=this.intl.formatDate(this.value,this.format),o=this.dateFormatString(this.value,this.format),i=o.symbols,a=!1,l="",s="",u="",c=0;c<r.length;c++)i[c]===e?(s+=this.getExisting(e)?r[c]:"0",a=!0):a?u+=r[c]:l+=r[c];for(var d=null,p=this.matchMonth(t);s.length>0&&"0"===s.charAt(0);)s=s.slice(1);for(s.length>=4&&(s=""),c=0;c<2;c++){var f=s+t,h=parseInt(f,10);if(!(d=this.intl.parseDate(l+f+u,this.format))&&!isNaN(h)&&!isNaN(parseInt(t,10))){if("M"===e&&!p){var v=h-1;v>-1&&v<12&&((d=(0,m.cloneDate)(this.value)).setMonth(v),d.getMonth()!==v&&(d=(0,m.lastDayOfMonth)((0,m.addMonths)(d,-1))))}"y"===e&&(d=(0,m.createDate)(parseInt(f,10),this.month?this.value.getMonth():0,this.date?this.value.getDate():1,this.hours?this.value.getHours():0,this.minutes?this.value.getMinutes():0,this.seconds?this.value.getSeconds():0,this.milliseconds?this.value.getMilliseconds():0),this.date&&d.getDate()!==this.value.getDate()&&(d=(0,m.lastDayOfMonth)((0,m.addMonths)(d,-1))))}if(d)return this._value=d,this.setExisting(e,!0),{value:this.value};s=""}return p&&(d=this.intl.parseDate(l+p+u,this.format))?(this._value=d,this.setExisting(e,!0),{value:this.value}):("0"===t&&(this.leadingZero=this.isAbbrMonth(o.partMap,e)?null:((n={})[e]=!0,n),this.setExisting(e,!1)),{value:null})},e.prototype.symbolMap=function(e){return this.intl.splitDateFormat(this.format).reduce(Rt,{})[e]},e.prototype.resetLeadingZero=function(){var e=null!==this.leadingZero;return this.leadingZero=null,e},e.prototype.isAbbrMonth=function(e,t){var n=this.partPattern(e,t);return"month"===n.type&&n.names},e.prototype.partPattern=function(e,t){return e.filter((function(e){return-1!==e.pattern.indexOf(t)}))[0]},e.prototype.matchMonth=function(e){if(this.typedMonthPart+=e.toLowerCase(),0===this.monthNames.length)return"";for(;this.typedMonthPart.length>0;){for(var t=0;t<this.monthNames.length;t++)if(0===this.monthNames[t].toLowerCase().indexOf(this.typedMonthPart))return this.monthNames[t];var n=parseInt(this.typedMonthPart,10);if(n>=1&&n<=12&&n.toString()===this.typedMonthPart)return this.monthNames[n-1];this.typedMonthPart=this.typedMonthPart.substring(1,this.typedMonthPart.length)}return""},e.prototype.allFormatedMonths=function(){for(var e=this.intl.splitDateFormat(this.format),t=0;t<e.length;t++)if("month"===e[t].type&&e[t].names)return this.intl.dateFormatNames(e[t].names);return[]},e.prototype.dateFormatString=function(e,t){for(var n=this.intl.splitDateFormat(t),r=[],o=[],i=0;i<n.length;i++)for(var a=this.intl.formatDate(e,{pattern:n[i].pattern}).length;a>0;)r.push(this.symbols[n[i].pattern[0]]||"_"),o.push(n[i]),a--;var l=new _t;return l.symbols=r.join(""),l.partMap=o,l},e.prototype.merge=function(e,t){for(var n="",r="",o=t.symbols,i=o.length-1;i>=0;i--)if(-1===this.knownParts.indexOf(o[i])||this.getExisting(o[i]))n=e[i]+n,r=o[i]+r;else{for(var a=o[i];i>=0&&a===o[i];)i--;for(i++,n=this.leadingZero&&this.leadingZero[a]?"0"+n:this.dateFieldName(t.partMap[i])+n;r.length<n.length;)r=o[i]+r}return{text:n,format:r}},e.prototype.dateFieldName=function(e){var t=this.formatPlaceholder||"wide";return t[e.type]?t[e.type]:"formatPattern"===t?e.pattern:this.intl.dateFieldName(Object.assign(e,{nameType:t}))},e}(),Nt=n(493),Ft=n(2697),At=n(3228),jt=n(6097),Lt="dayperiod",Vt="hour",zt="minute",Bt="second",Ht=function(e){return function(t,n){var r=(0,m.cloneDate)(t);return r[e](n),r}},Ut=[{type:Vt,getter:function(e){return e.getHours()}},{type:zt,getter:function(e){return e.getMinutes()}},{type:Bt,getter:function(e){return e.getSeconds()}},{type:"millisecond",getter:function(e){return e.getMilliseconds()}}],Wt=function(e){return function(t){return e.map(function(e){return function(t){return e[t.type]?(n=t.getter,function(e,t){return n(t)}):function(e){return function(t,n){return e(t)}}(t.getter);var n}}(function(e){return e.reduce((function(e,t){return e[t.type]=t.type,e}),{})}(t)))}}(Ut),Kt=function(e){return function(t,n){return e.map((function(e){var r=Math.floor(t[e.type]);return r?function(e,t,n,r){return function(o){var i=e(o),a=e(n);return"hour"===r?i-(i-a)%t:o.getTime()<=n.getTime()&&0!==i&&i<=a?Math.ceil(i/t)*t:i-i%t}}(e.getter,r,n,e.type):e.getter}))}}(Ut),qt=function(e){return function(t){var n=(0,m.cloneDate)(t);return n.setHours.apply(n,e.map((function(e){return e(n)}))),n}},Yt=Ht("setHours"),Gt=Ht("setMinutes"),Zt=Ht("setSeconds"),Xt=function(){return new Date},$t=function(e,t,n){void 0===n&&(n=1);for(var r=[],o=e;o<t;o+=n)r.push(o);return r},Qt=function(e,t,n){return{candidateValue:q(B,e),maxValue:(0,m.addDays)(q(B,n),t.getHours()<n.getHours()?0:1),minValue:q(B,t)}},Jt=function(e,t,n){if(!e||!t||!n)return!0;var r=Qt(e,t,n),o=r.candidateValue,i=r.minValue,a=r.maxValue;return i<=o&&o<=a},en=function(e,t){if(null===e||null===t)return!1;var n=q(B,e),r=q(B,t);return n.getTime()<r.getHours()},tn=function(e,t){if(null===e||null===t)return!1;var n=q(B,e);return q(B,t).getTime()<n.getHours()},nn=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),rn=function(){return rn=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},rn.apply(this,arguments)},on=function(e){function t(n){var r=e.call(this,n)||this;return r.kendoDate=null,r.currentFormat="",r.paste=!1,r._element=null,r._wrapper=null,r._inputId=(0,c.M)(),r._lastSelectedSymbol="",r.focus=function(){r._element&&r._element.focus()},r.setValidity=function(){r.element&&r.element.setCustomValidity&&r.element.setCustomValidity(r.validity.valid?"":r.props.validationMessage||t.defaultProps.validationMessage)},r.updateOnPaste=function(e){if(r.element&&r.kendoDate){var t=(0,v.provideIntlService)(r).parseDate(r.element.value,r.props.format)||r.value,n=r.value;r.kendoDate.setValue(t),r.triggerChange(e,n)}},r.spinnersMouseDown=function(e){e.preventDefault(),r.element&&document.activeElement!==r.element&&r.element.focus({preventScroll:!0})},r.handlePaste=function(){r.paste=!0},r.elementChange=function(e){if(r.element&&r.kendoDate){if(r.paste)return r.updateOnPaste(e),void(r.paste=!1);var t=r.kendoDate.getTextAndFormat(),n=t.text,o=t.format;r.currentFormat=o;var i=r.value,a=function(e,t,n,r){var o=e[r+e.length-n.length],i=e.substring(0,r+e.length-n.length),a=n.substring(0,r),l=[];if(i===a&&r>0)return l.push([t[r-1],a[r-1]]),l;if(0===i.indexOf(a)&&(0===a.length||t[a.length-1]!==t[a.length])){var s="";1===a.length&&l.push([t[0],a[0]]);for(var u=a.length;u<i.length;u++)t[u]!==s&&"_"!==t[u]&&(s=t[u],l.push([s,""]));return l}if(0===a.indexOf(i)||"_"===t[r-1]){var c=t[0];for(u=Math.max(0,i.length-1);u<t.length;u++)if("_"!==t[u]){c=t[u];break}return[[c,a[r-1]]]}return" "===a[a.length-1]||a[a.length-1]===o?[[t[r-1],"_"]]:[[t[r-1],a[r-1]]]}(n,r.currentFormat,r.element.value,r.selection.start),l=1===a.length&&"_"===a[0][1];if(!l)for(var s=0;s<a.length;s++)r.kendoDate.parsePart(a[s][0],a[s][1]);a.length&&"_"!==a[0][0]&&r.setSelection(r.selectionBySymbol(a[0][0])),l&&r.switchDateSegment(1),r.triggerChange(e,i)}},r.elementClick=function(e){r.setSelection(r.selectionByIndex(r.selection.start))},r.nativeWheel=function(e){e.preventDefault()},r.wheel=function(e){document.activeElement===r.element&&(e.nativeEvent.deltaY<0&&r.increasePart(e),e.nativeEvent.deltaY>0&&r.decreasePart(e))},r.increasePart=function(e){r.modifyDateSegmentValue(1,e)},r.decreasePart=function(e){r.modifyDateSegmentValue(-1,e)},r.elementKeyDown=function(e){if(!e.altKey){switch(e.keyCode){case 37:r.switchDateSegment(-1);break;case 38:r.modifyDateSegmentValue(1,e);break;case 39:r.switchDateSegment(1);break;case 40:r.modifyDateSegmentValue(-1,e);break;default:return}e.preventDefault()}},r.elementOnFocus=function(e){r.wrapper&&r.wrapper.classList.add("k-focus"),r.setState({focused:!0})},r.elementOnBlur=function(e){r.wrapper&&r.wrapper.classList.remove("k-focus"),r.setState({focused:!1})},(0,p.s)(g),r.state={focused:!1},r}return nn(t,e),t.prototype.componentDidMount=function(){this.setValidity(),this.wrapper&&this.wrapper.addEventListener("wheel",this.nativeWheel,{passive:!1})},t.prototype.componentDidUpdate=function(e,t){this._lastSelectedSymbol&&t.focused===this.state.focused?this.setSelection(this.selectionBySymbol(this._lastSelectedSymbol)):this.selection.start===this.selection.end&&this.setSelection({start:0,end:this.currentFormat.length}),this.setValidity()},t.prototype.componentWillUnmount=function(){this.wrapper&&this.wrapper.removeEventListener("wheel",this.nativeWheel)},t.prototype.render=function(){var e=this,n=this.props,r=n.size,o=void 0===r?t.defaultProps.size:r,i=n.fillMode,a=void 0===i?t.defaultProps.fillMode:i,l=n.rounded,u=void 0===l?t.defaultProps.rounded:l;this.props._ref&&(this.props._ref.current=this);var c=(0,v.provideLocalizationService)(this),d=rn(rn({},t.defaultProps),this.props),p=d.min,h=d.max,m=d.name,g=d.label,y=d.id,b=this.text,C=b===this.props.placeholder?"":b,E=b===this.props.placeholder?b:void 0,w=y||this._inputId,k=!this.validityStyles||this.validity.valid,S={"aria-valuemin":null===p?void 0:p.getTime(),"aria-valuemax":null===h?void 0:h.getTime(),"aria-valuetext":C};null!==this.value&&(S["aria-valuenow"]=this.value.getTime());var O=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([],Mt,!0);this.props.className&&O.push(this.props.className);var D=s.createElement(Nt.o,{onFocus:this.elementOnFocus,onBlur:this.elementOnBlur},(function(t){var n,r=t.onFocus,i=t.onBlur;return s.createElement("span",{ref:function(t){e._wrapper=t},style:g?void 0:{width:e.props.width},dir:e.props.dir,className:(0,f.A)("k-dateinput","k-input",(n={},n["k-input-".concat(Ft.G.sizeMap[o]||o)]=o,n["k-input-".concat(a)]=a,n["k-rounded-".concat(Ft.G.roundedMap[u]||u)]=u,n["k-invalid"]=!k,n["k-required"]=e.required,n["k-disabled"]=e.props.disabled,n),e.props.className),onFocus:r,onBlur:i},s.createElement("input",rn({role:"spinbutton",tabIndex:e.props.tabIndex,disabled:e.props.disabled,title:void 0!==e.props.title?e.props.title:b,type:"text",spellCheck:!1,autoComplete:"off",autoCorrect:"off",className:"k-input-inner",id:w,"aria-label":e.props.ariaLabel,"aria-labelledby":e.props.ariaLabelledBy,"aria-describedby":e.props.ariaDescribedBy,"aria-expanded":e.props.ariaExpanded,"aria-haspopup":e.props.ariaHasPopup,onWheel:e.wheel,onClick:e.elementClick,onInput:e.elementChange,onPaste:e.handlePaste,onKeyDown:e.elementKeyDown,onChange:At.Z,value:C,placeholder:E,name:m},S,{ref:function(t){return e._element=t}})),e.props.children,e.props.spinners&&s.createElement("span",{className:"k-input-spinner k-spin-button",onMouseDown:e.spinnersMouseDown},s.createElement(se.z,{tabIndex:-1,type:"button",className:"k-spinner-increase",icon:"arrow-n","aria-label":c.toLanguageString(we,Be[we]),title:c.toLanguageString(we,Be[we]),onClick:e.increasePart}),s.createElement(se.z,{tabIndex:-1,type:"button",className:"k-spinner-decrease",icon:"arrow-s","aria-label":c.toLanguageString(ke,Be[ke]),title:c.toLanguageString(ke,Be[ke]),onClick:e.decreasePart})))}));return g?s.createElement(jt._,{label:g,editorId:w,editorValue:b,editorValid:k,editorDisabled:this.props.disabled,children:D,style:{width:this.props.width}}):D},Object.defineProperty(t.prototype,"value",{get:function(){return void 0!==this.valueDuringOnChange?this.valueDuringOnChange:this.kendoDate&&this.kendoDate.getDateObject()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return void 0!==this.props.min?this.props.min:t.defaultProps.min},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return void 0!==this.props.max?this.props.max:t.defaultProps.max},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){var e=rn(rn({},ln.defaultProps),this.props),n=e.formatPlaceholder,r=void 0===n?t.defaultProps.formatPlaceholder:n,o=e.format,i=void 0===o?t.defaultProps.format:o,a=e.value,l=e.defaultValue;null===this.kendoDate?(this.kendoDate=new Pt(this.intl.bind(this),r,i),this.kendoDate.setValue(a||l||null)):(this.kendoDate.format=i,this.kendoDate.formatPlaceholder=r),void 0!==a&&this.value!==a&&this.kendoDate.setValue(a);var s=this.kendoDate.getTextAndFormat(),u=s.text,c=s.format;return this.currentFormat=c,null===e.placeholder||void 0===e.placeholder||this.state.focused||this.kendoDate.hasValue()?u:e.placeholder},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){var e,t,n,r=(e=this.value,t=this.min,n=this.max,(null===e||!(t&&t>e||n&&n<e))&&Jt(this.value,this.props.minTime,this.props.maxTime)),o=void 0!==this.props.validationMessage,i=(!this.required||null!==this.value)&&r,a=void 0!==this.props.valid?this.props.valid:i;return{customError:o,rangeOverflow:this.value&&this.max.getTime()<this.value.getTime()||!1,rangeUnderflow:this.value&&this.value.getTime()<this.min.getTime()||!1,valid:a,valueMissing:null===this.value}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:t.defaultProps.required},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wrapper",{get:function(){return this._wrapper},enumerable:!1,configurable:!0}),t.prototype.intl=function(){return(0,v.provideIntlService)(this)},Object.defineProperty(t.prototype,"selection",{get:function(){var e={start:0,end:0};return null!==this.element&&void 0!==this.element.selectionStart&&(e={start:this.element.selectionStart,end:this.element.selectionEnd}),e},enumerable:!1,configurable:!0}),t.prototype.setSelection=function(e){var t=this;this._lastSelectedSymbol=this.currentFormat[e.start],window.requestAnimationFrame((function(){t.element&&document.activeElement===t.element&&t.element.setSelectionRange(e.start,e.end)}))},t.prototype.triggerChange=function(e,t){this.valueDuringOnChange=this.value,this.forceUpdate(),this.props.onChange&&!(0,m.isEqual)(t,this.value)&&this.props.onChange.call(void 0,{syntheticEvent:e,nativeEvent:e.nativeEvent,value:this.value,target:this}),this.valueDuringOnChange=void 0},t.prototype.selectionBySymbol=function(e){for(var t=-1,n=0,r=0;r<this.currentFormat.length;r++)this.currentFormat[r]===e&&(n=r+1,-1===t&&(t=r));return t<0&&(t=0),{start:t,end:n}},t.prototype.selectionByIndex=function(e){for(var t={start:e,end:e},n=e,r=e-1;n<this.currentFormat.length||r>=0;n++,r--){if(n<this.currentFormat.length&&"_"!==this.currentFormat[n]){t=this.selectionBySymbol(this.currentFormat[n]);break}if(r>=0&&"_"!==this.currentFormat[r]){t=this.selectionBySymbol(this.currentFormat[r]);break}}return t},t.prototype.switchDateSegment=function(e){var t=this.selection,n=t.start,r=t.end;if(n<r&&this.currentFormat[n]!==this.currentFormat[r-1])this.setSelection(this.selectionByIndex(e>0?n:r-1));else{for(var o=this.currentFormat[n],i=n+e;i>0&&i<this.currentFormat.length&&(this.currentFormat[i]===o||"_"===this.currentFormat[i]);)i+=e;if("_"!==this.currentFormat[i]){for(var a=i;a>=0&&a<this.currentFormat.length&&this.currentFormat[a]===this.currentFormat[i];)a+=e;i>a&&(a+1!==n||i+1!==r)?this.setSelection({start:a+1,end:i+1}):i<a&&(i!==n||a!==r)&&this.setSelection({start:i,end:a})}}},t.prototype.modifyDateSegmentValue=function(e,t){if(this.kendoDate){var n=this.value,r=this.currentFormat[this.selection.start],o=this.kendoDate.symbolMap(r),i=((this.props.steps||{})[o]||1)*e;this.kendoDate.modifyPart(r,i),this.triggerChange(t,n)}},t.displayName="DateInput",t.propTypes={value:u.instanceOf(Date),format:u.oneOfType([u.string,u.shape({skeleton:u.string,pattern:u.string,date:u.oneOf(["short","medium","long","full"]),time:u.oneOf(["short","medium","long","full"]),datetime:u.oneOf(["short","medium","long","full"]),era:u.oneOf(["narrow","short","long"]),year:u.oneOf(["numeric","2-digit"]),month:u.oneOf(["numeric","2-digit","narrow","short","long"]),day:u.oneOf(["numeric","2-digit"]),weekday:u.oneOf(["narrow","short","long"]),hour:u.oneOf(["numeric","2-digit"]),hour12:u.bool,minute:u.oneOf(["numeric","2-digit"]),second:u.oneOf(["numeric","2-digit"]),timeZoneName:u.oneOf(["short","long"])})]),formatPlaceholder:u.oneOfType([u.oneOf(["wide","narrow","short","formatPattern"]),u.shape({year:u.string,month:u.string,day:u.string,hour:u.string,minute:u.string,second:u.string})]),width:u.oneOfType([u.string,u.number]),tabIndex:u.number,title:u.string,steps:u.shape({year:u.number,month:u.number,day:u.number,hour:u.number,minute:u.number,second:u.number}),min:u.instanceOf(Date),max:u.instanceOf(Date),disabled:u.bool,spinners:u.bool,name:u.string,dir:u.string,label:u.string,id:u.string,ariaLabelledBy:u.string,ariaDescribedBy:u.string,ariaLabel:u.string,ariaExpanded:u.oneOfType([u.bool]),onChange:u.func,validationMessage:u.string,required:u.bool,validate:u.bool,valid:u.bool,size:u.oneOf([null,"small","medium","large"]),rounded:u.oneOf([null,"small","medium","large","full"]),fillMode:u.oneOf([null,"solid","flat","outline"])},t.defaultProps={format:"d",size:"medium",rounded:"medium",fillMode:"solid",formatPlaceholder:"wide",spinners:!1,disabled:!1,max:(0,m.cloneDate)(U),min:(0,m.cloneDate)(H),minTime:(0,m.cloneDate)(me),maxTime:(0,m.cloneDate)(ve),required:!1,validityStyles:!0,validationMessage:"Please enter a valid value!",placeholder:null},t}(s.Component),an=(0,h.Y)(),ln=(0,h.u)(an,on);ln.displayName="KendoReactDateInput",(0,v.registerForIntl)(on),(0,v.registerForLocalization)(on);var sn=n(9222),un=se.z,cn=s.forwardRef((function(e,t){var n=e._ref,r=s.useRef(null);s.useImperativeHandle(t,(function(){return r.current})),s.useImperativeHandle(n,(function(){return r.current}));var o=s.useMemo((function(){return(0,f.A)(e.className,"k-picker-wrap")}),[e.className]);return s.createElement("span",{ref:r,id:e.id,style:e.style,className:o,tabIndex:e.tabIndex},e.children)})),dn=function(){return dn=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},dn.apply(this,arguments)},pn=function(e){var t=function(e){var t=s.useState(!1),n=t[0],r=t[1];return s.useEffect((function(){e.current&&r(Boolean(e.current.text))})),{editorValue:n}}(e.dateInput);return s.createElement(jt._,dn({},e,t))},fn=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),hn=function(){return hn=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},hn.apply(this,arguments)},mn=function(e){function t(n){var r=e.call(this,n)||this;return r._popupId=(0,c.M)(),r._element=null,r._dateInput=s.createRef(),r._calendar=null,r.shouldFocusDateInput=!1,r.prevShow=!1,r.focus=function(){r.dateInput&&r.dateInput.focus()},r.setCalendarRef=function(e){r._calendar=e},r.nextValue=function(e,t){return void 0!==e.value?e.value:t.value},r.nextShow=function(e,t){return void 0!==e.show?e.show:t.show},r.handleInputValueChange=function(e){r.handleValueChange(e.value,e)},r.handleCalendarValueChange=function(e){var t=r.mergeTime(e.value);r.handleValueChange(t,e)},r.handleValueChange=function(e,t){r.setState({value:(0,m.cloneDate)(e||void 0),show:!1}),r.valueDuringOnChange=e,r.showDuringOnChange=!1,r.shouldFocusDateInput=!0;var n=r.props.onChange;n&&n.call(void 0,{syntheticEvent:t.syntheticEvent,nativeEvent:t.nativeEvent,value:r.value,show:r.show,target:r}),r.valueDuringOnChange=void 0,r.showDuringOnChange=void 0},r.handleFocus=function(){r.setState({focused:!0})},r.handleBlur=function(){r.setState({focused:!1}),r.setShow(!1)},r.handleIconClick=function(){r.props.disabled||(r.shouldFocusDateInput=!0,r.setShow(!r.show))},r.handleIconMouseDown=function(e){e.preventDefault()},r.handleKeyDown=function(e){var t=e.altKey,n=e.keyCode;if(n===d.R.esc)return r.shouldFocusDateInput=!0,void r.setShow(!1);!t||n!==d.R.up&&n!==d.R.down||(e.preventDefault(),e.stopPropagation(),r.shouldFocusDateInput=n===d.R.up,r.setShow(n===d.R.down))},(0,p.s)(g),r.state={value:r.props.defaultValue||t.defaultProps.defaultValue,show:r.props.defaultShow||t.defaultProps.defaultShow,focused:!1},r}return fn(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dateInput",{get:function(){return this._dateInput.current},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"calendar",{get:function(){return this._calendar},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){var e=void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.props.value?this.props.value:this.state.value;return null!==e?(0,m.cloneDate)(e):null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"show",{get:function(){return void 0!==this.showDuringOnChange?this.showDuringOnChange:void 0!==this.props.show?this.props.show:this.state.show},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return void 0!==this.props.min?this.props.min:t.defaultProps.min},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return void 0!==this.props.max?this.props.max:t.defaultProps.max},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dateInputComp",{get:function(){return this.props.dateInput||t.defaultProps.dateInput},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"toggleButtonComp",{get:function(){return this.props.toggleButton||t.defaultProps.toggleButton},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"calendarComp",{get:function(){return this.props.calendar||t.defaultProps.calendar},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popupComp",{get:function(){return this.props.popup||t.defaultProps.popup},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pickerWrapComp",{get:function(){return this.props.pickerWrap||t.defaultProps.pickerWrap},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){var e=Z(this.value,this.min,this.max),t=void 0!==this.props.validationMessage,n=(!this.required||null!==this.value)&&e,r=void 0!==this.props.valid?this.props.valid:n;return{customError:t,rangeOverflow:this.value&&this.max.getTime()<this.value.getTime()||!1,rangeUnderflow:this.value&&this.value.getTime()<this.min.getTime()||!1,valid:r,valueMissing:null===this.value}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:t.defaultProps.required},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.show&&this.forceUpdate()},t.prototype.componentDidUpdate=function(){this._calendar&&this._calendar.element&&this.show&&!this.prevShow&&this._calendar.element.focus({preventScroll:!0}),this.dateInput&&this.dateInput.element&&!this.show&&this.shouldFocusDateInput&&this.dateInput.element.focus({preventScroll:!0}),this.prevShow=this.show,this.shouldFocusDateInput=!1},t.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},t.prototype.render=function(){var e=this,n=this.props,r=n.size,o=void 0===r?t.defaultProps.size:r,i=n.rounded,a=void 0===i?t.defaultProps.rounded:i,l=n.fillMode,u=void 0===l?t.defaultProps.fillMode:l,c=n.disabled,d=n.tabIndex,p=n.title,h=n.id,g=n.format,y=n.formatPlaceholder,b=n.min,C=n.max,E=n.weekNumber,w=n.focusedDate,k=n.className,S=n.width,O=n.name,D=n.validationMessage,x=n.required,I=n.validityStyles,T=n.ariaLabelledBy,_=n.ariaDescribedBy,R=n.ariaLabel,M=this.props.popupSettings,P=M.popupClass,N=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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(M,["popupClass"]),F=this.show,A=this.value,j=A&&(0,m.getDate)(A),L=!this.validityStyles||this.validity.valid,V=(0,f.A)("k-calendar-container k-group k-reset",P),z={disabled:c,format:g,formatPlaceholder:y,id:h,ariaLabelledBy:T,ariaDescribedBy:_,ariaLabel:R,max:C,min:b,name:O,onChange:this.handleInputValueChange,required:x,tabIndex:F?-1:d,title:p,valid:this.validity.valid,validationMessage:D,validityStyles:I,value:A,label:void 0,placeholder:this.state.focused?null:this.props.placeholder,ariaHasPopup:!0,ariaExpanded:this.show,size:null,fillMode:null,rounded:null},B=hn({show:F,anchor:this._element,className:V,id:this._popupId,anchorAlign:{horizontal:"left",vertical:"bottom"},popupAlign:{horizontal:"left",vertical:"top"}},N),H={disabled:c,value:j,min:b,max:C,weekNumber:E,focusedDate:w,onChange:this.handleCalendarValueChange},U=(0,v.provideLocalizationService)(this).toLanguageString(Oe,Be[Oe]),W=s.createElement(Nt.o,{onFocus:this.handleFocus,onBlur:this.handleBlur,onSyncBlur:this.props.onBlur,onSyncFocus:this.props.onFocus},(function(t){var n,r=t.onFocus,i=t.onBlur;return s.createElement("span",{role:"group","aria-expanded":e.show,ref:function(t){e._element=t},className:(0,f.A)("k-input","k-datepicker",(n={},n["k-input-".concat(Ft.G.sizeMap[o]||o)]=o,n["k-rounded-".concat(Ft.G.roundedMap[a]||a)]=a,n["k-input-".concat(u)]=u,n["k-invalid"]=!L,n["k-required"]=e.required,n["k-disabled"]=e.props.disabled,n),k),onKeyDown:e.handleKeyDown,style:{width:S},onFocus:r,onBlur:i},s.createElement(e.dateInputComp,hn({_ref:e._dateInput},z)),s.createElement(e.toggleButtonComp,{tabIndex:-1,type:"button",icon:"calendar",title:U,className:"k-input-button",rounded:null,onClick:e.handleIconClick,"aria-label":U,onMouseDown:e.handleIconMouseDown}),s.createElement(e.popupComp,hn({},B),s.createElement(e.calendarComp,hn({_ref:e.setCalendarRef},H))))}));return this.props.label?s.createElement(pn,{dateInput:this._dateInput,label:this.props.label,editorId:h,editorValid:L,editorDisabled:this.props.disabled,children:W,style:{width:this.props.width}}):W},t.prototype.setShow=function(e){this.show!==e&&this.setState({show:e})},t.prototype.mergeTime=function(e){return this.value&&e?q(e,this.value):e},t.prototype.nextTick=function(e){clearTimeout(this.nextTickId),this.nextTickId=window.setTimeout((function(){return e()}))},t.displayName="DatePicker",t.propTypes={className:u.string,defaultShow:u.bool,defaultValue:u.instanceOf(Date),disabled:u.bool,focusedDate:u.instanceOf(Date),format:u.oneOfType([u.string,u.shape({skeleton:u.string,pattern:u.string,date:u.oneOf(["short","medium","long","full"]),time:u.oneOf(["short","medium","long","full"]),datetime:u.oneOf(["short","medium","long","full"]),era:u.oneOf(["narrow","short","long"]),year:u.oneOf(["numeric","2-digit"]),month:u.oneOf(["numeric","2-digit","narrow","short","long"]),day:u.oneOf(["numeric","2-digit"]),weekday:u.oneOf(["narrow","short","long"]),hour:u.oneOf(["numeric","2-digit"]),hour12:u.bool,minute:u.oneOf(["numeric","2-digit"]),second:u.oneOf(["numeric","2-digit"]),timeZoneName:u.oneOf(["short","long"])})]),formatPlaceholder:u.oneOfType([u.oneOf(["wide","narrow","short","formatPattern"]),u.shape({year:u.string,month:u.string,day:u.string,hour:u.string,minute:u.string,second:u.string})]),id:u.string,ariaLabelledBy:u.string,ariaDescribedBy:u.string,ariaLabel:u.string,min:u.instanceOf(Date),max:u.instanceOf(Date),name:u.string,popupSettings:u.shape({animate:u.bool,appendTo:u.any,popupClass:u.string}),show:u.bool,tabIndex:u.number,title:u.string,value:u.instanceOf(Date),weekNumber:u.bool,width:u.oneOfType([u.number,u.string]),validationMessage:u.string,required:u.bool,validate:u.bool,valid:u.bool,size:u.oneOf([null,"small","medium","large"]),rounded:u.oneOf([null,"small","medium","large","full"]),fillMode:u.oneOf([null,"solid","flat","outline"])},t.defaultProps={defaultShow:!1,defaultValue:null,dateInput:ln,calendar:Tt,toggleButton:un,popup:sn.G,pickerWrap:cn,disabled:!1,format:"d",max:U,min:H,popupSettings:{},tabIndex:0,weekNumber:!1,required:!1,validityStyles:!0,size:"medium",rounded:"medium",fillMode:"solid"},t}(s.Component),vn=(0,h.Y)(),gn=(0,h.u)(vn,mn);gn.displayName="KendoReactDatePicker",(0,v.registerForLocalization)(mn);var yn,bn,Cn=function(e,t){var n=(0,m.cloneDate)(e);return n.setHours(t),n},En=function(e){return null!==e&&e<12},wn=function(e,t,n){return!t&&!n||e>=t&&e<=n},kn=function(e,t,n){return!t&&!n||e>=t||e<=n},Sn=function(){function e(e){this.intl=e,this.min=null,this.max=null,this.part=null}return e.prototype.apply=function(e,t){var n=e.getHours(),r=En(n),o=En(t.getHours());if(r&&o||!r&&!o)return e;var i=this.normalizedRange(),a=i[0],l=i[1],s=void 0===l?24:l,u=n+(o?-12:12);return Cn(e,Math.min(Math.max(a,u),s||24))},e.prototype.configure=function(e){var t=e.min,n=void 0===t?this.min:t,r=e.max,o=void 0===r?this.max:r,i=e.part,a=void 0===i?this.part:i;this.min=n,this.max=o,this.part=a},e.prototype.data=function(e){var t=this.part&&this.part.names;if(!t||!this.min)return[];var n,r=[],o=this.normalizedRange(),i=o[0],a=o[1],l=this.intl.dateFormatNames(t);return En(i)&&r.push({text:l.am,value:Cn(this.min,i)}),null!==(n=a)&&(!n||n>11)&&r.push({text:l.pm,value:Cn(this.min,Math.max(12,a))}),this.min.getHours()!==i?r.reverse():r},e.prototype.isRangeChanged=function(e,t){return!1},e.prototype.limitRange=function(e,t,n){return[e,t]},e.prototype.total=function(){var e=this.normalizedRange(),t=e[0],n=e[1];return(t||n)&&(t>11||n<12)?1:2},e.prototype.selectedIndex=function(e){if(!this.valueInList(e)||!this.min)return-1;var t=Math.floor(e.getHours()/12);return this.min.getHours()===this.normalizedRange()[0]?t:0===t?1:0},e.prototype.valueInList=function(e){return!(!this.min||!this.max)&&(this.min.getHours()!==this.normalizedRange()[0]?kn:wn)(e.getHours(),this.min.getHours(),this.max.getHours())},e.prototype.normalizedRange=function(){var e=this.min.getHours(),t=this.max.getHours();return[Math.min(e,t),Math.max(e,t)]},e}(),On=(24,function(e){return e%24}),Dn=function(e,t){return On(24+e-t)},xn=function(e){return function(t,n){return n&&(0,m.getDate)(t).getTime()!==(0,m.getDate)(n).getTime()?Yt(t,e):t}},In=xn(0),Tn=xn(23),_n=function(){function e(e){this.intl=e,this.boundRange=!1,this.insertUndividedMax=!1,this.min=null,this.max=null,this.step=0,this.toListItem=null}return e.prototype.apply=function(e,t){return Yt(e,t.getHours())},e.prototype.configure=function(e){var t=this,n=e.boundRange,r=void 0===n?this.boundRange:n,o=e.insertUndividedMax,i=void 0===o?this.insertUndividedMax:o,a=e.min,l=void 0===a?this.min:a,s=e.max,u=void 0===s?this.max:s,c=e.part,d=e.step,p=void 0===d?this.step:d;this.boundRange=r,this.insertUndividedMax=i,this.toListItem=function(e){var n=Yt(B,e);return{text:t.intl.formatDate(n,c.pattern),value:n}},this.min=l,this.max=u,this.step=p},e.prototype.data=function(e){var t=this,n=function(e,t){return function(n){return On(e+n*t)}}(this.range(e)[0],this.step),r=$t(0,this.countFromMin(e)).map((function(e){return t.toListItem&&t.toListItem(n(e))}));return this.addLast(r),e&&this.addMissing(r,e),r},e.prototype.isRangeChanged=function(e,t){return!(!this.min||!this.max||(0,m.isEqual)(this.min,e)&&(0,m.isEqual)(this.max,t))},e.prototype.limitRange=function(e,t,n){return this.boundRange?[In(e,n),Tn(t,n)]:[e,t]},e.prototype.total=function(e){var t=this.insertUndividedMax&&this.isLastMissing(e)?1:0,n=this.isMissing(e)?1:0;return this.countFromMin(e)+n+t},e.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},e.prototype.valueInList=function(e){return!e||this.insertUndividedMax&&this.lastHour(e)===e.getHours()||!this.isMissing(e)},e.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&this.toListItem&&e.push(this.toListItem(this.lastHour(t))),e},e.prototype.addMissing=function(e,t){if(this.valueInList(t))return e;if(this.toListItem){var n=this.toListItem(t.getHours());e.splice(this.selectedIndex(t),0,n)}return e},e.prototype.countFromMin=function(e){var t=this.range(e),n=t[0],r=t[1];return Math.floor(Dn(r,n)/this.step)+1},e.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},e.prototype.isLastMissing=function(e){return null!==this.max&&this.isMissing(Yt(this.max,this.lastHour(e)))},e.prototype.divideByStep=function(e){return Dn(e.getHours(),this.min.getHours())/this.step},e.prototype.lastHour=function(e){return this.range(e)[1]},e.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),n=t[0],r=t[1];return[n.getHours(),r.getHours()]},e}(),Rn=function(e){return e%60},Mn=function(e,t){return Rn(60+e-t)},Pn=function(e){return function(t,n){return n&&t.getHours()!==n.getHours()?Gt(t,e):t}},Nn=Pn(0),Fn=Pn(59),An=function(){function e(e){this.intl=e,this.toListItem=null,this.min=null,this.max=null,this.step=0,this.insertUndividedMax=!1}return e.prototype.apply=function(e,t){return Gt(e,t.getMinutes())},e.prototype.configure=function(e){var t=this,n=e.insertUndividedMax,r=void 0===n?this.insertUndividedMax:n,o=e.min,i=void 0===o?this.min:o,a=e.max,l=void 0===a?this.max:a,s=e.part,u=e.step,c=void 0===u?this.step:u;this.insertUndividedMax=r,this.toListItem=function(e){var n=Gt(B,e);return{text:t.intl.formatDate(n,s.pattern),value:n}},this.min=i,this.max=l,this.step=c},e.prototype.data=function(e){var t=this,n=function(e,t){return function(n){return Rn(e+n*t)}}(this.range(e)[0],this.step),r=$t(0,this.countFromMin(e)).map((function(e){return t.toListItem&&t.toListItem(n(e))}));return this.addLast(r),e&&this.addMissing(r,e),r},e.prototype.isRangeChanged=function(e,t){return!(null===this.min||null===this.max||(0,m.isEqual)(this.min,e)&&(0,m.isEqual)(this.max,t))},e.prototype.limitRange=function(e,t,n){return[Nn(e,n),Fn(t,n)]},e.prototype.total=function(e){var t=this.insertUndividedMax&&this.isLastMissing(e)?1:0,n=this.isMissing(e)?1:0;return this.countFromMin(e)+n+t},e.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},e.prototype.valueInList=function(e){return!e||this.insertUndividedMax&&this.lastMinute(e)===e.getMinutes()||!this.isMissing(e)},e.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&this.toListItem&&e.push(this.toListItem(this.lastMinute(t))),e},e.prototype.addMissing=function(e,t){if(this.valueInList(t))return e;if(this.toListItem){var n=this.toListItem(t.getMinutes());e.splice(this.selectedIndex(t),0,n)}return e},e.prototype.countFromMin=function(e){var t=this.range(e),n=t[0],r=t[1];return Math.floor(Mn(r,n)/this.step)+1},e.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},e.prototype.isLastMissing=function(e){return null!==this.max&&this.isMissing(Gt(this.max,this.lastMinute(e)))},e.prototype.divideByStep=function(e){return Mn(e.getMinutes(),this.min.getMinutes())/this.step},e.prototype.lastMinute=function(e){return this.range(e)[1]},e.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),n=t[0],r=t[1];return[n.getMinutes(),r.getMinutes()]},e}(),jn=function(e){return e%60},Ln=function(e,t){return jn(60+e-t)},Vn=function(e){return function(t,n){return!n||t.getMinutes()===n.getMinutes()&&t.getHours()===n.getHours()?t:Zt(t,e)}},zn=Vn(0),Bn=Vn(59),Hn=function(){function e(e){this.intl=e,this.toListItem=null,this.min=null,this.max=null,this.step=0,this.insertUndividedMax=!1}return e.prototype.apply=function(e,t){return Zt(e,t.getSeconds())},e.prototype.configure=function(e){var t=this,n=e.insertUndividedMax,r=void 0===n?this.insertUndividedMax:n,o=e.min,i=void 0===o?this.min:o,a=e.max,l=void 0===a?this.max:a,s=e.part,u=e.step,c=void 0===u?this.step:u;this.insertUndividedMax=r,this.toListItem=function(e){var n=Zt(B,e);return{text:t.intl.formatDate(n,s.pattern),value:n}},this.min=i,this.max=l,this.step=c},e.prototype.data=function(e){var t=this,n=function(e,t){return function(n){return jn(e+n*t)}}(this.range(e)[0],this.step),r=$t(0,this.countFromMin(e)).map((function(e){return t.toListItem&&t.toListItem(n(e))}));return this.addLast(r),e&&this.addMissing(r,e),r},e.prototype.isRangeChanged=function(e,t){return!(null===this.min||null===this.max||(0,m.isEqual)(this.min,e)&&(0,m.isEqual)(this.max,t))},e.prototype.limitRange=function(e,t,n){return[zn(e,n),Bn(t,n)]},e.prototype.total=function(e){var t=this.insertUndividedMax&&this.isLastMissing(e)?1:0,n=this.isMissing(e)?1:0;return this.countFromMin(e)+n+t},e.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},e.prototype.valueInList=function(e){return!e||this.insertUndividedMax&&this.lastSecond(e)===e.getSeconds()||!this.isMissing(e)},e.prototype.divideByStep=function(e){return Ln(e.getSeconds(),this.min.getSeconds())/this.step},e.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&this.toListItem&&e.push(this.toListItem(this.lastSecond(t))),e},e.prototype.addMissing=function(e,t){if(this.valueInList(t))return e;if(this.toListItem){var n=this.toListItem(t.getSeconds());e.splice(this.selectedIndex(t),0,n)}return e},e.prototype.countFromMin=function(e){var t=this.range(e),n=t[0],r=t[1];return Math.floor(Ln(r,n)/this.step)+1},e.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},e.prototype.isLastMissing=function(e){return null!==this.max&&this.isMissing(Zt(this.max,this.lastSecond(e)))},e.prototype.lastSecond=function(e){return this.range(e)[1]},e.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),n=t[0],r=t[1];return[n.getSeconds(),r.getSeconds()]},e}(),Un=function(){function e(){this.itemHeight=0,this.timeListHeight=0,this.didCalculate=!1}return e.prototype.ensureHeights=function(){void 0===this.timeListHeight&&this.calculateHeights()},e.prototype.calculateHeights=function(e){if(et.N){var t=te("div"),n=te("span"),r=te("ul"),o=te("li"),i=t([n("minute","k-title"),t([t([r([o("<span>02</span>","k-item")],"k-reset")],"k-content k-calendar-content k-scrollable k-time-container")],"k-time-list")],"k-time-list-wrapper",{left:"-10000px",position:"absolute"}),a=e&&e.querySelector(".k-time-container")||document.body,l=a.appendChild(i);this.timeListHeight=l.querySelector(".k-scrollable").offsetHeight,this.itemHeight=l.querySelector("li").offsetHeight,a.removeChild(l),this.didCalculate=!0}},e}(),Wn=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Kn=((yn={})[d.R.end]=function(e,t){return e[e.length-1]},yn[d.R.home]=function(e,t){return e[0]},yn[d.R.up]=function(e,t){return e[t-1]},yn[d.R.down]=function(e,t){return e[t+1]},yn),qn=((bn={}).dayperiod=Sn,bn.hour=_n,bn.minute=An,bn.second=Hn,bn),Yn=function(e){function t(n){var r=e.call(this,n)||this;return r.intl=null,r._element=null,r.service=null,r.virtualization=null,r.topOffset=0,r.bottomOffset=0,r.itemHeight=0,r.listHeight=0,r.topThreshold=0,r.bottomThreshold=0,r.animateToIndex=!1,r.focus=function(e){Promise.resolve().then((function(){r.element&&r.element.focus(e)}))},r.itemOffset=function(e){if(!r.virtualization||!r.service)return-1;var t=r.service.selectedIndex(r.props.value),n=r.virtualization.activeIndex(),o=r.virtualization.itemOffset(n),i=Math.abs(Math.ceil(e)-o);if(t===n&&i<2)return o;var a=t>n;return a&&i>=r.bottomThreshold||!a&&i>r.topThreshold?r.virtualization.itemOffset(n+1):o},r.calculateHeights=function(){r.dom.didCalculate&&(r.itemHeight=r.dom.itemHeight,r.listHeight=r.dom.timeListHeight,r.topOffset=(r.listHeight-r.itemHeight)/2,r.bottomOffset=r.listHeight-r.itemHeight,r.topThreshold=.05*r.itemHeight,r.bottomThreshold=.95*r.itemHeight)},r.configureServices=function(e){var t=void 0===e?r.props:e,n=t.min,o=t.max,i=t.value;if(r.service){var a=r.service.limitRange(n||r.min,o||r.max,i||r.props.value),l=a[0],s=a[1];r.service.configure(r.serviceSettings({min:l,max:s}))}},r.serviceSettings=function(e){var n={boundRange:r.props.boundRange||t.defaultProps.boundRange,insertUndividedMax:!1,min:(0,m.cloneDate)(r.min),max:(0,m.cloneDate)(r.max),part:r.props.part,step:r.step},o=Object.assign({},n,e);return o.boundRange="hour"!==o.part.type||r.props.boundRange||t.defaultProps.boundRange,o},r.handleScrollAction=function(e){var t=e.target,n=e.animationInProgress;if(r.virtualization&&r.service&&t&&!n){r.animateToIndex=!1;var o=r.virtualization.itemIndex(r.itemOffset(t.scrollTop)),i=r.service.data(r.props.value)[o];r.handleChange(i)}},r.handleFocus=function(e){var t=r.props.onFocus;t&&t.call(void 0,e)},r.handleBlur=function(e){var t=r.props.onBlur;t&&t.call(void 0,e)},r.handleMouseOver=function(){r._element&&document&&document.activeElement!==r._element&&r.props.show&&r._element.focus({preventScroll:!0})},r.handleKeyDown=function(e){if(r.service){var t=e.keyCode;t!==d.R.down&&t!==d.R.up&&t!==d.R.end&&t!==d.R.home||e.preventDefault();var n=(Kn[e.keyCode]||At.Z)(r.service.data(r.props.value),r.service.selectedIndex(r.props.value));n&&r.handleChange(n)}},r.handleChange=function(e){if(r.service){var t=r.service.apply(r.props.value,e.value);if(r.props.value.getTime()!==t.getTime()){r.setState({value:t});var n=r.props.onChange;n&&n.call(void 0,t)}}},r.dom=new Un,r}return Wn(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"animate",{get:function(){return Boolean(this.props.smoothScroll&&this.animateToIndex)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return this.props.min||t.defaultProps.min},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this.props.max||t.defaultProps.max},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"step",{get:function(){return void 0!==this.props.step&&0!==this.props.step?Math.floor(this.props.step):t.defaultProps.step},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){var e=this;Promise.resolve().then((function(){e._element&&(e.dom.calculateHeights(e._element),e.forceUpdate())}))},t.prototype.componentDidUpdate=function(){if(this.virtualization&&this.service){var e=this.service.selectedIndex(this.props.value);this.virtualization[this.animate?"animateToIndex":"scrollToIndex"](e),this.animateToIndex=!0}},t.prototype.render=function(){var e=this;if(this.props.part.type&&qn[this.props.part.type]){this.calculateHeights(),this.intl=(0,v.provideIntlService)(this),this.service=new qn[this.props.part.type](this.intl),this.configureServices();var t=this.service.data(this.props.value),n="translateY("+this.topOffset+"px)",r=this.service.total(this.props.value),o=s.createElement("ul",{style:{transform:n,msTransform:n},className:"k-reset"},t.map((function(t,n){return s.createElement("li",{key:n,className:"k-item",onClick:function(){e.handleChange(t)}},s.createElement("span",null,t.text))})));return s.createElement("div",{className:"k-time-list",id:String(this.props.id||""),tabIndex:this.props.disabled?-1:0,ref:function(t){e._element=t},onKeyDown:this.handleKeyDown,onFocus:this.handleFocus,onBlur:this.handleBlur,onMouseOver:this.handleMouseOver},this.dom.didCalculate?s.createElement(T,{bottomOffset:this.bottomOffset,children:o,className:"k-time-container",itemHeight:this.itemHeight,maxScrollDifference:this.listHeight,onScrollAction:this.handleScrollAction,ref:function(t){e.virtualization=t},role:"presentation",skip:0,tabIndex:-1,take:r,topOffset:this.topOffset,total:r}):s.createElement("div",{className:"k-time-container"},o))}},t.propTypes={id:u.number,max:u.instanceOf(Date),min:u.instanceOf(Date),part:function(e,t,n){var r=e[t];if(!r||!qn[r.type])throw new Error("\n Invalid prop '".concat(t,"' supplied to ").concat(n,".\n Supported part types are hour|minute|second|dayperiod.\n "));return null},step:function(e,t,n){var r=e[t];if(void 0!==r&&r<=0)throw new Error("\n Invalid prop '".concat(t,"' supplied to ").concat(n,".\n ").concat(t," cannot be less than 1.\n "));return null},value:u.instanceOf(Date),smoothScroll:u.bool,show:u.bool},t.defaultProps={boundRange:!1,max:K,min:B,step:1,smoothScroll:!0},t}(s.Component);(0,v.registerForIntl)(Yn);var Gn,Zn=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Xn=function(){return Xn=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},Xn.apply(this,arguments)},$n=new RegExp("".concat(Vt,"|").concat(zt,"|").concat(Bt,"|").concat(Lt,"|literal"));!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(Gn||(Gn={}));var Qn=function(e){function t(n){var r=e.call(this,n)||this;return r._element=null,r._nowButton=null,r.dateFormatParts=[],r.timeLists=[],r.focus=function(e){Promise.resolve().then((function(){var t=r.timeLists[0];-1===r.state.activeListIndex&&!r.hasActiveButton()&&t&&t.element&&t.focus(e)}))},r.timeFormatReducer=function(e,t){return e+t.pattern},r.timeFormatFilter=function(e,t,n){var r=t>=1&&n[t-1];return r&&r&&"literal"===e.type?$n.test(r.type||""):$n.test(e.type||"")},r.focusList=function(e){r.timeLists.length&&r.timeLists.reduce(r.listReducer,[]).map((function(t){return e===Gn.Right?t.next:t.prev})).map((function(e){return e&&e.element&&e.element.focus({preventScroll:!0})}))},r.listReducer=function(e,t,n,o){return e.length||t.props.id!==r.state.activeListIndex?e:[{next:o[n+1]||t,prev:o[n-1]||t}]},r.showNowButton=function(){return!r.hasSteps()&&r.props.nowButton&&Jt(Xt(),r.min,r.max)},r.handleKeyDown=function(e){switch(e.keyCode){case d.R.left:return e.preventDefault(),void r.focusList(Gn.Left);case d.R.right:return e.preventDefault(),void r.focusList(Gn.Right);default:return}},r.handleListBlur=function(){r.nextTick((function(){r.setState({activeListIndex:-1})}))},r.handleListFocus=function(e){clearTimeout(r.nextTickId),r.setState({activeListIndex:e})},r.handleChange=function(e){var t=r.props.onChange;t&&t.call(void 0,e)},r.snapTime=qt(Kt(r.props.steps,r.props.min||t.defaultProps.min)),r.state={activeListIndex:-1},r.hasActiveButton=r.hasActiveButton.bind(r),r}return Zn(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return function(e,t,n){if(!e||!t||!n)return e;var r=Qt(e,t,n),o=r.candidateValue,i=r.minValue,a=r.maxValue;return o<i?q(e,t):o>a?q(e,n):e}(this.snapTime((0,m.cloneDate)(this.props.value||B)),this.min,this.max)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"intl",{get:function(){return(0,v.provideIntlService)(this)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return this.snapTime(this.props.min||t.defaultProps.min)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this.snapTime(this.props.max||t.defaultProps.max)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"steps",{get:function(){return this.props.steps||t.defaultProps.steps},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"boundRange",{get:function(){return void 0!==this.props.boundRange?this.props.boundRange:t.defaultProps.boundRange},enumerable:!1,configurable:!0}),t.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},t.prototype.componentDidMount=function(){var e=this.props.onMount;e&&e.call(void 0,this.value)},t.prototype.render=function(){var e=this,n=this.props,r=n.format,o=n.smoothScroll,i=n.onNowClick,a=n.className,l=n.disabled;this.snapTime=qt(Kt(this.steps,this.min)),this.dateFormatParts=this.intl.splitDateFormat(r||t.defaultProps.format).filter(this.timeFormatFilter);var u=(0,f.A)({"k-disabled":l},a,"k-time-part");this.timeLists=[];var c=(0,v.provideLocalizationService)(this),d=c.toLanguageString(Me,Be[Me]);return s.createElement("div",{className:u},s.createElement("div",{className:"k-time-header"},s.createElement("span",{className:"k-title"},this.intl.formatDate(this.value,this.dateFormatParts.reduce(this.timeFormatReducer,""))),this.showNowButton()&&s.createElement(se.z,Xn({type:"button",ref:function(t){e._nowButton=t},className:"k-time-now",fillMode:"flat",themeColor:"primary",title:d},{"aria-label":d},{onClick:i,tabIndex:l?-1:0}),c.toLanguageString(Re,Be[Re]))),s.createElement("div",{className:"k-time-list-container",onKeyDown:this.handleKeyDown},s.createElement("span",{className:"k-time-highlight"}),this.dateFormatParts.map((function(t,n){return"literal"!==t.type?s.createElement("div",{key:n,className:(0,f.A)("k-time-list-wrapper",{"k-focus":n===e.state.activeListIndex}),role:"presentation",tabIndex:-1},s.createElement("span",{className:"k-title",onMouseDown:function(e){e.preventDefault()}},e.intl.dateFieldName(t)),s.createElement(Yn,{min:e.min,max:e.max,boundRange:e.boundRange,part:t,step:t.type?e.steps[t.type]:1,smoothScroll:o,ref:function(t){t&&e.timeLists.push(t)},id:n,onFocus:function(){e.handleListFocus(n)},onBlur:e.handleListBlur,onChange:e.handleChange,value:e.value,disabled:l,show:e.props.show})):s.createElement("div",{key:n,className:"k-time-separator"},t.pattern)}))))},t.prototype.nextTick=function(e){clearTimeout(this.nextTickId),this.nextTickId=window.setTimeout((function(){return e()}))},t.prototype.hasActiveButton=function(){return this._nowButton&&document.activeElement===this._nowButton.element},t.prototype.hasSteps=function(){var e=this,t=Object.keys(this.steps);return t.length!==t.reduce((function(t,n){return t+e.steps[n]}),0)},t.propTypes={cancelButton:u.bool,disabled:u.bool,format:u.oneOfType([u.string,u.shape({skeleton:u.string,pattern:u.string,date:u.oneOf(["short","medium","long","full"]),time:u.oneOf(["short","medium","long","full"]),datetime:u.oneOf(["short","medium","long","full"]),era:u.oneOf(["narrow","short","long"]),year:u.oneOf(["numeric","2-digit"]),month:u.oneOf(["numeric","2-digit","narrow","short","long"]),day:u.oneOf(["numeric","2-digit"]),weekday:u.oneOf(["narrow","short","long"]),hour:u.oneOf(["numeric","2-digit"]),hour12:u.bool,minute:u.oneOf(["numeric","2-digit"]),second:u.oneOf(["numeric","2-digit"]),timeZoneName:u.oneOf(["short","long"])})]),max:u.instanceOf(Date),min:u.instanceOf(Date),nowButton:u.bool,steps:u.shape({hour:u.number,minute:u.number,second:u.number}),smoothScroll:u.bool,tabIndex:u.number,value:u.instanceOf(Date),show:u.bool},t.defaultProps={value:null,disabled:!1,nowButton:!0,cancelButton:!0,format:"hh:mm a",min:W,max:K,steps:{},boundRange:!1},t}(s.Component);(0,v.registerForIntl)(Qn),(0,v.registerForLocalization)(Qn);var Jn,er=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),tr=function(){return tr=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},tr.apply(this,arguments)};!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(Jn||(Jn={}));var nr=function(e){function t(n){var r=e.call(this,n)||this;return r._element=null,r._cancelButton=null,r._acceptButton=null,r.timePart=null,r.focusActiveList=function(){r.timePart&&r.timePart.focus({preventScroll:!0})},r.handleKeyDown=function(e){e.keyCode!==d.R.enter||r.hasActiveButton()||r.handleAccept(e)},r.handleAccept=function(e){var t=r.mergeValue((0,m.cloneDate)(r.value||Xt()),r.timePart?r.timePart.value:r.current);r.setState({value:t}),r.valueDuringOnChange=t;var n=r.props.onChange;n&&n.call(void 0,{syntheticEvent:e,nativeEvent:e.nativeEvent,value:r.value,target:r}),r.valueDuringOnChange=void 0},r.handleReject=function(e){r.setState({current:r.value});var t=r.props.onReject;t&&t.call(void 0,e)},r.handleNowClick=function(e){var t=r.mergeValue((0,m.cloneDate)(r.value||Xt()),Xt());r.setState({current:t,value:t}),r.valueDuringOnChange=t;var n=r.props.onChange;n&&n.call(void 0,{syntheticEvent:e,nativeEvent:e.nativeEvent,value:r.value,target:r}),r.valueDuringOnChange=void 0},r.handleChange=function(e){r.setState({current:e})},r.dateFormatParts=r.intl.splitDateFormat(r.props.format||t.defaultProps.format),r.mergeValue=function(e){return function(t,n){return t.setHours.apply(t,e.map((function(e){return e(t,n)}))),t}}(Wt(r.dateFormatParts)),r.hasActiveButton=r.hasActiveButton.bind(r),r.state={current:r.props.value||B,value:r.props.value||t.defaultProps.value},r}return er(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){var e=void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.props.value?this.props.value:this.state.value;return null!==e?(0,m.cloneDate)(e):null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"intl",{get:function(){return(0,v.provideIntlService)(this)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"current",{get:function(){return null!==this.state.current?(0,m.cloneDate)(this.state.current):null},enumerable:!1,configurable:!0}),t.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},t.prototype.render=function(){var e=this,t=this.props,n=t.format,r=t.cancelButton,o=t.disabled,i=t.tabIndex,a=t.className,l=t.smoothScroll,u=t.min,c=t.max,d=t.boundRange,p=t.nowButton,h=t.steps,m=(0,v.provideLocalizationService)(this),g=m.toLanguageString(Pe,Be[Pe]),y=m.toLanguageString(Ne,Be[Ne]);return s.createElement("div",{ref:function(t){e._element=t},tabIndex:o?void 0:i||0,className:(0,f.A)("k-timeselector k-reset",a,{"k-disabled":o}),onKeyDown:this.handleKeyDown},s.createElement(Qn,{ref:function(t){e.timePart=t},value:this.current,onChange:this.handleChange,onNowClick:this.handleNowClick,format:n,smoothScroll:l,min:u,max:c,boundRange:d,disabled:o,nowButton:p,steps:h,show:this.props.show}),s.createElement("div",{className:"k-time-footer k-actions k-hstack k-justify-content-stretch"},r&&s.createElement(se.z,tr({type:"button",ref:function(t){e._cancelButton=t},className:"k-time-cancel",onClick:this.handleReject,title:g},{"aria-label":g}),g),s.createElement(se.z,tr({type:"button",ref:function(t){e._acceptButton=t},className:"k-time-accept",themeColor:"primary",onClick:this.handleAccept,title:y},{"aria-label":y}),y)))},t.prototype.nextTick=function(e){clearTimeout(this.nextTickId),this.nextTickId=window.setTimeout((function(){return e()}))},t.prototype.hasActiveButton=function(){return!(!this._acceptButton||!this._acceptButton.element)&&(this._acceptButton&&document.activeElement===this._acceptButton.element||this._cancelButton&&document.activeElement===this._cancelButton.element)},t.propTypes={cancelButton:u.bool,className:u.string,disabled:u.bool,format:u.oneOfType([u.string,u.shape({skeleton:u.string,pattern:u.string,date:u.oneOf(["short","medium","long","full"]),time:u.oneOf(["short","medium","long","full"]),datetime:u.oneOf(["short","medium","long","full"]),era:u.oneOf(["narrow","short","long"]),year:u.oneOf(["numeric","2-digit"]),month:u.oneOf(["numeric","2-digit","narrow","short","long"]),day:u.oneOf(["numeric","2-digit"]),weekday:u.oneOf(["narrow","short","long"]),hour:u.oneOf(["numeric","2-digit"]),hour12:u.bool,minute:u.oneOf(["numeric","2-digit"]),second:u.oneOf(["numeric","2-digit"]),timeZoneName:u.oneOf(["short","long"])})]),max:u.instanceOf(Date),min:u.instanceOf(Date),nowButton:u.bool,steps:u.shape({hour:u.number,minute:u.number,second:u.number}),smoothScroll:u.bool,tabIndex:u.number,value:u.instanceOf(Date),show:u.bool},t.defaultProps={value:null,disabled:!1,cancelButton:!0,format:"t",min:W,max:K,boundRange:!1},t}(s.Component);(0,v.registerForIntl)(nr),(0,v.registerForLocalization)(nr);var rr=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),or=function(){return or=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},or.apply(this,arguments)},ir=function(e){function t(n){var r=e.call(this,n)||this;return r._popupId=(0,c.M)(),r._element=null,r._dateInput=s.createRef(),r._timeSelector=null,r.shouldFocusDateInput=!1,r.prevShow=!1,r.focus=function(){r.dateInput&&r.dateInput.focus()},r.setTimeSelectorRef=function(e){r._timeSelector=e},r.nextValue=function(e,t){return void 0!==e.value?e.value:t.value},r.nextShow=function(e,t){return void 0!==e.show?e.show:t.show},r.handleInputValueChange=function(e){var t=r.mergeTime(e.value);r.handleValueChange(or(or({},e),{value:t}))},r.handleValueChange=function(e){r.setState({value:(0,m.cloneDate)(e.value),show:!1}),r.valueDuringOnChange=e.value,r.showDuringOnChange=!1,r.shouldFocusDateInput=!0;var t=r.props.onChange;t&&t.call(void 0,{syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,value:r.value,show:r.show,target:r}),r.valueDuringOnChange=void 0,r.showDuringOnChange=void 0},r.handleFocus=function(){r.setState({focused:!0})},r.handleBlur=function(){r.setState({focused:!1}),r.setShow(!1)},r.handleValueReject=function(e){r.setShow(!1)},r.handleIconClick=function(e){r.props.disabled||(r.shouldFocusDateInput=!0,r.setShow(!r.show))},r.handleIconMouseDown=function(e){e.preventDefault()},r.handleKeyDown=function(e){var t=e.altKey,n=e.keyCode;if(n===d.R.esc)return r.shouldFocusDateInput=!0,void r.setShow(!1);!t||n!==d.R.up&&n!==d.R.down||(e.preventDefault(),e.stopPropagation(),r.shouldFocusDateInput=n===d.R.up,r.setShow(n===d.R.down))},(0,p.s)(g),r.state={value:r.props.defaultValue||t.defaultProps.defaultValue,show:r.props.defaultShow||t.defaultProps.defaultShow,focused:!1},r.normalizeTime=r.normalizeTime.bind(r),r.setShow=r.setShow.bind(r),r.mergeTime=r.mergeTime.bind(r),r}return rr(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dateInput",{get:function(){return this._dateInput.current},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timeSelector",{get:function(){return this._timeSelector},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){var e=void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.props.value?this.props.value:this.state.value;return null!==e?(0,m.cloneDate)(e):null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"show",{get:function(){return void 0!==this.showDuringOnChange?this.showDuringOnChange:void 0!==this.props.show?this.props.show:this.state.show},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){var e=this.value&&this.normalizeTime(this.value),t=this.normalizeTime(this.min),n=this.normalizeTime(this.max),r=function(e,t,n){if(null===e)return!0;var r=Qt(e,t,n),o=r.candidateValue,i=r.minValue,a=r.maxValue;return i<=o&&o<=a}(e,t,n),o=void 0!==this.props.validationMessage,i=(!this.required||null!==this.value)&&r,a=void 0!==this.props.valid?this.props.valid:i;return{customError:o,rangeOverflow:tn(e,n),rangeUnderflow:en(e,t),valid:a,valueMissing:null===this.value}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:t.defaultProps.required},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popupSettings",{get:function(){return this.props.popupSettings||t.defaultProps.popupSettings},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return void 0!==this.props.min?this.props.min:t.defaultProps.min},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return void 0!==this.props.max?this.props.max:t.defaultProps.max},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dateInputComp",{get:function(){return this.props.dateInput||t.defaultProps.dateInput},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.show&&this.forceUpdate()},t.prototype.componentDidUpdate=function(){this._timeSelector&&this.show&&!this.prevShow?this._timeSelector.focusActiveList():this.dateInput&&this.dateInput.element&&!this.show&&this.shouldFocusDateInput&&this.dateInput.element.focus({preventScroll:!0}),this.prevShow=this.show,this.shouldFocusDateInput=!1},t.prototype.render=function(){var e=this,n=this.props,r=n.size,o=void 0===r?t.defaultProps.size:r,i=n.rounded,a=void 0===i?t.defaultProps.rounded:i,l=n.fillMode,u=void 0===l?t.defaultProps.fillMode:l,c=n.disabled,d=n.tabIndex,p=n.title,h=n.id,m=n.className,g=n.format,y=n.formatPlaceholder,b=n.smoothScroll,C=n.width,E=n.name,w=n.steps,k=n.cancelButton,S=n.nowButton,O=n.validationMessage,D=n.required,x=n.validityStyles,I=n.ariaLabelledBy,T=n.ariaDescribedBy,_=this.popupSettings,R=_.popupClass,M=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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(_,["popupClass"]),P=!this.validityStyles||this.validity.valid,N=(0,f.A)("k-group k-reset",R),F={disabled:c,format:g,formatPlaceholder:y,id:h,ariaLabelledBy:I,ariaDescribedBy:T,max:this.normalizeTime(this.max),min:this.normalizeTime(this.min),name:E,onChange:this.handleInputValueChange,required:D,steps:w,tabIndex:this.show?-1:d,title:p,valid:this.validity.valid,validationMessage:O,validityStyles:x,value:this.value&&this.normalizeTime(this.value),label:void 0,placeholder:this.state.focused?null:this.props.placeholder,ariaHasPopup:!0,ariaExpanded:this.show,size:null,fillMode:null,rounded:null},A=or({show:this.show,animate:null!==this.element,anchor:this.element,className:N,id:this._popupId,anchorAlign:{horizontal:"left",vertical:"bottom"},popupAlign:{horizontal:"left",vertical:"top"}},M),j=s.createElement(nr,{ref:this.setTimeSelectorRef,show:this.show,cancelButton:k,disabled:c,nowButton:S,format:g,min:this.min,max:this.max,steps:w,smoothScroll:b,value:this.value,onChange:this.handleValueChange,onReject:this.handleValueReject}),L=(0,v.provideLocalizationService)(this),V=L.toLanguageString(Ae,Be[Ae]),z=L.toLanguageString(Fe,Be[Fe]),B=s.createElement(Nt.o,{onFocus:this.handleFocus,onBlur:this.handleBlur,onSyncBlur:this.props.onBlur,onSyncFocus:this.props.onFocus},(function(t){var n,r=t.onFocus,i=t.onBlur;return s.createElement("div",{ref:function(t){e._element=t},className:(0,f.A)("k-input","k-timepicker",(n={},n["k-input-".concat(Ft.G.sizeMap[o]||o)]=o,n["k-rounded-".concat(Ft.G.roundedMap[a]||a)]=a,n["k-input-".concat(u)]=u,n["k-invalid"]=!P,n["k-required"]=e.required,n["k-disabled"]=e.props.disabled,n),m),onKeyDown:e.handleKeyDown,style:{width:C},onFocus:r,onBlur:i},s.createElement(e.dateInputComp,or({_ref:e._dateInput},F)),s.createElement(se.z,or({tabIndex:-1,type:"button",icon:"clock",onMouseDown:e.handleIconMouseDown,onClick:e.handleIconClick,title:z,className:"k-input-button",rounded:null},{"aria-controls":e._popupId,"aria-label":V})),e.props.popup?s.createElement(e.props.popup,or({},A),j):s.createElement(sn.G,or({},A),j))}));return this.props.label?s.createElement(pn,{dateInput:this._dateInput,label:this.props.label,editorId:h,editorValid:P,editorDisabled:this.props.disabled,children:B,style:{width:this.props.width}}):B},t.prototype.normalizeTime=function(e){return q(B,e)},t.prototype.setShow=function(e){this.show!==e&&this.setState({show:e})},t.prototype.mergeTime=function(e){return this.value&&e?q(this.value,e):e},t.displayName="TimePicker",t.propTypes={className:u.string,cancelButton:u.bool,nowButton:u.bool,defaultShow:u.bool,defaultValue:u.instanceOf(Date),disabled:u.bool,format:u.oneOfType([u.string,u.shape({skeleton:u.string,pattern:u.string,date:u.oneOf(["short","medium","long","full"]),time:u.oneOf(["short","medium","long","full"]),datetime:u.oneOf(["short","medium","long","full"]),era:u.oneOf(["narrow","short","long"]),year:u.oneOf(["numeric","2-digit"]),month:u.oneOf(["numeric","2-digit","narrow","short","long"]),day:u.oneOf(["numeric","2-digit"]),weekday:u.oneOf(["narrow","short","long"]),hour:u.oneOf(["numeric","2-digit"]),hour12:u.bool,minute:u.oneOf(["numeric","2-digit"]),second:u.oneOf(["numeric","2-digit"]),timeZoneName:u.oneOf(["short","long"])})]),formatPlaceholder:u.oneOfType([u.oneOf(["wide","narrow","short","formatPattern"]),u.shape({year:u.string,month:u.string,day:u.string,hour:u.string,minute:u.string,second:u.string})]),id:u.string,ariaLabelledBy:u.string,ariaDescribedBy:u.string,min:u.instanceOf(Date),max:u.instanceOf(Date),name:u.string,popupSettings:u.shape({animate:u.bool,appendTo:u.any,popupClass:u.string}),show:u.bool,steps:u.shape({hour:u.number,minute:u.number,second:u.number}),smoothScroll:u.bool,tabIndex:u.number,title:u.string,value:u.instanceOf(Date),width:u.oneOfType([u.number,u.string]),validationMessage:u.string,required:u.bool,validate:u.bool,valid:u.bool,size:u.oneOf([null,"small","medium","large"]),rounded:u.oneOf([null,"small","medium","large","full"]),fillMode:u.oneOf([null,"solid","flat","outline"])},t.defaultProps={defaultShow:!1,defaultValue:null,disabled:!1,format:"t",max:K,min:W,popupSettings:{},tabIndex:0,steps:{},required:!1,validityStyles:!0,dateInput:ln,size:"medium",rounded:"medium",fillMode:"solid"},t}(s.Component),ar=(0,h.Y)(),lr=(0,h.u)(ar,ir);lr.displayName="KendoReactTimePicker",(0,v.registerForLocalization)(ir);var sr=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ur=function(e){function t(t){var n=e.call(this,t)||this;return n._element=null,n.isActive=!1,n.focusActiveDate=function(){if(n._element){var e=n._element.querySelector("td.k-focus"),t=n._element.querySelector(".k-state-pending-focus");e&&e[0]&&e[0].classList.remove("k-focus"),t&&t.classList.add("k-focus"),n.isActive=!0}},n.blurActiveDate=function(){if(n._element){var e=n._element.querySelector("td.k-focus");e&&e.classList.remove("k-focus"),n.isActive=!1}},n.rotateSelectionRange=function(e){if(null===e.start||null===e.end)return e;var t=e.end<e.start;return{start:t?e.end:e.start,end:t?e.start:e.end}},n.handleDateChange=function(e,t){void 0===t&&(t=!1);var r=n.props.onChange;if(r){var o={syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,value:(0,m.cloneDate)(e.value),target:n,isTodayClick:t};r.call(void 0,o)}},n}return sr(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"weekNumber",{get:function(){return Boolean(this.props.showWeekNumbers&&this.props.activeView===O.month)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return void 0!==this.props.min?this.props.min:t.defaultProps.min},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return void 0!==this.props.max?this.props.max:t.defaultProps.max},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(){this.isActive&&this.focusActiveDate()},t.prototype.render=function(){var e=this,t=this.props.allowReverse?this.rotateSelectionRange(this.props.selectionRange):this.props.selectionRange,n=(0,f.A)("k-calendar-view k-hstack k-align-items-start k-justify-content-center",{"k-calendar-monthview":this.props.activeView===O.month,"k-calendar-yearview":this.props.activeView===O.year,"k-calendar-decadeview":this.props.activeView===O.decade,"k-calendar-centuryview":this.props.activeView===O.century});return s.createElement("div",{ref:function(t){e._element=t},className:n},this.props.dates.map((function(n){return s.createElement("table",{className:"k-calendar-table k-calendar-content k-content",key:n.getTime()},s.createElement(ae,{bus:e.props.bus,service:e.props.service,key:n.getTime(),direction:"horizontal",activeView:e.props.activeView,cellUID:e.props.cellUID,viewDate:n,min:e.min,max:e.max,focusedDate:e.props.focusedDate,selectionRange:t,selectedDate:e.props.value,showWeekNumbers:e.weekNumber,onChange:e.handleDateChange,onCellEnter:e.props.onCellEnter,cell:e.props.cell,weekCell:e.props.weekCell}))})))},t.defaultProps={showWeekNumbers:!1,views:2,take:2,allowReverse:!0,min:fe,max:he},t}(s.Component),cr=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),dr=function(){return dr=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},dr.apply(this,arguments)},pr=function(e,t,n){return void 0===e&&(e=vr.defaultProps.min),void 0===t&&(t=vr.defaultProps.max),n instanceof Date&&!Array.isArray(n)&&G((0,m.getDate)(n),e,t)?(0,m.getDate)(n):null},fr=function(e,t,n){return void 0===e&&(e=vr.defaultProps.min),void 0===t&&(t=vr.defaultProps.max),Array.isArray(n)?n.filter((function(n){return G(n,e,t)})).map((function(e){return(0,m.getDate)(e)})):null},hr=function(e){return"object"!=typeof e||e instanceof Date||null===e||Array.isArray(e)?j:e},mr=function(e,t,n){return e||t&&t[0]||n&&n.start},vr=function(e){function t(n){var r=e.call(this,n)||this;r.dates=[],r.selectedDate=null,r.selectedMultiple=null,r.selectedRange=j,r._focusedDate=new Date,r.cellUID=(0,c.M)(),r.activeRangeEnd="start",r._element=null,r.intl=null,r.localization=null,r.service=null,r.wrapperID=(0,c.M)(),r.calendarViewList=null,r.isActive=!1,r.calculateFocusFromValue=!0,r.focus=function(){r._element&&r._element.focus()},r.clampRange=function(e){return{start:e,end:null}},r.rangeWithFocused=function(e,t){return{start:e.start,end:null===e.end&&null!==e.start&&r.isActive?t:e.end}},r.generateRange=function(e,t){var n=t.end,o=t.start,i=null!==t.start&&e.getTime()<=t.start.getTime();return!r.props.allowReverse&&i?{start:e,end:r.selectedRange.start}:"end"!==r.activeRange?{start:e,end:n}:{start:o||r.selectedDate,end:e}},r.canNavigate=function(e){if(!r.service)return!1;var t=r.service.move(r.focusedDate,e);return r.min<=t&&t<=r.max||r.service.isInSameView(t,r.min)||r.service.isInSameView(t,r.max)},r.isListInRange=function(e){return r.min<e[0]&&r.max>e[Math.max(0,(r.props.views||t.defaultProps.views)-1)]},r.navigate=function(e){r.calculateFocusFromValue=!1;var t=r.move(e);r.setState({focusedDate:t})},r.move=function(e){return r.clampDate(r.service.move(r.focusedDate,e))},r.clampDate=function(e){return ee(e,r.min,r.max)},r.shouldAutoCorrect=function(e,t){var n=t.end,o=t.start;return"end"!==r.activeRange?null!==n&&e>n:null!==o&&e<o},r.handleCellEnter=function(e){"range"===r.props.mode&&(r.calculateFocusFromValue=!1,r.setState({focusedDate:e}))},r.handleMouseDown=function(e){e.preventDefault()},r.handleClick=function(e){r._element&&r._element.focus({preventScroll:!0})},r.handleFocus=function(e){if(r.isActive=!0,r.calendarViewList){r.calendarViewList.focusActiveDate();var t=r.props.onFocus;t&&t.call(void 0,e)}},r.handleBlur=function(e){if(r.isActive=!1,r.calendarViewList){r.calendarViewList.blurActiveDate();var t=r.props.onBlur;t&&t.call(void 0,e)}},r.handleTodayClick=function(e){r.todayIsInRange&&r.handleDateChange(e)},r.handlePrevButtonClick=function(){r.navigate(qe.PrevView)},r.handleNextButtonClick=function(){r.navigate(qe.NextView)},r.handleKeyDown=function(e){if(e.keyCode===d.R.enter){var t={syntheticEvent:e,nativeEvent:e.nativeEvent,value:r.focusedDate,target:r};r.handleDateChange(t)}else{var n=ee(r.navigation.move(r.focusedDate,r.navigation.action(e),r.state.activeView,r.service,e),r.min,r.max);if((0,m.isEqualDate)(r.focusedDate,n))return;r.calculateFocusFromValue=!1,r.setState({focusedDate:n})}e.preventDefault()},r.handleViewChange=function(e){var t=e.view;r.calculateFocusFromValue=!1,r.setState({activeView:t})},r.handleDateChange=function(e){var t=(0,m.cloneDate)(e.value),n=r.bus.canMoveDown(r.state.activeView);if(!r.props.disabled){if(n){if(!e.isTodayClick)return r.bus.moveDown(r.state.activeView,e.syntheticEvent),void r.setState({focusedDate:t});r.bus.moveToBottom(r.state.activeView)}var o;switch(r.calculateFocusFromValue=!0,r.props.mode){case"single":default:o=(0,m.cloneDate)(e.value);break;case"multiple":if(Array.isArray(r.selectedMultiple)){var i=r.selectedMultiple.slice(),a=-1;i.forEach((function(t,n){(0,m.isEqualDate)(t,e.value)&&(a=n)})),-1!==a?i.splice(a,1):i.push((0,m.cloneDate)(e.value)),o=i.slice()}else o=r.selectedDate?[(0,m.cloneDate)(r.selectedDate),(0,m.cloneDate)(e.value)]:[(0,m.cloneDate)(e.value)];break;case"range":o=null!==r.selectedRange.start&&null!==r.selectedRange.end&&"start"===r.activeRange?r.clampRange(e.value):r.generateRange(e.value,r.selectedRange),r.activeRangeEnd="end"!==r.activeRange?"end":"start"}r.valueDuringOnChange=o,r.setState({value:o,focusedDate:t}),r.valueDuringOnChange=o;var l=r.props.onChange;if(l){var s={syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,value:o,target:r};l.call(void 0,s)}r.valueDuringOnChange=void 0}};var o=void 0!==n.value?n.value:n.defaultValue||t.defaultProps.defaultValue,i=pr(r.min,r.max,o),a=fr(r.min,r.max,o),l=hr(o),s=mr(i,a,l),u=z(O[n.defaultActiveView],r.bottomView,r.topView),p=ee(n.focusedDate||s||Y(),r.min,r.max);return r.state={value:o,activeView:u,focusedDate:p},r.activeRangeEnd=function(e,t){return null===e.start&&null===t?"start":null===e.end?"end":"start"}(l,i),r.bus=new bt(r.handleViewChange),r.navigation=new Et(r.bus),r.calculateFocusFromValue=!1,r.lastView=u,r.lastViewsCount=r.props.views||ur.defaultProps.views,r}return cr(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,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:!1,configurable:!0}),Object.defineProperty(t.prototype,"focusedDate",{get:function(){return(0,m.cloneDate)(this._focusedDate)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return(0,m.getDate)(void 0!==this.props.min?this.props.min:t.defaultProps.min)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return(0,m.getDate)(void 0!==this.props.max?this.props.max:t.defaultProps.max)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bottomView",{get:function(){return O[void 0!==this.props.bottomView?this.props.bottomView:t.defaultProps.bottomView]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"topView",{get:function(){return O[void 0!==this.props.topView?this.props.topView:t.defaultProps.topView]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeRange",{get:function(){return void 0!==this.props.activeRangeEnd?this.props.activeRangeEnd:this.activeRangeEnd},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"todayIsInRange",{get:function(){return G(Y(),(0,m.getDate)(this.min),(0,m.getDate)(this.max))},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.calculateFocusFromValue=!0},t.prototype.componentDidUpdate=function(){this.calendarViewList&&(this.isActive?this.calendarViewList.focusActiveDate:this.calendarViewList.blurActiveDate)();var e=pr(this.min,this.max,this.value);this.calculateFocusFromValue=Boolean(this.selectedDate&&e&&this.selectedDate.getTime()&&e.getTime()),this.lastView=this.state.activeView,this.lastViewsCount=this.props.views||ur.defaultProps.views},t.prototype.render=function(){var e=this;this.props._ref&&this.props._ref(this),this.intl=(0,v.provideIntlService)(this),this.localization=(0,v.provideLocalizationService)(this),this.bus.configure(this.bottomView,this.topView);var t=z(this.state.activeView,this.bottomView,this.topView);this.service=this.bus.service(t,this.intl),this.selectedDate=pr(this.min,this.max,this.value),this.selectedMultiple=fr(this.min,this.max,this.value),this.selectedRange=hr(this.value);var n=mr(this.selectedDate,this.selectedMultiple,this.selectedRange);this._focusedDate=ee(this.calculateFocusFromValue&&null!==n?n:this.state.focusedDate,this.min,this.max);var r=(0,f.A)("k-widget k-calendar k-calendar-range",{"k-disabled":this.props.disabled},this.props.className),o=this.rangeWithFocused(this.selectedRange,this.focusedDate),i={"aria-disabled":this.props.disabled,"aria-activedescendant":this.cellUID+this.focusedDate.getTime()},a=this.localization.toLanguageString(Ce,Be[Ce]),l=this.localization.toLanguageString(Ee,Be[Ee]),u=!this.canNavigate(qe.PrevView),c=!this.canNavigate(qe.NextView),d={"aria-disabled":u},p={"aria-disabled":c},h=this.lastView!==t,g=this.dates&&this.service.isInArray(this.focusedDate,this.dates),y=this.lastViewsCount!==this.props.views;(!g||h||y)&&(this.dates=this.service.datesList(this.focusedDate,this.props.views||ur.defaultProps.views));var b=(0,m.cloneDate)(this.dates&&this.dates[0]?this.dates[0]:Y());return s.createElement("div",dr({ref:function(t){e._element=t},className:r,id:this.props.id||this.wrapperID,"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,role:"grid",tabIndex:this.props.disabled?void 0:this.props.tabIndex,onFocus:this.handleFocus,onBlur:this.handleBlur,onMouseDown:this.handleMouseDown,onClick:this.handleClick,onKeyDown:this.handleKeyDown},i),s.createElement(be,{key:".kendo.calendar.header.".concat(b.getTime()),activeView:t,currentDate:b,min:this.min,max:this.max,rangeLength:this.props.views,bus:this.bus,service:this.service,headerTitle:this.props.headerTitle,commands:s.createElement(s.Fragment,null,s.createElement(se.z,dr({type:"button",className:"k-nav-prev",icon:"arrow-chevron-left",fillMode:"flat",title:a,disabled:u,onClick:this.handlePrevButtonClick},d)),s.createElement(Ue,{min:this.min,max:this.max,onClick:this.handleTodayClick,disabled:!this.todayIsInRange}),s.createElement(se.z,dr({type:"button",className:"k-nav-next",icon:"arrow-chevron-right",fillMode:"flat",title:l,disabled:c,onClick:this.handleNextButtonClick},p)))}),s.createElement(ur,{ref:function(t){e.calendarViewList=t},dates:this.dates,activeView:t,focusedDate:this.focusedDate,min:this.min,max:this.max,bus:this.bus,service:this.service,selectionRange:o,value:this.selectedMultiple||this.selectedDate,cellUID:this.cellUID,views:this.props.views,onChange:this.handleDateChange,showWeekNumbers:this.props.weekNumber,onCellEnter:this.handleCellEnter,cell:this.props.cell,weekCell:this.props.weekCell,headerTitle:this.props.headerTitle}))},t.displayName="MultiViewCalendar",t.propTypes={activeRangeEnd:u.oneOf(["start","end"]),allowReverse:u.bool,bottomView:u.oneOf(["month","year","decade","century"]),className:u.string,defaultActiveView:u.oneOf(["month","year","decade","century"]),defaultValue:u.oneOfType([V(u.instanceOf(Date)),u.arrayOf(u.instanceOf(Date)),u.shape({start:V(u.instanceOf(Date)),end:V(u.instanceOf(Date))})]),disabled:u.bool,focusedDate:u.instanceOf(Date),id:u.string,ariaLabelledBy:u.string,ariaDescribedBy:u.string,max:u.instanceOf(Date),min:u.instanceOf(Date),mode:u.oneOf(["single","multiple","range"]),onBlur:u.func,onChange:u.func,onFocus:u.func,tabIndex:u.number,topView:u.oneOf(["month","year","decade","century"]),value:u.oneOfType([V(u.instanceOf(Date)),u.arrayOf(u.instanceOf(Date)),u.shape({start:V(u.instanceOf(Date).isRequired),end:V(u.instanceOf(Date).isRequired)})]),views:function(e,t,n){var r=e[t];return void 0!==r&&r<1?new Error("Invalid prop '".concat(t,"' supplied to")+"'".concat(n,"'. The '").concat(t,"' property cannot be less than 1'")):null},weekNumber:u.bool},t.defaultProps={disabled:!1,min:fe,max:he,navigation:!0,defaultActiveView:"month",defaultValue:null,topView:"century",tabIndex:0,bottomView:"month",views:2,allowReverse:!1},t}(s.Component),gr=(0,h.Y)(),yr=(0,h.u)(gr,vr);yr.displayName="KendoReactMultiViewCalendar",(0,v.registerForIntl)(vr),(0,v.registerForLocalization)(vr);var br=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Cr=function(){return Cr=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},Cr.apply(this,arguments)},Er=function(e){function t(n){var r=e.call(this,n)||this;return r._element=null,r._calendar=null,r._startDateInput=s.createRef(),r._endDateInput=s.createRef(),r._popupId=(0,c.M)(),r._startInputId=(0,c.M)(),r._endInputId=(0,c.M)(),r.shouldFocusDateInput=!1,r.shouldFocusCalendar=!1,r.focus=function(){r.startDateInput&&r.startDateInput.focus()},r.setCalendarRef=function(e){r._calendar=e},r.focusCalendarElement=function(){r._calendar&&r._calendar.element&&r._calendar.element.focus({preventScroll:!0})},r.calculateValue=function(e,t){return(void 0!==e.value?e.value:t.value)||j},r.calculateShow=function(e,t){return void 0!==e.show?e.show:t.show},r.handleReverseClick=function(e){var t={start:r.value.end,end:r.value.start},n={syntheticEvent:e,nativeEvent:e.nativeEvent};r.handleChange(t,n)},r.handleReverseMouseDown=function(e){e.preventDefault()},r.handleFocus=function(e){clearTimeout(r.nextTickId),r.shouldFocusDateInput||r.setShow(!0),r.startDateInput&&r.startDateInput.element&&r.startDateInput.element.classList.add("k-focus"),r.endDateInput&&r.endDateInput.element&&r.endDateInput.element.classList.add("k-focus");var t=r.props.onFocus;t&&t.call(void 0,e)},r.handleBlur=function(e){r.nextTick((function(){r.startDateInput&&r.startDateInput.element&&r.startDateInput.element.classList.remove("k-focus"),r.endDateInput&&r.endDateInput.element&&r.endDateInput.element.classList.remove("k-focus"),r.setShow(!1)}));var t=r.props.onBlur;t&&t.call(void 0,e)},r.handleEndChange=function(e){var t={start:r.value.start,end:(0,m.cloneDate)(e.value||void 0)};r.handleChange(t,e)},r.handleStartChange=function(e){var t={start:(0,m.cloneDate)(e.value||void 0),end:r.value.end};r.handleChange(t,e)},r.extractRangeFromValue=function(e){if(!(Array.isArray(e.value)||e.value instanceof Date))return e.value||j;var t=Array.isArray(e.value)?e.value[0]:e.value;return{start:null!==r.value.end?t:r.value.start,end:null!==r.value.start?t:r.value.end}},r.handleCalendarChange=function(e){var t=r.extractRangeFromValue(e);r.handleChange(t,e)},r.handleKeyDown=function(e){var t=e.keyCode,n=e.altKey;t===d.R.esc?(e.preventDefault(),r.shouldFocusDateInput=!0,r.setShow(!1)):n&&t===d.R.down?(e.preventDefault(),r.shouldFocusCalendar=!0,r.setShow(!0)):t===d.R.tab&&r.show&&r._calendar&&r._calendar.element&&r.endDateInput&&r.endDateInput.element&&document&&document.activeElement===r.endDateInput.element&&(e.preventDefault(),r.focusCalendarElement())},r.handleChange=function(e,t){r.setState({value:e}),r.valueDuringOnChange=e;var n=r.props.onChange;if(n){var o={syntheticEvent:t.syntheticEvent,nativeEvent:t.nativeEvent,value:r.value,show:r.show,target:r};n.call(void 0,o)}r.valueDuringOnChange=void 0},(0,p.s)(g),r.state={show:r.props.show||r.props.defaultShow||t.defaultProps.defaultShow,value:r.props.value||r.props.defaultValue||t.defaultProps.defaultValue},r.nextTick=r.nextTick.bind(r),r.setShow=r.setShow.bind(r),r.focusCalendarElement=r.focusCalendarElement.bind(r),r.focusDateInputElement=r.focusDateInputElement.bind(r),r}return br(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"startDateInput",{get:function(){return this._startDateInput.current},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"endDateInput",{get:function(){return this._endDateInput.current},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"calendar",{get:function(){return this._calendar},enumerable:!1,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)||j},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"show",{get:function(){return void 0!==this.showDuringOnChange?this.showDuringOnChange:void 0!==this.props.show?this.props.show:this.state.show},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return void 0!==this.props.min?this.props.min:t.defaultProps.min},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return void 0!==this.props.max?this.props.max:t.defaultProps.max},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.show&&this.forceUpdate()},t.prototype.componentDidUpdate=function(){this.shouldFocusCalendar&&this.focusCalendarElement(),this.shouldFocusDateInput&&this.focusDateInputElement(),this.shouldFocusCalendar=!1,this.shouldFocusDateInput=!1},t.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},t.prototype.render=function(){var e=this,t=this.value||j,n=(this.props.startDateInputSettings||{}).id||this._startInputId,r=(this.props.endDateInputSettings||{}).id||this._endInputId,o=(0,f.A)("k-daterangepicker",{"k-disabled":this.props.disabled},this.props.className),i=(0,v.provideLocalizationService)(this),a=i.toLanguageString(xe,Be[xe]),l=i.toLanguageString(Ie,Be[Ie]),u=i.toLanguageString(Te,Be[Te]),c=Cr(Cr({label:a,format:this.props.format,min:this.min,max:this.max,id:this._startInputId,disabled:this.props.disabled,valid:this.props.valid,ariaHasPopup:!0,ariaExpanded:this.show},this.props.startDateInputSettings),{value:t.start,onChange:this.handleStartChange}),d=Cr(Cr({label:l,format:this.props.format,min:this.min,max:this.max,id:this._endInputId,disabled:this.props.disabled,valid:this.props.valid,ariaHasPopup:!0,ariaExpanded:this.show},this.props.endDateInputSettings),{value:t.end,onChange:this.handleEndChange}),p=Cr(Cr({animate:null!==this._element,anchor:this._element,id:this._popupId,anchorAlign:{horizontal:"left",vertical:"bottom"},popupAlign:{horizontal:"left",vertical:"top"}},this.props.popupSettings),{show:this.show}),h=Cr(Cr({min:this.min,max:this.max,allowReverse:this.props.allowReverse,mode:"range",focusedDate:this.props.focusedDate,disabled:this.props.disabled},this.props.calendarSettings),{value:t,onChange:this.handleCalendarChange}),m=this.props.calendar?s.createElement(this.props.calendar,Cr({},h)):s.createElement(yr,Cr({},h,{ref:this.setCalendarRef})),g=s.createElement(se.z,Cr({className:"k-select",fillMode:"flat",title:(0,v.provideLocalizationService)(this).toLanguageString(De,Be[De]),onMouseDown:this.handleReverseMouseDown,onClick:this.handleReverseClick},{"aria-controls":n+" "+r,"aria-label":(0,v.provideLocalizationService)(this).toLanguageString(De,Be[De])}),s.createElement("span",{style:{transform:"rotate(90deg)"},className:"k-icon k-i-arrows-swap"}));return s.createElement("span",{ref:function(t){e._element=t},className:o,style:this.props.style,id:this.props.id,"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,tabIndex:this.props.tabIndex,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown},this.props.startDateInput?s.createElement(this.props.startDateInput,Cr({},c)):s.createElement(ln,Cr({},c,{ref:this._startDateInput})),(this.props.allowReverse||this.props.calendarSettings&&this.props.calendarSettings.allowReverse)&&this.props.swapButton?g:u,this.props.endDateInput?s.createElement(this.props.endDateInput,Cr({},d)):s.createElement(ln,Cr({},d,{ref:this._endDateInput})),this.props.popup?s.createElement(this.props.popup,Cr({},p),m):s.createElement(sn.G,Cr({},p),m))},t.prototype.focusDateInputElement=function(){document&&this.startDateInput&&this.startDateInput.element&&this.endDateInput&&this.endDateInput.element&&(null!==this.value.start&&null===this.value.end||document.activeElement===this.endDateInput.element?document.activeElement!==this.startDateInput.element&&this.endDateInput.element.focus({preventScroll:!0}):this.startDateInput.element.focus({preventScroll:!0}))},t.prototype.nextTick=function(e){clearTimeout(this.nextTickId),this.nextTickId=window.setTimeout((function(){return e()}))},t.prototype.setShow=function(e){this.show!==e&&this.setState({show:e})},t.displayName="DateRangePicker",t.propTypes={allowReverse:u.bool,calendarSettings:u.any,className:u.string,defaultShow:u.bool,defaultValue:u.shape({start:V(u.instanceOf(Date).isRequired),end:V(u.instanceOf(Date).isRequired)}),disabled:u.bool,endDateInputSettings:u.shape(on.propTypes),focusedDate:u.instanceOf(Date),format:u.oneOfType([u.string,u.shape({skeleton:u.string,pattern:u.string,date:u.oneOf(["short","medium","long","full"]),time:u.oneOf(["short","medium","long","full"]),datetime:u.oneOf(["short","medium","long","full"]),era:u.oneOf(["narrow","short","long"]),year:u.oneOf(["numeric","2-digit"]),month:u.oneOf(["numeric","2-digit","narrow","short","long"]),day:u.oneOf(["numeric","2-digit"]),weekday:u.oneOf(["narrow","short","long"]),hour:u.oneOf(["numeric","2-digit"]),hour12:u.bool,minute:u.oneOf(["numeric","2-digit"]),second:u.oneOf(["numeric","2-digit"]),timeZoneName:u.oneOf(["short","long"])})]),id:u.string,ariaLabelledBy:u.string,ariaDescribedBy:u.string,max:u.instanceOf(Date),min:u.instanceOf(Date),onBlur:u.func,onChange:u.func,onFocus:u.func,popupSettings:u.any,show:u.bool,startDateInputSettings:u.any,style:u.any,swapButton:u.any,tabIndex:u.number,value:u.shape({start:V(u.instanceOf(Date).isRequired),end:V(u.instanceOf(Date).isRequired)})},t.defaultProps={allowReverse:!1,defaultShow:!1,defaultValue:j,disabled:!1,format:"d",max:he,min:fe,swapButton:!1},t}(s.Component),wr=(0,h.Y)(),kr=(0,h.u)(wr,Er);kr.displayName="KendoReactDateRangePicker",(0,v.registerForLocalization)(Er);var Sr=n(7711),Or=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Dr=function(){return Dr=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},Dr.apply(this,arguments)},xr=function(e){function t(t){var n=e.call(this,t)||this;return n._calendar=null,n._timePart=null,n._cancelButton=null,n._acceptButton=null,n._calendarWrap=null,n.shouldFocusPart=!1,n.focus=function(e){Promise.resolve().then((function(){"time"===n.state.tab&&n._timePart&&n._timePart.focus(e);var t=n.calendarElement();"date"===n.state.tab&&t&&t.focus(e)}))},n.calendarElement=function(){return n._calendar&&n._calendar.element||n._calendarWrap&&n._calendarWrap.querySelector(".k-widget.k-calendar")},n.move=function(e){if(!("right"===e&&"time"===n.state.tab||"left"===e&&"date"===n.state.tab)){var t="left"===e?"date":"time";n.shouldFocusPart=!0,n.setState({tab:t})}},n.handleReject=function(e){n.setState({dateValue:n.props.value,timeValue:n.props.value||pe});var t=n.mergeDate(n.props.value,n.props.value||pe);if(n.props.onReject){var r={nativeEvent:e.nativeEvent,syntheticEvent:e,target:n,value:t};n.props.onReject.call(void 0,r)}},n.handleAccept=function(e,t){if(n.state.dateValue&&n.state.timeValue&&n.hasDateValue){var r=n.mergeDate(n.state.dateValue,t||n.state.timeValue);n.props.onChange.call(void 0,{syntheticEvent:e,nativeEvent:e.nativeEvent,value:r,target:n})}},n.handleNowClick=function(e){n.setState({timeValue:Xt()}),n.handleAccept(e,Xt())},n.handleCalendarValueChange=function(e){e.syntheticEvent.stopPropagation(),n.setState({dateValue:e.value,tab:"time"}),n.shouldFocusPart=!0},n.handleTimeListContainerChange=function(e){n.setState({timeValue:e})},n.handleDateClick=function(e){e.stopPropagation(),n.move("left")},n.handleTimeClick=function(e){e.stopPropagation(),n.move("right")},n.handleKeyDown=function(e){var t=e.keyCode,r=e.altKey;switch(t){case d.R.enter:return void(!n.hasActiveButton()&&n.hasDateValue&&n.handleAccept(e));case d.R.left:if(!r)return;return void n.move("left");case d.R.right:if(!r)return;return void n.move("right");default:return}},n.handleTimePartMount=function(e){n.setState({timeValue:e})},n.state={tab:"date",dateValue:n.props.value,timeValue:n.props.value||pe},n}return Or(t,e),Object.defineProperty(t.prototype,"calendar",{get:function(){return this._calendar},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timePart",{get:function(){return this._timePart},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasDateValue",{get:function(){return null!==this.state.dateValue},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(){this.shouldFocusPart&&this.focus({preventScroll:!0}),this.shouldFocusPart=!1},t.prototype.render=function(){var e=this,t=this.props,n=t.disabled,r=t.cancelButton,o=t.min,i=t.max,a=t.weekNumber,l=t.focusedDate,u=t.format,c=(0,f.A)({"k-date-tab":"date"===this.state.tab,"k-time-tab":"time"===this.state.tab,"k-disabled":n},"k-datetime-wrap"),d=(0,v.provideLocalizationService)(this),p=d.toLanguageString(je,Be[je]),h=d.toLanguageString(Le,Be[Le]),m=d.toLanguageString(Ve,Be[Ve]),g=d.toLanguageString(ze,Be[ze]),y={min:o,max:i,weekNumber:a,focusedDate:l,disabled:n||"date"!==this.state.tab,value:this.state.dateValue,onChange:this.handleCalendarValueChange,navigation:!1};return s.createElement("div",{onKeyDown:this.handleKeyDown,className:c,tabIndex:-1},s.createElement("div",{className:"k-datetime-buttongroup"},s.createElement(Sr.h,{width:"100%"},s.createElement(se.z,{type:"button",selected:"date"===this.state.tab,togglable:!0,onClick:this.handleDateClick},p),s.createElement(se.z,{type:"button",selected:"time"===this.state.tab,togglable:!0,onClick:this.handleTimeClick},h))),s.createElement("div",{className:"k-datetime-selector"},s.createElement("div",{className:"k-datetime-calendar-wrap",ref:function(t){return e._calendarWrap=t}},this.props.calendar?s.createElement(this.props.calendar,Dr({},y)):s.createElement(Tt,Dr({ref:function(t){e._calendar=t}},y))),s.createElement("div",{className:"k-datetime-time-wrap"},s.createElement(Qn,{key:1,onNowClick:this.handleNowClick,disabled:n||"time"!==this.state.tab,ref:function(t){e._timePart=t},min:this.minTime||W,max:this.maxTime||K,steps:this.props.steps,value:this.state.timeValue,format:u,onChange:this.handleTimeListContainerChange,onMount:this.handleTimePartMount}))),s.createElement("div",{className:"k-datetime-footer k-actions k-hstack k-justify-content-stretch"},r&&s.createElement(se.z,Dr({type:"button",ref:function(t){e._cancelButton=t},className:"k-time-cancel",onClick:this.handleReject,title:m},{"aria-label":m}),m),s.createElement(se.z,Dr({type:"button",themeColor:"primary",ref:function(t){e._acceptButton=t},className:"k-time-accept",disabled:!this.hasDateValue,onClick:this.handleAccept,title:g},{"aria-label":g}),g)))},Object.defineProperty(t.prototype,"minTime",{get:function(){return void 0!==this.props.minTime?this.props.minTime:this.normalizeRange(this.props.min,this.state.dateValue)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxTime",{get:function(){return void 0!==this.props.maxTime?this.props.maxTime:this.normalizeRange(this.props.max,this.state.dateValue)},enumerable:!1,configurable:!0}),t.prototype.normalizeRange=function(e,t){return(0,m.isEqualDate)(e,t||Y())?e:null},t.prototype.hasActiveButton=function(){return!!this._acceptButton&&(this._acceptButton&&document.activeElement===this._acceptButton.element||this._cancelButton&&document.activeElement===this._cancelButton.element)},t.prototype.mergeTime=function(e,t){return e&&t?q(t,e):t},t.prototype.mergeDate=function(e,t){return e?q(e||Y(),t):t},t}(s.Component);(0,v.registerForLocalization)(xr);var Ir=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Tr=function(){return Tr=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},Tr.apply(this,arguments)},_r=function(e){function t(n){var r=e.call(this,n)||this;return r._popupId=(0,c.M)(),r._element=null,r._dateInput=s.createRef(),r._dateTimeSelector=null,r.shouldFocusDateInput=!1,r.prevShow=!1,r.focus=function(){var e=r.dateInputElement();e&&e.focus()},r.handleReject=function(){r.shouldFocusDateInput=!0,r.setShow(!1)},r.handleValueChange=function(e){r.setState({value:(0,m.cloneDate)(e.value||void 0),show:!1}),r.valueDuringOnChange=e.value,r.showDuringOnChange=!1,r.shouldFocusDateInput=!0;var t=r.props.onChange;t&&t.call(void 0,{syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,value:r.value,show:r.show,target:r}),r.valueDuringOnChange=void 0,r.showDuringOnChange=void 0},r.handleFocus=function(){r.setState({focused:!0})},r.handleBlur=function(){r.setState({focused:!1}),r.setShow(!1)},r.handleDateIconClick=function(){r.props.disabled||(r.shouldFocusDateInput=!0,r.setShow(!r.show))},r.handleIconMouseDown=function(e){e.preventDefault()},r.handleKeyDown=function(e){var t=e.altKey,n=e.keyCode;if(n===d.R.esc)return r.shouldFocusDateInput=!0,void r.setShow(!1);!t||n!==d.R.up&&n!==d.R.down||(e.preventDefault(),e.stopPropagation(),r.shouldFocusDateInput=n===d.R.up,r.setShow(n===d.R.down))},r.dateInputElement=function(){return r.dateInput&&r.dateInput.element||r.element&&r.element.querySelector(".k-dateinput > input.k-input-inner")},(0,p.s)(g),r.state={value:r.props.defaultValue||t.defaultProps.defaultValue,show:r.props.defaultShow||t.defaultProps.defaultShow,focused:!1},r}return Ir(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dateInput",{get:function(){return this._dateInput.current},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){var e=void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.props.value?this.props.value:this.state.value;return null!==e?(0,m.cloneDate)(e):null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"show",{get:function(){return void 0!==this.showDuringOnChange?this.showDuringOnChange:void 0!==this.props.show?this.props.show:this.state.show},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return void 0!==this.props.min?this.props.min:t.defaultProps.min},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return void 0!==this.props.max?this.props.max:t.defaultProps.max},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){var e=Z(this.value,this.min,this.max)&&Jt(this.value,this.props.minTime||me,this.props.maxTime||K),t=void 0!==this.props.validationMessage,n=(!this.required||null!==this.value)&&e,r=void 0!==this.props.valid?this.props.valid:n;return{customError:t,rangeOverflow:this.value&&this.max.getTime()<this.value.getTime()||!1,rangeUnderflow:this.value&&this.value.getTime()<this.min.getTime()||!1,valid:r,valueMissing:null===this.value}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:t.defaultProps.required},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dateInputComp",{get:function(){return this.props.dateInput||t.defaultProps.dateInput},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.show&&this.forceUpdate()},t.prototype.componentDidUpdate=function(){var e=this.dateInputElement();this._dateTimeSelector&&this.show&&!this.prevShow&&this._dateTimeSelector.focus({preventScroll:!0}),e&&!this.show&&this.shouldFocusDateInput&&e.focus({preventScroll:!0}),this.prevShow=this.show,this.shouldFocusDateInput=!1},t.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},t.prototype.render=function(){var e=this,n=this.props,r=n.size,o=void 0===r?t.defaultProps.size:r,i=n.rounded,a=void 0===i?t.defaultProps.rounded:i,l=n.fillMode,u=void 0===l?t.defaultProps.fillMode:l,c=n.disabled,d=n.tabIndex,p=n.title,h=n.id,m=n.format,g=n.formatPlaceholder,y=n.min,b=n.max,C=n.weekNumber,E=n.focusedDate,w=n.className,k=n.width,S=n.name,O=n.validationMessage,D=n.required,x=n.validityStyles,I=n.cancelButton,T=n.minTime,_=n.maxTime,R=n.ariaLabelledBy,M=n.ariaDescribedBy,P=n.popup,N=void 0===P?sn.G:P,F=n.calendar,A=!this.validityStyles||this.validity.valid,j={id:h,ariaLabelledBy:R,ariaDescribedBy:M,format:m,formatPlaceholder:g,disabled:c,title:p,validityStyles:x,validationMessage:O,required:D,min:y,max:b,minTime:T,maxTime:_,name:S,tabIndex:this.show?-1:d,valid:this.validity.valid,value:this.value,onChange:this.handleValueChange,steps:this.props.steps,label:void 0,placeholder:this.state.focused?null:this.props.placeholder,ariaHasPopup:!0,ariaExpanded:this.show,size:null,fillMode:null,rounded:null},L=s.createElement(Nt.o,{onFocus:this.handleFocus,onBlur:this.handleBlur,onSyncFocus:this.props.onFocus,onSyncBlur:this.props.onBlur},(function(t){var n,r=t.onFocus,i=t.onBlur;return s.createElement("div",{ref:function(t){e._element=t},className:(0,f.A)("k-input","k-datetimepicker",(n={},n["k-input-".concat(Ft.G.sizeMap[o]||o)]=o,n["k-rounded-".concat(Ft.G.roundedMap[a]||a)]=a,n["k-input-".concat(u)]=u,n["k-invalid"]=!A,n["k-required"]=e.required,n["k-disabled"]=e.props.disabled,n),w),onKeyDown:e.handleKeyDown,style:{width:k},onFocus:r,onBlur:i},s.createElement(e.dateInputComp,Tr({_ref:e._dateInput},j)),s.createElement(se.z,Tr({tabIndex:-1,type:"button",icon:"calendar",onMouseDown:e.handleIconMouseDown,onClick:e.handleDateIconClick,title:(0,v.provideLocalizationService)(e).toLanguageString(_e,Be[_e]),className:"k-input-button",rounded:null},{"aria-controls":e._popupId,"aria-label":(0,v.provideLocalizationService)(e).toLanguageString(_e,Be[_e])})),s.createElement(N,{show:e.show,animate:null!==e.element,anchor:e.element,className:"k-datetime-container k-group k-reset",id:e._popupId,anchorAlign:{horizontal:"left",vertical:"bottom"},popupAlign:{horizontal:"left",vertical:"top"}},s.createElement(xr,{ref:function(t){e._dateTimeSelector=t},cancelButton:I,steps:e.props.steps,value:e.value,onChange:e.handleValueChange,onReject:e.handleReject,disabled:c,weekNumber:C,min:e.min,max:e.max,minTime:T,maxTime:_,focusedDate:E,format:m,calendar:F})))}));return this.props.label?s.createElement(pn,{dateInput:this._dateInput,label:this.props.label,editorId:h,editorValid:A,editorDisabled:this.props.disabled,children:L,style:{width:this.props.width}}):L},t.prototype.setShow=function(e){this.show!==e&&this.setState({show:e})},t.prototype.nextTick=function(e){clearTimeout(this.nextTickId),this.nextTickId=window.setTimeout((function(){return e()}))},t.displayName="DateTimePicker",t.propTypes={className:u.string,defaultShow:u.bool,defaultValue:u.instanceOf(Date),disabled:u.bool,focusedDate:u.instanceOf(Date),format:u.oneOfType([u.string,u.shape({skeleton:u.string,pattern:u.string,date:u.oneOf(["short","medium","long","full"]),time:u.oneOf(["short","medium","long","full"]),datetime:u.oneOf(["short","medium","long","full"]),era:u.oneOf(["narrow","short","long"]),year:u.oneOf(["numeric","2-digit"]),month:u.oneOf(["numeric","2-digit","narrow","short","long"]),day:u.oneOf(["numeric","2-digit"]),weekday:u.oneOf(["narrow","short","long"]),hour:u.oneOf(["numeric","2-digit"]),hour12:u.bool,minute:u.oneOf(["numeric","2-digit"]),second:u.oneOf(["numeric","2-digit"]),timeZoneName:u.oneOf(["short","long"])})]),formatPlaceholder:u.oneOfType([u.oneOf(["wide","narrow","short","formatPattern"]),u.shape({year:u.string,month:u.string,day:u.string,hour:u.string,minute:u.string,second:u.string})]),id:u.string,ariaLabelledBy:u.string,ariaDescribedBy:u.string,min:u.instanceOf(Date),max:u.instanceOf(Date),name:u.string,popupSettings:u.shape({animate:u.bool,appendTo:u.any,popupClass:u.string}),show:u.bool,tabIndex:u.number,title:u.string,value:u.instanceOf(Date),weekNumber:u.bool,width:u.oneOfType([u.number,u.string]),validationMessage:u.string,required:u.bool,validate:u.bool,valid:u.bool,cancelButton:u.bool,size:u.oneOf([null,"small","medium","large"]),rounded:u.oneOf([null,"small","medium","large","full"]),fillMode:u.oneOf([null,"solid","flat","outline"])},t.defaultProps={defaultShow:!1,defaultValue:null,disabled:!1,format:"g",max:U,min:H,popupSettings:{},tabIndex:0,weekNumber:!1,required:!1,validityStyles:!0,cancelButton:!0,dateInput:ln,size:"medium",rounded:"medium",fillMode:"solid"},t}(s.Component),Rr=(0,h.Y)(),Mr=(0,h.u)(Rr,_r);Mr.displayName="KendoReactDateTimePicker",(0,v.registerForLocalization)(_r)},8530:(e,t,n)=>{n.r(t),n.d(t,{Dialog:()=>x,DialogActionsBar:()=>u,DialogPropsContext:()=>D,Window:()=>U,WindowActionsBar:()=>j,WindowPropsContext:()=>H});var r=n(3899),o=n(994),i=n(189),a=n(7037),l=function(e){var t=e.children,n=e.onCloseButtonClick,o=e.id,i=e.closeIcon;return r.createElement("div",{className:"k-window-titlebar k-dialog-titlebar k-header",id:o},r.createElement("div",{className:"k-window-title k-dialog-title"},t),r.createElement("div",{className:"k-window-actions k-dialog-actions"},i&&r.createElement(a.z,{role:"button","aria-label":"Close",onClick:n,icon:"x",fillMode:"flat",className:"k-window-action k-dialog-action k-dialog-close"})))},s=n(8047),u=function(e){var t=e.layout,n=void 0===t?p.layout:t,o=e.children,i=(0,s.A)("k-dialog-buttongroup","k-actions","k-hstack",{"k-justify-content-start":"start"===n,"k-justify-content-center":"center"===n,"k-justify-content-end":"end"===n,"k-justify-content-stretch":"stretched"===n});return r.createElement("div",{className:i},o)};u.propTypes={children:i.any,layout:i.oneOf(["start","center","end","stretched"])};var c,d,p={layout:"stretched"},f=n(3198),h=n(5407),m=n(3493),v=n(8259),g=n(7827),y=n(848),b=n(4006),C={name:"@progress/kendo-react-dialogs",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1656315292,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"},E="data-windowid",w=function(e,t,n){var r=e;if(t&&t.defaultView){var o=t.querySelectorAll(".k-window:not(.k-dialog), .k-dialog-wrapper"),i=!1;return o.forEach((function(e){var o=t.defaultView.getComputedStyle(e,null);if(e.getAttribute(E)!==n&&null!==o.zIndex){var a=parseInt(o.zIndex,10);a>=r&&(r=a,i=!0)}})),i?r+2:r}return r},k=(c=function(e,t){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},c(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}c(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),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},S.apply(this,arguments)},O=function(e){function t(t){var n=e.call(this,t)||this;return n.context=0,n._id=(0,f.M)(),n.titleId=n.generateTitleId(),n.onCloseDialog=function(e){e.preventDefault(),(0,h.N)(n.props.onClose,e,n,void 0)},n.onKeyDown=function(e){e.keyCode===m.R.esc&&n.props.onClose&&(e.preventDefault(),n.onCloseDialog(e));var t=n.element;if(t&&e.keyCode===m.R.tab){var r=t.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),o=r[0],i=r[r.length-1],a=n.getDocument();e.shiftKey?(a&&a.activeElement===o||a&&a.activeElement===n.element)&&(i.focus(),e.preventDefault()):a&&a.activeElement===i&&(o.focus(),e.preventDefault())}},n.getCurrentZIndex=function(){return n.state&&void 0!==n.context?n.state.zIndex>(n.context?n.context+2:0)?n.state.zIndex:n.context+2:n.context?n.context:10002},n.getDocument=function(){return n.props.appendTo?n.props.appendTo.ownerDocument:document},(0,b.s)(C),n.state={zIndex:w(n.getCurrentZIndex(),n.getDocument(),n._id)},n}return k(t,e),t.prototype.componentDidMount=function(){this.element&&this.props.autoFocus&&this.element.focus()},t.prototype.render=function(){var e,t=this,n=void 0!==this.props.id?this.props.id:this.titleId,i=this.props,a=i.title,s=i.width,u=i.height,c=i.children,d=i.minWidth,p=i.dir,f=i.style,h=i.contentStyle,m=r.Children.toArray(c),y=this.getContent(m),b=this.getActionBar(m),C=a?{"aria-labelledby":n}:null,w=void 0===this.props.closeIcon||this.props.closeIcon,k=this.getCurrentZIndex(),O=r.createElement(v.$.Provider,{value:k},r.createElement("div",S({},((e={})[E]=this._id,e),{className:"k-dialog-wrapper"+(this.props.className?" "+this.props.className:""),onKeyDown:this.onKeyDown,tabIndex:0,dir:p,style:S({zIndex:k},f),ref:function(e){return t.element=e}}),r.createElement("div",{className:"k-overlay"}),r.createElement("div",S({},C,{className:"k-widget k-window k-dialog",role:"dialog",style:{width:s,height:u,minWidth:d}}),this.props.title&&r.createElement(l,{closeIcon:w,onCloseButtonClick:this.onCloseDialog,id:n},a),r.createElement("div",{className:"k-window-content k-dialog-content",style:h},y),b)));return g.N?null!==this.props.appendTo?o.createPortal(O,this.props.appendTo||document.body):O:null},t.prototype.getActionBar=function(e){return e.filter((function(e){return e&&e.type===u}))},t.prototype.getContent=function(e){return e.filter((function(e){return e&&e.type!==u}))},t.prototype.generateTitleId=function(){return"dialog-title"+this._id},t.displayName="Dialog",t.propTypes={title:i.any,id:i.string,dir:i.string,style:i.object,closeIcon:i.bool,width:i.oneOfType([i.number,i.string]),height:i.oneOfType([i.number,i.string]),minWidth:i.oneOfType([i.number,i.string]),autoFocus:i.bool},t.defaultProps={autoFocus:!1},t.contextType=v.$,t}(r.Component),D=(0,y.Y)(),x=(0,y.u)(D,O);x.displayName="KendoReactDialog",function(e){e.DEFAULT="DEFAULT",e.FULLSCREEN="FULLSCREEN",e.MINIMIZED="MINIMIZED"}(d||(d={}));var I=function(){return I=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},I.apply(this,arguments)},T=function(e){var t=e.children,n=e.onCloseButtonClick,o=e.onMinimizeButtonClick,i=e.onFullScreenButtonClick,l=e.onRestoreButtonClick,s=e.onDoubleClick,u=e.stage,c=e.forwardedRef,p=e.minimizeButton?r.createElement(e.minimizeButton,{onClick:o,stage:u}):r.createElement(a.z,{fillMode:"flat",icon:"window-minimize",onClick:o}),f=e.maximizeButton?r.createElement(e.maximizeButton,{onClick:i,stage:u}):r.createElement(a.z,{fillMode:"flat",icon:"window-maximize",onClick:i}),h=e.restoreButton?r.createElement(e.restoreButton,{onClick:l,stage:u}):r.createElement(a.z,{fillMode:"flat",icon:"window-restore",onClick:l}),m=e.closeButton?r.createElement(e.closeButton,{onClick:n,stage:u}):r.createElement(a.z,{fillMode:"flat",icon:"close",onClick:n});return r.createElement("div",{className:"k-window-titlebar k-dialog-titlebar",style:{touchAction:"none"},ref:c,onDoubleClick:s},r.createElement("div",{className:"k-window-title"},t||""),r.createElement("div",{className:"k-window-actions"},u===d.DEFAULT&&p,u===d.DEFAULT&&f,u!==d.DEFAULT&&h,m))},_=r.forwardRef((function(e,t){return r.createElement(T,I({},e,{forwardedRef:t}))})),R=n(1779),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),P=["n","e","s","w","se","sw","ne","nw"],N=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return M(t,e),t.prototype.render=function(){var e=this;return r.createElement("div",null," ",P.map((function(t,n){return r.createElement(R._,{key:n,onDrag:function(n){var r=n.event;r.originalEvent.preventDefault(),e.props.onResize(r,{end:!1,direction:t})},onRelease:function(n){var r=n.event;r.originalEvent.preventDefault(),e.props.onResize(r,{end:!0,direction:t})}},r.createElement("div",{className:"k-resize-handle k-resize-"+t,style:{display:"block",touchAction:"none"}}))})))},t}(r.Component),F=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),A=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return F(t,e),t.prototype.shouldComponentUpdate=function(e){return e.shouldUpdateOnDrag||!e.isDragging},t.prototype.render=function(){return this.props.children},t}(r.Component),j=function(e){var t=e.layout,n=void 0===t?L.layout:t,o=e.children,i=(0,s.A)("k-window-buttongroup","k-actions","k-hstack",{"k-justify-content-start":"start"===n,"k-justify-content-center":"center"===n,"k-justify-content-end":"end"===n,"k-justify-content-stretch":"stretched"===n});return r.createElement("div",{className:i},o)};j.propTypes={children:i.any,layout:i.oneOf(["start","center","end","stretched"])};var L={layout:"end"},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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),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},z.apply(this,arguments)},B=function(e){function t(t){var n=e.call(this,t)||this;return n.context=0,n.draggable=null,n.offSetCoordinates={x:0,y:0},n._id=(0,f.M)(),n.onKeyDown=function(e){if(e.target===e.currentTarget){var t=n.props.minWidth||120,r=n.props.minHeight||100;if(e.ctrlKey&&n.props.resizable){switch(e.keyCode){case m.R.up:e.preventDefault(),r<=n.height-5&&n.setState({height:n.height-5});break;case m.R.down:e.preventDefault(),n.setState({height:n.height+5});break;case m.R.left:t<=n.width-5&&n.setState({width:n.width-5});break;case m.R.right:n.setState({width:n.width+5});break;default:return}n.dispatchMoveEvent(n.props.onResize,e,!1,void 0)}else if(e.altKey)switch(e.keyCode){case m.R.up:n.windowStage===d.MINIMIZED?(n.handleRestore(e),(0,h.N)(n.props.onStageChange,e,n,{state:d.DEFAULT})):n.windowStage===d.DEFAULT&&(n.handleFullscreen(e),(0,h.N)(n.props.onStageChange,e,n,{state:d.FULLSCREEN}));break;case m.R.down:n.windowStage===d.FULLSCREEN?(n.handleRestore(e),(0,h.N)(n.props.onStageChange,e,n,{state:d.DEFAULT})):n.windowStage===d.DEFAULT&&(n.handleMinimize(e),(0,h.N)(n.props.onStageChange,e,n,{state:d.MINIMIZED}))}else{if(!e.ctrlKey)switch(e.keyCode){case m.R.esc:return void(n.props.onClose&&n.handleCloseWindow(e));case m.R.up:n.setState({top:n.state.top-5});break;case m.R.down:n.setState({top:n.state.top+5});break;case m.R.left:n.setState({left:n.state.left-5});break;case m.R.right:n.setState({left:n.state.left+5});break;default:return}n.dispatchMoveEvent(n.props.onMove,e,!1,void 0)}}},n.onPress=function(e){var t=e.event;n.windowCoordinatesState.differenceLeft=t.pageX-n.left,n.windowCoordinatesState.differenceTop=t.pageY-n.top},n.onDrag=function(e){var t=e.event;t.originalEvent.preventDefault(),n.windowStage!==d.FULLSCREEN&&n.props.draggable&&(n.setState({top:Math.max(t.pageY-n.windowCoordinatesState.differenceTop,0),left:t.pageX-n.windowCoordinatesState.differenceLeft,isDragging:!0}),n.props.onMove&&n.dispatchMoveEvent(n.props.onMove,t,!0,!1))},n.onRelease=function(e){var t=e.event;n.windowStage!==d.FULLSCREEN&&n.props.draggable&&n.props.onMove&&n.dispatchMoveEvent(n.props.onMove,t,!0,!0),n.setState({isDragging:!1})},n.onFocus=function(){n._blurTimeout?(clearTimeout(n._blurTimeout),n._blurTimeout=void 0):n.setState({focused:!0,zIndex:w(n.getCurrentZIndex(),n.getDocument(),n._id)})},n.onBlur=function(){clearTimeout(n._blurTimeout);var e=n.getWindow();e&&(n._blurTimeout=e.setTimeout((function(){n.setState({focused:!1}),n._blurTimeout=void 0})))},n.getInitialTop=function(){if(void 0!==n.props.top)return n.props.top;if(void 0!==n.props.initialTop)return n.props.initialTop;var e=300;if(void 0!==n.props.height?e=n.props.height:void 0!==n.props.initialHeight&&(e=n.props.initialHeight),n.props.appendTo)return n.props.appendTo.offsetHeight/2-e/2;var t=n.getWindow();return t?t.innerHeight/2-e/2:0},n.getInitialLeft=function(){if(void 0!==n.props.left)return n.props.left;if(void 0!==n.props.initialLeft)return n.props.initialLeft;var e=300;if(void 0!==n.props.width?e=n.props.width:void 0!==n.props.initialWidth&&(e=n.props.initialWidth),n.props.appendTo)return n.props.appendTo.offsetWidth/2-e/2;var t=n.getWindow();return t?t.innerWidth/2-e/2:0},n.getInitialWidth=function(){var e=300;return void 0!==n.props.width?e=n.props.width:void 0!==n.props.initialWidth&&(e=n.props.initialWidth),e},n.getInitialHeight=function(){var e=300;return void 0!==n.props.height?e=n.props.height:void 0!==n.props.initialHeight&&(e=n.props.initialHeight),e},n.handleMinimize=function(e){e.preventDefault(),n.windowCoordinatesState.leftBeforeAction=n.left,n.windowCoordinatesState.topBeforeAction=n.top,n.windowCoordinatesState.widthBeforeAction=n.width,n.windowCoordinatesState.heightBeforeAction=n.height,n.setState({stage:d.MINIMIZED,height:0}),(0,h.N)(n.props.onStageChange,e,n,{state:d.MINIMIZED})},n.handleFullscreen=function(e){e.preventDefault(),n.windowCoordinatesState.leftBeforeAction=n.left,n.windowCoordinatesState.topBeforeAction=n.top,n.windowCoordinatesState.widthBeforeAction=n.width,n.windowCoordinatesState.heightBeforeAction=n.height;var t=n.getWindow(),r=t?t.innerWidth:0,o=t?t.innerHeight:0;n.setState({left:0,top:0,width:n.props.appendTo?n.props.appendTo.offsetWidth:r,height:n.props.appendTo?n.props.appendTo.offsetHeight:o,stage:d.FULLSCREEN}),(0,h.N)(n.props.onStageChange,e,n,{state:d.FULLSCREEN})},n.handleRestore=function(e){e.preventDefault(),n.windowStage===d.FULLSCREEN?n.setState({stage:d.DEFAULT,left:n.windowCoordinatesState.leftBeforeAction,top:n.windowCoordinatesState.topBeforeAction,width:n.windowCoordinatesState.widthBeforeAction,height:n.windowCoordinatesState.heightBeforeAction}):n.windowStage===d.MINIMIZED&&n.setState({stage:d.DEFAULT,height:n.windowCoordinatesState.heightBeforeAction}),(0,h.N)(n.props.onStageChange,e,n,{state:d.DEFAULT})},n.handleCloseWindow=function(e){e.preventDefault(),(0,h.N)(n.props.onClose,e,n,{state:void 0})},n.handleDoubleClick=function(e){n.windowStage===d.FULLSCREEN||n.windowStage===d.MINIMIZED?n.handleRestore(e):n.handleFullscreen(e)},n.handleResize=function(e,t){var r=n.props.appendTo?e.pageX-n.offSetCoordinates.x:e.pageX,o=n.props.appendTo?e.pageY-n.offSetCoordinates.y:e.pageY,i=n.width,a=n.height,l=n.props.minWidth||120,s=n.props.minHeight||100,u=n.top-o,c=n.left-r,d=r-n.left,p=o-n.top,f=Object.assign({},n.state,{isDragging:!t.end});t.direction.indexOf("n")>=0&&s-(a+u)<0&&(n.top>0&&(f.height=a+u),f.top=o),t.direction.indexOf("s")>=0&&s-p<0&&(f.height=p),t.direction.indexOf("w")>=0&&l-(i+c)<0&&(n.left>0&&(f.width=i+c),f.left=r),t.direction.indexOf("e")>=0&&l-d<0&&(f.width=d),n.setState(f),n.dispatchMoveEvent(n.props.onResize,e,!0,t.end)},n.dispatchMoveEvent=function(e,t,r,o){e&&e.call(void 0,{nativeEvent:t.nativeEvent?t.nativeEvent:t.originalEvent,drag:r,end:o,target:n,left:n.state.left,top:n.state.top,width:n.state.width,hight:n.state.height,height:n.state.height})},n.handleBrowserWindowResize=function(){if(n.windowStage===d.FULLSCREEN){var e=n.getWindow(),t=e?e.innerWidth:0,r=e?e.innerHeight:0;n.setState({width:n.props.appendTo?n.props.appendTo.offsetWidth:t,height:n.props.appendTo?n.props.appendTo.offsetHeight:r})}},n.getCurrentZIndex=function(){return n.state&&void 0!==n.context?n.state.zIndex>(n.context?n.context+2:0)?n.state.zIndex:n.context+2:n.context?n.context:10002},n.getDocument=function(){return n.props.appendTo?n.props.appendTo.ownerDocument:document},n.getWindow=function(){var e=n.getDocument();return e&&e.defaultView},(0,b.s)(C),n.state={stage:n.props.stage||d.DEFAULT,isDragging:!1,top:n.getInitialTop(),left:n.getInitialLeft(),width:n.getInitialWidth(),height:n.getInitialHeight(),focused:!0,zIndex:w(n.getCurrentZIndex(),n.getDocument(),n._id)},n.windowCoordinatesState={leftBeforeAction:n.getInitialLeft(),topBeforeAction:n.getInitialTop(),widthBeforeAction:n.getInitialWidth(),heightBeforeAction:n.getInitialHeight()},n}return V(t,e),t.prototype.componentDidMount=function(){var e=this.getWindow();e&&e.addEventListener("resize",this.handleBrowserWindowResize);var t=this.getDocument();if(this.props.appendTo&&t){var n=this.props.appendTo.getBoundingClientRect(),r=t.body.getBoundingClientRect();this.offSetCoordinates.x=n.left-r.left,this.offSetCoordinates.y=n.top-r.top}},t.prototype.componentWillUnmount=function(){var e=this.getWindow();e&&e.removeEventListener("resize",this.handleBrowserWindowResize)},t.prototype.componentDidUpdate=function(){var e=this.getDocument();if(this.props.appendTo&&e){var t=this.props.appendTo.getBoundingClientRect(),n=e.body.getBoundingClientRect();this.offSetCoordinates.x=t.left-n.left,this.offSetCoordinates.y=t.top-n.top}},t.prototype.render=function(){var e,t=this,n=r.Children.toArray(this.props.children),i=this.getContent(n),a=this.getActionBar(n),l=this.getCurrentZIndex(),u=(0,s.A)("k-widget","k-window",this.props.className,{"k-window-minimized":"MINIMIZED"===this.state.stage},{"k-window-focused":this.state.focused}),c=r.createElement(v.$.Provider,{value:l},r.createElement(r.Fragment,null,this.props.modal&&r.createElement("div",{className:"k-overlay",style:z({zIndex:l},this.props.overlayStyle)}),r.createElement("div",z({},((e={})[E]=this._id,e),{tabIndex:0,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,ref:function(e){t.windowElement=e,t.element=e},className:u,style:z({top:this.top,left:this.left,width:this.width,height:this.height||"",zIndex:l},this.props.style)}),r.createElement(A,{shouldUpdateOnDrag:this.props.shouldUpdateOnDrag||!1,isDragging:this.state.isDragging},r.createElement(R._,{onPress:this.onPress,onDrag:this.onDrag,onRelease:this.onRelease,ref:function(e){return t.draggable=e}},r.createElement(_,{stage:this.windowStage,onDoubleClick:this.props.doubleClickStageChange?this.handleDoubleClick:void 0,onMinimizeButtonClick:this.handleMinimize,onFullScreenButtonClick:this.handleFullscreen,onRestoreButtonClick:this.handleRestore,onCloseButtonClick:this.handleCloseWindow,closeButton:this.props.closeButton,minimizeButton:this.props.minimizeButton,maximizeButton:this.props.maximizeButton,restoreButton:this.props.restoreButton},this.props.title)),this.windowStage!==d.MINIMIZED?r.createElement(r.Fragment,null,r.createElement("div",{className:"k-window-content"},i),a):null,this.windowStage===d.DEFAULT&&this.props.resizable?r.createElement(N,{onResize:this.handleResize}):null))));return g.N?null!==this.props.appendTo?o.createPortal(c,this.props.appendTo||document.body):c:null},Object.defineProperty(t.prototype,"top",{get:function(){return this.windowStage!==d.FULLSCREEN?Math.max(this.props.top||this.state.top,0):0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){return this.windowStage!==d.FULLSCREEN?Math.max(this.props.left||this.state.left,0):0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){var e=this.props.width||this.state.width;if(this.windowStage===d.FULLSCREEN){if(this.props.appendTo)return this.props.appendTo.offsetWidth;var t=this.getWindow();e=t?t.innerWidth:0}return e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){var e=this.props.height||this.state.height;if(this.windowStage===d.FULLSCREEN){if(this.props.appendTo)return this.props.appendTo.offsetHeight;var t=this.getWindow();e=t?t.innerHeight:0}else this.windowStage===d.MINIMIZED&&(e=0);return e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"windowStage",{get:function(){return this.props.stage||this.state.stage},enumerable:!1,configurable:!0}),t.prototype.getActionBar=function(e){return e.filter((function(e){return e&&e.type===j}))},t.prototype.getContent=function(e){return e.filter((function(e){return e&&e.type!==j}))},t.displayName="Window",t.propTypes={width:i.number,height:i.number,left:i.number,top:i.number,initialWidth:i.number,initialHeight:i.number,initialLeft:i.number,initialTop:i.number,minWidth:i.number,minHeight:i.number,resizable:i.bool,draggable:i.bool,title:i.any,shouldUpdateOnDrag:i.bool,stage:i.oneOf(["DEFAULT","MINIMIZED","FULLSCREEN"]),className:i.string,style:i.object,overlayStyle:i.object},t.defaultProps={minWidth:120,minHeight:100,resizable:!0,draggable:!0,modal:!1,doubleClickStageChange:!0},t.contextType=v.$,t}(r.Component),H=(0,y.Y)(),U=(0,y.u)(H,B);U.displayName="KendoReactWindow"},865:(e,t,n)=>{n.r(t),n.d(t,{AutoComplete:()=>xe,AutoCompletePropsContext:()=>De,ComboBox:()=>Ce,ComboBoxPropsContext:()=>be,DropDownList:()=>le,DropDownListPropsContext:()=>ae,DropDownTree:()=>un,DropDownTreePropsContext:()=>sn,MultiColumnComboBox:()=>Je,MultiColumnComboBoxPropsContext:()=>Qe,MultiSelect:()=>Ke,MultiSelectPropsContext:()=>We,MultiSelectTree:()=>gn,MultiSelectTreePropsContext:()=>vn,getMultiSelectTreeValue:()=>En,getValueMap:()=>Cn});var r,o=n(3899),i=n(189),a=n(2697),l=n(8047),s=n(3493),u=n(4703),c=n(848),d=n(6097),p=n(9222),f=(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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),h=function(){return h=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},h.apply(this,arguments)},m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.width,r=e.dir,i=e.itemsCount,a=e.popupSettings;return o.createElement(p.G,h({style:{width:n,direction:r},contentKey:i&&i.join()},a),t)},t}(o.Component);const v=m;var g=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),y=a.G.sizeMap,b=a.G.roundedMap,C=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.input=null,t}return g(t,e),t.prototype.render=function(){var e,t=this,n=this.props,r=n.size,i=n.rounded,a=n.fillMode,s=n.inputRef;return o.createElement("div",{className:"k-list-filter"},o.createElement("span",{className:(0,l.A)("k-searchbox k-input",(e={},e["k-input-".concat(y[r]||r)]=r,e["k-rounded-".concat(b[i]||i)]=i,e["k-input-".concat(a)]=a,e))},o.createElement("span",{className:"k-input-icon k-icon k-i-search"}),o.createElement("input",{ref:s||function(e){return t.input=e},value:this.props.value||"",className:"k-input-inner",onChange:this.props.onChange,onKeyDown:this.props.onKeyDown,tabIndex:this.props.tabIndex,onClick:function(e){return e.stopPropagation()}})))},t}(o.Component);const E=C;var w=function(e){return null!=e},k=function(e,t,n){if(!w(e))return!1;var r=String(e);return n&&(r=r.toLowerCase()),0===r.indexOf(t)},S=function(e,t,n){var r=-1;if(t){t=t.toLowerCase();for(var o=0;o<e.length;o++){var i=(D(e[o],n)||"")+"";if(i&&i.toLowerCase().startsWith(t)){r=o;break}}}return r},O=function(e,t,n,r){void 0===r&&(r=!1);var o=function(e){return r?e:e.toLowerCase()};return e.findIndex((function(e){return n?o(D(e,n))===o(t):o(t)===o(e.toString())}))},D=function(e,t){if(t&&w(e)){var n=t.split("."),r=e;return n.forEach((function(e){r=r?r[e]:void 0})),r}return e},x=function(e,t,n){t.forEach((function(t){var r=e.findIndex((function(e){return I(e,t,n)}));-1!==r&&e.splice(r,1)}))},I=function(e,t,n){return e===t||w(e)===w(t)&&D(e,n)===D(t,n)},T=function(e,t,n){if(t){var r=O(e,t,n,!0);return-1!==r?e[r]:e[S(e,t,n)]}return e[0]},_=function(e){"INPUT"!==e.target.nodeName&&e.preventDefault()},R=function(e,t,n){return!!e==!!t&&e.text===t.text&&(e===t||function(e,t,n){if(void 0===e&&(e=[]),void 0===t&&(t=[]),e===t)return!0;if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!I(e[r],t[r],n))return!1;return!0}(e.data,t.data,n))},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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),P=function(e){return e.preventDefault()},N=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return M(t,e),t.prototype.render=function(){var e=this.props,t=e.selected,n=e.defaultItem,r=e.textField;return o.createElement("div",{onClick:this.props.onClick,onMouseDown:P,style:{position:"unset"},className:(0,l.A)("k-list-optionlabel",{"k-selected":t})},D(n,r)||"")},t}(o.Component);const F=N;var A=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),j=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){return t.props.onClick(t.props.index,e)},t}return A(t,e),t.prototype.render=function(){var e=this.props,t=e.selected,n=e.group,r=e.dataItem,i=e.virtual,a=e.render,s=o.createElement("li",{id:this.props.id,role:"option","aria-selected":t,className:(0,l.A)("k-list-item",{"k-selected":t,"k-focus":this.props.focused,"k-first":Boolean(n)}),onClick:this.handleClick,style:{position:i?"relative":"unset"}},o.createElement("span",{className:"k-list-item-text"},D(r,this.props.textField).toString()),void 0!==n?o.createElement("div",{className:"k-list-item-group-label"},n):null);return void 0!==a?a.call(void 0,s,this.props):s},t}(o.Component);const L=j;var V,z=n(499),B="dropdowns.nodata",H="dropdowns.clear",U=((V={})[H]="clear",V[B]="NO DATA FOUND.",V),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),K=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return W(t,e),t.prototype.renderItems=function(){var e=this,t=this.props,n=t.textField,r=t.valueField,i=t.groupField,a=t.optionsGuid,l=t.skip,s=void 0===l?0:l,u=t.virtual,c=t.focusedIndex,d=t.highlightSelected,p=void 0===d||d,f=t.value,h=t.data,m=t.itemRender,v=Array.isArray(f);return h.map((function(t,l){var d,g,y=s+l,b=p&&(!v&&I(t,f,r)||v&&-1!==f.findIndex((function(e){return I(e,t,r)}))),C=void 0;return l>0&&void 0!==i&&(d=D(t,i),g=D(h[l-1],i),d&&g&&d!==g&&(C=d)),o.createElement(L,{id:"option-".concat(a,"-").concat(y),virtual:u,dataItem:t,selected:b,focused:c===l,index:y,key:y,onClick:e.props.onClick,textField:n,group:C,render:m})}))},t.prototype.renderNoValueElement=function(e){var t=this.props.noDataRender,n=o.createElement("div",{className:"k-nodata"},o.createElement("div",null,e.toLanguageString(B,U[B])));return t?t.call(void 0,n):n},t.prototype.render=function(){var e=(0,z.provideLocalizationService)(this),t=this.props,n=t.id,r=t.show,i=t.wrapperCssClass,a=t.wrapperStyle,l=t.listStyle,s=t.listRef,u=t.wrapperRef,c=t.listClassName,d=void 0===c?"k-list-ul":c,p=this.renderItems();return p.length?o.createElement("div",{className:i,style:a,ref:u,onMouseDown:this.props.onMouseDown,onBlur:this.props.onBlur,onScroll:this.props.onScroll,unselectable:"on"},o.createElement("ul",{id:n,role:"listbox","aria-hidden":!r||void 0,className:d,ref:s,style:l},p),this.props.scroller&&o.createElement("div",{className:"k-height-container"},this.props.scroller)):this.renderNoValueElement(e)},t}(o.Component);const q=K;(0,z.registerForLocalization)(K);const Y=function(){function e(){var e=this;this.container=null,this.scrollElement=null,this.list=null,this.containerHeight=0,this.skip=0,this.total=0,this.enabled=!1,this.pageSize=0,this.itemHeight=0,this.PageChange=null,this.prevScrollPos=0,this.listTranslate=0,this.scrollSyncing=!1,this.scrollerRef=function(t){var n=e;n.container=t,t&&(t.setAttribute("unselectable","on"),window.setTimeout(n.calcScrollElementHeight.bind(n),0))},this.calcScrollElementHeight=function(){e.scrollSyncing=!0;var t=!1;e.itemHeight=e.list?e.list.children[0].offsetHeight:e.itemHeight,e.containerHeight=Math.min(1533915,e.itemHeight*e.total);var n=e.containerHeight;return e.scrollElement&&(t=e.scrollElement.style.height!==n+"px")&&(e.scrollElement.style.height=n+"px"),e.scrollSyncing=!1,t},this.scrollHandler=this.scrollHandler.bind(this)}return Object.defineProperty(e.prototype,"translate",{get:function(){return this.listTranslate},enumerable:!1,configurable:!0}),e.prototype.changePage=function(e,t){var n=Math.min(Math.max(0,e),this.total-this.pageSize);n!==this.skip&&this.PageChange&&this.PageChange({skip:n,take:this.pageSize},t)},e.prototype.translateTo=function(e){this.listTranslate=e,this.list&&(this.list.style.transform="translateY("+e+"px)")},e.prototype.reset=function(){this.container&&(this.calcScrollElementHeight(),this.container.scrollTop=0,this.translateTo(0))},e.prototype.scrollToEnd=function(){this.container&&this.list&&(this.calcScrollElementHeight(),this.container.scrollTop=this.container.scrollHeight-this.container.offsetHeight,this.translateTo(this.container.scrollHeight))},e.prototype.localScrollUp=function(e){var t,n=this.itemHeight,r=this.container.scrollTop,o=this.listTranslate,i=r-o;if(!(i>n)){for(t=0;t<this.skip&&!(o+n+i<=r);t++)o-=n;if(o=this.validateTranslate(o),this.skip-t<=0&&o>=r)return this.translateTo(0),this.changePage(0,e),void(this.container.scrollTop=0);o!==this.listTranslate&&(this.translateTo(o),this.changePage(this.skip-t,e))}},e.prototype.localScrollDown=function(e){var t,n=this.itemHeight,r=this.container.scrollTop,o=this.listTranslate,i=this.list.children.length;for(t=0;t<i&&!(o+n>=r);t++)o+=n;o=this.validateTranslate(o),t>=i&&this.skip+t>=this.total?(this.translateTo(o),this.changePage(this.total-1,e)):o!==this.listTranslate&&(this.translateTo(o),this.changePage(this.skip+t,e))},e.prototype.scrollNonStrict=function(e){var t=this.total*this.prevScrollPos/this.containerHeight,n=Math.min(Math.floor(t),this.total-1),r=this.containerHeight*t/this.total;r=this.validateTranslate(r),this.translateTo(r),this.changePage(n,e)},e.prototype.scrollHandler=function(e){var t=this.container?this.container.scrollTop:0,n=this.prevScrollPos;this.prevScrollPos=t,this.enabled&&this.list&&this.container&&!this.scrollSyncing&&(t-n<=0&&t>this.listTranslate-this.list.scrollHeight/10?this.localScrollUp(e):t-n>0&&t<this.listTranslate+2*this.list.scrollHeight/3?this.localScrollDown(e):this.scrollNonStrict(e))},e.prototype.validateTranslate=function(e){return e=Math.max(0,e),Math.min(this.containerHeight,e)},e}();var G=function(){function e(){}return e.prototype.navigate=function(e){var t=e.keyCode;return t===s.R.up||t===s.R.left?this.next({current:e.current,min:e.min,max:e.max,step:-1}):t===s.R.down||t===s.R.right?this.next({current:e.current,min:e.min,max:e.max,step:1}):t===s.R.home?0:t===s.R.end?e.max:void 0},e.prototype.next=function(e){return w(e.current)?Math.min(e.max,Math.max(e.current+e.step,e.min)):e.min},e}(),Z=n(3198),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},X.apply(this,arguments)},$=function(){function e(e){var t=this;this.wrapper=null,this.list=null,this.vs=new Y,this.navigation=new G,this.handleItemClick=function(e,n){var r=t.initState();r.syntheticEvent=n,n.stopPropagation(),t.component.handleItemSelect(e,r),t.togglePopup(r),t.applyState(r)},this.handleFocus=function(e){if(!t.component.state.focused){var n=t.initState();n.data.focused=!0,n.events.push({type:"onFocus"}),n.syntheticEvent=e,t.applyState(n)}},this.filterChanged=function(e,n){var r=t.component.props,o=r.textField;r.filterable&&n.events.push({type:"onFilterChange",filter:{field:o,operator:"contains",ignoreCase:!0,value:e}})},this.togglePopup=function(e){var n=t.component.props,r=void 0!==n.opened?n.opened:t.component.state.opened;void 0===n.opened&&(e.data.opened=!r),r?e.events.push({type:"onClose"}):(e.events.push({type:"onOpen"}),t.calculatePopupWidth())},this.pageChange=function(e,n){var r=t.initState();r.syntheticEvent=n,t.triggerOnPageChange(r,e.skip,e.take),t.applyState(r)},this.scrollToVirtualItem=function(e,n){var r=t.vs;if(r.enabled=!1,0===e.skip)r.reset();else if(e.skip+e.pageSize===e.total)r.scrollToEnd();else{var o=r.translate;0===o&&(r.calcScrollElementHeight(),o=r.itemHeight*e.skip,r.translateTo(o-r.itemHeight)),r.container&&(r.container.scrollTop=o),t.scrollToItem(n,!0)}window.setTimeout((function(){return r.enabled=!0}),10)},this.renderScrollElement=function(){var e=t.vs;return e.enabled&&o.createElement("div",{ref:function(t){return e.scrollElement=t},key:"scrollElementKey"})},this.listBoxId=(0,Z.M)(),this.guid=(0,Z.M)(),this.component=e,this.vs.PageChange=this.pageChange}return e.prototype.didMount=function(){var e=this.component.props,t=e.popupSettings||{},n=e.style||{},r=t.width,o=!0===e.opened;void 0===r&&this.calculatePopupWidth(),void 0===e.dir&&void 0===n.direction&&(this.calculateDir(),o=!0),o&&this.component.forceUpdate()},e.prototype.calculateDir=function(){var e=this.component.element;e&&e.ownerDocument&&e.ownerDocument.defaultView&&(this.dirCalculated=e.ownerDocument.defaultView.getComputedStyle(e).direction||void 0)},e.prototype.calculatePopupWidth=function(){this.wrapper&&(this.popupWidth=this.wrapper.offsetWidth+"px")},e.prototype.scrollToItem=function(e,t){var n=this.list||this.vs.list;if(n&&e>=0){var r=this.vs,o=r.container||n.parentNode,i=void 0!==t?t:r.enabled;!function(e,t,n,r,o){var i=e.offsetHeight,a=t.children.item(n),l=a.offsetTop+(o?r-e.scrollTop:0),s=a.offsetHeight;if(o){var u=0;l+s>i?u=l+s-i:l<0&&(u=l),0!==u?e.scrollTop+=u:0===e.scrollTop&&0!==r&&(e.scrollTop=r)}else l+s>i+e.scrollTop?e.scrollTop=l+s-i:l<e.scrollTop&&(e.scrollTop-=e.scrollTop-l)}(o,n,e,r.translate,i)}},e.prototype.initState=function(){return{data:{},events:[],syntheticEvent:void 0}},e.prototype.applyState=function(e){var t=this;Object.keys(e.data).length>0&&this.component.setState(e.data);var n={syntheticEvent:e.syntheticEvent,nativeEvent:e.syntheticEvent?e.syntheticEvent.nativeEvent:void 0,target:this.component,value:this.component.value};e.events.forEach((function(e){var r=e.type;delete e.type;var o=r&&t.component.props[r];o&&o.call(void 0,X(X({},n),e))}))},e.prototype.triggerOnPageChange=function(e,t,n){var r=this.component.props.virtual;if(r){var o=Math.min(Math.max(0,t),Math.max(0,r.total-n));o!==r.skip&&e.events.push({type:"onPageChange",page:{skip:o,take:n}})}},e.prototype.triggerPageChangeCornerItems=function(e,t){var n=this.component.props,r=n.data,o=void 0===r?[]:r,i=n.dataItemKey,a=n.virtual,l=void 0!==n.opened?n.opened:this.component.state.opened;e&&a&&this.vs.enabled&&(a.skip>0&&I(e,o[0],i)?this.triggerOnPageChange(t,a.skip-1,a.pageSize):!l&&a.skip+a.pageSize<a.total&&I(e,o[o.length-1],i)&&this.triggerOnPageChange(t,a.skip+1,a.pageSize))},e.prototype.getPopupSettings=function(){return Object.assign({},e.defaultProps.popupSettings,this.component.props.popupSettings)},e.basicPropTypes={opened:i.bool,disabled:i.bool,dir:i.string,tabIndex:i.number,accessKey:i.string,data:i.array,textField:i.string,className:i.string,label:i.string,loading:i.bool,popupSettings:i.shape({animate:i.oneOfType([i.bool,i.shape({openDuration:i.number,closeDuration:i.number})]),popupClass:i.string,className:i.string,appendTo:i.instanceOf(Element),width:i.oneOfType([i.string,i.number]),height:i.oneOfType([i.string,i.number])}),onOpen:i.func,onClose:i.func,onFocus:i.func,onBlur:i.func,onChange:i.func,itemRender:i.func,listNoDataRender:i.func,focusedItemIndex:i.func,header:i.node,footer:i.node},e.propTypes=X(X({},e.basicPropTypes),{value:i.any,defaultValue:i.any,filterable:i.bool,filter:i.string,virtual:i.shape({pageSize:i.number.isRequired,skip:i.number.isRequired,total:i.number.isRequired}),onFilterChange:i.func,onPageChange:i.func}),e.defaultProps={popupSettings:{height:"200px"},required:!1,validityStyles:!0},e}();const Q=$;var J=n(4006),ee={name:"@progress/kendo-react-dropdowns",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1656315160,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"},te=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),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},ne.apply(this,arguments)},re=a.G.sizeMap,oe=a.G.roundedMap,ie=function(e){function t(t){var n=e.call(this,t)||this;return n.state={},n._element=null,n.base=new Q(n),n.searchState={word:"",last:""},n._select=null,n._skipFocusEvent=!1,n._filterInput=null,n._navigated=!1,n.focus=function(){n.base.wrapper&&n.base.wrapper.focus()},n.handleItemSelect=function(e,t){var r=n.props,o=r.data,i=void 0===o?[]:o,a=r.virtual,l=r.dataItemKey,s=r.defaultItem,u=a?a.skip:0,c=-1===e&&void 0!==s?s:i[e-u],d=!I(c,n.value,l);n.triggerOnChange(c,t),d&&n.base.triggerPageChangeCornerItems(c,t)},n.componentRef=function(e){n._element=e,n.base.wrapper=e},n.dummySelect=function(e){return o.createElement("select",{name:n.props.name,ref:function(e){n._select=e},tabIndex:-1,"aria-hidden":!0,title:n.props.label,style:{opacity:0,width:1,border:0,zIndex:-1,position:"absolute",left:"50%"}},o.createElement("option",{value:n.props.valueMap?n.props.valueMap.call(void 0,e):e}))},n.renderListContainer=function(){var e,t=n.props,r=t.header,i=t.footer,a=t.dir,s=t.data,u=void 0===s?[]:s,c=t.size,d=n.base,p=d.getPopupSettings(),f=void 0!==n.props.opened?n.props.opened:n.state.opened,h=void 0!==p.width?p.width:d.popupWidth,m={dir:void 0!==a?a:d.dirCalculated,width:h,popupSettings:{popupClass:(0,l.A)(p.popupClass,"k-list",(e={},e["k-list-".concat(re[c]||c)]=c,e["k-virtual-list"]=n.base.vs.enabled,e)),className:p.className,animate:p.animate,anchor:n.element,show:f,onOpen:n.onPopupOpened,onClose:n.onPopupClosed,appendTo:p.appendTo},itemsCount:[u.length]};return o.createElement(v,ne({},m),n.renderListFilter(),n.renderDefaultItem(),r&&o.createElement("div",{className:"k-list-header"},r),n.renderList(),i&&o.createElement("div",{className:"k-list-footer"},i))},n.renderList=function(){var e=n.props,t=e.data,r=void 0===t?[]:t,i=e.textField,a=e.dataItemKey,l=e.virtual,s=void 0===l?{skip:0}:l,u=e.listNoDataRender,c=e.itemRender,d=n.base.vs,p=s.skip,f=void 0!==n.props.opened?n.props.opened:n.state.opened,h=n.base.getPopupSettings(),m="translateY(".concat(d.translate,"px)");return o.createElement(q,{id:n.base.listBoxId,show:f,data:r.slice(),focusedIndex:n.focusedIndex(),value:n.value,textField:i,valueField:a,optionsGuid:n.base.guid,listRef:function(e){return d.list=n.base.list=e},wrapperStyle:{maxHeight:h.height},wrapperCssClass:"k-list-content",listStyle:d.enabled?{transform:m}:void 0,key:"listkey",skip:p,onClick:n.handleItemClick,itemRender:c,noDataRender:u,onScroll:function(e){d.scrollHandler(e)},wrapperRef:d.scrollerRef,scroller:n.base.renderScrollElement()})},n.renderListFilter=function(){var e=void 0!==n.props.filter?n.props.filter:n.state.text;return n.props.filterable&&o.createElement(E,{value:e,ref:function(e){return n._filterInput=e&&e.input},onChange:n.handleListFilterChange,onKeyDown:n.handleKeyDown,size:n.props.size,rounded:n.props.rounded,fillMode:n.props.fillMode})},n.renderDefaultItem=function(){var e=n.props,t=e.textField,r=e.defaultItem,i=e.dataItemKey;return void 0!==r&&o.createElement(F,{defaultItem:r,textField:t,selected:I(n.value,r,i),key:"defaultitemkey",onClick:n.handleDefaultItemClick})},n.search=function(e){clearTimeout(n._typingTimeout),n.props.filterable||(n._typingTimeout=window.setTimeout((function(){return n.searchState.word=""}),n.props.delay),n.selectNext(e))},n.selectNext=function(e){var t,r=n.props,o=r.data,i=void 0===o?[]:o,a=r.dataItemKey,l=i.map((function(e,t){return{item:e,itemIndex:t}})),s=n.searchState.word,u=n.searchState.last,c=function(e,t){for(var n=0;n<e.length;n++)if(e.charAt(n)!==t)return!1;return!0}(s,u),d=l.length,p=Math.max(0,i.findIndex((function(e){return I(e,n.value,a)})));n.props.defaultItem&&(t={item:n.props.defaultItem,itemIndex:-1},d+=1,p+=1),l=function(e,t,n){var r=e;return n&&(r=[n].concat(r)),r.slice(t).concat(r.slice(0,t))}(l,p+=c?1:0,t);for(var f,h,m,v=0,g=n.props,y=g.textField,b=g.ignoreCase;v<d;v++)if(f=D(l[v].item,y),h=c&&k(f,u,b),m=k(f,s,b),h||m){v=l[v].itemIndex;break}if(v!==d){var C=n.base.initState();C.syntheticEvent=e,n.handleItemSelect(v,C),n.applyState(C),n._valueDuringOnChange=void 0}},n.handleKeyDown=function(e){var t=n.props,r=t.data,o=void 0===r?[]:r,i=t.filterable,a=t.disabled,l=t.leftRightKeysNavigation,u=void 0===l||l,c=t.virtual,d=void 0===c?{skip:0,total:0,pageSize:0}:c,p=void 0!==n.props.opened?n.props.opened:n.state.opened,f=e.keyCode,h=f===s.R.home||f===s.R.end,m=f===s.R.up||f===s.R.down,v=!p&&(e.altKey&&f===s.R.down||f===s.R.enter||f===s.R.space),g=p&&(e.altKey&&f===s.R.up||f===s.R.esc),y=u&&(f===s.R.left||f===s.R.right),b=m||!i&&(y||h),C=n.base.initState();if(C.syntheticEvent=e,!a){if(h&&n.base.vs.enabled)f===s.R.home?0!==d.skip?(n.base.triggerOnPageChange(C,0,d.pageSize),n._navigated=!0):n.triggerOnChange(o[0],C):d.skip<d.total-d.pageSize?(n.base.triggerOnPageChange(C,d.total-d.pageSize,d.pageSize),n._navigated=!0):n.triggerOnChange(o[o.length-1],C);else if(p&&f===s.R.enter){var E=n.focusedIndex();void 0!==E&&n.handleItemSelect(E,C),n.base.togglePopup(C),e.preventDefault()}else v||g?(n.base.togglePopup(C),e.preventDefault()):b&&(n.onNavigate(C,f),e.preventDefault());n.applyState(C)}},n.handleItemClick=function(e,t){n.base.handleItemClick(e,t),n._valueDuringOnChange=void 0},n.handleFocus=function(e){n._skipFocusEvent||n.base.handleFocus(e)},n.handleBlur=function(e){if(!n._skipFocusEvent&&n.state.focused){var t=void 0!==n.props.opened?n.props.opened:n.state.opened,r=n.base.initState();r.syntheticEvent=e,r.data.focused=!1,r.events.push({type:"onBlur"}),t&&n.base.togglePopup(r),n.applyState(r)}},n.handleDefaultItemClick=function(e){var t=n.base.initState();t.syntheticEvent=e,n.base.togglePopup(t),n.triggerOnChange(n.props.defaultItem,t),n.applyState(t)},n.handleWrapperClick=function(e){if(!e.isPropagationStopped()){var t=n.base.initState();t.syntheticEvent=e,n.state.focused||(t.data.focused=!0),n.base.togglePopup(t),n.applyState(t)}},n.handleKeyPress=function(e){if(!n.props.filterable&&0!==e.which&&e.keyCode!==s.R.enter){var t=String.fromCharCode(e.charCode||e.keyCode);n.props.ignoreCase&&(t=t.toLowerCase())," "===t&&e.preventDefault(),n.searchState={word:n.searchState.word+t,last:n.searchState.last+t},n.search(e)}},n.handleListFilterChange=function(e){var t=n.base.initState();t.syntheticEvent=e,void 0===n.props.filter&&(t.data.text=e.target.value),n.base.filterChanged(e.target.value,t),n.applyState(t)},n.onPopupOpened=function(){n._filterInput&&n.focusElement(n._filterInput)},n.onPopupClosed=function(){n.state.focused&&window.setTimeout((function(){n.state.focused&&n.base.wrapper&&n.focusElement(n.base.wrapper)}))},n.setValidity=function(){n._select&&n._select.setCustomValidity&&n._select.setCustomValidity(n.validity.valid?"":n.props.validationMessage||"Please select a value from the list!")},(0,J.s)(ee),n}return te(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){var e;return void 0!==this._valueDuringOnChange?e=this._valueDuringOnChange:void 0!==this.props.value?e=this.props.value:void 0!==this.state.value?e=this.state.value:void 0!==this.props.defaultValue&&(e=this.props.defaultValue),w(e)||void 0===this.props.defaultItem||(e=this.props.defaultItem),e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){var e=this.props,t=e.data,n=void 0===t?[]:t,r=e.dataItemKey,o=this.value;return n.findIndex((function(e){return I(e,o,r)}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){var e=void 0!==this.props.validationMessage,t=!this.required||null!==this.value&&""!==this.value&&void 0!==this.value;return{customError:e,valid:void 0!==this.props.valid?this.props.valid:t,valueMissing:null===this.value}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:t.defaultProps.required},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(e,t){var n=this.props,r=n.data,o=void 0===r?[]:r,i=n.dataItemKey,a=n.virtual,l=e.virtual?e.virtual.total:0,s=void 0!==this.props.opened?this.props.opened:this.state.opened,u=void 0!==e.opened?e.opened:t.opened,c=!u&&s;if(this.base.getPopupSettings().animate||c&&this.onPopupOpened(),a&&a.total!==l)this.base.vs.calcScrollElementHeight(),this.base.vs.reset();else{var d=this.value,p=void 0!==e.value?e.value:t.value,f=o.findIndex((function(e){return I(e,d,i)})),h=!I(p,d,i);c&&a?this.base.scrollToVirtualItem(a,f):c&&!a||s&&u&&d&&h&&!this._navigated?this.base.scrollToItem(f):s&&u&&this._navigated&&(this._navigated&&a&&0===a.skip?this.base.vs.reset():this._navigated&&a&&a.skip===a.total-a.pageSize&&this.base.vs.scrollToEnd())}this._navigated=!1,this.setValidity()},t.prototype.componentDidMount=function(){this.base.didMount(),this.setValidity()},t.prototype.render=function(){var e,t,n=this.props,r=n.style,i=n.className,a=n.label,s=n.dir,c=n.virtual,p=n.size,f=n.rounded,h=n.fillMode,m=void 0!==this.props.opened?this.props.opened:this.state.opened,v=this.value,g=D(v,this.props.textField),y=!this.validityStyles||this.validity.valid,b=this.base;b.vs.enabled=void 0!==c,void 0!==c&&(b.vs.skip=c.skip,b.vs.total=c.total,b.vs.pageSize=c.pageSize);var C=this.props,E=C.dataItemKey,w=C.data,k=void 0===w?[]:w,S=C.disabled,O=C.tabIndex,x=C.loading,T=C.iconClassName,R=C.valueRender,M=this.state.focused,P=k.findIndex((function(e){return I(e,v,E)})),N=o.createElement("span",{className:"k-input-inner"},o.createElement("span",{className:"k-input-value-text"},g)),F=void 0!==R?R.call(void 0,N,v):N,A=o.createElement("span",{ref:this.componentRef,className:(0,l.A)("k-dropdownlist k-picker",i,(e={},e["k-picker-".concat(re[p]||p)]=p,e["k-rounded-".concat(oe[f]||f)]=f,e["k-picker-".concat(h)]=h,e["k-focus"]=M,e["k-disabled"]=S,e["k-invalid"]=!y,e["k-loading"]=x,e["k-required"]=this.required,e)),style:a?ne(ne({},r),{width:void 0}):r,dir:s,onMouseDown:m?_:void 0,onFocus:this.handleFocus,onBlur:this.handleBlur,tabIndex:(0,u.p)(O,S),accessKey:this.props.accessKey,onKeyDown:this.handleKeyDown,onKeyPress:this.handleKeyPress,onClick:S?void 0:this.handleWrapperClick,role:"listbox","aria-required":this.required,"aria-disabled":S||void 0,"aria-haspopup":!0,"aria-expanded":m||!1,"aria-owns":this.base.listBoxId,"aria-activedescendant":m?"option-"+this.base.guid+"-"+(P+(c?c.skip:0)):void 0,"aria-label":this.props.ariaLabel||this.props.label,"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,id:this.props.id,title:this.props.title},F,x&&o.createElement("span",{className:"k-icon k-i-loading k-input-loading-icon",key:"loading"}),o.createElement("button",{tabIndex:-1,type:"button","aria-hidden":!0,className:(0,l.A)("k-input-button k-button k-icon-button",(t={},t["k-button-".concat(re[p]||p)]=p,t["k-button-".concat(h)]=h,t["k-button-".concat(h,"-base")]=h,t)),onMouseDown:function(e){return e.preventDefault()}},o.createElement("span",{className:(0,l.A)("k-button-icon k-icon k-i-arrow-s",T)})),this.dummySelect(v),this.renderListContainer());return a?o.createElement(d._,{label:a,editorValue:g,editorValid:y,editorDisabled:this.props.disabled,style:{width:r?r.width:void 0},children:A}):A},t.prototype.onNavigate=function(e,t){var n=this.props,r=n.data,o=void 0===r?[]:r,i=n.defaultItem,a=n.dataItemKey,l=n.virtual,s=void 0===l?{skip:0,total:0,pageSize:0}:l,u=this.base.vs,c=this.value,d=o.findIndex((function(e){return I(e,c,a)})),p=this.base.navigation.navigate({current:s.skip+d,max:(u.enabled?s.total:o.length)-1,min:void 0!==i?-1:0,keyCode:t});void 0!==p&&this.handleItemSelect(p,e),this.applyState(e)},t.prototype.focusedIndex=function(){var e=w(this.props.filter)?this.props.filter:this.state.text,t=this.props,n=t.data,r=void 0===n?[]:n,o=t.virtual,i=void 0===o?{skip:0}:o,a=t.dataItemKey,l=t.textField,s=t.focusedItemIndex,u=this.value,c=!(r.findIndex((function(e){return I(e,u,a)}))<0&&!this.props.defaultItem);return!c&&e&&0===i.skip?s?s(r,e,l):r.indexOf(T(r,e,l)):c||0!==i.skip?void 0:0},t.prototype.focusElement=function(e){var t=this;this._skipFocusEvent=!0,e.focus(),window.setTimeout((function(){return t._skipFocusEvent=!1}),30)},t.prototype.triggerOnChange=function(e,t){I(this.value,e,this.props.dataItemKey)||(void 0===this.props.value&&(t.data.value=e),this._valueDuringOnChange=e,t.events.push({type:"onChange"}))},t.prototype.applyState=function(e){this.base.applyState(e),this._valueDuringOnChange=void 0},t.displayName="DropDownList",t.propTypes=ne({delay:i.number,ignoreCase:i.bool,iconClassName:i.string,defaultItem:i.any,valueRender:i.func,valueMap:i.func,validationMessage:i.string,required:i.bool,id:i.string,ariaLabelledBy:i.string,ariaDescribedBy:i.string,ariaLabel:i.string,leftRightKeysNavigation:i.bool,title:i.string},Q.propTypes),t.defaultProps=ne(ne({delay:500,tabIndex:0,ignoreCase:!0},Q.defaultProps),{required:!1,size:"medium",rounded:"medium",fillMode:"solid"}),t}(o.Component),ae=(0,c.Y)(),le=(0,c.u)(ae,ie);le.displayName="KendoReactDropDownList";var se=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ue=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._input=null,t}return se(t,e),Object.defineProperty(t.prototype,"input",{get:function(){return this._input},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(e){var t=e.value,n=e.suggestedText,r=this.props,o=r.value,i=r.suggestedText,a=r.focused,l=this.input,s=t!==o||i!==n,u=s&&t.startsWith(o)&&!(n&&i&&n.endsWith(i));a&&l&&document.activeElement!==l&&l.focus(),i&&s&&!u&&l&&l.setSelectionRange(o.length-i.length,o.length)},t.prototype.render=function(){var e=this,t=this.props,n=t.expanded,r=void 0!==n&&n,i=t.disabled,a=t.role,l=void 0===a?"listbox":a,s=t.render,u=o.createElement("input",{autoComplete:"off",id:this.props.id,type:"text",key:"searchbar",size:this.props.size,placeholder:this.props.placeholder,className:"k-input-inner",tabIndex:this.props.tabIndex,accessKey:this.props.accessKey,role:l,name:this.props.name,value:this.props.value,onChange:this.props.onChange,ref:function(t){return e._input=t},onKeyDown:this.props.onKeyDown,onFocus:this.props.onFocus,onBlur:this.props.onBlur,"aria-disabled":i||void 0,disabled:i||void 0,readOnly:this.props.readOnly||void 0,"aria-haspopup":"listbox","aria-expanded":r,"aria-owns":this.props.owns,"aria-activedescendant":r?this.props.activedescendant:void 0,"aria-describedby":this.props.ariaDescribedBy,"aria-labelledby":this.props.ariaLabelledBy});return s?s.call(void 0,u):u},t}(o.Component);const ce=ue;var de=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),pe=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseDown=function(e){return e.preventDefault()},t}return de(t,e),t.prototype.render=function(){var e=(0,z.provideLocalizationService)(this).toLanguageString(H,U[H]);return o.createElement("span",{className:"k-clear-value",role:"button",onClick:this.props.onClick,onMouseDown:this.onMouseDown,tabIndex:-1,title:e,key:"clearbutton"},o.createElement("span",{className:"k-icon k-i-x"}))},t}(o.Component);const fe=pe;(0,z.registerForLocalization)(pe);var he=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),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},me.apply(this,arguments)},ve=a.G.sizeMap,ge=a.G.roundedMap,ye=function(e){function t(t){var n=e.call(this,t)||this;return n.state={},n.base=new Q(n),n._element=null,n._inputId=(0,Z.M)(),n._suggested="",n._input=null,n.itemHeight=0,n.focus=function(){n._input&&n._input.focus()},n.handleItemSelect=function(e,t){var r=n.props,o=r.data,i=void 0===o?[]:o,a=r.virtual,l=r.dataItemKey,s=i[e-(a?a.skip:0)],u=!I(s,n.value,l);n.triggerOnChange(s,t),void 0!==n.state.text&&(t.data.text=void 0),u&&n.base.triggerPageChangeCornerItems(s,t)},n.componentRef=function(e){n._element=e,n.base.wrapper=e},n.toggleBtnClick=function(e){var t=n.base.initState();t.syntheticEvent=e,n.base.togglePopup(t),n.applyState(t)},n.onScroll=function(e){var t=n.base,r=t.vs,o=t.list;r.scrollHandler(e);var i=n.props,a=i.data,l=void 0===a?[]:a,s=i.groupField;if(s&&l.length){for(var u=n.itemHeight=n.itemHeight||(r.enabled?r.itemHeight:o?o.children[0].offsetHeight:0),c=e.target.scrollTop-r.skip*u,d=l[0][s],p=1;p<l.length&&!(u*p>c);p++)l[p]&&l[p][s]&&(d=l[p][s]);d!==n.state.group&&(n.setState({group:d}),n.props.onGroupScroll&&n.props.onGroupScroll.call(void 0,{group:d}))}},n.handleItemClick=function(e,t){n.base.handleItemClick(e,t),n._valueDuringOnChange=void 0},n.handleBlur=function(e){if(n.state.focused){var t=n.base.initState();t.data.focused=!1,t.events.push({type:"onBlur"}),t.syntheticEvent=e,n.applyValueOnRejectSuggestions(e.currentTarget.value,t)}},n.onInputKeyDown=function(e){var t=e.keyCode,r=void 0!==n.props.opened?n.props.opened:n.state.opened,o=n.base.initState();if(o.syntheticEvent=e,!e.altKey&&(t===s.R.up||t===s.R.down))return e.preventDefault(),n.onNavigate(o,t),void n.applyState(o);var i=function(){e.preventDefault(),n.base.togglePopup(o),n.applyState(o)};r?e.altKey&&t===s.R.up?i():t===s.R.enter?(e.preventDefault(),n.applyValueOnEnter(e.currentTarget.value,o)):t===s.R.esc&&n.applyValueOnRejectSuggestions(e.currentTarget.value,o):e.altKey&&t===s.R.down&&i()},n.inputOnChange=function(e){var t=n.base.initState();t.syntheticEvent=e;var r=void 0!==n.props.opened?n.props.opened:n.state.opened,o=e.currentTarget,i=o.value;if(n.props.suggest){var a=o.selectionEnd===i.length,l=void 0!==n.props.filter?n.props.filter:n.state.text;w(l)||(l=D(n.value,n.props.textField)||"");var s=l&&l===i,u=l&&l.length>i.length;s||u||!a?n._suggested="":n.suggestValue(i)}void 0===n.props.filter&&(t.data.text=i),void 0!==n.state.focusedItem&&(t.data.focusedItem=void 0),r||n.base.togglePopup(t),n.base.filterChanged(i,t),n.applyState(t)},n.clearButtonClick=function(e){var t=n.base.initState();t.syntheticEvent=e,e.stopPropagation(),n._suggested="",n.base.filterChanged("",t),void 0===n.props.filter&&void 0!==n.state.text&&(t.data.text=void 0),n.triggerOnChange(null,t),(void 0!==n.props.opened?n.props.opened:n.state.opened)&&n.base.togglePopup(t),n.applyState(t)},n.setValidity=function(){n._input&&n._input.setCustomValidity&&n._input.setCustomValidity(n.validity.valid?"":n.props.validationMessage||"Please enter a valid value!")},(0,J.s)(ee),n}return he(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,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:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){var e=this.props,t=e.data,n=void 0===t?[]:t,r=e.dataItemKey,o=this.value;return n.findIndex((function(e){return I(e,o,r)}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){var e=void 0!==this.props.validationMessage,t=!this.required||null!==this.value&&""!==this.value&&void 0!==this.value;return{customError:e,valid:void 0!==this.props.valid?this.props.valid:t,valueMissing:null===this.value}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:t.defaultProps.required},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(e,t){var n=this.props,r=n.data,o=void 0===r?[]:r,i=n.dataItemKey,a=n.virtual,l=e.virtual?e.virtual.total:0,s=void 0!==this.props.opened?this.props.opened:this.state.opened,u=void 0!==e.opened?e.opened:t.opened,c=!u&&s,d=this.value;if(this._valueOnDidUpdate=d,a&&a.total!==l)this.base.vs.calcScrollElementHeight(),this.base.vs.reset();else{var p=void 0!==e.value?e.value:t.value,f=o.findIndex((function(e){return I(e,d,i)})),h=!I(p,d,i);c&&a?this.base.scrollToVirtualItem(a,f):(c&&!a||s&&u&&d&&h)&&this.base.scrollToItem(f)}c&&this._input&&this._input.focus(),this.setValidity()},t.prototype.componentDidMount=function(){this.base.didMount(),this.setValidity()},t.prototype.render=function(){var e,n,r=this.props,i=r.dir,a=r.disabled,s=r.clearButton,u=void 0===s?t.defaultProps.clearButton:s,c=r.label,p=r.textField,f=r.className,h=r.style,m=r.loading,v=r.iconClassName,g=r.virtual,y=r.size,b=r.rounded,C=r.fillMode,E=!this.validityStyles||this.validity.valid,k=void 0!==this.props.filter?this.props.filter:this.state.text,S=D(this.value,p),O=w(k)?k:S,x=u&&(!!O||w(this.value)),I=this.base.vs,T=this.props.id||this._inputId;I.enabled=void 0!==g,void 0!==g&&(I.skip=g.skip,I.total=g.total,I.pageSize=g.pageSize);var _=o.createElement("span",{className:(0,l.A)("k-combobox k-input",(e={},e["k-input-".concat(ve[y]||y)]=y,e["k-rounded-".concat(ge[b]||b)]=b,e["k-input-".concat(C)]=C,e["k-invalid"]=!E,e["k-loading"]=m,e["k-required"]=this.required,e["k-disabled"]=a,e),f),ref:this.componentRef,style:c?me(me({},h),{width:void 0}):h,dir:i},this.renderSearchBar(O||"",T),x&&!m&&o.createElement(fe,{onClick:this.clearButtonClick,key:"clearbutton"}),m&&o.createElement("span",{className:"k-icon k-i-loading k-input-loading-icon",key:"loading"}),o.createElement("button",{tabIndex:-1,type:"button",className:(0,l.A)("k-input-button k-button k-icon-button",(n={},n["k-button-".concat(ve[y]||y)]=y,n["k-button-".concat(C)]=C,n["k-button-".concat(C,"-base")]=C,n)),onClick:this.toggleBtnClick,onMouseDown:function(e){return e.preventDefault()}},o.createElement("span",{className:(0,l.A)("k-button-icon k-icon k-i-arrow-s",v)})),this.renderListContainer());return c?o.createElement(d._,{label:c,editorId:T,editorValue:O,editorValid:E,editorDisabled:a,style:{width:h?h.width:void 0},children:_}):_},t.prototype.onNavigate=function(e,t){var n=this.props,r=n.data,o=void 0===r?[]:r,i=n.virtual,a=void 0===i?{skip:0}:i,l=this.props.filter?this.props.filter:this.state.text,s=this.getFocusedIndex(),u=this.base.vs,c=this.value;if(this._suggested="",-1===s||w(c))if(""===l)this.handleItemSelect(0,e);else{var d=a.skip+s,p=this.base.navigation.navigate({keyCode:t,current:d,max:(u.enabled?u.total:o.length)-1,min:0});void 0!==p&&this.handleItemSelect(p,e)}else this.handleItemSelect(s,e)},t.prototype.applyValueOnEnter=function(e,t){var n,r=this.props,o=r.data,i=void 0===o?[]:o,a=r.textField,l=r.allowCustom,s=void 0!==this.props.opened?this.props.opened:this.state.opened,u=D(this.value,a)===e?this.index:O(i,e,a),c=-1!==u,d=void 0;if(this._suggested="",c)d=i[u];else{if(!l)return this.selectFocusedItem(e,t);d=void 0!==a?((n={})[a]=e,n):e}this.triggerOnChange(d,t),s&&this.base.togglePopup(t),void 0===this.props.filter&&void 0!==this.state.text&&(t.data.text=void 0),this.applyState(t)},t.prototype.applyValueOnRejectSuggestions=function(e,t){var n,r=this.props,o=r.data,i=void 0===o?[]:o,a=r.textField,l=r.allowCustom,s=void 0!==this.props.opened?this.props.opened:this.state.opened,u=D(this.value,a);if(this._suggested="",e===u||""===e&&!w(u))return s&&this.base.togglePopup(t),this.applyState(t);var c=O(i,e,a,!0),d=null;-1!==c?d=i[c]:l&&(d=e?a?((n={})[a]=e,n):e:null),this.triggerOnChange(d,t),void 0!==this.state.text&&(t.data.text=void 0,this.base.filterChanged("",t)),s&&this.base.togglePopup(t),this.applyState(t)},t.prototype.selectFocusedItem=function(e,t){var n=void 0!==this.props.opened?this.props.opened:this.state.opened,r=this.props,o=r.data,i=void 0===o?[]:o,a=r.textField,l=r.virtual,s=void 0===l?{skip:0}:l,u=r.focusedItemIndex,c=void 0===u?S:u,d=s.skip,p=""===e&&0===d?0:c(i,e,a);return-1!==p?this.handleItemSelect(p+d,t):(this.triggerOnChange(null,t),void 0!==this.state.text&&(t.data.text=void 0)),n&&this.base.togglePopup(t),this.applyState(t)},t.prototype.renderListContainer=function(){var e,t=this.base,n=this.props,r=n.dir,i=n.header,a=n.footer,s=n.data,u=void 0===s?[]:s,c=n.groupField,d=n.size,p=n.list,f=n.virtual,h=void 0!==this.props.opened?this.props.opened:this.state.opened,m=t.getPopupSettings(),g=void 0!==m.width?m.width:t.popupWidth,y=this.state.group;return void 0===y&&void 0!==c&&(y=D(u[0],c)),o.createElement(v,{width:g,popupSettings:{animate:m.animate,anchor:this.element,show:h,popupClass:(0,l.A)(m.popupClass,"k-reset"),className:m.className,appendTo:m.appendTo},dir:void 0!==r?r:this.base.dirCalculated,itemsCount:[u.length]},o.createElement("div",{className:(0,l.A)((e={},e["k-list"]=!p,e["k-list-".concat(ve[d]||d)]=!p&&d,e["k-virtual-list"]=f,e["k-data-table"]=p,e["k-table-".concat(ve[d]||d)]=p&&d,e))},i&&o.createElement("div",{className:"k-table-header"},i),!p&&y&&o.createElement("div",{className:"k-list-group-sticky-header"},y),this.renderList(),a&&o.createElement("div",{className:"k-list-footer"},a)))},t.prototype.renderList=function(){var e,t=this,n=this.base,r=this.props,i=r.textField,a=r.dataItemKey,s=r.listNoDataRender,u=r.itemRender,c=r.data,d=void 0===c?[]:c,p=r.virtual,f=void 0===p?{skip:0}:p,h=n.getPopupSettings(),m=n.vs,v=f.skip,g=void 0!==this.props.opened?this.props.opened:this.state.opened,y="translateY(".concat(m.translate,"px)"),b=g?this.getFocusedIndex():void 0,C=void 0!==this.props.filter?this.props.filter:this.state.text,E=D(this.value,i),k=w(C)&&C!==E?null:this.value,S=this.props.list||q;return o.createElement(S,{id:n.listBoxId,virtual:Boolean(f),show:g,data:d,focusedIndex:b,value:k,textField:i,valueField:a,groupField:this.props.groupField,optionsGuid:n.guid,listRef:function(e){m.list=t.base.list=e,t.itemHeight=0},wrapperStyle:{maxHeight:h.height},wrapperCssClass:(0,l.A)("k-list-content",(e={},e["k-list-scroller"]=!f,e["k-virtual-content"]=f,e)),listStyle:m.enabled?{transform:y}:void 0,key:"listkey",skip:v,onClick:this.handleItemClick,itemRender:u,noDataRender:s,onMouseDown:function(e){return e.preventDefault()},onScroll:this.onScroll,wrapperRef:m.scrollerRef,scroller:this.base.renderScrollElement()})},t.prototype.renderSearchBar=function(e,t){var n=this,r=this.props,i=r.placeholder,a=r.tabIndex,l=r.disabled,s=r.data,u=void 0===s?[]:s,c=r.dataItemKey,d=r.virtual,p=void 0===d?{skip:0}:d,f=void 0!==this.props.opened?this.props.opened:this.state.opened,h=this.value,m=Math.max(0,u.findIndex((function(e){return I(e,h,c)})));return this._suggested&&!I(this._valueOnDidUpdate,h,c)&&(this._suggested=""),o.createElement(ce,{id:t,placeholder:i,tabIndex:a||void 0,accessKey:this.props.accessKey,value:e+this._suggested,suggestedText:this._suggested,ref:function(e){return n._input=e&&e.input},onKeyDown:this.onInputKeyDown,onChange:this.inputOnChange,onFocus:this.base.handleFocus,onBlur:this.handleBlur,disabled:l,expanded:f,owns:this.base.listBoxId,activedescendant:"option-".concat(this.base.guid,"-").concat(m+p.skip),role:"combobox",ariaLabelledBy:this.props.ariaLabelledBy,ariaDescribedBy:this.props.ariaDescribedBy,render:this.props.valueRender})},t.prototype.triggerOnChange=function(e,t){var n=this.value;!w(n)&&!w(e)||I(n,e,this.props.dataItemKey)||(void 0===this.props.value&&(t.data.value=e),this._valueDuringOnChange=e,t.events.push({type:"onChange"}))},t.prototype.getFocusedIndex=function(){var e=this.value,t=this.props,n=t.data,r=void 0===n?[]:n,o=t.textField,i=t.dataItemKey,a=t.virtual,l=void 0===a?{skip:0}:a,s=t.focusedItemIndex,u=void 0===s?S:s,c=this.props.filter?this.props.filter:this.state.text;return w(e)&&void 0===c?r.findIndex((function(t){return I(t,e,i)})):c?u(r,c,o):0===l.skip?0:-1},t.prototype.suggestValue=function(e){var t=this.props,n=t.data,r=t.textField;this._suggested=function(e,t,n){void 0===t&&(t=[]);var r="";if(e){var o=t[S(t,e,n)];if(o){var i=D(o,n);e.toLowerCase()!==i.toLowerCase()&&(r=i.substring(e.length))}}return r}(e,n,r)},t.prototype.applyState=function(e){this.base.applyState(e),this._valueDuringOnChange=void 0},t.displayName="ComboBox",t.propTypes=me(me({},Q.propTypes),{size:i.oneOf([null,"small","medium","large"]),rounded:i.oneOf([null,"small","medium","large","full"]),fillMode:i.oneOf([null,"solid","flat","outline"]),dataItemKey:i.string,groupField:i.string,suggest:i.bool,placeholder:i.string,allowCustom:i.bool,clearButton:i.bool,iconClassName:i.string,validationMessage:i.string,required:i.bool,id:i.string,ariaLabelledBy:i.string,ariaDescribedBy:i.string,list:i.any,valueRender:i.func}),t.defaultProps=me(me({},Q.defaultProps),{size:"medium",rounded:"medium",fillMode:"solid",allowCustom:!1,clearButton:!0,required:!1}),t}(o.Component),be=(0,c.Y)(),Ce=(0,c.u)(be,ye);Ce.displayName="KendoReactComboBox";var Ee=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),we=function(){return we=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},we.apply(this,arguments)},ke=a.G.sizeMap,Se=a.G.roundedMap,Oe=function(e){function t(t){var n=e.call(this,t)||this;return n.state={},n.base=new Q(n),n._element=null,n._inputId=(0,Z.M)(),n._suggested="",n._input=null,n.focus=function(){n._input&&n._input.focus()},n.handleItemSelect=function(e,t){var r=n.props.data,o=D((void 0===r?[]:r)[e],n.props.textField);n.triggerOnChange(o,t)},n.itemFocus=function(e,t){var r=n.props,o=r.data,i=void 0===o?[]:o,a=r.textField,l=i[e];I(n.state.focusedItem,l,a)||(t.data.focusedItem=l)},n.togglePopup=function(e){n.base.togglePopup(e)},n.setValidity=function(){n._input&&n._input.setCustomValidity&&n._input.setCustomValidity(n.validity.valid?"":n.props.validationMessage||"Please enter a valid value!")},n.handleItemClick=function(e,t){n.base.handleItemClick(e,t),n._valueDuringOnChange=void 0},n.onChangeHandler=function(e){var t=n.base.initState(),r=e.currentTarget,o=r.value,i=r.selectionEnd===o.length;t.syntheticEvent=e;var a=n._suggested,l=n.value,s=l&&l.substring(0,l.length-a.length),u=s&&s===o,c=s&&s.length>o.length,d=n.props.suggest,p=void 0!==n.props.opened?n.props.opened:n.state.opened;if(void 0!==d&&!1!==d){u||c||!i?n._suggested="":n.suggestValue(o);var f=o+n._suggested,h={userInput:o,value:n._suggested};n.triggerOnChange(f,t,{suggestion:h})}else n._suggested="",n.triggerOnChange(o,t);(!p&&o||p&&!o)&&n.togglePopup(t),t.data.focusedItem=void 0,n.applyState(t)},n.clearButtonClick=function(e){var t=n.base.initState(),r=void 0!==n.props.opened?n.props.opened:n.state.opened;t.syntheticEvent=e,n._suggested="",n.triggerOnChange("",t),void 0!==n.state.focusedItem&&(t.data.focusedItem=void 0),r&&n.togglePopup(t),n.applyState(t)},n.onInputKeyDown=function(e){var t=e.keyCode,r=void 0!==n.props.opened?n.props.opened:n.state.opened,o=n.base.initState();o.syntheticEvent=e;var i=function(){r&&e.preventDefault()};t===s.R.enter||t===s.R.esc?(i(),n.applyInputValue(e.currentTarget.value,o,e.keyCode)):t!==s.R.up&&t!==s.R.down||(i(),n.onNavigate(o,t))},n.handleBlur=function(e){if(n.state.focused){var t=n.base.initState();t.data.focused=!1,t.events.push({type:"onBlur"}),t.syntheticEvent=e,n.applyInputValue(e.currentTarget.value,t)}},(0,J.s)(ee),n}return Ee(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,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:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){var e=void 0!==this.props.validationMessage,t=!this.required||""!==this.value;return{customError:e,valid:void 0!==this.props.valid?this.props.valid:t,valueMissing:null===this.value}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:t.defaultProps.required},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(e,t){var n=this.props.data,r=void 0===n?[]:n,o=e.data,i=void 0===o?[]:o,a=this.focusedIndex(),l=r[a],s=i!==r,u=void 0!==l&&t.focusedItem!==l,c=void 0!==this.props.opened?this.props.opened:this.state.opened,d=void 0!==e.opened?e.opened:t.opened;(c&&(u||s)||!d&&c)&&this.base.scrollToItem(a),this.setValidity()},t.prototype.componentDidMount=function(){this.base.didMount(),this.setValidity()},t.prototype.render=function(){var e,t=this,n=this.props,r=n.dir,i=n.disabled,a=n.label,s=n.className,u=n.style,c=n.loading,p=n.suggest,f=n.size,h=n.rounded,m=n.fillMode,v=!this.validityStyles||this.validity.valid,g=this.base,y=this.value,b=!1!==this.props.clearButton&&!c&&!!y,C=this.props.id||this._inputId;"string"==typeof p&&(this._suggested=p);var E=o.createElement("span",{className:(0,l.A)("k-autocomplete k-input",s,(e={},e["k-input-".concat(ke[f]||f)]=f,e["k-rounded-".concat(Se[h]||h)]=h,e["k-input-".concat(m)]=m,e["k-invalid"]=!v,e["k-loading"]=c,e["k-required"]=this.required,e["k-disabled"]=i,e)),ref:function(e){t._element=e,g.wrapper=e},style:a?we(we({},u),{width:void 0}):u,dir:r},this.renderSearchBar(y||"",C),c&&o.createElement("span",{className:"k-icon k-i-loading k-input-loading-icon"}),b&&!c&&o.createElement(fe,{onClick:this.clearButtonClick,key:"clearbutton"}),this.renderListContainer());return a?o.createElement(d._,{label:a,editorId:C,editorValue:y,editorValid:v,editorDisabled:i,style:{width:u?u.width:void 0},children:E}):E},t.prototype.onNavigate=function(e,t){var n=this,r=this.value,o=this.props,i=o.data,a=void 0===i?[]:i,l=o.textField,s=o.focusedItemIndex,u=void 0!==this.state.focusedItem?a.findIndex((function(e){return I(e,n.state.focusedItem,l)})):s?s(a,r,l):a.indexOf(T(a,r,l)),c=this.base.navigation.navigate({keyCode:t,current:u,max:a.length-1,min:0});void 0!==c&&this.itemFocus(c,e),this.applyState(e)},t.prototype.applyInputValue=function(e,t,n){var r=void 0!==this.props.opened?this.props.opened:this.state.opened,o=this.props,i=o.data,a=void 0===i?[]:i,l=o.textField;if(this._suggested="",r&&n===s.R.enter){var u=D(a[this.focusedIndex(e)],l);this.triggerOnChange(u,t)}r&&this.togglePopup(t),this.applyState(t)},t.prototype.renderSearchBar=function(e,t){var n=this,r=this.base,i=this.props,a=i.placeholder,l=i.tabIndex,s=i.disabled,u=i.readonly,c=this.state.focused,d=void 0!==this.props.opened?this.props.opened:this.state.opened;return o.createElement(ce,{id:t,placeholder:a,tabIndex:l||void 0,accessKey:this.props.accessKey,value:e,suggestedText:this._suggested,focused:c,name:this.props.name,ref:function(e){return n._input=e&&e.input},onKeyDown:this.onInputKeyDown,onChange:this.onChangeHandler,onFocus:r.handleFocus,onBlur:this.handleBlur,disabled:s,readOnly:u,expanded:d,owns:r.listBoxId,activedescendant:"option-"+r.guid+"-"+this.focusedIndex(),role:"combobox",ariaLabelledBy:this.props.ariaLabelledBy,ariaDescribedBy:this.props.ariaDescribedBy,render:this.props.valueRender})},t.prototype.renderListContainer=function(){var e,t=this.base,n=this.props,r=n.dir,i=n.header,a=n.footer,s=n.data,u=void 0===s?[]:s,c=n.size,d=t.getPopupSettings(),p=void 0!==this.props.opened?this.props.opened:this.state.opened,f=void 0!==d.width?d.width:t.popupWidth;return o.createElement(v,{width:f,popupSettings:{animate:d.animate,anchor:this.element,show:p,popupClass:(0,l.A)(d.popupClass,"k-list",(e={},e["k-list-".concat(ke[c]||c)]=c,e)),className:d.className,appendTo:d.appendTo},dir:void 0!==r?r:this.base.dirCalculated,itemsCount:[u.length]},i&&o.createElement("div",{className:"k-list-header"},i),this.renderList(),a&&o.createElement("div",{className:"k-list-footer"},a))},t.prototype.renderList=function(){var e=this.base,t=e.getPopupSettings(),n=this.props,r=n.textField,i=n.data,a=void 0===i?[]:i,l=n.listNoDataRender,s=n.itemRender,u=this.value,c=void 0!==this.props.opened?this.props.opened:this.state.opened;return o.createElement(q,{id:e.listBoxId,show:c,data:a.slice(),focusedIndex:this.focusedIndex(),value:u,textField:r,valueField:r,highlightSelected:!1,optionsGuid:e.guid,listRef:function(t){return e.list=t},wrapperStyle:{maxHeight:t.height},wrapperCssClass:"k-list-content",onClick:this.handleItemClick,itemRender:s,noDataRender:l,onMouseDown:function(e){return e.preventDefault()}})},t.prototype.triggerOnChange=function(e,t,n){(this.value!==e||n)&&(t.data.value=e,this._valueDuringOnChange=e,t.events.push(we({type:"onChange"},n||{})))},t.prototype.applyState=function(e){this.base.applyState(e),this._valueDuringOnChange=void 0},t.prototype.suggestValue=function(e){if(this._suggested="",e){var t=this.props,n=t.data,r=void 0===n?[]:n,o=t.textField,i=r[S(r,e,o)];if(i){var a=D(i,o);e.toLowerCase()!==a.toLowerCase()&&(this._suggested=a.substring(e.length))}}},t.prototype.focusedIndex=function(e){var t=this,n=this.props,r=n.data,o=void 0===r?[]:r,i=n.textField,a=n.focusedItemIndex,l=void 0!==e?e:this.value;return void 0!==this.state.focusedItem?o.findIndex((function(e){return I(e,t.state.focusedItem,i)})):a?a(o,l,i):Math.max(0,o.indexOf(T(o,l,i)))},t.displayName="AutoComplete",t.propTypes=we(we({},Q.basicPropTypes),{size:i.oneOf([null,"small","medium","large"]),rounded:i.oneOf([null,"small","medium","large","full"]),fillMode:i.oneOf([null,"solid","flat","outline"]),suggest:i.oneOfType([i.bool,i.string]),placeholder:i.string,value:i.string,defaultValue:i.string,validationMessage:i.string,required:i.bool,readonly:i.bool,clearButton:i.bool,valueRender:i.func,id:i.string,ariaLabelledBy:i.string,ariaDescribedBy:i.string}),t.defaultProps=we(we({},Q.defaultProps),{size:"medium",rounded:"medium",fillMode:"solid"}),t}(o.Component),De=(0,c.Y)(),xe=(0,c.u)(De,Oe);xe.displayName="KendoReactAutoComplete";var Ie=n(1711),Te=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_e=function(e){return e.syntheticEvent.preventDefault()},Re=function(e){return e.syntheticEvent.stopPropagation()},Me=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Te(t,e),t.prototype.render=function(){var e=this.props,t=e.data,n=e.guid,r=e.focused,i=e.tagRender,a=e.tag,l=e.onTagDelete,s=e.size;return o.createElement(o.Fragment,null,t.map((function(e,u){var c=a?o.createElement(a,{key:e.text+u,tagData:e,guid:n,focusedTag:r,onTagDelete:l}):o.createElement(Ie.A,{id:"tag-".concat(n,"-").concat(e.text.replace(/\s+/g,"-")),"aria-selected":!0,role:"option","aria-setsize":t.length,key:e.text+u,text:e.text,removable:!0,removeIcon:"k-i-close",onRemove:function(t){return l.call(void 0,e.data,t.syntheticEvent)},onMouseDown:_e,onClick:Re,className:e===r?"k-focus":void 0,size:s});return i?i(e,c):c})),this.props.children)},t}(o.Component);const Pe=Me;var Ne;!function(e){e[e.PopupList=0]="PopupList",e[e.TagsList=1]="TagsList"}(Ne||(Ne={}));var Fe,Ae=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),je=function(){return je=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},je.apply(this,arguments)},Le=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},Ve=a.G.sizeMap,ze=a.G.roundedMap,Be=function(e){return e.preventDefault()},He=function(e){return e===Fe.CustomItem};!function(e){e[e.None=0]="None",e[e.ListItem=1]="ListItem",e[e.CustomItem=2]="CustomItem"}(Fe||(Fe={}));var Ue=function(e){function t(t){var n=e.call(this,t)||this;return n.state={activedescendant:Ne.PopupList},n._element=null,n._valueItemsDuringOnChange=null,n._inputId=(0,Z.M)(),n.base=new Q(n),n._tags=[],n._input=null,n._skipFocusEvent=!1,n.scrollToFocused=!1,n.focus=function(){n._input&&n._input.focus()},n.handleItemSelect=function(e,t){var r=n.props,o=r.data,i=void 0===o?[]:o,a=r.dataItemKey,l=r.virtual,s=i[e-(l?l.skip:0)],u=n.value.findIndex((function(e){return I(e,s,a)})),c=[];-1!==u?(c=n.value).splice(u,1):c=Le(Le([],n.value,!0),[s],!1),(void 0!==n.props.filter?n.props.filter:n.state.text)&&(n.state.text&&(t.data.text=""),n.base.filterChanged("",t)),void 0!==n.state.focusedIndex&&(t.data.focusedIndex=void 0),n.triggerOnChange(c,t),n.base.triggerPageChangeCornerItems(s,t)},n.onTagDelete=function(e,t){var r=void 0!==n.props.opened?n.props.opened:n.state.opened,o=n.base.initState();o.syntheticEvent=t,r&&n.base.togglePopup(o),n.state.focused||(o.data.focused=!0,n.focus());var i=n.value;x(i,e,n.props.dataItemKey),n.triggerOnChange(i,o),n.applyState(o)},n.itemFocus=function(e,t){var r=n.props,o=r.data,i=void 0===o?[]:o,a=r.allowCustom,l=r.virtual,s=l?l.skip:0,u=void 0!==n.props.filter?n.props.filter:n.state.text,c=n.getFocusedState().focusedIndex,d=a&&u,p=i[e-s];p&&c!==e?n.state.focusedIndex!==e&&(t.data.focusedIndex=e,t.data.activedescendant=Ne.PopupList):d&&-1===e&&void 0!==n.state.focusedIndex&&(t.data.focusedIndex=void 0),n.base.triggerPageChangeCornerItems(p,t)},n.componentRef=function(e){n._element=e,n.base.wrapper=e},n.searchbarRef=function(e){var t=n._input=e&&e.input;t&&n.state.focused&&window.setTimeout((function(){return t.focus()}),0)},n.onChangeHandler=function(e){var t=n.base.initState(),r=e.currentTarget.value,o=void 0!==n.props.opened?n.props.opened:n.state.opened;t.syntheticEvent=e,void 0===n.props.filter&&(t.data.text=r),t.data.focusedIndex=void 0,o||n.base.togglePopup(t),n.base.filterChanged(r,t),n.applyState(t)},n.clearButtonClick=function(e){var t=void 0!==n.props.opened?n.props.opened:n.state.opened,r=n.base.initState();r.syntheticEvent=e,e.stopPropagation(),n.value.length>0&&n.triggerOnChange([],r),void 0!==n.state.focusedIndex&&(r.data.focusedIndex=void 0),t&&n.base.togglePopup(r);var o=void 0!==n.props.filter?n.props.filter:n.state.text;w(o)&&""!==o&&n.base.filterChanged("",r),n.state.text&&(r.data.text=""),n.applyState(r)},n.onInputKeyDown=function(e){var t=e.keyCode,r=void 0!==n.props.filter?n.props.filter:n.state.text,o=void 0!==n.props.opened?n.props.opened:n.state.opened,i=n.getFocusedState().focusedItem,a=n.base.initState();if(a.syntheticEvent=e,!r&&n.value.length>0&&(t===s.R.left||t===s.R.right||t===s.R.home||t===s.R.end||t===s.R.delete||t===s.R.backspace))return n.onTagsNavigate(e,a);var l=function(){e.preventDefault(),n.base.togglePopup(a),n.applyState(a)};o?e.altKey&&t===s.R.up?l():t===s.R.up||t===s.R.down?(e.preventDefault(),n.onNavigate(a,t)):t===s.R.enter?(e.preventDefault(),n.props.allowCustom&&r&&null===i?n.customItemSelect(e):n.selectFocusedItem(e)):t===s.R.esc&&l():e.altKey&&t===s.R.down&&l()},n.renderListContainer=function(){var e,t,r=n.base,i=n.props,a=i.header,s=i.footer,u=i.allowCustom,c=i.dir,d=i.data,p=void 0===d?[]:d,f=i.size,h=n.base.getPopupSettings(),m=void 0!==n.props.opened?n.props.opened:n.state.opened,g=void 0!==n.props.filter?n.props.filter:n.state.text,y=void 0!==h.width?h.width:r.popupWidth,b={dir:void 0!==c?c:r.dirCalculated,width:y,popupSettings:{popupClass:(0,l.A)(h.popupClass,"k-list",(e={},e["k-list-".concat(Ve[f]||f)]=f,e["k-virtual-list"]=n.base.vs.enabled,e)),className:h.className,animate:h.animate,anchor:n.element,show:m,onOpen:n.onPopupOpened,onClose:n.onPopupClosed,appendTo:h.appendTo},itemsCount:[p.length,n.value.length]},C=n.getFocusedState().focusedType,E=u&&g&&o.createElement("div",{className:(0,l.A)("k-list",(t={},t["k-list-".concat(Ve[f]||f)]=f,t)),key:"customitem",onClick:n.customItemSelect,onMouseDown:Be},o.createElement("div",{className:(0,l.A)("k-list-item k-custom-item",{"k-focus":He(C)}),style:{fontStyle:"italic"}},g,o.createElement("span",{className:"k-icon k-i-plus",style:{position:"absolute",right:"0.5em"}})));return o.createElement(v,je({},b),a&&o.createElement("div",{className:"k-list-header"},a),E,n.renderList(),s&&o.createElement("div",{className:"k-list-footer"},s))},n.renderList=function(){var e=n.props,t=e.data,r=void 0===t?[]:t,i=e.textField,a=e.listNoDataRender,l=e.itemRender,s=e.dataItemKey,u=e.virtual,c=n.base.vs,d=u?u.skip:0,p=void 0!==n.props.opened?n.props.opened:n.state.opened,f=n.getFocusedState().focusedIndex,h=n.base.getPopupSettings(),m="translateY(".concat(c.translate,"px)");return o.createElement(q,{id:n.base.listBoxId,show:p,data:r.slice(),focusedIndex:f-d,value:n.value,textField:i,valueField:s,optionsGuid:n.base.guid,listRef:function(e){c.list=n.base.list=e},wrapperStyle:{maxHeight:h.height},wrapperCssClass:"k-list-content",listStyle:c.enabled?{transform:m}:void 0,key:"listKey",skip:d,onClick:n.handleItemClick,itemRender:l,noDataRender:a,onMouseDown:Be,onBlur:n.handleBlur,onScroll:function(e){c.scrollHandler(e)},wrapperRef:c.scrollerRef,scroller:n.base.renderScrollElement()})},n.customItemSelect=function(e){var t,r=void 0!==n.props.filter?n.props.filter:n.state.text,o=n.props.textField;if(r){var i=n.base.initState();i.syntheticEvent=e;var a=o?((t={})[o]=r,t):r;void 0!==n.state.text&&(i.data.text=""),i.data.focusedIndex=void 0,n.base.filterChanged("",i);var l=Le(Le([],n.value,!0),[a],!1);n.triggerOnChange(l,i),n.base.togglePopup(i),n.applyState(i)}},n.handleWrapperClick=function(e){var t=void 0!==n.props.opened?n.props.opened:n.state.opened,r=n._input;!t&&r&&n.focusElement(r);var o=n.base.initState();o.syntheticEvent=e,n.state.focused||(o.events.push({type:"onFocus"}),o.data.focused=!0),n.base.togglePopup(o),n.applyState(o)},n.handleItemClick=function(e,t){var r=n.base.initState();r.syntheticEvent=t,n.handleItemSelect(e,r),n.props.autoClose&&n.base.togglePopup(r),t.stopPropagation(),n.applyState(r)},n.handleBlur=function(e){if(n.state.focused&&!n._skipFocusEvent){var t=void 0!==n.props.opened?n.props.opened:n.state.opened,r=n.base.initState(),o=n.props,i=o.allowCustom,a=o.filterable;r.syntheticEvent=e,r.data.focused=!1,r.events.push({type:"onBlur"}),t&&(n.state.opened&&(r.data.opened=!1),r.events.push({type:"onClose"})),i||a||!n.state.text||(r.data.text=""),n.applyState(r)}},n.handleFocus=function(e){n._skipFocusEvent||n.base.handleFocus(e)},n.onPopupOpened=function(){n._input&&n.state.focused&&n.focusElement(n._input)},n.onPopupClosed=function(){n.state.focused&&window.setTimeout((function(){n.state.focused&&n.focusElement(n._input)}),0)},n.setValidity=function(){n._input&&n._input.setCustomValidity&&n._input.setCustomValidity(n.validity.valid?"":n.props.validationMessage||"Please enter a valid value!")},(0,J.s)(ee),n}return Ae(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){var e=[];return this._valueItemsDuringOnChange?e.push.apply(e,this._valueItemsDuringOnChange):this.props.value?e.push.apply(e,this.props.value):this.state.value?e.push.apply(e,this.state.value):this.props.defaultValue&&e.push.apply(e,this.props.defaultValue),e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){var e=void 0!==this.props.validationMessage,t=!this.required||null!==this.value&&this.value.length>0&&void 0!==this.value;return{customError:e,valid:void 0!==this.props.valid?this.props.valid:t,valueMissing:null===this.value}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:t.defaultProps.required},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(e,t){var n=this.props.virtual,r=n?n.skip:0,o=e.virtual?e.virtual.total:0,i=void 0!==this.props.opened?this.props.opened:this.state.opened,a=void 0!==e.opened?e.opened:t.opened,l=!a&&i,s=a&&!i;if(!this.base.getPopupSettings().animate&&s&&this.onPopupClosed(),n&&n.total!==o)this.base.vs.calcScrollElementHeight(),this.base.vs.reset();else{var u=this.getFocusedState(),c=u.focusedItem,d=u.focusedIndex;l&&n?this.base.scrollToVirtualItem(n,d-r):l&&!n?this.base.scrollToItem(d):i&&a&&c&&this.scrollToFocused&&this.base.scrollToItem(d-r)}this.scrollToFocused=!1,this.setValidity()},t.prototype.componentDidMount=function(){this.base.didMount(),this.setValidity()},t.prototype.onNavigate=function(e,t){var n=this.props,r=n.allowCustom,o=n.data,i=void 0===o?[]:o,a=void 0!==this.props.opened?this.props.opened:this.state.opened,l=void 0!==this.props.filter?this.props.filter:this.state.text,u=this.getFocusedState(),c=u.focusedType,d=u.focusedIndex,p=r&&l,f=He(c),h=this.base,m=h.vs;if(a&&t===s.R.up&&f)void 0!==this.state.focusedIndex&&(e.data.focusedIndex=void 0);else{var v=h.navigation.navigate({keyCode:t,current:d,max:(m.enabled?m.total:i.length)-1,min:p?-1:0});void 0!==v&&(this.itemFocus(v,e),this.scrollToFocused=!0)}this.applyState(e)},t.prototype.render=function(){var e,t,n=this.props,r=n.style,i=n.className,a=n.label,s=n.dir,u=n.disabled,c=n.tags,p=n.textField,f=n.dataItemKey,h=n.virtual,m=n.size,v=n.rounded,g=n.fillMode,y=n.loading,b=n.filter,C=this.state,E=C.text,w=C.focused,k=C.focusedTag,S=this.base.vs,O=this.props.id||this._inputId;S.enabled=void 0!==h,void 0!==h&&(S.skip=h.skip,S.total=h.total,S.pageSize=h.pageSize);var x=[];void 0===c?this.value.forEach((function(e){x.push({text:D(e,p),data:[e]})})):x.push.apply(x,c),this.setItems(x,this._tags);var I=!this.validityStyles||this.validity.valid,T=Boolean(void 0!==b?b:E)||this.value.length>0,M=o.createElement("div",{ref:this.componentRef,className:(0,l.A)("k-multiselect k-input",i,(e={},e["k-input-".concat(Ve[m]||m)]=m,e["k-rounded-".concat(ze[v]||v)]=v,e["k-input-".concat(g)]=g,e["k-focus"]=w&&!u,e["k-invalid"]=!I,e["k-disabled"]=u,e["k-loading"]=y,e["k-required"]=this.required,e)),style:a?je(je({},r),{width:void 0}):r,dir:s,onFocus:this.handleFocus,onBlur:this.handleBlur,onClick:this.handleWrapperClick,onMouseDown:_},o.createElement("div",{className:(0,l.A)("k-input-values k-chip-list k-selection-multiple",(t={},t["k-chip-list-".concat(Ve[m]||m)]=m,t)),role:"listbox",id:"tagslist-"+this.base.guid},x.length>0&&o.createElement(Pe,{tagRender:this.props.tagRender,onTagDelete:this.onTagDelete,data:x,guid:this.base.guid,focused:k?x.find((function(e){return R(e,k,f)})):void 0,size:m}),this.renderSearchbar(O)),y&&o.createElement("span",{className:"k-icon k-i-loading k-input-loading-icon"}),T&&o.createElement(fe,{onClick:this.clearButtonClick}),this.renderListContainer());return a?o.createElement(d._,{label:a,editorId:O,editorValue:E||D(this.value[0],p),editorValid:I,editorDisabled:u,style:{width:r?r.width:void 0},children:M}):M},t.prototype.renderSearchbar=function(e){var t=this.state,n=t.activedescendant,r=t.focusedTag,i=this.props,a=i.disabled,l=i.placeholder,s=i.ariaDescribedBy,u=(void 0!==this.props.filter?this.props.filter:this.state.text)||"",c=void 0!==this.props.opened?this.props.opened:this.state.opened,d=this.getFocusedState().focusedIndex,p=0!==this.value.length||u?void 0:l,f=n===Ne.TagsList&&void 0!==r?"tag-".concat(this.base.guid,"-").concat(r.text.replace(/\s+/g,"-")):"option-".concat(this.base.guid,"-").concat(d);return o.createElement(ce,{id:e,size:Math.max((p||"").length,u.length,1),tabIndex:this.props.tabIndex,accessKey:this.props.accessKey,placeholder:p,value:u,onChange:this.onChangeHandler,onKeyDown:this.onInputKeyDown,ref:this.searchbarRef,disabled:a,expanded:c,owns:this.base.listBoxId,activedescendant:f,ariaDescribedBy:"tagslist-".concat(this.base.guid).concat(s?" "+s:""),ariaLabelledBy:this.props.ariaLabelledBy})},t.prototype.onTagsNavigate=function(e,t){var n=e.keyCode,r=this.state.focusedTag,o=this._tags,i=this.props.dataItemKey,a=r?o.findIndex((function(e){return R(e,r,i)})):-1,l=void 0,u=-1!==a;if(n===s.R.left)l=o[a=u?Math.max(0,a-1):o.length-1];else if(n===s.R.right)a===o.length-1?l=void 0:u&&(l=o[a=Math.min(o.length-1,a+1)]);else if(n===s.R.home)l=o[0];else if(n===s.R.end)l=o[o.length-1];else if(n===s.R.delete){if(u){var c=this.value;x(c,o[a].data,i),this.triggerOnChange(c,t)}}else if(n===s.R.backspace)if(c=this.value,u)x(c,o[a].data,i),this.triggerOnChange(c,t);else if(!u&&o.length){var d=o.pop();x(c,d.data,i),this.triggerOnChange(c,t)}l!==r&&(t.data.focusedTag=l,t.data.activedescendant=Ne.TagsList),this.applyState(t)},t.prototype.triggerOnChange=function(e,t){void 0===this.props.value&&(t.data.value=Le([],e,!0)),this._valueItemsDuringOnChange=[],this.setItems(e,this._valueItemsDuringOnChange),t.events.push({type:"onChange"})},t.prototype.selectFocusedItem=function(e){var t=this.props,n=t.data,r=void 0===n?[]:n,o=t.virtual,i=this.getFocusedState().focusedIndex;void 0!==r[i-(o?o.skip:0)]&&this.handleItemClick(i,e)},t.prototype.setItems=function(e,t){t.length=0,t.push.apply(t,e)},t.prototype.getFocusedState=function(){var e,t=this.state.focusedIndex,n=void 0!==this.props.filter?this.props.filter:this.state.text,r=this.props,o=r.allowCustom,i=r.data,a=void 0===i?[]:i,l=r.dataItemKey,s=r.virtual,u=r.textField,c=r.focusedItemIndex,d=void 0===c?S:c,p=s&&s.skip||0;if(void 0!==t)return{focusedIndex:t,focusedItem:a[t-p],focusedType:Fe.ListItem};var f=this.value;if(o&&n)return{focusedItem:null,focusedIndex:-1,focusedType:Fe.CustomItem};if(n)return{focusedItem:a[e=d(a,n,u)],focusedIndex:e+p,focusedType:Fe.ListItem};if(f.length){var h=f[f.length-1];return e=a.findIndex((function(e){return I(e,h,l)})),void 0!==a[e]?{focusedIndex:e+p,focusedItem:a[e],focusedType:Fe.ListItem}:{focusedType:Fe.None,focusedIndex:-1}}return 0===p?{focusedItem:a[0],focusedIndex:0,focusedType:Fe.ListItem}:{focusedType:Fe.None,focusedIndex:-1}},t.prototype.focusElement=function(e){var t=this;this._skipFocusEvent=!0,e.focus(),window.setTimeout((function(){return t._skipFocusEvent=!1}),0)},t.prototype.applyState=function(e){this.base.applyState(e),this._valueItemsDuringOnChange=null},t.displayName="MultiSelect",t.propTypes=je(je({},Q.propTypes),{autoClose:i.bool,value:i.arrayOf(i.any),defaultValue:i.arrayOf(i.any),dataItemKey:i.string,placeholder:i.string,tags:i.arrayOf(i.shape({text:i.string,data:i.arrayOf(i.any)})),tagRender:i.func,id:i.string,ariaLabelledBy:i.string,ariaDescribedBy:i.string}),t.defaultProps=je(je({},Q.defaultProps),{autoClose:!0,required:!1,size:"medium",rounded:"medium",fillMode:"solid"}),t}(o.Component),We=(0,c.Y)(),Ke=(0,c.u)(We,Ue);Ke.displayName="KendoReactMultiSelect";var qe=function(){return qe=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},qe.apply(this,arguments)},Ye=function(e){return o.createElement(q,qe({},e,{wrapperCssClass:"k-table-body k-table-scroller",listClassName:"k-table k-table-list",listStyle:qe({},e.listStyle)}))},Ge=n(9656),Ze=n(2665),Xe=n(9659),$e=function(){return $e=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},$e.apply(this,arguments)},Qe=(0,c.Y)(),Je=o.forwardRef((function(e,t){var n=(0,Ge.Y)(Qe,e),r=o.useRef(null),i=o.useRef(null),a=(0,Ze.n)(),s=n.columns,u=void 0===s?tt.columns:s,c=n.popupSettings,d=void 0===c?tt.popupSettings:c,p=n.className,f=(n.size,n.onOpen),h=n.onClose,m=n.onFocus,v=n.onBlur,g=n.onChange,y=n.onFilterChange,b=n.onPageChange,C=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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(n,["columns","popupSettings","className","size","onOpen","onClose","onFocus","onBlur","onChange","onFilterChange","onPageChange"]);o.useImperativeHandle(r,(function(){return{element:i.current&&i.current.element,focus:function(){i.current&&i.current.focus()},get value(){return i.current&&i.current.value},get name(){return i.current&&i.current.name},props:n}})),o.useImperativeHandle(t,(function(){return r.current}));var E=o.useMemo((function(){if(void 0===E&&void 0!==n.groupField&&n.data)return D(n.data[0],n.groupField)}),[n.data,n.groupField]),w=o.useState(E),k=w[0],S=w[1],O=o.useMemo((function(){return o.createElement(o.Fragment,null,n.header,o.createElement("div",{className:"k-table-header-wrap"},o.createElement("table",{className:"k-table",role:"presentation"},o.createElement("colgroup",null,u.map((function(e,t){return o.createElement("col",{key:e.uniqueKey?e.uniqueKey:t,style:{width:e.width?e.width:tt.width}})}))),o.createElement("thead",{className:"k-table-thead"},o.createElement("tr",{className:"k-table-row"},u.map((function(e,t){return o.createElement("th",{className:"k-table-th",key:e.uniqueKey?e.uniqueKey:t},e.header||" ")}))),k&&o.createElement("tr",{className:"k-table-group-row"},o.createElement("th",{className:"k-table-th",colSpan:u.length},k))))))}),[n.header,u,k]),x=o.useMemo((function(){return"calc(".concat(u.map((function(e){return t=e.width,n=tt.width,t?"number"==typeof t?t+"px":t:n;var t,n})).filter(Boolean).join(" + ")," + ").concat(a,"px + 4px)")}),[u,a]),I=n.virtual?n.virtual.skip:0,T=o.useCallback((function(e,t){var r,i,a,s=u.map((function(e,n){return o.createElement("span",{className:"k-table-td",style:{width:e.width?e.width:tt.width},key:e.uniqueKey?e.uniqueKey:n},e.field?(0,Xe.Y)(e.field)(t.dataItem):"")})),c=void 0,d=n.data||[],p=t.index-I;void 0!==n.groupField&&(r=(a=(0,Xe.Y)(n.groupField))(d[p]),i=a(d[p-1]),r&&i&&r!==i&&(c=r)),c&&s.push(o.createElement("div",{key:"group",className:"k-table-td k-table-group-td"},o.createElement("span",null,c)));var f=o.cloneElement(e,$e($e({},e.props),{className:(0,l.A)("k-table-row",{"k-table-alt-row":t.index%2!=0,"k-focus":t.focused,"k-selected":t.selected,"k-first":Boolean(c)})}),s);return n.itemRender?n.itemRender.call(void 0,f,t):f}),[u,n.groupField,n.itemRender,n.data,I]),_=o.useCallback((function(e,t){e&&e.call(void 0,$e($e({},t),{target:r.current}))}),[]),R=o.useCallback((function(e){return _(f,e)}),[f]),M=o.useCallback((function(e){return _(h,e)}),[h]),P=o.useCallback((function(e){return _(m,e)}),[m]),N=o.useCallback((function(e){return _(v,e)}),[v]),F=o.useCallback((function(e){return _(g,e)}),[g]),A=o.useCallback((function(e){return _(y,e)}),[y]),j=o.useCallback((function(e){return _(b,e)}),[b]),L=o.useCallback((function(e){S(e.group)}),[]);o.useEffect((function(){(0,Ze.p)()}));var V=o.useCallback((function(e){return o.createElement(Ye,$e({},e))}),[]);return o.createElement(Ce,$e({},C,{list:V,popupSettings:$e($e({width:x},d),{popupClass:"k-dropdowngrid-popup k-reset",className:d.className}),ref:i,header:O,itemRender:T,size:n.size,rounded:n.rounded,fillMode:n.fillMode,onOpen:R,onClose:M,onFocus:P,onBlur:N,onChange:F,onFilterChange:A,onPageChange:j,onGroupScroll:L,className:(0,l.A)("k-dropdowngrid",p)}))})),et=$e($e({},ye.propTypes),{columns:i.any.isRequired}),tt={columns:[],popupSettings:{},width:"200px",size:"medium",rounded:"medium",fillMode:"solid"};Je.displayName="KendoMultiColumnComboBox",Je.propTypes=et,Je.defaultProps=tt;var nt=n(3228),rt=n(1573),ot=n(8006),it=n(5407),at="_";function lt(e,t,n){if(pt(e))return t[Number(e)];var r=t[Number(function(e){return dt(e)?e:e.split(at)[0]}(e))],o=r&&r[n]||[];return o.length?lt(function(e){if(dt(e))return e;var t=e.indexOf(at);return e.substring(t+1)}(e),o,n):void 0}function st(e){return ut("0",e)}function ut(e,t){return e=e.toString(),t?t+at+e:e}function ct(e){var t=e.lastIndexOf(at);return t<0?"":e.substring(0,t)}function dt(e){return""===e||e.indexOf(at)<0}function pt(e){return""!==e&&e.indexOf(at)<0}function ft(e){var t=e.lastIndexOf(at);return t<0?e:e.substring(t+1)}const ht=function(){function e(){this.objects=[]}return e.prototype.init=function(e){for(var t,n=0;n<e.length;n++)n%5e4==0&&(t={},this.objects.push(t)),t[e[n]]=!0},e.prototype.hasId=function(e){return this.objects.some((function(t){return t[e]}))},e}();function mt(e,t){var n=(e||"").split("."),r=t;return n.forEach((function(e){r=r?r[e]:void 0})),r}function vt(e,t){var n=mt(t,e);return Boolean(n&&n.length)}function gt(e,t){return t.expanded(e)&&vt(e,t.getChildrenField())}function yt(e,t,n,r){var o=function(e,t,n,r){var o=[],i=new ht;return i.init(e),Ct(i,t,n,"",o,r),o}([e],t,n,r);return o.length?o[0]:void 0}function bt(e,t,n){for(var r=function(e){return e.split(at)}(e),o=t,i=0;i<r.length;i++){var a=o[Number(r[i])];if(n.disabled(a))return!1;o=a[n.getChildrenField()]}return!0}function Ct(e,t,n,r,o,i){for(var a=0;a<n.length;a++){var l=n[a],s=ut(a,r);e.hasId(mt(t,l))&&o.push(s),vt(l,i)&&Ct(e,t,mt(i,l),s,o,i)}}function Et(e,t,n,r,o){switch(r){case s.R.left:return pt(t)||o.expanded(e)&&bt(t,n,o)?t:ct(t);case s.R.right:return gt(e,o)?st(t):t;case s.R.up:return i=Number(ft(t)),a=ct(t),i?kt(ut(i-1,a),n,o):pt(t)?t:a;case s.R.down:return gt(e,o)?st(t):wt(t,n,o)||t;case s.R.home:return"0";case s.R.end:return function(){for(var e,t=(n.length-1).toString(),r=n[n.length-1];gt(r,o);)t=ut((e=r[o.getChildrenField()]).length-1,t),r=e[e.length-1];return t}();default:return t}var i,a}function wt(e,t,n){var r=ct(e),o=r?lt(r,t,n.getChildrenField()):void 0,i=o?o[n.getChildrenField()]:t,a=Number(ft(e));return a<i.length-1?ut(a+1,r):o?wt(r,t,n):void 0}function kt(e,t,n){var r=lt(e,t,n.getChildrenField());return gt(r,n)?kt(ut(r[n.getChildrenField()].length-1,e),t,n):e}var St=n(1779),Ot=n(6144);const Dt=function(e){if(!e||!e.ownerDocument.defaultView)return 0;var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop),r=parseFloat(t.marginBottom);return e.offsetHeight+n+r},xt=function(e){if(!e||!e.ownerDocument.defaultView)return 0;var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginLeft),r=parseFloat(t.marginRight);return e.offsetWidth+n+r},It={"animation-container":"k-animation-container","animation-container-relative":"k-animation-container-relative","animation-container-fixed":"k-animation-container-fixed","push-right-enter":"k-push-right-enter","push-right-appear":"k-push-right-appear","push-right-enter-active":"k-push-right-enter-active","push-right-appear-active":"k-push-right-appear-active","push-right-exit":"k-push-right-exit","push-right-exit-active":"k-push-right-exit-active","push-left-enter":"k-push-left-enter","push-left-appear":"k-push-left-appear","push-left-enter-active":"k-push-left-enter-active","push-left-appear-active":"k-push-left-appear-active","push-left-exit":"k-push-left-exit","push-left-exit-active":"k-push-left-exit-active","push-down-enter":"k-push-down-enter","push-down-appear":"k-push-down-appear","push-down-enter-active":"k-push-down-enter-active","push-down-appear-active":"k-push-down-appear-active","push-down-exit":"k-push-down-exit","push-down-exit-active":"k-push-down-exit-active","push-up-enter":"k-push-up-enter","push-up-appear":"k-push-up-appear","push-up-enter-active":"k-push-up-enter-active","push-up-appear-active":"k-push-up-appear-active","push-up-exit":"k-push-up-exit","push-up-exit-active":"k-push-up-exit-active",expand:"k-expand","expand-vertical-enter":"k-expand-vertical-enter","expand-vertical-appear":"k-expand-vertical-appear","expand-vertical-enter-active":"k-expand-vertical-enter-active","expand-vertical-appear-active":"k-expand-vertical-appear-active","expand-vertical-exit":"k-expand-vertical-exit","expand-vertical-exit-active":"k-expand-vertical-exit-active","expand-horizontal-enter":"k-expand-horizontal-enter","expand-horizontal-appear":"k-expand-horizontal-appear","expand-horizontal-enter-active":"k-expand-horizontal-enter-active","expand-horizontal-appear-active":"k-expand-horizontal-appear-active","expand-horizontal-exit":"k-expand-horizontal-exit","expand-horizontal-exit-active":"k-expand-horizontal-exit-active","child-animation-container":"k-child-animation-container","fade-enter":"k-fade-enter","fade-appear":"k-fade-appear","fade-enter-active":"k-fade-enter-active","fade-appear-active":"k-fade-appear-active","fade-exit":"k-fade-exit","fade-exit-active":"k-fade-exit-active","zoom-in-enter":"k-zoom-in-enter","zoom-in-appear":"k-zoom-in-appear","zoom-in-enter-active":"k-zoom-in-enter-active","zoom-in-appear-active":"k-zoom-in-appear-active","zoom-in-exit":"k-zoom-in-exit","zoom-in-exit-active":"k-zoom-in-exit-active","zoom-out-enter":"k-zoom-out-enter","zoom-out-appear":"k-zoom-out-appear","zoom-out-enter-active":"k-zoom-out-enter-active","zoom-out-appear-active":"k-zoom-out-appear-active","zoom-out-exit":"k-zoom-out-exit","zoom-out-exit-active":"k-zoom-out-exit-active","slide-in-appear":"k-slide-in-appear",centered:"k-centered","slide-in-appear-active":"k-slide-in-appear-active","slide-down-enter":"k-slide-down-enter","slide-down-appear":"k-slide-down-appear","slide-down-enter-active":"k-slide-down-enter-active","slide-down-appear-active":"k-slide-down-appear-active","slide-down-exit":"k-slide-down-exit","slide-down-exit-active":"k-slide-down-exit-active","slide-up-enter":"k-slide-up-enter","slide-up-appear":"k-slide-up-appear","slide-up-enter-active":"k-slide-up-enter-active","slide-up-appear-active":"k-slide-up-appear-active","slide-up-exit":"k-slide-up-exit","slide-up-exit-active":"k-slide-up-exit-active","slide-right-enter":"k-slide-right-enter","slide-right-appear":"k-slide-right-appear","slide-right-enter-active":"k-slide-right-enter-active","slide-right-appear-active":"k-slide-right-appear-active","slide-right-exit":"k-slide-right-exit","slide-right-exit-active":"k-slide-right-exit-active","slide-left-enter":"k-slide-left-enter","slide-left-appear":"k-slide-left-appear","slide-left-enter-active":"k-slide-left-enter-active","slide-left-appear-active":"k-slide-left-appear-active","slide-left-exit":"k-slide-left-exit","slide-left-exit-active":"k-slide-left-exit-active","reveal-vertical-enter":"k-reveal-vertical-enter","reveal-vertical-appear":"k-reveal-vertical-appear","reveal-vertical-enter-active":"k-reveal-vertical-enter-active","reveal-vertical-appear-active":"k-reveal-vertical-appear-active","reveal-vertical-exit":"k-reveal-vertical-exit","reveal-vertical-exit-active":"k-reveal-vertical-exit-active","reveal-horizontal-enter":"k-reveal-horizontal-enter","reveal-horizontal-appear":"k-reveal-horizontal-appear","reveal-horizontal-enter-active":"k-reveal-horizontal-enter-active","reveal-horizontal-appear-active":"k-reveal-horizontal-appear-active","reveal-horizontal-exit":"k-reveal-horizontal-exit","reveal-horizontal-exit-active":"k-reveal-horizontal-exit-active"};var Tt=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_t=function(){return _t=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},_t.apply(this,arguments)},Rt=It,Mt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.elementRef=o.createRef(),t}return Tt(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this.elementRef.current},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this,t=this.props,n=t.children,r=t.style,i=t.appear,a=t.enter,s=t.exit,u=t.transitionName,c=t.transitionEnterDuration,d=t.transitionExitDuration,p=t.className,f=t.onEnter,h=t.onEntering,m=t.onEntered,v=t.onExit,g=t.onExiting,y=t.onExited,b=t.onAfterExited,C=t.mountOnEnter,E=t.unmountOnExit,w=t.animationEnteringStyle,k=t.animationEnteredStyle,S=t.animationExitingStyle,O=t.animationExitedStyle,D=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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["children","style","appear","enter","exit","transitionName","transitionEnterDuration","transitionExitDuration","className","onEnter","onEntering","onEntered","onExit","onExiting","onExited","onAfterExited","mountOnEnter","unmountOnExit","animationEnteringStyle","animationEnteredStyle","animationExitingStyle","animationExitedStyle"]),x=(0,l.A)(p,Rt["child-animation-container"]),I=_t({transitionDelay:"0ms"},r),T={entering:_t({transitionDuration:"".concat(c,"ms")},w),entered:_t({},k),exiting:_t({transitionDuration:"".concat(d,"ms")},S),exited:_t({},O)},_={in:this.props.in,appear:i,enter:a,exit:s,mountOnEnter:C,unmountOnExit:E,timeout:{enter:c,exit:d},onEnter:function(){f&&f.call(void 0,{animatedElement:e.element,target:e})},onEntering:function(){h&&h.call(void 0,{animatedElement:e.element,target:e})},onEntered:function(){m&&m.call(void 0,{animatedElement:e.element,target:e})},onExit:function(){v&&v.call(void 0,{animatedElement:e.element,target:e})},onExiting:function(){g&&g.call(void 0,{animatedElement:e.element,target:e})},onExited:function(){b&&b.call(void 0,{animatedElement:e.element,target:e}),y&&y.call(void 0,{animatedElement:e.element,target:e})},classNames:{appear:Rt["".concat(u,"-appear")]||"".concat(u,"-appear"),appearActive:Rt["".concat(u,"-appear-active")]||"".concat(u,"-appear-active"),enter:Rt["".concat(u,"-enter")]||"".concat(u,"-enter"),enterActive:Rt["".concat(u,"-enter-active")]||"".concat(u,"-enter-active"),exit:Rt["".concat(u,"-exit")]||"".concat(u,"-exit"),exitActive:Rt["".concat(u,"-exit-active")]||"".concat(u,"-exit-active")}};return o.createElement(Ot.CSSTransition,_t({},_,D,{nodeRef:this.elementRef}),(function(t){return o.createElement("div",{style:_t(_t({},I),T[t]),className:x,ref:e.elementRef},n)}))},t.propTypes={in:i.bool,children:i.oneOfType([i.arrayOf(i.node),i.node]),transitionName:i.string.isRequired,className:i.string,appear:i.bool,enter:i.bool,exit:i.bool,transitionEnterDuration:i.number.isRequired,transitionExitDuration:i.number.isRequired,mountOnEnter:i.bool,unmountOnExit:i.bool,animationEnteringStyle:i.object,animationEnteredStyle:i.object,animationExitingStyle:i.object,animationExitedStyle:i.object},t.defaultProps={mountOnEnter:!0,unmountOnExit:!1,onEnter:nt.Z,onEntering:nt.Z,onEntered:nt.Z,onExit:nt.Z,onExiting:nt.Z,onExited:nt.Z,onAfterExited:nt.Z,animationEnteringStyle:{},animationEnteredStyle:{},animationExitingStyle:{},animationExitedStyle:{}},t}(o.Component),Pt={name:"@progress/kendo-react-animation",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1656314817,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"},Nt=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ft=function(){return Ft=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},Ft.apply(this,arguments)},At=It,jt=function(e){function t(t){var n=e.call(this,t)||this;return(0,J.s)(Pt),n}return Nt(t,e),t.prototype.render=function(){var e=this.props,t=e.id,n=e.style,r=e.children,i=e.component,a=e.className,s=e.childFactory,u=(e.stackChildren,e.componentChildStyle),c=e.componentChildClassName,d=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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["id","style","children","component","className","childFactory","stackChildren","componentChildStyle","componentChildClassName"]),p={id:t,style:n,component:i,childFactory:s,className:(0,l.A)(At["animation-container"],At["animation-container-relative"],a)},f=o.Children.map(r||null,(function(e){return o.createElement(Mt,Ft({},d,{style:u,className:c}),e)}));return o.createElement(Ot.TransitionGroup,Ft({},p),f)},t.propTypes={children:i.oneOfType([i.arrayOf(i.node),i.node]),childFactory:i.any,className:i.string,component:i.string,id:i.string,style:i.any,transitionName:i.string.isRequired,appear:i.bool.isRequired,enter:i.bool.isRequired,exit:i.bool.isRequired,transitionEnterDuration:i.number.isRequired,transitionExitDuration:i.number.isRequired},t.defaultProps={component:"div"},t}(o.Component),Lt=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Vt=function(){return Vt=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},Vt.apply(this,arguments)},zt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={maxHeight:void 0,maxWidth:void 0},t.componentWillEnter=function(e){var n=t.props,r=n.onEnter,o=n.onBeforeEnter;o&&o.call(void 0,e),t.updateContainerDimensions(e.animatedElement,(function(){r&&r.call(void 0,e)}))},t.componentIsEntering=function(e){var n=t.props.onEntering;t.updateContainerDimensions(e.animatedElement,(function(){n&&n.call(void 0,e)}))},t.componentWillExit=function(e){var n=t.props.onExit;t.updateContainerDimensions(e.animatedElement,(function(){n&&n.call(void 0,e)}))},t.updateContainerDimensions=function(e,n){void 0===n&&(n=nt.Z);var r=e.firstChild;if(r){var o=Dt(r),i=xt(r);t.setState({maxHeight:o,maxWidth:i},n)}},t}return Lt(t,e),t.prototype.render=function(){var e,t=this.props,n=t.direction,r=t.children,i=t.childFactory,a=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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["direction","children","childFactory"]),l=this.state,s=l.maxHeight,u=l.maxWidth,c={maxHeight:(e="vertical"===n?{maxHeight:s?"".concat(s,"px"):""}:{maxWidth:u?"".concat(u,"px"):""}).maxHeight,maxWidth:e.maxWidth};return o.createElement(jt,Vt({},a,{childFactory:function(t){var n=i?i(t):t;return n.props.in?n:o.cloneElement(n,Vt(Vt({},n.props),{style:Vt(Vt({},n.props.style),{maxHeight:e.maxHeight,maxWidth:e.maxWidth})}))},onEnter:this.componentWillEnter,onEntering:this.componentIsEntering,onExit:this.componentWillExit,animationEnteringStyle:c,transitionName:"reveal-".concat(n)}),r)},t.propTypes={children:i.oneOfType([i.arrayOf(i.node),i.node]),childFactory:i.any,className:i.string,direction:i.oneOf(["horizontal","vertical"]),component:i.string,id:i.string,style:i.any},t.defaultProps={appear:!1,enter:!0,exit:!0,transitionEnterDuration:300,transitionExitDuration:300,direction:"vertical"},t}(o.Component),Bt="items",Ht=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ut=function(){return Ut=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},Ut.apply(this,arguments)},Wt=a.G.sizeMap,Kt=o.createContext((function(e){return e})),qt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.itemGuid=(0,Z.M)(),t.onCheckChange=function(e){t.props.onCheckChange(e,t.item,t.itemId)},t.onExpandChange=function(e){t.props.onExpandChange(e,t.item,t.itemId)},t.onItemClick=function(e){t.props.onItemClick(e,t.item,t.itemId)},t.onPress=function(e){t.props.onPress(e.event,t.item,t.itemId)},t.onDrag=function(e){t.props.onDrag(e.event,t.item,t.itemId)},t.onRelease=function(e){t.props.onRelease(e.event,t.item,t.itemId)},t.assignDraggableMeta=function(e){e&&(e._kendoItemId=t.props.itemId,e._kendoTreeViewGuid=t.props.treeGuid)},t}return Ht(t,e),t.prototype.render=function(){var e=this,t=this.renderSubitemsIfApplicable(),n=this.renderItemInPart();return o.createElement("li",{className:this.getRootClassName(),tabIndex:this.tabIndex,role:"treeitem","aria-expanded":this.ariaExpanded,"aria-selected":this.ariaSelected,"aria-checked":this.ariaChecked,"aria-disabled":!!this.fieldsSvc.disabled(this.item)||void 0,ref:function(t){return e.itemElement=t}},o.createElement("div",{className:"k-treeview-".concat(this.props.position),ref:this.assignDraggableMeta},this.renderExpandIcon(),this.renderCheckbox(),this.props.draggable?o.createElement(St._,{onPress:this.onPress,onDrag:this.onDrag,onRelease:this.onRelease},n):n),this.props.animate?o.createElement(zt,{transitionEnterDuration:200,transitionExitDuration:200,style:{display:"block"},children:t}):t)},t.prototype.componentDidMount=function(){var e=this.props.focusedItemId,t=this.itemId;e&&e===t&&this.props.onFocusDomElNeeded(this.itemElement),this.checkboxElement&&(this.checkboxElement.indeterminate=this.fieldsSvc.checkIndeterminate(this.item))},t.prototype.componentDidUpdate=function(e){var t=this.props.focusedItemId;if(t&&t!==e.focusedItemId&&t===this.itemId&&this.props.onFocusDomElNeeded(this.itemElement),this.checkboxElement){var n=this.fieldsSvc.checkIndeterminate(this.item);n!==e.fieldsService.checkIndeterminate(e.item)&&(this.checkboxElement.indeterminate=n)}},t.prototype.renderCheckbox=function(){var e,t=this;if(this.props.checkboxes){var n=this.props.size;return o.createElement("div",{className:"k-checkbox-wrap"},o.createElement("input",{type:"checkbox",className:(0,l.A)("k-checkbox k-rounded-md",(e={},e["k-checkbox-".concat(Wt[n]||n)]=n,e)),checked:Boolean(this.fieldsSvc.checked(this.item)),id:this.itemGuid,tabIndex:-1,onChange:this.onCheckChange,ref:function(e){return t.checkboxElement=e}}),o.createElement("label",{className:"k-checkbox-label",htmlFor:this.itemGuid}))}},t.prototype.renderExpandIcon=function(){return this.props.expandIcons&&(this.fieldsSvc.hasChildren(this.item)||vt(this.item,this.fieldsSvc.getChildrenField()))&&o.createElement("span",{className:"k-treeview-toggle"},o.createElement("span",{className:this.getIconClassName(),onClick:this.onExpandChange}))},t.prototype.renderSubitemsIfApplicable=function(){var e=this,t=this.fieldsSvc.children(this.item);return gt(this.item,this.fieldsSvc)?o.createElement("ul",{className:"k-treeview-group",role:"group"},t.map((function(n,r){return o.createElement(Yt,{item:n,position:0===r?"top":r===t.length-1?"bot":"mid",itemId:ut(r,e.itemId),treeGuid:e.props.treeGuid,animate:e.props.animate,focusedItemId:e.props.focusedItemId,tabbableItemId:e.props.tabbableItemId,fieldsService:e.props.fieldsService,itemUI:e.props.itemUI,checkboxes:e.props.checkboxes,ariaMultiSelectable:e.props.ariaMultiSelectable,onItemClick:e.props.onItemClick,onFocusDomElNeeded:e.props.onFocusDomElNeeded,draggable:e.props.draggable,onPress:e.props.onPress,onDrag:e.props.onDrag,onRelease:e.props.onRelease,expandIcons:e.props.expandIcons,onExpandChange:e.props.onExpandChange,onCheckChange:e.props.onCheckChange,key:r,size:e.props.size})}))):void 0},t.prototype.renderItemInPart=function(){return o.createElement("span",{className:this.getContentClassName(),style:{touchAction:"none"},onClick:this.onItemClick},o.createElement("span",{className:"k-treeview-leaf-text"},this.props.itemUI?o.createElement(this.props.itemUI,{item:this.item,itemHierarchicalIndex:this.itemId}):this.fieldsSvc.text(this.item)))},Object.defineProperty(t.prototype,"fieldsSvc",{get:function(){return this.props.fieldsService},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemId",{get:function(){return this.props.itemId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tabIndex",{get:function(){return(this.props.focusedItemId||this.props.tabbableItemId)===this.itemId?0:-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaExpanded",{get:function(){return this.fieldsSvc.hasChildren(this.item)||vt(this.item,this.fieldsSvc.getChildrenField())?Boolean(this.fieldsSvc.expanded(this.item)):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaChecked",{get:function(){return this.props.checkboxes?this.fieldsSvc.checked(this.item)?"true":this.fieldsSvc.checkIndeterminate(this.item)?"mixed":"false":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaSelected",{get:function(){return!!this.fieldsSvc.selected(this.item)||(this.props.ariaMultiSelectable?!!this.fieldsSvc.disabled(this.item)&&void 0:void 0)},enumerable:!1,configurable:!0}),t.prototype.getIconClassName=function(){var e=this.fieldsSvc.expanded(this.item);return(0,l.A)("k-icon",{"k-i-expand":!e,"k-i-collapse":e,"k-i-loading":e&&!vt(this.item,this.fieldsSvc.getChildrenField())})},t.prototype.getRootClassName=function(){return(0,l.A)("k-treeview-item",{"k-disabled":this.fieldsSvc.disabled(this.item)})},t.prototype.getContentClassName=function(){return(0,l.A)("k-treeview-leaf",{"k-focus":this.props.focusedItemId===this.itemId,"k-selected":this.fieldsSvc.selected(this.item)})},t.defaultProps={position:"top"},t}(o.Component),Yt=o.forwardRef((function(e,t){var n=o.useContext(Kt).call(void 0,e);return o.createElement(qt,Ut({ref:t},n))}));Yt.displayName="TreeViewItem";const Gt=function(){function e(e){this.expandField=e.expandField,this.selectField=e.selectField,this.hasChildrenField=e.hasChildrenField,this.childrenField=e.childrenField,this.textField=e.textField,this.disableField=e.disableField,this.checkField=e.checkField,this.checkIndeterminateField=e.checkIndeterminateField,this.focusIdField=e.focusIdField}return e.prototype.expanded=function(e){return mt(this.expandField,e)},e.prototype.selected=function(e){return mt(this.selectField,e)},e.prototype.text=function(e){return mt(this.textField,e)},e.prototype.disabled=function(e){return mt(this.disableField,e)},e.prototype.hasChildren=function(e){return mt(this.hasChildrenField,e)},e.prototype.children=function(e){return mt(this.childrenField,e)||[]},e.prototype.checked=function(e){return mt(this.checkField,e)},e.prototype.checkIndeterminate=function(e){return mt(this.checkIndeterminateField,e)},e.prototype.focusId=function(e){return this.focusIdField&&mt(this.focusIdField,e)},e.prototype.getChildrenField=function(){return this.childrenField},e}();var Zt={name:"@progress/kendo-react-treeview",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1656315133,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"},Xt=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$t=a.G.sizeMap,Qt=function(e){function t(t){var n=e.call(this,t)||this;return n.state={focusedItemId:void 0,focusedItemPublicId:void 0,tabbableItemId:"0"},n.fieldsSvc=null,n.allowExplicitFocus=!1,n.treeGuid=(0,Z.M)(),n._element=null,n.onFocusDomElNeeded=function(e){n.allowExplicitFocus&&n.focusDomItem(e)},n.onCheckChange=function(e,t,r){n.setFocus(r),n.dispatchCheckChange(e,t,r)},n.onExpandChange=function(e,t,r){n.setFocus(r),n.dispatchExpandChange(e,t,r)},n.onPress=function(e,t,r){n.props.onItemDragStart&&n.props.onItemDragStart.call(void 0,{target:n,item:t,itemHierarchicalIndex:r})},n.onDrag=function(e,t,r){var o=e.pageX,i=e.pageY,a=e.clientX,l=e.clientY;n.props.onItemDragOver&&n.props.onItemDragOver.call(void 0,{target:n,item:t,itemHierarchicalIndex:r,pageX:o,pageY:i,clientX:a,clientY:l})},n.onRelease=function(e,t,r){var o=e.pageX,i=e.pageY,a=e.clientX,l=e.clientY;n.props.onItemDragEnd&&n.props.onItemDragEnd.call(void 0,{target:n,item:t,itemHierarchicalIndex:r,pageX:o,pageY:i,clientX:a,clientY:l})},n.onItemClick=function(e,t,r){n.setFocus(r),n.dispatchItemClick(e,t,r)},n.onFocus=function(){clearTimeout(n.blurRequest),void 0===n.state.focusedItemId&&n.data.length&&n.setFocus(n.state.tabbableItemId)},n.onBlur=function(){clearTimeout(n.blurRequest),n.blurRequest=window.setTimeout((function(){return n.setFocus(void 0)}),0)},n.onKeyDown=function(e){var t=n.getFocusedItem();if(t&&n.fieldsSvc){var r=Et(t,n.state.focusedItemId,n.data,e.keyCode,n.fieldsSvc);r!==n.state.focusedItemId&&(e.preventDefault(),n.allowExplicitFocus=!0,n.setFocus(r)),n.dispatchEventsOnKeyDown(e,t)}},(0,J.s)(Zt),n}return Xt(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e,t=this;this.fieldsSvc=new Gt(this.props);var n=this.props,r=n.size,i=n.className;return o.createElement("div",{className:(0,l.A)("k-treeview",(e={},e["k-treeview-".concat($t[r]||r)]=r,e),i),onKeyDown:this.onKeyDown,onFocus:this.onFocus,onBlur:this.onBlur,role:"tree","aria-multiselectable":!!this.ariaMultiSelectable||void 0,"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],ref:function(e){return t._element=e},tabIndex:this.props.tabIndex},o.createElement("ul",{className:"k-treeview-lines k-treeview-group",role:"group"},this.data.map((function(e,n){return o.createElement(Yt,{item:e,position:0===n?"top":n===t.data.length-1?"bot":"mid",itemId:n.toString(),treeGuid:t.treeGuid,animate:t.props.animate,focusedItemId:t.state.focusedItemId,tabbableItemId:t.state.tabbableItemId,fieldsService:t.fieldsSvc,itemUI:t.props.item,checkboxes:t.props.checkboxes,ariaMultiSelectable:t.ariaMultiSelectable,onItemClick:t.onItemClick,onFocusDomElNeeded:t.onFocusDomElNeeded,draggable:t.props.draggable,onPress:t.onPress,onDrag:t.onDrag,onRelease:t.onRelease,expandIcons:t.props.expandIcons,onExpandChange:t.onExpandChange,onCheckChange:t.onCheckChange,key:n,size:r})}))))},t.prototype.componentDidUpdate=function(){this.allowExplicitFocus=!1,this.refocusDueToFocusIdField()},t.prototype.dispatchEventsOnKeyDown=function(e,t){var n=this;if(null!==this.fieldsSvc){var r=function(){return n.fieldsSvc&&bt(n.state.focusedItemId,n.data,n.fieldsSvc)};e.keyCode===s.R.left&&this.fieldsSvc.expanded(t)&&r()||e.keyCode===s.R.right&&!this.fieldsSvc.expanded(t)&&(this.fieldsSvc.hasChildren(t)||vt(t,this.props.childrenField))&&r()?this.dispatchExpandChange(e,t,this.state.focusedItemId):e.keyCode===s.R.enter&&r()?this.dispatchItemClick(e,t,this.state.focusedItemId):e.keyCode===s.R.space&&r()&&(e.preventDefault(),this.dispatchCheckChange(e,t,this.state.focusedItemId))}},t.prototype.setFocus=function(e){if(e&&this.fieldsSvc)if(this.fieldsSvc.focusIdField){var t=this.getItemById(e);this.setState({focusedItemId:e,focusedItemPublicId:this.fieldsSvc.focusId(t)})}else this.setState({focusedItemId:e});else this.setState((function(e){return{focusedItemId:void 0,focusedItemPublicId:void 0,tabbableItemId:e.focusedItemId}}))},t.prototype.getFocusedItem=function(){return this.state.focusedItemId?this.getItemById(this.state.focusedItemId):void 0},t.prototype.getItemById=function(e){return lt(e,this.data,this.props.childrenField||Bt)},t.prototype.dispatchCheckChange=function(e,t,n){(0,it.N)(this.props.onCheckChange,e,this,{item:t,itemHierarchicalIndex:n})},t.prototype.dispatchExpandChange=function(e,t,n){(0,it.N)(this.props.onExpandChange,e,this,{item:t,itemHierarchicalIndex:n})},t.prototype.dispatchItemClick=function(e,t,n){(0,it.N)(this.props.onItemClick,e,this,{item:t,itemHierarchicalIndex:n})},t.prototype.refocusDueToFocusIdField=function(){if(this.fieldsSvc&&this.fieldsSvc.focusIdField){var e=this.state.focusedItemPublicId;if(e){var t=this.props.getFocusHierarchicalIndex?this.props.getFocusHierarchicalIndex(e):yt(e,this.fieldsSvc.focusIdField,this.data,this.props.childrenField);t!==this.state.focusedItemId&&(this.allowExplicitFocus=!0,this.setState({focusedItemId:t}))}}},Object.defineProperty(t.prototype,"ariaMultiSelectable",{get:function(){return!0===this.props["aria-multiselectable"]||"true"===this.props["aria-multiselectable"]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"data",{get:function(){return this.props.data||[]},enumerable:!1,configurable:!0}),t.prototype.focusDomItem=function(e){e.focus()},Object.defineProperty(t.prototype,"guid",{get:function(){return this.treeGuid},enumerable:!1,configurable:!0}),t.propTypes={data:i.arrayOf(i.any),animate:i.bool,tabIndex:i.number,focusIdField:i.string,getHierarchicalIndexById:i.func,onExpandChange:i.func,onItemClick:i.func,expandField:i.string,selectField:i.string,childrenField:i.string,hasChildrenField:i.string,textField:i.string,disableField:i.string,item:i.any,"aria-multiselectable":function(e,t,n){return void 0!==e[t]&&!0!==e[t]&&!1!==e[t]&&"true"!==e[t]&&"false"!==e[t]?new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Validation failed."):null},"aria-label":i.string,"aria-labelledby":i.string,size:i.oneOf([null,"small","medium","large"])},t.defaultProps={animate:!0,expandField:"expanded",selectField:"selected",hasChildrenField:"hasChildren",childrenField:Bt,textField:"text",disableField:"disabled",checkField:"checked",checkIndeterminateField:"checkIndeterminate",size:"medium"},t}(o.Component);function Jt(e,t,n){var r=o.useState(t),i=r[0],a=r[1];return o.useEffect((function(){void 0!==i&&e.current&&a(e.current.offsetWidth)}),n),i}var en=function(e){return o.createElement("div",{className:"k-nodata"},o.createElement("div",null,e.children))},tn=function(){return tn=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},tn.apply(this,arguments)},nn=a.G.sizeMap,rn=a.G.roundedMap,on=function(e){return o.createElement("span",{className:"k-input-value-text"},e.children)},an=function(e){return e.split("_").map((function(e){return parseInt(e,10)}))},ln={selectField:"selected",subItemsField:"items",popupSettings:{animate:!0,width:"200px",height:"200px"},required:!1,validityStyles:!0,size:"medium",rounded:"medium",fillMode:"solid"},sn=(0,c.Y)(),un=o.forwardRef((function(e,t){var n,r;(0,J.s)(ee);var i=(0,Ge.Y)(sn,e),a=o.useMemo((function(){return(0,Z.M)()}),[]),c=i.id||a,f=i.data,h=void 0===f?[]:f,m=i.dataItemKey,v=i.popupSettings,g=void 0===v?{}:v,y=i.style,b=void 0===y?{}:y,C=i.opened,k=i.disabled,S=i.onOpen,O=void 0===S?nt.Z:S,x=i.onClose,T=void 0===x?nt.Z:x,_=i.placeholder,R=i.label,M=i.name,P=i.selectField,N=void 0===P?ln.selectField:P,F=i.subItemsField,A=void 0===F?ln.subItemsField:F,j=i.validationMessage,L=i.valid,V=i.required,W=i.validityStyles,K=(0,u.p)(i.tabIndex,k),q=o.useRef(null),Y=o.useRef(null),G=o.useRef(null),X=o.useRef(null),$=o.useRef(null),Q=o.useRef(!1),te=o.useState(void 0),ne=te[0],re=te[1],oe=void 0!==i.value,ie=oe?i.value:void 0!==ne?ne:i.defaultValue,ae=w(ie),le=ae?D(ie,i.textField):"",se=function(e,t){var n=e.valid;return{customError:void 0!==e.validationMessage,valid:Boolean(void 0!==n?n:!e.required||t),valueMissing:!t}}({validationMessage:j,valid:L,required:V},ae),ue=o.useCallback((function(){return Y.current&&Y.current.focus()}),[]);o.useImperativeHandle(q,(function(){return{props:i,element:Y.current,focus:ue}})),o.useImperativeHandle(t,(function(){return q.current}));var ce=(0,rt.V)(Y,i.dir),de=void 0!==g.width?g.width:void 0!==b.width?b.width:ln.popupSettings.width,pe=Jt(Y,de),fe=tn({width:pe},void 0!==ce?{direction:ce}:{}),he=o.useState(!1),me=he[0],ve=he[1],ge=void 0!==C?C:me,ye=o.useState(!1),be=ye[0],Ce=ye[1],Ee=o.useState(""),we=Ee[0],ke=Ee[1],Se=o.useCallback((function(){X.current&&X.current.setCustomValidity&&X.current.setCustomValidity(se.valid?"":void 0===j?"Please select a value from the list!":j)}),[j,se]);o.useEffect(Se);var Oe=o.useCallback((function(e){if(!ge){if(O){var t=tn({},e);O.call(void 0,t)}void 0===C&&ve(!0)}}),[ge,C,O]),De=o.useCallback((function(e){if(ge){if(T){var t=tn({},e);T.call(void 0,t)}void 0===C&&ve(!1)}}),[ge,C,T]),xe=o.useCallback((function(e){if(!e.isDefaultPrevented()&&q.current){Ce(!0);var t={syntheticEvent:e,nativeEvent:e.nativeEvent,target:q.current};(ge?De:Oe)(t)}}),[ge,C,O,T]),Ie=o.useCallback((function(e){Q.current=!0,e(),window.setTimeout((function(){return Q.current=!1}),0)}),[]),Te=o.useCallback((function(e){var t=e.keyCode,n=e.altKey,r=$.current&&$.current.element;if(q.current&&(!e.isDefaultPrevented()||G.current!==e.target)){var o={syntheticEvent:e,nativeEvent:e.nativeEvent,target:q.current};if(ge)if(t===s.R.esc||n&&t===s.R.up)e.preventDefault(),De(o);else if(r&&r.querySelector(".k-focus")&&(t===s.R.up||t===s.R.down||t===s.R.left||t===s.R.right||t===s.R.home||t===s.R.end)){if(t===s.R.up&&G.current){var i=Array.from(r.querySelectorAll(".k-treeview-item")),a=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([],i,!0).reverse().find((function(e){return Boolean(e&&e.querySelector(".k-focus"))}));if(a&&0===i.indexOf(a))return Ie((function(){Re(G.current)}))}Ie(nt.Z)}else t===s.R.down&&Ie((function(){Re(G.current||r)}));else n&&t===s.R.down&&(e.preventDefault(),Oe(o))}}),[ge,C,O,T]),_e=o.useCallback((function(e){var t=e.keyCode;e.altKey||t!==s.R.up&&t!==s.R.down||(e.preventDefault(),Ie(t===s.R.up?function(){Re(Y.current)}:function(){Re($.current&&$.current.element)}))}),[]),Re=o.useCallback((function(e){e&&Ie((function(){return e.focus()}))}),[]),Me=o.useCallback((function(){be||!ge||C?i.filterable?Re(G.current):Re($.current&&$.current.element):De({target:q.current})}),[T,i.filterable,be,C,ge]),Pe=o.useCallback((function(){be&&Re(Y.current)}),[be]),Ne=o.useCallback((function(e){if(!be&&!Q.current&&(Ce(!0),i.onFocus&&q.current)){var t={syntheticEvent:e,nativeEvent:e.nativeEvent,target:q.current};i.onFocus.call(void 0,t)}}),[be,i.onFocus]),Fe=o.useCallback((function(e){if(be&&!Q.current&&q.current){Ce(!1);var t={syntheticEvent:e,nativeEvent:e.nativeEvent,target:q.current};if(i.onBlur){var n=tn({},t);i.onBlur.call(void 0,n)}De(t)}}),[be,i.onBlur,ge,C,T]),Ae=o.useCallback((function(){be&&Ie(nt.Z)}),[be]),je=o.useCallback((function(e,t,n){if(i.onChange){var r=tn({value:t,level:n?an(n):[]},e);i.onChange.call(void 0,r)}oe||re(t)}),[i.onChange,oe]),Le=o.useCallback((function(e){if(!I(e.item,ie,m)&&q.current){var t=e.item,n=e.itemHierarchicalIndex,r=e.nativeEvent,o={syntheticEvent:e.syntheticEvent,nativeEvent:r,target:q.current};je(o,t,n),De(o)}}),[oe,ie,i.onChange,m,ge,C,T]),Ve=o.useCallback((function(e){if(q.current){var t={syntheticEvent:e,nativeEvent:e.nativeEvent,target:q.current};je(t,null),De(t),e.preventDefault()}}),[oe,i.onChange,ge,C,T]),ze=o.useCallback((function(e){if(e.syntheticEvent.stopPropagation(),i.onExpandChange&&q.current){var t=e.item,n=e.itemHierarchicalIndex,r=e.nativeEvent,o=e.syntheticEvent,a={level:an(n),item:t,nativeEvent:r,syntheticEvent:o,target:q.current};i.onExpandChange.call(void 0,a)}}),[i.onExpandChange]),Be=o.useCallback((function(e){if(i.onFilterChange&&q.current){var t={filter:{field:i.textField,operator:"contains",value:e.target.value},syntheticEvent:e,nativeEvent:e.nativeEvent,target:q.current};i.onFilterChange.call(void 0,t),void 0===i.filter&&ke(e.target.value)}}),[i.onFilterChange,i.filter,i.textField]),He=o.useMemo((function(){return oe||!ae?h:(0,ot.Gy)(h,A,(function(e){var t;return(0,ot.u5)(e,A,((t={})[N]=I(e,ie,m),t))}))}),[h,ie,oe,ae,N,A]),Ue=i.listNoData||en,We=i.valueHolder||on,Ke=(0,z.useLocalization)(),qe=!W||se.valid,Ye=i.size,Ze=i.rounded,Xe=i.fillMode,$e=o.createElement("span",{className:(0,l.A)("k-dropdowntree k-picker",i.className,(n={},n["k-picker-".concat(nn[Ye]||Ye)]=Ye,n["k-rounded-".concat(rn[Ze]||Ze)]=Ze,n["k-picker-".concat(Xe)]=Xe,n["k-focus"]=be,n["k-invalid"]=!qe,n["k-loading"]=i.loading,n["k-required"]=V,n["k-disabled"]=i.disabled,n)),tabIndex:K,accessKey:i.accessKey,id:c,style:R?tn(tn({},b),{width:void 0}):b,dir:ce,ref:Y,onKeyDown:k?void 0:Te,onMouseDown:Ae,onClick:k?void 0:xe,onFocus:Ne,onBlur:Fe,role:"listbox","aria-haspopup":"true","aria-expanded":ge,"aria-disabled":k,"aria-label":R,"aria-labelledby":i.ariaLabelledBy,"aria-describedby":i.ariaDescribedBy},o.createElement("span",{className:"k-input-inner"},o.createElement(We,{item:ie},le||_)),i.loading&&o.createElement("span",{className:"k-icon k-i-loading k-input-loading-icon"}),ae&&!k&&o.createElement("span",{onClick:Ve,className:"k-clear-value",title:Ke.toLanguageString(H,U[H]),role:"button",tabIndex:-1,onMouseDown:function(e){return e.preventDefault()}},o.createElement("span",{className:"k-icon k-i-x"})),o.createElement("button",{tabIndex:-1,type:"button","aria-label":"select",className:(0,l.A)("k-input-button k-button k-icon-button",(r={},r["k-button-".concat(nn[Ye]||Ye)]=Ye,r["k-button-".concat(Xe)]=Xe,r["k-button-".concat(Xe,"-base")]=Xe,r))},o.createElement("span",{className:"k-button-icon k-icon k-i-arrow-s"})),o.createElement("select",{name:M,ref:X,tabIndex:-1,"aria-hidden":!0,title:R,style:{opacity:0,width:1,border:0,zIndex:-1,position:"absolute",left:"50%"}},o.createElement("option",{value:i.valueMap?i.valueMap.call(void 0,ie):ie})),o.createElement(p.G,{className:(0,l.A)(g.className,{"k-rtl":"rtl"===ce}),popupClass:g.popupClass,style:fe,animate:g.animate,anchor:Y.current,show:ge,onOpen:Me,onClose:Pe,appendTo:g.appendTo},i.filterable&&o.createElement(E,{value:void 0===i.filter?we:i.filter,inputRef:G,onChange:Be,onKeyDown:_e,size:Ye,rounded:Ze,fillMode:Xe}),h.length>0?o.createElement(Qt,{ref:$,tabIndex:K,data:He,focusIdField:m,textField:i.textField,selectField:N,expandField:i.expandField,childrenField:A,expandIcons:!0,onItemClick:Le,onExpandChange:ze,size:Ye,item:i.item}):o.createElement(Ue,null,Ke.toLanguageString(B,U[B]))));return R?o.createElement(d._,{label:R,editorValue:le,editorPlaceholder:_,editorValid:qe,editorDisabled:k,editorId:c,style:{width:b?b.width:void 0},children:$e,dir:ce}):$e})),cn={opened:i.bool,disabled:i.bool,dir:i.string,tabIndex:i.number,accessKey:i.string,data:i.array,value:i.any,valueMap:i.func,placeholder:i.string,dataItemKey:i.string.isRequired,textField:i.string.isRequired,selectField:i.string,expandField:i.string,subItemsField:i.string,className:i.string,style:i.object,label:i.string,validationMessage:i.string,validityStyles:i.bool,valid:i.bool,required:i.bool,name:i.string,id:i.string,ariaLabelledBy:i.string,ariaDescribedBy:i.string,filterable:i.bool,filter:i.string,loading:i.bool,popupSettings:i.shape({animate:i.oneOfType([i.bool,i.shape({openDuration:i.number,closeDuration:i.number})]),popupClass:i.string,className:i.string,appendTo:i.instanceOf(Element),width:i.oneOfType([i.string,i.number]),height:i.oneOfType([i.string,i.number])}),onOpen:i.func,onClose:i.func,onFocus:i.func,onBlur:i.func,onChange:i.func,onFilterChange:i.func,onExpandChange:i.func,item:i.func,valueHolder:i.func,listNoData:i.func};un.displayName="KendoReactDropDownTree",un.defaultProps=ln,un.propTypes=cn;var dn=function(){return dn=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},dn.apply(this,arguments)},pn=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},fn=a.G.sizeMap,hn=a.G.roundedMap,mn={checkField:"checkField",checkIndeterminateField:"checkIndeterminateField",subItemsField:"items",popupSettings:{animate:!0,width:"200px",height:"200px"},size:"medium",rounded:"medium",fillMode:"solid",required:!1,validityStyles:!0},vn=(0,c.Y)(),gn=o.forwardRef((function(e,t){var n,r,i=(0,Ge.Y)(vn,e);(0,J.s)(ee);var a=o.useMemo((function(){return(0,Z.M)()}),[]),c=i.id||a,f=i.data,h=void 0===f?[]:f,m=i.dataItemKey,v=i.popupSettings,g=void 0===v?{}:v,y=i.style,b=void 0===y?{}:y,C=i.opened,w=i.disabled,k=i.onOpen,S=void 0===k?nt.Z:k,O=i.onClose,x=void 0===O?nt.Z:O,T=i.placeholder,_=i.label,M=i.name,P=i.checkField,N=void 0===P?mn.checkField:P,F=i.checkIndeterminateField,A=void 0===F?mn.checkIndeterminateField:F,j=i.subItemsField,L=void 0===j?mn.subItemsField:j,V=i.validationMessage,H=i.valid,W=i.tags,K=i.value,q=i.required,Y=void 0===q?mn.required:q,G=i.validityStyles,X=void 0===G?mn.validityStyles:G,$=(0,u.p)(i.tabIndex,w),Q=o.useRef(null),te=o.useRef(null),ne=o.useRef(null),re=o.useRef(null),oe=o.useRef(null),ie=o.useRef(!1),ae=o.useRef([]),le=o.useRef(null),se=o.useState(),ue=se[0],ce=se[1],de=o.useState(!1),pe=de[0],he=de[1],me=o.useState(!1),ve=me[0],ge=me[1],ye=o.useState(""),be=ye[0],Ce=ye[1],Ee=void 0!==C?C:pe,we=Boolean(Array.isArray(K)&&K.length),ke=function(e,t){var n=e.valid;return{customError:void 0!==e.validationMessage,valid:Boolean(void 0!==n?n:!e.required||t),valueMissing:!t}}({validationMessage:V,valid:H,required:Y},we),Se=(0,rt.V)(te,i.dir),Oe=void 0!==g.width?g.width:void 0!==b.width?b.width:mn.popupSettings.width,De=Jt(te,Oe),xe=dn({width:De},void 0!==Se?{direction:Se}:{}),Ie=o.useCallback((function(){return te.current&&te.current.focus()}),[]);ae.current=void 0===W?(K||[]).map((function(e){return{text:D(e,i.textField),data:[e]}})):pn([],W,!0),o.useImperativeHandle(Q,(function(){return{props:i,element:te.current,focus:Ie}})),o.useImperativeHandle(t,(function(){return Q.current}));var Te=o.useCallback((function(){re.current&&re.current.setCustomValidity&&re.current.setCustomValidity(ke.valid?"":void 0===V?"Please select a value from the list!":V)}),[V,ke]);o.useEffect(Te),o.useEffect((function(){le.current&&Ee&&le.current.setPosition(le.current._popup)}),[K,Ee]);var _e=o.useCallback((function(e,t,n){if(i.onChange){var r=dn({items:t,operation:n},e);i.onChange.call(void 0,r)}}),[i.onChange]),Re=o.useCallback((function(e){if(!I(e.item,K,m)&&Q.current){var t=e.item,n=e.nativeEvent,r={syntheticEvent:e.syntheticEvent,nativeEvent:n,target:Q.current};_e(r,[t],"toggle")}}),[K,m,_e]),Me=o.useCallback((function(e){if(!Ee){if(S){var t=dn({},e);S.call(void 0,t)}void 0===C&&he(!0)}}),[Ee,C,S]),Ne=o.useCallback((function(e){if(Ee){if(x){var t=dn({},e);x.call(void 0,t)}void 0===C&&he(!1)}}),[Ee,C,x]),Fe=o.useCallback((function(e){ie.current=!0,e(),window.setTimeout((function(){return ie.current=!1}),0)}),[]),Ae=o.useCallback((function(e){e&&Fe((function(){return e.focus()}))}),[Fe]),je=o.useCallback((function(){!ve&&Ee?Ne({target:Q.current}):i.filterable?Ae(ne.current):Ae(oe.current&&oe.current.element)}),[ve,Ee,Ae,Ne,i.filterable]),Le=o.useCallback((function(){ve&&Ae(te.current)}),[ve,Ae]),Ve=o.useCallback((function(e){if(!ve&&!ie.current&&(ge(!0),i.onFocus&&Q.current)){var t={syntheticEvent:e,nativeEvent:e.nativeEvent,target:Q.current};i.onFocus.call(void 0,t)}}),[ve,i.onFocus]),ze=o.useCallback((function(e){if(ve&&!ie.current&&Q.current){ge(!1);var t={syntheticEvent:e,nativeEvent:e.nativeEvent,target:Q.current};if(i.onBlur){var n=dn({},t);i.onBlur.call(void 0,n)}Ne(t)}}),[ve,i.onBlur,Ee,C,x]),Be=o.useCallback((function(){ve&&Fe(nt.Z)}),[ve,Fe]),He=o.useCallback((function(e){if(!e.isDefaultPrevented()&&Q.current){ge(!0);var t={syntheticEvent:e,nativeEvent:e.nativeEvent,target:Q.current};Ee||Me(t)}}),[Ee,Me]),Ue=o.useCallback((function(e){var t=e.keyCode,n=e.altKey,r=oe.current&&oe.current.element;if(Q.current&&(!e.isDefaultPrevented()||ne.current!==e.target)){var o={syntheticEvent:e,nativeEvent:e.nativeEvent,target:Q.current};if(K&&K.length>0&&(t===s.R.left||t===s.R.right||t===s.R.home||t===s.R.end||t===s.R.delete)){var i=ae.current,a=ue?i.findIndex((function(e){return R(e,ue,m)})):-1,l=void 0,u=-1!==a;t===s.R.left?l=i[a=u?Math.max(0,a-1):i.length-1]:t===s.R.right?a===i.length-1?l=void 0:u&&(l=i[a=Math.min(i.length-1,a+1)]):t===s.R.home?l=i[0]:t===s.R.end?l=i[i.length-1]:t===s.R.delete&&u&&_e(o,i[a].data,"delete"),l!==ue&&ce(l)}if(Ee)if(t===s.R.esc||n&&t===s.R.up)e.preventDefault(),Ne(o);else if(r&&r.querySelector(".k-focus")&&(t===s.R.up||t===s.R.down||t===s.R.left||t===s.R.right||t===s.R.home||t===s.R.end)){if(t===s.R.up&&ne.current){var c=Array.from(r.querySelectorAll(".k-treeview-item")),d=pn([],c,!0).reverse().find((function(e){return Boolean(e&&e.querySelector(".k-focus"))}));if(d&&0===c.indexOf(d))return Fe((function(){Ae(ne.current)}))}Fe(nt.Z)}else t===s.R.down&&Fe((function(){Ae(ne.current||r)}));else n&&t===s.R.down&&(e.preventDefault(),Me(o))}}),[Ee,Ne,Ae,Fe,Me,ue,m,K,_e]),We=o.useCallback((function(e){var t=e.keyCode;e.altKey||t!==s.R.up&&t!==s.R.down||(e.preventDefault(),Fe(t===s.R.up?function(){Ae(te.current)}:function(){Ae(oe.current&&oe.current.element)}))}),[Ae,Fe]),Ke=o.useCallback((function(e){if(Q.current){var t={syntheticEvent:e,nativeEvent:e.nativeEvent,target:Q.current};_e(t,[],"clear"),Ne(t),e.preventDefault()}}),[_e,Ne]),qe=o.useCallback((function(e,t){Ne({target:Q.current}),ve||Ae(ne.current),_e({syntheticEvent:t,nativeEvent:t.nativeEvent,target:Q.current},e,"delete")}),[_e,Ne,Ae,ve]),Ye=o.useCallback((function(e){if(i.onExpandChange&&Q.current){var t=e.item,n=e.itemHierarchicalIndex,r=e.nativeEvent,o=e.syntheticEvent,a={level:(l=n,l.split("_").map((function(e){return parseInt(e,10)}))),item:t,nativeEvent:r,syntheticEvent:o,target:Q.current};i.onExpandChange.call(void 0,a)}var l}),[i.onExpandChange]),Ze=o.useCallback((function(e){if(i.onFilterChange&&Q.current){var t={filter:{field:i.textField,operator:"contains",value:e.target.value},syntheticEvent:e,nativeEvent:e.nativeEvent,target:Q.current};i.onFilterChange.call(void 0,t),void 0===i.filter&&Ce(e.target.value)}}),[i.onFilterChange,i.filter,i.textField]),Xe=i.listNoData||en,$e=(0,z.useLocalization)(),Qe=!X||ke.valid,Je=i.size,et=i.rounded,tt=i.fillMode,ot=o.createElement("span",{className:(0,l.A)("k-multiselect k-input",i.className,(n={},n["k-input-".concat(fn[Je]||Je)]=Je,n["k-rounded-".concat(hn[et]||et)]=et,n["k-input-".concat(tt)]=tt,n["k-focus"]=ve&&!w,n["k-invalid"]=!Qe,n["k-disabled"]=w,n["k-loading"]=i.loading,n["k-required"]=Y,n)),tabIndex:$,accessKey:i.accessKey,id:c,style:_?dn(dn({},b),{width:void 0}):b,dir:Se,ref:te,onKeyDown:w?void 0:Ue,onMouseDown:Be,onFocus:Ve,onBlur:ze,role:"listbox","aria-haspopup":"true","aria-expanded":Ee,"aria-disabled":w,"aria-label":_,"aria-labelledby":i.ariaLabelledBy,"aria-describedby":i.ariaDescribedBy,onClick:w?void 0:He},ae.current.length>0&&o.createElement("div",{className:(0,l.A)("k-input-values k-chip-list k-selection-multiple",(r={},r["k-chip-list-".concat(fn[Je]||Je)]=Je,r)),role:"listbox",id:"tagslist-"+c},o.createElement(Pe,{tag:i.tag,onTagDelete:qe,data:ae.current,guid:c,focused:ue?ae.current.find((function(e){return R(e,ue,m)})):void 0,size:Je})),!we&&o.createElement("span",{className:"k-input-inner"},o.createElement("span",{className:"k-input-value-text"}," ")),i.loading&&o.createElement("span",{className:"k-icon k-i-loading k-input-loading-icon"}),we&&!w&&o.createElement(fe,{onClick:Ke}),o.createElement("select",{name:M,ref:re,tabIndex:-1,"aria-hidden":!0,title:_,style:{opacity:0,width:1,border:0,zIndex:-1,position:"absolute",left:"50%"}},o.createElement("option",{value:i.valueMap?i.valueMap.call(void 0,K):K})),o.createElement(p.G,{popupClass:g.popupClass,className:(0,l.A)(g.className,{"k-rtl":"rtl"===Se}),style:xe,animate:g.animate,anchor:te.current,show:Ee,onOpen:je,onClose:Le,appendTo:g.appendTo,ref:le},i.filterable&&o.createElement(E,{value:void 0===i.filter?be:i.filter,inputRef:ne,onChange:Ze,onKeyDown:We,tabIndex:$,size:Je,rounded:et,fillMode:tt}),h.length>0?o.createElement(Qt,{ref:oe,tabIndex:$,data:h,focusIdField:m,textField:i.textField,checkField:N,checkIndeterminateField:A,expandField:i.expandField,childrenField:L,expandIcons:!0,onItemClick:Re,onCheckChange:Re,onExpandChange:Ye,checkboxes:!0,size:Je,item:i.item}):o.createElement(Xe,null,$e.toLanguageString(B,U[B]))));return _?o.createElement(d._,{label:_,editorValue:we,editorPlaceholder:T,editorValid:Qe,editorDisabled:w,editorId:c,style:{width:b?b.width:void 0},children:ot,dir:Se}):ot})),yn={opened:i.bool,disabled:i.bool,dir:i.string,tabIndex:i.number,accessKey:i.string,data:i.array,value:i.any,valueMap:i.func,placeholder:i.string,dataItemKey:i.string.isRequired,textField:i.string.isRequired,checkField:i.string,checkIndeterminateField:i.string,expandField:i.string,subItemsField:i.string,className:i.string,style:i.object,label:i.string,validationMessage:i.string,validityStyles:i.bool,valid:i.bool,required:i.bool,name:i.string,id:i.string,ariaLabelledBy:i.string,ariaDescribedBy:i.string,filterable:i.bool,filter:i.string,loading:i.bool,tags:i.arrayOf(i.shape({text:i.string,data:i.arrayOf(i.any)})),popupSettings:i.shape({animate:i.oneOfType([i.bool,i.shape({openDuration:i.number,closeDuration:i.number})]),popupClass:i.string,className:i.string,appendTo:i.instanceOf(Element),width:i.oneOfType([i.string,i.number]),height:i.oneOfType([i.string,i.number])}),onOpen:i.func,onClose:i.func,onFocus:i.func,onBlur:i.func,onChange:i.func,onFilterChange:i.func,onExpandChange:i.func,item:i.func,listNoData:i.func};gn.displayName="KendoReactMultiSelectTree",gn.defaultProps=mn,gn.propTypes=yn;var bn=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},Cn=function(e,t){var n={};return e&&e.length&&e.forEach((function(e){n[t(e)]=!0})),n},En=function(e,t){var n=t.items,r=t.dataItemKey,o=t.value,i=t.subItemsField,a=void 0===i?"items":i,l=t.operation,s=(0,Xe.Y)(r),u=Cn(o,s);if("clear"===l)return[];if("delete"===l){var c=Cn(n,s);return o.filter((function(e){return!c[s(e)]}))}for(var d,p=n[0],f=s(p),h=(0,Xe.Y)(a),m=bn([],e,!0),v=[],g=[];m.length;){var y=m.pop();if(f===s(y)){g=v.map((function(e){return e.item})),d=y;break}v&&v.length&&v[v.length-1].parentPosition===m.length&&v.pop(),(I=h(y))&&I.length&&(v.push({item:y,parentPosition:m.length}),m.push.apply(m,I))}for(var b=bn([],h(d)||[],!0),C=[];b.length;)y=b.pop(),C.push(y),(I=h(y))&&I.length&&b.push.apply(b,I);var E=[];if(u[f]){var w=s(d),k=Cn(C,s),S=Cn(g,s);E.push.apply(E,o.filter((function(e){var t=s(e);return!k[t]&&w!==t&&!S[t]})))}else{E.push.apply(E,o),E.push(d),E.push.apply(E,C.filter((function(e){return!u[s(e)]})));for(var O=g.filter((function(e){return!u[s(e)]})),D=Cn(E,s),x=O.length-1;x>-1;x--){var I,T=O[x];if((I=h(T)).filter((function(e){return D[s(e)]})).length<I.length)break;E.push(T),D[s(T)]=!0}}return E}},1448:(e,t,n)=>{n.r(t),n.d(t,{Field:()=>a,FieldArray:()=>C,FieldWrapper:()=>w,Form:()=>y,FormElement:()=>S});var r=n(3899),o=r.createContext(null),i=function(){return i=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},i.apply(this,arguments)},a=function(e){var t=e.name,n=e.component,a=e.validator,l=e.children,s=e.onChange,u=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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["name","component","validator","children","onChange"]),c=r.useContext(o),d=c?c.id:"";r.useEffect((function(){if(c)return c.registerField(t,a)}),[t,d,a]);var p=r.useCallback((function(e){var n=e?void 0!==e.value?e.value:e.target?e.target.value:e.target:e;c.onChange(t,{value:n}),s&&s.call(void 0,e)}),[t,d,s]),f=r.useCallback((function(e){return c.onChange(t,{value:e.target.value})}),[t,d]),h=r.useCallback((function(){return c.onBlur(t)}),[t,d]),m=r.useCallback((function(){return c.onFocus(t)}),[t,d]);if(!c)return null;var v=c.valueGetter(t);return"string"==typeof n?r.createElement(n,i({onChange:f,onBlur:h,onFocus:m,value:v,children:l},u)):r.createElement(n,i(i({children:l},u),{onChange:p,onBlur:h,onFocus:m,value:v,validationMessage:c.errors[t],touched:c.touched[t],modified:c.modified[t],visited:c.visited[t],valid:!(Boolean(c.errors[t])&&c.touched[t]),name:t}))};a.displayName="KendoReactField";var l,s=n(189),u=n(3198),c=n(4500),d=n(9659),p=n(4431),f=n(4006),h={name:"@progress/kendo-react-form",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1656315473,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"},m=(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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},l(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}l(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),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},v.apply(this,arguments)},g=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},y=function(e){function t(t){var n=e.call(this,t)||this;return n._id=(0,u.M)(),n._touched={},n._visited={},n._modified={},n._validatorsByField={},n._values={},n._fields={},n._unmounted=!1,n._submitted=!1,n.isValid=function(){return n.isFormValid(n.errors)},n.accumulatedForceUpdate=function(){n._accumulatorTimeout&&clearTimeout(n._accumulatorTimeout),n._accumulatorTimeout=window.setTimeout((function(){n._accumulatorTimeout=void 0,n.forceUpdate()}),0)},n.resetForm=function(){n.values=(0,c.d9)(n.props.initialValues),n._id=(0,u.M)(),n._touched={},n._visited={},n._modified={},n._validatorsByField={},n._fields={},n._submitted=!1,n.forceUpdate()},n.onReset=function(){return n.resetForm()},n.addField=function(e){n._fields[e]=!0},n.onSubmit=function(e){var t={},r=n.fields;e&&("function"==typeof e.preventDefault&&e.preventDefault(),"function"==typeof e.stopPropagation&&e.stopPropagation()),r.forEach((function(e){t[e]=!0})),n.visited=v({},t),n.touched=v({},t);var o=n.values,i=n.isFormValid(n.errors),a=n.isFormModified(n.modified,r);n.props.onSubmitClick&&n.props.onSubmitClick.call(void 0,{values:o,isValid:i,isModified:a,event:e}),i&&(n.props.ignoreModified||a)&&n.props.onSubmit&&(n._submitted=!0,n.props.onSubmit.call(void 0,o,e)),n.forceUpdate()},n.onChange=function(e,t){var r,o=t.value;n.addField(e),n.modified[e]||(n.modified=v(v({},n.modified),((r={})[e]=!0,r))),n.valueSetter(e,o),n.forceUpdate()},n.onFocus=function(e,t){var r;n.visited[e]||(n.visited=v(v({},n.visited),((r={})[e]=!0,r)),t||n.forceUpdate())},n.onBlur=function(e,t){var r;n.touched[e]||(n.onFocus(e,t),n.touched=v(v({},n.touched),((r={})[e]=!0,r)),t||n.forceUpdate())},n.onFieldRegister=function(e,t){var r;n.addField(e);var o=n.validatorsByField[e]||[],i=o.length;return n.validatorsByField=v(v({},n.validatorsByField),((r={})[e]=g(g([],o,!0),[t],!1),r)),n.accumulatedForceUpdate(),function(){var t;if(!n._unmounted){var r=g([],n.validatorsByField[e]||[],!0),o=Boolean(r[i]);r[i]=void 0,n.validatorsByField=v(v({},n.validatorsByField),((t={})[e]=r,t)),o&&n.accumulatedForceUpdate()}}},n.isFormValid=function(e){return!Object.keys(e).some((function(t){return Boolean(e[t])}))},n.isFormModified=function(e,t){return t.some((function(t){return e[t]}))},n.isFormHasNotTouched=function(e,t){return t.some((function(t){return!e[t]}))},n.isFormTouched=function(e,t){return t.some((function(t){return e[t]}))},n.isFormVisited=function(e,t){return t.some((function(t){return e[t]}))},n.valueGetter=function(e){return(0,d.Y)(e)(n.values)},n.valueSetter=function(e,t){return(0,p.I)(e)(n.values,t)},n.onArrayAction=function(e){var t;n.addField(e),n.modified[e]||(n.modified=v(v({},n.modified),((t={})[e]=!0,t))),n.onBlur(e,!0)},n.onInsert=function(e,t){n.onArrayAction(e);var r=g([],n.valueGetter(e)||[],!0);r.splice(t.index,0,t.value),n.valueSetter(e,r),n.forceUpdate()},n.onUnshift=function(e,t){n.onInsert(e,{value:t.value,index:0})},n.onPush=function(e,t){n.onArrayAction(e);var r=g(g([],n.valueGetter(e)||[],!0),[t.value],!1);n.valueSetter(e,r),n.forceUpdate()},n.onPop=function(e){n.onArrayAction(e);var t=g([],n.valueGetter(e)||[],!0),r=t.pop();return n.valueSetter(e,t),n.forceUpdate(),r},n.onRemove=function(e,t){n.onArrayAction(e);var r=g([],n.valueGetter(e)||[],!0),o=r.splice(t.index,1);return n.valueSetter(e,r),n.forceUpdate(),o},n.onReplace=function(e,t){n.onArrayAction(e);var r=g([],n.valueGetter(e)||[],!0);r.splice(t.index,1,t.value),n.valueSetter(e,r),n.forceUpdate()},n.onMove=function(e,t){n.onArrayAction(e);var r=g([],n.valueGetter(e)||[],!0),o=r[t.prevIndex];r.splice(t.prevIndex,1),r.splice(t.nextIndex,0,o),n.valueSetter(e,r),n.forceUpdate()},(0,f.s)(h),n.values=(0,c.d9)(t.initialValues),n}return m(t,e),Object.defineProperty(t.prototype,"touched",{get:function(){return this._touched},set:function(e){this._touched=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visited",{get:function(){return this._visited},set:function(e){this._visited=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"modified",{get:function(){return this._modified},set:function(e){this._modified=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validatorsByField",{get:function(){return this._validatorsByField},set:function(e){this._validatorsByField=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"values",{get:function(){return this._values},set:function(e){this._values=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fields",{get:function(){return Object.keys(this._fields)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"formErrors",{get:function(){if(this.props.validator)return this.props.validator(this.values,this.valueGetter)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"errors",{get:function(){var e=this,t={},n=this.fields,r=this.validatorsByField;return n.forEach((function(n){if(t[n]="",r[n]){var o=[];r[n].forEach((function(e){Array.isArray(e)?o.push.apply(o,e):o.push(e)})),o.find((function(r){if(r){var o=r(e.valueGetter(n),e.valueGetter,{name:n});if(o)return t[n]=o,!0}return!1}))}})),this.formErrors&&(0,c.kI)(this.formErrors,t),t},enumerable:!1,configurable:!0}),t.prototype.componentWillUnmount=function(){this._unmounted=!0,this._accumulatorTimeout&&clearTimeout(this._accumulatorTimeout)},t.prototype.render=function(){var e=this.props.render,t=this.touched,n=this.visited,i=this.modified,a=this.fields,l=this.errors,s=this.isFormValid(l),u=this.isFormModified(i,a),c=this.isFormTouched(t,a),d=this.isFormVisited(n,a),p=this.isFormHasNotTouched(t,a)&&!s||s&&(this.props.ignoreModified||u);return r.createElement(o.Provider,{key:this._id,value:{id:this._id,valueGetter:this.valueGetter,errors:l,modified:i,touched:t,visited:n,registerField:this.onFieldRegister,onSubmit:this.onSubmit,onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,onUnshift:this.onUnshift,onPush:this.onPush,onInsert:this.onInsert,onPop:this.onPop,onRemove:this.onRemove,onReplace:this.onReplace,onMove:this.onMove}},e({valid:s,modified:u,touched:c,visited:d,submitted:this._submitted,valueGetter:this.valueGetter,errors:l,allowSubmit:p,onChange:this.onChange,onSubmit:this.onSubmit,onFormReset:this.resetForm}))},t.displayName="KendoReactForm",t.propTypes={initialValues:s.any,onSubmit:s.func,onSubmitClick:s.func,render:s.func.isRequired},t}(r.Component),b=function(){return b=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},b.apply(this,arguments)},C=function(e){var t=e.name,n=e.component,i=e.validator,a=(e.type,e.children),l=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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["name","component","validator","type","children"]),s=r.useContext(o),u=s?s.id:"";r.useEffect((function(){if(s)return s.registerField(t,i)}),[t,u,i]);var c=r.useCallback((function(e){return s.onUnshift(t,e)}),[t,u]),d=r.useCallback((function(e){return s.onPush(t,e)}),[t,u]),p=r.useCallback((function(e){return s.onInsert(t,e)}),[t,u]),f=r.useCallback((function(){return s.onPop(t)}),[t,u]),h=r.useCallback((function(e){return s.onRemove(t,e)}),[t,u]),m=r.useCallback((function(e){return s.onReplace(t,e)}),[t,u]),v=r.useCallback((function(e){return s.onMove(t,e)}),[t,u]);if(!s)return null;var g=s.valueGetter(t);return r.createElement(n,b({value:g,validationMessage:s.errors[t],touched:s.touched[t],modified:s.modified[t],visited:s.visited[t],valid:!(Boolean(s.errors[t])&&s.touched[t]),onUnshift:c,onPush:d,onInsert:p,onPop:f,onRemove:h,onReplace:m,onMove:v,children:a,name:t},l))};C.displayName="KendoReactFieldArray";var E=n(8047),w=function(e){var t=(0,E.A)({"k-form-field":!0,"k-rtl":"rtl"===e.dir},e.className);return r.createElement("div",{className:t,style:e.style},e.children)};w.displayName="KendoReactFieldWrapper";var k=function(){return k=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},k.apply(this,arguments)},S=r.forwardRef((function(e,t){var n=r.useRef(null),i=r.useRef(null);r.useImperativeHandle(i,(function(){return{element:n.current,props:e}})),r.useImperativeHandle(t,(function(){return i.current}));var a=r.useContext(o),l=e.className,s=(e.onSubmit,e.style,e.horizontal),u=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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["className","onSubmit","style","horizontal"]),c=(0,E.A)({"k-form":!0,"k-form-horizontal":!0===s},l);return r.createElement("form",k({ref:n},u,{style:e.style,className:c,onSubmit:a?a.onSubmit:void 0}),e.children)}));S.displayName="KendoReactFormElement"},3390:(e,t,n)=>{n.r(t),n.d(t,{Checkbox:()=>on,CheckboxPropsContext:()=>rn,ColorGradient:()=>rt,ColorGradientPropsContext:()=>nt,ColorPalette:()=>ct,ColorPalettePropsContext:()=>ut,ColorPicker:()=>yt,ColorPickerPropsContext:()=>gt,FlatColorPicker:()=>wt,Input:()=>Le,InputPropsContext:()=>je,MaskedTextBox:()=>Bt,MaskedTextBoxPropsContext:()=>zt,NumericTextBox:()=>Pe,NumericTextBoxPropsContext:()=>Me,RadioButton:()=>sn,RadioButtonPropsContext:()=>ln,RadioGroup:()=>pn,RadioGroupPropsContext:()=>dn,RangeSlider:()=>Yt,RangeSliderPropsContext:()=>qt,Rating:()=>In,RatingItem:()=>gn,RatingPropsContext:()=>xn,SLIDER_LABEL_ATTRIBUTE:()=>z,Slider:()=>Y,SliderLabel:()=>B,SliderPropsContext:()=>q,Switch:()=>tn,SwitchPropsContext:()=>en,TextArea:()=>vn,TextAreaPropsContext:()=>mn});var r,o,i=n(3899),a=n(189),l=n(9124),s=n(3198),u=n(8047),c=n(4703),d=n(1779),p=n(848),f=n(4006),h={name:"@progress/kendo-react-inputs",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1656315206,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"},m=n(3493),v=n(5407),g=n(499),y="numerictextbox.increment",b="numerictextbox.decrement",C="slider.dragTitle",E="colorGradient.r",w="colorGradient.g",k="colorGradient.b",S="colorGradient.a",O="colorGradient.hex",D="colorGradient.contrastRatio",x="colorGradient.colorGradientAALevel",I="colorGradient.colorGradientAAALevel",T="colorGradient.colorGradientPass",_="colorGradient.colorGradientFail",R="flatColorPicker.cancelBtn",M="flatColorPicker.applyBtn",P="checkbox.validation",N="checkbox.optionalText",F="switch.validation",A="colorPicker.dropdownButtonAriaLabel",j=((r={})[y]="Increase value",r[b]="Decrease value",r["slider.increment"]="Increase",r["slider.decrement"]="Decrease",r[C]="Drag",r[E]="r",r[w]="g",r[k]="b",r[S]="a",r[O]="hex",r[D]="Contrast ratio",r[x]="AA",r[I]="AAA",r[T]="Pass",r[_]="Fail",r[R]="Cancel",r[M]="Apply",r[P]="Please check this box if you want to proceed!",r[N]="(Optional)",r["radioButton.validation"]="Please select option if you want to proceed!",r[F]="Please turn on if you want to proceed!",r[A]="Select",r),L=n(8199),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},V.apply(this,arguments)},z="data-slider-label",B=function(e){var t,n,r=i.useRef(null),o=(0,L.n)(r),a=e.vertical?{bottom:"".concat(e.position,"%")}:((t={})["rtl"===o?"right":"left"]="".concat(e.position,"%"),t),l=e.vertical?"k-tick-vertical":"k-tick-horizontal";return i.createElement("li",{ref:r,role:"presentation",className:"k-tick k-tick-large ".concat(l),title:e.title,style:V({zIndex:1,position:"absolute"},a)},i.createElement("span",V({},((n={})[z]=!0,n),{className:"k-label",onClick:e.onClick}),e.children))},H=n(7037),U=(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),W=function(){return W=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},W.apply(this,arguments)},K=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._sliderTrack=null,n._element=null,n.buttons=function(e){return e.enabled?i.createElement(i.Fragment,null,i.createElement(H.z,{className:"k-button-decrease k-rounded-full",icon:n.props.vertical?"arrow-s":"arrow-w",title:e.decrementTitle,onClick:e.decrement}),e.children,i.createElement(H.z,{className:"k-button-increase k-rounded-full",icon:n.props.vertical?"arrow-n":"arrow-e",title:e.incrementTitle,onClick:e.increment})):e.children},n.focus=function(){n._element&&n._element.focus()},n.isLabel=function(e){for(var t=e;t;){if(Boolean(t.getAttribute(z)))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===m.R.left||e.keyCode===m.R.down?t=n.state.value-(n.props.step||0):e.keyCode===m.R.right||e.keyCode===m.R.up?t=n.state.value+(n.props.step||0):e.keyCode===m.R.home?t=n.props.min:e.keyCode===m.R.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))},(0,f.s)(h),n}return U(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=this,n=(0,g.provideLocalizationService)(this),r=(this.state.value-this.props.min)/(this.props.max-this.props.min)*100,o=this.props.vertical?{marginTop:"0.5rem",marginBottom:"0.5rem"}:{marginLeft:"0.5rem",marginRight:"0.5rem"},a=this.props.vertical?{paddingTop:0,height:"100%"}:{};return i.createElement("div",{ref:function(e){return t._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:W({gap:0},this.props.style),tabIndex:(0,c.p)(this.props.tabIndex,this.props.disabled,void 0),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,className:(0,u.A)("k-slider k-widget",{"k-focus":this.state.focused,"k-disabled":this.props.disabled,"k-slider-horizontal":!this.props.vertical,"k-slider-vertical":this.props.vertical},this.props.className)},i.createElement(this.buttons,{enabled:this.props.buttons,decrement:this.decrement,increment:this.increment,incrementTitle:n.toLanguageString("slider.increment",j["slider.increment"]),decrementTitle:n.toLanguageString("slider.decrement",j["slider.decrement"])},i.createElement(d._,{onDrag:this.dragOver,onPress:this.dragStart},i.createElement("div",{className:"k-slider-track-wrap",style:W({flexGrow:1,position:"relative",touchAction:"none"},o)},this.props.children&&i.createElement("ul",{className:"k-reset k-slider-items",style:W({margin:0},a)},i.Children.map(this.props.children,(function(e){return e&&i.cloneElement(e,{position:100*(e.props.position-t.props.min)/(t.props.max-t.props.min),vertical:t.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 t._sliderTrack=e}},i.createElement("div",{className:"k-slider-selection",style:this.props.vertical?{height:r+"%"}:{width:r+"%"}}),i.createElement("a",{className:"k-draghandle",title:n.toLanguageString(C,j[C]),style:this.props.vertical?{bottom:"calc("+r+"%)",zIndex:1}:"rtl"===this.state.dir?{right:"calc("+r+"% - 13px)",zIndex:1}:{left:"calc("+r+"%)",zIndex:1}}))))))},Object.defineProperty(t.prototype,"sliderTrack",{get:function(){return this._sliderTrack},enumerable:!1,configurable:!0}),t.prototype.change=function(e,t){t=Math.min(Math.max(t,this.props.min),this.props.max),this.setState({value:t}),(0,v.N)(this.props.onChange,e,this,{value:t})},t.displayName="Slider",t.propTypes={min:a.number.isRequired,max:a.number.isRequired,value:a.number,vertical:a.bool,id:a.string,ariaLabelledBy:a.string,ariaDescribedBy:a.string},t}(i.Component),q=(0,p.Y)(),Y=(0,p.u)(q,K);Y.displayName="KendoReactSlider",(0,g.registerForLocalization)(K);var G=function(e){return null!=e},Z=function(e,t,n){return!G(e)||isNaN(e)||e<=t?t:e>=n?n:e},X=n(4407),$=function(e,t,n){if(void 0===n&&(n=!0),-1===["hex","rgba"].indexOf(t))throw new Error("Unsupported color output format '".concat(t,"'. The available options are 'hex' or 'rgba'."));if(G(e)){var r=(0,X.parseColor)(e.trim(),n);if(G(r))return"hex"===t?r.toCss():r.toCssRgba()}},Q=function(e,t){void 0===t&&(t=!0);var n=(0,X.parseColor)(e,t);return G(n)?n.toHSV():{}},J=function(e,t){void 0===t&&(t=!0);var n=(0,X.parseColor)(e,t);return G(n)?n.toBytes():{}},ee=function(e){var t=Z(e.h,0,359.9),n=Z(e.s,0,1),r=Z(e.v,0,1),o=Z(e.a,0,1);return X.Color.fromHSV(t,n,r,o).toCssRgba()},te=function(e){return ee({h:e,s:1,v:1,a:1})},ne=function(e,t){var n=Z(e.r,0,255),r=Z(e.g,0,255),o=Z(e.b,0,255),i=Z(e.a,0,1),a=Z(t.r,0,255),l=Z(t.g,0,255),s=Z(t.b,0,255);return{r:Math.round((1-i)*a+i*n),g:Math.round((1-i)*l+i*r),b:Math.round((1-i)*s+i*o)}},re=function(e){var t=[e.r||0,e.g||0,e.b||0].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]},oe=function(e,t){return n=re(ne(e,t)),r=re(ne(t,{r:0,g:0,b:0,a:1})),(Math.max(n,r)+.05)/(Math.min(n,r)+.05);var n,r},ie={},ae=n(9656),le=n(2697),se=n(6097),ue=function(){return ue=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},ue.apply(this,arguments)},ce=1111111.1111111,de=/\d/,pe=function(e,t){return void 0!==e?e:t},fe=function(e,t,n){return null===e&&void 0===e?"":"string"==typeof e?e:n.formatNumber(e,t)},he=function(e){return(String(e).split(".")[1]||"").length},me=function(e,t){return Math.max(he(e),he(t))},ve=function(e,t){var n=function(e){return Math.min(e,15)}(t);return parseFloat(e.toFixed(n))},ge=function(e,t,n,r,o,i,a){var l=me(e||0,n||0),s=be(ve((e||0)+(n||0),l),r,o);t.eventValue=s,t.currentLooseValue=fe(s,i,a),t.selectionStart=t.selectionEnd=Se(t.currentLooseValue,de)},ye=function(e,t,n,r,o,i,a){var l=me(e||0,n||0),s=be(ve((e||0)-(n||0),l),r,o);t.eventValue=s,t.currentLooseValue=fe(s,i,a),t.selectionStart=t.selectionEnd=Se(t.currentLooseValue,de)},be=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},Ce=function(e,t,n,r){e.selectionStart=e.selectionEnd=t,function(e,t,n){var r=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}(e,t);if(-1!==r&&n.selectionStart>r)n.selectionStart=n.selectionEnd=r;else{n.selectionStart>e.length&&(n.selectionStart=n.selectionEnd=e.length);var o=function(e,t){var n=t.findIndex((function(t){var n=t[0];return t[1],Boolean(n)&&0===e.indexOf(n)}));return-1===n?-1:t[n][0].length}(e,t);-1!==o&&n.selectionStart<o&&(n.selectionStart=n.selectionEnd=o),-1===n.selectionStart&&(n.selectionStart=n.selectionEnd=0)}}(n,r,e)},Ee=function(e,t,n,r){e.eventValue=r.parseNumber(e.prevLooseValue,t),e.currentLooseValue=e.prevLooseValue,e.valueIsCorrected=!0,Ce(e,e.selectionStart,e.currentLooseValue,n)},we=function(e,t){var n=e.indexOf(t.decimal);return n>-1?n:Se(e,de)},ke=function(e){return e.split("").reverse().join("")},Se=function(e,t){return e.length-ke(e).search(t)},Oe=function(e){return e.split(e[e.search(de)])[0]},De=function(e){var t=ke(e);return ke(t.split(t[t.search(de)])[0])},xe=function(e,t){return e.search(t)},Ie=function(e,t){var n=e.indexOf(t);return n>-1?e.length-n-1:0},Te=function(e,t,n,r,o){var i="0"===e.replace(o,"")[0],a="0"===t.replace(o,"")[0];if(i&&!a)return n-1;if(a&&r)return n+1;for(var l=0,s=0;s<n;s++)de.test(e.charAt(s))&&l++;for(var u=0;l>0&&t.length>u;)de.test(t.charAt(u))&&l--,u++;return u},_e=function(e,t,n){var r=ue({},e),o=r.prevLooseValue,i=n.numberSymbols(),a=function(e,t){var n=t.formatNumber(ce,e),r=t.formatNumber(-ce,e),o=t.formatNumber(0,e),i=t.formatNumber(1,e),a=t.numberSymbols(),l=new RegExp("[\\d\\".concat(a.decimal).concat(a.group,"]"),"g");return[n,r,o,i].map((function(e){return e.replace(l,"")})).join("").split("").filter((function(e,t,n){return n.indexOf(e)===t})).join("")}(t,n),l=String(r.currentLooseValue),s=String(o),u=new RegExp("[^\\d\\".concat(i.decimal,"]"),"g"),c=new RegExp("[^\\d\\".concat(i.decimal,"\\").concat(i.group,"]"),"g"),d=new RegExp("[\\d\\".concat(i.decimal,"\\").concat(i.group,"]")),p=l.replace(u,""),f=xe(l,de),h=-1===f?-1:Se(l,de),m=l.indexOf(i.decimal),v=(l.substring(0,f)+l.substring(f,h).replace(c,"")+l.substring(h,l.length)).split("").filter((function(e){return-1!==a.indexOf(e)||-1!==e.search(d)})).join(""),g=n.formatNumber(.31111111111111117,t).replace(u,""),y=g.indexOf(i.decimal),b=y>-1?g.length-y-1:0,C=n.formatNumber(1,t).replace(u,""),E=C.indexOf(i.decimal),w=E>-1?C.length-E-1:0,k=function(e,t){var n=t.formatNumber(ce,e),r=t.formatNumber(-ce,e),o=t.formatNumber(0,e),i=t.formatNumber(1,e),a=Oe(n),l=Oe(r),s=Oe(o),u=Oe(i);return{positiveInfo:[a,De(n)],negativeInfo:[l,De(r)],zeroInfo:[s,De(o)],oneInfo:[u,De(i)]}}(t,n),S=[k.positiveInfo,k.negativeInfo,k.zeroInfo,k.oneInfo],O=1!==S.findIndex((function(e){return-1!==e.findIndex((function(e){return Boolean(e)}))})),D=l.length>0&&l.length<s.length,x="string"==typeof t&&"p"===t[0]&&l&&-1===l.indexOf(i.percentSign);if(!r.isPaste){if(""===l)return r.eventValue=null,r.currentLooseValue="",r;if(r.currentLooseValue===i.minusSign&&n.formatNumber(-0,t)!==s)return r.eventValue=-0,r.currentLooseValue=fe(r.eventValue,t,n),Ce(r,we(r.currentLooseValue,i),r.currentLooseValue,S),r;if(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}(r,i)){var I=n.parseNumber(o,t);r.eventValue=-(null!==I?I:0),r.currentLooseValue=fe(r.eventValue,t,n);var T=xe(r.currentLooseValue,de),_=xe(s,de);return Ce(r,r.selectionEnd-1+(T-_),r.currentLooseValue,S),r}if(function(e,t){var n=String(e.currentLooseValue),r=String(e.prevLooseValue);return-1===n.indexOf(t.minusSign)&&-1!==r.indexOf(t.minusSign)}(r,i))return r.eventValue=n.parseNumber(r.currentLooseValue,t),Ce(r,r.selectionStart,r.currentLooseValue,S),r;if(r.currentLooseValue===i.decimal){r.eventValue=0;var R=fe(r.eventValue,t,n);if(0===w&&b>0){var M=Se(R,de);r.currentLooseValue=R.substring(0,M)+i.decimal+R.substring(M)}else r.currentLooseValue=R;return Ce(r,we(r.currentLooseValue,i)+1,r.currentLooseValue,S),r}if(function(e,t){return String(e.currentLooseValue).split(t.decimal).length>2}(r,i))return Ee(r,t,S,n),r;if(x)return r.eventValue=n.parseNumber(l,t)/100,r.currentLooseValue=fe(r.eventValue,t,n),r;if(String(r.currentLooseValue).replace(/[^\d]/g,"").length>15)return Ee(r,t,S,n),r;if(p!==l&&l&&O){var P=S.findIndex((function(e){var t=e[0],n=e[1],r=l.indexOf(t),o=l.indexOf(n),a=0===r,s=o===l.length-n.length,u=r+t.length!==f&&-1!==f&&l[r+t.length]!==i.decimal,c=o!==h&&-1!==h&&l[o-1]!==i.decimal;return t&&n?!u&&!c&&a&&s:t?!u&&a:!!n&&!c&&s}));if(-1===P)return Ee(r,t,S,n),r}if(p[p.length-1]===i.decimal&&b>0)return r.eventValue=n.parseNumber(l,t),r.currentLooseValue=v,r;if(r.currentLooseValue&&o&&(a+i.decimal+i.group).split("").findIndex((function(e){return l.split("").filter((function(t){return t===e})).length<s.split("").filter((function(t){return t===e})).length&&l.length+1===s.length&&(e!==i.decimal||0!==Ie(s.replace(u,""),i.decimal))}))>-1)return r.eventValue=n.parseNumber(e.prevLooseValue,t),r.currentLooseValue=e.prevLooseValue,r;var N=Ie(p,i.decimal),F="0"===p[p.length-1];if(D&&F&&N<w)return r.eventValue=n.parseNumber(r.currentLooseValue,t),r.currentLooseValue=fe(r.eventValue,t,n),r;if(N>0){var A=l.substring(0,m);if(F&&(!A||0!==s.indexOf(A))){r.eventValue=n.parseNumber(r.currentLooseValue,t);var j=fe(r.eventValue,t,n);return Ce(r,Te(l,j,r.selectionEnd,D,u),j,S),r.currentLooseValue=j,r}if(N>b){var L=l.indexOf(i.decimal),V=l.substring(0,L)+l.substring(L,L+1+b)+l.substring(h,String(r.currentLooseValue).length);return r.eventValue=n.parseNumber(V,t),r.currentLooseValue=V,Ce(r,r.selectionStart,V,S),r}if(w!==b&&N<=b&&F)return r.eventValue=n.parseNumber(r.currentLooseValue,t),r.currentLooseValue=v,r;if(N<w)return r.eventValue=n.parseNumber(r.currentLooseValue,t),r.currentLooseValue=fe(r.eventValue,t,n),r}}return r.eventValue=n.parseNumber(r.currentLooseValue,t),x&&(r.eventValue=r.eventValue/100),"number"==typeof r.eventValue?(j=fe(r.eventValue,t,n),1===l.length?Ce(r,we(j,i),j,S):Ce(r,Te(l,j,r.selectionEnd,D,u),j,S),r.currentLooseValue=j):r.currentLooseValue=fe(n.parseNumber(p),t,n),r},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},Re.apply(this,arguments)},Me=(0,p.Y)(),Pe=i.forwardRef((function(e,t){var n;(0,f.s)(h);var r=(0,ae.Y)(Me,e),o=i.useMemo((function(){return(0,s.M)()}),[]),a=r.id||o,l=(0,g.useInternationalization)(),d=(0,g.useLocalization)(),p=i.useRef(null),m=i.useRef(),C=i.useState(!1),E=C[0],w=C[1],k=i.useRef({eventValue:null,prevLooseValue:"",currentLooseValue:"",focused:!1,selectionStart:void 0,selectionEnd:void 0,decimalSelect:!1,valueIsCorrected:!1,valueIsOutOfRange:!1}),S=i.useRef(!1),O=i.useRef(),D=i.useRef(r.defaultValue),x=fe(k.current.focused&&!r.disabled?k.current.currentLooseValue:pe(r.value,D.current),r.format,l);O.current=x,i.useEffect((function(){p.current&&p.current.setCustomValidity&&p.current.setCustomValidity(M().valid?"":r.validationMessage||"Please enter a valid value!")}));var I=i.useCallback((function(){p.current&&p.current.focus()}),[]),T=i.useCallback((function(){return void 0!==m.current?m.current:pe(r.value,D.current)}),[r.value]),_=i.useCallback((function(){return r.name}),[r.name]),R=i.useCallback((function(){return r.required}),[r.required]),M=i.useCallback((function(){var e=void 0!==r.validationMessage,t=T();return{customError:e,valid:void 0!==r.valid?r.valid:!(k.current.valueIsOutOfRange||R()&&null==t),valueMissing:null==t}}),[r.validationMessage,r.valid,T,R]),P=i.useCallback((function(){return r.validityStyles}),[r.validityStyles]),N=i.useCallback((function(){return r}),[r]),F=i.useCallback((function(){var e={element:p.current,focus:I};return Object.defineProperty(e,"name",{get:_}),Object.defineProperty(e,"value",{get:T}),Object.defineProperty(e,"validity",{get:M}),Object.defineProperty(e,"validityStyles",{get:P}),Object.defineProperty(e,"required",{get:R}),Object.defineProperty(e,"props",{get:N}),e}),[_,T,M,P,R,I,N]);i.useImperativeHandle(t,F);var A=i.useCallback((function(){return{eventValue:pe(r.value,D.current),prevLooseValue:O.current,currentLooseValue:p.current.value,selectionStart:p.current.selectionStart,selectionEnd:p.current.selectionEnd,decimalSelect:!1,valueIsCorrected:!1,valueIsOutOfRange:!1,isPaste:S.current,focused:k.current.focused}}),[r.value]),L=i.useCallback((function(e,t){if(!r.disabled){m.current=t.eventValue,D.current=t.eventValue;var n=fe(be(t.eventValue,r.min,r.max),r.format,l),o=be(l.parseNumber(n,r.format),r.min,r.max);o!==t.eventValue&&(t.valueIsOutOfRange=!0,t.eventValue=o,D.current=o),r.value!==t.eventValue&&(0,v.N)(r.onChange,e,F(),{value:t.eventValue}),m.current=void 0,k.current=t,w((function(e){return!e}))}}),[r.value,r.onChange,r.disabled,w,F]),V=i.useCallback((function(e){var t=A();S.current=!1,L(e,_e(t,r.format,l))}),[r.format,r.onChange,l,L,A]),z=i.useCallback((function(e){var t=A(),n=l.parseNumber(String(t.currentLooseValue),r.format);if(t.selectionEnd>t.selectionStart&&t.selectionEnd-t.selectionStart===String(t.currentLooseValue).length)S.current=!0;else{switch(e.keyCode){case 38:ge(n,t,r.step,r.min,r.max,r.format,l);break;case 40:ye(n,t,r.step,r.min,r.max,r.format,l);break;case 13:if(!1===r.rangeOnEnter)return;var o=fe(be(n,r.min,r.max),r.format,l),i=be(l.parseNumber(o,r.format),r.min,r.max);t.eventValue=i,t.currentLooseValue=fe(i,r.format,l),t.selectionStart=t.selectionEnd=t.currentLooseValue.length;break;case 110:var a=p.current,s=l.numberSymbols();a&&(t.currentLooseValue=t.currentLooseValue.slice(0,t.selectionStart)+s.decimal+t.currentLooseValue.slice(t.selectionEnd),t.selectionStart=t.selectionEnd=t.selectionStart+1,t=_e(t,r.format,l));break;default:return}e.preventDefault(),L(e,t)}}),[r.format,r.min,r.max,r.step,r.onChange,r.rangeOnEnter,L,A]),B=i.useCallback((function(){S.current=!0}),[]),U=i.useCallback((function(e){if(!r.readOnly&&!r.disabled){var t=A();ge(l.parseNumber(String(t.currentLooseValue),r.format),t,r.step,r.min,r.max,r.format,l),L(e,t)}}),[r.format,r.min,r.max,r.step,r.onChange,r.readOnly,r.disabled,L,A]),W=i.useCallback((function(e){if(!r.readOnly&&!r.disabled){var t=A();ye(l.parseNumber(String(t.currentLooseValue),r.format),t,r.step,r.min,r.max,r.format,l),L(e,t)}}),[r.format,r.min,r.max,r.step,r.onChange,r.readOnly,r.disabled,L,A]),K=i.useCallback((function(e){document&&document.activeElement===p.current&&p.current&&!r.readOnly&&!r.disabled&&(e.nativeEvent.deltaY<0&&U(e),e.nativeEvent.deltaY>0&&W(e))}),[U,W,r.disabled,r.readOnly]),q=i.useCallback((function(e){k.current.currentLooseValue=O.current,k.current.focused=!0,(0,v.N)(r.onFocus,e,F(),{}),w((function(e){return!e}))}),[r.onFocus,w,F]),Y=i.useCallback((function(e){k.current={eventValue:null,prevLooseValue:"",currentLooseValue:"",focused:!1,selectionStart:void 0,selectionEnd:void 0,decimalSelect:!1,valueIsCorrected:!1,valueIsOutOfRange:!1},(0,v.N)(r.onBlur,e,F(),{}),w((function(e){return!e}))}),[r.onBlur,w,F]),G=i.useCallback((function(e){document&&p.current&&(e.preventDefault(),document.activeElement!==p.current&&p.current.focus())}),[]);i.useLayoutEffect((function(){p.current&&void 0!==k.current.selectionStart&&void 0!==k.current.selectionEnd&&(p.current.selectionStart=k.current.selectionStart,p.current.selectionEnd=k.current.selectionEnd,k.current.selectionStart=void 0,k.current.selectionEnd=void 0)}),[E]);var Z=!P()||M().valid,X=i.createElement("span",{dir:r.dir,style:r.label?r.style:Re({width:r.width},r.style),className:(0,u.A)("k-input","k-numerictextbox",(n={},n["k-input-".concat(le.G.sizeMap[r.size]||r.size)]=r.size,n["k-input-".concat(r.fillMode)]=r.fillMode,n["k-rounded-".concat(le.G.roundedMap[r.rounded]||r.rounded)]=r.rounded,n["k-invalid"]=!Z,n["k-required"]=r.required,n["k-disabled"]=r.disabled,n),r.className),"aria-disabled":r.disabled?"true":void 0},i.createElement("input",{value:null===x?"":x,tabIndex:(0,c.p)(r.tabIndex,r.disabled),accessKey:r.accessKey,disabled:r.disabled,title:r.title,"aria-valuemin":r.min,"aria-valuemax":r.max,"aria-label":r.ariaLabel,"aria-labelledby":r.ariaLabelledBy,"aria-describedby":r.ariaDescribedBy,placeholder:r.placeholder,spellCheck:!1,autoComplete:"off",autoCorrect:"off",type:r.inputType||"tel",className:"k-input-inner",id:a,name:r.name,readOnly:r.readOnly,style:r.inputStyle,onChange:V,onFocus:q,onBlur:Y,onKeyDown:z,onPaste:B,onWheel:K,ref:p}),r.children,r.spinners&&i.createElement("span",{className:"k-input-spinner k-spin-button",onMouseDown:G},i.createElement(H.z,{tabIndex:-1,type:"button",icon:"arrow-n",rounded:null,className:"k-spinner-increase","aria-label":d.toLanguageString(y,j[y]),title:d.toLanguageString(y,j[y]),onClick:U}),i.createElement(H.z,{tabIndex:-1,type:"button",icon:"arrow-s",rounded:null,className:"k-spinner-decrease","aria-label":d.toLanguageString(b,j[b]),title:d.toLanguageString(b,j[b]),onClick:W})));return r.label?i.createElement(se._,{label:r.label,editorId:a,editorValue:null===x?"":x,editorValid:Z,editorDisabled:r.disabled,editorPlaceholder:r.placeholder,children:X,style:{width:r.width},dir:r.dir}):X}));Pe.propTypes={value:a.number,defaultValue:a.number,step:a.number,format:a.oneOfType([a.string,a.shape({style:a.oneOf(["decimal","currency","percent","scientific","accounting"]),currency:a.string,currencyDisplay:a.oneOf(["symbol","code","name"]),useGrouping:a.bool,minimumIntegerDigits:a.number,minimumFractionDigits:a.number,maximumFractionDigits:a.number})]),width:a.oneOfType([a.string,a.number]),tabIndex:a.number,accessKey:a.string,title:a.string,placeholder:a.string,min:a.number,max:a.number,spinners:a.bool,disabled:a.bool,readOnly:a.bool,dir:a.string,name:a.string,label:a.string,validationMessage:a.string,required:a.bool,id:a.string,rangeOnEnter:a.bool,ariaLabelledBy:a.string,ariaDescribedBy:a.string,ariaLabel:a.string,onChange:a.func,onFocus:a.func,onBlur:a.func,size:a.oneOf([null,"small","medium","large"]),rounded:a.oneOf([null,"small","medium","large","full"]),fillMode:a.oneOf([null,"solid","flat","outline"])},Pe.displayName="KendoNumericTextBox",Pe.defaultProps={step:1,spinners:!0,disabled:!1,required:!1,validityStyles:!0,rangeOnEnter:!0,onChange:function(e){},onFocus:function(e){},onBlur:function(e){},size:"medium",rounded:"medium",fillMode:"solid"};var Ne=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Fe=function(){return Fe=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},Fe.apply(this,arguments)},Ae=function(e){function t(n){var r=e.call(this,n)||this;return r._input=null,r._inputId=(0,s.M)(),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||Boolean(e[n]));return t},r.setValidity=function(){r._input&&r._input.setCustomValidity&&(r.validity.valid||!r.validityStyles?r._input.classList.remove("k-invalid"):r._input.classList.add("k-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-empty")&&t.classList.remove("k-empty")}},(0,f.s)(h),r.state={value:r.props.defaultValue||t.defaultProps.defaultValue},r}return Ne(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._input},enumerable:!1,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:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!1,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 Fe(Fe({},e),{customError:void 0!==this.props.validationMessage,valid:void 0!==this.props.valid?this.props.valid:!this._input||!this.isInvalid(e)})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!1,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,a=(t.validationMessage,t.defaultValue,t.valid,t.visited,t.touched,t.modified,t.ariaLabelledBy),l=t.ariaDescribedBy,s=(t.validityStyles,t.style),c=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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["className","label","id","validationMessage","defaultValue","valid","visited","touched","modified","ariaLabelledBy","ariaDescribedBy","validityStyles","style"]),d=o||this._inputId,p=!this.validityStyles||this.validity.valid,f=(0,u.A)(n,"k-input k-input-md k-rounded-md k-input-solid"),h=i.createElement("input",Fe({"aria-labelledby":a,"aria-describedby":l},c,{style:r?void 0:s,value:this.value,id:d,className:f,onChange:this.handleChange,onAnimationStart:this.handleAutoFill,ref:function(t){e._input=t}}));return r?i.createElement(se._,{label:r,editorId:d,editorValue:String(this.value),editorValid:p,editorDisabled:c.disabled,editorPlaceholder:c.placeholder,children:h,style:s,dir:c.dir}):h},t.displayName="Input",t.propTypes={label:a.string,validationMessage:a.string,required:a.bool,validate:a.bool,id:a.string,ariaLabelledBy:a.string,ariaDescribedBy:a.string},t.defaultProps={defaultValue:"",required:!1,validityStyles:!0},t}(i.Component),je=(0,p.Y)(),Le=(0,p.u)(je,Ae);Le.displayName="KendoReactInput";var Ve=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const ze=function(e){function t(t){var n=e.call(this,t)||this;return n.onChange=function(e){var t=e.target.value,r=$(t,"rgba");n.setState({hex:t}),G(r)&&n.props.onHexChange(t,r,e)},n.onBlur=function(){G($(n.state.hex,"rgba"))||n.setState({hex:n.state.originalHex})},n.state={hex:n.props.hex,originalHex:n.props.hex},n}return Ve(t,e),t.prototype.render=function(){return i.createElement(Le,{value:this.state.hex,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}(i.Component);var Be=n(3287),He=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ue=function(){return Ue=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},Ue.apply(this,arguments)},We=["rgba","rgb","hex"],Ke=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={inputMode:We[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 He(t,e),t.prototype.render=function(){var e=(0,g.provideLocalizationService)(this),t=e.toLanguageString(E,j[O]),n=e.toLanguageString(E,j[E]),r=e.toLanguageString(E,j[w]),o=e.toLanguageString(E,j[k]),a=e.toLanguageString(E,j[S]);return i.createElement("div",{className:"k-colorgradient-inputs k-hstack"},i.createElement("div",{className:"k-vstack"},i.createElement(H.z,{fillMode:"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 k-input"},i.createElement(ze,{hex:this.props.hex,onHexChange:this.props.onHexChange,disabled:this.props.disabled})),i.createElement(Be._,{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(Pe,{value:this.props.rgba.r,min:0,max:255,spinners:!1,format:"n",onChange:this.onRgbaRChange,disabled:this.props.disabled}),i.createElement(Be._,{className:"k-colorgradient-input-label"},n)),i.createElement("div",{className:"k-vstack"},i.createElement(Pe,{value:this.props.rgba.g,min:0,max:255,spinners:!1,format:"n",onChange:this.onRgbaGChange,disabled:this.props.disabled}),i.createElement(Be._,{className:"k-colorgradient-input-label"},r)),i.createElement("div",{className:"k-vstack"},i.createElement(Pe,{value:this.props.rgba.b,min:0,max:255,spinners:!1,format:"n",onChange:this.onRgbaBChange,disabled:this.props.disabled}),i.createElement(Be._,{className:"k-colorgradient-input-label"},o))),"rgba"===this.state.inputMode&&i.createElement("div",{className:"k-vstack"},this.props.opacity&&i.createElement(Pe,{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(Be._,{className:"k-colorgradient-input-label"},a)))},t.prototype.dispatchRgbaChange=function(e,t){var n=Ue({},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=We.length-1===We.indexOf(this.state.inputMode)?0:We.indexOf(this.state.inputMode)+1;if(this.props.opacity)this.setState({inputMode:We[e]});else{var t="rgba"===We[e]?e+1:e;this.setState({inputMode:We[t]})}},t}(i.Component);const qe=Ke;(0,g.registerForIntl)(Ke),(0,g.registerForLocalization)(Ke);var Ye=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ge=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ye(t,e),t.prototype.render=function(){var e=(0,g.provideLocalizationService)(this),t=e.toLanguageString(D,j[D]),n=e.toLanguageString(x,j[x]),r=e.toLanguageString(I,j[I]),o=e.toLanguageString(T,j[T]),a=e.toLanguageString(_,j[_]),l=oe(this.props.rgba,this.props.bgColor),s=4.5.toFixed(1),u=7..toFixed(1),c="".concat(t,": ").concat(l.toFixed(2)),d="".concat(n,": ").concat(s),p="".concat(r,": ").concat(u),f=i.createElement("span",{className:"k-contrast-validation k-text-success"},o," ",i.createElement("span",{className:"k-icon k-i-check"})),h=i.createElement("span",{className:"k-contrast-validation k-text-error"},a," ",i.createElement("span",{className:"k-icon k-i-close"}));return i.createElement("div",{className:"k-vbox k-colorgradient-color-contrast"},i.createElement("div",{className:"k-contrast-ratio"},i.createElement("span",{className:"k-contrast-ratio-text"},c),l>=4.5?i.createElement("span",{className:"k-contrast-validation k-text-success"},i.createElement("span",{className:"k-icon k-i-check"}),l>=7&&i.createElement("span",{className:"k-icon k-i-check"})):i.createElement("span",{className:"k-contrast-validation k-text-error"},i.createElement("span",{className:"k-icon k-i-close"}))),i.createElement("div",null,i.createElement("span",null,d),l>=4.5?f:h),i.createElement("div",null,i.createElement("span",null,p),l>=7?f:h))},t}(i.Component);(0,g.registerForLocalization)(Ge);var Ze=function(e,t){if(0===e.length)return"";var n=e.reduce((function(e,n,r,o){return 0===r?"M ".concat(n[0],",").concat(n[1]):"".concat(e," ").concat(t(n,r,o))}),"");return'<path d="'.concat(n,'" fill="none" stroke="white" stroke-width="1"/>')},Xe=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)}},$e=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $e(t,e),t.prototype.renderSvgCurveLine=function(){var e,t,n=this,r=this.props.metrics,o=function(e,t,i,a,l){var s=(i+a)/2,u=Object.assign({},n.props.hsva,{s:t/r.width,v:1-s/r.height}),c=oe(J(ee(u)),J(n.props.backgroundColor||""));return i+.5>a?c<e+1&&c>e-1?s:null:l(c,e)?o(e,t,i,a-(a-i)/2,l):o(e,t,i+(a-i)/2,a,l)},i=function(e,t,n){void 0===n&&(n=!1);for(var i=[],a=0;a<=r.width;a+=r.width/t){var l=o(e,a,0,r.height,n?function(e,t){return e<t}:function(e,t){return e>t});null!==l&&i.push([a,l])}return i},a=(t=Xe,e=function(e,n,r,o){var i=t(n||e,r||e),a=i.angle+(o?Math.PI:0),l=.1*i.length;return[e[0]+Math.cos(a)*l,e[1]+Math.sin(a)*l]},function(t,n,r){var o=e(r[n-1],r[n-2],t),i=o[0],a=o[1],l=e(t,r[n-1],r[n+1],!0),s=l[0],u=l[1];return"C ".concat(i,",").concat(a," ").concat(s,",").concat(u," ").concat(t[0],",").concat(t[1])});return Ze(i(4.5,16),a)+Ze(i(4.5,16,!0),a)+Ze(i(7,16),a)+Ze(i(7,16,!0),a)},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 i.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}(i.Component),Je=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),et="rgba(255, 255, 255, 1)",tt=function(e){function t(n){var r=e.call(this,n)||this;r.wrapper=null,r.onHexChange=function(e,t,n){if(r.isUncontrolled){var o=Q(t);r.setState({hsva:o,backgroundColor:te(o.h),rgba:J(t),hex:e})}else!function(e,t,n){ie[e]={value:t,hex:n}}(r.state.guid,t,e);r.dispatchChangeEvent(t,n,n.nativeEvent)},r.onRgbaChange=function(e,t){var n=function(e){var t=Z(e.r,0,255),n=Z(e.g,0,255),r=Z(e.b,0,255),o=Z(e.a,0,1);return X.Color.fromBytes(t,n,r,o).toCssRgba()}(e);if(r.isUncontrolled){var o=Q(n),i=$(n,"hex");r.setState({hsva:o,backgroundColor:te(o.h),rgba:e,hex:i})}else!function(e,t,n){ie[e]={value:t,rgba:n}}(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,i=Z(n,0,t.width),a=Z(o,0,t.height),l=Object.assign({},r.state.hsva,{s:i/t.width,v:1-a/t.height});r.handleHsvaChange(l,e,e.nativeEvent)},r.onFocus=function(e){r.props.onFocus&&r.props.onFocus.call(void 0,{nativeEvent:e,target:r})},r.focus=function(){(0,l.n)(r.wrapper)},(0,f.s)(h);var o=n.value||n.defaultValue||$(et,"rgba");return r.state=Object.assign({},t.getStateFromValue(o),{isFirstRender:!0,guid:(0,s.M)()}),r}return Je(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(){var e;e=this.state.guid,delete ie[e]},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="".concat(n,"px"),e.left="".concat(r,"px")}return i.createElement("div",{className:"k-hsv-draghandle k-draghandle",style:e})},t.prototype.handleHsvaChange=function(e,t,n){var r=ee(e);if(this.isUncontrolled){var o=$(r,"hex");this.setState({hsva:e,backgroundColor:te(e.h),rgba:J(r),hex:o})}else!function(e,t,n){ie[e]={value:t,hsva:n}}(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){G($(e,"hex"))||(e=et);var n=function(e,t){if(e){var n=ie[e];return n&&n.value===t?n.hsva:void 0}}(t,e)||Q(e),r=function(e,t){if(e){var n=ie[e];return n&&n.value===t?n.rgba:void 0}}(t,e)||J(e),o=function(e,t){if(e){var n=ie[e];return n&&n.value===t?n.hex:void 0}}(t,e)||$(e,"hex");return{hsva:n,backgroundColor:te(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, ".concat(e,")"))},Object.defineProperty(t.prototype,"isUncontrolled",{get:function(){return void 0===this.props.value},enumerable:!1,configurable:!0}),t.prototype.getGradientRectMetrics=function(){return this.gradientWrapper.getBoundingClientRect()},t.prototype.render=function(){var e=this,t=(0,u.A)("k-colorgradient",{"k-disabled":this.props.disabled});return i.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:(0,c.p)(this.props.tabIndex,this.props.disabled),"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,onFocus:this.onFocus},i.createElement("div",{className:"k-colorgradient-canvas k-hstack"},i.createElement("div",{className:"k-hsv-rectangle",style:{background:this.state.backgroundColor}},i.createElement(d._,{onDrag:this.onDrag,onRelease:this.onRelease,ref:function(t){return e.gradientWrapper=t?t.element:void 0}},i.createElement("div",{className:"k-hsv-gradient",style:{touchAction:"none"},onClick:this.onGradientWrapperClick},this.renderRectangleDragHandle())),this.props.backgroundColor&&!this.state.isFirstRender&&i.createElement(Qe,{metrics:this.gradientWrapper?this.getGradientRectMetrics():void 0,hsva:this.state.hsva,backgroundColor:this.props.backgroundColor})),i.createElement("div",{className:"k-hsv-controls k-hstack"},i.createElement(Y,{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&&i.createElement(Y,{value:G(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}}))),i.createElement(qe,{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&&i.createElement(Ge,{bgColor:J(this.props.backgroundColor),rgba:this.state.rgba}))},t.displayName="ColorGradient",t.propTypes={defaultValue:a.string,value:a.string,onChange:a.func,onFocus:a.func,opacity:a.bool,backgroundColor:a.string,disabled:a.bool,style:a.any,id:a.string,ariaLabelledBy:a.string,ariaDescribedBy:a.string},t.defaultProps={opacity:!0},t}(i.Component),nt=(0,p.Y)(),rt=(0,p.u)(nt,tt);rt.displayName="KendoReactColorGradient";var ot=function(){function e(){this.colorRows=[]}return e.prototype.setColorMatrix=function(e,t){if(this.colorRows=[],G(e)&&e.length){t=t||e.length;for(var n=0;n<e.length;n+=t){var r=e.slice(n,t+n);this.colorRows.push(r)}}},e.prototype.getCellCoordsFor=function(e){var t=this;if(G(e)){var n=e?(0,X.parseColor)(e,!0):e,r=[e];G(n)&&r.push(n.toCss(),n.toCssRgba());for(var o=function(e){for(var n=function(n){if(r.some((function(r){return r===t.colorRows[e][n]})))return{value:{row:e,col:n}}},o=0;o<i.colorRows[e].length;o++){var a=n(o);if("object"==typeof a)return a}},i=this,a=0;a<this.colorRows.length;a++){var l=o(a);if("object"==typeof l)return l.value}}},e.prototype.getColorAt=function(e){if(G(e)&&G(this.colorRows[e.row]))return this.colorRows[e.row][e.col]},e.prototype.getNextCell=function(e,t,n){if(!(G(e)&&G(e.row)&&G(e.col)))return{row:0,col:0};var r=this.clampIndex(e.row+n,this.colorRows.length-1);return{row:r,col:this.clampIndex(e.col+t,this.colorRows[r].length-1)}},e.prototype.clampIndex=function(e,t){return e<0?0:e>t?t:e},e}(),it={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}},at=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),lt="office",st=function(e){function t(t){var n=e.call(this,t)||this;return n.wrapper=null,n.paletteService=null,n.guid=(0,s.M)(),n.focus=function(){n.wrapper&&n.wrapper.focus()},n.onKeyDown=function(e){switch(e.keyCode){case m.R.down:n.handleCellNavigation(0,1);break;case m.R.up:n.handleCellNavigation(0,-1);break;case m.R.right:n.handleCellNavigation(1,0);break;case m.R.left:n.handleCellNavigation(-1,0);break;case m.R.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.paletteService&&(n.setState({focusedColor:n.state.selectedColor||n.paletteService.colorRows[0][0]}),n.props.onFocus&&n.props.onFocus.call(void 0,e))},n.onBlur=function(){n.setState({focusedColor:void 0})},(0,f.s)(h),n.state={selectedColor:void 0!==n.props.value?n.props.value:n.props.defaultValue,isFirstRender:!0},n}return at(t,e),t.prototype.render=function(){var e=this,t=this.getPaletteInfo(),n=this.paletteService=new ot;n.setColorMatrix(t.colors,t.columns);var r=n.getCellCoordsFor(this.state.selectedColor),o=n.getCellCoordsFor(this.state.focusedColor),a=(0,u.A)("k-colorpalette",{"k-disabled":this.props.disabled});return t.colors.length?i.createElement("div",{id:this.props.id,className:a,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:(0,c.p)(this.props.tabIndex,this.props.disabled),ref:function(t){return e.wrapper=t}},i.createElement("div",{className:"k-colorpalette-table-wrap",role:"grid"},i.createElement("table",{className:"k-colorpalette-table k-palette",role:"presentation"},i.createElement("tbody",null,this.renderRows(n.colorRows,r,o))))):""},t.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},t.prototype.handleCellNavigation=function(e,t){if(this.paletteService)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]})},t.prototype.handleEnter=function(e){this.isUncontrolled&&this.setState({selectedColor:this.state.focusedColor}),this.dispatchChangeEvent(this.state.focusedColor,e)},t.prototype.dispatchChangeEvent=function(e,t){(0,v.N)(this.props.onChange,t,this,{value:e,rgbaValue:$(e,"rgba")})},Object.defineProperty(t.prototype,"focusedColorCooridanates",{get:function(){return this.state.focusedColor&&this.paletteService?this.paletteService.getCellCoordsFor(this.state.focusedColor):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUncontrolled",{get:function(){return void 0===this.props.value},enumerable:!1,configurable:!0}),t.prototype.getPaletteInfo=function(){if("string"==typeof this.props.palette){var e=it[this.props.palette];return G(e)?{colors:e.colors,columns:this.props.columns||e.columns||10}:{colors:[],columns:0}}return{colors:this.props.palette||[],columns:this.props.columns||10}},t.prototype.renderRows=function(e,t,n){var r=this;return e.map((function(e,o){return i.createElement("tr",{role:"row",key:o},r.renderColumns(e,o,t,n))}))},t.prototype.renderColumns=function(e,t,n,r){var o=this,a=void 0!==n&&n.row===t,l=n&&n.col,s=void 0!==r&&r.row===t,c=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=a&&l===n,d=(0,u.A)("k-colorpalette-tile",{"k-selected":r,"k-focus":s&&c===n});return i.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})}))},t.prototype.createCellId=function(e){return"".concat(this.guid,"_").concat(e.row,"_").concat(e.col)},t.displayName="ColorPalette",t.propTypes={palette:a.oneOfType([a.arrayOf(a.string.isRequired),a.string]),columns:a.number,tileSize:a.any,defaultValue:a.string,value:a.string,disabled:a.bool,tabIndex:a.number,onChange:a.func,onFocus:a.func,id:a.string,ariaLabelledBy:a.string,ariaDescribedBy:a.string},t.defaultProps={palette:lt,tileSize:24},t}(i.Component),ut=(0,p.Y)(),ct=(0,p.u)(ut,st);ct.displayName="KendoReactColorPalette";var dt=n(9222),pt=function(){return pt=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},pt.apply(this,arguments)},ft=function(e){var t=e.popupSettings||{},n="rtl"===e.dir?"right":"left",r=i.useMemo((function(){return{horizontal:n,vertical:"bottom"}}),[n]),o=i.useMemo((function(){return{horizontal:n,vertical:"top"}}),[n]);return i.createElement(i.Fragment,null,e.input,e.button,i.createElement(dt.G,pt({style:pt(pt({},(t||{}).style),{direction:e.dir})},t,{anchor:e.popupAnchor,anchorAlign:r,popupAlign:o,show:e.open,onOpen:e.onOpen,onClose:e.onClose,className:(0,u.A)("k-reset",t.className)}),e.content))};ft.displayName="KendoPickerComponent";var ht=function(){return ht=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},ht.apply(this,arguments)},mt={palette:lt,tileSize:24},vt=function(e){return void 0!==e},gt=(0,p.Y)(),yt=i.forwardRef((function(e,t){var n,r;(0,f.s)(h);var o=(0,ae.Y)(gt,e),a=(0,g.useLocalization)(),l=o.size,s=void 0===l?bt.size:l,d=o.rounded,p=void 0===d?bt.rounded:d,v=o.fillMode,y=void 0===v?bt.fillMode:v,b=o.popupSettings,C=o.gradientSettings,E=o.paletteSettings,w=o.valid,k=o.disabled,S=o.tabIndex,O=o.view,D=o.icon,x=o.iconClassName,I=o.onChange,T=o.onFocus,_=o.onBlur,R=o.onActiveColorClick,M=i.useRef(null),P=i.useRef(null),N=i.useRef(null),F=i.useRef(),V=i.useRef(null),z=i.useCallback((function(){M.current&&M.current.focus()}),[]);i.useImperativeHandle(t,(function(){return{element:M.current,actionElement:V.current,focus:z}}));var B=i.useState(!1),U=B[0],W=B[1],K=i.useState(o.defaultValue),q=K[0],Y=K[1],G=i.useState(!1),Z=G[0],X=G[1],$=vt(o.value),Q=vt(o.open),J=$?o.value:q,ee=Q?o.open:Z,te=i.useCallback((function(e,t){Q||(!e&&!t&&M&&M.current&&M.current.focus(),X(e))}),[Q]),ne=i.useCallback((function(e){var t=e.altKey,n=e.keyCode;if(n!==m.R.esc)return n!==m.R.enter||Q?void(!t||n!==m.R.up&&n!==m.R.down||(e.preventDefault(),e.stopPropagation(),n===m.R.up&&M&&M.current&&(M.current.focus(),te(!1)),n===m.R.down&&te(!0))):(e.preventDefault(),e.stopPropagation(),void te(!ee));te(!1)}),[ee,Q]),re=i.useCallback((function(){Q||(P.current?P.current.focus():N.current&&N.current.focus())}),[Q]),oe=i.useCallback((function(){te(!ee,!0)}),[ee]),ie=i.useCallback((function(e){R&&R.call(void 0,{syntheticEvent:e,nativeEvent:e.nativeEvent,value:J})}),[R,J]),se=i.useCallback((function(e){F.current?(clearTimeout(F.current),F.current=void 0):W(!0),T&&T.call(void 0,{nativeEvent:e.nativeEvent,syntheticEvent:e})}),[T]),ue=i.useCallback((function(){te(!1,!0),W(!1),F.current=void 0}),[]),ce=i.useCallback((function(e){clearTimeout(F.current),F.current=window.setTimeout(ue),_&&_.call(void 0,{nativeEvent:e.nativeEvent,syntheticEvent:e})}),[_]),de=i.useCallback((function(e,t){var n=t?e.rgbaValue:e.value;$||Y(n),t&&te(!1),I&&I.call(void 0,{value:n,nativeEvent:e.nativeEvent,syntheticEvent:e.syntheticEvent})}),[$,I]),pe=i.useCallback((function(e){return de(e,!0)}),[vt,de]),fe=(0,L.n)(M,o.dir),he=!1!==w;return i.createElement("span",{id:o.id,"aria-labelledby":o.ariaLabelledBy,"aria-describedby":o.ariaDescribedBy,className:(0,u.A)("k-colorpicker","k-picker","k-icon-picker",(n={},n["k-picker-".concat(le.G.sizeMap[s]||s)]=s,n["k-picker-".concat(y)]=y,n["k-rounded-".concat(le.G.roundedMap[p]||p)]=p,n["k-invalid"]=!he,n["k-disabled"]=k,n["k-focus"]=U,n)),ref:M,tabIndex:(0,c.p)(S,k),title:o.title,onKeyDown:ne,onFocus:se,onBlur:ce,dir:fe},i.createElement(ft,{dir:fe,open:ee,onOpen:re,popupAnchor:M.current||void 0,popupSettings:ht({},b),input:i.createElement("span",{onClick:ie,className:"k-input-inner"},i.createElement("span",{className:(0,u.A)("k-value-icon","k-color-preview",{"k-no-color":!J,"k-icon-color-preview":D||x})},(x||D)&&i.createElement("span",{className:(0,u.A)("k-color-preview-icon",x,(r={},r["k-icon k-i-".concat(D)]=D&&!x,r))}),i.createElement("span",{className:"k-color-preview-mask",style:{backgroundColor:J}}))),button:i.createElement(H.z,{tabIndex:-1,type:"button",onClick:oe,className:"k-input-button",rounded:null,icon:"arrow-s","aria-label":a.toLanguageString(A,j[A])}),content:i.createElement(i.Fragment,null,("combo"===O||"gradient"===O)&&i.createElement(rt,ht({},C,{tabIndex:0,ref:P,value:J,onChange:de})),("combo"===O||"palette"===O)&&i.createElement(ct,ht({},E,{ref:N,value:J,onChange:pe})))}))}));yt.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,size:a.oneOf([null,"small","medium","large"]),rounded:a.oneOf([null,"small","medium","large","full"]),fillMode:a.oneOf([null,"solid","flat","outline"])};var bt={size:"medium",rounded:"medium",fillMode:"solid",view:"palette",gradientSettings:{opacity:!0},paletteSettings:mt};yt.defaultProps=bt,yt.displayName="KendoColorPicker";var Ct,Et=n(7711),wt=i.forwardRef((function(e,t){(0,f.s)(h);var n=i.useRef(null),r=i.useRef(null),o=i.useRef(null),a=i.useState("ColorGradient"===(e.view||"ColorGradient")),l=a[0],s=a[1],d=i.useState("rgba(255, 255, 255, 1)"),p=d[0],m=d[1],v=i.useState("rgba(255, 255, 255, 1)"),g=v[0],y=v[1],b=i.useCallback((function(){n.current&&n.current.focus()}),[n]);i.useImperativeHandle(n,(function(){return{element:r.current,focus:b,props:e}})),i.useImperativeHandle(t,(function(){return n.current}));var C=i.useCallback((function(e){("ColorGradient"===e&&!l||"ColorPalette"===e&&l)&&s(!l)}),[l]),E=i.useCallback((function(){m("rgba(255, 255, 255, 1)")}),[]),w=i.useCallback((function(e){m(e.value)}),[]),k=i.useCallback((function(){y(p)}),[p]),S=i.useCallback((function(){y("rgba(255, 255, 255, 1)")}),[]),O=i.useCallback((function(){m(g)}),[g]),D=i.useCallback((function(){r.current&&r.current.focus()}),[r]),x=i.useCallback((function(){y(p)}),[p]);return i.createElement("div",{id:e.id,style:e.style,ref:r,tabIndex:(0,c.p)(e.tabIndex,e.disabled),className:(0,u.A)("k-flatcolorpicker k-coloreditor",{"k-disabled":e.disabled},e.className),onBlur:x},i.createElement(i.Fragment,null,e.header||i.createElement("div",{className:"k-coloreditor-header k-hstack"},i.createElement("div",{className:"k-coloreditor-header-actions k-hstack"},i.createElement(Et.h,null,i.createElement(H.z,{type:"button",togglable:!0,fillMode:"flat",selected:l,onClick:function(){return C("ColorGradient")}},i.createElement("span",{className:"k-icon k-i-color-canvas"})),i.createElement(H.z,{type:"button",togglable:!0,fillMode:"flat",selected:!l,onClick:function(){return C("ColorPalette")}},i.createElement("span",{className:"k-icon k-i-palette"})))),i.createElement("div",{className:"k-spacer"}),i.createElement("div",{className:"k-coloreditor-header-actions k-hstack"},e.showClearButton&&St.showClearButton&&i.createElement(H.z,{type:"button",fillMode:"flat",onClick:E},i.createElement("span",{className:"k-icon k-i-reset-color"})),e.showPreview&&St.showPreview&&i.createElement("div",{className:"k-coloreditor-preview k-vstack"},i.createElement("span",{className:"k-coloreditor-preview-color k-color-preview",style:{background:p}}),i.createElement("span",{className:"k-coloreditor-current-color k-color-preview",style:{background:g},onClick:O})))),i.createElement("div",{className:"k-coloreditor-views k-vstack"},l?i.createElement(rt,{ref:o,value:p,onChange:w,onFocus:D}):i.createElement(ct,{value:p,onChange:w,onFocus:D})),e.showButtons&&St.showButtons&&i.createElement("div",{className:"k-coloreditor-footer k-actions k-actions-end"},i.createElement(H.z,{type:"button",className:"k-coloreditor-cancel",onClick:S},j[R]),i.createElement(H.z,{type:"button",className:"k-coloreditor-apply k-primary",onClick:k},j[M]))))})),kt={id:a.string,value:a.string,view:a.string,header:a.elementType,showClearButton:a.bool,showPreview:a.bool,showButtons:a.bool},St={showClearButton:!0,showPreview:!0,showButtons:!0};wt.displayName="KendoFlatColorPicker",wt.propTypes=kt,wt.defaultProps=St,function(e){e[e.Literal=0]="Literal",e[e.Mask=1]="Mask",e[e.Undefined=2]="Undefined"}(Ct||(Ct={}));var Ot=function(){function e(e,t,n){void 0===n&&(n=Ct.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: '".concat(this.value,"', rest: ").concat(this.rest," })")},e}(),Dt=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}(),xt=function(e){return(e||"").split("")},It=function(){function e(e){this.parse=e}return e.prototype.run=function(e,t){return void 0===t&&(t=""),e instanceof Dt?this.parse(e):this.parse(new Dt(xt(e),xt(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===Ct.Literal},e}(),Tt=function(e,t){return new It((function(n){var r=n.next().char,o=e[r];return"\\"===r?(r=n.next().char,new Ot(t.literal(r),n)):new Ot(o?t.mask(o):t.literal(r),n)}))},_t=function(e){return new It((function(t){var n=e.prompt,r=e.promptPlaceholder,o=t.next().char;return new Ot(o===n?r:o,t)}))},Rt=function(e){return new It((function(t){var n=t.next().char;return new Ot(e?n:"",t)}))},Mt=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 It((function(e){return new Ot(t,e)}))));var t},Pt=function(e){return new It((function(t){for(var n=new Ot([],t);!t.eof();)n=n.concat(e.run(t));return n}))},Nt=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,i=e.promptPlaceholder,a=void 0===i?" ":i,l=e.rules,s=void 0===l?{}:l,u=e.includeLiterals,c=void 0!==u&&u;this.mask=n,this.prompt=o,this.promptPlaceholder=a,this.rules=s,this.includeLiterals=c,this.tokenize()},e.prototype.validationValue=function(e){void 0===e&&(e="");var t=e;return Mt(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?(Mt(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?(Mt(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,r){var o="",i=r,a=t.split("").slice(0,n),l=t.split("").slice(r);return Mt(this.maskTokens.slice(n,r)).run(e).fold((function(e){o=a.concat(e).concat(l).join("")})),{selection:i,value:o}},e.prototype.maskRemoved=function(e,t,n){var r=this,o="",i=n,a=e.split("").slice(n),l=e.split("").slice(0,n).join(""),s=this.maskTokens.length-(e.length-n);return Mt(this.maskTokens.slice(0,s)).run(l,t).fold((function(e){i=r.adjustPosition(e,i),o=e.concat(a).join("")})),{selection:i,value:o}},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 r=this,o="",i=n,a=e.slice(0,n);return Mt(this.unmaskTokens).run(a,t).chain((function(e){i=e.join("").length;var n=t.slice(i);return Mt(r.maskTokens).run(e.join("")+n,t)})).fold((function(e){o=e.join("")})),{selection:i,value:o}},Object.defineProperty(e.prototype,"maskTokenCreator",{get:function(){var e=this.prompt,t=this.promptPlaceholder;return{literal:function(e){return t=e,new It((function(e){return e.peek().char===t?(e.eat(),new Ot(t,e,Ct.Literal)):new Ot(t,e,Ct.Literal)}));var t},mask:function(n){return(r={prompt:e,promptPlaceholder:t},function(e){return new It((function(t){for(var n=r.prompt,o=r.promptPlaceholder;!t.eof();){var i=t.peek(),a=i.char,l=i.control;if(a===l&&l===n)return t.eat(),new Ot(n,t,Ct.Mask);if(e.test(a))return t.eat(),new Ot(a,t,Ct.Mask);if(a===o)return t.eat(),new Ot(n,t,Ct.Mask);t.eat_input()}return t.eat(),new Ot(n,t,Ct.Mask)}))})(n);var r}}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"unmaskTokenCreator",{get:function(){var e=this;return{literal:function(e){return t=e,new It((function(e){return e.eof()?new Ot("",e):(e.peek().char===t&&e.eat(),new Ot(t,e))}));var t},mask:function(t){return(n=e.prompt,function(e){return new It((function(t){for(;!t.eof();){var r=t.peek(),o=r.char,i=r.control;if(o===n&&i===n)return t.eat(),new Ot(o,t);if(e.test(o))return t.eat(),new Ot(o,t);t.eat_input()}return t.eat(),new Ot("",t)}))})(t);var n}}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rawTokenCreator",{get:function(){var e=this,t=e.prompt,n=e.promptPlaceholder,r=e.includeLiterals;return{literal:function(e){return Rt(r)},mask:function(e){return _t({prompt:t,promptPlaceholder:n})}}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"validationTokenCreator",{get:function(){var e=this.prompt;return{literal:function(e){return Rt(!1)},mask:function(t){return _t({prompt:e,promptPlaceholder:""})}}},enumerable:!1,configurable:!0}),e.prototype.tokenize=function(){var e=this;Pt(Tt(this.rules,this.maskTokenCreator)).run(this.mask).fold((function(t,n){e.maskTokens=t})),Pt(Tt(this.rules,this.unmaskTokenCreator)).run(this.mask).fold((function(t,n){e.unmaskTokens=t})),Pt(Tt(this.rules,this.rawTokenCreator)).run(this.mask).fold((function(t,n){e.rawTokens=t})),Pt(Tt(this.rules,this.validationTokenCreator)).run(this.mask).fold((function(t,n){e.validationTokens=t}))},e}(),Ft={"#":/[\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]/},At=function(){return!1},jt=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Lt=function(){return Lt=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},Lt.apply(this,arguments)},Vt=function(e){function t(t){var n=e.call(this,t)||this;return n.state={},n._inputId="k-".concat((0,s.M)()),n._service=new Nt,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,i=n._selection[1]||0;if(!n.props.mask)return n._isPasted=!1,n._selection=[null,null],void n.triggerOnChange(r,e);var a,l=n.value;if(n._isPasted){n._isPasted=!1;var s=l.length-i,u=r.length-s;a=n._service.maskInRange(r.slice(o,u),l,o,i)}else a=n._service.maskInput(r,l,t.selectionStart||0);n._selection=[a.selection,a.selection],n.triggerOnChange(a.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||"")},(0,f.s)(h),n}return jt(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._input},enumerable:!1,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:!1,configurable:!0}),Object.defineProperty(t.prototype,"rawValue",{get:function(){return this._service.rawValue(this.value)},enumerable:!1,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:!1,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:t.defaultProps.required},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!1,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],i=e.selection,a=this.props.selection;(!i&&a||i&&a&&(i.start!==a.start||i.end!==a.end))&&(r=a.start,o=a.end),null!==r&&null!==o&&this.element.setSelectionRange(r,o)}var l,s;l=e,s=this.props,l.includeLiterals===s.includeLiterals&&l.mask===s.mask&&l.prompt===s.prompt&&l.promptPlaceholder===s.promptPlaceholder&&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}(l.rules,s.rules)||this.updateService(),this.setValidity()},t.prototype.componentDidMount=function(){this.updateService(),this.setValidity()},t.prototype.render=function(){var e,n=this,r=this.props,o=r.size,a=void 0===o?t.defaultProps.size:o,l=r.fillMode,s=void 0===l?t.defaultProps.fillMode:l,d=r.rounded,p=void 0===d?t.defaultProps.rounded:d,f=this.props.id||this._inputId,h=!this.validityStyles||this.validity.valid,m=this.props.style||{},v=i.createElement("span",{dir:this.props.dir,className:(0,u.A)("k-maskedtextbox k-input",(e={},e["k-input-".concat(le.G.sizeMap[a]||a)]=a,e["k-input-".concat(s)]=s,e["k-rounded-".concat(le.G.roundedMap[p]||p)]=p,e["k-invalid"]=!h,e["k-required"]=this.required,e["k-disabled"]=this.props.disabled,e),this.props.className),style:this.props.label?m:Lt({width:this.props.width},m)},i.createElement("input",{type:"text",autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:!1,className:"k-input-inner",value:this.value,id:f,"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,name:this.props.name,tabIndex:(0,c.p)(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(e){return n._input=e},onChange:this.onChangeHandler,onPaste:this.pasteHandler,onFocus:this.focusHandler,onBlur:this.blurHandler,onDragStart:At,onDrop:At}));return this.props.label?i.createElement(se._,{label:this.props.label,editorId:f,editorValue:this.value,editorValid:h,editorDisabled:this.props.disabled,editorPlaceholder:this.props.placeholder,children:v,style:{width:this.props.width},dir:this.props.dir}):v},t.prototype.triggerOnChange=function(e,t){if(this.setState({value:e}),this.props.onChange){this._valueDuringOnChange=e;var n={syntheticEvent:t,nativeEvent:t.nativeEvent,selectionStart:this._selection[0],selectionEnd:this._selection[1],target:this,value:this.value};this.props.onChange.call(void 0,n),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({},Ft,this.props.rules)},enumerable:!1,configurable:!0}),t.displayName="MaskedTextBox",t.propTypes={value:a.string,defaultValue:a.string,placeholder:a.string,title:a.string,dir:a.string,id:a.string,style:a.object,className:a.string,ariaLabelledBy:a.string,ariaDescribedBy:a.string,width:a.oneOfType([a.string,a.number]),tabIndex:a.number,accessKey:a.string,disabled:a.bool,readonly:a.bool,prompt:a.string,promptPlaceholder:a.string,includeLiterals:a.bool,maskValidation:a.bool,mask:a.string,rules:function(e,t,n){var r=e.rules;return void 0===r||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:a.shape({start:a.number.isRequired,end:a.number.isRequired}),name:a.string,label:a.string,validationMessage:a.string,required:a.bool,valid:a.bool,validityStyles:a.bool,onChange:a.func,size:a.oneOf([null,"small","medium","large"]),rounded:a.oneOf([null,"small","medium","large","full"]),fillMode:a.oneOf([null,"solid","flat","outline"])},t.defaultProps={prompt:"_",promptPlaceholder:" ",includeLiterals:!1,maskValidation:!0,rules:Ft,required:!1,validityStyles:!0,size:"medium",rounded:"medium",fillMode:"solid"},t}(i.Component),zt=(0,p.Y)(),Bt=(0,p.u)(zt,Vt);Bt.displayName="KendoReactMaskedTextBox";var Ht,Ut=n(9844),Wt=function(){return Wt=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},Wt.apply(this,arguments)};!function(e){e.start="start",e.end="end",e.min="min",e.max="max",e.increase="increase",e.decrease="decrease"}(Ht||(Ht={}));var Kt=function(){return Kt=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},Kt.apply(this,arguments)},qt=(0,p.Y)(),Yt=i.forwardRef((function(e,t){var n,r;(0,f.s)(h);var o=(0,ae.Y)(qt,e),a=i.useRef(null),l=i.useRef(null),s=i.useRef(null),d=i.useRef(null),p=i.useRef(null),v=i.useCallback((function(){d.current&&d.current.focus()}),[d]);i.useImperativeHandle(a,(function(){return{element:l.current,focus:v,props:o}})),i.useImperativeHandle(t,(function(){return a.current}));var y=i.useMemo((function(){return o.min}),[o.min]),b=i.useMemo((function(){return o.max}),[o.max]),E=i.useMemo((function(){return void 0!==o.step?o.step:Zt.step}),[o.step,Zt.step]),w=(0,L.n)(l,o.dir),k=i.useState(""),S=k[0],O=k[1],D=function(e,t,n){var r=i.useState(e),o=r[0],a=r[1],l=i.useCallback((function(e){var r=function(e,t){var n,r;switch(t.type){case Ht.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 Ht.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 Ht.min:n="start"===t.key?Wt(Wt({},e),{start:t.min}):Wt(Wt({},e),{end:Math.max(t.min,e.start)});break;case Ht.max:n="start"===t.key?Wt(Wt({},e),{start:Math.min(t.max,e.end)}):Wt(Wt({},e),{end:t.max});break;case Ht.increase:if(void 0===t.step||void 0===t.key)return e;r=e[t.key]+t.step,n="start"===t.key?r<t.min?Wt(Wt({},e),{start:t.min}):Wt(Wt({},e),{start:Math.min(r,e.end)}):r>t.max?Wt(Wt({},e),{end:t.max}):Wt(Wt({},e),{end:Math.max(r,e.start)});break;case Ht.decrease:if(void 0===t.step||void 0===t.key)return e;r=e[t.key]-t.step,n="start"===t.key?r<t.min?Wt(Wt({},e),{start:t.min}):Wt(Wt({},e),{start:Math.min(r,e.end)}):r>t.max?Wt(Wt({},e),{end:t.max}):Wt(Wt({},e),{end:Math.max(r,e.start)});break;default:n=e}return n}(t.state||o,Kt(Kt({},e),t));n&&n(r,e.event),a(r)}),[t,n]);return[o,l]}(o.defaultValue||Zt.defaultValue,{min:y,max:b,step:E,state:o.value},(function(e,t){o.onChange&&a.current&&o.onChange.call(void 0,{value:e,target:a.current,syntheticEvent:t})})),x=D[0],I=D[1],T=i.useMemo((function(){return o.value||x}),[o.value,x]),_=i.useRef(null),R=i.useRef(null),M=i.useMemo((function(){return(T.start-y)/(b-y)*100}),[T.start,y,b]),P=i.useMemo((function(){return(T.end-y)/(b-y)*100}),[T.end,y,b]),N=i.useMemo((function(){return o.vertical?{paddingTop:0,height:"100%"}:{}}),[o.vertical]),F=i.useMemo((function(){return o.vertical?{marginTop:"0.5rem",marginBottom:"0.5rem"}:{marginLeft:"0.5rem",marginRight:"0.5rem"}}),[o.vertical]),A=(0,g.useLocalization)(),V=i.useCallback((function(e){if(R.current){var t=R.current.getBoundingClientRect(),n=o.vertical?t.bottom-e.clientY:"rtl"===w?t.right-e.clientX:e.clientX-t.left,r=o.vertical?t.height:t.width;return y+n/r*(b-y)}}),[R,o.vertical,w,y,b,x.start,x.end,o.value&&o.value.start,o.value&&o.value.end]),z=i.useCallback((function(e){return e<=T.start?"start":e>=T.end?"end":2*e<T.end+T.start?"start":"end"}),[x.start,x.end,o.value&&o.value.start,o.value&&o.value.end]),B=i.useCallback((function(e){switch(e.keyCode){case m.R.right:e.preventDefault(),I({type:"rtl"===w?Ht.decrease:Ht.increase,key:"start",event:e});break;case m.R.up:e.preventDefault(),I({type:Ht.increase,key:"start",event:e});break;case m.R.left:e.preventDefault(),I({type:"rtl"===w?Ht.increase:Ht.decrease,key:"start",event:e});break;case m.R.down:e.preventDefault(),I({type:Ht.decrease,key:"start",event:e});break;case m.R.home:e.preventDefault(),I({type:Ht.min,key:"start",event:e});break;case m.R.end:e.preventDefault(),I({type:Ht.max,key:"start",event:e})}}),[I]),H=i.useCallback((function(e){switch(e.keyCode){case m.R.right:e.preventDefault(),I({type:"rtl"===w?Ht.decrease:Ht.increase,key:"end",event:e});break;case m.R.up:e.preventDefault(),I({type:Ht.increase,key:"end",event:e});break;case m.R.left:e.preventDefault(),I({type:"rtl"===w?Ht.increase:Ht.decrease,key:"end",event:e});break;case m.R.down:e.preventDefault(),I({type:Ht.decrease,key:"end",event:e});break;case m.R.home:e.preventDefault(),I({type:Ht.min,key:"end",event:e});break;case m.R.end:e.preventDefault(),I({type:Ht.max,key:"end",event:e})}}),[I,w]),U=i.useCallback((function(e){var t=V(e),n=z(t);O(n),"end"===n?p.current.focus():d.current.focus();var r="end"===n?Ht.end:Ht.start;I({type:r,payload:t,event:e})}),[o.vertical,y,b,I]);return(0,Ut.O)(R,{onPress:U,onDrag:function(e){var t=V(e),n="end"===S?Ht.end:Ht.start;I({type:n,payload:t,event:e})},onRelease:function(e){var t=V(e),n="end"===S?Ht.end:Ht.start;I({type:n,payload:t,event:e}),O("")}}),i.createElement("div",{role:"slider",id:o.id,style:o.style,ref:l,dir:w,className:(0,u.A)("k-widget k-slider",{"k-rtl":"rtl"===w,"k-disabled":o.disabled,"k-slider-vertical":o.vertical,"k-slider-horizontal":!o.vertical},o.className),"aria-labelledby":o.ariaLabelledBy,"aria-describedby":o.ariaDescribedBy},i.createElement("div",{ref:R,className:"k-slider-track-wrap",style:Kt({flexGrow:1,position:"relative",touchAction:"none"},F)},o.children&&i.createElement("ul",{className:"k-reset k-slider-items",style:Kt({},N)},i.Children.map(o.children,(function(e){return e&&i.cloneElement(e,{position:100*(e.props.position-o.min)/(o.max-o.min),vertical:o.vertical},e.props.children)}))),i.createElement("div",{ref:_,className:"k-slider-track",style:o.vertical?{bottom:0,height:"100%"}:(n={},n["rtl"===w?"right":"left"]=0,n.width="100%",n)},null!==M&&null!==P&&i.createElement("div",{"data-selection":!0,ref:s,title:"".concat(T.start," - ").concat(T.end),className:"k-slider-selection",style:o.vertical?{height:P-M+"%",bottom:M+"%"}:(r={},r["rtl"===w?"right":"left"]=M+"%",r.width=P-M+"%",r)}),i.createElement("a",{ref:d,role:"slider",tabIndex:(0,c.p)(o.startTabIndex,o.disabled,void 0),"aria-valuemin":y,"aria-valuemax":Math.max(b,T.end),"aria-valuenow":T.start,"aria-disabled":o.disabled?"true":void 0,className:"k-draghandle",title:A.toLanguageString(C,j[C]),style:o.vertical?{bottom:"calc("+M+"%)",zIndex:1}:"rtl"===w?{right:"calc("+M+"% - 13px)",zIndex:1}:{left:"calc("+M+"%)",zIndex:1},onKeyDown:B}),i.createElement("a",{ref:p,role:"slider",tabIndex:(0,c.p)(o.endTabIndex,o.disabled,void 0),"aria-valuemin":Math.min(y,T.start),"aria-valuemax":b,"aria-valuenow":T.end,"aria-disabled":o.disabled?"true":void 0,className:"k-draghandle",title:A.toLanguageString(C,j[C]),style:o.vertical?{bottom:"calc("+P+"%)",zIndex:1}:"rtl"===w?{right:"calc("+P+"% - 13px)",zIndex:1}:{left:"calc("+P+"%)",zIndex:1},onKeyDown:H}))))})),Gt={value:function(e,t,n){if(e.value){var r=e.value.start,o=e.value.end,i=e.min,a=e.max;if(r>o||r>a||r<i||o>a||o<i||o<r)return new Error("Invalid prop + ".concat(t," supplied to ").concat(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,i=e.min,a=e.max;if(r>o||r>a||r<i||o>a||o<i||o<r)return new Error("Invalid prop + ".concat(t," supplied to ").concat(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,i=e.max;return void 0===o?new Error("Invalid prop + ".concat(t," supplied to ").concat(n,".\n ").concat(t," value can not be undefined.\n ")):r&&o>=i?new Error("Invalid prop + ".concat(t," supplied to ").concat(n,".\n ").concat(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,i=e.max;return void 0===i?new Error("Invalid prop + ".concat(t," supplied to ").concat(n,".\n ").concat(t," value can not be undefined.\n ")):r&&i<=o?new Error("Invalid prop + ".concat(t," supplied to ").concat(n,".\n ").concat(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"])},Zt={step:1,defaultValue:{start:0,end:0},vertical:!1,disabled:!1};Yt.displayName="KendoReactRangeSlider",Yt.propTypes=Gt,Yt.defaultProps=Zt;var Xt=n(3228),$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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qt=function(){return Qt=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},Qt.apply(this,arguments)},Jt=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(F,j[F]))},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,(0,v.N)(r.props.onChange,t,r,{value:e}),r.valueDuringOnChange=void 0},r._element=null,r._wrapper=null,r._input=null,r._id=(0,s.M)(),r.defaultValidationMessage=(0,g.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:Xt.Z})},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!==m.R.space&&t!==m.R.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)}},(0,f.s)(h),r.state={checked:n.defaultChecked||t.defaultProps.defaultChecked,focused:!1},r}return $t(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:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"actionElement",{get:function(){return this._wrapper},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!1,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:!1,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:t.defaultProps.required},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.setValidity(),this.forceUpdate()},t.prototype.componentDidUpdate=function(){this.setValidity()},t.prototype.render=function(){var e,t,n,r=this,o=this.state.focused,a=this.props,l=a.dir,s=a.disabled,d=a.trackRounded,p=a.thumbRounded,f=a.size,h=a.id,m=a.offLabel,v=a.onLabel,g=a.tabIndex;this.dir=l||this._wrapper&&getComputedStyle(this._wrapper).direction||void 0;var y=!this.validityStyles||this.validity.valid,b=(0,u.A)("k-switch",((e={})["k-switch-".concat(le.G.sizeMap[f]||f)]=f,e["k-rounded-".concat(le.G.roundedMap[d]||d)]=d,e["k-switch-on"]=this.value,e["k-switch-off"]=!this.value,e["k-focus"]=o,e["k-disabled"]=s,e["k-invalid"]=!y,e),this.props.className),C={"aria-checked":this.value,"aria-disabled":s||void 0};return i.createElement("span",{ref:function(e){r._wrapper=e},className:b,dir:this.dir,onKeyDown:this.handleKeyDown,onClick:this.handleClick,onBlur:this.handleWrapperBlur,onFocus:this.handleWrapperFocus},i.createElement("span",Qt({className:(0,u.A)("k-switch-track",(t={},t["k-rounded-".concat(le.G.roundedMap[d]||d)]=d,t)),id:h||this._id,role:"switch"},C,{"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,ref:function(e){r._element=e},tabIndex:(0,c.p)(g,s,void 0),accessKey:this.props.accessKey}),this.dummyInput(this.value),i.createElement("span",{className:"k-switch-label-on"},v),i.createElement("span",{className:"k-switch-label-off"},m),i.createElement("span",{className:"k-switch-thumb-wrap"},i.createElement("span",{className:(0,u.A)("k-switch-thumb",(n={},n["k-rounded-".concat(p)]=p,n))}))))},t.displayName="Switch",t.propTypes={accessKey:a.string,checked:a.bool,className:a.string,disabled:a.bool,defaultChecked:a.bool,size:a.oneOf([null,"small","medium","large"]),trackRounded:a.oneOf([null,"small","medium","large","full"]),thumbRounded:a.oneOf([null,"small","medium","large","full"]),dir:a.string,id:a.string,ariaLabelledBy:a.string,ariaDescribedBy:a.string,offLabel:a.string,required:a.bool,tabIndex:a.number,valid:a.bool,validate:a.bool,validationMessage:a.string,onBlur:a.any,onChange:a.any,onFocus:a.any,onLabel:a.string},t.defaultProps={disabled:!1,defaultChecked:!1,size:"medium",trackRounded:"full",thumbRounded:"full",offLabel:"OFF",onBlur:Xt.Z,onFocus:Xt.Z,onLabel:"ON",required:!1,validityStyles:!0},t}(i.Component),en=(0,p.Y)(),tn=(0,p.u)(en,Jt);tn.displayName="KendoReactSwitch";var nn=function(){return nn=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},nn.apply(this,arguments)},rn=(0,p.Y)(),on=i.forwardRef((function(e,t){var n;(0,f.s)(h);var r=(0,ae.Y)(rn,e),o=r,a=o.ariaDescribedBy,l=o.ariaLabelledBy,d=o.checked,p=o.className,y=o.children,b=o.defaultChecked,C=o.disabled,E=o.defaultValue,w=o.id,k=o.size,S=o.rounded,O=o.label,D=o.labelPlacement,x=o.name,I=o.labelOptional,T=o.onChange,_=o.onFocus,R=o.onBlur,M=o.tabIndex,F=o.value,A=o.required,V=o.valid,z=o.validationMessage,B=o.validityStyles,H=(o.visited,o.touched,o.modified,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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(o,["ariaDescribedBy","ariaLabelledBy","checked","className","children","defaultChecked","disabled","defaultValue","id","size","rounded","label","labelPlacement","name","labelOptional","onChange","onFocus","onBlur","tabIndex","value","required","valid","validationMessage","validityStyles","visited","touched","modified"])),U=i.useRef(null),W=i.useCallback((function(){U.current&&U.current.focus()}),[]),K=i.useCallback((function(){return{element:U.current,focus:W,get name(){return U.current&&U.current.name}}}),[W]);i.useImperativeHandle(t,K);var q=i.useState(b),Y=q[0],G=q[1],Z=i.useState(E),X=Z[0],$=Z[1],Q="boolean"==typeof F||null===F,J=void 0!==d,ee=Q,te=ee?F:X,ne=J?d:ee?void 0:Y,re=void 0===ne&&te,oe=re?te:ne,ie=re||ee?null===F?F:void 0:F||te,se=null===oe||null===ie,ue=i.useMemo((function(){return(0,s.M)()}),[]),ce=(0,g.useLocalization)(),de=function(e){return ce.toLanguageString(e,j[e])},pe=de(P),fe=de(N),he=void 0!==V?V:!A||!!ne;i.useEffect((function(){U.current&&U.current.setCustomValidity&&U.current.setCustomValidity(he?"":z||pe)}),[he,z,pe]);var me=i.useCallback((function(e,t){ee||C||($(t),J||C||G(t)),T&&!C&&(0,v.N)(T,e,nn(nn({},K()),{value:t}),{value:t})}),[J,C,T,ee,K]),ve=i.useCallback((function(e){var t=e.target.checked;me(e,t)}),[me,F]),ge=i.useCallback((function(e){if(!C){var t=e.keyCode,n=e.currentTarget.checked;t===m.R.space&&(e.preventDefault(),e.stopPropagation(),me(e,!n))}}),[C,me]),ye=i.useCallback((function(e){C||e.keyCode===m.R.space&&e.preventDefault()}),[C]),be=i.useCallback((function(e){_&&!C&&(0,v.N)(_,e,K(),void 0)}),[_,C,K]),Ce=i.useCallback((function(e){R&&!C&&(0,v.N)(R,e,K(),void 0)}),[R,C,K]),Ee=(0,L.n)(U,r.dir),we=(0,u.A)({"k-disabled":C},p),ke=nn(nn({type:"checkbox",className:(0,u.A)("k-checkbox",(n={},n["k-checkbox-".concat(le.G.sizeMap[k]||k)]=k,n["k-rounded-".concat(le.G.roundedMap[S]||S)]=S,n["k-indeterminate"]=se,n["k-invalid k-invalid"]=!(he||void 0!==B||!0===B),n)),ref:U,name:x,id:w||ue,"aria-labelledby":l,"aria-describedby":a,checked:Boolean(oe),disabled:C,tabIndex:(0,c.p)(M,C),role:"checkbox",required:void 0!==A&&A,"aria-checked":!(!ne&&!oe)||!!se&&"mixed","aria-disabled":C||void 0},H),{onChange:ve,onKeyDown:ge,onKeyUp:ye,onFocus:be,onBlur:Ce}),Se=i.createElement(i.Fragment,null,void 0===ie?i.createElement("input",nn({},ke)):i.createElement("input",nn({},ke,{value:Q?void 0:null===ie?"":ie}))),Oe=i.createElement(i.Fragment,null,void 0!==O?i.createElement("label",{className:"k-checkbox-label",htmlFor:w||ue,style:{userSelect:"none"}},O,I&&i.createElement("span",{className:"k-label-optional"},fe)):null);return i.createElement(i.Fragment,null,"before"===D?i.createElement("span",{className:we,dir:"rtl"},Se,Oe,y):i.createElement("span",{className:we,dir:Ee},Se,Oe,y))}));on.propTypes={checked:a.bool,className:a.string,defaultChecked:a.bool,defaultValue:a.any,dir:a.string,disabled:a.bool,id:a.string,size:a.oneOf([null,"small","medium","large"]),rounded:a.oneOf([null,"small","medium","large"]),ariaLabelledBy:a.string,ariaDescribedBy:a.string,label:a.any,labelPlacement:a.string,labelOptional:a.bool,name:a.string,tabIndex:a.number,value:a.any,validationMessage:a.string,required:a.bool,validate:a.bool,valid:a.bool,onChange:a.func,onFocus:a.func,onBlur:a.func},on.defaultProps={size:"medium",rounded:"medium"},on.displayName="KendoCheckbox";var an=function(){return an=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},an.apply(this,arguments)},ln=(0,p.Y)(),sn=i.forwardRef((function(e,t){var n;(0,f.s)(h);var r=(0,ae.Y)(ln,e),o=r.ariaDescribedBy,a=r.checked,l=r.children,d=r.className,p=r.disabled,m=r.id,g=r.size,y=r.label,b=r.labelPlacement,C=r.name,E=r.style,w=r.tabIndex,k=r.value,S=r.valid,O=r.onChange,D=r.onFocus,x=r.onBlur,I=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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(r,["ariaDescribedBy","checked","children","className","disabled","id","size","label","labelPlacement","name","style","tabIndex","value","valid","onChange","onFocus","onBlur"]),T=i.useRef(null),_=i.useCallback((function(){T.current&&T.current.focus()}),[]),R=i.useCallback((function(){return{element:T.current,focus:_}}),[_]);i.useImperativeHandle(t,R);var M=i.useMemo((function(){return(0,s.M)()}),[]),P=i.useCallback((function(e){(0,v.N)(O,e,R(),{value:k})}),[O,k,p]),N=i.useCallback((function(e){D&&!p&&(0,v.N)(D,e,R(),void 0)}),[D,p]),F=i.useCallback((function(e){x&&!p&&(0,v.N)(x,e,R(),void 0)}),[x,p]),A=an({type:"radio",id:m||M,name:C,className:(0,u.A)("k-radio",(n={},n["k-radio-".concat(le.G.sizeMap[g]||g)]=g,n["k-invalid"]=!1===S,n),d),ref:T,disabled:p,tabIndex:(0,c.p)(w,p),checked:a,style:E,"aria-describedby":o,value:k,onChange:P,onFocus:N,onBlur:F},I),j=i.createElement(i.Fragment,null,void 0!==y?i.createElement("label",{className:"k-radio-label",htmlFor:m||M,style:{userSelect:"none"},"aria-label":y},y):null),L=i.createElement("input",an({},A));return"before"===b?i.createElement(i.Fragment,null,j,L,l):i.createElement(i.Fragment,null,L,j,l)}));sn.propTypes={ariaDescribedBy:a.string,checked:a.bool,className:a.string,disabled:a.bool,id:a.string,size:a.oneOf([null,"small","medium","large"]),label:a.string,labelPlacement:a.string,name:a.string,style:a.object,tabIndex:a.number,value:a.any,valid:a.bool,onChange:a.func,onFocus:a.func,onBlur:a.func},sn.displayName="KendoRadioButton",sn.defaultProps={size:"medium"};var un=n(1573),cn=function(){return cn=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},cn.apply(this,arguments)},dn=(0,p.Y)(),pn=i.forwardRef((function(e,t){(0,f.s)(h);var n=(0,ae.Y)(dn,e),r=n.ariaLabelledBy,o=n.ariaDescribedBy,a=n.className,c=n.data,d=n.defaultValue,p=n.disabled,m=n.name,g=n.labelPlacement,y=n.layout,b=n.style,C=n.value,E=n.valid,w=n.item,k=void 0===w?fn.item:w,S=n.onChange,O=n.onFocus,D=i.useRef(null),x=i.useCallback((function(){D.current&&(0,l.n)(D.current)}),[]),I=i.useCallback((function(){return{element:D.current,focus:x}}),[x]);i.useImperativeHandle(t,I);var T=i.useState(d),_=T[0],R=T[1],M=void 0!==C,P=M?C:_,N=i.useCallback((function(e){var t=e.value;M||p||R(t),S&&!p&&(0,v.N)(S,e.syntheticEvent,I(),{value:t})}),[R,S,p]),F=i.useCallback((function(e){O&&!p&&(0,v.N)(O,e.syntheticEvent,I(),void 0)}),[O,p]),A=i.useMemo((function(){return(0,s.M)()}),[]),j=(0,u.A)("k-radio-list",{"k-list-horizontal":"horizontal"===y,"k-list-vertical":"vertical"===y||void 0===y},a),L=(0,un.V)(D,n.dir),V=c&&c.map((function(e,t){var n=P===e.value,r=null==P,o=cn(cn({},e),{valid:E,checked:n,disabled:!(!e.disabled&&!p),labelPlacement:e.labelPlacement?e.labelPlacement:g,tabIndex:e.tabIndex?e.tabIndex:r&&0===t||n?0:-1,index:t,name:m||A,onChange:N,onFocus:F});return i.createElement(k,{className:(0,u.A)("k-radio-item",{"k-disabled":o.disabled||p}),key:t,role:"radio"},i.createElement(sn,cn({},o)))}));return i.createElement("ul",{role:"radiogroup",className:j,ref:D,dir:L,style:b,"aria-labelledby":r,"aria-describedby":o},V)})),fn={item:function(e){return i.createElement("li",cn({},e))}};pn.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},pn.defaultProps=fn,pn.displayName="KendoRadioGroup";var hn=function(){return hn=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},hn.apply(this,arguments)},mn=(0,p.Y)(),vn=i.forwardRef((function(e,t){var n,r=(0,ae.Y)(mn,e),o=r,a=o.size,l=o.rounded,d=o.fillMode,p=o.ariaDescribedBy,f=o.ariaLabelledBy,h=o.autoSize,m=o.className,g=o.defaultValue,y=o.disabled,b=o.readOnly,C=o.required,E=o.rows,w=o.id,k=o.name,S=o.placeholder,O=o.style,D=o.tabIndex,x=o.value,I=o.valid,T=o.validationMessage,_=o.validityStyles,R=o.onChange,M=o.onFocus,P=o.onBlur,N=(o.visited,o.touched,o.modified,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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(o,["size","rounded","fillMode","ariaDescribedBy","ariaLabelledBy","autoSize","className","defaultValue","disabled","readOnly","required","rows","id","name","placeholder","style","tabIndex","value","valid","validationMessage","validityStyles","onChange","onFocus","onBlur","visited","touched","modified"])),F=i.useRef(null),A=i.useCallback((function(){F.current&&F.current.focus()}),[]),j=i.useCallback((function(){return{element:F,focus:A,get name(){return F.current&&F.current.name}}}),[A]);i.useImperativeHandle(t,j);var V=i.useState(g),z=V[0],B=V[1],H=i.useState("auto"),U=H[0],W=H[1],K=i.useMemo((function(){return(0,s.M)()}),[]),q=(0,L.n)(F,r.dir),Y=void 0!==x,G=Y?x:z,Z=void 0!==I?I:!C||!!G;i.useEffect((function(){F.current&&F.current.setCustomValidity&&F.current.setCustomValidity(Z?"":T||"")}),[Z,T]),i.useLayoutEffect((function(){F.current&&W("".concat(F.current.scrollHeight,"px"))}),[G]);var X=i.useCallback((function(e){var t=e.target.value;Y||y||(W("auto"),B(t)),R&&!y&&(0,v.N)(R,e,j(),{value:t})}),[B,R,y,Y]),$=i.useCallback((function(e){M&&!y&&(0,v.N)(M,e,j(),void 0)}),[M,y]),Q=i.useCallback((function(e){P&&!y&&(0,v.N)(P,e,j(),void 0)}),[P,y]),J=hn(hn({id:w||K,name:k,className:"k-input-inner !k-overflow-auto",ref:F,disabled:y,rows:E,placeholder:S,readOnly:b,required:C,tabIndex:(0,c.p)(D,y),style:h?{resize:"none",overflow:"hidden",height:U}:{},"aria-labelledby":f,"aria-describedby":p,"aria-multiline":!0,"aria-disabled":y||void 0,value:Y?x:z},N),{onChange:X,onFocus:$,onBlur:Q});return i.createElement("span",{className:(0,u.A)("k-input","k-textarea",(n={},n["k-input-".concat(le.G.sizeMap[a]||a)]=a,n["k-input-".concat(d)]=d,n["k-rounded-".concat(le.G.roundedMap[l]||l)]=l,n["k-invalid"]=!(Z||void 0!==_||!0===_),n["k-required"]=C,n["k-disabled"]=y,n),m),style:O,dir:q},i.createElement("textarea",hn({},J)))}));vn.propTypes={ariaDescribedBy:a.string,ariaLabelledBy:a.string,autoSize:a.bool,className:a.string,defaultValue:a.string,dir:a.string,disabled:a.bool,readOnly:a.bool,rows:a.number,id:a.string,name:a.string,placeholder:a.string,style:a.object,tabIndex:a.number,value:a.oneOfType([a.string,a.arrayOf(a.string),a.number]),onChange:a.func,onFocus:a.func,onBlur:a.func,size:a.oneOf([null,"small","medium","large"]),rounded:a.oneOf([null,"small","medium","large","full"]),fillMode:a.oneOf([null,"solid","flat","outline"])},vn.displayName="KendoTextArea",vn.defaultProps={size:"medium",rounded:"medium",fillMode:"solid"};var gn=i.forwardRef((function(e,t){var n=i.useRef(null),r=i.useRef(null),o=(0,L.n)(r,e.dir);i.useImperativeHandle(n,(function(){return{element:r.current,props:e,value:e.value}})),i.useImperativeHandle(t,(function(){return n.current}));var a=i.useCallback((function(t){e.onClick&&e.onClick.call(void 0,{value:e.value,target:n.current,syntheticEvent:t})}),[e.onClick,e.value]),l=i.useCallback((function(t){e.onKeyDown&&e.onKeyDown.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onKeyDown]),s=i.useCallback((function(t){e.onFocus&&e.onFocus.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onFocus]),c=i.useCallback((function(t){e.onBlur&&e.onBlur.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onBlur]),d=i.useCallback((function(t){e.onMouseMove&&e.onMouseMove.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onMouseMove]),p=i.useCallback((function(t){e.onMouseEnter&&e.onMouseEnter.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onMouseEnter]),f=i.useCallback((function(t){e.onMouseLeave&&e.onMouseLeave.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onMouseLeave]);return i.createElement("span",{id:e.id,ref:r,dir:o,"data-half":e.half,tabIndex:e.tabIndex,title:e.title,style:e.style,className:(0,u.A)("k-rating-item",{"k-rtl":"rtl"===o,"k-selected":e.selected,"k-hover":e.hovered},e.className),onClick:a,onKeyDown:l,onFocus:s,onBlur:c,onMouseEnter:p,onMouseLeave:f,onMouseMove:d},e.children)})),yn={id:a.string,icon:a.any,dir:a.oneOf(["ltr","rtl"]),title:a.string,value:a.number,half:a.bool,selected:a.bool,hovered:a.bool};gn.displayName="KendoReactRatingItem",gn.propTypes=yn,gn.defaultProps={dir:"ltr"};var bn,Cn=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},En=function(e,t,n){return Cn(e-n,n)<t&&t<e},wn=function(e,t,n,r){return null!==t&&("continues"===r?En(e,t,n)?Cn(e-n/2,n/2)<=t:e<=t:"single"===r&&(En(e,t,n)?Cn(e-n/2,n/2)===t:e===t))},kn=function(e,t,n){return"ltr"===e?n<t.x+t.width/2:n>t.x+t.width/2},Sn=function(e,t,n,r){for(var o=e;o<=t;o+=n)if(r===o)return!0;return!1};!function(e){e.select="select",e.deselect="deselect",e.increase="increase",e.decrease="decrease",e.min="min",e.max="max",e.reset="reset"}(bn||(bn={}));var On=function(){return On=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},On.apply(this,arguments)},Dn=function(e,t,n){var r=i.useState(e),o=r[0],a=r[1];return[o,function(e){var r=function(e,t){switch(t.type){case bn.select:return void 0===t.payload||void 0===t.step?e:t.payload===e?null:t.payload>=t.min?t.payload<t.max?Cn(t.payload,t.step):t.max:t.min;case bn.deselect:return null;case bn.increase:return void 0===t.step?e:e<t.min?t.min:e+t.step<t.max?Cn(e+t.step,t.step):t.max;case bn.decrease:return void 0===t.step?e:Cn(e-t.step,t.step)>=t.min?Cn(e-t.step,t.step):t.min;case bn.min:return void 0===t.step?e:t.min;case bn.max:return t.max;case bn.reset:return null;default:return e}}(t.state||o,On(On({},e),t));n&&n(r,e.event),a(r)}]},xn=(0,p.Y)(),In=i.forwardRef((function(e,t){var n,r,o,a,l=(0,ae.Y)(xn,e),s=i.useRef(null),d=i.useRef(null),p=(0,L.n)(d,l.dir);i.useImperativeHandle(s,(function(){return{element:d.current,props:l}})),i.useImperativeHandle(t,(function(){return s.current}));for(var f,h,v=i.useCallback((function(e,t){l.onChange&&s.current&&l.onChange.call(void 0,{value:e,target:s.current,syntheticEvent:t})}),[l.onChange]),g=i.useMemo((function(){return void 0!==l.min?l.min:_n.min}),[l.min]),y=i.useMemo((function(){return void 0!==l.max?l.max:_n.max}),[l.max]),b=i.useMemo((function(){return l.precision||_n.precision}),[l.precision]),C=i.useMemo((function(){return void 0!==l.step?l.step:_n.step}),[l.step]),E=i.useMemo((function(){return l.readonly||_n.readonly}),[l.readonly]),w=i.useMemo((function(){return l.disabled||_n.disabled}),[l.disabled]),k=i.useMemo((function(){return l.item||_n.item}),[l.item]),S=Dn(l.defaultValue||_n.defaultValue,{state:l.value,min:g,max:y,step:"half"===b?C/2:C},v),O=S[0],D=S[1],x=Dn(null,{state:l.value,min:g,max:y,step:"half"===b?C/2:C,precision:b}),I=x[0],T=x[1],_=i.useMemo((function(){return l.value||O}),[l.value,O]),R=i.useMemo((function(){return I}),[I]),M=i.useMemo((function(){return l.selection||_n.selection}),[l.selection]),P=i.useMemo((function(){return C/("half"===b?2:1)}),[C,b]),N=i.useCallback((function(e){if(e.target&&e.target.element&&!E&&!w){if("half"===b){var t=e.target.element.getBoundingClientRect(),n=kn(p||"ltr",t,e.syntheticEvent.clientX)?Cn(e.target.value-C/2,P):e.target.value;D({type:bn.select,payload:n,event:e.syntheticEvent})}else D({type:bn.select,payload:e.target.value,event:e.syntheticEvent});if(l.onClick){var r={value:_,target:s.current,syntheticEvent:e.syntheticEvent};l.onClick.call(void 0,r)}}}),[l.onClick,D,_]),F=i.useCallback((function(e){if(!E&&!w){switch(e.keyCode){case m.R.right:e.preventDefault(),D({type:"rtl"===p?bn.decrease:bn.increase,event:e});break;case m.R.left:e.preventDefault(),D({type:"rtl"===p?bn.increase:bn.decrease,event:e});break;case m.R.home:e.preventDefault(),D({type:"rtl"===p?bn.min:bn.max,event:e});break;case m.R.end:e.preventDefault(),D({type:"rtl"===p?bn.max:bn.min,event:e});break;case m.R.esc:e.preventDefault(),D({type:bn.deselect,event:e})}l.onKeyDown&&l.onKeyDown.call(void 0,{value:_,target:s.current,syntheticEvent:e})}}),[l.onKeyDown,D,_]),A=i.useCallback((function(e){if(l.onFocus){var t={target:s.current,syntheticEvent:e};l.onFocus.call(void 0,t)}}),[l.onFocus]),j=i.useCallback((function(e){if(l.onBlur){var t={target:s.current,syntheticEvent:e};l.onBlur.call(void 0,t)}}),[l.onBlur]),V=i.useCallback((function(e){if(e.target&&e.target.element)if("half"===b){var t=e.target.element.getBoundingClientRect(),n=kn(p||"ltr",t,e.syntheticEvent.clientX)?e.target.value-C/2:e.target.value;T({type:bn.select,payload:n,event:e.syntheticEvent})}else T({type:bn.select,payload:e.target.value,event:e.syntheticEvent})}),[b,C,p]),z=i.useCallback((function(e){T({type:bn.reset,event:e.syntheticEvent})}),[]),B=[],H=(f=Cn(y-g,P))-(h=C)*Math.floor(f/h),U=g;U<=y;U=Cn(U+C,P)){var W=Cn(U+H,P),K="half"===b&&En(W,null!==R?R:null!==_?_:0,C),q=wn(W,_,C,M),Y=wn(W,null!==R?R:_,C,M),G=wn(W,R,C,M);B.push(i.createElement(k,{key:W,value:W,dir:p,title:String(K?Cn(W-C/2,P):W),icon:l.icon,half:K,selected:q||Y,hovered:G,onClick:N,onMouseMove:V,onMouseLeave:z},K&&i.createElement("span",{className:"k-rating-precision-complement",style:(n={width:"12px"},n["rtl"===p?"right":"left"]="50%",n)},i.createElement("span",{className:(0,u.A)("k-icon",(r={"k-i-star-outline":!l.icon},r["".concat(l.icon,"-outline")]=l.icon,r))})),K&&i.createElement("span",{className:"k-rating-precision-part",style:{width:"12px"}},i.createElement("span",{className:(0,u.A)("k-icon",(o={"k-i-star":!l.icon},o["".concat(l.icon)]=l.icon,o))})),K&&i.createElement("span",{style:{width:"24px",height:"24px",display:"block"}}),!K&&i.createElement("span",{className:(0,u.A)("k-icon",(a={"k-i-star":!l.icon&&(G||Y&&!G),"k-i-star-outline":!l.icon&&!G},a["".concat(l.icon)]=l.icon&&(G||Y&&!G),a["".concat(l.icon,"-outline")]=l.icon&&!G,a))})))}return i.createElement("span",{id:l.id,style:l.style,ref:d,role:"slider",dir:p,tabIndex:(0,c.p)(l.tabIndex,l.disabled,void 0),className:(0,u.A)("k-rating k-widget",{"k-rtl":"rtl"===p,"k-state-readonly":E,"k-disabled":w},l.className),onKeyDown:F,onFocus:A,onBlur:j,"aria-valuemin":g,"aria-valuemax":y,"aria-valuenow":null!==_?_:void 0,"aria-disabled":w?"true":void 0,"aria-labelledby":l.ariaLabelledBy,"aria-describedby":l.ariaDescribedBy},i.createElement("input",{id:"rating",className:"k-hidden",readOnly:E,disabled:w}),i.createElement("span",{className:"k-rating-container"},B),l.label&&i.createElement("span",{className:"k-rating-label"},l.label))})),Tn={id:a.string,dir:a.oneOf(["ltr","rtl"]),selection:a.oneOf(["continues","single"]),precision:a.oneOf(["item","half"]),value:function(e,t,n){return e.value&&e.min&&e.max&&e.step&&!("half"===e.precision?Sn(e.min,e.max,e.step/2,e.value):Sn(e.min,e.max,e.step,e.value))&&"half"===e.precision?new Error("Invalid prop + ".concat(t," supplied to ").concat(n,".\n The value of the { value } property is not correct, please check your values.\n ")):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 + ".concat(t," supplied to ").concat(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},_n={dir:"ltr",min:1,max:5,step:1,item:gn,defaultValue:null,readonly:!1,disabled:!1,selection:"continues",precision:"item"};In.displayName="KendoReactRating",In.propTypes=Tn,In.defaultProps=_n},6097:(e,t,n)=>{n.d(t,{_:()=>p});var r,o=n(3899),i=n(189),a=n(8047),l=n(499),s=n(2609),u=n(4006),c=n(8011),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=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})},(0,u.s)(c.k),n}return d(t,e),t.prototype.render=function(){var e=this.props,t=e.label,n=e.editorId,r=e.className,i=e.editorValue,u=e.editorPlaceholder,c=e.editorValid,d=e.editorDisabled,p=e.style,f=e.id,h=e.optional,m=(0,l.provideLocalizationService)(this),v=h?m.toLanguageString(s.y,s.s[s.y]):"",g=v&&o.createElement("span",{className:"k-label-optional"},v),y=(0,a.A)({"k-floating-label-container":!0,"k-focus":this.state.focused,"k-empty":!u&&!i&&0!==i,"k-text-disabled":d,"k-rtl":"rtl"===this.props.dir},r),b=(0,a.A)({"k-label":!0,"k-text-error":!1===c,"k-text-disabled":d});return o.createElement("span",{id:this.props.id,className:y,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:b},t,g):o.createElement("span",{id:f,className:b},t,g):null)},t.propTypes={label:i.string,editorId:i.string,editorValue:i.oneOfType([i.string,i.bool,i.number]),editorPlaceholder:i.string,editorValid:i.bool,editorDisabled:i.bool,id:i.string,style:i.object,className:i.string,optional:i.bool},t}(o.Component);(0,l.registerForLocalization)(p)},3287:(e,t,n)=>{n.d(t,{_:()=>c});var r=n(3899),o=n(189),i=n(8047),a=n(2609),l=n(499),s=n(4006),u=n(8011),c=function(e){(0,s.s)(u.k);var t=e.id,n=e.editorId,o=e.editorRef,c=e.editorDisabled,d=e.children,p=e.editorValid,f=e.style,h=e.className,m=e.optional,v=(0,l.useLocalization)(),g=m?v.toLanguageString(a.y,a.s[a.y]):"",y=g&&r.createElement("span",{className:"k-label-optional"},g),b=r.useCallback((function(e){if(o&&o.current&&!c){o.current.focus&&(e.preventDefault(),o.current.focus());var t=o.current.actionElement;t&&(e.preventDefault(),t.click())}}),[o]),C=(0,i.A)({"k-label":!0,"k-label-empty":!d,"k-text-error":!1===p,"k-text-disabled":!0===c},h);return r.createElement("label",{id:t,htmlFor:n,onClick:b,style:f,className:C},d,y)};c.propTypes={id:o.string,editorId:o.string,editorRef:o.oneOfType([o.func,o.shape({current:o.any})]),editorValid:o.bool,editorDisabled:o.bool,style:o.object,className:o.string,optional:o.bool},c.displayName="KendoReactLabel"},884:(e,t,n)=>{n.r(t),n.d(t,{Error:()=>u,FloatingLabel:()=>d._,Hint:()=>c,Label:()=>r._});var r=n(3287),o=n(3899),i=n(189),a=n(8047),l=n(4006),s=n(8011),u=function(e){(0,l.s)(s.k);var t=(0,a.A)({"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)};u.propTypes={id:i.string,direction:i.oneOf(["start","end"]),children:i.oneOfType([i.element,i.node]),style:i.object,className:i.string},u.defaultProps={direction:"start"},u.displayName="KendoReactError";var c=function(e){(0,l.s)(s.k);var t=(0,a.A)({"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)};c.propTypes={id:i.string,direction:i.oneOf(["start","end"]),children:i.oneOfType([i.element,i.node]),style:i.object,className:i.string,editorDisabled:i.bool},c.defaultProps={direction:"start"},c.displayName="KendoReactHint";var d=n(6097)},2609:(e,t,n)=>{var r;n.d(t,{y:()=>o,s:()=>i});var o="labels.optional",i=((r={})[o]="(Optional)",r)},8011:(e,t,n)=>{n.d(t,{k:()=>r});var r={name:"@progress/kendo-react-labels",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1656315054,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"}},9222:(e,t,n)=>{n.d(t,{G:()=>le});var r=n(3899),o=n(994),i=n(189),a=function(e){e.style.transitionDuration="",Array.from(e.classList).forEach((function(t){t.startsWith("k-slide-")&&e.classList.remove(t)}))},l="undefined"!=typeof window&&/Firefox/.test(window.navigator.userAgent),s=n(4006),u=n(7827),c=n(8259),d=n(8047);const p="bottom",f="center",h="middle",m="left",v="right",g="top",y="fit",b="flip",C="none";var E,w,k,S=function(e,t,n){var r=0;return e+t>n&&(r=n-(e+t)),e<0&&(r=-e),r},O=function(e){var t=e.offset,n=e.size,r=e.anchorSize,o=e.viewPortSize,i=e.anchorAlignPoint,a=e.elementAlignPoint,l=0,s=2*e.margin;if(a!==i&&a!==f&&a!==h&&i!==f&&i!==h){var u=i===g||i===m;t<0&&u?t+(l=n+r+s)+n>o&&(l=0):t>=0&&!u&&(t+n>o&&(l+=-(r+n+s)),t+l<0&&(l=0))}return l},D=(E=function(e){if(!x())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},k=!1,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return k||(w=E.apply(void 0,e),k=!0),w}),x=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)};const I={eitherRect:function(e,t){return e||{height:0,left:t.left,top:t.top,width:0}},scaleRect:function(e,t){return e&&1!==t?{height:e.height/t,left:e.left/t,top:e.top/t,width:e.width/t}:e},removeStackingOffset:function(e,t){return t?{height:e.height,left:e.left-t.left,top:e.top-t.top,width:e.width}:e},hasRelativeStackingContext:D,canUseDOM:x};function T(e){return e.ownerDocument||e.document||e}const _=function(e){return T(e).defaultView},R=function(e){return T(e).documentElement};var M=0;function P(){if(!M&&"undefined"!=typeof document){var e=document.createElement("div");e.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",e.innerHTML="&nbsp;",document.body.appendChild(e),M=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return M}function N(e){var t=_(e),n=R(e),r={height:t.innerHeight,width:t.innerWidth};return n.scrollHeight-n.clientHeight>0&&(r.width-=P()),r}function F(e){var t=R(e),n=_(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}}const A=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 i=e.getBoundingClientRect();return e.style.display=n,e.style.left=r,e.style.position=o,i}(e)),{top:r,left:n,height:t.height,width:t.width}};function j(e){return e===(e.ownerDocument||{}).body?F(e):{x:e.scrollLeft,y:e.scrollTop}}const L=function(e){for(var t=e.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||R(e)};function V(e,t){for(var n=[],r=e.parentNode;r&&(n.push(r),r!==t);)r=r.parentNode;return n}function z(e){for(var t=[],n=e.parentNode.firstElementChild;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t}var B=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],H=function(){return I.canUseDOM()?window:null},U=/auto|scroll/,W=function(e){return function(e){return""+e.style.overflow+e.style.overflowX+e.style.overflowY}(e)||function(e){var t=window.getComputedStyle(e);return""+t.overflow+t.overflowX+t.overflowY}(e)},K=function(e){if(!e||!I.hasRelativeStackingContext())return null;for(var t=e.parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}return null},q=function(){return I.canUseDOM()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},Y={addOffset:function(e,t){return{left:e.left+t.left,top:e.top+t.top}},addScroll:function(e,t){return{top:e.top+t.y,left:e.left+t.x,height:e.height,width:e.width}},align:function(e){var t=e.anchorRect,n=e.anchorAlign,r=e.elementRect,o=e.elementAlign,i=e.margin;void 0===i&&(i={});var a=n.horizontal,l=n.vertical,s=o.horizontal,u=o.vertical,c=i.horizontal||0,d=i.vertical||0,m=t.top,g=t.left;return l===p&&(m+=t.height),l!==f&&l!==h||(m+=Math.round(t.height/2)),u===p&&(m-=r.height,d*=-1),u!==f&&u!==h||(m-=Math.round(r.height/2),d*=-1),a===v&&(g+=t.width),a!==f&&a!==h||(g+=Math.round(t.width/2)),s===v&&(g-=r.width,c*=-1),s!==f&&s!==h||(g-=Math.round(r.width/2),c*=-1),{top:m+d,left:g+c}},boundingOffset:function(e){if(!e.getBoundingClientRect){var t=N(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}},getFontStyles:function(e){var t=H();if(!t||!e)return[];var n=t.getComputedStyle(e);return B.map((function(e){return{key:e,value:n[e]}}))},getWindow:H,hasOffsetParent:function(e){return!!e&&Boolean(e.offsetParent)},offset:function(e){return e?A(e):null},offsetAtPoint:function(e,t){if(!e)return null;var n=e.style,r=n.left,o=n.top,i=n.transition;e.style.transition="none",e.style.left=t.left+"px",e.style.top=t.top+"px";var a=A(e);return e.style.left=r,e.style.top=o,e.offsetHeight,e.style.transition=i,a},position:function(e,t,n){return e&&t?function(e,t,n){void 0===n&&(n=1);var r=t?L(t):null,o=function(e,t){var n=_(e),r=n.getComputedStyle(e),o=A(e),i=t||L(e),a=e.ownerDocument,l=i!==a.body&&i!==a.documentElement,s={top:0,left:0};if("fixed"!==r.position&&l){var u=n.getComputedStyle(i);(s=A(i)).top+=parseInt(u.borderTopWidth,10),s.left+=parseInt(u.borderLeftWidth,10)}return{top:o.top-s.top,left:o.left-s.left,height:o.height,width:o.width}}(e,r),i=o.top,a=o.left,l=o.height,s=o.width,u=function(e,t){return e?j(e):function(e){var t=L(e);return t?j(t):{x:0,y:0}}(t)}(r,e),c=u.x,d=u.y,p=e.ownerDocument,f=r===p.body||r===p.documentElement?1:n;return{top:i+d*f,left:a+c*f,height:l,width:s}}(e,t,n||1):null},removeScroll:function(e,t){return{top:e.top-t.y,left:e.left-t.x,height:e.height,width:e.width}},restrictToView:function(e){var t=e.anchorRect,n=e.anchorAlign,r=e.elementRect,o=e.elementAlign,i=e.collisions,a=e.viewPort,l=e.margin;void 0===l&&(l={});var s=r.top,u=r.left,c=r.height,d=r.width,p=a.height,f=a.width,h=l.horizontal||0,m=l.vertical||0,v=0,g=0,C=i.vertical===y,E=i.horizontal===y,w=i.vertical===b,k=i.horizontal===b;C&&(g+=S(s,c,p)),E&&(v+=S(u,d,f)),w&&(g+=O({margin:m,offset:s,size:c,anchorSize:t.height,viewPortSize:p,anchorAlignPoint:n.vertical,elementAlignPoint:o.vertical})),k&&(v+=O({margin:h,offset:u,size:d,anchorSize:t.width,viewPortSize:f,anchorAlignPoint:n.horizontal,elementAlignPoint:o.horizontal}));var D=w&&0!==g,x=k&&0!==v,I=C&&0!==g,T=E&&0!==v;return{flipped:x||D,fitted:I||T,flip:{horizontal:x,vertical:D},fit:{horizontal:T,vertical:I},offset:{left:v,top:g}}},scrollPosition:F,scrollableParents:function(e){var t=[];if(!I.canUseDOM())return t;for(var n=e.parentElement;n;)(U.test(W(n))||n.hasAttribute("data-scrollable"))&&t.push(n),n=n.parentElement;return t.push(window),t},getRelativeContextElement:K,stackingElementOffset:function(e){var t=K(e);return t?A(t):null},stackingElementScroll:function(e){var t=K(e);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}},stackingElementViewPort:function(e){var t=K(e);return t?{height:t.scrollHeight,width:t.scrollWidth}:null},useRelativePosition:function(e){return Boolean(K(e))},windowViewPort:N,zoomLevel:q,isZoomed:function(){return q()>1},zIndex:function(e,t){if(!e||!I.canUseDOM())return null;var n=function(e,t){for(var n,r,o=V(e),i=t;i&&(n=z(i),!(r=o.reduce((function(e,t){return e.concat(n.filter((function(e){return e===t})))}),[])[0]));)i=i.parentElement;return r}(e,t);if(!n)return null;var r=[e].concat(V(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}};const G=Y;const Z=function(e){var t=e.anchor,n=e.element,r=e.anchorAlign,o=e.elementAlign,i=e.margin,a=e.offset,l=e.positionMode,s=e.scale||1,u="fixed"!==l&&G.hasOffsetParent(n)?function(e,t,n,r){var o=I.eitherRect(G.position(e,t,r),n);return I.scaleRect(o,r)}(t,n,a,s):function(e,t,n,r){var o=function(e,t){return e?{x:0,y:0}:G.scrollPosition(t)}(e,t),i=I.eitherRect(G.offset(e),n),a=2*r,l=G.stackingElementScroll(t);1!==r&&l&&(l.x/=a,l.y/=a);var s=G.stackingElementOffset(t);return 1!==r&&s&&(s.left/=a,s.top/=a),G.removeScroll(G.addScroll(I.removeStackingOffset(I.scaleRect(i,r),s),l),o)}(t,n,a,s),c=I.scaleRect(G.offset(n),s);return G.align({anchorAlign:r,anchorRect:u,elementAlign:o,elementRect:c,margin:i})};var X,$={name:"@progress/kendo-react-popup",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1656314898,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"},Q=(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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},X(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}X(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),J=function(){return J=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},J.apply(this,arguments)};function ee(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 i=n[o];if(e[i]!==t[i])return!1}return!0}var te,ne={left:-1e3,top:0};!function(e){e.hiding="hiding",e.hidden="hidden",e.showing="showing",e.shown="shown",e.reposition="reposition"}(te||(te={}));var re="k-animation-container-shown",oe=function(e){function t(t){var n=e.call(this,t)||this;return n.context=0,n.state={current:te.hidden,previous:te.hidden,props:{}},n._popup=null,n.show=function(e){n.setPosition(e),n.animate(e.firstChild,"enter",n.onOpened),n.setState({current:te.shown,previous:n.state.current})},n.setPosition=function(e){var t=n.props,r=t.anchorAlign,o=t.popupAlign,i=t.collision,a=t.offset,l=t.anchor,s=t.margin,u=t.scale,c=t.positionMode,d=function(e){var t=e.anchor,n=e.currentLocation,r=e.element,o=e.anchorAlign,i=e.elementAlign,a=e.collisions,l=e.margin,s=e.scale||1,u=G.offsetAtPoint(r,n),c=I.scaleRect(u,s),d=I.scaleRect(G.offset(t),s),p=I.eitherRect(d,n),f=e.viewPort||G.windowViewPort(r);f.width=f.width/s,f.height=f.height/s;var h=G.restrictToView({anchorAlign:o,anchorRect:p,collisions:a,elementAlign:i,elementRect:c,margin:l,viewPort:f}),m=G.addOffset(n,h.offset);return{flip:h.flip,flipped:h.flipped,offset:m}}({anchor:l,anchorAlign:r,element:e,elementAlign:o,collisions:i,currentLocation:Z({anchor:l,anchorAlign:r,element:e,elementAlign:o,offset:a,margin:s,positionMode:c,scale:u}),margin:n.props.margin});if(e.style.top=d.offset.top+"px",e.style.left=d.offset.left+"px",n._collisions={fit:d.fit,fitted:d.fitted,flip:d.flip,flipped:d.flipped},n.props.onPosition){var p={target:n,flipped:d.flipped,fitted:d.fitted};n.props.onPosition.call(void 0,p)}},n.onOpened=function(){var e=n._popup;e&&(n.props.show&&e.classList.add(re),n.attachRepositionHandlers(e),n.props.onOpen&&n.props.onOpen.call(void 0,{target:n}))},n.animate=function(e,t,r){if(n.props.popupAlign){var o,i=n.props.popupAlign,s=i.horizontal,u=i.vertical;o="left"===s&&"center"===u?"right":"right"===s&&"center"===u?"left":"top"===u?"down":"up",n._collisions&&n._collisions.flipped&&(o={down:"up",up:"down",left:"right",right:"left"}[o]),function(e,t,n,r,o){if(0===n)return o();var i="k-slide-"+t+"-"+r,s=i+"-active",u=function(t){t.target===e&&(e.removeEventListener("transitionend",u),a(e),"exit"===r&&(e.style.display="none"),o())};e.addEventListener("transitionend",u);var c=e.ownerDocument;if(c){var d=c.defaultView;if(d){var p=function(){a(e),e.classList.add(i),d.requestAnimationFrame((function(){e.style.transitionDuration=n+"ms",e.classList.add(s)}))};l?d.requestAnimationFrame(p):p()}}}(e,o,n.animationDuration[t],t,r)}},n.onClosing=function(e){n.props.show||e.classList.remove(re),n.detachRepositionHandlers()},n.onClosed=function(){n.state.current===te.hiding&&n.state.previous===te.shown&&n.setState({current:te.hidden,previous:n.state.current}),n.props.onClose&&n.props.onClose.call(void 0,{target:n})},n.getCurrentZIndex=function(){return n.context?n.context+1:100},(0,s.s)($),n.reposition=function(e,t,n){var r,o,i,a;void 0===n&&(n={});var l=0;n=n||{};var s=function(){l=!1===n.leading?0:(new Date).getTime(),r=void 0,a=e.apply(o,i),r||(o=i=null)};return function(){var u=(new Date).getTime();l||!1!==n.leading||(l=u);var c=t-(u-l);return o=void 0,i=arguments,c<=0||c>t?(r&&(clearTimeout(r),r=void 0),l=u,a=e.apply(o,i),r||(o=i=null)):r||!1===n.trailing||(r=window.setTimeout(s,c)),a}}(n.reposition.bind(n),16.666666666666668),n}return Q(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._popup},enumerable:!1,configurable:!0}),t.getDerivedStateFromProps=function(e,t){var n=e.show,r=e.anchor,o=e.anchorAlign,i=e.appendTo,a=e.collision,l=e.popupAlign,s=e.className,u=e.popupClass,c=e.style,d=e.offset,p=e.contentKey,f=J(J({},t),{props:{show:n,anchor:r,anchorAlign:o,appendTo:i,collision:a,popupAlign:l,className:s,popupClass:u,style:c,offset:d,contentKey:p}});return e.show?t.current===te.hidden||t.current===te.hiding?J(J({},f),{current:te.showing,previous:t.current}):t.current===te.showing?J(J({},f),{current:te.shown,previous:t.current}):t.current!==te.shown||ee(d,t.props.offset)&&ee(o,t.props.anchorAlign)&&ee(i,t.props.appendTo)&&ee(a,t.props.collision)&&ee(l,t.props.popupAlign)&&ee(c,t.props.style)&&r===t.props.anchor&&u===t.props.popupClass&&s===t.props.className?f:J(J({},f),{current:te.reposition,previous:t.current}):t.current===te.hiding||t.current===te.hidden?J(J({},f),{current:te.hidden,previous:t.current}):J(J({},f),{current:te.hiding,previous:t.current})},t.prototype.componentDidUpdate=function(e){this.state.current===te.showing&&this._popup?this.show(this._popup):this.state.current===te.hiding&&this._popup?(this.onClosing(this._popup),this.animate(this._popup.firstChild,"exit",this.onClosed)):this.state.current===te.reposition&&this.state.previous===te.shown?this.setState({current:te.shown,previous:this.state.current}):this.state.current===te.shown&&e.contentKey!==this.props.contentKey&&this._popup&&this.setPosition(this._popup)},t.prototype.componentDidMount=function(){this.state.current===te.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,i=t.className,a=t.popupClass,l=t.show,s=t.id,p=t.positionMode,f=this.props.appendTo?this.props.appendTo:u.N?this.props.anchor&&this.props.anchor.ownerDocument?this.props.anchor.ownerDocument.body:document.body:void 0;this.state.current===te.reposition&&this.state.previous===te.shown&&this._popup&&this.setPosition(this._popup);var h=Object.assign({},{position:p,top:0,left:-1e4},this.props.style||{}),m=this.state.current===te.hiding;if((l||m)&&f){var v=this.getCurrentZIndex(),g=r.createElement(c.$.Provider,{value:v},r.createElement("div",{className:(0,d.A)("k-animation-container","k-animation-container-relative",i),id:s,ref:function(t){return e._popup=t},style:J({zIndex:v},h)},r.createElement("div",{className:(0,d.A)("k-popup",a,"k-child-animation-container"),style:{transitionDelay:"0ms"}},n)));return null!==this.props.appendTo?o.createPortal(g,f):g}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:!1,configurable:!0}),t.prototype.attachRepositionHandlers=function(e){var t=this;this.detachRepositionHandlers(),this._scrollableParents=G.scrollableParents(this.props.anchor||e),this._scrollableParents&&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:te.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:i.oneOfType([i.string,i.arrayOf(i.string),i.object]),id:i.string,popupClass:i.oneOfType([i.string,i.arrayOf(i.string),i.object]),collision:i.shape({horizontal:i.oneOf([y,b,C]),vertical:i.oneOf([y,b,C])}),anchorAlign:i.shape({horizontal:i.oneOf([m,f,v]),vertical:i.oneOf([g,f,p])}),popupAlign:i.shape({horizontal:i.oneOf([m,f,v]),vertical:i.oneOf([g,f,p])}),offset:i.shape({left:i.number,top:i.number}),children:i.oneOfType([i.element,i.node]),show:i.bool,animate:i.oneOfType([i.bool,i.shape({openDuration:i.number,closeDuration:i.number})]),margin:i.shape({horizontal:i.number,vertical:i.number}),positionMode:i.oneOf(["fixed","absolute"]),scale:i.number,style:i.object,onClose:i.func,onPosition:i.func,onOpen:i.func},t.defaultProps={collision:{horizontal:y,vertical:b},anchorAlign:{horizontal:m,vertical:p},popupAlign:{horizontal:m,vertical:g},offset:ne,animate:!0,show:!1,margin:{horizontal:0,vertical:0},positionMode:"absolute"},t.contextType=c.$,t.displayName="PopupComponent",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},ie.apply(this,arguments)},ae=r.createContext((function(e){return e})),le=r.forwardRef((function(e,t){var n=r.useContext(ae).call(void 0,e);return r.createElement(oe,ie({ref:t},n))}));le.displayName="Popup"},9218:(e,t,n)=>{n.r(t),n.d(t,{FilterOperator:()=>q,aggregateBy:()=>et,compileFilter:()=>it,composeSortDescriptors:()=>Ye,distinct:()=>ft,filterBy:()=>at,getter:()=>Y,groupBy:()=>ut,isCompositeFilterDescriptor:()=>m,normalizeFilters:()=>_,normalizeGroups:()=>lt,orderBy:()=>dt,process:()=>ht,toDataSourceRequest:()=>_e,toDataSourceRequestString:()=>Te,toODataString:()=>U,translateAggregateResults:()=>He,translateDataSourceResultGroups:()=>Be});var r,o,i,a,l=function(e){return null!=e},s=function(e){return null==e},u=function(e){return Array.isArray(e)},c=function(e){return"function"==typeof e},d=function(e){return"string"==typeof e},p=function(e){return!function(e){return s(e)||0===e.trim().length}(e)},f=function(e){return!isNaN(e-parseFloat(e))},h=function(e){return e&&e.getTime},m=function(e){return l(e.filters)},v=n(655),g=function(e,t,n){return function(r){return e(r)?t(r):n(r)}},y=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return e.reduceRight((function(e,t){return t(e)}),t)}},b=function(e){return e},C=function(e){return function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return e()?""+t[0]+n[0]+t[1]:n[0]}},E=function(e){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()))},w=function(e){var t=e.field,n=e.value,r=e.ignoreCase,o=e.operator;return{value:"'"+n.replace(/'/g,"''")+"'",field:t,ignoreCase:r,operator:o}},k=function(e){var t=e.field,n=e.value,r=e.ignoreCase,o=e.operator;return{value:""+encodeURIComponent(n),field:t,ignoreCase:r,operator:o}},S=function(e){var t=e.field,n=e.value,o=e.ignoreCase,i=e.operator;return{field:C((function(){return o}))(r||(r=v.cy(["tolower(",")"],["tolower(",")"])),t),value:n,ignoreCase:o,operator:i}},O=function(e){var t=e.field,n=e.value,r=e.ignoreCase,o=e.operator;return{value:n,field:t.replace(/\./g,"/"),ignoreCase:r,operator:o}},D=function(e){return d(e.value)},x=function(e){return h(e.value)},I=function(e,t){return function(n){return C((function(){return n.filters.length>1}))(o||(o=v.cy(["(",")"],["(",")"])),n.filters.map(e).join(t(n)))}},T=function(e){e.filters&&(e.filters=e.filters.map((function(e){var t,n=Object.assign({},e);return!m(e)&&d(e.operator)&&(n.operator={"!=":"neq","<":"lt","<=":"lte","==":"eq",">":"gt",">=":"gte",equal:"eq",equals:"eq",equalto:"eq",ge:"gte",greater:"gt",greaterthan:"gt",greaterthanequal:"gte",isempty:"isempty",isequalto:"eq",isgreaterthan:"gt",isgreaterthanorequalto:"gte",islessthan:"lt",islessthanorequalto:"lte",isnotempty:"isnotempty",isnotequalto:"neq",isnull:"isnull",le:"lte",less:"lt",lessthan:"lt",lessthanequal:"lte",ne:"neq",notequal:"neq",notequals:"neq",notequalto:"neq",notsubstringof:"doesnotcontain"}[(t=e.operator).toLowerCase()]||t),m(e)&&T(n),n})))},_=function(e){return l(e)&&(e=function(e){return m(e)?Object.assign({},e):{filters:u(e)?e:[e],logic:"and"}}(e),T(e)),e},R=function(e){var t=e.operator;return function(e){var n=e.field,r=e.value;return n+" "+t+" "+r}},M=function(e){return y(e,k,w,S,O)},P=function(e){return M((t=e.operator,function(e){var n=e.field,r=e.value;return t+"("+n+","+r+")"}));var t},N=function(e){return g(x,function(e){return y(R(e),O,(t=e.utcDates,function(e){var n=e.field,r=e.value,o=e.ignoreCase,i=e.operator;return{value:JSON.stringify(t?r:E(r)).replace(/"/g,""),field:n,ignoreCase:o,operator:i}}));var t}(e),function(e){return y(R(e),O)}(e))},F=function(e){return g(D,function(e){return M(R(e))}(e),N(e))},A=function(e){return e+" eq -1"},j=function(e){return y(e,O)},L=function(e){return" "+e.logic+" "},V=function(e){return I((function(t){return g(m,V(e),function(e){return function(t){return function(e,t){return{contains:P(v.pi({},t,{operator:"contains"})),doesnotcontain:y(A,P(v.pi({},t,{operator:"indexof"}))),endswith:P(v.pi({},t,{operator:"endswith"})),eq:F(v.pi({},t,{operator:"eq"})),gt:F(v.pi({},t,{operator:"gt"})),gte:F(v.pi({},t,{operator:"ge"})),isempty:j((function(e){return e.field+" eq ''"})),isnotempty:j((function(e){return e.field+" ne ''"})),isnotnull:j((function(e){return e.field+" ne null"})),isnull:j((function(e){return e.field+" eq null"})),lt:F(v.pi({},t,{operator:"lt"})),lte:F(v.pi({},t,{operator:"le"})),neq:F(v.pi({},t,{operator:"ne"})),startswith:P(v.pi({},t,{operator:"startswith"}))}[e]}(t.operator,e)(t)}}(e))(t)}),L)},z=function(e,t){return void 0===t&&(t={}),e.filters&&e.filters.length?"$filter="+V(t)(_(e)):""},B=("",function(){return""}),H=function(e,t){return g(l,(n=e[0],function(e){return n+e}),B)(t);var n},U=function(e,t){return void 0===t&&(t={}),Object.keys(e).map(function(e,t){return function(n){return{filter:z(t.filter||{},e),skip:H(i||(i=v.cy(["$skip=",""],["$skip=",""])),t.skip),sort:(r=t.sort||[],o=r.filter((function(e){return l(e.dir)})).map((function(e){var t=e.field.replace(/\./g,"/");return"desc"===e.dir?t+" desc":t})).join(","),o?"$orderby="+o:o),take:H(a||(a=v.cy(["$top=",""],["$top=",""])),t.take)}[n];var r,o}}(t,e)).filter(p).join("&")},W={},K=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;W[void 0]=function(e){return e};var q,Y=function(e,t){var n=e+t;if(W[n])return W[n];var r=[];return e.replace(K,(function(e,t,n,o){r.push(l(t)?t:n||o)})),W[n]=function(e){for(var n=e,o=0;o<r.length;o++)if(n=n[r[o]],!l(n)&&t)return n;return n},W[n]},G=function(e){return function(t){return[e,t]}},Z=function(){return null},X=function(e){return function(t){return l(e(t))}},$=function(e){return function(t){return function(e){return l(e)&&u(e)&&e.length>0}(e(t))}},Q=function(e,t){return g(e,t,Z)},J=function(e,t){return function(n){return e(n).map(t).join("~")}},ee=y.apply(void 0,[['"',""],[":","-"]].map((function(e){var t=e[0],n=e[1];return function(e){return e.replace(new RegExp(t,"g"),n)}}))),te=(".",function(e){return e.slice(0,e.indexOf("."))}),ne=function(e){var t=e.field,n=e.dir;return t+"-"+(void 0===n?"asc":n)},re=Y("take"),oe=Y("aggregates"),ie=Y("skip"),ae=Y("group"),le=Y("sort",!0),se=J(le,ne),ue=J(ae,ne),ce=J(oe,(function(e){return e.field+"-"+e.aggregate})),de=y((function(e){return"datetime'"+e+"'"}),te,ee,JSON.stringify,E),pe=y(G("page"),(function(e){var t=e.skip,n=e.take;return Math.floor((t||0)/n)+1})),fe=y(G("pageSize"),re),he=y(G("group"),ue),me=y(G("sort"),se),ve=y(G("aggregate"),ce),ge=Q(X(ie),pe),ye=Q(X(re),fe),be=Q($(ae),he),Ce=Q(X(oe),ve),Ee=y(Q($(le),me),(function(e){return Object.assign({},e,{sort:(le(e)||[]).filter((function(e){var t=e.dir;return p(t)}))})})),we=function(e){var t=e.field;return p(t)},ke=function(e){return e.field+"~"+e.operator+"~"+e.value},Se=g(x,y(ke,(function(e){var t=e.field,n=e.value,r=e.ignoreCase,o=e.operator;return{value:de(n),field:t,ignoreCase:r,operator:o}})),ke),Oe=function(e){return"~"+e.logic+"~"},De=function(e){return I((function(t){return g(m,De(e),function(e){return Q(we,g(D,y(ke,w,e?k:b),Se))}(e))(t)}),Oe)},xe=function(e,t){var n=e.filter;if(n&&n.filters){var r=De(t)(n);if(r.length)return["filter",r]}return null},Ie=function(e,t){return void 0===t&&(t=!0),function(n){return{aggregates:Ce(e),filter:xe(e,t),group:be(e),skip:ge(e),sort:Ee(e),take:ye(e)}[n]}},Te=function(e){return(t=Object.keys(e).map(Ie(e)).filter(l),t.reduce((function(e,t){var n=t[0],r=t[1];return e.concat([n+"="+r])}),[])).join("&");var t},_e=function(e){return Object.keys(e).map(Ie(e,!1)).filter(l).reduce((function(e,t){var n,r=t[0],o=t[1];return v.pi({},e,((n={})[r]=o,n))}),{})},Re=function(e,t,n){return t[e]=n,t},Me=function(e){return function(t){var n,r=t[e];return l(r)?r:t[(n=e,n.replace(/(^[A-Z])/g,(function(e,t){return t.toLowerCase()})))]}},Pe=Me("Member"),Ne=Me("AggregateMethodName"),Fe=Me("Value"),Ae=function(e){return function(t){return Object.keys(t).reduce(e.bind(null,t),{})}},je=Ae((function(e,t,n){return Re(n.toLowerCase(),t,e[n])})),Le=Ae((function(e,t,n){return Re(n,t,je(e[n]))})),Ve=function(e,t){return l(e)?e:t},ze=y((function(e){var t=e.field,n=e.hasSubgroups,r=e.value,o=e.aggregates,i=e.items;return{aggregates:Le(o),field:t,items:n?i.map(ze):i,value:r}}),(function(e){return{aggregates:e.Aggregates||e.aggregates,field:e.Member||e.member||e.field,hasSubgroups:e.HasSubgroups||e.hasSubgroups||!1,items:e.Items||e.items,value:Ve(e.Key,Ve(e.key,e.value))}})),Be=function(e){return e.map(ze)},He=function(e){return(e||[]).reduce((function(e,t){return Re(Pe(t),e,Re(Ne(t).toLowerCase(),e[Pe(t)]||{},Fe(t)))}),{})},Ue=function(e,t){return s(e)?e===t?0:-1:s(t)?1:e.localeCompare?e.localeCompare(t):e>t?1:e<t?-1:0},We=function(e,t){return Ue(t,e)},Ke=function(e){var t=Y(e.field,!0);return function(n,r){return("asc"===e.dir?Ue:We)(t(n),t(r))}},qe=function(e,t){return 0},Ye=function(e){return e.filter((function(e){return l(e.dir)})).map((function(e){return Ke(e)})).reduce((function(e,t){return function(n,r){return e(n,r)||t(n,r)}}),qe)},Ge=function(e,t){return e.push(t),e},Ze=function(e){return function(t){return function(n,r,o){return t(n,e(r,o))}}},Xe=function(e){return function(t){return function(n,r){return e(r)?t(n,r):n}}},$e=function(e){return l(e.__value)},Qe=function(e,t,n){for(var r=t,o=0,i=n.length;o<i;o++)if(r=e(r,n[o],o),$e(r)){r=r.__value;break}return r},Je=Ze((function(e){return e})),et=function(e,t,n){void 0===t&&(t=[]),void 0===n&&(n=Je);var r,o={};return t.length?(r=Qe(n(function(e){var t=e.map((function(e){var t=Y(e.field,!0),n=(e.aggregate||"").toLowerCase(),r=Y(n,!0);return function(o,i){var a=o[e.field]||{},s=r(a)||{average:function(){var e=0,t=0;return{calc:function(n){f(n)?(e+=n,t++):e=n},result:function(){return f(e)?e/t:e}}},count:function(){var e=0;return{calc:function(){return e++},result:function(){return e}}},max:function(){var e=Number.NEGATIVE_INFINITY;return{calc:function(t){(e=f(e)||h(e)?e:t)<t&&(f(t)||h(t))&&(e=t)},result:function(){return e}}},min:function(){var e=Number.POSITIVE_INFINITY;return{calc:function(t){(e=f(e)||h(e)?e:t)>t&&(f(t)||h(t))&&(e=t)},result:function(){return e}}},sum:function(){var e=0;return{calc:function(t){t=l(t)?t:0,e+=t},result:function(){return e}}}}[n]();return s.calc(t(i)),a[e.aggregate]=s,o[e.field]=a,o}}));return function(e,n){return t.reduce((function(e,t){return t(e,n)}),e)}}(t)),o,e),void 0===r&&(r={}),Object.keys(r).forEach((function(e){var t=r[e];Object.keys(t).forEach((function(e){t[e]=t[e].result()}))})),r):o},tt={or:{concat:function(e,t){return function(n){return e(n)||t(n)}},identity:function(){return!1}},and:{concat:function(e,t){return function(n){return e(n)&&t(n)}},identity:function(){return!0}}},nt={contains:function(e,t){return(e||"").indexOf(t)>=0},doesnotcontain:function(e,t){return-1===(e||"").indexOf(t)},doesnotendwith:function(e,t){return(e||"").indexOf(t,(e||"").length-(t||"").length)<0},doesnotstartwith:function(e,t){return-1===(e||"").lastIndexOf(t,0)},endswith:function(e,t){return(e||"").indexOf(t,(e||"").length-(t||"").length)>=0},eq:function(e,t){return e===t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t},isempty:function(e){return""===e},isnotempty:function(e){return""!==e},isnotnull:function(e){return l(e)},isnull:function(e){return s(e)},lt:function(e,t){return e<t},lte:function(e,t){return e<=t},neq:function(e,t){return e!=t},startswith:function(e,t){return 0===(e||"").lastIndexOf(t,0)}},rt=/^\/Date\((.*?)\)\/$/,ot=function(e){var t=tt[e.logic];return e.filters.filter(l).map((function(e){return m(e)?ot(e):function(e){var t=e.field,n=e.ignoreCase,r=e.value,o=e.operator;t=l(t)?t:function(e){return e},n=!l(n)||n;var i=function(e,t,n){if(!l(t))return e;var r=e;if(d(t)){var o=rt.exec(t);o?t=new Date(+o[1]):r=function(t){var r=e(t);return"string"==typeof r&&n?r.toLowerCase():f(r)?r+"":r}}return h(t)?function(e){var t=r(e);return h(t)?t.getTime():t}:r}(c(t)?t:Y(t,!0),r,n);r=function(e,t){if(null!=e&&d(e)){var n=rt.exec(e);if(n)return new Date(+n[1]).getTime();if(t)return e.toLowerCase()}else if(null!=e&&h(e))return e.getTime();return e}(r,n);var a=c(o)?o:nt[o];return function(e){return a(i(e),r,n)}}(e)})).reduce(t.concat,t.identity)},it=function(e){return e&&0!==e.filters.length?ot(e):function(){return!0}},at=function(e,t){return!l(t)||m(t)&&0===t.filters.length?e:e.filter(it(_(t)))},lt=function(e){return(e=u(e)?e:[e]).map((function(e){return Object.assign({dir:"asc"},e)}))},st=Ze((function(e){return e})),ut=function(e,t,n,r){if(void 0===t&&(t=[]),void 0===n&&(n=st),void 0===r&&(r=e),!(t=lt(t)).length)return e;var o=t[0],i=Qe(n(function(e){var t=Y(e,!0),n=0;return function(r,o){r[e]=r[e]||{};var i=t(o),a=function(e){return(e=l(e)&&e.getTime?e.getTime():e)+""}(i),s=r[e][a]||{__position:n++,aggregates:{},items:[],value:i};return s.items.push(o),r[e][a]=s,r}}(o.field)),{},e),a=[];return Object.keys(i).forEach((function(e){Object.keys(i[e]).forEach((function(n){var s=i[e][n],u={},c=r;l(o.aggregates)&&(c=at(r,{field:o.field,ignoreCase:!1,operator:"eq",value:s.value}),u=et(c,o.aggregates)),a[s.__position]={aggregates:u,field:e,items:t.length>1?ut(s.items,t.slice(1),st,c):s.items,value:s.value}}))})),a},ct=function(e,t,n,r){if(!(n-t<2)){var o=t+n>>>1;ct(e,t,o,r),ct(e,o,n,r),function(e,t,n,r,o){for(var i=n-t,a=r-n,l=[],s=0;s<i;s++)l.push(e[t+s]);var u=0,c=n,d=t;do{o(e[c],l[u])<0?(e[d++]=e[c++],a--):(e[d++]=l[u++],i--)}while(a>0&&i>0);for(;i;)e[d++]=l[u++],i--;for(;a;)e[d++]=e[c++],a--}(e,t,o,n,r)}},dt=function(e,t){if(t.some((function(e){return l(e.dir)}))){e=e.slice(0);var n=Ye(t);ct(e,0,e.length,n)}return e},pt=function(e,t){return e===t},ft=function(e,t){return void 0===t&&(t=pt),function(e,t){return e.filter((function(e,n,r){return r.findIndex(t.bind(null,e))===n}))}(e,function(e){if(d(e)){var t=Y(e);e=function(e,n){return t(e)===t(n)}}return e}(t))},ht=function(e,t){var n=t.skip,r=t.take,o=t.filter,i=t.sort,a=t.group,s=lt(a||[]).concat(i||[]);s.length&&(e=dt(e,s));var u,c=l(o)&&Xe.length,d=l(a)&&a.length;if(!c&&!d)return{data:r?e.slice(n,n+r):e,total:e.length};var p,f,h=[];if(c?(u=function(e,t){for(var n=0,r=0,o=e.length;r<o;r++)t(e[r])&&n++;return n}(e,p=it(_(o))),h.push(Xe(p))):u=e.length,l(n)&&l(r)&&(h.push((f=n,function(e){return function(t,n){return f--<=0?e(t,n):t}})),h.push(function(e){return function(t){return function(n,r){return e-- >0?t(n,r):function(e){return $e(e)?e:{__value:e,reduced:!0}}(n)}}}(r))),h.length){var m=y.apply(void 0,h),v=d?ut(e,a,m,function(e,t){return t?e.filter(t):e}(e,p)):Qe(m(Ge),[],e);return{data:v,total:u}}return{data:d?ut(e,a):e,total:u}};!function(e){e.Contains="contains",e.DoesNotContain="doesnotcontain",e.DoesNotEndWith="doesnotendwith",e.DoesNotStartWith="doesnotstartwith",e.EndsWith="endswith",e.EqualTo="eq",e.GreaterThan="gt",e.GreaterThanOrEqual="gte",e.IsEmpty="isempty",e.IsNotEmpty="isnotempty",e.IsNotNull="isnotnull",e.IsNull="isnull",e.LessThan="lt",e.LessThanOrEqual="lte",e.NotEqualTo="neq",e.StartsWith="startswith"}(q||(q={}))},1025:(e,t,n)=>{n.r(t),n.d(t,{expand:()=>Yt,parseRule:()=>Zt,serializeRule:()=>$t});var r={};n.r(r),n.d(r,{byHour:()=>It,byMinute:()=>Tt,byMonth:()=>kt,byMonthDay:()=>St,bySecond:()=>_t,byWeekDay:()=>xt,byWeekNumber:()=>Dt,byYearDay:()=>Ot});var o=n(619),i=n(655),a=function(e){return e instanceof Array&&e.length>0},l=function(e){return a(e.bySecond)||a(e.byMinute)||a(e.byHour)||a(e.byYearDay)||a(e.byMonthDay)||a(e.byWeekDay)||a(e.byMonth)||a(e.byWeekNumber)},s=function(e){for(var t=e.split(";"),n=[],r=null,o=0;o<t.length;o++){var i=t[o].split(":"),a=i[0],l=i[1],s=void 0===l?"":l,u=a.indexOf("TZID");-1!==u&&(r=a.substring(u).split("=")[1]),n=s.split(",").map((function(e){return ot(e,r)}))}return n.length&&null!==n[0]?n:null},u=function(e){var t=s(e);return null===t?null:t[0]};function c(e){return"string"==typeof e}var d=/\{(\d+)}?\}/g,p=function(e){var t=e.name,n=e.message;if(!t||!n)throw new Error("{ name: string, message: string } object is required!");this.name=t,this.message=n};p.prototype.formatMessage=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=h(e),r=this.message.replace(d,(function(e,t){return n[parseInt(t,10)]}));return this.name+": "+r},p.prototype.error=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new Error(this.formatMessage(e))};var f,h=function(e){return e.reduce((function(e,t){return e.concat(t)}),[])},m=(f={NoLocale:"Missing locale info for '{0}'",NoCurrency:"Cannot determine currency information. Please load the locale currencies data.",NoSupplementalCurrency:"Cannot determine currency. Please load the supplemental currencyData.",NoCurrencyRegion:"No currency data for region '{0}'",NoCurrencyDisplay:"Cannot determine currency display information. Please load the locale currencies data. The default culture does not include the all currencies data.",NoGMTInfo:"Cannot determine locale GMT format. Please load the locale timeZoneNames data.",NoWeekData:"Cannot determine locale first day of week. Please load the supplemental weekData.",NoFirstDay:"Cannot determine locale first day of week. Please load the supplemental weekData. The default culture includes only the 'en-US' first day info.",NoValidCurrency:"Cannot determine a default currency for the {0} locale. Please specify explicitly the currency with the format options.",NoDateFieldNames:"Cannot determine the locale date field names. Please load the locale dateFields data."},Object.keys(f).reduce((function(e,t){return e[t]=new p({name:t,message:f[t]}),e}),{})),v={en:{name:"en",identity:{version:{_number:"$Revision: 12418 $",_cldrVersion:"29"},language:"en"},territory:"US",numbers:{symbols:{decimal:".",group:",",list:";",percentSign:"%",plusSign:"+",minusSign:"-",exponential:"E",superscriptingExponent:"×",perMille:"‰",infinity:"∞",nan:"NaN",timeSeparator:":"},decimal:{patterns:["n"],groupSize:[3]},scientific:{patterns:["nEn"],groupSize:[]},percent:{patterns:["n%"],groupSize:[3]},currency:{patterns:["$n"],groupSize:[3],"unitPattern-count-one":"n $","unitPattern-count-other":"n $"},currencies:{BGN:{displayName:"Bulgarian Lev","displayName-count-one":"Bulgarian lev","displayName-count-other":"Bulgarian leva",symbol:"BGN"},EUR:{displayName:"Euro","displayName-count-one":"euro","displayName-count-other":"euros",symbol:"€","symbol-alt-narrow":"€"},USD:{displayName:"US Dollar","displayName-count-one":"US dollar","displayName-count-other":"US dollars",symbol:"$","symbol-alt-narrow":"$"}},localeCurrency:"USD",accounting:{patterns:["$n","($n)"],groupSize:[3]}},calendar:{gmtFormat:"GMT{0}",gmtZeroFormat:"GMT",patterns:{d:"M/d/y",D:"EEEE, MMMM d, y",m:"MMM d",M:"MMMM d",y:"MMM y",Y:"MMMM y",F:"EEEE, MMMM d, y h:mm:ss a",g:"M/d/y h:mm a",G:"M/d/y h:mm:ss a",t:"h:mm a",T:"h:mm:ss a",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'"},dateTimeFormats:{full:"{1} 'at' {0}",long:"{1} 'at' {0}",medium:"{1}, {0}",short:"{1}, {0}",availableFormats:{Bh:"h B",Bhm:"h:mm B",Bhms:"h:mm:ss B",d:"d",E:"ccc",EBhm:"E h:mm B",EBhms:"E h:mm:ss B",Ed:"d E",Ehm:"E h:mm a",EHm:"E HH:mm",Ehms:"E h:mm:ss a",EHms:"E HH:mm:ss",Gy:"y G",GyMMM:"MMM y G",GyMMMd:"MMM d, y G",GyMMMEd:"E, MMM d, y G",h:"h a",H:"HH",hm:"h:mm a",Hm:"HH:mm",hms:"h:mm:ss a",Hms:"HH:mm:ss",hmsv:"h:mm:ss a v",Hmsv:"HH:mm:ss v",hmv:"h:mm a v",Hmv:"HH:mm v",M:"L",Md:"M/d",MEd:"E, M/d",MMM:"LLL",MMMd:"MMM d",MMMEd:"E, MMM d",MMMMd:"MMMM d","MMMMW-count-one":"'week' W 'of' MMMM","MMMMW-count-other":"'week' W 'of' MMMM",ms:"mm:ss",y:"y",yM:"M/y",yMd:"M/d/y",yMEd:"E, M/d/y",yMMM:"MMM y",yMMMd:"MMM d, y",yMMMEd:"E, MMM d, y",yMMMM:"MMMM y",yQQQ:"QQQ y",yQQQQ:"QQQQ y","yw-count-one":"'week' w 'of' Y","yw-count-other":"'week' w 'of' Y"}},timeFormats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateFormats:{full:"EEEE, MMMM d, y",long:"MMMM d, y",medium:"MMM d, y",short:"M/d/yy"},days:{format:{abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},"stand-alone":{abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]}},months:{format:{abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},"stand-alone":{abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]}},quarters:{format:{abbreviated:["Q1","Q2","Q3","Q4"],narrow:["1","2","3","4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},"stand-alone":{abbreviated:["Q1","Q2","Q3","Q4"],narrow:["1","2","3","4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]}},dayPeriods:{format:{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},narrow:{midnight:"mi",am:"a","am-alt-variant":"am",noon:"n",pm:"p","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"}},"stand-alone":{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"},narrow:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"}}},eras:{format:{wide:{0:"Before Christ",1:"Anno Domini","0-alt-variant":"Before Common Era","1-alt-variant":"Common Era"},abbreviated:{0:"BC",1:"AD","0-alt-variant":"BCE","1-alt-variant":"CE"},narrow:{0:"B",1:"A","0-alt-variant":"BCE","1-alt-variant":"CE"}}},dateFields:{era:{wide:"era"},year:{wide:"year",short:"yr.",narrow:"yr."},quarter:{wide:"quarter",short:"qtr.",narrow:"qtr."},month:{wide:"month",short:"mo.",narrow:"mo."},week:{wide:"week",short:"wk.",narrow:"wk."},day:{wide:"day",short:"day",narrow:"day"},weekday:{wide:"day of the week"},dayperiod:{wide:"AM/PM"},hour:{wide:"hour",short:"hr.",narrow:"hr."},minute:{wide:"minute",short:"min.",narrow:"min."},second:{wide:"second",short:"sec.",narrow:"sec."},millisecond:{wide:"millisecond",short:"ms",narrow:"ms"},zone:{wide:"time zone"}}}},supplemental:{likelySubtags:{en:"en-Latn-US"},currencyData:{region:{US:[{USD:{_from:"1792-01-01"}}]}},weekData:{firstDay:{US:"sun"},weekendStart:{"001":"sat"},weekendEnd:{"001":"sun"}}}};function g(e){return c(e)?y(e):e}function y(e){if(v[e])return v[e];if(v.supplemental.likelySubtags){var t=e.split("-"),n=t[0],r=t.slice(1),o=function(e,t){for(var n=v.supplemental.likelySubtags,r=0;r<t.length;r++){var o=n[e+"-"+t[r]];if(o)return o}if(n[e])return n[e]}(n,r),i=o?function(e,t){var n=e.split("-"),r=n[0],o=n[1],i=n[2];return v[e]||-1!==t.indexOf(i)&&v[r+"-"+i]||-1!==t.indexOf(o)&&v[r+"-"+o]||v[r]}(o,r):null;if(i)return i}throw m.NoLocale.error(e)}function b(e){if(e.territory)return e.territory;var t,n=e.name,r=e.identity;return t=r&&r.territory?r.territory:function(e,t){var n=v.supplemental.likelySubtags,r=e.split("-");if(n){var o=n[e]||n[r[0]];o&&(r=o.split("-"))}if(t)for(var i=r.length-1;i>=1;i--){var a=r[i];a!==t.variant&&a!==t.script||r.splice(i,1)}var l=r.length;if(l>1)return r[l-1].toUpperCase()}(n,r),e.territory=t,t}var C="decimal",E="currency",w="accounting",k="percent",S="scientific",O="n",D=".",x="",I="en";function T(e){var t=e.split("-"),n=parseInt(t[0],10),r=parseInt(t[1],10)-1,o=parseInt(t[2],10);return new Date(n,r,o)}var _=m.NoCurrency,R=m.NoCurrencyDisplay,M=m.NoSupplementalCurrency,P=m.NoCurrencyRegion,N=m.NoValidCurrency,F="symbol",A={"001":"USD",150:"EUR"};var j=["sun","mon","tue","wed","thu","fri","sat"],L=m.NoWeekData,V=m.NoFirstDay;function z(e){return 1/e==-1/0}function B(e,t){void 0===t&&(t={}),t.currency||(t.currency=function(e,t){var n=g(e),r=n.numbers;if(!r.localeCurrency){var o=function(e,t){if(void 0===t&&(t=!0),A[e])return A[e];var n=v.supplemental.currencyData;if(n){var r=n.region[e];if(r){var o=function(e){for(var t,n,r,o,i=0;i<e.length;i++){var a=e[i],l=Object.keys(a)[0],s=a[l];if("XXX"!==l&&"false"!==s._tender&&s._from)if(s._to){if(!r){var u=T(s._from),c=T(s._to);(!n||n.to<c||n.from<u)&&(t=l,n={from:u,to:c})}}else{var d=T(s._from);(!o||o<d)&&(r=l,o=d)}}return r||t}(r);return o}if(t)throw P.error(e)}else if(t)throw M.error()}(b(n),true);if(!o)throw N.error(n.name);r.localeCurrency=o}return r.localeCurrency}(e));var n=function(e,t){var n=t.value,r=t.currency,o=t.currencyDisplay;if(void 0===o&&(o=F),"code"===o)return r;var i=function(e,t,n){var r=g(e).numbers.currencies;if(r){var o=r[t];if(o)return o;if(n)throw R.error()}else if(n)throw _.error()}(e,r,!0);return o===F?i["symbol-alt-narrow"]||i.symbol:void 0===typeof n||1!==n?i["displayName-count-other"]:i["displayName-count-one"]}(e,t);return n}function H(e,t,n,r,o){var i=o.numbers.symbols,a=e.indexOf(i.decimal),l=r.groupSize.slice(),s=l.shift(),u=-1!==a?a:n+1,c=e.substring(t,u),d=e,p=c.length;if(p>=s){for(var f=p,h=[];f>-1;){var m=c.substring(f-s,f);m&&h.push(m),f-=s;var v=l.shift();if(0===(s=void 0!==v?v:s)){(m=c.substring(0,f))&&h.push(m);break}}c=h.reverse().join(i.group),d=e.substring(0,t)+c+e.substring(u)}return d}function U(e){return e===E||e===w}function W(e,t,n){void 0===t&&(t=2),void 0===n&&(n=!1);var r=t-String(e).length,o=e;if(r>0){var i=new Array(r+1).join("0");o=n?e+i:i+e}return o}function K(e,t){var n=e,r=t||0;return n=n.toString().split("e"),n=(n=Math.round(Number(n[0]+"e"+(n[1]?Number(n[1])+r:r)))).toString().split("e"),(n=Number(n[0]+"e"+(n[1]?Number(n[1])-r:-r))).toFixed(Math.min(r,20))}m.NoWeekData;var q=/0+$/;function Y(e,t,n){var r=n.numbers.symbols,o=t.style,i=U(o);if(o===S)return(void 0!==t.minimumFractionDigits?e.toExponential(t.minimumFractionDigits):e.toExponential()).replace(D,r.decimal);var a,l=e;i&&(t.value=l,a=B(n,t)),o===k&&(l*=100,a=r.percentSign);var s=function(e){var t,n=e.minimumFractionDigits,r=e.maximumFractionDigits,o=e.style,i=U(o);return i&&(t=function(e){var t=2,n=2,r=((v.supplemental.currencyData||{}).fractions||{})[e];return r&&r._digits&&(n=t=parseInt(r._digits,10)),{minimumFractionDigits:t,maximumFractionDigits:n}}(e.currency)),void 0===n&&(n=i?t.minimumFractionDigits:0),void 0===r&&(r=o===k?Math.max(n,0):i?Math.max(n,t.maximumFractionDigits):Math.max(n,3)),{minimumFractionDigits:n,maximumFractionDigits:r}}(t),u=s.minimumFractionDigits,c=(l=K(l,s.maximumFractionDigits))<0,d=z(e),p=l.split(D),f=p[0],h=W(p[1]?p[1].replace(q,x):x,u,!0);c&&(f=f.substring(1)),t.minimumIntegerDigits&&(f=W(f,t.minimumIntegerDigits));var m,g=!1!==t.useGrouping?H(f,0,f.length,t,n):f;if(h&&(g+=r.decimal+h),i&&"name"===t.currencyDisplay)m=function(e,t){var n=e.numbers.currency,r=1!==t?n["unitPattern-count-other"]:n["unitPattern-count-one"];return t<0&&(r=r.replace(O,"-n")),r}(n,e);else{var y=t.patterns;m=c||d?y[1]||"-"+y[0]:y[0]}if(m===O&&!c)return g;var b=function(e,t,n){for(var r=x,o=0,i=t.length;o<i;o++){var a=t.charAt(o);r+=a===O?e:"$"===a||"%"===a?n:a}return r}(g,m,a);return b}var G=/(\\.)|(['][^']*[']?)|(["][^"]*["]?)/g,Z="__??__",X="#",$="0",Q=/(\.(?:[0-9]*[1-9])?)0+$/g,J=/\.$/,ee=/\,/g;function te(e,t,n){return-1===e&&-1!==t?t:-1!==e&&-1===t?e:n?Math.min(e,t):Math.max(e,t)}function ne(e,t,n){var r={negative:e<0,number:Math.abs(e),negativeZero:z(e),format:t};return function(e){var t=e.number,n=e.format;if(n=n.split(";"),(e.negative||e.negativeZero)&&n[1])n=n[1],e.hasNegativeFormat=!0;else if(0===t){var r=n[2];n=r||n[0],r&&function(e){return-1===e.indexOf(X)&&-1===e.indexOf($)}(r)&&(e.constant=r)}else n=n[0];e.format=n}(r),r.constant?r.constant:(function(e){var t=e.format;if(t.indexOf("'")>-1||t.indexOf('"')>-1||t.indexOf("\\")>-1){var n=e.literals=[];e.format=t.replace(G,(function(e){var t=e.charAt(0).replace("\\",x),r=e.slice(1).replace(t,x);return n.push(r),Z}))}}(r),function(e,t){var n=e.format;-1!==n.indexOf("%")&&(e.style=k,e.symbol=t.numbers.symbols.percentSign,e.number*=100),-1!==n.indexOf("$")&&(e.style=E,e.symbol=B(t))}(r,n),function(e){e.hasGroup=e.format.indexOf(",")>-1,e.hasGroup&&(e.format=e.format.replace(ee,x))}(r),function(e){var t,n,r,o=e.number,i=e.format,a=i.indexOf(D);if(-1!==a){var l=i.lastIndexOf($)-a,s=i.lastIndexOf(X)-a,u=l>-1,c=s>-1,d=o.toString().split("e"),p=(d=(d=d[1]?K(o,Math.abs(d[1])):d[0]).split(D)[1]||x).length,f=-1;u||c?u&&l>s?p=l:s>l&&(c&&p>s?p=s:u&&p<l&&(p=l),f=u?l:0):(e.format=i.substring(0,a)+i.substring(a+1),a=-1,p=0),p>-1&&(o=K(o,p),f>-1&&(t=o,r=0===(n=f)?Q:new RegExp("(\\.[0-9]{"+n+"}[1-9]*)0+$","g"),o=t.replace(r,"$1").replace(J,x)))}else o=K(o);e.negative&&-1*o>=0&&!e.negativeZero&&(e.negative=!1),e.number=o,e.decimalIndex=a}(r),function(e){var t=e.format,n=t.indexOf(X),r=t.indexOf($),o=te(n,r,!0),i=te(n=t.lastIndexOf(X),r=t.lastIndexOf($));o===t.length&&(i=o),e.start=o,e.end=i,e.lastZeroIndex=r}(r),function(e,t){var n=e.number;return-1!==e.start&&(n=function(e,t){var n=e.start,r=e.end,o=e.negative,i=e.negativeZero,a=e.format,l=e.decimalIndex,s=e.lastZeroIndex,u=e.hasNegativeFormat,c=e.hasGroup,d=e.number,p=d.toString().split(D),f=a.length,h=p[0],m=p[1]||x,v=h.length,g=x;d=a.substring(0,n),!o&&!i||u||(d+="-");for(var y=n;y<f;y++){var b=a.charAt(y);if(-1===l){if(r-y<v){d+=h;break}}else if(-1!==s&&s<y&&(g=x),l-y<=v&&l-y>-1&&(d+=h,y=l),l===y){d+=(m?t.numbers.symbols.decimal:x)+m,y+=r-l+1;continue}b===$?(d+=b,g=b):b===X&&(d+=g)}return c&&(d=H(d,n+(o&&!u?1:0),Math.max(r,v+n),t.numbers.decimal,t)),r>=n&&(d+=a.substring(r+1)),d}(e,t),n=function(e,t){var n=e;if(t)for(var r=t.length,o=0;o<r;o++)n=n.replace(Z,t[o]);return n}(n=function(e,t,n){var r=e;if(t===E||t===k){r=x;for(var o=0,i=e.length;o<i;o++){var a=e.charAt(o);r+="$"===a||"%"===a?n:a}}return r}(n,e.style,e.symbol),e.literals)),n}(r,n))}var re=/^(n|c|p|e|a)(\d*)$/i;var oe=/\{(\d+)}/g;function ie(e){var t=arguments;return e.replace(oe,(function(e,n){return t[parseInt(n,10)+1]}))}var ae=[2,1,5,3,4],le={};le[(-2).toString()]=8,le[(-1).toString()]=6,le[2..toString()]=6,le[1..toString()]=3;var se={numeric:1,"2-digit":2,short:3,long:4,narrow:5},ue=/[hHmsSzZoOvVxX]/,ce=[{key:"era",specifier:"G"},{key:"year",specifier:"y"},{key:"month",specifier:"M"},{key:"day",specifier:"d"},{key:"weekday",specifier:"E"},{key:"hour",getSpecifier:function(e){return e.hour12?"h":"H"}},{key:"minute",specifier:"m"},{key:"second",specifier:"s"},{key:"timeZoneName",specifier:"z"}],de={e:"c",E:"c",M:"L",Q:"q"},pe={},fe={};function he(e){return pe[e]||(pe[e]=new RegExp(e+"+")),pe[e]}function me(e){for(var t=[],n=e.charAt(0),r=n,o=1;o<e.length;o++){var i=e.charAt(o);i===r?n+=i:(t.push(n),n=r=i)}return t.push(n),t}function ve(e,t){var n,r,o=e.length,i=-Number.MAX_VALUE;for(var a in t){for(var l=[],s=a.replace("v","z"),u=0,c=0;c<o;c++){var d=e[c],p=(he(d[0]).exec(s)||[])[0];if(p){if(s=s.replace(p,x),p.length!==d.length){var f=Math.max(Math.min(ae[p.length]-ae[d.length],2),-2);u-=le[f]}}else u-=120;if(l.push(p),u<i)break}s.length&&(u-=20*me(s).length),u>i&&(i=u,n=l,r=t[a])}r=r.replace("v","z");for(var h=0;h<o;h++){var m=n[h];if(m&&m!==e[h]){var v=n[h][0];r=r.replace(he(v),e[h]),de[v]&&(r=r.replace(he(de[v]),e[h]))}}return r}function ge(e,t){var n,r=t.calendar;if(c(e))n=r.patterns[e]?r.patterns[e]:e;else if(e){if(e.pattern)return e.pattern;var o=e.skeleton;o||(e.datetime?n=ie(r.dateTimeFormats[e.datetime],r.timeFormats[e.datetime],r.dateFormats[e.datetime]):e.date?n=r.dateFormats[e.date]:e.time?n=r.timeFormats[e.time]:o=function(e){for(var t=[],n=0;n<ce.length;n++){var r=ce[n],o=e[r.key];if(o){var i=r.specifier||r.getSpecifier(e);t.push(i.repeat(se[o]))}}return t.join(x)}(e)),o&&(n=function(e,t){var n=t.calendar.dateTimeFormats.availableFormats;if(n[e])return n[e];if(fe[t.name]&&fe[t.name][e])return fe[t.name][e];var r,o=e.search(ue);if(o>0){var i=e.substr(0,o),a=e.substr(o);r=ie(t.calendar.dateTimeFormats.short,n[a]||ve(me(a),n),n[i]||ve(me(i),n))}else r=ve(me(e),n);return function(e,t,n){fe[n]||(fe[n]={}),fe[n][e]=t}(e,r,t.name),r}(o,t))}return n||(n=r.patterns.d),n}function ye(e){var t;return e<=3?t="abbreviated":4===e?t="wide":5===e?t="narrow":6===e&&(t="short"),t}function be(e,t,n,r,o){return function(e,t){var n=t.type,r=t.nameType,o=t.standAlone,i=t.lower,a=g(e),l=o?"stand-alone":"format",s=(i?"lower-":x)+r,u=a.calendar[n][l],c=u[s];return!c&&i&&(c=u[s]=function(e){var t=Array.isArray(e)?function(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].toLowerCase());return t}(e):function(e){var t={};for(var n in e)t[n]=e[n].toLowerCase();return t}(e);return t}(u[r])),c}(e,{type:t,nameType:ye(n),standAlone:r,lower:o})}function Ce(e){return"function"==typeof e}function Ee(e){return Boolean(e)&&Ce(e.getTime)&&Ce(e.getMonth)}var we=/d{1,2}|E{1,6}|e{1,6}|c{3,6}|c{1}|M{1,5}|L{1,5}|y{1,4}|H{1,2}|h{1,2}|k{1,2}|K{1,2}|m{1,2}|a{1,5}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|x{1,5}|X{1,5}|G{1,5}|q{1,5}|Q{1,5}|"[^"]*"|'[^']*'/g;function ke(e,t,n,r){return t<=2?W(e+1,t):be(n,"months",t,r)[e]}function Se(e,t,n,r){var o=Math.floor(e.getMonth()/3);return t<3?o+1:be(n,"quarters",t,r)[o]}function Oe(e,t,n){var r=n.shortHours,o=n.optionalMinutes,i=n.separator,a=n.localizedName,l=n.zZeroOffset,s=e.getTimezoneOffset()/60;if(0===s&&l)return"Z";var u=s<=0?"+":"-",c=Math.abs(s).toString().split("."),d=c[1]||0,p=u+(r?c[0]:W(c[0],2));return!d&&o||(p+=(i?":":x)+W(d,2)),a&&(p=ie(0===s?t.calendar.gmtZeroFormat:t.calendar.gmtFormat,p)),p}function De(e,t,n,r){return t<3?(o=e.getDay(),i=function(e){var t=g(e);if(!isNaN(t.firstDay))return t.firstDay;var n=v.supplemental.weekData;if(!n)throw L.error();var r=n.firstDay[b(t)]||n.firstDay["001"];if(!r)throw V.error();return t.firstDay=j.indexOf(r),t.firstDay}(n),(o<i?7-i+o:o-i)+1):be(n,"days",t,r)[e.getDay()];var o,i}var xe={};function Ie(e,t,n){if(void 0===n&&(n=I),!Ee(e))return null==e?x:e;var r=y(n);return ge(t,r).replace(we,(function(t){var n=t.length;return t.includes("'")||t.includes('"')?t.slice(1,n-1):xe[t[0]](e,n,r)}))}function Te(e,t,n){var r=e.getTimezoneOffset(),o=new Date(e.getTime()+6e4*(t-n)),i=o.getTimezoneOffset();return new Date(o.getTime()+6e4*(i-r))}xe.d=function(e,t){return W(e.getDate(),t)},xe.E=function(e,t,n){return be(n,"days",t)[e.getDay()]},xe.M=function(e,t,n){return ke(e.getMonth(),t,n,!1)},xe.L=function(e,t,n){return ke(e.getMonth(),t,n,!0)},xe.y=function(e,t){var n=e.getFullYear();return 2===t&&(n%=100),W(n,t)},xe.h=function(e,t){return W(e.getHours()%12||12,t)},xe.H=function(e,t){return W(e.getHours(),t)},xe.k=function(e,t){return W(e.getHours()||24,t)},xe.K=function(e,t){return W(e.getHours()%12,t)},xe.m=function(e,t){return W(e.getMinutes(),t)},xe.s=function(e,t){return W(e.getSeconds(),t)},xe.S=function(e,t){var n=e.getMilliseconds();return 0!==n?W(String(n/1e3).split(".")[1].substr(0,t),t,!0):W(x,t)},xe.a=function(e,t,n){return be(n,"dayPeriods",t)[e.getHours()<12?"am":"pm"]},xe.z=function(e,t,n){return Oe(e,n,{shortHours:t<4,optionalMinutes:t<4,separator:!0,localizedName:!0})},xe.Z=function(e,t,n){return Oe(e,n,{separator:t>3,localizedName:4===t,zZeroOffset:5===t})},xe.x=function(e,t,n){return Oe(e,n,{optionalMinutes:1===t,separator:3===t||5===t})},xe.X=function(e,t,n){return Oe(e,n,{optionalMinutes:1===t,separator:3===t||5===t,zZeroOffset:!0})},xe.G=function(e,t,n){var r=e.getFullYear()>=0?1:0;return be(n,"eras",t)[r]},xe.e=De,xe.c=function(e,t,n){return De(e,t,n,!0)},xe.q=function(e,t,n){return Se(e,t,n,!0)},xe.Q=Se;var _e=/([+|\-]\d{1,2})(:?)(\d{2})?/,Re=/^\/Date\((.*?)\)\/$/,Me=/[+-]\d*/,Pe={2:/^\d{1,2}/,3:/^\d{1,3}/,4:/^\d{4}/},Ne=/\d+/,Fe=/^ */,Ae=/ *$/,je=["yyyy/MM/dd HH:mm:ss","yyyy/MM/dd HH:mm","yyyy/MM/dd","E MMM dd yyyy HH:mm:ss","yyyy-MM-ddTHH:mm:ss.SSSSSSSXXX","yyyy-MM-ddTHH:mm:ss.SSSXXX","yyyy-MM-ddTHH:mm:ss.SSXXX","yyyy-MM-ddTHH:mm:ssXXX","yyyy-MM-ddTHH:mm:ss.SSSSSSS","yyyy-MM-ddTHH:mm:ss.SSS","yyyy-MM-ddTHH:mmXXX","yyyy-MM-ddTHH:mmX","yyyy-MM-ddTHH:mm:ss","yyyy-MM-ddTHH:mm","yyyy-MM-dd HH:mm:ss","yyyy-MM-dd HH:mm","yyyy-MM-dd","HH:mm:ss","HH:mm"],Le=["G","g","F","Y","y","M","m","D","d","y","T","t"];function Ve(e,t,n){return!(e>=t&&e<=n)}function ze(e,t){for(var n=t.format,r=t.idx,o=0;n[r]===e;)o++,r++;return o>0&&(r-=1),t.idx=r,o}function Be(e,t){var n=e?Pe[e]||new RegExp("^\\d{1,"+e+"}"):Ne,r=t.value.substr(t.valueIdx,e).match(n);return r?(r=r[0],t.valueIdx+=r.length,parseInt(r,10)):null}function He(e,t,n){for(var r,o,i,a=0,l=e.length,s=0,u=0;a<l;a++)o=(r=e[a]).length,i=t.value.substr(t.valueIdx,o),n&&(i=i.toLowerCase()),i===r&&o>s&&(s=o,u=a);return s?(t.valueIdx+=s,u+1):null}function Ue(e){var t=!1;return e.value.charAt(e.valueIdx)===e.format[e.idx]&&(e.valueIdx++,t=!0),t}function We(e,t,n){var r=n.shortHours,o=n.noSeparator,i=n.optionalMinutes,a=n.localizedName,l=n.zLiteral;if(e.UTC=!0,l&&"Z"===e.value.charAt(e.valueIdx))return e.valueIdx++,!1;if(a&&!He(function(e){var t=e.gmtFormat,n=e.gmtZeroFormat;if(!t)throw m.NoGMTInfo.error();return[t.replace("{0}",x).toLowerCase(),n.replace("{0}",x).toLowerCase()]}(t.calendar),e,!0))return!0;var s=_e.exec(e.value.substr(e.valueIdx,6));if(!s)return!a;var u=s[1],c=s[3],d=parseInt(u,10),p=s[2],f=parseInt(c,10);return!!(isNaN(d)||!r&&3!==u.length||!i&&isNaN(f)||o&&p)||(isNaN(f)&&(f=null),!!(Ve(d,-12,13)||f&&Ve(f,0,59))||(e.valueIdx+=s[0].length,e.hoursOffset=d,void(e.minutesOffset=f)))}function Ke(e,t,n){var r=ze(e,t),o=be(n,"months",r,"L"===e,!0),i=r<3?Be(2,t):He(o,t,!0);if(null===i||Ve(i,1,12))return!0;t.month=i-1}function qe(e,t,n){var r=ze(e,t),o=be(n,"days",r,"c"===e,!0),i=r<3?Be(1,t):He(o,t,!0);if(!i&&0!==i||Ve(i,1,7))return!0}var Ye={};function Ge(e,t){return""+Fe.exec(t)[0]+e+Ae.exec(t)[0]}function Ze(e,t,n){for(var r=ge(t,n).split(x),o={format:r,idx:0,value:Ge(e,t),valueIdx:0,year:null,month:null,day:null,hours:null,minutes:null,seconds:null,milliseconds:null},i=r.length,a=!1;o.idx<i;o.idx++){var l=r[o.idx];if(a)"'"===l&&(a=!1),Ue(o);else if(Ye[l]){if(Ye[l](o,n))return null}else if("'"===l)a=!0,Ue(o);else if(!Ue(o))return null}return o.valueIdx<e.length?null:function(e){var t,n=e.year,r=e.month,o=e.day,i=e.hours,a=e.minutes,l=e.seconds,s=e.milliseconds,u=e.pmHour,c=e.UTC,d=e.hoursOffset,p=e.minutesOffset,f=null!==i||null!==a||l||null,h=new Date;return null===n&&null===r&&null===o&&f?(n=h.getFullYear(),r=h.getMonth(),o=h.getDate()):(null===n&&(n=h.getFullYear()),null===o&&(o=1)),u&&i<12&&(i+=12),c?(d&&(i+=-d),p&&(a+=-p*(d<0?-1:1)),t=new Date(Date.UTC(n,r,o,i,a,l,s))):function(e,t){t||23!==e.getHours()||e.setHours(e.getHours()+2)}(t=new Date(n,r,o,i,a,l,s),i),n<100&&t.setFullYear(n),t.getDate()!==o&&void 0===c?null:t}(o)||null}function Xe(e,t,n){if(void 0===n&&(n=I),!e)return null;if(Ee(e))return e;var r=String(e).trim(),o=function(e){if(e&&0===e.indexOf("/D")){var t=Re.exec(e);if(t){t=t[1];var n=Me.exec(t.substring(1));return t=new Date(parseInt(t,10)),n&&(o="-"===(r=n[0]).substr(0,1)?-1:1,i=r.substring(1),n=o*(60*parseInt(i.substr(0,2),10)+parseInt(i.substring(2),10)),t=Te(t,t.getTimezoneOffset(),0),t=Te(t,0,-1*n)),t}}var r,o,i}(r);if(o)return o;for(var i=y(n),a=t||function(e){for(var t=[],n=e.patterns,r=Le.length,o=0;o<r;o++)t.push(n[Le[o]]);return t.concat(je)}(i.calendar),l=(a=Array.isArray(a)?a:[a]).length,s=0;s<l;s++)if(o=Ze(r,a[s],i))return o;return o}function $e(e,t,n){if(t){if(Ee(e))return Ie(e,t,n);if(function(e){return"number"==typeof e}(e))return function(e,t,n){if(void 0===t&&(t=O),void 0===n&&(n=I),null==e)return x;if(!isFinite(e))return String(e);var r,o=y(n),i=function(e){return c(e)?function(e){var t=re.exec(e);if(t){var n={style:C},r=t[1].toLowerCase();return"c"===r?n.style=E:"a"===r?n.style=w:"p"===r?n.style=k:"e"===r&&(n.style=S),t[2]&&(n.minimumFractionDigits=n.maximumFractionDigits=parseInt(t[2],10)),n}}(e):e}(t);if(i){var a=i.style||C;r=Y(e,Object.assign({},o.numbers[a],i),o)}else r=ne(e,t,o);return r}(e,t,n)}return null!=e?e:x}Ye.d=function(e){ze("d",e);var t=Be(2,e);if(null===t||Ve(t,1,31))return!0;null===e.day&&(e.day=t)},Ye.E=function(e,t){if(null===He(be(t,"days",ze("E",e),!1,!0),e,!0))return!0},Ye.M=function(e,t){return Ke("M",e,t)},Ye.L=function(e,t){return Ke("L",e,t)},Ye.y=function(e){var t=ze("y",e),n=Be(1===t?void 0:t,e);if(null===n)return!0;if(2===t){var r=(new Date).getFullYear();(n=r-r%100+n)>2029&&(n-=100)}e.year=n},Ye.h=function(e){ze("h",e);var t=Be(2,e);if(12===t&&(t=0),null===t||Ve(t,0,11))return!0;e.hours=t},Ye.K=function(e){ze("K",e);var t=Be(2,e);if(null===t||Ve(t,0,11))return!0;e.hours=t},Ye.a=function(e,t){var n=be(t,"dayPeriods",ze("a",e),!1,!0),r=He([n.pm],e,!0);if(!r&&!He([n.am],e,!0))return!0;e.pmHour=r},Ye.H=function(e){ze("H",e);var t=Be(2,e);if(null===t||Ve(t,0,23))return!0;e.hours=t},Ye.k=function(e){ze("k",e);var t=Be(2,e);if(null===t||Ve(t,1,24))return!0;e.hours=24===t?0:t},Ye.m=function(e){ze("m",e);var t=Be(2,e);if(null===t||Ve(t,0,59))return!0;e.minutes=t},Ye.s=function(e){ze("s",e);var t=Be(2,e);if(null===t||Ve(t,0,59))return!0;e.seconds=t},Ye.S=function(e){var t=ze("S",e),n=e.value.substr(e.valueIdx,t),r=null;if(isNaN(parseInt(n,10))||(r=K(r=parseFloat("0."+n,10),3),r*=1e3,e.valueIdx+=t),null===r||Ve(r,0,999))return!0;e.milliseconds=r},Ye.z=function(e,t){var n=ze("z",e)<4,r=We(e,t,{shortHours:n,optionalMinutes:n,localizedName:!0});if(r)return r},Ye.Z=function(e,t){var n=ze("Z",e),r=We(e,t,{noSeparator:n<4,zLiteral:5===n,localizedName:4===n});if(r)return r},Ye.x=function(e,t){var n=ze("x",e),r=We(e,t,{noSeparator:3!==n&&5!==n,optionalMinutes:1===n});if(r)return r},Ye.X=function(e,t){var n=ze("X",e),r=We(e,t,{noSeparator:3!==n&&5!==n,optionalMinutes:1===n,zLiteral:!0});if(r)return r},Ye.G=function(e,t){var n=be(t,"eras",ze("G",e),!1,!0);if(null===He([n[0],n[1]],e,!0))return!0},Ye.e=function(e,t){return qe("e",e,t)},Ye.c=function(e,t){return qe("c",e,t)};var Qe=function(e){if(!e||0===e.length)return"";var t=e[0].timezone,n="Etc/UTC"===t,r=n?"Z":"";return(t&&!n?";TZID="+t:"")+":"+e.map((function(e){return Ie(e,"yyyyMMddTHHmmss")+r})).join(",")+" "},Je=function(e,t){if(!t)return!1;var n=t.start,r=t.end;return e<n||e>r||0===e&&n<0},et=function(e,t){return e-t},tt=function(e,t){for(var n=[],r=0;r<e.length;r++){var o=parseInt(e[r],10);if(isNaN(o)||Je(o,t))return[];n.push(o)}return n.sort(et)},nt=["yyyyMMddTHHmmssSSSXXX","yyyyMMddTHHmmssXXX","yyyyMMddTHHmmss","yyyyMMddTHHmm","yyyyMMddTHH","yyyyMMdd"];function rt(e){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()))}var ot=function(e,t){var n=Xe(e)||Xe(e,nt);if(!n)return null;var r=t?rt(n):n;return o.ZonedDate.fromUTCDate(r,t||"Etc/UTC")},it={SU:o.Day.Sunday,MO:o.Day.Monday,TU:o.Day.Tuesday,WE:o.Day.Wednesday,TH:o.Day.Thursday,FR:o.Day.Friday,SA:o.Day.Saturday},at=function(e){return it[e]},lt=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n],o=at(r.substring(r.length-2).toUpperCase());if(void 0===o)return[];t.push({offset:parseInt(r.substring(0,r.length-2),10)||0,day:o})}return t},st=function(e,t,n){void 0===n&&(n=1),t=(t-e.getUTCDay()+7*n)%7,e.setUTCDate(e.getUTCDate()+t)},ut=function(e,t){return e+(e<t?7:0)},ct=function(e,t){return e-t},dt=function(e,t){var n=7-(rt((0,o.firstDayOfMonth)(e)).getUTCDay()+7-(t||7))||7;return n<0&&(n+=7),Math.ceil((e.getUTCDate()-n)/7)+1},pt=function(e,t){var n=(e=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()))).getUTCFullYear();void 0!==t?(st(e,t,-1),e.setUTCDate(e.getUTCDate()+4)):e.setUTCDate(e.getUTCDate()+(4-(e.getUTCDay()||7)));var r=Math.floor((e.getTime()-Date.UTC(n,0,1,-6))/864e5);return 1+Math.floor(r/7)},ft=function(e,t,n){var r=t.offset;if(!r)return dt(e,n);var o=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth()+1,0)),i=dt(o,n),a=ut(t.day,n),l=a<ut(new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),1)).getUTCDay(),n),s=a>ut(o.getUTCDay(),n);return r<0?r=i+(r+1-(s?1:0)):l&&(r+=1),i-=s?1:0,r<(l?1:0)||r>i?null:r},ht=function(e,t,n){return dt(e,n)===ft(e,t,n)},mt=function(e,t){return dt(new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth()+1,0)),t)},vt=[0,31,60,91,121,152,182,213,244,274,305,335,366],gt=[0,31,59,90,120,151,181,212,243,273,304,334,365],yt=function(e){return(e=e.getUTCFullYear())%4==0&&e%100!=0||e%400==0},bt=function(e){var t=e.getUTCMonth();return(yt(e)?vt[t]:gt[t])+e.getUTCDate()},Ct=[31,28,31,30,31,30,31,31,30,31,30,31],Et=function(e){var t=e.getUTCMonth();return 1===t?1===new Date(Date.UTC(e.getUTCFullYear(),1,29)).getUTCMonth()?29:28:Ct[t]},wt=function(e,t,n){for(var r=e.length,o=[],i=0;i<r;i++){var a=e[i];if(n&&(a=n(a)),t===a)return null;t<a&&o.push(a)}return o},kt=function(e,t,n){var r=n.byMonth,o=wt(r,e.getUTCMonth()+1),i=!1;return null!==o&&(o.length?e.setUTCMonth(o[0]-1,1):e.setUTCFullYear(e.getUTCFullYear()+1,r[0]-1,1),i=!0),i},St=function(e,t,n){var r,o=!1;function i(e){return e<0&&(e=r+e+1),e}for(;e<=t;){var a=e.getUTCMonth();r=Et(e);var l=wt(n.byMonthDay,e.getUTCDate(),i);if(null===l)return o;if(o=!0,l.length){if(e.setUTCMonth(a,l.sort(ct)[0]),a===e.getUTCMonth())break}else e.setUTCMonth(a+1,1)}return o},Ot=function(e,t,n){var r,o=!1;function i(e){return e<0&&(e=r+e),e}for(;e<t;){r=yt(e)?366:365;var a=wt(n.byYearDay,bt(e),i);if(null===a)return o;if(o=!0,r=e.getUTCFullYear(),a.length){e.setUTCFullYear(r,0,a.sort(ct)[0]);break}e.setUTCFullYear(r+1,0,1)}return o},Dt=function(e,t,n){var r=n.weekStart||o.Day.Monday,i=!1;function a(e){return e<0&&(e=53+e),e}for(;e<t;){var l=wt(n.byWeekNumber,pt(e,r),a);if(null===l)return i;i=!0;var s=e.getUTCFullYear();if(l.length){var u=7*l.sort(ct)[0]-1;e.setUTCFullYear(s,0,u),st(e,r,-1);break}e.setUTCFullYear(s+1,0,1)}return i},xt=function(e,t,n){var r=n.byWeekDay,i=n.weekStart||o.Day.Monday,a=function(e,t,n){for(var r,o,i,a,l=ut(t.getUTCDay(),n),s=e.length,u=[],c=0;c<s;c++)if(o=e[c],a=dt(t,n),null!==(r=ft(t,o,n)))if(a<r)u.push(o);else if(a===r)if(l<(i=ut(o.day,n)))u.push(o);else if(l===i)return null;return u}(r,e,i);if(null===a)return!1;a[0]||(a=r,st(e,i));var l=a.map((function(n){var r=(0,o.cloneDate)(e),a=n.day;if(n.offset)for(;r<=t&&!ht(r,n,i);)dt(r,i)===mt(r,i)?r.setUTCMonth(r.getUTCMonth()+1,1):(r.setUTCDate(r.getUTCDate()+7),st(r,i,-1));return r.getUTCDay()!==a&&st(r,a),r})).sort((function(e,t){return e.getTime()-t.getTime()}))[0];return l&&e.setTime(l),!0},It=function(e,t,n){var r=n.byHour,o=!1,i=n._startTime,a=i.getUTCHours(),l=wt(r,a);return null!==l&&(o=!0,e.setUTCHours(a),l.length?(l=l[0],e.setUTCHours(l)):(l=e.getUTCHours(),e.setUTCDate(e.getUTCDate()+1),l=r[0],e.setUTCHours(l)),n.byMinute&&e.setUTCMinutes(0),i.setUTCHours(l,e.getUTCMinutes())),o},Tt=function(e,t,n){var r=n.byMinute,o=e.getUTCMinutes(),i=wt(r,o),a=n._startTime.getUTCHours(),l=!1;return null!==i&&(l=!0,i.length?i=i[0]:(a+=1,i=r[0]),n.bySecond&&e.setUTCSeconds(0),e.setUTCHours(a,i),a%=24,n._startTime.setUTCHours(a,i,e.getUTCSeconds())),l},_t=function(e,t,n){var r=n.bySecond,o=wt(r,e.getUTCSeconds()),i=n._startTime.getUTCHours(),a=e.getUTCMinutes(),l=!1;return null!==o&&(l=!0,o.length?e.setUTCSeconds(o[0]):(a+=1,e.setUTCMinutes(a,r[0]),a>59&&(a%=60,i=(i+1)%24)),n._startTime.setUTCHours(i,a,e.getUTCSeconds())),l},Rt=["byMonth","byWeekNumber","byYearDay","byMonthDay","byWeekDay","byHour","byMinute","bySecond"],Mt=Rt.length,Pt=function(e,t){var n;return 0!==e&&e<t?n=t-e:(n=e%t)&&(n=t-n),n},Nt=function(){function e(){}return e.prototype.next=function(e,t){var n,r,o=t._startTime;if(t.bySecond)r=e.getUTCSeconds()+1,e.setUTCSeconds(r),o.setUTCSeconds(r);else{if(!t.byMinute)return!1;n=e.getUTCMinutes()+1,e.setUTCMinutes(n),o.setUTCMinutes(n)}return!0},e.prototype.normalize=function(e){var t=e.rule;4===e.idx&&t.byHour&&(t._startTime.setUTCHours(0),this._hour(e.date,t))},e.prototype.limit=function(e,t,n){for(var o,i=n.interval||1;e<=t;){var a=void 0,l=void 0,s=e.getUTCDate();for(o=0;o<Mt;o++){var u=Rt[o];if(n[u]){if(a=r[u](e,t,n),void 0!==l&&a)break;l=a}a&&this.normalize({date:e,rule:n,day:s,idx:o})}if((1===i||!this.interval(n,e))&&o===Mt)break}},e.prototype.interval=function(e,t){var n,r,i=e._startPeriod.toUTCDate(),a=t.getUTCHours(),s=e.weekStart,u=e.interval,c=e.freq,d=new Date(t),p=!1,f=0,h=0,m=1;return"hourly"===c?(r=e._startTime.getUTCHours(),d=d.getTime(),a!==r&&(d+=(r-a)*o.MS_PER_HOUR),d-=i.getTime(),n=Math.floor(d/o.MS_PER_HOUR),0!==(f=Pt(n,u))&&(this._hour(t,e,f),p=!0)):"daily"===c?(!function(e,t){e.setTime(e.getTime()+t)}(d,-i),n=Math.round(d/o.MS_PER_DAY),0!==(f=Pt(n,u))&&(this._date(t,e,f),p=!0)):"weekly"===c?(f=this.getNumberOfWeeksBetweenDates(i,t),ut(t.getUTCDay(),s)<ut(i.getUTCDay(),s)&&(f+=1),0!==(f=Pt(f,u))&&(st(t,e.weekStart,-1),t.setUTCDate(t.getUTCDate()+7*f),p=!0)):"monthly"===c?(n=t.getUTCFullYear()-i.getUTCFullYear(),n=t.getUTCMonth()-i.getUTCMonth()+12*n,0!==(f=Pt(n,u))&&(m=l(e)?1:t.getDate(),t.setUTCFullYear(t.getUTCFullYear(),t.getUTCMonth()+f,m),p=!0)):"yearly"===c&&(n=t.getUTCFullYear()-i.getUTCFullYear(),f=Pt(n,u),e.byMonth||(h=t.getUTCMonth()),e.byYearDay||e.byMonthDay||e.byWeekDay||(m=t.getUTCDate()),0!==f&&(t.setUTCFullYear(t.getUTCFullYear()+f,h,m),p=!0)),p},e.prototype._hour=function(e,t,n){var r=t._startTime,o=r.getUTCHours();n&&(o+=n),e.setUTCHours(o),o%=24,r.setUTCHours(o)},e.prototype._date=function(e,t,n){e.setUTCDate(e.getUTCDate()+n)},e.prototype.getNumberOfWeeksBetweenDates=function(e,t){var n=(t.getTime()-e.getTime())/6048e5,r=Math.floor(n);return n-r>.99&&(r=Math.round(n)),r},e}(),Ft=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.ZT(t,e),t.prototype.next=function(e,t){return Nt.prototype.next.call(this,e,t)||this._hour(e,t,1),!1},t.prototype.normalize=function(e){var t=e.rule;4===e.idx&&(t._startTime.setUTCHours(0),this._hour(e.date,t))},t}(Nt),At=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.ZT(t,e),t.prototype.next=function(e,t){return Nt.prototype.next.call(this,e,t)||this[t.byHour?"_hour":"_date"](e,t,1),!1},t}(Nt),jt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.ZT(t,e),t.prototype.setup=function(e,t){e.byWeekDay||(e.byWeekDay=[{day:t.getUTCDay(),offset:0}])},t}(At),Lt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.ZT(t,e),t.prototype.next=function(e,t){var n;if(!Nt.prototype.next.call(this,e,t))if(t.byHour)this._hour(e,t,1);else if(t.byMonthDay||t.byWeekDay||t.byYearDay||t.byWeekNumber)this._date(e,t,1);else{for(n=e.getUTCDate(),e.setUTCMonth(e.getUTCMonth()+1);e.getUTCDate()!==n;)e.setUTCDate(n);this._hour(e,t)}return!1},t.prototype.normalize=function(t){var n=t.rule,r=t.date;0!==t.idx||n.byMonthDay||n.byWeekDay?e.prototype.normalize.call(this,t):r.setUTCDate(t.day)},t.prototype.setup=function(e,t,n){e.byMonthDay||e.byWeekDay||n.setUTCDate(t.getUTCDate())},t}(Nt),Vt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.ZT(t,e),t.prototype.next=function(e,t){var n;if(!Nt.prototype.next.call(this,e,t))if(t.byHour)this._hour(e,t,1);else if(t.byMonthDay||t.byWeekDay||t.byYearDay||t.byWeekNumber)this._date(e,t,1);else if(t.byMonth){for(n=e.getUTCDate(),e.setUTCMonth(e.getUTCMonth()+1);e.getUTCDate()!==n;)e.setUTCDate(n);this._hour(e,t)}else e.setUTCFullYear(e.getUTCFullYear()+1),this._hour(e,t);return!1},t.prototype.setup=function(){},t}(Lt),zt={hourly:new Ft,daily:new At,weekly:new jt,monthly:new Lt,yearly:new Vt},Bt=function(e){return o.ZonedDate.fromLocalDate(e.toLocalDate(),e.timezone)},Ht=function(e){return e.getHours()*o.MS_PER_HOUR+e.getMinutes()*o.MS_PER_MINUTE+1e3*e.getSeconds()+e.getMilliseconds()},Ut=function(e,t){if(!e)return!1;for(var n=t.getTime()-t.getMilliseconds(),r=e.length,o=0;o<r;o++)if(e[o].getTime()===n)return!0;return!1},Wt=function(e,t){var n=e.toUTCDate();switch(t.freq){case"yearly":n.setUTCFullYear(n.getUTCFullYear(),11,31);break;case"monthly":n.setUTCFullYear(n.getUTCFullYear(),n.getUTCMonth()+1,0);break;case"weekly":st(n,t.weekStart,-1),n.setUTCDate(n.getUTCDate()+6)}return t.byHour&&n.setUTCHours(23),t.byMinute&&n.setUTCMinutes(59),t.bySecond&&n.setUTCSeconds(59),o.ZonedDate.fromUTCDate(n,e.timezone)},Kt=function(e,t,n){for(var r,o=e.length,i=[],a=0,l=n.length;a<l;a++){(r=n[a])<0?r=o+r:r-=1;var s=e[r];s&&s.start>=t&&i.push(s)}return i},qt=function(e,t){for(var n=[],r=0;r<e.length;r++){var o=e[r];o&&!Ut(t,o.start)&&n.push(o)}return n};function Yt(e,t){var n=t.rangeStart,r=t.rangeEnd;if(!e)return{success:!0,errorMessage:"",events:[]};var i,a=e.freq,l=zt[a],s=e.start,u=function(e,t){return t.getTime()-e.getTime()}(e.start,e.end);if(e.start.getTime()>e.end.getTime())return{success:!1,errorMessage:"Invalid recurrence rule: Start date ("+e.start+")is greater than End date "+e.start,events:[]};if(!l)return{success:!1,errorMessage:'Invalid recurrence frequency "'+a+'"',events:[]};var c=[],d=e.bySetPosition,p=d?0:1,f=e.exceptionDates,h=n.toTimezone(s.timezone),m=h,v=r.toTimezone(s.timezone),g=e.count;e.until&&e.until.getTime()<v.getTime()&&(v=e.until.clone());var y=h.getHours(),b=h.getMinutes(),C=h.getSeconds(),E="yearly"===a||"monthly"===a||"weekly"===a;if(h.getTime()<s.getTime()||g||e.interval>1||E)h=s.clone();else{e.byHour||(y=s.getHours()),e.byMinute||(b=s.getMinutes()),e.bySecond||(C=s.getSeconds());var w=h.toUTCDate();w.setUTCHours(y,b,C,s.getMilliseconds()),h=o.ZonedDate.fromUTCDate(w,h.timezone)}if(e._startPeriod=h.clone(),d){if(h=function(e,t){var n=e.toUTCDate();switch(t.freq){case"yearly":n.setUTCFullYear(n.getFullYear(),0,1);break;case"monthly":n.setUTCFullYear(n.getFullYear(),n.getMonth(),1);break;case"weekly":st(n,t.weekStart,-1)}return t.byHour&&n.setUTCHours(0),t.byMinute&&n.setUTCMinutes(0),t.bySecond&&n.setUTCSeconds(0),o.ZonedDate.fromUTCDate(n,e.timezone)}(h,e),v=Wt(v,e),Ht(v)-Ht(h)<0){var k=v.toUTCDate();k.setUTCHours(h.getHours(),h.getMinutes(),h.getSeconds(),h.getMilliseconds()),v=o.ZonedDate.fromUTCDate(k,v.timezone)}e._startPeriod=h.clone(),i=Wt(h,e)}var S=Ht(h);e._startTime=new Date(S);var O=h.toUTCDate();for(l.setup&&(l.setup(e,s,O),h=o.ZonedDate.fromUTCDate(O,h.timezone)),O=h.toUTCDate(),l.limit(O,v.toUTCDate(),e),h=o.ZonedDate.fromUTCDate(O,h.timezone);h<=v;){var D=h.addTime(u);if(((h>=m||D>m)&&!Ut(f,h)||d)&&(c.push({start:Bt(h),end:Bt(D)}),"hourly"!==a&&"minutely"!==a&&"secondly"!==a||(S=Ht(Bt(h)),e._startTime=new Date(S))),d){if(O=h.toUTCDate(),l.next(O,e),l.limit(O,v.toUTCDate(),e),(h=o.ZonedDate.fromUTCDate(O,h.timezone))>i){var x=Kt(c.slice(p),s,d);x=qt(x,f),c=c.slice(0,p).concat(x),i=Wt(h,e),p=c.length}if(g&&g===p)break}else{if(g&&g===p)break;p+=1,O=h.toUTCDate(),l.next(O,e),l.limit(O,v.toUTCDate(),e),h=o.ZonedDate.fromUTCDate(O,h.timezone)}}return{success:!0,errorMessage:"",events:c}}var Gt=function(e,t){return e+(e<t?7:0)},Zt=function(e){if(!e)return null;var t,n,r,o,i=e.recurrenceRule,a=e.weekStart,c=void 0===a?0:a,d={},p=0;if(!i)return null;var f=i.split("\n");for(f[1]||-1===i.indexOf("DTSTART")&&-1===i.indexOf("DTEND")&&-1===i.indexOf("EXDATE")||(f=i.split(" ")),p=0,r=f.length;p<r;p++){var h=(f[p]||"").trim();-1!==h.indexOf("DTSTART")?d.start=u(h):-1!==h.indexOf("DTEND")?d.end=u(h):-1!==h.indexOf("EXDATE")?d.exceptionDates=s(h):-1!==h.indexOf("RRULE")?o=h.substring(6):h.trim()&&(o=h)}for(p=0,r=(o=o.split(";")).length;p<r;p++)switch(n=((t=o[p].split("="))[1]||"").trim().split(","),t[0].trim().toUpperCase()){case"FREQ":d.freq=n[0].toLowerCase();break;case"UNTIL":d.until=ot(n[0]);break;case"COUNT":d.count=parseInt(n[0],10);break;case"INTERVAL":d.interval=parseInt(n[0],10);break;case"BYSECOND":d.bySecond=tt(n,{start:0,end:60});break;case"BYMINUTE":d.byMinute=tt(n,{start:0,end:59});break;case"BYHOUR":d.byHour=tt(n,{start:0,end:23});break;case"BYMONTHDAY":d.byMonthDay=tt(n,{start:-31,end:31});break;case"BYYEARDAY":d.byYearDay=tt(n,{start:-366,end:366});break;case"BYMONTH":d.byMonth=tt(n,{start:1,end:12});break;case"BYDAY":d.byWeekDay=lt(n);break;case"BYWEEKNO":d.byWeekNumber=tt(n,{start:-53,end:53});break;case"BYSETPOS":d.bySetPosition=tt(n,{start:-366,end:366});break;case"WKST":d.weekStart=at(n[0])}return void 0===d.freq||void 0!==d.count&&d.until?null:(void 0===d.weekStart&&(d.weekStart=c),d.interval||(d.interval=1),d.bySetPosition&&!l(d)&&(d.bySetPosition=[]),function(e){var t=e.byWeekDay,n=e.weekStart;t&&t.sort(function(e){return function(t,n){return Gt(t.day,e)-Gt(n.day,e)}}(n))}(d),d)},Xt={0:"SU",1:"MO",2:"TU",3:"WE",4:"TH",5:"FR",6:"SA"},$t=function(e,t){if(!e||!e.freq)return null;var n=e.weekStart,r="FREQ="+e.freq.toUpperCase(),o="",i="",a="",l=e.until;return e.interval>1&&(r+=";INTERVAL="+e.interval),e.count&&(r+=";COUNT="+e.count),l&&(r+=";UNTIL="+$e(l.toTimezone("Etc/UTC"),"yyyyMMddTHHmmss")+"Z"),e.byMonth&&(r+=";BYMONTH="+e.byMonth),e.byWeekNumber&&(r+=";BYWEEKNO="+e.byWeekNumber),e.byYearDay&&(r+=";BYYEARDAY="+e.byYearDay),e.byMonthDay&&(r+=";BYMONTHDAY="+e.byMonthDay),e.byWeekDay&&(r+=";BYDAY="+function(e){for(var t,n=e.length,r=[],o=0;o<n;o++){var i=e[o];"string"==typeof i?t=i:(t=""+Xt[i.day],i.offset&&(t=i.offset+t)),r.push(t)}return r.toString()}(e.byWeekDay)),e.byHour&&(r+=";BYHOUR="+e.byHour),e.byMinute&&(r+=";BYMINUTE="+e.byMinute),e.bySecond&&(r+=";BYSECOND="+e.bySecond),e.bySetPosition&&(r+=";BYSETPOS="+e.bySetPosition),void 0!==n&&(r+=";WKST="+Xt[n]),e.start&&(i="DTSTART"+Qe([e.start])),e.end&&(a="DTEND"+Qe([e.end])),e.exceptionDates&&(o="EXDATE"+Qe(e.exceptionDates)),(i||a||o)&&(r=i+a+o+"RRULE:"+r),r}},655:(e,t,n)=>{n.d(t,{ZT:()=>o,pi:()=>i,cy:()=>a});var 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])},r(e,t)};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=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},i.apply(this,arguments)};function a(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}},1779:(e,t,n)=>{n.d(t,{_:()=>i});var r=n(3899),o=n(9844),i=r.forwardRef((function(e,t){var n=r.useRef(null),i=r.useRef(null),a=r.useCallback((function(){return n.current&&n.current.element?n.current.element:n.current}),[n]);r.useImperativeHandle(i,(function(){return{element:a()||null}})),r.useImperativeHandle(t,(function(){return i.current})),r.useImperativeHandle(e.childRef,(function(){return n.current}));var l=r.useCallback((function(t){e.onPress&&e.onPress({element:a(),target:i.current,event:t})}),[a,e.onPress]),s=r.useCallback((function(t){e.onRelease&&e.onRelease({element:a(),target:i.current,event:t})}),[a,e.onRelease]),u=r.useCallback((function(t){e.onDragStart&&e.onDragStart({element:a(),target:i.current,event:t})}),[e,a]),c=r.useCallback((function(t){e.onDrag&&e.onDrag({element:a(),target:i.current,event:t})}),[a,e.onDrag]),d=r.useCallback((function(t){e.onDragEnd&&e.onDragEnd({element:a(),target:i.current,event:t})}),[a,e.onDragEnd]);return(0,o.O)(n,{onPress:l,onRelease:s,onDragStart:u,onDrag:c,onDragEnd:d},{mouseOnly:e.mouseOnly,autoScroll:e.autoScroll,hint:e.hint,scrollContainer:e.scrollContainer}),e.children?r.cloneElement(r.Children.only(e.children),{ref:n}):null}));i.displayName="KendoReactDraggable"},3503:(e,t,n)=>{n.d(t,{O:()=>o});var r=function(){return"undefined"!=typeof document?document:{}},o=function(){function e(){this.scrollbar=0}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="&nbsp;",e.body.appendChild(t),this.scrollbar=t.offsetWidth-t.scrollWidth,e.body.removeChild(t)}return this.scrollbar},enumerable:!1,configurable:!0}),e}()},7827:(e,t,n)=>{n.d(t,{N:()=>r});var r=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},8047:(e,t,n)=>{n.d(t,{A:()=>r});var r=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n={},r=function(e){return"object"==typeof e?Object.keys(e).forEach((function(t){n[t]=e[t]})):n[e]=!0},o=function(e){return e.filter((function(e){return!0!==e&&!!e})).map((function(e){return Array.isArray(e)?o(e):r(e)}))};return o(e),Object.keys(n).map((function(e){return n[e]&&e||null})).filter((function(e){return null!==e})).join(" ")}},4500:(e,t,n)=>{n.d(t,{ky:()=>o,d9:()=>i,kI:()=>a,Ve:()=>l,M2:()=>s});var r=n(3899),o=function(e){return e?new Date(e.getTime()):null};function i(e){var t={};return a(e,t),t}function a(e,t){for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];t[n]=l(r,t[n])}}function l(e,t){if(Array.isArray(e))return s(e);if(e instanceof Date)return o(e);if(r.isValidElement(e))return r.cloneElement(e,e.props);if(e&&"object"==typeof e){var n=t||{};return a(e,n),n}return e}function s(e){return e.map((function(e){return l(e,void 0)}))}},8259:(e,t,n)=>{n.d(t,{$:()=>o,u:()=>i});var r=n(3899),o=r.createContext(0),i=function(){return r.useContext(o)};o.displayName="KendoReactZIndexContext"},2333:(e,t,n)=>{n.d(t,{Dg:()=>i,Gc:()=>a,Fg:()=>l,tk:()=>s});var r=n(3899),o=n(3228),i=r.createContext([void 0,o.Z]),a=r.createContext([void 0,o.Z]),l=r.createContext([[],o.Z,o.Z]),s=r.createContext([[],o.Z,o.Z])},5407:(e,t,n)=>{function r(e,t,n,r){if(e){var o={syntheticEvent:t,nativeEvent:t.nativeEvent,target:n};e.call(void 0,Object.assign(o,r))}}n.d(t,{N:()=>r})},4100:(e,t,n)=>{n.d(t,{E:()=>o});var r=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;function o(e){var t=[];return e.replace(r,(function(e,n,r,o){t.push(void 0!==n?n:r||o)})),t}},9124:(e,t,n)=>{n.d(t,{n:()=>r});var r=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()}}},4703:(e,t,n)=>{n.d(t,{p:()=>r});var r=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}},9659:(e,t,n)=>{n.d(t,{Y:()=>i});var r=n(4100),o={};function i(e){if(o[e])return o[e];var t=(0,r.E)(e);return o[e]=function(e){for(var n=e,r=0;r<t.length&&n;r++)n=n[t[r]];return n},o[e]}o.undefined=function(){}},3198:(e,t,n)=>{n.d(t,{M:()=>r});var r=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}},493:(e,t,n)=>{n.d(t,{o:()=>a});var r=n(3899),o=n(6059),i=function(){return i=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},i.apply(this,arguments)},a=function(e){var t=e.children,n=e.onFocus,a=e.onBlur,l=e.onSyncFocus,s=e.onSyncBlur,u=(0,o.U)({onFocus:n,onBlur:a,onSyncFocus:l,onSyncBlur:s});return r.createElement(r.Fragment,null,t.call(void 0,i({},u)))}},848:(e,t,n)=>{n.d(t,{Y:()=>a,u:()=>l});var r=n(3899),o=n(9656),i=function(){return i=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},i.apply(this,arguments)},a=function(){return r.createContext((function(e){return e}))},l=function(e,t){return r.forwardRef((function(n,a){var l=(0,o.Y)(e,n);return r.createElement(t,i({},l,{ref:a}))}))}},6059:(e,t,n)=>{n.d(t,{U:()=>i});var r=n(3899),o=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};function i(e){var t=e.onFocus,n=e.onBlur,i=e.onSyncFocus,a=e.onSyncBlur,l=r.useRef(!1),s=r.useRef(0),u=r.useCallback((function(e){clearTimeout(s.current),s.current=window.setTimeout((function(){return e()}))}),[s]),c=r.useCallback((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];clearTimeout(s.current),i&&i.call(void 0,e[0]),l.current||(l.current=!0,t&&t.call.apply(t,o([void 0],e,!1)))}),[l,t,i]),d=r.useCallback((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];a&&a.call(void 0,e[0]),u((function(){l.current&&n&&(l.current=!1,n.call.apply(n,o([void 0],e,!1)))}))}),[l,u,n,a]);return r.useEffect((function(){return function(){clearTimeout(s.current)}}),[]),{onFocus:c,onBlur:d}}},8199:(e,t,n)=>{n.d(t,{n:()=>o});var r=n(3899);function o(e,t,n){var o=r.useState(t),i=o[0],a=o[1];return r.useEffect((function(){if(!i&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&a(t)}}),n),i}},9844:(e,t,n)=>{n.d(t,{O:()=>v});var r,o=n(3899),i=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},a=function(e){return e&&e.ownerDocument||window.document},l=function(e){var t=i(),n=a(e);return t.edge||t.safari?n.body:n.documentElement},s=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},u=function(e){var t=l(e);if(!e||e===document.body||e===document.documentElement)return t;for(var n=e;n&&n!==document.body&&n.nodeType!==Node.DOCUMENT_FRAGMENT_NODE&&n.nodeType!==Node.DOCUMENT_NODE&&!s(n);)n=n.parentNode;return!n||n!==document.body&&n.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?n:t};!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"}(r||(r={}));var c=function(){},d=function(e,t,n){void 0===n&&(n={});var o,i,s,d,p,f=n.onIsPressedChange,h=void 0===f?c:f,m=n.onIsScrollingChange,v=void 0===m?c:m,g=n.onVelocityChange,y=void 0===g?c:g,b=n.onOffsetChange,C=void 0===b?c:b,E=n.onPageOffsetChange,w=void 0===E?c:E,k=n.onClientOffsetChange,S=void 0===k?c:k,O=n.onScrollOffsetChange,D=void 0===O?c:O,x=n.onInitialScrollOffsetChange,I=void 0===x?c:x,T=t.payload,_=T.element,R=T.hint,M=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 r.POINTER_DOWN:if(N.type===r.POINTER_DOWN&&(!N.originalEvent.isPrimary||0!==N.originalEvent.button))break;case r.MOUSE_DOWN:if(N.type===r.MOUSE_DOWN&&N.originalEvent.which&&N.originalEvent.which>1||e.ignoreMouse)break;case r.TOUCH_START:if(N.type===r.TOUCH_START&&1!==N.originalEvent.touches.length)break;case r.START:var F=P||u(t.payload.element);I(F instanceof Window?{x:F.scrollX,y:F.scrollY}:{x:F.scrollLeft,y:F.scrollTop}),S({x:N.clientX,y:N.clientY}),w({x:N.pageX,y:N.pageY}),C({x:N.offsetX,y:N.offsetY}),h(!0),T.onPress&&T.onPress(N);break;case r.SCROLL:if(N.type===r.SCROLL&&!e.pressed)break;var A=P||u(_),j=A instanceof Window?{x:A.scrollX,y:A.scrollY}:{x:A.scrollLeft,y:A.scrollTop};N.scrollX=j.x-e.initialScrollOffset.x,N.scrollY=j.y-e.initialScrollOffset.y,D({x:N.scrollX,y:N.scrollY});case r.POINTER_MOVE:if(N.type===r.POINTER_MOVE&&!N.originalEvent.isPrimary)break;case r.MOUSE_MOVE:case r.TOUCH_MOVE:if(N.type===r.TOUCH_MOVE&&1!==N.originalEvent.touches.length)break;case r.MOVE:if(e.pressed){if(e.autoScroll&&"scroll"!==N.originalEvent.type&&_){var L=a(_),V=P||u(L.elementFromPoint(N.clientX,N.clientY)),z=(o=N.clientX,i=N.clientY,s=function(e,t){var n=l(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}}(V,function(e){var t=a(e);return t&&t.defaultView||window}(_)),d={x:0,y:0},p=50,o-s.left<p?d.x=-(p-(o-s.left)):s.right-o<p&&(d.x=p-(s.right-o)),i-s.top<p?d.y=-(p-(i-s.top)):s.bottom-i<p&&(d.y=p-(s.bottom-i)),d);y({x:M&&!1===M.horizontal?0:z.x,y:M&&!1===M.vertical?0:z.y}),v(0!==z.y||0!==z.x)}!e.drag&&T.onDragStart&&T.onDragStart(N),T.onDrag&&T.onDrag(N);var B=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),i=Math.max(r.left,n.left),a=Math.min(r.left+r.width,n.left+n.width),l=Math.min(r.top+r.height,n.top+n.height),s=a-i,u=l-o;if(i<a&&o<l){var c=r.width*r.height,d=n.width*n.height,p=s*u;return Number((p/(c+d-p)).toFixed(4))}return 0}(e,t);o>n&&(n=o,r=t)}})),r}(R||_,e.drops.map((function(e){return e&&e.element})).filter((function(e){return e!==(R||_)}))),H=e.drops.find((function(e){return e.element===B}));H&&B&&function(e,t,n){var r=n.getBoundingClientRect();return r.top<=t&&r.left<=e&&t<=r.bottom&&e<=r.right}(N.clientX,N.clientY,P||u(B))&&B!==_?(e.drop&&e.drop.element)!==B?(e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(N),H.onDragEnter&&H.onDragEnter(N)):H.onDragOver&&H.onDragOver(N):e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(N)}S({x:N.clientX,y:N.clientY}),w({x:N.pageX,y:N.pageY});break;case r.POINTER_UP:if(N.type===r.POINTER_UP&&!N.originalEvent.isPrimary)break;case r.MOUSE_UP:case r.TOUCH_END:if(N.type===r.TOUCH_END&&1!==N.originalEvent.touches.length)break;case r.END:h(!1),v(!1),T.onRelease&&T.onRelease(N),e.drop&&e.drop.onDrop&&e.drop.onDrop(N),T.onDragEnd&&T.onDragEnd(N);break;case r.POINTER_CANCEL:case r.CONTEXT_MENU:case r.TOUCH_CANCEL:case r.CANCEL:h(!1),v(!1),T.onDragEnd&&T.onDragEnd(N),e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(N)}},p=function(e,t){if(e){var n,r;e===l(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,i=n&&o>0&&o<e.scrollHeight,a=e.scrollLeft+t.x,s=r&&a>0&&a<e.scrollWidth;i?e.scrollTop+=t.y:n&&o<0&&(e.scrollTop=0),s?e.scrollLeft+=t.x:r&&a<0&&(e.scrollLeft=0)}},f=n(3228),h=n(4912),m=n(2333);function v(e,t,n){void 0===n&&(n={});var r=t.onPress,i=void 0===r?f.Z:r,a=t.onRelease,l=void 0===a?f.Z:a,s=t.onDragStart,c=void 0===s?f.Z:s,v=t.onDrag,g=void 0===v?f.Z:v,y=t.onDragEnd,b=void 0===y?f.Z:y,C=n.hint,E=void 0===C?null:C,w=n.mouseOnly,k=void 0!==w&&w,S=n.autoScroll,O=void 0===S||S,D=n.scrollContainer,x=void 0===D?null:D,I=o.useState(!1),T=I[0],_=I[1],R=o.useState(!1),M=R[0],P=R[1],N=(0,h.W)(m.Gc)[0],F=(0,h.W)(m.Dg),A=F[0],j=F[1],L=o.useContext(m.tk)[0],V=o.useContext(m.Fg),z=V[0],B=V[1],H=V[2],U=o.useRef({x:0,y:0}),W=o.useRef(),K=o.useRef(!1),q=o.useRef(),Y=o.useRef(null),G=o.useRef(!1),Z=o.useRef({x:0,y:0}),X=o.useRef({x:0,y:0}),$=o.useRef({x:0,y:0}),Q=o.useRef({x:0,y:0}),J=o.useRef({x:0,y:0}),ee=o.useRef({x:0,y:0}),te=Boolean("undefined"!=typeof window&&window.PointerEvent),ne=!k&&te,re=o.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]),oe=o.useCallback((function(){return E&&E.current&&E.current.element?E.current.element:E?E.current:null}),[E]),ie=o.useCallback((function(){return x&&x.current&&x.current.element?x.current.element:x?x.current:null}),[x]),ae=o.useCallback((function(){return"object"==typeof O&&O.boundaryElementRef&&O.boundaryElementRef.current&&O.boundaryElementRef.current.element?O.boundaryElementRef.current.element:"object"==typeof O&&O.boundaryElementRef&&O.boundaryElementRef.current?O.boundaryElementRef.current:null}),[O]),le=o.useRef(null);o.useImperativeHandle(le,(function(){return{element:re(),hint:oe(),onPress:Ce,onDragStart:we,onDrag:ke,onDragEnd:Se,onRelease:Ee,data:e.current}}));var se=o.useCallback((function(){var e=re();return e&&e.ownerDocument||document}),[re]),ue=o.useCallback((function(){var e=se();return e&&e.defaultView||window}),[se]),ce=o.useCallback((function(){return{drag:A?A.current:null,drop:N?N.current:null,drags:z.map((function(e){return e.current})),drops:L.map((function(e){return e.current})),pressed:T,ignoreMouse:K.current,scrollOffset:J.current,offset:Z.current,pageOffset:X.current,initialScrollOffset:ee.current,clientOffset:$.current,initialClientOffset:Q.current,velocity:U.current,autoScroll:Boolean("object"==typeof O?!1!==O.enabled:O),scrollableParent:ae(),autoScrollDirection:"object"==typeof O?O.direction:{horizontal:!0,vertical:!0},isScrolling:M}}),[A,N,z,L,T,O,ae,M]),de=o.useCallback((function(e){_(e)}),[]),pe=o.useCallback((function(e){P(e)}),[]),fe=o.useCallback((function(e){U.current=e}),[]),he=o.useCallback((function(e){Z.current=e}),[]),me=o.useCallback((function(e){$.current=e}),[]),ve=o.useCallback((function(e){X.current=e}),[]),ge=o.useCallback((function(e){Q.current=e}),[]),ye=o.useCallback((function(e){J.current=e}),[]),be=o.useCallback((function(e){ee.current=e}),[]),Ce=o.useCallback((function(e){i(e)}),[i]),Ee=o.useCallback((function(e){l(e)}),[l]),we=o.useCallback((function(t){j(le,{target:e.current,event:t}),c(t)}),[j,e,c]),ke=o.useCallback((function(e){g(e)}),[g]),Se=o.useCallback((function(t){G.current||(j(null,{target:e.current,event:t}),b(t))}),[b,j,e]),Oe=o.useCallback((function(e){d(ce(),{event:e,payload:le.current},{onVelocityChange:fe,onOffsetChange:he,onClientOffsetChange:me,onPageOffsetChange:ve,onInitialClientOffsetChange:ge,onScrollOffsetChange:ye,onInitialScrollOffsetChange:be,onIsPressedChange:de,onIsScrollingChange:pe})}),[ce,fe,he,ve,me,ge,be,de,ye,pe]),De=o.useCallback((function(e){Oe(e)}),[Oe]),xe=o.useCallback((function(e){Oe(e)}),[Oe]),Ie=o.useCallback((function(e){Oe(e)}),[Oe]),Te=o.useCallback((function(e){Oe(e)}),[Oe]),_e=o.useCallback((function(e){Oe(e)}),[Oe]),Re=o.useCallback((function(e){Oe(e)}),[Oe]),Me=o.useCallback((function(e){Oe(e)}),[Oe]),Pe=o.useCallback((function(e){e.preventDefault(),Oe(e)}),[Oe]),Ne=o.useCallback((function(e){e.preventDefault(),Oe(e)}),[Oe]),Fe=o.useCallback((function(e){e.preventDefault(),Oe(e)}),[Oe]),Ae=o.useCallback((function(e){if(0===e.touches.length&&1===e.changedTouches.length){var t=ue();K.current=!0,q.current=t.setTimeout((function(){K.current=!1}),2e3)}Oe(e)}),[Oe,ue]),je=o.useCallback((function(e){Oe(e)}),[Oe]),Le=o.useCallback((function(){var e=re();if(e){var t=e.style.touchAction;return e.style.touchAction="none",function(){e.style.touchAction=t}}}),[re]),Ve=o.useCallback((function(){return B(le),function(){H(le)}}),[H,B]);o.useEffect((function(){var e=ue();if(M){var t=ie()||u(document.elementFromPoint($.current.x,$.current.y));e.clearInterval(W.current),W.current=e.setInterval((function(){p(t,{x:U.current.x,y:U.current.y})}),50)}return function(){e.clearInterval(W.current)}}),[re,ie,ue,M]),o.useEffect(Le,[Le]),o.useEffect((function(){var e=ue(),t=re(),n=se();return ne?(t&&(Y.current=u(t),Y.current&&Y.current.addEventListener("scroll",je,{passive:!0}),t.addEventListener("pointerdown",De,{passive:!0})),T&&(n.addEventListener("pointermove",xe),n.addEventListener("pointerup",Te,!0),n.addEventListener("contextmenu",Pe),n.addEventListener("pointercancel",Ie,{passive:!0}))):(e.addEventListener("touchmove",f.Z,{capture:!1,passive:!1}),t&&(t.addEventListener("mousedown",_e,{passive:!0}),k||(t.addEventListener("touchstart",Ne,{passive:!0}),T&&(t.addEventListener("touchmove",Fe,{passive:!0}),t.addEventListener("touchend",Ae,{passive:!0})))),T&&(n.addEventListener("mousemove",Re,{passive:!0}),n.addEventListener("mouseup",Me,{passive:!0}))),function(){Y.current&&Y.current.removeEventListener("scroll",je),t&&(t.removeEventListener("pointerdown",De),t.removeEventListener("mousedown",_e),t.removeEventListener("touchstart",Ne),t.removeEventListener("touchmove",Fe),t.removeEventListener("touchend",Ae)),n.removeEventListener("pointermove",xe),n.removeEventListener("pointerup",Te,!0),n.removeEventListener("contextmenu",Pe),n.removeEventListener("pointercancel",Ie),n.removeEventListener("mousemove",Re),n.removeEventListener("mouseup",Me),e.removeEventListener("touchmove",f.Z),e.clearTimeout(q.current)}}),[T,ue,re,se,k,ne,Pe,_e,Re,Me,Ie,De,xe,Te,Ae,Fe,Ne,je]),o.useEffect((function(){return function(){G.current=!0}}),[]),o.useLayoutEffect(Ve,[Ve])}},4912:(e,t,n)=>{n.d(t,{W:()=>o});var r=n(3899),o=function(e,t){var n=r.useContext(e),o=n[0],i=n[1],a=r.useState(t),l=a[0],s=a[1];return[void 0!==o?o:l,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];void 0!==o?i.apply(void 0,e):s(e[0])}]}},3322:(e,t,n)=>{n.d(t,{i:()=>o});var r=n(3899),o=function(e,t,n){void 0===n&&(n={});var o=r.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]),i=r.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:r.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:i,onMouseDown:o,onDoubleClick:r.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:r.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:r.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:r.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:r.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:r.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])}}},9656:(e,t,n)=>{n.d(t,{Y:()=>o});var r=n(3899),o=function(e,t){return r.useContext(e)(t)}},1573:(e,t,n)=>{n.d(t,{V:()=>o});var r=n(3899);function o(e,t,n){var o=r.useState(t),i=o[0],a=o[1];return r.useEffect((function(){if(!i&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&a(t)}}),n),i}},3493:(e,t,n)=>{n.d(t,{R:()=>r});var r={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}},3865:(e,t,n)=>{n.r(t),n.d(t,{AsyncFocusBlur:()=>k.o,BrowserSupportService:()=>i.O,COLLECTION_ACTION:()=>r,DragAndDrop:()=>re,Draggable:()=>oe._,Droppable:()=>le,FormComponent:()=>d,Icon:()=>L,Keys:()=>m.R,SvgIcon:()=>B,Typography:()=>J,ZIndexContext:()=>o.$,canUseDOM:()=>a.N,canUseRef:()=>l,classNames:()=>s.A,clone:()=>u.d9,cloneArray:()=>u.M2,cloneDate:()=>u.ky,cloneObject:()=>u.kI,cloneValue:()=>u.Ve,createPropsContext:()=>S.Y,dispatchEvent:()=>w.N,extendDataItem:()=>b.u5,focusFirstFocusableChild:()=>c.n,getItemPath:()=>b.ym,getScrollbarWidth:()=>g.n,getTabIndex:()=>p.p,getter:()=>f.Y,guid:()=>h.M,hasRelativeStackingContext:()=>E,kendoThemeMaps:()=>ue.G,mapTree:()=>b.Gy,mapTreeItem:()=>b.eY,noop:()=>v.Z,setScrollbarWidth:()=>g.p,setter:()=>y.I,useAsyncFocusBlur:()=>D.U,useCollection:()=>M,useCustomComponent:()=>T,useDir:()=>O.n,useDocument:()=>P,useDraggable:()=>se.O,useDroppable:()=>ae,useMouse:()=>I.i,usePropsContext:()=>_.Y,useRtl:()=>x.V,useWindow:()=>N,useZIndexContext:()=>o.u,validatePackage:()=>C.s,withPropsContext:()=>S.u});var r,o=n(8259),i=n(3503),a=n(7827),l=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=n(8047),u=n(4500),c=n(9124),d=function(){},p=n(4703),f=n(9659),h=n(3198),m=n(3493),v=n(3228),g=n(2665),y=n(4431),b=n(8006),C=n(4006),E=function(e){if(!a.N)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: '.concat(10,'px;">child</div>'),t.body.appendChild(n);var r=10!==n.children[0].getBoundingClientRect().top;return t.body.removeChild(n),r},w=n(5407),k=n(493),S=n(848),O=n(8199),D=n(6059),x=n(1573),I=n(3322),T=function(e){return[e,{}]},_=n(9656),R=n(3899);!function(e){e[e.add=0]="add",e[e.remove=1]="remove"}(r||(r={}));var M=function(e){void 0===e&&(e=[]);var t=R.useRef(e),n=R.useCallback((function(e){switch(e.type){case r.add:t.current.push(e.item);break;case r.remove:var n=t.current.indexOf(e.item);t.current.splice(n,1)}}),[]);return[t.current,n]},P=function(e){var t=R.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]);return R.useCallback((function(){var e=t();return e&&e.ownerDocument||document}),[t])},N=function(e){var t=P(e);return R.useCallback((function(){var e=t();return e&&e.defaultView||window}),[t])},F=n(189),A={default:"",xsmall:"k-icon-xs",small:"k-icon-sm",medium:"k-icon-md",large:"k-icon-lg",xlarge:"k-icon-xl"},j=function(){return j=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},j.apply(this,arguments)},L=R.forwardRef((function(e,t){var n=e.className,r=e.name,o=e.themeColor,i=e.size,a=e.flip,l=e.style,u=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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["className","name","themeColor","size","flip","style"]),c=R.useRef(null),d=R.useRef(null);R.useImperativeHandle(c,(function(){return{element:d.current}})),R.useImperativeHandle(t,(function(){return c.current}));var p=R.useMemo((function(){return o||V.themeColor}),[o]),f=R.useMemo((function(){return i||V.size}),[i]),h=R.useMemo((function(){return a||V.flip}),[a]),m=R.useMemo((function(){return(0,s.A)("k-icon","k-i-"+r,"k-color-"+p,{"k-flip-h":"horizontal"===h||"both"===h,"k-flip-v":"vertical"===h||"both"===h},A[f],n)}),[r,p,f,h,n]),v=(0,I.i)(e,c);return R.createElement("span",j({ref:d},u,v,{className:m,style:l,role:"presentation"}))}));L.propTypes={style:F.object,classNames:F.string,name:F.string,themeColor:F.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:F.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:F.oneOf(["default","horizontal","vertical","both"])};var V={size:"default",themeColor:"inherit",flip:"default"};L.displayName="KendoIcon";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},z.apply(this,arguments)},B=R.forwardRef((function(e,t){var n=e.children,r=e.className,o=e.svgClassName,i=e.icon,a=e.flip,l=e.size,u=e.style,c=e.svgStyle,d=e.themeColor,p=e.viewBox,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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["children","className","svgClassName","icon","flip","size","style","svgStyle","themeColor","viewBox"]),h=R.useRef(null);R.useImperativeHandle(t,(function(){return{element:h.current}}));var m=R.useMemo((function(){return i?i.name:H.icon}),[i]),v=R.useMemo((function(){return d||H.themeColor}),[d]),g=R.useMemo((function(){return l||H.size}),[l]),y=R.useMemo((function(){return a||H.flip}),[a]),b=R.useMemo((function(){return p||H.viewBox}),[p]),C=R.useMemo((function(){return(0,s.A)("k-svg-icon","k-color-"+v,"k-svg-i-"+m,{"k-flip-h":"horizontal"===y||"both"===y,"k-flip-v":"vertical"===y||"both"===y},A[g],r)}),[m,v,g,y,r]),E=R.useMemo((function(){return e.width&&e.height?z({width:e.width,height:e.height},u):e.width?z({width:e.width,height:e.width},u):e.height?z({width:e.height,height:e.height},u):z({},u)}),[e.width,e.height,u]);return R.createElement("span",{className:C,style:E,ref:h},R.createElement("svg",z({className:o,style:c,"aria-hidden":!0,focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:i?i.viewBox:b,dangerouslySetInnerHTML:i?{__html:i.content}:void 0},f),i?void 0:n))}));B.propTypes={style:F.object,classNames:F.string,children:F.any,icon:F.object,themeColor:F.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:F.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:F.oneOf(["default","horizontal","vertical","both"])};var H={size:"default",themeColor:"inherit",flip:"default",icon:"",viewBox:"0 0 24 24"};B.displayName="KendoSvgIcon";var U={xsmall:"k-fs-xs",small:"k-fs-sm",medium:"k-fs-md",large:"k-fs-lg",xlarge:"k-fs-xl"},W={light:"k-font-weight-light",normal:"k-font-weight-normal",bold:"k-font-weight-bold"},K={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"},q={xsmall:"xs",small:"sm",medium:"md",large:"lg",xlarge:"xl",thin:"thin",hair:"hair"},Y={top:"k-mt-",right:"k-mr-",bottom:"k-mb-",left:"k-ml-"},G={left:"k-text-left",right:"k-text-right",center:"k-text-center",justify:"k-text-justify"},Z={lowercase:"k-text-lowercase",uppercase:"k-text-uppercase",capitalize:"k-text-capitalize"},X={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"},$=function(){return $=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)},Q=function(e){var t=R.forwardRef((function(t,n){var r=t.id,o=t.style,i=t.className,a=t.fontSize,l=t.fontWeight,s=t.textAlign,u=t.textTransform,c=t.themeColor,d=t.margin,p=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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["id","style","className","fontSize","fontWeight","textAlign","textTransform","themeColor","margin"]),f=R.useRef(null),h=R.useRef(null);R.useImperativeHandle(f,(function(){return{element:h.current,props:t}})),R.useImperativeHandle(n,(function(){return f.current}));var m=e;return R.createElement(m,$({id:r,ref:h,className:["k-".concat("p"===e?"paragraph":e),U[a],W[l],G[s],Z[u],X[c],function(){if(void 0!==d){if("string"==typeof d)return[K[d]];if("number"==typeof d&&d>=0&&d<=24)return["k-m-".concat(d)];if("object"==typeof d){var e=[];return Object.keys(d).forEach((function(t){var n,r,o;null!==d[t]&&void 0!==d[t]&&e.push((n=t,o="string"==typeof(r=d[t])?q[r]:r,"".concat(Y[n]).concat(o)))})),e.join(" ")}}}(),i].filter((function(e){return void 0!==e})).join(" "),style:o},p),t.children)}));return t.propTypes={style:F.object,className:F.string,fontSize:F.oneOf(["xsmall","small","medium","large","xlarge"]),fontWeight:F.oneOf(["light","normal","bold"]),margin:F.oneOfType([F.number,F.object,F.oneOf(["xsmall","small","medium","large","xlarge","thin","hair"])]),textAlign:F.oneOf(["left","right","center","justify"]),textTransform:F.oneOf(["lowercase","uppercase","capitalize"]),themeColor:F.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"])},t.displayName="KendoReactTypography".concat(e.toUpperCase()),t},J={h1:Q("h1"),h2:Q("h2"),h3:Q("h3"),h4:Q("h4"),h5:Q("h5"),h6:Q("h6"),p:Q("p"),code:Q("code"),pre:Q("pre")},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},ee.apply(this,arguments)},te=function(e,t,n){var r=R.useState(t||e),o=r[0],i=r[1];return[void 0!==t?t:o,R.useCallback((function(e,t){i(e),n&&n.call(void 0,ee(ee({},t),{value:e}))}),[n,i])]},ne=n(2333),re=function(e){var t=te(null,void 0),n=t[0],o=t[1],i=te(null,void 0),a=i[0],l=i[1],s=M([]),u=s[0],c=s[1],d=M([]),p=d[0],f=d[1];return R.createElement(ne.Dg.Provider,{value:[n,o]},R.createElement(ne.Gc.Provider,{value:[a,l]},R.createElement(ne.Fg.Provider,{value:[u,function(e){c({type:r.add,item:e})},function(e){c({type:r.remove,item:e})}]},R.createElement(ne.tk.Provider,{value:[p,function(e){f({type:r.add,item:e})},function(e){f({type:r.remove,item:e})}]},e.children))))};re.displayName="KendoReactDragAndDrop";var oe=n(1779),ie=n(4912);function ae(e,t){void 0===t&&(t={onDragEnter:v.Z,onDragOver:v.Z,onDragLeave:v.Z,onDrop:v.Z});var n=t.onDragEnter,r=void 0===n?v.Z:n,o=t.onDragOver,i=void 0===o?v.Z:o,a=t.onDragLeave,l=void 0===a?v.Z:a,s=t.onDrop,u=void 0===s?v.Z:s,c=(0,ie.W)(ne.Gc)[1],d=R.useContext(ne.tk),p=d[1],f=d[2],h=R.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]),m=R.useRef(null);R.useImperativeHandle(m,(function(){return{element:h(),onDragEnter:g,onDragOver:y,onDragLeave:b,onDrop:C,data:e.current}}));var g=R.useCallback((function(t){c(m,{target:e.current,event:t}),r(t)}),[c,e,r]),y=R.useCallback((function(e){i(e)}),[i]),b=R.useCallback((function(t){c(null,{target:e.current,event:t}),l(t)}),[c,e,l]),C=R.useCallback((function(t){c(null,{target:e.current,event:t}),u(t)}),[c,e,u]),E=R.useCallback((function(){return p(m),function(){f(m)}}),[f,p]);R.useLayoutEffect(E,[E])}var le=R.forwardRef((function(e,t){var n=R.useRef(null),r=R.useRef(null),o=R.useCallback((function(){return n.current&&n.current.element?n.current.element:n.current}),[n]);R.useImperativeHandle(r,(function(){return{element:o()||void 0}})),R.useImperativeHandle(t,(function(){return r.current})),R.useImperativeHandle(e.childRef,(function(){return n.current}));var i=R.useCallback((function(t){e.onDragEnter&&e.onDragEnter({element:o(),target:r.current,event:t})}),[e.onDragEnter,o]),a=R.useCallback((function(t){e.onDragOver&&e.onDragOver({element:o(),target:r.current,event:t})}),[o,e.onDragOver]),l=R.useCallback((function(t){e.onDragLeave&&e.onDragLeave({element:o(),target:r.current,event:t})}),[e.onDragLeave,o]),s=R.useCallback((function(t){e.onDrop&&e.onDrop({element:o(),target:r.current,event:t})}),[e.onDrop,o]);return ae(n,{onDragEnter:i,onDragOver:a,onDragLeave:l,onDrop:s}),e.children?R.cloneElement(R.Children.only(e.children),{ref:n}):null}));le.displayName="KendoReactDroppable";var se=n(9844),ue=n(2697)},3228:(e,t,n)=>{n.d(t,{Z:()=>r});var r=function(){}},2665:(e,t,n)=>{n.d(t,{n:()=>i,p:()=>a});var r=n(3503),o=n(7827),i=function(){return!(!o.N||!document.body)&&(new r.O).scrollbarWidth},a=function(){if(!o.N||!document.body)return!1;var e=(new r.O).scrollbarWidth;document.body.style.setProperty("--kendo-scrollbar-width","".concat(e,"px"))}},4431:(e,t,n)=>{n.d(t,{I:()=>a});var r=n(4100),o={undefined:function(e){return e}},i=function(e,t){return t&&t.arrays&&!isNaN(Number(e))?[]:{}};function a(e){if(o[e])return o[e];var t=(0,r.E)(e);return o[e]=function(e,n,r){for(var o=e,a=t.length-1,l=0;l<a&&o;l++)o=o[t[l]]=o[t[l]]||i(t[l+1],r);o[t[a]]=n},o[e]}},2697:(e,t,n)=>{n.d(t,{G:()=>r});var r={sizeMap:{small:"sm",medium:"md",large:"lg"},roundedMap:{small:"sm",medium:"md",large:"lg"}}},8006:(e,t,n)=>{n.d(t,{Gy:()=>l,eY:()=>s,u5:()=>u,ym:()=>c});var r=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},r.apply(this,arguments)},o=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};function i(e,t,n){var i;return n?r(r({},e),((i={})[t]=n.length?o([],n,!0):void 0,i)):e&&e[t]?o([],e[t],!0):[]}function a(e,t,n){if(e[t]){var r=i(e,t).map((function(e){return a(e,t,n)}));return n(i(e,t,r))}return n(e)}var l=function(e,t,n){return o([],e.map((function(e){return a(e,t,n)})),!0)},s=function(e,t,n,r){for(var o=e,i=[],a=0;a<t.length;a++)o=o[t[a]],o=Array.isArray(o)?o:o[n],i.push(o);var l=i.length>1?i[i.length-2]:e,s=t[t.length-1],u=r(l[s]);l.splice(s,1,u)},u=function(e,t,n){var r;return Object.assign({},e,e[t]?((r={})[t]=e[t].slice(),r):{},n||{})},c=function(e,t,n){var r=[],i=o([],t,!0);if(i.length){var a=e[i.shift()||0];for(r.push(a);i.length&&n;)a=a[n][i.shift()||0],r.push(a)}return r}},4006:(e,t,n)=>{n.d(t,{s:()=>o});var r=n(9302);function o(e){if(void 0!==r)r.validatePackage(e);else{var t="License activation failed for ".concat(e.name,"\n");t+="The @progress/kendo-licensing script is not loaded.\n",t+="See ".concat(e.licensingDocsUrl," for more information.\n"),console.warn(t)}}},619:e=>{e.exports=n},4407:e=>{e.exports=a},9302:e=>{e.exports=r},499:e=>{e.exports=o},189:e=>{e.exports=t},3899:t=>{t.exports=e},994:e=>{e.exports=i},6144:e=>{e.exports=l}},u={};function c(e){var t=u[e];if(void 0!==t)return t.exports;var n=u[e]={exports:{}};return s[e].call(n.exports,n,n.exports,c),n.exports}return c.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},c.d=(e,t)=>{for(var n in t)c.o(t,n)&&!c.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c(468)})()}));