1 line
63 KiB
JavaScript
1 line
63 KiB
JavaScript
|
(function(s){var ao=s.telerik;function F(aY){var aX={};for(var aW=0;aW<aY.length;aW++){aX[aY[aW]]=true}return aX}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 aP=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(aW){if(aW.nodeType==1){aW.normalize()}}function p(aW){var aX=0;while(aW=aW.previousSibling){aX++}return aX}function ac(aW){return aW&&aW.nodeValue!==null&&aW.data!==null}function k(aW,aX){try{return !ac(aW)&&(s.contains(aW,ac(aX)?aX.parentNode:aX)||aX.parentNode==aW)}catch(aY){return false}}function y(aX,aW){return k(aX,aW)||aX==aW}function az(aX,aW){if(k(aX,aW)){while(aW&&aW.parentNode!=aX){aW=aW.parentNode}}return aW}function aD(aW){return ac(aW)?aW.length:aW.childNodes.length}function ar(aW,aY){var aX=aW.cloneNode(false);aW.deleteData(aY,aW.length);aX.deleteData(0,aY);C.insertAfter(aX,aW)}function A(aX,aY){for(var aZ in aY){var aW=aX[aZ];if(aZ=="float"){aW=aX[s.support.cssFloat?"cssFloat":"styleFloat"]}if(typeof aW=="object"){if(!A(aW,aY[aZ])){return false}}else{if(aW!=aY[aZ]){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(aW){return C.parentOfType(aW,G)||aW.ownerDocument.body},toHex:function(aW){var aX=e.exec(aW);if(!aX){return aW}return"#"+s.map(aX.slice(1),function(aY){return aY=parseInt(aY).toString(16),aY.length>1?aY:"0"+aY}).join("")},encode:function(aW){return aW.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\u00a0/g," ")},name:function(aW){return aW.nodeName.toLowerCase()},significantChildNodes:function(aW){return s.grep(aW.childNodes,function(aX){return aX.nodeType!=3||!C.isWhitespace(aX)})},lastTextNode:function(aX){if(aX.nodeType==3){return aX}var aW=null;for(var aY=aX.lastChild;aY;aY=aY.previousSibling){if(aW=C.lastTextNode(aY)){return aW}}return aW},is:function(aW,aX){return C.name(aW)==aX},isMarker:function(aW){return aW.className=="t-marker"},isWhitespace:function(aW){return aB.test(aW.nodeValue)},isBlock:function(aW){return L[C.name(aW)]},isEmpty:function(aW){return aH[C.name(aW)]},isInline:function(aW){return aP[C.name(aW)]},scrollTo:function(aW){aW.ownerDocument.body.scrollTop=s(ac(aW)?aW.parentNode:aW).offset().top},insertAt:function(aX,aW,aY){aX.insertBefore(aW,aX.childNodes[aY]||null)},insertBefore:function(aW,aX){return aX.parentNode.insertBefore(aW,aX)},insertAfter:function(aW,aX){return aX.parentNode.insertBefore(aW,aX.nextSibling)},remove:function(aW){aW.parentNode.removeChild(aW)},trim:function(aX){for(var aW=aX.childNodes.length-1;aW>=0;aW--){var aY=aX.childNodes[aW];if(ac(aY)){if(aY.nodeValue.replace(/\ufeff/g,"").length==0){C.remove(aY)}if(C.isWhitespace(aY)){C.insertBefore(aY,aX)}}else{if(aY.className!="t-marker"){C.trim(aY);if(aY.childNodes.length==0&&!C.isEmpty(aY)){C.remove(aY)}}}}return aX},parentOfType:function(aW,aX){do{aW=aW.parentNode}while(aW&&!(C.ofType(aW,aX)));return aW},ofType:function(aW,aX){return s.inArray(C.name(aW),aX)>=0},changeTag:function(a0,aX){var aZ=C.create(a0.ownerDocument,aX);var a3=a0.attributes;for(var
|