/** 
 * Kendo UI v2016.3.1118 (http://www.telerik.com/kendo-ui)                                                                                                                                              
 * Copyright 2016 Telerik AD. All rights reserved.                                                                                                                                                      
 *                                                                                                                                                                                                      
 * Kendo UI commercial licenses may be obtained at                                                                                                                                                      
 * http://www.telerik.com/purchase/license-agreement/kendo-ui-complete                                                                                                                                  
 * If you do not own a commercial license, this file shall be governed by the trial license terms.                                                                                                      
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       

*/
!function(e,define){define("kendo.dom.min",["kendo.core.min"],e)}(function(){return function(e){function t(){this.node=null}function n(){}function o(e,t,n){this.nodeName=e,this.attr=t||{},this.children=n||[]}function i(e){this.nodeValue=e}function r(e){this.html=e}function d(e,t){for(f.innerHTML=t;f.firstChild;)e.appendChild(f.firstChild)}function s(e){return new r(e)}function h(e,t,n){return new o(e,t,n)}function l(e){return new i(e)}function u(e){this.root=e,this.children=[]}var a,f;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(){}},a=new n,o.prototype=new t,o.prototype.appendTo=function(e){var t,n=document.createElement(this.nodeName),o=this.children;for(t=0;t<o.length;t++)o[t].render(n,a);return e.appendChild(n),n},o.prototype.render=function(e,t){var n,o,i,r,d,s;if(t.nodeName!==this.nodeName)t.remove(),n=this.appendTo(e);else{if(n=t.node,i=this.children,r=i.length,d=t.children,s=d.length,Math.abs(s-r)>2)return void this.render({appendChild:function(n){e.replaceChild(n,t.node)}},a);for(o=0;o<r;o++)i[o].render(n,d[o]||a);for(o=r;o<s;o++)d[o].remove()}this.node=n,this.syncAttributes(t.attr),this.removeAttributes(t.attr)},o.prototype.syncAttributes=function(e){var t,n,o,i=this.attr;for(t in i)n=i[t],o=e[t],"style"===t?this.setStyle(n,o):n!==o&&this.setAttribute(t,n,o)},o.prototype.setStyle=function(e,t){var n,o=this.node;if(t)for(n in e)e[n]!==t[n]&&(o.style[n]=e[n]);else for(n in e)o.style[n]=e[n]},o.prototype.removeStyle=function(e){var t,n=this.attr.style||{},o=this.node;for(t in e)void 0===n[t]&&(o.style[t]="")},o.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)},o.prototype.removeAttribute=function(e){var t=this.node;"style"===e?t.style.cssText="":"className"===e?t.className="":t.removeAttribute(e)},o.prototype.setAttribute=function(e,t){var n=this.node;void 0!==n[e]?n[e]=t:n.setAttribute(e,t)},o.prototype.text=function(){var e,t="";for(e=0;e<this.children.length;++e)t+=this.children[e].text();return t},i.prototype=new t,i.prototype.nodeName="#text",i.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)),this.node=n},i.prototype.text=function(){return this.nodeValue},r.prototype={nodeName:"#html",attr:{},remove:function(){for(var e=0;e<this.nodes.length;e++)this.nodes[e].parentNode.removeChild(this.nodes[e])},render:function(e,t){var n,o;if(t.nodeName!==this.nodeName||t.html!==this.html)for(t.remove(),n=e.lastChild,d(e,this.html),this.nodes=[],o=n?n.nextSibling:e.firstChild;o;o=o.nextSibling)this.nodes.push(o);else this.nodes=t.nodes.slice(0)}},f=document.createElement("div"),u.prototype={html:s,element:h,text:l,render:function(e){var t,n,o=this.children;for(t=0,n=e.length;t<n;t++)e[t].render(this.root,o[t]||a);for(t=n;t<o.length;t++)o[t].remove();this.children=e}},e.dom={html:s,text:l,element:h,Tree:u,Node:t}}(window.kendo),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()});
//# sourceMappingURL=kendo.dom.min.js.map
