1 line
64 KiB
JavaScript
1 line
64 KiB
JavaScript
|
(function(s){var ao=s.telerik;function F(aZ){var aY={};for(var aX=0;aX<aZ.length;aX++){aY[aZ[aX]]=true}return aY}var aH=F("area,base,basefont,br,col,frame,hr,img,input,isindex,link,meta,param,embed".split(","));var G="div,p,h1,h2,h3,h4,h5,h6,address,applet,blockquote,button,center,dd,dir,dl,dt,fieldset,form,frameset,hr,iframe,isindex,li,map,menu,noframes,noscript,object,ol,pre,script,table,tbody,td,tfoot,th,thead,tr,ul".split(",");var L=F(G);var aQ=F("a,abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var".split(","));var K=F("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected".split(","));function g(aX){if(aX.nodeType==1){aX.normalize()}}function p(aX){var aY=0;while(aX=aX.previousSibling){aY++}return aY}function ac(aX){return aX&&aX.nodeValue!==null&&aX.data!==null}function k(aX,aY){try{return !ac(aX)&&(s.contains(aX,ac(aY)?aY.parentNode:aY)||aY.parentNode==aX)}catch(aZ){return false}}function y(aY,aX){return k(aY,aX)||aY==aX}function az(aY,aX){if(k(aY,aX)){while(aX&&aX.parentNode!=aY){aX=aX.parentNode}}return aX}function aD(aX){return ac(aX)?aX.length:aX.childNodes.length}function ar(aX,aZ){var aY=aX.cloneNode(false);aX.deleteData(aZ,aX.length);aY.deleteData(0,aZ);C.insertAfter(aY,aX)}function A(aY,aZ){for(var a0 in aZ){var aX=aY[a0];if(a0=="float"){aX=aY[s.support.cssFloat?"cssFloat":"styleFloat"]}if(typeof aX=="object"){if(!A(aX,aZ[a0])){return false}}else{if(aX!=aZ[a0]){return false}}}return true}var aB=/^\s+$/;var e=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/i;var ae=("color,padding-left,padding-right,padding-top,padding-bottom,background-color,background-attachment,background-image,background-position,background-repeat,border-top-style,border-top-width,border-top-color,border-bottom-style,border-bottom-width,border-bottom-color,border-left-style,border-left-width,border-left-color,border-right-style,border-right-width,border-right-color,font-family,font-size,font-style,font-variant,font-weight,line-height").split(",");var C={blockParentOrBody:function(aX){return C.parentOfType(aX,G)||aX.ownerDocument.body},toHex:function(aX){var aY=e.exec(aX);if(!aY){return aX}return"#"+s.map(aY.slice(1),function(aZ){return aZ=parseInt(aZ).toString(16),aZ.length>1?aZ:"0"+aZ}).join("")},encode:function(aX){return aX.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\u00a0/g," ")},name:function(aX){return aX.nodeName.toLowerCase()},significantChildNodes:function(aX){return s.grep(aX.childNodes,function(aY){return aY.nodeType!=3||!C.isWhitespace(aY)})},lastTextNode:function(aY){if(aY.nodeType==3){return aY}var aX=null;for(var aZ=aY.lastChild;aZ;aZ=aZ.previousSibling){if(aX=C.lastTextNode(aZ)){return aX}}return aX},is:function(aX,aY){return C.name(aX)==aY},isMarker:function(aX){return aX.className=="t-marker"},isWhitespace:function(aX){return aB.test(aX.nodeValue)},isBlock:function(aX){return L[C.name(aX)]},isEmpty:function(aX){return aH[C.name(aX)]},isInline:function(aX){return aQ[C.name(aX)]},scrollTo:function(aX){aX.ownerDocument.body.scrollTop=s(ac(aX)?aX.parentNode:aX).offset().top},insertAt:function(aY,aX,aZ){aY.insertBefore(aX,aY.childNodes[aZ]||null)},insertBefore:function(aX,aY){return aY.parentNode.insertBefore(aX,aY)},insertAfter:function(aX,aY){return aY.parentNode.insertBefore(aX,aY.nextSibling)},remove:function(aX){aX.parentNode.removeChild(aX)},trim:function(aY){for(var aX=aY.childNodes.length-1;aX>=0;aX--){var aZ=aY.childNodes[aX];if(ac(aZ)){if(aZ.nodeValue.replace(/\ufeff/g,"").length==0){C.remove(aZ)}if(C.isWhitespace(aZ)){C.insertBefore(aZ,aY)}}else{if(aZ.className!="t-marker"){C.trim(aZ);if(aZ.childNodes.length==0&&!C.isEmpty(aZ)){C.remove(aZ)}}}}return aY},parentOfType:function(aX,aY){do{aX=aX.parentNode}while(aX&&!(C.ofType(aX,aY)));return aX},ofType:function(aX,aY){return s.inArray(C.name(aX),aY)>=0},changeTag:function(a1,aY){var a0=C.create(a1.ownerDocument,aY);var a4=a1.attributes;for(var
|