{"version":3,"file":"../../Scripts/external-libs-combined.js","sources":["Scripts/external-libs-combined.js"],"sourcesContent":[";(function () {\r\n\t'use strict';\r\n\r\n\t/**\r\n\t * @preserve FastClick: polyfill to remove click delays on browsers with touch UIs.\r\n\t *\r\n\t * @codingstandard ftlabs-jsv2\r\n\t * @copyright The Financial Times Limited [All Rights Reserved]\r\n\t * @license MIT License (see LICENSE.txt)\r\n\t */\r\n\r\n\t/*jslint browser:true, node:true*/\r\n\t/*global define, Event, Node*/\r\n\r\n\r\n\t/**\r\n\t * Instantiate fast-clicking listeners on the specified layer.\r\n\t *\r\n\t * @constructor\r\n\t * @param {Element} layer The layer to listen on\r\n\t * @param {Object} [options={}] The options to override the defaults\r\n\t */\r\n\tfunction FastClick(layer, options) {\r\n\t\tvar oldOnClick;\r\n\r\n\t\toptions = options || {};\r\n\r\n\t\t/**\r\n\t\t * Whether a click is currently being tracked.\r\n\t\t *\r\n\t\t * @type boolean\r\n\t\t */\r\n\t\tthis.trackingClick = false;\r\n\r\n\r\n\t\t/**\r\n\t\t * Timestamp for when click tracking started.\r\n\t\t *\r\n\t\t * @type number\r\n\t\t */\r\n\t\tthis.trackingClickStart = 0;\r\n\r\n\r\n\t\t/**\r\n\t\t * The element being tracked for a click.\r\n\t\t *\r\n\t\t * @type EventTarget\r\n\t\t */\r\n\t\tthis.targetElement = null;\r\n\r\n\r\n\t\t/**\r\n\t\t * X-coordinate of touch start event.\r\n\t\t *\r\n\t\t * @type number\r\n\t\t */\r\n\t\tthis.touchStartX = 0;\r\n\r\n\r\n\t\t/**\r\n\t\t * Y-coordinate of touch start event.\r\n\t\t *\r\n\t\t * @type number\r\n\t\t */\r\n\t\tthis.touchStartY = 0;\r\n\r\n\r\n\t\t/**\r\n\t\t * ID of the last touch, retrieved from Touch.identifier.\r\n\t\t *\r\n\t\t * @type number\r\n\t\t */\r\n\t\tthis.lastTouchIdentifier = 0;\r\n\r\n\r\n\t\t/**\r\n\t\t * Touchmove boundary, beyond which a click will be cancelled.\r\n\t\t *\r\n\t\t * @type number\r\n\t\t */\r\n\t\tthis.touchBoundary = options.touchBoundary || 10;\r\n\r\n\r\n\t\t/**\r\n\t\t * The FastClick layer.\r\n\t\t *\r\n\t\t * @type Element\r\n\t\t */\r\n\t\tthis.layer = layer;\r\n\r\n\t\t/**\r\n\t\t * The minimum time between tap(touchstart and touchend) events\r\n\t\t *\r\n\t\t * @type number\r\n\t\t */\r\n\t\tthis.tapDelay = options.tapDelay || 200;\r\n\r\n\t\t/**\r\n\t\t * The maximum time for a tap\r\n\t\t *\r\n\t\t * @type number\r\n\t\t */\r\n\t\tthis.tapTimeout = options.tapTimeout || 700;\r\n\r\n\t\tif (FastClick.notNeeded(layer)) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// Some old versions of Android don't have Function.prototype.bind\r\n\t\tfunction bind(method, context) {\r\n\t\t\treturn function() { return method.apply(context, arguments); };\r\n\t\t}\r\n\r\n\r\n\t\tvar methods = ['onMouse', 'onClick', 'onTouchStart', 'onTouchMove', 'onTouchEnd', 'onTouchCancel'];\r\n\t\tvar context = this;\r\n\t\tfor (var i = 0, l = methods.length; i < l; i++) {\r\n\t\t\tcontext[methods[i]] = bind(context[methods[i]], context);\r\n\t\t}\r\n\r\n\t\t// Set up event handlers as required\r\n\t\tif (deviceIsAndroid) {\r\n\t\t\tlayer.addEventListener('mouseover', this.onMouse, true);\r\n\t\t\tlayer.addEventListener('mousedown', this.onMouse, true);\r\n\t\t\tlayer.addEventListener('mouseup', this.onMouse, true);\r\n\t\t}\r\n\r\n\t\tlayer.addEventListener('click', this.onClick, true);\r\n\t\tlayer.addEventListener('touchstart', this.onTouchStart, false);\r\n\t\tlayer.addEventListener('touchmove', this.onTouchMove, false);\r\n\t\tlayer.addEventListener('touchend', this.onTouchEnd, false);\r\n\t\tlayer.addEventListener('touchcancel', this.onTouchCancel, false);\r\n\r\n\t\t// Hack is required for browsers that don't support Event#stopImmediatePropagation (e.g. Android 2)\r\n\t\t// which is how FastClick normally stops click events bubbling to callbacks registered on the FastClick\r\n\t\t// layer when they are cancelled.\r\n\t\tif (!Event.prototype.stopImmediatePropagation) {\r\n\t\t\tlayer.removeEventListener = function(type, callback, capture) {\r\n\t\t\t\tvar rmv = Node.prototype.removeEventListener;\r\n\t\t\t\tif (type === 'click') {\r\n\t\t\t\t\trmv.call(layer, type, callback.hijacked || callback, capture);\r\n\t\t\t\t} else {\r\n\t\t\t\t\trmv.call(layer, type, callback, capture);\r\n\t\t\t\t}\r\n\t\t\t};\r\n\r\n\t\t\tlayer.addEventListener = function(type, callback, capture) {\r\n\t\t\t\tvar adv = Node.prototype.addEventListener;\r\n\t\t\t\tif (type === 'click') {\r\n\t\t\t\t\tadv.call(layer, type, callback.hijacked || (callback.hijacked = function(event) {\r\n\t\t\t\t\t\tif (!event.propagationStopped) {\r\n\t\t\t\t\t\t\tcallback(event);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}), capture);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tadv.call(layer, type, callback, capture);\r\n\t\t\t\t}\r\n\t\t\t};\r\n\t\t}\r\n\r\n\t\t// If a handler is already declared in the element's onclick attribute, it will be fired before\r\n\t\t// FastClick's onClick handler. Fix this by pulling out the user-defined handler function and\r\n\t\t// adding it as listener.\r\n\t\tif (typeof layer.onclick === 'function') {\r\n\r\n\t\t\t// Android browser on at least 3.2 requires a new reference to the function in layer.onclick\r\n\t\t\t// - the old one won't work if passed to addEventListener directly.\r\n\t\t\toldOnClick = layer.onclick;\r\n\t\t\tlayer.addEventListener('click', function(event) {\r\n\t\t\t\toldOnClick(event);\r\n\t\t\t}, false);\r\n\t\t\tlayer.onclick = null;\r\n\t\t}\r\n\t}\r\n\r\n\t/**\r\n\t* Windows Phone 8.1 fakes user agent string to look like Android and iPhone.\r\n\t*\r\n\t* @type boolean\r\n\t*/\r\n\tvar deviceIsWindowsPhone = navigator.userAgent.indexOf(\"Windows Phone\") >= 0;\r\n\r\n\t/**\r\n\t * Android requires exceptions.\r\n\t *\r\n\t * @type boolean\r\n\t */\r\n\tvar deviceIsAndroid = navigator.userAgent.indexOf('Android') > 0 && !deviceIsWindowsPhone;\r\n\r\n\r\n\t/**\r\n\t * iOS requires exceptions.\r\n\t *\r\n\t * @type boolean\r\n\t */\r\n\tvar deviceIsIOS = /iP(ad|hone|od)/.test(navigator.userAgent) && !deviceIsWindowsPhone;\r\n\r\n\r\n\t/**\r\n\t * iOS 4 requires an exception for select elements.\r\n\t *\r\n\t * @type boolean\r\n\t */\r\n\tvar deviceIsIOS4 = deviceIsIOS && (/OS 4_\\d(_\\d)?/).test(navigator.userAgent);\r\n\r\n\r\n\t/**\r\n\t * iOS 6.0-7.* requires the target element to be manually derived\r\n\t *\r\n\t * @type boolean\r\n\t */\r\n\tvar deviceIsIOSWithBadTarget = deviceIsIOS && (/OS [6-7]_\\d/).test(navigator.userAgent);\r\n\r\n\t/**\r\n\t * BlackBerry requires exceptions.\r\n\t *\r\n\t * @type boolean\r\n\t */\r\n\tvar deviceIsBlackBerry10 = navigator.userAgent.indexOf('BB10') > 0;\r\n\r\n\t/**\r\n\t * Determine whether a given element requires a native click.\r\n\t *\r\n\t * @param {EventTarget|Element} target Target DOM element\r\n\t * @returns {boolean} Returns true if the element needs a native click\r\n\t */\r\n\tFastClick.prototype.needsClick = function(target) {\r\n\t\tswitch (target.nodeName.toLowerCase()) {\r\n\r\n\t\t// Don't send a synthetic click to disabled inputs (issue #62)\r\n\t\tcase 'button':\r\n\t\tcase 'select':\r\n\t\tcase 'textarea':\r\n\t\t\tif (target.disabled) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\r\n\t\t\tbreak;\r\n\t\tcase 'input':\r\n\r\n\t\t\t// File inputs need real clicks on iOS 6 due to a browser bug (issue #68)\r\n\t\t\tif ((deviceIsIOS && target.type === 'file') || target.disabled) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\r\n\t\t\tbreak;\r\n\t\tcase 'label':\r\n\t\tcase 'iframe': // iOS8 homescreen apps can prevent events bubbling into frames\r\n\t\tcase 'video':\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\treturn (/\\bneedsclick\\b/).test(target.className);\r\n\t};\r\n\r\n\r\n\t/**\r\n\t * Determine whether a given element requires a call to focus to simulate click into element.\r\n\t *\r\n\t * @param {EventTarget|Element} target Target DOM element\r\n\t * @returns {boolean} Returns true if the element requires a call to focus to simulate native click.\r\n\t */\r\n\tFastClick.prototype.needsFocus = function(target) {\r\n\t\tswitch (target.nodeName.toLowerCase()) {\r\n\t\tcase 'textarea':\r\n\t\t\treturn true;\r\n\t\tcase 'select':\r\n\t\t\treturn !deviceIsAndroid;\r\n\t\tcase 'input':\r\n\t\t\tswitch (target.type) {\r\n\t\t\tcase 'button':\r\n\t\t\tcase 'checkbox':\r\n\t\t\tcase 'file':\r\n\t\t\tcase 'image':\r\n\t\t\tcase 'radio':\r\n\t\t\tcase 'submit':\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\t// No point in attempting to focus disabled inputs\r\n\t\t\treturn !target.disabled && !target.readOnly;\r\n\t\tdefault:\r\n\t\t\treturn (/\\bneedsfocus\\b/).test(target.className);\r\n\t\t}\r\n\t};\r\n\r\n\r\n\t/**\r\n\t * Send a click event to the specified element.\r\n\t *\r\n\t * @param {EventTarget|Element} targetElement\r\n\t * @param {Event} event\r\n\t */\r\n\tFastClick.prototype.sendClick = function(targetElement, event) {\r\n\t\tvar clickEvent, touch;\r\n\r\n\t\t// On some Android devices activeElement needs to be blurred otherwise the synthetic click will have no effect (#24)\r\n\t\tif (document.activeElement && document.activeElement !== targetElement) {\r\n\t\t\tdocument.activeElement.blur();\r\n\t\t}\r\n\r\n\t\ttouch = event.changedTouches[0];\r\n\r\n\t\t// Synthesise a click event, with an extra attribute so it can be tracked\r\n\t\tclickEvent = document.createEvent('MouseEvents');\r\n\t\tclickEvent.initMouseEvent(this.determineEventType(targetElement), true, true, window, 1, touch.screenX, touch.screenY, touch.clientX, touch.clientY, false, false, false, false, 0, null);\r\n\t\tclickEvent.forwardedTouchEvent = true;\r\n\t\ttargetElement.dispatchEvent(clickEvent);\r\n\t};\r\n\r\n\tFastClick.prototype.determineEventType = function(targetElement) {\r\n\r\n\t\t//Issue #159: Android Chrome Select Box does not open with a synthetic click event\r\n\t\tif (deviceIsAndroid && targetElement.tagName.toLowerCase() === 'select') {\r\n\t\t\treturn 'mousedown';\r\n\t\t}\r\n\r\n\t\treturn 'click';\r\n\t};\r\n\r\n\r\n\t/**\r\n\t * @param {EventTarget|Element} targetElement\r\n\t */\r\n\tFastClick.prototype.focus = function(targetElement) {\r\n\t\tvar length;\r\n\r\n\t\t// Issue #160: on iOS 7, some input elements (e.g. date datetime month) throw a vague TypeError on setSelectionRange. These elements don't have an integer value for the selectionStart and selectionEnd properties, but unfortunately that can't be used for detection because accessing the properties also throws a TypeError. Just check the type instead. Filed as Apple bug #15122724.\r\n\t\tif (deviceIsIOS && targetElement.setSelectionRange && targetElement.type.indexOf('date') !== 0 && targetElement.type !== 'time' && targetElement.type !== 'month') {\r\n\t\t\tlength = targetElement.value.length;\r\n\t\t\ttargetElement.setSelectionRange(length, length);\r\n\t\t} else {\r\n\t\t\ttargetElement.focus();\r\n\t\t}\r\n\t};\r\n\r\n\r\n\t/**\r\n\t * Check whether the given target element is a child of a scrollable layer and if so, set a flag on it.\r\n\t *\r\n\t * @param {EventTarget|Element} targetElement\r\n\t */\r\n\tFastClick.prototype.updateScrollParent = function(targetElement) {\r\n\t\tvar scrollParent, parentElement;\r\n\r\n\t\tscrollParent = targetElement.fastClickScrollParent;\r\n\r\n\t\t// Attempt to discover whether the target element is contained within a scrollable layer. Re-check if the\r\n\t\t// target element was moved to another parent.\r\n\t\tif (!scrollParent || !scrollParent.contains(targetElement)) {\r\n\t\t\tparentElement = targetElement;\r\n\t\t\tdo {\r\n\t\t\t\tif (parentElement.scrollHeight > parentElement.offsetHeight) {\r\n\t\t\t\t\tscrollParent = parentElement;\r\n\t\t\t\t\ttargetElement.fastClickScrollParent = parentElement;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tparentElement = parentElement.parentElement;\r\n\t\t\t} while (parentElement);\r\n\t\t}\r\n\r\n\t\t// Always update the scroll top tracker if possible.\r\n\t\tif (scrollParent) {\r\n\t\t\tscrollParent.fastClickLastScrollTop = scrollParent.scrollTop;\r\n\t\t}\r\n\t};\r\n\r\n\r\n\t/**\r\n\t * @param {EventTarget} targetElement\r\n\t * @returns {Element|EventTarget}\r\n\t */\r\n\tFastClick.prototype.getTargetElementFromEventTarget = function(eventTarget) {\r\n\r\n\t\t// On some older browsers (notably Safari on iOS 4.1 - see issue #56) the event target may be a text node.\r\n\t\tif (eventTarget.nodeType === Node.TEXT_NODE) {\r\n\t\t\treturn eventTarget.parentNode;\r\n\t\t}\r\n\r\n\t\treturn eventTarget;\r\n\t};\r\n\r\n\r\n\t/**\r\n\t * On touch start, record the position and scroll offset.\r\n\t *\r\n\t * @param {Event} event\r\n\t * @returns {boolean}\r\n\t */\r\n\tFastClick.prototype.onTouchStart = function(event) {\r\n\t\tvar targetElement, touch, selection;\r\n\r\n\t\t// Ignore multiple touches, otherwise pinch-to-zoom is prevented if both fingers are on the FastClick element (issue #111).\r\n\t\tif (event.targetTouches.length > 1) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\ttargetElement = this.getTargetElementFromEventTarget(event.target);\r\n\t\ttouch = event.targetTouches[0];\r\n\r\n\t\tif (deviceIsIOS) {\r\n\r\n\t\t\t// Only trusted events will deselect text on iOS (issue #49)\r\n\t\t\tselection = window.getSelection();\r\n\t\t\tif (selection.rangeCount && !selection.isCollapsed) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\r\n\t\t\tif (!deviceIsIOS4) {\r\n\r\n\t\t\t\t// Weird things happen on iOS when an alert or confirm dialog is opened from a click event callback (issue #23):\r\n\t\t\t\t// when the user next taps anywhere else on the page, new touchstart and touchend events are dispatched\r\n\t\t\t\t// with the same identifier as the touch event that previously triggered the click that triggered the alert.\r\n\t\t\t\t// Sadly, there is an issue on iOS 4 that causes some normal touch events to have the same identifier as an\r\n\t\t\t\t// immediately preceeding touch event (issue #52), so this fix is unavailable on that platform.\r\n\t\t\t\t// Issue 120: touch.identifier is 0 when Chrome dev tools 'Emulate touch events' is set with an iOS device UA string,\r\n\t\t\t\t// which causes all touch events to be ignored. As this block only applies to iOS, and iOS identifiers are always long,\r\n\t\t\t\t// random integers, it's safe to to continue if the identifier is 0 here.\r\n\t\t\t\tif (touch.identifier && touch.identifier === this.lastTouchIdentifier) {\r\n\t\t\t\t\tevent.preventDefault();\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.lastTouchIdentifier = touch.identifier;\r\n\r\n\t\t\t\t// If the target element is a child of a scrollable layer (using -webkit-overflow-scrolling: touch) and:\r\n\t\t\t\t// 1) the user does a fling scroll on the scrollable layer\r\n\t\t\t\t// 2) the user stops the fling scroll with another tap\r\n\t\t\t\t// then the event.target of the last 'touchend' event will be the element that was under the user's finger\r\n\t\t\t\t// when the fling scroll was started, causing FastClick to send a click event to that layer - unless a check\r\n\t\t\t\t// is made to ensure that a parent layer was not scrolled before sending a synthetic click (issue #42).\r\n\t\t\t\tthis.updateScrollParent(targetElement);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tthis.trackingClick = true;\r\n\t\tthis.trackingClickStart = event.timeStamp;\r\n\t\tthis.targetElement = targetElement;\r\n\r\n\t\tthis.touchStartX = touch.pageX;\r\n\t\tthis.touchStartY = touch.pageY;\r\n\r\n\t\t// Prevent phantom clicks on fast double-tap (issue #36)\r\n\t\tif ((event.timeStamp - this.lastClickTime) < this.tapDelay) {\r\n\t\t\tevent.preventDefault();\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t};\r\n\r\n\r\n\t/**\r\n\t * Based on a touchmove event object, check whether the touch has moved past a boundary since it started.\r\n\t *\r\n\t * @param {Event} event\r\n\t * @returns {boolean}\r\n\t */\r\n\tFastClick.prototype.touchHasMoved = function(event) {\r\n\t\tvar touch = event.changedTouches[0], boundary = this.touchBoundary;\r\n\r\n\t\tif (Math.abs(touch.pageX - this.touchStartX) > boundary || Math.abs(touch.pageY - this.touchStartY) > boundary) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t};\r\n\r\n\r\n\t/**\r\n\t * Update the last position.\r\n\t *\r\n\t * @param {Event} event\r\n\t * @returns {boolean}\r\n\t */\r\n\tFastClick.prototype.onTouchMove = function(event) {\r\n\t\tif (!this.trackingClick) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\t// If the touch has moved, cancel the click tracking\r\n\t\tif (this.targetElement !== this.getTargetElementFromEventTarget(event.target) || this.touchHasMoved(event)) {\r\n\t\t\tthis.trackingClick = false;\r\n\t\t\tthis.targetElement = null;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t};\r\n\r\n\r\n\t/**\r\n\t * Attempt to find the labelled control for the given label element.\r\n\t *\r\n\t * @param {EventTarget|HTMLLabelElement} labelElement\r\n\t * @returns {Element|null}\r\n\t */\r\n\tFastClick.prototype.findControl = function(labelElement) {\r\n\r\n\t\t// Fast path for newer browsers supporting the HTML5 control attribute\r\n\t\tif (labelElement.control !== undefined) {\r\n\t\t\treturn labelElement.control;\r\n\t\t}\r\n\r\n\t\t// All browsers under test that support touch events also support the HTML5 htmlFor attribute\r\n\t\tif (labelElement.htmlFor) {\r\n\t\t\treturn document.getElementById(labelElement.htmlFor);\r\n\t\t}\r\n\r\n\t\t// If no for attribute exists, attempt to retrieve the first labellable descendant element\r\n\t\t// the list of which is defined here: http://www.w3.org/TR/html5/forms.html#category-label\r\n\t\treturn labelElement.querySelector('button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea');\r\n\t};\r\n\r\n\r\n\t/**\r\n\t * On touch end, determine whether to send a click event at once.\r\n\t *\r\n\t * @param {Event} event\r\n\t * @returns {boolean}\r\n\t */\r\n\tFastClick.prototype.onTouchEnd = function(event) {\r\n\t\tvar forElement, trackingClickStart, targetTagName, scrollParent, touch, targetElement = this.targetElement;\r\n\r\n\t\tif (!this.trackingClick) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\t// Prevent phantom clicks on fast double-tap (issue #36)\r\n\t\tif ((event.timeStamp - this.lastClickTime) < this.tapDelay) {\r\n\t\t\tthis.cancelNextClick = true;\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\tif ((event.timeStamp - this.trackingClickStart) > this.tapTimeout) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\t// Reset to prevent wrong click cancel on input (issue #156).\r\n\t\tthis.cancelNextClick = false;\r\n\r\n\t\tthis.lastClickTime = event.timeStamp;\r\n\r\n\t\ttrackingClickStart = this.trackingClickStart;\r\n\t\tthis.trackingClick = false;\r\n\t\tthis.trackingClickStart = 0;\r\n\r\n\t\t// On some iOS devices, the targetElement supplied with the event is invalid if the layer\r\n\t\t// is performing a transition or scroll, and has to be re-detected manually. Note that\r\n\t\t// for this to function correctly, it must be called *after* the event target is checked!\r\n\t\t// See issue #57; also filed as rdar://13048589 .\r\n\t\tif (deviceIsIOSWithBadTarget) {\r\n\t\t\ttouch = event.changedTouches[0];\r\n\r\n\t\t\t// In certain cases arguments of elementFromPoint can be negative, so prevent setting targetElement to null\r\n\t\t\ttargetElement = document.elementFromPoint(touch.pageX - window.pageXOffset, touch.pageY - window.pageYOffset) || targetElement;\r\n\t\t\ttargetElement.fastClickScrollParent = this.targetElement.fastClickScrollParent;\r\n\t\t}\r\n\r\n\t\ttargetTagName = targetElement.tagName.toLowerCase();\r\n\t\tif (targetTagName === 'label') {\r\n\t\t\tforElement = this.findControl(targetElement);\r\n\t\t\tif (forElement) {\r\n\t\t\t\tthis.focus(targetElement);\r\n\t\t\t\tif (deviceIsAndroid) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\r\n\t\t\t\ttargetElement = forElement;\r\n\t\t\t}\r\n\t\t} else if (this.needsFocus(targetElement)) {\r\n\r\n\t\t\t// Case 1: If the touch started a while ago (best guess is 100ms based on tests for issue #36) then focus will be triggered anyway. Return early and unset the target element reference so that the subsequent click will be allowed through.\r\n\t\t\t// Case 2: Without this exception for input elements tapped when the document is contained in an iframe, then any inputted text won't be visible even though the value attribute is updated as the user types (issue #37).\r\n\t\t\tif ((event.timeStamp - trackingClickStart) > 100 || (deviceIsIOS && window.top !== window && targetTagName === 'input')) {\r\n\t\t\t\tthis.targetElement = null;\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\tthis.focus(targetElement);\r\n\t\t\tthis.sendClick(targetElement, event);\r\n\r\n\t\t\t// Select elements need the event to go through on iOS 4, otherwise the selector menu won't open.\r\n\t\t\t// Also this breaks opening selects when VoiceOver is active on iOS6, iOS7 (and possibly others)\r\n\t\t\tif (!deviceIsIOS || targetTagName !== 'select') {\r\n\t\t\t\tthis.targetElement = null;\r\n\t\t\t\tevent.preventDefault();\r\n\t\t\t}\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (deviceIsIOS && !deviceIsIOS4) {\r\n\r\n\t\t\t// Don't send a synthetic click event if the target element is contained within a parent layer that was scrolled\r\n\t\t\t// and this tap is being used to stop the scrolling (usually initiated by a fling - issue #42).\r\n\t\t\tscrollParent = targetElement.fastClickScrollParent;\r\n\t\t\tif (scrollParent && scrollParent.fastClickLastScrollTop !== scrollParent.scrollTop) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Prevent the actual click from going though - unless the target node is marked as requiring\r\n\t\t// real clicks or if it is in the whitelist in which case only non-programmatic clicks are permitted.\r\n\t\tif (!this.needsClick(targetElement)) {\r\n\t\t\tevent.preventDefault();\r\n\t\t\tthis.sendClick(targetElement, event);\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t};\r\n\r\n\r\n\t/**\r\n\t * On touch cancel, stop tracking the click.\r\n\t *\r\n\t * @returns {void}\r\n\t */\r\n\tFastClick.prototype.onTouchCancel = function() {\r\n\t\tthis.trackingClick = false;\r\n\t\tthis.targetElement = null;\r\n\t};\r\n\r\n\r\n\t/**\r\n\t * Determine mouse events which should be permitted.\r\n\t *\r\n\t * @param {Event} event\r\n\t * @returns {boolean}\r\n\t */\r\n\tFastClick.prototype.onMouse = function(event) {\r\n\r\n\t\t// If a target element was never set (because a touch event was never fired) allow the event\r\n\t\tif (!this.targetElement) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\tif (event.forwardedTouchEvent) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\t// Programmatically generated events targeting a specific element should be permitted\r\n\t\tif (!event.cancelable) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\t// Derive and check the target element to see whether the mouse event needs to be permitted;\r\n\t\t// unless explicitly enabled, prevent non-touch click events from triggering actions,\r\n\t\t// to prevent ghost/doubleclicks.\r\n\t\tif (!this.needsClick(this.targetElement) || this.cancelNextClick) {\r\n\r\n\t\t\t// Prevent any user-added listeners declared on FastClick element from being fired.\r\n\t\t\tif (event.stopImmediatePropagation) {\r\n\t\t\t\tevent.stopImmediatePropagation();\r\n\t\t\t} else {\r\n\r\n\t\t\t\t// Part of the hack for browsers that don't support Event#stopImmediatePropagation (e.g. Android 2)\r\n\t\t\t\tevent.propagationStopped = true;\r\n\t\t\t}\r\n\r\n\t\t\t// Cancel the event\r\n\t\t\tevent.stopPropagation();\r\n\t\t\tevent.preventDefault();\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\t// If the mouse event is permitted, return true for the action to go through.\r\n\t\treturn true;\r\n\t};\r\n\r\n\r\n\t/**\r\n\t * On actual clicks, determine whether this is a touch-generated click, a click action occurring\r\n\t * naturally after a delay after a touch (which needs to be cancelled to avoid duplication), or\r\n\t * an actual click which should be permitted.\r\n\t *\r\n\t * @param {Event} event\r\n\t * @returns {boolean}\r\n\t */\r\n\tFastClick.prototype.onClick = function(event) {\r\n\t\tvar permitted;\r\n\r\n\t\t// It's possible for another FastClick-like library delivered with third-party code to fire a click event before FastClick does (issue #44). In that case, set the click-tracking flag back to false and return early. This will cause onTouchEnd to return early.\r\n\t\tif (this.trackingClick) {\r\n\t\t\tthis.targetElement = null;\r\n\t\t\tthis.trackingClick = false;\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\t// Very odd behaviour on iOS (issue #18): if a submit element is present inside a form and the user hits enter in the iOS simulator or clicks the Go button on the pop-up OS keyboard the a kind of 'fake' click event will be triggered with the submit-type input element as the target.\r\n\t\tif (event.target.type === 'submit' && event.detail === 0) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\tpermitted = this.onMouse(event);\r\n\r\n\t\t// Only unset targetElement if the click is not permitted. This will ensure that the check for !targetElement in onMouse fails and the browser's click doesn't go through.\r\n\t\tif (!permitted) {\r\n\t\t\tthis.targetElement = null;\r\n\t\t}\r\n\r\n\t\t// If clicks are permitted, return true for the action to go through.\r\n\t\treturn permitted;\r\n\t};\r\n\r\n\r\n\t/**\r\n\t * Remove all FastClick's event listeners.\r\n\t *\r\n\t * @returns {void}\r\n\t */\r\n\tFastClick.prototype.destroy = function() {\r\n\t\tvar layer = this.layer;\r\n\r\n\t\tif (deviceIsAndroid) {\r\n\t\t\tlayer.removeEventListener('mouseover', this.onMouse, true);\r\n\t\t\tlayer.removeEventListener('mousedown', this.onMouse, true);\r\n\t\t\tlayer.removeEventListener('mouseup', this.onMouse, true);\r\n\t\t}\r\n\r\n\t\tlayer.removeEventListener('click', this.onClick, true);\r\n\t\tlayer.removeEventListener('touchstart', this.onTouchStart, false);\r\n\t\tlayer.removeEventListener('touchmove', this.onTouchMove, false);\r\n\t\tlayer.removeEventListener('touchend', this.onTouchEnd, false);\r\n\t\tlayer.removeEventListener('touchcancel', this.onTouchCancel, false);\r\n\t};\r\n\r\n\r\n\t/**\r\n\t * Check whether FastClick is needed.\r\n\t *\r\n\t * @param {Element} layer The layer to listen on\r\n\t */\r\n\tFastClick.notNeeded = function(layer) {\r\n\t\tvar metaViewport;\r\n\t\tvar chromeVersion;\r\n\t\tvar blackberryVersion;\r\n\t\tvar firefoxVersion;\r\n\r\n\t\t// Devices that don't support touch don't need FastClick\r\n\t\tif (typeof window.ontouchstart === 'undefined') {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\t// Chrome version - zero for other browsers\r\n\t\tchromeVersion = +(/Chrome\\/([0-9]+)/.exec(navigator.userAgent) || [,0])[1];\r\n\r\n\t\tif (chromeVersion) {\r\n\r\n\t\t\tif (deviceIsAndroid) {\r\n\t\t\t\tmetaViewport = document.querySelector('meta[name=viewport]');\r\n\r\n\t\t\t\tif (metaViewport) {\r\n\t\t\t\t\t// Chrome on Android with user-scalable=\"no\" doesn't need FastClick (issue #89)\r\n\t\t\t\t\tif (metaViewport.content.indexOf('user-scalable=no') !== -1) {\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// Chrome 32 and above with width=device-width or less don't need FastClick\r\n\t\t\t\t\tif (chromeVersion > 31 && document.documentElement.scrollWidth <= window.outerWidth) {\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t// Chrome desktop doesn't need FastClick (issue #15)\r\n\t\t\t} else {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (deviceIsBlackBerry10) {\r\n\t\t\tblackberryVersion = navigator.userAgent.match(/Version\\/([0-9]*)\\.([0-9]*)/);\r\n\r\n\t\t\t// BlackBerry 10.3+ does not require Fastclick library.\r\n\t\t\t// https://github.com/ftlabs/fastclick/issues/251\r\n\t\t\tif (blackberryVersion[1] >= 10 && blackberryVersion[2] >= 3) {\r\n\t\t\t\tmetaViewport = document.querySelector('meta[name=viewport]');\r\n\r\n\t\t\t\tif (metaViewport) {\r\n\t\t\t\t\t// user-scalable=no eliminates click delay.\r\n\t\t\t\t\tif (metaViewport.content.indexOf('user-scalable=no') !== -1) {\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// width=device-width (or less than device-width) eliminates click delay.\r\n\t\t\t\t\tif (document.documentElement.scrollWidth <= window.outerWidth) {\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// IE10 with -ms-touch-action: none or manipulation, which disables double-tap-to-zoom (issue #97)\r\n\t\tif (layer.style.msTouchAction === 'none' || layer.style.touchAction === 'manipulation') {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\t// Firefox version - zero for other browsers\r\n\t\tfirefoxVersion = +(/Firefox\\/([0-9]+)/.exec(navigator.userAgent) || [,0])[1];\r\n\r\n\t\tif (firefoxVersion >= 27) {\r\n\t\t\t// Firefox 27+ does not have tap delay if the content is not zoomable - https://bugzilla.mozilla.org/show_bug.cgi?id=922896\r\n\r\n\t\t\tmetaViewport = document.querySelector('meta[name=viewport]');\r\n\t\t\tif (metaViewport && (metaViewport.content.indexOf('user-scalable=no') !== -1 || document.documentElement.scrollWidth <= window.outerWidth)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// IE11: prefixed -ms-touch-action is no longer supported and it's recomended to use non-prefixed version\r\n\t\t// http://msdn.microsoft.com/en-us/library/windows/apps/Hh767313.aspx\r\n\t\tif (layer.style.touchAction === 'none' || layer.style.touchAction === 'manipulation') {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t};\r\n\r\n\r\n\t/**\r\n\t * Factory method for creating a FastClick object\r\n\t *\r\n\t * @param {Element} layer The layer to listen on\r\n\t * @param {Object} [options={}] The options to override the defaults\r\n\t */\r\n\tFastClick.attach = function(layer, options) {\r\n\t\treturn new FastClick(layer, options);\r\n\t};\r\n\r\n\r\n\tif (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\r\n\r\n\t\t// AMD. Register as an anonymous module.\r\n\t\tdefine(function() {\r\n\t\t\treturn FastClick;\r\n\t\t});\r\n\t} else if (typeof module !== 'undefined' && module.exports) {\r\n\t\tmodule.exports = FastClick.attach;\r\n\t\tmodule.exports.FastClick = FastClick;\r\n\t} else {\r\n\t\twindow.FastClick = FastClick;\r\n\t}\r\n}());\r\n\n/** \r\n * Kendo UI v2016.1.112 (http://www.telerik.com/kendo-ui) \r\n * Copyright 2016 Telerik AD. All rights reserved. \r\n * \r\n * Kendo UI commercial licenses may be obtained at \r\n * http://www.telerik.com/purchase/license-agreement/kendo-ui-complete \r\n * If you do not own a commercial license, this file shall be governed by the trial license terms. \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n*/\r\n!function(e,define){define(\"kendo.core.min\",[\"jquery.min\"],e)}(function(){return function(e,t,n){function i(){}function r(e,t){if(t)return\"'\"+e.split(\"'\").join(\"\\\\'\").split('\\\\\"').join('\\\\\\\\\\\\\"').replace(/\\n/g,\"\\\\n\").replace(/\\r/g,\"\\\\r\").replace(/\\t/g,\"\\\\t\")+\"'\";var n=e.charAt(0),i=e.substring(1);return\"=\"===n?\"+(\"+i+\")+\":\":\"===n?\"+$kendoHtmlEncode(\"+i+\")+\":\";\"+e+\";$kendoOutput+=\"}function o(e,t,n){return e+=\"\",t=t||2,n=t-e.length,n?U[t].substring(0,n)+e:e}function a(e){var t=e.css(ve.support.transitions.css+\"box-shadow\")||e.css(\"box-shadow\"),n=t?t.match(Ae)||[0,0,0,0,0]:[0,0,0,0,0],i=xe.max(+n[3],+(n[4]||0));return{left:-n[1]+i,right:+n[1]+i,bottom:+n[2]+i}}function s(t,n){var i,r,o,s,l,c,d,u,h=Se.browser,f=\"rtl\"==t.css(\"direction\");return t.parent().hasClass(\"k-animation-container\")?(d=t.parent(\".k-animation-container\"),u=d[0].style,d.is(\":hidden\")&&d.show(),i=Te.test(u.width)||Te.test(u.height),i||d.css({width:t.outerWidth(),height:t.outerHeight(),boxSizing:\"content-box\",mozBoxSizing:\"content-box\",webkitBoxSizing:\"content-box\"})):(r=a(t),o=t[0].style.width,s=t[0].style.height,l=Te.test(o),c=Te.test(s),h.opera&&(r.left=r.right=r.bottom=5),i=l||c,!l&&(!n||n&&o)&&(o=t.outerWidth()),!c&&(!n||n&&s)&&(s=t.outerHeight()),t.wrap(e(\"
\").addClass(\"k-animation-container\").css({width:o,height:s,marginLeft:r.left*(f?1:-1),paddingLeft:r.left,paddingRight:r.right,paddingBottom:r.bottom})),i&&t.css({width:\"100%\",height:\"100%\",boxSizing:\"border-box\",mozBoxSizing:\"border-box\",webkitBoxSizing:\"border-box\"})),h.msie&&xe.floor(h.version)<=7&&(t.css({zoom:1}),t.children(\".k-menu\").width(t.width())),t.parent()}function l(e){var t=1,n=arguments.length;for(t=1;n>t;t++)c(e,arguments[t]);return e}function c(e,t){var n,i,r,o,a,s=ve.data.ObservableArray,l=ve.data.LazyObservableArray,d=ve.data.DataSource,u=ve.data.HierarchicalDataSource;for(n in t)i=t[n],r=typeof i,o=r===Re&&null!==i?i.constructor:null,o&&o!==Array&&o!==s&&o!==l&&o!==d&&o!==u?i instanceof Date?e[n]=new Date(i.getTime()):M(i.clone)?e[n]=i.clone():(a=e[n],e[n]=typeof a===Re?a||{}:{},c(e[n],i)):r!==Be&&(e[n]=i);return e}function d(e,t,i){for(var r in t)if(t.hasOwnProperty(r)&&t[r].test(e))return r;return i!==n?i:e}function u(e){return e.replace(/([a-z][A-Z])/g,function(e){return e.charAt(0)+\"-\"+e.charAt(1).toLowerCase()})}function h(e){return e.replace(/\\-(\\w)/g,function(e,t){return t.toUpperCase()})}function f(t,n){var i,r={};return document.defaultView&&document.defaultView.getComputedStyle?(i=document.defaultView.getComputedStyle(t,\"\"),n&&e.each(n,function(e,t){r[t]=i.getPropertyValue(t)})):(i=t.currentStyle,n&&e.each(n,function(e,t){r[t]=i[h(t)]})),ve.size(r)||(r=i),r}function p(e){if(e&&e.className&&\"string\"==typeof e.className&&e.className.indexOf(\"k-auto-scrollable\")>-1)return!0;var t=f(e,[\"overflow\"]).overflow;return\"auto\"==t||\"scroll\"==t}function m(t,i){var r,o=Se.browser.webkit,a=Se.browser.mozilla,s=t instanceof e?t[0]:t;if(t)return r=Se.isRtl(t),i===n?r&&o?s.scrollWidth-s.clientWidth-s.scrollLeft:Math.abs(s.scrollLeft):(s.scrollLeft=r&&o?s.scrollWidth-s.clientWidth-i:r&&a?-i:i,n)}function g(e){var t,n=0;for(t in e)e.hasOwnProperty(t)&&\"toJSON\"!=t&&n++;return n}function v(e,n,i){n||(n=\"offset\");var r=e[n]();return Se.browser.msie&&(Se.pointers||Se.msPointers)&&!i&&(r.top-=t.pageYOffset-document.documentElement.scrollTop,r.left-=t.pageXOffset-document.documentElement.scrollLeft),r}function _(e){var t={};return be(\"string\"==typeof e?e.split(\" \"):e,function(e){t[e]=this}),t}function b(e){return new ve.effects.Element(e)}function w(e,t,n,i){return typeof e===Fe&&(M(t)&&(i=t,t=400,n=!1),M(n)&&(i=n,n=!1),typeof t===ze&&(n=t,t=400),e={effects:e,duration:t,reverse:n,complete:i}),_e({effects:{},duration:400,reverse:!1,init:ke,teardown:ke,hide:!1},e,{completeCallback:e.complete,complete:ke})}function y(t,n,i,r,o){for(var a,s=0,l=t.length;l>s;s++)a=e(t[s]),a.queue(function(){j.promise(a,w(n,i,r,o))});return t}function k(e,t,n,i){return t&&(t=t.split(\" \"),be(t,function(t,n){e.toggleClass(n,i)})),e}function x(e){return(\"\"+e).replace(q,\"&\").replace(G,\"<\").replace(K,\">\").replace($,\""\").replace(Y,\"'\")}function C(e,t){var i;return 0===t.indexOf(\"data\")&&(t=t.substring(4),t=t.charAt(0).toLowerCase()+t.substring(1)),t=t.replace(re,\"-$1\"),i=e.getAttribute(\"data-\"+ve.ns+t),null===i?i=n:\"null\"===i?i=null:\"true\"===i?i=!0:\"false\"===i?i=!1:Ee.test(i)?i=parseFloat(i):ne.test(i)&&!ie.test(i)&&(i=Function(\"return (\"+i+\")\")()),i}function S(t,i){var r,o,a={};for(r in i)o=C(t,r),o!==n&&(te.test(r)&&(o=ve.template(e(\"#\"+o).html())),a[r]=o);return a}function T(t,n){return e.contains(t,n)?-1:1}function D(){var t=e(this);return e.inArray(t.attr(\"data-\"+ve.ns+\"role\"),[\"slider\",\"rangeslider\"])>-1||t.is(\":visible\")}function A(e,t){var n=e.nodeName.toLowerCase();return(/input|select|textarea|button|object/.test(n)?!e.disabled:\"a\"===n?e.href||t:t)&&E(e)}function E(t){return e.expr.filters.visible(t)&&!e(t).parents().addBack().filter(function(){return\"hidden\"===e.css(this,\"visibility\")}).length}function I(e,t){return new I.fn.init(e,t)}var F,M,R,P,z,B,L,H,N,O,V,U,W,j,q,G,$,Y,K,Q,X,J,Z,ee,te,ne,ie,re,oe,ae,se,le,ce,de,ue,he,fe,pe,me,ge,ve=t.kendo=t.kendo||{cultures:{}},_e=e.extend,be=e.each,we=e.isArray,ye=e.proxy,ke=e.noop,xe=Math,Ce=t.JSON||{},Se={},Te=/%/,De=/\\{(\\d+)(:[^\\}]+)?\\}/g,Ae=/(\\d+(?:\\.?)\\d*)px\\s*(\\d+(?:\\.?)\\d*)px\\s*(\\d+(?:\\.?)\\d*)px\\s*(\\d+)?/i,Ee=/^(\\+|-?)\\d+(\\.?)\\d*$/,Ie=\"function\",Fe=\"string\",Me=\"number\",Re=\"object\",Pe=\"null\",ze=\"boolean\",Be=\"undefined\",Le={},He={},Ne=[].slice;ve.version=\"2016.1.112\".replace(/^\\s+|\\s+$/g,\"\"),i.extend=function(e){var t,n,i=function(){},r=this,o=e&&e.init?e.init:function(){r.apply(this,arguments)};i.prototype=r.prototype,n=o.fn=o.prototype=new i;for(t in e)n[t]=null!=e[t]&&e[t].constructor===Object?_e(!0,{},i.prototype[t],e[t]):e[t];return n.constructor=o,o.extend=r.extend,o},i.prototype._initOptions=function(e){this.options=l({},this.options,e)},M=ve.isFunction=function(e){return\"function\"==typeof e},R=function(){this._defaultPrevented=!0},P=function(){return this._defaultPrevented===!0},z=i.extend({init:function(){this._events={}},bind:function(e,t,i){var r,o,a,s,l,c=this,d=typeof e===Fe?[e]:e,u=typeof t===Ie;if(t===n){for(r in e)c.bind(r,e[r]);return c}for(r=0,o=d.length;o>r;r++)e=d[r],s=u?t:t[e],s&&(i&&(a=s,s=function(){c.unbind(e,s),a.apply(c,arguments)},s.original=a),l=c._events[e]=c._events[e]||[],l.push(s));return c},one:function(e,t){return this.bind(e,t,!0)},first:function(e,t){var n,i,r,o,a=this,s=typeof e===Fe?[e]:e,l=typeof t===Ie;for(n=0,i=s.length;i>n;n++)e=s[n],r=l?t:t[e],r&&(o=a._events[e]=a._events[e]||[],o.unshift(r));return a},trigger:function(e,t){var n,i,r=this,o=r._events[e];if(o){for(t=t||{},t.sender=r,t._defaultPrevented=!1,t.preventDefault=R,t.isDefaultPrevented=P,o=o.slice(),n=0,i=o.length;i>n;n++)o[n].call(r,t);return t._defaultPrevented===!0}return!1},unbind:function(e,t){var i,r=this,o=r._events[e];if(e===n)r._events={};else if(o)if(t)for(i=o.length-1;i>=0;i--)(o[i]===t||o[i].original===t)&&o.splice(i,1);else r._events[e]=[];return r}}),B=/^\\w+/,L=/\\$\\{([^}]*)\\}/g,H=/\\\\\\}/g,N=/__CURLY__/g,O=/\\\\#/g,V=/__SHARP__/g,U=[\"\",\"0\",\"00\",\"000\",\"0000\"],F={paramName:\"data\",useWithBlock:!0,render:function(e,t){var n,i,r=\"\";for(n=0,i=t.length;i>n;n++)r+=e(t[n]);return r},compile:function(e,t){var n,i,o,a=_e({},this,t),s=a.paramName,l=s.match(B)[0],c=a.useWithBlock,d=\"var $kendoOutput, $kendoHtmlEncode = kendo.htmlEncode;\";if(M(e))return e;for(d+=c?\"with(\"+s+\"){\":\"\",d+=\"$kendoOutput=\",i=e.replace(H,\"__CURLY__\").replace(L,\"#=$kendoHtmlEncode($1)#\").replace(N,\"}\").replace(O,\"__SHARP__\").split(\"#\"),o=0;i.length>o;o++)d+=r(i[o],o%2===0);d+=c?\";}\":\";\",d+=\"return $kendoOutput;\",d=d.replace(V,\"#\");try{return n=Function(l,d),n._slotCount=Math.floor(i.length/2),n}catch(u){throw Error(ve.format(\"Invalid template:'{0}' Generated code:'{1}'\",e,d))}}},function(){function e(e){return a.lastIndex=0,a.test(e)?'\"'+e.replace(a,function(e){var t=s[e];return typeof t===Fe?t:\"\\\\u\"+(\"0000\"+e.charCodeAt(0).toString(16)).slice(-4)})+'\"':'\"'+e+'\"'}function t(o,a){var s,c,d,u,h,f,p=n,m=a[o];if(m&&typeof m===Re&&typeof m.toJSON===Ie&&(m=m.toJSON(o)),typeof r===Ie&&(m=r.call(a,o,m)),f=typeof m,f===Fe)return e(m);if(f===Me)return isFinite(m)?m+\"\":Pe;if(f===ze||f===Pe)return m+\"\";if(f===Re){if(!m)return Pe;if(n+=i,h=[],\"[object Array]\"===l.apply(m)){for(u=m.length,s=0;u>s;s++)h[s]=t(s,m)||Pe;return d=0===h.length?\"[]\":n?\"[\\n\"+n+h.join(\",\\n\"+n)+\"\\n\"+p+\"]\":\"[\"+h.join(\",\")+\"]\",n=p,d}if(r&&typeof r===Re)for(u=r.length,s=0;u>s;s++)typeof r[s]===Fe&&(c=r[s],d=t(c,m),d&&h.push(e(c)+(n?\": \":\":\")+d));else for(c in m)Object.hasOwnProperty.call(m,c)&&(d=t(c,m),d&&h.push(e(c)+(n?\": \":\":\")+d));return d=0===h.length?\"{}\":n?\"{\\n\"+n+h.join(\",\\n\"+n)+\"\\n\"+p+\"}\":\"{\"+h.join(\",\")+\"}\",n=p,d}}var n,i,r,a=/[\\\\\\\"\\x00-\\x1f\\x7f-\\x9f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]/g,s={\"\\b\":\"\\\\b\",\"\t\":\"\\\\t\",\"\\n\":\"\\\\n\",\"\\f\":\"\\\\f\",\"\\r\":\"\\\\r\",'\"':'\\\\\"',\"\\\\\":\"\\\\\\\\\"},l={}.toString;typeof Date.prototype.toJSON!==Ie&&(Date.prototype.toJSON=function(){var e=this;return isFinite(e.valueOf())?o(e.getUTCFullYear(),4)+\"-\"+o(e.getUTCMonth()+1)+\"-\"+o(e.getUTCDate())+\"T\"+o(e.getUTCHours())+\":\"+o(e.getUTCMinutes())+\":\"+o(e.getUTCSeconds())+\"Z\":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()}),typeof Ce.stringify!==Ie&&(Ce.stringify=function(e,o,a){var s;if(n=\"\",i=\"\",typeof a===Me)for(s=0;a>s;s+=1)i+=\" \";else typeof a===Fe&&(i=a);if(r=o,o&&typeof o!==Ie&&(typeof o!==Re||typeof o.length!==Me))throw Error(\"JSON.stringify\");return t(\"\",{\"\":e})})}(),function(){function e(e){if(e){if(e.numberFormat)return e;if(typeof e===Fe){var t=ve.cultures;return t[e]||t[e.split(\"-\")[0]]||null}return null}return null}function t(t){return t&&(t=e(t)),t||ve.cultures.current}function i(e,i,r){r=t(r);var a=r.calendars.standard,s=a.days,l=a.months;return i=a.patterns[i]||i,i.replace(c,function(t){var i,r,c;return\"d\"===t?r=e.getDate():\"dd\"===t?r=o(e.getDate()):\"ddd\"===t?r=s.namesAbbr[e.getDay()]:\"dddd\"===t?r=s.names[e.getDay()]:\"M\"===t?r=e.getMonth()+1:\"MM\"===t?r=o(e.getMonth()+1):\"MMM\"===t?r=l.namesAbbr[e.getMonth()]:\"MMMM\"===t?r=l.names[e.getMonth()]:\"yy\"===t?r=o(e.getFullYear()%100):\"yyyy\"===t?r=o(e.getFullYear(),4):\"h\"===t?r=e.getHours()%12||12:\"hh\"===t?r=o(e.getHours()%12||12):\"H\"===t?r=e.getHours():\"HH\"===t?r=o(e.getHours()):\"m\"===t?r=e.getMinutes():\"mm\"===t?r=o(e.getMinutes()):\"s\"===t?r=e.getSeconds():\"ss\"===t?r=o(e.getSeconds()):\"f\"===t?r=xe.floor(e.getMilliseconds()/100):\"ff\"===t?(r=e.getMilliseconds(),r>99&&(r=xe.floor(r/10)),r=o(r)):\"fff\"===t?r=o(e.getMilliseconds(),3):\"tt\"===t?r=e.getHours()<12?a.AM[0]:a.PM[0]:\"zzz\"===t?(i=e.getTimezoneOffset(),c=0>i,r=(\"\"+xe.abs(i/60)).split(\".\")[0],i=xe.abs(i)-60*r,r=(c?\"+\":\"-\")+o(r),r+=\":\"+o(i)):(\"zz\"===t||\"z\"===t)&&(r=e.getTimezoneOffset()/60,c=0>r,r=(\"\"+xe.abs(r)).split(\".\")[0],r=(c?\"+\":\"-\")+(\"zz\"===t?o(r):r)),r!==n?r:t.slice(1,t.length-1)})}function r(e,i,r){r=t(r);var o,l,c,b,w,y,k,x,C,S,T,D,A,E,I,F,M,R,P,z,B,L,H,N=r.numberFormat,O=N[p],V=N.decimals,U=N.pattern[0],W=[],j=0>e,q=f,G=f,$=-1;if(e===n)return f;if(!isFinite(e))return e;if(!i)return r.name.length?e.toLocaleString():\"\"+e;if(w=d.exec(i)){if(i=w[1].toLowerCase(),l=\"c\"===i,c=\"p\"===i,(l||c)&&(N=l?N.currency:N.percent,O=N[p],V=N.decimals,o=N.symbol,U=N.pattern[j?0:1]),b=w[2],b&&(V=+b),\"e\"===i)return b?e.toExponential(V):e.toExponential();if(c&&(e*=100),e=s(e,V),j=0>e,e=e.split(p),y=e[0],k=e[1],j&&(y=y.substring(1)),G=a(y,0,y.length,N),k&&(G+=O+k),\"n\"===i&&!j)return G;for(e=f,S=0,T=U.length;T>S;S++)D=U.charAt(S),e+=\"n\"===D?G:\"$\"===D||\"%\"===D?o:D;return e}if(j&&(e=-e),(i.indexOf(\"'\")>-1||i.indexOf('\"')>-1||i.indexOf(\"\\\\\")>-1)&&(i=i.replace(u,function(e){var t=e.charAt(0).replace(\"\\\\\",\"\"),n=e.slice(1).replace(t,\"\");return W.push(n),_})),i=i.split(\";\"),j&&i[1])i=i[1],E=!0;else if(0===e){if(i=i[2]||i[0],-1==i.indexOf(g)&&-1==i.indexOf(v))return i}else i=i[0];if(z=i.indexOf(\"%\"),B=i.indexOf(\"$\"),c=-1!=z,l=-1!=B,c&&(e*=100),l&&\"\\\\\"===i[B-1]&&(i=i.split(\"\\\\\").join(\"\"),l=!1),(l||c)&&(N=l?N.currency:N.percent,O=N[p],V=N.decimals,o=N.symbol),A=i.indexOf(m)>-1,A&&(i=i.replace(h,f)),I=i.indexOf(p),T=i.length,-1!=I?(k=(\"\"+e).split(\"e\"),k=k[1]?s(e,Math.abs(k[1])):k[0],k=k.split(p)[1]||f,M=i.lastIndexOf(v)-I,F=i.lastIndexOf(g)-I,R=M>-1,P=F>-1,S=k.length,R||P||(i=i.substring(0,I)+i.substring(I+1),T=i.length,I=-1,S=0),R&&M>F?S=M:F>M&&(P&&S>F?S=F:R&&M>S&&(S=M)),S>-1&&(e=s(e,S))):e=s(e),F=i.indexOf(g),L=M=i.indexOf(v),$=-1==F&&-1!=M?M:-1!=F&&-1==M?F:F>M?M:F,F=i.lastIndexOf(g),M=i.lastIndexOf(v),H=-1==F&&-1!=M?M:-1!=F&&-1==M?F:F>M?F:M,$==T&&(H=$),-1!=$){for(G=(\"\"+e).split(p),y=G[0],k=G[1]||f,x=y.length,C=k.length,j&&-1*e>=0&&(j=!1),e=i.substring(0,$),j&&!E&&(e+=\"-\"),S=$;T>S;S++){if(D=i.charAt(S),-1==I){if(x>H-S){e+=y;break}}else if(-1!=M&&S>M&&(q=f),x>=I-S&&I-S>-1&&(e+=y,S=I),I===S){e+=(k?O:f)+k,S+=H-I+1;continue}D===v?(e+=D,q=D):D===g&&(e+=q)}if(A&&(e=a(e,$,H,N)),H>=$&&(e+=i.substring(H+1)),l||c){for(G=f,S=0,T=e.length;T>S;S++)D=e.charAt(S),G+=\"$\"===D||\"%\"===D?o:D;e=G}if(T=W.length)for(S=0;T>S;S++)e=e.replace(_,W[S])}return e}var a,s,l,c=/dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yy|HH|H|hh|h|mm|m|fff|ff|f|tt|ss|s|zzz|zz|z|\"[^\"]*\"|'[^']*'/g,d=/^(n|c|p|e)(\\d*)$/i,u=/(\\\\.)|(['][^']*[']?)|([\"][^\"]*[\"]?)/g,h=/\\,/g,f=\"\",p=\".\",m=\",\",g=\"#\",v=\"0\",_=\"??\",b=\"en-US\",w={}.toString;ve.cultures[\"en-US\"]={name:b,numberFormat:{pattern:[\"-n\"],decimals:2,\",\":\",\",\".\":\".\",groupSize:[3],percent:{pattern:[\"-n %\",\"n %\"],decimals:2,\",\":\",\",\".\":\".\",groupSize:[3],symbol:\"%\"},currency:{name:\"US Dollar\",abbr:\"USD\",pattern:[\"($n)\",\"$n\"],decimals:2,\",\":\",\",\".\":\".\",groupSize:[3],symbol:\"$\"}},calendars:{standard:{days:{names:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"],namesAbbr:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],namesShort:[\"Su\",\"Mo\",\"Tu\",\"We\",\"Th\",\"Fr\",\"Sa\"]},months:{names:[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"],namesAbbr:[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"]},AM:[\"AM\",\"am\",\"AM\"],PM:[\"PM\",\"pm\",\"PM\"],patterns:{d:\"M/d/yyyy\",D:\"dddd, MMMM dd, yyyy\",F:\"dddd, MMMM dd, yyyy h:mm:ss tt\",g:\"M/d/yyyy h:mm tt\",G:\"M/d/yyyy h:mm:ss tt\",m:\"MMMM dd\",M:\"MMMM dd\",s:\"yyyy'-'MM'-'ddTHH':'mm':'ss\",t:\"h:mm tt\",T:\"h:mm:ss tt\",u:\"yyyy'-'MM'-'dd HH':'mm':'ss'Z'\",y:\"MMMM, yyyy\",Y:\"MMMM, yyyy\"},\"/\":\"/\",\":\":\":\",firstDay:0,twoDigitYearMax:2029}}},ve.culture=function(t){var i,r=ve.cultures;return t===n?r.current:(i=e(t)||r[b],i.calendar=i.calendars.standard,r.current=i,n)},ve.findCulture=e,ve.getCulture=t,ve.culture(b),a=function(e,t,i,r){var o,a,s,l,c,d,u=e.indexOf(r[p]),h=r.groupSize.slice(),f=h.shift();if(i=-1!==u?u:i+1,o=e.substring(t,i),a=o.length,a>=f){for(s=a,l=[];s>-1;)if(c=o.substring(s-f,s),c&&l.push(c),s-=f,d=h.shift(),f=d!==n?d:f,0===f){l.push(o.substring(0,s));break}o=l.reverse().join(r[m]),e=e.substring(0,t)+o+e.substring(i)}return e},s=function(e,t){return t=t||0,e=(\"\"+e).split(\"e\"),e=Math.round(+(e[0]+\"e\"+(e[1]?+e[1]+t:t))),e=(\"\"+e).split(\"e\"),e=+(e[0]+\"e\"+(e[1]?+e[1]-t:-t)),e.toFixed(t)},l=function(e,t,o){if(t){if(\"[object Date]\"===w.call(e))return i(e,t,o);if(typeof e===Me)return r(e,t,o)}return e!==n?e:\"\"},ve.format=function(e){var t=arguments;return e.replace(De,function(e,n,i){var r=t[parseInt(n,10)+1];return l(r,i?i.substring(1):\"\")})},ve._extractFormat=function(e){return\"{0:\"===e.slice(0,3)&&(e=e.slice(3,e.length-1)),e},ve._activeElement=function(){try{return document.activeElement}catch(e){return document.documentElement.activeElement}},ve._round=s,ve.toString=l}(),function(){function t(e,t,n){return!(e>=t&&n>=e)}function i(e){return e.charAt(0)}function r(t){return e.map(t,i)}function o(e,t){t||23!==e.getHours()||e.setHours(e.getHours()+2)}function a(e){for(var t=0,n=e.length,i=[];n>t;t++)i[t]=(e[t]+\"\").toLowerCase();return i}function s(e){var t,n={};for(t in e)n[t]=a(e[t]);return n}function l(e,i,a){if(!e)return null;var l,c,d,u,p,m,g,_,b,w,y,k,x,C=function(e){for(var t=0;i[B]===e;)t++,B++;return t>0&&(B-=1),t},S=function(t){var n=v[t]||RegExp(\"^\\\\d{1,\"+t+\"}\"),i=e.substr(L,t).match(n);return i?(i=i[0],L+=i.length,parseInt(i,10)):null},T=function(t,n){for(var i,r,o,a=0,s=t.length,l=0,c=0;s>a;a++)i=t[a],r=i.length,o=e.substr(L,r),n&&(o=o.toLowerCase()),o==i&&r>l&&(l=r,c=a);return l?(L+=l,c+1):null},D=function(){var t=!1;return e.charAt(L)===i[B]&&(L++,t=!0),t},A=a.calendars.standard,E=null,I=null,F=null,M=null,R=null,P=null,z=null,B=0,L=0,H=!1,N=new Date,O=A.twoDigitYearMax||2029,V=N.getFullYear();for(i||(i=\"d\"),u=A.patterns[i],u&&(i=u),i=i.split(\"\"),d=i.length;d>B;B++)if(l=i[B],H)\"'\"===l?H=!1:D();else if(\"d\"===l){if(c=C(\"d\"),A._lowerDays||(A._lowerDays=s(A.days)),null!==F&&c>2)continue;if(F=3>c?S(2):T(A._lowerDays[3==c?\"namesAbbr\":\"names\"],!0),null===F||t(F,1,31))return null}else if(\"M\"===l){if(c=C(\"M\"),A._lowerMonths||(A._lowerMonths=s(A.months)),I=3>c?S(2):T(A._lowerMonths[3==c?\"namesAbbr\":\"names\"],!0),null===I||t(I,1,12))return null;I-=1}else if(\"y\"===l){if(c=C(\"y\"),E=S(c),null===E)return null;2==c&&(\"string\"==typeof O&&(O=V+parseInt(O,10)),E=V-V%100+E,E>O&&(E-=100))}else if(\"h\"===l){if(C(\"h\"),M=S(2),12==M&&(M=0),null===M||t(M,0,11))return null}else if(\"H\"===l){if(C(\"H\"),M=S(2),null===M||t(M,0,23))return null}else if(\"m\"===l){if(C(\"m\"),R=S(2),null===R||t(R,0,59))return null}else if(\"s\"===l){if(C(\"s\"),P=S(2),null===P||t(P,0,59))return null}else if(\"f\"===l){if(c=C(\"f\"),x=e.substr(L,c).match(v[3]),z=S(c),null!==z&&(z=parseFloat(\"0.\"+x[0],10),z=ve._round(z,3),z*=1e3),null===z||t(z,0,999))return null}else if(\"t\"===l){if(c=C(\"t\"),_=A.AM,b=A.PM,1===c&&(_=r(_),b=r(b)),p=T(b),!p&&!T(_))return null}else if(\"z\"===l){if(m=!0,c=C(\"z\"),\"Z\"===e.substr(L,1)){D();continue}if(g=e.substr(L,6).match(c>2?f:h),!g)return null;if(g=g[0].split(\":\"),w=g[0],y=g[1],!y&&w.length>3&&(L=w.length-2,y=w.substring(L),w=w.substring(0,L)),w=parseInt(w,10),t(w,-12,13))return null;if(c>2&&(y=parseInt(y,10),isNaN(y)||t(y,0,59)))return null}else if(\"'\"===l)H=!0,D();else if(!D())return null;return k=null!==M||null!==R||P||null,null===E&&null===I&&null===F&&k?(E=V,I=N.getMonth(),F=N.getDate()):(null===E&&(E=V),null===F&&(F=1)),p&&12>M&&(M+=12),m?(w&&(M+=-w),y&&(R+=-y),e=new Date(Date.UTC(E,I,F,M,R,P,z))):(e=new Date(E,I,F,M,R,P,z),o(e,M)),100>E&&e.setFullYear(E),e.getDate()!==F&&m===n?null:e}function c(e){var t=\"-\"===e.substr(0,1)?-1:1;return e=e.substring(1),e=60*parseInt(e.substr(0,2),10)+parseInt(e.substring(2),10),t*e}var d=/\\u00A0/g,u=/[eE][\\-+]?[0-9]+/,h=/[+|\\-]\\d{1,2}/,f=/[+|\\-]\\d{1,2}:?\\d{2}/,p=/^\\/Date\\((.*?)\\)\\/$/,m=/[+-]\\d*/,g=[\"G\",\"g\",\"d\",\"F\",\"D\",\"y\",\"m\",\"T\",\"t\"],v={2:/^\\d{1,2}/,3:/^\\d{1,3}/,4:/^\\d{4}/},_={}.toString;ve.parseDate=function(e,t,n){var i,r,o,a,s;if(\"[object Date]\"===_.call(e))return e;if(i=0,r=null,e&&0===e.indexOf(\"/D\")&&(r=p.exec(e)))return r=r[1],s=m.exec(r.substring(1)),r=new Date(parseInt(r,10)),s&&(s=c(s[0]),r=ve.timezone.apply(r,0),r=ve.timezone.convert(r,0,-1*s)),r;if(n=ve.getCulture(n),!t){for(t=[],a=n.calendar.patterns,o=g.length;o>i;i++)t[i]=a[g[i]];i=0,t=[\"yyyy/MM/dd HH:mm:ss\",\"yyyy/MM/dd HH:mm\",\"yyyy/MM/dd\",\"ddd MMM dd yyyy HH:mm:ss\",\"yyyy-MM-ddTHH:mm:ss.fffffffzzz\",\"yyyy-MM-ddTHH:mm:ss.fffzzz\",\"yyyy-MM-ddTHH:mm:sszzz\",\"yyyy-MM-ddTHH:mm:ss.fffffff\",\"yyyy-MM-ddTHH:mm:ss.fff\",\"yyyy-MM-ddTHH:mmzzz\",\"yyyy-MM-ddTHH:mmzz\",\"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\"].concat(t)}for(t=we(t)?t:[t],o=t.length;o>i;i++)if(r=l(e,t[i],n))return r;return r},ve.parseInt=function(e,t){var n=ve.parseFloat(e,t);return n&&(n=0|n),n},ve.parseFloat=function(e,t,n){if(!e&&0!==e)return null;if(typeof e===Me)return e;e=\"\"+e,t=ve.getCulture(t);var i,r,o=t.numberFormat,a=o.percent,s=o.currency,l=s.symbol,c=a.symbol,h=e.indexOf(\"-\");return u.test(e)?(e=parseFloat(e.replace(o[\".\"],\".\")),isNaN(e)&&(e=null),e):h>0?null:(h=h>-1,e.indexOf(l)>-1||n&&n.toLowerCase().indexOf(\"c\")>-1?(o=s,i=o.pattern[0].replace(\"$\",l).split(\"n\"),e.indexOf(i[0])>-1&&e.indexOf(i[1])>-1&&(e=e.replace(i[0],\"\").replace(i[1],\"\"),h=!0)):e.indexOf(c)>-1&&(r=!0,o=a,l=c),e=e.replace(\"-\",\"\").replace(l,\"\").replace(d,\" \").split(o[\",\"].replace(d,\" \")).join(\"\").replace(o[\".\"],\".\"),e=parseFloat(e),isNaN(e)?e=null:h&&(e*=-1),e&&r&&(e/=100),e)}}(),function(){var i,r,o,a,s,l,c;Se._scrollbar=n,Se.scrollbar=function(e){if(isNaN(Se._scrollbar)||e){var t,n=document.createElement(\"div\");return n.style.cssText=\"overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block\",n.innerHTML=\" \",document.body.appendChild(n),Se._scrollbar=t=n.offsetWidth-n.scrollWidth,document.body.removeChild(n),t}return Se._scrollbar},Se.isRtl=function(t){return e(t).closest(\".k-rtl\").length>0},i=document.createElement(\"table\");try{i.innerHTML=\"\",Se.tbodyInnerHtml=!0}catch(u){Se.tbodyInnerHtml=!1}Se.touch=\"ontouchstart\"in t,Se.msPointers=t.MSPointerEvent,Se.pointers=t.PointerEvent,r=Se.transitions=!1,o=Se.transforms=!1,a=\"HTMLElement\"in t?HTMLElement.prototype:[],Se.hasHW3D=\"WebKitCSSMatrix\"in t&&\"m11\"in new t.WebKitCSSMatrix||\"MozPerspective\"in document.documentElement.style||\"msPerspective\"in document.documentElement.style,be([\"Moz\",\"webkit\",\"O\",\"ms\"],function(){var e,t=\"\"+this,a=typeof i.style[t+\"Transition\"]===Fe;return a||typeof i.style[t+\"Transform\"]===Fe?(e=t.toLowerCase(),o={css:\"ms\"!=e?\"-\"+e+\"-\":\"\",prefix:t,event:\"o\"===e||\"webkit\"===e?e:\"\"},a&&(r=o,r.event=r.event?r.event+\"TransitionEnd\":\"transitionend\"),!1):n}),i=null,Se.transforms=o,Se.transitions=r,Se.devicePixelRatio=t.devicePixelRatio===n?1:t.devicePixelRatio;try{Se.screenWidth=t.outerWidth||t.screen?t.screen.availWidth:t.innerWidth,Se.screenHeight=t.outerHeight||t.screen?t.screen.availHeight:t.innerHeight}catch(u){Se.screenWidth=t.screen.availWidth,Se.screenHeight=t.screen.availHeight}Se.detectOS=function(e){var n,i,r=!1,o=[],a=!/mobile safari/i.test(e),s={wp:/(Windows Phone(?: OS)?)\\s(\\d+)\\.(\\d+(\\.\\d+)?)/,fire:/(Silk)\\/(\\d+)\\.(\\d+(\\.\\d+)?)/,android:/(Android|Android.*(?:Opera|Firefox).*?\\/)\\s*(\\d+)\\.(\\d+(\\.\\d+)?)/,iphone:/(iPhone|iPod).*OS\\s+(\\d+)[\\._]([\\d\\._]+)/,ipad:/(iPad).*OS\\s+(\\d+)[\\._]([\\d_]+)/,meego:/(MeeGo).+NokiaBrowser\\/(\\d+)\\.([\\d\\._]+)/,webos:/(webOS)\\/(\\d+)\\.(\\d+(\\.\\d+)?)/,blackberry:/(BlackBerry|BB10).*?Version\\/(\\d+)\\.(\\d+(\\.\\d+)?)/,playbook:/(PlayBook).*?Tablet\\s*OS\\s*(\\d+)\\.(\\d+(\\.\\d+)?)/,windows:/(MSIE)\\s+(\\d+)\\.(\\d+(\\.\\d+)?)/,tizen:/(tizen).*?Version\\/(\\d+)\\.(\\d+(\\.\\d+)?)/i,sailfish:/(sailfish).*rv:(\\d+)\\.(\\d+(\\.\\d+)?).*firefox/i,ffos:/(Mobile).*rv:(\\d+)\\.(\\d+(\\.\\d+)?).*Firefox/},l={ios:/^i(phone|pad|pod)$/i,android:/^android|fire$/i,blackberry:/^blackberry|playbook/i,windows:/windows/,wp:/wp/,flat:/sailfish|ffos|tizen/i,meego:/meego/},c={tablet:/playbook|ipad|fire/i},u={omini:/Opera\\sMini/i,omobile:/Opera\\sMobi/i,firefox:/Firefox|Fennec/i,mobilesafari:/version\\/.*safari/i,ie:/MSIE|Windows\\sPhone/i,chrome:/chrome|crios/i,webkit:/webkit/i};for(i in s)if(s.hasOwnProperty(i)&&(o=e.match(s[i]))){if(\"windows\"==i&&\"plugins\"in navigator)return!1;r={},r.device=i,r.tablet=d(i,c,!1),r.browser=d(e,u,\"default\"),r.name=d(i,l),r[r.name]=!0,r.majorVersion=o[2],r.minorVersion=o[3].replace(\"_\",\".\"),n=r.minorVersion.replace(\".\",\"\").substr(0,2),r.flatVersion=r.majorVersion+n+Array(3-(3>n.length?n.length:2)).join(\"0\"),r.cordova=typeof t.PhoneGap!==Be||typeof t.cordova!==Be,r.appMode=t.navigator.standalone||/file|local|wmapp/.test(t.location.protocol)||r.cordova,r.android&&(1.5>Se.devicePixelRatio&&400>r.flatVersion||a)&&(Se.screenWidth>800||Se.screenHeight>800)&&(r.tablet=i);break}return r},s=Se.mobileOS=Se.detectOS(navigator.userAgent),Se.wpDevicePixelRatio=s.wp?screen.width/320:0,Se.kineticScrollNeeded=s&&(Se.touch||Se.msPointers||Se.pointers),Se.hasNativeScrolling=!1,(s.ios||s.android&&s.majorVersion>2||s.wp)&&(Se.hasNativeScrolling=s),Se.delayedClick=function(){if(Se.touch){if(s.ios)return!0;if(s.android)return Se.browser.chrome?32>Se.browser.version?!1:!(e(\"meta[name=viewport]\").attr(\"content\")||\"\").match(/user-scalable=no/i):!0}return!1},Se.mouseAndTouchPresent=Se.touch&&!(Se.mobileOS.ios||Se.mobileOS.android),Se.detectBrowser=function(e){var t,n=!1,i=[],r={edge:/(edge)[ \\/]([\\w.]+)/i,webkit:/(chrome)[ \\/]([\\w.]+)/i,safari:/(webkit)[ \\/]([\\w.]+)/i,opera:/(opera)(?:.*version|)[ \\/]([\\w.]+)/i,msie:/(msie\\s|trident.*? rv:)([\\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\\w.]+)|)/i};for(t in r)if(r.hasOwnProperty(t)&&(i=e.match(r[t]))){n={},n[t]=!0,n[i[1].toLowerCase().split(\" \")[0].split(\"/\")[0]]=!0,n.version=parseInt(document.documentMode||i[2],10);break}return n},Se.browser=Se.detectBrowser(navigator.userAgent),Se.detectClipboardAccess=function(){var e={copy:document.queryCommandSupported?document.queryCommandSupported(\"copy\"):!1,cut:document.queryCommandSupported?document.queryCommandSupported(\"cut\"):!1,paste:document.queryCommandSupported?document.queryCommandSupported(\"paste\"):!1};return Se.browser.chrome&&Se.browser.version>=43&&(e.copy=!0,e.cut=!0),e},Se.clipboard=Se.detectClipboardAccess(),Se.zoomLevel=function(){var e,n,i;try{return e=Se.browser,n=0,i=document.documentElement,e.msie&&11==e.version&&i.scrollHeight>i.clientHeight&&!Se.touch&&(n=Se.scrollbar()),Se.touch?i.clientWidth/t.innerWidth:e.msie&&e.version>=10?((top||t).document.documentElement.offsetWidth+n)/(top||t).innerWidth:1}catch(r){return 1}},Se.cssBorderSpacing=n!==document.documentElement.style.borderSpacing&&!(Se.browser.msie&&8>Se.browser.version),function(t){var n=\"\",i=e(document.documentElement),r=parseInt(t.version,10);t.msie?n=\"ie\":t.mozilla?n=\"ff\":t.safari?n=\"safari\":t.webkit?n=\"webkit\":t.opera?n=\"opera\":t.edge&&(n=\"edge\"),n&&(n=\"k-\"+n+\" k-\"+n+r),Se.mobileOS&&(n+=\" k-mobile\"),i.addClass(n)}(Se.browser),Se.eventCapture=document.documentElement.addEventListener,l=document.createElement(\"input\"),Se.placeholder=\"placeholder\"in l,Se.propertyChangeEvent=\"onpropertychange\"in l,Se.input=function(){for(var e,t=[\"number\",\"date\",\"time\",\"month\",\"week\",\"datetime\",\"datetime-local\"],n=t.length,i=\"test\",r={},o=0;n>o;o++)e=t[o],l.setAttribute(\"type\",e),l.value=i,r[e.replace(\"-\",\"\")]=\"text\"!==l.type&&l.value!==i;return r}(),l.style.cssText=\"float:left;\",Se.cssFloat=!!l.style.cssFloat,l=null,Se.stableSort=function(){var e,t=513,n=[{index:0,field:\"b\"}];for(e=1;t>e;e++)n.push({index:e,field:\"a\"});return n.sort(function(e,t){return e.field>t.field?1:t.field>e.field?-1:0}),1===n[0].index}(),Se.matchesSelector=a.webkitMatchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector||a.matchesSelector||a.matches||function(t){for(var n=document.querySelectorAll?(this.parentNode||document).querySelectorAll(t)||[]:e(t),i=n.length;i--;)if(n[i]==this)return!0;return!1},Se.pushState=t.history&&t.history.pushState,c=document.documentMode,Se.hashChange=\"onhashchange\"in t&&!(Se.browser.msie&&(!c||8>=c)),Se.customElements=\"registerElement\"in t.document}(),W={left:{reverse:\"right\"},right:{reverse:\"left\"},down:{reverse:\"up\"},up:{reverse:\"down\"},top:{reverse:\"bottom\"},bottom:{reverse:\"top\"},\"in\":{reverse:\"out\"},out:{reverse:\"in\"}},j={},e.extend(j,{enabled:!0,Element:function(t){this.element=e(t)},promise:function(e,t){e.is(\":visible\")||e.css({display:e.data(\"olddisplay\")||\"block\"}).css(\"display\"),t.hide&&e.data(\"olddisplay\",e.css(\"display\")).hide(),t.init&&t.init(),t.completeCallback&&t.completeCallback(e),e.dequeue()},disable:function(){this.enabled=!1,this.promise=this.promiseShim},enable:function(){this.enabled=!0,this.promise=this.animatedPromise}}),j.promiseShim=j.promise,\"kendoAnimate\"in e.fn||_e(e.fn,{kendoStop:function(e,t){return this.stop(e,t)},kendoAnimate:function(e,t,n,i){return y(this,e,t,n,i)},kendoAddClass:function(e,t){return ve.toggleClass(this,e,t,!0)},kendoRemoveClass:function(e,t){return ve.toggleClass(this,e,t,!1)},kendoToggleClass:function(e,t,n){return ve.toggleClass(this,e,t,n)}}),q=/&/g,G=//g,Q=function(e){return e.target},Se.touch&&(Q=function(e){var t=\"originalEvent\"in e?e.originalEvent.changedTouches:\"changedTouches\"in e?e.changedTouches:null;return t?document.elementFromPoint(t[0].clientX,t[0].clientY):e.target},be([\"swipe\",\"swipeLeft\",\"swipeRight\",\"swipeUp\",\"swipeDown\",\"doubleTap\",\"tap\"],function(t,n){e.fn[n]=function(e){return this.bind(n,e)}})),Se.touch?Se.mobileOS?(Se.mousedown=\"touchstart\",Se.mouseup=\"touchend\",Se.mousemove=\"touchmove\",Se.mousecancel=\"touchcancel\",Se.click=\"touchend\",Se.resize=\"orientationchange\"):(Se.mousedown=\"mousedown touchstart\",Se.mouseup=\"mouseup touchend\",Se.mousemove=\"mousemove touchmove\",Se.mousecancel=\"mouseleave touchcancel\",Se.click=\"click\",Se.resize=\"resize\"):Se.pointers?(Se.mousemove=\"pointermove\",Se.mousedown=\"pointerdown\",Se.mouseup=\"pointerup\",Se.mousecancel=\"pointercancel\",Se.click=\"pointerup\",Se.resize=\"orientationchange resize\"):Se.msPointers?(Se.mousemove=\"MSPointerMove\",Se.mousedown=\"MSPointerDown\",Se.mouseup=\"MSPointerUp\",Se.mousecancel=\"MSPointerCancel\",Se.click=\"MSPointerUp\",Se.resize=\"orientationchange resize\"):(Se.mousemove=\"mousemove\",Se.mousedown=\"mousedown\",Se.mouseup=\"mouseup\",Se.mousecancel=\"mouseleave\",Se.click=\"click\",Se.resize=\"resize\"),X=function(e,t){var n,i,r,o,a=t||\"d\",s=1;for(i=0,r=e.length;r>i;i++)o=e[i],\"\"!==o&&(n=o.indexOf(\"[\"),0!==n&&(-1==n?o=\".\"+o:(s++,o=\".\"+o.substring(0,n)+\" || {})\"+o.substring(n))),s++,a+=o+(r-1>i?\" || {})\":\")\"));return Array(s).join(\"(\")+a},J=/^([a-z]+:)?\\/\\//i,_e(ve,{widgets:[],_widgetRegisteredCallbacks:[],ui:ve.ui||{},fx:ve.fx||b,effects:ve.effects||j,mobile:ve.mobile||{},data:ve.data||{},dataviz:ve.dataviz||{},drawing:ve.drawing||{},spreadsheet:{messages:{}},keys:{INSERT:45,DELETE:46,BACKSPACE:8,TAB:9,ENTER:13,ESC:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,END:35,HOME:36,SPACEBAR:32,PAGEUP:33,PAGEDOWN:34,F2:113,F10:121,F12:123,NUMPAD_PLUS:107,NUMPAD_MINUS:109,NUMPAD_DOT:110},support:ve.support||Se,animate:ve.animate||y,ns:\"\",attr:function(e){return\"data-\"+ve.ns+e},getShadows:a,wrap:s,deepExtend:l,getComputedStyles:f,webComponents:ve.webComponents||[],isScrollable:p,scrollLeft:m,size:g,toCamelCase:h,toHyphens:u,getOffset:ve.getOffset||v,parseEffects:ve.parseEffects||_,toggleClass:ve.toggleClass||k,directions:ve.directions||W,Observable:z,Class:i,Template:F,template:ye(F.compile,F),render:ye(F.render,F),stringify:ye(Ce.stringify,Ce),eventTarget:Q,htmlEncode:x,isLocalUrl:function(e){return e&&!J.test(e)},expr:function(e,t,n){return e=e||\"\",typeof t==Fe&&(n=t,t=!1),n=n||\"d\",e&&\"[\"!==e.charAt(0)&&(e=\".\"+e),t?(e=e.replace(/\"([^.]*)\\.([^\"]*)\"/g,'\"$1_$DOT$_$2\"'),e=e.replace(/'([^.]*)\\.([^']*)'/g,\"'$1_$DOT$_$2'\"),e=X(e.split(\".\"),n),e=e.replace(/_\\$DOT\\$_/g,\".\")):e=n+e,e},getter:function(e,t){var n=e+t;return Le[n]=Le[n]||Function(\"d\",\"return \"+ve.expr(e,t))},setter:function(e){return He[e]=He[e]||Function(\"d,value\",ve.expr(e)+\"=value\")},accessor:function(e){return{get:ve.getter(e),set:ve.setter(e)}},guid:function(){var e,t,n=\"\";for(e=0;32>e;e++)t=16*xe.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},roleSelector:function(e){return e.replace(/(\\S+)/g,\"[\"+ve.attr(\"role\")+\"=$1],\").slice(0,-1)},directiveSelector:function(e){var t,n=e.split(\" \");if(n)for(t=0;n.length>t;t++)\"view\"!=n[t]&&(n[t]=n[t].replace(/(\\w*)(view|bar|strip|over)$/,\"$1-$2\"));return n.join(\" \").replace(/(\\S+)/g,\"kendo-mobile-$1,\").slice(0,-1)},triggeredByInput:function(e){return/^(label|input|textarea|select)$/i.test(e.target.tagName)},onWidgetRegistered:function(e){for(var t=0,n=ve.widgets.length;n>t;t++)e(ve.widgets[t]);ve._widgetRegisteredCallbacks.push(e)},logToConsole:function(e){var i=t.console;!ve.suppressLog&&n!==i&&i.log&&i.log(e)}}),Z=z.extend({init:function(e,t){var n,i=this;i.element=ve.jQuery(e).handler(i),i.angular(\"init\",t),z.fn.init.call(i),n=t?t.dataSource:null,n&&(t=_e({},t,{dataSource:{}})),t=i.options=_e(!0,{},i.options,t),n&&(t.dataSource=n),i.element.attr(ve.attr(\"role\"))||i.element.attr(ve.attr(\"role\"),(t.name||\"\").toLowerCase()),i.element.data(\"kendo\"+t.prefix+t.name,i),i.bind(i.events,t)},events:[],options:{prefix:\"\"},_hasBindingTarget:function(){\r\nreturn!!this.element[0].kendoBindingTarget},_tabindex:function(e){e=e||this.wrapper;var t=this.element,n=\"tabindex\",i=e.attr(n)||t.attr(n);t.removeAttr(n),e.attr(n,isNaN(i)?0:i)},setOptions:function(t){this._setEvents(t),e.extend(this.options,t)},_setEvents:function(e){for(var t,n=this,i=0,r=n.events.length;r>i;i++)t=n.events[i],n.options[t]&&e[t]&&n.unbind(t,n.options[t]);n.bind(n.events,e)},resize:function(e){var t=this.getSize(),n=this._size;(e||(t.width>0||t.height>0)&&(!n||t.width!==n.width||t.height!==n.height))&&(this._size=t,this._resize(t,e),this.trigger(\"resize\",t))},getSize:function(){return ve.dimensions(this.element)},size:function(e){return e?(this.setSize(e),n):this.getSize()},setSize:e.noop,_resize:e.noop,destroy:function(){var e=this;e.element.removeData(\"kendo\"+e.options.prefix+e.options.name),e.element.removeData(\"handler\"),e.unbind()},_destroy:function(){this.destroy()},angular:function(){},_muteAngularRebind:function(e){this._muteRebind=!0,e.call(this),this._muteRebind=!1}}),ee=Z.extend({dataItems:function(){return this.dataSource.flatView()},_angularItems:function(t){var n=this;n.angular(t,function(){return{elements:n.items(),data:e.map(n.dataItems(),function(e){return{dataItem:e}})}})}}),ve.dimensions=function(e,t){var n=e[0];return t&&e.css(t),{width:n.offsetWidth,height:n.offsetHeight}},ve.notify=ke,te=/template$/i,ne=/^\\s*(?:\\{(?:.|\\r\\n|\\n)*\\}|\\[(?:.|\\r\\n|\\n)*\\])\\s*$/,ie=/^\\{(\\d+)(:[^\\}]+)?\\}|^\\[[A-Za-z_]*\\]$/,re=/([A-Z])/g,ve.initWidget=function(i,r,o){var a,s,l,c,d,u,h,f,p,m,g,v,_;if(o?o.roles&&(o=o.roles):o=ve.ui.roles,i=i.nodeType?i:i[0],u=i.getAttribute(\"data-\"+ve.ns+\"role\")){p=-1===u.indexOf(\".\"),l=p?o[u]:ve.getter(u)(t),g=e(i).data(),v=l?\"kendo\"+l.fn.options.prefix+l.fn.options.name:\"\",m=p?RegExp(\"^kendo.*\"+u+\"$\",\"i\"):RegExp(\"^\"+v+\"$\",\"i\");for(_ in g)if(_.match(m)){if(_!==v)return g[_];a=g[_]}if(l){for(f=C(i,\"dataSource\"),r=e.extend({},S(i,l.fn.options),r),f&&(r.dataSource=typeof f===Fe?ve.getter(f)(t):f),c=0,d=l.fn.events.length;d>c;c++)s=l.fn.events[c],h=C(i,s),h!==n&&(r[s]=ve.getter(h)(t));return a?e.isEmptyObject(r)||a.setOptions(r):a=new l(i,r),a}}},ve.rolesFromNamespaces=function(e){var t,n,i=[];for(e[0]||(e=[ve.ui,ve.dataviz.ui]),t=0,n=e.length;n>t;t++)i[t]=e[t].roles;return _e.apply(null,[{}].concat(i.reverse()))},ve.init=function(t){var n=ve.rolesFromNamespaces(Ne.call(arguments,1));e(t).find(\"[data-\"+ve.ns+\"role]\").addBack().each(function(){ve.initWidget(this,{},n)})},ve.destroy=function(t){e(t).find(\"[data-\"+ve.ns+\"role]\").addBack().each(function(){var t,n=e(this).data();for(t in n)0===t.indexOf(\"kendo\")&&typeof n[t].destroy===Ie&&n[t].destroy()})},ve.resize=function(t,n){var i,r=e(t).find(\"[data-\"+ve.ns+\"role]\").addBack().filter(D);r.length&&(i=e.makeArray(r),i.sort(T),e.each(i,function(){var t=ve.widgetInstance(e(this));t&&t.resize(n)}))},ve.parseOptions=S,_e(ve.ui,{Widget:Z,DataBoundWidget:ee,roles:{},progress:function(t,n){var i,r,o,a,s=t.find(\".k-loading-mask\"),l=ve.support,c=l.browser;n?s.length||(i=l.isRtl(t),r=i?\"right\":\"left\",a=t.scrollLeft(),o=c.webkit&&i?t[0].scrollWidth-t.width()-2*a:0,s=e(\"
Loading...
\").width(\"100%\").height(\"100%\").css(\"top\",t.scrollTop()).css(r,Math.abs(a)+o).prependTo(t)):s&&s.remove()},plugin:function(t,i,r){var o,a,s,l,c=t.fn.options.name;for(i=i||ve.ui,r=r||\"\",i[c]=t,i.roles[c.toLowerCase()]=t,o=\"getKendo\"+r+c,c=\"kendo\"+r+c,a={name:c,widget:t,prefix:r||\"\"},ve.widgets.push(a),s=0,l=ve._widgetRegisteredCallbacks.length;l>s;s++)ve._widgetRegisteredCallbacks[s](a);e.fn[c]=function(i){var r,o=this;return typeof i===Fe?(r=Ne.call(arguments,1),this.each(function(){var t,a,s=e.data(this,c);if(!s)throw Error(ve.format(\"Cannot call method '{0}' of {1} before it is initialized\",i,c));if(t=s[i],typeof t!==Ie)throw Error(ve.format(\"Cannot find method '{0}' of {1}\",i,c));return a=t.apply(s,r),a!==n?(o=a,!1):n})):this.each(function(){return new t(this,i)}),o},e.fn[c].widget=t,e.fn[o]=function(){return this.data(c)}}}),oe={bind:function(){return this},nullObject:!0,options:{}},ae=Z.extend({init:function(e,t){Z.fn.init.call(this,e,t),this.element.autoApplyNS(),this.wrapper=this.element,this.element.addClass(\"km-widget\")},destroy:function(){Z.fn.destroy.call(this),this.element.kendoDestroy()},options:{prefix:\"Mobile\"},events:[],view:function(){var e=this.element.closest(ve.roleSelector(\"view splitview modalview drawer\"));return ve.widgetInstance(e,ve.mobile.ui)||oe},viewHasNativeScrolling:function(){var e=this.view();return e&&e.options.useNativeScrolling},container:function(){var e=this.element.closest(ve.roleSelector(\"view layout modalview drawer splitview\"));return ve.widgetInstance(e.eq(0),ve.mobile.ui)||oe}}),_e(ve.mobile,{init:function(e){ve.init(e,ve.mobile.ui,ve.ui,ve.dataviz.ui)},appLevelNativeScrolling:function(){return ve.mobile.application&&ve.mobile.application.options&&ve.mobile.application.options.useNativeScrolling},roles:{},ui:{Widget:ae,DataBoundWidget:ee.extend(ae.prototype),roles:{},plugin:function(e){ve.ui.plugin(e,ve.mobile.ui,\"Mobile\")}}}),l(ve.dataviz,{init:function(e){ve.init(e,ve.dataviz.ui)},ui:{roles:{},themes:{},views:[],plugin:function(e){ve.ui.plugin(e,ve.dataviz.ui)}},roles:{}}),ve.touchScroller=function(t,n){return n||(n={}),n.useNative=!0,e(t).map(function(t,i){return i=e(i),Se.kineticScrollNeeded&&ve.mobile.ui.Scroller&&!i.data(\"kendoMobileScroller\")?(i.kendoMobileScroller(n),i.data(\"kendoMobileScroller\")):!1})[0]},ve.preventDefault=function(e){e.preventDefault()},ve.widgetInstance=function(e,n){var i,r,o,a,s=e.data(ve.ns+\"role\"),l=[];if(s){if(\"content\"===s&&(s=\"scroller\"),n)if(n[0])for(i=0,r=n.length;r>i;i++)l.push(n[i].roles[s]);else l.push(n.roles[s]);else l=[ve.ui.roles[s],ve.dataviz.ui.roles[s],ve.mobile.ui.roles[s]];for(s.indexOf(\".\")>=0&&(l=[ve.getter(s)(t)]),i=0,r=l.length;r>i;i++)if(o=l[i],o&&(a=e.data(\"kendo\"+o.fn.options.prefix+o.fn.options.name)))return a}},ve.onResize=function(n){var i=n;return Se.mobileOS.android&&(i=function(){setTimeout(n,600)}),e(t).on(Se.resize,i),i},ve.unbindResize=function(n){e(t).off(Se.resize,n)},ve.attrValue=function(e,t){return e.data(ve.ns+t)},ve.days={Sunday:0,Monday:1,Tuesday:2,Wednesday:3,Thursday:4,Friday:5,Saturday:6},e.extend(e.expr[\":\"],{kendoFocusable:function(t){var n=e.attr(t,\"tabindex\");return A(t,!isNaN(n)&&n>-1)}}),se=[\"mousedown\",\"mousemove\",\"mouseenter\",\"mouseleave\",\"mouseover\",\"mouseout\",\"mouseup\",\"click\"],le=\"label, input, [data-rel=external]\",ce={setupMouseMute:function(){var t,n=0,i=se.length,r=document.documentElement;if(!ce.mouseTrap&&Se.eventCapture)for(ce.mouseTrap=!0,ce.bustClick=!1,ce.captureMouse=!1,t=function(t){ce.captureMouse&&(\"click\"===t.type?ce.bustClick&&!e(t.target).is(le)&&(t.preventDefault(),t.stopPropagation()):t.stopPropagation())};i>n;n++)r.addEventListener(se[n],t,!0)},muteMouse:function(e){ce.captureMouse=!0,e.data.bustClick&&(ce.bustClick=!0),clearTimeout(ce.mouseTrapTimeoutID)},unMuteMouse:function(){clearTimeout(ce.mouseTrapTimeoutID),ce.mouseTrapTimeoutID=setTimeout(function(){ce.captureMouse=!1,ce.bustClick=!1},400)}},de={down:\"touchstart mousedown\",move:\"mousemove touchmove\",up:\"mouseup touchend touchcancel\",cancel:\"mouseleave touchcancel\"},Se.touch&&(Se.mobileOS.ios||Se.mobileOS.android)?de={down:\"touchstart\",move:\"touchmove\",up:\"touchend touchcancel\",cancel:\"touchcancel\"}:Se.pointers?de={down:\"pointerdown\",move:\"pointermove\",up:\"pointerup\",cancel:\"pointercancel pointerleave\"}:Se.msPointers&&(de={down:\"MSPointerDown\",move:\"MSPointerMove\",up:\"MSPointerUp\",cancel:\"MSPointerCancel MSPointerLeave\"}),!Se.msPointers||\"onmspointerenter\"in t||e.each({MSPointerEnter:\"MSPointerOver\",MSPointerLeave:\"MSPointerOut\"},function(t,n){e.event.special[t]={delegateType:n,bindType:n,handle:function(t){var i,r=this,o=t.relatedTarget,a=t.handleObj;return(!o||o!==r&&!e.contains(r,o))&&(t.type=a.origType,i=a.handler.apply(this,arguments),t.type=n),i}}}),ue=function(e){return de[e]||e},he=/([^ ]+)/g,ve.applyEventMap=function(e,t){return e=e.replace(he,ue),t&&(e=e.replace(he,\"$1.\"+t)),e},fe=e.fn.on,_e(!0,I,e),I.fn=I.prototype=new e,I.fn.constructor=I,I.fn.init=function(t,n){return n&&n instanceof e&&!(n instanceof I)&&(n=I(n)),e.fn.init.call(this,t,n,pe)},I.fn.init.prototype=I.fn,pe=I(document),_e(I.fn,{handler:function(e){return this.data(\"handler\",e),this},autoApplyNS:function(e){return this.data(\"kendoNS\",e||ve.guid()),this},on:function(){var e,t,n,i,r,o,a=this,s=a.data(\"kendoNS\");return 1===arguments.length?fe.call(a,arguments[0]):(e=a,t=Ne.call(arguments),typeof t[t.length-1]===Be&&t.pop(),n=t[t.length-1],i=ve.applyEventMap(t[0],s),Se.mouseAndTouchPresent&&i.search(/mouse|click/)>-1&&this[0]!==document.documentElement&&(ce.setupMouseMute(),r=2===t.length?null:t[1],o=i.indexOf(\"click\")>-1&&i.indexOf(\"touchend\")>-1,fe.call(this,{touchstart:ce.muteMouse,touchend:ce.unMuteMouse},r,{bustClick:o})),typeof n===Fe&&(e=a.data(\"handler\"),n=e[n],t[t.length-1]=function(t){n.call(e,t)}),t[0]=i,fe.apply(a,t),a)},kendoDestroy:function(e){return e=e||this.data(\"kendoNS\"),e&&this.off(\".\"+e),this}}),ve.jQuery=I,ve.eventMap=de,ve.timezone=function(){function e(e,t){var n,i,r,o=t[3],a=t[4],s=t[5],l=t[8];return l||(t[8]=l={}),l[e]?l[e]:(isNaN(a)?0===a.indexOf(\"last\")?(n=new Date(Date.UTC(e,d[o]+1,1,s[0]-24,s[1],s[2],0)),i=u[a.substr(4,3)],r=n.getUTCDay(),n.setUTCDate(n.getUTCDate()+i-r-(i>r?7:0))):a.indexOf(\">=\")>=0&&(n=new Date(Date.UTC(e,d[o],a.substr(5),s[0],s[1],s[2],0)),i=u[a.substr(0,3)],r=n.getUTCDay(),n.setUTCDate(n.getUTCDate()+i-r+(r>i?7:0))):n=new Date(Date.UTC(e,d[o],a,s[0],s[1],s[2],0)),l[e]=n)}function t(t,n,i){var r,o,a,s;return(n=n[i])?(a=new Date(t).getUTCFullYear(),n=jQuery.grep(n,function(e){var t=e[0],n=e[1];return a>=t&&(n>=a||t==a&&\"only\"==n||\"max\"==n)}),n.push(t),n.sort(function(t,n){return\"number\"!=typeof t&&(t=+e(a,t)),\"number\"!=typeof n&&(n=+e(a,n)),t-n}),s=n[jQuery.inArray(t,n)-1]||n[n.length-1],isNaN(s)?s:null):(r=i.split(\":\"),o=0,r.length>1&&(o=60*r[0]+ +r[1]),[-1e6,\"max\",\"-\",\"Jan\",1,[0,0,0],o,\"-\"])}function n(e,t,n){var i,r,o,a=t[n];if(\"string\"==typeof a&&(a=t[a]),!a)throw Error('Timezone \"'+n+'\" is either incorrect, or kendo.timezones.min.js is not included.');for(i=a.length-1;i>=0&&(r=a[i][3],!(r&&e>r));i--);if(o=a[i+1],!o)throw Error('Timezone \"'+n+'\" not found on '+e+\".\");return o}function i(e,i,r,o){typeof e!=Me&&(e=Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));var a=n(e,i,o);return{zone:a,rule:t(e,r,a[1])}}function r(e,t){var n,r,o;return\"Etc/UTC\"==t||\"Etc/GMT\"==t?0:(n=i(e,this.zones,this.rules,t),r=n.zone,o=n.rule,ve.parseFloat(o?r[0]-o[6]:r[0]))}function o(e,t){var n=i(e,this.zones,this.rules,t),r=n.zone,o=n.rule,a=r[2];return a.indexOf(\"/\")>=0?a.split(\"/\")[o&&+o[6]?1:0]:a.indexOf(\"%s\")>=0?a.replace(\"%s\",o&&\"-\"!=o[7]?o[7]:\"\"):a}function a(e,t,n){var i,r;return typeof t==Fe&&(t=this.offset(e,t)),typeof n==Fe&&(n=this.offset(e,n)),i=e.getTimezoneOffset(),e=new Date(e.getTime()+6e4*(t-n)),r=e.getTimezoneOffset(),new Date(e.getTime()+6e4*(r-i))}function s(e,t){return this.convert(e,e.getTimezoneOffset(),t)}function l(e,t){return this.convert(e,t,e.getTimezoneOffset())}function c(e){return this.apply(new Date(e),\"Etc/UTC\")}var d={Jan:0,Feb:1,Mar:2,Apr:3,May:4,Jun:5,Jul:6,Aug:7,Sep:8,Oct:9,Nov:10,Dec:11},u={Sun:0,Mon:1,Tue:2,Wed:3,Thu:4,Fri:5,Sat:6};return{zones:{},rules:{},offset:r,convert:a,apply:s,remove:l,abbr:o,toLocalDate:c}}(),ve.date=function(){function e(e,t){return 0===t&&23===e.getHours()?(e.setHours(e.getHours()+2),!0):!1}function t(t,n,i){var r=t.getHours();i=i||1,n=(n-t.getDay()+7*i)%7,t.setDate(t.getDate()+n),e(t,r)}function n(e,n,i){return e=new Date(e),t(e,n,i),e}function i(e){return new Date(e.getFullYear(),e.getMonth(),1)}function r(e){var t=new Date(e.getFullYear(),e.getMonth()+1,0),n=i(e),r=Math.abs(t.getTimezoneOffset()-n.getTimezoneOffset());return r&&t.setHours(n.getHours()+r/60),t}function o(t){return t=new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0),e(t,0),t}function a(e){return Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function s(e){return e.getTime()-o(e)}function l(e,t,n){var i,r=s(t),o=s(n);return e&&r!=o?(t>=n&&(n+=v),i=s(e),r>i&&(i+=v),r>o&&(o+=v),i>=r&&o>=i):!0}function c(e,t,n){var i,r=t.getTime(),o=n.getTime();return r>=o&&(o+=v),i=e.getTime(),i>=r&&o>=i}function d(t,n){var i=t.getHours();return t=new Date(t),u(t,n*v),e(t,i),t}function u(e,t,n){var i,r=e.getTimezoneOffset();e.setTime(e.getTime()+t),n||(i=e.getTimezoneOffset()-r,e.setTime(e.getTime()+i*g))}function h(t,n){return t=new Date(ve.date.getDate(t).getTime()+ve.date.getMilliseconds(n)),e(t,n.getHours()),t}function f(){return o(new Date)}function p(e){return o(e).getTime()==f().getTime()}function m(e){var t=new Date(1980,1,1,0,0,0);return e&&t.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t}var g=6e4,v=864e5;return{adjustDST:e,dayOfWeek:n,setDayOfWeek:t,getDate:o,isInDateRange:c,isInTimeRange:l,isToday:p,nextDay:function(e){return d(e,1)},previousDay:function(e){return d(e,-1)},toUtcTime:a,MS_PER_DAY:v,MS_PER_HOUR:60*g,MS_PER_MINUTE:g,setTime:u,setHours:h,addDays:d,today:f,toInvariantTime:m,firstDayOfMonth:i,lastDayOfMonth:r,getMilliseconds:s}}(),ve.stripWhitespace=function(e){var t,n,i;if(document.createNodeIterator)for(t=document.createNodeIterator(e,NodeFilter.SHOW_TEXT,function(t){return t.parentNode==e?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},!1);t.nextNode();)t.referenceNode&&!t.referenceNode.textContent.trim()&&t.referenceNode.parentNode.removeChild(t.referenceNode);else for(n=0;e.childNodes.length>n;n++)i=e.childNodes[n],3!=i.nodeType||/\\S/.test(i.nodeValue)||(e.removeChild(i),n--),1==i.nodeType&&ve.stripWhitespace(i)},me=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||t.msRequestAnimationFrame||function(e){setTimeout(e,1e3/60)},ve.animationFrame=function(e){me.call(t,e)},ge=[],ve.queueAnimation=function(e){ge[ge.length]=e,1===ge.length&&ve.runNextAnimation()},ve.runNextAnimation=function(){ve.animationFrame(function(){ge[0]&&(ge.shift()(),ge[0]&&ve.runNextAnimation())})},ve.parseQueryStringParams=function(e){for(var t=e.split(\"?\")[1]||\"\",n={},i=t.split(/&|=/),r=i.length,o=0;r>o;o+=2)\"\"!==i[o]&&(n[decodeURIComponent(i[o])]=decodeURIComponent(i[o+1]));return n},ve.elementUnderCursor=function(e){return n!==e.x.client?document.elementFromPoint(e.x.client,e.y.client):n},ve.wheelDeltaY=function(e){var t,i=e.originalEvent,r=i.wheelDeltaY;return i.wheelDelta?(r===n||r)&&(t=i.wheelDelta):i.detail&&i.axis===i.VERTICAL_AXIS&&(t=10*-i.detail),t},ve.throttle=function(e,t){var i,r,o=0;return!t||0>=t?e:(r=function(){function r(){e.apply(a,l),o=+new Date}var a=this,s=+new Date-o,l=arguments;return o?(i&&clearTimeout(i),s>t?r():i=setTimeout(r,t-s),n):r()},r.cancel=function(){clearTimeout(i)},r)},ve.caret=function(t,i,r){var o,a,s,l,c=i!==n;if(r===n&&(r=i),t[0]&&(t=t[0]),!c||!t.disabled){try{t.selectionStart!==n?c?(t.focus(),t.setSelectionRange(i,r)):i=[t.selectionStart,t.selectionEnd]:document.selection&&(e(t).is(\":visible\")&&t.focus(),o=t.createTextRange(),c?(o.collapse(!0),o.moveStart(\"character\",i),o.moveEnd(\"character\",r-i),o.select()):(a=o.duplicate(),o.moveToBookmark(document.selection.createRange().getBookmark()),a.setEndPoint(\"EndToStart\",o),s=a.text.length,l=s+o.text.length,i=[s,l]))}catch(d){i=[]}return i}},ve.compileMobileDirective=function(e,n){var i=t.angular;return e.attr(\"data-\"+ve.ns+\"role\",e[0].tagName.toLowerCase().replace(\"kendo-mobile-\",\"\").replace(\"-\",\"\")),i.element(e).injector().invoke([\"$compile\",function(t){t(e)(n),/^\\$(digest|apply)$/.test(n.$$phase)||n.$digest()}]),ve.widgetInstance(e,ve.mobile.ui)},ve.antiForgeryTokens=function(){var t={},i=e(\"meta[name=csrf-token],meta[name=_csrf]\").attr(\"content\"),r=e(\"meta[name=csrf-param],meta[name=_csrf_header]\").attr(\"content\");return e(\"input[name^='__RequestVerificationToken']\").each(function(){t[this.name]=this.value}),r!==n&&i!==n&&(t[r]=i),t},ve.cycleForm=function(e){function t(e){var t=ve.widgetInstance(e);t&&t.focus?t.focus():e.focus()}var n=e.find(\"input, .k-widget\").first(),i=e.find(\"button, .k-button\").last();i.on(\"keydown\",function(e){e.keyCode!=ve.keys.TAB||e.shiftKey||(e.preventDefault(),t(n))}),n.on(\"keydown\",function(e){e.keyCode==ve.keys.TAB&&e.shiftKey&&(e.preventDefault(),t(i))})},function(){function n(t,n,i,r){var o,a,s=e(\"
\").attr({action:i,method:\"POST\",target:r}),l=ve.antiForgeryTokens();l.fileName=n,o=t.split(\";base64,\"),l.contentType=o[0].replace(\"data:\",\"\"),l.base64=o[1];for(a in l)l.hasOwnProperty(a)&&e(\"\").attr({value:l[a],name:a,type:\"hidden\"}).appendTo(s);s.appendTo(\"body\").submit().remove()}function i(e,t){var n,i,r,o,a,s=e;if(\"string\"==typeof e){for(n=e.split(\";base64,\"),i=n[0],r=atob(n[1]),o=new Uint8Array(r.length),a=0;r.length>a;a++)o[a]=r.charCodeAt(a);s=new Blob([o.buffer],{type:i})}navigator.msSaveBlob(s,t)}function r(e,n){t.Blob&&e instanceof Blob&&(e=URL.createObjectURL(e)),o.download=n,o.href=e;var i=document.createEvent(\"MouseEvents\");i.initMouseEvent(\"click\",!0,!1,t,0,0,0,0,0,!1,!1,!1,!1,0,null),o.dispatchEvent(i)}var o=document.createElement(\"a\"),a=\"download\"in o&&!ve.support.browser.edge;ve.saveAs=function(e){var t=n;e.forceProxy||(a?t=r:navigator.msSaveBlob&&(t=i)),t(e.dataURI,e.fileName,e.proxyURL,e.proxyTarget)}}(),ve.proxyModelSetters=function(e){var t={};return Object.keys(e).forEach(function(n){Object.defineProperty(t,n,{get:function(){return e[n]},set:function(t){e[n]=t,e.dirty=!0}})}),t}}(jQuery,window),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.router.min\",[\"kendo.core.min\"],e)}(function(){return function(e,t){function n(e,t){if(!t)return e;e+\"/\"===t&&(e=t);var n=RegExp(\"^\"+t,\"i\");return n.test(e)||(e=t+\"/\"+e),f.protocol+\"//\"+(f.host+\"/\"+e).replace(/\\/\\/+/g,\"/\")}function i(e){return e?\"#!\":\"#\"}function r(e){var t=f.href;return\"#!\"===e&&t.indexOf(\"#\")>-1&&t.indexOf(\"#!\")<0?null:t.split(e)[1]||\"\"}function o(e,t){return 0===t.indexOf(e)?t.substr(e.length).replace(/\\/\\//g,\"/\"):t}function a(e){return e.replace(/^(#)?/,\"#\")}function s(e){return e.replace(/^(#(!)?)?/,\"#!\")}var l=window.kendo,c=\"change\",d=\"back\",u=\"same\",h=l.support,f=window.location,p=window.history,m=50,g=l.support.browser.msie,v=/^#*/,_=window.document,b=l.Class.extend({back:function(){g?setTimeout(function(){p.back()}):p.back()},forward:function(){g?setTimeout(function(){p.forward()}):p.forward()},length:function(){return p.length},replaceLocation:function(e){f.replace(e)}}),w=b.extend({init:function(e){this.root=e},navigate:function(e){p.pushState({},_.title,n(e,this.root))},replace:function(e){p.replaceState({},_.title,n(e,this.root))},normalize:function(e){return o(this.root,e)},current:function(){var e=f.pathname;return f.search&&(e+=f.search),o(this.root,e)},change:function(t){e(window).bind(\"popstate.kendo\",t)},stop:function(){e(window).unbind(\"popstate.kendo\")},normalizeCurrent:function(e){var t,o=e.root,a=f.pathname,s=r(i(e.hashBang));o===a+\"/\"&&(t=o),o===a&&s&&(t=n(s.replace(v,\"\"),o)),t&&p.pushState({},_.title,t)}}),y=b.extend({init:function(e){this._id=l.guid(),this.prefix=i(e),this.fix=e?s:a},navigate:function(e){f.hash=this.fix(e)},replace:function(e){this.replaceLocation(this.fix(e))},normalize:function(e){return e.indexOf(this.prefix)<0?e:e.split(this.prefix)[1]},change:function(t){h.hashChange?e(window).on(\"hashchange.\"+this._id,t):this._interval=setInterval(t,m)},stop:function(){e(window).off(\"hashchange.\"+this._id),clearInterval(this._interval)},current:function(){return r(this.prefix)},normalizeCurrent:function(e){var t=f.pathname,n=e.root;return e.pushState&&n!==t?(this.replaceLocation(n+this.prefix+o(n,t)),!0):!1}}),k=l.Observable.extend({start:function(t){if(t=t||{},this.bind([c,d,u],t),!this._started){this._started=!0,t.root=t.root||\"/\";var n,i=this.createAdapter(t);i.normalizeCurrent(t)||(n=i.current(),e.extend(this,{adapter:i,root:t.root,historyLength:i.length(),current:n,locations:[n]}),i.change(e.proxy(this,\"_checkUrl\")))}},createAdapter:function(e){return h.pushState&&e.pushState?new w(e.root):new y(e.hashBang)},stop:function(){this._started&&(this.adapter.stop(),this.unbind(c),this._started=!1)},change:function(e){this.bind(c,e)},replace:function(e,t){this._navigate(e,t,function(t){t.replace(e),this.locations[this.locations.length-1]=this.current})},navigate:function(e,n){return\"#:back\"===e?(this.backCalled=!0,this.adapter.back(),t):(this._navigate(e,n,function(t){t.navigate(e),this.locations.push(this.current)}),t)},_navigate:function(e,n,i){var r=this.adapter;return e=r.normalize(e),this.current===e||this.current===decodeURIComponent(e)?(this.trigger(u),t):((n||!this.trigger(c,{url:e}))&&(this.current=e,i.call(this,r),this.historyLength=r.length()),t)},_checkUrl:function(){var e=this.adapter,n=e.current(),i=e.length(),r=this.historyLength===i,o=n===this.locations[this.locations.length-2]&&r,a=this.backCalled,s=this.current;return null===n||this.current===n||this.current===decodeURIComponent(n)?!0:(this.historyLength=i,this.backCalled=!1,this.current=n,o&&this.trigger(\"back\",{url:s,to:n})?(e.forward(),this.current=s,t):this.trigger(c,{url:n,backButtonPressed:!a})?(o?e.forward():(e.back(),this.historyLength--),this.current=s,t):(o?this.locations.pop():this.locations.push(n),t))}});l.History=k,l.History.HistoryAdapter=b,l.History.HashAdapter=y,l.History.PushStateAdapter=w,l.absoluteURL=n,l.history=new k}(window.kendo.jQuery),function(){function e(e,t){return t?e:\"([^/]+)\"}function t(t,n){return RegExp(\"^\"+t.replace(p,\"\\\\$&\").replace(u,\"(?:$1)?\").replace(h,e).replace(f,\"(.*?)\")+\"$\",n?\"i\":\"\")}function n(e){return e.replace(/(\\?.*)|(#.*)/g,\"\")}var i=window.kendo,r=i.history,o=i.Observable,a=\"init\",s=\"routeMissing\",l=\"change\",c=\"back\",d=\"same\",u=/\\((.*?)\\)/g,h=/(\\(\\?)?:\\w+/g,f=/\\*\\w+/g,p=/[\\-{}\\[\\]+?.,\\\\\\^$|#\\s]/g,m=i.Class.extend({init:function(e,n,i){e instanceof RegExp||(e=t(e,i)),this.route=e,this._callback=n},callback:function(e,t){var r,o,a=0,s=i.parseQueryStringParams(e);for(s._back=t,e=n(e),r=this.route.exec(e).slice(1),o=r.length;o>a;a++)void 0!==r[a]&&(r[a]=decodeURIComponent(r[a]));r.push(s),this._callback.apply(null,r)},worksWith:function(e,t){return this.route.test(n(e))?(this.callback(e,t),!0):!1}}),g=o.extend({init:function(e){e||(e={}),o.fn.init.call(this),this.routes=[],this.pushState=e.pushState,this.hashBang=e.hashBang,this.root=e.root,this.ignoreCase=e.ignoreCase!==!1,this.bind([a,s,l,d],e)},destroy:function(){r.unbind(l,this._urlChangedProxy),r.unbind(d,this._sameProxy),r.unbind(c,this._backProxy),this.unbind()},start:function(){var e,t=this,n=function(){t._same()},i=function(e){t._back(e)},o=function(e){t._urlChanged(e)};r.start({same:n,change:o,back:i,pushState:t.pushState,hashBang:t.hashBang,root:t.root}),e={url:r.current||\"/\",preventDefault:$.noop},t.trigger(a,e)||t._urlChanged(e),this._urlChangedProxy=o,this._backProxy=i},route:function(e,t){this.routes.push(new m(e,t,this.ignoreCase))},navigate:function(e,t){i.history.navigate(e,t)},replace:function(e,t){i.history.replace(e,t)},_back:function(e){this.trigger(c,{url:e.url,to:e.to})&&e.preventDefault()},_same:function(){this.trigger(d)},_urlChanged:function(e){var t,n,r,o,a=e.url,c=e.backButtonPressed;if(a||(a=\"/\"),this.trigger(l,{url:e.url,params:i.parseQueryStringParams(e.url),backButtonPressed:c}))return void e.preventDefault();for(t=0,n=this.routes,o=n.length;o>t;t++)if(r=n[t],r.worksWith(a,c))return;this.trigger(s,{url:a,params:i.parseQueryStringParams(a),backButtonPressed:c})&&e.preventDefault()}});i.Router=g}(),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.data.odata.min\",[\"kendo.core.min\"],e)}(function(){return function(e,t){function n(i,o){var l,c,d,u,h,f,p,m,g=[],v=i.logic||\"and\",_=i.filters;for(l=0,c=_.length;c>l;l++)i=_[l],d=i.field,p=i.value,f=i.operator,i.filters?i=n(i,o):(m=i.ignoreCase,d=d.replace(/\\./g,\"/\"),i=a[f],o&&(i=s[f]),\"isnull\"===f||\"isnotnull\"===f?i=r.format(\"{0} {1} null\",d,i):\"isempty\"===f||\"isnotempty\"===f?i=r.format(\"{0} {1} ''\",d,i):i&&p!==t&&(u=e.type(p),\"string\"===u?(h=\"'{1}'\",p=p.replace(/'/g,\"''\"),m===!0&&(d=\"tolower(\"+d+\")\")):h=\"date\"===u?o?\"{1:yyyy-MM-ddTHH:mm:ss+00:00}\":\"datetime'{1:yyyy-MM-ddTHH:mm:ss}'\":\"{1}\",i.length>3?\"substringof\"!==i?h=\"{0}({2},\"+h+\")\":(h=\"{0}(\"+h+\",{2})\",\"doesnotcontain\"===f&&(o?(h=\"{0}({2},'{1}') eq -1\",i=\"indexof\"):h+=\" eq false\")):h=\"{2} {0} \"+h,i=r.format(h,i,p,d))),g.push(i);return i=g.join(\" \"+v+\" \"),g.length>1&&(i=\"(\"+i+\")\"),i}function i(e){for(var t in e)0===t.indexOf(\"@odata\")&&delete e[t]}var r=window.kendo,o=e.extend,a={eq:\"eq\",neq:\"ne\",gt:\"gt\",gte:\"ge\",lt:\"lt\",lte:\"le\",contains:\"substringof\",doesnotcontain:\"substringof\",endswith:\"endswith\",startswith:\"startswith\",isnull:\"eq\",isnotnull:\"ne\",isempty:\"eq\",isnotempty:\"ne\"},s=o({},a,{contains:\"contains\"}),l={pageSize:e.noop,page:e.noop,filter:function(e,t,i){t&&(t=n(t,i),t&&(e.$filter=t))},sort:function(t,n){var i=e.map(n,function(e){var t=e.field.replace(/\\./g,\"/\");return\"desc\"===e.dir&&(t+=\" desc\"),t}).join(\",\");i&&(t.$orderby=i)},skip:function(e,t){t&&(e.$skip=t)},take:function(e,t){t&&(e.$top=t)}},c={read:{dataType:\"jsonp\"}};o(!0,r.data,{schemas:{odata:{type:\"json\",data:function(e){return e.d.results||[e.d]},total:\"d.__count\"}},transports:{odata:{read:{cache:!0,dataType:\"jsonp\",jsonp:\"$callback\"},update:{cache:!0,dataType:\"json\",contentType:\"application/json\",type:\"PUT\"},create:{cache:!0,dataType:\"json\",contentType:\"application/json\",type:\"POST\"},destroy:{cache:!0,dataType:\"json\",type:\"DELETE\"},parameterMap:function(e,t,n){var i,o,a,s;if(e=e||{},t=t||\"read\",s=(this.options||c)[t],s=s?s.dataType:\"json\",\"read\"===t){i={$inlinecount:\"allpages\"},\"json\"!=s&&(i.$format=\"json\");for(a in e)l[a]?l[a](i,e[a],n):i[a]=e[a]}else{if(\"json\"!==s)throw Error(\"Only json dataType can be used for \"+t+\" operation.\");if(\"destroy\"!==t){for(a in e)o=e[a],\"number\"==typeof o&&(e[a]=o+\"\");i=r.stringify(e)}}return i}}}}),o(!0,r.data,{schemas:{\"odata-v4\":{type:\"json\",data:function(t){return t=e.extend({},t),i(t),t.value?t.value:[t]},total:function(e){return e[\"@odata.count\"]}}},transports:{\"odata-v4\":{read:{cache:!0,dataType:\"json\"},update:{cache:!0,dataType:\"json\",contentType:\"application/json;IEEE754Compatible=true\",type:\"PUT\"},create:{cache:!0,dataType:\"json\",contentType:\"application/json;IEEE754Compatible=true\",type:\"POST\"},destroy:{cache:!0,dataType:\"json\",type:\"DELETE\"},parameterMap:function(e,t){var n=r.data.transports.odata.parameterMap(e,t,!0);return\"read\"==t&&(n.$count=!0,delete n.$inlinecount),n}}}})}(window.kendo.jQuery),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.data.xml.min\",[\"kendo.core.min\"],e)}(function(){return function(e,t){var n=window.kendo,i=e.isArray,r=e.isPlainObject,o=e.map,a=e.each,s=e.extend,l=n.getter,c=n.Class,d=c.extend({init:function(t){var l,c,d,u,h=this,f=t.total,p=t.model,m=t.parse,g=t.errors,v=t.serialize,_=t.data;p&&(r(p)&&(l=t.modelBase||n.data.Model,p.fields&&a(p.fields,function(t,n){r(n)&&n.field?e.isFunction(n.field)||(n=s(n,{field:h.getter(n.field)})):n={field:h.getter(n)},p.fields[t]=n}),c=p.id,c&&(d={},d[h.xpathToMember(c,!0)]={field:h.getter(c)},p.fields=s(d,p.fields),p.id=h.xpathToMember(c)),p=l.define(p)),h.model=p),f&&(\"string\"==typeof f?(f=h.getter(f),h.total=function(e){return parseInt(f(e),10)}):\"function\"==typeof f&&(h.total=f)),g&&(\"string\"==typeof g?(g=h.getter(g),h.errors=function(e){return g(e)||null}):\"function\"==typeof g&&(h.errors=g)),_&&(\"string\"==typeof _?(_=h.xpathToMember(_),h.data=function(e){var t,n=h.evaluate(e,_);return n=i(n)?n:[n],h.model&&p.fields?(t=new h.model,o(n,function(e){if(e){var n,i={};for(n in p.fields)i[n]=t._parse(n,p.fields[n].field(e));return i}})):n}):\"function\"==typeof _&&(h.data=_)),\"function\"==typeof m&&(u=h.parse,h.parse=function(e){var t=m.call(h,e);return u.call(h,t)}),\"function\"==typeof v&&(h.serialize=v)},total:function(e){return this.data(e).length},errors:function(e){return e?e.errors:null},serialize:function(e){return e},parseDOM:function(e){var n,r,o,a,s,l,c,d={},u=e.attributes,h=u.length;for(c=0;h>c;c++)l=u[c],d[\"@\"+l.nodeName]=l.nodeValue;for(r=e.firstChild;r;r=r.nextSibling)o=r.nodeType,3===o||4===o?d[\"#text\"]=r.nodeValue:1===o&&(n=this.parseDOM(r),a=r.nodeName,s=d[a],i(s)?s.push(n):s=s!==t?[s,n]:n,d[a]=s);return d},evaluate:function(e,t){for(var n,r,o,a,s,l=t.split(\".\");n=l.shift();)if(e=e[n],i(e)){for(r=[],t=l.join(\".\"),s=0,o=e.length;o>s;s++)a=this.evaluate(e[s],t),a=i(a)?a:[a],r.push.apply(r,a);return r}return e},parse:function(t){var n,i,r={};return n=t.documentElement||e.parseXML(t).documentElement,i=this.parseDOM(n),r[n.nodeName]=i,r},xpathToMember:function(e,t){return e?(e=e.replace(/^\\//,\"\").replace(/\\//g,\".\"),e.indexOf(\"@\")>=0?e.replace(/\\.?(@.*)/,t?\"$1\":'[\"$1\"]'):e.indexOf(\"text()\")>=0?e.replace(/(\\.?text\\(\\))/,t?\"#text\":'[\"#text\"]'):e):\"\"},getter:function(e){return l(this.xpathToMember(e),!0)}});e.extend(!0,n.data,{XmlDataReader:d,readers:{xml:d}})}(window.kendo.jQuery),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.data.min\",[\"kendo.core.min\",\"kendo.data.odata.min\",\"kendo.data.xml.min\"],e)}(function(){return function(e,t){function n(e,t,n,i){return function(r){var o,a={};for(o in r)a[o]=r[o];a.field=i?n+\".\"+r.field:n,t==xe&&e._notifyChange&&e._notifyChange(a),e.trigger(t,a)}}function i(t,n){if(t===n)return!0;var r,o=e.type(t),a=e.type(n);if(o!==a)return!1;if(\"date\"===o)return t.getTime()===n.getTime();if(\"object\"!==o&&\"array\"!==o)return!1;for(r in t)if(!i(t[r],n[r]))return!1;return!0}function r(e,t){var n,i;for(i in e){if(n=e[i],ae(n)&&n.field&&n.field===t)return n;if(n===t)return n}return null}function o(e){this.data=e||[]}function a(e,n){if(e){var i=typeof e===ve?{field:e,dir:n}:e,r=le(i)?i:i!==t?[i]:[];return ce(r,function(e){return!!e.dir})}}function s(e){var t,n,i,r,o=e.filters;if(o)for(t=0,n=o.length;n>t;t++)i=o[t],r=i.operator,r&&typeof r===ve&&(i.operator=G[r.toLowerCase()]||r),s(i)}function l(e){return e&&!se(e)?((le(e)||!e.filters)&&(e={logic:\"and\",filters:le(e)?e:[e]}),s(e),e):t}function c(e,t){return e.logic||t.logic?!1:e.field===t.field&&e.value===t.value&&e.operator===t.operator}function d(e){return e=e||{},se(e)?{logic:\"and\",filters:[]}:l(e)}function u(e,t){return t.logic||e.field>t.field?1:t.field>e.field?-1:0}function h(e,t){var n,i,r,o,a;if(e=d(e),t=d(t),e.logic!==t.logic)return!1;if(r=(e.filters||[]).slice(),o=(t.filters||[]).slice(),r.length!==o.length)return!1;for(r=r.sort(u),o=o.sort(u),a=0;r.length>a;a++)if(n=r[a],i=o[a],n.logic&&i.logic){if(!h(n,i))return!1}else if(!c(n,i))return!1;return!0}function f(e){return le(e)?e:[e]}function p(e,n){var i=typeof e===ve?{field:e,dir:n}:e,r=le(i)?i:i!==t?[i]:[];return U(r,function(e){return{field:e.field,dir:e.dir||\"asc\",aggregates:e.aggregates}})}function m(e,t){return e&&e.getTime&&t&&t.getTime?e.getTime()===t.getTime():e===t}function g(e,t,n,i,r,o){var a,s,l,c,d;for(t=t||[],c=t.length,a=0;c>a;a++)s=t[a],l=s.aggregate,d=s.field,e[d]=e[d]||{},o[d]=o[d]||{},o[d][l]=o[d][l]||{},e[d][l]=$[l.toLowerCase()](e[d][l],n,fe.accessor(d),i,r,o[d][l])}function v(e){return\"number\"==typeof e&&!isNaN(e)}function _(e){return e&&e.getTime}function b(e){var t,n=e.length,i=Array(n);for(t=0;n>t;t++)i[t]=e[t].toJSON();return i}function w(e,t,n,i,r){var o,a,s,l,c,d={};for(l=0,c=e.length;c>l;l++){o=e[l];for(a in t)s=r[a],s&&s!==a&&(d[s]||(d[s]=fe.setter(s)),d[s](o,t[a](o)),delete o[a])}}function y(e,t,n,i,r){var o,a,s,l,c;for(l=0,c=e.length;c>l;l++){o=e[l];for(a in t)o[a]=n._parse(a,t[a](o)),s=r[a],s&&s!==a&&delete o[s]}}function k(e,t,n,i,r){var o,a,s,l;for(a=0,l=e.length;l>a;a++)o=e[a],s=i[o.field],s&&s!=o.field&&(o.field=s),o.value=n._parse(o.field,o.value),o.hasSubgroups?k(o.items,t,n,i,r):y(o.items,t,n,i,r);\r\n}function x(e,t,n,i,r,o){return function(a){return a=e(a),a&&!se(i)&&(\"[object Array]\"===Ue.call(a)||a instanceof $e||(a=[a]),n(a,i,new t,r,o)),a||[]}}function C(e,t,n,i){for(var r,o,a,s=0;t.length&&i&&(r=t[s],o=r.items,a=o.length,e&&e.field===r.field&&e.value===r.value?(e.hasSubgroups&&e.items.length?C(e.items[e.items.length-1],r.items,n,i):(o=o.slice(n,n+i),e.items=e.items.concat(o)),t.splice(s--,1)):r.hasSubgroups&&o.length?(C(r,o,n,i),r.items.length||t.splice(s--,1)):(o=o.slice(n,n+i),r.items=o,r.items.length||t.splice(s--,1)),0===o.length?n-=a:(n=0,i-=o.length),!(++s>=t.length)););t.length>s&&t.splice(s,t.length-s)}function S(e){var t,n,i,r,o,a=[];for(t=0,n=e.length;n>t;t++)if(o=e.at(t),o.hasSubgroups)a=a.concat(S(o.items));else for(i=o.items,r=0;i.length>r;r++)a.push(i.at(r));return a}function T(e,t){var n,i,r;if(t)for(n=0,i=e.length;i>n;n++)r=e.at(n),r.hasSubgroups?T(r.items,t):r.items=new Ye(r.items,t)}function D(e,t){for(var n=0,i=e.length;i>n;n++)if(e[n].hasSubgroups){if(D(e[n].items,t))return!0}else if(t(e[n].items,e[n]))return!0}function A(e,t,n,i){for(var r=0;e.length>r&&e[r].data!==t&&!E(e[r].data,n,i);r++);}function E(e,t,n){for(var i=0,r=e.length;r>i;i++){if(e[i]&&e[i].hasSubgroups)return E(e[i].items,t,n);if(e[i]===t||e[i]===n)return e[i]=n,!0}}function I(e,n,i,r,o){var a,s,l,c;for(a=0,s=e.length;s>a;a++)if(l=e[a],l&&!(l instanceof r))if(l.hasSubgroups===t||o){for(c=0;n.length>c;c++)if(n[c]===l){e[a]=n.at(c),A(i,n,l,e[a]);break}}else I(l.items,n,i,r,o)}function F(e,t){var n,i,r;for(n=0,i=e.length;i>n;n++)if(r=e.at(n),r.uid==t.uid)return e.splice(n,1),r}function M(e,t){return t?P(e,function(e){return e.uid&&e.uid==t.uid||e[t.idField]===t.id&&t.id!==t._defaultId}):-1}function R(e,t){return t?P(e,function(e){return e.uid==t.uid}):-1}function P(e,t){var n,i;for(n=0,i=e.length;i>n;n++)if(t(e[n]))return n;return-1}function z(e,t){var n,i;return e&&!se(e)?(n=e[t],i=ae(n)?n.from||n.field||t:e[t]||t,pe(i)?t:i):t}function B(e,t){var n,i,r,o={};for(r in e)\"filters\"!==r&&(o[r]=e[r]);if(e.filters)for(o.filters=[],n=0,i=e.filters.length;i>n;n++)o.filters[n]=B(e.filters[n],t);else o.field=z(t.fields,o.field);return o}function L(e,t){var n,i,r,o,a,s=[];for(n=0,i=e.length;i>n;n++){r={},o=e[n];for(a in o)r[a]=o[a];r.field=z(t.fields,r.field),r.aggregates&&le(r.aggregates)&&(r.aggregates=L(r.aggregates,t)),s.push(r)}return s}function H(t,n){var i,r,o,a,s,l,c,d,u,h;for(t=e(t)[0],i=t.options,r=n[0],o=n[1],a=[],s=0,l=i.length;l>s;s++)u={},d=i[s],c=d.parentNode,c===t&&(c=null),d.disabled||c&&c.disabled||(c&&(u.optgroup=c.label),u[r.field]=d.text,h=d.attributes.value,h=h&&h.specified?d.value:d.text,u[o.field]=h,a.push(u));return a}function N(t,n){var i,r,o,a,s,l,c,d=e(t)[0].tBodies[0],u=d?d.rows:[],h=n.length,f=[];for(i=0,r=u.length;r>i;i++){for(s={},c=!0,a=u[i].cells,o=0;h>o;o++)l=a[o],\"th\"!==l.nodeName.toLowerCase()&&(c=!1,s[n[o].field]=l.innerHTML);c||f.push(s)}return f}function O(e){return function(){var t=this._data,n=J.fn[e].apply(this,Oe.call(arguments));return this._data!=t&&this._attachBubbleHandlers(),n}}function V(t,n){function i(e,t){return e.filter(t).add(e.find(t))}var r,o,a,s,l,c,d,u,h=e(t).children(),f=[],p=n[0].field,m=n[1]&&n[1].field,g=n[2]&&n[2].field,v=n[3]&&n[3].field;for(r=0,o=h.length;o>r;r++)a={_loaded:!0},s=h.eq(r),c=s[0].firstChild,u=s.children(),t=u.filter(\"ul\"),u=u.filter(\":not(ul)\"),l=s.attr(\"data-id\"),l&&(a.id=l),c&&(a[p]=3==c.nodeType?c.nodeValue:u.text()),m&&(a[m]=i(u,\"a\").attr(\"href\")),v&&(a[v]=i(u,\"img\").attr(\"src\")),g&&(d=i(u,\".k-sprite\").prop(\"className\"),a[g]=d&&e.trim(d.replace(\"k-sprite\",\"\"))),t.length&&(a.items=V(t.eq(0),n)),\"true\"==s.attr(\"data-hasChildren\")&&(a.hasChildren=!0),f.push(a);return f}var U,W,j,q,G,$,Y,K,Q,X,J,Z,ee,te,ne,ie,re=e.extend,oe=e.proxy,ae=e.isPlainObject,se=e.isEmptyObject,le=e.isArray,ce=e.grep,de=e.ajax,ue=e.each,he=e.noop,fe=window.kendo,pe=fe.isFunction,me=fe.Observable,ge=fe.Class,ve=\"string\",_e=\"function\",be=\"create\",we=\"read\",ye=\"update\",ke=\"destroy\",xe=\"change\",Ce=\"sync\",Se=\"get\",Te=\"error\",De=\"requestStart\",Ae=\"progress\",Ee=\"requestEnd\",Ie=[be,we,ye,ke],Fe=function(e){return e},Me=fe.getter,Re=fe.stringify,Pe=Math,ze=[].push,Be=[].join,Le=[].pop,He=[].splice,Ne=[].shift,Oe=[].slice,Ve=[].unshift,Ue={}.toString,We=fe.support.stableSort,je=/^\\/Date\\((.*?)\\)\\/$/,qe=/(\\r+|\\n+)/g,Ge=/(?=['\\\\])/g,$e=me.extend({init:function(e,t){var n=this;n.type=t||Ke,me.fn.init.call(n),n.length=e.length,n.wrapAll(e,n)},at:function(e){return this[e]},toJSON:function(){var e,t,n=this.length,i=Array(n);for(e=0;n>e;e++)t=this[e],t instanceof Ke&&(t=t.toJSON()),i[e]=t;return i},parent:he,wrapAll:function(e,t){var n,i,r=this,o=function(){return r};for(t=t||[],n=0,i=e.length;i>n;n++)t[n]=r.wrap(e[n],o);return t},wrap:function(e,t){var n,i=this;return null!==e&&\"[object Object]\"===Ue.call(e)&&(n=e instanceof i.type||e instanceof Je,n||(e=e instanceof Ke?e.toJSON():e,e=new i.type(e)),e.parent=t,e.bind(xe,function(e){i.trigger(xe,{field:e.field,node:e.node,index:e.index,items:e.items||[this],action:e.node?e.action||\"itemloaded\":\"itemchange\"})})),e},push:function(){var e,t=this.length,n=this.wrapAll(arguments);return e=ze.apply(this,n),this.trigger(xe,{action:\"add\",index:t,items:n}),e},slice:Oe,sort:[].sort,join:Be,pop:function(){var e=this.length,t=Le.apply(this);return e&&this.trigger(xe,{action:\"remove\",index:e-1,items:[t]}),t},splice:function(e,t,n){var i,r,o,a=this.wrapAll(Oe.call(arguments,2));if(i=He.apply(this,[e,t].concat(a)),i.length)for(this.trigger(xe,{action:\"remove\",index:e,items:i}),r=0,o=i.length;o>r;r++)i[r]&&i[r].children&&i[r].unbind(xe);return n&&this.trigger(xe,{action:\"add\",index:e,items:a}),i},shift:function(){var e=this.length,t=Ne.apply(this);return e&&this.trigger(xe,{action:\"remove\",index:0,items:[t]}),t},unshift:function(){var e,t=this.wrapAll(arguments);return e=Ve.apply(this,t),this.trigger(xe,{action:\"add\",index:0,items:t}),e},indexOf:function(e){var t,n,i=this;for(t=0,n=i.length;n>t;t++)if(i[t]===e)return t;return-1},forEach:function(e){for(var t=0,n=this.length;n>t;t++)e(this[t],t,this)},map:function(e){for(var t=0,n=[],i=this.length;i>t;t++)n[t]=e(this[t],t,this);return n},reduce:function(e){var t,n=0,i=this.length;for(2==arguments.length?t=arguments[1]:i>n&&(t=this[n++]);i>n;n++)t=e(t,this[n],n,this);return t},reduceRight:function(e){var t,n=this.length-1;for(2==arguments.length?t=arguments[1]:n>0&&(t=this[n--]);n>=0;n--)t=e(t,this[n],n,this);return t},filter:function(e){for(var t,n=0,i=[],r=this.length;r>n;n++)t=this[n],e(t,n,this)&&(i[i.length]=t);return i},find:function(e){for(var t,n=0,i=this.length;i>n;n++)if(t=this[n],e(t,n,this))return t},every:function(e){for(var t,n=0,i=this.length;i>n;n++)if(t=this[n],!e(t,n,this))return!1;return!0},some:function(e){for(var t,n=0,i=this.length;i>n;n++)if(t=this[n],e(t,n,this))return!0;return!1},remove:function(e){var t=this.indexOf(e);-1!==t&&this.splice(t,1)},empty:function(){this.splice(0,this.length)}}),Ye=$e.extend({init:function(e,t){me.fn.init.call(this),this.type=t||Ke;for(var n=0;e.length>n;n++)this[n]=e[n];this.length=n,this._parent=oe(function(){return this},this)},at:function(e){var t=this[e];return t instanceof this.type?t.parent=this._parent:t=this[e]=this.wrap(t,this._parent),t}}),Ke=me.extend({init:function(e){var t,n,i=this,r=function(){return i};me.fn.init.call(this),this._handlers={};for(n in e)t=e[n],\"object\"==typeof t&&t&&!t.getTime&&\"_\"!=n.charAt(0)&&(t=i.wrap(t,n,r)),i[n]=t;i.uid=fe.guid()},shouldSerialize:function(e){return this.hasOwnProperty(e)&&\"_handlers\"!==e&&\"_events\"!==e&&typeof this[e]!==_e&&\"uid\"!==e},forEach:function(e){for(var t in this)this.shouldSerialize(t)&&e(this[t],t)},toJSON:function(){var e,t,n={};for(t in this)this.shouldSerialize(t)&&(e=this[t],(e instanceof Ke||e instanceof $e)&&(e=e.toJSON()),n[t]=e);return n},get:function(e){var t,n=this;return n.trigger(Se,{field:e}),t=\"this\"===e?n:fe.getter(e,!0)(n)},_set:function(e,t){var n,i,r,o=this,a=e.indexOf(\".\")>=0;if(a)for(n=e.split(\".\"),i=\"\";n.length>1;){if(i+=n.shift(),r=fe.getter(i,!0)(o),r instanceof Ke)return r.set(n.join(\".\"),t),a;i+=\".\"}return fe.setter(e)(o,t),a},set:function(e,t){var n=this,i=e.indexOf(\".\")>=0,r=fe.getter(e,!0)(n);r!==t&&(r instanceof me&&this._handlers[e]&&(this._handlers[e].get&&r.unbind(Se,this._handlers[e].get),r.unbind(xe,this._handlers[e].change)),n.trigger(\"set\",{field:e,value:t})||(i||(t=n.wrap(t,e,function(){return n})),(!n._set(e,t)||e.indexOf(\"(\")>=0||e.indexOf(\"[\")>=0)&&n.trigger(xe,{field:e})))},parent:he,wrap:function(e,t,i){var r,o,a,s,l=this,c=Ue.call(e);return null==e||\"[object Object]\"!==c&&\"[object Array]\"!==c||(a=e instanceof $e,s=e instanceof J,\"[object Object]\"!==c||s||a?(\"[object Array]\"===c||a||s)&&(a||s||(e=new $e(e)),o=n(l,xe,t,!1),e.bind(xe,o),l._handlers[t]={change:o}):(e instanceof Ke||(e=new Ke(e)),r=n(l,Se,t,!0),e.bind(Se,r),o=n(l,xe,t,!0),e.bind(xe,o),l._handlers[t]={get:r,change:o}),e.parent=i),e}}),Qe={number:function(e){return fe.parseFloat(e)},date:function(e){return fe.parseDate(e)},\"boolean\":function(e){return typeof e===ve?\"true\"===e.toLowerCase():null!=e?!!e:e},string:function(e){return null!=e?e+\"\":e},\"default\":function(e){return e}},Xe={string:\"\",number:0,date:new Date,\"boolean\":!1,\"default\":\"\"},Je=Ke.extend({init:function(n){var i,r,o=this;if((!n||e.isEmptyObject(n))&&(n=e.extend({},o.defaults,n),o._initializers))for(i=0;o._initializers.length>i;i++)r=o._initializers[i],n[r]=o.defaults[r]();Ke.fn.init.call(o,n),o.dirty=!1,o.idField&&(o.id=o.get(o.idField),o.id===t&&(o.id=o._defaultId))},shouldSerialize:function(e){return Ke.fn.shouldSerialize.call(this,e)&&\"uid\"!==e&&!(\"id\"!==this.idField&&\"id\"===e)&&\"dirty\"!==e&&\"_accessors\"!==e},_parse:function(e,t){var n,i=this,o=e,a=i.fields||{};return e=a[e],e||(e=r(a,o)),e&&(n=e.parse,!n&&e.type&&(n=Qe[e.type.toLowerCase()])),n?n(t):t},_notifyChange:function(e){var t=e.action;(\"add\"==t||\"remove\"==t)&&(this.dirty=!0)},editable:function(e){return e=(this.fields||{})[e],e?e.editable!==!1:!0},set:function(e,t,n){var r=this;r.editable(e)&&(t=r._parse(e,t),i(t,r.get(e))||(r.dirty=!0,Ke.fn.set.call(r,e,t,n)))},accept:function(e){var t,n,i=this,r=function(){return i};for(t in e)n=e[t],\"_\"!=t.charAt(0)&&(n=i.wrap(e[t],t,r)),i._set(t,n);i.idField&&(i.id=i.get(i.idField)),i.dirty=!1},isNew:function(){return this.id===this._defaultId}});Je.define=function(e,n){n===t&&(n=e,e=Je);var i,r,o,a,s,l,c,d,u=re({defaults:{}},n),h={},f=u.id,p=[];if(f&&(u.idField=f),u.id&&delete u.id,f&&(u.defaults[f]=u._defaultId=\"\"),\"[object Array]\"===Ue.call(u.fields)){for(l=0,c=u.fields.length;c>l;l++)o=u.fields[l],typeof o===ve?h[o]={}:o.field&&(h[o.field]=o);u.fields=h}for(r in u.fields)o=u.fields[r],a=o.type||\"default\",s=null,d=r,r=typeof o.field===ve?o.field:r,o.nullable||(s=u.defaults[d!==r?d:r]=o.defaultValue!==t?o.defaultValue:Xe[a.toLowerCase()],\"function\"==typeof s&&p.push(r)),n.id===r&&(u._defaultId=s),u.defaults[d!==r?d:r]=s,o.parse=o.parse||Qe[a];return p.length>0&&(u._initializers=p),i=e.extend(u),i.define=function(e){return Je.define(i,e)},u.fields&&(i.fields=u.fields,i.idField=u.idField),i},W={selector:function(e){return pe(e)?e:Me(e)},compare:function(e){var t=this.selector(e);return function(e,n){return e=t(e),n=t(n),null==e&&null==n?0:null==e?-1:null==n?1:e.localeCompare?e.localeCompare(n):e>n?1:n>e?-1:0}},create:function(e){var t=e.compare||this.compare(e.field);return\"desc\"==e.dir?function(e,n){return t(n,e,!0)}:t},combine:function(e){return function(t,n){var i,r,o=e[0](t,n);for(i=1,r=e.length;r>i;i++)o=o||e[i](t,n);return o}}},j=re({},W,{asc:function(e){var t=this.selector(e);return function(e,n){var i=t(e),r=t(n);return i&&i.getTime&&r&&r.getTime&&(i=i.getTime(),r=r.getTime()),i===r?e.__position-n.__position:null==i?-1:null==r?1:i.localeCompare?i.localeCompare(r):i>r?1:-1}},desc:function(e){var t=this.selector(e);return function(e,n){var i=t(e),r=t(n);return i&&i.getTime&&r&&r.getTime&&(i=i.getTime(),r=r.getTime()),i===r?e.__position-n.__position:null==i?1:null==r?-1:r.localeCompare?r.localeCompare(i):r>i?1:-1}},create:function(e){return this[e.dir](e.field)}}),U=function(e,t){var n,i=e.length,r=Array(i);for(n=0;i>n;n++)r[n]=t(e[n],n,e);return r},q=function(){function e(e){return e.replace(Ge,\"\\\\\").replace(qe,\"\")}function t(t,n,i,r){var o;return null!=i&&(typeof i===ve&&(i=e(i),o=je.exec(i),o?i=new Date(+o[1]):r?(i=\"'\"+i.toLowerCase()+\"'\",n=\"((\"+n+\" || '')+'').toLowerCase()\"):i=\"'\"+i+\"'\"),i.getTime&&(n=\"(\"+n+\"&&\"+n+\".getTime?\"+n+\".getTime():\"+n+\")\",i=i.getTime())),n+\" \"+t+\" \"+i}return{quote:function(t){return t&&t.getTime?\"new Date(\"+t.getTime()+\")\":\"string\"==typeof t?\"'\"+e(t)+\"'\":\"\"+t},eq:function(e,n,i){return t(\"==\",e,n,i)},neq:function(e,n,i){return t(\"!=\",e,n,i)},gt:function(e,n,i){return t(\">\",e,n,i)},gte:function(e,n,i){return t(\">=\",e,n,i)},lt:function(e,n,i){return t(\"<\",e,n,i)},lte:function(e,n,i){return t(\"<=\",e,n,i)},startswith:function(t,n,i){return i&&(t=\"(\"+t+\" || '').toLowerCase()\",n&&(n=n.toLowerCase())),n&&(n=e(n)),t+\".lastIndexOf('\"+n+\"', 0) == 0\"},doesnotstartwith:function(t,n,i){return i&&(t=\"(\"+t+\" || '').toLowerCase()\",n&&(n=n.toLowerCase())),n&&(n=e(n)),t+\".lastIndexOf('\"+n+\"', 0) == -1\"},endswith:function(t,n,i){return i&&(t=\"(\"+t+\" || '').toLowerCase()\",n&&(n=n.toLowerCase())),n&&(n=e(n)),t+\".indexOf('\"+n+\"', \"+t+\".length - \"+(n||\"\").length+\") >= 0\"},doesnotendwith:function(t,n,i){return i&&(t=\"(\"+t+\" || '').toLowerCase()\",n&&(n=n.toLowerCase())),n&&(n=e(n)),t+\".indexOf('\"+n+\"', \"+t+\".length - \"+(n||\"\").length+\") < 0\"},contains:function(t,n,i){return i&&(t=\"(\"+t+\" || '').toLowerCase()\",n&&(n=n.toLowerCase())),n&&(n=e(n)),t+\".indexOf('\"+n+\"') >= 0\"},doesnotcontain:function(t,n,i){return i&&(t=\"(\"+t+\" || '').toLowerCase()\",n&&(n=n.toLowerCase())),n&&(n=e(n)),t+\".indexOf('\"+n+\"') == -1\"},isempty:function(e){return e+\" === ''\"},isnotempty:function(e){return e+\" !== ''\"},isnull:function(e){return e+\" === null || \"+e+\" === undefined\"},isnotnull:function(e){return e+\" !== null && \"+e+\" !== undefined\"}}}(),o.filterExpr=function(e){var n,i,r,a,s,l,c=[],d={and:\" && \",or:\" || \"},u=[],h=[],f=e.filters;for(n=0,i=f.length;i>n;n++)r=f[n],s=r.field,l=r.operator,r.filters?(a=o.filterExpr(r),r=a.expression.replace(/__o\\[(\\d+)\\]/g,function(e,t){return t=+t,\"__o[\"+(h.length+t)+\"]\"}).replace(/__f\\[(\\d+)\\]/g,function(e,t){return t=+t,\"__f[\"+(u.length+t)+\"]\"}),h.push.apply(h,a.operators),u.push.apply(u,a.fields)):(typeof s===_e?(a=\"__f[\"+u.length+\"](d)\",u.push(s)):a=fe.expr(s),typeof l===_e?(r=\"__o[\"+h.length+\"](\"+a+\", \"+q.quote(r.value)+\")\",h.push(l)):r=q[(l||\"eq\").toLowerCase()](a,r.value,r.ignoreCase!==t?r.ignoreCase:!0)),c.push(r);return{expression:\"(\"+c.join(d[e.logic])+\")\",fields:u,operators:h}},G={\"==\":\"eq\",equals:\"eq\",isequalto:\"eq\",equalto:\"eq\",equal:\"eq\",\"!=\":\"neq\",ne:\"neq\",notequals:\"neq\",isnotequalto:\"neq\",notequalto:\"neq\",notequal:\"neq\",\"<\":\"lt\",islessthan:\"lt\",lessthan:\"lt\",less:\"lt\",\"<=\":\"lte\",le:\"lte\",islessthanorequalto:\"lte\",lessthanequal:\"lte\",\">\":\"gt\",isgreaterthan:\"gt\",greaterthan:\"gt\",greater:\"gt\",\">=\":\"gte\",isgreaterthanorequalto:\"gte\",greaterthanequal:\"gte\",ge:\"gte\",notsubstringof:\"doesnotcontain\",isnull:\"isnull\",isempty:\"isempty\",isnotempty:\"isnotempty\"},o.normalizeFilter=l,o.compareFilters=h,o.prototype={toArray:function(){return this.data},range:function(e,t){return new o(this.data.slice(e,e+t))},skip:function(e){return new o(this.data.slice(e))},take:function(e){return new o(this.data.slice(0,e))},select:function(e){return new o(U(this.data,e))},order:function(e,t){var n={dir:t};return e&&(e.compare?n.compare=e.compare:n.field=e),new o(this.data.slice(0).sort(W.create(n)))},orderBy:function(e){return this.order(e,\"asc\")},orderByDescending:function(e){return this.order(e,\"desc\")},sort:function(e,t,n){var i,r,o=a(e,t),s=[];if(n=n||W,o.length){for(i=0,r=o.length;r>i;i++)s.push(n.create(o[i]));return this.orderBy({compare:n.combine(s)})}return this},filter:function(e){var t,n,i,r,a,s,c,d,u=this.data,h=[];if(e=l(e),!e||0===e.filters.length)return this;for(r=o.filterExpr(e),s=r.fields,c=r.operators,a=d=Function(\"d, __f, __o\",\"return \"+r.expression),(s.length||c.length)&&(d=function(e){return a(e,s,c)}),t=0,i=u.length;i>t;t++)n=u[t],d(n)&&h.push(n);return new o(h)},group:function(e,t){e=p(e||[]),t=t||this.data;var n,i=this,r=new o(i.data);return e.length>0&&(n=e[0],r=r.groupBy(n).select(function(i){var r=new o(t).filter([{field:i.field,operator:\"eq\",value:i.value,ignoreCase:!1}]);return{field:i.field,value:i.value,items:e.length>1?new o(i.items).group(e.slice(1),r.toArray()).toArray():i.items,hasSubgroups:e.length>1,aggregates:r.aggregate(n.aggregates)}})),r},groupBy:function(e){if(se(e)||!this.data.length)return new o([]);var t,n,i,r,a=e.field,s=this._sortForGrouping(a,e.dir||\"asc\"),l=fe.accessor(a),c=l.get(s[0],a),d={field:a,value:c,items:[]},u=[d];for(i=0,r=s.length;r>i;i++)t=s[i],n=l.get(t,a),m(c,n)||(c=n,d={field:a,value:c,items:[]},u.push(d)),d.items.push(t);return new o(u)},_sortForGrouping:function(e,t){var n,i,r=this.data;if(!We){for(n=0,i=r.length;i>n;n++)r[n].__position=n;for(r=new o(r).sort(e,t,j).toArray(),n=0,i=r.length;i>n;n++)delete r[n].__position;return r}return this.sort(e,t).toArray()},aggregate:function(e){var t,n,i={},r={};if(e&&e.length)for(t=0,n=this.data.length;n>t;t++)g(i,e,this.data[t],t,n,r);return i}},$={sum:function(e,t,n){var i=n.get(t);return v(e)?v(i)&&(e+=i):e=i,e},count:function(e){return(e||0)+1},average:function(e,n,i,r,o,a){var s=i.get(n);return a.count===t&&(a.count=0),v(e)?v(s)&&(e+=s):e=s,v(s)&&a.count++,r==o-1&&v(e)&&(e/=a.count),e},max:function(e,t,n){var i=n.get(t);return v(e)||_(e)||(e=i),i>e&&(v(i)||_(i))&&(e=i),e},min:function(e,t,n){var i=n.get(t);return v(e)||_(e)||(e=i),e>i&&(v(i)||_(i))&&(e=i),e}},o.process=function(e,n){n=n||{};var i,r=new o(e),s=n.group,l=p(s||[]).concat(a(n.sort||[])),c=n.filterCallback,d=n.filter,u=n.skip,h=n.take;return d&&(r=r.filter(d),c&&(r=c(r)),i=r.toArray().length),l&&(r=r.sort(l),s&&(e=r.toArray())),u!==t&&h!==t&&(r=r.range(u,h)),s&&(r=r.group(s,e)),{total:i,data:r.toArray()}},Y=ge.extend({init:function(e){this.data=e.data},read:function(e){e.success(this.data)},update:function(e){e.success(e.data)},create:function(e){e.success(e.data)},destroy:function(e){e.success(e.data)}}),K=ge.extend({init:function(e){var t,n=this;e=n.options=re({},n.options,e),ue(Ie,function(t,n){typeof e[n]===ve&&(e[n]={url:e[n]})}),n.cache=e.cache?Q.create(e.cache):{find:he,add:he},t=e.parameterMap,pe(e.push)&&(n.push=e.push),n.push||(n.push=Fe),n.parameterMap=pe(t)?t:function(e){var n={};return ue(e,function(e,i){e in t&&(e=t[e],ae(e)&&(i=e.value(i),e=e.key)),n[e]=i}),n}},options:{parameterMap:Fe},create:function(e){return de(this.setup(e,be))},read:function(n){var i,r,o,a=this,s=a.cache;n=a.setup(n,we),i=n.success||he,r=n.error||he,o=s.find(n.data),o!==t?i(o):(n.success=function(e){s.add(n.data,e),i(e)},e.ajax(n))},update:function(e){return de(this.setup(e,ye))},destroy:function(e){return de(this.setup(e,ke))},setup:function(e,t){e=e||{};var n,i=this,r=i.options[t],o=pe(r.data)?r.data(e.data):r.data;return e=re(!0,{},r,e),n=re(!0,{},o,e.data),e.data=i.parameterMap(n,t),pe(e.url)&&(e.url=e.url(n)),e}}),Q=ge.extend({init:function(){this._store={}},add:function(e,n){e!==t&&(this._store[Re(e)]=n)},find:function(e){return this._store[Re(e)]},clear:function(){this._store={}},remove:function(e){delete this._store[Re(e)]}}),Q.create=function(e){var t={inmemory:function(){return new Q}};return ae(e)&&pe(e.find)?e:e===!0?new Q:t[e]()},X=ge.extend({init:function(e){var t,n,i,r,o,a,s,l,c,d,u,h,f,p=this;e=e||{};for(t in e)n=e[t],p[t]=typeof n===ve?Me(n):n;r=e.modelBase||Je,ae(p.model)&&(p.model=i=r.define(p.model)),o=oe(p.data,p),p._dataAccessFunction=o,p.model&&(a=oe(p.groups,p),s=oe(p.serialize,p),l={},c={},d={},u={},h=!1,i=p.model,i.fields&&(ue(i.fields,function(e,t){var n;f=e,ae(t)&&t.field?f=t.field:typeof t===ve&&(f=t),ae(t)&&t.from&&(n=t.from),h=h||n&&n!==e||f!==e,c[e]=Me(n||f),d[e]=Me(e),l[n||f]=e,u[e]=n||f}),!e.serialize&&h&&(p.serialize=x(s,i,w,d,l,u))),p._dataAccessFunction=o,p.data=x(o,i,y,c,l,u),p.groups=x(a,i,k,c,l,u))},errors:function(e){return e?e.errors:null},parse:Fe,data:Fe,total:function(e){return e.length},groups:Fe,aggregates:function(){return{}},serialize:function(e){return e}}),J=me.extend({init:function(e){var n,i,r,o=this;e&&(i=e.data),e=o.options=re({},o.options,e),o._map={},o._prefetch={},o._data=[],o._pristineData=[],o._ranges=[],o._view=[],o._pristineTotal=0,o._destroyed=[],o._pageSize=e.pageSize,o._page=e.page||(e.pageSize?1:t),o._sort=a(e.sort),o._filter=l(e.filter),o._group=p(e.group),o._aggregate=e.aggregate,o._total=e.total,o._shouldDetachObservableParents=!0,me.fn.init.call(o),o.transport=Z.create(e,i,o),pe(o.transport.push)&&o.transport.push({pushCreate:oe(o._pushCreate,o),pushUpdate:oe(o._pushUpdate,o),pushDestroy:oe(o._pushDestroy,o)}),null!=e.offlineStorage&&(\"string\"==typeof e.offlineStorage?(r=e.offlineStorage,o._storage={getItem:function(){return JSON.parse(localStorage.getItem(r))},setItem:function(e){localStorage.setItem(r,Re(o.reader.serialize(e)))}}):o._storage=e.offlineStorage),o.reader=new fe.data.readers[e.schema.type||\"json\"](e.schema),n=o.reader.model||{},o._detachObservableParents(),o._data=o._observe(o._data),o._online=!0,o.bind([\"push\",Te,xe,De,Ce,Ee,Ae],e)},options:{data:null,schema:{modelBase:Je},offlineStorage:null,serverSorting:!1,serverPaging:!1,serverFiltering:!1,serverGrouping:!1,serverAggregates:!1,batch:!1},clone:function(){return this},online:function(n){return n!==t?this._online!=n&&(this._online=n,n)?this.sync():e.Deferred().resolve().promise():this._online},offlineData:function(e){return null==this.options.offlineStorage?null:e!==t?this._storage.setItem(e):this._storage.getItem()||[]},_isServerGrouped:function(){var e=this.group()||[];return this.options.serverGrouping&&e.length},_pushCreate:function(e){this._push(e,\"pushCreate\")},_pushUpdate:function(e){this._push(e,\"pushUpdate\")},_pushDestroy:function(e){this._push(e,\"pushDestroy\")},_push:function(e,t){var n=this._readData(e);n||(n=e),this[t](n)},_flatData:function(e,t){if(e){if(this._isServerGrouped())return S(e);if(!t)for(var n=0;e.length>n;n++)e.at(n)}return e},parent:he,get:function(e){var t,n,i=this._flatData(this._data);for(t=0,n=i.length;n>t;t++)if(i[t].id==e)return i[t]},getByUid:function(e){var t,n,i=this._flatData(this._data);if(i)for(t=0,n=i.length;n>t;t++)if(i[t].uid==e)return i[t]},indexOf:function(e){return R(this._data,e)},at:function(e){return this._data.at(e)},data:function(e){var n,i=this;if(e===t){if(i._data)for(n=0;i._data.length>n;n++)i._data.at(n);return i._data}i._detachObservableParents(),i._data=this._observe(e),i._pristineData=e.slice(0),i._storeData(),i._ranges=[],i.trigger(\"reset\"),i._addRange(i._data),i._total=i._data.length,i._pristineTotal=i._total,i._process(i._data)},view:function(e){return e===t?this._view:(this._view=this._observeView(e),t)},_observeView:function(e){var t,n=this;return I(e,n._data,n._ranges,n.reader.model||Ke,n._isServerGrouped()),t=new Ye(e,n.reader.model),t.parent=function(){return n.parent()},t},flatView:function(){var e=this.group()||[];return e.length?S(this._view):this._view},add:function(e){return this.insert(this._data.length,e)},_createNewModel:function(e){return this.reader.model?new this.reader.model(e):e instanceof Ke?e:new Ke(e)},insert:function(e,t){return t||(t=e,e=0),t instanceof Je||(t=this._createNewModel(t)),this._isServerGrouped()?this._data.splice(e,0,this._wrapInEmptyGroup(t)):this._data.splice(e,0,t),t},pushCreate:function(e){var t,n,i,r,o,a;le(e)||(e=[e]),t=[],n=this.options.autoSync,this.options.autoSync=!1;try{for(i=0;e.length>i;i++)r=e[i],o=this.add(r),t.push(o),a=o.toJSON(),this._isServerGrouped()&&(a=this._wrapInEmptyGroup(a)),this._pristineData.push(a)}finally{this.options.autoSync=n}t.length&&this.trigger(\"push\",{type:\"create\",items:t})},pushUpdate:function(e){var t,n,i,r,o;for(le(e)||(e=[e]),t=[],n=0;e.length>n;n++)i=e[n],r=this._createNewModel(i),o=this.get(r.id),o?(t.push(o),o.accept(i),o.trigger(xe),this._updatePristineForModel(o,i)):this.pushCreate(i);t.length&&this.trigger(\"push\",{type:\"update\",items:t})},pushDestroy:function(e){var t=this._removeItems(e);t.length&&this.trigger(\"push\",{type:\"destroy\",items:t})},_removeItems:function(e){var t,n,i,r,o,a;le(e)||(e=[e]),t=[],n=this.options.autoSync,this.options.autoSync=!1;try{for(i=0;e.length>i;i++)r=e[i],o=this._createNewModel(r),a=!1,this._eachItem(this._data,function(e){var n,i;for(n=0;e.length>n;n++)if(i=e.at(n),i.id===o.id){t.push(i),e.splice(n,1),a=!0;break}}),a&&(this._removePristineForModel(o),this._destroyed.pop())}finally{this.options.autoSync=n}return t},remove:function(e){var n,i=this,r=i._isServerGrouped();return this._eachItem(i._data,function(o){return n=F(o,e),n&&r?(n.isNew&&n.isNew()||i._destroyed.push(n),!0):t}),this._removeModelFromRanges(e),this._updateRangesLength(),e},destroyed:function(){return this._destroyed},created:function(){var e,t,n=[],i=this._flatData(this._data);for(e=0,t=i.length;t>e;e++)i[e].isNew&&i[e].isNew()&&n.push(i[e]);return n},updated:function(){var e,t,n=[],i=this._flatData(this._data);for(e=0,t=i.length;t>e;e++)i[e].isNew&&!i[e].isNew()&&i[e].dirty&&n.push(i[e]);return n},sync:function(){var t,n=this,i=[],r=[],o=n._destroyed,a=e.Deferred().resolve().promise();if(n.online()){if(!n.reader.model)return a;i=n.created(),r=n.updated(),t=[],n.options.batch&&n.transport.submit?t=n._sendSubmit(i,r,o):(t.push.apply(t,n._send(\"create\",i)),t.push.apply(t,n._send(\"update\",r)),t.push.apply(t,n._send(\"destroy\",o))),a=e.when.apply(null,t).then(function(){var e,t;for(e=0,t=arguments.length;t>e;e++)n._accept(arguments[e]);n._storeData(!0),n._change({action:\"sync\"}),n.trigger(Ce)})}else n._storeData(!0),n._change({action:\"sync\"});return a},cancelChanges:function(e){var t=this;e instanceof fe.data.Model?t._cancelModel(e):(t._destroyed=[],t._detachObservableParents(),t._data=t._observe(t._pristineData),t.options.serverPaging&&(t._total=t._pristineTotal),t._ranges=[],t._addRange(t._data),t._change())},hasChanges:function(){var e,t,n=this._flatData(this._data);if(this._destroyed.length)return!0;for(e=0,t=n.length;t>e;e++)if(n[e].isNew&&n[e].isNew()||n[e].dirty)return!0;return!1},_accept:function(t){var n,i=this,r=t.models,o=t.response,a=0,s=i._isServerGrouped(),l=i._pristineData,c=t.type;if(i.trigger(Ee,{response:o,type:c}),o&&!se(o)){if(o=i.reader.parse(o),i._handleCustomErrors(o))return;o=i.reader.data(o),le(o)||(o=[o])}else o=e.map(r,function(e){return e.toJSON()});for(\"destroy\"===c&&(i._destroyed=[]),a=0,n=r.length;n>a;a++)\"destroy\"!==c?(r[a].accept(o[a]),\"create\"===c?l.push(s?i._wrapInEmptyGroup(r[a]):o[a]):\"update\"===c&&i._updatePristineForModel(r[a],o[a])):i._removePristineForModel(r[a])},_updatePristineForModel:function(e,t){this._executeOnPristineForModel(e,function(e,n){fe.deepExtend(n[e],t)})},_executeOnPristineForModel:function(e,n){this._eachPristineItem(function(i){var r=M(i,e);return r>-1?(n(r,i),!0):t})},_removePristineForModel:function(e){this._executeOnPristineForModel(e,function(e,t){t.splice(e,1)})},_readData:function(e){var t=this._isServerGrouped()?this.reader.groups:this.reader.data;return t.call(this.reader,e)},_eachPristineItem:function(e){this._eachItem(this._pristineData,e)},_eachItem:function(e,t){e&&e.length&&(this._isServerGrouped()?D(e,t):t(e))},_pristineForModel:function(e){var n,i,r=function(r){return i=M(r,e),i>-1?(n=r[i],!0):t};return this._eachPristineItem(r),n},_cancelModel:function(e){var t=this._pristineForModel(e);this._eachItem(this._data,function(n){var i=R(n,e);i>=0&&(!t||e.isNew()&&!t.__state__?n.splice(i,1):n[i].accept(t))})},_submit:function(t,n){var i=this;i.trigger(De,{type:\"submit\"}),i.transport.submit(re({success:function(n,i){var r=e.grep(t,function(e){return e.type==i})[0];r&&r.resolve({response:n,models:r.models,type:i})},error:function(e,n,r){for(var o=0;t.length>o;o++)t[o].reject(e);i.error(e,n,r)}},n))},_sendSubmit:function(t,n,i){var r=this,o=[];return r.options.batch&&(t.length&&o.push(e.Deferred(function(e){e.type=\"create\",e.models=t})),n.length&&o.push(e.Deferred(function(e){e.type=\"update\",e.models=n})),i.length&&o.push(e.Deferred(function(e){e.type=\"destroy\",e.models=i})),r._submit(o,{data:{created:r.reader.serialize(b(t)),updated:r.reader.serialize(b(n)),destroyed:r.reader.serialize(b(i))}})),o},_promise:function(t,n,i){var r=this;return e.Deferred(function(e){r.trigger(De,{type:i}),r.transport[i].call(r.transport,re({success:function(t){e.resolve({response:t,models:n,type:i})},error:function(t,n,i){e.reject(t),r.error(t,n,i)}},t))}).promise()},_send:function(e,t){var n,i,r=this,o=[],a=r.reader.serialize(b(t));if(r.options.batch)t.length&&o.push(r._promise({data:{models:a}},t,e));else for(n=0,i=t.length;i>n;n++)o.push(r._promise({data:a[n]},[t[n]],e));return o},read:function(t){var n=this,i=n._params(t),r=e.Deferred();return n._queueRequest(i,function(){var e=n.trigger(De,{type:\"read\"});e?(n._dequeueRequest(),r.resolve(e)):(n.trigger(Ae),n._ranges=[],n.trigger(\"reset\"),n.online()?n.transport.read({data:i,success:function(e){n.success(e,i),r.resolve()},error:function(){var e=Oe.call(arguments);n.error.apply(n,e),r.reject.apply(r,e)}}):null!=n.options.offlineStorage&&(n.success(n.offlineData(),i),r.resolve()))}),r.promise()},_readAggregates:function(e){return this.reader.aggregates(e)},success:function(e){var n,i,r,o,a,s,l,c,d=this,u=d.options;if(d.trigger(Ee,{response:e,type:\"read\"}),d.online()){if(e=d.reader.parse(e),d._handleCustomErrors(e))return d._dequeueRequest(),t;d._total=d.reader.total(e),d._aggregate&&u.serverAggregates&&(d._aggregateResult=d._readAggregates(e)),e=d._readData(e)}else{for(e=d._readData(e),n=[],i={},r=d.reader.model,o=r?r.idField:\"id\",a=0;this._destroyed.length>a;a++)s=this._destroyed[a][o],i[s]=s;for(a=0;e.length>a;a++)l=e[a],c=l.__state__,\"destroy\"==c?i[l[o]]||this._destroyed.push(this._createNewModel(l)):n.push(l);e=n,d._total=e.length}d._pristineTotal=d._total,d._pristineData=e.slice(0),d._detachObservableParents(),d._data=d._observe(e),null!=d.options.offlineStorage&&d._eachItem(d._data,function(e){var t,n;for(t=0;e.length>t;t++)n=e.at(t),\"update\"==n.__state__&&(n.dirty=!0)}),d._storeData(),d._addRange(d._data),d._process(d._data),d._dequeueRequest()},_detachObservableParents:function(){if(this._data&&this._shouldDetachObservableParents)for(var e=0;this._data.length>e;e++)this._data[e].parent&&(this._data[e].parent=he)},_storeData:function(e){function t(e){var n,i,r,o=[];for(n=0;e.length>n;n++)i=e.at(n),r=i.toJSON(),a&&i.items?r.items=t(i.items):(r.uid=i.uid,s&&(i.isNew()?r.__state__=\"create\":i.dirty&&(r.__state__=\"update\"))),o.push(r);return o}var n,i,r,o,a=this._isServerGrouped(),s=this.reader.model;if(null!=this.options.offlineStorage){for(n=t(this._data),i=[],r=0;this._destroyed.length>r;r++)o=this._destroyed[r].toJSON(),o.__state__=\"destroy\",i.push(o);this.offlineData(n.concat(i)),e&&(this._pristineData=n)}},_addRange:function(e){var t=this,n=t._skip||0,i=n+t._flatData(e,!0).length;t._ranges.push({start:n,end:i,data:e,timestamp:(new Date).getTime()}),t._ranges.sort(function(e,t){return e.start-t.start})},error:function(e,t,n){this._dequeueRequest(),this.trigger(Ee,{}),this.trigger(Te,{xhr:e,status:t,errorThrown:n})},_params:function(e){var t=this,n=re({take:t.take(),skip:t.skip(),page:t.page(),pageSize:t.pageSize(),sort:t._sort,filter:t._filter,group:t._group,aggregate:t._aggregate},e);return t.options.serverPaging||(delete n.take,delete n.skip,delete n.page,delete n.pageSize),t.options.serverGrouping?t.reader.model&&n.group&&(n.group=L(n.group,t.reader.model)):delete n.group,t.options.serverFiltering?t.reader.model&&n.filter&&(n.filter=B(n.filter,t.reader.model)):delete n.filter,t.options.serverSorting?t.reader.model&&n.sort&&(n.sort=L(n.sort,t.reader.model)):delete n.sort,t.options.serverAggregates?t.reader.model&&n.aggregate&&(n.aggregate=L(n.aggregate,t.reader.model)):delete n.aggregate,n},_queueRequest:function(e,n){var i=this;i._requestInProgress?i._pending={\r\ncallback:oe(n,i),options:e}:(i._requestInProgress=!0,i._pending=t,n())},_dequeueRequest:function(){var e=this;e._requestInProgress=!1,e._pending&&e._queueRequest(e._pending.options,e._pending.callback)},_handleCustomErrors:function(e){if(this.reader.errors){var t=this.reader.errors(e);if(t)return this.trigger(Te,{xhr:null,status:\"customerror\",errorThrown:\"custom error\",errors:t}),!0}return!1},_shouldWrap:function(e){var t=this.reader.model;return t&&e.length?!(e[0]instanceof t):!1},_observe:function(e){var t,n=this,i=n.reader.model;return n._shouldDetachObservableParents=!0,e instanceof $e?(n._shouldDetachObservableParents=!1,n._shouldWrap(e)&&(e.type=n.reader.model,e.wrapAll(e,e))):(t=n.pageSize()&&!n.options.serverPaging?Ye:$e,e=new t(e,n.reader.model),e.parent=function(){return n.parent()}),n._isServerGrouped()&&T(e,i),n._changeHandler&&n._data&&n._data instanceof $e?n._data.unbind(xe,n._changeHandler):n._changeHandler=oe(n._change,n),e.bind(xe,n._changeHandler)},_updateTotalForAction:function(e,t){var n=this,i=parseInt(n._total,10);v(n._total)||(i=parseInt(n._pristineTotal,10)),\"add\"===e?i+=t.length:\"remove\"===e?i-=t.length:\"itemchange\"===e||\"sync\"===e||n.options.serverPaging?\"sync\"===e&&(i=n._pristineTotal=parseInt(n._total,10)):i=n._pristineTotal,n._total=i},_change:function(e){var t,n,i,r=this,o=e?e.action:\"\";if(\"remove\"===o)for(t=0,n=e.items.length;n>t;t++)e.items[t].isNew&&e.items[t].isNew()||r._destroyed.push(e.items[t]);!r.options.autoSync||\"add\"!==o&&\"remove\"!==o&&\"itemchange\"!==o?(r._updateTotalForAction(o,e?e.items:[]),r._process(r._data,e)):(i=function(t){\"sync\"===t.action&&(r.unbind(\"change\",i),r._updateTotalForAction(o,e.items))},r.first(\"change\",i),r.sync())},_calculateAggregates:function(e,t){t=t||{};var n=new o(e),i=t.aggregate,r=t.filter;return r&&(n=n.filter(r)),n.aggregate(i)},_process:function(e,n){var i,r=this,o={};r.options.serverPaging!==!0&&(o.skip=r._skip,o.take=r._take||r._pageSize,o.skip===t&&r._page!==t&&r._pageSize!==t&&(o.skip=(r._page-1)*r._pageSize)),r.options.serverSorting!==!0&&(o.sort=r._sort),r.options.serverFiltering!==!0&&(o.filter=r._filter),r.options.serverGrouping!==!0&&(o.group=r._group),r.options.serverAggregates!==!0&&(o.aggregate=r._aggregate,r._aggregateResult=r._calculateAggregates(e,o)),i=r._queryProcess(e,o),r.view(i.data),i.total===t||r.options.serverFiltering||(r._total=i.total),n=n||{},n.items=n.items||r._view,r.trigger(xe,n)},_queryProcess:function(e,t){return o.process(e,t)},_mergeState:function(e){var n=this;return e!==t&&(n._pageSize=e.pageSize,n._page=e.page,n._sort=e.sort,n._filter=e.filter,n._group=e.group,n._aggregate=e.aggregate,n._skip=n._currentRangeStart=e.skip,n._take=e.take,n._skip===t&&(n._skip=n._currentRangeStart=n.skip(),e.skip=n.skip()),n._take===t&&n._pageSize!==t&&(n._take=n._pageSize,e.take=n._take),e.sort&&(n._sort=e.sort=a(e.sort)),e.filter&&(n._filter=e.filter=l(e.filter)),e.group&&(n._group=e.group=p(e.group)),e.aggregate&&(n._aggregate=e.aggregate=f(e.aggregate))),e},query:function(n){var i,r,o=this.options.serverSorting||this.options.serverPaging||this.options.serverFiltering||this.options.serverGrouping||this.options.serverAggregates;return o||(this._data===t||0===this._data.length)&&!this._destroyed.length?this.read(this._mergeState(n)):(r=this.trigger(De,{type:\"read\"}),r||(this.trigger(Ae),i=this._queryProcess(this._data,this._mergeState(n)),this.options.serverFiltering||(this._total=i.total!==t?i.total:this._data.length),this._aggregateResult=this._calculateAggregates(this._data,n),this.view(i.data),this.trigger(Ee,{type:\"read\"}),this.trigger(xe,{items:i.data})),e.Deferred().resolve(r).promise())},fetch:function(e){var t=this,n=function(n){n!==!0&&pe(e)&&e.call(t)};return this._query().then(n)},_query:function(e){var t=this;return t.query(re({},{page:t.page(),pageSize:t.pageSize(),sort:t.sort(),filter:t.filter(),group:t.group(),aggregate:t.aggregate()},e))},next:function(e){var n=this,i=n.page(),r=n.total();return e=e||{},!i||r&&i+1>n.totalPages()?t:(n._skip=n._currentRangeStart=i*n.take(),i+=1,e.page=i,n._query(e),i)},prev:function(e){var n=this,i=n.page();return e=e||{},i&&1!==i?(n._skip=n._currentRangeStart=n._skip-n.take(),i-=1,e.page=i,n._query(e),i):t},page:function(e){var n,i=this;return e!==t?(e=Pe.max(Pe.min(Pe.max(e,1),i.totalPages()),1),i._query({page:e}),t):(n=i.skip(),n!==t?Pe.round((n||0)/(i.take()||1))+1:t)},pageSize:function(e){var n=this;return e!==t?(n._query({pageSize:e,page:1}),t):n.take()},sort:function(e){var n=this;return e!==t?(n._query({sort:e}),t):n._sort},filter:function(e){var n=this;return e===t?n._filter:(n.trigger(\"reset\"),n._query({filter:e,page:1}),t)},group:function(e){var n=this;return e!==t?(n._query({group:e}),t):n._group},total:function(){return parseInt(this._total||0,10)},aggregate:function(e){var n=this;return e!==t?(n._query({aggregate:e}),t):n._aggregate},aggregates:function(){var e=this._aggregateResult;return se(e)&&(e=this._emptyAggregates(this.aggregate())),e},_emptyAggregates:function(e){var t,n,i={};if(!se(e))for(t={},le(e)||(e=[e]),n=0;e.length>n;n++)t[e[n].aggregate]=0,i[e[n].field]=t;return i},_wrapInEmptyGroup:function(e){var t,n,i,r,o=this.group();for(i=o.length-1,r=0;i>=r;i--)n=o[i],t={value:e.get(n.field),field:n.field,items:t?[t]:[e],hasSubgroups:!!t,aggregates:this._emptyAggregates(n.aggregates)};return t},totalPages:function(){var e=this,t=e.pageSize()||e.total();return Pe.ceil((e.total()||0)/t)},inRange:function(e,t){var n=this,i=Pe.min(e+t,n.total());return!n.options.serverPaging&&n._data.length>0?!0:n._findRange(e,i).length>0},lastRange:function(){var e=this._ranges;return e[e.length-1]||{start:0,end:0,data:[]}},firstItemUid:function(){var e=this._ranges;return e.length&&e[0].data.length&&e[0].data[0].uid},enableRequestsInProgress:function(){this._skipRequestsInProgress=!1},_timeStamp:function(){return(new Date).getTime()},range:function(e,n){var i,r,o,a,s,l,c,d;if(this._currentRequestTimeStamp=this._timeStamp(),this._skipRequestsInProgress=!0,e=Pe.min(e||0,this.total()),i=this,r=Pe.max(Pe.floor(e/n),0)*n,o=Pe.min(r+n,i.total()),a=i._findRange(e,Pe.min(e+n,i.total())),a.length){i._pending=t,i._skip=e>i.skip()?Pe.min(o,(i.totalPages()-1)*i.take()):r,i._currentRangeStart=e,i._take=n,s=i.options.serverPaging,l=i.options.serverSorting,c=i.options.serverFiltering,d=i.options.serverAggregates;try{i.options.serverPaging=!0,i._isServerGrouped()||i.group()&&i.group().length||(i.options.serverSorting=!0),i.options.serverFiltering=!0,i.options.serverPaging=!0,i.options.serverAggregates=!0,s&&(i._detachObservableParents(),i._data=a=i._observe(a)),i._process(a)}finally{i.options.serverPaging=s,i.options.serverSorting=l,i.options.serverFiltering=c,i.options.serverAggregates=d}}else n!==t&&(i._rangeExists(r,o)?e>r&&i.prefetch(o,n,function(){i.range(e,n)}):i.prefetch(r,n,function(){e>r&&or;r++)if(i=_[r],e>=i.start&&i.end>=e){for(f=0,o=r;m>o;o++)if(i=_[o],h=v._flatData(i.data,!0),h.length&&e+f>=i.start&&(c=i.data,d=i.end,y||(g=p(v.group()||[]).concat(a(v.sort()||[])),u=v._queryProcess(i.data,{sort:g,filter:v.filter()}),h=c=u.data,u.total!==t&&(d=u.total)),s=0,e+f>i.start&&(s=e+f-i.start),l=h.length,d>n&&(l-=d-n),f+=l-s,b=v._mergeGroups(b,c,s,l),i.end>=n&&f==n-e))return b;break}return[]},_mergeGroups:function(e,t,n,i){if(this._isServerGrouped()){var r,o=t.toJSON();return e.length&&(r=e[e.length-1]),C(r,o,n,i),e.concat(o)}return e.concat(t.slice(n,i))},skip:function(){var e=this;return e._skip===t?e._page!==t?(e._page-1)*(e.take()||1):t:e._skip},currentRangeStart:function(){return this._currentRangeStart||0},take:function(){return this._take||this._pageSize},_prefetchSuccessHandler:function(e,t,n,i){var r=this,o=r._timeStamp();return function(a){var s,l,c,d=!1,u={start:e,end:t,data:[],timestamp:r._timeStamp()};if(r._dequeueRequest(),r.trigger(Ee,{response:a,type:\"read\"}),a=r.reader.parse(a),c=r._readData(a),c.length){for(s=0,l=r._ranges.length;l>s;s++)if(r._ranges[s].start===e){d=!0,u=r._ranges[s];break}d||r._ranges.push(u)}u.data=r._observe(c),u.end=u.start+r._flatData(u.data,!0).length,r._ranges.sort(function(e,t){return e.start-t.start}),r._total=r.reader.total(a),(i||o>=r._currentRequestTimeStamp||!r._skipRequestsInProgress)&&(n&&c.length?n():r.trigger(xe,{}))}},prefetch:function(e,t,n){var i=this,r=Pe.min(e+t,i.total()),o={take:t,skip:e,page:e/t+1,pageSize:t,sort:i._sort,filter:i._filter,group:i._group,aggregate:i._aggregate};i._rangeExists(e,r)?n&&n():(clearTimeout(i._timeout),i._timeout=setTimeout(function(){i._queueRequest(o,function(){i.trigger(De,{type:\"read\"})?i._dequeueRequest():i.transport.read({data:i._params(o),success:i._prefetchSuccessHandler(e,r,n),error:function(){var e=Oe.call(arguments);i.error.apply(i,e)}})})},100))},_multiplePrefetch:function(e,t,n){var i=this,r=Pe.min(e+t,i.total()),o={take:t,skip:e,page:e/t+1,pageSize:t,sort:i._sort,filter:i._filter,group:i._group,aggregate:i._aggregate};i._rangeExists(e,r)?n&&n():i.trigger(De,{type:\"read\"})||i.transport.read({data:i._params(o),success:i._prefetchSuccessHandler(e,r,n,!0)})},_rangeExists:function(e,t){var n,i,r=this,o=r._ranges;for(n=0,i=o.length;i>n;n++)if(e>=o[n].start&&o[n].end>=t)return!0;return!1},_removeModelFromRanges:function(e){var t,n,i,r,o;for(r=0,o=this._ranges.length;o>r&&(i=this._ranges[r],this._eachItem(i.data,function(i){t=F(i,e),t&&(n=!0)}),!n);r++);},_updateRangesLength:function(){var e,t,n,i,r=0;for(n=0,i=this._ranges.length;i>n;n++)e=this._ranges[n],e.start=e.start-r,t=this._flatData(e.data,!0).length,r=e.end-t,e.end=e.start+t}}),Z={},Z.create=function(t,n,i){var r,o=t.transport?e.extend({},t.transport):null;return o?(o.read=typeof o.read===ve?{url:o.read}:o.read,\"jsdo\"===t.type&&(o.dataSource=i),t.type&&(fe.data.transports=fe.data.transports||{},fe.data.schemas=fe.data.schemas||{},fe.data.transports[t.type]&&!ae(fe.data.transports[t.type])?r=new fe.data.transports[t.type](re(o,{data:n})):o=re(!0,{},fe.data.transports[t.type],o),t.schema=re(!0,{},fe.data.schemas[t.type],t.schema)),r||(r=pe(o.read)?o:new K(o))):r=new Y({data:t.data||[]}),r},J.create=function(e){(le(e)||e instanceof $e)&&(e={data:e});var n,i,r,o=e||{},a=o.data,s=o.fields,l=o.table,c=o.select,d={};if(a||!s||o.transport||(l?a=N(l,s):c&&(a=H(c,s),o.group===t&&a[0]&&a[0].optgroup!==t&&(o.group=\"optgroup\"))),fe.data.Model&&s&&(!o.schema||!o.schema.model)){for(n=0,i=s.length;i>n;n++)r=s[n],r.type&&(d[r.field]=r);se(d)||(o.schema=re(!0,o.schema,{model:{fields:d}}))}return o.data=a,c=null,o.select=null,l=null,o.table=null,o instanceof J?o:new J(o)},ee=Je.define({idField:\"id\",init:function(e){var t=this,n=t.hasChildren||e&&e.hasChildren,i=\"items\",r={};fe.data.Model.fn.init.call(t,e),typeof t.children===ve&&(i=t.children),r={schema:{data:i,model:{hasChildren:n,id:t.idField,fields:t.fields}}},typeof t.children!==ve&&re(r,t.children),r.data=e,n||(n=r.schema.data),typeof n===ve&&(n=fe.getter(n)),pe(n)&&(t.hasChildren=!!n.call(t,t)),t._childrenOptions=r,t.hasChildren&&t._initChildren(),t._loaded=!(!e||!e._loaded)},_initChildren:function(){var e,t,n,i=this;i.children instanceof te||(e=i.children=new te(i._childrenOptions),t=e.transport,n=t.parameterMap,t.parameterMap=function(e,t){return e[i.idField||\"id\"]=i.id,n&&(e=n(e,t)),e},e.parent=function(){return i},e.bind(xe,function(e){e.node=e.node||i,i.trigger(xe,e)}),e.bind(Te,function(e){var t=i.parent();t&&(e.node=e.node||i,t.trigger(Te,e))}),i._updateChildrenField())},append:function(e){this._initChildren(),this.loaded(!0),this.children.add(e)},hasChildren:!1,level:function(){for(var e=this.parentNode(),t=0;e&&e.parentNode;)t++,e=e.parentNode?e.parentNode():null;return t},_updateChildrenField:function(){var e=this._childrenOptions.schema.data;this[e||\"items\"]=this.children.data()},_childrenLoaded:function(){this._loaded=!0,this._updateChildrenField()},load:function(){var n,i,r={},o=\"_query\";return this.hasChildren?(this._initChildren(),n=this.children,r[this.idField||\"id\"]=this.id,this._loaded||(n._data=t,o=\"read\"),n.one(xe,oe(this._childrenLoaded,this)),i=n[o](r)):this.loaded(!0),i||e.Deferred().resolve().promise()},parentNode:function(){var e=this.parent();return e.parent()},loaded:function(e){return e===t?this._loaded:(this._loaded=e,t)},shouldSerialize:function(e){return Je.fn.shouldSerialize.call(this,e)&&\"children\"!==e&&\"_loaded\"!==e&&\"hasChildren\"!==e&&\"_childrenOptions\"!==e}}),te=J.extend({init:function(e){var t=ee.define({children:e});J.fn.init.call(this,re(!0,{},{schema:{modelBase:t,model:t}},e)),this._attachBubbleHandlers()},_attachBubbleHandlers:function(){var e=this;e._data.bind(Te,function(t){e.trigger(Te,t)})},remove:function(e){var t,n=e.parentNode(),i=this;return n&&n._initChildren&&(i=n.children),t=J.fn.remove.call(i,e),n&&!i.data().length&&(n.hasChildren=!1),t},success:O(\"success\"),data:O(\"data\"),insert:function(e,t){var n=this.parent();return n&&n._initChildren&&(n.hasChildren=!0,n._initChildren()),J.fn.insert.call(this,e,t)},_find:function(e,t){var n,i,r,o,a=this._data;if(a){if(r=J.fn[e].call(this,t))return r;for(a=this._flatData(this._data),n=0,i=a.length;i>n;n++)if(o=a[n].children,o instanceof te&&(r=o[e](t)))return r}},get:function(e){return this._find(\"get\",e)},getByUid:function(e){return this._find(\"getByUid\",e)}}),te.create=function(e){e=e&&e.push?{data:e}:e;var t=e||{},n=t.data,i=t.fields,r=t.list;return n&&n._dataSource?n._dataSource:(n||!i||t.transport||r&&(n=V(r,i)),t.data=n,t instanceof te?t:new te(t))},ne=fe.Observable.extend({init:function(e,t,n){fe.Observable.fn.init.call(this),this._prefetching=!1,this.dataSource=e,this.prefetch=!n;var i=this;e.bind(\"change\",function(){i._change()}),e.bind(\"reset\",function(){i._reset()}),this._syncWithDataSource(),this.setViewSize(t)},setViewSize:function(e){this.viewSize=e,this._recalculate()},at:function(e){var n=this.pageSize,i=!0;return e>=this.total()?(this.trigger(\"endreached\",{index:e}),null):this.useRanges?this.useRanges?((this.dataOffset>e||e>=this.skip+n)&&(i=this.range(Math.floor(e/n)*n)),e===this.prefetchThreshold&&this._prefetch(),e===this.midPageThreshold?this.range(this.nextMidRange,!0):e===this.nextPageThreshold?this.range(this.nextFullRange):e===this.pullBackThreshold&&this.range(this.offset===this.skip?this.previousMidRange:this.previousFullRange),i?this.dataSource.at(e-this.dataOffset):(this.trigger(\"endreached\",{index:e}),null)):t:this.dataSource.view()[e]},indexOf:function(e){return this.dataSource.data().indexOf(e)+this.dataOffset},total:function(){return parseInt(this.dataSource.total(),10)},next:function(){var e=this,t=e.pageSize,n=e.skip-e.viewSize+t,i=Pe.max(Pe.floor(n/t),0)*t;this.offset=n,this.dataSource.prefetch(i,t,function(){e._goToRange(n,!0)})},range:function(e,t){if(this.offset===e)return!0;var n=this,i=this.pageSize,r=Pe.max(Pe.floor(e/i),0)*i,o=this.dataSource;return t&&(r+=i),o.inRange(e,i)?(this.offset=e,this._recalculate(),this._goToRange(e),!0):this.prefetch?(o.prefetch(r,i,function(){n.offset=e,n._recalculate(),n._goToRange(e,!0)}),!1):!0},syncDataSource:function(){var e=this.offset;this.offset=null,this.range(e)},destroy:function(){this.unbind()},_prefetch:function(){var e=this,t=this.pageSize,n=this.skip+t,i=this.dataSource;i.inRange(n,t)||this._prefetching||!this.prefetch||(this._prefetching=!0,this.trigger(\"prefetching\",{skip:n,take:t}),i.prefetch(n,t,function(){e._prefetching=!1,e.trigger(\"prefetched\",{skip:n,take:t})}))},_goToRange:function(e,t){this.offset===e&&(this.dataOffset=e,this._expanding=t,this.dataSource.range(e,this.pageSize),this.dataSource.enableRequestsInProgress())},_reset:function(){this._syncPending=!0},_change:function(){var e=this.dataSource;this.length=this.useRanges?e.lastRange().end:e.view().length,this._syncPending&&(this._syncWithDataSource(),this._recalculate(),this._syncPending=!1,this.trigger(\"reset\",{offset:this.offset})),this.trigger(\"resize\"),this._expanding&&this.trigger(\"expand\"),delete this._expanding},_syncWithDataSource:function(){var e=this.dataSource;this._firstItemUid=e.firstItemUid(),this.dataOffset=this.offset=e.skip()||0,this.pageSize=e.pageSize(),this.useRanges=e.options.serverPaging},_recalculate:function(){var e=this.pageSize,t=this.offset,n=this.viewSize,i=Math.ceil(t/e)*e;this.skip=i,this.midPageThreshold=i+e-1,this.nextPageThreshold=i+n-1,this.prefetchThreshold=i+Math.floor(e/3*2),this.pullBackThreshold=this.offset-1,this.nextMidRange=i+e-n,this.nextFullRange=i,this.previousMidRange=t-n,this.previousFullRange=i-e}}),ie=fe.Observable.extend({init:function(e,t){var n=this;fe.Observable.fn.init.call(n),this.dataSource=e,this.batchSize=t,this._total=0,this.buffer=new ne(e,3*t),this.buffer.bind({endreached:function(e){n.trigger(\"endreached\",{index:e.index})},prefetching:function(e){n.trigger(\"prefetching\",{skip:e.skip,take:e.take})},prefetched:function(e){n.trigger(\"prefetched\",{skip:e.skip,take:e.take})},reset:function(){n._total=0,n.trigger(\"reset\")},resize:function(){n._total=Math.ceil(this.length/n.batchSize),n.trigger(\"resize\",{total:n.total(),offset:this.offset})}})},syncDataSource:function(){this.buffer.syncDataSource()},at:function(e){var t,n,i=this.buffer,r=e*this.batchSize,o=this.batchSize,a=[];for(i.offset>r&&i.at(i.offset-1),n=0;o>n&&(t=i.at(r+n),null!==t);n++)a.push(t);return a},total:function(){return this._total},destroy:function(){this.buffer.destroy(),this.unbind()}}),re(!0,fe.data,{readers:{json:X},Query:o,DataSource:J,HierarchicalDataSource:te,Node:ee,ObservableObject:Ke,ObservableArray:$e,LazyObservableArray:Ye,LocalTransport:Y,RemoteTransport:K,Cache:Q,DataReader:X,Model:Je,Buffer:ne,BatchBuffer:ie})}(window.kendo.jQuery),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.binder.min\",[\"kendo.core.min\",\"kendo.data.min\"],e)}(function(){return function(e,t){function n(t,n,i){return v.extend({init:function(e,t,n){var i=this;v.fn.init.call(i,e.element[0],t,n),i.widget=e,i._dataBinding=F(i.dataBinding,i),i._dataBound=F(i.dataBound,i),i._itemChange=F(i.itemChange,i)},itemChange:function(e){a(e.item[0],e.data,this._ns(e.ns),[e.data].concat(this.bindings[t]._parents()))},dataBinding:function(e){var t,n,i=this.widget,r=e.removedItems||i.items();for(t=0,n=r.length;n>t;t++)c(r[t],!1)},_ns:function(t){t=t||C.ui;var n=[C.ui,C.dataviz.ui,C.mobile.ui];return n.splice(e.inArray(t,n),1),n.unshift(t),C.rolesFromNamespaces(n)},dataBound:function(e){var i,r,o,s,l=this.widget,c=e.addedItems||l.items(),d=l[n],u=C.data.HierarchicalDataSource;if(!(u&&d instanceof u)&&c.length)for(o=e.addedDataItems||d.flatView(),s=this.bindings[t]._parents(),i=0,r=o.length;r>i;i++)a(c[i],o[i],this._ns(e.ns),[o[i]].concat(s))},refresh:function(e){var r,o,a,s=this,l=s.widget;e=e||{},e.action||(s.destroy(),l.bind(\"dataBinding\",s._dataBinding),l.bind(\"dataBound\",s._dataBound),l.bind(\"itemChange\",s._itemChange),r=s.bindings[t].get(),l[n]instanceof C.data.DataSource&&l[n]!=r&&(r instanceof C.data.DataSource?l[i](r):r&&r._dataSource?l[i](r._dataSource):(l[n].data(r),o=C.ui.Select&&l instanceof C.ui.Select,a=C.ui.MultiSelect&&l instanceof C.ui.MultiSelect,s.bindings.value&&(o||a)&&l.value(f(s.bindings.value.get(),l.options.dataValueField)))))},destroy:function(){var e=this.widget;e.unbind(\"dataBinding\",this._dataBinding),e.unbind(\"dataBound\",this._dataBound),e.unbind(\"itemChange\",this._itemChange)}})}function i(e,n){var i=C.initWidget(e,{},n);return i?new y(i):t}function r(e){var t,n,i,o,a,s,l,c={};for(l=e.match(k),t=0,n=l.length;n>t;t++)i=l[t],o=i.indexOf(\":\"),a=i.substring(0,o),s=i.substring(o+1),\"{\"==s.charAt(0)&&(s=r(s)),c[a]=s;return c}function o(e,t,n){var i,r={};for(i in e)r[i]=new n(t,e[i]);return r}function a(e,t,n,s){var c,d,u,h=e.getAttribute(\"data-\"+C.ns+\"role\"),f=e.getAttribute(\"data-\"+C.ns+\"bind\"),v=e.children,_=[],b=!0,y={};if(s=s||[t],(h||f)&&l(e,!1),h&&(u=i(e,n)),f&&(f=r(f.replace(x,\"\")),u||(y=C.parseOptions(e,{textField:\"\",valueField:\"\",template:\"\",valueUpdate:N,valuePrimitive:!1,autoBind:!0}),y.roles=n,u=new w(e,y)),u.source=t,d=o(f,s,p),y.template&&(d.template=new g(s,\"\",y.template)),d.click&&(f.events=f.events||{},f.events.click=f.click,d.click.destroy(),delete d.click),d.source&&(b=!1),f.attr&&(d.attr=o(f.attr,s,p)),f.style&&(d.style=o(f.style,s,p)),f.events&&(d.events=o(f.events,s,m)),f.css&&(d.css=o(f.css,s,p)),u.bind(d)),u&&(e.kendoBindingTarget=u),b&&v){for(c=0;v.length>c;c++)_[c]=v[c];for(c=0;_.length>c;c++)a(_[c],t,n,s)}}function s(t,n){var i,r,o,s=C.rolesFromNamespaces([].slice.call(arguments,2));for(n=C.observable(n),t=e(t),i=0,r=t.length;r>i;i++)o=t[i],1===o.nodeType&&a(o,n,s)}function l(t,n){var i,r=t.kendoBindingTarget;r&&(r.destroy(),L?delete t.kendoBindingTarget:t.removeAttribute?t.removeAttribute(\"kendoBindingTarget\"):t.kendoBindingTarget=null),n&&(i=C.widgetInstance(e(t)),i&&typeof i.destroy===H&&i.destroy())}function c(e,t){l(e,t),d(e,t)}function d(e,t){var n,i,r=e.children;if(r)for(n=0,i=r.length;i>n;n++)c(r[n],t)}function u(t){var n,i;for(t=e(t),n=0,i=t.length;i>n;n++)c(t[n],!1)}function h(e,t){var n=e.element,i=n[0].kendoBindingTarget;i&&s(n,i.source,t)}function f(e,t){var n,i,r=[],o=0;if(!t)return e;if(e instanceof D){for(n=e.length;n>o;o++)i=e[o],r[o]=i.get?i.get(t):i[t];e=r}else e instanceof T&&(e=e.get(t));return e}var p,m,g,v,_,b,w,y,k,x,C=window.kendo,S=C.Observable,T=C.data.ObservableObject,D=C.data.ObservableArray,A={}.toString,E={},I=C.Class,F=e.proxy,M=\"value\",R=\"source\",P=\"events\",z=\"checked\",B=\"css\",L=!0,H=\"function\",N=\"change\";!function(){var e=document.createElement(\"a\");try{delete e.test}catch(t){L=!1}}(),p=S.extend({init:function(e,t){var n=this;S.fn.init.call(n),n.source=e[0],n.parents=e,n.path=t,n.dependencies={},n.dependencies[t]=!0,n.observable=n.source instanceof S,n._access=function(e){n.dependencies[e.field]=!0},n.observable&&(n._change=function(e){n.change(e)},n.source.bind(N,n._change))},_parents:function(){var t,n=this.parents,i=this.get();return i&&\"function\"==typeof i.parent&&(t=i.parent(),e.inArray(t,n)<0&&(n=[t].concat(n))),n},change:function(e){var t,n,i=e.field,r=this;if(\"this\"===r.path)r.trigger(N,e);else for(t in r.dependencies)if(0===t.indexOf(i)&&(n=t.charAt(i.length),!n||\".\"===n||\"[\"===n)){r.trigger(N,e);break}},start:function(e){e.bind(\"get\",this._access)},stop:function(e){e.unbind(\"get\",this._access)},get:function(){var e=this,n=e.source,i=0,r=e.path,o=n;if(!e.observable)return o;for(e.start(e.source),o=n.get(r);o===t&&n;)n=e.parents[++i],n instanceof T&&(o=n.get(r));if(o===t)for(n=e.source;o===t&&n;)n=n.parent(),n instanceof T&&(o=n.get(r));return\"function\"==typeof o&&(i=r.lastIndexOf(\".\"),i>0&&(n=n.get(r.substring(0,i))),e.start(n),o=n!==e.source?o.call(n,e.source):o.call(n),e.stop(n)),n&&n!==e.source&&(e.currentSource=n,n.unbind(N,e._change).bind(N,e._change)),e.stop(e.source),o},set:function(e){var t=this.currentSource||this.source,n=C.getter(this.path)(t);\"function\"==typeof n?t!==this.source?n.call(t,this.source,e):n.call(t,e):t.set(this.path,e)},destroy:function(){this.observable&&(this.source.unbind(N,this._change),this.currentSource&&this.currentSource.unbind(N,this._change)),this.unbind()}}),m=p.extend({get:function(){var e,t=this.source,n=this.path,i=0;for(e=t.get(n);!e&&t;)t=this.parents[++i],t instanceof T&&(e=t.get(n));return F(e,t)}}),g=p.extend({init:function(e,t,n){var i=this;p.fn.init.call(i,e,t),i.template=n},render:function(e){var t;return this.start(this.source),t=C.render(this.template,e),this.stop(this.source),t}}),v=I.extend({init:function(e,t,n){this.element=e,this.bindings=t,this.options=n},bind:function(e,t){var n=this;e=t?e[t]:e,e.bind(N,function(e){n.refresh(t||e)}),n.refresh(t)},destroy:function(){}}),_=v.extend({dataType:function(){var e=this.element.getAttribute(\"data-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}}),E.attr=v.extend({refresh:function(e){this.element.setAttribute(e,this.bindings.attr[e].get())}}),E.css=v.extend({init:function(e,t,n){v.fn.init.call(this,e,t,n),this.classes={}},refresh:function(t){var n=e(this.element),i=this.bindings.css[t],r=this.classes[t]=i.get();r?n.addClass(t):n.removeClass(t)}}),E.style=v.extend({refresh:function(e){this.element.style[e]=this.bindings.style[e].get()||\"\"}}),E.enabled=v.extend({refresh:function(){this.bindings.enabled.get()?this.element.removeAttribute(\"disabled\"):this.element.setAttribute(\"disabled\",\"disabled\")}}),E.readonly=v.extend({refresh:function(){this.bindings.readonly.get()?this.element.setAttribute(\"readonly\",\"readonly\"):this.element.removeAttribute(\"readonly\")}}),E.disabled=v.extend({refresh:function(){this.bindings.disabled.get()?this.element.setAttribute(\"disabled\",\"disabled\"):this.element.removeAttribute(\"disabled\")}}),E.events=v.extend({init:function(e,t,n){v.fn.init.call(this,e,t,n),this.handlers={}},refresh:function(t){var n=e(this.element),i=this.bindings.events[t],r=this.handlers[t];r&&n.off(t,r),r=this.handlers[t]=i.get(),n.on(t,i.source,r)},destroy:function(){var t,n=e(this.element);for(t in this.handlers)n.off(t,this.handlers[t])}}),E.text=v.extend({refresh:function(){var t=this.bindings.text.get(),n=this.element.getAttribute(\"data-format\")||\"\";null==t&&(t=\"\"),e(this.element).text(C.toString(t,n))}}),E.visible=v.extend({refresh:function(){this.element.style.display=this.bindings.visible.get()?\"\":\"none\"}}),E.invisible=v.extend({refresh:function(){this.element.style.display=this.bindings.invisible.get()?\"none\":\"\"}}),E.html=v.extend({refresh:function(){this.element.innerHTML=this.bindings.html.get()}}),E.value=_.extend({init:function(t,n,i){_.fn.init.call(this,t,n,i),this._change=F(this.change,this),this.eventName=i.valueUpdate||N,e(this.element).on(this.eventName,this._change),this._initChange=!1},change:function(){this._initChange=this.eventName!=N,this.bindings[M].set(this.parsedValue()),this._initChange=!1},refresh:function(){var e,t;this._initChange||(e=this.bindings[M].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)}}),E.source=v.extend({init:function(e,t,n){v.fn.init.call(this,e,t,n);var i=this.bindings.source.get();i instanceof C.data.DataSource&&n.autoBind!==!1&&i.fetch()},refresh:function(e){var t=this,n=t.bindings.source.get();n instanceof D||n 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,n=this.container().nodeName.toLowerCase();return t||(t=\"select\"==n?e.valueField||e.textField?C.format('',e.valueField||e.textField,e.textField||e.valueField):\"\":\"tbody\"==n?\"#:data#\":\"ul\"==n||\"ol\"==n?\"
  • #:data#
  • \":\"#:data#\",t=C.template(t)),t},add:function(t,n){var i,r,o,s,l=this.container(),c=l.cloneNode(!1),d=l.children[t];if(e(c).html(C.render(this.template(),n)),c.children.length)for(i=this.bindings.source._parents(),r=0,o=n.length;o>r;r++)s=c.children[0],l.insertBefore(s,d||null),a(s,n[r],this.options.roles,[n[r]].concat(i))},remove:function(e,t){var n,i,r=this.container();for(n=0;t.length>n;n++)i=r.children[e],c(i,!0),r.removeChild(i)},render:function(){var t,n,i,r=this.bindings.source.get(),o=this.container(),s=this.template();if(null!=r)if(r instanceof C.data.DataSource&&(r=r.view()),r instanceof D||\"[object Array]\"===A.call(r)||(r=[r]),this.bindings.template){if(d(o,!0),e(o).html(this.bindings.template.render(r)),o.children.length)for(t=this.bindings.source._parents(),n=0,i=r.length;i>n;n++)a(o.children[n],r[n],this.options.roles,[r[n]].concat(t))}else e(o).html(C.render(s,r))}}),E.input={checked:_.extend({init:function(t,n,i){_.fn.init.call(this,t,n,i),this._change=F(this.change,this),e(this.element).change(this._change)},change:function(){var e,t,n,i=this.element,r=this.value();if(\"radio\"==i.type)r=this.parsedValue(),this.bindings[z].set(r);else if(\"checkbox\"==i.type)if(e=this.bindings[z].get(),e instanceof D){if(r=this.parsedValue(),r instanceof Date){for(n=0;e.length>n;n++)if(e[n]instanceof Date&&+e[n]===+r){t=n;break}}else t=e.indexOf(r);t>-1?e.splice(t,1):e.push(r)}else this.bindings[z].set(r)},refresh:function(){var e,t,n=this.bindings[z].get(),i=n,r=this.dataType(),o=this.element;if(\"checkbox\"==o.type)if(i instanceof D){if(e=-1,n=this.parsedValue(),n instanceof Date){for(t=0;i.length>t;t++)if(i[t]instanceof Date&&+i[t]===+n){e=t;break}}else e=i.indexOf(n);o.checked=e>=0}else o.checked=i;else\"radio\"==o.type&&null!=n&&(\"date\"==r?n=C.toString(n,\"yyyy-MM-dd\"):\"datetime-local\"==r&&(n=C.toString(n,\"yyyy-MM-ddTHH:mm:ss\")),o.checked=o.value===\"\"+n?!0:!1)},value:function(){var e=this.element,t=e.value;return\"checkbox\"==e.type&&(t=e.checked),t},destroy:function(){e(this.element).off(N,this._change)}})},E.select={source:E.source.extend({refresh:function(n){var i,r=this,o=r.bindings.source.get();o instanceof D||o instanceof C.data.DataSource?(n=n||{},\"add\"==n.action?r.add(n.index,n.items):\"remove\"==n.action?r.remove(n.index,n.items):(\"itemchange\"==n.action||n.action===t)&&(r.render(),r.bindings.value&&r.bindings.value&&(i=f(r.bindings.value.get(),e(r.element).data(\"valueField\")),null===i?r.element.selectedIndex=-1:r.element.value=i))):r.render()}}),value:_.extend({init:function(t,n,i){_.fn.init.call(this,t,n,i),this._change=F(this.change,this),e(this.element).change(this._change)},parsedValue:function(){var e,t,n,i,r=this.dataType(),o=[];for(n=0,i=this.element.options.length;i>n;n++)t=this.element.options[n],t.selected&&(e=t.attributes.value,e=e&&e.specified?t.value:t.text,o.push(this._parseValue(e,r)));return o},change:function(){var e,n,i,r,o,a,s,l,c=[],d=this.element,u=this.options.valueField||this.options.textField,h=this.options.valuePrimitive;for(o=0,a=d.options.length;a>o;o++)n=d.options[o],n.selected&&(r=n.attributes.value,r=r&&r.specified?n.value:n.text,c.push(this._parseValue(r,this.dataType())));if(u)for(e=this.bindings.source.get(),e instanceof C.data.DataSource&&(e=e.view()),i=0;c.length>i;i++)for(o=0,a=e.length;a>o;o++)if(s=this._parseValue(e[o].get(u),this.dataType()),l=s+\"\"===c[i]){c[i]=e[o];break}r=this.bindings[M].get(),r instanceof D?r.splice.apply(r,[0,r.length].concat(c)):this.bindings[M].set(h||!(r instanceof T||null===r||r===t)&&u?c[0].get(u):c[0])},refresh:function(){var e,t,n,i=this.element,r=i.options,o=this.bindings[M].get(),a=o,s=this.options.valueField||this.options.textField,l=!1,c=this.dataType();for(a instanceof D||(a=new D([o])),i.selectedIndex=-1,n=0;a.length>n;n++)for(o=a[n],s&&o instanceof T&&(o=o.get(s)),\"date\"==c?o=C.toString(a[n],\"yyyy-MM-dd\"):\"datetime-local\"==c&&(o=C.toString(a[n],\"yyyy-MM-ddTHH:mm:ss\")),e=0;r.length>e;e++)t=r[e].value,\"\"===t&&\"\"!==o&&(t=r[e].text),null!=o&&t==\"\"+o&&(r[e].selected=!0,l=!0)},destroy:function(){e(this.element).off(N,this._change)}})},E.widget={events:v.extend({init:function(e,t,n){v.fn.init.call(this,e.element[0],t,n),this.widget=e,this.handlers={}},refresh:function(e){var t=this.bindings.events[e],n=this.handlers[e];n&&this.widget.unbind(e,n),n=t.get(),this.handlers[e]=function(e){e.data=t.source,n(e),e.data===t.source&&delete e.data;\r\n},this.widget.bind(e,this.handlers[e])},destroy:function(){var e;for(e in this.handlers)this.widget.unbind(e,this.handlers[e])}}),checked:v.extend({init:function(e,t,n){v.fn.init.call(this,e.element[0],t,n),this.widget=e,this._change=F(this.change,this),this.widget.bind(N,this._change)},change:function(){this.bindings[z].set(this.value())},refresh:function(){this.widget.check(this.bindings[z].get()===!0)},value:function(){var e=this.element,t=e.value;return(\"on\"==t||\"off\"==t)&&(t=e.checked),t},destroy:function(){this.widget.unbind(N,this._change)}}),visible:v.extend({init:function(e,t,n){v.fn.init.call(this,e.element[0],t,n),this.widget=e},refresh:function(){var e=this.bindings.visible.get();this.widget.wrapper[0].style.display=e?\"\":\"none\"}}),invisible:v.extend({init:function(e,t,n){v.fn.init.call(this,e.element[0],t,n),this.widget=e},refresh:function(){var e=this.bindings.invisible.get();this.widget.wrapper[0].style.display=e?\"none\":\"\"}}),enabled:v.extend({init:function(e,t,n){v.fn.init.call(this,e.element[0],t,n),this.widget=e},refresh:function(){this.widget.enable&&this.widget.enable(this.bindings.enabled.get())}}),disabled:v.extend({init:function(e,t,n){v.fn.init.call(this,e.element[0],t,n),this.widget=e},refresh:function(){this.widget.enable&&this.widget.enable(!this.bindings.disabled.get())}}),source:n(\"source\",\"dataSource\",\"setDataSource\"),value:v.extend({init:function(t,n,i){v.fn.init.call(this,t.element[0],n,i),this.widget=t,this._change=e.proxy(this.change,this),this.widget.first(N,this._change);var r=this.bindings.value.get();this._valueIsObservableObject=!i.valuePrimitive&&(null==r||r instanceof T),this._valueIsObservableArray=r instanceof D,this._initChange=!1},_source:function(){var e;return this.widget.dataItem&&(e=this.widget.dataItem(),e&&e instanceof T)?[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,n,i,r,o,a,s=this.widget.value(),l=this.options.dataValueField||this.options.dataTextField,c=\"[object Array]\"===A.call(s),d=this._valueIsObservableObject,u=[];if(this._initChange=!0,l)if(\"\"===s&&(d||this.options.valuePrimitive))s=null;else{for(a=this._source(),c&&(t=s.length,u=s.slice(0)),r=0,o=a.length;o>r;r++)if(n=a[r],i=n.get(l),c){for(e=0;t>e;e++)if(i==u[e]){u[e]=n;break}}else if(i==s){s=d?n:i;break}u[0]&&(s=this._valueIsObservableArray?u:d||!l?u[0]:u[0].get(l))}this.bindings.value.set(s),this._initChange=!1},refresh:function(){var e,n,i,r,o,a,s,l,c;if(!this._initChange){if(e=this.widget,n=e.options,i=n.dataTextField,r=n.dataValueField||i,o=this.bindings.value.get(),a=n.text||\"\",s=0,c=[],o===t&&(o=null),r)if(o instanceof D){for(l=o.length;l>s;s++)c[s]=o[s].get(r);o=c}else o instanceof T&&(a=o.get(i),o=o.get(r));n.autoBind!==!1||n.cascadeFrom||!e.listView||e.listView.bound()?e.value(o):(i!==r||a||(a=o),a||!o&&0!==o||!n.valuePrimitive?e._preselect(o,a):e.value(o))}this._initChange=!1},destroy:function(){this.widget.unbind(N,this._change)}}),gantt:{dependencies:n(\"dependencies\",\"dependencies\",\"setDependenciesDataSource\")},multiselect:{value:v.extend({init:function(t,n,i){v.fn.init.call(this,t.element[0],n,i),this.widget=t,this._change=e.proxy(this.change,this),this.widget.first(N,this._change),this._initChange=!1},change:function(){var e,n,i,r,o,a,s,l,c,d=this,u=d.bindings[M].get(),h=d.options.valuePrimitive,f=h?d.widget.value():d.widget.dataItems(),p=this.options.dataValueField||this.options.dataTextField;if(f=f.slice(0),d._initChange=!0,u instanceof D){for(e=[],n=f.length,i=0,r=0,o=u[i],a=!1;o!==t;){for(c=!1,r=0;n>r;r++)if(h?a=f[r]==o:(l=f[r],l=l.get?l.get(p):l,a=l==(o.get?o.get(p):o)),a){f.splice(r,1),n-=1,c=!0;break}c?i+=1:(e.push(o),b(u,i,1),s=i),o=u[i]}b(u,u.length,0,f),e.length&&u.trigger(\"change\",{action:\"remove\",items:e,index:s}),f.length&&u.trigger(\"change\",{action:\"add\",items:f,index:u.length-1})}else d.bindings[M].set(f);d._initChange=!1},refresh:function(){if(!this._initChange){var e,n,i=this.options,r=this.widget,o=i.dataValueField||i.dataTextField,a=this.bindings.value.get(),s=a,l=0,c=[];if(a===t&&(a=null),o)if(a instanceof D){for(e=a.length;e>l;l++)n=a[l],c[l]=n.get?n.get(o):n;a=c}else a instanceof T&&(a=a.get(o));i.autoBind!==!1||i.valuePrimitive===!0||r._isBound()?r.value(a):r._preselect(s,a)}},destroy:function(){this.widget.unbind(N,this._change)}})},scheduler:{source:n(\"source\",\"dataSource\",\"setDataSource\").extend({dataBound:function(e){var t,n,i,r,o=this.widget,s=e.addedItems||o.items();if(s.length)for(i=e.addedDataItems||o.dataItems(),r=this.bindings.source._parents(),t=0,n=i.length;n>t;t++)a(s[t],i[t],this._ns(e.ns),[i[t]].concat(r))}})}},b=function(e,t,n,i){var r,o,a,s,l;if(i=i||[],n=n||0,r=i.length,o=e.length,a=[].slice.call(e,t+n),s=a.length,r){for(r=t+r,l=0;r>t;t++)e[t]=i[l],l++;e.length=r}else if(n)for(e.length=t,n+=t;n>t;)delete e[--n];if(s){for(s=t+s,l=0;s>t;t++)e[t]=a[l],l++;e.length=s}for(t=e.length;o>t;)delete e[t],t++},w=I.extend({init:function(e,t){this.target=e,this.options=t,this.toDestroy=[]},bind:function(e){var t,n,i,r,o,a,s=this instanceof y,l=this.binders();for(t in e)t==M?n=!0:t==R?i=!0:t!=P||s?t==z?o=!0:t==B?a=!0:this.applyBinding(t,e,l):r=!0;i&&this.applyBinding(R,e,l),n&&this.applyBinding(M,e,l),o&&this.applyBinding(z,e,l),r&&!s&&this.applyBinding(P,e,l),a&&!s&&this.applyBinding(B,e,l)},binders:function(){return E[this.target.nodeName.toLowerCase()]||{}},applyBinding:function(e,t,n){var i,r=n[e]||E[e],o=this.toDestroy,a=t[e];if(r)if(r=new r(this.target,t,this.options),o.push(r),a instanceof p)r.bind(a),o.push(a);else for(i in a)r.bind(a,i),o.push(a[i]);else if(\"template\"!==e)throw Error(\"The \"+e+\" binding is not supported by the \"+this.target.nodeName.toLowerCase()+\" element\")},destroy:function(){var e,t,n=this.toDestroy;for(e=0,t=n.length;t>e;e++)n[e].destroy()}}),y=w.extend({binders:function(){return E.widget[this.target.options.name.toLowerCase()]||{}},applyBinding:function(e,t,n){var i,r=n[e]||E.widget[e],o=this.toDestroy,a=t[e];if(!r)throw Error(\"The \"+e+\" binding is not supported by the \"+this.target.options.name+\" widget\");if(r=new r(this.target,t,this.target.options),o.push(r),a instanceof p)r.bind(a),o.push(a);else for(i in a)r.bind(a,i),o.push(a[i])}}),k=/[A-Za-z0-9_\\-]+:(\\{([^}]*)\\}|[^,}]+)/g,x=/\\s/g,C.unbind=u,C.bind=s,C.data.binders=E,C.data.Binder=v,C.notify=h,C.observable=function(e){return e instanceof T||(e=new T(e)),e},C.observableHierarchy=function(e){function t(e){var n,i;for(n=0;e.length>n;n++)e[n]._initChildren(),i=e[n].children,i.fetch(),e[n].items=i.data(),t(e[n].items)}var n=C.data.HierarchicalDataSource.create(e);return n.fetch(),t(n.data()),n._data._dataSource=n,n._data}}(window.kendo.jQuery),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.fx.min\",[\"kendo.core.min\"],e)}(function(){return function(e,t){function n(e){return parseInt(e,10)}function i(e,t){return n(e.css(t))}function r(e){var t,n=[];for(t in e)n.push(t);return n}function o(e){for(var t in e)-1!=U.indexOf(t)&&-1==W.indexOf(t)&&delete e[t];return e}function a(e,t){var n,i,r,o,a=[],s={};for(i in t)n=i.toLowerCase(),o=F&&-1!=U.indexOf(n),!E.hasHW3D&&o&&-1==W.indexOf(n)?delete t[i]:(r=t[i],o?a.push(i+\"(\"+r+\")\"):s[i]=r);return a.length&&(s[se]=a.join(\" \")),s}function s(e,t){var i,r,o;return F?(i=e.css(se),i==K?\"scale\"==t?1:0:(r=i.match(RegExp(t+\"\\\\s*\\\\(([\\\\d\\\\w\\\\.]+)\")),o=0,r?o=n(r[1]):(r=i.match(B)||[0,0,0,0,0],t=t.toLowerCase(),H.test(t)?o=parseFloat(r[3]/r[2]):\"translatey\"==t?o=parseFloat(r[4]/r[2]):\"scale\"==t?o=parseFloat(r[2]):\"rotate\"==t&&(o=parseFloat(Math.atan2(r[2],r[1])))),o)):parseFloat(e.css(t))}function l(e){return e.charAt(0).toUpperCase()+e.substring(1)}function c(e,t){var n=p.extend(t),i=n.prototype.directions;S[l(e)]=n,S.Element.prototype[e]=function(e,t,i,r){return new n(this.element,e,t,i,r)},T(i,function(t,i){S.Element.prototype[e+l(i)]=function(e,t,r){return new n(this.element,i,e,t,r)}})}function d(e,n,i,r){c(e,{directions:g,startValue:function(e){return this._startValue=e,this},endValue:function(e){return this._endValue=e,this},shouldHide:function(){return this._shouldHide},prepare:function(e,o){var a,s,l=this,c=\"out\"===this._direction,d=l.element.data(n),u=!(isNaN(d)||d==i);a=u?d:t!==this._startValue?this._startValue:c?i:r,s=t!==this._endValue?this._endValue:c?r:i,this._reverse?(e[n]=s,o[n]=a):(e[n]=a,o[n]=s),l._shouldHide=o[n]===r}})}function u(e,t){var n=C.directions[t].vertical,i=e[n?J:X]()/2+\"px\";return _[t].replace(\"$size\",i)}var h,f,p,m,g,v,_,b,w,y,k,x,C=window.kendo,S=C.effects,T=e.each,D=e.extend,A=e.proxy,E=C.support,I=E.browser,F=E.transforms,M=E.transitions,R={scale:0,scalex:0,scaley:0,scale3d:0},P={translate:0,translatex:0,translatey:0,translate3d:0},z=t!==document.documentElement.style.zoom&&!F,B=/matrix3?d?\\s*\\(.*,\\s*([\\d\\.\\-]+)\\w*?,\\s*([\\d\\.\\-]+)\\w*?,\\s*([\\d\\.\\-]+)\\w*?,\\s*([\\d\\.\\-]+)\\w*?/i,L=/^(-?[\\d\\.\\-]+)?[\\w\\s]*,?\\s*(-?[\\d\\.\\-]+)?[\\w\\s]*/i,H=/translatex?$/i,N=/(zoom|fade|expand)(\\w+)/,O=/(zoom|fade|expand)/,V=/[xy]$/i,U=[\"perspective\",\"rotate\",\"rotatex\",\"rotatey\",\"rotatez\",\"rotate3d\",\"scale\",\"scalex\",\"scaley\",\"scalez\",\"scale3d\",\"skew\",\"skewx\",\"skewy\",\"translate\",\"translatex\",\"translatey\",\"translatez\",\"translate3d\",\"matrix\",\"matrix3d\"],W=[\"rotate\",\"scale\",\"scalex\",\"scaley\",\"skew\",\"skewx\",\"skewy\",\"translate\",\"translatex\",\"translatey\",\"matrix\"],j={rotate:\"deg\",scale:\"\",skew:\"px\",translate:\"px\"},q=F.css,G=Math.round,$=\"\",Y=\"px\",K=\"none\",Q=\"auto\",X=\"width\",J=\"height\",Z=\"hidden\",ee=\"origin\",te=\"abortId\",ne=\"overflow\",ie=\"translate\",re=\"position\",oe=\"completeCallback\",ae=q+\"transition\",se=q+\"transform\",le=q+\"backface-visibility\",ce=q+\"perspective\",de=\"1500px\",ue=\"perspective(\"+de+\")\",he={left:{reverse:\"right\",property:\"left\",transition:\"translatex\",vertical:!1,modifier:-1},right:{reverse:\"left\",property:\"left\",transition:\"translatex\",vertical:!1,modifier:1},down:{reverse:\"up\",property:\"top\",transition:\"translatey\",vertical:!0,modifier:1},up:{reverse:\"down\",property:\"top\",transition:\"translatey\",vertical:!0,modifier:-1},top:{reverse:\"bottom\"},bottom:{reverse:\"top\"},\"in\":{reverse:\"out\",modifier:-1},out:{reverse:\"in\",modifier:1},vertical:{reverse:\"vertical\"},horizontal:{reverse:\"horizontal\"}};C.directions=he,D(e.fn,{kendoStop:function(e,t){return M?S.stopQueue(this,e||!1,t||!1):this.stop(e,t)}}),F&&!M&&(T(W,function(n,i){e.fn[i]=function(n){if(t===n)return s(this,i);var r=e(this)[0],o=i+\"(\"+n+j[i.replace(V,\"\")]+\")\";return-1==r.style.cssText.indexOf(se)?e(this).css(se,o):r.style.cssText=r.style.cssText.replace(RegExp(i+\"\\\\(.*?\\\\)\",\"i\"),o),this},e.fx.step[i]=function(t){e(t.elem)[i](t.now)}}),h=e.fx.prototype.cur,e.fx.prototype.cur=function(){return-1!=W.indexOf(this.prop)?parseFloat(e(this.elem)[this.prop]()):h.apply(this,arguments)}),C.toggleClass=function(e,t,n,i){return t&&(t=t.split(\" \"),M&&(n=D({exclusive:\"all\",duration:400,ease:\"ease-out\"},n),e.css(ae,n.exclusive+\" \"+n.duration+\"ms \"+n.ease),setTimeout(function(){e.css(ae,\"\").css(J)},n.duration)),T(t,function(t,n){e.toggleClass(n,i)})),e},C.parseEffects=function(e,t){var n={};return\"string\"==typeof e?T(e.split(\" \"),function(e,i){var r=!O.test(i),o=i.replace(N,function(e,t,n){return t+\":\"+n.toLowerCase()}),a=o.split(\":\"),s=a[1],l={};a.length>1&&(l.direction=t&&r?he[s].reverse:s),n[a[0]]=l}):T(e,function(e){var i=this.direction;i&&t&&!O.test(e)&&(this.direction=he[i].reverse),n[e]=this}),n},M&&D(S,{transition:function(t,n,i){var o,s,l,c,d=0,u=t.data(\"keys\")||[];i=D({duration:200,ease:\"ease-out\",complete:null,exclusive:\"all\"},i),l=!1,c=function(){l||(l=!0,s&&(clearTimeout(s),s=null),t.removeData(te).dequeue().css(ae,\"\").css(ae),i.complete.call(t))},i.duration=e.fx?e.fx.speeds[i.duration]||i.duration:i.duration,o=a(t,n),e.merge(u,r(o)),t.data(\"keys\",e.unique(u)).height(),t.css(ae,i.exclusive+\" \"+i.duration+\"ms \"+i.ease).css(ae),t.css(o).css(se),M.event&&(t.one(M.event,c),0!==i.duration&&(d=500)),s=setTimeout(c,i.duration+d),t.data(te,s),t.data(oe,c)},stopQueue:function(e,t,n){var i,r=e.data(\"keys\"),o=!n&&r,a=e.data(oe);return o&&(i=C.getComputedStyles(e[0],r)),a&&a(),o&&e.css(i),e.removeData(\"keys\").stop(t)}}),f=C.Class.extend({init:function(e,t){var n=this;n.element=e,n.effects=[],n.options=t,n.restore=[]},run:function(t){var n,i,r,s,l,c,d,u=this,h=t.length,f=u.element,p=u.options,m=e.Deferred(),g={},v={};for(u.effects=t,m.then(e.proxy(u,\"complete\")),f.data(\"animating\",!0),i=0;h>i;i++)for(n=t[i],n.setReverse(p.reverse),n.setOptions(p),u.addRestoreProperties(n.restore),n.prepare(g,v),l=n.children(),r=0,c=l.length;c>r;r++)l[r].duration(p.duration).run();for(d in p.effects)D(v,p.effects[d].properties);for(f.is(\":visible\")||D(g,{display:f.data(\"olddisplay\")||\"block\"}),F&&!p.reset&&(s=f.data(\"targetTransform\"),s&&(g=D(s,g))),g=a(f,g),F&&!M&&(g=o(g)),f.css(g).css(se),i=0;h>i;i++)t[i].setup();return p.init&&p.init(),f.data(\"targetTransform\",v),S.animate(f,v,D({},p,{complete:m.resolve})),m.promise()},stop:function(){e(this.element).kendoStop(!0,!0)},addRestoreProperties:function(e){for(var t,n=this.element,i=0,r=e.length;r>i;i++)t=e[i],this.restore.push(t),n.data(t)||n.data(t,n.css(t))},restoreCallback:function(){var e,t,n,i=this.element;for(e=0,t=this.restore.length;t>e;e++)n=this.restore[e],i.css(n,i.data(n))},complete:function(){var t=this,n=0,i=t.element,r=t.options,o=t.effects,a=o.length;for(i.removeData(\"animating\").dequeue(),r.hide&&i.data(\"olddisplay\",i.css(\"display\")).hide(),this.restoreCallback(),z&&!F&&setTimeout(e.proxy(this,\"restoreCallback\"),0);a>n;n++)o[n].teardown();r.completeCallback&&r.completeCallback(i)}}),S.promise=function(e,t){var n,i,r,o=[],a=new f(e,t),s=C.parseEffects(t.effects);t.effects=s;for(r in s)n=S[l(r)],n&&(i=new n(e,s[r].direction),o.push(i));o[0]?a.run(o):(e.is(\":visible\")||e.css({display:e.data(\"olddisplay\")||\"block\"}).css(\"display\"),t.init&&t.init(),e.dequeue(),a.complete())},D(S,{animate:function(n,r,a){var s=a.transition!==!1;delete a.transition,M&&\"transition\"in S&&s?S.transition(n,r,a):F?n.animate(o(r),{queue:!1,show:!1,hide:!1,duration:a.duration,complete:a.complete}):n.each(function(){var n=e(this),o={};T(U,function(e,a){var s,l,c,d,u,h,f,p=r?r[a]+\" \":null;p&&(l=r,a in R&&r[a]!==t?(s=p.match(L),F&&D(l,{scale:+s[0]})):a in P&&r[a]!==t&&(c=n.css(re),d=\"absolute\"==c||\"fixed\"==c,n.data(ie)||(d?n.data(ie,{top:i(n,\"top\")||0,left:i(n,\"left\")||0,bottom:i(n,\"bottom\"),right:i(n,\"right\")}):n.data(ie,{top:i(n,\"marginTop\")||0,left:i(n,\"marginLeft\")||0})),u=n.data(ie),s=p.match(L),s&&(h=a==ie+\"y\"?0:+s[1],f=a==ie+\"y\"?+s[1]:+s[2],d?(isNaN(u.right)?isNaN(h)||D(l,{left:u.left+h}):isNaN(h)||D(l,{right:u.right-h}),isNaN(u.bottom)?isNaN(f)||D(l,{top:u.top+f}):isNaN(f)||D(l,{bottom:u.bottom-f})):(isNaN(h)||D(l,{marginLeft:u.left+h}),isNaN(f)||D(l,{marginTop:u.top+f})))),!F&&\"scale\"!=a&&a in l&&delete l[a],l&&D(o,l))}),I.msie&&delete o.scale,n.animate(o,{queue:!1,show:!1,hide:!1,duration:a.duration,complete:a.complete})})}}),S.animatedPromise=S.promise,p=C.Class.extend({init:function(e,t){var n=this;n.element=e,n._direction=t,n.options={},n._additionalEffects=[],n.restore||(n.restore=[])},reverse:function(){return this._reverse=!0,this.run()},play:function(){return this._reverse=!1,this.run()},add:function(e){return this._additionalEffects.push(e),this},direction:function(e){return this._direction=e,this},duration:function(e){return this._duration=e,this},compositeRun:function(){var e=this,t=new f(e.element,{reverse:e._reverse,duration:e._duration}),n=e._additionalEffects.concat([e]);return t.run(n)},run:function(){if(this._additionalEffects&&this._additionalEffects[0])return this.compositeRun();var t,n,i=this,r=i.element,s=0,l=i.restore,c=l.length,d=e.Deferred(),u={},h={},f=i.children(),p=f.length;for(d.then(e.proxy(i,\"_complete\")),r.data(\"animating\",!0),s=0;c>s;s++)t=l[s],r.data(t)||r.data(t,r.css(t));for(s=0;p>s;s++)f[s].duration(i._duration).run();return i.prepare(u,h),r.is(\":visible\")||D(u,{display:r.data(\"olddisplay\")||\"block\"}),F&&(n=r.data(\"targetTransform\"),n&&(u=D(n,u))),u=a(r,u),F&&!M&&(u=o(u)),r.css(u).css(se),i.setup(),r.data(\"targetTransform\",h),S.animate(r,h,{duration:i._duration,complete:d.resolve}),d.promise()},stop:function(){var t=0,n=this.children(),i=n.length;for(t=0;i>t;t++)n[t].stop();return e(this.element).kendoStop(!0,!0),this},restoreCallback:function(){var e,t,n,i=this.element;for(e=0,t=this.restore.length;t>e;e++)n=this.restore[e],i.css(n,i.data(n))},_complete:function(){var t=this,n=t.element;n.removeData(\"animating\").dequeue(),t.restoreCallback(),t.shouldHide()&&n.data(\"olddisplay\",n.css(\"display\")).hide(),z&&!F&&setTimeout(e.proxy(t,\"restoreCallback\"),0),t.teardown()},setOptions:function(e){D(!0,this.options,e)},children:function(){return[]},shouldHide:e.noop,setup:e.noop,prepare:e.noop,teardown:e.noop,directions:[],setReverse:function(e){return this._reverse=e,this}}),m=[\"left\",\"right\",\"up\",\"down\"],g=[\"in\",\"out\"],c(\"slideIn\",{directions:m,divisor:function(e){return this.options.divisor=e,this},prepare:function(e,t){var n,i=this,r=i.element,o=he[i._direction],a=-o.modifier*(o.vertical?r.outerHeight():r.outerWidth()),s=a/(i.options&&i.options.divisor||1)+Y,l=\"0px\";i._reverse&&(n=e,e=t,t=n),F?(e[o.transition]=s,t[o.transition]=l):(e[o.property]=s,t[o.property]=l)}}),c(\"tile\",{directions:m,init:function(e,t,n){p.prototype.init.call(this,e,t),this.options={previous:n}},previousDivisor:function(e){return this.options.previousDivisor=e,this},children:function(){var e=this,t=e._reverse,n=e.options.previous,i=e.options.previousDivisor||1,r=e._direction,o=[C.fx(e.element).slideIn(r).setReverse(t)];return n&&o.push(C.fx(n).slideIn(he[r].reverse).divisor(i).setReverse(!t)),o}}),d(\"fade\",\"opacity\",1,0),d(\"zoom\",\"scale\",1,.01),c(\"slideMargin\",{prepare:function(e,t){var n,i=this,r=i.element,o=i.options,a=r.data(ee),s=o.offset,l=i._reverse;l||null!==a||r.data(ee,parseFloat(r.css(\"margin-\"+o.axis))),n=r.data(ee)||0,t[\"margin-\"+o.axis]=l?n:n+s}}),c(\"slideTo\",{prepare:function(e,t){var n=this,i=n.element,r=n.options,o=r.offset.split(\",\"),a=n._reverse;F?(t.translatex=a?0:o[0],t.translatey=a?0:o[1]):(t.left=a?0:o[0],t.top=a?0:o[1]),i.css(\"left\")}}),c(\"expand\",{directions:[\"horizontal\",\"vertical\"],restore:[ne],prepare:function(e,n){var i=this,r=i.element,o=i.options,a=i._reverse,s=\"vertical\"===i._direction?J:X,l=r[0].style[s],c=r.data(s),d=parseFloat(c||l),u=G(r.css(s,Q)[s]());e.overflow=Z,d=o&&o.reset?u||d:d||u,n[s]=(a?0:d)+Y,e[s]=(a?d:0)+Y,c===t&&r.data(s,l)},shouldHide:function(){return this._reverse},teardown:function(){var e=this,t=e.element,n=\"vertical\"===e._direction?J:X,i=t.data(n);(i==Q||i===$)&&setTimeout(function(){t.css(n,Q).css(n)},0)}}),v={position:\"absolute\",marginLeft:0,marginTop:0,scale:1},c(\"transfer\",{init:function(e,t){this.element=e,this.options={target:t},this.restore=[]},setup:function(){this.element.appendTo(document.body)},prepare:function(e,t){var n=this,i=n.element,r=S.box(i),o=S.box(n.options.target),a=s(i,\"scale\"),l=S.fillScale(o,r),c=S.transformOrigin(o,r);D(e,v),t.scale=1,i.css(se,\"scale(1)\").css(se),i.css(se,\"scale(\"+a+\")\"),e.top=r.top,e.left=r.left,e.transformOrigin=c.x+Y+\" \"+c.y+Y,n._reverse?e.scale=l:t.scale=l}}),_={top:\"rect(auto auto $size auto)\",bottom:\"rect($size auto auto auto)\",left:\"rect(auto $size auto auto)\",right:\"rect(auto auto auto $size)\"},b={top:{start:\"rotatex(0deg)\",end:\"rotatex(180deg)\"},bottom:{start:\"rotatex(-180deg)\",end:\"rotatex(0deg)\"},left:{start:\"rotatey(0deg)\",end:\"rotatey(-180deg)\"},right:{start:\"rotatey(180deg)\",end:\"rotatey(0deg)\"}},c(\"turningPage\",{directions:m,init:function(e,t,n){p.prototype.init.call(this,e,t),this._container=n},prepare:function(e,t){var n=this,i=n._reverse,r=i?he[n._direction].reverse:n._direction,o=b[r];e.zIndex=1,n._clipInHalf&&(e.clip=u(n._container,C.directions[r].reverse)),e[le]=Z,t[se]=ue+(i?o.start:o.end),e[se]=ue+(i?o.end:o.start)},setup:function(){this._container.append(this.element)},face:function(e){return this._face=e,this},shouldHide:function(){var e=this,t=e._reverse,n=e._face;return t&&!n||!t&&n},clipInHalf:function(e){return this._clipInHalf=e,this},temporary:function(){return this.element.addClass(\"temp-page\"),this}}),c(\"staticPage\",{directions:m,init:function(e,t,n){p.prototype.init.call(this,e,t),this._container=n},restore:[\"clip\"],prepare:function(e,t){var n=this,i=n._reverse?he[n._direction].reverse:n._direction;e.clip=u(n._container,i),e.opacity=.999,t.opacity=1},shouldHide:function(){var e=this,t=e._reverse,n=e._face;return t&&!n||!t&&n},face:function(e){return this._face=e,this}}),c(\"pageturn\",{directions:[\"horizontal\",\"vertical\"],init:function(e,t,n,i){p.prototype.init.call(this,e,t),this.options={},this.options.face=n,this.options.back=i},children:function(){var e,t=this,n=t.options,i=\"horizontal\"===t._direction?\"left\":\"top\",r=C.directions[i].reverse,o=t._reverse,a=n.face.clone(!0).removeAttr(\"id\"),s=n.back.clone(!0).removeAttr(\"id\"),l=t.element;return o&&(e=i,i=r,r=e),[C.fx(n.face).staticPage(i,l).face(!0).setReverse(o),C.fx(n.back).staticPage(r,l).setReverse(o),C.fx(a).turningPage(i,l).face(!0).clipInHalf(!0).temporary().setReverse(o),C.fx(s).turningPage(r,l).clipInHalf(!0).temporary().setReverse(o)]},prepare:function(e,t){e[ce]=de,e.transformStyle=\"preserve-3d\",e.opacity=.999,t.opacity=1},teardown:function(){this.element.find(\".temp-page\").remove()}}),c(\"flip\",{directions:[\"horizontal\",\"vertical\"],init:function(e,t,n,i){p.prototype.init.call(this,e,t),this.options={},this.options.face=n,this.options.back=i},children:function(){var e,t=this,n=t.options,i=\"horizontal\"===t._direction?\"left\":\"top\",r=C.directions[i].reverse,o=t._reverse,a=t.element;return o&&(e=i,i=r,r=e),[C.fx(n.face).turningPage(i,a).face(!0).setReverse(o),C.fx(n.back).turningPage(r,a).setReverse(o)]},prepare:function(e){e[ce]=de,e.transformStyle=\"preserve-3d\"}}),w=!E.mobileOS.android,y=\".km-touch-scrollbar, .km-actionsheet-wrapper\",c(\"replace\",{_before:e.noop,_after:e.noop,init:function(t,n,i){p.prototype.init.call(this,t),this._previous=e(n),this._transitionClass=i},duration:function(){throw Error(\"The replace effect does not support duration setting; the effect duration may be customized through the transition class rule\")},beforeTransition:function(e){return this._before=e,this},afterTransition:function(e){return this._after=e,this},_both:function(){return e().add(this._element).add(this._previous)},_containerClass:function(){var e=this._direction,t=\"k-fx k-fx-start k-fx-\"+this._transitionClass;return e&&(t+=\" k-fx-\"+e),this._reverse&&(t+=\" k-fx-reverse\"),t},complete:function(t){if(!(!this.deferred||t&&e(t.target).is(y))){var n=this.container;n.removeClass(\"k-fx-end\").removeClass(this._containerClass()).off(M.event,this.completeProxy),this._previous.hide().removeClass(\"k-fx-current\"),this.element.removeClass(\"k-fx-next\"),w&&n.css(ne,\"\"),this.isAbsolute||this._both().css(re,\"\"),this.deferred.resolve(),delete this.deferred}},run:function(){if(this._additionalEffects&&this._additionalEffects[0])return this.compositeRun();var t,n=this,i=n.element,r=n._previous,o=i.parents().filter(r.parents()).first(),a=n._both(),s=e.Deferred(),l=i.css(re);return o.length||(o=i.parent()),this.container=o,this.deferred=s,this.isAbsolute=\"absolute\"==l,this.isAbsolute||a.css(re,\"absolute\"),w&&(t=o.css(ne),o.css(ne,\"hidden\")),M?(i.addClass(\"k-fx-hidden\"),o.addClass(this._containerClass()),this.completeProxy=e.proxy(this,\"complete\"),o.on(M.event,this.completeProxy),C.animationFrame(function(){i.removeClass(\"k-fx-hidden\").addClass(\"k-fx-next\"),r.css(\"display\",\"\").addClass(\"k-fx-current\"),n._before(r,i),C.animationFrame(function(){o.removeClass(\"k-fx-start\").addClass(\"k-fx-end\"),n._after(r,i)})})):this.complete(),s.promise()},stop:function(){this.complete()}}),k=C.Class.extend({init:function(){var e=this;e._tickProxy=A(e._tick,e),e._started=!1},tick:e.noop,done:e.noop,onEnd:e.noop,onCancel:e.noop,start:function(){this.enabled()&&(this.done()?this.onEnd():(this._started=!0,C.animationFrame(this._tickProxy)))},enabled:function(){return!0},cancel:function(){this._started=!1,this.onCancel()},_tick:function(){var e=this;e._started&&(e.tick(),e.done()?(e._started=!1,e.onEnd()):C.animationFrame(e._tickProxy))}}),x=k.extend({init:function(e){var t=this;D(t,e),k.fn.init.call(t)},done:function(){return this.timePassed()>=this.duration},timePassed:function(){return Math.min(this.duration,new Date-this.startDate)},moveTo:function(e){var t=this,n=t.movable;t.initial=n[t.axis],t.delta=e.location-t.initial,t.duration=\"number\"==typeof e.duration?e.duration:300,t.tick=t._easeProxy(e.ease),t.startDate=new Date,t.start()},_easeProxy:function(e){var t=this;return function(){t.movable.moveAxis(t.axis,e(t.timePassed(),t.initial,t.delta,t.duration))}}}),D(x,{easeOutExpo:function(e,t,n,i){return e==i?t+n:n*(-Math.pow(2,-10*e/i)+1)+t},easeOutBack:function(e,t,n,i,r){return r=1.70158,n*((e=e/i-1)*e*((r+1)*e+r)+1)+t}}),S.Animation=k,S.Transition=x,S.createEffect=c,S.box=function(t){t=e(t);var n=t.offset();return n.width=t.outerWidth(),n.height=t.outerHeight(),n},S.transformOrigin=function(e,t){var n=(e.left-t.left)*t.width/(t.width-e.width),i=(e.top-t.top)*t.height/(t.height-e.height);return{x:isNaN(n)?0:n,y:isNaN(i)?0:i}},S.fillScale=function(e,t){return Math.min(e.width/t.width,e.height/t.height)},S.fitScale=function(e,t){return Math.max(e.width/t.width,e.height/t.height)}}(window.kendo.jQuery),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.view.min\",[\"kendo.core.min\",\"kendo.binder.min\",\"kendo.fx.min\"],e)}(function(){return function(e,t){function n(e){if(!e)return{};var t=e.match(_)||[];return{type:t[1],direction:t[3],reverse:\"reverse\"===t[5]}}var i=window.kendo,r=i.Observable,o=\"SCRIPT\",a=\"init\",s=\"show\",l=\"hide\",c=\"transitionStart\",d=\"transitionEnd\",u=\"attach\",h=\"detach\",f=/unrecognized expression/,p=r.extend({init:function(e,t){var n=this;t=t||{},r.fn.init.call(n),n.content=e,n.id=i.guid(),n.tagName=t.tagName||\"div\",n.model=t.model,n._wrap=t.wrap!==!1,this._evalTemplate=t.evalTemplate||!1,n._fragments={},n.bind([a,s,l,c,d],t)},render:function(t){var n=this,r=!n.element;return r&&(n.element=n._createElement()),t&&e(t).append(n.element),r&&(i.bind(n.element,n.model),n.trigger(a)),t&&(n._eachFragment(u),n.trigger(s)),n.element},clone:function(){return new m(this)},triggerBeforeShow:function(){return!0},triggerBeforeHide:function(){return!0},showStart:function(){this.element.css(\"display\",\"\")},showEnd:function(){},hideEnd:function(){this.hide()},beforeTransition:function(e){this.trigger(c,{type:e})},afterTransition:function(e){this.trigger(d,{type:e})},hide:function(){this._eachFragment(h),this.element.detach(),this.trigger(l)},destroy:function(){var e=this.element;e&&(i.unbind(e),i.destroy(e),e.remove())},fragments:function(t){e.extend(this._fragments,t)},_eachFragment:function(e){for(var t in this._fragments)this._fragments[t][e](this,t)},_createElement:function(){var t,n,r,a=this,s=\"<\"+a.tagName+\" />\";try{n=e(document.getElementById(a.content)||a.content),n[0].tagName===o&&(n=n.html())}catch(l){f.test(l.message)&&(n=a.content)}return\"string\"==typeof n?(n=n.replace(/^\\s+|\\s+$/g,\"\"),a._evalTemplate&&(n=i.template(n)(a.model||{})),t=e(s).append(n),a._wrap||(t=t.contents())):(t=n,a._evalTemplate&&(r=e(i.template(e(\"
    \").append(t.clone(!0)).html())(a.model||{})),e.contains(document,t[0])&&t.replaceWith(r),t=r),a._wrap&&(t=t.wrapAll(s).parent())),t}}),m=i.Class.extend({init:function(t){e.extend(this,{element:t.element.clone(!0),transition:t.transition,id:t.id}),t.element.parent().append(this.element)},hideEnd:function(){this.element.remove()},beforeTransition:e.noop,afterTransition:e.noop}),g=p.extend({init:function(e,t){p.fn.init.call(this,e,t),this.containers={}},container:function(e){var t=this.containers[e];return t||(t=this._createContainer(e),this.containers[e]=t),t},showIn:function(e,t,n){this.container(e).show(t,n)},_createContainer:function(e){var t,n=this.render(),i=n.find(e);if(!i.length&&n.is(e)){if(!n.is(e))throw Error(\"can't find a container with the specified \"+e+\" selector\");i=n}return t=new b(i),t.bind(\"accepted\",function(e){e.view.render(i)}),t}}),v=p.extend({attach:function(e,t){e.element.find(t).replaceWith(this.render())},detach:function(){}}),_=/^(\\w+)(:(\\w+))?( (\\w+))?$/,b=r.extend({init:function(e){r.fn.init.call(this),this.container=e,this.history=[],this.view=null,this.running=!1},after:function(){this.running=!1,this.trigger(\"complete\",{view:this.view}),this.trigger(\"after\")},end:function(){this.view.showEnd(),this.previous.hideEnd(),this.after()},show:function(e,t,r){if(!e.triggerBeforeShow()||this.view&&!this.view.triggerBeforeHide())return this.trigger(\"after\"),!1;r=r||e.id;var o=this,a=e===o.view?e.clone():o.view,s=o.history,l=s[s.length-2]||{},c=l.id===r,d=t||(c?s[s.length-1].transition:e.transition),u=n(d);return o.running&&o.effect.stop(),\"none\"===d&&(d=null),o.trigger(\"accepted\",{view:e}),o.view=e,o.previous=a,o.running=!0,c?s.pop():s.push({id:r,transition:d}),a?(d&&i.effects.enabled?(e.element.addClass(\"k-fx-hidden\"),e.showStart(),c&&!t&&(u.reverse=!u.reverse),o.effect=i.fx(e.element).replace(a.element,u.type).beforeTransition(function(){e.beforeTransition(\"show\"),a.beforeTransition(\"hide\")}).afterTransition(function(){e.afterTransition(\"show\"),a.afterTransition(\"hide\")}).direction(u.direction).setReverse(u.reverse),o.effect.run().then(function(){o.end()})):(e.showStart(),o.end()),!0):(e.showStart(),e.showEnd(),o.after(),!0)}});i.ViewContainer=b,i.Fragment=v,i.Layout=g,i.View=p,i.ViewClone=m}(window.kendo.jQuery),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.dom.min\",[\"kendo.core.min\"],e)}(function(){return function(e){function t(){this.node=null}function n(){}function i(e,t,n){this.nodeName=e,this.attr=t||{},this.children=n||[]}function r(e){this.nodeValue=e}function o(e){this.html=e}function a(e,t){for(h.innerHTML=t;h.firstChild;)e.appendChild(h.firstChild)}function s(e){return new o(e)}function l(e,t,n){return new i(e,t,n)}function c(e){return new r(e)}function d(e){this.root=e,this.children=[]}var u,h;t.prototype={remove:function(){this.node.parentNode.removeChild(this.node),this.attr={}},attr:{},text:function(){return\"\"}},n.prototype={nodeName:\"#null\",attr:{style:{}},children:[],remove:function(){}},u=new n,i.prototype=new t,i.prototype.appendTo=function(e){var t,n=document.createElement(this.nodeName),i=this.children;for(t=0;i.length>t;t++)i[t].render(n,u);return e.appendChild(n),n},i.prototype.render=function(e,t){var n,i,r,o,a,s;if(t.nodeName!==this.nodeName)t.remove(),n=this.appendTo(e);else{if(n=t.node,r=this.children,o=r.length,a=t.children,s=a.length,Math.abs(s-o)>2)return void this.render({appendChild:function(n){e.replaceChild(n,t.node)}},u);for(i=0;o>i;i++)r[i].render(n,a[i]||u);for(i=o;s>i;i++)a[i].remove()}this.node=n,this.syncAttributes(t.attr),this.removeAttributes(t.attr)},i.prototype.syncAttributes=function(e){var t,n,i,r=this.attr;for(t in r)n=r[t],i=e[t],\"style\"===t?this.setStyle(n,i):n!==i&&this.setAttribute(t,n,i)},i.prototype.setStyle=function(e,t){var n,i=this.node;if(t)for(n in e)e[n]!==t[n]&&(i.style[n]=e[n]);else for(n in e)i.style[n]=e[n]},i.prototype.removeStyle=function(e){var t,n=this.attr.style||{},i=this.node;for(t in e)void 0===n[t]&&(i.style[t]=\"\")},i.prototype.removeAttributes=function(e){var t,n=this.attr;for(t in e)\"style\"===t?this.removeStyle(e.style):void 0===n[t]&&this.removeAttribute(t)},i.prototype.removeAttribute=function(e){var t=this.node;\"style\"===e?t.style.cssText=\"\":\"className\"===e?t.className=\"\":t.removeAttribute(e)},i.prototype.setAttribute=function(e,t){var n=this.node;void 0!==n[e]?n[e]=t:n.setAttribute(e,t)},i.prototype.text=function(){var e,t=\"\";for(e=0;this.children.length>e;++e)t+=this.children[e].text();return t},r.prototype=new t,r.prototype.nodeName=\"#text\",r.prototype.render=function(e,t){var n;t.nodeName!==this.nodeName?(t.remove(),n=document.createTextNode(this.nodeValue),e.appendChild(n)):(n=t.node,this.nodeValue!==t.nodeValue&&(n.nodeValue=this.nodeValue)),\r\nthis.node=n},r.prototype.text=function(){return this.nodeValue},o.prototype={nodeName:\"#html\",attr:{},remove:function(){for(var e=0;this.nodes.length>e;e++)this.nodes[e].parentNode.removeChild(this.nodes[e])},render:function(e,t){var n,i;if(t.nodeName!==this.nodeName||t.html!==this.html)for(t.remove(),n=e.lastChild,a(e,this.html),this.nodes=[],i=n?n.nextSibling:e.firstChild;i;i=i.nextSibling)this.nodes.push(i);else this.nodes=t.nodes.slice(0)}},h=document.createElement(\"div\"),d.prototype={html:s,element:l,text:c,render:function(e){var t,n,i=this.children;for(t=0,n=e.length;n>t;t++)e[t].render(this.root,i[t]||u);for(t=n;i.length>t;t++)i[t].remove();this.children=e}},e.dom={html:s,text:c,element:l,Tree:d,Node:t}}(window.kendo),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.ooxml.min\",[\"kendo.core.min\"],e)}(function(){return function(e,t){function n(e){var t=Math.floor(e/26)-1;return(t>=0?n(t):\"\")+String.fromCharCode(65+e%26)}function i(e,t){return n(t)+(e+1)}function r(e,t){return n(t)+\"$\"+(e+1)}function o(e){var t=e.frozenRows||(e.freezePane||{}).rowSplit||1;return t-1}function a(e){return(e/7*100+.5)/100}function s(e){return.75*e}function l(e){return 6>e.length&&(e=e.replace(/(\\w)/g,function(e,t){return t+t})),e=e.substring(1).toUpperCase(),8>e.length&&(e=\"FF\"+e),e}function c(e){var t=\"thin\";return 2===e?t=\"medium\":3===e&&(t=\"thick\"),t}function d(e,t){var n=\"\";return t&&t.size&&(n+=\"<\"+e+' style=\"'+c(t.size)+'\">',t.color&&(n+=''),n+=\"\"),n}function u(e){return\"\"+d(\"left\",e.left)+d(\"right\",e.right)+d(\"top\",e.top)+d(\"bottom\",e.bottom)+\"\"}var h='\\r\\n',f=t.template('\\r\\n${creator}${lastModifiedBy}${created}${modified}'),p=t.template('\\r\\nMicrosoft Excel0falseWorksheets${sheets.length}# for (var idx = 0; idx < sheets.length; idx++) { ## if (sheets[idx].options.title) { #${sheets[idx].options.title}# } else { #Sheet${idx+1}# } ## } #falsefalsefalse14.0300'),m=t.template('\\r\\n# for (var idx = 1; idx <= count; idx++) { ## } #'),g=t.template('\\r\\n# for (var idx = 0; idx < sheets.length; idx++) { ## var options = sheets[idx].options; ## var name = options.name || options.title ## if (name) { ## } else { ## } ## } ## if (definedNames.length) { # # for (var di = 0; di < definedNames.length; di++) { # # } ## } #'),v=t.template('\\r\\n# if (frozenRows || frozenColumns) { ## } ## if (columns && columns.length > 0) { ## for (var ci = 0; ci < columns.length; ci++) { ## var column = columns[ci]; ## var columnIndex = typeof column.index === \"number\" ? column.index + 1 : (ci + 1); ## if (column.width) { ## } ## } ## } ## for (var ri = 0; ri < data.length; ri++) { ## var row = data[ri]; ## var rowIndex = typeof row.index === \"number\" ? row.index + 1 : (ri + 1); ## for (var ci = 0; ci < row.data.length; ci++) { ## var cell = row.data[ci];## if (cell.formula != null) { #${cell.formula}# } ## if (cell.value != null) { #${cell.value}# } ## } ## } ## if (filter) { ## } ## if (mergeCells.length) { ## for (var ci = 0; ci < mergeCells.length; ci++) { ## } ## } #'),_=t.template('\\r\\n# for (var idx = 1; idx <= count; idx++) { ## } #'),b=t.template('\\r\\n# for (var index in indexes) { #${index.substring(1)}# } #'),w=t.template('# for (var fi = 0; fi < formats.length; fi++) { ## var format = formats[fi]; ## } ## for (var fi = 0; fi < fonts.length; fi++) { ## var font = fonts[fi]; ## if (font.fontSize) { ## } else { ## } ## if (font.bold) { ## } ## if (font.italic) { ## } ## if (font.underline) { ## } ## if (font.color) { ## } else { ## } ## if (font.fontFamily) { ## } else { ## } ## } ## for (var fi = 0; fi < fills.length; fi++) { ## var fill = fills[fi]; ## if (fill.background) { ## } ## } ## for (var bi = 0; bi < borders.length; bi++) { ##= kendo.ooxml.borderTemplate(borders[bi]) ## } ## for (var si = 0; si < styles.length; si++) { ## var style = styles[si]; ## if (style.textAlign || style.verticalAlign || style.wrap) { ## } ## } #'),y=new Date(1900,0,0),k=t.Class.extend({init:function(e,t,n,i){this.options=e,this._strings=t,this._styles=n,this._borders=i},toXML:function(e){var t,n,r,a,s,l;for(this._mergeCells=this.options.mergedCells||[],this._rowsByIndex=[],t=this.options.rows||[],n=0;t.length>n;n++)r=t[n].index,\"number\"!=typeof r&&(r=n),t[n].index=r,this._rowsByIndex[r]=t[n];for(a=[],n=0;t.length>n;n++)a.push(this._row(t[n],n));return a.sort(function(e,t){return e.index-t.index}),s=this.options.filter,s&&(s={from:i(o(this.options),s.from),to:i(o(this.options),s.to)}),l=this.options.freezePane||{},v({frozenColumns:this.options.frozenColumns||l.colSplit,frozenRows:this.options.frozenRows||l.rowSplit,columns:this.options.columns,defaults:this.options.defaults||{},data:a,index:e,mergeCells:this._mergeCells,filter:s})},_row:function(t){var n=[],i=0,r=this,o={};return e.each(t.cells,function(a,s){var l,c;s&&(\"number\"==typeof s.index?(l=s.index,i=l-a):l=a+i,s.colSpan&&(i+=s.colSpan-1),c=r._cell(s,t.index,l),e.each(c,function(e,t){o[t.ref]||(o[t.ref]=!0,n.push(t))}))}),{data:n,height:t.height,index:t.index}},_lookupString:function(e){var t=\"$\"+e,n=this._strings.indexes[t];return void 0!==n?e=n:(e=this._strings.indexes[t]=this._strings.uniqueCount,this._strings.uniqueCount++),this._strings.count++,e},_lookupStyle:function(n){var i,r=t.stringify(n);return\"{}\"==r?0:(i=e.inArray(r,this._styles),0>i&&(i=this._styles.push(r)-1),i+1)},_lookupBorder:function(n){var i,r=t.stringify(n);if(\"{}\"!=r)return i=e.inArray(r,this._borders),0>i&&(i=this._borders.push(r)-1),i+1},_cell:function(e,n,r){var o,a,s,l,c,d,u,h,f,p,m,g,v;if(!e)return[];if(o=e.value,a={},e.borderLeft&&(a.left=e.borderLeft),e.borderRight&&(a.right=e.borderRight),e.borderTop&&(a.top=e.borderTop),e.borderBottom&&(a.bottom=e.borderBottom),a=this._lookupBorder(a),s={bold:e.bold,color:e.color,background:e.background,italic:e.italic,underline:e.underline,fontFamily:e.fontFamily||e.fontName,fontSize:e.fontSize,format:e.format,textAlign:e.textAlign||e.hAlign,verticalAlign:e.verticalAlign||e.vAlign,wrap:e.wrap,borderId:a},l=this.options.columns||[],c=l[r],c&&c.autoWidth&&(c.width=Math.max(c.width||0,(\"\"+o).length)),d=typeof o,\"string\"===d?(o=this._lookupString(o),d=\"s\"):\"number\"===d?d=\"n\":\"boolean\"===d?(d=\"b\",o=+o):o&&o.getTime?(d=null,u=(o.getTimezoneOffset()-y.getTimezoneOffset())*t.date.MS_PER_MINUTE,o=(o-y-u)/t.date.MS_PER_DAY+1,s.format||(s.format=\"mm-dd-yy\")):(d=null,o=null),s=this._lookupStyle(s),h=[],f=i(n,r),h.push({value:o,formula:e.formula,type:d,style:s,ref:f}),p=e.colSpan||1,m=e.rowSpan||1,p>1||m>1){for(this._mergeCells.push(f+\":\"+i(n+m-1,r+p-1)),v=n+1;n+m>v;v++)for(this._rowsByIndex[v]||(this._rowsByIndex[v]={index:v,cells:[]}),g=r;r+p>g;g++)this._rowsByIndex[v].cells.splice(g,0,{});for(g=r+1;r+p>g;g++)h.push({ref:i(n,g)})}return h}}),x={General:0,0:1,\"0.00\":2,\"#,##0\":3,\"#,##0.00\":4,\"0%\":9,\"0.00%\":10,\"0.00E+00\":11,\"# ?/?\":12,\"# ??/??\":13,\"mm-dd-yy\":14,\"d-mmm-yy\":15,\"d-mmm\":16,\"mmm-yy\":17,\"h:mm AM/PM\":18,\"h:mm:ss AM/PM\":19,\"h:mm\":20,\"h:mm:ss\":21,\"m/d/yy h:mm\":22,\"#,##0 ;(#,##0)\":37,\"#,##0 ;[Red](#,##0)\":38,\"#,##0.00;(#,##0.00)\":39,\"#,##0.00;[Red](#,##0.00)\":40,\"mm:ss\":45,\"[h]:mm:ss\":46,\"mmss.0\":47,\"##0.0E+0\":48,\"@\":49,\"[$-404]e/m/d\":27,\"m/d/yy\":30,t0:59,\"t0.00\":60,\"t#,##0\":61,\"t#,##0.00\":62,\"t0%\":67,\"t0.00%\":68,\"t# ?/?\":69,\"t# ??/??\":70},C=t.Class.extend({init:function(t){this.options=t||{},this._strings={indexes:{},count:0,uniqueCount:0},this._styles=[],this._borders=[],this._sheets=e.map(this.options.sheets||[],e.proxy(function(e){return e.defaults=this.options,new k(e,this._strings,this._styles,this._borders)},this))},toDataURL:function(){var n,i,a,s,c,d,u,v,y,k,C,S,T,D;if(\"undefined\"==typeof JSZip)throw Error(\"JSZip not found. Check http://docs.telerik.com/kendo-ui/framework/excel/introduction#requirements for more details.\");for(n=new JSZip,i=n.folder(\"docProps\"),i.file(\"core.xml\",f({creator:this.options.creator||\"Kendo UI\",lastModifiedBy:this.options.creator||\"Kendo UI\",created:this.options.date||(new Date).toJSON(),modified:this.options.date||(new Date).toJSON()})),a=this._sheets.length,i.file(\"app.xml\",p({sheets:this._sheets})),s=n.folder(\"_rels\"),s.file(\".rels\",h),c=n.folder(\"xl\"),d=c.folder(\"_rels\"),d.file(\"workbook.xml.rels\",_({count:a})),c.file(\"workbook.xml\",g({sheets:this._sheets,definedNames:e.map(this._sheets,function(e,t){var n=e.options,i=n.filter;return i&&void 0!==i.from&&void 0!==i.to?{localSheetId:t,name:n.name||n.title||\"Sheet\"+(t+1),from:r(o(n),i.from),to:r(o(n),i.to)}:void 0})})),u=c.folder(\"worksheets\"),v=0;a>v;v++)u.file(t.format(\"sheet{0}.xml\",v+1),this._sheets[v].toXML(v));return y=e.map(this._borders,e.parseJSON),k=e.map(this._styles,e.parseJSON),C=function(e){return e.underline||e.bold||e.italic||e.color||e.fontFamily||e.fontSize},S=e.map(k,function(e){return e.color&&(e.color=l(e.color)),C(e)?e:void 0}),T=e.map(k,function(e){return e.format&&void 0===x[e.format]?e:void 0}),D=e.map(k,function(e){return e.background?(e.background=l(e.background),e):void 0}),c.file(\"styles.xml\",w({fonts:S,fills:D,formats:T,borders:y,styles:e.map(k,function(t){var n={};return C(t)&&(n.fontId=e.inArray(t,S)+1),t.background&&(n.fillId=e.inArray(t,D)+2),n.textAlign=t.textAlign,n.verticalAlign=t.verticalAlign,n.wrap=t.wrap,n.borderId=t.borderId,t.format&&(n.numFmtId=void 0!==x[t.format]?x[t.format]:165+e.inArray(t,T)),n})})),c.file(\"sharedStrings.xml\",b(this._strings)),n.file(\"[Content_Types].xml\",m({count:a})),\"data:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;base64,\"+n.generate({compression:\"DEFLATE\"})}});t.ooxml={Workbook:C,Worksheet:k,toWidth:a,toHeight:s,borderTemplate:u}}(kendo.jQuery,kendo),kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.excel.min\",[\"kendo.core.min\",\"kendo.data.min\",\"kendo.ooxml.min\"],e)}(function(){return function(e,t){t.ExcelExporter=t.Class.extend({init:function(n){var i,r,o;n.columns=this._trimColumns(n.columns||[]),this.allColumns=e.map(this._leafColumns(n.columns||[]),this._prepareColumn),this.columns=e.grep(this.allColumns,function(e){return!e.hidden}),this.options=n,i=n.dataSource,i instanceof t.data.DataSource?(this.dataSource=new i.constructor(e.extend({},i.options,{page:n.allPages?0:i.page(),filter:i.filter(),pageSize:n.allPages?i.total():i.pageSize(),sort:i.sort(),group:i.group(),aggregate:i.aggregate()})),r=i.data(),r.length>0&&(this.dataSource._data=r,o=this.dataSource.transport,i._isServerGrouped()&&o.options.data&&(o.options.data=null))):this.dataSource=t.data.DataSource.create(i)},_trimColumns:function(t){var n=this;return e.grep(t,function(e){var t=!!e.field;return!t&&e.columns&&(t=n._trimColumns(e.columns).length>0),t})},_leafColumns:function(e){var t,n=[];for(t=0;e.length>t;t++)e[t].columns?n=n.concat(this._leafColumns(e[t].columns)):n.push(e[t]);return n},workbook:function(){return e.Deferred(e.proxy(function(t){this.dataSource.fetch().then(e.proxy(function(){var e={sheets:[{columns:this._columns(),rows:this._rows(),freezePane:this._freezePane(),filter:this._filter()}]};t.resolve(e,this.dataSource.view())},this))},this)).promise()},_prepareColumn:function(n){var i,r;if(n.field)return i=function(e){return e.get(n.field)},r=null,n.values&&(r={},e.each(n.values,function(){r[this.value]=this.text}),i=function(e){return r[e.get(n.field)]}),e.extend({},n,{value:i,values:r,groupHeaderTemplate:t.template(n.groupHeaderTemplate||\"#= title #: #= value #\"),groupFooterTemplate:n.groupFooterTemplate?t.template(n.groupFooterTemplate):null,footerTemplate:n.footerTemplate?t.template(n.footerTemplate):null})},_filter:function(){if(!this.options.filterable)return null;var e=this._depth();return{from:e,to:e+this.columns.length-1}},_dataRow:function(t,n,i){var r,o,a,s,l,c,d,u,h,f;for(this._hierarchical()&&(n=this.dataSource.level(t)+1),r=[],o=0;n>o;o++)r[o]={background:\"#dfdfdf\",color:\"#333\"};if(i&&t.items)return a=e.grep(this.allColumns,function(e){return e.field==t.field})[0],s=a&&a.title?a.title:t.field,l=a?a.groupHeaderTemplate:null,c=s+\": \"+t.value,d=e.extend({title:s,field:t.field,value:a&&a.values?a.values[t.value]:t.value,aggregates:t.aggregates},t.aggregates[t.field]),l&&(c=l(d)),r.push({value:c,background:\"#dfdfdf\",color:\"#333\",colSpan:this.columns.length+i-n}),u=this._dataRows(t.items,n+1),u.unshift({type:\"group-header\",cells:r}),u.concat(this._footer(t));for(h=[],f=0;this.columns.length>f;f++)h[f]=this._cell(t,this.columns[f]);return this._hierarchical()&&(h[0].colSpan=i-n+1),[{type:\"data\",cells:r.concat(h)}]},_dataRows:function(e,t){var n,i=this._depth(),r=[];for(n=0;e.length>n;n++)r.push.apply(r,this._dataRow(e[n],t,i));return r},_footer:function(t){var n=[],i=!1,r=e.map(this.columns,e.proxy(function(n){return n.groupFooterTemplate?(i=!0,{background:\"#dfdfdf\",color:\"#333\",value:n.groupFooterTemplate(e.extend({},this.dataSource.aggregates(),t.aggregates,t.aggregates[n.field]))}):{background:\"#dfdfdf\",color:\"#333\"}},this));return i&&n.push({type:\"group-footer\",cells:e.map(Array(this.dataSource.group().length),function(){return{background:\"#dfdfdf\",color:\"#333\"}}).concat(r)}),n},_isColumnVisible:function(e){return this._visibleColumns([e]).length>0&&(e.field||e.columns)},_visibleColumns:function(t){var n=this;return e.grep(t,function(e){var t=!e.hidden;return t&&e.columns&&(t=n._visibleColumns(e.columns).length>0),t})},_headerRow:function(t,n){var i=e.map(t.cells,function(e){return{background:\"#7a7a7a\",color:\"#fff\",value:e.title,colSpan:e.colSpan>1?e.colSpan:1,rowSpan:t.rowSpan>1&&!e.colSpan?t.rowSpan:1}});return this._hierarchical()&&(i[0].colSpan=this._depth()+1),{type:\"header\",cells:e.map(Array(n.length),function(){return{background:\"#7a7a7a\",color:\"#fff\"}}).concat(i)}},_prependHeaderRows:function(e){var t,n=this.dataSource.group(),i=[{rowSpan:1,cells:[],index:0}];for(this._prepareHeaderRows(i,this.options.columns),t=i.length-1;t>=0;t--)e.unshift(this._headerRow(i[t],n))},_prepareHeaderRows:function(e,t,n,i){var r,o,a,s=i||e[e.length-1],l=e[s.index+1],c=0;for(a=0;t.length>a;a++)r=t[a],this._isColumnVisible(r)&&(o={title:r.title||r.field,colSpan:0},s.cells.push(o),r.columns&&r.columns.length&&(l||(l={rowSpan:0,cells:[],index:e.length},e.push(l)),o.colSpan=this._trimColumns(this._visibleColumns(r.columns)).length,this._prepareHeaderRows(e,r.columns,o,l),c+=o.colSpan-1,s.rowSpan=e.length-s.index));n&&(n.colSpan+=c)},_rows:function(){var t,n,i=this.dataSource.group(),r=this._dataRows(this.dataSource.view(),0);return this.columns.length&&(this._prependHeaderRows(r),t=!1,n=e.map(this.columns,e.proxy(function(n){if(n.footerTemplate){t=!0;var i=this.dataSource.aggregates();return{background:\"#dfdfdf\",color:\"#333\",value:n.footerTemplate(e.extend({},i,i[n.field]))}}return{background:\"#dfdfdf\",color:\"#333\"}},this)),t&&r.push({type:\"footer\",cells:e.map(Array(i.length),function(){return{background:\"#dfdfdf\",color:\"#333\"}}).concat(n)})),r},_headerDepth:function(e){var t,n,i=1,r=0;for(t=0;e.length>t;t++)e[t].columns&&(n=this._headerDepth(e[t].columns),n>r&&(r=n));return i+r},_freezePane:function(){var t=this._visibleColumns(this.options.columns||[]),n=this._visibleColumns(this._trimColumns(this._leafColumns(e.grep(t,function(e){return e.locked})))).length;return{rowSplit:this._headerDepth(t),colSplit:n?n+this.dataSource.group().length:0}},_cell:function(e,t){return{value:t.value(e)}},_hierarchical:function(){return this.options.hierarchy&&this.dataSource.level},_depth:function(){var e,t,n,i=this.dataSource,r=0;if(this._hierarchical()){for(e=i.view(),t=0;e.length>t;t++)n=i.level(e[t]),n>r&&(r=n);r++}else r=i.group().length;return r},_columns:function(){var t=this._depth(),n=e.map(Array(t),function(){return{width:20}});return n.concat(e.map(this.columns,function(e){return{width:parseInt(e.width,10),autoWidth:e.width?!1:!0}}))}}),t.ExcelMixin={extend:function(t){t.events.push(\"excelExport\"),t.options.excel=e.extend(t.options.excel,this.options),t.saveAsExcel=this.saveAsExcel},options:{proxyURL:\"\",allPages:!1,filterable:!1,fileName:\"Export.xlsx\"},saveAsExcel:function(){var n=this.options.excel||{},i=new t.ExcelExporter({columns:this.columns,dataSource:this.dataSource,allPages:n.allPages,filterable:n.filterable,hierarchy:n.hierarchy});i.workbook().then(e.proxy(function(e,i){if(!this.trigger(\"excelExport\",{workbook:e,data:i})){var r=new t.ooxml.Workbook(e);t.saveAs({dataURI:r.toDataURL(),fileName:e.fileName||n.fileName,proxyURL:n.proxyURL,forceProxy:n.forceProxy})}},this))}}}(kendo.jQuery,kendo),kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.data.signalr.min\",[\"kendo.data.min\"],e)}(function(){return function(e){var t=kendo.data.RemoteTransport.extend({init:function(e){var t,n=e&&e.signalr?e.signalr:{},i=n.promise;if(!i)throw Error('The \"promise\" option must be set.');if(\"function\"!=typeof i.done||\"function\"!=typeof i.fail)throw Error('The \"promise\" option must be a Promise.');if(this.promise=i,t=n.hub,!t)throw Error('The \"hub\" option must be set.');if(\"function\"!=typeof t.on||\"function\"!=typeof t.invoke)throw Error('The \"hub\" option is not a valid SignalR hub proxy.');this.hub=t,kendo.data.RemoteTransport.fn.init.call(this,e)},push:function(e){var t=this.options.signalr.client||{};t.create&&this.hub.on(t.create,e.pushCreate),t.update&&this.hub.on(t.update,e.pushUpdate),t.destroy&&this.hub.on(t.destroy,e.pushDestroy)},_crud:function(t,n){var i,r,o=this.hub,a=this.options.signalr.server;if(!a||!a[n])throw Error(kendo.format('The \"server.{0}\" option must be set.',n));i=[a[n]],r=this.parameterMap(t.data,n),e.isEmptyObject(r)||i.push(r),this.promise.done(function(){o.invoke.apply(o,i).done(t.success).fail(t.error)})},read:function(e){this._crud(e,\"read\")},create:function(e){this._crud(e,\"create\")},update:function(e){this._crud(e,\"update\")},destroy:function(e){this._crud(e,\"destroy\")}});e.extend(!0,kendo.data,{transports:{signalr:t}})}(window.kendo.jQuery),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.color.min\",[\"kendo.core.min\"],e)}(function(){!function(e,t,n){function i(e,r){var o,s;if(null==e||\"none\"==e)return null;if(e instanceof l)return e;if(e=e.toLowerCase(),o=a.exec(e))return e=\"transparent\"==o[1]?new c(1,1,1,0):i(f.namedColors[o[1]],r),e.match=[o[1]],e;if((o=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})\\b/i.exec(e))?s=new d(n(o[1],16),n(o[2],16),n(o[3],16),1):(o=/^#?([0-9a-f])([0-9a-f])([0-9a-f])\\b/i.exec(e))?s=new d(n(o[1]+o[1],16),n(o[2]+o[2],16),n(o[3]+o[3],16),1):(o=/^rgb\\(\\s*([0-9]+)\\s*,\\s*([0-9]+)\\s*,\\s*([0-9]+)\\s*\\)/.exec(e))?s=new d(n(o[1],10),n(o[2],10),n(o[3],10),1):(o=/^rgba\\(\\s*([0-9]+)\\s*,\\s*([0-9]+)\\s*,\\s*([0-9]+)\\s*,\\s*([0-9.]+)\\s*\\)/.exec(e))?s=new d(n(o[1],10),n(o[2],10),n(o[3],10),t(o[4])):(o=/^rgb\\(\\s*([0-9]*\\.?[0-9]+)%\\s*,\\s*([0-9]*\\.?[0-9]+)%\\s*,\\s*([0-9]*\\.?[0-9]+)%\\s*\\)/.exec(e))?s=new c(t(o[1])/100,t(o[2])/100,t(o[3])/100,1):(o=/^rgba\\(\\s*([0-9]*\\.?[0-9]+)%\\s*,\\s*([0-9]*\\.?[0-9]+)%\\s*,\\s*([0-9]*\\.?[0-9]+)%\\s*,\\s*([0-9.]+)\\s*\\)/.exec(e))&&(s=new c(t(o[1])/100,t(o[2])/100,t(o[3])/100,t(o[4]))),s)s.match=o;else if(!r)throw Error(\"Cannot parse color: \"+e);return s}function r(e,t,n){for(n||(n=\"0\"),e=e.toString(16);t>e.length;)e=\"0\"+e;return e}function o(e,t,n){return 0>n&&(n+=1),n>1&&(n-=1),1/6>n?e+6*(t-e)*n:.5>n?t:2/3>n?e+(t-e)*(2/3-n)*6:e}var a,s,l,c,d,u,h,f=function(e){var t,n,i,r,o,a=this,s=f.formats;if(1===arguments.length)for(e=a.resolveColor(e),r=0;s.length>r;r++)t=s[r].re,n=s[r].process,i=t.exec(e),i&&(o=n(i),a.r=o[0],a.g=o[1],a.b=o[2]);else a.r=arguments[0],a.g=arguments[1],a.b=arguments[2];a.r=a.normalizeByte(a.r),a.g=a.normalizeByte(a.g),a.b=a.normalizeByte(a.b)};f.prototype={toHex:function(){var e=this,t=e.padDigit,n=e.r.toString(16),i=e.g.toString(16),r=e.b.toString(16);return\"#\"+t(n)+t(i)+t(r)},resolveColor:function(e){return e=e||\"black\",\"#\"==e.charAt(0)&&(e=e.substr(1,6)),e=e.replace(/ /g,\"\"),e=e.toLowerCase(),e=f.namedColors[e]||e},normalizeByte:function(e){return 0>e||isNaN(e)?0:e>255?255:e},padDigit:function(e){return 1===e.length?\"0\"+e:e},brightness:function(e){var t=this,n=Math.round;return t.r=n(t.normalizeByte(t.r*e)),t.g=n(t.normalizeByte(t.g*e)),t.b=n(t.normalizeByte(t.b*e)),t},percBrightness:function(){var e=this;return Math.sqrt(.241*e.r*e.r+.691*e.g*e.g+.068*e.b*e.b)}},f.formats=[{re:/^rgb\\((\\d{1,3}),\\s*(\\d{1,3}),\\s*(\\d{1,3})\\)$/,process:function(e){return[n(e[1],10),n(e[2],10),n(e[3],10)]}},{re:/^(\\w{2})(\\w{2})(\\w{2})$/,process:function(e){return[n(e[1],16),n(e[2],16),n(e[3],16)]}},{re:/^(\\w{1})(\\w{1})(\\w{1})$/,process:function(e){return[n(e[1]+e[1],16),n(e[2]+e[2],16),n(e[3]+e[3],16)]}}],f.namedColors={aliceblue:\"f0f8ff\",antiquewhite:\"faebd7\",aqua:\"00ffff\",aquamarine:\"7fffd4\",azure:\"f0ffff\",beige:\"f5f5dc\",bisque:\"ffe4c4\",black:\"000000\",blanchedalmond:\"ffebcd\",blue:\"0000ff\",blueviolet:\"8a2be2\",brown:\"a52a2a\",burlywood:\"deb887\",cadetblue:\"5f9ea0\",chartreuse:\"7fff00\",chocolate:\"d2691e\",coral:\"ff7f50\",cornflowerblue:\"6495ed\",cornsilk:\"fff8dc\",crimson:\"dc143c\",cyan:\"00ffff\",darkblue:\"00008b\",darkcyan:\"008b8b\",darkgoldenrod:\"b8860b\",darkgray:\"a9a9a9\",darkgrey:\"a9a9a9\",darkgreen:\"006400\",darkkhaki:\"bdb76b\",darkmagenta:\"8b008b\",darkolivegreen:\"556b2f\",darkorange:\"ff8c00\",darkorchid:\"9932cc\",darkred:\"8b0000\",darksalmon:\"e9967a\",darkseagreen:\"8fbc8f\",darkslateblue:\"483d8b\",darkslategray:\"2f4f4f\",darkslategrey:\"2f4f4f\",darkturquoise:\"00ced1\",darkviolet:\"9400d3\",deeppink:\"ff1493\",deepskyblue:\"00bfff\",dimgray:\"696969\",dimgrey:\"696969\",dodgerblue:\"1e90ff\",firebrick:\"b22222\",floralwhite:\"fffaf0\",forestgreen:\"228b22\",fuchsia:\"ff00ff\",gainsboro:\"dcdcdc\",ghostwhite:\"f8f8ff\",gold:\"ffd700\",goldenrod:\"daa520\",gray:\"808080\",grey:\"808080\",green:\"008000\",greenyellow:\"adff2f\",honeydew:\"f0fff0\",hotpink:\"ff69b4\",indianred:\"cd5c5c\",indigo:\"4b0082\",ivory:\"fffff0\",khaki:\"f0e68c\",lavender:\"e6e6fa\",lavenderblush:\"fff0f5\",lawngreen:\"7cfc00\",lemonchiffon:\"fffacd\",lightblue:\"add8e6\",lightcoral:\"f08080\",lightcyan:\"e0ffff\",lightgoldenrodyellow:\"fafad2\",lightgray:\"d3d3d3\",lightgrey:\"d3d3d3\",lightgreen:\"90ee90\",lightpink:\"ffb6c1\",lightsalmon:\"ffa07a\",lightseagreen:\"20b2aa\",lightskyblue:\"87cefa\",lightslategray:\"778899\",lightslategrey:\"778899\",lightsteelblue:\"b0c4de\",lightyellow:\"ffffe0\",lime:\"00ff00\",limegreen:\"32cd32\",linen:\"faf0e6\",magenta:\"ff00ff\",maroon:\"800000\",mediumaquamarine:\"66cdaa\",mediumblue:\"0000cd\",mediumorchid:\"ba55d3\",mediumpurple:\"9370d8\",mediumseagreen:\"3cb371\",mediumslateblue:\"7b68ee\",mediumspringgreen:\"00fa9a\",mediumturquoise:\"48d1cc\",mediumvioletred:\"c71585\",midnightblue:\"191970\",mintcream:\"f5fffa\",mistyrose:\"ffe4e1\",moccasin:\"ffe4b5\",navajowhite:\"ffdead\",navy:\"000080\",oldlace:\"fdf5e6\",olive:\"808000\",olivedrab:\"6b8e23\",orange:\"ffa500\",orangered:\"ff4500\",orchid:\"da70d6\",palegoldenrod:\"eee8aa\",palegreen:\"98fb98\",paleturquoise:\"afeeee\",palevioletred:\"d87093\",papayawhip:\"ffefd5\",peachpuff:\"ffdab9\",peru:\"cd853f\",pink:\"ffc0cb\",plum:\"dda0dd\",powderblue:\"b0e0e6\",purple:\"800080\",red:\"ff0000\",rosybrown:\"bc8f8f\",royalblue:\"4169e1\",saddlebrown:\"8b4513\",salmon:\"fa8072\",sandybrown:\"f4a460\",seagreen:\"2e8b57\",seashell:\"fff5ee\",sienna:\"a0522d\",silver:\"c0c0c0\",skyblue:\"87ceeb\",slateblue:\"6a5acd\",slategray:\"708090\",slategrey:\"708090\",snow:\"fffafa\",springgreen:\"00ff7f\",steelblue:\"4682b4\",tan:\"d2b48c\",teal:\"008080\",thistle:\"d8bfd8\",tomato:\"ff6347\",turquoise:\"40e0d0\",violet:\"ee82ee\",wheat:\"f5deb3\",white:\"ffffff\",whitesmoke:\"f5f5f5\",yellow:\"ffff00\",yellowgreen:\"9acd32\"},a=[\"transparent\"];for(s in f.namedColors)f.namedColors.hasOwnProperty(s)&&a.push(s);a=RegExp(\"^(\"+a.join(\"|\")+\")(\\\\W|$)\",\"i\"),l=kendo.Class.extend({toHSV:function(){return this},toRGB:function(){return this},toHex:function(){return this.toBytes().toHex()},toBytes:function(){\r\nreturn this},toCss:function(){return\"#\"+this.toHex()},toCssRgba:function(){var e=this.toBytes();return\"rgba(\"+e.r+\", \"+e.g+\", \"+e.b+\", \"+t((+this.a).toFixed(3))+\")\"},toDisplay:function(){return kendo.support.browser.msie&&kendo.support.browser.version<9?this.toCss():this.toCssRgba()},equals:function(e){return e===this||null!==e&&this.toCssRgba()==i(e).toCssRgba()},diff:function(e){if(null==e)return NaN;var t=this.toBytes();return e=e.toBytes(),Math.sqrt(Math.pow(.3*(t.r-e.r),2)+Math.pow(.59*(t.g-e.g),2)+Math.pow(.11*(t.b-e.b),2))},clone:function(){var e=this.toBytes();return e===this&&(e=new d(e.r,e.g,e.b,e.a)),e}}),c=l.extend({init:function(e,t,n,i){this.r=e,this.g=t,this.b=n,this.a=i},toHSV:function(){var e,t,n=this.r,i=this.g,r=this.b,o=Math.min(n,i,r),a=Math.max(n,i,r),s=a,l=a-o;return 0===l?new u(0,0,s,this.a):(0!==a?(t=l/a,e=n==a?(i-r)/l:i==a?2+(r-n)/l:4+(n-i)/l,e*=60,0>e&&(e+=360)):(t=0,e=-1),new u(e,t,s,this.a))},toHSL:function(){var e,t,n,i=this.r,r=this.g,o=this.b,a=Math.max(i,r,o),s=Math.min(i,r,o),l=(a+s)/2;if(a==s)e=t=0;else{switch(n=a-s,t=l>.5?n/(2-a-s):n/(a+s),a){case i:e=(r-o)/n+(o>r?6:0);break;case r:e=(o-i)/n+2;break;case o:e=(i-r)/n+4}e*=60,t*=100,l*=100}return new h(e,t,l,this.a)},toBytes:function(){return new d(255*this.r,255*this.g,255*this.b,this.a)}}),d=c.extend({init:function(e,t,n,i){this.r=Math.round(e),this.g=Math.round(t),this.b=Math.round(n),this.a=i},toRGB:function(){return new c(this.r/255,this.g/255,this.b/255,this.a)},toHSV:function(){return this.toRGB().toHSV()},toHSL:function(){return this.toRGB().toHSL()},toHex:function(){return r(this.r,2)+r(this.g,2)+r(this.b,2)},toBytes:function(){return this}}),u=l.extend({init:function(e,t,n,i){this.h=e,this.s=t,this.v=n,this.a=i},toRGB:function(){var e,t,n,i,r,o,a,s,l=this.h,d=this.s,u=this.v;if(0===d)t=n=i=u;else switch(l/=60,e=Math.floor(l),r=l-e,o=u*(1-d),a=u*(1-d*r),s=u*(1-d*(1-r)),e){case 0:t=u,n=s,i=o;break;case 1:t=a,n=u,i=o;break;case 2:t=o,n=u,i=s;break;case 3:t=o,n=a,i=u;break;case 4:t=s,n=o,i=u;break;default:t=u,n=o,i=a}return new c(t,n,i,this.a)},toHSL:function(){return this.toRGB().toHSL()},toBytes:function(){return this.toRGB().toBytes()}}),h=l.extend({init:function(e,t,n,i){this.h=e,this.s=t,this.l=n,this.a=i},toRGB:function(){var e,t,n,i,r,a=this.h,s=this.s,l=this.l;return 0===s?e=t=n=l:(a/=360,s/=100,l/=100,i=.5>l?l*(1+s):l+s-l*s,r=2*l-i,e=o(r,i,a+1/3),t=o(r,i,a),n=o(r,i,a-1/3)),new c(e,t,n,this.a)},toHSV:function(){return this.toRGB().toHSV()},toBytes:function(){return this.toRGB().toBytes()}}),f.fromBytes=function(e,t,n,i){return new d(e,t,n,null!=i?i:1)},f.fromRGB=function(e,t,n,i){return new c(e,t,n,null!=i?i:1)},f.fromHSV=function(e,t,n,i){return new u(e,t,n,null!=i?i:1)},f.fromHSL=function(e,t,n,i){return new h(e,t,n,null!=i?i:1)},kendo.Color=f,kendo.parseColor=i}(window.kendo.jQuery,parseFloat,parseInt)},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"util/main.min\",[\"kendo.core.min\"],e)}(function(){return function(){function e(e){return typeof e!==H}function t(e,t){var i=n(t);return M.round(e*i)/i}function n(e){return e?M.pow(10,e):1}function i(e,t,n){return M.max(M.min(e,n),t)}function r(e){return e*z}function o(e){return e/z}function a(e){return\"number\"==typeof e&&!isNaN(e)}function s(t,n){return e(t)?t:n}function l(e){return e*e}function c(e){var t,n=[];for(t in e)n.push(t+e[t]);return n.sort().join(\"\")}function d(e){var t,n=2166136261;for(t=0;e.length>t;++t)n+=(n<<1)+(n<<4)+(n<<7)+(n<<8)+(n<<24),n^=e.charCodeAt(t);return n>>>0}function u(e){return d(c(e))}function h(e){var t,n=e.length,i=B,r=L;for(t=0;n>t;t++)r=M.max(r,e[t]),i=M.min(i,e[t]);return{min:i,max:r}}function f(e){return h(e).min}function p(e){return h(e).max}function m(e){return v(e).min}function g(e){return v(e).max}function v(e){var t,n,i,r=B,o=L;for(t=0,n=e.length;n>t;t++)i=e[t],null!==i&&isFinite(i)&&(r=M.min(r,i),o=M.max(o,i));return{min:r===B?void 0:r,max:o===L?void 0:o}}function _(e){return e?e[e.length-1]:void 0}function b(e,t){return e.push.apply(e,t),e}function w(e){return R.template(e,{useWithBlock:!1,paramName:\"d\"})}function y(t,n){return e(n)&&null!==n?\" \"+t+\"='\"+n+\"' \":\"\"}function k(e){var t,n=\"\";for(t=0;e.length>t;t++)n+=y(e[t][0],e[t][1]);return n}function x(t){var n,i,r=\"\";for(n=0;t.length>n;n++)i=t[n][1],e(i)&&(r+=t[n][0]+\":\"+i+\";\");return\"\"!==r?r:void 0}function C(e){return\"string\"!=typeof e&&(e+=\"px\"),e}function S(e){var t,n,i=[];if(e)for(t=R.toHyphens(e).split(\"-\"),n=0;t.length>n;n++)i.push(\"k-pos-\"+t[n]);return i.join(\" \")}function T(t){return\"\"===t||null===t||\"none\"===t||\"transparent\"===t||!e(t)}function D(e){for(var t={1:\"i\",10:\"x\",100:\"c\",2:\"ii\",20:\"xx\",200:\"cc\",3:\"iii\",30:\"xxx\",300:\"ccc\",4:\"iv\",40:\"xl\",400:\"cd\",5:\"v\",50:\"l\",500:\"d\",6:\"vi\",60:\"lx\",600:\"dc\",7:\"vii\",70:\"lxx\",700:\"dcc\",8:\"viii\",80:\"lxxx\",800:\"dccc\",9:\"ix\",90:\"xc\",900:\"cm\",1e3:\"m\"},n=[1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],i=\"\";e>0;)n[0]>e?n.shift():(i+=t[n[0]],e-=n[0]);return i}function A(e){var t,n,i,r,o;for(e=e.toLowerCase(),t={i:1,v:5,x:10,l:50,c:100,d:500,m:1e3},n=0,i=0,r=0;e.length>r;++r){if(o=t[e.charAt(r)],!o)return null;n+=o,o>i&&(n-=2*i),i=o}return n}function E(e){var t=Object.create(null);return function(){var n,i=\"\";for(n=arguments.length;--n>=0;)i+=\":\"+arguments[n];return i in t?t[i]:e.apply(this,arguments)}}function I(e){for(var t,n,i=[],r=0,o=e.length;o>r;)t=e.charCodeAt(r++),t>=55296&&56319>=t&&o>r?(n=e.charCodeAt(r++),56320==(64512&n)?i.push(((1023&t)<<10)+(1023&n)+65536):(i.push(t),r--)):i.push(t);return i}function F(e){return e.map(function(e){var t=\"\";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)}).join(\"\")}var M=Math,R=window.kendo,P=R.deepExtend,z=M.PI/180,B=Number.MAX_VALUE,L=-Number.MAX_VALUE,H=\"undefined\",N=Date.now;N||(N=function(){return(new Date).getTime()}),P(R,{util:{MAX_NUM:B,MIN_NUM:L,append:b,arrayLimits:h,arrayMin:f,arrayMax:p,defined:e,deg:o,hashKey:d,hashObject:u,isNumber:a,isTransparent:T,last:_,limitValue:i,now:N,objectKey:c,round:t,rad:r,renderAttr:y,renderAllAttr:k,renderPos:S,renderSize:C,renderStyle:x,renderTemplate:w,sparseArrayLimits:v,sparseArrayMin:m,sparseArrayMax:g,sqr:l,valueOrDefault:s,romanToArabic:A,arabicToRoman:D,memoize:E,ucs2encode:F,ucs2decode:I}}),R.drawing.util=R.util,R.dataviz.util=R.util}(),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"util/text-metrics\",[\"kendo.core\",\"util/main\"],e)}(function(){!function(e){function t(e,t,n){return c.current.measure(e,t,n)}var n=document,i=window.kendo,r=i.Class,o=i.util,a=o.defined,s=r.extend({init:function(e){this._size=e,this._length=0,this._map={}},put:function(e,t){var n=this,i=n._map,r={key:e,value:t};i[e]=r,n._head?(n._tail.newer=r,r.older=n._tail,n._tail=r):n._head=n._tail=r,n._length>=n._size?(i[n._head.key]=null,n._head=n._head.newer,n._head.older=null):n._length++},get:function(e){var t=this,n=t._map[e];return n?(n===t._head&&n!==t._tail&&(t._head=n.newer,t._head.older=null),n!==t._tail&&(n.older&&(n.older.newer=n.newer,n.newer.older=n.older),n.older=t._tail,n.newer=null,t._tail.newer=n,t._tail=n),n.value):void 0}}),l=e(\"
    \")[0],c=r.extend({init:function(e){this._cache=new s(1e3),this._initOptions(e)},options:{baselineMarkerSize:1},measure:function(t,i,r){var s,c,d,u,h,f=o.objectKey(i),p=o.hashKey(t+f),m=this._cache.get(p);if(m)return m;s={width:0,height:0,baseline:0},c=r?r:l,d=this._baselineMarker().cloneNode(!1);for(u in i)h=i[u],a(h)&&(c.style[u]=h);return e(c).text(t),c.appendChild(d),n.body.appendChild(c),(t+\"\").length&&(s.width=c.offsetWidth-this.options.baselineMarkerSize,s.height=c.offsetHeight,s.baseline=d.offsetTop+this.options.baselineMarkerSize),s.width>0&&s.height>0&&this._cache.put(p,s),c.parentNode.removeChild(c),s},_baselineMarker:function(){return e(\"
    \")[0]}});c.current=new c,i.util.TextMetrics=c,i.util.LRUCache=s,i.util.measureText=t}(window.kendo.jQuery)},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"util/base64.min\",[\"util/main.min\"],e)}(function(){return function(){function e(e){var n,i,r,a,s,l,c,d=\"\",u=0;for(e=t(e);e.length>u;)n=e.charCodeAt(u++),i=e.charCodeAt(u++),r=e.charCodeAt(u++),a=n>>2,s=(3&n)<<4|i>>4,l=(15&i)<<2|r>>6,c=63&r,isNaN(i)?l=c=64:isNaN(r)&&(c=64),d=d+o.charAt(a)+o.charAt(s)+o.charAt(l)+o.charAt(c);return d}function t(e){var t,n,i=\"\";for(t=0;e.length>t;t++)n=e.charCodeAt(t),128>n?i+=r(n):2048>n?(i+=r(192|n>>>6),i+=r(128|63&n)):65536>n&&(i+=r(224|n>>>12),i+=r(128|n>>>6&63),i+=r(128|63&n));return i}var n=window.kendo,i=n.deepExtend,r=String.fromCharCode,o=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\";i(n.util,{encodeBase64:e,encodeUTF8:t})}(),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"mixins/observers.min\",[\"kendo.core.min\"],e)}(function(){return function(e){var t=Math,n=window.kendo,i=n.deepExtend,r=e.inArray,o={observers:function(){return this._observers=this._observers||[]},addObserver:function(e){return this._observers?this._observers.push(e):this._observers=[e],this},removeObserver:function(e){var t=this.observers(),n=r(e,t);return-1!=n&&t.splice(n,1),this},trigger:function(e,t){var n,i,r=this._observers;if(r&&!this._suspended)for(i=0;r.length>i;i++)n=r[i],n[e]&&n[e](t);return this},optionsChange:function(e){this.trigger(\"optionsChange\",e)},geometryChange:function(e){this.trigger(\"geometryChange\",e)},suspend:function(){return this._suspended=(this._suspended||0)+1,this},resume:function(){return this._suspended=t.max((this._suspended||0)-1,0),this},_observerField:function(e,t){this[e]&&this[e].removeObserver(this),this[e]=t,t.addObserver(this)}};i(n,{mixins:{ObserversMixin:o}})}(window.kendo.jQuery),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"drawing/geometry.min\",[\"util/main.min\",\"mixins/observers.min\"],e)}(function(){return function(){function e(e){return null===e?null:e instanceof m?e:new m(e)}function t(e){return e&&_.isFunction(e.matrix)?e.matrix():e}function n(e,t,n,i){var r=0,o=0;return i&&(r=g.atan2(i.c*n,i.a*t),0!==i.b&&(o=g.atan2(i.d*n,i.b*t))),{x:r,y:o}}function i(e,t){for(;t>e;)e+=90;return e}function r(e,t){var n,i,r;for(n=0;t.length>n;n++)i=t[n],r=i.charAt(0).toUpperCase()+i.substring(1,i.length),e[\"set\"+r]=o(i),e[\"get\"+r]=a(i)}function o(e){return function(t){return this[e]!==t&&(this[e]=t,this.geometryChange()),this}}function a(e){return function(){return this[e]}}function s(e,t,n){e>t&&(t+=360);var i=g.abs(t-e);return n||(i=360-i),i}function l(e,t,n,i,r,o){var a=T((r-e)/n,3),s=T((o-t)/i,3);return T(S(g.atan2(s,a)))}function c(e,t,n,i,r,o,a,c){var d,u,h,f,p,m,_,b,w,y,k,x,C,S,T,D,A,E;if(t!==i)w=n-e,y=i-t,k=v(r,2),x=v(o,2),C=(x*w*(e+n)+k*y*(t+i))/(2*k*y),S=C-i,T=-(w*x)/(k*y),p=1/k+v(T,2)/x,m=2*(T*S/x-n/k),_=v(n,2)/k+v(S,2)/x-1,b=g.sqrt(v(m,2)-4*p*_),d=(-m-b)/(2*p),u=C+T*d,h=(-m+b)/(2*p),f=C+T*h;else{if(e===n)return!1;m=-2*i,_=v((n-e)*o/(2*r),2)+v(i,2)-v(o,2),b=g.sqrt(v(m,2)-4*_),d=h=(e+n)/2,u=(-m-b)/2,f=(-m+b)/2}return D=l(d,u,r,o,e,t),A=l(d,u,r,o,n,i),E=s(D,A,c),(a&&180>=E||!a&&E>180)&&(d=h,u=f,D=l(d,u,r,o,e,t),A=l(d,u,r,o,n,i)),{center:new I(d,u),startAngle:D,endAngle:A}}var d,u,h,f,p,m,g=Math,v=g.pow,_=window.kendo,b=_.Class,w=_.deepExtend,y=_.mixins.ObserversMixin,k=_.util,x=k.defined,C=k.rad,S=k.deg,T=k.round,D=g.PI/2,A=k.MIN_NUM,E=k.MAX_NUM,I=b.extend({init:function(e,t){this.x=e||0,this.y=t||0},equals:function(e){return e&&e.x===this.x&&e.y===this.y},clone:function(){return new I(this.x,this.y)},rotate:function(t,n){return this.transform(e().rotate(t,n))},translate:function(e,t){return this.x+=e,this.y+=t,this.geometryChange(),this},translateWith:function(e){return this.translate(e.x,e.y)},move:function(e,t){return this.x=this.y=0,this.translate(e,t)},scale:function(e,t){return x(t)||(t=e),this.x*=e,this.y*=t,this.geometryChange(),this},scaleCopy:function(e,t){return this.clone().scale(e,t)},transform:function(e){var n=t(e),i=this.x,r=this.y;return this.x=n.a*i+n.c*r+n.e,this.y=n.b*i+n.d*r+n.f,this.geometryChange(),this},transformCopy:function(e){var t=this.clone();return e&&t.transform(e),t},distanceTo:function(e){var t=this.x-e.x,n=this.y-e.y;return g.sqrt(t*t+n*n)},round:function(e){return this.x=T(this.x,e),this.y=T(this.y,e),this.geometryChange(),this},toArray:function(e){var t=x(e),n=t?T(this.x,e):this.x,i=t?T(this.y,e):this.y;return[n,i]}});r(I.fn,[\"x\",\"y\"]),w(I.fn,y),I.fn.toString=function(e,t){var n=this.x,i=this.y;return x(e)&&(n=T(n,e),i=T(i,e)),t=t||\" \",n+t+i},I.create=function(e,t){return x(e)?e instanceof I?e:1===arguments.length&&2===e.length?new I(e[0],e[1]):new I(e,t):void 0},I.min=function(){var e,t,n=k.MAX_NUM,i=k.MAX_NUM;for(e=0;e=e.left&&e.right>=t.left&&t.bottom>=e.top&&e.bottom>=t.top?u.fromPoints(new I(g.max(e.left,t.left),g.max(e.top,t.top)),new I(g.min(e.right,t.right),g.min(e.bottom,t.bottom))):void 0},h=b.extend({init:function(e,t){this.setCenter(e||new I),this.setRadius(t||0)},setCenter:function(e){return this._observerField(\"center\",I.create(e)),this.geometryChange(),this},getCenter:function(){return this.center},equals:function(e){return e&&e.center.equals(this.center)&&e.radius===this.radius},clone:function(){return new h(this.center.clone(),this.radius)},pointAt:function(e){return this._pointAt(C(e))},bbox:function(e){var t,i,r,o,a=I.maxPoint(),s=I.minPoint(),l=n(this.center,this.radius,this.radius,e);for(t=0;4>t;t++)i=this._pointAt(l.x+t*D).transformCopy(e),r=this._pointAt(l.y+t*D).transformCopy(e),o=new I(i.x,r.y),a=I.min(a,o),s=I.max(s,o);return u.fromPoints(a,s)},_pointAt:function(e){var t=this.center,n=this.radius;return new I(t.x-n*g.cos(e),t.y-n*g.sin(e))}}),r(h.fn,[\"radius\"]),w(h.fn,y),f=b.extend({init:function(e,t){this.setCenter(e||new I),t=t||{},this.radiusX=t.radiusX,this.radiusY=t.radiusY||t.radiusX,this.startAngle=t.startAngle,this.endAngle=t.endAngle,this.anticlockwise=t.anticlockwise||!1},clone:function(){return new f(this.center,{radiusX:this.radiusX,radiusY:this.radiusY,startAngle:this.startAngle,endAngle:this.endAngle,anticlockwise:this.anticlockwise})},setCenter:function(e){return this._observerField(\"center\",I.create(e)),this.geometryChange(),this},getCenter:function(){return this.center},MAX_INTERVAL:45,pointAt:function(e){var t=this.center,n=C(e);return new I(t.x+this.radiusX*g.cos(n),t.y+this.radiusY*g.sin(n))},curvePoints:function(){var e,t,n,i=this.startAngle,r=this.anticlockwise?-1:1,o=[this.pointAt(i)],a=i,s=this._arcInterval(),l=s.endAngle-s.startAngle,c=g.ceil(l/this.MAX_INTERVAL),d=l/c;for(e=1;c>=e;e++)t=a+r*d,n=this._intervalCurvePoints(a,t),o.push(n.cp1,n.cp2,n.p2),a=t;return o},bbox:function(e){for(var t,r,o=this,a=o._arcInterval(),s=a.startAngle,l=a.endAngle,c=n(this.center,this.radiusX,this.radiusY,e),d=S(c.x),h=S(c.y),f=o.pointAt(s).transformCopy(e),p=o.pointAt(l).transformCopy(e),m=I.min(f,p),g=I.max(f,p),v=i(d,s),_=i(h,s);l>v||l>_;)l>v&&(t=o.pointAt(v).transformCopy(e),v+=90),l>_&&(r=o.pointAt(_).transformCopy(e),_+=90),f=new I(t.x,r.y),m=I.min(m,f),g=I.max(g,f);return u.fromPoints(m,g)},_arcInterval:function(){var e,t=this.startAngle,n=this.endAngle,i=this.anticlockwise;return i&&(e=t,t=n,n=e),(t>n||i&&t===n)&&(n+=360),{startAngle:t,endAngle:n}},_intervalCurvePoints:function(e,t){var n=this,i=n.pointAt(e),r=n.pointAt(t),o=n._derivativeAt(e),a=n._derivativeAt(t),s=(C(t)-C(e))/3,l=new I(i.x+s*o.x,i.y+s*o.y),c=new I(r.x-s*a.x,r.y-s*a.y);return{p1:i,cp1:l,cp2:c,p2:r}},_derivativeAt:function(e){var t=this,n=C(e);return new I(-t.radiusX*g.sin(n),t.radiusY*g.cos(n))}}),r(f.fn,[\"radiusX\",\"radiusY\",\"startAngle\",\"endAngle\",\"anticlockwise\"]),w(f.fn,y),f.fromPoints=function(e,t,n,i,r,o){var a=c(e.x,e.y,t.x,t.y,n,i,r,o);return new f(a.center,{startAngle:a.startAngle,endAngle:a.endAngle,radiusX:n,radiusY:i,anticlockwise:0===o})},p=b.extend({init:function(e,t,n,i,r,o){this.a=e||0,this.b=t||0,this.c=n||0,this.d=i||0,this.e=r||0,this.f=o||0},multiplyCopy:function(e){return new p(this.a*e.a+this.c*e.b,this.b*e.a+this.d*e.b,this.a*e.c+this.c*e.d,this.b*e.c+this.d*e.d,this.a*e.e+this.c*e.f+this.e,this.b*e.e+this.d*e.f+this.f)},invert:function(){var e=this.a,t=this.b,n=this.c,i=this.d,r=this.e,o=this.f,a=e*i-t*n;return 0===a?null:new p(i/a,-t/a,-n/a,e/a,(n*o-i*r)/a,(t*r-e*o)/a)},clone:function(){return new p(this.a,this.b,this.c,this.d,this.e,this.f)},equals:function(e){return e?this.a===e.a&&this.b===e.b&&this.c===e.c&&this.d===e.d&&this.e===e.e&&this.f===e.f:!1},round:function(e){return this.a=T(this.a,e),this.b=T(this.b,e),this.c=T(this.c,e),this.d=T(this.d,e),this.e=T(this.e,e),this.f=T(this.f,e),this},toArray:function(e){var t,n=[this.a,this.b,this.c,this.d,this.e,this.f];if(x(e))for(t=0;n.length>t;t++)n[t]=T(n[t],e);return n}}),p.fn.toString=function(e,t){return this.toArray(e).join(t||\",\")},p.translate=function(e,t){return new p(1,0,0,1,e,t)},p.unit=function(){return new p(1,0,0,1,0,0)},p.rotate=function(e,t,n){var i=new p;return i.a=g.cos(C(e)),i.b=g.sin(C(e)),i.c=-i.b,i.d=i.a,i.e=t-t*i.a+n*i.b||0,i.f=n-n*i.a-t*i.b||0,i},p.scale=function(e,t){return new p(e,0,0,t,0,0)},p.IDENTITY=p.unit(),m=b.extend({init:function(e){this._matrix=e||p.unit()},clone:function(){return new m(this._matrix.clone())},equals:function(e){return e&&e._matrix.equals(this._matrix)},_optionsChange:function(){this.optionsChange({field:\"transform\",value:this})},translate:function(e,t){return this._matrix=this._matrix.multiplyCopy(p.translate(e,t)),this._optionsChange(),this},scale:function(e,t,n){return x(t)||(t=e),n&&(n=I.create(n),this._matrix=this._matrix.multiplyCopy(p.translate(n.x,n.y))),this._matrix=this._matrix.multiplyCopy(p.scale(e,t)),n&&(this._matrix=this._matrix.multiplyCopy(p.translate(-n.x,-n.y))),this._optionsChange(),this},rotate:function(e,t){return t=I.create(t)||I.ZERO,this._matrix=this._matrix.multiplyCopy(p.rotate(e,t.x,t.y)),this._optionsChange(),this},multiply:function(e){var n=t(e);return this._matrix=this._matrix.multiplyCopy(n),this._optionsChange(),this},matrix:function(e){return e?(this._matrix=e,this._optionsChange(),this):this._matrix}}),w(m.fn,y),w(_,{geometry:{Arc:f,Circle:h,Matrix:p,Point:I,Rect:u,Size:d,Transformation:m,transform:e,toMatrix:t}}),_.dataviz.geometry=_.geometry}(),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"drawing/core.min\",[\"drawing/geometry.min\"],e)}(function(){!function(e){var t,n,i,r=e.noop,o=Object.prototype.toString,a=window.kendo,s=a.Class,l=a.ui.Widget,c=a.deepExtend,d=a.util,u=d.defined,h=l.extend({init:function(e,t){this.options=c({},this.options,t),l.fn.init.call(this,e,this.options),this._click=this._handler(\"click\"),this._mouseenter=this._handler(\"mouseenter\"),this._mouseleave=this._handler(\"mouseleave\"),this._visual=new a.drawing.Group,this.options.width&&this.element.css(\"width\",this.options.width),this.options.height&&this.element.css(\"height\",this.options.height)},options:{name:\"Surface\"},events:[\"click\",\"mouseenter\",\"mouseleave\",\"resize\"],draw:function(e){this._visual.children.push(e)},clear:function(){this._visual.children=[]},destroy:function(){this._visual=null,l.fn.destroy.call(this)},exportVisual:function(){return this._visual},getSize:function(){return{width:this.element.width(),height:this.element.height()}},setSize:function(e){this.element.css({width:e.width,height:e.height}),this._size=e,this._resize()},eventTarget:function(t){for(var n,i=e(t.touch?t.touch.initialTouch:t.target);!n&&i.length>0&&(n=i[0]._kendoNode,!i.is(this.element)&&0!==i.length);)i=i.parent();return n?n.srcElement:void 0},_resize:r,_handler:function(e){var t=this;return function(n){var i=t.eventTarget(n);i&&t.trigger(e,{element:i,originalEvent:n})}}});a.ui.plugin(h),h.create=function(e,t){return i.current.create(e,t)},t=s.extend({init:function(e){this.childNodes=[],this.parent=null,e&&(this.srcElement=e,this.observe())},destroy:function(){var e,t;for(this.srcElement&&this.srcElement.removeObserver(this),e=this.childNodes,t=0;e.length>t;t++)this.childNodes[t].destroy();this.parent=null},load:r,observe:function(){this.srcElement&&this.srcElement.addObserver(this)},append:function(e){this.childNodes.push(e),e.parent=this},insertAt:function(e,t){this.childNodes.splice(t,0,e),e.parent=this},remove:function(e,t){var n,i=e+t;for(n=e;i>n;n++)this.childNodes[n].removeSelf();this.childNodes.splice(e,t)},removeSelf:function(){this.clear(),this.destroy()},clear:function(){this.remove(0,this.childNodes.length)},invalidate:function(){this.parent&&this.parent.invalidate()},geometryChange:function(){this.invalidate()},optionsChange:function(){this.invalidate()},childrenChange:function(e){\"add\"===e.action?this.load(e.items,e.index):\"remove\"===e.action&&this.remove(e.index,e.items.length),this.invalidate()}}),n=s.extend({init:function(e,t){var n,i;this.prefix=t||\"\";for(n in e)i=e[n],i=this._wrap(i,n),this[n]=i},get:function(e){return a.getter(e,!0)(this)},set:function(e,t){var n,i=a.getter(e,!0)(this);i!==t&&(n=this._set(e,this._wrap(t,e)),n||this.optionsChange({field:this.prefix+e,value:t}))},_set:function(e,t){var i,r,o,s=e.indexOf(\".\")>=0;if(s)for(i=e.split(\".\"),r=\"\";i.length>1;){if(r+=i.shift(),o=a.getter(r,!0)(this),o||(o=new n({},r+\".\"),o.addObserver(this),this[r]=o),o instanceof n)return o.set(i.join(\".\"),t),s;r+=\".\"}return this._clear(e),a.setter(e)(this,t),s},_clear:function(e){var t=a.getter(e,!0)(this);t&&t.removeObserver&&t.removeObserver(this)},_wrap:function(e,t){var i=o.call(e);return null!==e&&u(e)&&\"[object Object]\"===i&&(e instanceof n||e instanceof s||(e=new n(e,this.prefix+t+\".\")),e.addObserver(this)),e}}),c(n.fn,a.mixins.ObserversMixin),i=function(){this._items=[]},i.prototype={register:function(e,t,n){var i=this._items,r=i[0],o={name:e,type:t,order:n};!r||r.order>n?i.unshift(o):i.push(o)},create:function(e,t){var n,i,r=this._items,o=r[0];if(t&&t.type)for(n=t.type.toLowerCase(),i=0;r.length>i;i++)if(r[i].name===n){o=r[i];break}return o?new o.type(e,t):void a.logToConsole(\"Warning: Unable to create Kendo UI Drawing Surface. Possible causes:\\n- The browser does not support SVG, VML and Canvas. User agent: \"+navigator.userAgent+\"\\n- The Kendo UI scripts are not fully loaded\")}},i.current=new i,c(a,{drawing:{DASH_ARRAYS:{dot:[1.5,3.5],dash:[4,3.5],longdash:[8,3.5],dashdot:[3.5,3.5,1.5,3.5],longdashdot:[8,3.5,1.5,3.5],longdashdotdot:[8,3.5,1.5,3.5,1.5,3.5]},Color:a.Color,BaseNode:t,OptionsStore:n,Surface:h,SurfaceFactory:i}}),a.dataviz.drawing=a.drawing}(window.kendo.jQuery)},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"drawing/mixins.min\",[\"drawing/core.min\"],e)}(function(){!function(){var e=window.kendo,t=e.deepExtend,n=e.util.defined,i=\"gradient\",r={extend:function(e){e.fill=this.fill,e.stroke=this.stroke},fill:function(e,t){var r,o=this.options;return n(e)?(e&&e.nodeType!=i?(r={color:e},n(t)&&(r.opacity=t),o.set(\"fill\",r)):o.set(\"fill\",e),this):o.get(\"fill\")},stroke:function(e,t,i){return n(e)?(this.options.set(\"stroke.color\",e),n(t)&&this.options.set(\"stroke.width\",t),n(i)&&this.options.set(\"stroke.opacity\",i),this):this.options.get(\"stroke\")}},o={extend:function(e,t){e.traverse=function(e){var n,i,r=this[t];for(n=0;r.length>n;n++)i=r[n],i.traverse?i.traverse(e):e(i);return this}}};t(e.drawing,{mixins:{Paintable:r,Traversable:o}})}()},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"drawing/shapes.min\",[\"drawing/core.min\",\"drawing/mixins.min\",\"util/text-metrics\",\"mixins/observers.min\"],e)}(function(){!function(e){function t(e,t,n){var i,r,o,a;for(r=0;e.length>r;r++)o=e[r],o.visible()&&(a=t?o.bbox(n):o.rawBBox(),a&&(i=i?G.Rect.union(i,a):a));return i}function n(e,t){var n,i,r,o;for(i=0;e.length>i;i++)r=e[i],r.visible()&&(o=r.clippedBBox(t),o&&(n=n?G.Rect.union(n,o):o));return n}function i(e,t){e.origin.x-=t,e.origin.y-=t,e.size.width+=2*t,e.size.height+=2*t}function r(e,t){for(var n=0;t.length>n;n++)e[t[n]]=o(t[n])}function o(e){var t=\"_\"+e;return function(e){return re(e)?(this._observerField(t,e),this.geometryChange(),this):this[t]}}function a(e,t){for(var n=0;t.length>n;n++)e[t[n]]=s(t[n])}function s(e){var t=\"_\"+e;return function(e){return re(e)?(this._observerField(t,$.create(e)),this.geometryChange(),this):this[t]}}function l(e,t){for(var n=0;t.length>n;n++)e[t[n]]=c(t[n])}function c(e){return function(t){return re(t)?(this.options.set(e,t),this):this.options.get(e)}}function d(){return\"kdef\"+me++}function u(e,t,n){k(e,t,n,\"x\",\"width\")}function h(e,t,n){k(e,t,n,\"y\",\"height\")}function f(e){y(w(e),\"x\",\"y\",\"width\")}function p(e){y(w(e),\"y\",\"x\",\"height\")}function m(e,t){return v(e,t,\"x\",\"y\",\"width\")}function g(e,t){return v(e,t,\"y\",\"x\",\"height\")}function v(e,t,n,i,r){var o,a,s,l,c=[],d=b(e,t,r),u=t.origin.clone();for(l=0;d.length>l;l++)for(s=d[l],o=s[0],u[i]=o.bbox.origin[i],S(u,o.bbox,o.element),o.bbox.origin[n]=u[n],y(s,n,i,r),c.push([]),a=0;s.length>a;a++)c[l].push(s[a].element);return c}function _(e,t){var n,i,r=e.clippedBBox(),o=r.size,a=t.size;(o.width>a.width||o.height>a.height)&&(n=Z.min(a.width/o.width,a.height/o.height),i=e.transform()||G.transform(),i.scale(n,n),e.transform(i))}function b(e,t,n){var i,r,o,a,s=t.size[n],l=0,c=[],d=[],u=function(){d.push({element:i,bbox:o})};for(a=0;e.length>a;a++)i=e[a],o=i.clippedBBox(),o&&(r=o.size[n],l+r>s?d.length?(c.push(d),d=[],u(),l=r):(u(),c.push(d),d=[],l=0):(u(),l+=r));return d.length&&c.push(d),c}function w(e){var t,n,i,r=[];for(i=0;e.length>i;i++)t=e[i],n=t.clippedBBox(),n&&r.push({element:t,bbox:n});return r}function y(e,t,n,i){var r,o,a,s,l;if(e.length>1)for(r=e[0].bbox,o=new $,l=1;e.length>l;l++)a=e[l].element,s=e[l].bbox,o[t]=r.origin[t]+r.size[i],o[n]=s.origin[n],S(o,s,a),s.origin[t]=o[t],r=s}function k(e,t,n,i,r){var o,a,s;for(n=n||\"start\",s=0;e.length>s;s++)o=e[s].clippedBBox(),o&&(a=o.origin.clone(),a[i]=x(o.size[r],t,n,i,r),S(a,o,e[s]))}function x(e,t,n,i,r){var o;return o=n==ge?t.origin[i]:n==ve?t.origin[i]+t.size[r]-e:t.origin[i]+(t.size[r]-e)/2}function C(e,t,n){var i=n.transform()||G.transform(),r=i.matrix();r.e+=e,r.f+=t,i.matrix(r),n.transform(i)}function S(e,t,n){C(e.x-t.origin.x,e.y-t.origin.y,n)}var T,D,A,E,I,F,M,R,P,z,B,L,H,N,O,V,U,W=window.kendo,j=W.Class,q=W.deepExtend,G=W.geometry,$=G.Point,Y=G.Size,K=G.Matrix,Q=G.toMatrix,X=W.drawing,J=X.OptionsStore,Z=Math,ee=Z.pow,te=W.util,ne=te.append,ie=te.arrayLimits,re=te.defined,oe=te.last,ae=te.valueOrDefault,se=W.mixins.ObserversMixin,le=e.inArray,ce=[].push,de=[].pop,ue=[].splice,he=[].shift,fe=[].slice,pe=[].unshift,me=1,ge=\"start\",ve=\"end\",_e=\"horizontal\",be=j.extend({nodeType:\"Element\",init:function(e){this._initOptions(e)},_initOptions:function(e){var t,n;e=e||{},t=e.transform,n=e.clip,t&&(e.transform=G.transform(t)),n&&!n.id&&(n.id=d()),this.options=new J(e),this.options.addObserver(this)},transform:function(e){return re(e)?void this.options.set(\"transform\",G.transform(e)):this.options.get(\"transform\")},parentTransform:function(){for(var e,t,n=this;n.parent;)n=n.parent,e=n.transform(),e&&(t=e.matrix().multiplyCopy(t||K.unit()));return t?G.transform(t):void 0},currentTransform:function(e){var t,n,i=this.transform(),r=Q(i);return re(e)||(e=this.parentTransform()),t=Q(e),n=r&&t?t.multiplyCopy(r):r||t,n?G.transform(n):void 0},visible:function(e){return re(e)?(this.options.set(\"visible\",e),this):this.options.get(\"visible\")!==!1},clip:function(e){var t=this.options;return re(e)?(e&&!e.id&&(e.id=d()),t.set(\"clip\",e),this):t.get(\"clip\")},opacity:function(e){return re(e)?(this.options.set(\"opacity\",e),this):ae(this.options.get(\"opacity\"),1)},clippedBBox:function(e){var t,n=this._clippedBBox(e);return n?(t=this.clip(),t?G.Rect.intersect(n,t.bbox(e)):n):void 0},_clippedBBox:function(e){return this.bbox(e)}});q(be.fn,se),T=j.extend({init:function(e){e=e||[],this.length=0,this._splice(0,e.length,e)},elements:function(e){return e?(this._splice(0,this.length,e),this._change(),this):this.slice(0)},push:function(){var e=arguments,t=ce.apply(this,e);return this._add(e),t},slice:fe,pop:function(){var e=this.length,t=de.apply(this);return e&&this._remove([t]),t},splice:function(e,t){var n=fe.call(arguments,2),i=this._splice(e,t,n);return this._change(),i},shift:function(){var e=this.length,t=he.apply(this);return e&&this._remove([t]),t},unshift:function(){var e=arguments,t=pe.apply(this,e);return this._add(e),t},indexOf:function(e){var t,n,i=this;for(t=0,n=i.length;n>t;t++)if(i[t]===e)return t;return-1},_splice:function(e,t,n){var i=ue.apply(this,[e,t].concat(n));return this._clearObserver(i),this._setObserver(n),i},_add:function(e){this._setObserver(e),this._change()},_remove:function(e){this._clearObserver(e),this._change()},_setObserver:function(e){for(var t=0;e.length>t;t++)e[t].addObserver(this)},_clearObserver:function(e){for(var t=0;e.length>t;t++)e[t].removeObserver(this)},_change:function(){}}),q(T.fn,se),D=be.extend({nodeType:\"Group\",init:function(e){be.fn.init.call(this,e),\r\nthis.children=[]},childrenChange:function(e,t,n){this.trigger(\"childrenChange\",{action:e,items:t,index:n})},append:function(){return ne(this.children,arguments),this._reparent(arguments,this),this.childrenChange(\"add\",arguments),this},insert:function(e,t){return this.children.splice(e,0,t),t.parent=this,this.childrenChange(\"add\",[t],e),this},insertAt:function(e,t){return this.insert(t,e)},remove:function(e){var t=le(e,this.children);return t>=0&&(this.children.splice(t,1),e.parent=null,this.childrenChange(\"remove\",[e],t)),this},removeAt:function(e){if(e>=0&&this.children.length>e){var t=this.children[e];this.children.splice(e,1),t.parent=null,this.childrenChange(\"remove\",[t],e)}return this},clear:function(){var e=this.children;return this.children=[],this._reparent(e,null),this.childrenChange(\"remove\",e,0),this},bbox:function(e){return t(this.children,!0,this.currentTransform(e))},rawBBox:function(){return t(this.children,!1)},_clippedBBox:function(e){return n(this.children,this.currentTransform(e))},currentTransform:function(e){return be.fn.currentTransform.call(this,e)||null},_reparent:function(e,t){var n,i,r;for(n=0;e.length>n;n++)i=e[n],r=i.parent,r&&r!=this&&r.remove&&r.remove(i),i.parent=t}}),X.mixins.Traversable.extend(D.fn,\"children\"),A=be.extend({nodeType:\"Text\",init:function(e,t,n){be.fn.init.call(this,n),this.content(e),this.position(t||new G.Point),this.options.font||(this.options.font=\"12px sans-serif\"),re(this.options.fill)||this.fill(\"#000\")},content:function(e){return re(e)?(this.options.set(\"content\",e),this):this.options.get(\"content\")},measure:function(){var e=te.measureText(this.content(),{font:this.options.get(\"font\")});return e},rect:function(){var e=this.measure(),t=this.position().clone();return new G.Rect(t,[e.width,e.height])},bbox:function(e){var t=Q(this.currentTransform(e));return this.rect().bbox(t)},rawBBox:function(){return this.rect().bbox()}}),X.mixins.Paintable.extend(A.fn),a(A.fn,[\"position\"]),E=be.extend({nodeType:\"Circle\",init:function(e,t){be.fn.init.call(this,t),this.geometry(e||new G.Circle),re(this.options.stroke)||this.stroke(\"#000\")},bbox:function(e){var t=Q(this.currentTransform(e)),n=this._geometry.bbox(t),r=this.options.get(\"stroke.width\");return r&&i(n,r/2),n},rawBBox:function(){return this._geometry.bbox()}}),X.mixins.Paintable.extend(E.fn),r(E.fn,[\"geometry\"]),I=be.extend({nodeType:\"Arc\",init:function(e,t){be.fn.init.call(this,t),this.geometry(e||new G.Arc),re(this.options.stroke)||this.stroke(\"#000\")},bbox:function(e){var t=Q(this.currentTransform(e)),n=this.geometry().bbox(t),r=this.options.get(\"stroke.width\");return r&&i(n,r/2),n},rawBBox:function(){return this.geometry().bbox()},toPath:function(){var e,t=new R,n=this.geometry().curvePoints();if(n.length>0)for(t.moveTo(n[0].x,n[0].y),e=1;n.length>e;e+=3)t.curveTo(n[e],n[e+1],n[e+2]);return t}}),X.mixins.Paintable.extend(I.fn),r(I.fn,[\"geometry\"]),F=T.extend({_change:function(){this.geometryChange()}}),M=j.extend({init:function(e,t,n){this.anchor(e||new $),this.controlIn(t),this.controlOut(n)},bboxTo:function(e,t){var n,i=this.anchor().transformCopy(t),r=e.anchor().transformCopy(t);return n=this.controlOut()&&e.controlIn()?this._curveBoundingBox(i,this.controlOut().transformCopy(t),e.controlIn().transformCopy(t),r):this._lineBoundingBox(i,r)},_lineBoundingBox:function(e,t){return G.Rect.fromPoints(e,t)},_curveBoundingBox:function(e,t,n,i){var r=[e,t,n,i],o=this._curveExtremesFor(r,\"x\"),a=this._curveExtremesFor(r,\"y\"),s=ie([o.min,o.max,e.x,i.x]),l=ie([a.min,a.max,e.y,i.y]);return G.Rect.fromPoints(new $(s.min,l.min),new $(s.max,l.max))},_curveExtremesFor:function(e,t){var n=this._curveExtremes(e[0][t],e[1][t],e[2][t],e[3][t]);return{min:this._calculateCurveAt(n.min,t,e),max:this._calculateCurveAt(n.max,t,e)}},_calculateCurveAt:function(e,t,n){var i=1-e;return ee(i,3)*n[0][t]+3*ee(i,2)*e*n[1][t]+3*ee(e,2)*i*n[2][t]+ee(e,3)*n[3][t]},_curveExtremes:function(e,t,n,i){var r,o,a=e-3*t+3*n-i,s=-2*(e-2*t+n),l=e-t,c=Z.sqrt(s*s-4*a*l),d=0,u=1;return 0===a?0!==s&&(d=u=-l/s):isNaN(c)||(d=(-s+c)/(2*a),u=(-s-c)/(2*a)),r=Z.max(Z.min(d,u),0),(0>r||r>1)&&(r=0),o=Z.min(Z.max(d,u),1),(o>1||0>o)&&(o=1),{min:r,max:o}}}),a(M.fn,[\"anchor\",\"controlIn\",\"controlOut\"]),q(M.fn,se),R=be.extend({nodeType:\"Path\",init:function(e){be.fn.init.call(this,e),this.segments=new F,this.segments.addObserver(this),re(this.options.stroke)||(this.stroke(\"#000\"),re(this.options.stroke.lineJoin)||this.options.set(\"stroke.lineJoin\",\"miter\"))},moveTo:function(e,t){return this.suspend(),this.segments.elements([]),this.resume(),this.lineTo(e,t),this},lineTo:function(e,t){var n=re(t)?new $(e,t):e,i=new M(n);return this.segments.push(i),this},curveTo:function(e,t,n){var i,r;return this.segments.length>0&&(i=oe(this.segments),r=new M(n,t),this.suspend(),i.controlOut(e),this.resume(),this.segments.push(r)),this},arc:function(e,t,n,i,r){var o,a,s,l,c;return this.segments.length>0&&(o=oe(this.segments),a=o.anchor(),s=te.rad(e),l=new $(a.x-n*Z.cos(s),a.y-i*Z.sin(s)),c=new G.Arc(l,{startAngle:e,endAngle:t,radiusX:n,radiusY:i,anticlockwise:r}),this._addArcSegments(c)),this},arcTo:function(e,t,n,i,r){var o,a,s;return this.segments.length>0&&(o=oe(this.segments),a=o.anchor(),s=G.Arc.fromPoints(a,e,t,n,i,r),this._addArcSegments(s)),this},_addArcSegments:function(e){var t,n;for(this.suspend(),t=e.curvePoints(),n=1;t.length>n;n+=3)this.curveTo(t[n],t[n+1],t[n+2]);this.resume(),this.geometryChange()},close:function(){return this.options.closed=!0,this.geometryChange(),this},bbox:function(e){var t=Q(this.currentTransform(e)),n=this._bbox(t),r=this.options.get(\"stroke.width\");return r&&i(n,r/2),n},rawBBox:function(){return this._bbox()},_bbox:function(e){var t,n,i,r,o=this.segments,a=o.length;if(1===a)n=o[0].anchor().transformCopy(e),t=new G.Rect(n,Y.ZERO);else if(a>0)for(i=1;a>i;i++)r=o[i-1].bboxTo(o[i],e),t=t?G.Rect.union(t,r):r;return t}}),X.mixins.Paintable.extend(R.fn),R.fromRect=function(e,t){return new R(t).moveTo(e.topLeft()).lineTo(e.topRight()).lineTo(e.bottomRight()).lineTo(e.bottomLeft()).close()},R.fromPoints=function(e,t){var n,i,r;if(e){for(n=new R(t),i=0;e.length>i;i++)r=$.create(e[i]),r&&(0===i?n.moveTo(r):n.lineTo(r));return n}},R.fromArc=function(e,t){var n=new R(t),i=e.startAngle,r=e.pointAt(i);return n.moveTo(r.x,r.y),n.arc(i,e.endAngle,e.radiusX,e.radiusY,e.anticlockwise),n},P=be.extend({nodeType:\"MultiPath\",init:function(e){be.fn.init.call(this,e),this.paths=new F,this.paths.addObserver(this),re(this.options.stroke)||this.stroke(\"#000\")},moveTo:function(e,t){var n=new R;return n.moveTo(e,t),this.paths.push(n),this},lineTo:function(e,t){return this.paths.length>0&&oe(this.paths).lineTo(e,t),this},curveTo:function(e,t,n){return this.paths.length>0&&oe(this.paths).curveTo(e,t,n),this},arc:function(e,t,n,i,r){return this.paths.length>0&&oe(this.paths).arc(e,t,n,i,r),this},arcTo:function(e,t,n,i,r){return this.paths.length>0&&oe(this.paths).arcTo(e,t,n,i,r),this},close:function(){return this.paths.length>0&&oe(this.paths).close(),this},bbox:function(e){return t(this.paths,!0,this.currentTransform(e))},rawBBox:function(){return t(this.paths,!1)},_clippedBBox:function(e){return n(this.paths,this.currentTransform(e))}}),X.mixins.Paintable.extend(P.fn),z=be.extend({nodeType:\"Image\",init:function(e,t,n){be.fn.init.call(this,n),this.src(e),this.rect(t||new G.Rect)},src:function(e){return re(e)?(this.options.set(\"src\",e),this):this.options.get(\"src\")},bbox:function(e){var t=Q(this.currentTransform(e));return this._rect.bbox(t)},rawBBox:function(){return this._rect.bbox()}}),r(z.fn,[\"rect\"]),B=j.extend({init:function(e,t,n){this.options=new J({offset:e,color:t,opacity:re(n)?n:1}),this.options.addObserver(this)}}),l(B.fn,[\"offset\",\"color\",\"opacity\"]),q(B.fn,se),B.create=function(e){if(re(e)){var t;return t=e instanceof B?e:e.length>1?new B(e[0],e[1],e[2]):new B(e.offset,e.color,e.opacity)}},L=T.extend({_change:function(){this.optionsChange({field:\"stops\"})}}),H=j.extend({nodeType:\"gradient\",init:function(e){this.stops=new L(this._createStops(e.stops)),this.stops.addObserver(this),this._userSpace=e.userSpace,this.id=d()},userSpace:function(e){return re(e)?(this._userSpace=e,this.optionsChange(),this):this._userSpace},_createStops:function(e){var t,n=[];for(e=e||[],t=0;e.length>t;t++)n.push(B.create(e[t]));return n},addStop:function(e,t,n){this.stops.push(new B(e,t,n))},removeStop:function(e){var t=this.stops.indexOf(e);t>=0&&this.stops.splice(t,1)}}),q(H.fn,se,{optionsChange:function(e){this.trigger(\"optionsChange\",{field:\"gradient\"+(e?\".\"+e.field:\"\"),value:this})},geometryChange:function(){this.optionsChange()}}),N=H.extend({init:function(e){e=e||{},H.fn.init.call(this,e),this.start(e.start||new $),this.end(e.end||new $(1,0))}}),a(N.fn,[\"start\",\"end\"]),O=H.extend({init:function(e){e=e||{},H.fn.init.call(this,e),this.center(e.center||new $),this._radius=re(e.radius)?e.radius:1,this._fallbackFill=e.fallbackFill},radius:function(e){return re(e)?(this._radius=e,this.geometryChange(),this):this._radius},fallbackFill:function(e){return re(e)?(this._fallbackFill=e,this.optionsChange(),this):this._fallbackFill}}),a(O.fn,[\"center\"]),V=be.extend({nodeType:\"Rect\",init:function(e,t){be.fn.init.call(this,t),this.geometry(e||new G.Rect),re(this.options.stroke)||this.stroke(\"#000\")},bbox:function(e){var t=Q(this.currentTransform(e)),n=this._geometry.bbox(t),r=this.options.get(\"stroke.width\");return r&&i(n,r/2),n},rawBBox:function(){return this._geometry.bbox()}}),X.mixins.Paintable.extend(V.fn),r(V.fn,[\"geometry\"]),U=D.extend({init:function(e,t){D.fn.init.call(this,W.deepExtend({},this._defaults,t)),this._rect=e,this._fieldMap={}},_defaults:{alignContent:ge,justifyContent:ge,alignItems:ge,spacing:0,orientation:_e,lineSpacing:0,wrap:!0},rect:function(e){return e?(this._rect=e,this):this._rect},_initMap:function(){var e=this.options,t=this._fieldMap;e.orientation==_e?(t.sizeField=\"width\",t.groupsSizeField=\"height\",t.groupAxis=\"x\",t.groupsAxis=\"y\"):(t.sizeField=\"height\",t.groupsSizeField=\"width\",t.groupAxis=\"y\",t.groupsAxis=\"x\")},reflow:function(){var e,t,n,i,r,o,a,s,l,c,d,u,h,f,p,m,g,v,_,b,w,y,k,C,T,D;if(this._rect&&0!==this.children.length){for(this._initMap(),this.options.transform&&this.transform(null),e=this.options,t=this._fieldMap,n=this._rect,i=this._initGroups(),r=i.groups,o=i.groupsSize,a=t.sizeField,s=t.groupsSizeField,l=t.groupAxis,c=t.groupsAxis,d=x(o,n,e.alignContent,c,s),u=new $,h=new $,f=new G.Size,b=0;r.length>b;b++){for(v=r[b],u[l]=p=x(v.size,n,e.justifyContent,l,a),u[c]=d,f[a]=v.size,f[s]=v.lineSize,_=new G.Rect(u,f),w=0;v.bboxes.length>w;w++)g=v.elements[w],m=v.bboxes[w],h[l]=p,h[c]=x(m.size[s],_,e.alignItems,c,s),S(h,m,g),p+=m.size[a]+e.spacing;d+=v.lineSize+e.lineSpacing}!e.wrap&&v.size>n.size[a]&&(y=n.size[a]/_.size[a],k=_.topLeft().scale(y,y),C=_.size[s]*y,T=x(C,n,e.alignContent,c,s),D=G.transform(),\"x\"===l?D.translate(n.origin.x-k.x,T-k.y):D.translate(T-k.x,n.origin.y-k.y),D.scale(y,y),this.transform(D))}},_initGroups:function(){var e,t,n,i=this.options,r=this.children,o=i.lineSpacing,a=this._fieldMap.sizeField,s=-o,l=[],c=this._newGroup(),d=function(){l.push(c),s+=c.lineSize+o};for(n=0;r.length>n;n++)t=r[n],e=r[n].clippedBBox(),t.visible()&&e&&(i.wrap&&c.size+e.size[a]+i.spacing>this._rect.size[a]?0===c.bboxes.length?(this._addToGroup(c,e,t),d(),c=this._newGroup()):(d(),c=this._newGroup(),this._addToGroup(c,e,t)):this._addToGroup(c,e,t));return c.bboxes.length&&d(),{groups:l,groupsSize:s}},_addToGroup:function(e,t,n){e.size+=t.size[this._fieldMap.sizeField]+this.options.spacing,e.lineSize=Math.max(t.size[this._fieldMap.groupsSizeField],e.lineSize),e.bboxes.push(t),e.elements.push(n)},_newGroup:function(){return{lineSize:0,size:-this.options.spacing,bboxes:[],elements:[]}}}),q(X,{align:u,Arc:I,Circle:E,Element:be,ElementsArray:T,fit:_,Gradient:H,GradientStop:B,Group:D,Image:z,Layout:U,LinearGradient:N,MultiPath:P,Path:R,RadialGradient:O,Rect:V,Segment:M,stack:f,Text:A,vAlign:h,vStack:p,vWrap:g,wrap:m})}(window.kendo.jQuery)},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"drawing/parser.min\",[\"drawing/shapes.min\"],e)}(function(){!function(e){function t(e){var t=[];return e.replace(m,function(e,n){t.push(parseFloat(n))}),t}function n(e,t,n){var i,r=t?0:1;for(i=0;e.length>i;i+=2)e.splice(i+r,0,n)}function i(e,t){return e&&t?t.scaleCopy(2).translate(-e.x,-e.y):void 0}function r(e,t,n){var i=1/3;return t=t.clone().scale(2/3),{controlOut:t.clone().translateWith(e.scaleCopy(i)),controlIn:t.translateWith(n.scaleCopy(i))}}var o=window.kendo,a=o.drawing,s=o.geometry,l=o.Class,c=s.Point,d=o.deepExtend,u=e.trim,h=o.util,f=h.last,p=/([a-df-z]{1})([^a-df-z]*)(z)?/gi,m=/[,\\s]?([+\\-]?(?:\\d*\\.\\d+|\\d+)(?:[eE][+\\-]?\\d+)?)/g,g=\"m\",v=\"z\",_=l.extend({parse:function(e,n){var i,r=new a.MultiPath(n),o=new c;return e.replace(p,function(e,n,a,s){var l=n.toLowerCase(),c=l===n,d=t(u(a));if(l===g&&(c?(o.x+=d[0],o.y+=d[1]):(o.x=d[0],o.y=d[1]),r.moveTo(o.x,o.y),d.length>2&&(l=\"l\",d.splice(0,2))),b[l])b[l](r,{parameters:d,position:o,isRelative:c,previousCommand:i}),s&&s.toLowerCase()===v&&r.close();else if(l!==g)throw Error(\"Error while parsing SVG path. Unsupported command: \"+l);i=l}),r}}),b={l:function(e,t){var n,i,r=t.parameters,o=t.position;for(n=0;r.length>n;n+=2)i=new c(r[n],r[n+1]),t.isRelative&&i.translateWith(o),e.lineTo(i.x,i.y),o.x=i.x,o.y=i.y},c:function(e,t){var n,i,r,o,a=t.parameters,s=t.position;for(o=0;a.length>o;o+=6)n=new c(a[o],a[o+1]),i=new c(a[o+2],a[o+3]),r=new c(a[o+4],a[o+5]),t.isRelative&&(i.translateWith(s),n.translateWith(s),r.translateWith(s)),e.curveTo(n,i,r),s.x=r.x,s.y=r.y},v:function(e,t){var i=t.isRelative?0:t.position.x;n(t.parameters,!0,i),this.l(e,t)},h:function(e,t){var i=t.isRelative?0:t.position.y;n(t.parameters,!1,i),this.l(e,t)},a:function(e,t){var n,i,r,o,a,s,l=t.parameters,d=t.position;for(n=0;l.length>n;n+=7)i=l[n],r=l[n+1],o=l[n+3],a=l[n+4],s=new c(l[n+5],l[n+6]),t.isRelative&&s.translateWith(d),e.arcTo(s,i,r,o,a),d.x=s.x,d.y=s.y},s:function(e,t){var n,r,o,a,s,l=t.parameters,d=t.position,u=t.previousCommand;for((\"s\"==u||\"c\"==u)&&(a=f(f(e.paths).segments).controlIn()),s=0;l.length>s;s+=4)o=new c(l[s],l[s+1]),r=new c(l[s+2],l[s+3]),t.isRelative&&(o.translateWith(d),r.translateWith(d)),n=a?i(a,d):d.clone(),a=o,e.curveTo(n,o,r),d.x=r.x,d.y=r.y},q:function(e,t){var n,i,o,a,s=t.parameters,l=t.position;for(a=0;s.length>a;a+=4)o=new c(s[a],s[a+1]),i=new c(s[a+2],s[a+3]),t.isRelative&&(o.translateWith(l),i.translateWith(l)),n=r(l,o,i),e.curveTo(n.controlOut,n.controlIn,i),l.x=i.x,l.y=i.y},t:function(e,t){var n,o,a,s,l,d=t.parameters,u=t.position,h=t.previousCommand;for((\"q\"==h||\"t\"==h)&&(s=f(f(e.paths).segments),o=s.controlIn().clone().translateWith(u.scaleCopy(-1/3)).scale(1.5)),l=0;d.length>l;l+=2)a=new c(d[l],d[l+1]),t.isRelative&&a.translateWith(u),o=o?i(o,u):u.clone(),n=r(u,o,a),e.curveTo(n.controlOut,n.controlIn,a),u.x=a.x,u.y=a.y}};_.current=new _,a.Path.parse=function(e,t){return _.current.parse(e,t)},d(a,{PathParser:_})}(window.kendo.jQuery)},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"drawing/svg.min\",[\"drawing/shapes.min\",\"util/main.min\"],e)}(function(){!function(e){function t(e){var t,n,i,r;try{t=e.getScreenCTM?e.getScreenCTM():null}catch(o){}t&&(n=-t.e%1,i=-t.f%1,r=e.style,(0!==n||0!==i)&&(r.left=n+\"px\",r.top=i+\"px\"))}function n(){var e=document.getElementsByTagName(\"base\")[0],t=\"\",n=document.location.href,i=n.indexOf(\"#\");return e&&!d.support.browser.msie&&(-1!==i&&(n=n.substring(0,i)),t=n),t}function i(e){return\"url(\"+n()+\"#\"+e+\")\"}function r(e){var t,n,i,r=new P,o=e.clippedBBox();return o&&(t=o.getOrigin(),n=new f.Group,n.transform(h.transform().translate(-t.x,-t.y)),n.children.push(e),e=n),r.load([e]),i=\"\"+r.render()+\"\",r.destroy(),i}function o(t,n){var i=r(t);return n&&n.raw||(i=\"data:image/svg+xml;base64,\"+m.encodeBase64(i)),e.Deferred().resolve(i).promise()}function a(e,t){return\"clip\"==e||\"fill\"==e&&(!t||t.nodeType==C)}function s(e){if(!e||!e.indexOf||e.indexOf(\"&\")<0)return e;var t=s._element;return t.innerHTML=e,t.textContent||t.innerText}var l,c=document,d=window.kendo,u=d.deepExtend,h=d.geometry,f=d.drawing,p=f.BaseNode,m=d.util,g=m.defined,v=m.isTransparent,_=m.renderAttr,b=m.renderAllAttr,w=m.renderTemplate,y=e.inArray,k=\"butt\",x=f.DASH_ARRAYS,C=\"gradient\",S=\"none\",T=\".kendo\",D=\"solid\",A=\" \",E=\"http://www.w3.org/2000/svg\",I=\"transform\",F=\"undefined\",M=f.Surface.extend({init:function(e,n){f.Surface.fn.init.call(this,e,n),this._root=new P(this.options),Q(this.element[0],this._template(this)),this._rootElement=this.element[0].firstElementChild,t(this._rootElement),this._root.attachTo(this._rootElement),this.element.on(\"click\"+T,this._click),this.element.on(\"mouseover\"+T,this._mouseenter),this.element.on(\"mouseout\"+T,this._mouseleave),this.resize()},type:\"svg\",destroy:function(){this._root&&(this._root.destroy(),this._root=null,this._rootElement=null,this.element.off(T)),f.Surface.fn.destroy.call(this)},translate:function(e){var t=d.format(\"{0} {1} {2} {3}\",Math.round(e.x),Math.round(e.y),this._size.width,this._size.height);this._offset=e,this._rootElement.setAttribute(\"viewBox\",t)},draw:function(e){f.Surface.fn.draw.call(this,e),this._root.load([e])},clear:function(){f.Surface.fn.clear.call(this),this._root.clear()},svg:function(){return\"\"+this._template(this)},exportVisual:function(){var e,t=this._visual,n=this._offset;return n&&(e=new f.Group,e.children.push(t),e.transform(h.transform().translate(-n.x,-n.y)),t=e),t},_resize:function(){this._offset&&this.translate(this._offset)},_template:w(\"#= d._root.render() #\")}),R=p.extend({init:function(e){p.fn.init.call(this,e),this.definitions={}},destroy:function(){this.element&&(this.element._kendoNode=null,this.element=null),this.clearDefinitions(),p.fn.destroy.call(this)},load:function(e,t){var n,i,r,o,a=this,s=a.element;for(o=0;e.length>o;o++)i=e[o],r=i.children,n=new K[i.nodeType](i),g(t)?a.insertAt(n,t):a.append(n),n.createDefinitions(),r&&r.length>0&&n.load(r),s&&n.attachTo(s,t)},root:function(){for(var e=this;e.parent;)e=e.parent;return e},attachTo:function(e,t){var n,i=c.createElement(\"div\");Q(i,\"\"+this.render()+\"\"),n=i.firstChild.firstChild,n&&(g(t)?e.insertBefore(n,e.childNodes[t]||null):e.appendChild(n),this.setElement(n))},setElement:function(e){var t,n,i=this.childNodes;for(this.element&&(this.element._kendoNode=null),this.element=e,this.element._kendoNode=this,n=0;i.length>n;n++)t=e.childNodes[n],i[n].setElement(t)},clear:function(){var e,t;for(this.clearDefinitions(),this.element&&(this.element.innerHTML=\"\"),e=this.childNodes,t=0;e.length>t;t++)e[t].destroy();this.childNodes=[]},removeSelf:function(){if(this.element){var e=this.element.parentNode;e&&e.removeChild(this.element),this.element=null}p.fn.removeSelf.call(this)},template:w(\"#= d.renderChildren() #\"),render:function(){return this.template(this)},renderChildren:function(){var e,t=this.childNodes,n=\"\";for(e=0;t.length>e;e++)n+=t[e].render();return n},optionsChange:function(e){var t=e.field,n=e.value;\"visible\"===t?this.css(\"display\",n?\"\":S):l[t]&&a(t,n)?this.updateDefinition(t,n):\"opacity\"===t&&this.attr(\"opacity\",n),p.fn.optionsChange.call(this,e)},attr:function(e,t){this.element&&this.element.setAttribute(e,t)},allAttr:function(e){for(var t=0;e.length>t;t++)this.attr(e[t][0],e[t][1])},css:function(e,t){this.element&&(this.element.style[e]=t)},allCss:function(e){for(var t=0;e.length>t;t++)this.css(e[t][0],e[t][1])},removeAttr:function(e){this.element&&this.element.removeAttribute(e)},mapTransform:function(e){var t=[];return e&&t.push([I,\"matrix(\"+e.matrix().toString(6)+\")\"]),t},renderTransform:function(){return b(this.mapTransform(this.srcElement.transform()))},transformChange:function(e){e?this.allAttr(this.mapTransform(e)):this.removeAttr(I)},mapStyle:function(){var e=this.srcElement.options,t=[[\"cursor\",e.cursor]];return e.visible===!1&&t.push([\"display\",S]),t},renderStyle:function(){return _(\"style\",m.renderStyle(this.mapStyle(!0)))},renderOpacity:function(){return _(\"opacity\",this.srcElement.options.opacity)},createDefinitions:function(){var e,t,n,i,r=this.srcElement,o=this.definitions;if(r){n=r.options;for(t in l)e=n.get(t),e&&a(t,e)&&(o[t]=e,i=!0);i&&this.definitionChange({action:\"add\",definitions:o})}},definitionChange:function(e){this.parent&&this.parent.definitionChange(e)},updateDefinition:function(e,t){var n=this.definitions,r=n[e],o=l[e],a={};r&&(a[e]=r,this.definitionChange({action:\"remove\",definitions:a}),delete n[e]),t?(a[e]=t,this.definitionChange({action:\"add\",definitions:a}),n[e]=t,this.attr(o,i(t.id))):r&&this.removeAttr(o)},clearDefinitions:function(){var e,t=this.definitions;for(e in t){this.definitionChange({action:\"remove\",definitions:t}),this.definitions={};break}},renderDefinitions:function(){return b(this.mapDefinitions())},mapDefinitions:function(){var e,t=this.definitions,n=[];for(e in t)n.push([l[e],i(t[e].id)]);return n}}),P=R.extend({init:function(e){R.fn.init.call(this),this.options=e,this.defs=new z},attachTo:function(e){this.element=e,this.defs.attachTo(e.firstElementChild)},clear:function(){p.fn.clear.call(this)},template:w(\"#=d.defs.render()##= d.renderChildren() #\"),definitionChange:function(e){this.defs.definitionChange(e)}}),z=R.extend({init:function(){R.fn.init.call(this),this.definitionMap={}},attachTo:function(e){this.element=e},template:w(\"#= d.renderChildren()#\"),definitionChange:function(e){var t=e.definitions,n=e.action;\"add\"==n?this.addDefinitions(t):\"remove\"==n&&this.removeDefinitions(t)},createDefinition:function(e,t){var n;return\"clip\"==e?n=B:\"fill\"==e&&(t instanceof f.LinearGradient?n=G:t instanceof f.RadialGradient&&(n=$)),new n(t)},addDefinitions:function(e){for(var t in e)this.addDefinition(t,e[t])},addDefinition:function(e,t){var n,i=this.definitionMap,r=t.id,o=this.element,a=i[r];a?a.count++:(n=this.createDefinition(e,t),i[r]={element:n,count:1},this.append(n),o&&n.attachTo(this.element))},removeDefinitions:function(e){for(var t in e)this.removeDefinition(e[t])},removeDefinition:function(e){var t=this.definitionMap,n=e.id,i=t[n];i&&(i.count--,0===i.count&&(this.remove(y(i.element,this.childNodes),1),delete t[n]))}}),B=R.extend({init:function(e){R.fn.init.call(this),this.srcElement=e,this.id=e.id,this.load([e])},template:w(\"#= d.renderChildren()#\")}),L=R.extend({template:w(\"#= d.renderChildren() #\"),optionsChange:function(e){e.field==I&&this.transformChange(e.value),R.fn.optionsChange.call(this,e)}}),H=R.extend({geometryChange:function(){this.attr(\"d\",this.renderData()),this.invalidate()},optionsChange:function(e){switch(e.field){case\"fill\":e.value?this.allAttr(this.mapFill(e.value)):this.removeAttr(\"fill\");break;case\"fill.color\":this.allAttr(this.mapFill({color:e.value}));break;case\"stroke\":e.value?this.allAttr(this.mapStroke(e.value)):this.removeAttr(\"stroke\");break;case I:this.transformChange(e.value);break;default:var t=this.attributeMap[e.field];t&&this.attr(t,e.value)}R.fn.optionsChange.call(this,e)},attributeMap:{\"fill.opacity\":\"fill-opacity\",\"stroke.color\":\"stroke\",\"stroke.width\":\"stroke-width\",\"stroke.opacity\":\"stroke-opacity\"},content:function(){this.element&&(this.element.textContent=this.srcElement.content())},renderData:function(){return this.printPath(this.srcElement)},printPath:function(e){var t,n,i,r,o,a=e.segments,s=a.length;if(s>0){for(t=[],o=1;s>o;o++)i=this.segmentType(a[o-1],a[o]),i!==r&&(r=i,t.push(i)),t.push(\"L\"===i?this.printPoints(a[o].anchor()):this.printPoints(a[o-1].controlOut(),a[o].controlIn(),a[o].anchor()));return n=\"M\"+this.printPoints(a[0].anchor())+A+t.join(A),e.options.closed&&(n+=\"Z\"),n}},printPoints:function(){var e,t=arguments,n=t.length,i=[];for(e=0;n>e;e++)i.push(t[e].toString(3));return i.join(A)},segmentType:function(e,t){return e.controlOut()&&t.controlIn()?\"C\":\"L\"},mapStroke:function(e){var t=[];return e&&!v(e.color)?(t.push([\"stroke\",e.color]),t.push([\"stroke-width\",e.width]),t.push([\"stroke-linecap\",this.renderLinecap(e)]),t.push([\"stroke-linejoin\",e.lineJoin]),g(e.opacity)&&t.push([\"stroke-opacity\",e.opacity]),g(e.dashType)&&t.push([\"stroke-dasharray\",this.renderDashType(e)])):t.push([\"stroke\",S]),t},renderStroke:function(){return b(this.mapStroke(this.srcElement.options.stroke))},renderDashType:function(e){var t,n,i,r=e.width||1,o=e.dashType;if(o&&o!=D){for(t=x[o.toLowerCase()],n=[],i=0;t.length>i;i++)n.push(t[i]*r);return n.join(\" \")}},renderLinecap:function(e){var t=e.dashType,n=e.lineCap;return t&&t!=D?k:n},mapFill:function(e){var t=[];return e&&e.nodeType==C||(e&&!v(e.color)?(t.push([\"fill\",e.color]),g(e.opacity)&&t.push([\"fill-opacity\",e.opacity])):t.push([\"fill\",S])),t},renderFill:function(){return b(this.mapFill(this.srcElement.options.fill))},template:w(\"\")}),N=H.extend({renderData:function(){return this.printPath(this.srcElement.toPath())}}),O=H.extend({renderData:function(){var e,t,n=this.srcElement.paths;if(n.length>0){for(e=[],t=0;n.length>t;t++)e.push(this.printPath(n[t]));return e.join(\" \")}}}),V=H.extend({geometryChange:function(){var e=this.center();this.attr(\"cx\",e.x),this.attr(\"cy\",e.y),this.attr(\"r\",this.radius()),this.invalidate()},center:function(){return this.srcElement.geometry().center},radius:function(){return this.srcElement.geometry().radius},template:w(\"\")}),U=H.extend({geometryChange:function(){var e=this.pos();this.attr(\"x\",e.x),this.attr(\"y\",e.y),this.invalidate()},optionsChange:function(e){\"font\"===e.field?(this.attr(\"style\",m.renderStyle(this.mapStyle())),this.geometryChange()):\"content\"===e.field&&H.fn.content.call(this,this.srcElement.content()),H.fn.optionsChange.call(this,e)},mapStyle:function(e){var t=H.fn.mapStyle.call(this,e),n=this.srcElement.options.font;return e&&(n=d.htmlEncode(n)),t.push([\"font\",n]),t},pos:function(){var e=this.srcElement.position(),t=this.srcElement.measure();return e.clone().setY(e.y+t.baseline)},renderContent:function(){var e=this.srcElement.content();return e=s(e),e=d.htmlEncode(e)},template:w(\"#= d.renderContent() #\")}),W=H.extend({geometryChange:function(){this.allAttr(this.mapPosition()),this.invalidate()},optionsChange:function(e){\"src\"===e.field&&this.allAttr(this.mapSource()),H.fn.optionsChange.call(this,e)},mapPosition:function(){var e=this.srcElement.rect(),t=e.topLeft();return[[\"x\",t.x],[\"y\",t.y],[\"width\",e.width()+\"px\"],[\"height\",e.height()+\"px\"]]},renderPosition:function(){return b(this.mapPosition())},mapSource:function(e){var t=this.srcElement.src();return e&&(t=d.htmlEncode(t)),[[\"xlink:href\",t]]},renderSource:function(){return b(this.mapSource(!0))},template:w(\"\")}),j=R.extend({template:w(\"\"),renderOffset:function(){return _(\"offset\",this.srcElement.offset())},mapStyle:function(){var e=this.srcElement;return[[\"stop-color\",e.color()],[\"stop-opacity\",e.opacity()]]},optionsChange:function(e){\"offset\"==e.field?this.attr(e.field,e.value):(\"color\"==e.field||\"opacity\"==e.field)&&this.css(\"stop-\"+e.field,e.value)}}),q=R.extend({init:function(e){R.fn.init.call(this,e),this.id=e.id,this.loadStops()},loadStops:function(){var e,t,n=this.srcElement,i=n.stops,r=this.element;for(t=0;i.length>t;t++)e=new j(i[t]),this.append(e),r&&e.attachTo(r)},optionsChange:function(e){\"gradient.stops\"==e.field?(p.fn.clear.call(this),this.loadStops()):e.field==C&&this.allAttr(this.mapCoordinates())},renderCoordinates:function(){return b(this.mapCoordinates())},mapSpace:function(){return[\"gradientUnits\",this.srcElement.userSpace()?\"userSpaceOnUse\":\"objectBoundingBox\"]}}),G=q.extend({template:w(\"#= d.renderChildren()#\"),mapCoordinates:function(){var e=this.srcElement,t=e.start(),n=e.end(),i=[[\"x1\",t.x],[\"y1\",t.y],[\"x2\",n.x],[\"y2\",n.y],this.mapSpace()];return i}}),$=q.extend({template:w(\"#= d.renderChildren()#\"),mapCoordinates:function(){var e=this.srcElement,t=e.center(),n=e.radius(),i=[[\"cx\",t.x],[\"cy\",t.y],[\"r\",n],this.mapSpace()];return i}}),Y=H.extend({geometryChange:function(){var e=this.srcElement.geometry();this.attr(\"x\",e.origin.x),this.attr(\"y\",e.origin.y),this.attr(\"width\",e.size.width),this.attr(\"height\",e.size.height),this.invalidate()},size:function(){return this.srcElement.geometry().size},origin:function(){return this.srcElement.geometry().origin},template:w(\"\")}),K={Group:L,Text:U,Path:H,MultiPath:O,Circle:V,Arc:N,Image:W,Rect:Y},Q=function(e,t){e.innerHTML=t};!function(){var e=\"\",t=c.createElement(\"div\"),n=typeof DOMParser!=F;t.innerHTML=e,n&&t.firstChild.namespaceURI!=E&&(Q=function(e,t){var n=new DOMParser,i=n.parseFromString(t,\"text/xml\"),r=c.adoptNode(i.documentElement);e.innerHTML=\"\",e.appendChild(r)})}(),s._element=document.createElement(\"span\"),l={clip:\"clip-path\",fill:\"fill\"},d.support.svg=function(){return c.implementation.hasFeature(\"http://www.w3.org/TR/SVG11/feature#BasicStructure\",\"1.1\")}(),d.support.svg&&f.SurfaceFactory.current.register(\"svg\",M,10),u(f,{exportSVG:o,svg:{ArcNode:N,CircleNode:V,ClipNode:B,DefinitionNode:z,GradientStopNode:j,GroupNode:L,ImageNode:W,LinearGradientNode:G,MultiPathNode:O,Node:R,PathNode:H,RadialGradientNode:$,RectNode:Y,RootNode:P,Surface:M,TextNode:U,_exportGroup:r}})}(window.kendo.jQuery)},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"drawing/canvas.min\",[\"drawing/shapes.min\",\"kendo.color.min\"],e)}(function(){!function(e){function t(t,n){var i,r,o,a,s,l,c={width:\"800px\",height:\"600px\",cors:\"Anonymous\"},d=t.clippedBBox();return d&&(i=d.getOrigin(),r=new y.Group,r.transform(w.transform().translate(-i.x,-i.y)),r.children.push(t),t=r,o=d.getSize(),c.width=o.width+\"px\",c.height=o.height+\"px\"),n=p(c,n),a=e(\"
    \").css({display:\"none\",width:n.width,height:n.height}).appendTo(document.body),s=new D(a,n),s.draw(t),l=s.image(),l.always(function(){s.destroy(),a.remove()}),l}function n(e,t){var n,i,r;for(r=0;t.length>r;r++)i=t[r],n=f.parseColor(i.color()),n.a*=i.opacity(),e.addColorStop(i.offset(),n.toCssRgba())}var i,r,o,a,s,l,c,d,u,h=document,f=window.kendo,p=f.deepExtend,m=f.util,g=m.defined,v=m.isTransparent,_=m.renderTemplate,b=m.valueOrDefault,w=f.geometry,y=f.drawing,k=y.BaseNode,x=\"butt\",C=y.DASH_ARRAYS,S=1e3/60,T=\"solid\",D=y.Surface.extend({init:function(t,n){y.Surface.fn.init.call(this,t,n),this.element[0].innerHTML=this._template(this);var r=this.element[0].firstElementChild;r.width=e(t).width(),r.height=e(t).height(),this._rootElement=r,this._root=new i(r)},destroy:function(){y.Surface.fn.destroy.call(this),\r\nthis._root&&(this._root.destroy(),this._root=null)},type:\"canvas\",draw:function(e){y.Surface.fn.draw.call(this,e),this._root.load([e],void 0,this.options.cors)},clear:function(){y.Surface.fn.clear.call(this),this._root.clear()},image:function(){var t,n=this._root,i=this._rootElement,r=[];return n.traverse(function(e){e.loading&&r.push(e.loading)}),t=e.Deferred(),e.when.apply(e,r).done(function(){n._invalidate();try{var e=i.toDataURL();t.resolve(e)}catch(r){t.reject(r)}}).fail(function(e){t.reject(e)}),t.promise()},_resize:function(){this._rootElement.width=this._size.width,this._rootElement.height=this._size.height,this._root.invalidate()},_template:_(\"\")}),A=k.extend({init:function(e){k.fn.init.call(this,e),e&&this.initClip()},initClip:function(){var e=this.srcElement.clip();e&&(this.clip=e,e.addObserver(this))},clear:function(){this.srcElement&&this.srcElement.removeObserver(this),this.clearClip(),k.fn.clear.call(this)},clearClip:function(){this.clip&&(this.clip.removeObserver(this),delete this.clip)},setClip:function(e){this.clip&&(e.beginPath(),r.fn.renderPoints(e,this.clip),e.clip())},optionsChange:function(e){\"clip\"==e.field&&(this.clearClip(),this.initClip()),k.fn.optionsChange.call(this,e)},setTransform:function(e){if(this.srcElement){var t=this.srcElement.transform();t&&e.transform.apply(e,t.matrix().toArray(6))}},loadElements:function(e,t,n){var i,r,o,a,s=this;for(a=0;e.length>a;a++)r=e[a],o=r.children,i=new u[r.nodeType](r,n),o&&o.length>0&&i.load(o,t,n),g(t)?s.insertAt(i,t):s.append(i)},load:function(e,t,n){this.loadElements(e,t,n),this.invalidate()},setOpacity:function(e){if(this.srcElement){var t=this.srcElement.opacity();g(t)&&this.globalAlpha(e,t)}},globalAlpha:function(e,t){t&&e.globalAlpha&&(t*=e.globalAlpha),e.globalAlpha=t},visible:function(){var e=this.srcElement;return!e||e&&e.options.visible!==!1}}),E=A.extend({renderTo:function(e){var t,n,i;if(this.visible()){for(e.save(),this.setTransform(e),this.setClip(e),this.setOpacity(e),t=this.childNodes,n=0;t.length>n;n++)i=t[n],i.visible()&&i.renderTo(e);e.restore()}}});y.mixins.Traversable.extend(E.fn,\"childNodes\"),i=E.extend({init:function(t){E.fn.init.call(this),this.canvas=t,this.ctx=t.getContext(\"2d\");var n=e.proxy(this._invalidate,this);this.invalidate=f.throttle(function(){f.animationFrame(n)},S)},destroy:function(){E.fn.destroy.call(this),this.canvas=null,this.ctx=null},load:function(e,t,n){this.loadElements(e,t,n),this._invalidate()},_invalidate:function(){this.ctx&&(this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height),this.renderTo(this.ctx))}}),y.mixins.Traversable.extend(i.fn,\"childNodes\"),r=A.extend({renderTo:function(e){e.save(),this.setTransform(e),this.setClip(e),this.setOpacity(e),e.beginPath(),this.renderPoints(e,this.srcElement),this.setLineDash(e),this.setLineCap(e),this.setLineJoin(e),this.setFill(e),this.setStroke(e),e.restore()},setFill:function(e){var t=this.srcElement.options.fill,n=!1;return t&&(\"gradient\"==t.nodeType?(this.setGradientFill(e,t),n=!0):v(t.color)||(e.fillStyle=t.color,e.save(),this.globalAlpha(e,t.opacity),e.fill(),e.restore(),n=!0)),n},setGradientFill:function(e,t){var i,r,o,a,s=this.srcElement.rawBBox();t instanceof y.LinearGradient?(r=t.start(),o=t.end(),i=e.createLinearGradient(r.x,r.y,o.x,o.y)):t instanceof y.RadialGradient&&(a=t.center(),i=e.createRadialGradient(a.x,a.y,0,a.x,a.y,t.radius())),n(i,t.stops),e.save(),t.userSpace()||e.transform(s.width(),0,0,s.height(),s.origin.x,s.origin.y),e.fillStyle=i,e.fill(),e.restore()},setStroke:function(e){var t=this.srcElement.options.stroke;return t&&!v(t.color)&&t.width>0?(e.strokeStyle=t.color,e.lineWidth=b(t.width,1),e.save(),this.globalAlpha(e,t.opacity),e.stroke(),e.restore(),!0):void 0},dashType:function(){var e=this.srcElement.options.stroke;return e&&e.dashType?e.dashType.toLowerCase():void 0},setLineDash:function(e){var t,n=this.dashType();n&&n!=T&&(t=C[n],e.setLineDash?e.setLineDash(t):(e.mozDash=t,e.webkitLineDash=t))},setLineCap:function(e){var t=this.dashType(),n=this.srcElement.options.stroke;t&&t!==T?e.lineCap=x:n&&n.lineCap&&(e.lineCap=n.lineCap)},setLineJoin:function(e){var t=this.srcElement.options.stroke;t&&t.lineJoin&&(e.lineJoin=t.lineJoin)},renderPoints:function(e,t){var n,i,r,o,a,s,l=t.segments;if(0!==l.length){for(n=l[0],i=n.anchor(),e.moveTo(i.x,i.y),r=1;l.length>r;r++)n=l[r],i=n.anchor(),o=l[r-1],a=o.controlOut(),s=n.controlIn(),a&&s?e.bezierCurveTo(a.x,a.y,s.x,s.y,i.x,i.y):e.lineTo(i.x,i.y);t.options.closed&&e.closePath()}}}),o=r.extend({renderPoints:function(e){var t,n=this.srcElement.paths;for(t=0;n.length>t;t++)r.fn.renderPoints(e,n[t])}}),a=r.extend({renderPoints:function(e){var t=this.srcElement.geometry(),n=t.center,i=t.radius;e.arc(n.x,n.y,i,0,2*Math.PI)}}),s=r.extend({renderPoints:function(e){var t=this.srcElement.toPath();r.fn.renderPoints.call(this,e,t)}}),l=r.extend({renderTo:function(e){var t=this.srcElement,n=t.position(),i=t.measure();e.save(),this.setTransform(e),this.setClip(e),this.setOpacity(e),e.beginPath(),e.font=t.options.font,this.setFill(e)&&e.fillText(t.content(),n.x,n.y+i.baseline),this.setStroke(e)&&(this.setLineDash(e),e.strokeText(t.content(),n.x,n.y+i.baseline)),e.restore()}}),c=r.extend({init:function(t,n){r.fn.init.call(this,t),this.onLoad=e.proxy(this.onLoad,this),this.onError=e.proxy(this.onError,this),this.loading=e.Deferred();var i=this.img=new Image;n&&!/^data:/i.test(t.src())&&(i.crossOrigin=n),i.src=t.src(),i.complete?this.onLoad():(i.onload=this.onLoad,i.onerror=this.onError)},renderTo:function(e){\"resolved\"===this.loading.state()&&(e.save(),this.setTransform(e),this.setClip(e),this.drawImage(e),e.restore())},optionsChange:function(t){\"src\"===t.field?(this.loading=e.Deferred(),this.img.src=this.srcElement.src()):r.fn.optionsChange.call(this,t)},onLoad:function(){this.loading.resolve(),this.invalidate()},onError:function(){this.loading.reject(Error(\"Unable to load image '\"+this.img.src+\"'. Check for connectivity and verify CORS headers.\"))},drawImage:function(e){var t=this.srcElement.rect(),n=t.topLeft();e.drawImage(this.img,n.x,n.y,t.width(),t.height())}}),d=r.extend({renderPoints:function(e){var t=this.srcElement.geometry(),n=t.origin,i=t.size;e.rect(n.x,n.y,i.width,i.height)}}),u={Group:E,Text:l,Path:r,MultiPath:o,Circle:a,Arc:s,Image:c,Rect:d},f.support.canvas=function(){return!!h.createElement(\"canvas\").getContext}(),f.support.canvas&&y.SurfaceFactory.current.register(\"canvas\",D,20),p(f.drawing,{exportImage:t,canvas:{ArcNode:s,CircleNode:a,GroupNode:E,ImageNode:c,MultiPathNode:o,Node:A,PathNode:r,RectNode:d,RootNode:i,Surface:D,TextNode:l}})}(window.kendo.jQuery)},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"drawing/vml.min\",[\"drawing/shapes.min\",\"kendo.color.min\"],e)}(function(){!function(e){function t(){if(u.namespaces&&!u.namespaces.kvml){u.namespaces.add(\"kvml\",\"urn:schemas-microsoft-com:vml\");var e=u.styleSheets.length>30?u.styleSheets[0]:u.createStyleSheet();e.addRule(\".kvml\",\"behavior:url(#default#VML)\")}}function n(e){var t=u.createElement(\"kvml:\"+e);return t.className=\"kvml\",t}function i(e){var t,n=e.length,i=[];for(t=0;n>t;t++)i.push(e[t].scaleCopy(M).toString(0,\",\"));return i.join(\" \")}function r(e,t){var n,r,a,s,l,c=e.segments,d=c.length;if(d>0){for(n=[],l=1;d>l;l++)a=o(c[l-1],c[l]),a!==s&&(s=a,n.push(a)),n.push(\"l\"===a?i([c[l].anchor()]):i([c[l-1].controlOut(),c[l].controlIn(),c[l].anchor()]));return r=\"m \"+i([c[0].anchor()])+\" \"+n.join(\" \"),e.options.closed&&(r+=\" x\"),t!==!0&&(r+=\" e\"),r}}function o(e,t){return e.controlOut()&&t.controlIn()?\"c\":\"l\"}function a(e){return 0===e.indexOf(\"fill\")||0===e.indexOf(P)}function s(e,t,n){var i,r=n*E(t.opacity(),1);return i=e?l(e,t.color(),r):l(t.color(),\"#fff\",1-r)}function l(e,t,n){var i=new x(e),r=new x(t),o=c(i.r,r.r,n),a=c(i.g,r.g,n),s=c(i.b,r.b,n);return new x(o,a,s).toHex()}function c(e,t,n){return h.round(n*t+(1-n)*e)}var d,u=document,h=Math,f=h.atan2,p=h.ceil,m=h.sqrt,g=window.kendo,v=g.deepExtend,_=e.noop,b=g.drawing,w=b.BaseNode,y=g.geometry,k=y.toMatrix,x=g.Color,C=g.util,S=C.isTransparent,T=C.defined,D=C.deg,A=C.round,E=C.valueOrDefault,I=\"none\",F=\".kendo\",M=100,R=M*M,P=\"gradient\",z=4,B=b.Surface.extend({init:function(e,n){b.Surface.fn.init.call(this,e,n),t(),this.element.empty(),this._root=new H,this._root.attachTo(this.element[0]),this.element.on(\"click\"+F,this._click),this.element.on(\"mouseover\"+F,this._mouseenter),this.element.on(\"mouseout\"+F,this._mouseleave)},type:\"vml\",destroy:function(){this._root&&(this._root.destroy(),this._root=null,this.element.off(F)),b.Surface.fn.destroy.call(this)},draw:function(e){b.Surface.fn.draw.call(this,e),this._root.load([e],void 0,null)},clear:function(){b.Surface.fn.clear.call(this),this._root.clear()}}),L=w.extend({init:function(e){w.fn.init.call(this,e),this.createElement(),this.attachReference()},observe:_,destroy:function(){this.element&&(this.element._kendoNode=null,this.element=null),w.fn.destroy.call(this)},clear:function(){var e,t;for(this.element&&(this.element.innerHTML=\"\"),e=this.childNodes,t=0;e.length>t;t++)e[t].destroy();this.childNodes=[]},removeSelf:function(){this.element&&(this.element.parentNode.removeChild(this.element),this.element=null),w.fn.removeSelf.call(this)},createElement:function(){this.element=u.createElement(\"div\")},attachReference:function(){this.element._kendoNode=this},load:function(e,t,n,i){var r,o,a,s,l,c;for(i=E(i,1),this.srcElement&&(i*=E(this.srcElement.options.opacity,1)),r=0;e.length>r;r++)o=e[r],a=o.children,s=o.currentTransform(n),l=i*E(o.options.opacity,1),c=new le[o.nodeType](o,s,l),a&&a.length>0&&c.load(a,t,s,i),T(t)?this.insertAt(c,t):this.append(c),c.attachTo(this.element,t)},attachTo:function(e,t){T(t)?e.insertBefore(this.element,e.children[t]||null):e.appendChild(this.element)},optionsChange:function(e){\"visible\"==e.field&&this.css(\"display\",e.value!==!1?\"\":I)},setStyle:function(){this.allCss(this.mapStyle())},mapStyle:function(){var e=[];return this.srcElement&&this.srcElement.options.visible===!1&&e.push([\"display\",I]),e},mapOpacityTo:function(e,t){var n=E(this.opacity,1);n*=E(t,1),e.push([\"opacity\",n])},attr:function(e,t){this.element&&(this.element[e]=t)},allAttr:function(e){for(var t=0;e.length>t;t++)this.attr(e[t][0],e[t][1])},css:function(e,t){this.element&&(this.element.style[e]=t)},allCss:function(e){for(var t=0;e.length>t;t++)this.css(e[t][0],e[t][1])}}),H=L.extend({createElement:function(){L.fn.createElement.call(this),this.allCss([[\"width\",\"100%\"],[\"height\",\"100%\"],[\"position\",\"relative\"],[\"visibility\",\"visible\"]])},attachReference:_}),N=g.Class.extend({init:function(e,t){this.srcElement=e,this.observer=t,e.addObserver(this)},geometryChange:function(){this.observer.optionsChange({field:\"clip\",value:this.srcElement})},clear:function(){this.srcElement.removeObserver(this)}}),O=L.extend({init:function(e){L.fn.init.call(this,e),e&&this.initClip()},observe:function(){w.fn.observe.call(this)},mapStyle:function(){var e=L.fn.mapStyle.call(this);return this.srcElement&&this.srcElement.clip()&&e.push([\"clip\",this.clipRect()]),e},optionsChange:function(e){\"clip\"==e.field&&(this.clearClip(),this.initClip(),this.setClip()),L.fn.optionsChange.call(this,e)},clear:function(){this.clearClip(),L.fn.clear.call(this)},initClip:function(){this.srcElement.clip()&&(this.clip=new N(this.srcElement.clip(),this),this.clip.observer=this)},clearClip:function(){this.clip&&(this.clip.clear(),this.clip=null,this.css(\"clip\",this.clipRect()))},setClip:function(){this.clip&&this.css(\"clip\",this.clipRect())},clipRect:function(){var e,t,n,i=d,r=this.srcElement.clip();return r&&(e=this.clipBBox(r),t=e.topLeft(),n=e.bottomRight(),i=g.format(\"rect({0}px {1}px {2}px {3}px)\",t.y,n.x,n.y,t.x)),i},clipBBox:function(e){var t=this.srcElement.rawBBox().topLeft(),n=e.rawBBox();return n.origin.translate(-t.x,-t.y),n}}),V=O.extend({createElement:function(){L.fn.createElement.call(this),this.setStyle()},attachTo:function(e,t){this.css(\"display\",I),L.fn.attachTo.call(this,e,t),this.srcElement.options.visible!==!1&&this.css(\"display\",\"\")},_attachTo:function(e){var t=document.createDocumentFragment();t.appendChild(this.element),e.appendChild(t)},mapStyle:function(){var e=O.fn.mapStyle.call(this);return e.push([\"position\",\"absolute\"]),e.push([\"white-space\",\"nowrap\"]),e},optionsChange:function(e){\"transform\"===e.field&&this.refreshTransform(),\"opacity\"===e.field&&this.refreshOpacity(),O.fn.optionsChange.call(this,e)},refreshTransform:function(e){var t,n=this.srcElement.currentTransform(e),i=this.childNodes,r=i.length;for(this.setClip(),t=0;r>t;t++)i[t].refreshTransform(n)},currentOpacity:function(){var e=E(this.srcElement.options.opacity,1);return this.parent&&this.parent.currentOpacity&&(e*=this.parent.currentOpacity()),e},refreshOpacity:function(){var e,t=this.childNodes,n=t.length,i=this.currentOpacity();for(e=0;n>e;e++)t[e].refreshOpacity(i)},initClip:function(){if(O.fn.initClip.call(this),this.clip){var e=this.clip.srcElement.bbox(this.srcElement.currentTransform());e&&(this.css(\"width\",e.width()+e.origin.x),this.css(\"height\",e.height()+e.origin.y))}},clipBBox:function(e){return e.bbox(this.srcElement.currentTransform())},clearClip:function(){O.fn.clearClip.call(this)}}),U=L.extend({init:function(e,t){this.opacity=t,L.fn.init.call(this,e)},createElement:function(){this.element=n(\"stroke\"),this.setOpacity()},optionsChange:function(e){0===e.field.indexOf(\"stroke\")&&this.setStroke()},refreshOpacity:function(e){this.opacity=e,this.setStroke()},setStroke:function(){this.allAttr(this.mapStroke())},setOpacity:function(){this.setStroke()},mapStroke:function(){var e,t=this.srcElement.options.stroke,n=[];return t&&!S(t.color)&&0!==t.width?(n.push([\"on\",\"true\"]),n.push([\"color\",t.color]),n.push([\"weight\",(t.width||1)+\"px\"]),this.mapOpacityTo(n,t.opacity),T(t.dashType)&&n.push([\"dashstyle\",t.dashType]),T(t.lineJoin)&&n.push([\"joinstyle\",t.lineJoin]),T(t.lineCap)&&(e=t.lineCap.toLowerCase(),\"butt\"===e&&(e=\"butt\"===e?\"flat\":e),n.push([\"endcap\",e]))):n.push([\"on\",\"false\"]),n}}),W=L.extend({init:function(e,t,n){this.opacity=n,L.fn.init.call(this,e)},createElement:function(){this.element=n(\"fill\"),this.setFill()},optionsChange:function(e){a(e.field)&&this.setFill()},refreshOpacity:function(e){this.opacity=e,this.setOpacity()},setFill:function(){this.allAttr(this.mapFill())},setOpacity:function(){this.setFill()},attr:function(e,t){var n,i=this.element;if(i){for(n=e.split(\".\");n.length>1;)i=i[n.shift()];i[n[0]]=t}},mapFill:function(){var e=this.srcElement.fill(),t=[[\"on\",\"false\"]];return e&&(e.nodeType==P?t=this.mapGradient(e):S(e.color)||(t=this.mapFillColor(e))),t},mapFillColor:function(e){var t=[[\"on\",\"true\"],[\"color\",e.color]];return this.mapOpacityTo(t,e.opacity),t},mapGradient:function(e){var t,n=this.srcElement.options,i=n.fallbackFill||e.fallbackFill&&e.fallbackFill();return t=e instanceof b.LinearGradient?this.mapLinearGradient(e):e instanceof b.RadialGradient&&e.supportVML?this.mapRadialGradient(e):i?this.mapFillColor(i):[[\"on\",\"false\"]]},mapLinearGradient:function(e){var t=e.start(),n=e.end(),i=C.deg(f(n.y-t.y,n.x-t.x)),r=[[\"on\",\"true\"],[\"type\",P],[\"focus\",0],[\"method\",\"none\"],[\"angle\",270-i]];return this.addColors(r),r},mapRadialGradient:function(e){var t=this.srcElement.rawBBox(),n=e.center(),i=(n.x-t.origin.x)/t.width(),r=(n.y-t.origin.y)/t.height(),o=[[\"on\",\"true\"],[\"type\",\"gradienttitle\"],[\"focus\",\"100%\"],[\"focusposition\",i+\" \"+r],[\"method\",\"none\"]];return this.addColors(o),o},addColors:function(e){var t,n,i=this.srcElement.options,r=E(this.opacity,1),o=[],a=i.fill.stops,l=i.baseColor,c=this.element.colors?\"colors.value\":\"colors\",d=s(l,a[0],r),u=s(l,a[a.length-1],r);for(n=0;a.length>n;n++)t=a[n],o.push(h.round(100*t.offset())+\"% \"+s(l,t,r));e.push([c,o.join(\",\")],[\"color\",d],[\"color2\",u])}}),j=L.extend({init:function(e,t){this.transform=t,L.fn.init.call(this,e)},createElement:function(){this.element=n(\"skew\"),this.setTransform()},optionsChange:function(e){\"transform\"===e.field&&this.refresh(this.srcElement.currentTransform())},refresh:function(e){this.transform=e,this.setTransform()},transformOrigin:function(){return\"-0.5,-0.5\"},setTransform:function(){this.allAttr(this.mapTransform())},mapTransform:function(){var e=this.transform,t=[],n=k(e);return n?(n.round(z),t.push([\"on\",\"true\"],[\"matrix\",[n.a,n.c,n.b,n.d,0,0].join(\",\")],[\"offset\",n.e+\"px,\"+n.f+\"px\"],[\"origin\",this.transformOrigin()])):t.push([\"on\",\"false\"]),t}}),q=O.extend({init:function(e,t,n){this.fill=this.createFillNode(e,t,n),this.stroke=new U(e,n),this.transform=this.createTransformNode(e,t),O.fn.init.call(this,e)},attachTo:function(e,t){this.fill.attachTo(this.element),this.stroke.attachTo(this.element),this.transform.attachTo(this.element),L.fn.attachTo.call(this,e,t)},createFillNode:function(e,t,n){return new W(e,t,n)},createTransformNode:function(e,t){return new j(e,t)},createElement:function(){this.element=n(\"shape\"),this.setCoordsize(),this.setStyle()},optionsChange:function(e){a(e.field)?this.fill.optionsChange(e):0===e.field.indexOf(\"stroke\")?this.stroke.optionsChange(e):\"transform\"===e.field?this.transform.optionsChange(e):\"opacity\"===e.field&&(this.fill.setOpacity(),this.stroke.setOpacity()),O.fn.optionsChange.call(this,e)},refreshTransform:function(e){this.transform.refresh(this.srcElement.currentTransform(e))},refreshOpacity:function(e){e*=E(this.srcElement.options.opacity,1),this.fill.refreshOpacity(e),this.stroke.refreshOpacity(e)},mapStyle:function(e,t){var n,i=O.fn.mapStyle.call(this);return e&&t||(e=t=M),i.push([\"position\",\"absolute\"],[\"width\",e+\"px\"],[\"height\",t+\"px\"]),n=this.srcElement.options.cursor,n&&i.push([\"cursor\",n]),i},setCoordsize:function(){this.allAttr([[\"coordorigin\",\"0 0\"],[\"coordsize\",R+\" \"+R]])}}),G=L.extend({createElement:function(){this.element=n(\"path\"),this.setPathData()},geometryChange:function(){this.setPathData()},setPathData:function(){this.attr(\"v\",this.renderData())},renderData:function(){return r(this.srcElement)}}),$=q.extend({init:function(e,t,n){this.pathData=this.createDataNode(e),q.fn.init.call(this,e,t,n)},attachTo:function(e,t){this.pathData.attachTo(this.element),q.fn.attachTo.call(this,e,t)},createDataNode:function(e){return new G(e)},geometryChange:function(){this.pathData.geometryChange(),q.fn.geometryChange.call(this)}}),Y=G.extend({renderData:function(){var e,t,n,i=this.srcElement.paths;if(i.length>0){for(e=[],t=0;i.length>t;t++)n=i.length-1>t,e.push(r(i[t],n));return e.join(\" \")}}}),K=$.extend({createDataNode:function(e){return new Y(e)}}),Q=j.extend({transformOrigin:function(){var e=this.srcElement.geometry().bbox(),t=e.center(),n=-p(t.x)/p(e.width()),i=-p(t.y)/p(e.height());return n+\",\"+i}}),X=q.extend({createElement:function(){this.element=n(\"oval\"),this.setStyle()},createTransformNode:function(e,t){return new Q(e,t)},geometryChange:function(){q.fn.geometryChange.call(this),this.setStyle(),this.refreshTransform()},mapStyle:function(){var e=this.srcElement.geometry(),t=e.radius,n=e.center,i=p(2*t),r=q.fn.mapStyle.call(this,i,i);return r.push([\"left\",p(n.x-t)+\"px\"],[\"top\",p(n.y-t)+\"px\"]),r}}),J=G.extend({renderData:function(){return r(this.srcElement.toPath())}}),Z=$.extend({createDataNode:function(e){return new J(e)}}),ee=G.extend({createElement:function(){G.fn.createElement.call(this),this.attr(\"textpathok\",!0)},renderData:function(){var e=this.srcElement.rect(),t=e.center();return\"m \"+i([new y.Point(e.topLeft().x,t.y)])+\" l \"+i([new y.Point(e.bottomRight().x,t.y)])}}),te=L.extend({createElement:function(){this.element=n(\"textpath\"),this.attr(\"on\",!0),this.attr(\"fitpath\",!1),this.setStyle(),this.setString()},optionsChange:function(e){\"content\"===e.field?this.setString():this.setStyle(),L.fn.optionsChange.call(this,e)},mapStyle:function(){return[[\"font\",this.srcElement.options.font]]},setString:function(){this.attr(\"string\",this.srcElement.content())}}),ne=$.extend({init:function(e,t,n){this.path=new te(e),$.fn.init.call(this,e,t,n)},createDataNode:function(e){return new ee(e)},attachTo:function(e,t){this.path.attachTo(this.element),$.fn.attachTo.call(this,e,t)},optionsChange:function(e){(\"font\"===e.field||\"content\"===e.field)&&(this.path.optionsChange(e),this.pathData.geometryChange(e)),$.fn.optionsChange.call(this,e)}}),ie=G.extend({renderData:function(){var e=this.srcElement.rect(),t=(new b.Path).moveTo(e.topLeft()).lineTo(e.topRight()).lineTo(e.bottomRight()).lineTo(e.bottomLeft()).close();return r(t)}}),re=j.extend({init:function(e,t,n){this.opacity=n,j.fn.init.call(this,e,t)},createElement:function(){this.element=n(\"fill\"),this.attr(\"type\",\"frame\"),this.attr(\"rotate\",!0),this.setOpacity(),this.setSrc(),this.setTransform()},optionsChange:function(e){\"src\"===e.field&&this.setSrc(),j.fn.optionsChange.call(this,e)},geometryChange:function(){this.refresh()},refreshOpacity:function(e){this.opacity=e,this.setOpacity()},setOpacity:function(){var e=[];this.mapOpacityTo(e,this.srcElement.options.opacity),this.allAttr(e)},setSrc:function(){this.attr(\"src\",this.srcElement.src())},mapTransform:function(){var e,t,n,i,r,o,a,s,l=this.srcElement,c=l.rawBBox(),d=c.center(),u=M/2,h=M,p=c.width()/h,g=c.height()/h,v=0,_=this.transform;return _?(n=k(_),i=m(n.a*n.a+n.b*n.b),r=m(n.c*n.c+n.d*n.d),p*=i,g*=r,o=D(f(n.b,n.d)),a=D(f(-n.c,n.a)),v=(o+a)/2,0!==v?(s=l.bbox().center(),e=(s.x-u)/h,t=(s.y-u)/h):(e=(d.x*i+n.e-u)/h,t=(d.y*r+n.f-u)/h)):(e=(d.x-u)/h,t=(d.y-u)/h),p=A(p,z),g=A(g,z),e=A(e,z),t=A(t,z),v=A(v,z),[[\"size\",p+\",\"+g],[\"position\",e+\",\"+t],[\"angle\",v]]}}),oe=$.extend({createFillNode:function(e,t,n){return new re(e,t,n)},createDataNode:function(e){return new ie(e)},optionsChange:function(e){(\"src\"===e.field||\"transform\"===e.field)&&this.fill.optionsChange(e),$.fn.optionsChange.call(this,e)},geometryChange:function(){this.fill.geometryChange(),$.fn.geometryChange.call(this)},refreshTransform:function(e){$.fn.refreshTransform.call(this,e),this.fill.refresh(this.srcElement.currentTransform(e))}}),ae=G.extend({renderData:function(){var e=this.srcElement.geometry(),t=[\"m\",i([e.topLeft()]),\"l\",i([e.topRight(),e.bottomRight(),e.bottomLeft()]),\"x e\"];return t.join(\" \")}}),se=$.extend({createDataNode:function(e){return new ae(e)}}),le={Group:V,Text:ne,Path:$,MultiPath:K,Circle:X,Arc:Z,Image:oe,Rect:se};g.support.vml=function(){var e=g.support.browser;return e.msie&&9>e.version}(),d=\"inherit\",g.support.browser.msie&&8>g.support.browser.version&&(d=\"rect(auto auto auto auto)\"),g.support.vml&&b.SurfaceFactory.current.register(\"vml\",B,30),v(b,{vml:{ArcDataNode:J,ArcNode:Z,CircleTransformNode:Q,CircleNode:X,FillNode:W,GroupNode:V,ImageNode:oe,ImageFillNode:re,ImagePathDataNode:ie,MultiPathDataNode:Y,MultiPathNode:K,Node:L,PathDataNode:G,PathNode:$,RectDataNode:ae,RectNode:se,RootNode:H,StrokeNode:U,Surface:B,TextNode:ne,TextPathNode:te,TextPathDataNode:ee,TransformNode:j}})}(window.kendo.jQuery)},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"drawing/html.min\",[\"kendo.color.min\",\"drawing/shapes.min\",\"util/main.min\",\"util/text-metrics\"],e)}(function(){!function(e,t,n){\"use strict\";function i(n,i){function o(t){var n=new ae.Group,r=t.getBoundingClientRect();return F(n,[1,0,0,1,-r.left,-r.top]),fe._clipbox=!1,fe._matrix=se.Matrix.unit(),fe._stackingContext={element:t,group:n},fe._avoidLinks=i.avoidLinks===!0?\"a\":i.avoidLinks,e(t).addClass(\"k-pdf-export\"),ee(t,n),e(t).removeClass(\"k-pdf-export\"),n}function a(t){return null!=t?(\"string\"==typeof t&&(t=kendo.template(t.replace(/^\\s+|\\s+$/g,\"\"))),\"function\"==typeof t?function(n){var i=t(n);return i?e(i)[0]:void 0}:function(){return e(t).clone()[0]}):void 0}function s(t){var n,i,r,o,a=t.cloneNode(!1);if(1==t.nodeType){n=e(t),i=e(a),o=n.data();for(r in o)i.data(r,o[r]);if(/^canvas$/i.test(t.tagName))a.getContext(\"2d\").drawImage(t,0,0);else for(r=t.firstChild;r;r=r.nextSibling)a.appendChild(s(r))}return a}function l(n,i,r,o,l,c,d){function u(){function e(){setTimeout(function(){n({pages:x,container:S})},10)}var t,i;(\"-\"!=r||l)&&f(C),t=g(),C.parentNode.insertBefore(t,C),t.appendChild(C),y?(i=x.length,x.forEach(function(t,n){var r=y({element:t,pageNum:n+1,totalPages:x.length});r&&(t.appendChild(r),h(r,function(){0===--i&&e()}))})):e()}function f(n){var i,o,a,s,c=b(n),d=t(w(c,\"padding-bottom\")),u=t(w(c,\"border-bottom-width\")),h=T;for(T+=d+u,i=!0,o=n.firstChild;o;o=o.nextSibling)if(1==o.nodeType){if(i=!1,a=e(o),a.is(r)){m(o);continue}if(!l){f(o);continue}if(!/^(?:static|relative)$/.test(w(b(o),\"position\")))continue;s=v(o),1==s?m(o):s&&(a.data(\"kendoChart\")||/^(?:img|tr|iframe|svg|object|canvas|input|textarea|select|video|h[1-6])/i.test(o.tagName))?m(o):f(o)}else 3==o.nodeType&&l&&(_(o,i),i=!1);T=h}function p(e){var t=e.parentNode,n=t.firstChild;if(e===n)return!0;if(e===t.children[0]){if(7==n.nodeType||8==n.nodeType)return!0;if(3==n.nodeType)return!/\\S/.test(n.data)}return!1}function m(t){var n,i,r;return 1==t.nodeType&&t!==C&&p(t)?m(t.parentNode):(n=e(t).closest(\"table\").find(\"colgroup\"),i=g(),r=k.createRange(),r.setStartBefore(C),r.setEndBefore(t),i.appendChild(r.extractContents()),C.parentNode.insertBefore(i,C),void(n[0]&&n.clone().prependTo(e(t).closest(\"table\"))))}function g(){var t=k.createElement(\"KENDO-PDF-PAGE\");return e(t).css({display:\"block\",boxSizing:\"content-box\",width:o||\"auto\",padding:c.top+\"px \"+c.right+\"px \"+c.bottom+\"px \"+c.left+\"px\",position:\"relative\",height:l||\"auto\",overflow:l||o?\"hidden\":\"visible\",clear:\"both\"}),d&&d.pageClassName&&(t.className=d.pageClassName),x.push(t),t}function v(e){var t,n,i=e.getBoundingClientRect();return 0===i.width||0===i.height?0:(t=C.getBoundingClientRect().top,n=l-T,i.height>n?3:i.top-t>n?1:i.bottom-t>n?2:0)}function _(e,t){var n,i,r,o,a;/\\S/.test(e.data)&&(n=e.data.length,i=k.createRange(),i.selectNodeContents(e),r=v(i),r&&(o=e,1==r?m(t?e.parentNode:e):(!function s(t,n,r){return i.setEnd(e,n),t==n||n==r?n:v(i)?s(t,t+n>>1,n):s(n,n+r>>1,r)}(0,n>>1,n),!/\\S/.test(\"\"+i)&&t?m(e.parentNode):(o=e.splitText(i.endOffset),a=g(),i.setStartBefore(C),a.appendChild(i.extractContents()),C.parentNode.insertBefore(a,C))),_(o)))}var y=a(d.template),k=i.ownerDocument,x=[],C=s(i),S=k.createElement(\"KENDO-PDF-DOCUMENT\"),T=0;e(C).find(\"tfoot\").each(function(){this.parentNode.appendChild(this)}),e(C).find(\"ol\").each(function(){e(this).children().each(function(e){this.setAttribute(\"kendo-split-index\",e)})}),e(S).css({display:\"block\",position:\"absolute\",boxSizing:\"content-box\",left:\"-10000px\",top:\"-10000px\"}),o&&(e(S).css({width:o,paddingLeft:c.left,paddingRight:c.right}),e(C).css({overflow:\"hidden\"})),S.appendChild(C),i.parentNode.insertBefore(S,i),d.beforePageBreak?setTimeout(function(){d.beforePageBreak(S,u)},15):setTimeout(u,15)}i||(i={});var c=e.Deferred();if(n=e(n)[0],!n)return c.reject(\"No element to export\");if(\"function\"!=typeof window.getComputedStyle)throw Error(\"window.getComputedStyle is missing. You are using an unsupported browser, or running in IE8 compatibility mode. Drawing HTML is supported in Chrome, Firefox, Safari and IE9+.\");return kendo.pdf&&kendo.pdf.defineFont(r(n.ownerDocument)),h(n,function(){var e,t=i&&i.forcePageBreak,r=i&&i.paperSize&&\"auto\"!=i.paperSize,a=r&&kendo.pdf.getPaperOptions(function(e,t){return e in i?i[e]:t}),s=r&&a.paperSize[0],d=r&&a.paperSize[1],u=i.margin&&a.margin;t||d?(u||(u={left:0,top:0,right:0,bottom:0}),e=new ae.Group({pdf:{multiPage:!0,paperSize:r?a.paperSize:\"auto\"}}),l(function(t){if(i.progress){var n=!1,r=0;!function a(){t.pages.length>r?(e.append(o(t.pages[r])),i.progress({pageNum:++r,totalPages:t.pages.length,cancel:function(){n=!0}}),n?t.container.parentNode.removeChild(t.container):setTimeout(a)):(t.container.parentNode.removeChild(t.container),c.resolve(e))}()}else t.pages.forEach(function(t){e.append(o(t))}),t.container.parentNode.removeChild(t.container),c.resolve(e)},n,t,s?s-u.left-u.right:null,d?d-u.top-u.bottom:null,u,i)):c.resolve(o(n))}),c.promise()}function r(e){function t(e){if(e){var t=null;try{t=e.cssRules}catch(n){}t&&i(e,t)}}function n(e){var t,n=w(e.style,\"src\");return n?re(n).reduce(function(e,t){var n=oe(t);return n&&e.push(n),e},[]):(t=oe(e.cssText),t?[t]:[])}function i(e,i){var o,a,s,l,c,d,u;for(o=0;i.length>o;++o)switch(a=i[o],a.type){case 3:t(a.styleSheet);break;case 5:s=a.style,l=re(w(s,\"font-family\")),c=/^([56789]00|bold)$/i.test(w(s,\"font-weight\")),d=\"italic\"==w(s,\"font-style\"),u=n(a),u.length>0&&r(e,l,c,d,u[0])}}function r(e,t,n,i,r){/^data:/i.test(r)||/^[^\\/:]+:\\/\\//.test(r)||/^\\//.test(r)||(r=(e.href+\"\").replace(/[^\\/]*$/,\"\")+r),t.forEach(function(e){e=e.replace(/^(['\"]?)(.*?)\\1$/,\"$2\"),n&&(e+=\"|bold\"),i&&(e+=\"|italic\"),o[e]=r})}var o,a;for(null==e&&(e=document),o={},a=0;e.styleSheets.length>a;++a)t(e.styleSheets[a]);return o}function o(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function a(e){return e=\"_counter_\"+e,fe[e]}function s(e){var t=[],n=fe;for(e=\"_counter_\"+e;n;)o(n,e)&&t.push(n[e]),n=Object.getPrototypeOf(n);return t.reverse()}function l(e,t){var n=fe;for(e=\"_counter_\"+e;n&&!o(n,e);)n=Object.getPrototypeOf(n);n||(n=fe._root),n[e]=(n[e]||0)+(null==t?1:t)}function c(e,t){e=\"_counter_\"+e,fe[e]=null==t?0:t}function d(e,n,i){var r,o,a;for(r=0;e.length>r;)o=e[r++],a=t(e[r]),isNaN(a)?n(o,i):(n(o,a),++r)}function u(e,t){var n=kendo.parseColor(e);return n&&(n=n.toRGB(),t?n=n.toCssRgba():0===n.a&&(n=null)),n}function h(e,t){function n(e){he[e]||(he[e]=!0,o.push(e))}function i(){--r<=0&&t()}var r,o=[];!function a(e){/^img$/i.test(e.tagName)&&n(e.src),ie(w(b(e),\"background-image\")).forEach(function(e){\"url\"==e.type&&n(e.url)}),e.children&&le.call(e.children).forEach(a)}(e),r=o.length,0===r&&i(),o.forEach(function(e){var t=he[e]=new Image;/^data:/i.test(e)||(t.crossOrigin=\"Anonymous\"),t.src=e,t.complete?i():(t.onload=i,t.onerror=function(){he[e]=null,i()})})}function f(e){var t,i=\"\";do t=e%26,i=String.fromCharCode(97+t)+i,e=n.floor(e/26);while(e>0);return i}function p(e,t,n){var i,r;fe=Object.create(fe),fe[e.tagName.toLowerCase()]={element:e,style:t},i=w(t,\"text-decoration\"),i&&\"none\"!=i&&(r=w(t,\"color\"),i.split(/\\s+/g).forEach(function(e){fe[e]||(fe[e]=r)})),_(t)&&(fe._stackingContext={element:e,group:n})}function m(){fe=Object.getPrototypeOf(fe)}function g(e){if(null!=fe._clipbox){var t=e.bbox(fe._matrix);fe._clipbox=fe._clipbox?se.Rect.intersect(fe._clipbox,t):t}}function v(){var e=fe._clipbox;return null==e?!0:e?0===e.width()||0===e.height():void 0}function _(e){function t(t){return w(e,t)}return\"none\"!=t(\"transform\")||\"static\"!=t(\"position\")&&\"auto\"!=t(\"z-index\")||t(\"opacity\")<1?!0:void 0}function b(e,t){return window.getComputedStyle(e,t||null)}function w(e,t){return e.getPropertyValue(t)||ce.webkit&&e.getPropertyValue(\"-webkit-\"+t)||ce.mozilla&&e.getPropertyValue(\"-moz-\"+t)||ce.opera&&e.getPropertyValue(\"-o-\"+t)||ce.msie&&e.getPropertyValue(\"-ms-\"+t)}function y(e,t,n,i){e.setProperty(t,n,i),ce.webkit?e.setProperty(\"-webkit-\"+t,n,i):ce.mozilla?e.setProperty(\"-moz-\"+t,n,i):ce.opera?e.setProperty(\"-o-\"+t,n,i):ce.msie&&(e.setProperty(\"-ms-\"+t,n,i),t=\"ms\"+t.replace(/(^|-)([a-z])/g,function(e,t,n){return t+n.toUpperCase()}),e[t]=n)}function k(e){var t,n,i,r;if((ce.msie||ce.chrome)&&(t=e.getClientRects(),i=0,3>=t.length)){for(r=0;t.length>r;++r)1>=t[r].width?i++:n=t[r];if(i==t.length-1)return n}return e.getBoundingClientRect()}function x(e,n){return n=\"border-\"+n,{width:t(w(e,n+\"-width\")),style:w(e,n+\"-style\"),color:u(w(e,n+\"-color\"),!0)}}function C(e,t){var n=e.style.cssText,i=t();return e.style.cssText=n,i}function S(e,n){var i=w(e,\"border-\"+n+\"-radius\").split(/\\s+/g).map(t);return 1==i.length&&i.push(i[0]),P({x:i[0],y:i[1]})}function T(e){var t=e.getBoundingClientRect();return t=D(t,\"border-*-width\",e),t=D(t,\"padding-*\",e)}function D(e,n,i){var r,o,a,s,l;return\"string\"==typeof n?(r=b(i),o=t(w(r,n.replace(\"*\",\"top\"))),a=t(w(r,n.replace(\"*\",\"right\"))),s=t(w(r,n.replace(\"*\",\"bottom\"))),l=t(w(r,n.replace(\"*\",\"left\")))):\"number\"==typeof n&&(o=a=s=l=n),{top:e.top+o,right:e.right-a,bottom:e.bottom-s,left:e.left+l,width:e.right-e.left-a-l,height:e.bottom-e.top-s-o\r\n}}function A(e){var n,i,r=w(e,\"transform\");return\"none\"==r?null:(n=/^\\s*matrix\\(\\s*(.*?)\\s*\\)\\s*$/.exec(r),n?(i=w(e,\"transform-origin\"),n=n[1].split(/\\s*,\\s*/g).map(t),i=i.split(/\\s+/g).map(t),{matrix:n,origin:i}):void 0)}function E(e){return 180*e/n.PI%360}function I(e){var i=t(e);return/grad$/.test(e)?n.PI*i/200:/rad$/.test(e)?i:/turn$/.test(e)?n.PI*i*2:/deg$/.test(e)?n.PI*i/180:void 0}function F(e,t){return t=new se.Matrix(t[0],t[1],t[2],t[3],t[4],t[5]),e.transform(t),t}function M(e,t){e.clip(t)}function R(e,t,n,i){for(var r=new se.Arc([t,n],i).curvePoints(),o=1;r.length>o;)e.curveTo(r[o++],r[o++],r[o++])}function P(e){return(0>=e.x||0>=e.y)&&(e.x=e.y=0),e}function z(e,t,i,r,o){var a=n.max(0,t.x),s=n.max(0,t.y),l=n.max(0,i.x),c=n.max(0,i.y),d=n.max(0,r.x),u=n.max(0,r.y),h=n.max(0,o.x),f=n.max(0,o.y),p=n.min(e.width/(a+l),e.height/(c+u),e.width/(d+h),e.height/(f+s));return 1>p&&(a*=p,s*=p,l*=p,c*=p,d*=p,u*=p,h*=p,f*=p),{tl:{x:a,y:s},tr:{x:l,y:c},br:{x:d,y:u},bl:{x:h,y:f}}}function B(e,n,i){var r,o,a,s,l,c,d,u,h=b(e),f=S(h,\"top-left\"),p=S(h,\"top-right\"),m=S(h,\"bottom-left\"),g=S(h,\"bottom-right\");return(\"padding\"==i||\"content\"==i)&&(r=x(h,\"top\"),o=x(h,\"right\"),a=x(h,\"bottom\"),s=x(h,\"left\"),f.x-=s.width,f.y-=r.width,p.x-=o.width,p.y-=r.width,g.x-=o.width,g.y-=a.width,m.x-=s.width,m.y-=a.width,\"content\"==i&&(l=t(w(h,\"padding-top\")),c=t(w(h,\"padding-right\")),d=t(w(h,\"padding-bottom\")),u=t(w(h,\"padding-left\")),f.x-=u,f.y-=l,p.x-=c,p.y-=l,g.x-=c,g.y-=d,m.x-=u,m.y-=d)),\"number\"==typeof i&&(f.x-=i,f.y-=i,p.x-=i,p.y-=i,g.x-=i,g.y-=i,m.x-=i,m.y-=i),L(n,f,p,g,m)}function L(e,t,n,i,r){var o=z(e,t,n,i,r),a=o.tl,s=o.tr,l=o.br,c=o.bl,d=new ae.Path({fill:null,stroke:null});return d.moveTo(e.left,e.top+a.y),a.x&&R(d,e.left+a.x,e.top+a.y,{startAngle:-180,endAngle:-90,radiusX:a.x,radiusY:a.y}),d.lineTo(e.right-s.x,e.top),s.x&&R(d,e.right-s.x,e.top+s.y,{startAngle:-90,endAngle:0,radiusX:s.x,radiusY:s.y}),d.lineTo(e.right,e.bottom-l.y),l.x&&R(d,e.right-l.x,e.bottom-l.y,{startAngle:0,endAngle:90,radiusX:l.x,radiusY:l.y}),d.lineTo(e.left+c.x,e.bottom),c.x&&R(d,e.left+c.x,e.bottom-c.y,{startAngle:90,endAngle:180,radiusX:c.x,radiusY:c.y}),d.close()}function H(e,n){var i=t(e)+\"\";switch(n){case\"decimal-leading-zero\":return 2>i.length&&(i=\"0\"+i),i;case\"lower-roman\":return de(e).toLowerCase();case\"upper-roman\":return de(e).toUpperCase();case\"lower-latin\":case\"lower-alpha\":return f(e-1);case\"upper-latin\":case\"upper-alpha\":return f(e-1).toUpperCase();default:return i}}function N(e,t){function n(e,t,n){return n?(n=n.replace(/^\\s*([\"'])(.*)\\1\\s*$/,\"$2\"),s(e).map(function(e){return H(e,t)}).join(n)):H(a(e)||0,t)}var i,r=re(t,/^\\s+/),o=[];return r.forEach(function(t){var r;(i=/^\\s*([\"'])(.*)\\1\\s*$/.exec(t))?o.push(i[2].replace(/\\\\([0-9a-f]{4})/gi,function(e,t){return String.fromCharCode(parseInt(t,16))})):(i=/^\\s*counter\\((.*?)\\)\\s*$/.exec(t))?(r=re(i[1]),o.push(n(r[0],r[1]))):(i=/^\\s*counters\\((.*?)\\)\\s*$/.exec(t))?(r=re(i[1]),o.push(n(r[0],r[2],r[1]))):o.push((i=/^\\s*attr\\((.*?)\\)\\s*$/.exec(t))?e.getAttribute(i[1])||\"\":t)}),o.join(\"\")}function O(e){var t,n;if(e.cssText)return e.cssText;for(t=[],n=0;e.length>n;++n)t.push(e[n]+\": \"+w(e,e[n]));return t.join(\";\\n\")}function V(e,n){function i(n,i){var o,a=b(e,n);a.content&&\"normal\"!=a.content&&\"none\"!=a.content&&\"0px\"!=a.width&&(o=e.ownerDocument.createElement(ue),o.style.cssText=O(a),o.textContent=N(e,a.content),e.insertBefore(o,i),\":before\"!=n||/absolute|fixed/.test(w(o.style,\"position\"))||(o.style.marginLeft=t(w(o.style,\"margin-left\"))-o.offsetWidth+\"px\"),r.push(o))}if(e.tagName==ue)return void U(e,n);var r=[];i(\":before\",e.firstChild),i(\":after\",null),U(e,n),r.forEach(function(t){e.removeChild(t)})}function U(i,r){function o(e){var t,n,r,o,a,s;if(/^td$/i.test(i.tagName)&&(t=fe.table,t&&\"collapse\"==w(t.style,\"border-collapse\"))){if(n=x(t.style,\"left\").width,r=x(t.style,\"top\").width,0===n&&0===r)return e;if(o=t.element.getBoundingClientRect(),a=t.element.rows[0].cells[0],s=a.getBoundingClientRect(),s.top==o.top||s.left==o.left)return le.call(e).map(function(e){return{left:e.left+n,top:e.top+r,right:e.right+n,bottom:e.bottom+r,height:e.height,width:e.width}})}return e}function a(e,t,i,o,a,s,l,c){function d(t,r,o){var a=n.PI/2*t/(t+i),s={x:r.x-t,y:r.y-i},l=new ae.Path({fill:{color:e},stroke:null}).moveTo(0,0);F(l,o),R(l,0,r.y,{startAngle:-90,endAngle:-E(a),radiusX:r.x,radiusY:r.y}),s.x>0&&s.y>0?(l.lineTo(s.x*n.cos(a),r.y-s.y*n.sin(a)),R(l,0,r.y,{startAngle:-E(a),endAngle:-90,radiusX:s.x,radiusY:s.y,anticlockwise:!0})):s.x>0?l.lineTo(s.x,i).lineTo(0,i):l.lineTo(s.x,i).lineTo(s.x,0),h.append(l.close())}if(!(0>=i)){var u,h=new ae.Group;F(h,c),r.append(h),P(s),P(l),u=new ae.Path({fill:{color:e},stroke:null}),h.append(u),u.moveTo(s.x?n.max(s.x,o):0,0).lineTo(t-(l.x?n.max(l.x,a):0),0).lineTo(t-n.max(l.x,a),i).lineTo(n.max(s.x,o),i).close(),s.x&&d(o,s,[-1,0,0,1,s.x,0]),l.x&&d(a,l,[1,0,0,1,t-l.x,0])}}function s(t){var n,o,a=new ae.Group;for(M(a,L(t,q,G,K,Y)),r.append(a),\"A\"==i.tagName&&i.href&&!/^#?$/.test(e(i).attr(\"href\"))&&(fe._avoidLinks&&e(i).is(fe._avoidLinks)||(a._pdfLink={url:i.href,top:t.top,right:t.right,bottom:t.bottom,left:t.left})),J&&(n=new ae.Path({fill:{color:J.toCssRgba()},stroke:null}),n.moveTo(t.left,t.top).lineTo(t.right,t.top).lineTo(t.right,t.bottom).lineTo(t.left,t.bottom).close(),a.append(n)),o=h.length;--o>=0;)l(a,t,h[o],p[o%p.length],m[o%m.length],v[o%v.length],_[o%_.length])}function l(e,n,r,o,a,s,l){function c(e,n,r,c,d){function u(){for(;g.origin.x>n.left;)g.origin.x-=r}function h(){for(;g.origin.y>n.top;)g.origin.y-=c}function f(){for(;n.right>g.origin.x;)d(e,g.clone()),g.origin.x+=r}var p,m,g,v,_=r/c,b=n;if(\"content-box\"==s?(b=D(b,\"border-*-width\",i),b=D(b,\"padding-*\",i)):\"padding-box\"==s&&(b=D(b,\"border-*-width\",i)),/^\\s*auto(\\s+auto)?\\s*$/.test(l)||(p=l.split(/\\s+/g),r=/%$/.test(p[0])?b.width*t(p[0])/100:t(p[0]),c=1==p.length||\"auto\"==p[1]?r/_:/%$/.test(p[1])?b.height*t(p[1])/100:t(p[1])),m=(a+\"\").split(/\\s+/),1==m.length&&(m[1]=\"50%\"),m[0]=/%$/.test(m[0])?t(m[0])/100*(b.width-r):t(m[0]),m[1]=/%$/.test(m[1])?t(m[1])/100*(b.height-c):t(m[1]),g=new se.Rect([b.left+m[0],b.top+m[1]],[r,c]),\"no-repeat\"==o)d(e,g);else if(\"repeat-x\"==o)u(),f();else if(\"repeat-y\"==o)for(h();n.bottom>g.origin.y;)d(e,g.clone()),g.origin.y+=c;else if(\"repeat\"==o)for(u(),h(),v=g.origin.clone();n.bottom>g.origin.y;)g.origin.x=v.x,f(),g.origin.y+=c}if(r&&\"none\"!=r)if(\"url\"==r.type){if(/^url\\(\\\"data:image\\/svg/i.test(r.url))return;var d=he[r.url];d&&d.width>0&&d.height>0&&c(e,n,d.width,d.height,function(e,t){e.append(new ae.Image(r.url,t))})}else{if(\"linear\"!=r.type)return;c(e,n,n.width,n.height,W(r))}}function c(){function e(e){C(i,function(){i.style.position=\"relative\";var t=i.ownerDocument.createElement(ue);t.style.position=\"absolute\",t.style.boxSizing=\"border-box\",\"outside\"==n?(t.style.width=\"6em\",t.style.left=\"-6.8em\",t.style.textAlign=\"right\"):t.style.left=\"0px\",e(t),i.insertBefore(t,i.firstChild),ee(t,r),i.removeChild(t)})}function t(e){var t,n=i.parentNode.children,r=i.getAttribute(\"kendo-split-index\");if(null!=r)return e(0|r,n.length);for(t=0;n.length>t;++t)if(n[t]===i)return e(t,n.length)}var n,o=w(H,\"list-style-type\");if(\"none\"!=o)switch(n=w(H,\"list-style-position\"),o){case\"circle\":case\"disc\":case\"square\":e(function(e){e.style.fontSize=\"60%\",e.style.lineHeight=\"200%\",e.style.paddingRight=\"0.5em\",e.style.fontFamily=\"DejaVu Serif\",e.innerHTML={disc:\"●\",circle:\"◯\",square:\"■\"}[o]});break;case\"decimal\":case\"decimal-leading-zero\":e(function(e){t(function(t){++t,\"decimal-leading-zero\"==o&&2>(t+\"\").length&&(t=\"0\"+t),e.innerHTML=t+\".\"})});break;case\"lower-roman\":case\"upper-roman\":e(function(e){t(function(t){t=de(t+1),\"upper-roman\"==o&&(t=t.toUpperCase()),e.innerHTML=t+\".\"})});break;case\"lower-latin\":case\"lower-alpha\":case\"upper-latin\":case\"upper-alpha\":e(function(e){t(function(t){t=f(t),/^upper/i.test(o)&&(t=t.toUpperCase()),e.innerHTML=t+\".\"})})}}function d(e,t,n){function o(e){return{x:e.y,y:e.x}}var l,c,d,u,h,f,p,m;if(0!==e.width&&0!==e.height&&(s(e),l=U.width>0&&(t&&\"ltr\"==Q||n&&\"rtl\"==Q),c=O.width>0&&(n&&\"ltr\"==Q||t&&\"rtl\"==Q),0!==N.width||0!==U.width||0!==O.width||0!==V.width)){if(N.color==O.color&&N.color==V.color&&N.color==U.color&&N.width==O.width&&N.width==V.width&&N.width==U.width&&l&&c)return e=D(e,N.width/2),d=B(i,e,N.width/2),d.options.stroke={color:N.color,width:N.width},void r.append(d);if(0===q.x&&0===G.x&&0===K.x&&0===Y.x&&2>N.width&&2>U.width&&2>O.width&&2>V.width)return N.width>0&&r.append(new ae.Path({stroke:{width:N.width,color:N.color}}).moveTo(e.left,e.top+N.width/2).lineTo(e.right,e.top+N.width/2)),V.width>0&&r.append(new ae.Path({stroke:{width:V.width,color:V.color}}).moveTo(e.left,e.bottom-V.width/2).lineTo(e.right,e.bottom-V.width/2)),l&&r.append(new ae.Path({stroke:{width:U.width,color:U.color}}).moveTo(e.left+U.width/2,e.top).lineTo(e.left+U.width/2,e.bottom)),void(c&&r.append(new ae.Path({stroke:{width:O.width,color:O.color}}).moveTo(e.right-O.width/2,e.top).lineTo(e.right-O.width/2,e.bottom)));u=z(e,q,G,K,Y),h=u.tl,f=u.tr,p=u.br,m=u.bl,a(N.color,e.width,N.width,U.width,O.width,h,f,[1,0,0,1,e.left,e.top]),a(V.color,e.width,V.width,O.width,U.width,p,m,[-1,0,0,-1,e.right,e.bottom]),a(U.color,e.height,U.width,V.width,N.width,o(m),o(h),[0,-1,1,0,e.left,e.bottom]),a(O.color,e.height,O.width,N.width,V.width,o(f),o(p),[0,1,-1,0,e.right,e.top])}}var h,p,m,v,_,y,k,T,A,I,H=b(i),N=x(H,\"top\"),O=x(H,\"right\"),V=x(H,\"bottom\"),U=x(H,\"left\"),q=S(H,\"top-left\"),G=S(H,\"top-right\"),Y=S(H,\"bottom-left\"),K=S(H,\"bottom-right\"),Q=w(H,\"direction\"),J=w(H,\"background-color\");if(J=u(J),h=ie(w(H,\"background-image\")),p=re(w(H,\"background-repeat\")),m=re(w(H,\"background-position\")),v=re(w(H,\"background-origin\")),_=re(w(H,\"background-size\")),ce.msie&&10>ce.version&&(m=re(i.currentStyle.backgroundPosition)),y=D(i.getBoundingClientRect(),\"border-*-width\",i),function(){var e,n,i,o,a,s,l,c=w(H,\"clip\"),d=/^\\s*rect\\((.*)\\)\\s*$/.exec(c);d&&(e=d[1].split(/[ ,]+/g),n=\"auto\"==e[0]?y.top:t(e[0])+y.top,i=\"auto\"==e[1]?y.right:t(e[1])+y.left,o=\"auto\"==e[2]?y.bottom:t(e[2])+y.top,a=\"auto\"==e[3]?y.left:t(e[3])+y.left,s=new ae.Group,l=(new ae.Path).moveTo(a,n).lineTo(i,n).lineTo(i,o).lineTo(a,o).close(),M(s,l),r.append(s),r=s,g(l))}(),I=w(H,\"display\"),\"table-row\"==I)for(k=[],T=0,A=i.children;A.length>T;++T)k.push(A[T].getBoundingClientRect());else k=i.getClientRects(),1==k.length&&(k=[i.getBoundingClientRect()]);for(k=o(k),T=0;k.length>T;++T)d(k[T],0===T,T==k.length-1);return k.length>0&&\"list-item\"==I&&c(k[0]),function(){function e(){var e=B(i,y,\"padding\"),t=new ae.Group;M(t,e),r.append(t),r=t,g(e)}$(i)?e():/^(hidden|auto|scroll)/.test(w(H,\"overflow\"))?e():/^(hidden|auto|scroll)/.test(w(H,\"overflow-x\"))?e():/^(hidden|auto|scroll)/.test(w(H,\"overflow-y\"))&&e()}(),j(i,r)||X(i,r),r}function W(e){return function(i,r){var o,a,s,l,c,d,u,h,f,p,m,g,v,_=r.width(),b=r.height();switch(e.type){case\"linear\":switch(o=null!=e.angle?e.angle:n.PI,e.to){case\"top\":o=0;break;case\"left\":o=-n.PI/2;break;case\"bottom\":o=n.PI;break;case\"right\":o=n.PI/2;break;case\"top left\":case\"left top\":o=-n.atan2(b,_);break;case\"top right\":case\"right top\":o=n.atan2(b,_);break;case\"bottom left\":case\"left bottom\":o=n.PI+n.atan2(b,_);break;case\"bottom right\":case\"right bottom\":o=n.PI-n.atan2(b,_)}e.reverse&&(o-=n.PI),o%=2*n.PI,0>o&&(o+=2*n.PI),a=n.abs(_*n.sin(o))+n.abs(b*n.cos(o)),s=n.atan(_*n.tan(o)/b),l=n.sin(s),c=n.cos(s),d=n.abs(l)+n.abs(c),u=d/2*l,h=d/2*c,o>n.PI/2&&3*n.PI/2>=o&&(u=-u,h=-h),f=[],p=0,m=e.stops.map(function(n,i){var r,o=n.percent;return o?o=t(o)/100:n.length?o=t(n.length)/a:0===i?o=0:i==e.stops.length-1&&(o=1),r={color:n.color.toCssRgba(),offset:o},null!=o?(p=o,f.forEach(function(e,t){var n=e.stop;n.offset=e.left+(p-e.left)*(t+1)/(f.length+1)}),f=[]):f.push({left:p,stop:r}),r}),g=[.5-u,.5+h],v=[.5+u,.5-h],i.append(ae.Path.fromRect(r).stroke(null).fill(new ae.LinearGradient({start:g,end:v,stops:m,userSpace:!1})));break;case\"radial\":window.console&&window.console.log&&window.console.log(\"Radial gradients are not yet supported in HTML renderer\")}}}function j(t,n){var i,r,o,a;return t.getAttribute(kendo.attr(\"role\"))&&(i=kendo.widgetInstance(e(t)),i&&(i.exportDOMVisual||i.exportVisual))?(r=i.exportDOMVisual?i.exportDOMVisual():i.exportVisual())?(o=new ae.Group,o.children.push(r),a=t.getBoundingClientRect(),o.transform(se.transform().translate(a.left,a.top)),n.append(o),!0):!1:void 0}function q(e,t,n){var i=T(e),r=new se.Rect([i.left,i.top],[i.width,i.height]),o=new ae.Image(t,r);M(o,B(e,i,\"content\")),n.append(o)}function G(e,n){var i=b(e),r=b(n),o=t(w(i,\"z-index\")),a=t(w(r,\"z-index\")),s=w(i,\"position\"),l=w(r,\"position\");return isNaN(o)&&isNaN(a)?/static|absolute/.test(s)&&/static|absolute/.test(l)?0:\"static\"==s?-1:\"static\"==l?1:0:isNaN(o)?0===a?0:a>0?-1:1:isNaN(a)?0===o?0:o>0?1:-1:t(o)-t(a)}function $(e){return/^(?:textarea|select|input)$/i.test(e.tagName)}function Y(e){return e.selectedOptions&&e.selectedOptions.length>0?e.selectedOptions[0]:e.options[e.selectedIndex]}function K(e,t){var i=b(e),r=w(i,\"color\"),o=e.getBoundingClientRect();\"checkbox\"==e.type?(t.append(ae.Path.fromRect(new se.Rect([o.left+1,o.top+1],[o.width-2,o.height-2])).stroke(r,1)),e.checked&&t.append((new ae.Path).stroke(r,1.2).moveTo(o.left+.22*o.width,o.top+.55*o.height).lineTo(o.left+.45*o.width,o.top+.75*o.height).lineTo(o.left+.78*o.width,o.top+.22*o.width))):(t.append(new ae.Circle(new se.Circle([(o.left+o.right)/2,(o.top+o.bottom)/2],n.min(o.width-2,o.height-2)/2)).stroke(r,1)),e.checked&&t.append(new ae.Circle(new se.Circle([(o.left+o.right)/2,(o.top+o.bottom)/2],n.min(o.width-8,o.height-8)/2)).fill(r).stroke(null)))}function Q(e,t){var n,i,r,o,a,s=e.tagName.toLowerCase();if(\"input\"==s&&(\"checkbox\"==e.type||\"radio\"==e.type))return K(e,t);if(n=e.parentNode,i=e.ownerDocument,r=i.createElement(ue),r.style.cssText=O(b(e)),r.style.display=\"inline-block\",\"input\"==s&&(r.style.whiteSpace=\"pre\"),(\"select\"==s||\"textarea\"==s)&&(r.style.overflow=\"auto\"),\"select\"==s)if(e.multiple)for(a=0;e.options.length>a;++a)o=i.createElement(ue),o.style.cssText=O(b(e.options[a])),o.style.display=\"block\",o.textContent=e.options[a].textContent,r.appendChild(o);else o=Y(e),o&&(r.textContent=o.textContent);else r.textContent=e.value;n.insertBefore(r,e),r.scrollLeft=e.scrollLeft,r.scrollTop=e.scrollTop,X(r,t),n.removeChild(r)}function X(e,t){var n,i,r,o,a,s,l,c,d;switch(fe._stackingContext.element===e&&(fe._stackingContext.group=t),e.tagName.toLowerCase()){case\"img\":q(e,e.src,t);break;case\"canvas\":try{q(e,e.toDataURL(\"image/png\"),t)}catch(u){}break;case\"textarea\":case\"input\":case\"select\":Q(e,t);break;default:for(n=[],i=[],r=[],o=[],a=e.firstChild;a;a=a.nextSibling)switch(a.nodeType){case 3:/\\S/.test(a.data)&&J(e,a,t);break;case 1:s=b(a),l=w(s,\"display\"),c=w(s,\"float\"),d=w(s,\"position\"),\"static\"!=d?o.push(a):\"inline\"!=l?\"none\"!=c?i.push(a):n.push(a):r.push(a)}n.sort(G).forEach(function(e){ee(e,t)}),i.sort(G).forEach(function(e){ee(e,t)}),r.sort(G).forEach(function(e){ee(e,t)}),o.sort(G).forEach(function(e){ee(e,t)})}}function J(e,i,r){function o(){var e,t,r,o,s,l,h,f=d,p=c.substr(d).search(/\\S/);if(d+=p,0>p||d>=u)return!0;if(g.setStart(i,d),g.setEnd(i,d+1),e=k(g),t=!1,y&&(p=c.substr(d).search(/\\s/),p>=0&&(g.setEnd(i,d+p),r=g.getBoundingClientRect(),r.bottom==e.bottom&&(e=r,t=!0,d+=p))),!t){if(p=function m(t,n,r){g.setEnd(i,n);var o=k(g);return o.bottom!=e.bottom&&n>t?m(t,t+n>>1,n):o.right!=e.right?(e=o,r>n?m(n,n+r>>1,r):n):n}(d,n.min(u,d+T),u),p==d)return!0;if(d=p,p=(\"\"+g).search(/\\s+$/),0===p)return;p>0&&(g.setEnd(i,g.startOffset+p),e=g.getBoundingClientRect())}if(ce.msie&&(e=g.getClientRects()[0]),o=\"\"+g,/^(?:pre|pre-wrap)$/i.test(x)){if(/\\t/.test(o)){for(s=0,p=f;g.startOffset>p;++p)l=c.charCodeAt(p),9==l?s+=8-s%8:10==l||13==l?s=0:s++;for(;(p=o.search(\"\t\"))>=0;)h=\" \".substr(0,8-(s+p)%8),o=o.substr(0,p)+h+o.substr(p+1)}}else o=o.replace(/\\s+/g,\" \");a(o,e)}function a(e,t){var n,i,o;ce.msie&&!isNaN(f)&&(n=kendo.util.measureText(e,{font:p}),i=(t.top+t.bottom-n.height)/2,t={top:i,right:t.right,bottom:i+n.height,left:t.left,height:n.height,width:t.right-t.left}),o=new ne(e,new se.Rect([t.left,t.top],[t.width,t.height]),{font:p,fill:{color:m}}),r.append(o),s(t)}function s(e){function t(t,n){var i,o;t&&(i=h/12,o=new ae.Path({stroke:{width:i,color:t}}),n-=i,o.moveTo(e.left,n).lineTo(e.right,n),r.append(o))}t(fe.underline,e.bottom),t(fe[\"line-through\"],e.bottom-e.height/2.7),t(fe.overline,e.top)}var l,c,d,u,h,f,p,m,g,_,y,x,C,S,T;if(!v()&&(l=b(e),!(t(w(l,\"text-indent\"))<-500)&&(c=i.data,d=0,u=c.search(/\\S\\s*$/)+1,u&&(h=w(l,\"font-size\"),f=w(l,\"line-height\"),p=[w(l,\"font-style\"),w(l,\"font-variant\"),w(l,\"font-weight\"),h,w(l,\"font-family\")].join(\" \"),h=t(h),f=t(f),0!==h)))){for(m=w(l,\"color\"),g=e.ownerDocument.createRange(),_=w(l,\"text-align\"),y=\"justify\"==_,x=w(l,\"white-space\"),ce.msie&&(C=l.textOverflow,\"ellipsis\"==C&&(S=e.style.textOverflow,e.style.textOverflow=\"clip\")),T=e.getBoundingClientRect().width/h*5,0===T&&(T=500);!o(););ce.msie&&\"ellipsis\"==C&&(e.style.textOverflow=S)}}function Z(e,n,i){var r,o,a,s,l,c;for(\"auto\"!=i?(r=fe._stackingContext.group,i=t(i)):(r=n,i=0),o=r.children,a=0;o.length>a&&!(null!=o[a]._dom_zIndex&&o[a]._dom_zIndex>i);++a);return s=new ae.Group,r.insertAt(s,a),s._dom_zIndex=i,r!==n&&fe._clipbox&&(l=fe._matrix.invert(),c=fe._clipbox.transformCopy(l),M(s,ae.Path.fromRect(c))),s}function ee(e,n){var i,r,o,a,s,u,h,f=b(e),g=w(f,\"counter-reset\");g&&d(re(g,/^\\s+/),c,0),i=w(f,\"counter-increment\"),i&&d(re(i,/^\\s+/),l,1),/^(style|script|link|meta|iframe|svg|col|colgroup)$/i.test(e.tagName)||null!=fe._clipbox&&(r=t(w(f,\"opacity\")),o=w(f,\"visibility\"),a=w(f,\"display\"),0!==r&&\"hidden\"!=o&&\"none\"!=a&&(s=A(f),h=w(f,\"z-index\"),(s||1>r)&&\"auto\"==h&&(h=0),u=Z(e,n,h),1>r&&u.opacity(r*u.opacity()),p(e,f,u),s?C(e,function(){var t,n,i,r;y(e.style,\"transform\",\"none\",\"important\"),y(e.style,\"transition\",\"none\",\"important\"),\"static\"==w(f,\"position\")&&y(e.style,\"position\",\"relative\",\"important\"),t=e.getBoundingClientRect(),n=t.left+s.origin[0],i=t.top+s.origin[1],r=[1,0,0,1,-n,-i],r=te(r,s.matrix),r=te(r,[1,0,0,1,n,i]),r=F(u,r),fe._matrix=fe._matrix.multiplyCopy(r),V(e,u)}):V(e,u),m()))}function te(e,t){var n=e[0],i=e[1],r=e[2],o=e[3],a=e[4],s=e[5],l=t[0],c=t[1],d=t[2],u=t[3],h=t[4],f=t[5];return[n*l+i*d,n*c+i*u,r*l+o*d,r*c+o*u,a*l+s*d+h,a*c+s*u+f]}var ne,ie,re,oe,ae=kendo.drawing,se=kendo.geometry,le=Array.prototype.slice,ce=kendo.support.browser,de=kendo.util.arabicToRoman,ue=\"KENDO-PSEUDO-ELEMENT\",he={},fe={};fe._root=fe,ne=ae.Text.extend({nodeType:\"Text\",init:function(e,t,n){ae.Text.fn.init.call(this,e,t.getOrigin(),n),this._pdfRect=t},rect:function(){return this._pdfRect},rawBBox:function(){return this._pdfRect}}),ae.drawDOM=i,i.getFontFaces=r,ie=function(){function e(e){function p(){var t=s.exec(e);t&&(e=e.substr(t[1].length))}function m(t){p();var n=t.exec(e);return n?(e=e.substr(n[1].length),n[1]):void 0}function g(){var t,r,o=kendo.parseColor(e,!0);return o?(e=e.substr(o.match[0].length),o=o.toRGB(),(t=m(i))||(r=m(n)),{color:o,length:t,percent:r}):void 0}function v(t){var i,o,s,u,h,f,p=[],v=!1;if(m(l)){for(i=m(a),i?(i=I(i),m(d)):(o=m(r),\"to\"==o?o=m(r):o&&/^-/.test(t)&&(v=!0),s=m(r),m(d)),/-moz-/.test(t)&&null==i&&null==o&&(u=m(n),h=m(n),v=!0,\"0%\"==u?o=\"left\":\"100%\"==u&&(o=\"right\"),\"0%\"==h?s=\"top\":\"100%\"==h&&(s=\"bottom\"),m(d));e&&!m(c)&&(f=g());)p.push(f),m(d);return{type:\"linear\",angle:i,to:o&&s?o+\" \"+s:o?o:s?s:null,stops:p,reverse:v}}}function _(){if(m(l)){var e=m(h);return e=e.replace(/^['\"]+|[\"']+$/g,\"\"),m(c),{type:\"url\",url:e}}}var b,w=e;return o(f,w)?f[w]:((b=m(t))?b=v(b):(b=m(u))&&(b=_()),f[w]=b||{type:\"none\"})}var t=/^((-webkit-|-moz-|-o-|-ms-)?linear-gradient\\s*)\\(/,n=/^([-0-9.]+%)/,i=/^([-0-9.]+px)/,r=/^(left|right|top|bottom|to|center)\\W/,a=/^([-0-9.]+(deg|grad|rad|turn))/,s=/^(\\s+)/,l=/^(\\()/,c=/^(\\))/,d=/^(,)/,u=/^(url)\\(/,h=/^(.*?)\\)/,f={},p={};return function(t){return o(p,t)?p[t]:p[t]=re(t).map(e)}}(),re=function(){var e={};return function(t,n){function i(e){return h=e.exec(t.substr(c))}function r(e){return e.replace(/^\\s+|\\s+$/g,\"\")}var a,s,l,c,d,u,h;if(n||(n=/^\\s*,\\s*/),a=t+n,o(e,a))return e[a];for(s=[],l=0,c=0,d=0,u=!1;t.length>c;)!u&&i(/^[\\(\\[\\{]/)?(d++,c++):!u&&i(/^[\\)\\]\\}]/)?(d--,c++):!u&&i(/^[\\\"\\']/)?(u=h[0],c++):\"'\"==u&&i(/^\\\\\\'/)?c+=2:'\"'==u&&i(/^\\\\\\\"/)?c+=2:\"'\"==u&&i(/^\\'/)?(u=!1,c++):'\"'==u&&i(/^\\\"/)?(u=!1,c++):i(n)?(!u&&!d&&c>l&&(s.push(r(t.substring(l,c))),l=c+h[0].length),c+=h[0].length):c++;return c>l&&s.push(r(t.substring(l,c))),e[a]=s}}(),oe=function(){var e={};return function(t){var n,i=e[t];return i||((n=/url\\((['\"]?)([^'\")]*?)\\1\\)\\s+format\\((['\"]?)truetype\\3\\)/.exec(t))?i=e[t]=n[2]:(n=/url\\((['\"]?)([^'\")]*?\\.ttf)\\1\\)/.exec(t))&&(i=e[t]=n[2])),i}}()}(window.kendo.jQuery,parseFloat,Math)},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"drawing/animation.min\",[\"drawing/geometry.min\",\"drawing/core.min\"],e)}(function(){!function(e){var t=e.noop,n=window.kendo,i=n.Class,r=n.util,o=n.animationFrame,a=n.deepExtend,s=i.extend({init:function(e,t){var n=this;n.options=a({},n.options,t),n.element=e},options:{duration:500,easing:\"swing\"},setup:t,step:t,play:function(){var t=this,n=t.options,i=e.easing[n.easing],a=n.duration,s=n.delay||0,l=r.now()+s,c=l+a;0===a?(t.step(1),t.abort()):setTimeout(function(){var e=function(){var n,s,d,u;t._stopped||(n=r.now(),s=r.limitValue(n-l,0,a),d=s/a,u=i(d,s,0,1,a),t.step(u),c>n?o(e):t.abort())};e()},s)},abort:function(){this._stopped=!0},destroy:function(){this.abort()}}),l=function(){this._items=[]};l.prototype={register:function(e,t){this._items.push({name:e,type:t})},create:function(e,t){var n,i,r,o=this._items;if(t&&t.type)for(i=t.type.toLowerCase(),r=0;o.length>r;r++)if(o[r].name.toLowerCase()===i){n=o[r];break}return n?new n.type(e,t):void 0}},l.current=new l,s.create=function(e,t,n){return l.current.create(e,t,n)},a(n.drawing,{Animation:s,AnimationFactory:l})}(window.kendo.jQuery)},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.drawing.min\",[\"kendo.color.min\",\"util/main.min\",\"util/text-metrics\",\"util/base64.min\",\"mixins/observers.min\",\"drawing/geometry.min\",\"drawing/core.min\",\"drawing/mixins.min\",\"drawing/shapes.min\",\"drawing/parser.min\",\"drawing/svg.min\",\"drawing/canvas.min\",\"drawing/vml.min\",\"drawing/html.min\",\"drawing/animation.min\"],e)}(function(){},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.validator.min\",[\"kendo.core.min\"],e)}(function(){return function(e,t){function n(t){var n,i=l.ui.validator.ruleResolvers||{},r={};for(n in i)e.extend(!0,r,i[n].resolve(t));return r}function i(e){return e.replace(/&/g,\"&\").replace(/"/g,'\"').replace(/'/g,\"'\").replace(/</g,\"<\").replace(/>/g,\">\")}function r(e){return e=(e+\"\").split(\".\"),e.length>1?e[1].length:0}function o(t){return e(e.parseHTML?e.parseHTML(t):t)}function a(t,n){var i,r,o,a,s=e();for(o=0,a=t.length;a>o;o++)i=t[o],h.test(i.className)&&(r=i.getAttribute(l.attr(\"for\")),r===n&&(s=s.add(i)));return s}var s,l=window.kendo,c=l.ui.Widget,d=\".kendoValidator\",u=\"k-invalid-msg\",h=RegExp(u,\"i\"),f=\"k-invalid\",p=\"k-valid\",m=/^((([a-z]|\\d|[!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])+(\\.([a-z]|\\d|[!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])+)*)|((\\x22)((((\\x20|\\x09)*(\\x0d\\x0a))?(\\x20|\\x09)+)?(([\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x7f]|\\x21|[\\x23-\\x5b]|[\\x5d-\\x7e]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(\\\\([\\x01-\\x09\\x0b\\x0c\\x0d-\\x7f]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]))))*(((\\x20|\\x09)*(\\x0d\\x0a))?(\\x20|\\x09)+)?(\\x22)))@((([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))\\.)+(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))$/i,g=/^(https?|ftp):\\/\\/(((([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(%[\\da-f]{2})|[!\\$&'\\(\\)\\*\\+,;=]|:)*@)?(((\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5]))|((([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))\\.)+(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))\\.?)(:\\d*)?)(\\/((([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(%[\\da-f]{2})|[!\\$&'\\(\\)\\*\\+,;=]|:|@)+(\\/(([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(%[\\da-f]{2})|[!\\$&'\\(\\)\\*\\+,;=]|:|@)*)*)?)?(\\?((([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(%[\\da-f]{2})|[!\\$&'\\(\\)\\*\\+,;=]|:|@)|[\\uE000-\\uF8FF]|\\/|\\?)*)?(\\#((([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(%[\\da-f]{2})|[!\\$&'\\(\\)\\*\\+,;=]|:|@)|\\/|\\?)*)?$/i,v=\":input:not(:button,[type=submit],[type=reset],[disabled],[readonly])\",_=\":checkbox:not([disabled],[readonly])\",b=\"[type=number],[type=range]\",w=\"blur\",y=\"name\",k=\"form\",x=\"novalidate\",C=e.proxy,S=function(e,t){return\"string\"==typeof t&&(t=RegExp(\"^(?:\"+t+\")$\")),t.test(e)},T=function(e,t,n){var i=e.val();return e.filter(t).length&&\"\"!==i?S(i,n):!0},D=function(e,t){return e.length?null!=e[0].attributes[t]:!1};l.ui.validator||(l.ui.validator={rules:{},messages:{}}),s=c.extend({init:function(t,i){var r=this,o=n(t),a=\"[\"+l.attr(\"validate\")+\"!=false]\";i=i||{},i.rules=e.extend({},l.ui.validator.rules,o.rules,i.rules),i.messages=e.extend({},l.ui.validator.messages,o.messages,i.messages),c.fn.init.call(r,t,i),r._errorTemplate=l.template(r.options.errorTemplate),r.element.is(k)&&r.element.attr(x,x),r._inputSelector=v+a,r._checkboxSelector=_+a,r._errors={},r._attachEvents(),r._isValidated=!1},events:[\"validate\",\"change\"],options:{name:\"Validator\",errorTemplate:' #=message#',messages:{required:\"{0} is required\",pattern:\"{0} is not valid\",min:\"{0} should be greater than or equal to {1}\",max:\"{0} should be smaller than or equal to {1}\",step:\"{0} is not valid\",email:\"{0} is not valid email\",url:\"{0} is not valid URL\",date:\"{0} is not valid date\",dateCompare:\"End date should be greater than or equal to the start date\"},rules:{required:function(e){var t=e.filter(\"[type=checkbox]\").length&&!e.is(\":checked\"),n=e.val();return!(D(e,\"required\")&&(\"\"===n||!n||t))},pattern:function(e){return e.filter(\"[type=text],[type=email],[type=url],[type=tel],[type=search],[type=password]\").filter(\"[pattern]\").length&&\"\"!==e.val()?S(e.val(),e.attr(\"pattern\")):!0},min:function(e){if(e.filter(b+\",[\"+l.attr(\"type\")+\"=number]\").filter(\"[min]\").length&&\"\"!==e.val()){var t=parseFloat(e.attr(\"min\"))||0,n=l.parseFloat(e.val());return n>=t}return!0},max:function(e){if(e.filter(b+\",[\"+l.attr(\"type\")+\"=number]\").filter(\"[max]\").length&&\"\"!==e.val()){var t=parseFloat(e.attr(\"max\"))||0,n=l.parseFloat(e.val());return t>=n}return!0},step:function(e){if(e.filter(b+\",[\"+l.attr(\"type\")+\"=number]\").filter(\"[step]\").length&&\"\"!==e.val()){var t,n=parseFloat(e.attr(\"min\"))||0,i=parseFloat(e.attr(\"step\"))||1,o=parseFloat(e.val()),a=r(i);return a?(t=Math.pow(10,a),Math.floor((o-n)*t)%(i*t)/Math.pow(100,a)===0):(o-n)%i===0}return!0},email:function(e){return T(e,\"[type=email],[\"+l.attr(\"type\")+\"=email]\",m)},url:function(e){return T(e,\"[type=url],[\"+l.attr(\"type\")+\"=url]\",g)},date:function(e){return e.filter(\"[type^=date],[\"+l.attr(\"type\")+\"=date]\").length&&\"\"!==e.val()?null!==l.parseDate(e.val(),e.attr(l.attr(\"format\"))):!0}},validateOnBlur:!0},destroy:function(){c.fn.destroy.call(this),this.element.off(d)},value:function(){return this._isValidated?0===this.errors().length:!1},_submit:function(e){return this.validate()?!0:(e.stopPropagation(),e.stopImmediatePropagation(),e.preventDefault(),!1)},_checkElement:function(e){var t=this.value();this.validateInput(e),this.value()!==t&&this.trigger(\"change\")},_attachEvents:function(){var t=this;t.element.is(k)&&t.element.on(\"submit\"+d,C(t._submit,t)),t.options.validateOnBlur&&(t.element.is(v)?(t.element.on(w+d,function(){t._checkElement(t.element)}),t.element.is(_)&&t.element.on(\"click\"+d,function(){t._checkElement(t.element)})):(t.element.on(w+d,t._inputSelector,function(){t._checkElement(e(this))}),t.element.on(\"click\"+d,t._checkboxSelector,function(){t._checkElement(e(this))})))},validate:function(){var e,t,n,i,r=!1,o=this.value();if(this._errors={},this.element.is(v))r=this.validateInput(this.element);else{for(i=!1,e=this.element.find(this._inputSelector),t=0,n=e.length;n>t;t++)this.validateInput(e.eq(t))||(i=!0);r=!i}return this.trigger(\"validate\",{valid:r}),o!==r&&this.trigger(\"change\"),r},validateInput:function(t){var n,r,a,s,c,d,h,m,g,v;return t=e(t),this._isValidated=!0,n=this,r=n._errorTemplate,a=n._checkValidity(t),s=a.valid,c=\".\"+u,d=t.attr(y)||\"\",h=n._findMessageContainer(d).add(t.next(c).filter(function(){var t=e(this);return t.filter(\"[\"+l.attr(\"for\")+\"]\").length?t.attr(l.attr(\"for\"))===d:!0})).hide(),t.removeAttr(\"aria-invalid\"),s?delete n._errors[d]:(m=n._extractMessage(t,a.key),n._errors[d]=m,g=o(r({message:i(m)})),v=h.attr(\"id\"),n._decorateMessageContainer(g,d),v&&g.attr(\"id\",v),h.replaceWith(g).length||g.insertAfter(t),g.show(),t.attr(\"aria-invalid\",!0)),t.toggleClass(f,!s),t.toggleClass(p,s),s},hideMessages:function(){var e=this,t=\".\"+u,n=e.element;n.is(v)?n.next(t).hide():n.find(t).hide()},_findMessageContainer:function(t){var n,i,r,o=l.ui.validator.messageLocators,s=e();for(i=0,r=this.element.length;r>i;i++)s=s.add(a(this.element[i].getElementsByTagName(\"*\"),t));for(n in o)s=s.add(o[n].locate(this.element,t));return s},_decorateMessageContainer:function(e,t){var n,i=l.ui.validator.messageLocators;e.addClass(u).attr(l.attr(\"for\"),t||\"\");for(n in i)i[n].decorate(e,t);e.attr(\"role\",\"alert\")},_extractMessage:function(e,t){var n=this,i=n.options.messages[t],r=e.attr(y);return i=l.isFunction(i)?i(e):i,l.format(e.attr(l.attr(t+\"-msg\"))||e.attr(\"validationMessage\")||e.attr(\"title\")||i||\"\",r,e.attr(t))},_checkValidity:function(e){var t,n=this.options.rules;for(t in n)if(!n[t].call(this,e))return{valid:!1,key:t};return{valid:!0}},errors:function(){var e,t=[],n=this._errors;for(e in n)t.push(n[e]);return t}}),l.ui.plugin(s)}(window.kendo.jQuery),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.userevents.min\",[\"kendo.core.min\"],e)}(function(){return function(e,t){function n(e,t){var n=e.x.location,i=e.y.location,r=t.x.location,o=t.y.location,a=n-r,s=i-o;return{center:{x:(n+r)/2,y:(i+o)/2},distance:Math.sqrt(a*a+s*s)}}function i(e){var t,n,i,r=[],o=e.originalEvent,s=e.currentTarget,l=0;if(e.api)r.push({id:2,event:e,target:e.target,currentTarget:e.target,location:e,type:\"api\"});else if(e.type.match(/touch/))for(n=o?o.changedTouches:[],t=n.length;t>l;l++)i=n[l],r.push({location:i,event:e,target:i.target,currentTarget:s,id:i.identifier,type:\"touch\"});else r.push(a.pointers||a.msPointers?{location:o,event:e,target:e.target,currentTarget:s,id:o.pointerId,type:\"pointer\"}:{id:1,event:e,target:e.target,currentTarget:s,location:e,type:\"mouse\"});return r}function r(e){for(var t=o.eventMap.up.split(\" \"),n=0,i=t.length;i>n;n++)e(t[n])}var o=window.kendo,a=o.support,s=window.document,l=o.Class,c=o.Observable,d=e.now,u=e.extend,h=a.mobileOS,f=h&&h.android,p=800,m=a.browser.msie?5:0,g=\"press\",v=\"hold\",_=\"select\",b=\"start\",w=\"move\",y=\"end\",k=\"cancel\",x=\"tap\",C=\"release\",S=\"gesturestart\",T=\"gesturechange\",D=\"gestureend\",A=\"gesturetap\",E={api:0,touch:0,mouse:9,pointer:9},I=!a.touch||a.mouseAndTouchPresent,F=l.extend({init:function(e,t){var n=this;\r\nn.axis=e,n._updateLocationData(t),n.startLocation=n.location,n.velocity=n.delta=0,n.timeStamp=d()},move:function(e){var t=this,n=e[\"page\"+t.axis],i=d(),r=i-t.timeStamp||1;(n||!f)&&(t.delta=n-t.location,t._updateLocationData(e),t.initialDelta=n-t.startLocation,t.velocity=t.delta/r,t.timeStamp=i)},_updateLocationData:function(e){var t=this,n=t.axis;t.location=e[\"page\"+n],t.client=e[\"client\"+n],t.screen=e[\"screen\"+n]}}),M=l.extend({init:function(e,t,n){u(this,{x:new F(\"X\",n.location),y:new F(\"Y\",n.location),type:n.type,useClickAsTap:e.useClickAsTap,threshold:e.threshold||E[n.type],userEvents:e,target:t,currentTarget:n.currentTarget,initialTouch:n.target,id:n.id,pressEvent:n,_moved:!1,_finished:!1})},press:function(){this._holdTimeout=setTimeout(e.proxy(this,\"_hold\"),this.userEvents.minHold),this._trigger(g,this.pressEvent)},_hold:function(){this._trigger(v,this.pressEvent)},move:function(e){var t=this;if(!t._finished){if(t.x.move(e.location),t.y.move(e.location),!t._moved){if(t._withinIgnoreThreshold())return;if(R.current&&R.current!==t.userEvents)return t.dispose();t._start(e)}t._finished||t._trigger(w,e)}},end:function(e){this.endTime=d(),this._finished||(this._finished=!0,this._trigger(C,e),this._moved?this._trigger(y,e):this.useClickAsTap||this._trigger(x,e),clearTimeout(this._holdTimeout),this.dispose())},dispose:function(){var t=this.userEvents,n=t.touches;this._finished=!0,this.pressEvent=null,clearTimeout(this._holdTimeout),n.splice(e.inArray(this,n),1)},skip:function(){this.dispose()},cancel:function(){this.dispose()},isMoved:function(){return this._moved},_start:function(e){clearTimeout(this._holdTimeout),this.startTime=d(),this._moved=!0,this._trigger(b,e)},_trigger:function(e,t){var n=this,i=t.event,r={touch:n,x:n.x,y:n.y,target:n.target,event:i};n.userEvents.notify(e,r)&&i.preventDefault()},_withinIgnoreThreshold:function(){var e=this.x.initialDelta,t=this.y.initialDelta;return Math.sqrt(e*e+t*t)<=this.threshold}}),R=c.extend({init:function(t,n){var i,l,d,h=this,f=o.guid();n=n||{},i=h.filter=n.filter,h.threshold=n.threshold||m,h.minHold=n.minHold||p,h.touches=[],h._maxTouches=n.multiTouch?2:1,h.allowSelection=n.allowSelection,h.captureUpIfMoved=n.captureUpIfMoved,h.useClickAsTap=!n.fastTap&&!a.delayedClick(),h.eventNS=f,t=e(t).handler(h),c.fn.init.call(h),u(h,{element:t,surface:e(n.global&&I?s.documentElement:n.surface||t),stopPropagation:n.stopPropagation,pressed:!1}),h.surface.handler(h).on(o.applyEventMap(\"move\",f),\"_move\").on(o.applyEventMap(\"up cancel\",f),\"_end\"),t.on(o.applyEventMap(\"down\",f),i,\"_start\"),h.useClickAsTap&&t.on(o.applyEventMap(\"click\",f),i,\"_click\"),(a.pointers||a.msPointers)&&(11>a.browser.version?t.css(\"-ms-touch-action\",\"pinch-zoom double-tap-zoom\"):t.css(\"touch-action\",\"pan-y\")),n.preventDragEvent&&t.on(o.applyEventMap(\"dragstart\",f),o.preventDefault),t.on(o.applyEventMap(\"mousedown\",f),i,{root:t},\"_select\"),h.captureUpIfMoved&&a.eventCapture&&(l=h.surface[0],d=e.proxy(h.preventIfMoving,h),r(function(e){l.addEventListener(e,d,!0)})),h.bind([g,v,x,b,w,y,C,k,S,T,D,A,_],n)},preventIfMoving:function(e){this._isMoved()&&e.preventDefault()},destroy:function(){var e,t=this;t._destroyed||(t._destroyed=!0,t.captureUpIfMoved&&a.eventCapture&&(e=t.surface[0],r(function(n){e.removeEventListener(n,t.preventIfMoving)})),t.element.kendoDestroy(t.eventNS),t.surface.kendoDestroy(t.eventNS),t.element.removeData(\"handler\"),t.surface.removeData(\"handler\"),t._disposeAll(),t.unbind(),delete t.surface,delete t.element,delete t.currentTarget)},capture:function(){R.current=this},cancel:function(){this._disposeAll(),this.trigger(k)},notify:function(e,t){var i=this,r=i.touches;if(this._isMultiTouch()){switch(e){case w:e=T;break;case y:e=D;break;case x:e=A}u(t,{touches:r},n(r[0],r[1]))}return this.trigger(e,u(t,{type:e}))},press:function(e,t,n){this._apiCall(\"_start\",e,t,n)},move:function(e,t){this._apiCall(\"_move\",e,t)},end:function(e,t){this._apiCall(\"_end\",e,t)},_isMultiTouch:function(){return this.touches.length>1},_maxTouchesReached:function(){return this.touches.length>=this._maxTouches},_disposeAll:function(){for(var e=this.touches;e.length>0;)e.pop().dispose()},_isMoved:function(){return e.grep(this.touches,function(e){return e.isMoved()}).length},_select:function(e){(!this.allowSelection||this.trigger(_,{event:e}))&&e.preventDefault()},_start:function(t){var n,r,o=this,a=0,s=o.filter,l=i(t),c=l.length,d=t.which;if(!(d&&d>1||o._maxTouchesReached()))for(R.current=null,o.currentTarget=t.currentTarget,o.stopPropagation&&t.stopPropagation();c>a&&!o._maxTouchesReached();a++)r=l[a],n=s?e(r.currentTarget):o.element,n.length&&(r=new M(o,n,r),o.touches.push(r),r.press(),o._isMultiTouch()&&o.notify(\"gesturestart\",{}))},_move:function(e){this._eachTouch(\"move\",e)},_end:function(e){this._eachTouch(\"end\",e)},_click:function(t){var n={touch:{initialTouch:t.target,target:e(t.currentTarget),endTime:d(),x:{location:t.pageX,client:t.clientX},y:{location:t.pageY,client:t.clientY}},x:t.pageX,y:t.pageY,target:e(t.currentTarget),event:t,type:\"tap\"};this.trigger(\"tap\",n)&&t.preventDefault()},_eachTouch:function(e,t){var n,r,o,a,s=this,l={},c=i(t),d=s.touches;for(n=0;d.length>n;n++)r=d[n],l[r.id]=r;for(n=0;c.length>n;n++)o=c[n],a=l[o.id],a&&a[e](o)},_apiCall:function(t,n,i,r){this[t]({api:!0,pageX:n,pageY:i,clientX:n,clientY:i,target:e(r||this.element)[0],stopPropagation:e.noop,preventDefault:e.noop})}});R.defaultThreshold=function(e){m=e},R.minHold=function(e){p=e},o.getTouches=i,o.touchDelta=n,o.UserEvents=R}(window.kendo.jQuery),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.draganddrop.min\",[\"kendo.core.min\",\"kendo.userevents.min\"],e)}(function(){return function(e,t){function n(t,n){try{return e.contains(t,n)||t==n}catch(i){return!1}}function i(e,t){return parseInt(e.css(t),10)||0}function r(e,t){return Math.min(Math.max(e,t.min),t.max)}function o(e,t){var n=A(e),r=n.left+i(e,\"borderLeftWidth\")+i(e,\"paddingLeft\"),o=n.top+i(e,\"borderTopWidth\")+i(e,\"paddingTop\"),a=r+e.width()-t.outerWidth(!0),s=o+e.height()-t.outerHeight(!0);return{x:{min:r,max:a},y:{min:o,max:s}}}function a(n,i,r){for(var o,a,s=0,l=i&&i.length,c=r&&r.length;n&&n.parentNode;){for(s=0;l>s;s++)if(o=i[s],o.element[0]===n)return{target:o,targetElement:n};for(s=0;c>s;s++)if(a=r[s],e.contains(a.element[0],n)&&b.matchesSelector.call(n,a.options.filter))return{target:a,targetElement:n};n=n.parentNode}return t}function s(e,t){var n,i=t.options.group,r=e[i];if(x.fn.destroy.call(t),r.length>1){for(n=0;r.length>n;n++)if(r[n]==t){r.splice(n,1);break}}else r.length=0,delete e[i]}function l(e){var t,n,i,r=c()[0];return e[0]===r?(n=r.scrollTop,i=r.scrollLeft,{top:n,left:i,bottom:n+y.height(),right:i+y.width()}):(t=e.offset(),t.bottom=t.top+e.height(),t.right=t.left+e.width(),t)}function c(){return e(_.support.browser.chrome?w.body:w.documentElement)}function d(t){var n,i=c();if(!t||t===w.body||t===w.documentElement)return i;for(n=e(t)[0];n&&!_.isScrollable(n)&&n!==w.body;)n=n.parentNode;return n===w.body?i:e(n)}function u(e,t,n){var i={x:0,y:0},r=50;return r>e-n.left?i.x=-(r-(e-n.left)):r>n.right-e&&(i.x=r-(n.right-e)),r>t-n.top?i.y=-(r-(t-n.top)):r>n.bottom-t&&(i.y=r-(n.bottom-t)),i}var h,f,p,m,g,v,_=window.kendo,b=_.support,w=window.document,y=e(window),k=_.Class,x=_.ui.Widget,C=_.Observable,S=_.UserEvents,T=e.proxy,D=e.extend,A=_.getOffset,E={},I={},F={},M=_.elementUnderCursor,R=\"keyup\",P=\"change\",z=\"dragstart\",B=\"hold\",L=\"drag\",H=\"dragend\",N=\"dragcancel\",O=\"hintDestroyed\",V=\"dragenter\",U=\"dragleave\",W=\"drop\",j=C.extend({init:function(t,n){var i=this,r=t[0];i.capture=!1,r.addEventListener?(e.each(_.eventMap.down.split(\" \"),function(){r.addEventListener(this,T(i._press,i),!0)}),e.each(_.eventMap.up.split(\" \"),function(){r.addEventListener(this,T(i._release,i),!0)})):(e.each(_.eventMap.down.split(\" \"),function(){r.attachEvent(this,T(i._press,i))}),e.each(_.eventMap.up.split(\" \"),function(){r.attachEvent(this,T(i._release,i))})),C.fn.init.call(i),i.bind([\"press\",\"release\"],n||{})},captureNext:function(){this.capture=!0},cancelCapture:function(){this.capture=!1},_press:function(e){var t=this;t.trigger(\"press\"),t.capture&&e.preventDefault()},_release:function(e){var t=this;t.trigger(\"release\"),t.capture&&(e.preventDefault(),t.cancelCapture())}}),q=C.extend({init:function(t){var n=this;C.fn.init.call(n),n.forcedEnabled=!1,e.extend(n,t),n.scale=1,n.horizontal?(n.measure=\"offsetWidth\",n.scrollSize=\"scrollWidth\",n.axis=\"x\"):(n.measure=\"offsetHeight\",n.scrollSize=\"scrollHeight\",n.axis=\"y\")},makeVirtual:function(){e.extend(this,{virtual:!0,forcedEnabled:!0,_virtualMin:0,_virtualMax:0})},virtualSize:function(e,t){(this._virtualMin!==e||this._virtualMax!==t)&&(this._virtualMin=e,this._virtualMax=t,this.update())},outOfBounds:function(e){return e>this.max||this.min>e},forceEnabled:function(){this.forcedEnabled=!0},getSize:function(){return this.container[0][this.measure]},getTotal:function(){return this.element[0][this.scrollSize]},rescale:function(e){this.scale=e},update:function(e){var t=this,n=t.virtual?t._virtualMax:t.getTotal(),i=n*t.scale,r=t.getSize();(0!==n||t.forcedEnabled)&&(t.max=t.virtual?-t._virtualMin:0,t.size=r,t.total=i,t.min=Math.min(t.max,r-i),t.minScale=r/n,t.centerOffset=(i-r)/2,t.enabled=t.forcedEnabled||i>r,e||t.trigger(P,t))}}),G=C.extend({init:function(e){var t=this;C.fn.init.call(t),t.x=new q(D({horizontal:!0},e)),t.y=new q(D({horizontal:!1},e)),t.container=e.container,t.forcedMinScale=e.minScale,t.maxScale=e.maxScale||100,t.bind(P,e)},rescale:function(e){this.x.rescale(e),this.y.rescale(e),this.refresh()},centerCoordinates:function(){return{x:Math.min(0,-this.x.centerOffset),y:Math.min(0,-this.y.centerOffset)}},refresh:function(){var e=this;e.x.update(),e.y.update(),e.enabled=e.x.enabled||e.y.enabled,e.minScale=e.forcedMinScale||Math.min(e.x.minScale,e.y.minScale),e.fitScale=Math.max(e.x.minScale,e.y.minScale),e.trigger(P)}}),$=C.extend({init:function(e){var t=this;D(t,e),C.fn.init.call(t)},outOfBounds:function(){return this.dimension.outOfBounds(this.movable[this.axis])},dragMove:function(e){var t=this,n=t.dimension,i=t.axis,r=t.movable,o=r[i]+e;n.enabled&&((n.min>o&&0>e||o>n.max&&e>0)&&(e*=t.resistance),r.translateAxis(i,e),t.trigger(P,t))}}),Y=k.extend({init:function(t){var n,i,r,o,a=this;D(a,{elastic:!0},t),r=a.elastic?.5:0,o=a.movable,a.x=n=new $({axis:\"x\",dimension:a.dimensions.x,resistance:r,movable:o}),a.y=i=new $({axis:\"y\",dimension:a.dimensions.y,resistance:r,movable:o}),a.userEvents.bind([\"press\",\"move\",\"end\",\"gesturestart\",\"gesturechange\"],{gesturestart:function(e){a.gesture=e,a.offset=a.dimensions.container.offset()},press:function(t){e(t.event.target).closest(\"a\").is(\"[data-navigate-on-press=true]\")&&t.sender.cancel()},gesturechange:function(e){var t,r,s,l=a.gesture,c=l.center,d=e.center,u=e.distance/l.distance,h=a.dimensions.minScale,f=a.dimensions.maxScale;h>=o.scale&&1>u&&(u+=.8*(1-u)),o.scale*u>=f&&(u=f/o.scale),r=o.x+a.offset.left,s=o.y+a.offset.top,t={x:(r-c.x)*u+d.x-r,y:(s-c.y)*u+d.y-s},o.scaleWith(u),n.dragMove(t.x),i.dragMove(t.y),a.dimensions.rescale(o.scale),a.gesture=e,e.preventDefault()},move:function(e){e.event.target.tagName.match(/textarea|input/i)||(n.dimension.enabled||i.dimension.enabled?(n.dragMove(e.x.delta),i.dragMove(e.y.delta),e.preventDefault()):e.touch.skip())},end:function(e){e.preventDefault()}})}}),K=b.transitions.prefix+\"Transform\";f=b.hasHW3D?function(e,t,n){return\"translate3d(\"+e+\"px,\"+t+\"px,0) scale(\"+n+\")\"}:function(e,t,n){return\"translate(\"+e+\"px,\"+t+\"px) scale(\"+n+\")\"},p=C.extend({init:function(t){var n=this;C.fn.init.call(n),n.element=e(t),n.element[0].style.webkitTransformOrigin=\"left top\",n.x=0,n.y=0,n.scale=1,n._saveCoordinates(f(n.x,n.y,n.scale))},translateAxis:function(e,t){this[e]+=t,this.refresh()},scaleTo:function(e){this.scale=e,this.refresh()},scaleWith:function(e){this.scale*=e,this.refresh()},translate:function(e){this.x+=e.x,this.y+=e.y,this.refresh()},moveAxis:function(e,t){this[e]=t,this.refresh()},moveTo:function(e){D(this,e),this.refresh()},refresh:function(){var e,t=this,n=t.x,i=t.y;t.round&&(n=Math.round(n),i=Math.round(i)),e=f(n,i,t.scale),e!=t.coordinates&&(_.support.browser.msie&&10>_.support.browser.version?(t.element[0].style.position=\"absolute\",t.element[0].style.left=t.x+\"px\",t.element[0].style.top=t.y+\"px\"):t.element[0].style[K]=e,t._saveCoordinates(e),t.trigger(P))},_saveCoordinates:function(e){this.coordinates=e}}),m=x.extend({init:function(e,t){var n,i=this;x.fn.init.call(i,e,t),n=i.options.group,n in I?I[n].push(i):I[n]=[i]},events:[V,U,W],options:{name:\"DropTarget\",group:\"default\"},destroy:function(){s(I,this)},_trigger:function(e,n){var i=this,r=E[i.options.group];return r?i.trigger(e,D({},n.event,{draggable:r,dropTarget:n.dropTarget})):t},_over:function(e){this._trigger(V,e)},_out:function(e){this._trigger(U,e)},_drop:function(e){var t=this,n=E[t.options.group];n&&(n.dropped=!t._trigger(W,e))}}),m.destroyGroup=function(e){var t,n=I[e]||F[e];if(n){for(t=0;n.length>t;t++)x.fn.destroy.call(n[t]);n.length=0,delete I[e],delete F[e]}},m._cache=I,g=m.extend({init:function(e,t){var n,i=this;x.fn.init.call(i,e,t),n=i.options.group,n in F?F[n].push(i):F[n]=[i]},destroy:function(){s(F,this)},options:{name:\"DropTargetArea\",group:\"default\",filter:null}}),v=x.extend({init:function(e,t){var n=this;x.fn.init.call(n,e,t),n._activated=!1,n.userEvents=new S(n.element,{global:!0,allowSelection:!0,filter:n.options.filter,threshold:n.options.distance,start:T(n._start,n),hold:T(n._hold,n),move:T(n._drag,n),end:T(n._end,n),cancel:T(n._cancel,n),select:T(n._select,n)}),n._afterEndHandler=T(n._afterEnd,n),n._captureEscape=T(n._captureEscape,n)},events:[B,z,L,H,N,O],options:{name:\"Draggable\",distance:_.support.touch?0:5,group:\"default\",cursorOffset:null,axis:null,container:null,filter:null,ignore:null,holdToDrag:!1,autoScroll:!1,dropped:!1},cancelHold:function(){this._activated=!1},_captureEscape:function(e){var t=this;e.keyCode===_.keys.ESC&&(t._trigger(N,{event:e}),t.userEvents.cancel())},_updateHint:function(t){var n,i=this,o=i.options,a=i.boundaries,s=o.axis,l=i.options.cursorOffset;l?n={left:t.x.location+l.left,top:t.y.location+l.top}:(i.hintOffset.left+=t.x.delta,i.hintOffset.top+=t.y.delta,n=e.extend({},i.hintOffset)),a&&(n.top=r(n.top,a.y),n.left=r(n.left,a.x)),\"x\"===s?delete n.top:\"y\"===s&&delete n.left,i.hint.css(n)},_shouldIgnoreTarget:function(t){var n=this.options.ignore;return n&&e(t).is(n)},_select:function(e){this._shouldIgnoreTarget(e.event.target)||e.preventDefault()},_start:function(n){var i,r=this,a=r.options,s=a.container,l=a.hint;return this._shouldIgnoreTarget(n.touch.initialTouch)||a.holdToDrag&&!r._activated?(r.userEvents.cancel(),t):(r.currentTarget=n.target,r.currentTargetOffset=A(r.currentTarget),l&&(r.hint&&r.hint.stop(!0,!0).remove(),r.hint=_.isFunction(l)?e(l.call(r,r.currentTarget)):l,i=A(r.currentTarget),r.hintOffset=i,r.hint.css({position:\"absolute\",zIndex:2e4,left:i.left,top:i.top}).appendTo(w.body),r.angular(\"compile\",function(){r.hint.removeAttr(\"ng-repeat\");for(var t=e(n.target);!t.data(\"$$kendoScope\")&&t.length;)t=t.parent();return{elements:r.hint.get(),scopeFrom:t.data(\"$$kendoScope\")}})),E[a.group]=r,r.dropped=!1,s&&(r.boundaries=o(s,r.hint)),e(w).on(R,r._captureEscape),r._trigger(z,n)&&(r.userEvents.cancel(),r._afterEnd()),r.userEvents.capture(),t)},_hold:function(e){this.currentTarget=e.target,this._trigger(B,e)?this.userEvents.cancel():this._activated=!0},_drag:function(t){var n,i;t.preventDefault(),n=this._elementUnderCursor(t),this._lastEvent=t,this._processMovement(t,n),this.options.autoScroll&&(this._cursorElement!==n&&(this._scrollableParent=d(n),this._cursorElement=n),this._scrollableParent[0]&&(i=u(t.x.location,t.y.location,l(this._scrollableParent)),this._scrollCompenstation=e.extend({},this.hintOffset),this._scrollVelocity=i,0===i.y&&0===i.x?(clearInterval(this._scrollInterval),this._scrollInterval=null):this._scrollInterval||(this._scrollInterval=setInterval(e.proxy(this,\"_autoScroll\"),50)))),this.hint&&this._updateHint(t)},_processMovement:function(n,i){this._withDropTarget(i,function(i,r){if(!i)return h&&(h._trigger(U,D(n,{dropTarget:e(h.targetElement)})),h=null),t;if(h){if(r===h.targetElement)return;h._trigger(U,D(n,{dropTarget:e(h.targetElement)}))}i._trigger(V,D(n,{dropTarget:e(r)})),h=D(i,{targetElement:r})}),this._trigger(L,D(n,{dropTarget:h,elementUnderCursor:i}))},_autoScroll:function(){var e,t,n,i,r,o,a,s,l=this._scrollableParent[0],d=this._scrollVelocity,u=this._scrollCompenstation;l&&(e=this._elementUnderCursor(this._lastEvent),this._processMovement(this._lastEvent,e),i=l===c()[0],i?(t=w.body.scrollHeight>y.height(),n=w.body.scrollWidth>y.width()):(t=l.scrollHeight>=l.offsetHeight,n=l.scrollWidth>=l.offsetWidth),r=l.scrollTop+d.y,o=t&&r>0&&l.scrollHeight>r,a=l.scrollLeft+d.x,s=n&&a>0&&l.scrollWidth>a,o&&(l.scrollTop+=d.y),s&&(l.scrollLeft+=d.x),i&&(s||o)&&(o&&(u.top+=d.y),s&&(u.left+=d.x),this.hint.css(u)))},_end:function(t){this._withDropTarget(this._elementUnderCursor(t),function(n,i){n&&(n._drop(D({},t,{dropTarget:e(i)})),h=null)}),this._cancel(this._trigger(H,t))},_cancel:function(e){var t=this;t._scrollableParent=null,this._cursorElement=null,clearInterval(this._scrollInterval),t._activated=!1,t.hint&&!t.dropped?setTimeout(function(){t.hint.stop(!0,!0),e?t._afterEndHandler():t.hint.animate(t.currentTargetOffset,\"fast\",t._afterEndHandler)},0):t._afterEnd()},_trigger:function(e,t){var n=this;return n.trigger(e,D({},t.event,{x:t.x,y:t.y,currentTarget:n.currentTarget,initialTarget:t.touch?t.touch.initialTouch:null,dropTarget:t.dropTarget,elementUnderCursor:t.elementUnderCursor}))},_elementUnderCursor:function(e){var t=M(e),i=this.hint;return i&&n(i[0],t)&&(i.hide(),t=M(e),t||(t=M(e)),i.show()),t},_withDropTarget:function(e,t){var n,i=this.options.group,r=I[i],o=F[i];(r&&r.length||o&&o.length)&&(n=a(e,r,o),n?t(n.target,n.targetElement):t())},destroy:function(){var e=this;x.fn.destroy.call(e),e._afterEnd(),e.userEvents.destroy(),this._scrollableParent=null,this._cursorElement=null,clearInterval(this._scrollInterval),e.currentTarget=null},_afterEnd:function(){var t=this;t.hint&&t.hint.remove(),delete E[t.options.group],t.trigger(\"destroy\"),t.trigger(O),e(w).off(R,t._captureEscape)}}),_.ui.plugin(m),_.ui.plugin(g),_.ui.plugin(v),_.TapCapture=j,_.containerBoundaries=o,D(_.ui,{Pane:Y,PaneDimensions:G,Movable:p}),_.ui.Draggable.utils={autoScrollVelocity:u,scrollableViewPort:l,findScrollableParent:d}}(window.kendo.jQuery),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.mobile.scroller.min\",[\"kendo.fx.min\",\"kendo.draganddrop.min\"],e)}(function(){return function(e,t){var n=window.kendo,i=n.mobile,r=n.effects,o=i.ui,a=e.proxy,s=e.extend,l=o.Widget,c=n.Class,d=n.ui.Movable,u=n.ui.Pane,h=n.ui.PaneDimensions,f=r.Transition,p=r.Animation,m=Math.abs,g=500,v=.7,_=.96,b=10,w=55,y=.5,k=5,x=\"km-scroller-release\",C=\"km-scroller-refresh\",S=\"pull\",T=\"change\",D=\"resize\",A=\"scroll\",E=2,I=p.extend({init:function(e){var t=this;p.fn.init.call(t),s(t,e),t.userEvents.bind(\"gestureend\",a(t.start,t)),t.tapCapture.bind(\"press\",a(t.cancel,t))},enabled:function(){return this.dimensions.minScale>this.movable.scale},done:function(){return.01>this.dimensions.minScale-this.movable.scale},tick:function(){var e=this.movable;e.scaleWith(1.1),this.dimensions.rescale(e.scale)},onEnd:function(){var e=this.movable;e.scaleTo(this.dimensions.minScale),this.dimensions.rescale(e.scale)}}),F=p.extend({init:function(e){var t=this;p.fn.init.call(t),s(t,e,{transition:new f({axis:e.axis,movable:e.movable,onEnd:function(){t._end()}})}),t.tapCapture.bind(\"press\",function(){t.cancel()}),t.userEvents.bind(\"end\",a(t.start,t)),t.userEvents.bind(\"gestureend\",a(t.start,t)),t.userEvents.bind(\"tap\",a(t.onEnd,t))},onCancel:function(){this.transition.cancel()},freeze:function(e){var t=this;t.cancel(),t._moveTo(e)},onEnd:function(){var e=this;e.paneAxis.outOfBounds()?e._snapBack():e._end()},done:function(){return m(this.velocity)<1},start:function(e){var t,n=this;n.dimension.enabled&&(n.paneAxis.outOfBounds()?n._snapBack():(t=e.touch.id===E?0:e.touch[n.axis].velocity,n.velocity=Math.max(Math.min(t*n.velocityMultiplier,w),-w),n.tapCapture.captureNext(),p.fn.start.call(n)))},tick:function(){var e=this,t=e.dimension,n=e.paneAxis.outOfBounds()?y:e.friction,i=e.velocity*=n,r=e.movable[e.axis]+i;!e.elastic&&t.outOfBounds(r)&&(r=Math.max(Math.min(r,t.max),t.min),e.velocity=0),e.movable.moveAxis(e.axis,r)},_end:function(){this.tapCapture.cancelCapture(),this.end()},_snapBack:function(){var e=this,t=e.dimension,n=e.movable[e.axis]>t.max?t.max:t.min;e._moveTo(n)},_moveTo:function(e){this.transition.moveTo({location:e,duration:g,ease:f.easeOutExpo})}}),M=p.extend({init:function(e){var t=this;n.effects.Animation.fn.init.call(this),s(t,e,{origin:{},destination:{},offset:{}})},tick:function(){this._updateCoordinates(),this.moveTo(this.origin)},done:function(){return m(this.offset.y)');s(n,t,{element:r,elementSize:0,movable:new d(r),scrollMovable:t.movable,alwaysVisible:t.alwaysVisible,size:i?\"width\":\"height\"}),n.scrollMovable.bind(T,a(n.refresh,n)),n.container.append(r),t.alwaysVisible&&n.show()},refresh:function(){var e=this,t=e.axis,n=e.dimension,i=n.size,r=e.scrollMovable,o=i/n.total,a=Math.round(-r[t]*o),s=Math.round(i*o);o>=1?this.element.css(\"display\",\"none\"):this.element.css(\"display\",\"\"),a+s>i?s=i-a:0>a&&(s+=a,a=0),e.elementSize!=s&&(e.element.css(e.size,s+\"px\"),e.elementSize=s),e.movable.moveAxis(t,a)},show:function(){this.element.css({opacity:v,visibility:\"visible\"})},hide:function(){this.alwaysVisible||this.element.css({opacity:0})}}),P=l.extend({init:function(i,r){var o,c,f,p,g,v,_,b,w,y=this;return l.fn.init.call(y,i,r),i=y.element,(y._native=y.options.useNative&&n.support.hasNativeScrolling)?(i.addClass(\"km-native-scroller\").prepend('
    '),s(y,{scrollElement:i,fixedContainer:i.children().first()}),t):(i.css(\"overflow\",\"hidden\").addClass(\"km-scroll-wrapper\").wrapInner('
    ').prepend('
    '),o=i.children().eq(1),c=new n.TapCapture(i),f=new d(o),p=new h({element:o,container:i,forcedEnabled:y.options.zoom}),g=this.options.avoidScrolling,v=new n.UserEvents(i,{fastTap:!0,allowSelection:!0,preventDragEvent:!0,captureUpIfMoved:!0,multiTouch:y.options.zoom,start:function(t){p.refresh();var n=m(t.x.velocity),i=m(t.y.velocity),r=2*n>=i,o=e.contains(y.fixedContainer[0],t.event.target),a=2*i>=n;!o&&!g(t)&&y.enabled&&(p.x.enabled&&r||p.y.enabled&&a)?v.capture():v.cancel()}}),_=new u({movable:f,dimensions:p,userEvents:v,elastic:y.options.elastic}),b=new I({movable:f,dimensions:p,userEvents:v,tapCapture:c}),w=new M({moveTo:function(e){y.scrollTo(e.x,e.y)}}),f.bind(T,function(){y.scrollTop=-f.y,y.scrollLeft=-f.x,y.trigger(A,{scrollTop:y.scrollTop,scrollLeft:y.scrollLeft})}),y.options.mousewheelScrolling&&i.on(\"DOMMouseScroll mousewheel\",a(this,\"_wheelScroll\")),s(y,{movable:f,dimensions:p,zoomSnapBack:b,animatedScroller:w,userEvents:v,pane:_,tapCapture:c,pulled:!1,enabled:!0,scrollElement:o,scrollTop:0,scrollLeft:0,fixedContainer:i.children().first()}),y._initAxis(\"x\"),y._initAxis(\"y\"),y._wheelEnd=function(){y._wheel=!1,y.userEvents.end(0,y._wheelY)},p.refresh(),y.options.pullToRefresh&&y._initPullToRefresh(),t)},_wheelScroll:function(e){this._wheel||(this._wheel=!0,this._wheelY=0,this.userEvents.press(0,this._wheelY)),clearTimeout(this._wheelTimeout),this._wheelTimeout=setTimeout(this._wheelEnd,50);var t=n.wheelDeltaY(e);t&&(this._wheelY+=t,this.userEvents.move(0,this._wheelY)),e.preventDefault()},makeVirtual:function(){this.dimensions.y.makeVirtual()},virtualSize:function(e,t){this.dimensions.y.virtualSize(e,t)},height:function(){return this.dimensions.y.size},scrollHeight:function(){return this.scrollElement[0].scrollHeight},scrollWidth:function(){return this.scrollElement[0].scrollWidth},options:{name:\"Scroller\",zoom:!1,pullOffset:140,visibleScrollHints:!1,elastic:!0,useNative:!1,mousewheelScrolling:!0,avoidScrolling:function(){return!1},pullToRefresh:!1,messages:{pullTemplate:\"Pull to refresh\",releaseTemplate:\"Release to refresh\",refreshTemplate:\"Refreshing\"}},events:[S,A,D],_resize:function(){this._native||this.contentResized()},setOptions:function(e){var t=this;l.fn.setOptions.call(t,e),e.pullToRefresh&&t._initPullToRefresh()},reset:function(){this._native?this.scrollElement.scrollTop(0):(this.movable.moveTo({x:0,y:0}),this._scale(1))},contentResized:function(){this.dimensions.refresh(),this.pane.x.outOfBounds()&&this.movable.moveAxis(\"x\",this.dimensions.x.min),this.pane.y.outOfBounds()&&this.movable.moveAxis(\"y\",this.dimensions.y.min)},zoomOut:function(){var e=this.dimensions;e.refresh(),this._scale(e.fitScale),this.movable.moveTo(e.centerCoordinates())},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},scrollTo:function(e,t){this._native?(this.scrollElement.scrollLeft(m(e)),this.scrollElement.scrollTop(m(t))):(this.dimensions.refresh(),this.movable.moveTo({x:e,y:t}))},animatedScrollTo:function(e,t,n){var i,r;this._native?this.scrollTo(e,t):(i={x:this.movable.x,y:this.movable.y},r={x:e,y:t},this.animatedScroller.setCoordinates(i,r),this.animatedScroller.setCallback(n),this.animatedScroller.start())},pullHandled:function(){var e=this;e.refreshHint.removeClass(C),e.hintContainer.html(e.pullTemplate({})),e.yinertia.onEnd(),e.xinertia.onEnd(),e.userEvents.cancel()},destroy:function(){l.fn.destroy.call(this),this.userEvents&&this.userEvents.destroy()},_scale:function(e){this.dimensions.rescale(e),this.movable.scaleTo(e)},_initPullToRefresh:function(){var e=this;e.dimensions.y.forceEnabled(),e.pullTemplate=n.template(e.options.messages.pullTemplate),e.releaseTemplate=n.template(e.options.messages.releaseTemplate),e.refreshTemplate=n.template(e.options.messages.refreshTemplate),e.scrollElement.prepend(''+e.pullTemplate({})+\"\"),e.refreshHint=e.scrollElement.children().first(),e.hintContainer=e.refreshHint.children(\".km-template\"),e.pane.y.bind(\"change\",a(e._paneChange,e)),e.userEvents.bind(\"end\",a(e._dragEnd,e))},_dragEnd:function(){var e=this;e.pulled&&(e.pulled=!1,e.refreshHint.removeClass(x).addClass(C),e.hintContainer.html(e.refreshTemplate({})),e.yinertia.freeze(e.options.pullOffset/2),e.trigger(\"pull\"))},_paneChange:function(){var e=this;e.movable.y/y>e.options.pullOffset?e.pulled||(e.pulled=!0,e.refreshHint.removeClass(C).addClass(x),e.hintContainer.html(e.releaseTemplate({}))):e.pulled&&(e.pulled=!1,e.refreshHint.removeClass(x),e.hintContainer.html(e.pullTemplate({})))},_initAxis:function(e){var t=this,n=t.movable,i=t.dimensions[e],r=t.tapCapture,o=t.pane[e],a=new R({axis:e,movable:n,dimension:i,container:t.element,alwaysVisible:t.options.visibleScrollHints});i.bind(T,function(){a.refresh()}),o.bind(T,function(){a.show()}),t[e+\"inertia\"]=new F({axis:e,paneAxis:o,movable:n,tapCapture:r,userEvents:t.userEvents,dimension:i,elastic:t.options.elastic,friction:t.options.friction||_,velocityMultiplier:t.options.velocityMultiplier||b,end:function(){a.hide(),t.trigger(\"scrollEnd\",{axis:e,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft})}})}});o.plugin(P)}(window.kendo.jQuery),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.groupable.min\",[\"kendo.core.min\",\"kendo.draganddrop.min\"],e)}(function(){return function(e,t){function n(e){return e.position().top+3}var i=window.kendo,r=i.ui.Widget,o=e.proxy,a=!1,s=\".kendoGroupable\",l=\"change\",c=i.template('',{useWithBlock:!1}),d=function(t){return e('
    ').css({width:t.width(),paddingLeft:t.css(\"paddingLeft\"),paddingRight:t.css(\"paddingRight\"),lineHeight:t.height()+\"px\",paddingTop:t.css(\"paddingTop\"),paddingBottom:t.css(\"paddingBottom\")}).html(t.attr(i.attr(\"title\"))||t.attr(i.attr(\"field\"))).prepend('')},u=e('
    '),h=r.extend({init:function(c,h){var f,p,m=this,g=i.guid(),v=o(m._intializePositions,m),_=m._dropCuePositions=[];r.fn.init.call(m,c,h),a=i.support.isRtl(c),p=a?\"right\":\"left\",m.draggable=f=m.options.draggable||new i.ui.Draggable(m.element,{filter:m.options.draggableElements,hint:d,group:g}),m.groupContainer=e(m.options.groupContainer,m.element).kendoDropTarget({group:f.options.group,dragenter:function(e){m._canDrag(e.draggable.currentTarget)&&(e.draggable.hint.find(\".k-drag-status\").removeClass(\"k-denied\").addClass(\"k-add\"),u.css(\"top\",n(m.groupContainer)).css(p,0).appendTo(m.groupContainer))},dragleave:function(e){e.draggable.hint.find(\".k-drag-status\").removeClass(\"k-add\").addClass(\"k-denied\"),u.remove()},drop:function(t){var n,r=t.draggable.currentTarget,o=r.attr(i.attr(\"field\")),s=r.attr(i.attr(\"title\")),l=m.indicator(o),c=m._dropCuePositions,d=c[c.length-1];(r.hasClass(\"k-group-indicator\")||m._canDrag(r))&&(d?(n=m._dropCuePosition(i.getOffset(u).left+parseInt(d.element.css(\"marginLeft\"),10)*(a?-1:1)+parseInt(d.element.css(\"marginRight\"),10)),n&&m._canDrop(e(l),n.element,n.left)&&(n.before?n.element.before(l||m.buildIndicator(o,s)):n.element.after(l||m.buildIndicator(o,s)),m._change())):(m.groupContainer.append(m.buildIndicator(o,s)),m._change()))}}).kendoDraggable({filter:\"div.k-group-indicator\",hint:d,group:f.options.group,dragcancel:o(m._dragCancel,m),dragstart:function(e){var t=e.currentTarget,i=parseInt(t.css(\"marginLeft\"),10),r=t.position(),o=a?r.left-i:r.left+t.outerWidth();v(),u.css({top:n(m.groupContainer),left:o}).appendTo(m.groupContainer),this.hint.find(\".k-drag-status\").removeClass(\"k-denied\").addClass(\"k-add\")},dragend:function(){m._dragEnd(this)},drag:o(m._drag,m)}).on(\"click\"+s,\".k-button\",function(t){t.preventDefault(),m._removeIndicator(e(this).parent())}).on(\"click\"+s,\".k-link\",function(t){var n=e(this).parent(),r=m.buildIndicator(n.attr(i.attr(\"field\")),n.attr(i.attr(\"title\")),\"asc\"==n.attr(i.attr(\"dir\"))?\"desc\":\"asc\");n.before(r).remove(),m._change(),t.preventDefault()}),f.bind([\"dragend\",\"dragcancel\",\"dragstart\",\"drag\"],{dragend:function(){m._dragEnd(this)},dragcancel:o(m._dragCancel,m),dragstart:function(e){var n,i,r;return m.options.allowDrag||m._canDrag(e.currentTarget)?(v(),_.length?(n=_[_.length-1].element,i=parseInt(n.css(\"marginRight\"),10),r=n.position().left+n.outerWidth()+i):r=0,t):(e.preventDefault(),t)},drag:o(m._drag,m)}),m.dataSource=m.options.dataSource,m.dataSource&&m._refreshHandler?m.dataSource.unbind(l,m._refreshHandler):m._refreshHandler=o(m.refresh,m),m.dataSource&&(m.dataSource.bind(\"change\",m._refreshHandler),m.refresh())},refresh:function(){var t=this,n=t.dataSource;t.groupContainer&&t.groupContainer.empty().append(e.map(n.group()||[],function(n){var r=n.field,o=i.attr(\"field\"),a=t.element.find(t.options.filter).filter(function(){\r\nreturn e(this).attr(o)===r});return t.buildIndicator(n.field,a.attr(i.attr(\"title\")),n.dir)}).join(\"\")),t._invalidateGroupContainer()},destroy:function(){var e=this;r.fn.destroy.call(e),e.groupContainer.off(s),e.groupContainer.data(\"kendoDropTarget\")&&e.groupContainer.data(\"kendoDropTarget\").destroy(),e.groupContainer.data(\"kendoDraggable\")&&e.groupContainer.data(\"kendoDraggable\").destroy(),e.options.draggable||e.draggable.destroy(),e.dataSource&&e._refreshHandler&&(e.dataSource.unbind(\"change\",e._refreshHandler),e._refreshHandler=null),e.groupContainer=e.element=e.draggable=null},options:{name:\"Groupable\",filter:\"th\",draggableElements:\"th\",messages:{empty:\"Drag a column header and drop it here to group by that column\"}},indicator:function(t){var n=e(\".k-group-indicator\",this.groupContainer);return e.grep(n,function(n){return e(n).attr(i.attr(\"field\"))===t})[0]},buildIndicator:function(e,t,n){return c({field:e.replace(/\"/g,\"'\"),dir:n,title:t,ns:i.ns})},descriptors:function(){var t,n,r,o,a,s=this,l=e(\".k-group-indicator\",s.groupContainer);return t=s.element.find(s.options.filter).map(function(){var t=e(this),r=t.attr(i.attr(\"aggregates\")),s=t.attr(i.attr(\"field\"));if(r&&\"\"!==r)for(n=r.split(\",\"),r=[],o=0,a=n.length;a>o;o++)r.push({field:s,aggregate:n[o]});return r}).toArray(),e.map(l,function(n){return n=e(n),r=n.attr(i.attr(\"field\")),{field:r,dir:n.attr(i.attr(\"dir\")),aggregates:t||[]}})},_removeIndicator:function(e){var t=this;e.remove(),t._invalidateGroupContainer(),t._change()},_change:function(){var e=this;e.dataSource&&e.dataSource.group(e.descriptors())},_dropCuePosition:function(t){var n,i,r,o,s,l=this._dropCuePositions;if(u.is(\":visible\")&&0!==l.length)return t=Math.ceil(t),n=l[l.length-1],i=n.left,r=n.right,o=parseInt(n.element.css(\"marginLeft\"),10),s=parseInt(n.element.css(\"marginRight\"),10),t>=r&&!a||i>t&&a?t={left:n.element.position().left+(a?-o:n.element.outerWidth()+s),element:n.element,before:!1}:(t=e.grep(l,function(e){return t>=e.left&&e.right>=t||a&&t>e.right})[0],t&&(t={left:a?t.element.position().left+t.element.outerWidth()+s:t.element.position().left-o,element:t.element,before:!0})),t},_drag:function(e){var t=this._dropCuePosition(e.x.location);t&&u.css({left:t.left,right:\"auto\"})},_canDrag:function(e){var t=e.attr(i.attr(\"field\"));return\"false\"!=e.attr(i.attr(\"groupable\"))&&t&&(e.hasClass(\"k-group-indicator\")||!this.indicator(t))},_canDrop:function(e,t,n){var i=e.next(),r=e[0]!==t[0]&&(!i[0]||t[0]!==i[0]||!a&&n>i.position().left||a&&n
    '),t.find(c.options.filter).kendoDropTarget({group:c.options.group,dragenter:function(e){var t,i,o,a;d._draggable&&(t=this.element,o=!d._dropTargetAllowed(t)||d._isLastDraggable(),n(e.draggable.hint,o),o||(i=r(t),a=i.left,l.inSameContainer&&!l.inSameContainer({source:t,target:d._draggable,sourceIndex:d._index(t),targetIndex:d._index(d._draggable)})?d._dropTarget=t:d._index(t)>d._index(d._draggable)&&(a+=t.outerWidth()),d.reorderDropCue.css({height:t.outerHeight(),top:i.top,left:a}).appendTo(document.body)))},dragleave:function(e){n(e.draggable.hint,!0),d.reorderDropCue.remove(),d._dropTarget=null},drop:function(){var e,t;d._dropTarget=null,d._draggable&&(e=this.element,t=d._draggable,d._dropTargetAllowed(e)&&!d._isLastDraggable()&&d.trigger(a,{element:d._draggable,target:e,oldIndex:d._index(t),newIndex:d._index(e),position:r(d.reorderDropCue).left>r(e).left?\"after\":\"before\"}))}}),c.bind([\"dragcancel\",\"dragend\",\"dragstart\",\"drag\"],{dragcancel:function(){d.reorderDropCue.remove(),d._draggable=null,d._elements=null},dragend:function(){d.reorderDropCue.remove(),d._draggable=null,d._elements=null},dragstart:function(e){d._draggable=e.currentTarget,d._elements=d.element.find(d.draggable.options.filter)},drag:function(e){var t,n;d._dropTarget&&!this.hint.find(\".k-drag-status\").hasClass(\"k-denied\")&&(t=r(d._dropTarget).left,n=d._dropTarget.outerWidth(),d.reorderDropCue.css(e.pageX>t+n/2?{left:t+n}:{left:t}))}})},options:{name:\"Reorderable\",filter:\"*\"},events:[a],_isLastDraggable:function(){var e,t=this.options.inSameContainer,n=this._draggable[0],i=this._elements.get(),r=!1;if(!t)return!1;for(;!r&&i.length>0;)e=i.pop(),r=n!==e&&t({source:n,target:e,sourceIndex:this._index(n),targetIndex:this._index(e)});return!r},_dropTargetAllowed:function(e){var t=this.options.inSameContainer,n=this.options.dragOverContainers,i=this._draggable;return i[0]===e[0]?!1:t&&n?t({source:i,target:e,sourceIndex:this._index(i),targetIndex:this._index(e)})?!0:n(this._index(i),this._index(e)):!0},_index:function(e){return this._elements.index(e)},destroy:function(){var t=this;o.fn.destroy.call(t),t.element.find(t.draggable.options.filter).each(function(){var t=e(this);t.data(\"kendoDropTarget\")&&t.data(\"kendoDropTarget\").destroy()}),t.draggable&&(t.draggable.destroy(),t.draggable.element=t.draggable=null),t.elements=t.reorderDropCue=t._elements=t._draggable=null}});i.ui.plugin(l)}(window.kendo.jQuery),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.resizable.min\",[\"kendo.core.min\",\"kendo.draganddrop.min\"],e)}(function(){return function(e,t){var n=window.kendo,i=n.ui,r=i.Widget,o=e.proxy,a=n.isFunction,s=e.extend,l=\"horizontal\",c=\"vertical\",d=\"start\",u=\"resize\",h=\"resizeend\",f=r.extend({init:function(e,t){var n=this;r.fn.init.call(n,e,t),n.orientation=n.options.orientation.toLowerCase()!=c?l:c,n._positionMouse=n.orientation==l?\"x\":\"y\",n._position=n.orientation==l?\"left\":\"top\",n._sizingDom=n.orientation==l?\"outerWidth\":\"outerHeight\",n.draggable=new i.Draggable(e,{distance:1,filter:t.handle,drag:o(n._resize,n),dragcancel:o(n._cancel,n),dragstart:o(n._start,n),dragend:o(n._stop,n)}),n.userEvents=n.draggable.userEvents},events:[u,h,d],options:{name:\"Resizable\",orientation:l},resize:function(){},_max:function(e){var n=this,i=n.hint?n.hint[n._sizingDom]():0,r=n.options.max;return a(r)?r(e):r!==t?n._initialElementPosition+r-i:r},_min:function(e){var n=this,i=n.options.min;return a(i)?i(e):i!==t?n._initialElementPosition+i:i},_start:function(t){var n=this,i=n.options.hint,r=e(t.currentTarget);n._initialElementPosition=r.position()[n._position],n._initialMousePosition=t[n._positionMouse].startLocation,i&&(n.hint=a(i)?e(i(r)):i,n.hint.css({position:\"absolute\"}).css(n._position,n._initialElementPosition).appendTo(n.element)),n.trigger(d,t),n._maxPosition=n._max(t),n._minPosition=n._min(t),e(document.body).css(\"cursor\",r.css(\"cursor\"))},_resize:function(e){var n,i=this,r=i._maxPosition,o=i._minPosition,a=i._initialElementPosition+(e[i._positionMouse].location-i._initialMousePosition);n=o!==t?Math.max(o,a):a,i.position=n=r!==t?Math.min(r,n):n,i.hint&&i.hint.toggleClass(i.options.invalidClass||\"\",n==r||n==o).css(i._position,n),i.resizing=!0,i.trigger(u,s(e,{position:n}))},_stop:function(t){var n=this;n.hint&&n.hint.remove(),n.resizing=!1,n.trigger(h,s(t,{position:n.position})),e(document.body).css(\"cursor\",\"\")},_cancel:function(e){var n=this;n.hint&&(n.position=t,n.hint.css(n._position,n._initialElementPosition),n._stop(e))},destroy:function(){var e=this;r.fn.destroy.call(e),e.draggable&&e.draggable.destroy()},press:function(e){if(e){var t=e.position(),n=this;n.userEvents.press(t.left,t.top,e[0]),n.targetPosition=t,n.target=e}},move:function(e){var n=this,i=n._position,r=n.targetPosition,o=n.position;o===t&&(o=r[i]),r[i]=o+e,n.userEvents.move(r.left,r.top)},end:function(){this.userEvents.end(),this.target=this.position=t}});n.ui.plugin(f)}(window.kendo.jQuery),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.sortable.min\",[\"kendo.draganddrop.min\"],e)}(function(){return function(e,t){function n(t,n){try{return e.contains(t,n)||t==n}catch(i){return!1}}function i(e){return e.clone()}function r(e){return e.clone().removeAttr(\"id\").css(\"visibility\",\"hidden\")}var o=window.kendo,a=o.ui.Widget,s=\"start\",l=\"beforeMove\",c=\"move\",d=\"end\",u=\"change\",h=\"cancel\",f=\"sort\",p=\"remove\",m=\"receive\",g=\">*\",v=-1,_=a.extend({init:function(e,t){var n=this;a.fn.init.call(n,e,t),n.options.placeholder||(n.options.placeholder=r),n.options.hint||(n.options.hint=i),n.draggable=n._createDraggable()},events:[s,l,c,d,u,h],options:{name:\"Sortable\",hint:null,placeholder:null,filter:g,holdToDrag:!1,disabled:null,container:null,connectWith:null,handler:null,cursorOffset:null,axis:null,ignore:null,autoScroll:!1,cursor:\"auto\",moveOnDragEnter:!1},destroy:function(){this.draggable.destroy(),a.fn.destroy.call(this)},_createDraggable:function(){var t=this,n=t.element,i=t.options;return new o.ui.Draggable(n,{filter:i.filter,hint:o.isFunction(i.hint)?i.hint:e(i.hint),holdToDrag:i.holdToDrag,container:i.container?e(i.container):null,cursorOffset:i.cursorOffset,axis:i.axis,ignore:i.ignore,autoScroll:i.autoScroll,dragstart:e.proxy(t._dragstart,t),dragcancel:e.proxy(t._dragcancel,t),drag:e.proxy(t._drag,t),dragend:e.proxy(t._dragend,t)})},_dragstart:function(t){var n=this.draggedElement=t.currentTarget,i=this.options.disabled,r=this.options.handler,a=this.options.placeholder,l=this.placeholder=e(o.isFunction(a)?a.call(this,n):a);i&&n.is(i)?t.preventDefault():r&&!e(t.initialTarget).is(r)?t.preventDefault():this.trigger(s,{item:n,draggableEvent:t})?t.preventDefault():(n.css(\"display\",\"none\"),n.before(l),this._setCursor())},_dragcancel:function(){this._cancel(),this.trigger(h,{item:this.draggedElement}),this._resetCursor()},_drag:function(n){var i,r,o,a,s,l=this.draggedElement,c=this._findTarget(n),d={left:n.x.location,top:n.y.location},u={x:n.x.delta,y:n.y.delta},h=this.options.axis,f=this.options.moveOnDragEnter,p={item:l,list:this,draggableEvent:n};if(\"x\"===h||\"y\"===h)return this._movementByAxis(h,d,u[h],p),t;if(c){if(i=this._getElementCenter(c.element),r={left:Math.round(d.left-i.left),top:Math.round(d.top-i.top)},e.extend(p,{target:c.element}),c.appendToBottom)return this._movePlaceholder(c,null,p),t;if(c.appendAfterHidden&&this._movePlaceholder(c,\"next\",p),this._isFloating(c.element)?0>u.x&&(f||0>r.left)?o=\"prev\":u.x>0&&(f||r.left>0)&&(o=\"next\"):0>u.y&&(f||0>r.top)?o=\"prev\":u.y>0&&(f||r.top>0)&&(o=\"next\"),o){for(s=\"prev\"===o?jQuery.fn.prev:jQuery.fn.next,a=s.call(c.element);a.length&&!a.is(\":visible\");)a=s.call(a);a[0]!=this.placeholder[0]&&this._movePlaceholder(c,o,p)}}},_dragend:function(n){var i,r,o,a,s=this.placeholder,l=this.draggedElement,c=this.indexOf(l),h=this.indexOf(s),g=this.options.connectWith;return this._resetCursor(),o={action:f,item:l,oldIndex:c,newIndex:h,draggableEvent:n},h>=0?r=this.trigger(d,o):(i=s.parents(g).getKendoSortable(),o.action=p,a=e.extend({},o,{action:m,oldIndex:v,newIndex:i.indexOf(s)}),r=!(!this.trigger(d,o)&&!i.trigger(d,a))),r||h===c?(this._cancel(),t):(s.replaceWith(l),l.show(),this.draggable.dropped=!0,o={action:this.indexOf(l)!=v?f:p,item:l,oldIndex:c,newIndex:this.indexOf(l),draggableEvent:n},this.trigger(u,o),i&&(a=e.extend({},o,{action:m,oldIndex:v,newIndex:i.indexOf(l)}),i.trigger(u,a)),t)},_findTarget:function(n){var i,r,o=this._findElementUnderCursor(n),a=this.options.connectWith;return e.contains(this.element[0],o)?(i=this.items(),r=i.filter(o)[0]||i.has(o)[0],r?{element:e(r),sortable:this}:null):this.element[0]==o&&this._isEmpty()?{element:this.element,sortable:this,appendToBottom:!0}:this.element[0]==o&&this._isLastHidden()?(r=this.items().eq(0),{element:r,sortable:this,appendAfterHidden:!0}):a?this._searchConnectedTargets(o,n):t},_findElementUnderCursor:function(e){var t=o.elementUnderCursor(e),i=e.sender;return n(i.hint[0],t)&&(i.hint.hide(),t=o.elementUnderCursor(e),t||(t=o.elementUnderCursor(e)),i.hint.show()),t},_searchConnectedTargets:function(t,n){var i,r,o,a,s=e(this.options.connectWith);for(a=0;s.length>a;a++)if(i=s.eq(a).getKendoSortable(),e.contains(s[a],t)){if(i)return r=i.items(),o=r.filter(t)[0]||r.has(t)[0],o?(i.placeholder=this.placeholder,{element:e(o),sortable:i}):null}else if(s[a]==t){if(i&&i._isEmpty())return{element:s.eq(a),sortable:i,appendToBottom:!0};if(this._isCursorAfterLast(i,n))return o=i.items().last(),{element:o,sortable:i}}},_isCursorAfterLast:function(e,t){var n,i,r=e.items().last(),a={left:t.x.location,top:t.y.location};return n=o.getOffset(r),n.top+=r.outerHeight(),n.left+=r.outerWidth(),i=this._isFloating(r)?n.left-a.left:n.top-a.top,0>i?!0:!1},_movementByAxis:function(t,n,i,r){var o,a=\"x\"===t?n.left:n.top,s=0>i?this.placeholder.prev():this.placeholder.next();s.length&&!s.is(\":visible\")&&(s=0>i?s.prev():s.next()),e.extend(r,{target:s}),o=this._getElementCenter(s),o&&(o=\"x\"===t?o.left:o.top),s.length&&0>i&&0>a-o?this._movePlaceholder({element:s,sortable:this},\"prev\",r):s.length&&i>0&&a-o>0&&this._movePlaceholder({element:s,sortable:this},\"next\",r)},_movePlaceholder:function(e,t,n){var i=this.placeholder;e.sortable.trigger(l,n)||(t?\"prev\"===t?e.element.before(i):\"next\"===t&&e.element.after(i):e.element.append(i),e.sortable.trigger(c,n))},_setCursor:function(){var t,n=this.options.cursor;n&&\"auto\"!==n&&(t=e(document.body),this._originalCursorType=t.css(\"cursor\"),t.css({cursor:n}),this._cursorStylesheet||(this._cursorStylesheet=e(\"\")),this._cursorStylesheet.appendTo(t))},_resetCursor:function(){this._originalCursorType&&(e(document.body).css(\"cursor\",this._originalCursorType),this._originalCursorType=null,this._cursorStylesheet.remove())},_getElementCenter:function(e){var t=e.length?o.getOffset(e):null;return t&&(t.top+=e.outerHeight()/2,t.left+=e.outerWidth()/2),t},_isFloating:function(e){return/left|right/.test(e.css(\"float\"))||/inline|table-cell/.test(e.css(\"display\"))},_cancel:function(){this.draggedElement.show(),this.placeholder.remove()},_items:function(){var e,t=this.options.filter;return e=t?this.element.find(t):this.element.children()},indexOf:function(e){var t=this._items(),n=this.placeholder,i=this.draggedElement;return n&&e[0]==n[0]?t.not(i).index(e):t.not(n).index(e)},items:function(){var e=this.placeholder,t=this._items();return e&&(t=t.not(e)),t},_isEmpty:function(){return!this.items().length},_isLastHidden:function(){return 1===this.items().length&&this.items().is(\":hidden\")}});o.ui.plugin(_)}(window.kendo.jQuery),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.selectable.min\",[\"kendo.core.min\",\"kendo.userevents.min\"],e)}(function(){return function(e,t){function n(e,t){if(!e.is(\":visible\"))return!1;var n=r.getOffset(e),i=t.left+t.width,o=t.top+t.height;return n.right=n.left+e.outerWidth(),n.bottom=n.top+e.outerHeight(),!(n.left>i||t.left>n.right||n.top>o||t.top>n.bottom)}var i,r=window.kendo,o=r.ui.Widget,a=e.proxy,s=Math.abs,l=\"aria-selected\",c=\"k-state-selected\",d=\"k-state-selecting\",u=\"k-selectable\",h=\"change\",f=\".kendoSelectable\",p=\"k-state-unselecting\",m=\"input,a,textarea,.k-multiselect-wrap,select,button,a.k-button>.k-icon,button.k-button>.k-icon,span.k-icon.k-i-expand,span.k-icon.k-i-collapse\",g=r.support.browser.msie,v=!1;!function(e){!function(){e('
    ').on(\"click\",\">*\",function(){v=!0}).find(\"span\").click().end().off()}()}(e),i=o.extend({init:function(t,n){var i,s=this;o.fn.init.call(s,t,n),s._marquee=e(\"
    \"),s._lastActive=null,s.element.addClass(u),s.relatedTarget=s.options.relatedTarget,i=s.options.multiple,this.options.aria&&i&&s.element.attr(\"aria-multiselectable\",!0),s.userEvents=new r.UserEvents(s.element,{global:!0,allowSelection:!0,filter:(v?\"\":\".\"+u+\" \")+s.options.filter,tap:a(s._tap,s)}),i&&s.userEvents.bind(\"start\",a(s._start,s)).bind(\"move\",a(s._move,s)).bind(\"end\",a(s._end,s)).bind(\"select\",a(s._select,s))},events:[h],options:{name:\"Selectable\",filter:\">*\",multiple:!1,relatedTarget:e.noop},_isElement:function(e){var t,n=this.element,i=n.length,r=!1;for(e=e[0],t=0;i>t;t++)if(n[t]===e){r=!0;break}return r},_tap:function(t){var n,i=e(t.target),r=this,o=t.event.ctrlKey||t.event.metaKey,a=r.options.multiple,s=a&&t.event.shiftKey,l=t.event.which,d=t.event.button;!r._isElement(i.closest(\".\"+u))||l&&3==l||d&&2==d||this._allowSelection(t.event.target)&&(n=i.hasClass(c),a&&o||r.clear(),i=i.add(r.relatedTarget(i)),s?r.selectRange(r._firstSelectee(),i):(n&&o?(r._unselect(i),r._notify(h)):r.value(i),r._lastActive=r._downTarget=i))},_start:function(n){var i,r=this,o=e(n.target),a=o.hasClass(c),s=n.event.ctrlKey||n.event.metaKey;if(this._allowSelection(n.event.target)){if(r._downTarget=o,!r._isElement(o.closest(\".\"+u)))return r.userEvents.cancel(),t;r.options.useAllItems?r._items=r.element.find(r.options.filter):(i=o.closest(r.element),r._items=i.find(r.options.filter)),n.sender.capture(),r._marquee.appendTo(document.body).css({left:n.x.client+1,top:n.y.client+1,width:0,height:0}),s||r.clear(),o=o.add(r.relatedTarget(o)),a&&(r._selectElement(o,!0),s&&o.addClass(p))}},_move:function(e){var t=this,n={left:e.x.startLocation>e.x.location?e.x.location:e.x.startLocation,top:e.y.startLocation>e.y.location?e.y.location:e.y.startLocation,width:s(e.x.initialDelta),height:s(e.y.initialDelta)};t._marquee.css(n),t._invalidateSelectables(n,e.event.ctrlKey||e.event.metaKey),e.preventDefault()},_end:function(){var e,t=this;t._marquee.remove(),t._unselect(t.element.find(t.options.filter+\".\"+p)).removeClass(p),e=t.element.find(t.options.filter+\".\"+d),e=e.add(t.relatedTarget(e)),t.value(e),t._lastActive=t._downTarget,t._items=null},_invalidateSelectables:function(e,t){var i,r,o,a,s=this._downTarget[0],l=this._items;for(i=0,r=l.length;r>i;i++)a=l.eq(i),o=a.add(this.relatedTarget(a)),n(a,e)?a.hasClass(c)?t&&s!==a[0]&&o.removeClass(c).addClass(p):a.hasClass(d)||a.hasClass(p)||o.addClass(d):a.hasClass(d)?o.removeClass(d):t&&a.hasClass(p)&&o.removeClass(p).addClass(c)},value:function(e){var n=this,i=a(n._selectElement,n);return e?(e.each(function(){i(this)}),n._notify(h),t):n.element.find(n.options.filter+\".\"+c)},_firstSelectee:function(){var e,t=this;return null!==t._lastActive?t._lastActive:(e=t.value(),e.length>0?e[0]:t.element.find(t.options.filter)[0])},_selectElement:function(t,n){var i=e(t),r=!n&&this._notify(\"select\",{element:t});i.removeClass(d),r||(i.addClass(c),this.options.aria&&i.attr(l,!0))},_notify:function(e,t){return t=t||{},this.trigger(e,t)},_unselect:function(e){return e.removeClass(c),this.options.aria&&e.attr(l,!1),e},_select:function(t){this._allowSelection(t.event.target)&&(!g||g&&!e(r._activeElement()).is(m))&&t.preventDefault()},_allowSelection:function(t){return e(t).is(m)?(this.userEvents.cancel(),this._downTarget=null,!1):!0},resetTouchEvents:function(){this.userEvents.cancel()},clear:function(){var e=this.element.find(this.options.filter+\".\"+c);this._unselect(e)},selectRange:function(t,n){var i,r,o,a=this;for(a.clear(),a.element.length>1&&(o=a.options.continuousItems()),o&&o.length||(o=a.element.find(a.options.filter)),t=e.inArray(e(t)[0],o),n=e.inArray(e(n)[0],o),t>n&&(r=t,t=n,n=r),a.options.useAllItems||(n+=a.element.length-1),i=t;n>=i;i++)a._selectElement(o[i]);a._notify(h)},destroy:function(){var e=this;o.fn.destroy.call(e),e.element.off(f),e.userEvents.destroy(),e._marquee=e._lastActive=e.element=e.userEvents=null}}),i.parseOptions=function(e){var t=\"string\"==typeof e&&e.toLowerCase();return{multiple:t&&t.indexOf(\"multiple\")>-1,cell:t&&t.indexOf(\"cell\")>-1}},r.ui.plugin(i)}(window.kendo.jQuery),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.button.min\",[\"kendo.core.min\"],e)}(function(){return function(e,t){var n=window.kendo,i=n.ui.Widget,r=e.proxy,o=n.keys,a=\"click\",s=\"k-button\",l=\"k-button-icon\",c=\"k-button-icontext\",d=\".kendoButton\",u=\"disabled\",h=\"k-state-disabled\",f=\"k-state-focused\",p=\"k-state-selected\",m=i.extend({init:function(e,t){var o=this;i.fn.init.call(o,e,t),e=o.wrapper=o.element,t=o.options,e.addClass(s).attr(\"role\",\"button\"),t.enable=t.enable&&!e.attr(u),o.enable(t.enable),o._tabindex(),o._graphics(),e.on(a+d,r(o._click,o)).on(\"focus\"+d,r(o._focus,o)).on(\"blur\"+d,r(o._blur,o)).on(\"keydown\"+d,r(o._keydown,o)).on(\"keyup\"+d,r(o._keyup,o)),n.notify(o)},destroy:function(){var e=this;e.wrapper.off(d),i.fn.destroy.call(e)},events:[a],options:{name:\"Button\",icon:\"\",spriteCssClass:\"\",imageUrl:\"\",enable:!0},_isNativeButton:function(){return\"button\"==this.element.prop(\"tagName\").toLowerCase()},_click:function(e){this.options.enable&&this.trigger(a,{event:e})&&e.preventDefault()},_focus:function(){this.options.enable&&this.element.addClass(f)},_blur:function(){this.element.removeClass(f)},_keydown:function(e){var t=this;t._isNativeButton()||(e.keyCode==o.ENTER||e.keyCode==o.SPACEBAR)&&(e.keyCode==o.SPACEBAR&&(e.preventDefault(),t.options.enable&&t.element.addClass(p)),t._click(e))},_keyup:function(){this.element.removeClass(p)},_graphics:function(){var t,n,i,r=this,o=r.element,a=r.options,s=a.icon,d=a.spriteCssClass,u=a.imageUrl;(d||u||s)&&(i=!0,o.contents().not(\"span.k-sprite\").not(\"span.k-icon\").not(\"img.k-image\").each(function(t,n){(1==n.nodeType||3==n.nodeType&&e.trim(n.nodeValue).length>0)&&(i=!1)}),o.addClass(i?l:c)),s?(t=o.children(\"span.k-icon\").first(),t[0]||(t=e('').prependTo(o)),t.addClass(\"k-i-\"+s)):d?(t=o.children(\"span.k-sprite\").first(),t[0]||(t=e('').prependTo(o)),t.addClass(d)):u&&(n=o.children(\"img.k-image\").first(),n[0]||(n=e('\"icon\"').prependTo(o)),n.attr(\"src\",u))},enable:function(e){var n=this,i=n.element;e===t&&(e=!0),e=!!e,n.options.enable=e,i.toggleClass(h,!e).attr(\"aria-disabled\",!e).attr(u,!e);try{i.blur()}catch(r){}}});n.ui.plugin(m)}(window.kendo.jQuery),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.pager.min\",[\"kendo.data.min\"],e)}(function(){return function(e,t){function n(e,t,n,i,r){return e({idx:t,text:n,ns:c.ns,numeric:i,title:r||\"\"})}function i(e,t,n){return k({className:e.substring(1),text:t,wrapClassName:n||\"\"})}function r(e,t,n,i){e.find(t).parent().attr(c.attr(\"page\"),n).attr(\"tabindex\",-1).toggleClass(\"k-state-disabled\",i)}function o(e,t){r(e,f,1,1>=t)}function a(e,t){r(e,m,Math.max(1,t-1),1>=t)}function s(e,t,n){r(e,g,Math.min(n,t+1),t>=n)}function l(e,t,n){r(e,p,n,t>=n)}var c=window.kendo,d=c.ui,u=d.Widget,h=e.proxy,f=\".k-i-seek-w\",p=\".k-i-seek-e\",m=\".k-i-arrow-w\",g=\".k-i-arrow-e\",v=\"change\",_=\".kendoPager\",b=\"click\",w=\"keydown\",y=\"disabled\",k=c.template('#=text#'),x=u.extend({init:function(t,n){var r,d,y,k,x=this;u.fn.init.call(x,t,n),n=x.options,x.dataSource=c.data.DataSource.create(n.dataSource),x.linkTemplate=c.template(x.options.linkTemplate),x.selectTemplate=c.template(x.options.selectTemplate),x.currentPageTemplate=c.template(x.options.currentPageTemplate),r=x.page(),d=x.totalPages(),x._refreshHandler=h(x.refresh,x),x.dataSource.bind(v,x._refreshHandler),n.previousNext&&(x.element.find(f).length||(x.element.append(i(f,n.messages.first,\"k-pager-first\")),o(x.element,r,d)),x.element.find(m).length||(x.element.append(i(m,n.messages.previous)),a(x.element,r,d))),n.numeric&&(x.list=x.element.find(\".k-pager-numbers\"),x.list.length||(x.list=e('
      ').appendTo(x.element))),n.input&&(x.element.find(\".k-pager-input\").length||x.element.append(''+n.messages.page+''+c.format(n.messages.of,d)+\"\"),x.element.on(w+_,\".k-pager-input input\",h(x._keydown,x))),n.previousNext&&(x.element.find(g).length||(x.element.append(i(g,n.messages.next)),s(x.element,r,d)),x.element.find(p).length||(x.element.append(i(p,n.messages.last,\"k-pager-last\")),l(x.element,r,d))),n.pageSizes&&(x.element.find(\".k-pager-sizes\").length||(y=n.pageSizes.length?n.pageSizes:[\"all\",5,10,20],k=e.map(y,function(e){return e.toLowerCase&&\"all\"===e.toLowerCase()?\"\":\"\"}),e(''+c.format(v.messages.of,w)).find(\"input\").val(m).attr(y,1>b).toggleClass(\"k-state-disabled\",1>b),v.previousNext&&(o(f.element,m,w),a(f.element,m,w),s(f.element,m,w),l(f.element,m,w)),v.pageSizes&&(d=f.element.find(\".k-pager-sizes option[value='all']\").length>0,u=d&&_===this.dataSource.total(),h=_,u&&(_=\"all\",h=v.messages.allPages),f.element.find(\".k-pager-sizes select\").val(_).filter(\"[\"+c.attr(\"role\")+\"=dropdownlist]\").kendoDropDownList(\"value\",_).kendoDropDownList(\"text\",h))}},_keydown:function(e){if(e.keyCode===c.keys.ENTER){var t=this.element.find(\".k-pager-input\").find(\"input\"),n=parseInt(t.val(),10);(isNaN(n)||1>n||n>this.totalPages())&&(n=this.page()),t.val(n),this.page(n)}},_refreshClick:function(e){e.preventDefault(),this.dataSource.read()},_change:function(e){var t=e.currentTarget.value,n=parseInt(t,10),i=this.dataSource;isNaN(n)?\"all\"==(t+\"\").toLowerCase()&&i.pageSize(i.total()):i.pageSize(n)},_toggleActive:function(){this.list.toggleClass(\"k-state-expanded\")},_click:function(t){var n=e(t.currentTarget);t.preventDefault(),n.is(\".k-state-disabled\")||this.page(n.attr(c.attr(\"page\")))},totalPages:function(){return Math.ceil((this.dataSource.total()||0)/(this.pageSize()||1))},pageSize:function(){return this.dataSource.pageSize()||this.dataSource.total()},page:function(e){return e===t?this.dataSource.total()>0?this.dataSource.page():0:(this.dataSource.page(e),this.trigger(v,{index:e}),t)}});d.plugin(x)}(window.kendo.jQuery),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.popup.min\",[\"kendo.core.min\"],e)}(function(){return function(e,t){function n(t,n){return t===n||e.contains(t,n)}var i=window.kendo,r=i.ui,o=r.Widget,a=i.support,s=i.getOffset,l=\"open\",c=\"close\",d=\"deactivate\",u=\"activate\",h=\"center\",f=\"left\",p=\"right\",m=\"top\",g=\"bottom\",v=\"absolute\",_=\"hidden\",b=\"body\",w=\"location\",y=\"position\",k=\"visible\",x=\"effects\",C=\"k-state-active\",S=\"k-state-border\",T=/k-state-border-(\\w+)/,D=\".k-picker-wrap, .k-dropdown-wrap, .k-link\",A=\"down\",E=e(document.documentElement),I=e(window),F=\"scroll\",M=a.transitions.css,R=M+\"transform\",P=e.extend,z=\".kendoPopup\",B=[\"font-size\",\"font-family\",\"font-stretch\",\"font-style\",\"font-weight\",\"line-height\"],L=o.extend({init:function(t,n){var r,s=this;n=n||{},n.isRtl&&(n.origin=n.origin||g+\" \"+p,n.position=n.position||m+\" \"+p),o.fn.init.call(s,t,n),t=s.element,n=s.options,s.collisions=n.collision?n.collision.split(\" \"):[],s.downEvent=i.applyEventMap(A,i.guid()),1===s.collisions.length&&s.collisions.push(s.collisions[0]),r=e(s.options.anchor).closest(\".k-popup,.k-group\").filter(\":not([class^=km-])\"),n.appendTo=e(e(n.appendTo)[0]||r[0]||b),s.element.hide().addClass(\"k-popup k-group k-reset\").toggleClass(\"k-rtl\",!!n.isRtl).css({position:v}).appendTo(n.appendTo).on(\"mouseenter\"+z,function(){s._hovered=!0}).on(\"mouseleave\"+z,function(){s._hovered=!1}),s.wrapper=e(),n.animation===!1&&(n.animation={open:{effects:{}},close:{hide:!0,effects:{}}}),P(n.animation.open,{complete:function(){s.wrapper.css({overflow:k}),s._activated=!0,s._trigger(u)}}),P(n.animation.close,{complete:function(){s._animationClose()}}),s._mousedownProxy=function(e){s._mousedown(e)},s._resizeProxy=a.mobileOS.android?function(e){setTimeout(function(){s._resize(e)},600)}:function(e){s._resize(e)},n.toggleTarget&&e(n.toggleTarget).on(n.toggleEvent+z,e.proxy(s.toggle,s))},events:[l,u,c,d],options:{name:\"Popup\",toggleEvent:\"click\",origin:g+\" \"+f,position:m+\" \"+f,anchor:b,appendTo:null,collision:\"flip fit\",viewport:window,copyAnchorStyles:!0,autosize:!1,modal:!1,adjustSize:{width:0,height:0},animation:{open:{effects:\"slideIn:down\",transition:!0,duration:200},close:{duration:100,hide:!0}}},_animationClose:function(){var e=this,t=e.wrapper.data(w);e.wrapper.hide(),t&&e.wrapper.css(t),e.options.anchor!=b&&e._hideDirClass(),e._closing=!1,\r\ne._trigger(d)},destroy:function(){var t,n=this,r=n.options,a=n.element.off(z);o.fn.destroy.call(n),r.toggleTarget&&e(r.toggleTarget).off(z),r.modal||(E.unbind(n.downEvent,n._mousedownProxy),n._toggleResize(!1)),i.destroy(n.element.children()),a.removeData(),r.appendTo[0]===document.body&&(t=a.parent(\".k-animation-container\"),t[0]?t.remove():a.remove())},open:function(t,n){var r,o,s=this,c={isFixed:!isNaN(parseInt(n,10)),x:t,y:n},d=s.element,u=s.options,h=e(u.anchor),f=d[0]&&d.hasClass(\"km-widget\");if(!s.visible()){if(u.copyAnchorStyles&&(f&&\"font-size\"==B[0]&&B.shift(),d.css(i.getComputedStyles(h[0],B))),d.data(\"animating\")||s._trigger(l))return;s._activated=!1,u.modal||(E.unbind(s.downEvent,s._mousedownProxy).bind(s.downEvent,s._mousedownProxy),s._toggleResize(!1),s._toggleResize(!0)),s.wrapper=o=i.wrap(d,u.autosize).css({overflow:_,display:\"block\",position:v}),a.mobileOS.android&&o.css(R,\"translatez(0)\"),o.css(y),e(u.appendTo)[0]==document.body&&o.css(m,\"-10000px\"),s.flipped=s._position(c),r=s._openAnimation(),u.anchor!=b&&s._showDirClass(r),d.data(x,r.effects).kendoStop(!0).kendoAnimate(r)}},_openAnimation:function(){var e=P(!0,{},this.options.animation.open);return e.effects=i.parseEffects(e.effects,this.flipped),e},_hideDirClass:function(){var t=e(this.options.anchor),n=((t.attr(\"class\")||\"\").match(T)||[\"\",\"down\"])[1],r=S+\"-\"+n;t.removeClass(r).children(D).removeClass(C).removeClass(r),this.element.removeClass(S+\"-\"+i.directions[n].reverse)},_showDirClass:function(t){var n=t.effects.slideIn?t.effects.slideIn.direction:\"down\",r=S+\"-\"+n;e(this.options.anchor).addClass(r).children(D).addClass(C).addClass(r),this.element.addClass(S+\"-\"+i.directions[n].reverse)},position:function(){this.visible()&&(this.flipped=this._position())},toggle:function(){var e=this;e[e.visible()?c:l]()},visible:function(){return this.element.is(\":\"+k)},close:function(n){var r,o,a,s,l=this,d=l.options;if(l.visible()){if(r=l.wrapper[0]?l.wrapper:i.wrap(l.element).hide(),l._toggleResize(!1),l._closing||l._trigger(c))return l._toggleResize(!0),t;l.element.find(\".k-popup\").each(function(){var t=e(this),i=t.data(\"kendoPopup\");i&&i.close(n)}),E.unbind(l.downEvent,l._mousedownProxy),n?o={hide:!0,effects:{}}:(o=P(!0,{},d.animation.close),a=l.element.data(x),s=o.effects,!s&&!i.size(s)&&a&&i.size(a)&&(o.effects=a,o.reverse=!0),l._closing=!0),l.element.kendoStop(!0),r.css({overflow:_}),l.element.kendoAnimate(o)}},_trigger:function(e){return this.trigger(e,{type:e})},_resize:function(e){var t=this;-1!==a.resize.indexOf(e.type)?(clearTimeout(t._resizeTimeout),t._resizeTimeout=setTimeout(function(){t._position(),t._resizeTimeout=null},50)):(!t._hovered||t._activated&&t.element.hasClass(\"k-list-container\"))&&t.close()},_toggleResize:function(e){var t=e?\"on\":\"off\",n=a.resize;a.mobileOS.ios||a.mobileOS.android||(n+=\" \"+F),this._scrollableParents()[t](F,this._resizeProxy),I[t](n,this._resizeProxy)},_mousedown:function(t){var r=this,o=r.element[0],a=r.options,s=e(a.anchor)[0],l=a.toggleTarget,c=i.eventTarget(t),d=e(c).closest(\".k-popup\"),u=d.parent().parent(\".km-shim\").length;d=d[0],(u||!d||d===r.element[0])&&\"popover\"!==e(t.target).closest(\"a\").data(\"rel\")&&(n(o,c)||n(s,c)||l&&n(e(l)[0],c)||r.close())},_fit:function(e,t,n){var i=0;return e+t>n&&(i=n-(e+t)),0>e&&(i=-e),i},_flip:function(e,t,n,i,r,o,a){var s=0;return a=a||t,o!==r&&o!==h&&r!==h&&(e+a>i&&(s+=-(n+t)),0>e+s&&(s+=n+t)),s},_scrollableParents:function(){return e(this.options.anchor).parentsUntil(\"body\").filter(function(e,t){return i.isScrollable(t)})},_position:function(t){var n,r,o,l,c,d,u,h,f,p,m,g,_,b=this,k=b.element,x=b.wrapper,C=b.options,S=e(C.viewport),T=S.offset(),D=e(C.anchor),A=C.origin.toLowerCase().split(\" \"),E=C.position.toLowerCase().split(\" \"),I=b.collisions,F=a.zoomLevel(),M=10002,R=!!(S[0]==window&&window.innerWidth&&1.02>=F),z=0,B=document.documentElement,L=R?window.innerWidth:S.width(),H=R?window.innerHeight:S.height();if(R&&B.scrollHeight-B.clientHeight>0&&(L-=i.support.scrollbar()),n=D.parents().filter(x.siblings()),n[0])if(o=Math.max(+n.css(\"zIndex\"),0))M=o+10;else for(r=D.parentsUntil(n),l=r.length;l>z;z++)o=+e(r[z]).css(\"zIndex\"),o&&o>M&&(M=o+10);return x.css(\"zIndex\",M),x.css(t&&t.isFixed?{left:t.x,top:t.y}:b._align(A,E)),c=s(x,y,D[0]===x.offsetParent()[0]),d=s(x),u=D.offsetParent().parent(\".k-animation-container,.k-popup,.k-group\"),u.length&&(c=s(x,y,!0),d=s(x)),S[0]===window?(d.top-=window.pageYOffset||document.documentElement.scrollTop||0,d.left-=window.pageXOffset||document.documentElement.scrollLeft||0):(d.top-=T.top,d.left-=T.left),b.wrapper.data(w)||x.data(w,P({},c)),h=P({},d),f=P({},c),p=C.adjustSize,\"fit\"===I[0]&&(f.top+=b._fit(h.top,x.outerHeight()+p.height,H/F)),\"fit\"===I[1]&&(f.left+=b._fit(h.left,x.outerWidth()+p.width,L/F)),m=P({},f),g=k.outerHeight(),_=x.outerHeight(),!x.height()&&g&&(_+=g),\"flip\"===I[0]&&(f.top+=b._flip(h.top,g,D.outerHeight(),H/F,A[0],E[0],_)),\"flip\"===I[1]&&(f.left+=b._flip(h.left,k.outerWidth(),D.outerWidth(),L/F,A[1],E[1],x.outerWidth())),k.css(y,v),x.css(f),f.left!=m.left||f.top!=m.top},_align:function(t,n){var i,r=this,o=r.wrapper,a=e(r.options.anchor),l=t[0],c=t[1],d=n[0],u=n[1],f=s(a),m=e(r.options.appendTo),v=o.outerWidth(),_=o.outerHeight(),b=a.outerWidth(),w=a.outerHeight(),y=f.top,k=f.left,x=Math.round;return m[0]!=document.body&&(i=s(m),y-=i.top,k-=i.left),l===g&&(y+=w),l===h&&(y+=x(w/2)),d===g&&(y-=_),d===h&&(y-=x(_/2)),c===p&&(k+=b),c===h&&(k+=x(b/2)),u===p&&(k-=v),u===h&&(k-=x(v/2)),{top:y,left:k}}});r.plugin(L)}(window.kendo.jQuery),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.notification.min\",[\"kendo.core.min\",\"kendo.popup.min\"],e)}(function(){return function(e,t){var n=window.kendo,i=n.ui.Widget,r=e.proxy,o=e.extend,a=window.setTimeout,s=\"click\",l=\"show\",c=\"hide\",d=\"k-notification\",u=\".k-notification-wrap .k-i-close\",h=\"info\",f=\"success\",p=\"warning\",m=\"error\",g=\"top\",v=\"left\",_=\"bottom\",b=\"right\",w=\"up\",y=\".kendoNotification\",k='
      ',x='
      #=typeIcon##=content#Hide
      ',C=i.extend({init:function(t,r){var o=this;i.fn.init.call(o,t,r),r=o.options,r.appendTo&&e(r.appendTo).is(t)||o.element.hide(),o._compileTemplates(r.templates),o._guid=\"_\"+n.guid(),o._isRtl=n.support.isRtl(t),o._compileStacking(r.stacking,r.position.top,r.position.left),n.notify(o)},events:[l,c],options:{name:\"Notification\",position:{pinned:!0,top:null,left:null,bottom:20,right:20},stacking:\"default\",hideOnClick:!0,button:!1,allowHideAfter:0,autoHideAfter:5e3,appendTo:null,width:null,height:null,templates:[],animation:{open:{effects:\"fade:in\",duration:300},close:{effects:\"fade:out\",duration:600,hide:!0}}},_compileTemplates:function(t){var i=this,r=n.template;i._compiled={},e.each(t,function(t,n){i._compiled[n.type]=r(n.template||e(\"#\"+n.templateId).html())}),i._defaultCompiled=r(x)},_getCompiled:function(e){var t=this,n=t._defaultCompiled;return e?t._compiled[e]||n:n},_compileStacking:function(e,t,n){var i,r,o=this,a={paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0},s=null!==n?v:b;switch(e){case\"down\":i=_+\" \"+s,r=g+\" \"+s,delete a.paddingBottom;break;case b:i=g+\" \"+b,r=g+\" \"+v,delete a.paddingRight;break;case v:i=g+\" \"+v,r=g+\" \"+b,delete a.paddingLeft;break;case w:i=g+\" \"+s,r=_+\" \"+s,delete a.paddingTop;break;default:null!==t?(i=_+\" \"+s,r=g+\" \"+s,delete a.paddingBottom):(i=g+\" \"+s,r=_+\" \"+s,delete a.paddingTop)}o._popupOrigin=i,o._popupPosition=r,o._popupPaddings=a},_attachPopupEvents:function(e,t){function i(e){e.on(s+y,function(){o._hidePopup(t)})}var r,o=this,l=e.allowHideAfter,c=!isNaN(l)&&l>0;t.options.anchor!==document.body&&t.options.origin.indexOf(b)>0&&t.bind(\"open\",function(){var e=n.getShadows(t.element);a(function(){t.wrapper.css(\"left\",parseFloat(t.wrapper.css(\"left\"))+e.left+e.right)})}),e.hideOnClick?t.bind(\"activate\",function(){c?a(function(){i(t.element)},l):i(t.element)}):e.button&&(r=t.element.find(u),c?a(function(){i(r)},l):i(r))},_showPopup:function(t,i){var r,s,l=this,c=i.autoHideAfter,d=i.position.left,h=i.position.top;s=e(\".\"+l._guid+\":not(.k-hiding)\").last(),r=new n.ui.Popup(t,{anchor:s[0]?s:document.body,origin:l._popupOrigin,position:l._popupPosition,animation:i.animation,modal:!0,collision:\"\",isRtl:l._isRtl,close:function(){l._triggerHide(this.element)},deactivate:function(e){e.sender.element.off(y),e.sender.element.find(u).off(y),e.sender.destroy()}}),l._attachPopupEvents(i,r),s[0]?r.open():(null===d&&(d=e(window).width()-t.width()-i.position.right),null===h&&(h=e(window).height()-t.height()-i.position.bottom),r.open(d,h)),r.wrapper.addClass(l._guid).css(o({margin:0},l._popupPaddings)),i.position.pinned?(r.wrapper.css(\"position\",\"fixed\"),s[0]&&l._togglePin(r.wrapper,!0)):s[0]||l._togglePin(r.wrapper,!1),c>0&&a(function(){l._hidePopup(r)},c)},_hidePopup:function(e){e.wrapper.addClass(\"k-hiding\"),e.close()},_togglePin:function(t,n){var i=e(window),r=n?-1:1;t.css({top:parseInt(t.css(g),10)+r*i.scrollTop(),left:parseInt(t.css(v),10)+r*i.scrollLeft()})},_attachStaticEvents:function(e,t){function n(e){e.on(s+y,r(i._hideStatic,i,t))}var i=this,o=e.allowHideAfter,l=!isNaN(o)&&o>0;e.hideOnClick?l?a(function(){n(t)},o):n(t):e.button&&(l?a(function(){n(t.find(u))},o):n(t.find(u)))},_showStatic:function(e,t){var n=this,i=t.autoHideAfter,r=t.animation,o=t.stacking==w||t.stacking==v?\"prependTo\":\"appendTo\";e.addClass(n._guid)[o](t.appendTo).hide().kendoAnimate(r.open||!1),n._attachStaticEvents(t,e),i>0&&a(function(){n._hideStatic(e)},i)},_hideStatic:function(e){e.kendoAnimate(o(this.options.animation.close||!1,{complete:function(){e.off(y).find(u).off(y),e.remove()}})),this._triggerHide(e)},_triggerHide:function(e){this.trigger(c,{element:e}),this.angular(\"cleanup\",function(){return{elements:e}})},show:function(i,r){var a,s,c=this,u=c.options,f=e(k);return r||(r=h),null!==i&&i!==t&&\"\"!==i&&(n.isFunction(i)&&(i=i()),s={typeIcon:r,content:\"\"},a=e.isPlainObject(i)?o(s,i):o(s,{content:i}),f.addClass(d+\"-\"+r).toggleClass(d+\"-button\",u.button).attr(\"data-role\",\"alert\").css({width:u.width,height:u.height}).append(c._getCompiled(r)(a)),c.angular(\"compile\",function(){return{elements:f,data:[{dataItem:a}]}}),e(u.appendTo)[0]?c._showStatic(f,u):c._showPopup(f,u),c.trigger(l,{element:f})),c},info:function(e){return this.show(e,h)},success:function(e){return this.show(e,f)},warning:function(e){return this.show(e,p)},error:function(e){return this.show(e,m)},hide:function(){var t=this,n=t.getNotifications();return n.each(t.options.appendTo?function(n,i){t._hideStatic(e(i))}:function(n,i){var r=e(i).data(\"kendoPopup\");r&&t._hidePopup(r)}),t},getNotifications:function(){var t=this,n=e(\".\"+t._guid);return t.options.appendTo?n:n.children(\".\"+d)},setOptions:function(e){var n,r=this;i.fn.setOptions.call(r,e),n=r.options,e.templates!==t&&r._compileTemplates(n.templates),(e.stacking!==t||e.position!==t)&&r._compileStacking(n.stacking,n.position.top,n.position.left)},destroy:function(){i.fn.destroy.call(this),this.getNotifications().off(y).find(u).off(y)}});n.ui.plugin(C)}(window.kendo.jQuery),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.tooltip.min\",[\"kendo.core.min\",\"kendo.popup.min\"],e)}(function(){return function(e,t){function n(e){for(;e.length;)i(e),e=e.parent()}function i(e){var t=e.data(a.ns+\"title\");t&&(e.attr(\"title\",t),e.removeData(a.ns+\"title\"))}function r(e){var t=e.attr(\"title\");t&&(e.data(a.ns+\"title\",t),e.attr(\"title\",\"\"))}function o(e){for(;e.length&&!e.is(\"body\");)r(e),e=e.parent()}var a=window.kendo,s=a.ui.Widget,l=a.ui.Popup,c=a.isFunction,d=e.isPlainObject,u=e.extend,h=e.proxy,f=e(document),p=a.isLocalUrl,m=\"_tt_active\",g=\"aria-describedby\",v=\"show\",_=\"hide\",b=\"error\",w=\"contentLoad\",y=\"requestStart\",k=\"k-content-frame\",x='
      #if (!autoHide) {# #}#
      #if (callout){ #
      #}#
      ',C=a.template(\"\"),S=\".kendoTooltip\",T={bottom:{origin:\"bottom center\",position:\"top center\"},top:{origin:\"top center\",position:\"bottom center\"},left:{origin:\"center left\",position:\"center right\",collision:\"fit flip\"},right:{origin:\"center right\",position:\"center left\",collision:\"fit flip\"},center:{position:\"center center\",origin:\"center center\"}},D={top:\"bottom\",bottom:\"top\",left:\"right\",right:\"left\",center:\"center\"},A={bottom:\"n\",top:\"s\",left:\"e\",right:\"w\",center:\"n\"},E={horizontal:{offset:\"top\",size:\"outerHeight\"},vertical:{offset:\"left\",size:\"outerWidth\"}},I=function(e){return e.target.data(a.ns+\"title\")},F=s.extend({init:function(e,t){var n,i=this;s.fn.init.call(i,e,t),n=i.options.position.match(/left|right/)?\"horizontal\":\"vertical\",i.dimensions=E[n],i._documentKeyDownHandler=h(i._documentKeyDown,i),i.element.on(i.options.showOn+S,i.options.filter,h(i._showOn,i)).on(\"mouseenter\"+S,i.options.filter,h(i._mouseenter,i)),this.options.autoHide&&i.element.on(\"mouseleave\"+S,i.options.filter,h(i._mouseleave,i))},options:{name:\"Tooltip\",filter:\"\",content:I,showAfter:100,callout:!0,position:\"bottom\",showOn:\"mouseenter\",autoHide:!0,width:null,height:null,animation:{open:{effects:\"fade:in\",duration:0},close:{effects:\"fade:out\",duration:40,hide:!0}}},events:[v,_,w,b,y],_mouseenter:function(t){o(e(t.currentTarget))},_showOn:function(t){var n=this,i=e(t.currentTarget);n.options.showOn&&n.options.showOn.match(/click|focus/)?n._show(i):(clearTimeout(n.timeout),n.timeout=setTimeout(function(){n._show(i)},n.options.showAfter))},_appendContent:function(e){var t,n=this,i=n.options.content,r=n.content,o=n.options.iframe;d(i)&&i.url?(\"iframe\"in n.options||(o=!p(i.url)),n.trigger(y,{options:i,target:e}),o?(r.hide(),t=r.find(\".\"+k)[0],t?t.src=i.url||t.src:r.html(C({content:i})),r.find(\".\"+k).off(\"load\"+S).on(\"load\"+S,function(){n.trigger(w),r.show()})):(r.empty(),a.ui.progress(r,!0),n._ajaxRequest(i))):i&&c(i)?(i=i({sender:this,target:e}),r.html(i||\"\")):r.html(i),n.angular(\"compile\",function(){return{elements:r}})},_ajaxRequest:function(e){var t=this;jQuery.ajax(u({type:\"GET\",dataType:\"html\",cache:!1,error:function(e,n){a.ui.progress(t.content,!1),t.trigger(b,{status:n,xhr:e})},success:h(function(e){a.ui.progress(t.content,!1),t.content.html(e),t.trigger(w)},t)},e))},_documentKeyDown:function(e){e.keyCode===a.keys.ESC&&this.hide()},refresh:function(){var e=this,t=e.popup;t&&t.options.anchor&&e._appendContent(t.options.anchor)},hide:function(){this.popup&&this.popup.close()},show:function(e){e=e||this.element,o(e),this._show(e)},_show:function(e){var t=this,i=t.target();t.popup||t._initPopup(),i&&i[0]!=e[0]&&(t.popup.close(),t.popup.element.kendoStop(!0,!0)),i&&i[0]==e[0]||(t._appendContent(e),t.popup.options.anchor=e),t.popup.one(\"deactivate\",function(){n(e),e.removeAttr(g),this.element.removeAttr(\"id\").attr(\"aria-hidden\",!0),f.off(\"keydown\"+S,t._documentKeyDownHandler)}),t.popup.open()},_initPopup:function(){var t=this,n=t.options,i=e(a.template(x)({callout:n.callout&&\"center\"!==n.position,dir:A[n.position],autoHide:n.autoHide}));t.popup=new l(i,u({activate:function(){var e=this.options.anchor,i=e[0].id||t.element[0].id;i&&(e.attr(g,i+m),this.element.attr(\"id\",i+m)),n.callout&&t._positionCallout(),this.element.removeAttr(\"aria-hidden\"),f.on(\"keydown\"+S,t._documentKeyDownHandler),t.trigger(v)},close:function(){t.trigger(_)},copyAnchorStyles:!1,animation:n.animation},T[n.position])),i.css({width:n.width,height:n.height}),t.content=i.find(\".k-tooltip-content\"),t.arrow=i.find(\".k-callout\"),n.autoHide?i.on(\"mouseleave\"+S,h(t._mouseleave,t)):i.on(\"click\"+S,\".k-tooltip-button\",h(t._closeButtonClick,t))},_closeButtonClick:function(e){e.preventDefault(),this.hide()},_mouseleave:function(t){if(this.popup){var i=e(t.currentTarget),r=i.offset(),o=t.pageX,a=t.pageY;if(r.right=r.left+i.outerWidth(),r.bottom=r.top+i.outerHeight(),o>r.left&&r.right>o&&a>r.top&&r.bottom>a)return;this.popup.close()}else n(e(t.currentTarget));clearTimeout(this.timeout)},_positionCallout:function(){var t=this,n=t.options.position,i=t.dimensions,r=i.offset,o=t.popup,a=o.options.anchor,s=e(a).offset(),l=parseInt(t.arrow.css(\"border-top-width\"),10),c=e(o.element).offset(),d=A[o.flipped?D[n]:n],u=s[r]-c[r]+e(a)[i.size]()/2-l;t.arrow.removeClass(\"k-callout-n k-callout-s k-callout-w k-callout-e\").addClass(\"k-callout-\"+d).css(r,u)},target:function(){return this.popup?this.popup.options.anchor:null},destroy:function(){var e=this.popup;e&&(e.element.off(S),e.destroy()),clearTimeout(this.timeout),this.element.off(S),f.off(\"keydown\"+S,this._documentKeyDownHandler),s.fn.destroy.call(this)}});a.ui.plugin(F)}(window.kendo.jQuery),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.list.min\",[\"kendo.data.min\",\"kendo.popup.min\"],e)}(function(){return function(e,t){function n(e,n){return e!==t&&\"\"!==e&&null!==e&&(\"boolean\"===n?e=!!e:\"number\"===n?e=+e:\"string\"===n&&(e=\"\"+e)),e}function i(e,t){var n,i,r,o,a=t.length,s=e.length,l=[],c=[];if(s)for(r=0;s>r;r++){for(n=e[r],i=!1,o=0;a>o;o++)if(n===t[o]){i=!0,l.push({index:r,item:n});break}i||c.push(n)}return{changed:l,unchanged:c}}function r(t,n){var i,o=!1;return t.filters&&(i=e.grep(t.filters,function(e){return o=r(e,n),e.filters?e.filters.length:e.field!=n}),o||t.filters.length===i.length||(o=!0),t.filters=i),o}var o,a,s=window.kendo,l=s.ui,c=l.Widget,d=s.keys,u=s.support,h=s.htmlEncode,f=s._activeElement,p=s.data.ObservableArray,m=\"id\",g=\"change\",v=\"k-state-focused\",_=\"k-state-hover\",b=\"k-loading\",w=\"open\",y=\"close\",k=\"cascade\",x=\"select\",C=\"selected\",S=\"requestStart\",T=\"requestEnd\",D=\"width\",A=e.extend,E=e.proxy,I=e.isArray,F=u.browser,M=F.msie&&9>F.version,R=/\"/g,P={ComboBox:\"DropDownList\",DropDownList:\"ComboBox\"},z=s.ui.DataBoundWidget.extend({init:function(t,n){var i,r=this,o=r.ns;c.fn.init.call(r,t,n),t=r.element,n=r.options,r._isSelect=t.is(x),r._isSelect&&r.element[0].length&&(n.dataSource||(n.dataTextField=n.dataTextField||\"text\",n.dataValueField=n.dataValueField||\"value\")),r.ul=e('
        ').attr({tabIndex:-1,\"aria-hidden\":!0}),r.list=e(\"
        \").append(r.ul).on(\"mousedown\"+o,E(r._listMousedown,r)),i=t.attr(m),i&&(r.list.attr(m,i+\"-list\"),r.ul.attr(m,i+\"_listbox\")),r._header(),r._accessors(),r._initValue()},options:{valuePrimitive:!1,headerTemplate:\"\"},setOptions:function(e){c.fn.setOptions.call(this,e),e&&e.enable!==t&&(e.enabled=e.enable)},focus:function(){this._focused.focus()},readonly:function(e){this._editable({readonly:e===t?!0:e,disable:!1})},enable:function(e){this._editable({readonly:!1,disable:!(e=e===t?!0:e)})},_listOptions:function(t){var n=this,i=n.options,r=i.virtual,o=E(n._listBound,n);return r=\"object\"==typeof r?r:{},t=e.extend({autoBind:!1,selectable:!0,dataSource:n.dataSource,click:E(n._click,n),change:E(n._listChange,n),activate:E(n._activateItem,n),deactivate:E(n._deactivateItem,n),dataBinding:function(){n.trigger(\"dataBinding\"),n._angularItems(\"cleanup\")},dataBound:o,listBound:o,height:i.height,dataValueField:i.dataValueField,dataTextField:i.dataTextField,groupTemplate:i.groupTemplate,fixedGroupTemplate:i.fixedGroupTemplate,template:i.template},t,r),t.template||(t.template=\"#:\"+s.expr(t.dataTextField,\"data\")+\"#\"),t},_initList:function(){var e=this,t=e._listOptions({selectedItemChange:E(e._listChange,e)});e.listView=e.options.virtual?new s.ui.VirtualList(e.ul,t):new s.ui.StaticList(e.ul,t),e._setListValue()},_setListValue:function(e){e=e||this.options.value,e!==t&&this.listView.value(e).done(E(this._updateSelectionState,this))},_updateSelectionState:e.noop,_listMousedown:function(e){this.filterInput&&this.filterInput[0]===e.target||e.preventDefault()},_filterSource:function(e,t){var n=this,i=n.options,o=n.dataSource,a=A({},o.filter()||{}),s=r(a,i.dataTextField);(e||s)&&n.trigger(\"filtering\",{filter:e})||(a={filters:a.filters||[],logic:\"and\"},e&&a.filters.push(e),n._cascading&&this.listView.setDSFilter(a),t?o.read({filter:a}):o.filter(a))},_header:function(){var t,n=this,i=n.options.headerTemplate;e.isFunction(i)&&(i=i({})),i&&(n.list.prepend(i),t=n.ul.prev(),n.header=t[0]?t:null,n.header&&n.angular(\"compile\",function(){return{elements:n.header}}))},_initValue:function(){var e=this,t=e.options.value;null!==t?e.element.val(t):(t=e._accessor(),e.options.value=t),e._old=t},_ignoreCase:function(){var e,t=this,n=t.dataSource.reader.model;n&&n.fields&&(e=n.fields[t.options.dataTextField],e&&e.type&&\"string\"!==e.type&&(t.options.ignoreCase=!1))},_focus:function(e){return this.listView.focus(e)},current:function(e){return this._focus(e)},items:function(){return this.ul[0].children},destroy:function(){var e=this,t=e.ns;c.fn.destroy.call(e),e._unbindDataSource(),e.listView.destroy(),e.list.off(t),e.popup.destroy(),e._form&&e._form.off(\"reset\",e._resetHandler)},dataItem:function(n){var i=this;if(n===t)return i.listView.selectedDataItems()[0];if(\"number\"!=typeof n){if(i.options.virtual)return i.dataSource.getByUid(e(n).data(\"uid\"));n=e(i.items()).index(n)}return i.dataSource.flatView()[n]},_activateItem:function(){var e=this.listView.focus();e&&this._focused.add(this.filterInput).attr(\"aria-activedescendant\",e.attr(\"id\"))},_deactivateItem:function(){this._focused.add(this.filterInput).removeAttr(\"aria-activedescendant\")},_accessors:function(){var e=this,t=e.element,n=e.options,i=s.getter,r=t.attr(s.attr(\"text-field\")),o=t.attr(s.attr(\"value-field\"));!n.dataTextField&&r&&(n.dataTextField=r),!n.dataValueField&&o&&(n.dataValueField=o),e._text=i(n.dataTextField),e._value=i(n.dataValueField)},_aria:function(e){var n=this,i=n.options,r=n._focused.add(n.filterInput);i.suggest!==t&&r.attr(\"aria-autocomplete\",i.suggest?\"both\":\"list\"),e=e?e+\" \"+n.ul[0].id:n.ul[0].id,r.attr(\"aria-owns\",e),n.ul.attr(\"aria-live\",i.filter&&\"none\"!==i.filter?\"polite\":\"off\")},_blur:function(){var e=this;e._change(),e.close()},_change:function(){var e,i=this,r=i.selectedIndex,o=i.options.value,a=i.value();i._isSelect&&!i.listView.bound()&&o&&(a=o),a!==n(i._old,typeof a)?e=!0:r!==t&&r!==i._oldIndex&&(e=!0),e&&(i._old=a,i._oldIndex=r,i._typing||i.element.trigger(g),i.trigger(g)),i.typing=!1},_data:function(){return this.dataSource.view()},_enable:function(){var e=this,n=e.options,i=e.element.is(\"[disabled]\");n.enable!==t&&(n.enabled=n.enable),!n.enabled||i?e.enable(!1):e.readonly(e.element.is(\"[readonly]\"))},_dataValue:function(e){var n=this._value(e);return n===t&&(n=this._text(e)),n},_offsetHeight:function(){var t=0,n=this.listView.content.prevAll(\":visible\");return n.each(function(){var n=e(this);t+=n.hasClass(\"k-list-filter\")?n.children().outerHeight():n.outerHeight()}),t},_height:function(e){var n,i,r=this,o=r.list,a=r.options.height,s=r.popup.visible();if(e){if(i=o.add(o.parent(\".k-animation-container\")).show(),!o.is(\":visible\"))return i.hide(),t;a=r.listView.content[0].scrollHeight>a?a:\"auto\",i.height(a),\"auto\"!==a&&(n=r._offsetHeight(),n&&(a-=n)),r.listView.content.height(a),s||i.hide()}return a},_adjustListWidth:function(){var e,t,n=this.list,i=n[0].style.width,r=this.wrapper;if(n.data(D)||!i)return e=window.getComputedStyle?window.getComputedStyle(r[0],null):0,t=parseFloat(e&&e.width)||r.outerWidth(),e&&F.msie&&(t+=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight)+parseFloat(e.borderLeftWidth)+parseFloat(e.borderRightWidth)),i=\"border-box\"!==n.css(\"box-sizing\")?t-(n.outerWidth()-n.width()):t,n.css({fontFamily:r.css(\"font-family\"),width:i}).data(D,i),!0},_openHandler:function(e){this._adjustListWidth(),this.trigger(w)?e.preventDefault():(this._focused.attr(\"aria-expanded\",!0),this.ul.attr(\"aria-hidden\",!1))},_closeHandler:function(e){this.trigger(y)?e.preventDefault():(this._focused.attr(\"aria-expanded\",!1),this.ul.attr(\"aria-hidden\",!0))},_focusItem:function(){var e=this.listView,n=e.focus(),i=e.select();i=i[i.length-1],i===t&&this.options.highlightFirst&&!n&&(i=0),i!==t?e.focus(i):e.scrollToIndex(0)},_calculateGroupPadding:function(e){var t=this.ul.children(\".k-first:first\"),n=this.listView.content.prev(\".k-group-header\"),i=0;n[0]&&\"none\"!==n[0].style.display&&(\"auto\"!==e&&(i=s.support.scrollbar()),i+=parseFloat(t.css(\"border-right-width\"),10)+parseFloat(t.children(\".k-group\").css(\"padding-right\"),10),n.css(\"padding-right\",i))},_calculatePopupHeight:function(e){var t=this._height(this.dataSource.flatView().length||e);this._calculateGroupPadding(t)},_resizePopup:function(e){this.options.virtual||(this.popup.element.is(\":visible\")?this._calculatePopupHeight(e):this.popup.one(\"open\",function(e){return E(function(){this._calculatePopupHeight(e)},this)}.call(this,e)))},_popup:function(){var e=this;e.popup=new l.Popup(e.list,A({},e.options.popup,{anchor:e.wrapper,open:E(e._openHandler,e),close:E(e._closeHandler,e),animation:e.options.animation,isRtl:u.isRtl(e.wrapper)}))},_makeUnselectable:function(){M&&this.list.find(\"*\").not(\".k-textbox\").attr(\"unselectable\",\"on\")},_toggleHover:function(t){e(t.currentTarget).toggleClass(_,\"mouseenter\"===t.type)},_toggle:function(e,n){var i=this,r=u.mobileOS&&(u.touch||u.MSPointers||u.pointers);e=e!==t?e:!i.popup.visible(),n||r||i._focused[0]===f()||(i._prevent=!0,i._focused.focus(),i._prevent=!1),i[e?w:y]()},_triggerCascade:function(){var e=this;e._cascadeTriggered&&e._old===e.value()&&e._oldIndex===e.selectedIndex||(e._cascadeTriggered=!0,e.trigger(k,{userTriggered:e._userTriggered}))},_triggerChange:function(){this._valueBeforeCascade!==this.value()&&this.trigger(g)},_unbindDataSource:function(){var e=this;e.dataSource.unbind(S,e._requestStartHandler).unbind(T,e._requestEndHandler).unbind(\"error\",e._errorHandler)}});A(z,{inArray:function(e,t){var n,i,r=t.children;if(!e||e.parentNode!==t)return-1;for(n=0,i=r.length;i>n;n++)if(e===r[n])return n;return-1},unifyType:n}),s.ui.List=z,l.Select=z.extend({init:function(e,t){z.fn.init.call(this,e,t),this._initial=this.element.val()},setDataSource:function(e){var t,n=this;n.options.dataSource=e,n._dataSource(),n.listView.bound()&&(n._initialIndex=null),n.listView.setDataSource(n.dataSource),n.options.autoBind&&n.dataSource.fetch(),t=n._parentWidget(),t&&n._cascadeSelect(t)},close:function(){this.popup.close()},select:function(e){var n=this;return e===t?n.selectedIndex:(n._select(e),n._old=n._accessor(),n._oldIndex=n.selectedIndex,t)},search:function(e){var t,n,i,r,o,a;e=\"string\"==typeof e?e:this.text(),t=this,n=e.length,i=t.options,r=i.ignoreCase,o=i.filter,a=i.dataTextField,clearTimeout(t._typingTimeout),(!n||n>=i.minLength)&&(t._state=\"filter\",\"none\"===o?t._filter(e):(t._open=!0,t._filterSource({value:r?e.toLowerCase():e,field:a,operator:o,ignoreCase:r})))},_accessor:function(e,t){return this[this._isSelect?\"_accessorSelect\":\"_accessorInput\"](e,t)},_accessorInput:function(e){var n=this.element[0];return e===t?n.value:(null===e&&(e=\"\"),n.value=e,t)},_accessorSelect:function(e,n){var i,r=this.element[0],o=r.selectedIndex;return e===t?(o>-1&&(i=r.options[o]),i&&(e=i.value),e||\"\"):(o>-1&&(r.options[o].removeAttribute(C),r.options[o].selected=!1),n===t&&(n=-1),null!==e&&\"\"!==e&&-1==n?this._custom(e):(e?r.value=e:r.selectedIndex=n,r.selectedIndex>-1&&(i=r.options[r.selectedIndex]),i&&i.setAttribute(C,C)),t)},_custom:function(t){var n=this,i=n.element,r=n._customOption;r||(r=e(\"\",u+=r;c.html(u),i!==t&&(c[0].value=i,c[0].value&&!i&&(c[0].selectedIndex=-1))},_reset:function(){var t=this,n=t.element,i=n.attr(\"form\"),r=i?e(\"#\"+i):n.closest(\"form\");r[0]&&(t._resetHandler=function(){setTimeout(function(){t.value(t._initial)})},t._form=r.on(\"reset\",t._resetHandler))},_parentWidget:function(){var t=this.options.name,n=e(\"#\"+this.options.cascadeFrom),i=n.data(\"kendo\"+t);return i||(i=n.data(\"kendo\"+P[t])),i},_cascade:function(){var e,t,n=this,i=n.options,r=i.cascadeFrom;if(r){if(t=n._parentWidget(),!t)return;i.autoBind=!1,e=E(function(e){var n=this.value();this._userTriggered=e.userTriggered,this.listView.bound()&&this._clearSelection(t,!0),this._cascadeSelect(t,n)},n),t.first(k,e),t._focused.bind(\"focus\",function(){t.unbind(k,e),t.first(g,e)}),t._focused.bind(\"focusout\",function(){t.unbind(g,e),t.first(k,e)}),t.listView.bound()?n._cascadeSelect(t):t.value()||n.enable(!1)}},_cascadeChange:function(e){var t=this,n=t._accessor();t._userTriggered?t._clearSelection(e,!0):n?(n!==t.listView.value()[0]&&t.value(n),t.dataSource.view()[0]&&-1!==t.selectedIndex||t._clearSelection(e,!0)):t.dataSource.flatView().length&&t.select(t.options.index),t.enable(),t._triggerCascade(),t._triggerChange(),t._userTriggered=!1},_cascadeSelect:function(e,n){var i,o,a,s=this,l=e.dataItem(),c=l?e._value(l):null,d=s.options.cascadeFromField||e.options.dataValueField;s._valueBeforeCascade=n!==t?n:s.value(),c||0===c?(i=s.dataSource.filter()||{},r(i,d),o=i.filters||[],o.push({field:d,operator:\"eq\",value:c}),a=function(){s.unbind(\"dataBound\",a),s._cascadeChange(e)},s.first(\"dataBound\",a),s._cascading=!0,s._filterSource({field:d,operator:\"eq\",value:c}),s._cascading=!1):(s.enable(!1),s._clearSelection(e),s._triggerCascade(),s._triggerChange(),s._userTriggered=!1)}}),o=\".StaticList\",a=s.ui.DataBoundWidget.extend({\r\ninit:function(t,n){c.fn.init.call(this,t,n),this.element.attr(\"role\",\"listbox\").on(\"click\"+o,\"li\",E(this._click,this)).on(\"mouseenter\"+o,\"li\",function(){e(this).addClass(_)}).on(\"mouseleave\"+o,\"li\",function(){e(this).removeClass(_)}),this.content=this.element.wrap(\"
        \").parent(),this.header=this.content.before('
        ').prev(),this.bound(!1),this._optionID=s.guid(),this._selectedIndices=[],this._view=[],this._dataItems=[],this._values=[];var i=this.options.value;i&&(this._values=e.isArray(i)?i.slice(0):[i]),this._getter(),this._templates(),this.setDataSource(this.options.dataSource),this._onScroll=E(function(){var e=this;clearTimeout(e._scrollId),e._scrollId=setTimeout(function(){e._renderHeader()},50)},this)},options:{name:\"StaticList\",dataValueField:null,valuePrimitive:!1,selectable:!0,template:null,groupTemplate:null,fixedGroupTemplate:null},events:[\"click\",g,\"activate\",\"deactivate\",\"dataBinding\",\"dataBound\",\"selectedItemChange\"],setDataSource:function(t){var n,i=this,r=t||{};r=e.isArray(r)?{data:r}:r,r=s.data.DataSource.create(r),i.dataSource?(i.dataSource.unbind(g,i._refreshHandler),n=i.value(),i.value([]),i.bound(!1),i.value(n)):i._refreshHandler=E(i.refresh,i),i.setDSFilter(r.filter()),i.dataSource=r.bind(g,i._refreshHandler),i._fixedHeader()},skip:function(){return this.dataSource.skip()},setOptions:function(e){c.fn.setOptions.call(this,e),this._getter(),this._templates(),this._render()},destroy:function(){this.element.off(o),this._refreshHandler&&this.dataSource.unbind(g,this._refreshHandler),clearTimeout(this._scrollId),c.fn.destroy.call(this)},scrollToIndex:function(e){var t=this.element[0].children[e];t&&this.scroll(t)},scroll:function(e){if(e){e[0]&&(e=e[0]);var t=this.content[0],n=e.offsetTop,i=e.offsetHeight,r=t.scrollTop,o=t.clientHeight,a=n+i;r>n?r=n:a>r+o&&(r=a-o),t.scrollTop=r}},selectedDataItems:function(e){return e===t?this._dataItems.slice():(this._dataItems=e,this._values=this._getValues(e),t)},_getValues:function(t){var n=this._valueGetter;return e.map(t,function(e){return n(e)})},focusNext:function(){var e=this.focus();e=e?e.next():0,this.focus(e)},focusPrev:function(){var e=this.focus();e=e?e.prev():this.element[0].children.length-1,this.focus(e)},focusFirst:function(){this.focus(this.element[0].children[0])},focusLast:function(){this.focus(this.element[0].children[this.element[0].children.length-1])},focus:function(n){var i,r=this,o=r._optionID;return n===t?r._current:(n=r._get(n),n=n[n.length-1],n=e(this.element[0].children[n]),r._current&&(r._current.removeClass(v).removeAttr(\"aria-selected\").removeAttr(m),r.trigger(\"deactivate\")),i=!!n[0],i&&(n.addClass(v),r.scroll(n),n.attr(\"id\",o)),r._current=i?n:null,r.trigger(\"activate\"),t)},focusIndex:function(){return this.focus()?this.focus().index():t},skipUpdate:function(e){this._skipUpdate=e},select:function(n){var i,r,o=this,a=o.options.selectable,s=\"multiple\"!==a&&a!==!1,l=o._selectedIndices,c=[],d=[];if(n===t)return l.slice();if(n=o._get(n),1===n.length&&-1===n[0]&&(n=[]),r=o.isFiltered(),!r||s||!o._deselectFiltered(n)){if(s&&!r&&-1!==e.inArray(n[n.length-1],l))return o._dataItems.length&&o._view.length&&(o._dataItems=[o._view[l[0]].item]),t;i=o._deselect(n),d=i.removed,n=i.indices,n.length&&(s&&(n=[n[n.length-1]]),c=o._select(n)),(c.length||d.length)&&(o._valueComparer=null,o.trigger(g,{added:c,removed:d}))}},removeAt:function(e){return this._selectedIndices.splice(e,1),this._values.splice(e,1),this._valueComparer=null,{position:e,dataItem:this._dataItems.splice(e,1)[0]}},setValue:function(t){t=e.isArray(t)||t instanceof p?t.slice(0):[t],this._values=t,this._valueComparer=null},value:function(n){var i,r=this,o=r._valueDeferred;return n===t?r._values.slice():(r.setValue(n),o&&\"resolved\"!==o.state()||(r._valueDeferred=o=e.Deferred()),r.bound()&&(i=r._valueIndices(r._values),\"multiple\"===r.options.selectable&&r.select(-1),r.select(i),o.resolve()),r._skipUpdate=!1,o)},items:function(){return this.element.children(\".k-item\")},_click:function(t){t.isDefaultPrevented()||this.trigger(\"click\",{item:e(t.currentTarget)})||this.select(t.currentTarget)},_valueExpr:function(e,t){var i,r,o=this,a=0,s=[];if(!o._valueComparer||o._valueType!==e){for(o._valueType=e;t.length>a;a++)s.push(n(t[a],e));i=\"for (var idx = 0; idx < \"+s.length+\"; idx++) { if (current === values[idx]) { return idx; }} return -1;\",r=Function(\"current\",\"values\",i),o._valueComparer=function(e){return r(e,s)}}return o._valueComparer},_dataItemPosition:function(e,t){var n=this._valueGetter(e),i=this._valueExpr(typeof n,t);return i(n)},_getter:function(){this._valueGetter=s.getter(this.options.dataValueField)},_deselect:function(t){var n,i,r,o=this,a=o.element[0].children,s=o.options.selectable,l=o._selectedIndices,c=o._dataItems,d=o._values,u=[],h=0,f=0;if(t=t.slice(),s!==!0&&t.length){if(\"multiple\"===s)for(;t.length>h;h++)if(i=t[h],e(a[i]).hasClass(\"k-state-selected\"))for(n=0;l.length>n;n++)if(r=l[n],r===i){e(a[r]).removeClass(\"k-state-selected\"),u.push({position:n+f,dataItem:c.splice(n,1)[0]}),l.splice(n,1),t.splice(h,1),d.splice(n,1),f+=1,h-=1,n-=1;break}}else{for(;l.length>h;h++)e(a[l[h]]).removeClass(\"k-state-selected\"),u.push({position:h,dataItem:c[h]});o._values=[],o._dataItems=[],o._selectedIndices=[]}return{indices:t,removed:u}},_deselectFiltered:function(t){for(var n,i,r,o=this.element[0].children,a=[],s=0;t.length>s;s++)i=t[s],n=this._view[i].item,r=this._dataItemPosition(n,this._values),r>-1&&(a.push(this.removeAt(r)),e(o[i]).removeClass(\"k-state-selected\"));return a.length?(this.trigger(g,{added:[],removed:a}),!0):!1},_select:function(t){var n,i,r=this,o=r.element[0].children,a=r._view,s=[],l=0;for(-1!==t[t.length-1]&&r.focus(t);t.length>l;l++)i=t[l],n=a[i],-1!==i&&n&&(n=n.item,r._selectedIndices.push(i),r._dataItems.push(n),r._values.push(r._valueGetter(n)),e(o[i]).addClass(\"k-state-selected\").attr(\"aria-selected\",!0),s.push({dataItem:n}));return s},_get:function(n){return\"number\"==typeof n?n=[n]:I(n)||(n=e(n).data(\"offset-index\"),n===t&&(n=-1),n=[n]),n},_template:function(){var e=this,t=e.options,n=t.template;return n?(n=s.template(n),n=function(e){return'
      • '+n(e)+\"
      • \"}):n=s.template('
      • ${'+s.expr(t.dataTextField,\"data\")+\"}
      • \",{useWithBlock:!1}),n},_templates:function(){var e,t,n={template:this.options.template,groupTemplate:this.options.groupTemplate,fixedGroupTemplate:this.options.fixedGroupTemplate};for(t in n)e=n[t],e&&\"function\"!=typeof e&&(n[t]=s.template(e));this.templates=n},_normalizeIndices:function(e){for(var n=[],i=0;e.length>i;i++)e[i]!==t&&n.push(e[i]);return n},_valueIndices:function(e,t){var n,i=this._view,r=0;if(t=t?t.slice():[],!e.length)return[];for(;i.length>r;r++)n=this._dataItemPosition(i[r].item,e),-1!==n&&(t[n]=r);return this._normalizeIndices(t)},_firstVisibleItem:function(){for(var t=this.element[0],n=this.content[0],i=n.scrollTop,r=e(t.children[0]).height(),o=Math.floor(i/r)||0,a=t.children[o]||t.lastChild,s=i>a.offsetTop;a;)if(s){if(a.offsetTop+r>i||!a.nextSibling)break;a=a.nextSibling}else{if(i>=a.offsetTop||!a.previousSibling)break;a=a.previousSibling}return this._view[e(a).data(\"offset-index\")]},_fixedHeader:function(){this.isGrouped()&&this.templates.fixedGroupTemplate?(this.header.show(),this.content.scroll(this._onScroll)):(this.header.hide(),this.content.off(\"scroll\",this._onScroll))},_renderHeader:function(){var e,t=this.templates.fixedGroupTemplate;t&&(e=this._firstVisibleItem(),e&&this.header.html(t(e.group)))},_renderItem:function(e){var t='
      • ',t+=this.templates.template(n),i&&e.newGroup&&(t+='
        '+this.templates.groupTemplate(e.group)+\"
        \"),t+\"
      • \"},_render:function(){var e,t,n,i,r=\"\",o=0,a=0,s=[],l=this.dataSource.view(),c=this.value(),d=this.isGrouped();if(d)for(o=0;l.length>o;o++)for(t=l[o],n=!0,i=0;t.items.length>i;i++)e={selected:this._selected(t.items[i],c),item:t.items[i],group:t.value,newGroup:n,index:a},s[a]=e,a+=1,r+=this._renderItem(e),n=!1;else for(o=0;l.length>o;o++)e={selected:this._selected(l[o],c),item:l[o],index:o},s[o]=e,r+=this._renderItem(e);this._view=s,this.element[0].innerHTML=r,d&&s.length&&this._renderHeader()},_selected:function(e,t){var n=!this.isFiltered()||\"multiple\"===this.options.selectable;return n&&-1!==this._dataItemPosition(e,t)},setDSFilter:function(e){this._lastDSFilter=A({},e)},isFiltered:function(){return this._lastDSFilter||this.setDSFilter(this.dataSource.filter()),!s.data.Query.compareFilters(this.dataSource.filter(),this._lastDSFilter)},refresh:function(e){var t,n=this,r=e&&e.action,o=n.options.skipUpdateOnBind,a=\"itemchange\"===r;n.trigger(\"dataBinding\"),n._fixedHeader(),n._render(),n.bound(!0),a||\"remove\"===r?(t=i(n._dataItems,e.items),t.changed.length&&(a?n.trigger(\"selectedItemChange\",{items:t.changed}):n.value(n._getValues(t.unchanged)))):n.isFiltered()||n._skipUpdate?(n.focus(0),n._skipUpdate&&(n._skipUpdate=!1,n._selectedIndices=n._valueIndices(n._values,n._selectedIndices))):o||r&&\"add\"!==r||n.value(n._values),n._valueDeferred&&n._valueDeferred.resolve(),n.trigger(\"dataBound\")},bound:function(e){return e===t?this._bound:(this._bound=e,t)},isGrouped:function(){return(this.dataSource.group()||[]).length}}),l.plugin(a)}(window.kendo.jQuery),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.calendar.min\",[\"kendo.core.min\"],e)}(function(){return function(e,t){function n(e,t,n,i){var r,o=e.getFullYear(),a=t.getFullYear(),s=n.getFullYear();return o-=o%i,r=o+(i-1),a>o&&(o=a),r>s&&(r=s),o+\"-\"+r}function i(e){for(var t,n=0,i=e.min,r=e.max,o=e.start,a=e.setter,l=e.build,c=e.cells||12,d=e.perRow||4,u=e.content||P,h=e.empty||z,f=e.html||'';c>n;n++)n>0&&n%d===0&&(f+=''),o=new ve(o.getFullYear(),o.getMonth(),o.getDate(),0,0,0),A(o,0),t=l(o,n,e.disableDates),f+=s(o,i,r)?u(t):h(t),a(o,1);return f+\"
        \"}function r(e,t,n){var i=e.getFullYear(),r=t.getFullYear(),o=r,a=0;return n&&(r-=r%n,o=r-r%n+n-1),i>o?a=1:r>i&&(a=-1),a}function o(){var e=new ve;return new ve(e.getFullYear(),e.getMonth(),e.getDate())}function a(e,t,n){var i=o();return e&&(i=new ve(+e)),t>i?i=new ve(+t):i>n&&(i=new ve(+n)),i}function s(e,t,n){return+e>=+t&&+n>=+e}function l(e,t){return e.slice(t).concat(e.slice(0,t))}function c(e,t,n){t=t instanceof ve?t.getFullYear():e.getFullYear()+n*t,e.setFullYear(t)}function d(t){var n=e(this).hasClass(\"k-state-disabled\");n||e(this).toggleClass(Q,ae.indexOf(t.type)>-1||t.type==re)}function u(e){e.preventDefault()}function h(e){return F(e).calendars.standard}function f(e){var n=_e[e.start],i=_e[e.depth],r=F(e.culture);e.format=E(e.format||r.calendars.standard.patterns.d),isNaN(n)&&(n=0,e.start=q),(i===t||i>n)&&(e.depth=q),e.dates||(e.dates=[])}function p(e){L&&e.find(\"*\").attr(\"unselectable\",\"on\")}function m(e,t){for(var n=0,i=t.length;i>n;n++)if(e===+t[n])return!0;return!1}function g(e,t){return e?e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate():!1}function v(e,t){return e?e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth():!1}function _(t){return k.isFunction(t)?t:e.isArray(t)?b(t):e.noop}function b(t){var n,i,r,o,a,s=[],l=[\"su\",\"mo\",\"tu\",\"we\",\"th\",\"fr\",\"sa\"];for(r=0;t.length>r;r++)o=t[r].toLowerCase(),a=e.inArray(o,l),a>-1&&s.push(a);return n=\"var found = date && $.inArray(date.getDay(),[\"+s+\"]) > -1;if (found) { return true } else {return false}\",i=Function(\"date\",n)}function w(e,t){return e instanceof Date&&t instanceof Date&&(e=e.getTime(),t=t.getTime()),e===t}var y,k=window.kendo,x=k.support,C=k.ui,S=C.Widget,T=k.keys,D=k.parseDate,A=k.date.adjustDST,E=k._extractFormat,I=k.template,F=k.getCulture,M=k.support.transitions,R=M?M.css+\"transform-origin\":\"\",P=I('#=data.value#',{useWithBlock:!1}),z=I(' ',{useWithBlock:!1}),B=k.support.browser,L=B.msie&&9>B.version,H=\".kendoCalendar\",N=\"click\"+H,O=\"keydown\"+H,V=\"id\",U=\"min\",W=\"left\",j=\"slideIn\",q=\"month\",G=\"century\",$=\"change\",Y=\"navigate\",K=\"value\",Q=\"k-state-hover\",X=\"k-state-disabled\",J=\"k-state-focused\",Z=\"k-other-month\",ee=' class=\"'+Z+'\"',te=\"k-nav-today\",ne=\"td:has(.k-link)\",ie=\"blur\"+H,re=\"focus\",oe=re+H,ae=x.touch?\"touchstart\":\"mouseenter\",se=x.touch?\"touchstart\"+H:\"mouseenter\"+H,le=x.touch?\"touchend\"+H+\" touchmove\"+H:\"mouseleave\"+H,ce=6e4,de=864e5,ue=\"_prevArrow\",he=\"_nextArrow\",fe=\"aria-disabled\",pe=\"aria-selected\",me=e.proxy,ge=e.extend,ve=Date,_e={month:0,year:1,decade:2,century:3},be=S.extend({init:function(t,n){var i,r,s=this;S.fn.init.call(s,t,n),t=s.wrapper=s.element,n=s.options,n.url=window.unescape(n.url),s.options.disableDates=_(s.options.disableDates),s._templates(),s._header(),s._footer(s.footer),r=t.addClass(\"k-widget k-calendar\").on(se+\" \"+le,ne,d).on(O,\"table.k-content\",me(s._move,s)).on(N,ne,function(t){var n=t.currentTarget.firstChild,i=s._toDateObject(n);-1!=n.href.indexOf(\"#\")&&t.preventDefault(),s.options.disableDates(i)||s._click(e(n))}).on(\"mouseup\"+H,\"table.k-content, .k-footer\",function(){s._focusView(s.options.focusOnNav!==!1)}).attr(V),r&&(s._cellID=r+\"_cell_selected\"),f(n),i=D(n.value,n.format,n.culture),s._index=_e[n.start],s._current=new ve(+a(i,n.min,n.max)),s._addClassProxy=function(){if(s._active=!0,s._cell.hasClass(X)){var e=s._view.toDateString(o());s._cell=s._cellByDate(e)}s._cell.addClass(J)},s._removeClassProxy=function(){s._active=!1,s._cell.removeClass(J)},s.value(i),k.notify(s)},options:{name:\"Calendar\",value:null,min:new ve(1900,0,1),max:new ve(2099,11,31),dates:[],url:\"\",culture:\"\",footer:\"\",format:\"\",month:{},start:q,depth:q,animation:{horizontal:{effects:j,reverse:!0,duration:500,divisor:2},vertical:{effects:\"zoomIn\",duration:400}}},events:[$,Y],setOptions:function(e){var t=this;f(e),e.dates[0]||(e.dates=t.options.dates),e.disableDates=_(e.disableDates),S.fn.setOptions.call(t,e),t._templates(),t._footer(t.footer),t._index=_e[t.options.start],t.navigate()},destroy:function(){var e=this,t=e._today;e.element.off(H),e._title.off(H),e[ue].off(H),e[he].off(H),k.destroy(e._table),t&&k.destroy(t.off(H)),S.fn.destroy.call(e)},current:function(){return this._current},view:function(){return this._view},focus:function(e){e=e||this._table,this._bindTable(e),e.focus()},min:function(e){return this._option(U,e)},max:function(e){return this._option(\"max\",e)},navigateToPast:function(){this._navigate(ue,-1)},navigateToFuture:function(){this._navigate(he,1)},navigateUp:function(){var e=this,t=e._index;e._title.hasClass(X)||e.navigate(e._current,++t)},navigateDown:function(e){var n=this,i=n._index,r=n.options.depth;if(e)return i===_e[r]?(w(n._value,n._current)&&w(n._value,e)||(n.value(e),n.trigger($)),t):(n.navigate(e,--i),t)},navigate:function(n,i){var r,o,s,l,c,d,u,h,f,m,g,v,_,b,w,k,x;i=isNaN(i)?_e[i]:i,r=this,o=r.options,s=o.culture,l=o.min,c=o.max,d=r._title,u=r._table,h=r._oldTable,f=r._value,m=r._current,g=n&&+n>+m,v=i!==t&&i!==r._index,n||(n=m),r._current=n=new ve(+a(n,l,c)),i===t?i=r._index:r._index=i,r._view=b=y.views[i],w=b.compare,k=i===_e[G],d.toggleClass(X,k).attr(fe,k),k=w(n,l)<1,r[ue].toggleClass(X,k).attr(fe,k),k=w(n,c)>-1,r[he].toggleClass(X,k).attr(fe,k),u&&h&&h.data(\"animating\")&&(h.kendoStop(!0,!0),u.kendoStop(!0,!0)),r._oldTable=u,(!u||r._changeView)&&(d.html(b.title(n,l,c,s)),r._table=_=e(b.content(ge({min:l,max:c,date:n,url:o.url,dates:o.dates,format:o.format,culture:s,disableDates:o.disableDates},r[b.name]))),p(_),x=u&&u.data(\"start\")===_.data(\"start\"),r._animate({from:u,to:_,vertical:v,future:g,replace:x}),r.trigger(Y),r._focus(n)),i===_e[o.depth]&&f&&!r.options.disableDates(f)&&r._class(\"k-state-selected\",f),r._class(J,n),!u&&r._cell&&r._cell.removeClass(J),r._changeView=!0},value:function(e){var n=this,i=n._view,r=n.options,o=n._view,a=r.min,l=r.max;return e===t?n._value:(null===e&&(n._current=new Date(n._current.getFullYear(),n._current.getMonth(),n._current.getDate())),e=D(e,r.format,r.culture),null!==e&&(e=new ve(+e),s(e,a,l)||(e=null)),n.options.disableDates(e)?n._value===t&&(n._value=null):n._value=e,o&&null===e&&n._cell?n._cell.removeClass(\"k-state-selected\"):(n._changeView=!e||i&&0!==i.compare(e,n._current),n.navigate(e)),t)},_move:function(t){var n,i,r,o,l=this,c=l.options,d=t.keyCode,u=l._view,h=l._index,f=l.options.min,p=l.options.max,m=new ve(+l._current),g=k.support.isRtl(l.wrapper),v=l.options.disableDates;return t.target===l._table[0]&&(l._active=!0),t.ctrlKey?d==T.RIGHT&&!g||d==T.LEFT&&g?(l.navigateToFuture(),i=!0):d==T.LEFT&&!g||d==T.RIGHT&&g?(l.navigateToPast(),i=!0):d==T.UP?(l.navigateUp(),i=!0):d==T.DOWN&&(l._click(e(l._cell[0].firstChild)),i=!0):(d==T.RIGHT&&!g||d==T.LEFT&&g?(n=1,i=!0):d==T.LEFT&&!g||d==T.RIGHT&&g?(n=-1,i=!0):d==T.UP?(n=0===h?-7:-4,i=!0):d==T.DOWN?(n=0===h?7:4,i=!0):d==T.ENTER?(l._click(e(l._cell[0].firstChild)),i=!0):d==T.HOME||d==T.END?(r=d==T.HOME?\"first\":\"last\",o=u[r](m),m=new ve(o.getFullYear(),o.getMonth(),o.getDate(),m.getHours(),m.getMinutes(),m.getSeconds(),m.getMilliseconds()),i=!0):d==T.PAGEUP?(i=!0,l.navigateToPast()):d==T.PAGEDOWN&&(i=!0,l.navigateToFuture()),(n||r)&&(r||u.setDate(m,n),v(m)&&(m=l._nextNavigatable(m,n)),s(m,f,p)&&l._focus(a(m,c.min,c.max)))),i&&t.preventDefault(),l._current},_nextNavigatable:function(e,t){var n=this,i=!0,r=n._view,o=n.options.min,a=n.options.max,l=n.options.disableDates,c=new Date(e.getTime());for(r.setDate(c,-t);i;){if(r.setDate(e,t),!s(e,o,a)){e=c;break}i=l(e)}return e},_animate:function(e){var t=this,n=e.from,i=e.to,r=t._active;n?n.parent().data(\"animating\")?(n.off(H),n.parent().kendoStop(!0,!0).remove(),n.remove(),i.insertAfter(t.element[0].firstChild),t._focusView(r)):!n.is(\":visible\")||t.options.animation===!1||e.replace?(i.insertAfter(n),n.off(H).remove(),t._focusView(r)):t[e.vertical?\"_vertical\":\"_horizontal\"](n,i,e.future):(i.insertAfter(t.element[0].firstChild),t._bindTable(i))},_horizontal:function(e,t,n){var i=this,r=i._active,o=i.options.animation.horizontal,a=o.effects,s=e.outerWidth();a&&-1!=a.indexOf(j)&&(e.add(t).css({width:s}),e.wrap(\"
        \"),i._focusView(r,e),e.parent().css({position:\"relative\",width:2*s,\"float\":W,\"margin-left\":n?0:-s}),t[n?\"insertAfter\":\"insertBefore\"](e),ge(o,{effects:j+\":\"+(n?\"right\":W),complete:function(){e.off(H).remove(),i._oldTable=null,t.unwrap(),i._focusView(r)}}),e.parent().kendoStop(!0,!0).kendoAnimate(o))},_vertical:function(e,t){var n,i,r=this,o=r.options.animation.vertical,a=o.effects,s=r._active;a&&-1!=a.indexOf(\"zoom\")&&(t.css({position:\"absolute\",top:e.prev().outerHeight(),left:0}).insertBefore(e),R&&(n=r._cellByDate(r._view.toDateString(r._current)),i=n.position(),i=i.left+parseInt(n.width()/2,10)+\"px \"+(i.top+parseInt(n.height()/2,10)+\"px\"),t.css(R,i)),e.kendoStop(!0,!0).kendoAnimate({effects:\"fadeOut\",duration:600,complete:function(){e.off(H).remove(),r._oldTable=null,t.css({position:\"static\",top:0,left:0}),r._focusView(s)}}),t.kendoStop(!0,!0).kendoAnimate(o))},_cellByDate:function(t){return this._table.find(\"td:not(.\"+Z+\")\").filter(function(){return e(this.firstChild).attr(k.attr(K))===t})},_class:function(t,n){var i,r=this,o=r._cellID,a=r._cell,s=r._view.toDateString(n);a&&a.removeAttr(pe).removeAttr(\"aria-label\").removeAttr(V),n&&(i=r.options.disableDates(n)),a=r._table.find(\"td:not(.\"+Z+\")\").removeClass(t).filter(function(){return e(this.firstChild).attr(k.attr(K))===s}).attr(pe,!0),(t===J&&!r._active&&r.options.focusOnNav!==!1||i)&&(t=\"\"),a.addClass(t),a[0]&&(r._cell=a),o&&(a.attr(V,o),r._table.removeAttr(\"aria-activedescendant\").attr(\"aria-activedescendant\",o))},_bindTable:function(e){e.on(oe,this._addClassProxy).on(ie,this._removeClassProxy)},_click:function(e){var t=this,n=t.options,i=new Date(+t._current),r=t._toDateObject(e);A(r,0),t.options.disableDates(r)&&(r=t._value),t._view.setDate(i,r),t.navigateDown(a(i,n.min,n.max))},_focus:function(e){var t=this,n=t._view;0!==n.compare(e,t._current)?t.navigate(e):(t._current=e,t._class(J,e))},_focusView:function(e,t){e&&this.focus(t)},_footer:function(n){var i=this,r=o(),a=i.element,s=a.find(\".k-footer\");return n?(s[0]||(s=e('
        ').appendTo(a)),i._today=s.show().find(\".k-link\").html(n(r)).attr(\"title\",k.toString(r,\"D\",i.options.culture)),i._toggle(),t):(i._toggle(!1),s.hide(),t)},_header:function(){var e,t=this,n=t.element;n.find(\".k-header\")[0]||n.html('
        '),e=n.find(\".k-link\").on(se+\" \"+le+\" \"+oe+\" \"+ie,d).click(!1),t._title=e.eq(1).on(N,function(){t._active=t.options.focusOnNav!==!1,t.navigateUp()}),t[ue]=e.eq(0).on(N,function(){t._active=t.options.focusOnNav!==!1,t.navigateToPast()}),t[he]=e.eq(2).on(N,function(){t._active=t.options.focusOnNav!==!1,t.navigateToFuture()})},_navigate:function(e,t){var n=this,i=n._index+1,r=new ve(+n._current);e=n[e],e.hasClass(X)||(i>3?r.setFullYear(r.getFullYear()+100*t):y.views[i].setDate(r,t),n.navigate(r))},_option:function(e,n){var i,r=this,o=r.options,a=r._value||r._current;return n===t?o[e]:(n=D(n,o.format,o.culture),n&&(o[e]=new ve(+n),i=e===U?n>a:a>n,(i||v(a,n))&&(i&&(r._value=null),r._changeView=!0),r._changeView||(r._changeView=!(!o.month.content&&!o.month.empty)),r.navigate(r._value),r._toggle()),t)},_toggle:function(e){var n=this,i=n.options,r=n.options.disableDates(o()),a=n._today;e===t&&(e=s(o(),i.min,i.max)),a&&(a.off(N),e&&!r?a.addClass(te).removeClass(X).on(N,me(n._todayClick,n)):a.removeClass(te).addClass(X).on(N,u))},_todayClick:function(e){var t=this,n=_e[t.options.depth],i=t.options.disableDates,r=o();e.preventDefault(),i(r)||(0===t._view.compare(t._current,r)&&t._index==n&&(t._changeView=!1),t._value=r,t.navigate(r,n),t.trigger($))},_toDateObject:function(t){var n=e(t).attr(k.attr(K)).split(\"/\");return n=new ve(n[0],n[1],n[2])},_templates:function(){var e=this,t=e.options,n=t.footer,i=t.month,r=i.content,o=i.empty;e.month={content:I(''+(r||\"#=data.value#\")+\"\",{useWithBlock:!!r}),empty:I(''+(o||\" \")+\"\",{useWithBlock:!!o})},e.footer=n!==!1?I(n||'#= kendo.toString(data,\"D\",\"'+t.culture+'\") #',{useWithBlock:!1}):null}});C.plugin(be),y={firstDayOfMonth:function(e){return new ve(e.getFullYear(),e.getMonth(),1)},firstVisibleDay:function(e,t){t=t||k.culture().calendar;for(var n=t.firstDay,i=new ve(e.getFullYear(),e.getMonth(),0,e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds());i.getDay()!=n;)y.setTime(i,-1*de);return i},setTime:function(e,t){var n=e.getTimezoneOffset(),i=new ve(e.getTime()+t),r=i.getTimezoneOffset()-n;e.setTime(i.getTime()+r*ce)},views:[{name:q,title:function(e,t,n,i){return h(i).months.names[e.getMonth()]+\" \"+e.getFullYear()},content:function(e){for(var t=this,n=0,r=e.min,o=e.max,a=e.date,s=e.dates,c=e.format,d=e.culture,u=e.url,f=u&&s[0],p=h(d),g=p.firstDay,v=p.days,_=l(v.names,g),b=l(v.namesShort,g),w=y.firstVisibleDay(a,p),x=t.first(a),C=t.last(a),S=t.toDateString,T=new ve,D='';7>n;n++)D+='\";return T=new ve(T.getFullYear(),T.getMonth(),T.getDate()),A(T,0),T=+T,i({cells:42,perRow:7,html:D+='',start:w,min:new ve(r.getFullYear(),r.getMonth(),r.getDate()),max:new ve(o.getFullYear(),o.getMonth(),o.getDate()),content:e.content,empty:e.empty,setter:t.setDate,disableDates:e.disableDates,build:function(e,t,n){var i=[],r=e.getDay(),o=\"\",a=\"#\";return(x>e||e>C)&&i.push(Z),n(e)&&i.push(X),+e===T&&i.push(\"k-today\"),(0===r||6===r)&&i.push(\"k-weekend\"),f&&m(+e,s)&&(a=u.replace(\"{0}\",k.toString(e,c,d)),o=\" k-action-link\"),{date:e,dates:s,ns:k.ns,title:k.toString(e,\"D\",d),value:e.getDate(),dateString:S(e),cssClass:i[0]?' class=\"'+i.join(\" \")+'\"':\"\",linkClass:o,url:a}}})},first:function(e){return y.firstDayOfMonth(e)},last:function(e){var t=new ve(e.getFullYear(),e.getMonth()+1,0),n=y.firstDayOfMonth(e),i=Math.abs(t.getTimezoneOffset()-n.getTimezoneOffset());return i&&t.setHours(n.getHours()+i/60),t},compare:function(e,t){var n,i=e.getMonth(),r=e.getFullYear(),o=t.getMonth(),a=t.getFullYear();return n=r>a?1:a>r?-1:i==o?0:i>o?1:-1},setDate:function(e,t){var n=e.getHours();t instanceof ve?e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()):y.setTime(e,t*de),A(e,n)},toDateString:function(e){return e.getFullYear()+\"/\"+e.getMonth()+\"/\"+e.getDate()}},{name:\"year\",title:function(e){return e.getFullYear()},content:function(e){var t=h(e.culture).months.namesAbbr,n=this.toDateString,r=e.min,o=e.max;return i({min:new ve(r.getFullYear(),r.getMonth(),1),max:new ve(o.getFullYear(),o.getMonth(),1),start:new ve(e.date.getFullYear(),0,1),setter:this.setDate,build:function(e){return{value:t[e.getMonth()],ns:k.ns,dateString:n(e),cssClass:\"\"}}})},first:function(e){return new ve(e.getFullYear(),0,e.getDate())},last:function(e){return new ve(e.getFullYear(),11,e.getDate())},compare:function(e,t){return r(e,t)},setDate:function(e,t){var n,i=e.getHours();t instanceof ve?(n=t.getMonth(),e.setFullYear(t.getFullYear(),n,e.getDate()),n!==e.getMonth()&&e.setDate(0)):(n=e.getMonth()+t,e.setMonth(n),n>11&&(n-=12),n>0&&e.getMonth()!=n&&e.setDate(0)),A(e,i)},toDateString:function(e){return e.getFullYear()+\"/\"+e.getMonth()+\"/1\"}},{name:\"decade\",title:function(e,t,i){return n(e,t,i,10)},content:function(e){var t=e.date.getFullYear(),n=this.toDateString;return i({start:new ve(t-t%10-1,0,1),min:new ve(e.min.getFullYear(),0,1),max:new ve(e.max.getFullYear(),0,1),setter:this.setDate,build:function(e,t){return{value:e.getFullYear(),ns:k.ns,dateString:n(e),cssClass:0===t||11==t?ee:\"\"}}})},first:function(e){var t=e.getFullYear();return new ve(t-t%10,e.getMonth(),e.getDate())},last:function(e){var t=e.getFullYear();return new ve(t-t%10+9,e.getMonth(),e.getDate())},compare:function(e,t){return r(e,t,10)},setDate:function(e,t){c(e,t,1)},toDateString:function(e){return e.getFullYear()+\"/0/1\"}},{name:G,title:function(e,t,i){return n(e,t,i,100)},content:function(e){var t=e.date.getFullYear(),n=e.min.getFullYear(),r=e.max.getFullYear(),o=this.toDateString,a=n,s=r;return a-=a%10,s-=s%10,10>s-a&&(s=a+9),i({start:new ve(t-t%100-10,0,1),min:new ve(a,0,1),max:new ve(s,0,1),setter:this.setDate,build:function(e,t){var i=e.getFullYear(),a=i+9;return n>i&&(i=n),a>r&&(a=r),{ns:k.ns,value:i+\" - \"+a,dateString:o(e),cssClass:0===t||11==t?ee:\"\"}}})},first:function(e){var t=e.getFullYear();return new ve(t-t%100,e.getMonth(),e.getDate())},last:function(e){var t=e.getFullYear();return new ve(t-t%100+99,e.getMonth(),e.getDate())},compare:function(e,t){return r(e,t,100)},setDate:function(e,t){c(e,t,10)},toDateString:function(e){var t=e.getFullYear();return t-t%10+\"/0/1\"}}]},y.isEqualDatePart=g,y.makeUnselectable=p,y.restrictValue=a,y.isInRange=s,y.normalize=f,y.viewsEnum=_e,y.disabled=_,k.calendar=y}(window.kendo.jQuery),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.datepicker.min\",[\"kendo.calendar.min\",\"kendo.popup.min\"],e)}(function(){return function(e,t){function n(t){var n=t.parseFormats,i=t.format;B.normalize(t),n=e.isArray(n)?n:[n],n.length||n.push(\"yyyy-MM-dd\"),-1===e.inArray(i,n)&&n.splice(0,0,t.format),t.parseFormats=n}function i(e){e.preventDefault()}var r,o=window.kendo,a=o.ui,s=a.Widget,l=o.parseDate,c=o.keys,d=o.template,u=o._activeElement,h=\"
        \",f=\"\",p=\".kendoDatePicker\",m=\"click\"+p,g=\"open\",v=\"close\",_=\"change\",b=\"disabled\",w=\"readonly\",y=\"k-state-default\",k=\"k-state-focused\",x=\"k-state-selected\",C=\"k-state-disabled\",S=\"k-state-hover\",T=\"mouseenter\"+p+\" mouseleave\"+p,D=\"mousedown\"+p,A=\"id\",E=\"min\",I=\"max\",F=\"month\",M=\"aria-disabled\",R=\"aria-expanded\",P=\"aria-hidden\",z=\"aria-readonly\",B=o.calendar,L=B.isInRange,H=B.restrictValue,N=B.isEqualDatePart,O=e.extend,V=e.proxy,U=Date,W=function(t){var n,i=this,r=document.body,s=e(h).attr(P,\"true\").addClass(\"k-calendar-container\").appendTo(r);i.options=t=t||{},n=t.id,n&&(n+=\"_dateview\",s.attr(A,n),i._dateViewID=n),i.popup=new a.Popup(s,O(t.popup,t,{name:\"Popup\",isRtl:o.support.isRtl(t.anchor)})),i.div=s,i.value(t.value)};W.prototype={_calendar:function(){var t,n=this,r=n.calendar,s=n.options;r||(t=e(h).attr(A,o.guid()).appendTo(n.popup.element).on(D,i).on(m,\"td:has(.k-link)\",V(n._click,n)),n.calendar=r=new a.Calendar(t),n._setOptions(s),o.calendar.makeUnselectable(r.element),r.navigate(n._value||n._current,s.start),n.value(n._value))},_setOptions:function(e){this.calendar.setOptions({focusOnNav:!1,change:e.change,culture:e.culture,dates:e.dates,depth:e.depth,footer:e.footer,format:e.format,max:e.max,min:e.min,month:e.month,start:e.start,disableDates:e.disableDates})},setOptions:function(e){var t=this.options;this.options=O(t,e,{change:t.change,close:t.close,open:t.open}),this.calendar&&this._setOptions(this.options)},destroy:function(){this.popup.destroy()},open:function(){var e=this;e._calendar(),e.popup.open()},close:function(){this.popup.close()},min:function(e){this._option(E,e)},max:function(e){this._option(I,e)},toggle:function(){var e=this;e[e.popup.visible()?v:g]()},move:function(e){var t=this,n=e.keyCode,i=t.calendar,r=e.ctrlKey&&n==c.DOWN||n==c.ENTER,o=!1;if(e.altKey)n==c.DOWN?(t.open(),e.preventDefault(),o=!0):n==c.UP&&(t.close(),e.preventDefault(),o=!0);else if(t.popup.visible()){if(n==c.ESC||r&&i._cell.hasClass(x))return t.close(),e.preventDefault(),!0;t._current=i._move(e),o=!0}return o},current:function(e){this._current=e,this.calendar._focus(e)},value:function(e){var t=this,n=t.calendar,i=t.options,r=i.disableDates;r&&r(e)&&(e=null),t._value=e,t._current=new U(+H(e,i.min,i.max)),n&&n.value(e)},_click:function(e){-1!==e.currentTarget.className.indexOf(x)&&this.close()},_option:function(e,t){var n=this,i=n.calendar;n.options[e]=t,i&&i[e](t)}},W.normalize=n,o.DateView=W,r=s.extend({init:function(t,i){var r,a,c=this;s.fn.init.call(c,t,i),t=c.element,i=c.options,i.disableDates=o.calendar.disabled(i.disableDates),i.min=l(t.attr(\"min\"))||l(i.min),i.max=l(t.attr(\"max\"))||l(i.max),n(i),c._initialOptions=O({},i),c._wrapper(),c.dateView=new W(O({},i,{id:t.attr(A),anchor:c.wrapper,change:function(){c._change(this.value()),c.close()},close:function(e){c.trigger(v)?e.preventDefault():(t.attr(R,!1),a.attr(P,!0))},open:function(e){var n,i=c.options;c.trigger(g)?e.preventDefault():(c.element.val()!==c._oldText&&(n=l(t.val(),i.parseFormats,i.culture),c.dateView[n?\"current\":\"value\"](n)),t.attr(R,!0),a.attr(P,!1),c._updateARIA(n))}})),a=c.dateView.div,c._icon();try{t[0].setAttribute(\"type\",\"text\")}catch(d){t[0].type=\"text\"}t.addClass(\"k-input\").attr({role:\"combobox\",\"aria-expanded\":!1,\"aria-owns\":c.dateView._dateViewID}),c._reset(),c._template(),r=t.is(\"[disabled]\")||e(c.element).parents(\"fieldset\").is(\":disabled\"),r?c.enable(!1):c.readonly(t.is(\"[readonly]\")),c._old=c._update(i.value||c.element.val()),c._oldText=t.val(),o.notify(c)},events:[g,v,_],options:{name:\"DatePicker\",value:null,footer:\"\",format:\"\",culture:\"\",parseFormats:[],min:new Date(1900,0,1),max:new Date(2099,11,31),start:F,\r\ndepth:F,animation:{},month:{},dates:[],ARIATemplate:'Current focused date is #=kendo.toString(data.current, \"D\")#'},setOptions:function(e){var t=this,i=t._value;s.fn.setOptions.call(t,e),e=t.options,e.min=l(e.min),e.max=l(e.max),n(e),t.dateView.setOptions(e),i&&(t.element.val(o.toString(i,e.format,e.culture)),t._updateARIA(i))},_editable:function(e){var t=this,n=t._dateIcon.off(p),r=t.element.off(p),o=t._inputWrapper.off(p),a=e.readonly,s=e.disable;a||s?(o.addClass(s?C:y).removeClass(s?y:C),r.attr(b,s).attr(w,a).attr(M,s).attr(z,a)):(o.addClass(y).removeClass(C).on(T,t._toggleHover),r.removeAttr(b).removeAttr(w).attr(M,!1).attr(z,!1).on(\"keydown\"+p,V(t._keydown,t)).on(\"focusout\"+p,V(t._blur,t)).on(\"focus\"+p,function(){t._inputWrapper.addClass(k)}),n.on(m,V(t._click,t)).on(D,i))},readonly:function(e){this._editable({readonly:e===t?!0:e,disable:!1})},enable:function(e){this._editable({readonly:!1,disable:!(e=e===t?!0:e)})},destroy:function(){var e=this;s.fn.destroy.call(e),e.dateView.destroy(),e.element.off(p),e._dateIcon.off(p),e._inputWrapper.off(p),e._form&&e._form.off(\"reset\",e._resetHandler)},open:function(){this.dateView.open()},close:function(){this.dateView.close()},min:function(e){return this._option(E,e)},max:function(e){return this._option(I,e)},value:function(e){var n=this;return e===t?n._value:(n._old=n._update(e),null===n._old&&n.element.val(\"\"),n._oldText=n.element.val(),t)},_toggleHover:function(t){e(t.currentTarget).toggleClass(S,\"mouseenter\"===t.type)},_blur:function(){var e=this,t=e.element.val();e.close(),t!==e._oldText&&e._change(t),e._inputWrapper.removeClass(k)},_click:function(){var e=this,t=e.element;e.dateView.toggle(),o.support.touch||t[0]===u()||t.focus()},_change:function(e){var t,n,i,r=this,o=r.element.val();e=r._update(e),t=+r._old!=+e,n=t&&!r._typing,i=o!==r.element.val(),(n||i)&&r.element.trigger(_),t&&(r._old=e,r._oldText=r.element.val(),r.trigger(_)),r._typing=!1},_keydown:function(e){var t=this,n=t.dateView,i=t.element.val(),r=!1;n.popup.visible()||e.keyCode!=c.ENTER||i===t._oldText?(r=n.move(e),t._updateARIA(n._current),r||(t._typing=!0)):t._change(i)},_icon:function(){var t,n=this,i=n.element;t=i.next(\"span.k-select\"),t[0]||(t=e('select').insertAfter(i)),n._dateIcon=t.attr({role:\"button\",\"aria-controls\":n.dateView._dateViewID})},_option:function(e,n){var i=this,r=i.options;return n===t?r[e]:(n=l(n,r.parseFormats,r.culture),n&&(r[e]=new U(+n),i.dateView[e](n)),t)},_update:function(e){var t,n=this,i=n.options,r=i.min,a=i.max,s=n._value,c=l(e,i.parseFormats,i.culture),d=null===c&&null===s||c instanceof Date&&s instanceof Date;return i.disableDates(c)&&(c=null,n._old||(e=null)),+c===+s&&d?(t=o.toString(c,i.format,i.culture),t!==e&&n.element.val(null===c?e:t),c):(null!==c&&N(c,r)?c=H(c,r,a):L(c,r,a)||(c=null),n._value=c,n.dateView.value(c),n.element.val(c?o.toString(c,i.format,i.culture):e),n._updateARIA(c),c)},_wrapper:function(){var t,n=this,i=n.element;t=i.parents(\".k-datepicker\"),t[0]||(t=i.wrap(f).parent().addClass(\"k-picker-wrap k-state-default\"),t=t.wrap(f).parent()),t[0].style.cssText=i[0].style.cssText,i.css({width:\"100%\",height:i[0].style.height}),n.wrapper=t.addClass(\"k-widget k-datepicker k-header\").addClass(i[0].className),n._inputWrapper=e(t[0].firstChild)},_reset:function(){var t=this,n=t.element,i=n.attr(\"form\"),r=i?e(\"#\"+i):n.closest(\"form\");r[0]&&(t._resetHandler=function(){t.value(n[0].defaultValue),t.max(t._initialOptions.max),t.min(t._initialOptions.min)},t._form=r.on(\"reset\",t._resetHandler))},_template:function(){this._ariaTemplate=d(this.options.ARIATemplate)},_updateARIA:function(e){var t,n=this,i=n.dateView.calendar;n.element.removeAttr(\"aria-activedescendant\"),i&&(t=i._cell,t.attr(\"aria-label\",n._ariaTemplate({current:e||i.current()})),n.element.attr(\"aria-activedescendant\",t.attr(\"id\")))}}),a.plugin(r)}(window.kendo.jQuery),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.autocomplete.min\",[\"kendo.list.min\",\"kendo.mobile.scroller.min\"],e)}(function(){return function(e,t){function n(e,t,n){return n?t.substring(0,e).split(n).length-1:0}function i(e,t,i){return t.split(i)[n(e,t,i)]}function r(e,t,i,r){var o=t.split(r);return o.splice(n(e,t,r),1,i),r&&\"\"!==o[o.length-1]&&o.push(\"\"),o.join(r)}var o=window.kendo,a=o.support,s=o.caret,l=o._activeElement,c=a.placeholder,d=o.ui,u=d.List,h=o.keys,f=o.data.DataSource,p=\"aria-disabled\",m=\"aria-readonly\",g=\"change\",v=\"k-state-default\",_=\"disabled\",b=\"readonly\",w=\"k-state-focused\",y=\"k-state-selected\",k=\"k-state-disabled\",x=\"k-state-hover\",C=\".kendoAutoComplete\",S=\"mouseenter\"+C+\" mouseleave\"+C,T=e.proxy,D=u.extend({init:function(t,n){var i,r,a=this;a.ns=C,n=e.isArray(n)?{dataSource:n}:n,u.fn.init.call(a,t,n),t=a.element,n=a.options,n.placeholder=n.placeholder||t.attr(\"placeholder\"),c&&t.attr(\"placeholder\",n.placeholder),a._wrapper(),a._loader(),a._dataSource(),a._ignoreCase(),t[0].type=\"text\",i=a.wrapper,a._popup(),t.addClass(\"k-input\").on(\"keydown\"+C,T(a._keydown,a)).on(\"keypress\"+C,T(a._keypress,a)).on(\"paste\"+C,T(a._search,a)).on(\"focus\"+C,function(){a._prev=a._accessor(),a._oldText=a._prev,a._placeholder(!1),i.addClass(w)}).on(\"focusout\"+C,function(){a._change(),a._placeholder(),i.removeClass(w)}).attr({autocomplete:\"off\",role:\"textbox\",\"aria-haspopup\":!0}),a._enable(),a._old=a._accessor(),t[0].id&&t.attr(\"aria-owns\",a.ul[0].id),a._aria(),a._placeholder(),a._initList(),r=e(a.element).parents(\"fieldset\").is(\":disabled\"),r&&a.enable(!1),a.listView.bind(\"click\",function(e){e.preventDefault()}),a._resetFocusItemHandler=e.proxy(a._resetFocusItem,a),o.notify(a)},options:{name:\"AutoComplete\",enabled:!0,suggest:!1,template:\"\",groupTemplate:\"#:data#\",fixedGroupTemplate:\"#:data#\",dataTextField:\"\",minLength:1,delay:200,height:200,filter:\"startswith\",ignoreCase:!0,highlightFirst:!1,separator:null,placeholder:\"\",animation:{},virtual:!1,value:null},_dataSource:function(){var e=this;e.dataSource&&e._refreshHandler?e._unbindDataSource():(e._progressHandler=T(e._showBusy,e),e._errorHandler=T(e._hideBusy,e)),e.dataSource=f.create(e.options.dataSource).bind(\"progress\",e._progressHandler).bind(\"error\",e._errorHandler)},setDataSource:function(e){this.options.dataSource=e,this._dataSource(),this.listView.setDataSource(this.dataSource)},events:[\"open\",\"close\",g,\"select\",\"filtering\",\"dataBinding\",\"dataBound\"],setOptions:function(e){var t=this._listOptions(e);u.fn.setOptions.call(this,e),this.listView.setOptions(t),this._accessors(),this._aria()},_listOptions:function(t){var n=u.fn._listOptions.call(this,e.extend(t,{skipUpdateOnBind:!0}));return n.dataValueField=n.dataTextField,n.selectedItemChange=null,n},_editable:function(e){var t=this,n=t.element,i=t.wrapper.off(C),r=e.readonly,o=e.disable;r||o?(i.addClass(o?k:v).removeClass(o?v:k),n.attr(_,o).attr(b,r).attr(p,o).attr(m,r)):(i.addClass(v).removeClass(k).on(S,t._toggleHover),n.removeAttr(_).removeAttr(b).attr(p,!1).attr(m,!1))},close:function(){var e=this,t=e.listView.focus();t&&t.removeClass(y),e.popup.close()},destroy:function(){var e=this;e.element.off(C),e.wrapper.off(C),u.fn.destroy.call(e)},refresh:function(){this.listView.refresh()},select:function(e){this._select(e)},search:function(e){var t,n=this,r=n.options,o=r.ignoreCase,a=r.separator;e=e||n._accessor(),clearTimeout(n._typingTimeout),a&&(e=i(s(n.element)[0],e,a)),t=e.length,(!t||t>=r.minLength)&&(n._open=!0,n._mute(function(){this.listView.value([])}),n._filterSource({value:o?e.toLowerCase():e,operator:r.filter,field:r.dataTextField,ignoreCase:o}))},suggest:function(e){var i,r=this,o=r._last,a=r._accessor(),c=r.element[0],d=s(c)[0],f=r.options.separator,p=a.split(f),m=n(d,a,f),g=d;return o==h.BACKSPACE||o==h.DELETE?(r._last=t,t):(e=e||\"\",\"string\"!=typeof e&&(e[0]&&(e=r.dataSource.view()[u.inArray(e[0],r.ul[0])]),e=e?r._text(e):\"\"),0>=d&&(d=a.toLowerCase().indexOf(e.toLowerCase())+1),i=a.substring(0,d).lastIndexOf(f),i=i>-1?d-(i+f.length):d,a=p[m].substring(0,i),e&&(e=\"\"+e,i=e.toLowerCase().indexOf(a.toLowerCase()),i>-1&&(e=e.substring(i+a.length),g=d+e.length,a+=e),f&&\"\"!==p[p.length-1]&&p.push(\"\")),p[m]=a,r._accessor(p.join(f||\"\")),c===l()&&s(c,d,g),t)},value:function(e){return e===t?this._accessor():(this.listView.value(e),this._accessor(e),this._old=this._accessor(),this._oldText=this._accessor(),t)},_click:function(e){var n=e.item,i=this.element;return e.preventDefault(),this._active=!0,this.trigger(\"select\",{item:n})?(this.close(),t):(this._oldText=i.val(),this._select(n),this._blur(),s(i,i.val().length),t)},_resetFocusItem:function(){var e=this.options.highlightFirst?0:-1;this.options.virtual&&this.listView.scrollTo(0),this.listView.focus(e)},_listBound:function(){var e,n=this,i=n.popup,r=n.options,o=n.dataSource.flatView(),a=o.length,s=n.element[0]===l();n._angularItems(\"compile\"),n._resizePopup(),i.position(),a&&r.suggest&&s&&n.suggest(o[0]),n._open&&(n._open=!1,e=a?\"open\":\"close\",n._typingTimeout&&!s&&(e=\"close\"),a&&(n._resetFocusItem(),r.virtual&&n.popup.unbind(\"activate\",n._resetFocusItemHandler).one(\"activate\",n._resetFocusItemHandler)),i[e](),n._typingTimeout=t),n._touchScroller&&n._touchScroller.reset(),n._hideBusy(),n._makeUnselectable(),n.trigger(\"dataBound\")},_mute:function(e){this._muted=!0,e.call(this),this._muted=!1},_listChange:function(){var e=this._active||this.element[0]===l();e&&!this._muted&&this._selectValue(this.listView.selectedDataItems()[0])},_selectValue:function(e){var t=this.options.separator,n=\"\";e&&(n=this._text(e)),null===n&&(n=\"\"),t&&(n=r(s(this.element)[0],this._accessor(),n,t)),this._prev=n,this._accessor(n),this._placeholder()},_change:function(){var e=this,t=e.value(),n=t!==u.unifyType(e._old,typeof t),i=n&&!e._typing,r=e._oldText!==t;(i||r)&&e.element.trigger(g),n&&(e._old=t,e.trigger(g)),e.typing=!1},_accessor:function(e){var n=this,i=n.element[0];return e===t?(e=i.value,i.className.indexOf(\"k-readonly\")>-1&&e===n.options.placeholder?\"\":e):(i.value=null===e?\"\":e,n._placeholder(),t)},_keydown:function(e){var t=this,n=e.keyCode,i=t.popup.visible(),r=this.listView.focus();if(t._last=n,n===h.DOWN)i&&this._move(r?\"focusNext\":\"focusFirst\"),e.preventDefault();else if(n===h.UP)i&&this._move(r?\"focusPrev\":\"focusLast\"),e.preventDefault();else if(n===h.ENTER||n===h.TAB){if(n===h.ENTER&&i&&e.preventDefault(),i&&r){if(t.trigger(\"select\",{item:r}))return;this._select(r)}this._blur()}else n===h.ESC?(i&&e.preventDefault(),t.close()):t._search()},_keypress:function(){this._oldText=this.element.val(),this._typing=!0},_move:function(e){this.listView[e](),this.options.suggest&&this.suggest(this.listView.focus())},_hideBusy:function(){var e=this;clearTimeout(e._busy),e._loading.hide(),e.element.attr(\"aria-busy\",!1),e._busy=null},_showBusy:function(){var e=this;e._busy||(e._busy=setTimeout(function(){e.element.attr(\"aria-busy\",!0),e._loading.show()},100))},_placeholder:function(e){if(!c){var n,i=this,r=i.element,o=i.options.placeholder;if(o){if(n=r.val(),e===t&&(e=!n),e||(o=n!==o?n:\"\"),n===i._old&&!e)return;r.toggleClass(\"k-readonly\",e).val(o),o||r[0]!==document.activeElement||s(r[0],0,0)}}},_search:function(){var e=this;clearTimeout(e._typingTimeout),e._typingTimeout=setTimeout(function(){e._prev!==e._accessor()&&(e._prev=e._accessor(),e.search())},e.options.delay)},_select:function(e){this._active=!0,this.listView.select(e),this._active=!1},_loader:function(){this._loading=e('').insertAfter(this.element)},_toggleHover:function(t){e(t.currentTarget).toggleClass(x,\"mouseenter\"===t.type)},_wrapper:function(){var e,t=this,n=t.element,i=n[0];e=n.parent(),e.is(\"span.k-widget\")||(e=n.wrap(\"\").parent()),e.attr(\"tabindex\",-1),e.attr(\"role\",\"presentation\"),e[0].style.cssText=i.style.cssText,n.css({width:\"100%\",height:i.style.height}),t._focused=t.element,t.wrapper=e.addClass(\"k-widget k-autocomplete k-header\").addClass(i.className)}});d.plugin(D)}(window.kendo.jQuery),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.dropdownlist.min\",[\"kendo.list.min\",\"kendo.mobile.scroller.min\"],e)}(function(){return function(e,t){function n(e,t,n){for(var i,r=0,o=t.length-1;o>r;++r)i=t[r],i in e||(e[i]={}),e=e[i];e[t[o]]=n}function i(e,t){return e>=t&&(e-=t),e}function r(e,t){for(var n=0;e.length>n;n++)if(e.charAt(n)!==t)return!1;return!0}var o=window.kendo,a=o.ui,s=a.Select,l=o.support,c=o._activeElement,d=o.data.ObservableObject,u=o.keys,h=\".kendoDropDownList\",f=\"disabled\",p=\"readonly\",m=\"change\",g=\"k-state-focused\",v=\"k-state-default\",_=\"k-state-disabled\",b=\"aria-disabled\",w=\"aria-readonly\",y=\"mouseenter\"+h+\" mouseleave\"+h,k=\"tabindex\",x=\"filter\",C=\"accept\",S=\"The `optionLabel` option is not valid due to missing fields. Define a custom optionLabel as shown here http://docs.telerik.com/kendo-ui/api/javascript/ui/dropdownlist#configuration-optionLabel\",T=e.proxy,D=s.extend({init:function(n,i){var r,a,l,c=this,d=i&&i.index;c.ns=h,i=e.isArray(i)?{dataSource:i}:i,s.fn.init.call(c,n,i),i=c.options,n=c.element.on(\"focus\"+h,T(c._focusHandler,c)),c._focusInputHandler=e.proxy(c._focusInput,c),c.optionLabel=e(),c._optionLabel(),c._inputTemplate(),c._reset(),c._prev=\"\",c._word=\"\",c._wrapper(),c._tabindex(),c.wrapper.data(k,c.wrapper.attr(k)),c._span(),c._popup(),c._mobile(),c._dataSource(),c._ignoreCase(),c._filterHeader(),c._aria(),c._enable(),c._oldIndex=c.selectedIndex=-1,d!==t&&(i.index=d),c._initialIndex=i.index,c._initList(),c._cascade(),i.autoBind?c.dataSource.fetch():-1===c.selectedIndex&&(a=i.text||\"\",a||(r=i.optionLabel,r&&0===i.index?a=r:c._isSelect&&(a=n.children(\":selected\").text())),c._textAccessor(a)),l=e(c.element).parents(\"fieldset\").is(\":disabled\"),l&&c.enable(!1),c.listView.bind(\"click\",function(e){e.preventDefault()}),o.notify(c)},options:{name:\"DropDownList\",enabled:!0,autoBind:!0,index:0,text:null,value:null,delay:500,height:200,dataTextField:\"\",dataValueField:\"\",optionLabel:\"\",cascadeFrom:\"\",cascadeFromField:\"\",ignoreCase:!0,animation:{},filter:\"none\",minLength:1,virtual:!1,template:null,valueTemplate:null,optionLabelTemplate:null,groupTemplate:\"#:data#\",fixedGroupTemplate:\"#:data#\"},events:[\"open\",\"close\",m,\"select\",\"filtering\",\"dataBinding\",\"dataBound\",\"cascade\"],setOptions:function(e){s.fn.setOptions.call(this,e),this.listView.setOptions(this._listOptions(e)),this._optionLabel(),this._inputTemplate(),this._accessors(),this._filterHeader(),this._enable(),this._aria(),!this.value()&&this.hasOptionLabel()&&this.select(0)},destroy:function(){var e=this;s.fn.destroy.call(e),e.wrapper.off(h),e.element.off(h),e._inputWrapper.off(h),e._arrow.off(),e._arrow=null,e.optionLabel.off()},open:function(){var e=this;e.popup.visible()||(e.listView.bound()&&e._state!==C?e._allowOpening()&&(e.popup.one(\"activate\",e._focusInputHandler),e.popup.open(),e._focusItem()):(e._open=!0,e._state=\"rebind\",e.filterInput&&(e.filterInput.val(\"\"),e._prev=\"\"),e._filterSource()))},_focusInput:function(){this._focusElement(this.filterInput)},_allowOpening:function(){return this.hasOptionLabel()||this.filterInput||this.dataSource.view().length},toggle:function(e){this._toggle(e,!0)},current:function(e){var n;return e===t?(n=this.listView.focus(),!n&&0===this.selectedIndex&&this.hasOptionLabel()?this.optionLabel:n):(this._focus(e),t)},dataItem:function(n){var i=this,r=null;if(null===n)return n;if(n===t)r=i.listView.selectedDataItems()[0];else{if(\"number\"!=typeof n){if(i.options.virtual)return i.dataSource.getByUid(e(n).data(\"uid\"));n=n.hasClass(\"k-list-optionlabel\")?-1:e(i.items()).index(n)}else i.hasOptionLabel()&&(n-=1);r=i.dataSource.flatView()[n]}return r||(r=i._optionLabelDataItem()),r},refresh:function(){this.listView.refresh()},text:function(e){var n,i,r=this,o=r.options.ignoreCase;return e=null===e?\"\":e,e===t?r._textAccessor():(\"string\"==typeof e&&(i=o?e.toLowerCase():e,r._select(function(e){return e=r._text(e),o&&(e=(e+\"\").toLowerCase()),e===i}),n=r.dataItem(),n&&(e=n)),r._textAccessor(e),t)},value:function(e){var n=this,i=n.listView,r=n.dataSource;return e===t?(e=n._accessor()||n.listView.value()[0],e===t||null===e?\"\":e):(e&&(n._initialIndex=null),n._request&&n.options.cascadeFrom&&n.listView.bound()?(n._valueSetter&&r.unbind(m,n._valueSetter),n._valueSetter=T(function(){n.value(e)},n),r.one(m,n._valueSetter),t):(i.bound()&&i.isFiltered()?(i.bound(!1),n._filterSource()):n._fetchData(),i.value(e).done(function(){-1===n.selectedIndex&&n.text()&&(n.text(\"\"),n._accessor(\"\",-1)),n._old=n._accessor(),n._oldIndex=n.selectedIndex}),t))},hasOptionLabel:function(){return this.optionLabel&&!!this.optionLabel[0]},_optionLabel:function(){var n=this,i=n.options,r=i.optionLabel,a=i.optionLabelTemplate;return r?(a||(a=\"#:\",a+=\"string\"==typeof r?\"data\":o.expr(i.dataTextField,\"data\"),a+=\"#\"),\"function\"!=typeof a&&(a=o.template(a)),n.optionLabelTemplate=a,n.hasOptionLabel()||(n.optionLabel=e('
        ').prependTo(n.list)),n.optionLabel.html(a(r)).off().click(T(n._click,n)).on(y,n._toggleHover),n.angular(\"compile\",function(){return{elements:n.optionLabel}}),t):(n.optionLabel.off().remove(),n.optionLabel=e(),t)},_optionLabelText:function(){var e=this.options.optionLabel;return\"string\"==typeof e?e:this._text(e)},_optionLabelDataItem:function(){var t=this,n=t.options.optionLabel;return t.hasOptionLabel()?e.isPlainObject(n)?new d(n):t._assignInstance(t._optionLabelText(),\"\"):null},_listBound:function(){var e,t,n=this,i=n._initialIndex,r=n.options.optionLabel,o=n._state===x,a=n.dataSource.flatView(),s=a.length;n._angularItems(\"compile\"),n._presetValue=!1,n._resizePopup(!0),n.popup.position(),n._isSelect&&(t=n.value(),s?r&&(r=n._option(\"\",n._optionLabelText())):t&&(r=n._option(t,n.text())),n._options(a,r,t)),n._makeUnselectable(),o||(n._open&&n.toggle(n._allowOpening()),n._open=!1,n._fetch||(s?(!n.listView.value().length&&i>-1&&null!==i&&n.select(i),n._initialIndex=null,e=n.listView.selectedDataItems()[0],e&&n.text()!==n._text(e)&&n._selectValue(e)):n._textAccessor()!==n._optionLabelText()&&(n.listView.value(\"\"),n._selectValue(null),n._oldIndex=n.selectedIndex))),n._hideBusy(),n.trigger(\"dataBound\")},_listChange:function(){this._selectValue(this.listView.selectedDataItems()[0]),(this._presetValue||this._old&&-1===this._oldIndex)&&(this._oldIndex=this.selectedIndex)},_focusHandler:function(){this.wrapper.focus()},_focusinHandler:function(){this._inputWrapper.addClass(g),this._prevent=!1},_focusoutHandler:function(){var e=this,t=e._state===x,n=window.self!==window.top,i=e._focus();e._prevent||(clearTimeout(e._typingTimeout),t&&i&&!e.trigger(\"select\",{item:i})&&e._select(i,!e.dataSource.view().length),l.mobileOS.ios&&n?e._change():e._blur(),e._inputWrapper.removeClass(g),e._prevent=!0,e._open=!1,e.element.blur())},_wrapperMousedown:function(){this._prevent=!!this.filterInput},_wrapperClick:function(e){e.preventDefault(),this.popup.unbind(\"activate\",this._focusInputHandler),this._focused=this.wrapper,this._toggle()},_editable:function(e){var t=this,n=t.element,i=e.disable,r=e.readonly,o=t.wrapper.add(t.filterInput).off(h),a=t._inputWrapper.off(y);r||i?i?(o.removeAttr(k),a.addClass(_).removeClass(v)):(a.addClass(v).removeClass(_),o.on(\"focusin\"+h,T(t._focusinHandler,t)).on(\"focusout\"+h,T(t._focusoutHandler,t))):(n.removeAttr(f).removeAttr(p),a.addClass(v).removeClass(_).on(y,t._toggleHover),o.attr(k,o.data(k)).attr(b,!1).attr(w,!1).on(\"keydown\"+h,T(t._keydown,t)).on(\"focusin\"+h,T(t._focusinHandler,t)).on(\"focusout\"+h,T(t._focusoutHandler,t)).on(\"mousedown\"+h,T(t._wrapperMousedown,t)),t.wrapper.on(\"click\"+h,T(t._wrapperClick,t)),t.filterInput||o.on(\"keypress\"+h,T(t._keypress,t))),n.attr(f,i).attr(p,r),o.attr(b,i).attr(w,r)},_option:function(e,t){return'\"},_keydown:function(e){var n,i,r=this,o=e.keyCode,a=e.altKey,s=r.popup.visible();if(r.filterInput&&(n=r.filterInput[0]===c()),o===u.LEFT?(o=u.UP,i=!0):o===u.RIGHT&&(o=u.DOWN,i=!0),!i||!n){if(e.keyCode=o,(a&&o===u.UP||o===u.ESC)&&r._focusElement(r.wrapper),o===u.ENTER&&r._typingTimeout&&r.filterInput&&s)return e.preventDefault(),t;i=r._move(e),i||(s&&r.filterInput||(o===u.HOME?(i=!0,r._firstItem()):o===u.END&&(i=!0,r._lastItem()),i&&(r._select(r._focus()),e.preventDefault())),a||i||!r.filterInput||r._search())}},_matchText:function(e,n){var i=this.options.ignoreCase;return e===t||null===e?!1:(e+=\"\",i&&(e=e.toLowerCase()),0===e.indexOf(n))},_shuffleData:function(e,t){var n=this._optionLabelDataItem();return n&&(e=[n].concat(e)),e.slice(t).concat(e.slice(0,t))},_selectNext:function(){var e,t,n,o=this,a=o.dataSource.flatView().toJSON(),s=a.length+(o.hasOptionLabel()?1:0),l=r(o._word,o._last),c=o.selectedIndex;for(-1===c?c=0:(c+=l?1:0,c=i(c,s)),a=o._shuffleData(a,c),n=0;s>n&&(t=o._text(a[n]),!l||!o._matchText(t,o._last))&&!o._matchText(t,o._word);n++);n!==s&&(e=o._focus(),o._select(i(c+n,s)),o.trigger(\"select\",{item:o._focus()})&&o._select(e),o.popup.visible()||o._change())},_keypress:function(e){var t,n=this;0!==e.which&&e.keyCode!==o.keys.ENTER&&(t=String.fromCharCode(e.charCode||e.keyCode),n.options.ignoreCase&&(t=t.toLowerCase()),\" \"===t&&e.preventDefault(),n._word+=t,n._last=t,n._search())},_popupOpen:function(){var e=this.popup;e.wrapper=o.wrap(e.element),e.element.closest(\".km-root\")[0]&&(e.wrapper.addClass(\"km-popup km-widget\"),this.wrapper.addClass(\"km-widget\"))},_popup:function(){s.fn._popup.call(this),this.popup.one(\"open\",T(this._popupOpen,this))},_click:function(n){var i=n.item||e(n.currentTarget);return n.preventDefault(),this.trigger(\"select\",{item:i})?(this.close(),t):(this._userTriggered=!0,this._select(i),this._focusElement(this.wrapper),this._blur(),t)},_focusElement:function(e){var t=c(),n=this.wrapper,i=this.filterInput,r=e===i?n:i,o=l.mobileOS&&(l.touch||l.MSPointers||l.pointers);i&&i[0]===e[0]&&o||i&&r[0]===t&&(this._prevent=!0,this._focused=e.focus())},_filter:function(e){var t,n;e&&(t=this,n=t.options.ignoreCase,n&&(e=e.toLowerCase()),t._select(function(n){return t._matchText(t._text(n),e)}))},_search:function(){var e=this,n=e.dataSource;if(clearTimeout(e._typingTimeout),\"none\"!==e.options.filter)e._typingTimeout=setTimeout(function(){var t=e.filterInput.val();e._prev!==t&&(e._prev=t,e.search(t)),e._typingTimeout=null},e.options.delay);else{if(e._typingTimeout=setTimeout(function(){e._word=\"\"},e.options.delay),!e.listView.bound())return n.fetch().done(function(){e._selectNext()}),t;e._selectNext()}},_get:function(t){var n,i,r,o=\"function\"==typeof t,a=o?e():e(t);if(this.hasOptionLabel()&&(\"number\"==typeof t?t>-1&&(t-=1):a.hasClass(\"k-list-optionlabel\")&&(t=-1)),o){for(n=this.dataSource.flatView(),r=0;n.length>r;r++)if(t(n[r])){t=r,i=!0;break}i||(t=-1)}return t},_firstItem:function(){this.hasOptionLabel()?this._focus(this.optionLabel):this.listView.focusFirst()},_lastItem:function(){this._resetOptionLabel(),this.listView.focusLast()},_nextItem:function(){this.optionLabel.hasClass(\"k-state-focused\")?(this._resetOptionLabel(),this.listView.focusFirst()):this.listView.focusNext()},_prevItem:function(){this.optionLabel.hasClass(\"k-state-focused\")||(this.listView.focusPrev(),this.listView.focus()||this._focus(this.optionLabel))},_focusItem:function(){var e=this.listView,n=e.focus(),i=e.select();i=i[i.length-1],i===t&&this.options.highlightFirst&&!n&&(i=0),i!==t?e.focus(i):this.options.optionLabel?(this._focus(this.optionLabel),this._select(this.optionLabel)):e.scrollToIndex(0)},_resetOptionLabel:function(e){this.optionLabel.removeClass(\"k-state-focused\"+(e||\"\")).removeAttr(\"id\")},_focus:function(e){var n=this.listView,i=this.optionLabel;return e===t?(e=n.focus(),!e&&i.hasClass(\"k-state-focused\")&&(e=i),e):(this._resetOptionLabel(),e=this._get(e),n.focus(e),-1===e&&(i.addClass(\"k-state-focused\").attr(\"id\",n._optionID),this._focused.add(this.filterInput).removeAttr(\"aria-activedescendant\").attr(\"aria-activedescendant\",n._optionID)),t)},_select:function(e,t){var n=this;e=n._get(e),n.listView.select(e),t||n._state!==x||(n._state=C),-1===e&&n._selectValue(null)},_selectValue:function(e){var n=this,i=n.options.optionLabel,r=n.listView.select(),o=\"\",a=\"\";r=r[r.length-1],r===t&&(r=-1),this._resetOptionLabel(\" k-state-selected\"),e?(a=e,o=n._dataValue(e),i&&(r+=1)):i&&(n._focus(n.optionLabel.addClass(\"k-state-selected\")),a=n._optionLabelText(),o=\"string\"==typeof i?\"\":n._value(i),r=0),n.selectedIndex=r,null===o&&(o=\"\"),n._textAccessor(a),n._accessor(o,r),n._triggerCascade()},_mobile:function(){var e=this,t=e.popup,n=l.mobileOS,i=t.element.parents(\".km-root\").eq(0);i.length&&n&&(t.options.animation.open.effects=n.android||n.meego?\"fadeIn\":n.ios||n.wp?\"slideIn:up\":t.options.animation.open.effects)},_filterHeader:function(){var t,n=this.options,i=\"none\"!==n.filter;this.filterInput&&(this.filterInput.off(h).parent().remove(),this.filterInput=null),i&&(t='select',this.filterInput=e('').attr({placeholder:this.element.attr(\"placeholder\"),role:\"listbox\",\"aria-haspopup\":!0,\"aria-expanded\":!1}),this.list.prepend(e('').append(this.filterInput.add(t))))},_span:function(){var t,n=this,i=n.wrapper,r=\"span.k-input\";t=i.find(r),t[0]||(i.append(' select').append(n.element),t=i.find(r)),n.span=t,n._inputWrapper=e(i[0].firstChild),n._arrow=i.find(\".k-icon\")},_wrapper:function(){var e,t=this,n=t.element,i=n[0];e=n.parent(),e.is(\"span.k-widget\")||(e=n.wrap(\"\").parent(),e[0].style.cssText=i.style.cssText,e[0].title=i.title),n.hide(),t._focused=t.wrapper=e.addClass(\"k-widget k-dropdown k-header\").addClass(i.className).css(\"display\",\"\").attr({accesskey:n.attr(\"accesskey\"),unselectable:\"on\",role:\"listbox\",\"aria-haspopup\":!0,\"aria-expanded\":!1})},_clearSelection:function(e){this.select(e.value()?0:-1)},_inputTemplate:function(){var t=this,n=t.options.valueTemplate;if(n=n?o.template(n):e.proxy(o.template(\"#:this._text(data)#\",{useWithBlock:!1}),t),t.valueTemplate=n,t.hasOptionLabel())try{t.valueTemplate(t._optionLabelDataItem())}catch(i){throw Error(S)}},_textAccessor:function(n){var i,r=null,o=this.valueTemplate,a=this.options,s=a.optionLabel,l=this.span;if(n===t)return l.text();e.isPlainObject(n)||n instanceof d?r=n:s&&this._optionLabelText()===n&&(r=s,o=this.optionLabelTemplate),r||(r=this._assignInstance(n,this._accessor())),i=function(){return{elements:l.get(),data:[{dataItem:r}]}},this.angular(\"cleanup\",i);try{l.html(o(r))}catch(c){l.html(\"\")}this.angular(\"compile\",i)},_preselect:function(e,t){e||t||(t=this._optionLabelText()),this._accessor(e),this._textAccessor(t),this._old=this._accessor(),this._oldIndex=this.selectedIndex,this.listView.setValue(e),this._initialIndex=null,this._presetValue=!0},_assignInstance:function(e,t){var i=this.options.dataTextField,r={};return i?(n(r,i.split(\".\"),e),n(r,this.options.dataValueField.split(\".\"),t),r=new d(r)):r=e,r}});a.plugin(D)}(window.kendo.jQuery),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.combobox.min\",[\"kendo.list.min\",\"kendo.mobile.scroller.min\"],e)}(function(){return function(e,t){var n=window.kendo,i=n.ui,r=i.List,o=i.Select,a=n.caret,s=n.support,l=s.placeholder,c=n._activeElement,d=n.keys,u=\".kendoComboBox\",h=\"click\"+u,f=\"mousedown\"+u,p=\"disabled\",m=\"readonly\",g=\"change\",v=\"k-state-default\",_=\"k-state-focused\",b=\"k-state-disabled\",w=\"aria-disabled\",y=\"aria-readonly\",k=\"filter\",x=\"accept\",C=\"rebind\",S=\"mouseenter\"+u+\" mouseleave\"+u,T=e.proxy,D=o.extend({init:function(t,i){var r,a,s=this;s.ns=u,i=e.isArray(i)?{dataSource:i}:i,o.fn.init.call(s,t,i),i=s.options,t=s.element.on(\"focus\"+u,T(s._focusHandler,s)),i.placeholder=i.placeholder||t.attr(\"placeholder\"),s._reset(),s._wrapper(),s._input(),s._tabindex(s.input),s._popup(),s._dataSource(),s._ignoreCase(),s._enable(),s._oldIndex=s.selectedIndex=-1,s._aria(),s._initialIndex=i.index,s._initList(),s._cascade(),i.autoBind?s._filterSource():(r=i.text,!r&&s._isSelect&&(r=t.children(\":selected\").text()),r&&s._setText(r)),r||s._placeholder(),a=e(s.element).parents(\"fieldset\").is(\":disabled\"),a&&s.enable(!1),n.notify(s)},options:{name:\"ComboBox\",enabled:!0,index:-1,text:null,value:null,autoBind:!0,delay:200,dataTextField:\"\",dataValueField:\"\",minLength:0,height:200,highlightFirst:!0,filter:\"none\",placeholder:\"\",suggest:!1,cascadeFrom:\"\",cascadeFromField:\"\",ignoreCase:!0,animation:{},virtual:!1,template:null,groupTemplate:\"#:data#\",fixedGroupTemplate:\"#:data#\"},events:[\"open\",\"close\",g,\"select\",\"filtering\",\"dataBinding\",\"dataBound\",\"cascade\"],setOptions:function(e){o.fn.setOptions.call(this,e),this.listView.setOptions(e),this._accessors(),this._aria()},destroy:function(){var e=this;e.input.off(u),e.element.off(u),e._inputWrapper.off(u),e._arrow.parent().off(h+\" \"+f),o.fn.destroy.call(e)},_focusHandler:function(){this.input.focus()},_arrowClick:function(){this._toggle()},_inputFocus:function(){this._inputWrapper.addClass(_),this._placeholder(!1)},_inputFocusout:function(){var e=this,n=e.value();return e._inputWrapper.removeClass(_),clearTimeout(e._typingTimeout),e._typingTimeout=null,e.text(e.text()),n!==e.value()&&e.trigger(\"select\",{item:e._focus()})?(e.value(n),t):(e._placeholder(),e._blur(),e.element.blur(),t)},_editable:function(e){var t=this,n=e.disable,i=e.readonly,r=t._inputWrapper.off(u),o=t.element.add(t.input.off(u)),a=t._arrow.parent().off(h+\" \"+f);i||n?(r.addClass(n?b:v).removeClass(n?v:b),o.attr(p,n).attr(m,i).attr(w,n).attr(y,i)):(r.addClass(v).removeClass(b).on(S,t._toggleHover),o.removeAttr(p).removeAttr(m).attr(w,!1).attr(y,!1),a.on(h,T(t._arrowClick,t)).on(f,function(e){e.preventDefault()}),t.input.on(\"keydown\"+u,T(t._keydown,t)).on(\"focus\"+u,T(t._inputFocus,t)).on(\"focusout\"+u,T(t._inputFocusout,t)))},open:function(){var e=this,t=e._state;e.popup.visible()||(!e.listView.bound()&&t!==k||t===x?(e._open=!0,e._state=C,e._filterSource()):(e.popup.open(),e._focusItem()))},_updateSelectionState:function(){var e=this,n=e.options.text,i=e.options.value;e.listView.isFiltered()||(-1===e.selectedIndex?((n===t||null===n)&&(n=i),e._accessor(i),e.input.val(n||e.input.val()),e._placeholder()):-1===e._oldIndex&&(e._oldIndex=e.selectedIndex))},_buildOptions:function(e){var n,i,r=this;r._isSelect&&(n=r._customOption,i=r.element[0].children[0],r._state===C&&(r._state=\"\"),r._customOption=t,r._options(e,\"\",r.value()),n&&n[0].selected?r._custom(n.val()):i||r._custom(\"\"))},_updateSelection:function(){var n,i=this,r=i.listView,o=i._initialIndex,a=null!==o&&o>-1,s=i._state===k;return s?(e(r.focus()).removeClass(\"k-state-selected\"),t):(i._fetch||(r.value().length||(a?i.select(o):i._accessor()&&r.value(i._accessor())),i._initialIndex=null,n=r.selectedDataItems()[0],n&&(i._custom(i._value(n)||\"\"),i.text()&&i.text()!==i._text(n)&&i._selectValue(n))),t)},_updateItemFocus:function(){var e=this.listView;this.options.highlightFirst?e.focus()||e.focusIndex()||e.focus(0):e.focus(-1)},_listBound:function(){var e=this,n=e.input[0]===c(),i=e.dataSource.flatView(),r=e.listView.skip(),o=r===t||0===r;e._angularItems(\"compile\"),e._presetValue=!1,e._resizePopup(),e.popup.position(),e._buildOptions(i),e._makeUnselectable(),e._updateSelection(),i.length&&o&&(e._updateItemFocus(),e.options.suggest&&n&&e.input.val()&&e.suggest(i[0])),e._open&&(e._open=!1,e._typingTimeout&&!n?e.popup.close():e.toggle(!!i.length),e._typingTimeout=null),e._hideBusy(),e.trigger(\"dataBound\")},_listChange:function(){this._selectValue(this.listView.selectedDataItems()[0]),this._presetValue&&(this._oldIndex=this.selectedIndex)},_get:function(e){var t,n,i;if(\"function\"==typeof e){for(t=this.dataSource.flatView(),i=0;t.length>i;i++)if(e(t[i])){e=i,n=!0;break}n||(e=-1)}return e},_select:function(e,t){e=this._get(e),-1===e&&(this.input[0].value=\"\",\r\nthis._accessor(\"\")),this.listView.select(e),t||this._state!==k||(this._state=x)},_selectValue:function(e){var n=this.listView.select(),i=\"\",r=\"\";n=n[n.length-1],n===t&&(n=-1),this.selectedIndex=n,-1===n?(i=r=this.input[0].value,this.listView.focus(-1)):(e&&(i=this._dataValue(e),r=this._text(e)),null===i&&(i=\"\")),this._prev=this.input[0].value=r,this._accessor(i!==t?i:r,n),this._placeholder(),this._triggerCascade()},refresh:function(){this.listView.refresh()},suggest:function(e){var n,i=this,o=i.input[0],s=i.text(),l=a(o)[0],u=i._last;return u==d.BACKSPACE||u==d.DELETE?(i._last=t,t):(e=e||\"\",\"string\"!=typeof e&&(e[0]&&(e=i.dataSource.view()[r.inArray(e[0],i.ul[0])]),e=e?i._text(e):\"\"),0>=l&&(l=s.toLowerCase().indexOf(e.toLowerCase())+1),e?(e=\"\"+e,n=e.toLowerCase().indexOf(s.toLowerCase()),n>-1&&(s+=e.substring(n+s.length))):s=s.substring(0,l),s.length===l&&e||(o.value=s,o===c()&&a(o,l,s.length)),t)},text:function(e){var n,i,o,a,s,l;return e=null===e?\"\":e,n=this,i=n.input[0],o=n.options.ignoreCase,a=e,e===t?i.value:n.options.autoBind!==!1||n.listView.bound()?(s=n.dataItem(),s&&n._text(s)===e&&(l=n._value(s),l===r.unifyType(n._old,typeof l))?(n._triggerCascade(),t):(o&&(a=a.toLowerCase()),n._select(function(e){return e=n._text(e),o&&(e=(e+\"\").toLowerCase()),e===a}),0>n.selectedIndex&&(n._accessor(e),i.value=e,n._triggerCascade()),n._prev=i.value,t)):(n._setText(e),t)},toggle:function(e){this._toggle(e,!0)},value:function(e){var n=this,i=n.options,r=n.listView;return e===t?(e=n._accessor()||n.listView.value()[0],e===t||null===e?\"\":e):((e!==i.value||n.input.val()!==i.text)&&(n._accessor(e),r.bound()&&r.isFiltered()?(r.bound(!1),n._filterSource()):n._fetchData(),r.value(e).done(function(){n._selectValue(r.selectedDataItems()[0]),-1===n.selectedIndex&&(n._accessor(e),n.input.val(e),n._placeholder(!0)),n._old=n._accessor(),n._oldIndex=n.selectedIndex,n._prev=n.input.val(),n._state===k&&(n._state=x)})),t)},_click:function(e){var n=e.item;return e.preventDefault(),this.trigger(\"select\",{item:n})?(this.close(),t):(this._userTriggered=!0,this._select(n),this._blur(),t)},_filter:function(e){var n,i=this,r=i.options,o=i.dataSource,a=r.ignoreCase,s=function(n){var r=i._text(n);return r!==t?(r+=\"\",\"\"!==r&&\"\"===e?!1:(a&&(r=r.toLowerCase()),0===r.indexOf(e))):t};return a&&(e=e.toLowerCase()),i.ul[0].firstChild?(this.listView.focus(this._get(s)),n=this.listView.focus(),n&&(r.suggest&&i.suggest(n),this.open()),this.options.highlightFirst&&!e&&this.listView.focusFirst(),t):(o.one(g,function(){o.view()[0]&&i.search(e)}).fetch(),t)},_input:function(){var t,n=this,i=n.element.removeClass(\"k-input\")[0],r=i.accessKey,o=n.wrapper,a=\"input.k-input\",s=i.name||\"\";s&&(s='name=\"'+s+'_input\" '),t=o.find(a),t[0]||(o.append('select').append(n.element),t=o.find(a)),t[0].style.cssText=i.style.cssText,t[0].title=i.title,i.maxLength>-1&&(t[0].maxLength=i.maxLength),t.addClass(i.className).val(this.options.text||i.value).css({width:\"100%\",height:i.style.height}).attr({role:\"combobox\",\"aria-expanded\":!1}).show(),l&&t.attr(\"placeholder\",n.options.placeholder),r&&(i.accessKey=\"\",t[0].accessKey=r),n._focused=n.input=t,n._inputWrapper=e(o[0].firstChild),n._arrow=o.find(\".k-icon\").attr({role:\"button\",tabIndex:-1}),i.id&&n._arrow.attr(\"aria-controls\",n.ul[0].id)},_keydown:function(e){var t=this,n=e.keyCode;t._last=n,clearTimeout(t._typingTimeout),t._typingTimeout=null,n==d.TAB||t._move(e)||t._search()},_placeholder:function(e){if(!l){var n,i=this,r=i.input,o=i.options.placeholder;if(o){if(n=i.value(),e===t&&(e=!n),r.toggleClass(\"k-readonly\",e),!e){if(n)return;o=\"\"}r.val(o),o||r[0]!==c()||a(r[0],0,0)}}},_search:function(){var e=this;e._typingTimeout=setTimeout(function(){var t=e.text();e._prev!==t&&(e._prev=t,\"none\"===e.options.filter&&e.listView.value(\"\"),e.search(t)),e._typingTimeout=null},e.options.delay)},_setText:function(e){this.input.val(e),this._prev=e},_wrapper:function(){var e=this,t=e.element,n=t.parent();n.is(\"span.k-widget\")||(n=t.hide().wrap(\"\").parent(),n[0].style.cssText=t[0].style.cssText),e.wrapper=n.addClass(\"k-widget k-combobox k-header\").addClass(t[0].className).css(\"display\",\"\")},_clearSelection:function(e,t){var n=this,i=e.value(),r=i&&-1===e.selectedIndex;-1==this.selectedIndex&&this.value()||(t||!i||r)&&(n.options.value=\"\",n.value(\"\"))},_preselect:function(e,t){this.input.val(t),this._accessor(e),this._old=this._accessor(),this._oldIndex=this.selectedIndex,this.listView.setValue(e),this._placeholder(),this._initialIndex=null,this._presetValue=!0}});i.plugin(D)}(window.kendo.jQuery),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.multiselect.min\",[\"kendo.list.min\",\"kendo.mobile.scroller.min\"],e)}(function(){return function(e,t){function n(e,t){var n;if(null===e&&null!==t||null!==e&&null===t)return!1;if(n=e.length,n!==t.length)return!1;for(;n--;)if(e[n]!==t[n])return!1;return!0}var i=window.kendo,r=i.ui,o=r.List,a=i.keys,s=i._activeElement,l=i.data.ObservableArray,c=e.proxy,d=\"id\",u=\"li\",h=\"accept\",f=\"filter\",p=\"rebind\",m=\"open\",g=\"close\",v=\"change\",_=\"progress\",b=\"select\",w=\"aria-disabled\",y=\"aria-readonly\",k=\"k-state-focused\",x=\"k-loading-hidden\",C=\"k-state-hover\",S=\"k-state-disabled\",T=\"disabled\",D=\"readonly\",A=\".kendoMultiSelect\",E=\"click\"+A,I=\"keydown\"+A,F=\"mouseenter\"+A,M=\"mouseleave\"+A,R=F+\" \"+M,P=/\"/g,z=e.isArray,B=[\"font-family\",\"font-size\",\"font-stretch\",\"font-style\",\"font-weight\",\"letter-spacing\",\"text-transform\",\"line-height\"],L=o.extend({init:function(t,n){var r,a,s=this;s.ns=A,o.fn.init.call(s,t,n),s._optionsMap={},s._customOptions={},s._wrapper(),s._tagList(),s._input(),s._textContainer(),s._loader(),s._tabindex(s.input),t=s.element.attr(\"multiple\",\"multiple\").hide(),n=s.options,n.placeholder||(n.placeholder=t.data(\"placeholder\")),r=t.attr(d),r&&(s._tagID=r+\"_tag_active\",r+=\"_taglist\",s.tagList.attr(d,r)),s._aria(r),s._dataSource(),s._ignoreCase(),s._popup(),s._tagTemplate(),s._initList(),s._reset(),s._enable(),s._placeholder(),n.autoBind?s.dataSource.fetch():n.value&&s._preselect(n.value),a=e(s.element).parents(\"fieldset\").is(\":disabled\"),a&&s.enable(!1),i.notify(s)},options:{name:\"MultiSelect\",tagMode:\"multiple\",enabled:!0,autoBind:!0,autoClose:!0,highlightFirst:!0,dataTextField:\"\",dataValueField:\"\",filter:\"startswith\",ignoreCase:!0,minLength:0,delay:100,value:null,maxSelectedItems:null,placeholder:\"\",height:200,animation:{},virtual:!1,itemTemplate:\"\",tagTemplate:\"\",groupTemplate:\"#:data#\",fixedGroupTemplate:\"#:data#\"},events:[m,g,v,b,\"filtering\",\"dataBinding\",\"dataBound\"],setDataSource:function(e){this.options.dataSource=e,this._dataSource(),this.listView.setDataSource(this.dataSource),this.options.autoBind&&this.dataSource.fetch()},setOptions:function(e){var t=this._listOptions(e);o.fn.setOptions.call(this,e),this.listView.setOptions(t),this._accessors(),this._aria(this.tagList.attr(d)),this._tagTemplate()},currentTag:function(e){var n=this;return e===t?n._currentTag:(n._currentTag&&(n._currentTag.removeClass(k).removeAttr(d),n.input.removeAttr(\"aria-activedescendant\")),e&&(e.addClass(k).attr(d,n._tagID),n.input.attr(\"aria-activedescendant\",n._tagID)),n._currentTag=e,t)},dataItems:function(){return this.listView.selectedDataItems()},destroy:function(){var e=this,t=e.ns;clearTimeout(e._busy),clearTimeout(e._typingTimeout),e.wrapper.off(t),e.tagList.off(t),e.input.off(t),o.fn.destroy.call(e)},_activateItem:function(){o.fn._activateItem.call(this),this.currentTag(null)},_listOptions:function(t){var n=this,r=o.fn._listOptions.call(n,e.extend(t,{selectedItemChange:c(n._selectedItemChange,n),selectable:\"multiple\"})),a=this.options.itemTemplate||this.options.template,s=r.itemTemplate||a||r.template;return s||(s=\"#:\"+i.expr(r.dataTextField,\"data\")+\"#\"),r.template=s,r},_setListValue:function(){o.fn._setListValue.call(this,this._initialValues.slice(0))},_listChange:function(e){this._state===p&&(this._state=\"\",e.added=[]),this._selectValue(e.added,e.removed)},_selectedItemChange:function(e){var t,n,i=e.items;for(n=0;i.length>n;n++)t=i[n],this.tagList.children().eq(t.index).children(\"span:first\").html(this.tagTextTemplate(t.item))},_wrapperMousedown:function(t){var n=this,r=\"input\"!==t.target.nodeName.toLowerCase(),o=e(t.target),a=o.hasClass(\"k-select\")||o.hasClass(\"k-icon\");a&&(a=!o.closest(\".k-select\").children(\".k-i-arrow-s\").length),!r||a&&i.support.mobileOS||t.preventDefault(),a||(n.input[0]!==s()&&r&&n.input.focus(),0===n.options.minLength&&n.open())},_inputFocus:function(){this._placeholder(!1),this.wrapper.addClass(k)},_inputFocusout:function(){var e=this;clearTimeout(e._typingTimeout),e.wrapper.removeClass(k),e._placeholder(!e.listView.selectedDataItems()[0],!0),e.close(),e._state===f&&(e._state=h,e.listView.skipUpdate(!0)),e.element.blur()},_removeTag:function(e){var n,i=this,r=i._state,o=e.index(),a=i.listView,s=a.value()[o],l=i._customOptions[s];l!==t||r!==h&&r!==f||(l=i._optionsMap[s]),l!==t?(n=i.element[0].children[l],n.removeAttribute(\"selected\"),n.selected=!1,a.removeAt(o),e.remove()):a.select(a.select()[o]),i.currentTag(null),i._change(),i._close()},_tagListClick:function(t){var n=e(t.currentTarget);n.children(\".k-i-arrow-s\").length||this._removeTag(n.closest(u))},_editable:function(t){var n=this,i=t.disable,r=t.readonly,o=n.wrapper.off(A),a=n.tagList.off(A),s=n.element.add(n.input.off(A));r||i?(i?o.addClass(S):o.removeClass(S),s.attr(T,i).attr(D,r).attr(w,i).attr(y,r)):(o.removeClass(S).on(R,n._toggleHover).on(\"mousedown\"+A+\" touchend\"+A,c(n._wrapperMousedown,n)),n.input.on(I,c(n._keydown,n)).on(\"paste\"+A,c(n._search,n)).on(\"focus\"+A,c(n._inputFocus,n)).on(\"focusout\"+A,c(n._inputFocusout,n)),s.removeAttr(T).removeAttr(D).attr(w,!1).attr(y,!1),a.on(F,u,function(){e(this).addClass(C)}).on(M,u,function(){e(this).removeClass(C)}).on(E,\"li.k-button .k-select\",c(n._tagListClick,n)))},_close:function(){var e=this;e.options.autoClose?e.close():e.popup.position()},_filterSource:function(e,t){t||(t=this._retrieveData),this._retrieveData=!1,o.fn._filterSource.call(this,e,t)},close:function(){this.popup.close()},open:function(){var e=this;e._request&&(e._retrieveData=!1),e._retrieveData||!e.listView.bound()||e._state===h?(e._open=!0,e._state=p,e.listView.skipUpdate(!0),e._filterSource()):e._allowSelection()&&(e.popup.open(),e._focusItem())},toggle:function(e){e=e!==t?e:!this.popup.visible(),this[e?m:g]()},refresh:function(){this.listView.refresh()},_listBound:function(){var e=this,n=e.dataSource.flatView(),i=e.listView.skip(),r=n.length;e._angularItems(\"compile\"),e._render(n),e._resizePopup(),e._open&&(e._open=!1,e.toggle(r)),e.popup.position(),!e.options.highlightFirst||i!==t&&0!==i||e.listView.focusFirst(),e._touchScroller&&e._touchScroller.reset(),e._hideBusy(),e._makeUnselectable(),e.trigger(\"dataBound\")},search:function(e){var t,n,i=this,r=i.options,o=r.ignoreCase,a=r.filter,s=r.dataTextField,l=i.input.val();r.placeholder===l&&(l=\"\"),clearTimeout(i._typingTimeout),e=\"string\"==typeof e?e:l,n=e.length,(!n||n>=r.minLength)&&(i._state=f,i._open=!0,t={value:o?e.toLowerCase():e,field:s,operator:a,ignoreCase:o},i._filterSource(t))},value:function(e){var n=this,i=n.listView,r=i.value().slice(),o=n.options.maxSelectedItems,a=i.bound()&&i.isFiltered();return e===t?r:(e=n._normalizeValues(e),null!==o&&e.length>o&&(e=e.slice(0,o)),a&&(i.bound(!1),n._filterSource()),i.value(e),n._old=e,a||n._fetchData(),t)},_preselect:function(t,n){var r=this;z(t)||t instanceof i.data.ObservableArray||(t=[t]),(e.isPlainObject(t[0])||t[0]instanceof i.data.ObservableObject||!r.options.dataValueField)&&(r.dataSource.data(t),r.value(n||r._initialValues),r._retrieveData=!0)},_setOption:function(e,t){var n=this.element[0].children[this._optionsMap[e]];n&&(t?n.setAttribute(\"selected\",\"selected\"):n.removeAttribute(\"selected\"),n.selected=t)},_fetchData:function(){var e=this,t=!!e.dataSource.view().length,n=0===e.listView.value().length;n||e._request||(e._retrieveData||!e._fetch&&!t)&&(e._fetch=!0,e._retrieveData=!1,e.dataSource.read().done(function(){e._fetch=!1}))},_isBound:function(){return this.listView.bound()&&!this._retrieveData},_dataSource:function(){var e=this,t=e.element,n=e.options,r=n.dataSource||{};r=z(r)?{data:r}:r,r.select=t,r.fields=[{field:n.dataTextField},{field:n.dataValueField}],e.dataSource&&e._refreshHandler?e._unbindDataSource():(e._progressHandler=c(e._showBusy,e),e._errorHandler=c(e._hideBusy,e)),e.dataSource=i.data.DataSource.create(r).bind(_,e._progressHandler).bind(\"error\",e._errorHandler)},_reset:function(){var t=this,n=t.element,i=n.attr(\"form\"),r=i?e(\"#\"+i):n.closest(\"form\");r[0]&&(t._resetHandler=function(){setTimeout(function(){t.value(t._initialValues),t._placeholder()})},t._form=r.on(\"reset\",t._resetHandler))},_initValue:function(){var e=this.options.value||this.element.val();this._old=this._initialValues=this._normalizeValues(e)},_normalizeValues:function(t){var n=this;return null===t?t=[]:t&&e.isPlainObject(t)?t=[n._value(t)]:t&&e.isPlainObject(t[0])?t=e.map(t,function(e){return n._value(e)}):z(t)||t instanceof l||(t=[t]),t},_change:function(){var e=this,t=e.value();n(t,e._old)||(e._old=t.slice(),e.trigger(v),e.element.trigger(v))},_click:function(e){var n=e.item;return e.preventDefault(),this.trigger(b,{item:n})?(this._close(),t):(this._select(n),this._change(),this._close(),t)},_keydown:function(n){var r=this,o=n.keyCode,s=r._currentTag,l=r.listView.focus(),c=r.input.val(),d=i.support.isRtl(r.wrapper),u=r.popup.visible();if(o===a.DOWN){if(n.preventDefault(),!u)return r.open(),l||this.listView.focusFirst(),t;l?(this.listView.focusNext(),this.listView.focus()||this.listView.focusLast()):this.listView.focusFirst()}else if(o===a.UP)u&&(l&&this.listView.focusPrev(),this.listView.focus()||r.close()),n.preventDefault();else if(o===a.LEFT&&!d||o===a.RIGHT&&d)c||(s=s?s.prev():e(r.tagList[0].lastChild),s[0]&&r.currentTag(s));else if(o===a.RIGHT&&!d||o===a.LEFT&&d)!c&&s&&(s=s.next(),r.currentTag(s[0]?s:null));else if(o===a.ENTER&&u){if(l){if(r.trigger(b,{item:l}))return r._close(),t;r._select(l)}r._change(),r._close(),n.preventDefault()}else o===a.ESC?(u?n.preventDefault():r.currentTag(null),r.close()):o===a.HOME?u?this.listView.focusFirst():c||(s=r.tagList[0].firstChild,s&&r.currentTag(e(s))):o===a.END?u?this.listView.focusLast():c||(s=r.tagList[0].lastChild,s&&r.currentTag(e(s))):o!==a.DELETE&&o!==a.BACKSPACE||c?(clearTimeout(r._typingTimeout),setTimeout(function(){r._scale()}),r._search()):(o!==a.BACKSPACE||s||(s=e(r.tagList[0].lastChild)),s&&s[0]&&r._removeTag(s))},_hideBusy:function(){var e=this;clearTimeout(e._busy),e.input.attr(\"aria-busy\",!1),e._loading.addClass(x),e._request=!1,e._busy=null},_showBusyHandler:function(){this.input.attr(\"aria-busy\",!0),this._loading.removeClass(x)},_showBusy:function(){var e=this;e._request=!0,e._busy||(e._busy=setTimeout(c(e._showBusyHandler,e),100))},_placeholder:function(e,n){var r=this,o=r.input,a=s();e===t&&(e=!1,o[0]!==a&&(e=!r.listView.selectedDataItems()[0])),r._prev=\"\",o.toggleClass(\"k-readonly\",e).val(e?r.options.placeholder:\"\"),o[0]!==a||n||i.caret(o[0],0,0),r._scale()},_scale:function(){var e,t=this,n=t.wrapper,i=n.width(),r=t._span.text(t.input.val());n.is(\":visible\")?e=r.width()+25:(r.appendTo(document.documentElement),i=e=r.width()+25,r.appendTo(n)),t.input.width(e>i?i:e)},_option:function(e,n,r){var o=\"\",n!==t&&(o+=i.htmlEncode(n)),o+=\"\"},_render:function(e){var t,n,i,r,o,a,s=this.listView.selectedDataItems(),l=this.listView.value(),c=e.length,d=\"\";for(l.length!==s.length&&(s=this._buildSelectedItems(l)),o={},a={},r=0;c>r;r++)n=e[r],i=this._value(n),t=this._selectedItemIndex(i,s),-1!==t&&s.splice(t,1),a[i]=r,d+=this._option(i,this._text(n),-1!==t);if(s.length)for(r=0;s.length>r;r++)n=s[r],i=this._value(n),o[i]=c,a[i]=c,c+=1,d+=this._option(i,this._text(n),!0);this._customOptions=o,this._optionsMap=a,this.element.html(d)},_buildSelectedItems:function(e){var t,n,i=this.options.dataValueField,r=this.options.dataTextField,o=[];for(n=0;e.length>n;n++)t={},t[i]=e[n],t[r]=e[n],o.push(t);return o},_selectedItemIndex:function(e,t){for(var n=this._value,i=0;t.length>i;i++)if(e===n(t[i]))return i;return-1},_search:function(){var e=this;e._typingTimeout=setTimeout(function(){var t=e.input.val();e._prev!==t&&(e._prev=t,e.search(t))},e.options.delay)},_allowSelection:function(){var e=this.options.maxSelectedItems;return null===e||e>this.listView.value().length},_angularTagItems:function(t){var n=this;n.angular(t,function(){return{elements:n.tagList[0].children,data:e.map(n.dataItems(),function(e){return{dataItem:e}})}})},_selectValue:function(e,t){var n,i,r,o=this,a=o.value(),s=o.dataSource.total(),l=o.tagList,c=o._value;if(o._angularTagItems(\"cleanup\"),\"multiple\"===o.options.tagMode){for(r=t.length-1;r>-1;r--)n=t[r],l[0].removeChild(l[0].children[n.position]),o._setOption(c(n.dataItem),!1);for(r=0;e.length>r;r++)i=e[r],l.append(o.tagTemplate(i.dataItem)),o._setOption(c(i.dataItem),!0)}else{for((!o._maxTotal||s>o._maxTotal)&&(o._maxTotal=s),l.html(\"\"),a.length&&l.append(o.tagTemplate({values:a,dataItems:o.dataItems(),maxTotal:o._maxTotal,currentTotal:s})),r=t.length-1;r>-1;r--)o._setOption(c(t[r].dataItem),!1);for(r=0;e.length>r;r++)o._setOption(c(e[r].dataItem),!0)}o._angularTagItems(\"compile\"),o._placeholder()},_select:function(e){var t=this;t._state===p&&(t._state=\"\"),t._allowSelection()&&(this.listView.select(e),t._placeholder(),t._state===f&&(t._state=h,t.listView.skipUpdate(!0)))},_input:function(){var t=this,n=t.element[0].accessKey,i=t._innerWrapper.children(\"input.k-input\");i[0]||(i=e('').appendTo(t._innerWrapper)),t.element.removeAttr(\"accesskey\"),t._focused=t.input=i.attr({accesskey:n,autocomplete:\"off\",role:\"listbox\",\"aria-expanded\":!1})},_tagList:function(){var t=this,n=t._innerWrapper.children(\"ul\");n[0]||(n=e('
          ').appendTo(t._innerWrapper)),t.tagList=n},_tagTemplate:function(){var e,t=this,n=t.options,r=n.tagTemplate,o=n.dataSource,a=\"multiple\"===n.tagMode;t.element[0].length&&!o&&(n.dataTextField=n.dataTextField||\"text\",n.dataValueField=n.dataValueField||\"value\"),e=a?i.template(\"#:\"+i.expr(n.dataTextField,\"data\")+\"#\",{useWithBlock:!1}):i.template(\"#:values.length# item(s) selected\"),t.tagTextTemplate=r=r?i.template(r):e,t.tagTemplate=function(e){return'
        • '+r(e)+''+(a?\"delete\":\"open\")+\"
        • \"}},_loader:function(){this._loading=e('').insertAfter(this.input)},_textContainer:function(){var t=i.getComputedStyles(this.input[0],B);t.position=\"absolute\",t.visibility=\"hidden\",t.top=-3333,t.left=-3333,this._span=e(\"\").css(t).appendTo(this.wrapper)},_wrapper:function(){var t=this,n=t.element,i=n.parent(\"span.k-multiselect\");i[0]||(i=n.wrap('
          ').parent(),i[0].style.cssText=n[0].style.cssText,i[0].title=n[0].title,e('
          ').insertBefore(n)),t.wrapper=i.addClass(n[0].className).css(\"display\",\"\"),t._innerWrapper=e(i[0].firstChild)}});r.plugin(L)}(window.kendo.jQuery),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.slider.min\",[\"kendo.draganddrop.min\"],e)}(function(){return function(e,t){function n(e,t,n){var i=n?\" k-slider-horizontal\":\" k-slider-vertical\",r=e.style?e.style:t.attr(\"style\"),o=t.attr(\"class\")?\" \"+t.attr(\"class\"):\"\",a=\"\";return\"bottomRight\"==e.tickPlacement?a=\" k-slider-bottomright\":\"topLeft\"==e.tickPlacement&&(a=\" k-slider-topleft\"),r=r?\" style='\"+r+\"'\":\"\",\"
          \"}function i(e,t,n){var i=\"\";return i=\"increase\"==t?n?\"k-i-arrow-e\":\"k-i-arrow-n\":n?\"k-i-arrow-w\":\"k-i-arrow-s\",\"\"+e[t+\"ButtonTitle\"]+\"\"}function r(e,t){var n,i=\"
            \",r=x.floor(d(t/e.smallStep))+1;for(n=0;r>n;n++)i+=\"\";return i+=\"
          \"}function o(e,t){var n=t.is(\"input\")?1:2,i=2==n?e.leftDragHandleTitle:e.dragHandleTitle;return\"
          Drag\"+(n>1?\"Drag\":\"\")+\"
          \"}function a(e){return function(t){return t+e}}function s(e){return function(){return e}}function l(e){return(e+\"\").replace(\".\",m.cultures.current.numberFormat[\".\"])}function c(e){var t=\"\"+e,n=0;return t=t.split(\".\"),t[1]&&(n=t[1].length),n=n>10?10:n}function d(e){var t,n;return e=parseFloat(e,10),t=c(e),n=x.pow(10,t||0),x.round(e*n)/n}function u(e,n){var i=w(e.getAttribute(n));return null===i&&(i=t),i}function h(e){return typeof e!==Y}function f(e){return 1e4*e}var p,m=window.kendo,g=m.ui.Widget,v=m.ui.Draggable,_=e.extend,b=m.format,w=m.parseFloat,y=e.proxy,k=e.isArray,x=Math,C=m.support,S=C.pointers,T=C.msPointers,D=\"change\",A=\"slide\",E=\".slider\",I=\"touchstart\"+E+\" mousedown\"+E,F=S?\"pointerdown\"+E:T?\"MSPointerDown\"+E:I,M=\"touchend\"+E+\" mouseup\"+E,R=S?\"pointerup\":T?\"MSPointerUp\"+E:M,P=\"moveSelection\",z=\"keydown\"+E,B=\"click\"+E,L=\"mouseover\"+E,H=\"focus\"+E,N=\"blur\"+E,O=\".k-draghandle\",V=\".k-slider-track\",U=\".k-tick\",W=\"k-state-selected\",j=\"k-state-focused\",q=\"k-state-default\",G=\"k-state-disabled\",$=\"disabled\",Y=\"undefined\",K=\"tabindex\",Q=m.getTouches,X=g.extend({init:function(e,t){var n,i=this;if(g.fn.init.call(i,e,t),t=i.options,i._distance=d(t.max-t.min),i._isHorizontal=\"horizontal\"==t.orientation,i._isRtl=i._isHorizontal&&m.support.isRtl(e),i._position=i._isHorizontal?\"left\":\"bottom\",i._sizeFn=i._isHorizontal?\"width\":\"height\",i._outerSize=i._isHorizontal?\"outerWidth\":\"outerHeight\",t.tooltip.format=t.tooltip.enabled?t.tooltip.format||\"{0}\":\"{0}\",0>=t.smallStep)throw Error(\"Kendo UI Slider smallStep must be a positive number.\");i._createHtml(),i.wrapper=i.element.closest(\".k-slider\"),i._trackDiv=i.wrapper.find(V),i._setTrackDivWidth(),i._maxSelection=i._trackDiv[i._sizeFn](),i._sliderItemsInit(),i._reset(),i._tabindex(i.wrapper.find(O)),i[t.enabled?\"enable\":\"disable\"](),n=m.support.isRtl(i.wrapper)?-1:1,i._keyMap={37:a(-1*n*t.smallStep),40:a(-t.smallStep),39:a(1*n*t.smallStep),38:a(+t.smallStep),35:s(t.max),36:s(t.min),33:a(+t.largeStep),34:a(-t.largeStep)},m.notify(i)},events:[D,A],options:{enabled:!0,min:0,max:10,smallStep:1,largeStep:5,orientation:\"horizontal\",tickPlacement:\"both\",tooltip:{enabled:!0,format:\"{0}\"}},_resize:function(){this._setTrackDivWidth(),this.wrapper.find(\".k-slider-items\").remove(),this._maxSelection=this._trackDiv[this._sizeFn](),this._sliderItemsInit(),this._refresh(),this.options.enabled&&this.enable(!0)},_sliderItemsInit:function(){var e=this,t=e.options,n=e._maxSelection/((t.max-t.min)/t.smallStep),i=e._calculateItemsWidth(x.floor(e._distance/t.smallStep));\"none\"!=t.tickPlacement&&n>=2&&(e._trackDiv.before(r(t,e._distance)),e._setItemsWidth(i),e._setItemsTitle()),e._calculateSteps(i),\"none\"!=t.tickPlacement&&n>=2&&t.largeStep>=t.smallStep&&e._setItemsLargeTick()},getSize:function(){return m.dimensions(this.wrapper)},_setTrackDivWidth:function(){var e=this,t=2*parseFloat(e._trackDiv.css(e._isRtl?\"right\":e._position),10);e._trackDiv[e._sizeFn](e.wrapper[e._sizeFn]()-2-t)},_setItemsWidth:function(t){var n,i=this,r=i.options,o=0,a=t.length-1,s=i.wrapper.find(U),l=0,c=2,d=s.length,u=0;for(n=0;d-2>n;n++)e(s[n+1])[i._sizeFn](t[n]);if(i._isHorizontal?(e(s[o]).addClass(\"k-first\")[i._sizeFn](t[a-1]),e(s[a]).addClass(\"k-last\")[i._sizeFn](t[a])):(e(s[a]).addClass(\"k-first\")[i._sizeFn](t[a]),e(s[o]).addClass(\"k-last\")[i._sizeFn](t[a-1])),i._distance%r.smallStep!==0&&!i._isHorizontal){for(n=0;t.length>n;n++)u+=t[n];l=i._maxSelection-u,l+=parseFloat(i._trackDiv.css(i._position),10)+c,i.wrapper.find(\".k-slider-items\").css(\"padding-top\",l)}},_setItemsTitle:function(){for(var t=this,n=t.options,i=t.wrapper.find(U),r=n.min,o=i.length,a=t._isHorizontal&&!t._isRtl?0:o-1,s=t._isHorizontal&&!t._isRtl?o:-1,l=t._isHorizontal&&!t._isRtl?1:-1;a-s!==0;a+=l)e(i[a]).attr(\"title\",b(n.tooltip.format,d(r))),r+=n.smallStep},_setItemsLargeTick:function(){var t,n,i,r=this,o=r.options,a=r.wrapper.find(U),s=0;if(f(o.largeStep)%f(o.smallStep)===0||r._distance/o.largeStep>=3)for(r._isHorizontal||r._isRtl||(a=e.makeArray(a).reverse()),s=0;a.length>s;s++)t=e(a[s]),n=r._values[s],i=d(f(n-this.options.min)),i%f(o.smallStep)===0&&i%f(o.largeStep)===0&&(t.addClass(\"k-tick-large\").html(\"\"+t.attr(\"title\")+\"\"),0!==s&&s!==a.length-1&&t.css(\"line-height\",t[r._sizeFn]()+\"px\"))},_calculateItemsWidth:function(e){var t,n,i,r=this,o=r.options,a=parseFloat(r._trackDiv.css(r._sizeFn))+1,s=a/r._distance;for(r._distance/o.smallStep-x.floor(r._distance/o.smallStep)>0&&(a-=r._distance%o.smallStep*s),t=a/e,n=[],i=0;e-1>i;i++)n[i]=t;return n[e-1]=n[e]=t/2,r._roundWidths(n)},_roundWidths:function(e){var t,n=0,i=e.length;for(t=0;i>t;t++)n+=e[t]-x.floor(e[t]),e[t]=x.floor(e[t]);return n=x.round(n),this._addAdditionalSize(n,e)},_addAdditionalSize:function(e,t){if(0===e)return t;var n,i=parseFloat(t.length-1)/parseFloat(1==e?e:e-1);for(n=0;e>n;n++)t[parseInt(x.round(i*n),10)]+=1;return t},_calculateSteps:function(e){var t,n=this,i=n.options,r=i.min,o=0,a=x.ceil(n._distance/i.smallStep),s=1;if(a+=n._distance/i.smallStep%1===0?1:0,e.splice(0,0,2*e[a-2]),e.splice(a-1,1,2*e.pop()),n._pixelSteps=[o],n._values=[r],0!==a){for(;a>s;)o+=(e[s-1]+e[s])/2,n._pixelSteps[s]=o,r+=i.smallStep,n._values[s]=d(r),s++;t=n._distance%i.smallStep===0?a-1:a,n._pixelSteps[t]=n._maxSelection,n._values[t]=i.max,n._isRtl&&(n._pixelSteps.reverse(),n._values.reverse())}},_getValueFromPosition:function(e,t){var n,i=this,r=i.options,o=x.max(r.smallStep*(i._maxSelection/i._distance),0),a=0,s=o/2;if(i._isHorizontal?(a=e-t.startPoint,i._isRtl&&(a=i._maxSelection-a)):a=t.startPoint-e,i._maxSelection-(parseInt(i._maxSelection%o,10)-3)/2n;n++)if(x.abs(i._pixelSteps[n]-a)-1<=s)return d(i._values[n])},_getFormattedValue:function(e,t){var n,i,r,o=this,a=\"\",s=o.options.tooltip;return k(e)?(i=e[0],r=e[1]):t&&t.type&&(i=t.selectionStart,r=t.selectionEnd),t&&(n=t.tooltipTemplate),!n&&s.template&&(n=m.template(s.template)),k(e)||t&&t.type?n?a=n({selectionStart:i,selectionEnd:r}):(i=b(s.format,i),r=b(s.format,r),a=i+\" - \"+r):(t&&(t.val=e),a=n?n({value:e}):b(s.format,e)),a},_getDraggableArea:function(){var e=this,t=m.getOffset(e._trackDiv);return{startPoint:e._isHorizontal?t.left:t.top+e._maxSelection,endPoint:e._isHorizontal?t.left+e._maxSelection:t.top}},_createHtml:function(){var e=this,t=e.element,r=e.options,a=t.find(\"input\");2==a.length?(a.eq(0).prop(\"value\",l(r.selectionStart)),a.eq(1).prop(\"value\",l(r.selectionEnd))):t.prop(\"value\",l(r.value)),t.wrap(n(r,t,e._isHorizontal)).hide(),r.showButtons&&t.before(i(r,\"increase\",e._isHorizontal)).before(i(r,\"decrease\",e._isHorizontal)),t.before(o(r,t))},_focus:function(t){var n=this,i=t.target,r=n.value(),o=n._drag;o||(i==n.wrapper.find(O).eq(0)[0]?(o=n._firstHandleDrag,n._activeHandle=0):(o=n._lastHandleDrag,n._activeHandle=1),r=r[n._activeHandle]),e(i).addClass(j+\" \"+W),o&&(n._activeHandleDrag=o,o.selectionStart=n.options.selectionStart,o.selectionEnd=n.options.selectionEnd,o._updateTooltip(r))},_focusWithMouse:function(t){t=e(t);var n=this,i=t.is(O)?t.index():0;window.setTimeout(function(){n.wrapper.find(O)[2==i?1:0].focus()},1),n._setTooltipTimeout()},_blur:function(t){var n=this,i=n._activeHandleDrag;e(t.target).removeClass(j+\" \"+W),i&&(i._removeTooltip(),delete n._activeHandleDrag,delete n._activeHandle)},_setTooltipTimeout:function(){var e=this;e._tooltipTimeout=window.setTimeout(function(){var t=e._drag||e._activeHandleDrag;t&&t._removeTooltip()},300)},_clearTooltipTimeout:function(){var e,t=this;window.clearTimeout(this._tooltipTimeout),e=t._drag||t._activeHandleDrag,e&&e.tooltipDiv&&e.tooltipDiv.stop(!0,!1).css(\"opacity\",1)},_reset:function(){var t=this,n=t.element,i=n.attr(\"form\"),r=i?e(\"#\"+i):n.closest(\"form\");r[0]&&(t._form=r.on(\"reset\",y(t._formResetHandler,t)))},destroy:function(){this._form&&this._form.off(\"reset\",this._formResetHandler),g.fn.destroy.call(this)}}),J=X.extend({init:function(n,i){var r,o=this;n.type=\"text\",i=_({},{value:u(n,\"value\"),min:u(n,\"min\"),max:u(n,\"max\"),smallStep:u(n,\"step\")},i),n=e(n),i&&i.enabled===t&&(i.enabled=!n.is(\"[disabled]\")),X.fn.init.call(o,n,i),i=o.options,h(i.value)&&null!==i.value||(i.value=i.min,n.prop(\"value\",l(i.min))),i.value=x.max(x.min(i.value,i.max),i.min),r=o.wrapper.find(O),this._selection=new J.Selection(r,o,i),o._drag=new J.Drag(r,\"\",o,i)},options:{name:\"Slider\",showButtons:!0,increaseButtonTitle:\"Increase\",decreaseButtonTitle:\"Decrease\",dragHandleTitle:\"drag\",tooltip:{format:\"{0:#,#.##}\"},value:null},enable:function(n){var i,r,o,a=this,s=a.options;a.disable(),n!==!1&&(a.wrapper.removeClass(G).addClass(q),a.wrapper.find(\"input\").removeAttr($),i=function(n){var i,r,o,s=Q(n)[0];if(s){if(i=a._isHorizontal?s.location.pageX:s.location.pageY,r=a._getDraggableArea(),o=e(n.target),o.hasClass(\"k-draghandle\"))return o.addClass(j+\" \"+W),t;a._update(a._getValueFromPosition(i,r)),a._focusWithMouse(n.target),a._drag.dragstart(n),n.preventDefault()}},a.wrapper.find(U+\", \"+V).on(F,i).end().on(F,function(){e(document.documentElement).one(\"selectstart\",m.preventDefault)}).on(R,function(){a._drag._end()}),a.wrapper.find(O).attr(K,0).on(M,function(){a._setTooltipTimeout()}).on(B,function(e){a._focusWithMouse(e.target),e.preventDefault()}).on(H,y(a._focus,a)).on(N,y(a._blur,a)),r=y(function(e){var t=a._nextValueByIndex(a._valueIndex+1*e);a._setValueInRange(t),a._drag._updateTooltip(t)},a),s.showButtons&&(o=y(function(e,t){this._clearTooltipTimeout(),(1===e.which||C.touch&&0===e.which)&&(r(t),this.timeout=setTimeout(y(function(){this.timer=setInterval(function(){r(t)},60)},this),200))},a),a.wrapper.find(\".k-button\").on(M,y(function(e){this._clearTimer(),a._focusWithMouse(e.target)},a)).on(L,function(t){e(t.currentTarget).addClass(\"k-state-hover\")}).on(\"mouseout\"+E,y(function(t){e(t.currentTarget).removeClass(\"k-state-hover\"),this._clearTimer()},a)).eq(0).on(I,y(function(e){o(e,1)},a)).click(!1).end().eq(1).on(I,y(function(e){o(e,-1)},a)).click(m.preventDefault)),a.wrapper.find(O).off(z,!1).on(z,y(this._keydown,a)),s.enabled=!0)},disable:function(){var t=this;t.wrapper.removeClass(q).addClass(G),e(t.element).prop($,$),t.wrapper.find(\".k-button\").off(I).on(I,m.preventDefault).off(M).on(M,m.preventDefault).off(\"mouseleave\"+E).on(\"mouseleave\"+E,m.preventDefault).off(L).on(L,m.preventDefault),t.wrapper.find(U+\", \"+V).off(F).off(R),t.wrapper.find(O).attr(K,-1).off(M).off(z).off(B).off(H).off(N),t.options.enabled=!1},_update:function(e){var t=this,n=t.value()!=e;t.value(e),n&&t.trigger(D,{value:t.options.value})},value:function(e){var n=this,i=n.options;return e=d(e),isNaN(e)?i.value:(e>=i.min&&i.max>=e&&i.value!=e&&(n.element.prop(\"value\",l(e)),i.value=e,n._refreshAriaAttr(e),n._refresh()),t)},_refresh:function(){this.trigger(P,{value:this.options.value\r\n})},_refreshAriaAttr:function(e){var t,n=this,i=n._drag;t=i&&i._tooltipDiv?i._tooltipDiv.text():n._getFormattedValue(e,null),this.wrapper.find(O).attr(\"aria-valuenow\",e).attr(\"aria-valuetext\",t)},_clearTimer:function(){clearTimeout(this.timeout),clearInterval(this.timer)},_keydown:function(e){var t=this;e.keyCode in t._keyMap&&(t._clearTooltipTimeout(),t._setValueInRange(t._keyMap[e.keyCode](t.options.value)),t._drag._updateTooltip(t.value()),e.preventDefault())},_setValueInRange:function(e){var n=this,i=n.options;return e=d(e),isNaN(e)?(n._update(i.min),t):(e=x.max(x.min(e,i.max),i.min),n._update(e),t)},_nextValueByIndex:function(e){var t=this._values.length;return this._isRtl&&(e=t-1-e),this._values[x.max(0,x.min(e,t-1))]},_formResetHandler:function(){var e=this,t=e.options.min;setTimeout(function(){var n=e.element[0].value;e.value(\"\"===n||isNaN(n)?t:n)})},destroy:function(){var e=this;X.fn.destroy.call(e),e.wrapper.off(E).find(\".k-button\").off(E).end().find(O).off(E).end().find(U+\", \"+V).off(E).end(),e._drag.draggable.destroy(),e._drag._removeTooltip(!0)}});J.Selection=function(e,t,n){function i(i){var r=i-n.min,o=t._valueIndex=x.ceil(d(r/n.smallStep)),a=parseInt(t._pixelSteps[o],10),s=t._trackDiv.find(\".k-slider-selection\"),l=parseInt(e[t._outerSize]()/2,10),c=t._isRtl?2:0;s[t._sizeFn](t._isRtl?t._maxSelection-a:a),e.css(t._position,a-l-c)}i(n.value),t.bind([D,A,P],function(e){i(parseFloat(e.value,10))})},J.Drag=function(e,t,n,i){var r=this;r.owner=n,r.options=i,r.element=e,r.type=t,r.draggable=new v(e,{distance:0,dragstart:y(r._dragstart,r),drag:y(r.drag,r),dragend:y(r.dragend,r),dragcancel:y(r.dragcancel,r)}),e.click(!1)},J.Drag.prototype={dragstart:function(e){this.owner._activeDragHandle=this,this.draggable.userEvents.cancel(),this._dragstart(e),this.dragend()},_dragstart:function(n){var i=this,r=i.owner,o=i.options;return o.enabled?(this.owner._activeDragHandle=this,r.element.off(L),r.wrapper.find(\".\"+j).removeClass(j+\" \"+W),i.element.addClass(j+\" \"+W),e(document.documentElement).css(\"cursor\",\"pointer\"),i.dragableArea=r._getDraggableArea(),i.step=x.max(o.smallStep*(r._maxSelection/r._distance),0),i.type?(i.selectionStart=o.selectionStart,i.selectionEnd=o.selectionEnd,r._setZIndex(i.type)):i.oldVal=i.val=o.value,i._removeTooltip(!0),i._createTooltip(),t):(n.preventDefault(),t)},_createTooltip:function(){var t,n,i=this,r=i.owner,o=i.options.tooltip,a=\"\",s=e(window);o.enabled&&(o.template&&(t=i.tooltipTemplate=m.template(o.template)),e(\".k-slider-tooltip\").remove(),i.tooltipDiv=e(\"
          \").appendTo(document.body),a=r._getFormattedValue(i.val||r.value(),i),i.type||(n=\"k-callout-\"+(r._isHorizontal?\"s\":\"e\"),i.tooltipInnerDiv=\"
          \",a+=i.tooltipInnerDiv),i.tooltipDiv.html(a),i._scrollOffset={top:s.scrollTop(),left:s.scrollLeft()},i.moveTooltip())},drag:function(e){var t,n=this,i=n.owner,r=e.x.location,o=e.y.location,a=n.dragableArea.startPoint,s=n.dragableArea.endPoint;e.preventDefault(),n.val=i._isHorizontal?i._isRtl?n.constrainValue(r,a,s,s>r):n.constrainValue(r,a,s,r>=s):n.constrainValue(o,s,a,s>=o),n.oldVal!=n.val&&(n.oldVal=n.val,n.type?(\"firstHandle\"==n.type?n.selectionStart=n.selectionEnd>n.val?n.val:n.selectionEnd=n.val:n.val>n.selectionStart?n.selectionEnd=n.val:n.selectionStart=n.selectionEnd=n.val,t={values:[n.selectionStart,n.selectionEnd],value:[n.selectionStart,n.selectionEnd]}):t={value:n.val},i.trigger(A,t)),n._updateTooltip(n.val)},_updateTooltip:function(e){var t=this,n=t.options,i=n.tooltip,r=\"\";i.enabled&&(t.tooltipDiv||t._createTooltip(),r=t.owner._getFormattedValue(d(e),t),t.type||(r+=t.tooltipInnerDiv),t.tooltipDiv.html(r),t.moveTooltip())},dragcancel:function(){return this.owner._refresh(),e(document.documentElement).css(\"cursor\",\"\"),this._end()},dragend:function(){var t=this,n=t.owner;return e(document.documentElement).css(\"cursor\",\"\"),t.type?n._update(t.selectionStart,t.selectionEnd):(n._update(t.val),t.draggable.userEvents._disposeAll()),t.draggable.userEvents.cancel(),t._end()},_end:function(){var e=this,t=e.owner;return t._focusWithMouse(e.element),t.element.on(L),!1},_removeTooltip:function(t){var n=this,i=n.owner;n.tooltipDiv&&i.options.tooltip.enabled&&i.options.enabled&&(t?(n.tooltipDiv.remove(),n.tooltipDiv=null):n.tooltipDiv.fadeOut(\"slow\",function(){e(this).remove(),n.tooltipDiv=null}))},moveTooltip:function(){var t,n,i,r,o=this,a=o.owner,s=0,l=0,c=o.element,d=m.getOffset(c),u=8,h=e(window),f=o.tooltipDiv.find(\".k-callout\"),p=o.tooltipDiv.outerWidth(),g=o.tooltipDiv.outerHeight();o.type?(t=a.wrapper.find(O),d=m.getOffset(t.eq(0)),n=m.getOffset(t.eq(1)),a._isHorizontal?(s=n.top,l=d.left+(n.left-d.left)/2):(s=d.top+(n.top-d.top)/2,l=n.left),r=t.eq(0).outerWidth()+2*u):(s=d.top,l=d.left,r=c.outerWidth()+2*u),a._isHorizontal?(l-=parseInt((p-c[a._outerSize]())/2,10),s-=g+f.height()+u):(s-=parseInt((g-c[a._outerSize]())/2,10),l-=p+f.width()+u),a._isHorizontal?(i=o._flip(s,g,r,h.outerHeight()+o._scrollOffset.top),s+=i,l+=o._fit(l,p,h.outerWidth()+o._scrollOffset.left)):(i=o._flip(l,p,r,h.outerWidth()+o._scrollOffset.left),s+=o._fit(s,g,h.outerHeight()+o._scrollOffset.top),l+=i),i>0&&f&&(f.removeClass(),f.addClass(\"k-callout k-callout-\"+(a._isHorizontal?\"n\":\"w\"))),o.tooltipDiv.css({top:s,left:l})},_fit:function(e,t,n){var i=0;return e+t>n&&(i=n-(e+t)),0>e&&(i=-e),i},_flip:function(e,t,n,i){var r=0;return e+t>i&&(r+=-(n+t)),0>e+r&&(r+=n+t),r},constrainValue:function(e,t,n,i){var r=this,o=0;return o=e>t&&n>e?r.owner._getValueFromPosition(e,r.dragableArea):i?r.options.max:r.options.min}},m.ui.plugin(J),p=X.extend({init:function(n,i){var r,o=this,a=e(n).find(\"input\"),s=a.eq(0)[0],c=a.eq(1)[0];s.type=\"text\",c.type=\"text\",i&&i.showButtons&&(window.console&&window.console.warn(\"showbuttons option is not supported for the range slider, ignoring\"),i.showButtons=!1),i=_({},{selectionStart:u(s,\"value\"),min:u(s,\"min\"),max:u(s,\"max\"),smallStep:u(s,\"step\")},{selectionEnd:u(c,\"value\"),min:u(c,\"min\"),max:u(c,\"max\"),smallStep:u(c,\"step\")},i),i&&i.enabled===t&&(i.enabled=!a.is(\"[disabled]\")),X.fn.init.call(o,n,i),i=o.options,h(i.selectionStart)&&null!==i.selectionStart||(i.selectionStart=i.min,a.eq(0).prop(\"value\",l(i.min))),h(i.selectionEnd)&&null!==i.selectionEnd||(i.selectionEnd=i.max,a.eq(1).prop(\"value\",l(i.max))),r=o.wrapper.find(O),this._selection=new p.Selection(r,o,i),o._firstHandleDrag=new J.Drag(r.eq(0),\"firstHandle\",o,i),o._lastHandleDrag=new J.Drag(r.eq(1),\"lastHandle\",o,i)},options:{name:\"RangeSlider\",leftDragHandleTitle:\"drag\",rightDragHandleTitle:\"drag\",tooltip:{format:\"{0:#,#.##}\"},selectionStart:null,selectionEnd:null},enable:function(n){var i,r=this,o=r.options;r.disable(),n!==!1&&(r.wrapper.removeClass(G).addClass(q),r.wrapper.find(\"input\").removeAttr($),i=function(n){var i,a,s,l,c,d,u,h=Q(n)[0];if(h){if(i=r._isHorizontal?h.location.pageX:h.location.pageY,a=r._getDraggableArea(),s=r._getValueFromPosition(i,a),l=e(n.target),l.hasClass(\"k-draghandle\"))return r.wrapper.find(\".\"+j).removeClass(j+\" \"+W),l.addClass(j+\" \"+W),t;o.selectionStart>s?(c=s,d=o.selectionEnd,u=r._firstHandleDrag):s>r.selectionEnd?(c=o.selectionStart,d=s,u=r._lastHandleDrag):o.selectionEnd-s>=s-o.selectionStart?(c=s,d=o.selectionEnd,u=r._firstHandleDrag):(c=o.selectionStart,d=s,u=r._lastHandleDrag),u.dragstart(n),r._setValueInRange(c,d),r._focusWithMouse(u.element)}},r.wrapper.find(U+\", \"+V).on(F,i).end().on(F,function(){e(document.documentElement).one(\"selectstart\",m.preventDefault)}).on(R,function(){r._activeDragHandle&&r._activeDragHandle._end()}),r.wrapper.find(O).attr(K,0).on(M,function(){r._setTooltipTimeout()}).on(B,function(e){r._focusWithMouse(e.target),e.preventDefault()}).on(H,y(r._focus,r)).on(N,y(r._blur,r)),r.wrapper.find(O).off(z,m.preventDefault).eq(0).on(z,y(function(e){this._keydown(e,\"firstHandle\")},r)).end().eq(1).on(z,y(function(e){this._keydown(e,\"lastHandle\")},r)),r.options.enabled=!0)},disable:function(){var e=this;e.wrapper.removeClass(q).addClass(G),e.wrapper.find(\"input\").prop($,$),e.wrapper.find(U+\", \"+V).off(F).off(R),e.wrapper.find(O).attr(K,-1).off(M).off(z).off(B).off(H).off(N),e.options.enabled=!1},_keydown:function(e,t){var n,i,r,o=this,a=o.options.selectionStart,s=o.options.selectionEnd;e.keyCode in o._keyMap&&(o._clearTooltipTimeout(),\"firstHandle\"==t?(r=o._activeHandleDrag=o._firstHandleDrag,a=o._keyMap[e.keyCode](a),a>s&&(s=a)):(r=o._activeHandleDrag=o._lastHandleDrag,s=o._keyMap[e.keyCode](s),a>s&&(a=s)),o._setValueInRange(d(a),d(s)),n=Math.max(a,o.options.selectionStart),i=Math.min(s,o.options.selectionEnd),r.selectionEnd=Math.max(i,o.options.selectionStart),r.selectionStart=Math.min(n,o.options.selectionEnd),r._updateTooltip(o.value()[o._activeHandle]),e.preventDefault())},_update:function(e,t){var n=this,i=n.value(),r=i[0]!=e||i[1]!=t;n.value([e,t]),r&&n.trigger(D,{values:[e,t],value:[e,t]})},value:function(e){return e&&e.length?this._value(e[0],e[1]):this._value()},_value:function(e,n){var i=this,r=i.options,o=r.selectionStart,a=r.selectionEnd;return isNaN(e)&&isNaN(n)?[o,a]:(e=d(e),n=d(n),e>=r.min&&r.max>=e&&n>=r.min&&r.max>=n&&n>=e&&(o!=e||a!=n)&&(i.element.find(\"input\").eq(0).prop(\"value\",l(e)).end().eq(1).prop(\"value\",l(n)),r.selectionStart=e,r.selectionEnd=n,i._refresh(),i._refreshAriaAttr(e,n)),t)},values:function(e,t){return k(e)?this._value(e[0],e[1]):this._value(e,t)},_refresh:function(){var e=this,t=e.options;e.trigger(P,{values:[t.selectionStart,t.selectionEnd],value:[t.selectionStart,t.selectionEnd]}),t.selectionStart==t.max&&t.selectionEnd==t.max&&e._setZIndex(\"firstHandle\")},_refreshAriaAttr:function(e,t){var n,i=this,r=i.wrapper.find(O),o=i._activeHandleDrag;n=i._getFormattedValue([e,t],o),r.eq(0).attr(\"aria-valuenow\",e),r.eq(1).attr(\"aria-valuenow\",t),r.attr(\"aria-valuetext\",n)},_setValueInRange:function(e,t){var n=this.options;e=x.max(x.min(e,n.max),n.min),t=x.max(x.min(t,n.max),n.min),e==n.max&&t==n.max&&this._setZIndex(\"firstHandle\"),this._update(x.min(e,t),x.max(e,t))},_setZIndex:function(t){this.wrapper.find(O).each(function(n){e(this).css(\"z-index\",\"firstHandle\"==t?1-n:n)})},_formResetHandler:function(){var e=this,t=e.options;setTimeout(function(){var n=e.element.find(\"input\"),i=n[0].value,r=n[1].value;e.values(\"\"===i||isNaN(i)?t.min:i,\"\"===r||isNaN(r)?t.max:r)})},destroy:function(){var e=this;X.fn.destroy.call(e),e.wrapper.off(E).find(U+\", \"+V).off(E).end().find(O).off(E),e._firstHandleDrag.draggable.destroy(),e._lastHandleDrag.draggable.destroy()}}),p.Selection=function(e,t,n){function i(i){i=i||[];var o=i[0]-n.min,a=i[1]-n.min,s=x.ceil(d(o/n.smallStep)),l=x.ceil(d(a/n.smallStep)),c=t._pixelSteps[s],u=t._pixelSteps[l],h=parseInt(e.eq(0)[t._outerSize]()/2,10),f=t._isRtl?2:0;e.eq(0).css(t._position,c-h-f).end().eq(1).css(t._position,u-h-f),r(c,u)}function r(e,n){var i,r,o=t._trackDiv.find(\".k-slider-selection\");i=x.abs(e-n),o[t._sizeFn](i),t._isRtl?(r=x.max(e,n),o.css(\"right\",t._maxSelection-r-1)):(r=x.min(e,n),o.css(t._position,r-1))}i(t.value()),t.bind([D,A,P],function(e){i(e.values)})},m.ui.plugin(p)}(window.kendo.jQuery),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.colorpicker.min\",[\"kendo.core.min\",\"kendo.color.min\",\"kendo.popup.min\",\"kendo.slider.min\",\"kendo.userevents.min\"],e)}(function(){return function(e,t,n){function i(e,t,n){n=d(n),n&&!n.equals(e.color())&&(\"change\"==t&&(e._value=n),n=1!=n.a?n.toCssRgba():n.toCss(),e.trigger(t,{value:n}))}function r(e,t,n){var i,r;return e=Array.prototype.slice.call(e),i=e.length,r=e.indexOf(t),0>r?0>n?e[i-1]:e[0]:(r+=n,0>r?r+=i:r%=i,e[r])}function o(e){e.preventDefault()}function a(e,t){return function(){return e.apply(t,arguments)}}var s=window.kendo,l=s.ui,c=l.Widget,d=s.parseColor,u=s.Color,h=s.keys,f=\"background-color\",p=\"k-state-selected\",m=\"000000,7f7f7f,880015,ed1c24,ff7f27,fff200,22b14c,00a2e8,3f48cc,a349a4,ffffff,c3c3c3,b97a57,ffaec9,ffc90e,efe4b0,b5e61d,99d9ea,7092be,c8bfe7\",g=\"FFFFFF,FFCCFF,FF99FF,FF66FF,FF33FF,FF00FF,CCFFFF,CCCCFF,CC99FF,CC66FF,CC33FF,CC00FF,99FFFF,99CCFF,9999FF,9966FF,9933FF,9900FF,FFFFCC,FFCCCC,FF99CC,FF66CC,FF33CC,FF00CC,CCFFCC,CCCCCC,CC99CC,CC66CC,CC33CC,CC00CC,99FFCC,99CCCC,9999CC,9966CC,9933CC,9900CC,FFFF99,FFCC99,FF9999,FF6699,FF3399,FF0099,CCFF99,CCCC99,CC9999,CC6699,CC3399,CC0099,99FF99,99CC99,999999,996699,993399,990099,FFFF66,FFCC66,FF9966,FF6666,FF3366,FF0066,CCFF66,CCCC66,CC9966,CC6666,CC3366,CC0066,99FF66,99CC66,999966,996666,993366,990066,FFFF33,FFCC33,FF9933,FF6633,FF3333,FF0033,CCFF33,CCCC33,CC9933,CC6633,CC3333,CC0033,99FF33,99CC33,999933,996633,993333,990033,FFFF00,FFCC00,FF9900,FF6600,FF3300,FF0000,CCFF00,CCCC00,CC9900,CC6600,CC3300,CC0000,99FF00,99CC00,999900,996600,993300,990000,66FFFF,66CCFF,6699FF,6666FF,6633FF,6600FF,33FFFF,33CCFF,3399FF,3366FF,3333FF,3300FF,00FFFF,00CCFF,0099FF,0066FF,0033FF,0000FF,66FFCC,66CCCC,6699CC,6666CC,6633CC,6600CC,33FFCC,33CCCC,3399CC,3366CC,3333CC,3300CC,00FFCC,00CCCC,0099CC,0066CC,0033CC,0000CC,66FF99,66CC99,669999,666699,663399,660099,33FF99,33CC99,339999,336699,333399,330099,00FF99,00CC99,009999,006699,003399,000099,66FF66,66CC66,669966,666666,663366,660066,33FF66,33CC66,339966,336666,333366,330066,00FF66,00CC66,009966,006666,003366,000066,66FF33,66CC33,669933,666633,663333,660033,33FF33,33CC33,339933,336633,333333,330033,00FF33,00CC33,009933,006633,003333,000033,66FF00,66CC00,669900,666600,663300,660000,33FF00,33CC00,339900,336600,333300,330000,00FF00,00CC00,009900,006600,003300,000000\",v={apply:\"Apply\",cancel:\"Cancel\"},_=\".kendoColorTools\",b=\"click\"+_,w=\"keydown\"+_,y=s.support.browser,k=y.msie&&9>y.version,x=c.extend({init:function(e,t){var n,i=this;c.fn.init.call(i,e,t),e=i.element,t=i.options,i._value=t.value=d(t.value),i._tabIndex=e.attr(\"tabIndex\")||0,n=i._ariaId=t.ariaId,n&&e.attr(\"aria-labelledby\",n),t._standalone&&(i._triggerSelect=i._triggerChange)},options:{name:\"ColorSelector\",value:null,_standalone:!0},events:[\"change\",\"select\",\"cancel\"],color:function(e){return e!==n&&(this._value=d(e),this._updateUI(this._value)),this._value},value:function(e){return e=this.color(e),e&&(e=this.options.opacity?e.toCssRgba():e.toCss()),e||null},enable:function(t){0===arguments.length&&(t=!0),e(\".k-disabled-overlay\",this.wrapper).remove(),t||this.wrapper.append(\"
          \"),this._onEnable(t)},_select:function(e,t){var n=this._value;e=this.color(e),t||(this.element.trigger(\"change\"),e.equals(n)?this._standalone||this.trigger(\"cancel\"):this.trigger(\"change\",{value:this.value()}))},_triggerSelect:function(e){i(this,\"select\",e)},_triggerChange:function(e){i(this,\"change\",e)},destroy:function(){this.element&&this.element.off(_),this.wrapper&&this.wrapper.off(_).find(\"*\").off(_),this.wrapper=null,c.fn.destroy.call(this)},_updateUI:e.noop,_selectOnHide:function(){return null},_cancel:function(){this.trigger(\"cancel\")}}),C=x.extend({init:function(t,n){var i,r,o,l,c=this;if(x.fn.init.call(c,t,n),t=c.wrapper=c.element,n=c.options,i=n.palette,\"websafe\"==i?(i=g,n.columns=18):\"basic\"==i&&(i=m),\"string\"==typeof i&&(i=i.split(\",\")),e.isArray(i)&&(i=e.map(i,function(e){return d(e)})),c._selectedID=(n.ariaId||s.guid())+\"_selected\",t.addClass(\"k-widget k-colorpalette\").attr(\"role\",\"grid\").attr(\"aria-readonly\",\"true\").append(e(c._template({colors:i,columns:n.columns,tileSize:n.tileSize,value:c._value,id:n.ariaId}))).on(b,\".k-item\",function(t){c._select(e(t.currentTarget).css(f))}).attr(\"tabIndex\",c._tabIndex).on(w,a(c._keydown,c)),r=n.tileSize){if(/number|string/.test(typeof r))o=l=parseFloat(r);else{if(\"object\"!=typeof r)throw Error(\"Unsupported value for the 'tileSize' argument\");o=parseFloat(r.width),l=parseFloat(r.height)}t.find(\".k-item\").css({width:o,height:l})}},focus:function(){this.wrapper.focus()},options:{name:\"ColorPalette\",columns:10,tileSize:null,palette:\"basic\"},_onEnable:function(e){e?this.wrapper.attr(\"tabIndex\",this._tabIndex):this.wrapper.removeAttr(\"tabIndex\")},_keydown:function(t){var n,i,a=this.wrapper,s=a.find(\".k-item\"),l=s.filter(\".\"+p).get(0),c=t.keyCode;if(c==h.LEFT?n=r(s,l,-1):c==h.RIGHT?n=r(s,l,1):c==h.DOWN?n=r(s,l,this.options.columns):c==h.UP?n=r(s,l,-this.options.columns):c==h.ENTER?(o(t),l&&this._select(e(l).css(f))):c==h.ESC&&this._cancel(),n){o(t),this._current(n);try{i=d(n.css(f)),this._triggerSelect(i)}catch(u){}}},_current:function(t){this.wrapper.find(\".\"+p).removeClass(p).attr(\"aria-selected\",!1).removeAttr(\"id\"),e(t).addClass(p).attr(\"aria-selected\",!0).attr(\"id\",this._selectedID),this.element.removeAttr(\"aria-activedescendant\").attr(\"aria-activedescendant\",this._selectedID)},_updateUI:function(t){var i=null;this.wrapper.find(\".k-item\").each(function(){var r=d(e(this).css(f));return r&&r.equals(t)?(i=this,!1):n}),this._current(i)},_template:s.template('
        '+b[n]+\"
        # for (var i = 0; i < colors.length; ++i) { ## var selected = colors[i].equals(value); ## if (i && i % columns == 0) { # # } ## } #
        ')}),S=x.extend({init:function(t,n){var i=this;x.fn.init.call(i,t,n),n=i.options,t=i.element,i.wrapper=t.addClass(\"k-widget k-flatcolorpicker\").append(i._template(n)),i._hueElements=e(\".k-hsv-rectangle, .k-transparency-slider .k-slider-track\",t),i._selectedColor=e(\".k-selected-color-display\",t),i._colorAsText=e(\"input.k-color-value\",t),i._sliders(),i._hsvArea(),i._updateUI(i._value||d(\"#f00\")),t.find(\"input.k-color-value\").on(w,function(t){var n,r,o=this;if(t.keyCode==h.ENTER)try{n=d(o.value),r=i.color(),i._select(n,n.equals(r))}catch(a){e(o).addClass(\"k-state-error\")}else i.options.autoupdate&&setTimeout(function(){var e=d(o.value,!0);e&&i._updateUI(e,!0)},10)}).end().on(b,\".k-controls button.apply\",function(){i._select(i._getHSV())}).on(b,\".k-controls button.cancel\",function(){i._updateUI(i.color()),i._cancel()}),k&&i._applyIEFilter()},destroy:function(){this._hueSlider.destroy(),this._opacitySlider&&this._opacitySlider.destroy(),this._hueSlider=this._opacitySlider=this._hsvRect=this._hsvHandle=this._hueElements=this._selectedColor=this._colorAsText=null,x.fn.destroy.call(this)},options:{name:\"FlatColorPicker\",opacity:!1,buttons:!1,input:!0,preview:!0,autoupdate:!0,messages:v},_applyIEFilter:function(){var e=this.element.find(\".k-hue-slider .k-slider-track\")[0],t=e.currentStyle.backgroundImage;t=t.replace(/^url\\([\\'\\\"]?|[\\'\\\"]?\\)$/g,\"\"),e.style.filter=\"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='\"+t+\"', sizingMethod='scale')\"},_sliders:function(){function e(e){n._updateUI(n._getHSV(e.value,null,null,null))}function t(e){n._updateUI(n._getHSV(null,null,null,e.value/100))}var n=this,i=n.element;n._hueSlider=i.find(\".k-hue-slider\").kendoSlider({min:0,max:359,tickPlacement:\"none\",showButtons:!1,slide:e,change:e}).data(\"kendoSlider\"),n._opacitySlider=i.find(\".k-transparency-slider\").kendoSlider({min:0,max:100,tickPlacement:\"none\",showButtons:!1,slide:t,change:t}).data(\"kendoSlider\")},_hsvArea:function(){function e(e,n){var i=this.offset,r=e-i.left,o=n-i.top,a=this.width,s=this.height;r=0>r?0:r>a?a:r,o=0>o?0:o>s?s:o,t._svChange(r/a,1-o/s)}var t=this,n=t.element,i=n.find(\".k-hsv-rectangle\"),r=i.find(\".k-draghandle\").attr(\"tabIndex\",0).on(w,a(t._keydown,t));t._hsvEvents=new s.UserEvents(i,{global:!0,press:function(t){this.offset=s.getOffset(i),this.width=i.width(),this.height=i.height(),r.focus(),e.call(this,t.x.location,t.y.location)},start:function(){i.addClass(\"k-dragging\"),r.focus()},move:function(t){t.preventDefault(),e.call(this,t.x.location,t.y.location)},end:function(){i.removeClass(\"k-dragging\")}}),t._hsvRect=i,t._hsvHandle=r},_onEnable:function(e){this._hueSlider.enable(e),this._opacitySlider&&this._opacitySlider.enable(e),this.wrapper.find(\"input\").attr(\"disabled\",!e);var t=this._hsvRect.find(\".k-draghandle\");e?t.attr(\"tabIndex\",this._tabIndex):t.removeAttr(\"tabIndex\")},_keydown:function(e){function t(t,n){var r=i._getHSV();r[t]+=n*(e.shiftKey?.01:.05),0>r[t]&&(r[t]=0),r[t]>1&&(r[t]=1),i._updateUI(r),o(e)}function n(t){var n=i._getHSV();n.h+=t*(e.shiftKey?1:5),0>n.h&&(n.h=0),n.h>359&&(n.h=359),i._updateUI(n),o(e)}var i=this;switch(e.keyCode){case h.LEFT:e.ctrlKey?n(-1):t(\"s\",-1);break;case h.RIGHT:e.ctrlKey?n(1):t(\"s\",1);break;case h.UP:t(e.ctrlKey&&i._opacitySlider?\"a\":\"v\",1);break;case h.DOWN:t(e.ctrlKey&&i._opacitySlider?\"a\":\"v\",-1);break;case h.ENTER:i._select(i._getHSV());break;case h.F2:i.wrapper.find(\"input.k-color-value\").focus().select();break;case h.ESC:i._cancel()}},focus:function(){this._hsvHandle.focus()},_getHSV:function(e,t,n,i){var r=this._hsvRect,o=r.width(),a=r.height(),s=this._hsvHandle.position();return null==e&&(e=this._hueSlider.value()),null==t&&(t=s.left/o),null==n&&(n=1-s.top/a),null==i&&(i=this._opacitySlider?this._opacitySlider.value()/100:1),u.fromHSV(e,t,n,i)},_svChange:function(e,t){var n=this._getHSV(null,e,t,null);this._updateUI(n)},_updateUI:function(e,t){var n=this,i=n._hsvRect;e&&(this._colorAsText.removeClass(\"k-state-error\"),n._selectedColor.css(f,e.toDisplay()),t||n._colorAsText.val(n._opacitySlider?e.toCssRgba():e.toCss()),n._triggerSelect(e),e=e.toHSV(),n._hsvHandle.css({left:e.s*i.width()+\"px\",top:(1-e.v)*i.height()+\"px\"}),n._hueElements.css(f,u.fromHSV(e.h,1,1,1).toCss()),n._hueSlider.value(e.h),n._opacitySlider&&n._opacitySlider.value(100*e.a))},_selectOnHide:function(){return this.options.buttons?null:this._getHSV()},_template:s.template('# if (preview) { #
        # } #
        # if (opacity) { ## } ## if (buttons) { #
        # } #')}),T=c.extend({init:function(t,n){var i,r,o,a,s,l=this;c.fn.init.call(l,t,n),n=l.options,t=l.element,i=t.attr(\"value\")||t.val(),i=i?d(i,!0):d(n.value,!0),l._value=n.value=i,r=l.wrapper=e(l._template(n)),t.hide().after(r),t.is(\"input\")&&(t.appendTo(r),o=t.closest(\"label\"),a=t.attr(\"id\"),a&&(o=o.add('label[for=\"'+a+'\"]')),o.click(function(e){l.open(),e.preventDefault()})),l._tabIndex=t.attr(\"tabIndex\")||0,l.enable(!t.attr(\"disabled\")),s=t.attr(\"accesskey\"),s&&(t.attr(\"accesskey\",null),r.attr(\"accesskey\",s)),l.bind(\"activate\",function(e){e.isDefaultPrevented()||l.toggle()}),l._updateUI(i)},destroy:function(){this.wrapper.off(_).find(\"*\").off(_),this._popup&&(this._selector.destroy(),this._popup.destroy()),this._selector=this._popup=this.wrapper=null,c.fn.destroy.call(this)},enable:function(e){var t=this,n=t.wrapper,i=n.children(\".k-picker-wrap\"),r=i.find(\".k-select\");0===arguments.length&&(e=!0),t.element.attr(\"disabled\",!e),n.attr(\"aria-disabled\",!e),r.off(_).on(\"mousedown\"+_,o),n.addClass(\"k-state-disabled\").removeAttr(\"tabIndex\").add(\"*\",n).off(_),e&&n.removeClass(\"k-state-disabled\").attr(\"tabIndex\",t._tabIndex).on(\"mouseenter\"+_,function(){i.addClass(\"k-state-hover\")}).on(\"mouseleave\"+_,function(){i.removeClass(\"k-state-hover\")}).on(\"focus\"+_,function(){i.addClass(\"k-state-focused\")}).on(\"blur\"+_,function(){i.removeClass(\"k-state-focused\")}).on(w,a(t._keydown,t)).on(b,\".k-select\",a(t.toggle,t)).on(b,t.options.toolIcon?\".k-tool-icon\":\".k-selected-color\",function(){t.trigger(\"activate\")})},_template:s.template('# if (toolIcon) { ## } else { ## } #'),options:{name:\"ColorPicker\",palette:null,columns:10,toolIcon:null,value:null,messages:v,opacity:!1,buttons:!0,preview:!0,ARIATemplate:'Current selected color is #=data || \"\"#'},events:[\"activate\",\"change\",\"select\",\"open\",\"close\"],open:function(){this._getPopup().open()},close:function(){this._getPopup().close()},toggle:function(){this._getPopup().toggle()},color:x.fn.color,value:x.fn.value,_select:x.fn._select,_triggerSelect:x.fn._triggerSelect,_isInputTypeColor:function(){var e=this.element[0];return/^input$/i.test(e.tagName)&&/^color$/i.test(e.type)},_updateUI:function(e){var t=\"\";e&&(t=this._isInputTypeColor()||1==e.a?e.toCss():e.toCssRgba(),this.element.val(t)),this._ariaTemplate||(this._ariaTemplate=s.template(this.options.ARIATemplate)),this.wrapper.attr(\"aria-label\",this._ariaTemplate(t)),this._triggerSelect(e),this.wrapper.find(\".k-selected-color\").css(f,e?e.toDisplay():\"transparent\")},_keydown:function(e){var t=e.keyCode;this._getPopup().visible()?(t==h.ESC?this._selector._cancel():this._selector._keydown(e),o(e)):(t==h.ENTER||t==h.DOWN)&&(this.open(),o(e))},_getPopup:function(){var t,i,r,o,a=this,l=a._popup;return l||(t=a.options,i=t.palette?C:S,t._standalone=!1,delete t.select,delete t.change,delete t.cancel,r=s.guid(),o=a._selector=new i(e('
        ').appendTo(document.body),t),a.wrapper.attr(\"aria-owns\",r),a._popup=l=o.wrapper.kendoPopup({anchor:a.wrapper,adjustSize:{width:5,height:0}}).data(\"kendoPopup\"),o.bind({select:function(e){a._updateUI(d(e.value))},change:function(){a._select(o.color()),a.close()},cancel:function(){a.close()}}),l.bind({close:function(e){if(a.trigger(\"close\"))return e.preventDefault(),n;a.wrapper.children(\".k-picker-wrap\").removeClass(\"k-state-focused\");var t=o._selectOnHide();t?a._select(t):(a.wrapper.focus(),a._updateUI(a.color()))},open:function(e){a.trigger(\"open\")?e.preventDefault():a.wrapper.children(\".k-picker-wrap\").addClass(\"k-state-focused\")},activate:function(){o._select(a.color(),!0),o.focus(),a.wrapper.children(\".k-picker-wrap\").addClass(\"k-state-focused\")}})),l}});l.plugin(C),l.plugin(S),l.plugin(T)}(jQuery,parseInt),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.numerictextbox.min\",[\"kendo.core.min\",\"kendo.userevents.min\"],e)}(function(){return function(e,t){function n(e,t){return''+t+\"\"}var i=window.kendo,r=i.caret,o=i.keys,a=i.ui,s=a.Widget,l=i._activeElement,c=i._extractFormat,d=i.parseFloat,u=i.support.placeholder,h=i.getCulture,f=i._round,p=\"change\",m=\"disabled\",g=\"readonly\",v=\"k-input\",_=\"spin\",b=\".kendoNumericTextBox\",w=\"touchend\",y=\"mouseleave\"+b,k=\"mouseenter\"+b+\" \"+y,x=\"k-state-default\",C=\"k-state-focused\",S=\"k-state-hover\",T=\"focus\",D=\".\",A=\"k-state-selected\",E=\"k-state-disabled\",I=\"aria-disabled\",F=\"aria-readonly\",M=/^(-)?(\\d*)$/,R=null,P=e.proxy,z=e.extend,B=s.extend({init:function(n,r){var o,a,l,d,u,h=this,f=r&&r.step!==t;s.fn.init.call(h,n,r),r=h.options,n=h.element.on(\"focusout\"+b,P(h._focusout,h)).attr(\"role\",\"spinbutton\"),r.placeholder=r.placeholder||n.attr(\"placeholder\"),h._initialOptions=z({},r),h._reset(),h._wrapper(),h._arrows(),h._input(),i.support.mobileOS?h._text.on(w+b+\" \"+T+b,function(){h._toggleText(!1),n.focus()}):h._text.on(T+b,P(h._click,h)),o=h.min(n.attr(\"min\")),a=h.max(n.attr(\"max\")),l=h._parse(n.attr(\"step\")),r.min===R&&o!==R&&(r.min=o),r.max===R&&a!==R&&(r.max=a),f||l===R||(r.step=l),n.attr(\"aria-valuemin\",r.min).attr(\"aria-valuemax\",r.max),r.format=c(r.format),d=r.value,h.value(d!==R?d:n.val()),u=n.is(\"[disabled]\")||e(h.element).parents(\"fieldset\").is(\":disabled\"),u?h.enable(!1):h.readonly(n.is(\"[readonly]\")),i.notify(h)},options:{name:\"NumericTextBox\",decimals:R,min:R,max:R,value:R,step:1,culture:\"\",format:\"n\",spinners:!0,placeholder:\"\",upArrowText:\"Increase value\",downArrowText:\"Decrease value\"},events:[p,_],_editable:function(e){var t=this,n=t.element,i=e.disable,r=e.readonly,o=t._text.add(n),a=t._inputWrapper.off(k);t._toggleText(!0),t._upArrowEventHandler.unbind(\"press\"),t._downArrowEventHandler.unbind(\"press\"),n.off(\"keydown\"+b).off(\"keypress\"+b).off(\"paste\"+b),r||i?(a.addClass(i?E:x).removeClass(i?x:E),o.attr(m,i).attr(g,r).attr(I,i).attr(F,r)):(a.addClass(x).removeClass(E).on(k,t._toggleHover),o.removeAttr(m).removeAttr(g).attr(I,!1).attr(F,!1),t._upArrowEventHandler.bind(\"press\",function(e){e.preventDefault(),t._spin(1),t._upArrow.addClass(A)}),t._downArrowEventHandler.bind(\"press\",function(e){e.preventDefault(),t._spin(-1),t._downArrow.addClass(A)}),t.element.on(\"keydown\"+b,P(t._keydown,t)).on(\"keypress\"+b,P(t._keypress,t)).on(\"paste\"+b,P(t._paste,t)))},readonly:function(e){this._editable({readonly:e===t?!0:e,disable:!1})},enable:function(e){this._editable({readonly:!1,disable:!(e=e===t?!0:e)})},destroy:function(){var e=this;e.element.add(e._text).add(e._upArrow).add(e._downArrow).add(e._inputWrapper).off(b),e._upArrowEventHandler.destroy(),e._downArrowEventHandler.destroy(),e._form&&e._form.off(\"reset\",e._resetHandler),s.fn.destroy.call(e)},min:function(e){return this._option(\"min\",e)},max:function(e){return this._option(\"max\",e)},step:function(e){return this._option(\"step\",e)},value:function(e){var n,i=this;return e===t?i._value:(e=i._parse(e),n=i._adjust(e),e===n&&(i._update(e),i._old=i._value),t)},focus:function(){this._focusin()},_adjust:function(e){var t=this,n=t.options,i=n.min,r=n.max;return e===R?e:(i!==R&&i>e?e=i:r!==R&&e>r&&(e=r),e)},_arrows:function(){var t,r=this,o=function(){clearTimeout(r._spinning),t.removeClass(A)},a=r.options,s=a.spinners,l=r.element;t=l.siblings(\".k-icon\"),t[0]||(t=e(n(\"n\",a.upArrowText)+n(\"s\",a.downArrowText)).insertAfter(l),t.wrapAll('')),s||(t.parent().toggle(s),r._inputWrapper.addClass(\"k-expand-padding\")),r._upArrow=t.eq(0),r._upArrowEventHandler=new i.UserEvents(r._upArrow,{release:o}),r._downArrow=t.eq(1),r._downArrowEventHandler=new i.UserEvents(r._downArrow,{release:o})},_blur:function(){var e=this;e._toggleText(!0),e._change(e.element.val())},_click:function(e){var t=this;clearTimeout(t._focusing),t._focusing=setTimeout(function(){var n,i,o,a=e.target,s=r(a)[0],l=a.value.substring(0,s),c=t._format(t.options.format),d=c[\",\"],u=0;d&&(i=RegExp(\"\\\\\"+d,\"g\"),o=RegExp(\"([\\\\d\\\\\"+d+\"]+)(\\\\\"+c[D]+\")?(\\\\d+)?\")),o&&(n=o.exec(l)),n&&(u=n[0].replace(i,\"\").length,-1!=l.indexOf(\"(\")&&0>t._value&&u++),t._focusin(),r(t.element[0],u)})},_change:function(e){var t=this;t._update(e),e=t._value,t._old!=e&&(t._old=e,t._typing||t.element.trigger(p),t.trigger(p)),t._typing=!1},_culture:function(e){return e||h(this.options.culture)},_focusin:function(){var e=this;e._inputWrapper.addClass(C),e._toggleText(!1),e.element[0].focus()},_focusout:function(){var e=this;clearTimeout(e._focusing),e._inputWrapper.removeClass(C).removeClass(S),e._blur()},_format:function(e,t){var n=this._culture(t).numberFormat;return e=e.toLowerCase(),e.indexOf(\"c\")>-1?n=n.currency:e.indexOf(\"p\")>-1&&(n=n.percent),n},_input:function(){var t,n=this,i=\"k-formatted-value\",r=n.element.addClass(v).show()[0],o=r.accessKey,a=n.wrapper;t=a.find(D+i),t[0]||(t=e('').insertBefore(r).addClass(i));try{r.setAttribute(\"type\",\"text\")}catch(s){r.type=\"text\"}t[0].tabIndex=r.tabIndex,t[0].style.cssText=r.style.cssText,t[0].title=r.title,t.prop(\"placeholder\",n.options.placeholder),o&&(t.attr(\"accesskey\",o),r.accessKey=\"\"),n._text=t.addClass(r.className)},_keydown:function(e){var t=this,n=e.keyCode;t._key=n,n==o.DOWN?t._step(-1):n==o.UP?t._step(1):n==o.ENTER?t._change(t.element.val()):t._typing=!0},_keypress:function(e){var t,n,i,a,s,l,c,d,u,h,f;0===e.which||e.metaKey||e.ctrlKey||e.keyCode===o.BACKSPACE||e.keyCode===o.ENTER||(t=this,n=t.options.min,i=t.element,a=r(i),s=a[0],l=a[1],c=String.fromCharCode(e.which),\r\nd=t._format(t.options.format),u=t._key===o.NUMPAD_DOT,h=i.val(),u&&(c=d[D]),h=h.substring(0,s)+c+h.substring(l),f=t._numericRegex(d).test(h),f&&u?(i.val(h),r(i,s+c.length),e.preventDefault()):(null!==n&&n>=0&&\"-\"===h.charAt(0)||!f)&&e.preventDefault(),t._key=0)},_numericRegex:function(e){var t=this,n=e[D],i=t.options.decimals;return n===D&&(n=\"\\\\\"+n),i===R&&(i=e.decimals),0===i?M:(t._separator!==n&&(t._separator=n,t._floatRegExp=RegExp(\"^(-)?(((\\\\d+(\"+n+\"\\\\d*)?)|(\"+n+\"\\\\d*)))?$\")),t._floatRegExp)},_paste:function(e){var t=this,n=e.target,i=n.value;setTimeout(function(){t._parse(n.value)===R&&t._update(i)})},_option:function(e,n){var i=this,r=i.options;return n===t?r[e]:(n=i._parse(n),(n||\"step\"!==e)&&(r[e]=n,i.element.attr(\"aria-value\"+e,n).attr(e,n)),t)},_spin:function(e,t){var n=this;t=t||500,clearTimeout(n._spinning),n._spinning=setTimeout(function(){n._spin(e,50)},t),n._step(e)},_step:function(e){var t=this,n=t.element,i=t._parse(n.val())||0;l()!=n[0]&&t._focusin(),i+=t.options.step*e,t._update(t._adjust(i)),t._typing=!1,t.trigger(_)},_toggleHover:function(t){e(t.currentTarget).toggleClass(S,\"mouseenter\"===t.type)},_toggleText:function(e){var t=this;t._text.toggle(e),t.element.toggle(!e)},_parse:function(e,t){return d(e,this._culture(t),this.options.format)},_update:function(e){var t,n=this,r=n.options,o=r.format,a=r.decimals,s=n._culture(),l=n._format(o,s);a===R&&(a=l.decimals),e=n._parse(e,s),t=e!==R,t&&(e=parseFloat(f(e,a))),n._value=e=n._adjust(e),n._placeholder(i.toString(e,o,s)),t?(e=\"\"+e,-1!==e.indexOf(\"e\")&&(e=f(+e,a)),e=e.replace(D,l[D])):e=\"\",n.element.val(e).attr(\"aria-valuenow\",e)},_placeholder:function(e){this._text.val(e),u||e||this._text.val(this.options.placeholder)},_wrapper:function(){var t,n=this,i=n.element,r=i[0];t=i.parents(\".k-numerictextbox\"),t.is(\"span.k-numerictextbox\")||(t=i.hide().wrap('').parent(),t=t.wrap(\"\").parent()),t[0].style.cssText=r.style.cssText,r.style.width=\"\",n.wrapper=t.addClass(\"k-widget k-numerictextbox\").addClass(r.className).css(\"display\",\"\"),n._inputWrapper=e(t[0].firstChild)},_reset:function(){var t=this,n=t.element,i=n.attr(\"form\"),r=i?e(\"#\"+i):n.closest(\"form\");r[0]&&(t._resetHandler=function(){setTimeout(function(){t.value(n[0].value),t.max(t._initialOptions.max),t.min(t._initialOptions.min)})},t._form=r.on(\"reset\",t._resetHandler))}});a.plugin(B)}(window.kendo.jQuery),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.filtermenu.min\",[\"kendo.datepicker.min\",\"kendo.numerictextbox.min\",\"kendo.dropdownlist.min\",\"kendo.binder.min\"],e)}(function(){return function(e,t){function n(t,i){t.filters&&(t.filters=e.grep(t.filters,function(e){return n(e,i),e.filters?e.filters.length:e.field!=i}))}function i(e){var t,n,i,r,o,a;if(e&&e.length)for(a=[],t=0,n=e.length;n>t;t++)i=e[t],o=\"\"!==i.text?i.text||i.value||i:i.text,r=null==i.value?i.text||i:i.value,a[t]={text:o,value:r};return a}function r(t,n){return e.grep(t,function(t){return t.filters?(t.filters=e.grep(t.filters,function(e){return e.field!=n}),t.filters.length):t.field!=n})}function o(t,n){t.filters&&(t.filters=e.grep(t.filters,function(e){return o(e,n),e.filters?e.filters.length:e.field==n&&\"eq\"==e.operator}))}function a(n){return\"and\"==n.logic&&n.filters.length>1?[]:n.filters?e.map(n.filters,function(e){return a(e)}):null!==n.value&&n.value!==t?[n.value]:[]}function s(e,n){for(var i,r,o=c.getter(n,!0),a=[],s=0,l={};e.length>s;)i=e[s++],r=o(i),r===t||null===r||l.hasOwnProperty(r)||(a.push(i),l[r]=!0);return a}function l(e,t){return function(n){var i=e(n);return s(i,t)}}var c=window.kendo,d=c.ui,u=e.proxy,h=\"kendoPopup\",f=\"init\",p=\"refresh\",m=\"change\",g=\".kendoFilterMenu\",v=\"Is equal to\",_=\"Is not equal to\",b={number:\"numerictextbox\",date:\"datepicker\"},w={string:\"text\",number:\"number\",date:\"date\"},y=c.isFunction,k=d.Widget,x='
        #=messages.info#
        ',C='
        #=messages.info#
        #if(values){##}else{##}##if(extra){##if(values){##}else{##}##}#
        ',S='
        #=title#
        • #=messages.info#
          • #if(extra){#
          • #}#
        ',T='
        #=title#
        • #=messages.info#
        ',D=k.extend({init:function(t,n){var i,r,o,a,s=this,l=\"string\";k.fn.init.call(s,t,n),i=s.operators=n.operators||{},t=s.element,n=s.options,n.appendToElement||(o=t.addClass(\"k-with-icon k-filterable\").find(\".k-grid-filter\"),o[0]||(o=t.prepend(''+n.messages.filter+\"\").find(\".k-grid-filter\")),o.attr(\"tabindex\",-1).on(\"click\"+g,u(s._click,s))),s.link=o||e(),s.dataSource=E.create(n.dataSource),s.field=n.field||t.attr(c.attr(\"field\")),s.model=s.dataSource.reader.model,s._parse=function(e){return e+\"\"},s.model&&s.model.fields&&(a=s.model.fields[s.field],a&&(l=a.type||\"string\",a.parse&&(s._parse=u(a.parse,a)))),n.values&&(l=\"enums\"),s.type=l,i=i[l]||n.operators[l];for(r in i)break;s._defaultFilter=function(){return{field:s.field,operator:r||\"eq\",value:\"\"}},s._refreshHandler=u(s.refresh,s),s.dataSource.bind(m,s._refreshHandler),n.appendToElement?s._init():s.refresh()},_init:function(){var t,n=this,i=n.options.ui,r=y(i);n.pane=n.options.pane,n.pane&&(n._isMobile=!0),r||(t=i||b[n.type]),n._isMobile?n._createMobileForm(t):n._createForm(t),n.form.on(\"submit\"+g,u(n._submit,n)).on(\"reset\"+g,u(n._reset,n)),r&&n.form.find(\".k-textbox\").removeClass(\"k-textbox\").each(function(){i(e(this))}),n.form.find(\"[\"+c.attr(\"role\")+\"=numerictextbox]\").removeClass(\"k-textbox\").end().find(\"[\"+c.attr(\"role\")+\"=datetimepicker]\").removeClass(\"k-textbox\").end().find(\"[\"+c.attr(\"role\")+\"=timepicker]\").removeClass(\"k-textbox\").end().find(\"[\"+c.attr(\"role\")+\"=datepicker]\").removeClass(\"k-textbox\"),n.refresh(),n.trigger(f,{field:n.field,container:n.form}),c.cycleForm(n.form)},_createForm:function(t){var n=this,r=n.options,o=n.operators||{},a=n.type;o=o[a]||r.operators[a],n.form=e('
        ').html(c.template(\"boolean\"===a?x:C)({field:n.field,format:r.format,ns:c.ns,messages:r.messages,extra:r.extra,operators:o,type:a,role:t,values:i(r.values)})),r.appendToElement?(n.element.append(n.form),n.popup=n.element.closest(\".k-popup\").data(h)):n.popup=n.form[h]({anchor:n.link,open:u(n._open,n),activate:u(n._activate,n),close:function(){n.options.closeCallback&&n.options.closeCallback(n.element)}}).data(h),n.form.on(\"keydown\"+g,u(n._keydown,n))},_createMobileForm:function(t){var n=this,r=n.options,o=n.operators||{},a=n.type;o=o[a]||r.operators[a],n.form=e(\"
        \").html(c.template(\"boolean\"===a?T:S)({field:n.field,title:r.title||n.field,format:r.format,ns:c.ns,messages:r.messages,extra:r.extra,operators:o,type:a,role:t,useRole:!c.support.input.date&&\"date\"===a||\"number\"===a,inputType:w[a],values:i(r.values)})),n.view=n.pane.append(n.form.html()),n.form=n.view.element.find(\"form\"),n.view.element.on(\"click\",\".k-submit\",function(e){n.form.submit(),e.preventDefault()}).on(\"click\",\".k-cancel\",function(e){n._closeForm(),e.preventDefault()})},refresh:function(){var e=this,t=e.dataSource.filter()||{filters:[],logic:\"and\"};e.filterModel=c.observable({logic:\"and\",filters:[e._defaultFilter(),e._defaultFilter()]}),e.form&&c.bind(e.form.children().first(),e.filterModel),e._bind(t)?e.link.addClass(\"k-state-active\"):e.link.removeClass(\"k-state-active\")},destroy:function(){var e=this;k.fn.destroy.call(e),e.form&&(c.unbind(e.form),c.destroy(e.form),e.form.unbind(g),e.popup&&(e.popup.destroy(),e.popup=null),e.form=null),e.view&&(e.view.purge(),e.view=null),e.link.unbind(g),e._refreshHandler&&(e.dataSource.unbind(m,e._refreshHandler),e.dataSource=null),e.element=e.link=e._refreshHandler=e.filterModel=null},_bind:function(e){var t,n,i,r,o=this,a=e.filters,s=!1,l=0,c=o.filterModel;for(t=0,n=a.length;n>t;t++)r=a[t],r.field==o.field?(c.set(\"logic\",e.logic),i=c.filters[l],i||(c.filters.push({field:o.field}),i=c.filters[l]),i.set(\"value\",o._parse(r.value)),i.set(\"operator\",r.operator),l++,s=!0):r.filters&&(s=s||o._bind(r));return s},_stripFilters:function(t){return e.grep(t,function(e){return\"\"!==e.value&&null!=e.value||\"isnull\"===e.operator||\"isnotnull\"===e.operator||\"isempty\"===e.operator||\"isnotempty\"===e.operator})},_merge:function(e){var t,i,r,o=this,a=e.logic||\"and\",s=this._stripFilters(e.filters),l=o.dataSource.filter()||{filters:[],logic:\"and\"};for(n(l,o.field),i=0,r=s.length;r>i;i++)t=s[i],t.value=o._parse(t.value);return s.length&&(l.filters.length?(e.filters=s,\"and\"!==l.logic&&(l.filters=[{logic:l.logic,filters:l.filters}],l.logic=\"and\"),l.filters.push(s.length>1?e:s[0])):(l.filters=s,l.logic=a)),l},filter:function(e){e=this._merge(e),e.filters.length&&this.dataSource.filter(e)},clear:function(){var t=this,n=t.dataSource.filter()||{filters:[]};n.filters=e.grep(n.filters,function(e){return e.filters?(e.filters=r(e.filters,t.field),e.filters.length):e.field!=t.field}),n.filters.length||(n=null),t.dataSource.filter(n)},_submit:function(e){e.preventDefault(),e.stopPropagation(),this.filter(this.filterModel.toJSON()),this._closeForm()},_reset:function(){this.clear(),this._closeForm()},_closeForm:function(){this._isMobile?this.pane.navigate(\"\",this.options.animations.right):this.popup.close()},_click:function(e){e.preventDefault(),e.stopPropagation(),this.popup||this.pane||this._init(),this._isMobile?this.pane.navigate(this.view,this.options.animations.left):this.popup.toggle()},_open:function(){var t;e(\".k-filter-menu\").not(this.form).each(function(){t=e(this).data(h),t&&t.close()})},_activate:function(){this.form.find(\":kendoFocusable:first\").focus()},_keydown:function(e){e.keyCode==c.keys.ESC&&this.popup.close()},events:[f],options:{name:\"FilterMenu\",extra:!0,appendToElement:!1,type:\"string\",operators:{string:{eq:v,neq:_,startswith:\"Starts with\",contains:\"Contains\",doesnotcontain:\"Does not contain\",endswith:\"Ends with\",isnull:\"Is null\",isnotnull:\"Is not null\",isempty:\"Is empty\",isnotempty:\"Is not empty\"},number:{eq:v,neq:_,gte:\"Is greater than or equal to\",gt:\"Is greater than\",lte:\"Is less than or equal to\",lt:\"Is less than\",isnull:\"Is null\",isnotnull:\"Is not null\"},date:{eq:v,neq:_,gte:\"Is after or equal to\",gt:\"Is after\",lte:\"Is before or equal to\",lt:\"Is before\",isnull:\"Is null\",isnotnull:\"Is not null\"},enums:{eq:v,neq:_,isnull:\"Is null\",isnotnull:\"Is not null\"}},messages:{info:\"Show items with value that:\",isTrue:\"is true\",isFalse:\"is false\",filter:\"Filter\",clear:\"Clear\",and:\"And\",or:\"Or\",selectValue:\"-Select value-\",operator:\"Operator\",value:\"Value\",cancel:\"Cancel\"},animations:{left:\"slide\",right:\"slide:right\"}}}),A=\".kendoFilterMultiCheck\",E=c.data.DataSource,I=k.extend({init:function(t,n){var i,r;k.fn.init.call(this,t,n),n=this.options,this.element=e(t),i=this.field=this.options.field||this.element.attr(c.attr(\"field\")),r=n.checkSource,this._foreignKeyValues()?(this.checkSource=E.create(n.values),this.checkSource.fetch()):n.forceUnique?(r=n.dataSource.options,delete r.pageSize,this.checkSource=E.create(r),this.checkSource.reader.data=l(this.checkSource.reader.data,this.field)):this.checkSource=E.create(r),this.dataSource=n.dataSource,this.model=this.dataSource.reader.model,this._parse=function(e){return e+\"\"},this.model&&this.model.fields&&(i=this.model.fields[this.field],i&&(i.parse&&(this._parse=u(i.parse,i)),this.type=i.type||\"string\")),n.appendToElement?this._init():this._createLink(),this._refreshHandler=u(this.refresh,this),this.dataSource.bind(m,this._refreshHandler)},_createLink:function(){var e=this.element,t=e.addClass(\"k-with-icon k-filterable\").find(\".k-grid-filter\");t[0]||(t=e.prepend('').find(\".k-grid-filter\")),this._link=t.attr(\"tabindex\",-1).on(\"click\"+g,u(this._click,this))},_init:function(){var e=this,t=this.options.forceUnique,n=this.options;this.pane=n.pane,this.pane&&(this._isMobile=!0),this._createForm(),this._foreignKeyValues()?this.refresh():t&&!this.checkSource.options.serverPaging&&this.dataSource.data().length?(this.checkSource.data(s(this.dataSource.data(),this.field)),this.refresh()):(this._attachProgress(),this.checkSource.fetch(function(){e.refresh.call(e)})),this.options.forceUnique||(this.checkChangeHandler=function(){e.container.empty(),e.refresh()},this.checkSource.bind(m,this.checkChangeHandler)),this.form.on(\"keydown\"+A,u(this._keydown,this)).on(\"submit\"+A,u(this._filter,this)).on(\"reset\"+A,u(this._reset,this)),this.trigger(f,{field:this.field,container:this.form})},_attachProgress:function(){var e=this;this._progressHandler=function(){d.progress(e.container,!0)},this._progressHideHandler=function(){d.progress(e.container,!1)},this.checkSource.bind(\"progress\",this._progressHandler).bind(\"change\",this._progressHideHandler)},_input:function(){var e=this;e._clearTypingTimeout(),e._typingTimeout=setTimeout(function(){e.search()},100)},_clearTypingTimeout:function(){this._typingTimeout&&(clearTimeout(this._typingTimeout),this._typingTimeout=null)},search:function(){var e,t,n,i=this.options.ignoreCase,r=this.searchTextBox[0].value,o=this.container.find(\"label\");for(i&&(r=r.toLowerCase()),e=this.options.checkAll?1:0;o.length>e;e++)t=o[e],n=t.textContent||t.innerText,i&&(n=n.toLowerCase()),t.style.display=n.indexOf(r)>=0?\"\":\"none\"},_createForm:function(){var t,n,i=this.options,r=\"\";!this._isMobile&&i.search&&(r+=\"
        \"),r+=\"
          \",r+=\"\",this.form=e('').html(r),this.container=this.form.find(\".k-multicheck-wrap\"),i.search&&(this.searchTextBox=this.form.find(\".k-textbox > input\"),this.searchTextBox.on(\"input\",u(this._input,this))),this._isMobile?(this.view=this.pane.append(this.form.addClass(\"k-mobile-list\").wrap(\"
          \").parent().html()),t=this.view.element,this.form=t.find(\"form\"),this.container=t.find(\".k-multicheck-wrap\"),n=this,t.on(\"click\",\".k-primary\",function(e){n.form.submit(),e.preventDefault()}).on(\"click\",\"[type=reset]\",function(e){n._reset(),e.preventDefault()})):i.appendToElement?(this.popup=this.element.closest(\".k-popup\").data(h),this.element.append(this.form)):this.popup=this.form.kendoPopup({anchor:this._link}).data(h)},createCheckAllItem:function(){var t=this.options,n=c.template(t.itemTemplate({field:\"all\",mobile:this._isMobile})),i=e(n({all:t.messages.checkAll}));this.container.prepend(i),this.checkBoxAll=i.find(\":checkbox\").eq(0).addClass(\"k-check-all\"),this.checkAllHandler=u(this.checkAll,this),this.checkBoxAll.on(m+A,this.checkAllHandler)},updateCheckAllState:function(){if(this.checkBoxAll){var e=this.container.find(\":checkbox:not(.k-check-all)\").length==this.container.find(\":checked:not(.k-check-all)\").length;this.checkBoxAll.prop(\"checked\",e)}},refresh:function(e){var t=this.options.forceUnique,n=this.dataSource,i=this.getFilterArray();this._link&&this._link.toggleClass(\"k-state-active\",0!==i.length),this.form&&(e&&t&&e.sender===n&&!n.options.serverPaging&&(\"itemchange\"==e.action||\"add\"==e.action||\"remove\"==e.action||n.options.autoSync&&\"sync\"===e.action)&&!this._foreignKeyValues()&&(this.checkSource.data(s(this.dataSource.data(),this.field)),this.container.empty()),this.container.is(\":empty\")&&this.createCheckBoxes(),this.checkValues(i),this.trigger(p))},getFilterArray:function(){var t,n=e.extend(!0,{},{filters:[],logic:\"and\"},this.dataSource.filter());return o(n,this.field),t=a(n)},createCheckBoxes:function(){var e,t,n,i=this.options,r={field:this.field,format:i.format,mobile:this._isMobile,type:this.type};this.options.forceUnique?this._foreignKeyValues()?(e=this.checkSource.data(),r.valueField=\"value\",r.field=\"text\"):e=this.checkSource.data():e=this.checkSource.view(),t=c.template(i.itemTemplate(r)),n=c.render(t,e),i.checkAll&&(this.createCheckAllItem(),this.container.on(m+A,\":checkbox\",u(this.updateCheckAllState,this))),this.container.append(n)},checkAll:function(){var e=this.checkBoxAll.is(\":checked\");this.container.find(\":checkbox\").prop(\"checked\",e)},checkValues:function(t){var n=this;e(e.grep(this.container.find(\":checkbox\").prop(\"checked\",!1),function(i){var r,o,a=!1;if(!e(i).is(\".k-check-all\"))for(r=n._parse(e(i).val()),o=0;t.length>o;o++)if(a=\"date\"==n.type?t[o].getTime()==r.getTime():t[o]==r)return a})).prop(\"checked\",!0),this.updateCheckAllState()},_filter:function(t){var n,i;t.preventDefault(),t.stopPropagation(),n={logic:\"or\"},i=this,n.filters=e.map(this.form.find(\":checkbox:checked:not(.k-check-all)\"),function(t){return{value:e(t).val(),operator:\"eq\",field:i.field}}),n=this._merge(n),n.filters.length&&this.dataSource.filter(n),this._closeForm()},_stripFilters:function(t){return e.grep(t,function(e){return null!=e.value})},_foreignKeyValues:function(){var e=this.options;return e.values&&!e.checkSource},destroy:function(){var e=this;k.fn.destroy.call(e),e.form&&(c.unbind(e.form),c.destroy(e.form),e.form.unbind(A),e.popup&&(e.popup.destroy(),e.popup=null),e.form=null,e.container&&(e.container.unbind(A),e.container=null),e.checkBoxAll&&e.checkBoxAll.unbind(A)),e.view&&(e.view.purge(),e.view=null),e._link&&e._link.unbind(g),e._refreshHandler&&(e.dataSource.unbind(m,e._refreshHandler),e.dataSource=null),e.checkChangeHandler&&e.checkSource.unbind(m,e.checkChangeHandler),e._progressHandler&&e.checkSource.unbind(\"progress\",e._progressHandler),e._progressHideHandler&&e.checkSource.unbind(\"change\",e._progressHideHandler),this._clearTypingTimeout(),this.searchTextBox=null,e.element=e.checkSource=e.container=e.checkBoxAll=e._link=e._refreshHandler=e.checkAllHandler=null},options:{name:\"FilterMultiCheck\",itemTemplate:function(e){var n=e.field,i=e.format,r=e.valueField,o=e.mobile,a=\"\";return r===t&&(r=n),\"date\"==e.type&&(a=\":yyyy-MM-ddTHH:mm:sszzz\"),\"
        • \"},checkAll:!0,search:!1,ignoreCase:!0,appendToElement:!1,messages:{checkAll:\"Select All\",clear:\"Clear\",filter:\"Filter\",search:\"Search\"},forceUnique:!0,animations:{left:\"slide\",right:\"slide:right\"}},events:[f,p]});e.extend(I.fn,{_click:D.fn._click,_keydown:D.fn._keydown,_reset:D.fn._reset,_closeForm:D.fn._closeForm,clear:D.fn.clear,_merge:D.fn._merge}),d.plugin(D),d.plugin(I)}(window.kendo.jQuery),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.menu.min\",[\"kendo.popup.min\"],e)}(function(){return function(e,t){function n(e,t){return e=e.split(\" \")[!t+0]||e,e.replace(\"top\",\"up\").replace(\"bottom\",\"down\")}function i(e,t,n){e=e.split(\" \")[!t+0]||e;var i={origin:[\"bottom\",n?\"right\":\"left\"],position:[\"top\",n?\"right\":\"left\"]},r=/left|right/.test(e);return r?(i.origin=[\"top\",e],i.position[1]=c.directions[e].reverse):(i.origin[0]=e,i.position[0]=c.directions[e].reverse),i.origin=i.origin.join(\" \"),i.position=i.position.join(\" \"),i}function r(t,n){try{return e.contains(t,n)}catch(i){return!1}}function o(t){t=e(t),t.addClass(\"k-item\").children(x).addClass(F),t.children(\"a\").addClass(T).children(x).addClass(F),t.filter(\":not([disabled])\").addClass(q),t.filter(\".k-separator:empty\").append(\" \"),t.filter(\"li[disabled]\").addClass(Y).removeAttr(\"disabled\").attr(\"aria-disabled\",!0),t.filter(\"[role]\").length||t.attr(\"role\",\"menuitem\"),t.children(\".\"+T).length||t.contents().filter(function(){return!(this.nodeName.match(y)||3==this.nodeType&&!e.trim(this.nodeValue))}).wrapAll(\"\"),a(t),s(t)}function a(t){t=e(t),t.find(\"> .k-link > [class*=k-i-arrow]:not(.k-sprite)\").remove(),t.filter(\":has(.k-menu-group)\").children(\".k-link:not(:has([class*=k-i-arrow]:not(.k-sprite)))\").each(function(){var t=e(this),n=t.parent().parent();t.append(\"\")})}function s(t){t=e(t),t.filter(\".k-first:not(:first-child)\").removeClass(I),t.filter(\".k-last:not(:last-child)\").removeClass(D),t.filter(\":first-child\").addClass(I),t.filter(\":last-child\").addClass(D)}var l,c=window.kendo,d=c.ui,u=c._activeElement,h=c.support.touch&&c.support.mobileOS,f=\"mousedown\",p=\"click\",m=e.extend,g=e.proxy,v=e.each,_=c.template,b=c.keys,w=d.Widget,y=/^(ul|a|div)$/i,k=\".kendoMenu\",x=\"img\",C=\"open\",S=\"k-menu\",T=\"k-link\",D=\"k-last\",A=\"close\",E=\"timer\",I=\"k-first\",F=\"k-image\",M=\"select\",R=\"zIndex\",P=\"activate\",z=\"deactivate\",B=\"touchstart\"+k+\" MSPointerDown\"+k+\" pointerdown\"+k,L=c.support.pointers,H=c.support.msPointers,N=H||L,O=L?\"pointerover\":H?\"MSPointerOver\":\"mouseenter\",V=L?\"pointerout\":H?\"MSPointerOut\":\"mouseleave\",U=h||N,W=e(document.documentElement),j=\"kendoPopup\",q=\"k-state-default\",G=\"k-state-hover\",$=\"k-state-focused\",Y=\"k-state-disabled\",K=\".k-menu\",Q=\".k-menu-group\",X=Q+\",.k-animation-container\",J=\":not(.k-list) > .k-item\",Z=\".k-item.k-state-disabled\",ee=\".k-item:not(.k-state-disabled)\",te=\".k-item:not(.k-state-disabled) > .k-link\",ne=\":not(.k-item.k-separator)\",ie=ne+\":eq(0)\",re=ne+\":last\",oe=\"> div:not(.k-animation-container,.k-list-container)\",ae={2:1,touch:1},se={content:_(\"
          #= content(item) #
          \"),group:_(\"\"),itemWrapper:_(\"<#= tag(item) # class='#= textClass(item) #'#= textAttributes(item) #>#= image(item) ##= sprite(item) ##= text(item) ##= arrow(data) #\"),item:_(\"\"),image:_(\"\"),arrow:_(\"\"),sprite:_(\"\"),empty:_(\"\")},le={wrapperCssClass:function(e,t){var n=\"k-item\",i=t.index;return n+=t.enabled===!1?\" k-state-disabled\":\" k-state-default\",e.firstLevel&&0===i&&(n+=\" k-first\"),i==e.length-1&&(n+=\" k-last\"),t.cssClass&&(n+=\" \"+t.cssClass),n},textClass:function(){return T},textAttributes:function(e){return e.url?\" href='\"+e.url+\"'\":\"\"},arrowClass:function(e,t){var n=\"k-icon\";return n+=t.horizontal?\" k-i-arrow-s\":\" k-i-arrow-e\"},text:function(e){return e.encoded===!1?e.text:c.htmlEncode(e.text)},tag:function(e){return e.url?\"a\":\"span\"},groupAttributes:function(e){return e.expanded!==!0?\" style='display:none'\":\"\"},groupCssClass:function(){return\"k-group k-menu-group\"},content:function(e){return e.content?e.content:\" \"}},ce=w.extend({init:function(t,n){var i=this;w.fn.init.call(i,t,n),t=i.wrapper=i.element,n=i.options,i._initData(n),i._updateClasses(),i._animations(n),i.nextItemZIndex=100,i._tabindex(),i._focusProxy=g(i._focusHandler,i),t.on(B,ee,i._focusProxy).on(p+k,Z,!1).on(p+k,ee,g(i._click,i)).on(\"keydown\"+k,g(i._keydown,i)).on(\"focus\"+k,g(i._focus,i)).on(\"focus\"+k,\".k-content\",g(i._focus,i)).on(B+\" \"+f+k,\".k-content\",g(i._preventClose,i)).on(\"blur\"+k,g(i._removeHoverItem,i)).on(\"blur\"+k,\"[tabindex]\",g(i._checkActiveElement,i)).on(O+k,ee,g(i._mouseenter,i)).on(V+k,ee,g(i._mouseleave,i)).on(O+k+\" \"+V+k+\" \"+f+k+\" \"+p+k,te,g(i._toggleHover,i)),n.openOnClick&&(i.clicked=!1,i._documentClickHandler=g(i._documentClick,i),e(document).click(i._documentClickHandler)),t.attr(\"role\",\"menubar\"),t[0].id&&(i._ariaId=c.format(\"{0}_mn_active\",t[0].id)),c.notify(i)},events:[C,A,P,z,M],options:{name:\"Menu\",animation:{open:{duration:200},close:{duration:100}},orientation:\"horizontal\",direction:\"default\",openOnClick:!1,closeOnClick:!0,hoverDelay:100,popupCollision:t},_initData:function(e){var t=this;e.dataSource&&(t.angular(\"cleanup\",function(){return{elements:t.element.children()}}),t.element.empty(),t.append(e.dataSource,t.element),t.angular(\"compile\",function(){return{elements:t.element.children()}}))},setOptions:function(e){var t=this.options.animation;this._animations(e),e.animation=m(!0,t,e.animation),\"dataSource\"in e&&this._initData(e),this._updateClasses(),w.fn.setOptions.call(this,e)},destroy:function(){var t=this;w.fn.destroy.call(t),t.element.off(k),t._documentClickHandler&&e(document).unbind(\"click\",t._documentClickHandler),c.destroy(t.element)},enable:function(e,t){return this._toggleDisabled(e,t!==!1),this},disable:function(e){return this._toggleDisabled(e,!1),this},append:function(e,t){t=this.element.find(t);var n=this._insert(e,t,t.length?t.find(\"> .k-menu-group, > .k-animation-container > .k-menu-group\"):null);return v(n.items,function(){n.group.append(this),a(this)}),a(t),s(n.group.find(\".k-first, .k-last\").add(n.items)),this},insertBefore:function(e,t){t=this.element.find(t);var n=this._insert(e,t,t.parent());return v(n.items,function(){t.before(this),a(this),s(this)}),s(t),this},insertAfter:function(e,t){t=this.element.find(t);var n=this._insert(e,t,t.parent());return v(n.items,function(){t.after(this),a(this),s(this)}),s(t),this},_insert:function(t,n,i){var r,a,s,l,c=this;return n&&n.length||(i=c.element),s=e.isPlainObject(t),l={firstLevel:i.hasClass(S),horizontal:i.hasClass(S+\"-horizontal\"),expanded:!0,length:i.children().length},n&&!i.length&&(i=e(ce.renderGroup({group:l})).appendTo(n)),s||e.isArray(t)?r=e(e.map(s?[t]:t,function(t,n){return\"string\"==typeof t?e(t).get():e(ce.renderItem({group:l,item:m(t,{index:n})})).get()})):(r=\"string\"==typeof t&&\"<\"!=t.charAt(0)?c.element.find(t):e(t),a=r.find(\"> ul\").addClass(\"k-menu-group\").attr(\"role\",\"menu\"),r=r.filter(\"li\"),r.add(a.find(\"> li\")).each(function(){o(this)})),{items:r,group:i}},remove:function(e){var t,n,i,r;return e=this.element.find(e),t=this,n=e.parentsUntil(t.element,J),i=e.parent(\"ul:not(.k-menu)\"),e.remove(),i&&!i.children(J).length&&(r=i.parent(\".k-animation-container\"),r.length?r.remove():i.remove()),n.length&&(n=n.eq(0),a(n),s(n)),t},open:function(r){var o=this,a=o.options,s=\"horizontal\"==a.orientation,l=a.direction,d=c.support.isRtl(o.wrapper);return r=o.element.find(r),/^(top|bottom|default)$/.test(l)&&(l=d?s?(l+\" left\").replace(\"default\",\"bottom\"):\"left\":s?(l+\" right\").replace(\"default\",\"bottom\"):\"right\"),r.siblings().find(\">.k-popup:visible,>.k-animation-container>.k-popup:visible\").each(function(){var t=e(this).data(\"kendoPopup\");t&&t.close()}),r.each(function(){var r=e(this);clearTimeout(r.data(E)),r.data(E,setTimeout(function(){var u,f,p,g,v,_,b,w,y=r.find(\".k-menu-group:first:hidden\");y[0]&&o._triggerEvent({item:r[0],type:C})===!1&&(!y.find(\".k-menu-group\")[0]&&y.children(\".k-item\").length>1?(f=e(window).height(),p=function(){y.css({maxHeight:f-(y.outerHeight()-y.height())-c.getShadows(y).bottom,\r\noverflow:\"auto\"})},c.support.browser.msie&&7>=c.support.browser.version?setTimeout(p,0):p()):y.css({maxHeight:\"\",overflow:\"\"}),r.data(R,r.css(R)),r.css(R,o.nextItemZIndex++),u=y.data(j),g=r.parent().hasClass(S),v=g&&s,_=i(l,g,d),b=a.animation.open.effects,w=b!==t?b:\"slideIn:\"+n(l,g),u?(u=y.data(j),u.options.origin=_.origin,u.options.position=_.position,u.options.animation.open.effects=w):u=y.kendoPopup({activate:function(){o._triggerEvent({item:this.wrapper.parent(),type:P})},deactivate:function(e){e.sender.element.removeData(\"targetTransform\").css({opacity:\"\"}),o._triggerEvent({item:this.wrapper.parent(),type:z})},origin:_.origin,position:_.position,collision:a.popupCollision!==t?a.popupCollision:v?\"fit\":\"fit flip\",anchor:r,appendTo:r,animation:{open:m(!0,{effects:w},a.animation.open),close:a.animation.close},close:function(e){var t=e.sender.wrapper.parent();o._triggerEvent({item:t[0],type:A})?e.preventDefault():(t.css(R,t.data(R)),t.removeData(R),h&&(t.removeClass(G),o._removeHoverItem()))}}).data(j),y.removeAttr(\"aria-hidden\"),u.open())},o.options.hoverDelay))}),o},close:function(t,n){var i=this,r=i.element;return t=r.find(t),t.length||(t=r.find(\">.k-item\")),t.each(function(){var t=e(this);!n&&i._isRootItem(t)&&(i.clicked=!1),clearTimeout(t.data(E)),t.data(E,setTimeout(function(){var e=t.find(\".k-menu-group:not(.k-list-container):not(.k-calendar-container):first:visible\").data(j);e&&(e.close(),e.element.attr(\"aria-hidden\",!0))},i.options.hoverDelay))}),i},_toggleDisabled:function(t,n){this.element.find(t).each(function(){e(this).toggleClass(q,n).toggleClass(Y,!n).attr(\"aria-disabled\",!n)})},_toggleHover:function(t){var n=e(c.eventTarget(t)||t.target).closest(J),i=t.type==O||-1!==f.indexOf(t.type);n.parents(\"li.\"+Y).length||n.toggleClass(G,i||\"mousedown\"==t.type||\"click\"==t.type),this._removeHoverItem()},_preventClose:function(){this.options.closeOnClick||(this._closurePrevented=!0)},_checkActiveElement:function(t){var n=this,i=e(t?t.currentTarget:this._hoverItem()),o=n._findRootParent(i)[0];this._closurePrevented||setTimeout(function(){(!document.hasFocus()||!r(o,c._activeElement())&&t&&!r(o,t.currentTarget))&&n.close(o)},0),this._closurePrevented=!1},_removeHoverItem:function(){var e=this._hoverItem();e&&e.hasClass($)&&(e.removeClass($),this._oldHoverItem=null)},_updateClasses:function(){var e,t=this.element,n=\".k-menu-init div ul\";t.removeClass(\"k-menu-horizontal k-menu-vertical\"),t.addClass(\"k-widget k-reset k-header k-menu-init \"+S).addClass(S+\"-\"+this.options.orientation),t.find(\"li > ul\").filter(function(){return!c.support.matchesSelector.call(this,n)}).addClass(\"k-group k-menu-group\").attr(\"role\",\"menu\").attr(\"aria-hidden\",t.is(\":visible\")).end().find(\"li > div\").addClass(\"k-content\").attr(\"tabindex\",\"-1\"),e=t.find(\"> li,.k-menu-group > li\"),t.removeClass(\"k-menu-init\"),e.each(function(){o(this)})},_mouseenter:function(t){var n=this,i=e(t.currentTarget),o=i.children(\".k-animation-container\").length||i.children(Q).length;t.delegateTarget==i.parents(K)[0]&&(n.options.openOnClick&&!n.clicked||h||(L||H)&&t.originalEvent.pointerType in ae&&n._isRootItem(i.closest(J))||!r(t.currentTarget,t.relatedTarget)&&o&&n.open(i),(n.options.openOnClick&&n.clicked||U)&&i.siblings().each(g(function(e,t){n.close(t,!0)},n)))},_mouseleave:function(n){var i=this,o=e(n.currentTarget),a=o.children(\".k-animation-container\").length||o.children(Q).length;return o.parentsUntil(\".k-animation-container\",\".k-list-container,.k-calendar-container\")[0]?(n.stopImmediatePropagation(),t):(i.options.openOnClick||h||(L||H)&&n.originalEvent.pointerType in ae||r(n.currentTarget,n.relatedTarget||n.target)||!a||r(n.currentTarget,c._activeElement())||i.close(o),t)},_click:function(n){var i,r,o,a=this,s=a.options,l=e(c.eventTarget(n)),d=l[0]?l[0].nodeName.toUpperCase():\"\",u=\"INPUT\"==d||\"SELECT\"==d||\"BUTTON\"==d||\"LABEL\"==d,h=l.closest(\".\"+T),f=l.closest(J),p=h.attr(\"href\"),m=l.attr(\"href\"),g=e(\"\").attr(\"href\"),v=!!p&&p!==g,_=v&&!!p.match(/^#/),b=!!m&&m!==g,w=s.openOnClick&&o&&a._isRootItem(f);if(!l.closest(oe,f[0]).length){if(f.hasClass(Y))return n.preventDefault(),t;if(n.handled||!a._triggerEvent({item:f[0],type:M})||u||n.preventDefault(),n.handled=!0,r=f.children(X),o=r.is(\":visible\"),s.closeOnClick&&(!v||_)&&(!r.length||w))return f.removeClass(G).css(\"height\"),a._oldHoverItem=a._findRootParent(f),a.close(h.parentsUntil(a.element,J)),a.clicked=!1,-1!=\"MSPointerUp\".indexOf(n.type)&&n.preventDefault(),t;v&&n.enterKey&&h[0].click(),(a._isRootItem(f)&&s.openOnClick||c.support.touch||(L||H)&&a._isRootItem(f.closest(J)))&&(v||u||b||n.preventDefault(),a.clicked=!0,i=r.is(\":visible\")?A:C,(s.closeOnClick||i!=A)&&a[i](f))}},_documentClick:function(e){r(this.element[0],e.target)||(this.clicked=!1)},_focus:function(n){var i=this,r=n.target,o=i._hoverItem(),a=u();return r==i.wrapper[0]||e(r).is(\":kendoFocusable\")?(a===n.currentTarget&&(o.length?i._moveHover([],o):i._oldHoverItem||i._moveHover([],i.wrapper.children().first())),t):(n.stopPropagation(),e(r).closest(\".k-content\").closest(\".k-menu-group\").closest(\".k-item\").addClass($),i.wrapper.focus(),t)},_keydown:function(e){var n,i,r,o=this,a=e.keyCode,s=o._oldHoverItem,l=c.support.isRtl(o.wrapper);if(e.target==e.currentTarget||a==b.ESC){if(s||(s=o._oldHoverItem=o._hoverItem()),i=o._itemBelongsToVertival(s),r=o._itemHasChildren(s),a==b.RIGHT)n=o[l?\"_itemLeft\":\"_itemRight\"](s,i,r);else if(a==b.LEFT)n=o[l?\"_itemRight\":\"_itemLeft\"](s,i,r);else if(a==b.DOWN)n=o._itemDown(s,i,r);else if(a==b.UP)n=o._itemUp(s,i,r);else if(a==b.ESC)n=o._itemEsc(s,i);else if(a==b.ENTER||a==b.SPACEBAR)n=s.children(\".k-link\"),n.length>0&&(o._click({target:n[0],preventDefault:function(){},enterKey:!0}),o._moveHover(s,o._findRootParent(s)));else if(a==b.TAB)return n=o._findRootParent(s),o._moveHover(s,n),o._checkActiveElement(),t;n&&n[0]&&(e.preventDefault(),e.stopPropagation())}},_hoverItem:function(){return this.wrapper.find(\".k-item.k-state-hover,.k-item.k-state-focused\").filter(\":visible\")},_itemBelongsToVertival:function(e){var t=this.wrapper.hasClass(\"k-menu-vertical\");return e.length?e.parent().hasClass(\"k-menu-group\")||t:t},_itemHasChildren:function(e){return e.length?e.children(\"ul.k-menu-group, div.k-animation-container\").length>0:!1},_moveHover:function(t,n){var i=this,r=i._ariaId;t.length&&n.length&&t.removeClass($),n.length&&(n[0].id&&(r=n[0].id),n.addClass($),i._oldHoverItem=n,r&&(i.element.removeAttr(\"aria-activedescendant\"),e(\"#\"+r).removeAttr(\"id\"),n.attr(\"id\",r),i.element.attr(\"aria-activedescendant\",r)))},_findRootParent:function(e){return this._isRootItem(e)?e:e.parentsUntil(K,\"li.k-item\").last()},_isRootItem:function(e){return e.parent().hasClass(S)},_itemRight:function(e,t,n){var i,r,o=this;if(!e.hasClass(Y))return t?n?(o.open(e),i=e.find(\".k-menu-group\").children().first()):\"horizontal\"==o.options.orientation&&(r=o._findRootParent(e),o.close(r),i=r.nextAll(ie)):(i=e.nextAll(ie),i.length||(i=e.prevAll(re))),i&&!i.length?i=o.wrapper.children(\".k-item\").first():i||(i=[]),o._moveHover(e,i),i},_itemLeft:function(e,t){var n,i=this;return t?(n=e.parent().closest(\".k-item\"),i.close(n),i._isRootItem(n)&&\"horizontal\"==i.options.orientation&&(n=n.prevAll(ie))):(n=e.prevAll(ie),n.length||(n=e.nextAll(re))),n.length||(n=i.wrapper.children(\".k-item\").last()),i._moveHover(e,n),n},_itemDown:function(e,t,n){var i,r=this;if(t)i=e.nextAll(ie);else{if(!n||e.hasClass(Y))return;r.open(e),i=e.find(\".k-menu-group\").children().first()}return!i.length&&e.length?i=e.parent().children().first():e.length||(i=r.wrapper.children(\".k-item\").first()),r._moveHover(e,i),i},_itemUp:function(e,t){var n,i=this;if(t)return n=e.prevAll(ie),!n.length&&e.length?n=e.parent().children().last():e.length||(n=i.wrapper.children(\".k-item\").last()),i._moveHover(e,n),n},_itemEsc:function(e,t){var n,i=this;return t?(n=e.parent().closest(\".k-item\"),i.close(n),i._moveHover(e,n),n):e},_triggerEvent:function(e){var t=this;return t.trigger(e.type,{type:e.type,item:e.item})},_focusHandler:function(t){var n=this,i=e(c.eventTarget(t)).closest(J);setTimeout(function(){n._moveHover([],i),i.children(\".k-content\")[0]&&i.parent().closest(\".k-item\").removeClass($)},200)},_animations:function(e){e&&\"animation\"in e&&!e.animation&&(e.animation={open:{effects:{}},close:{hide:!0,effects:{}}})}});m(ce,{renderItem:function(e){e=m({menu:{},group:{}},e);var t=se.empty,n=e.item;return se.item(m(e,{image:n.imageUrl?se.image:t,sprite:n.spriteCssClass?se.sprite:t,itemWrapper:se.itemWrapper,renderContent:ce.renderContent,arrow:n.items||n.content?se.arrow:t,subGroup:ce.renderGroup},le))},renderGroup:function(e){return se.group(m({renderItems:function(e){for(var t=\"\",n=0,i=e.items,r=i?i.length:0,o=m({length:r},e.group);r>n;n++)t+=ce.renderItem(m(e,{group:o,item:m({index:n},i[n])}));return t}},e,le))},renderContent:function(e){return se.content(m(e,le))}}),l=ce.extend({init:function(t,n){var i=this;ce.fn.init.call(i,t,n),i.target=e(i.options.target),i._popup(),i._wire()},options:{name:\"ContextMenu\",filter:null,showOn:\"contextmenu\",orientation:\"vertical\",alignToAnchor:!1,target:\"body\"},events:[C,A,P,z,M],setOptions:function(t){var n=this;ce.fn.setOptions.call(n,t),n.target.off(n.showOn+k,n._showProxy),n.userEvents&&n.userEvents.destroy(),n.target=e(n.options.target),t.orientation&&n.popup.wrapper[0]&&n.popup.element.unwrap(),n._wire(),ce.fn.setOptions.call(this,t)},destroy:function(){var e=this;e.target.off(e.options.showOn+k),W.off(c.support.mousedown+k,e._closeProxy),e.userEvents&&e.userEvents.destroy(),ce.fn.destroy.call(e)},open:function(n,i){var o=this;return n=e(n)[0],r(o.element[0],e(n)[0])?ce.fn.open.call(o,n):o._triggerEvent({item:o.element,type:C})===!1&&(o.popup.visible()&&o.options.filter&&(o.popup.close(!0),o.popup.element.kendoStop(!0)),i!==t?(o.popup.wrapper.hide(),o.popup.open(n,i)):(o.popup.options.anchor=(n?n:o.popup.anchor)||o.target,o.popup.element.kendoStop(!0),o.popup.open()),W.off(o.popup.downEvent,o.popup._mousedownProxy),W.on(c.support.mousedown+k,o._closeProxy)),o},close:function(){var t=this;r(t.element[0],e(arguments[0])[0])?ce.fn.close.call(t,arguments[0]):t.popup.visible()&&t._triggerEvent({item:t.element,type:A})===!1&&(t.popup.close(),W.off(c.support.mousedown+k,t._closeProxy),t.unbind(M,t._closeTimeoutProxy))},_showHandler:function(e){var t,n=e,i=this,o=i.options;e.event&&(n=e.event,n.pageX=e.x.location,n.pageY=e.y.location),r(i.element[0],e.relatedTarget||e.target)||(i._eventOrigin=n,n.preventDefault(),n.stopImmediatePropagation(),i.element.find(\".\"+$).removeClass($),(o.filter&&c.support.matchesSelector.call(n.currentTarget,o.filter)||!o.filter)&&(o.alignToAnchor?(i.popup.options.anchor=n.currentTarget,i.open(n.currentTarget)):(i.popup.options.anchor=n.currentTarget,i._targetChild?(t=i.target.offset(),i.open(n.pageX-t.left,n.pageY-t.top)):i.open(n.pageX,n.pageY))))},_closeHandler:function(t){var n,i=this,o=e(t.relatedTarget||t.target),a=o.closest(i.target.selector)[0]==i.target[0],s=o.closest(ee).children(X),l=r(i.element[0],o[0]);i._eventOrigin=t,n=3!==t.which,i.popup.visible()&&(n&&a||!a)&&(i.options.closeOnClick&&!s[0]&&l||!l)&&(l?(this.unbind(M,this._closeTimeoutProxy),i.bind(M,i._closeTimeoutProxy)):i.close())},_wire:function(){var e=this,t=e.options,n=e.target;e._showProxy=g(e._showHandler,e),e._closeProxy=g(e._closeHandler,e),e._closeTimeoutProxy=g(e.close,e),n[0]&&(c.support.mobileOS&&\"contextmenu\"==t.showOn?(e.userEvents=new c.UserEvents(n,{filter:t.filter,allowSelection:!1}),n.on(t.showOn+k,!1),e.userEvents.bind(\"hold\",e._showProxy)):t.filter?n.on(t.showOn+k,t.filter,e._showProxy):n.on(t.showOn+k,e._showProxy))},_triggerEvent:function(n){var i=this,r=e(i.popup.options.anchor)[0],o=i._eventOrigin;return i._eventOrigin=t,i.trigger(n.type,m({type:n.type,item:n.item||this.element[0],target:r},o?{event:o}:{}))},_popup:function(){var e=this;e._triggerProxy=g(e._triggerEvent,e),e.popup=e.element.addClass(\"k-context-menu\").kendoPopup({anchor:e.target||\"body\",copyAnchorStyles:e.options.copyAnchorStyles,collision:e.options.popupCollision||\"fit\",animation:e.options.animation,activate:e._triggerProxy,deactivate:e._triggerProxy}).data(\"kendoPopup\"),e._targetChild=r(e.target[0],e.popup.element[0])}}),d.plugin(ce),d.plugin(l)}(window.kendo.jQuery),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.columnmenu.min\",[\"kendo.popup.min\",\"kendo.filtermenu.min\",\"kendo.menu.min\"],e)}(function(){return function(e,t){function n(t){return e.trim(t).replace(/ /gi,\"\")}function i(e,t){var n,i,r,o={};for(n=0,i=e.length;i>n;n++)r=e[n],o[r[t]]=r;return o}function r(e){var t,n=[];for(t=0;e.length>t;t++)e[t].columns?n=n.concat(r(e[t].columns)):n.push(e[t]);return n}var o=window.kendo,a=o.ui,s=e.proxy,l=e.extend,c=e.grep,d=e.map,u=e.inArray,h=\"k-state-selected\",f=\"asc\",p=\"desc\",m=\"change\",g=\"init\",v=\"select\",_=\"kendoPopup\",b=\"kendoFilterMenu\",w=\"kendoMenu\",y=\".kendoColumnMenu\",k=a.Widget,x=k.extend({init:function(t,n){var i,r=this;k.fn.init.call(r,t,n),t=r.element,n=r.options,r.owner=n.owner,r.dataSource=n.dataSource,r.field=t.attr(o.attr(\"field\")),r.title=t.attr(o.attr(\"title\")),i=t.find(\".k-header-column-menu\"),i[0]||(i=t.addClass(\"k-with-icon\").prepend(''+n.messages.settings+\"\").find(\".k-header-column-menu\")),r.link=i.attr(\"tabindex\",-1).on(\"click\"+y,s(r._click,r)),r.wrapper=e('
          '),r._refreshHandler=s(r.refresh,r),r.dataSource.bind(m,r._refreshHandler)},_init:function(){var e=this;e.pane=e.options.pane,e.pane&&(e._isMobile=!0),e._isMobile?e._createMobileMenu():e._createMenu(),e._angularItems(\"compile\"),e._sort(),e._columns(),e._filter(),e._lockColumns(),e.trigger(g,{field:e.field,container:e.wrapper})},events:[g],options:{name:\"ColumnMenu\",messages:{sortAscending:\"Sort Ascending\",sortDescending:\"Sort Descending\",filter:\"Filter\",columns:\"Columns\",done:\"Done\",settings:\"Column Settings\",lock:\"Lock\",unlock:\"Unlock\"},filter:\"\",columns:!0,sortable:!0,filterable:!0,animations:{left:\"slide\"}},_createMenu:function(){var e=this,t=e.options;e.wrapper.html(o.template(C)({ns:o.ns,messages:t.messages,sortable:t.sortable,filterable:t.filterable,columns:e._ownerColumns(),showColumns:t.columns,lockedColumns:t.lockedColumns})),e.popup=e.wrapper[_]({anchor:e.link,open:s(e._open,e),activate:s(e._activate,e),close:function(){e.options.closeCallback&&e.options.closeCallback(e.element)}}).data(_),e.menu=e.wrapper.children()[w]({orientation:\"vertical\",closeOnClick:!1}).data(w)},_createMobileMenu:function(){var e=this,t=e.options,n=o.template(S)({ns:o.ns,field:e.field,title:e.title||e.field,messages:t.messages,sortable:t.sortable,filterable:t.filterable,columns:e._ownerColumns(),showColumns:t.columns,lockedColumns:t.lockedColumns});e.view=e.pane.append(n),e.wrapper=e.view.element.find(\".k-column-menu\"),e.menu=new T(e.wrapper.children(),{pane:e.pane}),e.view.element.on(\"click\",\".k-done\",function(t){e.close(),t.preventDefault()}),e.options.lockedColumns&&e.view.bind(\"show\",function(){e._updateLockedColumns()})},_angularItems:function(t){var n=this;n.angular(t,function(){var t=n.wrapper.find(\".k-columns-item input[\"+o.attr(\"field\")+\"]\").map(function(){return e(this).closest(\"li\")}),i=d(n._ownerColumns(),function(e){return{column:e._originalObject}});return{elements:t,data:i}})},destroy:function(){var e=this;e._angularItems(\"cleanup\"),k.fn.destroy.call(e),e.filterMenu&&e.filterMenu.destroy(),e._refreshHandler&&e.dataSource.unbind(m,e._refreshHandler),e.options.columns&&e.owner&&(e._updateColumnsMenuHandler&&(e.owner.unbind(\"columnShow\",e._updateColumnsMenuHandler),e.owner.unbind(\"columnHide\",e._updateColumnsMenuHandler)),e._updateColumnsLockedStateHandler&&(e.owner.unbind(\"columnLock\",e._updateColumnsLockedStateHandler),e.owner.unbind(\"columnUnlock\",e._updateColumnsLockedStateHandler))),e.menu&&(e.menu.element.off(y),e.menu.destroy()),e.wrapper.off(y),e.popup&&e.popup.destroy(),e.view&&e.view.purge(),e.link.off(y),e.owner=null,e.wrapper=null,e.element=null},close:function(){this.menu.close(),this.popup&&(this.popup.close(),this.popup.element.off(\"keydown\"+y))},_click:function(e){e.preventDefault(),e.stopPropagation();var t=this.options;t.filter&&this.element.is(!t.filter)||(this.popup||this.pane||this._init(),this._isMobile?this.pane.navigate(this.view,this.options.animations.left):this.popup.toggle())},_open:function(){var t=this;e(\".k-column-menu\").not(t.wrapper).each(function(){e(this).data(_).close()}),t.popup.element.on(\"keydown\"+y,function(e){e.keyCode==o.keys.ESC&&t.close()}),t.options.lockedColumns&&t._updateLockedColumns()},_activate:function(){this.menu.element.focus()},_ownerColumns:function(){var e=r(this.owner.columns),t=c(e,function(e){var t=!0,i=n(e.title||\"\");return(e.menu===!1||!e.field&&!i.length)&&(t=!1),t});return d(t,function(t){return{originalField:t.field,field:t.field||t.title,title:t.title||t.field,hidden:t.hidden,index:u(t,e),locked:!!t.locked,_originalObject:t}})},_sort:function(){var t=this;t.options.sortable&&(t.refresh(),t.menu.bind(v,function(n){var i,r=e(n.item);r.hasClass(\"k-sort-asc\")?i=f:r.hasClass(\"k-sort-desc\")&&(i=p),i&&(r.parent().find(\".k-sort-\"+(i==f?p:f)).removeClass(h),t._sortDataSource(r,i),t.close())}))},_sortDataSource:function(e,n){var i,r,o=this,a=o.options.sortable,s=null===a.compare?t:a.compare,l=o.dataSource,c=l.sort()||[];if(e.hasClass(h)&&a&&a.allowUnsort!==!1?(e.removeClass(h),n=t):e.addClass(h),\"multiple\"===a.mode){for(i=0,r=c.length;r>i;i++)if(c[i].field===o.field){c.splice(i,1);break}c.push({field:o.field,dir:n,compare:s})}else c=[{field:o.field,dir:n,compare:s}];l.sort(c)},_columns:function(){var t=this;t.options.columns&&(t._updateColumnsMenu(),t._updateColumnsMenuHandler=s(t._updateColumnsMenu,t),t.owner.bind([\"columnHide\",\"columnShow\"],t._updateColumnsMenuHandler),t._updateColumnsLockedStateHandler=s(t._updateColumnsLockedState,t),t.owner.bind([\"columnUnlock\",\"columnLock\"],t._updateColumnsLockedStateHandler),t.menu.bind(v,function(n){var i,a,s,l=e(n.item),d=r(t.owner.columns);t._isMobile&&n.preventDefault(),l.parent().closest(\"li.k-columns-item\")[0]&&(i=l.find(\":checkbox\"),i.attr(\"disabled\")||(s=i.attr(o.attr(\"field\")),a=c(d,function(e){return e.field==s||e.title==s})[0],a.hidden===!0?t.owner.showColumn(a):t.owner.hideColumn(a)))}))},_updateColumnsMenu:function(){var e,t,n,i,r,a,s=o.attr(\"field\"),l=o.attr(\"locked\"),h=c(this._ownerColumns(),function(e){return!e.hidden}),f=c(h,function(e){return e.originalField}),p=c(f,function(e){return e.locked===!0}).length,m=c(f,function(e){return e.locked!==!0}).length;for(h=d(h,function(e){return e.field}),a=this.wrapper.find(\".k-columns-item input[\"+s+\"]\").prop(\"disabled\",!1).prop(\"checked\",!1),e=0,t=a.length;t>e;e++)n=a.eq(e),r=\"true\"===n.attr(l),i=!1,u(n.attr(s),h)>-1&&(i=!0,n.prop(\"checked\",i)),i&&(1==p&&r&&n.prop(\"disabled\",!0),1!=m||r||n.prop(\"disabled\",!0))},_updateColumnsLockedState:function(){var e,t,n,r,a=o.attr(\"field\"),s=o.attr(\"locked\"),l=i(this._ownerColumns(),\"field\"),c=this.wrapper.find(\".k-columns-item input[type=checkbox]\");for(e=0,t=c.length;t>e;e++)n=c.eq(e),r=l[n.attr(a)],r&&n.attr(s,r.locked);this._updateColumnsMenu()},_filter:function(){var t=this,n=b,i=t.options;i.filterable!==!1&&(i.filterable.multi&&(n=\"kendoFilterMultiCheck\",i.filterable.dataSource&&(i.filterable.checkSource=i.filterable.dataSource,delete i.filterable.dataSource)),t.filterMenu=t.wrapper.find(\".k-filterable\")[n](l(!0,{},{appendToElement:!0,dataSource:i.dataSource,values:i.values,field:t.field,title:t.title},i.filterable)).data(n),t._isMobile&&t.menu.bind(v,function(n){var i=e(n.item);i.hasClass(\"k-filter-item\")&&t.pane.navigate(t.filterMenu.view,t.options.animations.left)}))},_lockColumns:function(){var t=this;t.menu.bind(v,function(n){var i=e(n.item);i.hasClass(\"k-lock\")?(t.owner.lockColumn(t.field),t.close()):i.hasClass(\"k-unlock\")&&(t.owner.unlockColumn(t.field),t.close())})},_updateLockedColumns:function(){var e,t,n,i,r=this.field,o=this.owner.columns,a=c(o,function(e){return e.field==r||e.title==r})[0];a&&(e=a.locked===!0,t=c(o,function(t){return!t.hidden&&(t.locked&&e||!t.locked&&!e)}).length,n=this.wrapper.find(\".k-lock\").removeClass(\"k-state-disabled\"),i=this.wrapper.find(\".k-unlock\").removeClass(\"k-state-disabled\"),(e||1==t)&&n.addClass(\"k-state-disabled\"),e&&1!=t||i.addClass(\"k-state-disabled\"),this._updateColumnsLockedState())},refresh:function(){var e,t,n,i=this,r=i.options.dataSource.sort()||[],o=i.field;for(i.wrapper.find(\".k-sort-asc, .k-sort-desc\").removeClass(h),t=0,n=r.length;n>t;t++)e=r[t],o==e.field&&i.wrapper.find(\".k-sort-\"+e.dir).addClass(h);i.link[i._filterExist(i.dataSource.filter())?\"addClass\":\"removeClass\"](\"k-state-active\")},_filterExist:function(e){var t,n,i,r=!1;if(e){for(e=e.filters,n=0,i=e.length;i>n;n++)t=e[n],t.field==this.field?r=!0:t.filters&&(r=r||this._filterExist(t));return r}}}),C='
            #if(sortable){#
          • ${messages.sortAscending}
          • ${messages.sortDescending}
          • #if(showColumns || filterable){#
          • #}##}##if(showColumns){#
          • ${messages.columns}
              #for (var idx = 0; idx < columns.length; idx++) {#
            • #=columns[idx].title#
            • #}#
          • #if(filterable || lockedColumns){#
          • #}##}##if(filterable){#
          • ${messages.filter}
          • #if(lockedColumns){#
          • #}##}##if(lockedColumns){#
          • ${messages.lock}
          • ${messages.unlock}
          • #}#
          ',S='
          ${messages.settings}
          • ${title}
              #if(sortable){#
            • ${messages.sortAscending}
            • ${messages.sortDescending}
            • #}##if(lockedColumns){#
            • ${messages.lock}
            • ${messages.unlock}
            • #}##if(filterable){#
            • ${messages.filter}
            • #}#
          • #if(showColumns){#
          • ${messages.columns}
              #for (var idx = 0; idx < columns.length; idx++) {#
            • #}#
          • #}#
          ',T=k.extend({init:function(e,t){k.fn.init.call(this,e,t),this.element.on(\"click\"+y,\"li.k-item:not(.k-separator):not(.k-state-disabled)\",\"_click\")},events:[v],_click:function(t){e(t.target).is(\"[type=checkbox]\")||t.preventDefault(),this.trigger(v,{item:t.currentTarget})},close:function(){this.options.pane.navigate(\"\")},destroy:function(){k.fn.destroy.call(this),this.element.off(y)}});a.plugin(x)}(window.kendo.jQuery),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.columnsorter.min\",[\"kendo.core.min\"],e)}(function(){return function(e,t){var n=window.kendo,i=n.ui,r=i.Widget,o=\"dir\",a=\"asc\",s=\"single\",l=\"field\",c=\"desc\",d=\".kendoColumnSorter\",u=\".k-link\",h=\"aria-sort\",f=e.proxy,p=r.extend({init:function(e,t){var n,i=this;r.fn.init.call(i,e,t),i._refreshHandler=f(i.refresh,i),i.dataSource=i.options.dataSource.bind(\"change\",i._refreshHandler),n=i.element.find(u),n[0]||(n=i.element.wrapInner('').find(u)),i.link=n,i.element.on(\"click\"+d,f(i._click,i))},options:{name:\"ColumnSorter\",mode:s,allowUnsort:!0,compare:null,filter:\"\"},destroy:function(){var e=this;r.fn.destroy.call(e),e.element.off(d),e.dataSource.unbind(\"change\",e._refreshHandler),e._refreshHandler=e.element=e.link=e.dataSource=null},refresh:function(){var t,i,r,s,d=this,u=d.dataSource.sort()||[],f=d.element,p=f.attr(n.attr(l));for(f.removeAttr(n.attr(o)),f.removeAttr(h),t=0,i=u.length;i>t;t++)r=u[t],p==r.field&&f.attr(n.attr(o),r.dir);s=f.attr(n.attr(o)),f.find(\".k-i-arrow-n,.k-i-arrow-s\").remove(),s===a?(e('').appendTo(d.link),f.attr(h,\"ascending\")):s===c&&(e('').appendTo(d.link),f.attr(h,\"descending\"))},_click:function(e){var i,r,d=this,u=d.element,h=u.attr(n.attr(l)),f=u.attr(n.attr(o)),p=d.options,m=null===d.options.compare?t:d.options.compare,g=d.dataSource.sort()||[];if(e.preventDefault(),!p.filter||u.is(p.filter)){if(f=f===a?c:f===c&&p.allowUnsort?t:a,p.mode===s)g=[{field:h,dir:f,compare:m}];else if(\"multiple\"===p.mode){for(i=0,r=g.length;r>i;i++)if(g[i].field===h){g.splice(i,1);break}g.push({field:h,dir:f,compare:m})}this.dataSource.sort(g)}}});i.plugin(p)}(window.kendo.jQuery),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.editable.min\",[\"kendo.datepicker.min\",\"kendo.numerictextbox.min\",\"kendo.validator.min\",\"kendo.binder.min\"],e)}(function(){return function(e,t){function n(t){return t=null!=t?t:\"\",t.type||e.type(t)||\"string\"}function i(t){t.find(\":input:not(:button, [\"+s.attr(\"role\")+\"=upload], [\"+s.attr(\"skip\")+\"], [type=file]), select\").each(function(){var t=s.attr(\"bind\"),n=this.getAttribute(t)||\"\",i=\"checkbox\"===this.type||\"radio\"===this.type?\"checked:\":\"value:\",r=this.name;-1===n.indexOf(i)&&r&&(n+=(n.length?\",\":\"\")+i+r,e(this).attr(t,n))})}function r(e){var t,i,r=(e.model.fields||e.model)[e.field],o=n(r),a=r?r.validation:{},l=s.attr(\"type\"),c=s.attr(\"bind\"),d={name:e.field};for(t in a)i=a[t],p(t,_)>=0?d[l]=t:h(i)||(d[t]=f(i)?i.value||t:i),d[s.attr(t+\"-msg\")]=i.message;return p(o,_)>=0&&(d[l]=o),d[c]=(\"boolean\"===o?\"checked:\":\"value:\")+e.field,d}function o(e){var t,n,i,r,o,a;if(e&&e.length)for(a=[],t=0,n=e.length;n>t;t++)i=e[t],o=i.text||i.value||i,r=null==i.value?i.text||i:i.value,a[t]={text:o,value:r};return a}function a(e,t){var n,i,r=e?e.validation||{}:{};for(n in r)i=r[n],f(i)&&i.value&&(i=i.value),h(i)&&(t[n]=i)}var s=window.kendo,l=s.ui,c=l.Widget,d=e.extend,u=s.support.browser.msie&&9>s.support.browser.version,h=s.isFunction,f=e.isPlainObject,p=e.inArray,m=/(\"|\\%|'|\\[|\\]|\\$|\\.|\\,|\\:|\\;|\\+|\\*|\\&|\\!|\\#|\\(|\\)|<|>|\\=|\\?|\\@|\\^|\\{|\\}|\\~|\\/|\\||`)/g,g='
          #=message#
          ',v=\"change\",_=[\"url\",\"email\",\"number\",\"date\",\"boolean\"],b={number:function(t,n){var i=r(n);e('').attr(i).appendTo(t).kendoNumericTextBox({format:n.format}),e(\"').hide().appendTo(t)},date:function(t,n){var i=r(n),o=n.format;o&&(o=s._extractFormat(o)),i[s.attr(\"format\")]=o,e('').attr(i).appendTo(t).kendoDatePicker({format:n.format}),e(\"').hide().appendTo(t)},string:function(t,n){var i=r(n);e('').attr(i).appendTo(t)},\"boolean\":function(t,n){var i=r(n);e('').attr(i).appendTo(t)},values:function(t,n){var i=r(n),a=s.stringify(o(n.values));e(\"
          \",indent:function(e){return e.replace(/<\\/(p|li|ul|ol|h[1-6]|table|tr|td|th)>/gi,\"\\n\").replace(/<(ul|ol)([^>]*)>
        • \\n/gi,\"
          \\n\").replace(/\\n$/,\"\")}}),n.ui.editor.ViewHtmlCommand=c,r.EditorUtils.registerTool(\"viewHtml\",new s({command:c,template:new l({template:o.buttonTemplate,title:\"View HTML\"})}))}(window.kendo.jQuery)},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"editor/formatting.min\",[\"editor/viewhtml.min\"],e)}(function(){!function(e){var t=window.kendo,n=t.ui.editor,i=n.Tool,r=n.ToolTemplate,o=n.DelayedExecutionTool,a=n.Command,s=n.Dom,l=n.EditorUtils,c=n.RangeUtils,d=l.registerTool,u=o.extend({init:function(e){var n=this;i.fn.init.call(n,t.deepExtend({},n.options,e)),n.type=\"kendoSelectBox\",n.finder={getFormat:function(){return\"\"}}},options:{items:[{text:\"Paragraph\",value:\"p\"},{text:\"Quotation\",value:\"blockquote\"},{text:\"Heading 1\",value:\"h1\"},{text:\"Heading 2\",value:\"h2\"},{text:\"Heading 3\",value:\"h3\"},{text:\"Heading 4\",value:\"h4\"},{text:\"Heading 5\",value:\"h5\"},{text:\"Heading 6\",value:\"h6\"}],width:110},toFormattingItem:function(e){var t,n=e.value;return n?e.tag||e.className?e:(t=n.indexOf(\".\"),0===t?e.className=n.substring(1):-1==t?e.tag=n:(e.tag=n.substring(0,t),e.className=n.substring(t+1)),e):e},command:function(t){var i=t.value;return i=this.toFormattingItem(i),new n.FormatCommand({range:t.range,formatter:function(){var t,r=(i.tag||i.context||\"span\").split(\",\"),o=[{tags:r,attr:{className:i.className||\"\"}}];return t=e.inArray(r[0],s.inlineElements)>=0?new n.GreedyInlineFormatter(o):new n.GreedyBlockFormatter(o)}})},initialize:function(e,n){var r=n.editor,o=this.options,a=o.name,s=this;e.width(o.width),e.kendoSelectBox({dataTextField:\"text\",dataValueField:\"value\",dataSource:o.items||r.options[a],title:r.options.messages[a],autoSize:!0,change:function(){var e=this.dataItem();e&&i.exec(r,a,e.toJSON())},dataBound:function(){var e,t=this.dataSource.data();for(e=0;t.length>e;e++)t[e]=s.toFormattingItem(t[e])},highlightFirst:!1,template:t.template('#:data.text#')}),e.addClass(\"k-decorated\").closest(\".k-widget\").removeClass(\"k-\"+a).find(\"*\").addBack().attr(\"unselectable\",\"on\")},getFormattingValue:function(t,n){var i,r,o,a,s,l,c;for(i=0;t.length>i;i++)if(r=t[i],o=r.tag||r.context||\"\",a=r.className?\".\"+r.className:\"\",s=o+a,l=e(n[0]).closest(s)[0]){if(1==n.length)return r.value;for(c=1;n.length>c&&e(n[c]).closest(s)[0];c++)if(c==n.length-1)return r.value}return\"\"},update:function(t,n){var i,r,a,l,c,d=e(t).data(this.type);if(d&&(i=d.dataSource,r=i.data(),c=s.commonAncestor.apply(null,n),c==s.closestEditable(c)||this._ancestor!=c)){for(this._ancestor=c,a=0;r.length>a;a++)l=r[a].context,r[a].visible=!l||!!e(c).closest(l).length;i.filter([{field:\"visible\",operator:\"eq\",value:!0}]),o.fn.update.call(this,t,n),d.value(this.getFormattingValue(i.view(),n)),d.wrapper.toggleClass(\"k-state-disabled\",!i.view().length)}},destroy:function(){this._ancestor=null}}),h=a.extend({exec:function(){var t,i=new n.ListFormatter(\"ul\"),r=this.lockRange(!0),o=this.options.remove||\"strong,em,span,sup,sub,del,b,i,u,font\".split(\",\");c.wrapSelectedElements(r),t=new n.RangeIterator(r),t.traverse(function a(t){var n,r,l,c;if(t&&!s.isMarker(t)){if(n=s.name(t),\"ul\"==n||\"ol\"==n)for(r=t.previousSibling,l=t.nextSibling,i.unwrap(t);r&&r!=l;r=r.nextSibling)a(r);else if(\"blockquote\"==n)s.changeTag(t,\"p\");else if(1==t.nodeType&&!s.insignificant(t)){for(c=t.childNodes.length-1;c>=0;c--)a(t.childNodes[c]);t.removeAttribute(\"style\"),t.removeAttribute(\"class\")}e.inArray(n,o)>-1&&s.unwrap(t)}}),this.releaseRange(r)}});e.extend(n,{FormattingTool:u,CleanFormatCommand:h}),d(\"formatting\",new u({template:new r({template:l.dropDownListTemplate,title:\"Format\"})})),d(\"cleanFormatting\",new i({command:h,template:new r({template:l.buttonTemplate,title:\"Clean formatting\"})}))}(window.kendo.jQuery)},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"editor/toolbar.min\",[\"editor/formatting.min\"],e)}(function(){!function(e,t){var n,i=window.kendo,r=i.ui,o=r.editor,a=r.Widget,s=e.extend,l=e.proxy,c=i.keys,d=\".kendoEditor\",u=i.ui.editor.EditorUtils,h=i.ui.editor.ToolTemplate,f=i.ui.editor.Tool,p=\"overflowAnchor\",m=\".k-tool-group:visible a.k-tool:not(.k-state-disabled),.k-tool.k-overflow-anchor,.k-tool-group:visible .k-widget.k-colorpicker,.k-tool-group:visible .k-selectbox,.k-tool-group:visible .k-dropdown,.k-tool-group:visible .k-combobox .k-input\",g=f.extend({initialize:function(t,n){t.attr({unselectable:\"on\"});var i=n.editor.toolbar;t.on(\"click\",e.proxy(function(){this.overflowPopup.toggle()},i))},options:{name:p},command:e.noop,update:e.noop,destroy:e.noop});u.registerTool(p,new g({key:\"\",ctrl:!0,template:new h({template:u.overflowAnchorTemplate})})),n=a.extend({init:function(e,t){var n=this;t=s({},t,{name:\"EditorToolbar\"}),a.fn.init.call(n,e,t),t.popup&&n._initPopup(),t.resizable&&t.resizable.toolbar&&(n._resizeHandler=i.onResize(function(){n.resize()}),n.element.addClass(\"k-toolbar-resizable\"))},events:[\"execute\"],groups:{basic:[\"bold\",\"italic\",\"underline\",\"strikethrough\"],scripts:[\"subscript\",\"superscript\"],alignment:[\"justifyLeft\",\"justifyCenter\",\"justifyRight\",\"justifyFull\"],links:[\"insertImage\",\"insertFile\",\"createLink\",\"unlink\"],lists:[\"insertUnorderedList\",\"insertOrderedList\",\"indent\",\"outdent\"],tables:[\"createTable\",\"addColumnLeft\",\"addColumnRight\",\"addRowAbove\",\"addRowBelow\",\"deleteRow\",\"deleteColumn\"],advanced:[\"viewHtml\",\"cleanFormatting\",\"print\",\"pdf\"],fonts:[\"fontName\",\"fontSize\"],colors:[\"foreColor\",\"backColor\"]},overflowFlaseTools:[\"formatting\",\"fontName\",\"fontSize\",\"foreColor\",\"backColor\",\"insertHtml\"],_initPopup:function(){this.window=e(this.element).wrap(\"
          \").parent().prepend(\"\").kendoWindow({title:!1,resizable:!1,draggable:{dragHandle:\".k-editortoolbar-dragHandle\"},animation:{open:{effects:\"fade:in\"},close:{effects:\"fade:out\"}},minHeight:42,visible:!1,autoFocus:!1,actions:[],dragend:function(){this._moved=!0}}).on(\"mousedown\",function(t){e(t.target).is(\".k-icon\")||t.preventDefault()}).data(\"kendoWindow\")},_toggleOverflowStyles:function(e,t){e.find(\"li\").toggleClass(\"k-item k-state-default\",t).find(\".k-tool:not(.k-state-disabled),.k-overflow-button\").toggleClass(\"k-overflow-button k-button\",t)},_initOverflowPopup:function(t){var n=this,i=\"
            \";n.overflowPopup=e(i).appendTo(\"body\").kendoPopup({anchor:t,origin:\"bottom right\",position:\"top right\",copyAnchorStyles:!1,open:function(e){this.element.is(\":empty\")&&e.preventDefault(),n._toggleOverflowStyles(this.element,!0)},activate:l(n.focusOverflowPopup,n)}).data(\"kendoPopup\")},items:function(){var e,t,n=this.options.resizable&&this.options.resizable.toolbar;return t=this.element.children().find(\"> *, select\"),n&&(e=this.overflowPopup,t=t.add(e.element.children().find(\"> *\"))),t},focused:function(){return this.element.find(\".k-state-focused\").length>0},toolById:function(e){var t,n=this.tools;for(t in n)if(t.toLowerCase()==e)return n[t]},toolGroupFor:function(t){var n,i=this.groups;if(this.isCustomTool(t))return\"custom\";for(n in i)if(e.inArray(t,i[n])>=0)return n},bindTo:function(t){var n=this,i=n.window;n._editor&&n._editor.unbind(\"select\",l(n.resize,n)),n._editor=t,n.options.resizable&&n.options.resizable.toolbar&&t.options.tools.push(p),n.tools=n.expandTools(t.options.tools),n.render(),n.element.find(\".k-combobox .k-input\").keydown(function(t){var n=e(this).closest(\".k-combobox\").data(\"kendoComboBox\"),i=t.keyCode;i==c.RIGHT||i==c.LEFT?n.close():i==c.DOWN&&(n.dropDown.isOpened()||(t.stopImmediatePropagation(),n.open()))}),n._attachEvents(),n.items().each(function(){var i,r=n._toolName(this),o=\"more\"!==r?n.tools[r]:n.tools.overflowAnchor,a=o&&o.options,s=t.options.messages,l=a&&a.tooltip||s[r],c=e(this);o&&o.initialize&&((\"fontSize\"==r||\"fontName\"==r)&&(i=s[r+\"Inherit\"],c.find(\"input\").val(i).end().find(\"span.k-input\").text(i).end()),o.initialize(c,{title:n._appendShortcutSequence(l,o),editor:n._editor}),c.closest(\".k-widget\",n.element).addClass(\"k-editor-widget\"),c.closest(\".k-colorpicker\",n.element).next(\".k-colorpicker\").addClass(\"k-editor-widget\"))}),t.bind(\"select\",l(n.resize,n)),n.update(),i&&i.wrapper.css({top:\"\",left:\"\",width:\"\"})},show:function(){var e,t,n,i=this,r=i.window,o=i.options.editor;r&&(e=r.wrapper,t=o.element,e.is(\":visible\")&&i.window.options.visible||(e[0].style.width||e.width(t.outerWidth()-parseInt(e.css(\"border-left-width\"),10)-parseInt(e.css(\"border-right-width\"),10)),r._moved||(n=t.offset(),e.css({top:Math.max(0,parseInt(n.top,10)-e.outerHeight()-parseInt(i.window.element.css(\"padding-bottom\"),10)),left:Math.max(0,parseInt(n.left,10))})),r.open()))},hide:function(){this.window&&this.window.close()},focus:function(){var e=\"tabIndex\",t=this.element,n=this._editor.element.attr(e);t.attr(e,n||0).focus().find(m).first().focus(),n||0===n||t.removeAttr(e)},focusOverflowPopup:function(){var e=\"tabIndex\",t=this.overflowPopup.element,n=this._editor.element.attr(e);t.closest(\".k-animation-container\").addClass(\"k-overflow-wrapper\"),t.attr(e,n||0).find(m).first().focus(),n||0===n||t.removeAttr(e)},_appendShortcutSequence:function(e,t){if(!t.key)return e;var n=e+\" (\";return t.ctrl&&(n+=\"Ctrl + \"),t.shift&&(n+=\"Shift + \"),t.alt&&(n+=\"Alt + \"),n+=t.key+\")\"},_nativeTools:[\"insertLineBreak\",\"insertParagraph\",\"redo\",\"undo\"],tools:{},isCustomTool:function(e){return!(e in i.ui.Editor.defaultTools)},expandTools:function(t){var n,r,a,l,c=this._nativeTools,d=i.deepExtend({},i.ui.Editor.defaultTools),u={};for(r=0;t.length>r;r++)n=t[r],l=n.name,e.isPlainObject(n)?l&&d[l]?(u[l]=s({},d[l]),s(u[l].options,n)):(a=s({cssClass:\"k-i-custom\",type:\"button\",title:\"\"},n),a.name||(a.name=\"custom\"),a.cssClass=\"k-\"+(\"custom\"==a.name?\"i-custom\":a.name),a.template||\"button\"!=a.type||(a.template=o.EditorUtils.buttonTemplate,a.title=a.title||a.tooltip),u[l]={options:a}):d[n]&&(u[n]=d[n]);for(r=0;c.length>r;r++)u[c[r]]||(u[c[r]]=d[c[r]]);return u},render:function(){function t(t){var n;return t.getHtml?n=t.getHtml():(e.isFunction(t)||(t=i.template(t)),n=t(o)),e.trim(n)}function n(){h.children().length&&(k&&(h.data(\"position\",y),y++),h.appendTo(_))}function r(t){t!==p?(h=e(\"
          • \")}var o,a,s,c,d,u,h,f,m=this,g=m.tools,v=m._editor.element,_=m.element.empty(),b=m._editor.options.tools,w=i.support.browser,y=0,k=m.options.resizable&&m.options.resizable.toolbar,x=this.overflowFlaseTools;for(_.empty(),b.length&&(c=b[0].name||b[0]),r(c,x),f=0;b.length>f;f++)c=b[f].name||b[f],o=g[c]&&g[c].options,!o&&e.isPlainObject(c)&&(o=c),a=o&&o.template,\"break\"==c&&(n(),e(\"
          • \").appendTo(m.element),r(c,x)),a&&(u=m.toolGroupFor(c),(d!=u||c==p)&&(n(),r(c,x),d=u),a=t(a),s=e(a).appendTo(h),\"custom\"==u&&(n(),r(c,x)),o.exec&&s.hasClass(\"k-tool\")&&s.click(l(o.exec,v[0])));n(),e(m.element).children(\":has(> .k-tool)\").addClass(\"k-button-group\"),m.options.popup&&w.msie&&9>w.version&&m.window.wrapper.find(\"*\").attr(\"unselectable\",\"on\"),m.updateGroups(),k&&m._initOverflowPopup(m.element.find(\".k-overflow-anchor\")),m.angular(\"compile\",function(){return{elements:m.element}})},updateGroups:function(){e(this.element).children().each(function(){e(this).children().filter(function(){return!e(this).hasClass(\"k-state-disabled\")}).removeClass(\"k-group-end\").first().addClass(\"k-group-start\").end().last().addClass(\"k-group-end\").end()})},decorateFrom:function(t){this.items().filter(\".k-decorated\").each(function(){var n=e(this).data(\"kendoSelectBox\");n&&n.decorate(t)})},destroy:function(){a.fn.destroy.call(this);var e,t=this.tools;for(e in t)t[e].destroy&&t[e].destroy();this.window&&this.window.destroy(),this._resizeHandler&&i.unbindResize(this._resizeHandler),this.overflowPopup&&this.overflowPopup.destroy()},_attachEvents:function(){var t=this,n=\"[role=button].k-tool\",i=n+\":not(.k-state-disabled)\",r=n+\".k-state-disabled\",o=t.overflowPopup?t.overflowPopup.element:e([]);t.element.add(o).off(d).on(\"mouseenter\"+d,i,function(){e(this).addClass(\"k-state-hover\")}).on(\"mouseleave\"+d,i,function(){e(this).removeClass(\"k-state-hover\")}).on(\"mousedown\"+d,n,function(e){e.preventDefault()}).on(\"keydown\"+d,m,function(n){function i(e,t,n){var i=t.find(m),r=i.index(a)+e;return n&&(r=Math.max(0,Math.min(i.length-1,r))),i[r]}var r,o,a=this,s=t.options.resizable&&t.options.resizable.toolbar,l=n.keyCode;l==c.RIGHT||l==c.LEFT?e(a).hasClass(\".k-dropdown\")||(r=i(l==c.RIGHT?1:-1,t.element,!0)):!s||l!=c.UP&&l!=c.DOWN?l==c.ESC?(t.overflowPopup.visible()&&t.overflowPopup.close(),r=t._editor):l!=c.TAB||n.ctrlKey||n.altKey||(o=s&&e(a.parentElement).hasClass(\"k-overflow-tool-group\")?t.overflowPopup.element:t.element,n.shiftKey?r=i(-1,o):(r=i(1,o),r||(r=t._editor))):r=i(l==c.DOWN?1:-1,t.overflowPopup.element,!0),r&&(n.preventDefault(),r.focus())}).on(\"click\"+d,i,function(n){var i=e(this);n.preventDefault(),n.stopPropagation(),i.removeClass(\"k-state-hover\"),i.is(\"[data-popup]\")||t._editor.exec(t._toolName(this))}).on(\"click\"+d,r,function(e){\r\ne.preventDefault()})},_toolName:function(t){var n,i;if(t)return n=t.className,/k-tool\\b/i.test(n)&&(n=t.firstChild.className),i=e.grep(n.split(\" \"),function(e){return!/^k-(widget|tool|tool-icon|icon|state-hover|header|combobox|dropdown|selectbox|colorpicker)$/i.test(e)}),i[0]?i[0].substring(i[0].lastIndexOf(\"-\")+1):\"custom\"},refreshTools:function(){var t=this,n=t._editor,r=n.getRange(),o=i.ui.editor.RangeUtils.textNodes(r);o.length||(o=[r.startContainer]),t.items().each(function(){var n=t.tools[t._toolName(this)];n&&n.update&&n.update(e(this),o)}),this.update()},update:function(){this.updateGroups()},_resize:function(e){var t=e.width,n=this.options.resizable&&this.options.resizable.toolbar,i=this.overflowPopup;this.refreshTools(),n&&(i.visible()&&i.close(!0),this._refreshWidths(),this._shrink(t),this._stretch(t),this._toggleOverflowStyles(this.element,!1),this._toggleOverflowStyles(this.overflowPopup.element,!0),this.element.children(\"li.k-overflow-tools\").css(\"visibility\",i.element.is(\":empty\")?\"hidden\":\"visible\"))},_refreshWidths:function(){this.element.children(\"li\").each(function(t,n){var i=e(n);i.data(\"outerWidth\",i.outerWidth(!0))})},_shrink:function(e){var t,n,i;if(e=0&&(t=n.eq(i),!(e>this._groupsWidth()));i--)this._hideGroup(t)},_stretch:function(e){var t,n,i;if(e>this._groupsWidth())for(n=this._hiddenGroups(),i=0;n.length>i&&(t=n.eq(i),!(ee(n).data(\"position\")?1:-1}),n},_visibleGroups:function(){return this.element.children(\"li.k-tool-group, li.k-overflow-tools\").filter(\":visible\")},_groupsWidth:function(){var t=0;return this._visibleGroups().each(function(){t+=e(this).data(\"outerWidth\")}),Math.ceil(t)},_hideGroup:function(e){if(e.data(\"overflow\")){var t=this.overflowPopup;e.detach().prependTo(t.element).addClass(\"k-overflow-tool-group\")}else e.hide()},_showGroup:function(t,n){var i,r;return t.length&&n>this._groupsWidth()+t.data(\"outerWidth\")?(t.hasClass(\"k-overflow-tool-group\")?(i=t.data(\"position\"),0===i?t.detach().prependTo(this.element):(r=this.element.children().filter(function(t,n){return e(n).data(\"position\")===i-1}),t.detach().insertAfter(r)),t.removeClass(\"k-overflow-tool-group\")):t.show(),!0):!1}}),e.extend(o,{Toolbar:n})}(window.jQuery)},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"editor/tables.min\",[\"editor/toolbar.min\"],e)}(function(){!function(e,t){var n=window.kendo,i=e.extend,r=e.proxy,o=n.ui.editor,a=o.Dom,s=o.EditorUtils,l=o.RangeUtils,c=o.Command,d=\".kendoEditor\",u=\"k-state-active\",h=\"k-state-selected\",f=o.Tool,p=o.ToolTemplate,m=o.InsertHtmlCommand,g=o.BlockFormatFinder,v=o.EditorUtils.registerTool,_=\"\"+o.emptyElementContent+\"\",b=new g([{tags:[\"table\"]}]),w=m.extend({_tableHtml:function(e,t){return e=e||1,t=t||1,\"\"+Array(e+1).join(\"\"+Array(t+1).join(_)+\"\")+\"
            \"},postProcess:function(t,n){var i=e(\"table[data-last]\",t.document).removeAttr(\"data-last\");n.setStart(i.find(\"td\")[0],0),n.collapse(!0),t.selectRange(n)},exec:function(){var e=this.options;e.html=this._tableHtml(e.rows,e.columns),e.postProcess=this.postProcess,m.fn.exec.call(this)}}),y=f.extend({initialize:function(t,n){f.fn.initialize.call(this,t,n);var i=e(this.options.popupTemplate).appendTo(\"body\").kendoPopup({anchor:t,copyAnchorStyles:!1,open:r(this._open,this),activate:r(this._activate,this),close:r(this._close,this)}).data(\"kendoPopup\");t.click(r(this._toggle,this)).keydown(r(this._keydown,this)),this._editor=n.editor,this._popup=i},popup:function(){return this._popup},_activate:e.noop,_open:function(){this._popup.options.anchor.addClass(u)},_close:function(){this._popup.options.anchor.removeClass(u)},_keydown:function(e){var t=n.keys,i=e.keyCode;i==t.DOWN&&e.altKey?this._popup.open():i==t.ESC&&this._popup.close()},_toggle:function(t){var n=e(t.target).closest(\".k-tool\");n.hasClass(\"k-state-disabled\")||this.popup().toggle()},update:function(e){var t=this.popup();t.wrapper&&\"block\"==t.wrapper.css(\"display\")&&t.close(),e.removeClass(\"k-state-hover\")},destroy:function(){this._popup.destroy()}}),k=y.extend({init:function(t){this.cols=8,this.rows=6,y.fn.init.call(this,e.extend(t,{command:w,popupTemplate:\"
            \"+Array(this.cols*this.rows+1).join(\"\")+\"
            \"}))},_activate:function(){function t(t){var n=e(window);return{row:Math.floor((t.clientY+n.scrollTop()-u.top)/r)+1,col:Math.floor((t.clientX+n.scrollLeft()-u.left)/i)+1}}var i,r,o=this,a=o._popup.element,s=a.find(\".k-ct-cell\"),l=s.eq(0),c=s.eq(s.length-1),u=n.getOffset(l),h=n.getOffset(c),f=o.cols,p=o.rows;a.find(\"*\").addBack().attr(\"unselectable\",\"on\"),h.left+=c[0].offsetWidth,h.top+=c[0].offsetHeight,i=(h.left-u.left)/f,r=(h.top-u.top)/p,a.on(\"mousemove\"+d,function(e){o._setTableSize(t(e))}).on(\"mouseleave\"+d,function(){o._setTableSize()}).on(\"mouseup\"+d,function(e){o._exec(t(e))})},_valid:function(e){return e&&e.row>0&&e.col>0&&this.rows>=e.row&&this.cols>=e.col},_exec:function(e){this._valid(e)&&(this._editor.exec(\"createTable\",{rows:e.row,columns:e.col}),this._popup.close())},_setTableSize:function(t){var i=this._popup.element,r=i.find(\".k-status\"),o=i.find(\".k-ct-cell\"),a=this.cols,s=this._editor.options.messages;this._valid(t)?(r.text(n.format(s.createTableHint,t.row,t.col)),o.each(function(n){e(this).toggleClass(h,t.col>n%a&&t.row>n/a)})):(r.text(s.dialogCancel),o.removeClass(h))},_keydown:function(e){var t,i,r,o,a,s,l,c;y.fn._keydown.call(this,e),this._popup.visible()&&(t=n.keys,i=e.keyCode,r=this._popup.element.find(\".k-ct-cell\"),o=Math.max(r.filter(\".k-state-selected\").last().index(),0),a=Math.floor(o/this.cols),s=o%this.cols,l=!1,i!=t.DOWN||e.altKey?i==t.UP?(l=!0,a--):i==t.RIGHT?(l=!0,s++):i==t.LEFT&&(l=!0,s--):(l=!0,a++),c={row:Math.max(1,Math.min(this.rows,a+1)),col:Math.max(1,Math.min(this.cols,s+1))},i==t.ENTER?this._exec(c):this._setTableSize(c),l&&(e.preventDefault(),e.stopImmediatePropagation()))},_open:function(){var e=this._editor.options.messages;y.fn._open.call(this),this.popup().element.find(\".k-status\").text(e.dialogCancel).end().find(\".k-ct-cell\").removeClass(h)},_close:function(){y.fn._close.call(this),this.popup().element.off(d)},update:function(e,t){var n;y.fn.update.call(this,e),n=b.isFormatted(t),e.toggleClass(\"k-state-disabled\",n)}}),x=c.extend({exec:function(){for(var e,t,n,i,r=this.lockRange(!0),s=r.endContainer;\"td\"!=a.name(s);)s=s.parentNode;for(t=s.parentNode,e=t.children.length,n=t.cloneNode(!0),i=0;t.cells.length>i;i++)n.cells[i].innerHTML=o.emptyElementContent;\"before\"==this.options.position?a.insertBefore(n,t):a.insertAfter(n,t),this.releaseRange(r)}}),C=c.extend({exec:function(){var e,t,n,i,r=this.lockRange(!0),s=a.closest(r.endContainer,\"td\"),l=a.closest(s,\"table\"),c=l.rows,d=this.options.position;for(e=a.findNodeIndex(s,!0),t=0;c.length>t;t++)n=c[t].cells[e],i=n.cloneNode(),i.innerHTML=o.emptyElementContent,\"before\"==d?a.insertBefore(i,n):a.insertAfter(i,n);this.releaseRange(r)}}),S=c.extend({exec:function(){var t,n,i,r=this.lockRange(),o=l.mapAll(r,function(t){return e(t).closest(\"tr\")[0]}),s=a.closest(o[0],\"table\");if(o.length>=s.rows.length)t=a.next(s),(!t||a.insignificant(t))&&(t=a.prev(s)),a.remove(s);else for(n=0;o.length>n;n++)i=o[n],a.removeTextSiblings(i),t=a.next(i)||a.prev(i),t=t.cells[0],a.remove(i);t&&(r.setStart(t,0),r.collapse(!0),this.editor.selectRange(r))}}),T=c.extend({exec:function(){var e,t,n=this.lockRange(),i=a.closest(n.endContainer,\"td\"),r=a.closest(i,\"table\"),o=r.rows,s=a.findNodeIndex(i,!0),l=o[0].cells.length;if(1==l)e=a.next(r),(!e||a.insignificant(e))&&(e=a.prev(r)),a.remove(r);else for(a.removeTextSiblings(i),e=a.next(i)||a.prev(i),t=0;o.length>t;t++)a.remove(o[t].cells[s]);e&&(n.setStart(e,0),n.collapse(!0),this.editor.selectRange(n))}}),D=f.extend({command:function(e){return e=i(e,this.options),\"delete\"==e.action?\"row\"==e.type?new S(e):new T(e):\"row\"==e.type?new x(e):new C(e)},initialize:function(e,t){f.fn.initialize.call(this,e,t),e.addClass(\"k-state-disabled\")},update:function(e,t){var n=!b.isFormatted(t);e.toggleClass(\"k-state-disabled\",n)}});i(n.ui.editor,{PopupTool:y,TableCommand:w,InsertTableTool:k,TableModificationTool:D,InsertRowCommand:x,InsertColumnCommand:C,DeleteRowCommand:S,DeleteColumnCommand:T}),v(\"createTable\",new k({template:new p({template:s.buttonTemplate,popup:!0,title:\"Create table\"})})),v(\"addColumnLeft\",new D({type:\"column\",position:\"before\",template:new p({template:s.buttonTemplate,title:\"Add column on the left\"})})),v(\"addColumnRight\",new D({type:\"column\",template:new p({template:s.buttonTemplate,title:\"Add column on the right\"})})),v(\"addRowAbove\",new D({type:\"row\",position:\"before\",template:new p({template:s.buttonTemplate,title:\"Add row above\"})})),v(\"addRowBelow\",new D({type:\"row\",template:new p({template:s.buttonTemplate,title:\"Add row below\"})})),v(\"deleteRow\",new D({type:\"row\",action:\"delete\",template:new p({template:s.buttonTemplate,title:\"Delete row\"})})),v(\"deleteColumn\",new D({type:\"column\",action:\"delete\",template:new p({template:s.buttonTemplate,title:\"Delete column\"})}))}(window.kendo.jQuery)},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.editor.min\",[\"kendo.combobox.min\",\"kendo.dropdownlist.min\",\"kendo.resizable.min\",\"kendo.window.min\",\"kendo.colorpicker.min\",\"kendo.imagebrowser.min\",\"util/undoredostack.min\",\"editor/main.min\",\"editor/dom.min\",\"editor/serializer.min\",\"editor/range.min\",\"editor/system.min\",\"editor/inlineformat.min\",\"editor/formatblock.min\",\"editor/linebreak.min\",\"editor/lists.min\",\"editor/link.min\",\"editor/file.min\",\"editor/image.min\",\"editor/components.min\",\"editor/indent.min\",\"editor/viewhtml.min\",\"editor/formatting.min\",\"editor/toolbar.min\",\"editor/tables.min\"],e)}(function(){},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.maskedtextbox.min\",[\"kendo.core.min\"],e)}(function(){return function(e,t){var n=window.kendo,i=n.caret,r=n.keys,o=n.ui,a=o.Widget,s=\".kendoMaskedTextBox\",l=e.proxy,c=(n.support.propertyChangeEvent?\"propertychange\":\"input\")+s,d=\"k-state-disabled\",u=\"disabled\",h=\"readonly\",f=\"change\",p=a.extend({init:function(t,r){var o,l,c=this;a.fn.init.call(c,t,r),c._rules=e.extend({},c.rules,c.options.rules),t=c.element,o=t[0],c.wrapper=t,c._tokenize(),c._form(),c.element.addClass(\"k-textbox\").attr(\"autocomplete\",\"off\").on(\"focus\"+s,function(){var e=o.value;e?c._togglePrompt(!0):o.value=c._old=c._emptyMask,c._oldValue=e,c._timeoutId=setTimeout(function(){i(t,0,e?c._maskLength:0)})}).on(\"focusout\"+s,function(){var e=t.val();clearTimeout(c._timeoutId),o.value=c._old=\"\",e!==c._emptyMask&&(o.value=c._old=e),c._change(),c._togglePrompt()}),l=t.is(\"[disabled]\")||e(c.element).parents(\"fieldset\").is(\":disabled\"),l?c.enable(!1):c.readonly(t.is(\"[readonly]\")),c.value(c.options.value||t.val()),n.notify(c)},options:{name:\"MaskedTextBox\",clearPromptChar:!1,unmaskOnPost:!1,promptChar:\"_\",culture:\"\",rules:{},value:\"\",mask:\"\"},events:[f],rules:{0:/\\d/,9:/\\d|\\s/,\"#\":/\\d|\\s|\\+|\\-/,L:/[a-zA-Z]/,\"?\":/[a-zA-Z]|\\s/,\"&\":/\\S/,C:/./,A:/[a-zA-Z0-9]/,a:/[a-zA-Z0-9]|\\s/},setOptions:function(t){var n=this;a.fn.setOptions.call(n,t),n._rules=e.extend({},n.rules,n.options.rules),n._tokenize(),this._unbindInput(),this._bindInput(),n.value(n.element.val())},destroy:function(){var e=this;e.element.off(s),e._formElement&&(e._formElement.off(\"reset\",e._resetHandler),e._formElement.off(\"submit\",e._submitHandler)),a.fn.destroy.call(e)},raw:function(){var e=this._unmask(this.element.val(),0);return e.replace(RegExp(this.options.promptChar,\"g\"),\"\")},value:function(e){var i=this.element,r=this._emptyMask;return e===t?this.element.val():(null===e&&(e=\"\"),r?(e=this._unmask(e+\"\"),i.val(e?r:\"\"),this._mask(0,this._maskLength,e),e=i.val(),this._oldValue=e,n._activeElement()!==i&&(e===r?i.val(\"\"):this._togglePrompt()),t):(i.val(e),t))},_togglePrompt:function(e){var t=this.element[0],n=t.value;this.options.clearPromptChar&&(n=e?this._oldValue:n.replace(RegExp(this.options.promptChar,\"g\"),\" \"),t.value=this._old=n)},readonly:function(e){this._editable({readonly:e===t?!0:e,disable:!1})},enable:function(e){this._editable({readonly:!1,disable:!(e=e===t?!0:e)})},_bindInput:function(){var e=this;e._maskLength&&e.element.on(\"keydown\"+s,l(e._keydown,e)).on(\"keypress\"+s,l(e._keypress,e)).on(\"paste\"+s,l(e._paste,e)).on(c,l(e._propertyChange,e))},_unbindInput:function(){this.element.off(\"keydown\"+s).off(\"keypress\"+s).off(\"paste\"+s).off(c)},_editable:function(e){var t=this,n=t.element,i=e.disable,r=e.readonly;t._unbindInput(),r||i?n.attr(u,i).attr(h,r).toggleClass(d,i):(n.removeAttr(u).removeAttr(h).removeClass(d),t._bindInput())},_change:function(){var e=this,t=e.value();t!==e._oldValue&&(e._oldValue=t,e.trigger(f),e.element.trigger(f))},_propertyChange:function(){var e,t,r=this,o=r.element[0],a=o.value;n._activeElement()===o&&(a===r._old||r._pasting||(t=i(o)[0],e=r._unmask(a.substring(t),t),o.value=r._old=a.substring(0,t)+r._emptyMask.substring(t),r._mask(t,t,e),i(o,t)))},_paste:function(e){var t=this,n=e.target,r=i(n),o=r[0],a=r[1],s=t._unmask(n.value.substring(a),a);t._pasting=!0,setTimeout(function(){var e=n.value,r=e.substring(o,i(n)[0]);n.value=t._old=e.substring(0,o)+t._emptyMask.substring(o),t._mask(o,o,r),o=i(n)[0],t._mask(o,o,s),i(n,o),t._pasting=!1})},_form:function(){var t=this,n=t.element,i=n.attr(\"form\"),r=i?e(\"#\"+i):n.closest(\"form\");r[0]&&(t._resetHandler=function(){setTimeout(function(){t.value(n[0].value)})},t._submitHandler=function(){t.element[0].value=t._old=t.raw()},t.options.unmaskOnPost&&r.on(\"submit\",t._submitHandler),t._formElement=r.on(\"reset\",t._resetHandler))},_keydown:function(e){var n,o=e.keyCode,a=this.element[0],s=i(a),l=s[0],c=s[1],d=o===r.BACKSPACE;d||o===r.DELETE?(l===c&&(d?l-=1:c+=1,n=this._find(l,d)),n!==t&&n!==l?(d&&(n+=1),i(a,n)):l>-1&&this._mask(l,c,\"\",d),e.preventDefault()):o===r.ENTER&&this._change()},_keypress:function(e){var t,n;0===e.which||e.metaKey||e.ctrlKey||e.keyCode===r.ENTER||(t=String.fromCharCode(e.which),n=i(this.element),this._mask(n[0],n[1],t),(e.keyCode===r.BACKSPACE||t)&&e.preventDefault())},_find:function(e,t){var n=this.element.val()||this._emptyMask,i=1;for(t===!0&&(i=-1);e>-1||this._maskLength>=e;){if(n.charAt(e)!==this.tokens[e])return e;e+=i}return-1},_mask:function(e,r,o,a){var s,l,c,d,u=this.element[0],h=u.value||this._emptyMask,f=this.options.promptChar,p=0;for(e=this._find(e,a),e>r&&(r=e),l=this._unmask(h.substring(r),r),o=this._unmask(o,e),s=o.length,o&&(l=l.replace(RegExp(\"^_{0,\"+s+\"}\"),\"\")),o+=l,h=h.split(\"\"),c=o.charAt(p);this._maskLength>e;)h[e]=c||f,c=o.charAt(++p),d===t&&p>s&&(d=e),e=this._find(e+1);u.value=this._old=h.join(\"\"),n._activeElement()===u&&(d===t&&(d=this._maskLength),i(u,d))},_unmask:function(t,n){var i,r,o,a,s,l,c,d;if(!t)return\"\";for(t=(t+\"\").split(\"\"),o=0,a=n||0,s=this.options.promptChar,l=t.length,c=this.tokens.length,d=\"\";c>a&&(i=t[o],r=this.tokens[a],i===r||i===s?(d+=i===s?s:\"\",o+=1,a+=1):\"string\"!=typeof r?((r.test&&r.test(i)||e.isFunction(r)&&r(i))&&(d+=i,a+=1),o+=1):a+=1,!(o>=l)););return d},_tokenize:function(){for(var e,t,i,r,o=[],a=0,s=this.options.mask||\"\",l=s.split(\"\"),c=l.length,d=0,u=\"\",h=this.options.promptChar,f=n.getCulture(this.options.culture).numberFormat,p=this._rules;c>d;d++)if(e=l[d],t=p[e])o[a]=t,u+=h,a+=1;else for(\".\"===e||\",\"===e?e=f[e]:\"$\"===e?e=f.currency.symbol:\"\\\\\"===e&&(d+=1,e=l[d]),e=e.split(\"\"),i=0,r=e.length;r>i;i++)o[a]=e[i],u+=e[i],a+=1;this.tokens=o,this._emptyMask=u,this._maskLength=u.length}});o.plugin(p)}(window.kendo.jQuery),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.pivotgrid.min\",[\"kendo.dom.min\",\"kendo.data.min\"],e)}(function(){return function(e,t){function n(e){var n=\"string\"==typeof e?[{name:e}]:e,i=\"[object Array]\"===_e.call(n)?n:n!==t?[n]:[];return we(i,function(e){return\"string\"==typeof e?{name:e}:{name:e.name,type:e.type}})}function i(e){var n=\"string\"==typeof e?[{name:[e],expand:!1}]:e,i=\"[object Array]\"===_e.call(n)?n:n!==t?[n]:[];return we(i,function(e){return\"string\"==typeof e?{name:[e],expand:!1}:{name:\"[object Array]\"===_e.call(e.name)?e.name.slice():[e.name],expand:e.expand}})}function r(e){return-1!==e.indexOf(\" \")&&(e='[\"'+e+'\"]'),e}function o(e,t,n,i){var r,a,s,l;if(n||(n=t),i||(i=0),l=n.members[i],l&&!l.measure){if(s=l.children,a=s.length,n===t?e[fe.stringify([l.name])]=!!a:a&&(e[fe.stringify(se(n,i))]=!0),a)for(r=0;a>r;r++)o(e,t,s[r],i);o(e,t,n,i+1)}}function a(t){var n,i,r={};t.length&&o(r,t[0]),n=[];for(i in r)n.push({name:e.parseJSON(i),expand:r[i]});return n}function s(e,t){var n,i,r,o,a=t.tuples||[],s=a[0];if(s&&s.members.length>e.length)for(n=s.members,i=0;n.length>i;i++)if(!n[i].measure){for(r=!1,o=0;e.length>o;o++)if(0===H(e[o]).indexOf(n[i].hierarchy)){r=!0;break}r||e.push({name:[n[i].name],expand:!1})}}function l(e){var t,n=[],i=e.members;for(t=0;i.length>t;t++)i[t].measure||n.push({name:[i[t].name],expand:i[t].children.length>0});return n}function c(e,t,n){var r,o;return e=e||{},s(t,e),n.length>1&&t.push({name:Se,measure:!0,children:i(n)}),r={members:t},e.tuples&&(o=x(e.tuples,r),o.tuple&&(t=l(o.tuple))),t}function d(e){var t=fe.getter(e.field,!0);return function(n,i){return e.aggregate(t(n.dataItem),i,n)}}function u(e){return\"number\"==typeof e&&!isNaN(e)}function h(e){return e&&e.getTime}function f(e){return e[e.length]={value:\"\",fmtValue:\"\",ordinal:e.length},e}function p(e,n,i){return e.tuples.length<_(n.tuples,i)?n:t}function m(e,t,n,i,r){var o,a,s,l=e.length,c=_(t,i),d=i.length||1;for(a=0;n>a;a++)for(o=0;l>o;o++)s=v(e[o],t)*d,s+=o%d,r[a*l+o].ordinal=a*c+s}function g(e,t,n,i,r){var o,a,s,l=e.length,c=i.length||1;for(a=0;l>a;a++)for(s=v(e[a],t),s*=c,s+=a%c,o=0;n>o;o++)r[a*n+o].ordinal=s*n+o}function v(e,t){return x(t,e).index}function _(e,t){var n,i,r;if(!e.length)return 0;for(n=e.slice(),i=n.shift(),r=1;i;)i.members?[].push.apply(n,i.members):i.children&&(i.measure||(r+=i.children.length),[].push.apply(n,i.children)),i=n.shift();return t.length&&(r*=t.length),r}function b(e){return e||(e={tuples:[]}),e.tuples||(e.tuples=[]),e}function w(e,t,n){var i,r,o,a;if(!e)return 0;for(i=Math.max(n.length,1),r=e.members.slice(0,t),o=i,a=r.shift(),i>1&&(i+=1);a;)a.name===Se?o+=i:a.children?[].push.apply(r,a.children):(o++,[].push.apply(r,a.members)),a=r.shift();return o}function y(e,t,n){var i,r,o,a,s,l;if(!t[0])return{parsedRoot:null,tuples:e,memberIndex:0,index:0};if(i=x(e,t[0]),!i.tuple)return{parsedRoot:null,tuples:t,memberIndex:0,index:0};if(r=i.tuple.members,o=t[0].members,a=-1,r.length!==o.length)return{parsedRoot:null,tuples:t,memberIndex:0,index:0};for(s=0,l=r.length;l>s;s++)!r[s].measure&&o[s].children[0]&&(-1==a&&o[s].children.length&&(a=s),r[s].children=o[s].children);return n=Math.max(n.length,1),{parsedRoot:i.tuple,index:i.index*n,memberIndex:a,tuples:e}}function k(e,t){var n,i,r=!0;for(e=e.members,t=t.members,n=0,i=e.length;i>n;n++)e[n].measure||t[n].measure||(r=r&&H(e[n])===H(t[n]));return r}function x(e,t){var n,i,r,o,a,s,l,c=0;for(n=0,i=e.length;i>n;n++){if(r=e[n],k(r,t))return{tuple:r,index:c};for(c++,a=0,s=r.members.length;s>a;a++)if(l=r.members[a],!l.measure&&(o=x(l.children,t),c+=o.index,o.tuple))return{tuple:o.tuple,index:c}}return{index:c}}function C(e,t){var n,i,r,o=\"\";for(i=0,r=e.length;r>i;i++)n=e[i],o+=n.name,t[o]||(t[o]=n)}function S(e,t){var n,i,r,o,a=e.members,s=\"\",l=\"\";for(n=0,i=a.length;i>n;n++){if(r=a[n],o){if(t[s+r.name]){s+=r.name,o=t[s];continue}return t[s+r.parentName]?t[s+r.parentName]:t[l+r.parentName]?t[l+r.parentName]:t[l]}if(s+=r.name,o=t[r.parentName],!o&&(o=t[s],!o))return null;o&&(l+=o.name)}return o}function T(e,t){var n,i,r,o;if(0===t.length)return-1;for(n=t[0],i=e.members,r=0,o=i.length;o>r;r++)if(i[r].name==n.name)return r}function D(n,i){if(!(0>i)){var r={name:Se,measure:!0,children:[e.extend({members:[],dataIndex:n.dataIndex},n.members[i])]};n.members.splice(i,1,r),n.dataIndex=t}}function A(e,t){var n,i,r,o,a,s;if(1>e.length)return[];for(n=[],i={},r=T(e[0],t),o=0;e.length>o;o++)a=e[o],a.dataIndex=o,D(a,r),s=S(a,i),s?s.children.push(0>r||!s.measure?a:a.members[r].children[0]):n.push(a),C(a.members,i);return n}function E(e,t){var n,i,r,o,a,s,l,c,d;if(!e||!e.length)return t;for(n=[],i=F(e),r=i.length,o=Math.max(t.length/r,1),a=0;r>a;a++)for(l=o*a,c=o*i[a],s=0;o>s;s++)d=parseInt(c+s,10),n[parseInt(l+s,10)]=t[d]||{value:\"\",fmtValue:\"\",ordinal:d};return n}function I(e,t){var n,i,r,o,a,s,l,c;if(!e||!e.length)return t;for(n=[],i=F(e),r=i.length,o=Math.max(t.length/r,1),s=0;o>s;s++)for(l=r*s,a=0;r>a;a++)c=i[a]+l,n[l+a]=t[c]||{value:\"\",fmtValue:\"\",ordinal:c};return n}function F(e){var n,i,r,o,a,s,l;for(e=e.slice(),n=[],i=e.shift();i;){for(i.dataIndex!==t&&n.push(i.dataIndex),a=0,r=0,o=i.members.length;o>r;r++)l=i.members[r],s=l.children,l.measure?[].splice.apply(e,[0,0].concat(s)):[].splice.apply(e,[a,0].concat(s)),a+=s.length;i=e.shift()}return n}function M(e){var t=e.split(\".\");return t.length>2?t[0]+\".\"+t[1]:e}function R(e,t){var n=e.length-1,i=e[n],r=P(t,i);return r&&r.dir?i=\"ORDER(\"+i+\".Children,\"+r.field+\".CurrentMember.MEMBER_CAPTION,\"+r.dir+\")\":i+=\".Children\",e[n]=i,e}function P(e,t){for(var n=0,i=e.length;i>n;n++)if(0===t.indexOf(e[n].field))return e[n];return null}function z(e){var t,n=\"CROSSJOIN({\";return e.length>2?(t=e.pop(),n+=z(e)):(n+=e.shift(),t=e.pop()),n+=\"},{\",n+=t,n+=\"})\"}function B(e,t){var n=e.slice(0);return t.length>1&&n.push(\"{\"+L(t).join(\",\")+\"}\"),z(n)}function L(e){for(var n,i=0,r=e.length,o=[];r>i;i++)n=e[i],o.push(n.name!==t?n.name:n);return o}function H(e){return e=e.name||e,\"[object Array]\"===_e.call(e)&&(e=e[e.length-1]),e}function N(e){for(var t=e.length,n=[],i=0;t>i;i++)n.push(e[i].name[0]);return n}function O(e,t){var n,i,r,o=0,a=e.length,s=t.length;for(t=t.slice(0);a>o;o++)for(n=e[o],r=0;s>r;r++)if(i=M(t[r]),-1!==n.indexOf(i)){t[r]=n;break}return{names:t,expandedIdx:r,uniquePath:t.slice(0,r+1).join(\"\")}}function V(e){for(var t,n,i,r,o,a,s=[],l=[],c=[],d=0,u=e.length;u>d;d++)if(t=e[d],r=t.name,a=!1,\"[object Array]\"!==_e.call(r)&&(t.name=r=[r]),r.length>1)l.push(t);else{for(o=M(r[0]),n=0,i=c.length;i>n;n++)if(0===c[n].name[0].indexOf(o)){a=!0;break}a||c.push(t),t.expand&&s.push(t)}return s=s.concat(l),{root:c,expanded:s}}function U(e,t,n){var i,r,o,a,s,l,c,d,u=\"\";if(e=e||[],i=V(e),r=i.root,o=N(r),a=[],i=i.expanded,s=i.length,l=0,d=[],o.length>1||t.length>1){for(a.push(B(o,t));s>l;l++)c=R(i[l].name,n),d=O(c,o).names,a.push(B(d,t));u+=a.join(\",\")}else{for(;s>l;l++)c=R(i[l].name,n),d.push(c[0]);u+=o.concat(d).join(\",\")}return u}function W(e){var t=\"\",n=e.value,i=e.field,r=e.operator;return\"in\"==r?(t+=\"{\",t+=n,t+=\"}\"):(t+=\"Filter(\",t+=i+\".MEMBERS\",t+=fe.format(Y[r],i,n),t+=\")\"),t}function j(e,t){var n,i,r=\"\",o=e.filters,a=o.length;for(i=a-1;i>=0;i--)n=\"SELECT (\",n+=W(o[i]),n+=\") ON 0\",i==a-1?(n+=\" FROM [\"+t+\"]\",r=n):r=n+\" FROM ( \"+r+\" )\";return r}function q(e,t,n){var i,r,o=\"\";if(t){o+=\"<\"+e+\">\";for(r in t)i=t[r],n&&(r=r.replace(/([A-Z]+(?=$|[A-Z][a-z])|[A-Z]?[a-z]+)/g,\"$1_\").toUpperCase().replace(/_$/,\"\")),o+=\"<\"+r+\">\"+i+\"\";o+=\"\"}else o+=\"<\"+e+\"/>\";return o}function G(e){if(null==e)return[];var t=_e.call(e);return\"[object Array]\"!==t?[e]:e}function $(e){var t,n,i,r,o={tuples:[]},a=G(fe.getter(\"Tuples.Tuple\",!0)(e)),s=fe.getter(\"Caption['#text']\"),l=fe.getter(\"UName['#text']\"),c=fe.getter(\"LName['#text']\"),d=fe.getter(\"LNum['#text']\"),u=fe.getter(\"CHILDREN_CARDINALITY['#text']\",!0),h=fe.getter(\"['@Hierarchy']\"),f=fe.getter(\"PARENT_UNIQUE_NAME['#text']\",!0);for(t=0;a.length>t;t++){for(n=[],i=G(a[t].Member),r=0;i.length>r;r++)n.push({children:[],caption:s(i[r]),name:l(i[r]),levelName:c(i[r]),levelNum:d(i[r]),hasChildren:parseInt(u(i[r]),10)>0,parentName:f(i[r]),hierarchy:h(i[r])});o.tuples.push({members:n})}return o}var Y,K,Q,X,J,Z,ee,te,ne,ie,re,oe,ae,se,le,ce,de,ue,he,fe=window.kendo,pe=fe.ui,me=fe.Class,ge=pe.Widget,ve=fe.data.DataSource,_e={}.toString,be=function(e){return e},we=e.map,ye=e.extend,ke=fe.isFunction,xe=\"change\",Ce=\"error\",Se=\"Measures\",Te=\"progress\",De=\"stateReset\",Ae=\"auto\",Ee=\"
            \",Ie=\".kendoPivotGrid\",Fe=\"__row_total__\",Me=\"dataBinding\",Re=\"dataBound\",Pe=\"expandMember\",ze=\"collapseMember\",Be=\"k-i-arrow-s\",Le=\"k-i-arrow-e\",He=\"#: data.member.caption || data.member.name #\",Ne=' 0 ? \"open\" : data.dataItem.value < 0 ? \"denied\" : \"hold\"#\">#:data.dataItem.value#',Oe=' 0 ? \"increase\" : data.dataItem.value < 0 ? \"decrease\" : \"equal\"#\">#:data.dataItem.value#',Ve='#= data.dataItem ? kendo.htmlEncode(data.dataItem.fmtValue || data.dataItem.value) || \" \" : \" \" #',Ue='
            ',We={sum:function(e,t){var n=t.accumulator;return u(n)?u(e)&&(n+=e):n=e,n},count:function(e,t){return(t.accumulator||0)+1},average:{aggregate:function(e,n){var i=n.accumulator;return n.count===t&&(n.count=0),u(i)?u(e)&&(i+=e):i=e,u(e)&&n.count++,i},result:function(e){var t=e.accumulator;return u(t)&&(t/=e.count),t}},max:function(e,t){var n=t.accumulator;return u(n)||h(n)||(n=e),e>n&&(u(e)||h(e))&&(n=e),n},min:function(e,t){var n=t.accumulator;return u(n)||h(n)||(n=e),n>e&&(u(e)||h(e))&&(n=e),n}},je=me.extend({init:function(e){this.options=ye({},this.options,e),this.dimensions=this._normalizeDescriptors(\"field\",this.options.dimensions),this.measures=this._normalizeDescriptors(\"name\",this.options.measures)},_normalizeDescriptors:function(e,t){var n,i,r,o;if(t=t||{},n={},\"[object Array]\"===_e.call(t)){for(r=0,o=t.length;o>r;r++)i=t[r],\"string\"==typeof i?n[i]={}:i[e]&&(n[i[e]]=i);t=n}return t},_rootTuples:function(e,n){var i,r,o,a,s=n.length||1,l=this.dimensions||[],c=0,d=e.length,u=[],h=[];if(d||n.length){for(c=0;s>c;c++){for(i={members:[]},a=0;d>a;a++)r=e[a],o=r.split(\"&\"),i.members[i.members.length]={children:[],caption:(l[r]||{}).caption||\"All\",name:r,levelName:r,levelNum:\"0\",hasChildren:!0,parentName:o.length>1?o[0]:t,hierarchy:r};s>1&&(i.members[i.members.length]={children:[],caption:n[c].caption,name:n[c].descriptor.name,levelName:\"MEASURES\",levelNum:\"0\",hasChildren:!1,parentName:t,hierarchy:\"MEASURES\"}),u[u.length]=i}h.push(Fe)}return{keys:h,tuples:u}},_expandedTuples:function(e,n,i){var r,o,a,s,l,c,d,u,h,f,p,m=i.length||1,g=this.dimensions||[],v=[],_=[];for(a in e){for(s=e[a],d=this._findExpandedMember(n,s.uniquePath),l=v[d.index]||[],c=_[d.index]||[],u=d.member.names,r=0;m>r;r++){for(o={members:[]},p=0;u.length>p;p++)p===d.member.expandedIdx?(o.members[o.members.length]={children:[],caption:s.value,name:s.name,hasChildren:!1,levelNum:1,levelName:s.parentName+s.name,parentName:s.parentName,hierarchy:s.parentName+s.name},0===r&&c.push(se(o,p).join(\"\"))):(f=u[p],h=f.split(\"&\"),o.members[o.members.length]={children:[],caption:(g[f]||{}).caption||\"All\",name:f,levelName:f,levelNum:\"0\",hasChildren:!0,parentName:h.length>1?h[0]:t,hierarchy:f});m>1&&(o.members[o.members.length]={children:[],caption:i[r].caption,name:i[r].descriptor.name,levelName:\"MEASURES\",levelNum:\"0\",hasChildren:!0,parentName:t,hierarchy:\"MEASURES\"}),l[l.length]=o}v[d.index]=l,_[d.index]=c}return{keys:_,tuples:v}},_findExpandedMember:function(e,t){for(var n=0;e.length>n;n++)if(e[n].uniquePath===t)return{member:e[n],index:n}},_asTuples:function(e,t,n){var i,r;return n=n||[],i=this._rootTuples(t.root,n),r=this._expandedTuples(e,t.expanded,n),{keys:[].concat.apply(i.keys,r.keys),tuples:[].concat.apply(i.tuples,r.tuples)}},_measuresInfo:function(e,t){for(var n,i,r=0,o=e&&e.length,a=[],s={},l={},c=this.measures||{};o>r;r++)i=e[r].descriptor.name,n=c[i]||{},a.push(i),n.result&&(s[i]=n.result),n.format&&(l[i]=n.format);return{names:a,formats:l,resultFuncs:s,rowAxis:t}},_toDataArray:function(e,t,n,i){var r,o,a,s,l,c,d,u,h,f,p=[],m=1,g=[],v=n.length||1,_=i.length||1;for(t.rowAxis?(g=t.names,m=g.length):f=t.names,a=0;v>a;a++)for(d=e[n[a]||Fe],c=0;m>c;c++)for(t.rowAxis&&(f=[g[c]]),s=0;_>s;s++)for(h=i[s]||Fe,u=d.items[h],r=h===Fe?d.aggregates:u?u.aggregates:{},l=0;f.length>l;l++)o=f[l],this._addData(p,r[o],t.formats[o],t.resultFuncs[o]);return p},_addData:function(e,t,n,i){var r,o=\"\";t&&(t=i?i(t):t.accumulator,o=n?fe.format(n,t):t),r=e.length,e[r]={ordinal:r,value:t||\"\",fmtValue:o}},_matchDescriptors:function(e,n,i){for(var r,o,a,s,l=n.names,c=n.expandedIdx;c>0;)if(r=l[--c].split(\"&\"),r.length>1&&(o=r[0],a=r[1],s=i[o](e),s=s!==t&&null!==s?\"\"+s:s,s!=a))return!1;return!0},_calculateAggregate:function(e,t,n){var i,r,o,a={};for(o=0;e.length>o;o++)r=e[o].descriptor.name,i=n.aggregates[r]||{},i.accumulator=e[o].aggregator(t,i),a[r]=i;return a},_processColumns:function(e,n,i,r,o,a,s,l){for(var c,d,u,h,f,p,m,g,v=o.dataItem,_=0;n.length>_;_++)d=n[_],this._matchDescriptors(v,d,i)&&(g=d.names.slice(0,d.expandedIdx).join(\"\"),p=d.names[d.expandedIdx],c=i[p](v),c=c!==t&&null!==c?\"\"+c:c,m=p,p=p+\"&\"+c,f=g+p,u=r[f]||{index:s.columnIndex,parentName:m,name:p,uniquePath:g+m,value:c},h=a.items[f]||{aggregates:{}},a.items[f]={index:u.index,aggregates:this._calculateAggregate(e,o,h)},l&&(r[f]||s.columnIndex++,r[f]=u))},_measureAggregators:function(e){var t,n,i,r,o,a,s=e.measures||[],l=this.measures||{},c=[];if(s.length){for(i=0,r=s.length;r>i;i++)if(t=s[i],n=l[t.name],o=null,n){if(a=n.aggregate,\"string\"==typeof a){if(o=We[a.toLowerCase()],!o)throw Error(\"There is no such aggregate function\");n.aggregate=o.aggregate||o,n.result=o.result}c.push({descriptor:t,caption:n.caption,result:n.result,aggregator:d(n)})}}else c.push({descriptor:{name:\"default\"},caption:\"default\",aggregator:function(){return 1}});return c},_buildGetters:function(e){var t,n,i,o={};for(i=0;e.length>i;i++)n=e[i],t=n.split(\"&\"),t.length>1?o[t[0]]=fe.getter(t[0],!0):o[n]=fe.getter(r(n),!0);return o},_parseDescriptors:function(e){var t,n=V(e),i=N(n.root),r=n.expanded,o=[];for(t=0;r.length>t;t++)o.push(O(r[t].name,i));return{root:i,expanded:o}},_filter:function(e,t){var n,i,r;if(!t)return e;for(i=0,r=t.filters;r.length>i;i++)n=r[i],\"in\"===n.operator&&(r[i]=this._normalizeFilter(n));return new fe.data.Query(e).filter(t).data},_normalizeFilter:function(e){var t,n=e.value.split(\",\"),i=[];if(!n.length)return n;for(t=0;n.length>t;t++)i.push({field:e.field,operator:\"eq\",value:n[t]});return{logic:\"or\",filters:i}},process:function(e,n){var r,o,a,s,l,c,d,u,h,f,p,m,g,v,_,b,w,y,k,x,C,S,T,D,A,E,I,F,M,R;if(e=e||[],n=n||{},e=this._filter(e,n.filter),r=n.measures||[],o=\"rows\"===n.measuresAxis,a=n.columns||[],s=n.rows||[],!a.length&&s.length&&(!r.length||r.length&&o)&&(a=s,s=[],o=!1),a.length||s.length||(o=!1),!a.length&&r.length&&(a=i(n.measures)),a=this._parseDescriptors(a),s=this._parseDescriptors(s),l={},c={},d={},h={columnIndex:0},f=this._measureAggregators(n),p=this._buildGetters(a.root),m=this._buildGetters(s.root),g=!1,v=a.expanded,_=s.expanded,y=0!==_.length,M=e.length,R=0,a.root.length||s.root.length)for(g=!0,R=0;M>R;R++)for(b=e[R],w={dataItem:b,index:R},S=l[Fe]||{items:{},aggregates:{}},this._processColumns(f,v,p,c,w,S,h,!y),S.aggregates=this._calculateAggregate(f,w,S),l[Fe]=S,k=0;_.length>k;k++)x=_[k],this._matchDescriptors(b,x,m)?(D=x.names.slice(0,x.expandedIdx).join(\"\"),C=x.names[x.expandedIdx],A=C,u=m[C](b),u=u!==t?\"\"+u:u,C=C+\"&\"+u,T=D+C,d[T]={uniquePath:D+A,parentName:A,name:C,value:u},E=l[T]||{items:{},aggregates:{}},this._processColumns(f,v,p,c,w,E,h,!0),E.aggregates=this._calculateAggregate(f,w,E),l[T]=E):this._processColumns(f,v,p,c,w,{items:{},aggregates:{}},h,!0);return g&&M?(!(f.length>1)||n.columns&&n.columns.length||(a={root:[],expanded:[]}),I=this._asTuples(c,a,o?[]:f),F=this._asTuples(d,s,o?f:[]),c=I.tuples,d=F.tuples,l=this._toDataArray(l,this._measuresInfo(f,o),F.keys,I.keys)):l=c=d=[],\r\n{axes:{columns:{tuples:c},rows:{tuples:d}},data:l}}}),qe=me.extend({init:function(e,t){this.transport=t,this.options=t.options||{},this.transport.discover||ke(e.discover)&&(this.discover=e.discover)},read:function(e){return this.transport.read(e)},update:function(e){return this.transport.update(e)},create:function(e){return this.transport.create(e)},destroy:function(e){return this.transport.destroy(e)},discover:function(e){return this.transport.discover?this.transport.discover(e):(e.success({}),t)},catalog:function(n){var i,r=this.options||{};return n===t?(r.connection||{}).catalog:(i=r.connection||{},i.catalog=n,this.options.connection=i,e.extend(this.transport.options,{connection:i}),t)},cube:function(e){var n,i=this.options||{};return e===t?(i.connection||{}).cube:(n=i.connection||{},n.cube=e,this.options.connection=n,ye(!0,this.transport.options,{connection:n}),t)}}),Ge=ve.extend({init:function(t){var r,o=((t||{}).schema||{}).cube,a=\"columns\",s={axes:be,cubes:be,catalogs:be,measures:be,dimensions:be,hierarchies:be,levels:be,members:be};o&&(s=e.extend(s,this._cubeSchema(o)),this.cubeBuilder=new je(o)),ve.fn.init.call(this,ye(!0,{},{schema:s},t)),this.transport=new qe(this.options.transport||{},this.transport),this._columns=i(this.options.columns),this._rows=i(this.options.rows),r=this.options.measures||[],\"[object Object]\"===_e.call(r)&&(a=r.axis||\"columns\",r=r.values||[]),this._measures=n(r),this._measuresAxis=a,this._skipNormalize=0,this._axes={}},_cubeSchema:function(t){return{dimensions:function(){var e,n=[],i=t.dimensions;for(e in i)n.push({name:e,caption:i[e].caption||e,uniqueName:e,defaultHierarchy:e,type:1});return t.measures&&n.push({name:Se,caption:Se,uniqueName:Se,type:2}),n},hierarchies:function(){return[]},measures:function(){var e,n=[],i=t.measures;for(e in i)n.push({name:e,caption:e,uniqueName:e,aggregator:e});return n},members:e.proxy(function(e,n){var i,o,a=n.levelUniqueName||n.memberUniqueName,s=this.options.data||this._rawData||[],l=[],c=0,d={};if(a&&(a=a.split(\".\")[0]),!n.treeOp)return l.push({caption:t.dimensions[a].caption||a,childrenCardinality:\"1\",dimensionUniqueName:a,hierarchyUniqueName:a,levelUniqueName:a,name:a,uniqueName:a}),l;for(i=fe.getter(r(a),!0);s.length>c;c++)o=i(s[c]),!o&&0!==o||d[o]||(d[o]=!0,l.push({caption:o,childrenCardinality:\"0\",dimensionUniqueName:a,hierarchyUniqueName:a,levelUniqueName:a,name:o,uniqueName:o}));return l},this)}},options:{serverSorting:!0,serverPaging:!0,serverFiltering:!0,serverGrouping:!0,serverAggregates:!0},catalog:function(e){return e===t?this.transport.catalog():(this.transport.catalog(e),this._mergeState({}),this._axes={},this.data([]),t)},cube:function(e){return e===t?this.transport.cube():(this.transport.cube(e),this._axes={},this._mergeState({}),this.data([]),t)},axes:function(){return this._axes},columns:function(e){return e===t?this._columns:(this._skipNormalize+=1,this._clearAxesData=!0,this._columns=i(e),this.query({columns:e,rows:this.rowsAxisDescriptors(),measures:this.measures()}),t)},rows:function(e){return e===t?this._rows:(this._skipNormalize+=1,this._clearAxesData=!0,this._rows=i(e),this.query({columns:this.columnsAxisDescriptors(),rows:e,measures:this.measures()}),t)},measures:function(e){return e===t?this._measures:(this._skipNormalize+=1,this._clearAxesData=!0,this.query({columns:this.columnsAxisDescriptors(),rows:this.rowsAxisDescriptors(),measures:n(e)}),t)},measuresAxis:function(){return this._measuresAxis||\"columns\"},_expandPath:function(e,t){var n,r,o,a=\"columns\"===t?\"columns\":\"rows\",s=\"columns\"===t?\"rows\":\"columns\",l=i(e),d=H(l[l.length-1]);for(this._lastExpanded=a,l=c(this.axes()[a],l,this.measures()),n=0;l.length>n;n++)if(r=H(l[n]),r===d){if(l[n].expand)return;l[n].expand=!0}else l[n].expand=!1;o={},o[a]=l,o[s]=this._descriptorsForAxis(s),this._query(o)},_descriptorsForAxis:function(e){var t=this.axes(),n=this[e]()||[];return t&&t[e]&&t[e].tuples&&t[e].tuples[0]&&(n=a(t[e].tuples||[])),n},columnsAxisDescriptors:function(){return this._descriptorsForAxis(\"columns\")},rowsAxisDescriptors:function(){return this._descriptorsForAxis(\"rows\")},_process:function(e,t){this._view=e,t=t||{},t.items=t.items||this._view,this.trigger(xe,t)},_query:function(e){var t=this;return e||(this._skipNormalize+=1,this._clearAxesData=!0),t.query(ye({},{page:t.page(),pageSize:t.pageSize(),sort:t.sort(),filter:t.filter(),group:t.group(),aggregate:t.aggregate(),columns:this.columnsAxisDescriptors(),rows:this.rowsAxisDescriptors(),measures:this.measures()},e))},query:function(t){var n=this._mergeState(t);return this._data.length&&this.cubeBuilder?(this._params(n),this._updateLocalData(this._pristineData),e.Deferred().resolve().promise()):this.read(n)},_mergeState:function(e){return e=ve.fn._mergeState.call(this,e),e!==t&&(this._measures=n(e.measures),e.columns?e.columns=i(e.columns):e.columns||(this._columns=[]),e.rows?e.rows=i(e.rows):e.rows||(this._rows=[])),e},filter:function(e){return e===t?this._filter:(this._skipNormalize+=1,this._clearAxesData=!0,this._query({filter:e,page:1}),t)},expandColumn:function(e){this._expandPath(e,\"columns\")},expandRow:function(e){this._expandPath(e,\"rows\")},success:function(e){var t;this.cubeBuilder&&(t=(this.reader.data(e)||[]).slice(0)),ve.fn.success.call(this,e),t&&(this._pristineData=t)},_processResult:function(e,t){var n,i,r,o,a,s,l,c,d,u,h;return this.cubeBuilder&&(n=this.cubeBuilder.process(e,this._requestData),e=n.data,t=n.axes),c=this.columns(),d=this.rows(),u=t.columns&&t.columns.tuples,c.length||!d.length||!u||!this._rowMeasures().length&&this.measures().length||(t={columns:{},rows:t.columns}),c.length||d.length||\"rows\"!==this.measuresAxis()||!u||(t={columns:{},rows:t.columns}),this._axes={columns:b(this._axes.columns),rows:b(this._axes.rows)},t={columns:b(t.columns),rows:b(t.rows)},i=this._normalizeTuples(t.columns.tuples,this._axes.columns.tuples,c,this._columnMeasures()),r=this._normalizeTuples(t.rows.tuples,this._axes.rows.tuples,d,this._rowMeasures()),this._skipNormalize-=1,this.cubeBuilder||(e=this._normalizeData({columnsLength:t.columns.tuples.length,rowsLength:t.rows.tuples.length,columnIndexes:i,rowIndexes:r,data:e})),\"rows\"==this._lastExpanded?(o=t.columns.tuples,s=this._columnMeasures(),a=p(t.columns,this._axes.columns,s),a&&(l=\"columns\",t.columns=a,m(o,a.tuples,t.rows.tuples.length,s,e),this.cubeBuilder||(e=this._normalizeData({columnsLength:_(t.columns.tuples,s),rowsLength:t.rows.tuples.length,data:e})))):\"columns\"==this._lastExpanded&&(o=t.rows.tuples,s=this._rowMeasures(),a=p(t.rows,this._axes.rows,s),a&&(l=\"rows\",t.rows=a,g(o,a.tuples,t.columns.tuples.length,s,e),this.cubeBuilder||(e=this._normalizeData({columnsLength:_(t.rows.tuples,s),rowsLength:t.columns.tuples.length,data:e})))),this._lastExpanded=null,h=this._mergeAxes(t,e,l),this._axes=h.axes,h.data},_readData:function(e){var t=this.reader.axes(e),n=this.reader.data(e);return this.cubeBuilder&&(this._rawData=n),this._processResult(n,t)},_createTuple:function(e,t,n){var i,r,o,a,s,l,c,d,u=e.members,h=u.length,f={members:[]},p=0;for(t&&(h-=1);h>p;p++)d=u[p],r=+d.levelNum,o=d.name,a=d.parentName,c=d.caption||o,s=d.hasChildren,l=d.hierarchy,i=d.levelName,n&&(c=\"All\",0===r?a=d.name:r-=1,s=!0,o=l=i=a),f.members.push({name:o,children:[],caption:c,levelName:i,levelNum:\"\"+r,hasChildren:s,hierarchy:l,parentName:n?\"\":a});return t&&f.members.push({name:t.name,children:[]}),f},_hasRoot:function(e,t,n){var i,r,o,a,s,l,c;if(t.length)return x(t,e).tuple;for(i=e.members,a=!0,l=0,c=i.length;c>l;l++)if(r=i[l],s=+r.levelNum||0,o=n[l],!(0===s||o&&r.name===H(o))){a=!1;break}return a},_mergeAxes:function(e,t,n){var i,r,o,a,s,l=this._columnMeasures(),c=this._rowMeasures(),d=this.axes(),u=e.rows.tuples.length,h=_(d.columns.tuples,l),f=e.columns.tuples.length;return\"columns\"==n?(f=h,r=e.columns.tuples):(r=A(e.columns.tuples,l),t=I(r,t)),o=y(d.columns.tuples,r,l),\"rows\"==n?(u=_(e.rows.tuples,c),r=e.rows.tuples):(r=A(e.rows.tuples,c),t=E(r,t)),a=y(d.rows.tuples,r,c),d.columns.tuples=o.tuples,d.rows.tuples=a.tuples,h!==_(d.columns.tuples,l)?(i=o.index+w(o.parsedRoot,o.memberIndex,l),s=h+f,t=this._mergeColumnData(t,i,u,f,s)):(i=a.index+w(a.parsedRoot,a.memberIndex,c),t=this._mergeRowData(t,i,u,f)),{axes:d,data:t}},_mergeColumnData:function(e,t,n,i,r){var o,a,s,l=this.data().toJSON(),c=0,d=Math.max(this._columnMeasures().length,1);for(n=Math.max(n,1),l.length>0&&(c=d,r-=d),o=0;n>o;o++)a=t+o*r,s=e.splice(0,i),s.splice(0,c),[].splice.apply(l,[a,0].concat(s));return l},_mergeRowData:function(e,t,n,i){var r,o,a,s=this.data().toJSON(),l=Math.max(this._rowMeasures().length,1);for(i=Math.max(i,1),s.length>0&&(n-=l,e.splice(0,i*l)),r=0;n>r;r++)a=e.splice(0,i),o=t*i+r*i,[].splice.apply(s,[o,0].concat(a));return s},_columnMeasures:function(){var e=this.measures(),t=[];return\"columns\"===this.measuresAxis()&&(0===this.columns().length?t=e:e.length>1&&(t=e)),t},_rowMeasures:function(){var e=this.measures(),t=[];return\"rows\"===this.measuresAxis()&&(0===this.rows().length?t=e:e.length>1&&(t=e)),t},_updateLocalData:function(e,t){this.cubeBuilder&&(t&&(this._requestData=t),e=this._processResult(e)),this._data=this._observe(e),this._ranges=[],this._addRange(this._data),this._total=this._data.length,this._pristineTotal=this._total,this._process(this._data)},data:function(e){var n=this;return e===t?n._data:(this._pristineData=e.slice(0),this._updateLocalData(e,{columns:this.columns(),rows:this.rows(),measures:this.measures()}),t)},_normalizeTuples:function(e,t,n,i){var r,o,a,s=i.length||1,l=0,c=[],d={},u=0;if(e.length){if(0>=this._skipNormalize&&!this._hasRoot(e[0],t,n)){for(this._skipNormalize=0;s>l;l++)c.push(this._createTuple(e[0],i[l],!0)),d[l]=l;e.splice.apply(e,[0,e.length].concat(c).concat(e)),l=s}if(i.length)for(a=r=e[l],o=r.members.length-1;r;){if(u>=s&&(u=0),r.members[o].name!==i[u].name&&(e.splice(l,0,this._createTuple(r,i[u])),d[l]=l),l+=1,u+=1,r=e[l],s>u&&(!r||le(a,o-1)!==le(r,o-1))){for(;s>u;u++)e.splice(l,0,this._createTuple(a,i[u])),d[l]=l,l+=1;r=e[l]}a=r}return d}},_addMissingDataItems:function(e,n){for(;n.rowIndexes[parseInt(e.length/n.columnsLength,10)]!==t;)for(var i=0;n.columnsLength>i;i++)e=f(e);for(;n.columnIndexes[e.length%n.columnsLength]!==t;)e=f(e);return e},_normalizeOrdinals:function(e,t,n){var i=n.lastOrdinal;if(!t)return f(e);if(t.ordinal-i>1)for(i+=1;t.ordinal>i&&n.length>e.length;)e=this._addMissingDataItems(f(e),n),i+=1;return t.ordinal=e.length,e[e.length]=t,e},_normalizeData:function(e){var t,n,i,r=e.data,o=0,a=[];if(e.lastOrdinal=0,e.columnIndexes=e.columnIndexes||{},e.rowIndexes=e.rowIndexes||{},e.columnsLength=e.columnsLength||1,e.rowsLength=e.rowsLength||1,e.length=e.columnsLength*e.rowsLength,i=e.length,r.length===i)return r;for(;i>a.length;)t=r[o++],t&&(n=t.ordinal),a=this._normalizeOrdinals(this._addMissingDataItems(a,e),t,e),e.lastOrdinal=n;return a},discover:function(t,n){var i=this,r=i.transport;return e.Deferred(function(e){r.discover(ye({success:function(t){t=i.reader.parse(t),i._handleCustomErrors(t)||(n&&(t=n(t)),e.resolve(t))},error:function(t,n,r){e.reject(t),i.error(t,n,r)}},t))}).promise().done(function(){i.trigger(\"schemaChange\")})},schemaMeasures:function(){var e=this;return e.discover({data:{command:\"schemaMeasures\",restrictions:{catalogName:e.transport.catalog(),cubeName:e.transport.cube()}}},function(t){return e.reader.measures(t)})},schemaKPIs:function(){var e=this;return e.discover({data:{command:\"schemaKPIs\",restrictions:{catalogName:e.transport.catalog(),cubeName:e.transport.cube()}}},function(t){return e.reader.kpis(t)})},schemaDimensions:function(){var e=this;return e.discover({data:{command:\"schemaDimensions\",restrictions:{catalogName:e.transport.catalog(),cubeName:e.transport.cube()}}},function(t){return e.reader.dimensions(t)})},schemaHierarchies:function(e){var t=this;return t.discover({data:{command:\"schemaHierarchies\",restrictions:{catalogName:t.transport.catalog(),cubeName:t.transport.cube(),dimensionUniqueName:e}}},function(e){return t.reader.hierarchies(e)})},schemaLevels:function(e){var t=this;return t.discover({data:{command:\"schemaLevels\",restrictions:{catalogName:t.transport.catalog(),cubeName:t.transport.cube(),hierarchyUniqueName:e}}},function(e){return t.reader.levels(e)})},schemaCubes:function(){var e=this;return e.discover({data:{command:\"schemaCubes\",restrictions:{catalogName:e.transport.catalog()}}},function(t){return e.reader.cubes(t)})},schemaCatalogs:function(){var e=this;return e.discover({data:{command:\"schemaCatalogs\"}},function(t){return e.reader.catalogs(t)})},schemaMembers:function(e){var t=this,n=function(e){return function(n){return t.reader.members(n,e)}}(e);return t.discover({data:{command:\"schemaMembers\",restrictions:ye({catalogName:t.transport.catalog(),cubeName:t.transport.cube()},e)}},n)},_params:function(e){this._clearAxesData&&(this._axes={},this._data=this._observe([]),this._clearAxesData=!1,this.trigger(De));var t=ve.fn._params.call(this,e);return t=ye({measures:this.measures(),measuresAxis:this.measuresAxis(),columns:this.columns(),rows:this.rows()},t),this.cubeBuilder&&(this._requestData=t),t}});Ge.create=function(e){e=e&&e.push?{data:e}:e;var t=e||{},n=t.data;if(t.data=n,!(t instanceof Ge)&&t instanceof fe.data.DataSource)throw Error(\"Incorrect DataSource type. Only PivotDataSource instances are supported\");return t instanceof Ge?t:new Ge(t)},Y={contains:', InStr({0}.CurrentMember.MEMBER_CAPTION,\"{1}\") > 0',doesnotcontain:', InStr({0}.CurrentMember.MEMBER_CAPTION,\"{1}\") = 0',startswith:', Left({0}.CurrentMember.MEMBER_CAPTION,Len(\"{1}\"))=\"{1}\"',endswith:', Right({0}.CurrentMember.MEMBER_CAPTION,Len(\"{1}\"))=\"{1}\"',eq:', {0}.CurrentMember.MEMBER_CAPTION = \"{1}\"',neq:', NOT {0}.CurrentMember.MEMBER_CAPTION = \"{1}\"'},K={schemaCubes:\"MDSCHEMA_CUBES\",schemaCatalogs:\"DBSCHEMA_CATALOGS\",schemaMeasures:\"MDSCHEMA_MEASURES\",schemaDimensions:\"MDSCHEMA_DIMENSIONS\",schemaHierarchies:\"MDSCHEMA_HIERARCHIES\",schemaLevels:\"MDSCHEMA_LEVELS\",schemaMembers:\"MDSCHEMA_MEMBERS\",schemaKPIs:\"MDSCHEMA_KPIS\"},Q={read:function(e){var t,n,i,r,o,a='
            ';return a+=\"SELECT NON EMPTY {\",t=e.columns||[],n=e.rows||[],i=e.measures||[],r=\"rows\"===e.measuresAxis,o=e.sort||[],!t.length&&n.length&&(!i.length||i.length&&r)&&(t=n,n=[],r=!1),t.length||n.length||(r=!1),t.length?a+=U(t,r?[]:i,o):i.length&&!r&&(a+=L(i).join(\",\")),a+=\"} DIMENSION PROPERTIES CHILDREN_CARDINALITY, PARENT_UNIQUE_NAME ON COLUMNS\",(n.length||r&&i.length>1)&&(a+=\", NON EMPTY {\",a+=n.length?U(n,r?i:[],o):L(i).join(\",\"),a+=\"} DIMENSION PROPERTIES CHILDREN_CARDINALITY, PARENT_UNIQUE_NAME ON ROWS\"),e.filter?(a+=\" FROM \",a+=\"(\",a+=j(e.filter,e.connection.cube),a+=\")\"):a+=\" FROM [\"+e.connection.cube+\"]\",1==i.length&&t.length&&(a+=\" WHERE (\"+L(i).join(\",\")+\")\"),a+=\"\"+e.connection.catalog+\"Multidimensional\",a.replace(/\\&/g,\"&\")},discover:function(t){t=t||{};var n='
            ';return n+=\"\"+(K[t.command]||t.command)+\"\",n+=\"\"+q(\"RestrictionList\",t.restrictions,!0)+\"\",t.connection&&t.connection.catalog&&(t.properties=e.extend({},{Catalog:t.connection.catalog},t.properties)),n+=\"\"+q(\"PropertyList\",t.properties)+\"\",n+=\"\"}},X=fe.data.RemoteTransport.extend({init:function(e){var t=e;e=this.options=ye(!0,{},this.options,e),fe.data.RemoteTransport.call(this,e),ke(t.discover)?this.discover=t.discover:\"string\"==typeof t.discover?this.options.discover={url:t.discover}:t.discover||(this.options.discover=this.options.read)},setup:function(t,n){return t.data=t.data||{},e.extend(!0,t.data,{connection:this.options.connection}),fe.data.RemoteTransport.fn.setup.call(this,t,n)},options:{read:{dataType:\"text\",contentType:\"text/xml\",type:\"POST\"},discover:{dataType:\"text\",contentType:\"text/xml\",type:\"POST\"},parameterMap:function(e,t){return Q[t](e,t)}},discover:function(t){return e.ajax(this.setup(t,\"discover\"))}}),J={cubes:{name:fe.getter(\"CUBE_NAME['#text']\",!0),caption:fe.getter(\"CUBE_CAPTION['#text']\",!0),description:fe.getter(\"DESCRIPTION['#text']\",!0),type:fe.getter(\"CUBE_TYPE['#text']\",!0)},catalogs:{name:fe.getter(\"CATALOG_NAME['#text']\",!0),description:fe.getter(\"DESCRIPTION['#text']\",!0)},measures:{name:fe.getter(\"MEASURE_NAME['#text']\",!0),caption:fe.getter(\"MEASURE_CAPTION['#text']\",!0),uniqueName:fe.getter(\"MEASURE_UNIQUE_NAME['#text']\",!0),description:fe.getter(\"DESCRIPTION['#text']\",!0),aggregator:fe.getter(\"MEASURE_AGGREGATOR['#text']\",!0),groupName:fe.getter(\"MEASUREGROUP_NAME['#text']\",!0),displayFolder:fe.getter(\"MEASURE_DISPLAY_FOLDER['#text']\",!0),defaultFormat:fe.getter(\"DEFAULT_FORMAT_STRING['#text']\",!0)},kpis:{name:fe.getter(\"KPI_NAME['#text']\",!0),caption:fe.getter(\"KPI_CAPTION['#text']\",!0),value:fe.getter(\"KPI_VALUE['#text']\",!0),goal:fe.getter(\"KPI_GOAL['#text']\",!0),status:fe.getter(\"KPI_STATUS['#text']\",!0),trend:fe.getter(\"KPI_TREND['#text']\",!0),statusGraphic:fe.getter(\"KPI_STATUS_GRAPHIC['#text']\",!0),trendGraphic:fe.getter(\"KPI_TREND_GRAPHIC['#text']\",!0),description:fe.getter(\"KPI_DESCRIPTION['#text']\",!0),groupName:fe.getter(\"MEASUREGROUP_NAME['#text']\",!0)},dimensions:{name:fe.getter(\"DIMENSION_NAME['#text']\",!0),caption:fe.getter(\"DIMENSION_CAPTION['#text']\",!0),description:fe.getter(\"DESCRIPTION['#text']\",!0),uniqueName:fe.getter(\"DIMENSION_UNIQUE_NAME['#text']\",!0),defaultHierarchy:fe.getter(\"DEFAULT_HIERARCHY['#text']\",!0),type:fe.getter(\"DIMENSION_TYPE['#text']\",!0)},hierarchies:{name:fe.getter(\"HIERARCHY_NAME['#text']\",!0),caption:fe.getter(\"HIERARCHY_CAPTION['#text']\",!0),description:fe.getter(\"DESCRIPTION['#text']\",!0),uniqueName:fe.getter(\"HIERARCHY_UNIQUE_NAME['#text']\",!0),dimensionUniqueName:fe.getter(\"DIMENSION_UNIQUE_NAME['#text']\",!0),displayFolder:fe.getter(\"HIERARCHY_DISPLAY_FOLDER['#text']\",!0),origin:fe.getter(\"HIERARCHY_ORIGIN['#text']\",!0),defaultMember:fe.getter(\"DEFAULT_MEMBER['#text']\",!0)},levels:{name:fe.getter(\"LEVEL_NAME['#text']\",!0),caption:fe.getter(\"LEVEL_CAPTION['#text']\",!0),description:fe.getter(\"DESCRIPTION['#text']\",!0),uniqueName:fe.getter(\"LEVEL_UNIQUE_NAME['#text']\",!0),dimensionUniqueName:fe.getter(\"DIMENSION_UNIQUE_NAME['#text']\",!0),displayFolder:fe.getter(\"LEVEL_DISPLAY_FOLDER['#text']\",!0),orderingProperty:fe.getter(\"LEVEL_ORDERING_PROPERTY['#text']\",!0),origin:fe.getter(\"LEVEL_ORIGIN['#text']\",!0),hierarchyUniqueName:fe.getter(\"HIERARCHY_UNIQUE_NAME['#text']\",!0)},members:{name:fe.getter(\"MEMBER_NAME['#text']\",!0),caption:fe.getter(\"MEMBER_CAPTION['#text']\",!0),uniqueName:fe.getter(\"MEMBER_UNIQUE_NAME['#text']\",!0),dimensionUniqueName:fe.getter(\"DIMENSION_UNIQUE_NAME['#text']\",!0),hierarchyUniqueName:fe.getter(\"HIERARCHY_UNIQUE_NAME['#text']\",!0),levelUniqueName:fe.getter(\"LEVEL_UNIQUE_NAME['#text']\",!0),childrenCardinality:fe.getter(\"CHILDREN_CARDINALITY['#text']\",!0)}},Z=[\"axes\",\"catalogs\",\"cubes\",\"dimensions\",\"hierarchies\",\"levels\",\"measures\"],ee=fe.data.XmlDataReader.extend({init:function(e){fe.data.XmlDataReader.call(this,e),this._extend(e)},_extend:function(e){for(var t,n,i=0,r=Z.length;r>i;i++)t=Z[i],n=e[t],n&&n!==be&&(this[t]=n)},parse:function(e){var t=fe.data.XmlDataReader.fn.parse(e.replace(/<(\\/?)(\\w|-)+:/g,\"<$1\"));return fe.getter(\"['Envelope']['Body']\",!0)(t)},errors:function(e){var t=fe.getter(\"['Fault']\",!0)(e);return t?[{faultstring:fe.getter(\"faultstring['#text']\",!0)(t),faultcode:fe.getter(\"faultcode['#text']\",!0)(t)}]:null},axes:function(e){var t,n,i,r;for(e=fe.getter('ExecuteResponse[\"return\"].root',!0)(e),t=G(fe.getter(\"Axes.Axis\",!0)(e)),i={columns:{},rows:{}},r=0;t.length>r;r++)n=t[r],\"sliceraxis\"!==n[\"@name\"].toLowerCase()&&(i.columns.tuples?i.rows=$(n):i.columns=$(n));return i},data:function(e){var t,n,i,r,o,a;for(e=fe.getter('ExecuteResponse[\"return\"].root',!0)(e),t=G(fe.getter(\"CellData.Cell\",!0)(e)),n=[],i=fe.getter(\"['@CellOrdinal']\"),r=fe.getter(\"Value['#text']\"),o=fe.getter(\"FmtValue['#text']\"),a=0;t.length>a;a++)n.push({value:r(t[a]),fmtValue:o(t[a]),ordinal:parseInt(i(t[a]),10)});return n},_mapSchema:function(e,t){var n,i,r,o,a;for(e=fe.getter('DiscoverResponse[\"return\"].root',!0)(e),n=G(fe.getter(\"row\",!0)(e)),i=[],r=0;n.length>r;r++){o={};for(a in t)o[a]=t[a](n[r]);i.push(o)}return i},measures:function(e){return this._mapSchema(e,J.measures)},kpis:function(e){return this._mapSchema(e,J.kpis)},hierarchies:function(e){return this._mapSchema(e,J.hierarchies)},levels:function(e){return this._mapSchema(e,J.levels)},dimensions:function(e){return this._mapSchema(e,J.dimensions)},cubes:function(e){return this._mapSchema(e,J.cubes)},catalogs:function(e){return this._mapSchema(e,J.catalogs)},members:function(e){return this._mapSchema(e,J.members)}}),ye(!0,fe.data,{PivotDataSource:Ge,XmlaTransport:X,XmlaDataReader:ee,PivotCubeBuilder:je,transports:{xmla:X},readers:{xmla:ee}}),te=function(e,t){if(!e)return null;for(var n=0,i=e.length;i>n;n++)if(e[n].field===t)return e[n];return null},ne=function(e,t){var n,i,r=[];for(n=0,i=e.length;i>n;n++)e[n].field!==t&&r.push(e[n]);return r},fe.ui.PivotSettingTarget=ge.extend({init:function(t,n){var i=this;ge.fn.init.call(i,t,n),i.element.addClass(\"k-pivot-setting\"),i.dataSource=fe.data.PivotDataSource.create(n.dataSource),i._refreshHandler=e.proxy(i.refresh,i),i.dataSource.first(xe,i._refreshHandler),n.template||(i.options.template=\"\"),i.template=fe.template(i.options.template),i.emptyTemplate=fe.template(i.options.emptyTemplate),i._sortable(),i.element.on(\"click\"+Ie,\".k-button,.k-item\",function(t){var n=e(t.target),r=n.closest(\"[\"+fe.attr(\"name\")+\"]\").attr(fe.attr(\"name\"));r&&(n.hasClass(\"k-setting-delete\")?i.remove(r):i.options.sortable&&n[0]===t.currentTarget&&i.sort({field:r,dir:n.find(\".k-i-sort-asc\")[0]?\"desc\":\"asc\"}))}),(n.filterable||n.sortable)&&(i.fieldMenu=new pe.PivotFieldMenu(i.element,{messages:i.options.messages.fieldMenu,filter:\".k-setting-fieldmenu\",filterable:n.filterable,sortable:n.sortable,dataSource:i.dataSource})),i.refresh()},options:{name:\"PivotSettingTarget\",template:null,filterable:!1,sortable:!1,emptyTemplate:\"
            ${data}
            \",setting:\"columns\",enabled:!0,messages:{empty:\"Drop Fields Here\"}},setDataSource:function(e){this.dataSource.unbind(xe,this._refreshHandler),this.dataSource=this.options.dataSource=e,this.fieldMenu&&this.fieldMenu.setDataSource(e),e.first(xe,this._refreshHandler),this.refresh()},_sortable:function(){var e=this;e.options.enabled&&(this.sortable=this.element.kendoSortable({connectWith:this.options.connectWith,filter:\">:not(.k-empty)\",hint:e.options.hint,cursor:\"move\",start:function(e){e.item.focus().blur()},change:function(t){var n=t.item.attr(fe.attr(\"name\"));\"receive\"==t.action?e.add(n):\"remove\"==t.action?e.remove(n):\"sort\"==t.action&&e.move(n,t.newIndex)}}).data(\"kendoSortable\"))},_indexOf:function(e,t){var n,i,r=-1;for(n=0,i=t.length;i>n;n++)if(H(t[n])===e){r=n;break}return r},_isKPI:function(e){return\"kpi\"===e.type||e.measure},validate:function(e){var t,n,i=2==e.type||\"aggregator\"in e||this._isKPI(e);return i?\"measures\"===this.options.setting:\"measures\"===this.options.setting?i:(t=this.dataSource[this.options.setting](),n=e.defaultHierarchy||e.uniqueName,this._indexOf(n,t)>-1?!1:(t=this.dataSource[\"columns\"===this.options.setting?\"rows\":\"columns\"](),this._indexOf(n,t)>-1?!1:!0))},add:function(t){var n,i,r=this.dataSource[this.options.setting]();for(t=e.isArray(t)?t.slice(0):[t],n=0,i=t.length;i>n;n++)-1!==this._indexOf(t[n],r)&&(t.splice(n,1),n-=1,i-=1);t.length&&(r=r.concat(t),this.dataSource[this.options.setting](r))},move:function(e,t){var n=this.dataSource[this.options.setting](),i=this._indexOf(e,n);i>-1&&(e=n.splice(i,1)[0],n.splice(t,0,e),this.dataSource[this.options.setting](n))},remove:function(e){var t=this.dataSource[this.options.setting](),n=this._indexOf(e,t);n>-1&&(t.splice(n,1),this.dataSource[this.options.setting](t))},sort:function(e){var t=this.options.sortable,n=t===!0||t.allowUnsort,i=n&&\"asc\"===e.dir,r=this.dataSource.sort()||[],o=ne(r,e.field);i&&r.length!==o.length&&(e=null),e&&o.push(e),this.dataSource.sort(o)},refresh:function(){var e,n=\"\",i=this.dataSource[this.options.setting](),r=i.length,o=0;if(r)for(;r>o;o++)e=i[o],e=e.name===t?{name:e}:e,n+=this.template(ye({sortIcon:this._sortIcon(e.name)},e));else n=this.emptyTemplate(this.options.messages.empty);this.element.html(n)},destroy:function(){ge.fn.destroy.call(this),this.dataSource.unbind(xe,this._refreshHandler),this.element.off(Ie),this.sortable&&this.sortable.destroy(),this.fieldMenu&&this.fieldMenu.destroy(),this.element=null,this._refreshHandler=null},_sortIcon:function(e){var t=this.dataSource.sort(),n=te(t,H(e)),i=\"\";return n&&(i=\"k-i-sort-\"+n.dir),i}}),ie=ge.extend({init:function(n,i){var r,o,a=this;ge.fn.init.call(a,n,i),a._dataSource(),a._bindConfigurator(),a._wrapper(),a._createLayout(),a._columnBuilder=r=new ce,a._rowBuilder=o=new de,a._contentBuilder=new ue,a._templates(),a.columnsHeader.add(a.rowsHeader).on(\"click\",\"span.k-icon\",function(){var n,i,s,l,c=e(this),d=r,u=\"expandColumn\",h=c.attr(fe.attr(\"path\")),f={axis:\"columns\",path:e.parseJSON(h)};c.parent().is(\"td\")&&(d=o,u=\"expandRow\",f.axis=\"rows\"),i=c.hasClass(Be),s=d.metadata[h],l=s.expanded===t,n=i?ze:Pe,f.childrenLoaded=s.maxChildren>s.children,a.trigger(n,f)||(d.metadata[h].expanded=!i,c.toggleClass(Be,!i).toggleClass(Le,i),!i&&l?a.dataSource[u](f.path):a.refresh())}),a._scrollable(),a.options.autoBind&&a.dataSource.fetch(),fe.notify(a)},events:[Me,Re,Pe,ze],options:{name:\"PivotGrid\",autoBind:!0,reorderable:!0,filterable:!1,sortable:!1,height:null,columnWidth:100,configurator:\"\",columnHeaderTemplate:null,rowHeaderTemplate:null,dataCellTemplate:null,kpiStatusTemplate:null,kpiTrendTemplate:null,messages:{measureFields:\"Drop Data Fields Here\",columnFields:\"Drop Column Fields Here\",rowFields:\"Drop Rows Fields Here\"}},_templates:function(){var e=this.options.columnHeaderTemplate,t=this.options.rowHeaderTemplate,n=this.options.dataCellTemplate,i=this.options.kpiStatusTemplate,r=this.options.kpiTrendTemplate;this._columnBuilder.template=fe.template(e||He,{useWithBlock:!!e}),this._contentBuilder.dataTemplate=fe.template(n||Ve,{useWithBlock:!!n}),this._contentBuilder.kpiStatusTemplate=fe.template(i||Ne,{useWithBlock:!!i}),this._contentBuilder.kpiTrendTemplate=fe.template(r||Oe,{useWithBlock:!!r}),this._rowBuilder.template=fe.template(t||He,{useWithBlock:!!t})},_bindConfigurator:function(){var t=this.options.configurator;t&&e(t).kendoPivotConfigurator(\"setDataSource\",this.dataSource)},cellInfoByElement:function(t){return t=e(t),this.cellInfo(t.index(),t.parent(\"tr\").index())},cellInfo:function(e,t){var n,i=this._contentBuilder,r=i.columnIndexes[e||0],o=i.rowIndexes[t||0];return r&&o?(n=o.index*i.rowLength+r.index,{columnTuple:r.tuple,rowTuple:o.tuple,measure:r.measure||o.measure,dataItem:this.dataSource.view()[n]}):null},setDataSource:function(e){this.options.dataSource=e,this._dataSource(),this.measuresTarget&&this.measuresTarget.setDataSource(e),this.rowsTarget&&this.rowsTarget.setDataSource(e),this.columnsTarget&&this.columnsTarget.setDataSource(e),this._bindConfigurator(),this.options.autoBind&&e.fetch()},setOptions:function(e){ge.fn.setOptions.call(this,e),this._templates()},destroy:function(){ge.fn.destroy.call(this),clearTimeout(this._headerReflowTimeout)},_dataSource:function(){var t=this,n=t.options.dataSource;n=e.isArray(n)?{data:n}:n,t.dataSource&&this._refreshHandler?t.dataSource.unbind(xe,t._refreshHandler).unbind(De,t._stateResetHandler).unbind(Te,t._progressHandler).unbind(Ce,t._errorHandler):(t._refreshHandler=e.proxy(t.refresh,t),t._progressHandler=e.proxy(t._requestStart,t),t._stateResetHandler=e.proxy(t._stateReset,t),t._errorHandler=e.proxy(t._error,t)),t.dataSource=fe.data.PivotDataSource.create(n).bind(xe,t._refreshHandler).bind(Te,t._progressHandler).bind(De,t._stateResetHandler).bind(Ce,t._errorHandler)},_error:function(){this._progress(!1)},_requestStart:function(){this._progress(!0)},_stateReset:function(){this._columnBuilder.reset(),this._rowBuilder.reset()},_wrapper:function(){var e=this.options.height;this.wrapper=this.element.addClass(\"k-widget k-pivot\"),e&&this.wrapper.css(\"height\",e)},_measureFields:function(){this.measureFields=e(Ee).addClass(\"k-pivot-toolbar k-header k-settings-measures\"),this.measuresTarget=this._createSettingTarget(this.measureFields,{setting:\"measures\",messages:{empty:this.options.messages.measureFields}})},_createSettingTarget:function(t,n){var i='${data.name}',r=n.sortable,o=\"\";return r&&(o+=\"#if (data.sortIcon) {#\",o+='',o+=\"#}#\"),(n.filterable||r)&&(o+=''),this.options.reorderable&&(o+=''),o&&(i+=''+o+\"\"),i+=\"\",new fe.ui.PivotSettingTarget(t,e.extend({template:i,emptyTemplate:'${data}',enabled:this.options.reorderable,dataSource:this.dataSource},n))},_initSettingTargets:function(){this.columnsTarget=this._createSettingTarget(this.columnFields,{connectWith:this.rowFields,setting:\"columns\",filterable:this.options.filterable,sortable:this.options.sortable,messages:{empty:this.options.messages.columnFields,fieldMenu:this.options.messages.fieldMenu}}),this.rowsTarget=this._createSettingTarget(this.rowFields,{connectWith:this.columnFields,setting:\"rows\",filterable:this.options.filterable,sortable:this.options.sortable,messages:{empty:this.options.messages.rowFields,fieldMenu:this.options.messages.fieldMenu}})},_createLayout:function(){var t=this,n=e(Ue),i=n.find(\".k-pivot-rowheaders\"),r=n.find(\".k-pivot-table\"),o=e(Ee).addClass(\"k-grid k-widget\");t._measureFields(),t.columnFields=e(Ee).addClass(\"k-pivot-toolbar k-header k-settings-columns\"),t.rowFields=e(Ee).addClass(\"k-pivot-toolbar k-header k-settings-rows\"),t.columnsHeader=e('
            ').wrap('
            '),t.columnsHeader.parent().css(\"padding-right\",fe.support.scrollbar()),t.rowsHeader=e('
            '),t.content=e('
            '),i.append(t.measureFields),i.append(t.rowFields),i.append(t.rowsHeader),o.append(t.columnsHeader.parent()),o.append(t.content),r.append(t.columnFields),r.append(o),t.wrapper.append(n),t.columnsHeaderTree=new fe.dom.Tree(t.columnsHeader[0]),t.rowsHeaderTree=new fe.dom.Tree(t.rowsHeader[0]),t.contentTree=new fe.dom.Tree(t.content[0]),t._initSettingTargets()},_progress:function(e){fe.ui.progress(this.wrapper,e)},_resize:function(){this.content[0].firstChild&&(this._setSectionsWidth(),this._setSectionsHeight(),this._setContentWidth(),this._setContentHeight(),this._columnHeaderReflow())},_columnHeaderReflow:function(){var e=this.columnsHeader.children(\"table\");fe.support.browser.mozilla&&(clearTimeout(this._headerReflowTimeout),e.css(\"table-layout\",\"auto\"),this._headerReflowTimeout=setTimeout(function(){e.css(\"table-layout\",\"\")}))},_setSectionsWidth:function(){var e=this.rowsHeader,t=e.parent(\".k-pivot-rowheaders\").width(Ae),n=Math.max(this.measureFields.outerWidth(),this.rowFields.outerWidth());n=Math.max(e.children(\"table\").width(),n),t.width(n)},_setSectionsHeight:function(){var e=this.measureFields.height(Ae).height(),t=this.columnFields.height(Ae).height(),n=this.rowFields.height(Ae).innerHeight(),i=this.columnsHeader.height(Ae).innerHeight(),r=n-this.rowFields.height(),o=t>e?t:e,a=i>n?i:n;\r\nthis.measureFields.height(o),this.columnFields.height(o),this.rowFields.height(a-r),this.columnsHeader.height(a)},_setContentWidth:function(){var e=this.content.find(\"table\"),t=this.columnsHeader.children(\"table\"),n=e.children(\"colgroup\").children().length,i=n*this.options.columnWidth,r=Math.ceil(i/this.content.width()*100);100>r&&(r=100),e.add(t).css(\"width\",r+\"%\"),this._resetColspan(t)},_setContentHeight:function(){var e=this,n=e.content,i=e.rowsHeader,r=e.wrapper.innerHeight(),o=fe.support.scrollbar(),a=n[0].offsetHeight===n[0].clientHeight,s=e.options.height;if(e.wrapper.is(\":visible\")){if(!r||!s)return a&&(o=0),n.height(\"auto\"),i.height(n.height()-o),t;r-=e.columnFields.outerHeight(),r-=e.columnsHeader.outerHeight(),2*o>=r&&(r=2*o+1,a||(r+=o)),n.height(r),a&&(o=0),i.height(r-o)}},_resetColspan:function(e){var n=this,i=e.children(\"tbody\").children(\":first\").children(\":first\");n._colspan===t&&(n._colspan=i.attr(\"colspan\")),i.attr(\"colspan\",1),clearTimeout(n._layoutTimeout),n._layoutTimeout=setTimeout(function(){i.attr(\"colspan\",n._colspan),n._colspan=t})},_axisMeasures:function(e){var t=[],n=this.dataSource,i=n.measures(),r=i.length>1||i[0]&&i[0].type;return n.measuresAxis()===e&&(0===n[e]().length||r)&&(t=i),t},items:function(){return[]},refresh:function(){var e,t=this,n=t.dataSource,i=n.axes(),r=(i.columns||{}).tuples||[],o=(i.rows||{}).tuples||[],a=t._columnBuilder,s=t._rowBuilder,l={},c={};t.trigger(Me,{action:\"rebind\"})||(a.measures=t._axisMeasures(\"columns\"),t.columnsHeaderTree.render(a.build(r)),t.rowsHeaderTree.render(s.build(o)),l={indexes:a._indexes,measures:a.measures,metadata:a.metadata},c={indexes:s._indexes,measures:this._axisMeasures(\"rows\"),metadata:s.metadata},t.contentTree.render(t._contentBuilder.build(n.view(),l,c)),t._resize(),t.touchScroller?t.touchScroller.contentResized():(e=fe.touchScroller(t.content),e&&e.movable&&(t.touchScroller=e,e.movable.bind(\"change\",function(e){t.columnsHeader.scrollLeft(-e.sender.x),t.rowsHeader.scrollTop(-e.sender.y)}))),t._progress(!1),t.trigger(Re))},_scrollable:function(){var t=this,n=t.columnsHeader,i=t.rowsHeader;t.content.scroll(function(){n.scrollLeft(this.scrollLeft),i.scrollTop(this.scrollTop)}),i.bind(\"DOMMouseScroll\"+Ie+\" mousewheel\"+Ie,e.proxy(t._wheelScroll,t))},_wheelScroll:function(t){var n,i;t.ctrlKey||(n=fe.wheelDeltaY(t),i=this.content.scrollTop(),n&&(t.preventDefault(),e(t.currentTarget).one(\"wheel\"+Ie,!1),this.rowsHeader.scrollTop(i+-n),this.content.scrollTop(i+-n)))}}),re=fe.dom.element,oe=fe.dom.html,ae=function(e,t){return{maxChildren:0,children:0,maxMembers:0,members:0,measures:1,levelNum:e,parentMember:0!==t}},se=function(e,t){for(var n=[],i=0;t>=i;i++)n.push(e.members[i].name);return n},le=function(e,t){for(var n=\"\",i=0;t>=i;i++)n+=e.members[i].name;return n},ce=me.extend({init:function(){this.measures=1,this.metadata={}},build:function(e){var t=this._tbody(e),n=this._colGroup();return[re(\"table\",null,[n,t])]},reset:function(){this.metadata={}},_colGroup:function(){for(var e=this._rowLength(),t=[],n=0;e>n;n++)t.push(re(\"col\",null));return re(\"colgroup\",null,t)},_tbody:function(e){var t=e[0];return this.map={},this.rows=[],this.rootTuple=t,this._indexes=[],t?(this._buildRows(t,0),this._normalize()):this.rows.push(re(\"tr\",null,[re(\"th\",null,[oe(\" \")])])),re(\"tbody\",null,this.rows)},_normalize:function(){for(var e,t,n,i,r,o=this.rows,a=o.length,s=0;a>s;s++)if(e=o[s],1!==e.rowSpan)for(i=e.children,n=0,t=i.length;t>n;n++)r=i[n],r.tupleAll&&(r.attr.rowSpan=e.rowSpan)},_rowIndex:function(e){for(var t=this.rows,n=t.length,i=0;n>i&&t[i]!==e;i++);return i},_rowLength:function(){var e=this.rows[0]?this.rows[0].children:[],t=e.length,n=0,i=0;if(t)for(;t>i;i++)n+=e[i].attr.colSpan||1;return n||(n=this.measures),n},_row:function(e,t,n){var i,r,o=this.rootTuple.members[t].name,a=e.members[t].levelNum,s=o+a,l=this.map,c=l[s];return c?(c.notFirst=!1,c.parentMember&&c.parentMember===n||(c.parentMember=n,c.collapsed=0,c.colSpan=0)):(c=re(\"tr\",null,[]),c.parentMember=n,c.collapsed=0,c.colSpan=0,c.rowSpan=1,l[s]=c,i=l[o+(+a-1)],i&&(r=i.children,c.notFirst=r[1]&&-1===r[1].attr.className.indexOf(\"k-alt\")?!0:i.notFirst),this.rows.splice(this._rowIndex(i)+1,0,c)),c},_measures:function(e,t,n){var i,r,o,a=this.map,s=a.measureRow;for(s||(s=re(\"tr\",null,[]),a.measureRow=s,this.rows.push(s)),r=0,o=e.length;o>r;r++)i=e[r],s.children.push(this._cell(n||\"\",[this._content(i,t)],i));return o},_content:function(e,t){return oe(this.template({member:e,tuple:t}))},_cell:function(e,t,n){var i=re(\"th\",{className:\"k-header\"+e},t);return i.value=n.caption||n.name,i},_buildRows:function(e,n,i){var r,o,a,s,l,c,d,u,h,f,p=e.members,m=p[n],g=p[n+1],v=[],_=0,b=0,w=0;if(m.measure)return this._measures(m.children,e),t;if(u=fe.stringify(se(e,n)),r=this._row(e,n,i),a=m.children,s=a.length,h=this.metadata[u],h||(this.metadata[u]=h=ae(+m.levelNum,n),h.rootLevelNum=+this.rootTuple.members[n].levelNum),this._indexes.push({path:u,tuple:e}),m.hasChildren&&(h.expanded===!1&&(b=h.maxChildren,r.collapsed+=b,h.children=0,s=0),d={className:\"k-icon \"+(s?Be:Le)},d[fe.attr(\"path\")]=u,v.push(re(\"span\",d))),v.push(this._content(m,e)),l=this._cell(r.notFirst?\" k-first\":\"\",v,m),r.children.push(l),r.colSpan+=1,s){for(c=this._cell(\" k-alt\",[this._content(m,e)],m),r.children.push(c);s>_;_++)o=this._buildRows(a[_],n,m);f=o.colSpan,b=o.collapsed,l.attr.colSpan=f,h.children=f,h.members=1,r.colSpan+=f,r.collapsed+=b,r.rowSpan=o.rowSpan+1,g&&(g.measure?f=this._measures(g.children,e,\" k-alt\"):(o=this._buildRows(e,n+1),f=o.colSpan,r.collapsed+=o.collapsed,w=o.collapsed),c.attr.colSpan=f,f-=1,h.members+=f,r.colSpan+=f)}else g&&(g.measure?f=this._measures(g.children,e):(o=this._buildRows(e,n+1),f=o.colSpan,r.collapsed+=o.collapsed,w=o.collapsed),h.members=f,f>1&&(l.attr.colSpan=f,r.colSpan+=f-1));return h.members+w>h.maxMembers&&(h.maxMembers=h.members+w),a=h.children+b,a>h.maxChildren&&(h.maxChildren=a),(c||l).tupleAll=!0,r}}),de=me.extend({init:function(){this.metadata={}},build:function(e){var t=this._tbody(e),n=this._colGroup();return[re(\"table\",null,[n,t])]},reset:function(){this.metadata={}},_rowLength:function(){for(var e=this.rows[0].children,t=0,n=0,i=e[n];i;)t+=i.attr.colSpan||1,i=e[++n];return t},_colGroup:function(){for(var e=this._rowLength(),t=[],n=0;e>n;n++)t.push(re(\"col\",null));return re(\"colgroup\",null,t)},_tbody:function(e){var t=e[0];return this.rootTuple=t,this.rows=[],this.map={},this._indexes=[],t?(this._buildRows(t,0),this._normalize()):this.rows.push(re(\"tr\",null,[re(\"td\",null,[oe(\" \")])])),re(\"tbody\",null,this.rows)},_normalize:function(){for(var e,t,n,i,r=this.rows,o=r.length,a=0,s=this.rootTuple.members,l=s[0].name,c=s.length,d=0,u=this.map;o>a;a++)for(e=r[a],d=0;c>d;d++)n=this[s[d].name],t=e.colSpan[\"dim\"+d],t&&n>t.colSpan&&(t.attr.colSpan=n-t.colSpan+1);e=u[l],i=u[l+\"all\"],e&&(e.children[0].attr.className=\"k-first\"),i&&(i.children[0].attr.className+=\" k-first\")},_row:function(e){var t=re(\"tr\",null,e);return t.rowSpan=1,t.colSpan={},this.rows.push(t),t},_content:function(e,t){return oe(this.template({member:e,tuple:t}))},_cell:function(e,t,n){var i=re(\"td\",{className:e},t);return i.value=n.caption||n.name,i},_buildRows:function(e,t){var n,i,r,o,a,s,l,c,d,u=this.map,h=e.members,f=h[t],p=h[t+1],m=f.children,g=m.length,v=+f.levelNum,_=this.rootTuple.members[t].name,b=se(e,t-1).join(\"\"),w=+this.rootTuple.members[t].levelNum,y=b+(w===v?\"\":f.parentName||\"\"),k=u[y+\"all\"]||u[y],x=v+1,C=[];if(!k||k.hasChild?k=this._row():k.hasChild=!0,f.measure){for(l=k.allCell?\"k-grid-footer\":\"\",k.children.push(this._cell(l,[this._content(m[0],e)],m[0])),k.rowSpan=g,d=1;g>d;d++)this._row([this._cell(l,[this._content(m[d],e)],m[d])]);return k}if(u[b+f.name]=k,n=fe.stringify(se(e,t)),s=this.metadata[n],s||(this.metadata[n]=s=ae(v,t),s.rootLevelNum=w),this._indexes.push({path:n,tuple:e}),f.hasChildren&&(s.expanded===!1&&(g=0,s.children=0),c={className:\"k-icon \"+(g?Be:Le)},c[fe.attr(\"path\")]=n,C.push(re(\"span\",c))),C.push(this._content(f,e)),l=k.allCell&&!g?\"k-grid-footer\":\"\",i=this._cell(l,C,f),i.colSpan=x,k.children.push(i),k.colSpan[\"dim\"+t]=i,(!this[_]||x>this[_])&&(this[_]=x),g){for(k.allCell=!1,k.hasChild=!1,d=0;g>d;d++)o=this._buildRows(m[d],t),k!==o&&(k.rowSpan+=o.rowSpan);k.rowSpan>1&&(i.attr.rowSpan=k.rowSpan),s.children=k.rowSpan,r=this._cell(\"k-grid-footer\",[this._content(f,e)],f),r.colSpan=x,a=this._row([r]),a.colSpan[\"dim\"+t]=r,a.allCell=!0,u[b+f.name+\"all\"]=a,p&&(o=this._buildRows(e,t+1),r.attr.rowSpan=o.rowSpan),k.rowSpan+=a.rowSpan,s.members=a.rowSpan}else p&&(k.hasChild=!1,this._buildRows(e,t+1),(r||i).attr.rowSpan=k.rowSpan,s.members=k.rowSpan);return s.children>s.maxChildren&&(s.maxChildren=s.children),s.members>s.maxMembers&&(s.maxMembers=s.members),k}}),ue=me.extend({init:function(){this.columnAxis={},this.rowAxis={}},build:function(e,n,i){var r,o,a=n.indexes[0],s=n.metadata[a?a.path:t];return this.columnAxis=n,this.rowAxis=i,this.data=e,this.rowLength=s?s.maxChildren+s.maxMembers:n.measures.length||1,this.rowLength||(this.rowLength=1),r=this._tbody(),o=this._colGroup(),[re(\"table\",null,[o,r])]},_colGroup:function(){var e=this.columnAxis.measures.length||1,t=[],n=0;for(this.rows[0]&&(e=this.rows[0].children.length);e>n;n++)t.push(re(\"col\",null));return re(\"colgroup\",null,t)},_tbody:function(){return this.rows=[],this.data[0]?(this.columnIndexes=this._indexes(this.columnAxis,this.rowLength),this.rowIndexes=this._indexes(this.rowAxis,Math.ceil(this.data.length/this.rowLength)),this._buildRows()):this.rows.push(re(\"tr\",null,[re(\"td\",null,[oe(\" \")])])),re(\"tbody\",null,this.rows)},_indexes:function(e,n){var i,r,o,a,s,l,c=[],d=e.indexes,u=e.metadata,h=e.measures,f=h.length||1,p=0,m=0,g=0,v=d.length;if(!v){for(o=0;f>o;o++)c[o]={index:o,measure:h[o],tuple:null};return c}for(;v>g;g++){if(i=d[g],r=u[i.path],s=r.children+r.members,l=0,s&&(s-=f),r.expanded===!1&&r.children!==r.maxChildren&&(l=r.maxChildren),r.parentMember&&r.levelNum===r.rootLevelNum&&(s=-1),s>-1){for(o=0;f>o;o++)a=s+o,r.children||(a+=m),c[s+m+o]={children:s,index:p,measure:h[o],tuple:i.tuple},p+=1;for(;c[m]!==t;)m+=1}if(m===n)break;p+=l}return c},_buildRows:function(){for(var e=this.rowIndexes,t=e.length,n=0;t>n;n++)this.rows.push(this._buildRow(e[n]))},_buildRow:function(e){for(var t,n,i,r,o,a,s,l=e.index*this.rowLength,c=this.columnIndexes,d=c.length,u=[],h=0;d>h;h++)t=c[h],o={},t.children&&(o.className=\"k-alt\"),r=\"\",a=this.data[l+t.index],s=t.measure||e.measure,n={columnTuple:t.tuple,rowTuple:e.tuple,measure:s,dataItem:a},\"\"!==a.value&&s&&s.type&&(\"status\"===s.type?r=this.kpiStatusTemplate(n):\"trend\"===s.type&&(r=this.kpiTrendTemplate(n))),r||(r=this.dataTemplate(n)),i=re(\"td\",o,[oe(r)]),i.value=a.value,u.push(i);return o={},e.children&&(o.className=\"k-grid-footer\"),re(\"tr\",o,u)}}),pe.plugin(ie),fe.PivotExcelExporter=fe.Class.extend({init:function(e){this.options=e,this.widget=e.widget,this.dataSource=this.widget.dataSource},_columns:function(){var e,t=this.widget.columnsHeaderTree.children[0],n=this.widget.rowsHeaderTree.children[0],i=t.children[0].children.length,r=n.children[0].children.length,o=this.widget.options.columnWidth,a=[];if(r&&this.dataSource.data()[0])for(e=0;r>e;e++)a.push({autoWidth:!0});for(e=0;i>e;e++)a.push({autoWidth:!1,width:o});return a},_cells:function(e,t,n){for(var i,r,o,a,s,l=[],c=0,d=e.length;d>c;c++){for(r=[],o=e[c].children,i=o.length,a=0;i>a;a++)s=o[a],r.push({background:\"#7a7a7a\",color:\"#fff\",value:s.value,colSpan:s.attr.colSpan||1,rowSpan:s.attr.rowSpan||1});n&&n(r,c),l.push({cells:r,type:t})}return l},_rows:function(){var e,t,n=this.widget.columnsHeaderTree.children[0],i=this.widget.rowsHeaderTree.children[0],r=n.children[0].children.length,o=i.children[0].children.length,a=n.children[1].children,s=i.children[1].children,l=this.widget.contentTree.children[0].children[1].children,c=this._cells(a,\"header\");return o&&c[0].cells.splice(0,0,{background:\"#7a7a7a\",color:\"#fff\",value:\"\",colSpan:o,rowSpan:a.length}),e=function(e,t){for(var n,i,o=0,a=l[t].children;r>o;o++)n=a[o],i=+n.value,isNaN(i)&&(i=n.value),e.push({background:\"#dfdfdf\",color:\"#333\",value:i,colSpan:1,rowSpan:1})},t=this._cells(s,\"data\",e),c.concat(t)},_freezePane:function(){var e=this.widget.columnsHeaderTree.children[0],t=this.widget.rowsHeaderTree.children[0],n=t.children[0].children.length,i=e.children[1].children;return{colSplit:n,rowSplit:i.length}},workbook:function(){var t;return this.dataSource.view()[0]?(t=e.Deferred(),t.resolve()):t=this.dataSource.fetch(),t.then(e.proxy(function(){return{sheets:[{columns:this._columns(),rows:this._rows(),freezePane:this._freezePane(),filter:null}]}},this))}}),he={extend:function(t){t.events.push(\"excelExport\"),t.options.excel=e.extend(t.options.excel,this.options),t.saveAsExcel=this.saveAsExcel},options:{proxyURL:\"\",filterable:!1,fileName:\"Export.xlsx\"},saveAsExcel:function(){var t=this.options.excel||{},n=new fe.PivotExcelExporter({widget:this});n.workbook().then(e.proxy(function(e){if(!this.trigger(\"excelExport\",{workbook:e})){var n=new fe.ooxml.Workbook(e);fe.saveAs({dataURI:n.toDataURL(),fileName:e.fileName||t.fileName,proxyURL:t.proxyURL,forceProxy:t.forceProxy})}},this))}},fe.PivotExcelMixin=he,fe.ooxml&&fe.ooxml.Workbook&&he.extend(ie.prototype),fe.PDFMixin&&(fe.PDFMixin.extend(ie.prototype),ie.fn._drawPDF=function(){return this._drawPDFShadow({width:this.wrapper.width()},{avoidLinks:this.options.pdf.avoidLinks})})}(window.kendo.jQuery),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.treeview.draganddrop.min\",[\"kendo.data.min\",\"kendo.draganddrop.min\"],e)}(function(){return function(e,t){var n=window.kendo,i=n.ui,r=e.proxy,o=e.extend,a=\"visibility\",s=\"k-state-hover\",l=\"input,a,textarea,.k-multiselect-wrap,select,button,a.k-button>.k-icon,button.k-button>.k-icon,span.k-icon.k-i-expand,span.k-icon.k-i-collapse\";i.HierarchicalDragAndDrop=n.Class.extend({init:function(t,a){this.element=t,this.hovered=t,this.options=o({dragstart:e.noop,drag:e.noop,drop:e.noop,dragend:e.noop},a),this._draggable=new i.Draggable(t,{ignore:l,filter:a.filter,autoScroll:a.autoScroll,cursorOffset:{left:10,top:n.support.mobileOS?-40/n.support.zoomLevel():10},hint:r(this._hint,this),dragstart:r(this.dragstart,this),dragcancel:r(this.dragcancel,this),drag:r(this.drag,this),dragend:r(this.dragend,this),$angular:a.$angular})},_hint:function(e){return\"
            \"+this.options.hintText(e)+\"
            \"},_removeTouchHover:function(){n.support.touch&&this.hovered&&(this.hovered.find(\".\"+s).removeClass(s),this.hovered=!1)},_hintStatus:function(n){var i=this._draggable.hint.find(\".k-drag-status\")[0];return n?(i.className=\"k-icon k-drag-status \"+n,t):e.trim(i.className.replace(/k-(icon|drag-status)/g,\"\"))},dragstart:function(t){this.source=t.currentTarget.closest(this.options.itemSelector),this.options.dragstart(this.source)&&t.preventDefault(),this.dropHint=this.options.reorderable?e(\"
            \").css(a,\"hidden\").appendTo(this.element):e()},drag:function(t){var i,r,o,l,c,d,u,h,f,p,m,g=this.options,v=this.source,_=this.dropTarget=e(n.eventTarget(t)),b=_.closest(g.allowedContainers);b.length?v[0]==_[0]||g.contains(v[0],_[0])?m=\"k-denied\":(m=\"k-insert-middle\",f=g.itemFromTarget(_),i=f.item,i.length?(this._removeTouchHover(),r=i.outerHeight(),l=f.content,g.reorderable?(c=r/(l.length>0?4:2),o=n.getOffset(i).top,d=o+c>t.y.location,u=t.y.location>o+r-c,h=l.length&&!d&&!u):(h=!0,d=!1,u=!1),this.hovered=h?b:!1,this.dropHint.css(a,h?\"hidden\":\"visible\"),this._lastHover&&this._lastHover[0]!=l[0]&&this._lastHover.removeClass(s),this._lastHover=l.toggleClass(s,h),h?m=\"k-add\":(p=i.position(),p.top+=d?0:r,this.dropHint.css(p)[d?\"prependTo\":\"appendTo\"](g.dropHintContainer(i)),d&&f.first&&(m=\"k-insert-top\"),u&&f.last&&(m=\"k-insert-bottom\"))):_[0]!=this.dropHint[0]&&(this._lastHover&&this._lastHover.removeClass(s),m=e.contains(this.element[0],b[0])?\"k-denied\":\"k-add\")):(m=\"k-denied\",this._removeTouchHover()),this.options.drag({originalEvent:t.originalEvent,source:v,target:_,pageY:t.y.location,pageX:t.x.location,status:m.substring(2),setStatus:function(e){m=e}}),\"k-denied\"==m&&this._lastHover&&this._lastHover.removeClass(s),0!==m.indexOf(\"k-insert\")&&this.dropHint.css(a,\"hidden\"),this._hintStatus(m)},dragcancel:function(){this.dropHint.remove()},dragend:function(e){var n,i,r,o=\"over\",l=this.source,c=this.dropHint,d=this.dropTarget;return\"visible\"==c.css(a)?(o=this.options.dropPositionFrom(c),n=c.closest(this.options.itemSelector)):d&&(n=d.closest(this.options.itemSelector),n.length||(n=d.closest(this.options.allowedContainers))),i={originalEvent:e.originalEvent,source:l[0],destination:n[0],valid:\"k-denied\"!=this._hintStatus(),setValid:function(e){this.valid=e},dropTarget:d[0],position:o},r=this.options.drop(i),c.remove(),this._removeTouchHover(),this._lastHover&&this._lastHover.removeClass(s),!i.valid||r?(this._draggable.dropped=i.valid,t):(this._draggable.dropped=!0,this.options.dragend({originalEvent:e.originalEvent,source:l,destination:n,position:o}),t)},destroy:function(){this._lastHover=this.hovered=null,this._draggable.destroy()}})}(window.kendo.jQuery),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.treeview.min\",[\"kendo.data.min\",\"kendo.treeview.draganddrop.min\"],e)}(function(){return function(e,t){function n(e){return function(t){var n=t.children(\".k-animation-container\");return n.length||(n=t),n.children(e)}}function i(e){return f.template(e,{useWithBlock:!1})}function r(e){return e.find(\"> div .k-checkbox-wrapper [type=checkbox]\")}function o(e){return function(t,n){n=n.closest(W);var i,r=n.parent();return r.parent().is(\"li\")&&(i=r.parent()),this._dataSourceMove(t,r,i,function(t,i){return this._insert(t.data(),i,n.index()+e)})}}function a(t,n){for(var i;t&&\"ul\"!=t.nodeName.toLowerCase();)i=t,t=t.nextSibling,3==i.nodeType&&(i.nodeValue=e.trim(i.nodeValue)),h.test(i.className)?n.insertBefore(i,n.firstChild):n.appendChild(i)}function s(t){var n=t.children(\"div\"),i=t.children(\"ul\"),r=n.children(\".k-icon\"),o=t.children(\":checkbox\"),s=n.children(\".k-in\");t.hasClass(\"k-treeview\")||(n.length||(n=e(\"
            \").prependTo(t)),!r.length&&i.length?r=e(\"\").prependTo(n):i.length&&i.children().length||(r.remove(),i.remove()),o.length&&e(\"\").appendTo(n).append(o),s.length||(s=t.children(\"a\").eq(0).addClass(\"k-in\"),s.length||(s=e(\"\")),s.appendTo(n),n.length&&a(n[0].nextSibling,s[0])))}var l,c,d,u,h,f=window.kendo,p=f.ui,m=f.data,g=e.extend,v=f.template,_=e.isArray,b=p.Widget,w=m.HierarchicalDataSource,y=e.proxy,k=f.keys,x=\".kendoTreeView\",C=\"select\",S=\"check\",T=\"navigate\",D=\"expand\",A=\"change\",E=\"error\",I=\"checked\",F=\"indeterminate\",M=\"collapse\",R=\"dragstart\",P=\"drag\",z=\"drop\",B=\"dragend\",L=\"dataBound\",H=\"click\",N=\"undefined\",O=\"k-state-hover\",V=\"k-treeview\",U=\":visible\",W=\".k-item\",j=\"string\",q=\"aria-selected\",G=\"aria-disabled\",$={text:\"dataTextField\",url:\"dataUrlField\",spriteCssClass:\"dataSpriteCssClassField\",imageUrl:\"dataImageUrlField\"},Y=function(e){return\"object\"==typeof HTMLElement?e instanceof HTMLElement:e&&\"object\"==typeof e&&1===e.nodeType&&typeof e.nodeName===j};c=n(\".k-group\"),d=n(\".k-group,.k-content\"),u=function(e){return e.children(\"div\").children(\".k-icon\")},h=/k-sprite/,l=f.ui.DataBoundWidget.extend({init:function(e,t){var n,i=this,r=!1,o=t&&!!t.dataSource;_(t)&&(t={dataSource:t}),t&&typeof t.loadOnDemand==N&&_(t.dataSource)&&(t.loadOnDemand=!1),b.prototype.init.call(i,e,t),e=i.element,t=i.options,n=e.is(\"ul\")&&e||e.hasClass(V)&&e.children(\"ul\"),r=!o&&n.length,r&&(t.dataSource.list=n),i._animation(),i._accessors(),i._templates(),e.hasClass(V)?(i.wrapper=e,i.root=e.children(\"ul\").eq(0)):(i._wrapper(),n&&(i.root=e,i._group(i.wrapper))),i._tabindex(),i.root.attr(\"role\",\"tree\"),i._dataSource(r),i._attachEvents(),i._dragging(),r?i._syncHtmlAndDataSource():t.autoBind&&(i._progress(!0),i.dataSource.fetch()),t.checkboxes&&t.checkboxes.checkChildren&&i.updateIndeterminate(),i.element[0].id&&(i._ariaId=f.format(\"{0}_tv_active\",i.element[0].id)),f.notify(i)},_attachEvents:function(){var t=this,n=\".k-in:not(.k-state-selected,.k-state-disabled)\",i=\"mouseenter\";t.wrapper.on(i+x,\".k-in.k-state-selected\",function(e){e.preventDefault()}).on(i+x,n,function(){e(this).addClass(O)}).on(\"mouseleave\"+x,n,function(){e(this).removeClass(O)}).on(H+x,n,y(t._click,t)).on(\"dblclick\"+x,\".k-in:not(.k-state-disabled)\",y(t._toggleButtonClick,t)).on(H+x,\".k-plus,.k-minus\",y(t._toggleButtonClick,t)).on(\"keydown\"+x,y(t._keydown,t)).on(\"focus\"+x,y(t._focus,t)).on(\"blur\"+x,y(t._blur,t)).on(\"mousedown\"+x,\".k-in,.k-checkbox-wrapper :checkbox,.k-plus,.k-minus\",y(t._mousedown,t)).on(\"change\"+x,\".k-checkbox-wrapper :checkbox\",y(t._checkboxChange,t)).on(\"click\"+x,\".k-checkbox-wrapper :checkbox\",y(t._checkboxClick,t)).on(\"click\"+x,\".k-request-retry\",y(t._retryRequest,t)).on(\"click\"+x,function(n){e(n.target).is(\":kendoFocusable\")||t.focus()})},_checkboxClick:function(t){var n=e(t.target);n.data(F)&&(n.data(F,!1).prop(F,!1).prop(I,!0),this._checkboxChange(t))},_syncHtmlAndDataSource:function(e,t){var n,i,o,a,s,l,c,d;for(e=e||this.root,t=t||this.dataSource,n=t.view(),i=f.attr(\"uid\"),o=f.attr(\"expanded\"),a=this.options.checkboxes,s=e.children(\"li\"),l=0;s.length>l;l++)d=n[l],c=s.eq(l),c.attr(\"role\",\"treeitem\").attr(i,d.uid),d.expanded=\"true\"===c.attr(o),a&&(d.checked=r(c).prop(I)),this._syncHtmlAndDataSource(c.children(\"ul\"),d.children)},_animation:function(){var e=this.options,t=e.animation;t===!1?t={expand:{effects:{}},collapse:{hide:!0,effects:{}}}:t.collapse&&\"effects\"in t.collapse||(t.collapse=g({reverse:!0},t.expand)),g(t.collapse,{hide:!0}),e.animation=t},_dragging:function(){var t,n=this.options.dragAndDrop,i=this.dragging;n&&!i?(t=this,this.dragging=new p.HierarchicalDragAndDrop(this.element,{reorderable:!0,$angular:this.options.$angular,autoScroll:this.options.autoScroll,filter:\"div:not(.k-state-disabled) .k-in\",allowedContainers:\".k-treeview\",itemSelector:\".k-treeview .k-item\",hintText:y(this._hintText,this),contains:function(t,n){return e.contains(t,n)},dropHintContainer:function(e){return e},itemFromTarget:function(e){var t=e.closest(\".k-top,.k-mid,.k-bot\");return{item:t,content:e.closest(\".k-in\"),first:t.hasClass(\"k-top\"),last:t.hasClass(\"k-bot\")}},dropPositionFrom:function(e){return e.prevAll(\".k-in\").length>0?\"after\":\"before\"},dragstart:function(e){return t.trigger(R,{sourceNode:e[0]})},drag:function(e){t.trigger(P,{originalEvent:e.originalEvent,sourceNode:e.source[0],dropTarget:e.target[0],pageY:e.pageY,pageX:e.pageX,statusClass:e.status,setStatusClass:e.setStatus})},drop:function(e){return t.trigger(z,{originalEvent:e.originalEvent,sourceNode:e.source,destinationNode:e.destination,valid:e.valid,setValid:function(t){this.valid=t,e.setValid(t)},dropTarget:e.dropTarget,dropPosition:e.position})},dragend:function(e){function n(n){t.updateIndeterminate(),t.trigger(B,{originalEvent:e.originalEvent,sourceNode:n&&n[0],destinationNode:r[0],dropPosition:o})}var i=e.source,r=e.destination,o=e.position;\"over\"==o?t.append(i,r,n):(\"before\"==o?i=t.insertBefore(i,r):\"after\"==o&&(i=t.insertAfter(i,r)),n(i))}})):!n&&i&&(i.destroy(),this.dragging=null)},_hintText:function(e){return this.templates.dragClue({item:this.dataItem(e),treeview:this.options})},_templates:function(){var e=this,t=e.options,n=y(e._fieldAccessor,e);t.template&&typeof t.template==j?t.template=v(t.template):t.template||(t.template=i(\"# var text = \"+n(\"text\")+\"(data.item); ## if (typeof data.item.encoded != 'undefined' && data.item.encoded === false) {##= text ## } else { ##: text ## } #\")),e._checkboxes(),e.templates={wrapperCssClass:function(e,t){var n=\"k-item\",i=t.index;return e.firstLevel&&0===i&&(n+=\" k-first\"),i==e.length-1&&(n+=\" k-last\"),n},cssClass:function(e,t){var n=\"\",i=t.index,r=e.length-1;return e.firstLevel&&0===i&&(n+=\"k-top \"),n+=0===i&&i!=r?\"k-top\":i==r?\"k-bot\":\"k-mid\"},textClass:function(e){var t=\"k-in\";return e.enabled===!1&&(t+=\" k-state-disabled\"),e.selected===!0&&(t+=\" k-state-selected\"),t},toggleButtonClass:function(e){var t=\"k-icon\";return t+=e.expanded!==!0?\" k-plus\":\" k-minus\",e.enabled===!1&&(t+=\"-disabled\"),t},groupAttributes:function(e){var t=\"\";return e.firstLevel||(t=\"role='group'\"),t+(e.expanded!==!0?\" style='display:none'\":\"\")},groupCssClass:function(e){var t=\"k-group\";return e.firstLevel&&(t+=\" k-treeview-lines\"),t},dragClue:i(\"#= data.treeview.template(data) #\"),group:i(\"
              #= data.renderItems(data) #
            \"),itemContent:i(\"# var imageUrl = \"+n(\"imageUrl\")+\"(data.item); ## var spriteCssClass = \"+n(\"spriteCssClass\")+\"(data.item); ## if (imageUrl) { ## } ## if (spriteCssClass) { ## } ##= data.treeview.template(data) #\"),itemElement:i(\"# var item = data.item, r = data.r; ## var url = \"+n(\"url\")+\"(item); #
            # if (item.hasChildren) { ## } ## if (data.treeview.checkboxes) { ##= data.treeview.checkboxes.template(data) ## } ## var tag = url ? 'a' : 'span'; ## var textAttr = url ? ' href=\\\\'' + url + '\\\\'' : ''; #<#=tag# class='#= r.textClass(item) #'#= textAttr #>#= r.itemContent(data) #
            \"),item:i(\"# var item = data.item, r = data.r; #
          • #= r.itemElement(data) #
          • \"),loading:i(\"
            #: data.messages.loading #\"),retry:i(\"#: data.messages.requestFailed # \")}},items:function(){return this.element.find(\".k-item > div:first-child\")},setDataSource:function(t){var n=this.options;n.dataSource=t,this._dataSource(),n.checkboxes&&n.checkboxes.checkChildren&&this.dataSource.one(\"change\",e.proxy(this.updateIndeterminate,this,null)),this.options.autoBind&&this.dataSource.fetch()},_bindDataSource:function(){this._refreshHandler=y(this.refresh,this),this._errorHandler=y(this._error,this),this.dataSource.bind(A,this._refreshHandler),this.dataSource.bind(E,this._errorHandler)},_unbindDataSource:function(){var e=this.dataSource;e&&(e.unbind(A,this._refreshHandler),e.unbind(E,this._errorHandler))},_dataSource:function(e){function t(e){for(var n=0;e.length>n;n++)e[n]._initChildren(),e[n].children.fetch(),t(e[n].children.view())}var n=this,i=n.options,r=i.dataSource;r=_(r)?{data:r}:r,n._unbindDataSource(),r.fields||(r.fields=[{field:\"text\"},{field:\"url\"},{field:\"spriteCssClass\"},{field:\"imageUrl\"}]),n.dataSource=r=w.create(r),e&&(r.fetch(),t(r.view())),n._bindDataSource()},events:[R,P,z,B,L,D,M,C,A,T,S],options:{name:\"TreeView\",dataSource:{},animation:{expand:{effects:\"expand:vertical\",duration:200},collapse:{duration:100}},messages:{loading:\"Loading...\",requestFailed:\"Request failed.\",retry:\"Retry\"},dragAndDrop:!1,checkboxes:!1,autoBind:!0,autoScroll:!1,loadOnDemand:!0,template:\"\",dataTextField:null},_accessors:function(){var e,t,n,i=this,r=i.options,o=i.element;for(e in $)t=r[$[e]],n=o.attr(f.attr(e+\"-field\")),!t&&n&&(t=n),t||(t=e),_(t)||(t=[t]),r[$[e]]=t},_fieldAccessor:function(t){var n=this.options[$[t]],i=n.length,r=\"(function(item) {\";return 0===i?r+=\"return item['\"+t+\"'];\":(r+=\"var levels = [\"+e.map(n,function(e){return\"function(d){ return \"+f.expr(e)+\"}\"}).join(\",\")+\"];\",r+=\"return levels[Math.min(item.level(), \"+i+\"-1)](item)\"),r+=\"})\"},setOptions:function(e){b.fn.setOptions.call(this,e),this._animation(),this._dragging(),this._templates()},_trigger:function(e,t){return this.trigger(e,{node:t.closest(W)[0]})},_setChecked:function(t,n){if(t&&e.isFunction(t.view))for(var i=0,r=t.view();r.length>i;i++)r[i][I]=n,r[i].children&&this._setChecked(r[i].children,n)},_setIndeterminate:function(e){var t,n,i,o=c(e),a=!0;if(o.length&&(t=r(o.children()),n=t.length)){if(n>1){for(i=1;n>i;i++)if(t[i].checked!=t[i-1].checked||t[i].indeterminate||t[i-1].indeterminate){a=!1;break}}else a=!t[0].indeterminate;return r(e).data(F,!a).prop(F,!a).prop(I,a&&t[0].checked)}},updateIndeterminate:function(e){var t,n,i;if(e=e||this.wrapper,t=c(e).children(),t.length){for(n=0;t.length>n;n++)this.updateIndeterminate(t.eq(n));i=this._setIndeterminate(e),i&&i.prop(I)&&(this.dataItem(e).checked=!0)}},_bubbleIndeterminate:function(e){if(e.length){var t,n=this.parent(e);n.length&&(this._setIndeterminate(n),t=n.children(\"div\").find(\".k-checkbox-wrapper :checkbox\"),t.prop(F)===!1?this.dataItem(n).set(I,t.prop(I)):delete this.dataItem(n).checked,this._bubbleIndeterminate(n))}},_checkboxChange:function(t){var n=e(t.target),i=n.prop(I),r=n.closest(W),o=this.dataItem(r);o.checked!=i&&(o.set(I,i),this._trigger(S,r))},_toggleButtonClick:function(t){this.toggle(e(t.target).closest(W))},_mousedown:function(t){var n=e(t.currentTarget).closest(W);this._clickTarget=n,this.current(n)},_focusable:function(e){return e&&e.length&&e.is(\":visible\")&&!e.find(\".k-in:first\").hasClass(\"k-state-disabled\")},_focus:function(){var t=this.select(),n=this._clickTarget;f.support.touch||(n&&n.length&&(t=n),this._focusable(t)||(t=this.current()),this._focusable(t)||(t=this._nextVisible(e())),this.current(t))},focus:function(){var e,t=this.wrapper,n=t[0],i=[],r=[],o=document.documentElement;do n=n.parentNode,n.scrollHeight>n.clientHeight&&(i.push(n),r.push(n.scrollTop));while(n!=o);for(t.focus(),e=0;i.length>e;e++)i[e].scrollTop=r[e]},_blur:function(){this.current().find(\".k-in:first\").removeClass(\"k-state-focused\")},_enabled:function(e){return!e.children(\"div\").children(\".k-in\").hasClass(\"k-state-disabled\")},parent:function(t){var n,i,r=/\\bk-treeview\\b/,o=/\\bk-item\\b/;typeof t==j&&(t=this.element.find(t)),Y(t)||(t=t[0]),i=o.test(t.className);do t=t.parentNode,o.test(t.className)&&(i?n=t:i=!0);while(!r.test(t.className)&&!n);return e(n)},_nextVisible:function(e){function t(e){for(;e.length&&!e.next().length;)e=i.parent(e);return e.next().length?e.next():e}var n,i=this,r=i._expanded(e);return e.length&&e.is(\":visible\")?r?(n=c(e).children().first(),n.length||(n=t(e))):n=t(e):n=i.root.children().eq(0),i._enabled(n)||(n=i._nextVisible(n)),n},_previousVisible:function(e){var t,n,i=this;if(!e.length||e.prev().length)for(n=e.length?e.prev():i.root.children().last();i._expanded(n)&&(t=c(n).children().last(),t.length);)n=t;else n=i.parent(e)||e;return i._enabled(n)||(n=i._previousVisible(n)),n},_keydown:function(n){var i,r=this,o=n.keyCode,a=r.current(),s=r._expanded(a),l=a.find(\".k-checkbox-wrapper:first :checkbox\"),c=f.support.isRtl(r.element);n.target==n.currentTarget&&(!c&&o==k.RIGHT||c&&o==k.LEFT?s?i=r._nextVisible(a):r.expand(a):!c&&o==k.LEFT||c&&o==k.RIGHT?s?r.collapse(a):(i=r.parent(a),r._enabled(i)||(i=t)):o==k.DOWN?i=r._nextVisible(a):o==k.UP?i=r._previousVisible(a):o==k.HOME?i=r._nextVisible(e()):o==k.END?i=r._previousVisible(e()):o==k.ENTER?a.find(\".k-in:first\").hasClass(\"k-state-selected\")||r._trigger(C,a)||r.select(a):o==k.SPACEBAR&&l.length&&(l.prop(I,!l.prop(I)).data(F,!1).prop(F,!1),r._checkboxChange({target:l}),i=a),i&&(n.preventDefault(),a[0]!=i[0]&&(r._trigger(T,i),r.current(i))))},_click:function(t){var n,i=this,r=e(t.currentTarget),o=d(r.closest(W)),a=r.attr(\"href\");n=a?\"#\"==a||a.indexOf(\"#\"+this.element.id+\"-\")>=0:o.length&&!o.children().length,n&&t.preventDefault(),r.hasClass(\".k-state-selected\")||i._trigger(C,r)||i.select(r)},_wrapper:function(){var e,t,n=this,i=n.element,r=\"k-widget k-treeview\";i.is(\"ul\")?(e=i.wrap(\"
            \").parent(),t=i):(e=i,t=e.children(\"ul\").eq(0)),n.wrapper=e.addClass(r),n.root=t},_group:function(e){\r\nvar t=this,n=e.hasClass(V),i={firstLevel:n,expanded:n||t._expanded(e)},r=e.children(\"ul\");r.addClass(t.templates.groupCssClass(i)).css(\"display\",i.expanded?\"\":\"none\"),t._nodes(r,i)},_nodes:function(t,n){var i,r=this,o=t.children(\"li\");n=g({length:o.length},n),o.each(function(t,o){o=e(o),i={index:t,expanded:r._expanded(o)},s(o),r._updateNodeClasses(o,n,i),r._group(o)})},_checkboxes:function(){var e,t=this.options,n=t.checkboxes;n&&(e=\"\",n=g({template:e},t.checkboxes),typeof n.template==j&&(n.template=v(n.template)),t.checkboxes=n)},_updateNodeClasses:function(e,t,n){var i=e.children(\"div\"),r=e.children(\"ul\"),o=this.templates;e.hasClass(\"k-treeview\")||(n=n||{},n.expanded=typeof n.expanded!=N?n.expanded:this._expanded(e),n.index=typeof n.index!=N?n.index:e.index(),n.enabled=typeof n.enabled!=N?n.enabled:!i.children(\".k-in\").hasClass(\"k-state-disabled\"),t=t||{},t.firstLevel=typeof t.firstLevel!=N?t.firstLevel:e.parent().parent().hasClass(V),t.length=typeof t.length!=N?t.length:e.parent().children().length,e.removeClass(\"k-first k-last\").addClass(o.wrapperCssClass(t,n)),i.removeClass(\"k-top k-mid k-bot\").addClass(o.cssClass(t,n)),i.children(\".k-in\").removeClass(\"k-in k-state-default k-state-disabled\").addClass(o.textClass(n)),(r.length||\"true\"==e.attr(\"data-hasChildren\"))&&(i.children(\".k-icon\").removeClass(\"k-plus k-minus k-plus-disabled k-minus-disabled\").addClass(o.toggleButtonClass(n)),r.addClass(\"k-group\")))},_processNodes:function(t,n){var i=this;i.element.find(t).each(function(t,r){n.call(i,t,e(r).closest(W))})},dataItem:function(t){var n=e(t).closest(W).attr(f.attr(\"uid\")),i=this.dataSource;return i&&i.getByUid(n)},_insertNode:function(t,n,i,r,o){var a,l,d,u,h=this,f=c(i),p=f.children().length+1,m={firstLevel:i.hasClass(V),expanded:!o,length:p},g=\"\",v=function(e,t){e.appendTo(t)};for(d=0;t.length>d;d++)u=t[d],u.index=n+d,g+=h._renderItem({group:m,item:u});if(l=e(g),l.length){for(h.angular(\"compile\",function(){return{elements:l.get(),data:t.map(function(e){return{dataItem:e}})}}),f.length||(f=e(h._renderGroup({group:m})).appendTo(i)),r(l,f),i.hasClass(\"k-item\")&&(s(i),h._updateNodeClasses(i)),h._updateNodeClasses(l.prev().first()),h._updateNodeClasses(l.next().last()),d=0;t.length>d;d++)u=t[d],u.hasChildren&&(a=u.children.data(),a.length&&h._insertNode(a,u.index,l.eq(d),v,!h._expanded(l.eq(d))));return l}},_updateNodes:function(t,n){function i(e,t){e.find(\".k-checkbox-wrapper :checkbox\").prop(I,t).data(F,!1).prop(F,!1)}var r,o,a,s,l,c,u,h=this,f={treeview:h.options,item:s},m=\"expanded\"!=n&&\"checked\"!=n;if(\"selected\"==n)s=t[0],o=h.findByUid(s.uid).find(\".k-in:first\").removeClass(\"k-state-hover\").toggleClass(\"k-state-selected\",s[n]).end(),s[n]&&h.current(o),o.attr(q,!!s[n]);else{for(u=e.map(t,function(e){return h.findByUid(e.uid).children(\"div\")}),m&&h.angular(\"cleanup\",function(){return{elements:u}}),r=0;t.length>r;r++)f.item=s=t[r],a=u[r],o=a.parent(),m&&a.children(\".k-in\").html(h.templates.itemContent(f)),n==I?(l=s[n],i(a,l),h.options.checkboxes.checkChildren&&(i(o.children(\".k-group\"),l),h._setChecked(s.children,l),h._bubbleIndeterminate(o))):\"expanded\"==n?h._toggle(o,s,s[n]):\"enabled\"==n&&(o.find(\".k-checkbox-wrapper :checkbox\").prop(\"disabled\",!s[n]),c=!d(o).is(U),o.removeAttr(G),s[n]||(s.selected&&s.set(\"selected\",!1),s.expanded&&s.set(\"expanded\",!1),c=!0,o.attr(q,!1).attr(G,!0)),h._updateNodeClasses(o,{},{enabled:s[n],expanded:!c})),a.length&&this.trigger(\"itemChange\",{item:a,data:s,ns:p});m&&h.angular(\"compile\",function(){return{elements:u,data:e.map(t,function(e){return[{dataItem:e}]})}})}},_appendItems:function(e,t,n){var i=c(n),r=i.children(),o=!this._expanded(n);typeof e==N&&(e=r.length),this._insertNode(t,e,n,function(t,n){e>=r.length?t.appendTo(n):t.insertBefore(r.eq(e))},o),this._expanded(n)&&(this._updateNodeClasses(n),c(n).css(\"display\",\"block\"))},_refreshChildren:function(e,t,n){var i,r,o,a=this.options,l=a.loadOnDemand,d=a.checkboxes&&a.checkboxes.checkChildren;if(c(e).empty(),t.length)for(this._appendItems(n,t,e),r=c(e).children(),l&&d&&this._bubbleIndeterminate(r.last()),i=0;r.length>i;i++)o=r.eq(i),this.trigger(\"itemChange\",{item:o.children(\"div\"),data:this.dataItem(o),ns:p});else s(e)},_refreshRoot:function(t){var n,i,r,o=this._renderGroup({items:t,group:{firstLevel:!0,expanded:!0}});for(this.root.length?(this._angularItems(\"cleanup\"),n=e(o),this.root.attr(\"class\",n.attr(\"class\")).html(n.html())):this.root=this.wrapper.html(o).children(\"ul\"),this.root.attr(\"role\",\"tree\"),i=this.root.children(\".k-item\"),r=0;t.length>r;r++)this.trigger(\"itemChange\",{item:i.eq(r),data:t[r],ns:p});this._angularItems(\"compile\")},refresh:function(e){var n,i,r=e.node,o=e.action,a=e.items,s=this.wrapper,l=this.options,c=l.loadOnDemand,d=l.checkboxes&&l.checkboxes.checkChildren;if(e.field){if(!a[0]||!a[0].level)return;return this._updateNodes(a,e.field)}if(r&&(s=this.findByUid(r.uid),this._progress(s,!1)),d&&\"remove\"!=o){for(i=!1,n=0;a.length>n;n++)if(\"checked\"in a[n]){i=!0;break}if(!i&&r&&r.checked)for(n=0;a.length>n;n++)a[n].checked=!0}if(\"add\"==o?this._appendItems(e.index,a,s):\"remove\"==o?this._remove(this.findByUid(a[0].uid),!1):\"itemchange\"==o?this._updateNodes(a):\"itemloaded\"==o?this._refreshChildren(s,a,e.index):this._refreshRoot(a),\"remove\"!=o)for(n=0;a.length>n;n++)(!c||a[n].expanded)&&a[n].load();this.trigger(L,{node:r?s:t})},_error:function(e){var t=e.node&&this.findByUid(e.node.uid),n=this.templates.retry({messages:this.options.messages});t?(this._progress(t,!1),this._expanded(t,!1),u(t).addClass(\"k-i-refresh\"),e.node.loaded(!1)):(this._progress(!1),this.element.html(n))},_retryRequest:function(e){e.preventDefault(),this.dataSource.fetch()},expand:function(e){this._processNodes(e,function(e,t){this.toggle(t,!0)})},collapse:function(e){this._processNodes(e,function(e,t){this.toggle(t,!1)})},enable:function(e,t){t=2==arguments.length?!!t:!0,this._processNodes(e,function(e,n){this.dataItem(n).set(\"enabled\",t)})},current:function(n){var i=this,r=i._current,o=i.element,a=i._ariaId;return arguments.length>0&&n&&n.length?(r&&(r[0].id===a&&r.removeAttr(\"id\"),r.find(\".k-in:first\").removeClass(\"k-state-focused\")),r=i._current=e(n,o).closest(W),r.find(\".k-in:first\").addClass(\"k-state-focused\"),a=r[0].id||a,a&&(i.wrapper.removeAttr(\"aria-activedescendant\"),r.attr(\"id\",a),i.wrapper.attr(\"aria-activedescendant\",a)),t):(r||(r=i._nextVisible(e())),r)},select:function(n){var i=this,r=i.element;return arguments.length?(n=e(n,r).closest(W),r.find(\".k-state-selected\").each(function(){var t=i.dataItem(this);t?(t.set(\"selected\",!1),delete t.selected):e(this).removeClass(\"k-state-selected\")}),n.length&&i.dataItem(n).set(\"selected\",!0),i.trigger(A),t):r.find(\".k-state-selected\").closest(W)},_toggle:function(e,t,n){var i,r=this.options,o=d(e),a=n?\"expand\":\"collapse\";o.data(\"animating\")||this._trigger(a,e)||(this._expanded(e,n),i=t&&t.loaded(),n&&!i?(r.loadOnDemand&&this._progress(e,!0),o.remove(),t.load()):(this._updateNodeClasses(e,{},{expanded:n}),n||o.css(\"height\",o.height()).css(\"height\"),o.kendoStop(!0,!0).kendoAnimate(g({reset:!0},r.animation[a],{complete:function(){n&&o.css(\"height\",\"\")}}))))},toggle:function(t,n){t=e(t),u(t).is(\".k-minus,.k-plus,.k-minus-disabled,.k-plus-disabled\")&&(1==arguments.length&&(n=!this._expanded(t)),this._expanded(t,n))},destroy:function(){var e=this;b.fn.destroy.call(e),e.wrapper.off(x),e._unbindDataSource(),e.dragging&&e.dragging.destroy(),f.destroy(e.element),e.root=e.wrapper=e.element=null},_expanded:function(e,n){var i=f.attr(\"expanded\"),r=this.dataItem(e);return 1==arguments.length?\"true\"===e.attr(i)||r&&r.expanded:(d(e).data(\"animating\")||(r&&(r.set(\"expanded\",n),n=r.expanded),n?(e.attr(i,\"true\"),e.attr(\"aria-expanded\",\"true\")):(e.removeAttr(i),e.attr(\"aria-expanded\",\"false\"))),t)},_progress:function(e,t){var n=this.element,i=this.templates.loading({messages:this.options.messages});1==arguments.length?(t=e,t?n.html(i):n.empty()):u(e).toggleClass(\"k-loading\",t).removeClass(\"k-i-refresh\")},text:function(e,n){var i=this.dataItem(e),r=this.options[$.text],o=i.level(),a=r.length,s=r[Math.min(o,a-1)];return n?(i.set(s,n),t):i[s]},_objectOrSelf:function(t){return e(t).closest(\"[data-role=treeview]\").data(\"kendoTreeView\")||this},_dataSourceMove:function(t,n,i,r){var o,a=this._objectOrSelf(i||n),s=a.dataSource,l=e.Deferred().resolve().promise();return i&&i[0]!=a.element[0]&&(o=a.dataItem(i),o.loaded()||(a._progress(i,!0),l=o.load()),i!=this.root&&(s=o.children,s&&s instanceof w||(o._initChildren(),o.loaded(!0),s=o.children))),t=this._toObservableData(t),r.call(a,s,t,l)},_toObservableData:function(t){var n,i,r=t;return(t instanceof window.jQuery||Y(t))&&(n=this._objectOrSelf(t).dataSource,i=e(t).attr(f.attr(\"uid\")),r=n.getByUid(i),r&&(r=n.remove(r))),r},_insert:function(e,t,n){t instanceof f.data.ObservableArray?t=t.toJSON():_(t)||(t=[t]);var i=e.parent();return i&&i._initChildren&&(i.hasChildren=!0,i._initChildren()),e.splice.apply(e,[n,0].concat(t)),this.findByUid(e[n].uid)},insertAfter:o(1),insertBefore:o(0),append:function(t,n,i){var r=this.root;return n&&(r=c(n)),this._dataSourceMove(t,r,n,function(t,r,o){function a(){n&&l._expanded(n,!0);var e=t.data(),i=Math.max(e.length,0);return l._insert(e,r,i)}var s,l=this;return o.then(function(){s=a(),(i=i||e.noop)(s)}),s||null})},_remove:function(t,n){var i,r,o,a=this;return t=e(t,a.element),this.angular(\"cleanup\",function(){return{elements:t.get()}}),i=t.parent().parent(),r=t.prev(),o=t.next(),t[n?\"detach\":\"remove\"](),i.hasClass(\"k-item\")&&(s(i),a._updateNodeClasses(i)),a._updateNodeClasses(r),a._updateNodeClasses(o),t},remove:function(e){var t=this.dataItem(e);t&&this.dataSource.remove(t)},detach:function(e){return this._remove(e,!0)},findByText:function(t){return e(this.element).find(\".k-in\").filter(function(n,i){return e(i).text()==t}).closest(W)},findByUid:function(t){var n,i,r=this.element.find(\".k-item\"),o=f.attr(\"uid\");for(i=0;r.length>i;i++)if(r[i].getAttribute(o)==t){n=r[i];break}return e(n)},expandPath:function(n,i){function r(e,t,n){e&&!e.loaded()?e.set(\"expanded\",!0):t.call(n)}var o,a,s;for(n=n.slice(0),o=this,a=this.dataSource,s=a.get(n[0]),i=i||e.noop;n.length>0&&s&&(s.expanded||s.loaded());)s.set(\"expanded\",!0),n.shift(),s=a.get(n[0]);return n.length?(a.bind(\"change\",function(e){var t,s=e.node&&e.node.id;s&&s===n[0]&&(n.shift(),n.length?(t=a.get(n[0]),r(t,i,o)):i.call(o))}),r(s,i,o),t):i.call(o)},_parentIds:function(e){for(var t=e&&e.parentNode(),n=[];t&&t.parentNode;)n.unshift(t.id),t=t.parentNode();return n},expandTo:function(e){e instanceof f.data.Node||(e=this.dataSource.get(e));var t=this._parentIds(e);this.expandPath(t)},_renderItem:function(e){return e.group||(e.group={}),e.treeview=this.options,e.r=this.templates,this.templates.item(e)},_renderGroup:function(e){var t=this;return e.renderItems=function(e){var n=\"\",i=0,r=e.items,o=r?r.length:0,a=e.group;for(a.length=o;o>i;i++)e.group=a,e.item=r[i],e.item.index=i,n+=t._renderItem(e);return n},e.r=t.templates,t.templates.group(e)}}),p.plugin(l)}(window.kendo.jQuery),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.pivot.fieldmenu.min\",[\"kendo.pivotgrid.min\",\"kendo.menu.min\",\"kendo.window.min\",\"kendo.treeview.min\",\"kendo.dropdownlist.min\"],e)}(function(){return function(e,t){function n(e,t){var n,i,r=[];for(n=0,i=e.length;i>n;n++)e[n].field!==t&&r.push(e[n]);return r}function i(e,t,n){var i,r,o,a;if(!e)return[];for(e=e.filters,i=0,r=[],o=e.length;o>i;i++)a=e[i].operator,(n||\"in\"===a)&&a!==n||e[i].field!==t||r.push(e[i]);return r}function r(t,n,r){var o,a=0,s=r.length;if(t=i(t,n,\"in\")[0])for(o=t.value.split(\",\");s>a;a++)r[a].checked=e.inArray(r[a].uniqueName,o)>=0;else for(;s>a;a++)r[a].checked=!0}function o(e,t){var n,i=e.length;for(n=0;i>n;n++)e[n].checked&&0!==e[n].level()&&t.push(e[n].uniqueName),e[n].hasChildren&&o(e[n].children.view(),t)}var a=window.kendo,s=a.ui,l=\"kendoContextMenu\",c=e.proxy,d=\".kendoPivotFieldMenu\",u=s.Widget,h=u.extend({init:function(e,t){u.fn.init.call(this,e,t),this._dataSource(),this._layout(),a.notify(this)},events:[],options:{name:\"PivotFieldMenu\",filter:null,filterable:!0,sortable:!0,messages:{info:\"Show items with value that:\",sortAscending:\"Sort Ascending\",sortDescending:\"Sort Descending\",filterFields:\"Fields Filter\",filter:\"Filter\",include:\"Include Fields...\",title:\"Fields to include\",clear:\"Clear\",ok:\"OK\",cancel:\"Cancel\",operators:{contains:\"Contains\",doesnotcontain:\"Does not contain\",startswith:\"Starts with\",endswith:\"Ends with\",eq:\"Is equal to\",neq:\"Is not equal to\"}}},_layout:function(){var t=this.options;this.wrapper=e(a.template(p)({ns:a.ns,filterable:t.filterable,sortable:t.sortable,messages:t.messages})),this.menu=this.wrapper[l]({filter:t.filter,target:this.element,orientation:\"vertical\",showOn:\"click\",closeOnClick:!1,open:c(this._menuOpen,this),select:c(this._select,this),copyAnchorStyles:!1}).data(l),this._createWindow(),t.filterable&&this._initFilterForm()},_initFilterForm:function(){var e=this.menu.element.find(\".k-filter-item\"),t=c(this._filter,this);this._filterOperator=new a.ui.DropDownList(e.find(\"select\")),this._filterValue=e.find(\".k-textbox\"),e.on(\"submit\"+d,t).on(\"click\"+d,\".k-button-filter\",t).on(\"click\"+d,\".k-button-clear\",c(this._reset,this))},_setFilterForm:function(e){var t=this._filterOperator,n=\"\",i=\"\";e&&(n=e.operator,i=e.value),t.value(n),t.value()||t.select(0),this._filterValue.val(i)},_clearFilters:function(e){var t,n,r=this.dataSource.filter()||{},o=0;for(r.filters=r.filters||[],t=i(r,e),n=t.length;n>o;o++)r.filters.splice(r.filters.indexOf(t[o]),1);return r},_convert:function(t){var n=this.dataSource.options.schema,i=((n.model||{}).fields||{})[this.currentMember];return i&&(\"number\"===i.type?t=parseFloat(t):\"boolean\"===i.type&&(t=!!e.parseJSON(t))),t},_filter:function(e){var n,i,r=this,o=r._convert(r._filterValue.val());return e.preventDefault(),\"\"===o?(r.menu.close(),t):(n={field:r.currentMember,operator:r._filterOperator.value(),value:o},i=r._clearFilters(r.currentMember),i.filters.push(n),r.dataSource.filter(i),r.menu.close(),t)},_reset:function(e){var t=this,n=t._clearFilters(t.currentMember);e.preventDefault(),n.filters[0]||(n={}),t.dataSource.filter(n),t._setFilterForm(null),t.menu.close()},_sort:function(e){var t=this.currentMember,i=this.dataSource.sort()||[];i=n(i,t),i.push({field:t,dir:e}),this.dataSource.sort(i),this.menu.close()},setDataSource:function(e){this.options.dataSource=e,this._dataSource()},_dataSource:function(){this.dataSource=a.data.PivotDataSource.create(this.options.dataSource)},_createWindow:function(){var t=this.options.messages;this.includeWindow=e(a.template(m)({messages:t})).on(\"click\"+d,\".k-button-ok\",c(this._applyIncludes,this)).on(\"click\"+d,\".k-button-cancel\",c(this._closeWindow,this)),this.includeWindow=new s.Window(this.includeWindow,{title:t.title,visible:!1,resizable:!1,open:c(this._windowOpen,this)})},_applyIncludes:function(e){var t,n=[],r=this.treeView.dataSource.view(),a=r[0].checked,s=this.dataSource.filter(),l=i(s,this.currentMember,\"in\")[0];o(r,n),l&&(a?(s.filters.splice(s.filters.indexOf(l),1),s.filters.length||(s={})):l.value=n.join(\",\"),t=s),n.length&&(t||a||(t={field:this.currentMember,operator:\"in\",value:n.join(\",\")},s&&(s.filters.push(t),t=s))),t&&this.dataSource.filter(t),this._closeWindow(e)},_closeWindow:function(e){e.preventDefault(),this.includeWindow.close()},_treeViewDataSource:function(){var e=this;return a.data.HierarchicalDataSource.create({schema:{model:{id:\"uniqueName\",hasChildren:function(e){return parseInt(e.childrenCardinality,10)>0}}},transport:{read:function(t){var n={},i=e.treeView.dataSource.get(t.data.uniqueName),o=t.data.uniqueName;o?(n.memberUniqueName=i.uniqueName.replace(/\\&/g,\"&\"),n.treeOp=1):n.levelUniqueName=e.currentMember+\".[(ALL)]\",e.dataSource.schemaMembers(n).done(function(n){r(e.dataSource.filter(),e.currentMember,n),t.success(n)}).fail(t.error)}}})},_createTreeView:function(e){var t=this;t.treeView=new s.TreeView(e,{autoBind:!1,dataSource:t._treeViewDataSource(),dataTextField:\"caption\",template:\"#: data.item.caption || data.item.name #\",checkboxes:{checkChildren:!0},dataBound:function(){s.progress(t.includeWindow.element,!1)}})},_menuOpen:function(t){if(t.event){var n=a.attr(\"name\");this.currentMember=e(t.event.target).closest(\"[\"+n+\"]\").attr(n),this.options.filterable&&this._setFilterForm(i(this.dataSource.filter(),this.currentMember)[0])}},_select:function(t){var n=e(t.item);e(\".k-pivot-filter-window\").not(this.includeWindow.element).kendoWindow(\"close\"),n.hasClass(\"k-include-item\")?this.includeWindow.center().open():n.hasClass(\"k-sort-asc\")?this._sort(\"asc\"):n.hasClass(\"k-sort-desc\")&&this._sort(\"desc\")},_windowOpen:function(){this.treeView||this._createTreeView(this.includeWindow.element.find(\".k-treeview\")),s.progress(this.includeWindow.element,!0),this.treeView.dataSource.read()},destroy:function(){u.fn.destroy.call(this),this.menu&&(this.menu.destroy(),this.menu=null),this.treeView&&(this.treeView.destroy(),this.treeView=null),this.includeWindow&&(this.includeWindow.destroy(),this.includeWindow=null),this.wrapper=null,this.element=null}}),f='
            #=messages.info#
            ',p='
              # if (sortable) {#
            • ${messages.sortAscending}
            • ${messages.sortDescending}
            • # if (filterable) {#
            • # } ## } ## if (filterable) {#
            • ${messages.include}
            • ${messages.filterFields}
              • '+f+\"
            • # } #
            \",m='
            ';s.plugin(h)}(window.kendo.jQuery),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.filtercell.min\",[\"kendo.autocomplete.min\",\"kendo.datepicker.min\",\"kendo.numerictextbox.min\",\"kendo.combobox.min\",\"kendo.dropdownlist.min\"],e)}(function(){return function(e,t){function n(t){var n=\"string\"==typeof t?t:t.operator;return e.inArray(n,v)>-1}function i(t,n){var r,o,a=[];if(e.isPlainObject(t))if(t.hasOwnProperty(\"filters\"))a=t.filters;else if(t.field==n)return t;for(e.isArray(t)&&(a=t),r=0;a.length>r;r++)if(o=i(a[r],n))return o}function r(t,n){t.filters&&(t.filters=e.grep(t.filters,function(e){return r(e,n),e.filters?e.filters.length:e.field!=n}))}function o(e,t){var n=a.getter(t,!0);return function(t){for(var i,r,o=e(t),a=[],s=0,l={};o.length>s;)i=o[s++],r=n(i),l.hasOwnProperty(r)||(a.push(i),l[r]=!0);return a}}var a=window.kendo,s=a.ui,l=a.data.DataSource,c=s.Widget,d=\"change\",u=\"boolean\",h=\"enums\",f=\"string\",p=\"Is equal to\",m=\"Is not equal to\",g=e.proxy,v=[\"isnull\",\"isnotnull\",\"isempty\",\"isnotempty\"],_=c.extend({init:function(i,r){var o,s,l,p,m,v,_,b,w,y,k,x;if(i=e(i).addClass(\"k-filtercell\"),o=this.wrapper=e(\"\").appendTo(i),s=this,m=r,b=s.operators=r.operators||{},w=s.input=e(\"\").attr(a.attr(\"bind\"),\"value: value\").appendTo(o),c.fn.init.call(s,i[0],r),r=s.options,l=s.dataSource=r.dataSource,s.model=l.reader.model,_=r.type=f,y=a.getter(\"reader.model.fields\",!0)(l)||{},k=y[r.field],k&&k.type&&(_=r.type=k.type),r.values&&(r.type=_=h),b=b[_]||r.operators[_],!m.operator)for(v in b){r.operator=v;break}s._parse=function(e){return e+\"\"},s.model&&s.model.fields&&(x=s.model.fields[r.field],x&&x.parse&&(s._parse=g(x.parse,x))),s.viewModel=p=a.observable({operator:r.operator,value:null,operatorVisible:function(){var e=this.get(\"value\");return null!==e&&e!==t&&\"undefined\"!=e||n(this.get(\"operator\"))&&!s._clearInProgress&&!s.manuallyUpdatingVM}}),p.bind(d,g(s.updateDsFilter,s)),_==f&&s.initSuggestDataSource(r),null!==r.inputWidth&&w.width(r.inputWidth),s._setInputType(r,_),_!=u&&r.showOperators!==!1?s._createOperatorDropDown(b):o.addClass(\"k-operator-hidden\"),s._createClearIcon(),a.bind(this.wrapper,p),_==f&&(r.template||s.setAutoCompleteSource()),_==h&&s.setComboBoxSource(s.options.values),s._refreshUI(),s._refreshHandler=g(s._refreshUI,s),s.dataSource.bind(d,s._refreshHandler)},_setInputType:function(t,n){var i,r,o,s,l,c=this,d=c.input;\"function\"==typeof t.template?(t.template.call(c.viewModel,{element:c.input,dataSource:c.suggestDataSource}),c._angularItems(\"compile\")):n==f?d.attr(a.attr(\"role\"),\"autocomplete\").attr(a.attr(\"text-field\"),t.dataTextField||t.field).attr(a.attr(\"filter\"),t.suggestionOperator).attr(a.attr(\"delay\"),t.delay).attr(a.attr(\"min-length\"),t.minLength).attr(a.attr(\"value-primitive\"),!0):\"date\"==n?d.attr(a.attr(\"role\"),\"datepicker\"):n==u?(d.remove(),i=e(\"\"),r=c.wrapper,o=a.guid(),s=e(\"