text: /** 
   * Kendo UI v2021.1.224 (http://www.telerik.com/kendo-ui)                                                                                                                                               
   * Copyright 2021 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.                                                                                      
   *                                                                                                                                                                                                      
   * Kendo UI commercial licenses may be obtained at                                                                                                                                                      
   * http://www.telerik.com/purchase/license-agreement/kendo-ui-complete                                                                                                                                  
   * If you do not own a commercial license, this file shall be governed by the trial license terms.                                                                                                      
                                                                                                                                                                                                         
                                                                                                                                                                                                         
                                                                                                                                                                                                         
                                                                                                                                                                                                         
                                                                                                                                                                                                         
                                                                                                                                                                                                         
                                                                                                                                                                                                         
                                                                                                                                                                                                         
                                                                                                                                                                                                         
                                                                                                                                                                                                         
                                                                                                                                                                                                         
                                                                                                                                                                                                         
                                                                                                                                                                                                         
                                                                                                                                                                                                         
                                                                                                                                                                                                         
  
  */
  !function(e,define){define("kendo.binder.min",["kendo.core.min","kendo.data.min"],e)}(function(){return function(e,t){function i(t,i,n){return p.extend({init:function(e,t,i){var n=this;p.fn.init.call(n,e.element[0],t,i),n.widget=e,n._dataBinding=M(n.dataBinding,n),n._dataBound=M(n.dataBound,n),n._itemChange=M(n.itemChange,n)},itemChange:function(e){r(e.item[0],e.data,this._ns(e.ns),[e.data].concat(this.bindings[t]._parents()))},dataBinding:function(e){var t,i,n=this.widget,s=e.removedItems||n.items();for(t=0,i=s.length;t<i;t++)h(s[t],!1)},_ns:function(t){t=t||C.ui;var i=[C.ui,C.dataviz.ui,C.mobile.ui];return i.splice(e.inArray(t,i),1),i.unshift(t),C.rolesFromNamespaces(i)},dataBound:function(e){var n,s,a,d,o=this.widget,h=e.addedItems||o.items(),l=o[i],c=C.data.HierarchicalDataSource;if(!(c&&l instanceof c)&&h.length)for(a=e.addedDataItems||l.flatView(),d=this.bindings[t]._parents(),n=0,s=a.length;n<s;n++)h[n]&&r(h[n],a[n],this._ns(e.ns),[a[n]].concat(d))},refresh:function(e){var s,a,r,d,o=this,h=o.widget;e=e||{},e.action||(o.destroy(),h.bind("dataBinding",o._dataBinding),h.bind("dataBound",o._dataBound),h.bind("itemChange",o._itemChange),s=o.bindings[t].get(),h[i]instanceof C.data.DataSource&&h[i]!=s&&(s instanceof C.data.DataSource?h[n](s):s&&s._dataSource?h[n](s._dataSource):(a=C.ui.Select&&h instanceof C.ui.Select,r=C.ui.MultiSelect&&h instanceof C.ui.MultiSelect,d=C.ui.DropDownTree&&h instanceof C.ui.DropDownTree,d?h.treeview[i].data(s):h[i].data(s),o.bindings.value&&(a||r)&&h.value(u(o.bindings.value.get(),h.options.dataValueField)))))},destroy:function(){var e=this.widget;e.unbind("dataBinding",this._dataBinding),e.unbind("dataBound",this._dataBound),e.unbind("itemChange",this._itemChange)}})}function n(e,t){var i=C.initWidget(e,{},t);if(i)return new _(i)}function s(e){var t,i,n,a,r,d,o,h={};for(o=e.match(x),t=0,i=o.length;t<i;t++)n=o[t],a=n.indexOf(":"),r=n.substring(0,a),d=n.substring(a+1),"{"==d.charAt(0)&&(d=s(d)),h[r]=d;return h}function a(e,t,i){var n,s={};for(n in e)s[n]=new i(t,e[n]);return s}function r(e,t,i,d){var h,l,c,g,u,p,m,y,_;if(e&&!e.getAttribute("data-"+C.ns+"stop")&&(h=e.getAttribute("data-"+C.ns+"role"),c=e.getAttribute("data-"+C.ns+"bind"),g=[],u=!0,m={},d=d||[t],(h||c)&&o(e,!1),h&&(y=n(e,i)),c&&(c=s(c.replace(B,"")),y||(m=C.parseOptions(e,{textField:"",valueField:"",template:"",valueUpdate:j,valuePrimitive:!1,autoBind:!0},t),m.roles=i,y=new w(e,m)),y.source=t,p=a(c,d,f),m.template&&(p.template=new v(d,"",m.template)),p.click&&(c.events=c.events||{},c.events.click=c.click,p.click.destroy(),delete p.click),p.source&&(u=!1),c.attr&&(p.attr=a(c.attr,d,f)),c.style&&(p.style=a(c.style,d,f)),c.events&&(p.events=a(c.events,d,b)),c.css&&(p.css=a(c.css,d,f)),y.bind(p)),y&&(e.kendoBindingTarget=y),_=e.children,u&&_&&!e.getAttribute("data-"+C.ns+"stop"))){for(l=0;l<_.length;l++)g[l]=_[l];for(l=0;l<g.length;l++)r(g[l],t,i,d)}}function d(t,i){var n,s,a,d=C.rolesFromNamespaces([].slice.call(arguments,2));for(i=C.observable(i),t=e(t),n=0,s=t.length;n<s;n++)a=t[n],1===a.nodeType&&r(a,i,d)}function o(t,i){var n,s=t.kendoBindingTarget;s&&(s.destroy(),L?delete t.kendoBindingTarget:t.removeAttribute?t.removeAttribute("kendoBindingTarget"):t.kendoBindingTarget=null),i&&(n=C.widgetInstance(e(t)),n&&typeof n.destroy===P&&n.destroy())}function h(e,t){o(e,t),l(e,t)}function l(e,t){var i,n,s=e.children;if(s)for(i=0,n=s.length;i<n;i++)h(s[i],t)}function c(t){var i,n;for(t=e(t),i=0,n=t.length;i<n;i++)h(t[i],!1)}function g(e,t){var i=e.element,n=i[0].kendoBindingTarget;n&&d(i,n.source,t)}function u(e,t){var i,n,s=[],a=0;if(!t)return e;if(e instanceof D){for(i=e.length;a<i;a++)n=e[a],s[a]=n.get?n.get(t):n[t];e=s}else e instanceof S&&(e=e.get(t));return e}var f,b,v,p,m,y,w,_,x,B,C=window.kendo,k=C.Observable,S=C.data.ObservableObject,D=C.data.ObservableArray,F={}.toString,T={},A=C.Class,M=e.proxy,I="value",V="source",O="events",H="checked",N="css",L=!0,P="function",j="change";!function(){var e=document.createElement("a");try{delete e.test}catch(t){L=!1}}(),f=k.extend({init:function(e,t){var i=this;k.fn.init.call(i),i.source=e[0],i.parents=e,i.path=t,i.dependencies={},i.dependencies[t]=!0,i.observable=i.source instanceof k,i._access=function(e){i.dependencies[e.field]=!0},i.observable&&(i._change=function(e){i.change(e)},i.source.bind(j,i._change))},_parents:function(){var t,i=this.parents,n=this.get();return n&&"function"==typeof n.parent&&(t=n.parent(),e.inArray(t,i)<0&&(i=[t].concat(i))),i},change:function(e){var t,i,n=e.field,s=this;if("this"===s.path)s.trigger(j,e);else for(t in s.dependencies)if(0===t.indexOf(n)&&(i=t.charAt(n.length),!i||"."===i||"["===i)){s.trigger(j,e);break}},start:function(e){e.bind("get",this._access)},stop:function(e){e.unbind("get",this._access)},get:function(){var e=this,i=e.source,n=0,s=e.path,a=i;if(!e.observable)return a;for(e.start(e.source),a=i.get(s);a===t&&i;)i=e.parents[++n],i instanceof S&&(a=i.get(s));if(a===t)for(i=e.source;a===t&&i;)i=i.parent(),i instanceof S&&(a=i.get(s));return"function"==typeof a&&(n=s.lastIndexOf("."),n>0&&(i=i.get(s.substring(0,n))),e.start(i),a=i!==e.source?a.call(i,e.source):a.call(i),e.stop(i)),i&&i!==e.source&&(e.currentSource=i,i.unbind(j,e._change).bind(j,e._change)),e.stop(e.source),a},set:function(e){var t=this.currentSource||this.source,i=C.getter(this.path)(t);"function"==typeof i?t!==this.source?i.call(t,this.source,e):i.call(t,e):t.set(this.path,e)},destroy:function(){this.observable&&(this.source.unbind(j,this._change),this.currentSource&&this.currentSource.unbind(j,this._change)),this.unbind()}}),b=f.extend({get:function(){var e,t=this.source,i=this.path,n=0;for(e=t.get(i);!e&&t;)t=this.parents[++n],t instanceof S&&(e=t.get(i));return M(e,t)}}),v=f.extend({init:function(e,t,i){var n=this;f.fn.init.call(n,e,t),n.template=i},render:function(e){var t;return this.start(this.source),t=C.render(this.template,e),this.stop(this.source),t}}),p=A.extend({init:function(e,t,i){this.element=e,this.bindings=t,this.options=i},bind:function(e,t){var i=this;e=t?e[t]:e,e.bind(j,function(e){i.refresh(t||e)}),i.refresh(t)},destroy:function(){}}),m=p.extend({dataType:function(){var e=this.element.getAttribute("data-"+C.ns+"type")||this.element.type||"text";return e.toLowerCase()},parsedValue:function(){return this._parseValue(this.element.value,this.dataType())},_parseValue:function(e,t){return"date"==t?e=C.parseDate(e,"yyyy-MM-dd"):"datetime-local"==t?e=C.parseDate(e,["yyyy-MM-ddTHH:mm:ss","yyyy-MM-ddTHH:mm"]):"number"==t?e=C.parseFloat(e):"boolean"==t&&(e=e.toLowerCase(),e=null!==C.parseFloat(e)?!!C.parseFloat(e):"true"===e.toLowerCase()),e}}),T.attr=p.extend({refresh:function(e){this.element.setAttribute(e,this.bindings.attr[e].get())}}),T.css=p.extend({init:function(e,t,i){p.fn.init.call(this,e,t,i),this.classes={}},refresh:function(t){var i=e(this.element),n=this.bindings.css[t],s=this.classes[t]=n.get();s?i.addClass(t):i.removeClass(t)}}),T.style=p.extend({refresh:function(e){this.element.style[e]=this.bindings.style[e].get()||""}}),T.enabled=p.extend({refresh:function(){this.bindings.enabled.get()?this.element.removeAttribute("disabled"):this.element.setAttribute("disabled","disabled")}}),T.readonly=p.extend({refresh:function(){this.bindings.readonly.get()?this.element.setAttribute("readonly","readonly"):this.element.removeAttribute("readonly")}}),T.disabled=p.extend({refresh:function(){this.bindings.disabled.get()?this.element.setAttribute("disabled","disabled"):this.element.removeAttribute("disabled")}}),T.events=p.extend({init:function(e,t,i){p.fn.init.call(this,e,t,i),this.handlers={}},refresh:function(t){var i=e(this.element),n=this.bindings.events[t],s=this.handlers[t];s&&i.off(t,s),s=this.handlers[t]=n.get(),i.on(t,n.source,s)},destroy:function(){var t,i=e(this.element);for(t in this.handlers)i.off(t,this.handlers[t])}}),T.text=p.extend({refresh:function(){var t=this.bindings.text.get(),i=this.element.getAttribute("data-"+C.ns+"format")||"";null==t&&(t=""),e(this.element).text(C.toString(t,i))}}),T.visible=p.extend({refresh:function(){this.element.style.display=this.bindings.visible.get()?"":"none"}}),T.invisible=p.extend({refresh:function(){this.element.style.display=this.bindings.invisible.get()?"none":""}}),T.html=p.extend({refresh:function(){this.element.innerHTML=this.bindings.html.get()}}),T.value=m.extend({init:function(t,i,n){m.fn.init.call(this,t,i,n),this._change=M(this.change,this),this.eventName=n.valueUpdate||j,e(this.element).on(this.eventName,this._change),this._initChange=!1},change:function(){this._initChange=this.eventName!=j,this.bindings[I].set(this.parsedValue()),this._initChange=!1},refresh:function(){var e,t;this._initChange||(e=this.bindings[I].get(),null==e&&(e=""),t=this.dataType(),"date"==t?e=C.toString(e,"yyyy-MM-dd"):"datetime-local"==t&&(e=C.toString(e,"yyyy-MM-ddTHH:mm:ss")),this.element.value=e),this._initChange=!1},destroy:function(){e(this.element).off(this.eventName,this._change)}}),T.source=p.extend({init:function(e,t,i){p.fn.init.call(this,e,t,i);var n=this.bindings.source.get();n instanceof C.data.DataSource&&i.autoBind!==!1&&n.fetch()},refresh:function(e){var t=this,i=t.bindings.source.get();i instanceof D||i instanceof C.data.DataSource?(e=e||{},"add"==e.action?t.add(e.index,e.items):"remove"==e.action?t.remove(e.index,e.items):"itemchange"!=e.action&&t.render()):t.render()},container:function(){var e=this.element;return"table"==e.nodeName.toLowerCase()&&(e.tBodies[0]||e.appendChild(document.createElement("tbody")),e=e.tBodies[0]),e},template:function(){var e=this.options,t=e.template,i=this.container().nodeName.toLowerCase();return t||(t="select"==i?e.valueField||e.textField?C.format('<option value="#:{0}#">#:{1}#</option>',e.valueField||e.textField,e.textField||e.valueField):"<option>#:data#</option>":"tbody"==i?"<tr><td>#:data#</td></tr>":"ul"==i||"ol"==i?"<li>#:data#</li>":"#:data#",t=C.template(t)),t},add:function(t,i){var n,s,a,d,o=this.container(),h=o.cloneNode(!1),l=o.children[t];if(e(h).html(C.render(this.template(),i)),h.children.length)for(n=this.bindings.source._parents(),s=0,a=i.length;s<a;s++)d=h.children[0],o.insertBefore(d,l||null),r(d,i[s],this.options.roles,[i[s]].concat(n))},remove:function(e,t){var i,n,s=this.container();for(i=0;i<t.length;i++)n=s.children[e],h(n,!0),n.parentNode==s&&s.removeChild(n)},render:function(){var t,i,n,s=this.bindings.source.get(),a=this.container(),d=this.template();if(null!=s)if(s instanceof C.data.DataSource&&(s=s.view()),s instanceof D||"[object Array]"===F.call(s)||(s=[s]),this.bindings.template){if(l(a,!0),e(a).html(this.bindings.template.render(s)),a.children.length)for(t=this.bindings.source._parents(),i=0,n=s.length;i<n;i++)r(a.children[i],s[i],this.options.roles,[s[i]].concat(t))}else e(a).html(C.render(d,s))}}),T.input={checked:m.extend({init:function(t,i,n){m.fn.init.call(this,t,i,n),this._change=M(this.change,this),e(this.element).change(this._change)},change:function(){var e,t,i,n=this.element,s=this.value();if("radio"==n.type)s=this.parsedValue(),this.bindings[H].set(s);else if("checkbox"==n.type)if(e=this.bindings[H].get(),e instanceof D){if(s=this.parsedValue(),s instanceof Date){for(i=0;i<e.length;i++)if(e[i]instanceof Date&&+e[i]===+s){t=i;break}}else t=e.indexOf(s);t>-1?e.splice(t,1):e.push(s)}else this.bindings[H].set(s)},refresh:function(){var e,i,n=this.bindings[H].get(),s=n,a=this.dataType(),r=this.element;if("checkbox"==r.type)if(s instanceof D){if(e=-1,n=this.parsedValue(),n instanceof Date){for(i=0;i<s.length;i++)if(s[i]instanceof Date&&+s[i]===+n){e=i;break}}else e=s.indexOf(n);r.checked=e>=0}else r.checked=s;else"radio"==r.type&&("date"==a?n=C.toString(n,"yyyy-MM-dd"):"datetime-local"==a&&(n=C.toString(n,"yyyy-MM-ddTHH:mm:ss")),r.checked=null!==n&&t!==n&&r.value===""+n)},value:function(){var e=this.element,t=e.value;return"checkbox"==e.type&&(t=e.checked),t},destroy:function(){e(this.element).off(j,this._change)}})},T.select={source:T.source.extend({refresh:function(i){var n,s=this,a=s.bindings.source.get();a instanceof D||a instanceof C.data.DataSource?(i=i||{},"add"==i.action?s.add(i.index,i.items):"remove"==i.action?s.remove(i.index,i.items):"itemchange"!=i.action&&i.action!==t||(s.render(),s.bindings.value&&s.bindings.value&&(n=u(s.bindings.value.get(),e(s.element).data("valueField")),null===n?s.element.selectedIndex=-1:s.element.value=n))):s.render()}}),value:m.extend({init:function(t,i,n){m.fn.init.call(this,t,i,n),this._change=M(this.change,this),e(this.element).change(this._change)},parsedValue:function(){var e,t,i,n,s=this.dataType(),a=[];for(i=0,n=this.element.options.length;i<n;i++)t=this.element.options[i],t.selected&&(e=t.attributes.value,e=e&&e.specified?t.value:t.text,a.push(this._parseValue(e,s)));return a},change:function(){var e,i,n,s,a,r,d,o,h=[],l=this.element,c=this.options.valueField||this.options.textField,g=this.options.valuePrimitive;for(a=0,r=l.options.length;a<r;a++)i=l.options[a],i.selected&&(s=i.attributes.value,s=s&&s.specified?i.value:i.text,h.push(c?s:this._parseValue(s,this.dataType())));if(c)for(e=this.bindings.source.get(),e instanceof C.data.DataSource&&(e=e.view()),n=0;n<h.length;n++)for(a=0,r=e.length;a<r;a++)if(d=e[a].get(c),o=d+""===h[n]){h[n]=e[a];break}s=this.bindings[I].get(),s instanceof D?s.splice.apply(s,[0,s.length].concat(h)):this.bindings[I].set(g||!(s instanceof S||null===s||s===t)&&c?h[0].get(c):h[0])},refresh:function(){var e,t,i,n=this.element,s=n.options,a=this.bindings[I].get(),r=a,d=this.options.valueField||this.options.textField,o=!1,h=this.dataType();for(r instanceof D||(r=new D([a])),n.selectedIndex=-1,i=0;i<r.length;i++)for(a=r[i],d&&a instanceof S&&(a=a.get(d)),"date"==h?a=C.toString(r[i],"yyyy-MM-dd"):"datetime-local"==h&&(a=C.toString(r[i],"yyyy-MM-ddTHH:mm:ss")),e=0;e<s.length;e++)t=s[e].value,""===t&&""!==a&&(t=s[e].text),null!=a&&t==""+a&&(s[e].selected=!0,o=!0)},destroy:function(){e(this.element).off(j,this._change)}})},T.widget={events:p.extend({init:function(e,t,i){p.fn.init.call(this,e.element[0],t,i),this.widget=e,this.handlers={}},refresh:function(e){var t=this.bindings.events[e],i=this.handlers[e];i&&this.widget.unbind(e,i),i=t.get(),this.handlers[e]=function(e){e.data=t.source,i(e),e.data===t.source&&delete e.data},this.widget.bind(e,this.handlers[e])},destroy:function(){var e;for(e in this.handlers)this.widget.unbind(e,this.handlers[e])}}),checked:p.extend({init:function(e,t,i){p.fn.init.call(this,e.element[0],t,i),this.widget=e,this._change=M(this.change,this),this.widget.bind(j,this._change)},change:function(){this.bindings[H].set(this.value())},refresh:function(){this.widget.check(this.bindings[H].get()===!0)},value:function(){var e=this.element,t=e.value;return"on"!=t&&"off"!=t&&"checkbox"!=this.element.type||(t=e.checked),t},destroy:function(){this.widget.unbind(j,this._change)}}),start:p.extend({init:function(e,t,i){p.fn.init.call(this,e.element[0],t,i),this._change=M(this.change,this),this.widget=e,this.widget.bind(j,this._change)},change:function(){this.bindings.start.set(this.widget.range().start)},refresh:function(){var e=this,t=this.bindings.start.get(),i=e.widget._range?e.widget._range.end:null;this.widget.range({start:t,end:i})},destroy:function(){this.widget.unbind(j,this._change)}}),end:p.extend({init:function(e,t,i){p.fn.init.call(this,e.element[0],t,i),this._change=M(this.change,this),this.widget=e,this.widget.bind(j,this._change)},change:function(){this.bindings.end.set(this.widget.range().end)},refresh:function(){var e=this,t=this.bindings.end.get(),i=e.widget._range?e.widget._range.start:null;this.widget.range({start:i,end:t})},destroy:function(){this.widget.unbind(j,this._change)}}),visible:p.extend({init:function(e,t,i){p.fn.init.call(this,e.element[0],t,i),this.widget=e},refresh:function(){var e=this.bindings.visible.get();this.widget.wrapper[0].style.display=e?"":"none"}}),invisible:p.extend({init:function(e,t,i){p.fn.init.call(this,e.element[0],t,i),this.widget=e},refresh:function(){var e=this.bindings.invisible.get();this.widget.wrapper[0].style.display=e?"none":""}}),enabled:p.extend({init:function(e,t,i){p.fn.init.call(this,e.element[0],t,i),this.widget=e},refresh:function(){this.widget.enable&&this.widget.enable(this.bindings.enabled.get())}}),disabled:p.extend({init:function(e,t,i){p.fn.init.call(this,e.element[0],t,i),this.widget=e},refresh:function(){this.widget.enable&&this.widget.enable(!this.bindings.disabled.get())}}),source:i("source","dataSource","setDataSource"),value:p.extend({init:function(t,i,n){p.fn.init.call(this,t.element[0],i,n),this.widget=t,this._change=e.proxy(this.change,this),this.widget.first(j,this._change);var s=this.bindings.value.get();this._valueIsObservableObject=!n.valuePrimitive&&(null==s||s instanceof S),this._valueIsObservableArray=s instanceof D,this._initChange=!1},_source:function(){var e;return this.widget.dataItem&&(e=this.widget.dataItem(),e&&e instanceof S)?[e]:(this.bindings.source&&(e=this.bindings.source.get()),(!e||e instanceof C.data.DataSource)&&(e=this.widget.dataSource.flatView()),e)},change:function(){var e,t,i,n,s,a,r,d=this.widget.value(),o=this.options.dataValueField||this.options.dataTextField,h="[object Array]"===F.call(d),l=this._valueIsObservableObject,c=[];if(this._initChange=!0,o)if(""===d&&(l||this.options.valuePrimitive))d=null;else{for(r=this._source(),h&&(t=d.length,c=d.slice(0)),s=0,a=r.length;s<a;s++)if(i=r[s],n=i.get(o),h){for(e=0;e<t;e++)if(n==c[e]){c[e]=i;break}}else if(n==d){d=l?i:n;break}c[0]&&(d=this._valueIsObservableArray?c:l||!o?c[0]:c[0].get(o))}this.bindings.value.set(d),this._initChange=!1},refresh:function(){var e,i,n,s,a,r,d,o,h;if(!this._initChange){if(e=this.widget,i=e.options,n=i.dataTextField,s=i.dataValueField||n,a=this.bindings.value.get(),r=i.text||"",d=0,h=[],a===t&&(a=null),s)if(a instanceof D){for(o=a.length;d<o;d++)h[d]=a[d].get(s);a=h}else a instanceof S&&(r=a.get(n),a=a.get(s));i.autoBind!==!1||i.cascadeFrom||!e.listView||e.listView.bound()?e.value(a):(n!==s||r||(r=a),r||!a&&0!==a||!i.valuePrimitive?e._preselect(a,r):e.value(a))}this._initChange=!1},destroy:function(){this.widget.unbind(j,this._change)}}),dropdowntree:{value:p.extend({init:function(t,i,n){p.fn.init.call(this,t.element[0],i,n),this.widget=t,this._change=e.proxy(this.change,this),this.widget.first(j,this._change),this._initChange=!1},change:function(){var e,i,n,s,a,r,d,o,h,l=this,c=l.bindings[I].get(),g=l.options.valuePrimitive,u=l.widget.treeview.select(),f=l.widget._isMultipleSelection()?l.widget._getAllChecked():l.widget.treeview.dataItem(u)||l.widget.value(),b=g||l.widget.options.autoBind===!1?l.widget.value():f,v=this.options.dataValueField||this.options.dataTextField;if(b=b.slice?b.slice(0):b,l._initChange=!0,c instanceof D){for(e=[],i=b.length,n=0,s=0,a=c[n],r=!1;a!==t;){for(h=!1,s=0;s<i;s++)if(g?r=b[s]==a:(o=b[s],o=o.get?o.get(v):o,r=o==(a.get?a.get(v):a)),r){b.splice(s,1),i-=1,h=!0;break}h?n+=1:(e.push(a),y(c,n,1),d=n),a=c[n]}y(c,c.length,0,b),e.length&&c.trigger("change",{action:"remove",items:e,index:d}),b.length&&c.trigger("change",{action:"add",items:b,index:c.length-1})}else l.bindings[I].set(b);l._initChange=!1},refresh:function(){if(!this._initChange){var e,t,i=this.options,n=this.widget,s=i.dataValueField||i.dataTextField,a=this.bindings.value.get(),r=a,d=0,o=[];if(s)if(a instanceof D){for(e=a.length;d<e;d++)t=a[d],o[d]=t.get?t.get(s):t;a=o}else a instanceof S&&(a=a.get(s));i.autoBind===!1&&i.valuePrimitive!==!0?n._preselect(r,a):n.value(a)}},destroy:function(){this.widget.unbind(j,this._change)}})},gantt:{dependencies:i("dependencies","dependencies","setDependenciesDataSource")},multiselect:{value:p.extend({init:function(t,i,n){p.fn.init.call(this,t.element[0],i,n),this.widget=t,this._change=e.proxy(this.change,this),this.widget.first(j,this._change),this._initChange=!1},change:function(){var e,i,n,s,a,r,d,o,h,l=this,c=l.bindings[I].get(),g=l.options.valuePrimitive,u=g?l.widget.value():l.widget.dataItems(),f=this.options.dataValueField||this.options.dataTextField;if(u=u.slice(0),l._initChange=!0,c instanceof D){for(e=[],i=u.length,n=0,s=0,a=c[n],r=!1;a!==t;){for(h=!1,s=0;s<i;s++)if(g?r=u[s]==a:(o=u[s],o=o.get?o.get(f):o,r=o==(a.get?a.get(f):a)),r){u.splice(s,1),i-=1,h=!0;break}h?n+=1:(e.push(a),y(c,n,1),d=n),a=c[n]}y(c,c.length,0,u),e.length&&c.trigger("change",{action:"remove",items:e,index:d}),u.length&&c.trigger("change",{action:"add",items:u,index:c.length-1})}else l.bindings[I].set(u);l._initChange=!1},refresh:function(){if(!this._initChange){var e,i,n=this.options,s=this.widget,a=n.dataValueField||n.dataTextField,r=this.bindings.value.get(),d=r,o=0,h=[];if(r===t&&(r=null),a)if(r instanceof D){for(e=r.length;o<e;o++)i=r[o],h[o]=i.get?i.get(a):i;r=h}else r instanceof S&&(r=r.get(a));n.autoBind!==!1||n.valuePrimitive===!0||s._isBound()?s.value(r):s._preselect(d,r)}},destroy:function(){this.widget.unbind(j,this._change)}})},scheduler:{source:i("source","dataSource","setDataSource").extend({dataBound:function(e){var t,i,n,s,a=this.widget,d=e.addedItems||a.items();if(d.length)for(n=e.addedDataItems||a.dataItems(),s=this.bindings.source._parents(),t=0,i=n.length;t<i;t++)r(d[t],n[t],this._ns(e.ns),[n[t]].concat(s))}})},grid:{source:i("source","dataSource","setDataSource").extend({dataBound:function(e){var t,i,n,s,a=this.widget,d=e.addedItems||a.items();if(d.length)for(s=e.addedDataItems||a.dataItems(),n=this.bindings.source._parents(),t=0,i=s.length;t<i;t++)r(d[t],s[t],this._ns(e.ns),[s[t]].concat(n))}})},badge:{text:p.extend({init:function(e,t,i){p.fn.init.call(this,e.element[0],t,i),this.widget=e},refresh:function(){var e=this.bindings.text.get();null==e&&(e=""),this.widget.text(e)}})}},y=function(e,t,i,n){var s,a,r,d,o;if(n=n||[],i=i||0,s=n.length,a=e.length,r=[].slice.call(e,t+i),d=r.length,s){for(s=t+s,o=0;t<s;t++)e[t]=n[o],o++;e.length=s}else if(i)for(e.length=t,i+=t;t<i;)delete e[--i];if(d){for(d=t+d,o=0;t<d;t++)e[t]=r[o],o++;e.length=d}for(t=e.length;t<a;)delete e[t],t++},w=A.extend({init:function(e,t){this.target=e,this.options=t,this.toDestroy=[]},bind:function(e){var t,i,n,s,a,r,d=this instanceof _,o=this.binders();for(t in e)t==I?i=!0:t==V?n=!0:t!=O||d?t==H?a=!0:t==N?r=!0:this.applyBinding(t,e,o):s=!0;n&&this.applyBinding(V,e,o),i&&this.applyBinding(I,e,o),a&&this.applyBinding(H,e,o),s&&!d&&this.applyBinding(O,e,o),r&&!d&&this.applyBinding(N,e,o)},binders:function(){return T[this.target.nodeName.toLowerCase()]||{}},applyBinding:function(e,t,i){var n,s=i[e]||T[e],a=this.toDestroy,r=t[e];if(s)if(s=new s(this.target,t,this.options),a.push(s),r instanceof f)s.bind(r),a.push(r);else for(n in r)s.bind(r,n),a.push(r[n]);else if("template"!==e)throw Error("The "+e+" binding is not supported by the "+this.target.nodeName.toLowerCase()+" element")},destroy:function(){var e,t,i=this.toDestroy;for(e=0,t=i.length;e<t;e++)i[e].destroy()}}),_=w.extend({binders:function(){return T.widget[this.target.options.name.toLowerCase()]||{}},applyBinding:function(e,t,i){var n,s=i[e]||T.widget[e],a=this.toDestroy,r=t[e];if(!s)throw Error("The "+e+" binding is not supported by the "+this.target.options.name+" widget");if(s=new s(this.target,t,this.target.options),a.push(s),r instanceof f)s.bind(r),a.push(r);else for(n in r)s.bind(r,n),a.push(r[n])}}),x=/[A-Za-z0-9_\-]+:(\{([^}]*)\}|[^,}]+)/g,B=/\s/g,C.unbind=c,C.bind=d,C.data.binders=T,C.data.Binder=p,C.notify=g,C.observable=function(e){return e instanceof S||(e=new S(e)),e},C.observableHierarchy=function(e){function t(e){var i,n;for(i=0;i<e.length;i++)e[i]._initChildren(),n=e[i].children,n.fetch(),e[i].items=n.data(),t(e[i].items)}var i=C.data.HierarchicalDataSource.create(e);return i.fetch(),t(i.data()),i._data._dataSource=i,i._data}}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,i){(i||t)()});
  //# sourceMappingURL=kendo.binder.min.js.map
  