1/*fcgz1600517806*/var DoubleSlider=new Class({Implements:[Options,Events],options:{knobSelector:"div",rangeSelector:"span",range:[0,100],start:[null,null],steps:null,precision:0},initialize:function(t,i){this.setOptions(i),this.initOptions(),this.element=document.id(t),this.knobs=this.element.getElements(this.options.knobSelector),this.rangeElement=this.element.getElement(this.options.rangeSelector),this.initOrentation(),this.initDimensions(),this.prepareElements(),this.updateKnobRange(),this.fireEvent("change",[this.options.start[0].round(this.options.precision),this.options.start[1].round(this.options.precision)])},initOptions:function(){(null===this.options.start[0]||this.options.range[0]>this.options.start[0])&&(this.options.start[0]=this.options.range[0]),(null===this.options.start[1]||this.options.range[1]<this.options.start[1])&&(this.options.start[1]=this.options.range[1])},initOrentation:function(){var t=this.element.getSize();t.x>=t.y?Object.append(this,{axis:"x",property:"left",sizeProperty:"width"}):Object.append(this,{axis:"y",property:"top",sizeProperty:"height"})},initDimensions:function(){this.offset=this.options.range[0],this.pixelRange=this.element.getSize()[this.axis]-this.knobs[0].getSize()[this.axis]-this.knobs[1].getSize()[this.axis],this.range=this.options.range[1]-this.options.range[0],this.grid=null!==this.options.steps?this.pixelRange/this.options.steps:null},prepareElements:function(){this.knobs[0].setStyle(this.property,this.translateRangeToPixel(this.options.start[0])+"px"),this.options.start[1]>this.options.start[0]?this.knobs[1].setStyle(this.property,this.translateRangeToPixel(this.options.start[1])+this.getKnobSize(0)+"px"):this.knobs[1].setStyle(this.property,this.getKnobOffset(0)+this.getKnobSize(0)+"px"),this.updateRangeElement();var t={unit:"px",modifiers:{x:"left",y:"top"},onComplete:this.onComplete.bind(this),onDrag:this.onChange.bind(this),onBeforeStart:this.onStart.bind(this)};null!==this.grid&&(t.grid=this.grid),this.drags=[new Drag(this.knobs[0],t),new Drag(this.knobs[1],t)]},updateRangeElement:function(){var t=this.knobs[0].getStyle(this.property).toInt(),i=this.knobs[1].getStyle(this.property).toInt();if(null!==this.rangeElement){var s=t+(this.knobs[0].getSize()[this.axis]/2).round(0);this.rangeElement.setStyle(this.property,s+"px"),this.rangeElement.setStyle(this.sizeProperty,i-s+(this.knobs[1].getSize()[this.axis]/2).round(0)+"px")}},getKnobOffset:function(t){return this.knobs[t].getStyle(this.property).toInt()},getKnobSize:function(t){return this.knobs[t].getSize()[this.axis].toInt()},updateKnobRange:function(){var e={x:null,y:null};Object.each(e,function(t,i,s){i!=this.axis&&(e[i]=[0,0])},this),this.drags[0].options.limit=Object.clone(e),this.drags[0].options.limit[this.axis]=[0,this.getKnobOffset(1)-this.getKnobSize(0)],this.drags[1].options.limit=e,this.drags[1].options.limit[this.axis]=[this.getKnobOffset(0)+this.getKnobSize(0),this.pixelRange+this.getKnobSize(1)]},onStart:function(t){this.fireEvent("start"),this.onChange(t)},translateRangeToPixel:function(t){return t-=this.offset,(this.pixelRange*t/this.range).round(this.options.precision)},translatePixelToRange:function(t){return(t*this.range/this.pixelRange+this.offset).round(this.options.precision)},onChange:function(t){this.updateRangeElement();var i=[];i.push(this.translatePixelToRange(this.getKnobOffset(0))),i.push(this.translatePixelToRange(this.getKnobOffset(1)-this.getKnobSize(1))),this.fireEvent("change",i)},onComplete:function(t){this.updateKnobRange(),this.onChange(t),this.fireEvent("complete")},setKnobs:function(t,i){null!==t&&(t<this.options.start[0]&&(t=this.options.start[0]),this.knobs[0].setStyle(this.property,this.translateRangeToPixel(t)+"px")),null!==i&&(i>this.options.start[1]&&(i=this.options.start[1]),this.knobs[1].setStyle(this.property,this.translateRangeToPixel(i)+this.getKnobSize(1)+"px")),this.onComplete()},autosize:function(t){this.updateRangeElement(),this.options.start=[null,null],this.initialize(this.element,t)}});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.