YUI.add('event-key',function(Y,NAME){var ALT="+alt",CTRL="+ctrl",META="+meta",SHIFT="+shift",trim=Y.Lang.trim,eventDef={KEY_MAP:{enter:13,space:32,esc:27,backspace:8,tab:9,pageup:33,pagedown:34},_typeRE:/^(up|down|press):/,_keysRE:/^(?:up|down|press):|\+(alt|ctrl|meta|shift)/g,processArgs:function(args){var spec=args.splice(3,1)[0],mods=Y.Array.hash(spec.match(/\+(?:alt|ctrl|meta|shift)\b/g)||[]),config={type:this._typeRE.test(spec)?RegExp.$1:null,mods:mods,keys:null},bits=spec.replace(this._keysRE,''),chr,uc,lc,i;if(bits){bits=bits.split(',');config.keys={};for(i=bits.length-1;i>=0;--i){chr=trim(bits[i]);if(!chr){continue;}
if(+chr==chr){config.keys[chr]=mods;}else{lc=chr.toLowerCase();if(this.KEY_MAP[lc]){config.keys[this.KEY_MAP[lc]]=mods;if(!config.type){config.type="down";}}else{chr=chr.charAt(0);uc=chr.toUpperCase();if(mods["+shift"]){chr=uc;}
config.keys[chr.charCodeAt(0)]=(chr===uc)?Y.merge(mods,{"+shift":true}):mods;}}}}
if(!config.type){config.type="press";}
return config;},on:function(node,sub,notifier,filter){var spec=sub._extra,type="key"+spec.type,keys=spec.keys,method=(filter)?"delegate":"on";sub._detach=node[method](type,function(e){var key=keys?keys[e.which]:spec.mods;if(key&&(!key[ALT]||(key[ALT]&&e.altKey))&&(!key[CTRL]||(key[CTRL]&&e.ctrlKey))&&(!key[META]||(key[META]&&e.metaKey))&&(!key[SHIFT]||(key[SHIFT]&&e.shiftKey)))
{notifier.fire(e);}},filter);},detach:function(node,sub,notifier){sub._detach.detach();}};eventDef.delegate=eventDef.on;eventDef.detachDelegate=eventDef.detach;Y.Event.define('key',eventDef,true);},'patched-v3.18.1',{"requires":["event-synthetic"]});YUI.add('event-mouseenter',function(Y,NAME){var domEventProxies=Y.Env.evt.dom_wrappers,contains=Y.DOM.contains,toArray=Y.Array,noop=function(){},config={proxyType:"mouseover",relProperty:"fromElement",_notify:function(e,property,notifier){var el=this._node,related=e.relatedTarget||e[property];if(el!==related&&!contains(el,related)){notifier.fire(new Y.DOMEventFacade(e,el,domEventProxies['event:'+Y.stamp(el)+e.type]));}},on:function(node,sub,notifier){var el=Y.Node.getDOMNode(node),args=[this.proxyType,this._notify,el,null,this.relProperty,notifier];sub.handle=Y.Event._attach(args,{facade:false});},detach:function(node,sub){sub.handle.detach();},delegate:function(node,sub,notifier,filter){var el=Y.Node.getDOMNode(node),args=[this.proxyType,noop,el,null,notifier];sub.handle=Y.Event._attach(args,{facade:false});sub.handle.sub.filter=filter;sub.handle.sub.relProperty=this.relProperty;sub.handle.sub._notify=this._filterNotify;},_filterNotify:function(thisObj,args,ce){args=args.slice();if(this.args){args.push.apply(args,this.args);}
var currentTarget=Y.delegate._applyFilter(this.filter,args,ce),related=args[0].relatedTarget||args[0][this.relProperty],e,i,len,ret,ct;if(currentTarget){currentTarget=toArray(currentTarget);for(i=0,len=currentTarget.length&&(!e||!e.stopped);i<len;++i){ct=currentTarget[0];if(!contains(ct,related)){if(!e){e=new Y.DOMEventFacade(args[0],ct,ce);e.container=Y.one(ce.el);}
e.currentTarget=Y.one(ct);ret=args[1].fire(e);if(ret===false){break;}}}}
return ret;},detachDelegate:function(node,sub){sub.handle.detach();}};Y.Event.define("mouseenter",config,true);Y.Event.define("mouseleave",Y.merge(config,{proxyType:"mouseout",relProperty:"toElement"}),true);},'patched-v3.18.1',{"requires":["event-synthetic"]});YUI.add('event-mousewheel',function(Y,NAME){var DOM_MOUSE_SCROLL='DOMMouseScroll',fixArgs=function(args){var a=Y.Array(args,0,true),target;if(Y.UA.gecko){a[0]=DOM_MOUSE_SCROLL;target=Y.config.win;}else{target=Y.config.doc;}
if(a.length<3){a[2]=target;}else{a.splice(2,0,target);}
return a;};Y.Env.evt.plugins.mousewheel={on:function(){return Y.Event._attach(fixArgs(arguments));},detach:function(){return Y.Event.detach.apply(Y.Event,fixArgs(arguments));}};},'patched-v3.18.1',{"requires":["node-base"]});YUI.add('event-outside',function(Y,NAME){var nativeEvents=['blur','change','click','dblclick','focus','keydown','keypress','keyup','mousedown','mousemove','mouseout','mouseover','mouseup','select','submit'];Y.Event.defineOutside=function(event,name){name=name||(event+'outside');var config={on:function(node,sub,notifier){sub.handle=Y.one('doc').on(event,function(e){if(this.isOutside(node,e.target)){e.currentTarget=node;notifier.fire(e);}},this);},detach:function(node,sub,notifier){sub.handle.detach();},delegate:function(node,sub,notifier,filter){sub.handle=Y.one('doc').delegate(event,function(e){if(this.isOutside(node,e.target)){notifier.fire(e);}},filter,this);},isOutside:function(node,target){return target!==node&&!target.ancestor(function(p){return p===node;});}};config.detachDelegate=config.detach;Y.Event.define(name,config);};Y.Array.each(nativeEvents,function(event){Y.Event.defineOutside(event);});},'patched-v3.18.1',{"requires":["event-synthetic"]});YUI.add('event-resize',function(Y,NAME){Y.Event.define('windowresize',{on:(Y.UA.gecko&&Y.UA.gecko<1.91)?function(node,sub,notifier){sub._handle=Y.Event.attach('resize',function(e){notifier.fire(e);});}:function(node,sub,notifier){var delay=Y.config.windowResizeDelay||100;sub._handle=Y.Event.attach('resize',function(e){if(sub._timer){sub._timer.cancel();}
sub._timer=Y.later(delay,Y,function(){notifier.fire(e);});});},detach:function(node,sub){if(sub._timer){sub._timer.cancel();}
sub._handle.detach();}});},'patched-v3.18.1',{"requires":["node-base","event-synthetic"]});YUI.add('event-simulate',function(Y,NAME){(function(){var L=Y.Lang,win=Y.config.win,isFunction=L.isFunction,isString=L.isString,isBoolean=L.isBoolean,isObject=L.isObject,isNumber=L.isNumber,mouseEvents={click:1,dblclick:1,mouseover:1,mouseout:1,mousedown:1,mouseup:1,mousemove:1,contextmenu:1},pointerEvents=(win&&win.PointerEvent)?{pointerover:1,pointerout:1,pointerdown:1,pointerup:1,pointermove:1}:{MSPointerOver:1,MSPointerOut:1,MSPointerDown:1,MSPointerUp:1,MSPointerMove:1},keyEvents={keydown:1,keyup:1,keypress:1},uiEvents={submit:1,blur:1,change:1,focus:1,resize:1,scroll:1,select:1},bubbleEvents={scroll:1,resize:1,reset:1,submit:1,change:1,select:1,error:1,abort:1},touchEvents={touchstart:1,touchmove:1,touchend:1,touchcancel:1},gestureEvents={gesturestart:1,gesturechange:1,gestureend:1};Y.mix(bubbleEvents,mouseEvents);Y.mix(bubbleEvents,keyEvents);Y.mix(bubbleEvents,touchEvents);function simulateKeyEvent(target,type,bubbles,cancelable,view,ctrlKey,altKey,shiftKey,metaKey,keyCode,charCode)
{if(!target){Y.error("simulateKeyEvent(): Invalid target.");}
if(isString(type)){type=type.toLowerCase();switch(type){case "textevent":type="keypress";break;case "keyup":case "keydown":case "keypress":break;default:Y.error("simulateKeyEvent(): Event type '"+type+"' not supported.");}}else{Y.error("simulateKeyEvent(): Event type must be a string.");}
if(!isBoolean(bubbles)){bubbles=true;}
if(!isBoolean(cancelable)){cancelable=true;}
if(!isObject(view)){view=Y.config.win;}
if(!isBoolean(ctrlKey)){ctrlKey=false;}
if(!isBoolean(altKey)){altKey=false;}
if(!isBoolean(shiftKey)){shiftKey=false;}
if(!isBoolean(metaKey)){metaKey=false;}
if(!isNumber(keyCode)){keyCode=0;}
if(!isNumber(charCode)){charCode=0;}
var customEvent=null;if(isFunction(Y.config.doc.createEvent)){try{customEvent=Y.config.doc.createEvent("KeyEvents");customEvent.initKeyEvent(type,bubbles,cancelable,view,ctrlKey,altKey,shiftKey,metaKey,keyCode,charCode);}catch(ex){try{customEvent=Y.config.doc.createEvent("Events");}catch(uierror){customEvent=Y.config.doc.createEvent("UIEvents");}finally{customEvent.initEvent(type,bubbles,cancelable);customEvent.view=view;customEvent.altKey=altKey;customEvent.ctrlKey=ctrlKey;customEvent.shiftKey=shiftKey;customEvent.metaKey=metaKey;customEvent.keyCode=keyCode;customEvent.charCode=charCode;}}
target.dispatchEvent(customEvent);}else if(isObject(Y.config.doc.createEventObject)){customEvent=Y.config.doc.createEventObject();customEvent.bubbles=bubbles;customEvent.cancelable=cancelable;customEvent.view=view;customEvent.ctrlKey=ctrlKey;customEvent.altKey=altKey;customEvent.shiftKey=shiftKey;customEvent.metaKey=metaKey;customEvent.keyCode=(charCode>0)?charCode:keyCode;target.fireEvent("on"+type,customEvent);}else{Y.error("simulateKeyEvent(): No event simulation framework present.");}}
function simulateMouseEvent(target,type,bubbles,cancelable,view,detail,screenX,screenY,clientX,clientY,ctrlKey,altKey,shiftKey,metaKey,button,relatedTarget)
{if(!target){Y.error("simulateMouseEvent(): Invalid target.");}
if(isString(type)){if(!mouseEvents[type.toLowerCase()]&&!pointerEvents[type]){Y.error("simulateMouseEvent(): Event type '"+type+"' not supported.");}}
else{Y.error("simulateMouseEvent(): Event type must be a string.");}
if(!isBoolean(bubbles)){bubbles=true;}
if(!isBoolean(cancelable)){cancelable=(type!=="mousemove");}
if(!isObject(view)){view=Y.config.win;}
if(!isNumber(detail)){detail=1;}
if(!isNumber(screenX)){screenX=0;}
if(!isNumber(screenY)){screenY=0;}
if(!isNumber(clientX)){clientX=0;}
if(!isNumber(clientY)){clientY=0;}
if(!isBoolean(ctrlKey)){ctrlKey=false;}
if(!isBoolean(altKey)){altKey=false;}
if(!isBoolean(shiftKey)){shiftKey=false;}
if(!isBoolean(metaKey)){metaKey=false;}
if(!isNumber(button)){button=0;}
relatedTarget=relatedTarget||null;var customEvent=null;if(isFunction(Y.config.doc.createEvent)){customEvent=Y.config.doc.createEvent("MouseEvents");if(customEvent.initMouseEvent){customEvent.initMouseEvent(type,bubbles,cancelable,view,detail,screenX,screenY,clientX,clientY,ctrlKey,altKey,shiftKey,metaKey,button,relatedTarget);}else{customEvent=Y.config.doc.createEvent("UIEvents");customEvent.initEvent(type,bubbles,cancelable);customEvent.view=view;customEvent.detail=detail;customEvent.screenX=screenX;customEvent.screenY=screenY;customEvent.clientX=clientX;customEvent.clientY=clientY;customEvent.ctrlKey=ctrlKey;customEvent.altKey=altKey;customEvent.metaKey=metaKey;customEvent.shiftKey=shiftKey;customEvent.button=button;customEvent.relatedTarget=relatedTarget;}
if(relatedTarget&&!customEvent.relatedTarget){if(type==="mouseout"){customEvent.toElement=relatedTarget;}else if(type==="mouseover"){customEvent.fromElement=relatedTarget;}}
target.dispatchEvent(customEvent);}else if(isObject(Y.config.doc.createEventObject)){customEvent=Y.config.doc.createEventObject();customEvent.bubbles=bubbles;customEvent.cancelable=cancelable;customEvent.view=view;customEvent.detail=detail;customEvent.screenX=screenX;customEvent.screenY=screenY;customEvent.clientX=clientX;customEvent.clientY=clientY;customEvent.ctrlKey=ctrlKey;customEvent.altKey=altKey;customEvent.metaKey=metaKey;customEvent.shiftKey=shiftKey;switch(button){case 0:customEvent.button=1;break;case 1:customEvent.button=4;break;case 2:break;default:customEvent.button=0;}
customEvent.relatedTarget=relatedTarget;target.fireEvent("on"+type,customEvent);}else{Y.error("simulateMouseEvent(): No event simulation framework present.");}}
function simulateUIEvent(target,type,bubbles,cancelable,view,detail)
{if(!target){Y.error("simulateUIEvent(): Invalid target.");}
if(isString(type)){type=type.toLowerCase();if(!uiEvents[type]){Y.error("simulateUIEvent(): Event type '"+type+"' not supported.");}}else{Y.error("simulateUIEvent(): Event type must be a string.");}
var customEvent=null;if(!isBoolean(bubbles)){bubbles=(type in bubbleEvents);}
if(!isBoolean(cancelable)){cancelable=(type==="submit");}
if(!isObject(view)){view=Y.config.win;}
if(!isNumber(detail)){detail=1;}
if(isFunction(Y.config.doc.createEvent)){customEvent=Y.config.doc.createEvent("UIEvents");customEvent.initUIEvent(type,bubbles,cancelable,view,detail);target.dispatchEvent(customEvent);}else if(isObject(Y.config.doc.createEventObject)){customEvent=Y.config.doc.createEventObject();customEvent.bubbles=bubbles;customEvent.cancelable=cancelable;customEvent.view=view;customEvent.detail=detail;target.fireEvent("on"+type,customEvent);}else{Y.error("simulateUIEvent(): No event simulation framework present.");}}
function simulateGestureEvent(target,type,bubbles,cancelable,view,detail,screenX,screenY,clientX,clientY,ctrlKey,altKey,shiftKey,metaKey,scale,rotation){var customEvent;if(!Y.UA.ios||Y.UA.ios<2.0){Y.error("simulateGestureEvent(): Native gesture DOM eventframe is not available in this platform.");}
if(!target){Y.error("simulateGestureEvent(): Invalid target.");}
if(Y.Lang.isString(type)){type=type.toLowerCase();if(!gestureEvents[type]){Y.error("simulateTouchEvent(): Event type '"+type+"' not supported.");}}else{Y.error("simulateGestureEvent(): Event type must be a string.");}
if(!Y.Lang.isBoolean(bubbles)){bubbles=true;}
if(!Y.Lang.isBoolean(cancelable)){cancelable=true;}
if(!Y.Lang.isObject(view)){view=Y.config.win;}
if(!Y.Lang.isNumber(detail)){detail=2;}
if(!Y.Lang.isNumber(screenX)){screenX=0;}
if(!Y.Lang.isNumber(screenY)){screenY=0;}
if(!Y.Lang.isNumber(clientX)){clientX=0;}
if(!Y.Lang.isNumber(clientY)){clientY=0;}
if(!Y.Lang.isBoolean(ctrlKey)){ctrlKey=false;}
if(!Y.Lang.isBoolean(altKey)){altKey=false;}
if(!Y.Lang.isBoolean(shiftKey)){shiftKey=false;}
if(!Y.Lang.isBoolean(metaKey)){metaKey=false;}
if(!Y.Lang.isNumber(scale)){scale=1.0;}
if(!Y.Lang.isNumber(rotation)){rotation=0.0;}
customEvent=Y.config.doc.createEvent("GestureEvent");customEvent.initGestureEvent(type,bubbles,cancelable,view,detail,screenX,screenY,clientX,clientY,ctrlKey,altKey,shiftKey,metaKey,target,scale,rotation);target.dispatchEvent(customEvent);}
function simulateTouchEvent(target,type,bubbles,cancelable,view,detail,screenX,screenY,clientX,clientY,ctrlKey,altKey,shiftKey,metaKey,touches,targetTouches,changedTouches,scale,rotation){var customEvent;if(!target){Y.error("simulateTouchEvent(): Invalid target.");}
if(Y.Lang.isString(type)){type=type.toLowerCase();if(!touchEvents[type]){Y.error("simulateTouchEvent(): Event type '"+type+"' not supported.");}}else{Y.error("simulateTouchEvent(): Event type must be a string.");}
if(type==='touchstart'||type==='touchmove'){if(touches.length===0){Y.error('simulateTouchEvent(): No touch object in touches');}}else if(type==='touchend'){if(changedTouches.length===0){Y.error('simulateTouchEvent(): No touch object in changedTouches');}}
if(!Y.Lang.isBoolean(bubbles)){bubbles=true;}
if(!Y.Lang.isBoolean(cancelable)){cancelable=(type!=="touchcancel");}
if(!Y.Lang.isObject(view)){view=Y.config.win;}
if(!Y.Lang.isNumber(detail)){detail=1;}
if(!Y.Lang.isNumber(screenX)){screenX=0;}
if(!Y.Lang.isNumber(screenY)){screenY=0;}
if(!Y.Lang.isNumber(clientX)){clientX=0;}
if(!Y.Lang.isNumber(clientY)){clientY=0;}
if(!Y.Lang.isBoolean(ctrlKey)){ctrlKey=false;}
if(!Y.Lang.isBoolean(altKey)){altKey=false;}
if(!Y.Lang.isBoolean(shiftKey)){shiftKey=false;}
if(!Y.Lang.isBoolean(metaKey)){metaKey=false;}
if(!Y.Lang.isNumber(scale)){scale=1.0;}
if(!Y.Lang.isNumber(rotation)){rotation=0.0;}
if(Y.Lang.isFunction(Y.config.doc.createEvent)){if(Y.UA.android){if(Y.UA.android<4.0){customEvent=Y.config.doc.createEvent("MouseEvents");customEvent.initMouseEvent(type,bubbles,cancelable,view,detail,screenX,screenY,clientX,clientY,ctrlKey,altKey,shiftKey,metaKey,0,target);customEvent.touches=touches;customEvent.targetTouches=targetTouches;customEvent.changedTouches=changedTouches;}else{customEvent=Y.config.doc.createEvent("TouchEvent");customEvent.initTouchEvent(touches,targetTouches,changedTouches,type,view,screenX,screenY,clientX,clientY,ctrlKey,altKey,shiftKey,metaKey);}}else if(Y.UA.ios){if(Y.UA.ios>=2.0){customEvent=Y.config.doc.createEvent("TouchEvent");customEvent.initTouchEvent(type,bubbles,cancelable,view,detail,screenX,screenY,clientX,clientY,ctrlKey,altKey,shiftKey,metaKey,touches,targetTouches,changedTouches,scale,rotation);}else{Y.error('simulateTouchEvent(): No touch event simulation framework present for iOS, '+Y.UA.ios+'.');}}else{Y.error('simulateTouchEvent(): Not supported agent yet, '+Y.UA.userAgent);}
target.dispatchEvent(customEvent);}else{Y.error('simulateTouchEvent(): No event simulation framework present.');}}
Y.Event.simulate=function(target,type,options){options=options||{};if(mouseEvents[type]||pointerEvents[type]){simulateMouseEvent(target,type,options.bubbles,options.cancelable,options.view,options.detail,options.screenX,options.screenY,options.clientX,options.clientY,options.ctrlKey,options.altKey,options.shiftKey,options.metaKey,options.button,options.relatedTarget);}else if(keyEvents[type]){simulateKeyEvent(target,type,options.bubbles,options.cancelable,options.view,options.ctrlKey,options.altKey,options.shiftKey,options.metaKey,options.keyCode,options.charCode);}else if(uiEvents[type]){simulateUIEvent(target,type,options.bubbles,options.cancelable,options.view,options.detail);}else if(touchEvents[type]){if((Y.config.win&&("ontouchstart"in Y.config.win))&&!(Y.UA.phantomjs)&&!(Y.UA.chrome&&Y.UA.chrome<6)){simulateTouchEvent(target,type,options.bubbles,options.cancelable,options.view,options.detail,options.screenX,options.screenY,options.clientX,options.clientY,options.ctrlKey,options.altKey,options.shiftKey,options.metaKey,options.touches,options.targetTouches,options.changedTouches,options.scale,options.rotation);}else{Y.error("simulate(): Event '"+type+"' can't be simulated. Use gesture-simulate module instead.");}}else if(Y.UA.ios&&Y.UA.ios>=2.0&&gestureEvents[type]){simulateGestureEvent(target,type,options.bubbles,options.cancelable,options.view,options.detail,options.screenX,options.screenY,options.clientX,options.clientY,options.ctrlKey,options.altKey,options.shiftKey,options.metaKey,options.scale,options.rotation);}else{Y.error("simulate(): Event '"+type+"' can't be simulated.");}};})();},'patched-v3.18.1',{"requires":["event-base"]});YUI.add('event-synthetic',function(Y,NAME){var CustomEvent=Y.CustomEvent,DOMMap=Y.Env.evt.dom_map,toArray=Y.Array,YLang=Y.Lang,isObject=YLang.isObject,isString=YLang.isString,isArray=YLang.isArray,query=Y.Selector.query,noop=function(){};function Notifier(handle,emitFacade){this.handle=handle;this.emitFacade=emitFacade;}
Notifier.prototype.fire=function(e){var args=toArray(arguments,0,true),handle=this.handle,ce=handle.evt,sub=handle.sub,thisObj=sub.context,delegate=sub.filter,event=e||{},ret;if(this.emitFacade){if(!e||!e.preventDefault){event=ce._getFacade();if(isObject(e)&&!e.preventDefault){Y.mix(event,e,true);args[0]=event;}else{args.unshift(event);}}
event.type=ce.type;event.details=args.slice();if(delegate){event.container=ce.host;}}else if(delegate&&isObject(e)&&e.currentTarget){args.shift();}
sub.context=thisObj||event.currentTarget||ce.host;ret=ce.fire.apply(ce,args);if(e.prevented&&ce.preventedFn){ce.preventedFn.apply(ce,args);}
if(e.stopped&&ce.stoppedFn){ce.stoppedFn.apply(ce,args);}
sub.context=thisObj;return ret;};function SynthRegistry(el,yuid,key){this.handles=[];this.el=el;this.key=key;this.domkey=yuid;}
SynthRegistry.prototype={constructor:SynthRegistry,type:'_synth',fn:noop,capture:false,register:function(handle){handle.evt.registry=this;this.handles.push(handle);},unregister:function(sub){var handles=this.handles,events=DOMMap[this.domkey],i;for(i=handles.length-1;i>=0;--i){if(handles[i].sub===sub){handles.splice(i,1);break;}}
if(!handles.length){delete events[this.key];if(!Y.Object.size(events)){delete DOMMap[this.domkey];}}},detachAll:function(){var handles=this.handles,i=handles.length;while(--i>=0){handles[i].detach();}}};function SyntheticEvent(){this._init.apply(this,arguments);}
Y.mix(SyntheticEvent,{Notifier:Notifier,SynthRegistry:SynthRegistry,getRegistry:function(node,type,create){var el=node._node,yuid=Y.stamp(el),key='event:'+yuid+type+'_synth',events=DOMMap[yuid];if(create){if(!events){events=DOMMap[yuid]={};}
if(!events[key]){events[key]=new SynthRegistry(el,yuid,key);}}
return(events&&events[key])||null;},_deleteSub:function(sub){if(sub&&sub.fn){var synth=this.eventDef,method=(sub.filter)?'detachDelegate':'detach';this._subscribers=[];if(CustomEvent.keepDeprecatedSubs){this.subscribers={};}
synth[method](sub.node,sub,this.notifier,sub.filter);this.registry.unregister(sub);delete sub.fn;delete sub.node;delete sub.context;}},prototype:{constructor:SyntheticEvent,_init:function(){var config=this.publishConfig||(this.publishConfig={});this.emitFacade=('emitFacade'in config)?config.emitFacade:true;config.emitFacade=false;},processArgs:noop,on:noop,detach:noop,delegate:noop,detachDelegate:noop,_on:function(args,delegate){var handles=[],originalArgs=args.slice(),extra=this.processArgs(args,delegate),selector=args[2],method=delegate?'delegate':'on',nodes,handle;nodes=(isString(selector))?query(selector):toArray(selector||Y.one(Y.config.win));if(!nodes.length&&isString(selector)){handle=Y.on('available',function(){Y.mix(handle,Y[method].apply(Y,originalArgs),true);},selector);return handle;}
Y.Array.each(nodes,function(node){var subArgs=args.slice(),filter;node=Y.one(node);if(node){if(delegate){filter=subArgs.splice(3,1)[0];}
subArgs.splice(0,4,subArgs[1],subArgs[3]);if(!this.preventDups||!this.getSubs(node,args,null,true))
{handles.push(this._subscribe(node,method,subArgs,extra,filter));}}},this);return(handles.length===1)?handles[0]:new Y.EventHandle(handles);},_subscribe:function(node,method,args,extra,filter){var dispatcher=new Y.CustomEvent(this.type,this.publishConfig),handle=dispatcher.on.apply(dispatcher,args),notifier=new Notifier(handle,this.emitFacade),registry=SyntheticEvent.getRegistry(node,this.type,true),sub=handle.sub;sub.node=node;sub.filter=filter;if(extra){this.applyArgExtras(extra,sub);}
Y.mix(dispatcher,{eventDef:this,notifier:notifier,host:node,currentTarget:node,target:node,el:node._node,_delete:SyntheticEvent._deleteSub},true);handle.notifier=notifier;registry.register(handle);this[method](node,sub,notifier,filter);return handle;},applyArgExtras:function(extra,sub){sub._extra=extra;},_detach:function(args){var target=args[2],els=(isString(target))?query(target):toArray(target),node,i,len,handles,j;args.splice(2,1);for(i=0,len=els.length;i<len;++i){node=Y.one(els[i]);if(node){handles=this.getSubs(node,args);if(handles){for(j=handles.length-1;j>=0;--j){handles[j].detach();}}}}},getSubs:function(node,args,filter,first){var registry=SyntheticEvent.getRegistry(node,this.type),handles=[],allHandles,i,len,handle;if(registry){allHandles=registry.handles;if(!filter){filter=this.subMatch;}
for(i=0,len=allHandles.length;i<len;++i){handle=allHandles[i];if(filter.call(this,handle.sub,args)){if(first){return handle;}else{handles.push(allHandles[i]);}}}}
return handles.length&&handles;},subMatch:function(sub,args){return!args[1]||sub.fn===args[1];}}},true);Y.SyntheticEvent=SyntheticEvent;Y.Event.define=function(type,config,force){var eventDef,Impl,synth;if(type&&type.type){eventDef=type;force=config;}else if(config){eventDef=Y.merge({type:type},config);}
if(eventDef){if(force||!Y.Node.DOM_EVENTS[eventDef.type]){Impl=function(){SyntheticEvent.apply(this,arguments);};Y.extend(Impl,SyntheticEvent,eventDef);synth=new Impl();type=synth.type;Y.Node.DOM_EVENTS[type]=Y.Env.evt.plugins[type]={eventDef:synth,on:function(){return synth._on(toArray(arguments));},delegate:function(){return synth._on(toArray(arguments),true);},detach:function(){return synth._detach(toArray(arguments));}};}}else if(isString(type)||isArray(type)){Y.Array.each(toArray(type),function(t){Y.Node.DOM_EVENTS[t]=1;});}
return synth;};},'patched-v3.18.1',{"requires":["node-base","event-custom-complex"]});YUI.add('intl',function(Y,NAME){var _mods={},ROOT_LANG="yuiRootLang",ACTIVE_LANG="yuiActiveLang",NONE=[];Y.mix(Y.namespace("Intl"),{_mod:function(module){if(!_mods[module]){_mods[module]={};}
return _mods[module];},setLang:function(module,lang){var langs=this._mod(module),currLang=langs[ACTIVE_LANG],exists=!!langs[lang];if(exists&&lang!==currLang){langs[ACTIVE_LANG]=lang;this.fire("intl:langChange",{module:module,prevVal:currLang,newVal:(lang===ROOT_LANG)?"":lang});}
return exists;},getLang:function(module){var lang=this._mod(module)[ACTIVE_LANG];return(lang===ROOT_LANG)?"":lang;},add:function(module,lang,strings){lang=lang||ROOT_LANG;this._mod(module)[lang]=strings;this.setLang(module,lang);},get:function(module,key,lang){var mod=this._mod(module),strs;lang=lang||mod[ACTIVE_LANG];strs=mod[lang]||{};return(key)?strs[key]:Y.merge(strs);},getAvailableLangs:function(module){var loader=Y.Env._loader,mod=loader&&loader.moduleInfo[module],langs=mod&&mod.lang;return(langs)?langs.concat():NONE;}});Y.augment(Y.Intl,Y.EventTarget);Y.Intl.publish("intl:langChange",{emitFacade:true});},'patched-v3.18.1',{"requires":["intl-base","event-custom"]});YUI.add('io-base',function(Y,NAME){var
EVENTS=['start','complete','end','success','failure','progress'],XHR_PROPS=['status','statusText','responseText','responseXML'],win=Y.config.win,uid=0;function IO(config){var io=this;io._uid='io:'+uid++;io._init(config);Y.io._map[io._uid]=io;}
IO.prototype={_id:0,_headers:{'X-Requested-With':'XMLHttpRequest'},_timeout:{},_init:function(config){var io=this,i,len;io.cfg=config||{};Y.augment(io,Y.EventTarget);for(i=0,len=EVENTS.length;i<len;++i){io.publish('io:'+EVENTS[i],Y.merge({broadcast:1},config));io.publish('io-trn:'+EVENTS[i],config);}},_create:function(config,id){var io=this,transaction={id:Y.Lang.isNumber(id)?id:io._id++,uid:io._uid},alt=config.xdr?config.xdr.use:null,form=config.form&&config.form.upload?'iframe':null,use;if(alt==='native'){alt=Y.UA.ie&&!SUPPORTS_CORS?'xdr':null;io.setHeader('X-Requested-With');}
use=alt||form;transaction=use?Y.merge(Y.IO.customTransport(use),transaction):Y.merge(Y.IO.defaultTransport(),transaction);if(transaction.notify){config.notify=function(e,t,c){io.notify(e,t,c);};}
if(!use){if(win&&win.FormData&&config.data instanceof win.FormData){transaction.c.upload.onprogress=function(e){io.progress(transaction,e,config);};transaction.c.onload=function(e){io.load(transaction,e,config);};transaction.c.onerror=function(e){io.error(transaction,e,config);};transaction.upload=true;}}
return transaction;},_destroy:function(transaction){if(win&&!transaction.notify&&!transaction.xdr){if(XHR&&!transaction.upload){transaction.c.onreadystatechange=null;}else if(transaction.upload){transaction.c.upload.onprogress=null;transaction.c.onload=null;transaction.c.onerror=null;}else if(Y.UA.ie&&!transaction.e){transaction.c.abort();}}
transaction=transaction.c=null;},_evt:function(eventName,transaction,config){var io=this,params,args=config['arguments'],emitFacade=io.cfg.emitFacade,globalEvent="io:"+eventName,trnEvent="io-trn:"+eventName;this.detach(trnEvent);if(transaction.e){transaction.c={status:0,statusText:transaction.e};}
params=[emitFacade?{id:transaction.id,data:transaction.c,cfg:config,'arguments':args}:transaction.id];if(!emitFacade){if(eventName===EVENTS[0]||eventName===EVENTS[2]){if(args){params.push(args);}}else{if(transaction.evt){params.push(transaction.evt);}else{params.push(transaction.c);}
if(args){params.push(args);}}}
params.unshift(globalEvent);io.fire.apply(io,params);if(config.on){params[0]=trnEvent;io.once(trnEvent,config.on[eventName],config.context||Y);io.fire.apply(io,params);}},start:function(transaction,config){this._evt(EVENTS[0],transaction,config);},complete:function(transaction,config){this._evt(EVENTS[1],transaction,config);},end:function(transaction,config){this._evt(EVENTS[2],transaction,config);this._destroy(transaction);},success:function(transaction,config){this._evt(EVENTS[3],transaction,config);this.end(transaction,config);},failure:function(transaction,config){this._evt(EVENTS[4],transaction,config);this.end(transaction,config);},progress:function(transaction,e,config){transaction.evt=e;this._evt(EVENTS[5],transaction,config);},load:function(transaction,e,config){transaction.evt=e.target;this._evt(EVENTS[1],transaction,config);},error:function(transaction,e,config){transaction.evt=e;this._evt(EVENTS[4],transaction,config);},_retry:function(transaction,uri,config){this._destroy(transaction);config.xdr.use='flash';return this.send(uri,config,transaction.id);},_concat:function(uri,data){uri+=(uri.indexOf('?')===-1?'?':'&')+data;return uri;},setHeader:function(name,value){if(value){this._headers[name]=value;}else{delete this._headers[name];}},_setHeaders:function(transaction,headers){headers=Y.merge(this._headers,headers);Y.Object.each(headers,function(value,name){if(value!=='disable'){transaction.setRequestHeader(name,headers[name]);}});},_startTimeout:function(transaction,timeout){var io=this;io._timeout[transaction.id]=setTimeout(function(){io._abort(transaction,'timeout');},timeout);},_clearTimeout:function(id){clearTimeout(this._timeout[id]);delete this._timeout[id];},_result:function(transaction,config){var status;try{status=transaction.c.status;}catch(e){status=0;}
if(status>=200&&status<300||status===304||status===1223){this.success(transaction,config);}else{this.failure(transaction,config);}},_rS:function(transaction,config){var io=this;if(transaction.c.readyState===4){if(config.timeout){io._clearTimeout(transaction.id);}
setTimeout(function(){io.complete(transaction,config);io._result(transaction,config);},0);}},_abort:function(transaction,type){if(transaction&&transaction.c){transaction.e=type;transaction.c.abort();}},send:function(uri,config,id){var transaction,method,i,len,sync,data,io=this,u=uri,response={};config=config?Y.Object(config):{};transaction=io._create(config,id);method=config.method?config.method.toUpperCase():'GET';sync=config.sync;data=config.data;if((Y.Lang.isObject(data)&&!data.nodeType)&&!transaction.upload){if(Y.QueryString&&Y.QueryString.stringify){config.data=data=Y.QueryString.stringify(data);}else{}}
if(config.form){if(config.form.upload){return io.upload(transaction,uri,config);}else{data=io._serialize(config.form,data);}}
data||(data='');if(data){switch(method){case 'GET':case 'HEAD':case 'DELETE':u=io._concat(u,data);data='';break;case 'POST':case 'PUT':config.headers=Y.merge({'Content-Type':'application/x-www-form-urlencoded; charset=UTF-8'},config.headers);break;}}
if(transaction.xdr){return io.xdr(u,transaction,config);}
else if(transaction.notify){return transaction.c.send(transaction,uri,config);}
if(!sync&&!transaction.upload){transaction.c.onreadystatechange=function(){io._rS(transaction,config);};}
try{transaction.c.open(method,u,!sync,config.username||null,config.password||null);io._setHeaders(transaction.c,config.headers||{});io.start(transaction,config);if(config.xdr&&config.xdr.credentials&&SUPPORTS_CORS){transaction.c.withCredentials=true;}
transaction.c.send(data);if(sync){for(i=0,len=XHR_PROPS.length;i<len;++i){response[XHR_PROPS[i]]=transaction.c[XHR_PROPS[i]];}
response.getAllResponseHeaders=function(){return transaction.c.getAllResponseHeaders();};response.getResponseHeader=function(name){return transaction.c.getResponseHeader(name);};io.complete(transaction,config);io._result(transaction,config);return response;}}catch(e){if(transaction.xdr){return io._retry(transaction,uri,config);}else{io.complete(transaction,config);io._result(transaction,config);}}
if(config.timeout){io._startTimeout(transaction,config.timeout);}
return{id:transaction.id,abort:function(){return transaction.c?io._abort(transaction,'abort'):false;},isInProgress:function(){return transaction.c?(transaction.c.readyState%4):false;},io:io};}};Y.io=function(url,config){var transaction=Y.io._map['io:0']||new IO();return transaction.send.apply(transaction,[url,config]);};Y.io.header=function(name,value){var transaction=Y.io._map['io:0']||new IO();transaction.setHeader(name,value);};Y.IO=IO;Y.io._map={};var XHR=win&&win.XMLHttpRequest,XDR=win&&win.XDomainRequest,AX=win&&win.ActiveXObject,SUPPORTS_CORS=XHR&&'withCredentials'in(new XMLHttpRequest());Y.mix(Y.IO,{_default:'xhr',defaultTransport:function(id){if(id){Y.IO._default=id;}else{var o={c:Y.IO.transports[Y.IO._default](),notify:Y.IO._default==='xhr'?false:true};return o;}},transports:{xhr:function(){return XHR?new XMLHttpRequest():AX?new ActiveXObject('Microsoft.XMLHTTP'):null;},xdr:function(){return XDR?new XDomainRequest():null;},iframe:function(){return{};},flash:null,nodejs:null},customTransport:function(id){var o={c:Y.IO.transports[id]()};o[(id==='xdr'||id==='flash')?'xdr':'notify']=true;return o;}});Y.mix(Y.IO.prototype,{notify:function(event,transaction,config){var io=this;switch(event){case 'timeout':case 'abort':case 'transport error':transaction.c={status:0,statusText:event};event='failure';default:io[event].apply(io,[transaction,config]);}}});},'patched-v3.18.1',{"requires":["event-custom-base","querystring-stringify-simple"]});YUI.add('io-form',function(Y,NAME){var eUC=encodeURIComponent;Y.IO.stringify=function(form,options){options=options||{};var s=Y.IO.prototype._serialize({id:form,useDisabled:options.useDisabled},options.extra&&typeof options.extra==='object'?Y.QueryString.stringify(options.extra):options.extra);return s;};Y.mix(Y.IO.prototype,{_serialize:function(c,s){var data=[],df=c.useDisabled||false,item=0,id=(typeof c.id==='string')?c.id:c.id.getAttribute('id'),e,f,n,v,d,i,il,j,jl,o;if(!id){id=Y.guid('io:');c.id.setAttribute('id',id);}
f=Y.config.doc.getElementById(id);if(!f||!f.elements){return s||'';}
for(i=0,il=f.elements.length;i<il;++i){e=f.elements[i];d=e.disabled;n=e.name;if(df?n:n&&!d){n=eUC(n)+'=';v=eUC(e.value);switch(e.type){case 'select-one':if(e.selectedIndex>-1){o=e.options[e.selectedIndex];data[item++]=n+eUC(o.attributes.value&&o.attributes.value.specified?o.value:o.text);}
break;case 'select-multiple':if(e.selectedIndex>-1){for(j=e.selectedIndex,jl=e.options.length;j<jl;++j){o=e.options[j];if(o.selected){data[item++]=n+eUC(o.attributes.value&&o.attributes.value.specified?o.value:o.text);}}}
break;case 'radio':case 'checkbox':if(e.checked){data[item++]=n+v;}
break;case 'file':case undefined:case 'reset':case 'button':break;case 'submit':default:data[item++]=n+v;}}}
if(s){data[item++]=s;}
return data.join('&');}},true);},'patched-v3.18.1',{"requires":["io-base","node-base"]});YUI.add('io-queue',function(Y,NAME){var io=Y.io._map['io:0']||new Y.IO();Y.mix(Y.IO.prototype,{_q:new Y.Queue(),_qActiveId:null,_qInit:false,_qState:1,_qShift:function(){var io=this,o=io._q.next();io._qActiveId=o.id;io._qState=0;io.send(o.uri,o.cfg,o.id);},queue:function(uri,c){var io=this,o={uri:uri,cfg:c,id:this._id++};if(!io._qInit){Y.on('io:complete',function(id,o){io._qNext(id);},io);io._qInit=true;}
io._q.add(o);if(io._qState===1){io._qShift();}
return o;},_qNext:function(id){var io=this;io._qState=1;if(io._qActiveId===id&&io._q.size()>0){io._qShift();}},qPromote:function(o){this._q.promote(o);},qRemove:function(o){this._q.remove(o);},qEmpty:function(){this._q=new Y.Queue();},qStart:function(){var io=this;io._qState=1;if(io._q.size()>0){io._qShift();}},qStop:function(){this._qState=0;},qSize:function(){return this._q.size();}},true);function _queue(u,c){return io.queue.apply(io,[u,c]);}
_queue.start=function(){io.qStart();};_queue.stop=function(){io.qStop();};_queue.promote=function(o){io.qPromote(o);};_queue.remove=function(o){io.qRemove(o);};_queue.size=function(){io.qSize();};_queue.empty=function(){io.qEmpty();};Y.io.queue=_queue;},'patched-v3.18.1',{"requires":["io-base","queue-promote"]});YUI.add('io-upload-iframe',function(Y,NAME){var w=Y.config.win,d=Y.config.doc,_std=(d.documentMode&&d.documentMode>=8),_d=decodeURIComponent,_end=Y.IO.prototype.end;function _cFrame(o,c,io){var i=Y.Node.create('<iframe id="io_iframe'+o.id+'" name="io_iframe'+o.id+'" />');i._node.style.position='absolute';i._node.style.top='-1000px';i._node.style.left='-1000px';Y.one('body').appendChild(i);Y.on("load",function(){io._uploadComplete(o,c);},'#io_iframe'+o.id);}
function _dFrame(id){Y.Event.purgeElement('#io_iframe'+id,false);Y.one('body').removeChild(Y.one('#io_iframe'+id));}
Y.mix(Y.IO.prototype,{_addData:function(f,s){if(Y.Lang.isObject(s)){s=Y.QueryString.stringify(s);}
var o=[],m=s.split('='),i,l;for(i=0,l=m.length-1;i<l;i++){var name=_d(m[i].substring(m[i].lastIndexOf('&')+1));var input=f.elements[name];if(!input){o[i]=d.createElement('input');o[i].type='hidden';o[i].name=name;o[i].value=(i+1===l)?_d(m[i+1]):_d(m[i+1].substring(0,(m[i+1].lastIndexOf('&'))));f.appendChild(o[i]);}}
return o;},_removeData:function(f,o){var i,l;for(i=0,l=o.length;i<l;i++){f.removeChild(o[i]);}},_setAttrs:function(f,id,uri){this._originalFormAttrs={action:f.getAttribute('action'),target:f.getAttribute('target')};f.setAttribute('action',uri);f.setAttribute('method','POST');f.setAttribute('target','io_iframe'+id);f.setAttribute(Y.UA.ie&&!_std?'encoding':'enctype','multipart/form-data');},_resetAttrs:function(f,a){Y.Object.each(a,function(v,p){if(v){f.setAttribute(p,v);}
else{f.removeAttribute(p);}});},_startUploadTimeout:function(o,c){var io=this;io._timeout[o.id]=w.setTimeout(function(){o.status=0;o.statusText='timeout';io.complete(o,c);io.end(o,c);},c.timeout);},_clearUploadTimeout:function(id){var io=this;w.clearTimeout(io._timeout[id]);delete io._timeout[id];},_uploadComplete:function(o,c){var io=this,d=Y.one('#io_iframe'+o.id).get('contentWindow.document'),b=d.one('body'),p;if(c.timeout){io._clearUploadTimeout(o.id);}
try{if(b){p=b.one('pre:first-child');o.c.responseText=p?p.get('text'):b.get('text');}
else{o.c.responseXML=d._node;}}
catch(e){o.e="upload failure";}
io.complete(o,c);io.end(o,c);w.setTimeout(function(){_dFrame(o.id);},0);},_upload:function(o,uri,c){var io=this,f=(typeof c.form.id==='string')?d.getElementById(c.form.id):Y.Node.getDOMNode(c.form.id),fields;io._setAttrs(f,o.id,uri);if(c.data){fields=io._addData(f,c.data);}
if(c.timeout){io._startUploadTimeout(o,c);}
f.submit();io.start(o,c);if(c.data){var _onIoEndHandler=io.on('io:end',function(event){_onIoEndHandler.detach();io._removeData(f,fields);});}
return{id:o.id,abort:function(){o.status=0;o.statusText='abort';if(Y.one('#io_iframe'+o.id)){_dFrame(o.id);io.complete(o,c);io.end(o,c);}
else{return false;}},isInProgress:function(){return Y.one('#io_iframe'+o.id)?true:false;},io:io};},upload:function(o,uri,c){_cFrame(o,c,this);return this._upload(o,uri,c);},end:function(transaction,config){var form,io;if(config){form=config.form;if(form&&form.upload){io=this;form=(typeof form.id==='string')?d.getElementById(form.id):form.id;if(form){io._resetAttrs(form,this._originalFormAttrs);}}}
return _end.call(this,transaction,config);}},true);},'patched-v3.18.1',{"requires":["io-base","node-base"]});YUI.add('io-xdr',function(Y,NAME){var E_XDR_READY=Y.publish('io:xdrReady',{fireOnce:true}),_cB={},_rS={},d=Y.config.doc,w=Y.config.win,xdr=w&&w.XDomainRequest;function _swf(uri,yid,uid){var o='<object id="io_swf" type="application/x-shockwave-flash" data="'+
uri+'" width="0" height="0">'+
'<param name="movie" value="'+uri+'">'+
'<param name="FlashVars" value="yid='+yid+'&uid='+uid+'">'+
'<param name="allowScriptAccess" value="always">'+
'</object>',c=d.createElement('div');d.body.appendChild(c);c.innerHTML=o;}
function _data(o,u,d){if(u==='flash'){o.c.responseText=decodeURI(o.c.responseText);}
if(d==='xml'){o.c.responseXML=Y.DataType.XML.parse(o.c.responseText);}
return o;}
function _abort(o,c){return o.c.abort(o.id,c);}
function _isInProgress(o){return xdr?_rS[o.id]!==4:o.c.isInProgress(o.id);}
Y.mix(Y.IO.prototype,{_transport:{},_ieEvt:function(o,c){var io=this,i=o.id,t='timeout';o.c.onprogress=function(){_rS[i]=3;};o.c.onload=function(){_rS[i]=4;io.xdrResponse('success',o,c);};o.c.onerror=function(){_rS[i]=4;io.xdrResponse('failure',o,c);};o.c.ontimeout=function(){_rS[i]=4;io.xdrResponse(t,o,c);};o.c[t]=c[t]||0;},xdr:function(uri,o,c){var io=this;if(c.xdr.use==='flash'){_cB[o.id]=c;w.setTimeout(function(){try{o.c.send(uri,{id:o.id,uid:o.uid,method:c.method,data:c.data,headers:c.headers});}
catch(e){io.xdrResponse('transport error',o,c);delete _cB[o.id];}},Y.io.xdr.delay);}
else if(xdr){io._ieEvt(o,c);o.c.open(c.method||'GET',uri);setTimeout(function(){o.c.send(c.data);},0);}
else{o.c.send(uri,o,c);}
return{id:o.id,abort:function(){return o.c?_abort(o,c):false;},isInProgress:function(){return o.c?_isInProgress(o.id):false;},io:io};},xdrResponse:function(e,o,c){c=_cB[o.id]?_cB[o.id]:c;var io=this,m=xdr?_rS:_cB,u=c.xdr.use,d=c.xdr.dataType;switch(e){case 'start':io.start(o,c);break;case 'success':io.success(_data(o,u,d),c);delete m[o.id];break;case 'timeout':case 'abort':case 'transport error':o.c={status:0,statusText:e};case 'failure':io.failure(_data(o,u,d),c);delete m[o.id];break;}},_xdrReady:function(yid,uid){Y.fire(E_XDR_READY,yid,uid);},transport:function(c){if(c.id==='flash'){_swf(Y.UA.ie?c.src+'?d='+new Date().valueOf().toString():c.src,Y.id,c.uid);Y.IO.transports.flash=function(){return d.getElementById('io_swf');};}}});Y.io.xdrReady=function(yid,uid){var io=Y.io._map[uid];Y.io.xdr.delay=0;io._xdrReady.apply(io,[yid,uid]);};Y.io.xdrResponse=function(e,o,c){var io=Y.io._map[o.uid];io.xdrResponse.apply(io,[e,o,c]);};Y.io.transport=function(c){var io=Y.io._map['io:0']||new Y.IO();c.uid=io._uid;io.transport.apply(io,[c]);};Y.io.xdr={delay:100};},'patched-v3.18.1',{"requires":["io-base","datatype-xml-parse"]});YUI.add('json-parse',function(Y,NAME){var _JSON=Y.config.global.JSON;Y.namespace('JSON').parse=function(obj,reviver,space){return _JSON.parse((typeof obj==='string'?obj:obj+''),reviver,space);};},'patched-v3.18.1',{"requires":["yui-base"]});YUI.add('json-stringify',function(Y,NAME){var COLON=':',_JSON=Y.config.global.JSON;Y.mix(Y.namespace('JSON'),{dateToString:function(d){function _zeroPad(v){return v<10?'0'+v:v;}
return d.getUTCFullYear()+'-'+
_zeroPad(d.getUTCMonth()+1)+'-'+
_zeroPad(d.getUTCDate())+'T'+
_zeroPad(d.getUTCHours())+COLON+
_zeroPad(d.getUTCMinutes())+COLON+
_zeroPad(d.getUTCSeconds())+'Z';},stringify:function(){return _JSON.stringify.apply(_JSON,arguments);},charCacheThreshold:100});},'patched-v3.18.1',{"requires":["yui-base"]});YUI.add('node-base',function(Y,NAME){var methods=['hasClass','addClass','removeClass','replaceClass','toggleClass'];Y.Node.importMethod(Y.DOM,methods);Y.NodeList.importMethod(Y.Node.prototype,methods);var Y_Node=Y.Node,Y_DOM=Y.DOM;Y_Node.create=function(html,doc){if(doc&&doc._node){doc=doc._node;}
return Y.one(Y_DOM.create(html,doc));};Y.mix(Y_Node.prototype,{create:Y_Node.create,insert:function(content,where){this._insert(content,where);return this;},_insert:function(content,where){var node=this._node,ret=null;if(typeof where=='number'){where=this._node.childNodes[where];}else if(where&&where._node){where=where._node;}
if(content&&typeof content!='string'){content=content._node||content._nodes||content;}
ret=Y_DOM.addHTML(node,content,where);return ret;},prepend:function(content){return this.insert(content,0);},append:function(content){return this.insert(content,null);},appendChild:function(node){return Y_Node.scrubVal(this._insert(node));},insertBefore:function(newNode,refNode){return Y.Node.scrubVal(this._insert(newNode,refNode));},appendTo:function(node){Y.one(node).append(this);return this;},setContent:function(content){this._insert(content,'replace');return this;},getContent:function(){var node=this;if(node._node.nodeType===11){node=node.create("<div/>").append(node.cloneNode(true));}
return node.get("innerHTML");}});Y.Node.prototype.setHTML=Y.Node.prototype.setContent;Y.Node.prototype.getHTML=Y.Node.prototype.getContent;Y.NodeList.importMethod(Y.Node.prototype,['append','insert','appendChild','insertBefore','prepend','setContent','getContent','setHTML','getHTML']);var Y_Node=Y.Node,Y_DOM=Y.DOM;Y_Node.ATTRS={text:{getter:function(){return Y_DOM.getText(this._node);},setter:function(content){Y_DOM.setText(this._node,content);return content;}},'for':{getter:function(){return Y_DOM.getAttribute(this._node,'for');},setter:function(val){Y_DOM.setAttribute(this._node,'for',val);return val;}},'options':{getter:function(){return this._node.getElementsByTagName('option');}},'children':{getter:function(){var node=this._node,children=node.children,childNodes,i,len;if(!children||(Y.UA.ie&&Y.UA.ie<9)){childNodes=node.childNodes;children=[];for(i=0,len=childNodes.length;i<len;++i){if(childNodes[i].tagName&&(childNodes[i].nodeType===1)){children[children.length]=childNodes[i];}}}
return Y.all(children);}},value:{getter:function(){return Y_DOM.getValue(this._node);},setter:function(val){Y_DOM.setValue(this._node,val);return val;}}};Y.Node.importMethod(Y.DOM,['setAttribute','getAttribute']);var Y_Node=Y.Node;var Y_NodeList=Y.NodeList;Y_Node.DOM_EVENTS={abort:1,beforeunload:1,blur:1,change:1,click:1,close:1,command:1,contextmenu:1,copy:1,cut:1,dblclick:1,DOMMouseScroll:1,drag:1,dragstart:1,dragenter:1,dragover:1,dragleave:1,dragend:1,drop:1,error:1,focus:1,key:1,keydown:1,keypress:1,keyup:1,load:1,message:1,mousedown:1,mouseenter:1,mouseleave:1,mousemove:1,mousemultiwheel:1,mouseout:1,mouseover:1,mouseup:1,mousewheel:1,orientationchange:1,paste:1,reset:1,resize:1,select:1,selectstart:1,submit:1,scroll:1,textInput:1,unload:1,invalid:1};Y.mix(Y_Node.DOM_EVENTS,Y.Env.evt.plugins);Y.augment(Y_Node,Y.EventTarget);Y.mix(Y_Node.prototype,{purge:function(recurse,type){Y.Event.purgeElement(this._node,recurse,type);return this;}});Y.mix(Y.NodeList.prototype,{_prepEvtArgs:function(type,fn,context){var args=Y.Array(arguments,0,true);if(args.length<2){args[2]=this._nodes;}else{args.splice(2,0,this._nodes);}
args[3]=context||this;return args;},on:function(type,fn,context){return Y.on.apply(Y,this._prepEvtArgs.apply(this,arguments));},once:function(type,fn,context){return Y.once.apply(Y,this._prepEvtArgs.apply(this,arguments));},after:function(type,fn,context){return Y.after.apply(Y,this._prepEvtArgs.apply(this,arguments));},onceAfter:function(type,fn,context){return Y.onceAfter.apply(Y,this._prepEvtArgs.apply(this,arguments));}});Y_NodeList.importMethod(Y.Node.prototype,['detach','detachAll']);Y.mix(Y.Node.ATTRS,{offsetHeight:{setter:function(h){Y.DOM.setHeight(this._node,h);return h;},getter:function(){return this._node.offsetHeight;}},offsetWidth:{setter:function(w){Y.DOM.setWidth(this._node,w);return w;},getter:function(){return this._node.offsetWidth;}}});Y.mix(Y.Node.prototype,{sizeTo:function(w,h){var node;if(arguments.length<2){node=Y.one(w);w=node.get('offsetWidth');h=node.get('offsetHeight');}
this.setAttrs({offsetWidth:w,offsetHeight:h});}});if(!Y.config.doc.documentElement.hasAttribute){Y.Node.prototype.hasAttribute=function(attr){if(attr==='value'){if(this.get('value')!==""){return true;}}
return!!(this._node.attributes[attr]&&this._node.attributes[attr].specified);};}
Y.Node.prototype.focus=function(){try{this._node.focus();}catch(e){}
return this;};Y.Node.ATTRS.type={setter:function(val){if(val==='hidden'){try{this._node.type='hidden';}catch(e){this._node.style.display='none';this._inputType='hidden';}}else{try{this._node.type=val;}catch(e){}}
return val;},getter:function(){return this._inputType||this._node.type;},_bypassProxy:true};if(Y.config.doc.createElement('form').elements.nodeType){Y.Node.ATTRS.elements={getter:function(){return this.all('input, textarea, button, select');}};}
Y.mix(Y.Node.prototype,{_initData:function(){if(!('_data'in this)){this._data={};}},getData:function(name){this._initData();var data=this._data,ret=data;if(arguments.length){if(name in data){ret=data[name];}else{ret=this._getDataAttribute(name);}}else if(typeof data=='object'&&data!==null){ret={};Y.Object.each(data,function(v,n){ret[n]=v;});ret=this._getDataAttributes(ret);}
return ret;},_getDataAttributes:function(ret){ret=ret||{};var i=0,attrs=this._node.attributes,len=attrs.length,prefix=this.DATA_PREFIX,prefixLength=prefix.length,name;while(i<len){name=attrs[i].name;if(name.indexOf(prefix)===0){name=name.substr(prefixLength);if(!(name in ret)){ret[name]=this._getDataAttribute(name);}}
i+=1;}
return ret;},_getDataAttribute:function(name){name=this.DATA_PREFIX+name;var node=this._node,attrs=node.attributes,data=attrs&&attrs[name]&&attrs[name].value;return data;},setData:function(name,val){this._initData();if(arguments.length>1){this._data[name]=val;}else{this._data=name;}
return this;},clearData:function(name){if('_data'in this){if(typeof name!='undefined'){delete this._data[name];}else{delete this._data;}}
return this;}});Y.mix(Y.NodeList.prototype,{getData:function(name){var args=(arguments.length)?[name]:[];return this._invoke('getData',args,true);},setData:function(name,val){var args=(arguments.length>1)?[name,val]:[name];return this._invoke('setData',args);},clearData:function(name){var args=(arguments.length)?[name]:[];return this._invoke('clearData',[name]);}});},'patched-v3.18.1',{"requires":["event-base","node-core","dom-base","dom-style"]});YUI.add('node-core',function(Y,NAME){var DOT='.',NODE_NAME='nodeName',NODE_TYPE='nodeType',OWNER_DOCUMENT='ownerDocument',TAG_NAME='tagName',UID='_yuid',EMPTY_OBJ={},_slice=Array.prototype.slice,Y_DOM=Y.DOM,Y_Node=function(node){if(!this.getDOMNode&&!Y.instanceOf(this,Y_Node)){return new Y_Node(node);}
if(typeof node=='string'){node=Y_Node._fromString(node);if(!node){return null;}}
var uid=(node.nodeType!==9)?node.uniqueID:node[UID];if(uid&&Y_Node._instances[uid]&&Y_Node._instances[uid]._node!==node){node[UID]=null;}
uid=uid||Y.stamp(node);if(!uid){uid=Y.guid();}
this[UID]=uid;this._node=node;this._stateProxy=node;if(this._initPlugins){this._initPlugins();}},_wrapFn=function(fn){var ret=null;if(fn){ret=(typeof fn=='string')?function(n){return Y.Selector.test(n,fn);}:function(n){return fn(Y.one(n));};}
return ret;};Y_Node.ATTRS={};Y_Node.DOM_EVENTS={};Y_Node._fromString=function(node){if(node){if(node.indexOf('doc')===0){node=Y.config.doc;}else if(node.indexOf('win')===0){node=Y.config.win;}else{node=Y.Selector.query(node,null,true);}}
return node||null;};Y_Node.NAME='node';Y_Node.re_aria=/^(?:role$|aria-)/;Y_Node.SHOW_TRANSITION='fadeIn';Y_Node.HIDE_TRANSITION='fadeOut';Y_Node._instances={};Y_Node.getDOMNode=function(node){if(node){return(node.nodeType)?node:node._node||null;}
return null;};Y_Node.scrubVal=function(val,node){if(val){if(typeof val=='object'||typeof val=='function'){if(NODE_TYPE in val||Y_DOM.isWindow(val)){val=Y.one(val);}else if((val.item&&!val._nodes)||(val[0]&&val[0][NODE_TYPE])){val=Y.all(val);}}}else if(typeof val==='undefined'){val=node;}else if(val===null){val=null;}
return val;};Y_Node.addMethod=function(name,fn,context){if(name&&fn&&typeof fn=='function'){Y_Node.prototype[name]=function(){var args=_slice.call(arguments),node=this,ret;if(args[0]&&args[0]._node){args[0]=args[0]._node;}
if(args[1]&&args[1]._node){args[1]=args[1]._node;}
args.unshift(node._node);ret=fn.apply(context||node,args);if(ret){ret=Y_Node.scrubVal(ret,node);}
(typeof ret!='undefined')||(ret=node);return ret;};}else{}};Y_Node.importMethod=function(host,name,altName){if(typeof name=='string'){altName=altName||name;Y_Node.addMethod(altName,host[name],host);}else{Y.Array.each(name,function(n){Y_Node.importMethod(host,n);});}};Y_Node.one=function(node){var instance=null,cachedNode,uid;if(node){if(typeof node=='string'){node=Y_Node._fromString(node);if(!node){return null;}}else if(node.getDOMNode&&Y.instanceOf(node,Y_Node)){return node;}
if(node.nodeType||Y.DOM.isWindow(node)){uid=(node.uniqueID&&node.nodeType!==9)?node.uniqueID:node._yuid;instance=Y_Node._instances[uid];cachedNode=instance?instance._node:null;if(!instance||(cachedNode&&node!==cachedNode)){instance=new Y_Node(node);if(node.nodeType!=11){Y_Node._instances[instance[UID]]=instance;}}}}
return instance;};Y_Node.DEFAULT_SETTER=function(name,val){var node=this._stateProxy,strPath;if(name.indexOf(DOT)>-1){strPath=name;name=name.split(DOT);Y.Object.setValue(node,name,val);}else if(typeof node[name]!='undefined'){node[name]=val;}
return val;};Y_Node.DEFAULT_GETTER=function(name){var node=this._stateProxy,val;if(name.indexOf&&name.indexOf(DOT)>-1){val=Y.Object.getValue(node,name.split(DOT));}else if(typeof node[name]!='undefined'){val=node[name];}
return val;};Y.mix(Y_Node.prototype,{DATA_PREFIX:'data-',toString:function(){var str=this[UID]+': not bound to a node',node=this._node,attrs,id,className;if(node){attrs=node.attributes;id=(attrs&&attrs.id)?node.getAttribute('id'):null;className=(attrs&&attrs.className)?node.getAttribute('className'):null;str=node[NODE_NAME];if(id){str+='#'+id;}
if(className){str+='.'+className.replace(' ','.');}
str+=' '+this[UID];}
return str;},get:function(attr){var val;if(this._getAttr){val=this._getAttr(attr);}else{val=this._get(attr);}
if(val){val=Y_Node.scrubVal(val,this);}else if(val===null){val=null;}
return val;},_get:function(attr){var attrConfig=Y_Node.ATTRS[attr],val;if(attrConfig&&attrConfig.getter){val=attrConfig.getter.call(this);}else if(Y_Node.re_aria.test(attr)){val=this._node.getAttribute(attr,2);}else{val=Y_Node.DEFAULT_GETTER.apply(this,arguments);}
return val;},set:function(attr,val){var attrConfig=Y_Node.ATTRS[attr];if(this._setAttr){this._setAttr.apply(this,arguments);}else{if(attrConfig&&attrConfig.setter){attrConfig.setter.call(this,val,attr);}else if(Y_Node.re_aria.test(attr)){this._node.setAttribute(attr,val);}else{Y_Node.DEFAULT_SETTER.apply(this,arguments);}}
return this;},setAttrs:function(attrMap){if(this._setAttrs){this._setAttrs(attrMap);}else{Y.Object.each(attrMap,function(v,n){this.set(n,v);},this);}
return this;},getAttrs:function(attrs){var ret={};if(this._getAttrs){this._getAttrs(attrs);}else{Y.Array.each(attrs,function(v,n){ret[v]=this.get(v);},this);}
return ret;},compareTo:function(refNode){var node=this._node;if(refNode&&refNode._node){refNode=refNode._node;}
return node===refNode;},inDoc:function(doc){var node=this._node;if(node){doc=(doc)?doc._node||doc:node[OWNER_DOCUMENT];if(doc.documentElement){return Y_DOM.contains(doc.documentElement,node);}}
return false;},getById:function(id){var node=this._node,ret=Y_DOM.byId(id,node[OWNER_DOCUMENT]);if(ret&&Y_DOM.contains(node,ret)){ret=Y.one(ret);}else{ret=null;}
return ret;},ancestor:function(fn,testSelf,stopFn){if(arguments.length===2&&(typeof testSelf=='string'||typeof testSelf=='function')){stopFn=testSelf;}
return Y.one(Y_DOM.ancestor(this._node,_wrapFn(fn),testSelf,_wrapFn(stopFn)));},ancestors:function(fn,testSelf,stopFn){if(arguments.length===2&&(typeof testSelf=='string'||typeof testSelf=='function')){stopFn=testSelf;}
return Y.all(Y_DOM.ancestors(this._node,_wrapFn(fn),testSelf,_wrapFn(stopFn)));},previous:function(fn,all){return Y.one(Y_DOM.elementByAxis(this._node,'previousSibling',_wrapFn(fn),all));},next:function(fn,all){return Y.one(Y_DOM.elementByAxis(this._node,'nextSibling',_wrapFn(fn),all));},siblings:function(fn){return Y.all(Y_DOM.siblings(this._node,_wrapFn(fn)));},one:function(selector){return Y.one(Y.Selector.query(selector,this._node,true));},all:function(selector){var nodelist;if(this._node){nodelist=Y.all(Y.Selector.query(selector,this._node));nodelist._query=selector;nodelist._queryRoot=this._node;}
return nodelist||Y.all([]);},test:function(selector){return Y.Selector.test(this._node,selector);},remove:function(destroy){var node=this._node;if(node&&node.parentNode){node.parentNode.removeChild(node);}
if(destroy){this.destroy();}
return this;},replace:function(newNode){var node=this._node;if(typeof newNode=='string'){newNode=Y_Node.create(newNode);}
node.parentNode.replaceChild(Y_Node.getDOMNode(newNode),node);return this;},replaceChild:function(node,refNode){if(typeof node=='string'){node=Y_DOM.create(node);}
return Y.one(this._node.replaceChild(Y_Node.getDOMNode(node),Y_Node.getDOMNode(refNode)));},destroy:function(recursive){var UID=Y.config.doc.uniqueID?'uniqueID':'_yuid',instance;this.purge();if(this.unplug){this.unplug();}
this.clearData();if(recursive){Y.NodeList.each(this.all('*'),function(node){instance=Y_Node._instances[node[UID]];if(instance){instance.destroy();}else{Y.Event.purgeElement(node);}});}
this._node=null;this._stateProxy=null;delete Y_Node._instances[this._yuid];},invoke:function(method,a,b,c,d,e){var node=this._node,ret;if(a&&a._node){a=a._node;}
if(b&&b._node){b=b._node;}
ret=node[method](a,b,c,d,e);return Y_Node.scrubVal(ret,this);},swap:Y.config.doc.documentElement.swapNode?function(otherNode){this._node.swapNode(Y_Node.getDOMNode(otherNode));}:function(otherNode){otherNode=Y_Node.getDOMNode(otherNode);var node=this._node,parent=otherNode.parentNode,nextSibling=otherNode.nextSibling;if(nextSibling===node){parent.insertBefore(node,otherNode);}else if(otherNode===node.nextSibling){parent.insertBefore(otherNode,node);}else{node.parentNode.replaceChild(otherNode,node);Y_DOM.addHTML(parent,node,nextSibling);}
return this;},hasMethod:function(method){var node=this._node;return!!(node&&method in node&&typeof node[method]!='unknown'&&(typeof node[method]=='function'||String(node[method]).indexOf('function')===1));},isFragment:function(){return(this.get('nodeType')===11);},empty:function(){this.get('childNodes').remove().destroy(true);return this;},getDOMNode:function(){return this._node;}},true);Y.Node=Y_Node;Y.one=Y_Node.one;var NodeList=function(nodes){var tmp=[];if(nodes){if(typeof nodes==='string'){this._query=nodes;nodes=Y.Selector.query(nodes);}else if(nodes.nodeType||Y_DOM.isWindow(nodes)){nodes=[nodes];}else if(nodes._node){nodes=[nodes._node];}else if(nodes[0]&&nodes[0]._node){Y.Array.each(nodes,function(node){if(node._node){tmp.push(node._node);}});nodes=tmp;}else{nodes=Y.Array(nodes,0,true);}}
this._nodes=nodes||[];};NodeList.NAME='NodeList';NodeList.getDOMNodes=function(nodelist){return(nodelist&&nodelist._nodes)?nodelist._nodes:nodelist;};NodeList.each=function(instance,fn,context){var nodes=instance._nodes;if(nodes&&nodes.length){Y.Array.each(nodes,fn,context||instance);}else{}};NodeList.addMethod=function(name,fn,context){if(name&&fn){NodeList.prototype[name]=function(){var ret=[],args=arguments;Y.Array.each(this._nodes,function(node){var UID=(node.uniqueID&&node.nodeType!==9)?'uniqueID':'_yuid',instance=Y.Node._instances[node[UID]],ctx,result;if(!instance){instance=NodeList._getTempNode(node);}
ctx=context||instance;result=fn.apply(ctx,args);if(result!==undefined&&result!==instance){ret[ret.length]=result;}});return ret.length?ret:this;};}else{}};NodeList.importMethod=function(host,name,altName){if(typeof name==='string'){altName=altName||name;NodeList.addMethod(altName,host[name]);}else{Y.Array.each(name,function(n){NodeList.importMethod(host,n);});}};NodeList._getTempNode=function(node){var tmp=NodeList._tempNode;if(!tmp){tmp=Y.Node.create('<div></div>');NodeList._tempNode=tmp;}
tmp._node=node;tmp._stateProxy=node;return tmp;};Y.mix(NodeList.prototype,{_invoke:function(method,args,getter){var ret=(getter)?[]:this;this.each(function(node){var val=node[method].apply(node,args);if(getter){ret.push(val);}});return ret;},item:function(index){return Y.one((this._nodes||[])[index]);},each:function(fn,context){var instance=this;Y.Array.each(this._nodes,function(node,index){node=Y.one(node);return fn.call(context||node,node,index,instance);});return instance;},batch:function(fn,context){var nodelist=this;Y.Array.each(this._nodes,function(node,index){var instance=Y.Node._instances[node[UID]];if(!instance){instance=NodeList._getTempNode(node);}
return fn.call(context||instance,instance,index,nodelist);});return nodelist;},some:function(fn,context){var instance=this;return Y.Array.some(this._nodes,function(node,index){node=Y.one(node);context=context||node;return fn.call(context,node,index,instance);});},toFrag:function(){return Y.one(Y.DOM._nl2frag(this._nodes));},indexOf:function(node){return Y.Array.indexOf(this._nodes,Y.Node.getDOMNode(node));},filter:function(selector){return Y.all(Y.Selector.filter(this._nodes,selector));},modulus:function(n,r){r=r||0;var nodes=[];NodeList.each(this,function(node,i){if(i%n===r){nodes.push(node);}});return Y.all(nodes);},odd:function(){return this.modulus(2,1);},even:function(){return this.modulus(2);},destructor:function(){},refresh:function(){var doc,nodes=this._nodes,query=this._query,root=this._queryRoot;if(query){if(!root){if(nodes&&nodes[0]&&nodes[0].ownerDocument){root=nodes[0].ownerDocument;}}
this._nodes=Y.Selector.query(query,root);}
return this;},size:function(){return this._nodes.length;},isEmpty:function(){return this._nodes.length<1;},toString:function(){var str='',errorMsg=this[UID]+': not bound to any nodes',nodes=this._nodes,node;if(nodes&&nodes[0]){node=nodes[0];str+=node[NODE_NAME];if(node.id){str+='#'+node.id;}
if(node.className){str+='.'+node.className.replace(' ','.');}
if(nodes.length>1){str+='...['+nodes.length+' items]';}}
return str||errorMsg;},getDOMNodes:function(){return this._nodes;}},true);NodeList.importMethod(Y.Node.prototype,['destroy','empty','remove','set']);NodeList.prototype.get=function(attr){var ret=[],nodes=this._nodes,isNodeList=false,getTemp=NodeList._getTempNode,instance,val;if(nodes[0]){instance=Y.Node._instances[nodes[0]._yuid]||getTemp(nodes[0]);val=instance._get(attr);if(val&&val.nodeType){isNodeList=true;}}
Y.Array.each(nodes,function(node){instance=Y.Node._instances[node._yuid];if(!instance){instance=getTemp(node);}
val=instance._get(attr);if(!isNodeList){val=Y.Node.scrubVal(val,instance);}
ret.push(val);});return(isNodeList)?Y.all(ret):ret;};Y.NodeList=NodeList;Y.all=function(nodes){return new NodeList(nodes);};Y.Node.all=Y.all;var Y_NodeList=Y.NodeList,ArrayProto=Array.prototype,ArrayMethods={'concat':1,'pop':0,'push':0,'shift':0,'slice':1,'splice':1,'unshift':0};Y.Object.each(ArrayMethods,function(returnNodeList,name){Y_NodeList.prototype[name]=function(){var args=[],i=0,arg,ret;while(typeof(arg=arguments[i++])!='undefined'){args.push(arg._node||arg._nodes||arg);}
ret=ArrayProto[name].apply(this._nodes,args);if(returnNodeList){ret=Y.all(ret);}else{ret=Y.Node.scrubVal(ret);}
return ret;};});Y.Array.each(['removeChild','hasChildNodes','cloneNode','hasAttribute','scrollIntoView','getElementsByTagName','focus','blur','submit','reset','select','createCaption'],function(method){Y.Node.prototype[method]=function(arg1,arg2,arg3){var ret=this.invoke(method,arg1,arg2,arg3);return ret;};});Y.Node.prototype.removeAttribute=function(attr){var node=this._node;if(node){node.removeAttribute(attr,0);}
return this;};Y.Node.importMethod(Y.DOM,['contains','setAttribute','getAttribute','wrap','unwrap','generateID']);Y.NodeList.importMethod(Y.Node.prototype,['getAttribute','setAttribute','removeAttribute','unwrap','wrap','generateID']);},'patched-v3.18.1',{"requires":["dom-core","selector"]});YUI.add('node-event-delegate',function(Y,NAME){Y.Node.prototype.delegate=function(type){var args=Y.Array(arguments,0,true),index=(Y.Lang.isObject(type)&&!Y.Lang.isArray(type))?1:2;args.splice(index,0,this._node);return Y.delegate.apply(Y,args);};},'patched-v3.18.1',{"requires":["node-base","event-delegate"]});YUI.add('node-event-simulate',function(Y,NAME){Y.Node.prototype.simulate=function(type,options){Y.Event.simulate(Y.Node.getDOMNode(this),type,options);};Y.Node.prototype.simulateGesture=function(name,options,cb){Y.Event.simulateGesture(this,name,options,cb);};},'patched-v3.18.1',{"requires":["node-base","event-simulate","gesture-simulate"]});YUI.add('node-focusmanager',function(Y,NAME){var ACTIVE_DESCENDANT="activeDescendant",ID="id",DISABLED="disabled",TAB_INDEX="tabIndex",FOCUSED="focused",FOCUS_CLASS="focusClass",CIRCULAR="circular",UI="UI",KEY="key",ACTIVE_DESCENDANT_CHANGE=ACTIVE_DESCENDANT+"Change",HOST="host",scrollKeys={37:true,38:true,39:true,40:true},clickableElements={"a":true,"button":true,"input":true,"object":true},Lang=Y.Lang,UA=Y.UA,NodeFocusManager=function(){NodeFocusManager.superclass.constructor.apply(this,arguments);};NodeFocusManager.ATTRS={focused:{value:false,readOnly:true},descendants:{getter:function(value){return this.get(HOST).all(value);}},activeDescendant:{setter:function(value){var isNumber=Lang.isNumber,INVALID_VALUE=Y.Attribute.INVALID_VALUE,descendantsMap=this._descendantsMap,descendants=this._descendants,nodeIndex,returnValue,oNode;if(isNumber(value)){nodeIndex=value;returnValue=nodeIndex;}
else if((value instanceof Y.Node)&&descendantsMap){nodeIndex=descendantsMap[value.get(ID)];if(isNumber(nodeIndex)){returnValue=nodeIndex;}
else{returnValue=INVALID_VALUE;}}
else{returnValue=INVALID_VALUE;}
if(descendants){oNode=descendants.item(nodeIndex);if(oNode&&oNode.get("disabled")){returnValue=INVALID_VALUE;}}
return returnValue;}},keys:{value:{next:null,previous:null}},focusClass:{},circular:{value:true}};Y.extend(NodeFocusManager,Y.Plugin.Base,{_stopped:true,_descendants:null,_descendantsMap:null,_focusedNode:null,_lastNodeIndex:0,_eventHandlers:null,_initDescendants:function(){var descendants=this.get("descendants"),descendantsMap={},nFirstEnabled=-1,nDescendants,nActiveDescendant=this.get(ACTIVE_DESCENDANT),oNode,sID,i=0;if(Lang.isUndefined(nActiveDescendant)){nActiveDescendant=-1;}
if(descendants){nDescendants=descendants.size();for(i=0;i<nDescendants;i++){oNode=descendants.item(i);if(nFirstEnabled===-1&&!oNode.get(DISABLED)){nFirstEnabled=i;}
if(nActiveDescendant<0&&parseInt(oNode.getAttribute(TAB_INDEX,2),10)===0){nActiveDescendant=i;}
if(oNode){oNode.set(TAB_INDEX,-1);}
sID=oNode.get(ID);if(!sID){sID=Y.guid();oNode.set(ID,sID);}
descendantsMap[sID]=i;}
if(nActiveDescendant<0){nActiveDescendant=0;}
oNode=descendants.item(nActiveDescendant);if(!oNode||oNode.get(DISABLED)){oNode=descendants.item(nFirstEnabled);nActiveDescendant=nFirstEnabled;}
this._lastNodeIndex=nDescendants-1;this._descendants=descendants;this._descendantsMap=descendantsMap;this.set(ACTIVE_DESCENDANT,nActiveDescendant);if(oNode){oNode.set(TAB_INDEX,0);}}},_isDescendant:function(node){return(node.get(ID)in this._descendantsMap);},_removeFocusClass:function(){var oFocusedNode=this._focusedNode,focusClass=this.get(FOCUS_CLASS),sClassName;if(focusClass){sClassName=Lang.isString(focusClass)?focusClass:focusClass.className;}
if(oFocusedNode&&sClassName){oFocusedNode.removeClass(sClassName);}},_detachKeyHandler:function(){var prevKeyHandler=this._prevKeyHandler,nextKeyHandler=this._nextKeyHandler;if(prevKeyHandler){prevKeyHandler.detach();}
if(nextKeyHandler){nextKeyHandler.detach();}},_preventScroll:function(event){if(scrollKeys[event.keyCode]&&this._isDescendant(event.target)){event.preventDefault();}},_fireClick:function(event){var oTarget=event.target,sNodeName=oTarget.get("nodeName").toLowerCase();if(event.keyCode===13&&(!clickableElements[sNodeName]||(sNodeName==="a"&&!oTarget.getAttribute("href")))){oTarget.simulate("click");}},_attachKeyHandler:function(){this._detachKeyHandler();var sNextKey=this.get("keys.next"),sPrevKey=this.get("keys.previous"),oNode=this.get(HOST),aHandlers=this._eventHandlers;if(sPrevKey){this._prevKeyHandler=Y.on(KEY,Y.bind(this._focusPrevious,this),oNode,sPrevKey);}
if(sNextKey){this._nextKeyHandler=Y.on(KEY,Y.bind(this._focusNext,this),oNode,sNextKey);}
if(UA.opera){aHandlers.push(oNode.on("keypress",this._preventScroll,this));}
if(!UA.opera){aHandlers.push(oNode.on("keypress",this._fireClick,this));}},_detachEventHandlers:function(){this._detachKeyHandler();var aHandlers=this._eventHandlers;if(aHandlers){Y.Array.each(aHandlers,function(handle){handle.detach();});this._eventHandlers=null;}},_attachEventHandlers:function(){var descendants=this._descendants,aHandlers,oDocument,handle;if(descendants&&descendants.size()){aHandlers=this._eventHandlers||[];oDocument=this.get(HOST).get("ownerDocument");if(aHandlers.length===0){aHandlers.push(oDocument.on("focus",this._onDocFocus,this));aHandlers.push(oDocument.on("mousedown",this._onDocMouseDown,this));aHandlers.push(this.after("keysChange",this._attachKeyHandler));aHandlers.push(this.after("descendantsChange",this._initDescendants));aHandlers.push(this.after(ACTIVE_DESCENDANT_CHANGE,this._afterActiveDescendantChange));handle=this.after("focusedChange",Y.bind(function(event){if(event.newVal){this._attachKeyHandler();handle.detach();}},this));aHandlers.push(handle);}
this._eventHandlers=aHandlers;}},_onDocMouseDown:function(event){var oHost=this.get(HOST),oTarget=event.target,bChildNode=oHost.contains(oTarget),node,getFocusable=function(node){var returnVal=false;if(!node.compareTo(oHost)){returnVal=this._isDescendant(node)?node:getFocusable.call(this,node.get("parentNode"));}
return returnVal;};if(bChildNode){node=getFocusable.call(this,oTarget);if(node){oTarget=node;}
else if(!node&&this.get(FOCUSED)){this._set(FOCUSED,false);this._onDocFocus(event);}}
if(bChildNode&&this._isDescendant(oTarget)){this.focus(oTarget);}
else if(UA.webkit&&this.get(FOCUSED)&&(!bChildNode||(bChildNode&&!this._isDescendant(oTarget)))){this._set(FOCUSED,false);this._onDocFocus(event);}},_onDocFocus:function(event){var oTarget=this._focusTarget||event.target,bFocused=this.get(FOCUSED),focusClass=this.get(FOCUS_CLASS),oFocusedNode=this._focusedNode,bInCollection;if(this._focusTarget){this._focusTarget=null;}
if(this.get(HOST).contains(oTarget)){bInCollection=this._isDescendant(oTarget);if(!bFocused&&bInCollection){bFocused=true;}
else if(bFocused&&!bInCollection){bFocused=false;}}
else{bFocused=false;}
if(focusClass){if(oFocusedNode&&(!oFocusedNode.compareTo(oTarget)||!bFocused)){this._removeFocusClass();}
if(bInCollection&&bFocused){if(focusClass.fn){oTarget=focusClass.fn(oTarget);oTarget.addClass(focusClass.className);}
else{oTarget.addClass(focusClass);}
this._focusedNode=oTarget;}}
this._set(FOCUSED,bFocused);},_focusNext:function(event,activeDescendant){var nActiveDescendant=activeDescendant||this.get(ACTIVE_DESCENDANT),oNode;if(this._isDescendant(event.target)&&(nActiveDescendant<=this._lastNodeIndex)){nActiveDescendant=nActiveDescendant+1;if(nActiveDescendant===(this._lastNodeIndex+1)&&this.get(CIRCULAR)){nActiveDescendant=0;}
oNode=this._descendants.item(nActiveDescendant);if(oNode){if(oNode.get("disabled")){this._focusNext(event,nActiveDescendant);}
else{this.focus(nActiveDescendant);}}}
this._preventScroll(event);},_focusPrevious:function(event,activeDescendant){var nActiveDescendant=activeDescendant||this.get(ACTIVE_DESCENDANT),oNode;if(this._isDescendant(event.target)&&nActiveDescendant>=0){nActiveDescendant=nActiveDescendant-1;if(nActiveDescendant===-1&&this.get(CIRCULAR)){nActiveDescendant=this._lastNodeIndex;}
oNode=this._descendants.item(nActiveDescendant);if(oNode){if(oNode.get("disabled")){this._focusPrevious(event,nActiveDescendant);}
else{this.focus(nActiveDescendant);}}}
this._preventScroll(event);},_afterActiveDescendantChange:function(event){var oNode=this._descendants.item(event.prevVal);if(oNode){oNode.set(TAB_INDEX,-1);}
oNode=this._descendants.item(event.newVal);if(oNode){oNode.set(TAB_INDEX,0);}},initializer:function(config){this.start();},destructor:function(){this.stop();this.get(HOST).focusManager=null;},focus:function(index){if(Lang.isUndefined(index)){index=this.get(ACTIVE_DESCENDANT);}
this.set(ACTIVE_DESCENDANT,index,{src:UI});var oNode=this._descendants.item(this.get(ACTIVE_DESCENDANT));if(oNode){oNode.focus();if(UA.opera&&oNode.get("nodeName").toLowerCase()==="button"){this._focusTarget=oNode;}}},blur:function(){var oNode;if(this.get(FOCUSED)){oNode=this._descendants.item(this.get(ACTIVE_DESCENDANT));if(oNode){oNode.blur();this._removeFocusClass();}
this._set(FOCUSED,false,{src:UI});}},start:function(){if(this._stopped){this._initDescendants();this._attachEventHandlers();this._stopped=false;}},stop:function(){if(!this._stopped){this._detachEventHandlers();this._descendants=null;this._focusedNode=null;this._lastNodeIndex=0;this._stopped=true;}},refresh:function(){this._initDescendants();if(!this._eventHandlers){this._attachEventHandlers();}}});NodeFocusManager.NAME="nodeFocusManager";NodeFocusManager.NS="focusManager";Y.namespace("Plugin");Y.Plugin.NodeFocusManager=NodeFocusManager;},'patched-v3.18.1',{"requires":["attribute","node","plugin","node-event-simulate","event-key","event-focus"]});YUI.add('node-pluginhost',function(Y,NAME){Y.Node.plug=function(){var args=Y.Array(arguments);args.unshift(Y.Node);Y.Plugin.Host.plug.apply(Y.Base,args);return Y.Node;};Y.Node.unplug=function(){var args=Y.Array(arguments);args.unshift(Y.Node);Y.Plugin.Host.unplug.apply(Y.Base,args);return Y.Node;};Y.mix(Y.Node,Y.Plugin.Host,false,null,1);Y.Object.each(Y.Node._instances,function(node){Y.Plugin.Host.apply(node);});Y.NodeList.prototype.plug=function(){var args=arguments;Y.NodeList.each(this,function(node){Y.Node.prototype.plug.apply(Y.one(node),args);});return this;};Y.NodeList.prototype.unplug=function(){var args=arguments;Y.NodeList.each(this,function(node){Y.Node.prototype.unplug.apply(Y.one(node),args);});return this;};},'patched-v3.18.1',{"requires":["node-base","pluginhost"]});YUI.add('node-screen',function(Y,NAME){Y.each(['winWidth','winHeight','docWidth','docHeight','docScrollX','docScrollY'],function(name){Y.Node.ATTRS[name]={getter:function(){var args=Array.prototype.slice.call(arguments);args.unshift(Y.Node.getDOMNode(this));return Y.DOM[name].apply(this,args);}};});Y.Node.ATTRS.scrollLeft={getter:function(){var node=Y.Node.getDOMNode(this);return('scrollLeft'in node)?node.scrollLeft:Y.DOM.docScrollX(node);},setter:function(val){var node=Y.Node.getDOMNode(this);if(node){if('scrollLeft'in node){node.scrollLeft=val;}else if(node.document||node.nodeType===9){Y.DOM._getWin(node).scrollTo(val,Y.DOM.docScrollY(node));}}else{}}};Y.Node.ATTRS.scrollTop={getter:function(){var node=Y.Node.getDOMNode(this);return('scrollTop'in node)?node.scrollTop:Y.DOM.docScrollY(node);},setter:function(val){var node=Y.Node.getDOMNode(this);if(node){if('scrollTop'in node){node.scrollTop=val;}else if(node.document||node.nodeType===9){Y.DOM._getWin(node).scrollTo(Y.DOM.docScrollX(node),val);}}else{}}};Y.Node.importMethod(Y.DOM,['getXY','setXY','getX','setX','getY','setY','swapXY']);Y.Node.ATTRS.region={getter:function(){var node=this.getDOMNode(),region;if(node&&!node.tagName){if(node.nodeType===9){node=node.documentElement;}}
if(Y.DOM.isWindow(node)){region=Y.DOM.viewportRegion(node);}else{region=Y.DOM.region(node);}
return region;}};Y.Node.ATTRS.viewportRegion={getter:function(){return Y.DOM.viewportRegion(Y.Node.getDOMNode(this));}};Y.Node.importMethod(Y.DOM,'inViewportRegion');Y.Node.prototype.intersect=function(node2,altRegion){var node1=Y.Node.getDOMNode(this);if(Y.instanceOf(node2,Y.Node)){node2=Y.Node.getDOMNode(node2);}
return Y.DOM.intersect(node1,node2,altRegion);};Y.Node.prototype.inRegion=function(node2,all,altRegion){var node1=Y.Node.getDOMNode(this);if(Y.instanceOf(node2,Y.Node)){node2=Y.Node.getDOMNode(node2);}
return Y.DOM.inRegion(node1,node2,all,altRegion);};},'patched-v3.18.1',{"requires":["dom-screen","node-base"]});YUI.add('node-style',function(Y,NAME){(function(Y){Y.mix(Y.Node.prototype,{setStyle:function(attr,val){Y.DOM.setStyle(this._node,attr,val);return this;},setStyles:function(hash){Y.DOM.setStyles(this._node,hash);return this;},getStyle:function(attr){return Y.DOM.getStyle(this._node,attr);},getComputedStyle:function(attr){return Y.DOM.getComputedStyle(this._node,attr);}});Y.NodeList.importMethod(Y.Node.prototype,['getStyle','getComputedStyle','setStyle','setStyles']);})(Y);var Y_Node=Y.Node;Y.mix(Y_Node.prototype,{show:function(callback){callback=arguments[arguments.length-1];this.toggleView(true,callback);return this;},_show:function(){this.removeAttribute('hidden');this.setStyle('display','');},_isHidden:function(){return this.hasAttribute('hidden')||Y.DOM.getComputedStyle(this._node,'display')==='none';},toggleView:function(on,callback){this._toggleView.apply(this,arguments);return this;},_toggleView:function(on,callback){callback=arguments[arguments.length-1];if(typeof on!='boolean'){on=(this._isHidden())?1:0;}
if(on){this._show();}else{this._hide();}
if(typeof callback=='function'){callback.call(this);}
return this;},hide:function(callback){callback=arguments[arguments.length-1];this.toggleView(false,callback);return this;},_hide:function(){this.setAttribute('hidden','hidden');this.setStyle('display','none');}});Y.NodeList.importMethod(Y.Node.prototype,['show','hide','toggleView']);},'patched-v3.18.1',{"requires":["dom-style","node-base"]});YUI.add('oop',function(Y,NAME){var L=Y.Lang,A=Y.Array,OP=Object.prototype,CLONE_MARKER='_~yuim~_',hasOwn=OP.hasOwnProperty,toString=OP.toString;function dispatch(o,f,c,proto,action){if(o&&o[action]&&o!==Y){return o[action].call(o,f,c);}else{switch(A.test(o)){case 1:return A[action](o,f,c);case 2:return A[action](Y.Array(o,0,true),f,c);default:return Y.Object[action](o,f,c,proto);}}}
Y.augment=function(receiver,supplier,overwrite,whitelist,args){var rProto=receiver.prototype,sequester=rProto&&supplier,sProto=supplier.prototype,to=rProto||receiver,copy,newPrototype,replacements,sequestered,unsequester;args=args?Y.Array(args):[];if(sequester){newPrototype={};replacements={};sequestered={};copy=function(value,key){if(overwrite||!(key in rProto)){if(toString.call(value)==='[object Function]'){sequestered[key]=value;newPrototype[key]=replacements[key]=function(){return unsequester(this,value,arguments);};}else{newPrototype[key]=value;}}};unsequester=function(instance,fn,fnArgs){for(var key in sequestered){if(hasOwn.call(sequestered,key)&&instance[key]===replacements[key]){instance[key]=sequestered[key];}}
supplier.apply(instance,args);return fn.apply(instance,fnArgs);};if(whitelist){Y.Array.each(whitelist,function(name){if(name in sProto){copy(sProto[name],name);}});}else{Y.Object.each(sProto,copy,null,true);}}
Y.mix(to,newPrototype||sProto,overwrite,whitelist);if(!sequester){supplier.apply(to,args);}
return receiver;};Y.aggregate=function(r,s,ov,wl){return Y.mix(r,s,ov,wl,0,true);};Y.extend=function(r,s,px,sx){if(!s||!r){Y.error('extend failed, verify dependencies');}
var sp=s.prototype,rp=Y.Object(sp);r.prototype=rp;rp.constructor=r;r.superclass=sp;if(s!=Object&&sp.constructor==OP.constructor){sp.constructor=s;}
if(px){Y.mix(rp,px,true);}
if(sx){Y.mix(r,sx,true);}
return r;};Y.each=function(o,f,c,proto){return dispatch(o,f,c,proto,'each');};Y.some=function(o,f,c,proto){return dispatch(o,f,c,proto,'some');};Y.clone=function(o,safe,f,c,owner,cloned){var o2,marked,stamp;if(!L.isObject(o)||Y.instanceOf(o,YUI)||(o.addEventListener||o.attachEvent)){return o;}
marked=cloned||{};switch(L.type(o)){case 'date':return new Date(o);case 'regexp':return o;case 'function':return o;case 'array':o2=[];break;default:if(o[CLONE_MARKER]){return marked[o[CLONE_MARKER]];}
stamp=Y.guid();o2=(safe)?{}:Y.Object(o);o[CLONE_MARKER]=stamp;marked[stamp]=o;}
Y.each(o,function(v,k){if((k||k===0)&&(!f||(f.call(c||this,v,k,this,o)!==false))){if(k!==CLONE_MARKER){if(k=='prototype'){}else{this[k]=Y.clone(v,safe,f,c,owner||o,marked);}}}},o2);if(!cloned){Y.Object.each(marked,function(v,k){if(v[CLONE_MARKER]){try{delete v[CLONE_MARKER];}catch(e){v[CLONE_MARKER]=null;}}},this);marked=null;}
return o2;};Y.bind=function(f,c){var xargs=arguments.length>2?Y.Array(arguments,2,true):null;return function(){var fn=L.isString(f)?c[f]:f,args=(xargs)?xargs.concat(Y.Array(arguments,0,true)):arguments;return fn.apply(c||fn,args);};};Y.rbind=function(f,c){var xargs=arguments.length>2?Y.Array(arguments,2,true):null;return function(){var fn=L.isString(f)?c[f]:f,args=(xargs)?Y.Array(arguments,0,true).concat(xargs):arguments;return fn.apply(c||fn,args);};};},'patched-v3.18.1',{"requires":["yui-base"]});YUI.add('plugin',function(Y,NAME){function Plugin(config){if(!(this.hasImpl&&this.hasImpl(Y.Plugin.Base))){Plugin.superclass.constructor.apply(this,arguments);}else{Plugin.prototype.initializer.apply(this,arguments);}}
Plugin.ATTRS={host:{writeOnce:true}};Plugin.NAME='plugin';Plugin.NS='plugin';Y.extend(Plugin,Y.Base,{_handles:null,initializer:function(config){this._handles=[];},destructor:function(){if(this._handles){for(var i=0,l=this._handles.length;i<l;i++){this._handles[i].detach();}}},doBefore:function(strMethod,fn,context){var host=this.get("host"),handle;if(strMethod in host){handle=this.beforeHostMethod(strMethod,fn,context);}else if(host.on){handle=this.onHostEvent(strMethod,fn,context);}
return handle;},doAfter:function(strMethod,fn,context){var host=this.get("host"),handle;if(strMethod in host){handle=this.afterHostMethod(strMethod,fn,context);}else if(host.after){handle=this.afterHostEvent(strMethod,fn,context);}
return handle;},onHostEvent:function(type,fn,context){var handle=this.get("host").on(type,fn,context||this);this._handles.push(handle);return handle;},onceHostEvent:function(type,fn,context){var handle=this.get("host").once(type,fn,context||this);this._handles.push(handle);return handle;},afterHostEvent:function(type,fn,context){var handle=this.get("host").after(type,fn,context||this);this._handles.push(handle);return handle;},onceAfterHostEvent:function(type,fn,context){var handle=this.get("host").onceAfter(type,fn,context||this);this._handles.push(handle);return handle;},beforeHostMethod:function(strMethod,fn,context){var handle=Y.Do.before(fn,this.get("host"),strMethod,context||this);this._handles.push(handle);return handle;},afterHostMethod:function(strMethod,fn,context){var handle=Y.Do.after(fn,this.get("host"),strMethod,context||this);this._handles.push(handle);return handle;},toString:function(){return this.constructor.NAME+'['+this.constructor.NS+']';}});Y.namespace("Plugin").Base=Plugin;},'patched-v3.18.1',{"requires":["base-base"]});YUI.add('pluginhost-base',function(Y,NAME){var L=Y.Lang;function PluginHost(){this._plugins={};}
PluginHost.prototype={plug:function(Plugin,config){var i,ln,ns;if(L.isArray(Plugin)){for(i=0,ln=Plugin.length;i<ln;i++){this.plug(Plugin[i]);}}else{if(Plugin&&!L.isFunction(Plugin)){config=Plugin.cfg;Plugin=Plugin.fn;}
if(Plugin&&Plugin.NS){ns=Plugin.NS;config=config||{};config.host=this;if(this.hasPlugin(ns)){if(this[ns].setAttrs){this[ns].setAttrs(config);}
else{}}else{this[ns]=new Plugin(config);this._plugins[ns]=Plugin;}}
else{}}
return this;},unplug:function(plugin){var ns=plugin,plugins=this._plugins;if(plugin){if(L.isFunction(plugin)){ns=plugin.NS;if(ns&&(!plugins[ns]||plugins[ns]!==plugin)){ns=null;}}
if(ns){if(this[ns]){if(this[ns].destroy){this[ns].destroy();}
delete this[ns];}
if(plugins[ns]){delete plugins[ns];}}}else{for(ns in this._plugins){if(this._plugins.hasOwnProperty(ns)){this.unplug(ns);}}}
return this;},hasPlugin:function(ns){return(this._plugins[ns]&&this[ns]);},_initPlugins:function(config){this._plugins=this._plugins||{};if(this._initConfigPlugins){this._initConfigPlugins(config);}},_destroyPlugins:function(){this.unplug();}};Y.namespace("Plugin").Host=PluginHost;},'patched-v3.18.1',{"requires":["yui-base"]});YUI.add('pluginhost-config',function(Y,NAME){var PluginHost=Y.Plugin.Host,L=Y.Lang;PluginHost.prototype._initConfigPlugins=function(config){var classes=(this._getClasses)?this._getClasses():[this.constructor],plug=[],unplug={},constructor,i,classPlug,classUnplug,pluginClassName;for(i=classes.length-1;i>=0;i--){constructor=classes[i];classUnplug=constructor._UNPLUG;if(classUnplug){Y.mix(unplug,classUnplug,true);}
classPlug=constructor._PLUG;if(classPlug){Y.mix(plug,classPlug,true);}}
for(pluginClassName in plug){if(plug.hasOwnProperty(pluginClassName)){if(!unplug[pluginClassName]){this.plug(plug[pluginClassName]);}}}
if(config&&config.plugins){this.plug(config.plugins);}};PluginHost.plug=function(hostClass,plugin,config){var p,i,l,name;if(hostClass!==Y.Base){hostClass._PLUG=hostClass._PLUG||{};if(!L.isArray(plugin)){if(config){plugin={fn:plugin,cfg:config};}
plugin=[plugin];}
for(i=0,l=plugin.length;i<l;i++){p=plugin[i];name=p.NAME||p.fn.NAME;hostClass._PLUG[name]=p;}}};PluginHost.unplug=function(hostClass,plugin){var p,i,l,name;if(hostClass!==Y.Base){hostClass._UNPLUG=hostClass._UNPLUG||{};if(!L.isArray(plugin)){plugin=[plugin];}
for(i=0,l=plugin.length;i<l;i++){p=plugin[i];name=p.NAME;if(!hostClass._PLUG[name]){hostClass._UNPLUG[name]=p;}else{delete hostClass._PLUG[name];}}}};},'patched-v3.18.1',{"requires":["pluginhost-base"]});YUI.add('querystring-stringify-simple',function(Y,NAME){var QueryString=Y.namespace("QueryString"),EUC=encodeURIComponent;QueryString.stringify=function(obj,c){var qs=[],s=c&&c.arrayKey?true:false,key,i,l;for(key in obj){if(obj.hasOwnProperty(key)){if(Y.Lang.isArray(obj[key])){for(i=0,l=obj[key].length;i<l;i++){qs.push(EUC(s?key+'[]':key)+'='+EUC(obj[key][i]));}}
else{qs.push(EUC(key)+'='+EUC(obj[key]));}}}
return qs.join('&');};},'patched-v3.18.1',{"requires":["yui-base"]});YUI.add('queue-promote',function(Y,NAME){Y.mix(Y.Queue.prototype,{indexOf:function(callback){return Y.Array.indexOf(this._q,callback);},promote:function(callback){var index=this.indexOf(callback);if(index>-1){this._q.unshift(this._q.splice(index,1)[0]);}},remove:function(callback){var index=this.indexOf(callback);if(index>-1){this._q.splice(index,1);}}});},'patched-v3.18.1',{"requires":["yui-base"]});YUI.add('selector-css2',function(Y,NAME){var PARENT_NODE='parentNode',TAG_NAME='tagName',ATTRIBUTES='attributes',COMBINATOR='combinator',PSEUDOS='pseudos',Selector=Y.Selector,SelectorCSS2={_reRegExpTokens:/([\^\$\?\[\]\*\+\-\.\(\)\|\\])/,SORT_RESULTS:true,_isXML:(function(){var isXML=(Y.config.doc.createElement('div').tagName!=='DIV');return isXML;}()),shorthand:{'\\#(-?[_a-z0-9]+[-\\w\\uE000]*)':'[id=$1]','\\.(-?[_a-z]+[-\\w\\uE000]*)':'[className~=$1]'},operators:{'':function(node,attr){return Y.DOM.getAttribute(node,attr)!=='';},'~=':'(?:^|\\s+){val}(?:\\s+|$)','|=':'^{val}-?'},pseudos:{'first-child':function(node){return Y.DOM._children(node[PARENT_NODE])[0]===node;}},_bruteQuery:function(selector,root,firstOnly){var ret=[],nodes=[],visited,tokens=Selector._tokenize(selector),token=tokens[tokens.length-1],rootDoc=Y.DOM._getDoc(root),child,id,className,tagName,isUniversal;if(token){id=token.id;className=token.className;tagName=token.tagName||'*';if(typeof root.getElementsByTagName!=="undefined"){if(id&&(root.all||(root.nodeType===9||Y.DOM.inDoc(root)))){nodes=Y.DOM.allById(id,root);}else if(className){nodes=root.getElementsByClassName(className);}else{nodes=root.getElementsByTagName(tagName);}}else{visited=[];child=root.firstChild;isUniversal=tagName==="*";while(child){while(child){if(child.tagName>"@"&&(isUniversal||child.tagName===tagName)){nodes.push(child);}
visited.push(child);child=child.firstChild;}
while(visited.length>0&&!child){child=visited.pop().nextSibling;}}}
if(nodes.length){ret=Selector._filterNodes(nodes,tokens,firstOnly);}}
return ret;},_filterNodes:function(nodes,tokens,firstOnly){var i=0,j,len=tokens.length,n=len-1,result=[],node=nodes[0],tmpNode=node,getters=Y.Selector.getters,operator,combinator,token,path,pass,value,tests,test;for(i=0;(tmpNode=node=nodes[i++]);){n=len-1;path=null;testLoop:while(tmpNode&&tmpNode.tagName){token=tokens[n];tests=token.tests;j=tests.length;if(j&&!pass){while((test=tests[--j])){operator=test[1];if(getters[test[0]]){value=getters[test[0]](tmpNode,test[0]);}else{value=tmpNode[test[0]];if(test[0]==='tagName'&&!Selector._isXML){value=value.toUpperCase();}
if(typeof value!='string'&&value!==undefined&&value.toString){value=value.toString();}else if(value===undefined&&tmpNode.getAttribute){value=tmpNode.getAttribute(test[0],2);}}
if((operator==='='&&value!==test[2])||(typeof operator!=='string'&&operator.test&&!operator.test(value))||(!operator.test&&typeof operator==='function'&&!operator(tmpNode,test[0],test[2]))){if((tmpNode=tmpNode[path])){while(tmpNode&&(!tmpNode.tagName||(token.tagName&&token.tagName!==tmpNode.tagName))){tmpNode=tmpNode[path];}}
continue testLoop;}}}
n--;if(!pass&&(combinator=token.combinator)){path=combinator.axis;tmpNode=tmpNode[path];while(tmpNode&&!tmpNode.tagName){tmpNode=tmpNode[path];}
if(combinator.direct){path=null;}}else{result.push(node);if(firstOnly){return result;}
break;}}}
node=tmpNode=null;return result;},combinators:{' ':{axis:'parentNode'},'>':{axis:'parentNode',direct:true},'+':{axis:'previousSibling',direct:true}},_parsers:[{name:ATTRIBUTES,re:/^\uE003(-?[a-z]+[\w\-]*)+([~\|\^\$\*!=]=?)?['"]?([^\uE004'"]*)['"]?\uE004/i,fn:function(match,token){var operator=match[2]||'',operators=Selector.operators,escVal=(match[3])?match[3].replace(/\\/g,''):'',test;if((match[1]==='id'&&operator==='=')||(match[1]==='className'&&Y.config.doc.documentElement.getElementsByClassName&&(operator==='~='||operator==='='))){token.prefilter=match[1];match[3]=escVal;token[match[1]]=(match[1]==='id')?match[3]:escVal;}
if(operator in operators){test=operators[operator];if(typeof test==='string'){match[3]=escVal.replace(Selector._reRegExpTokens,'\\$1');test=new RegExp(test.replace('{val}',match[3]));}
match[2]=test;}
if(!token.last||token.prefilter!==match[1]){return match.slice(1);}}},{name:TAG_NAME,re:/^((?:-?[_a-z]+[\w-]*)|\*)/i,fn:function(match,token){var tag=match[1];if(!Selector._isXML){tag=tag.toUpperCase();}
token.tagName=tag;if(tag!=='*'&&(!token.last||token.prefilter)){return[TAG_NAME,'=',tag];}
if(!token.prefilter){token.prefilter='tagName';}}},{name:COMBINATOR,re:/^\s*([>+~]|\s)\s*/,fn:function(match,token){}},{name:PSEUDOS,re:/^:([\-\w]+)(?:\uE005['"]?([^\uE005]*)['"]?\uE006)*/i,fn:function(match,token){var test=Selector[PSEUDOS][match[1]];if(test){if(match[2]){match[2]=match[2].replace(/\\/g,'');}
return[match[2],test];}else{return false;}}}],_getToken:function(token){return{tagName:null,id:null,className:null,attributes:{},combinator:null,tests:[]};},_tokenize:function(selector){selector=selector||'';selector=Selector._parseSelector(Y.Lang.trim(selector));var token=Selector._getToken(),query=selector,tokens=[],found=false,match,test,i,parser;outer:do{found=false;for(i=0;(parser=Selector._parsers[i++]);){if((match=parser.re.exec(selector))){if(parser.name!==COMBINATOR){token.selector=selector;}
selector=selector.replace(match[0],'');if(!selector.length){token.last=true;}
if(Selector._attrFilters[match[1]]){match[1]=Selector._attrFilters[match[1]];}
test=parser.fn(match,token);if(test===false){found=false;break outer;}else if(test){token.tests.push(test);}
if(!selector.length||parser.name===COMBINATOR){tokens.push(token);token=Selector._getToken(token);if(parser.name===COMBINATOR){token.combinator=Y.Selector.combinators[match[1]];}}
found=true;}}}while(found&&selector.length);if(!found||selector.length){tokens=[];}
return tokens;},_replaceMarkers:function(selector){selector=selector.replace(/\[/g,'\uE003');selector=selector.replace(/\]/g,'\uE004');selector=selector.replace(/\(/g,'\uE005');selector=selector.replace(/\)/g,'\uE006');return selector;},_replaceShorthand:function(selector){var shorthand=Y.Selector.shorthand,re;for(re in shorthand){if(shorthand.hasOwnProperty(re)){selector=selector.replace(new RegExp(re,'gi'),shorthand[re]);}}
return selector;},_parseSelector:function(selector){var replaced=Y.Selector._replaceSelector(selector),selector=replaced.selector;selector=Y.Selector._replaceShorthand(selector);selector=Y.Selector._restore('attr',selector,replaced.attrs);selector=Y.Selector._restore('pseudo',selector,replaced.pseudos);selector=Y.Selector._replaceMarkers(selector);selector=Y.Selector._restore('esc',selector,replaced.esc);return selector;},_attrFilters:{'class':'className','for':'htmlFor'},getters:{href:function(node,attr){return Y.DOM.getAttribute(node,attr);},id:function(node,attr){return Y.DOM.getId(node);}}};Y.mix(Y.Selector,SelectorCSS2,true);Y.Selector.getters.src=Y.Selector.getters.rel=Y.Selector.getters.href;if(Y.Selector.useNative&&Y.config.doc.querySelector){Y.Selector.shorthand['\\.(-?[_a-z]+[-\\w]*)']='[class~=$1]';}},'patched-v3.18.1',{"requires":["selector-native"]});YUI.add('selector-css3',function(Y,NAME){Y.Selector._reNth=/^(?:([\-]?\d*)(n){1}|(odd|even)$)*([\-+]?\d*)$/;Y.Selector._getNth=function(node,expr,tag,reverse){Y.Selector._reNth.test(expr);var a=parseInt(RegExp.$1,10),n=RegExp.$2,oddeven=RegExp.$3,b=parseInt(RegExp.$4,10)||0,result=[],siblings=Y.DOM._children(node.parentNode,tag),op;if(oddeven){a=2;op='+';n='n';b=(oddeven==='odd')?1:0;}else if(isNaN(a)){a=(n)?1:0;}
if(a===0){if(reverse){b=siblings.length-b+1;}
if(siblings[b-1]===node){return true;}else{return false;}}else if(a<0){reverse=!!reverse;a=Math.abs(a);}
if(!reverse){for(var i=b-1,len=siblings.length;i<len;i+=a){if(i>=0&&siblings[i]===node){return true;}}}else{for(var i=siblings.length-b,len=siblings.length;i>=0;i-=a){if(i<len&&siblings[i]===node){return true;}}}
return false;};Y.mix(Y.Selector.pseudos,{'root':function(node){return node===node.ownerDocument.documentElement;},'nth-child':function(node,expr){return Y.Selector._getNth(node,expr);},'nth-last-child':function(node,expr){return Y.Selector._getNth(node,expr,null,true);},'nth-of-type':function(node,expr){return Y.Selector._getNth(node,expr,node.tagName);},'nth-last-of-type':function(node,expr){return Y.Selector._getNth(node,expr,node.tagName,true);},'last-child':function(node){var children=Y.DOM._children(node.parentNode);return children[children.length-1]===node;},'first-of-type':function(node){return Y.DOM._children(node.parentNode,node.tagName)[0]===node;},'last-of-type':function(node){var children=Y.DOM._children(node.parentNode,node.tagName);return children[children.length-1]===node;},'only-child':function(node){var children=Y.DOM._children(node.parentNode);return children.length===1&&children[0]===node;},'only-of-type':function(node){var children=Y.DOM._children(node.parentNode,node.tagName);return children.length===1&&children[0]===node;},'empty':function(node){return node.childNodes.length===0;},'not':function(node,expr){return!Y.Selector.test(node,expr);},'contains':function(node,expr){var text=node.innerText||node.textContent||'';return text.indexOf(expr)>-1;},'checked':function(node){return(node.checked===true||node.selected===true);},enabled:function(node){return(node.disabled!==undefined&&!node.disabled);},disabled:function(node){return(node.disabled);}});Y.mix(Y.Selector.operators,{'^=':'^{val}','$=':'{val}$','*=':'{val}'});Y.Selector.combinators['~']={axis:'previousSibling'};},'patched-v3.18.1',{"requires":["selector-native","selector-css2"]});YUI.add('selector-native',function(Y,NAME){(function(Y){Y.namespace('Selector');var COMPARE_DOCUMENT_POSITION='compareDocumentPosition',OWNER_DOCUMENT='ownerDocument';var Selector={_types:{esc:{token:'\uE000',re:/\\[:\[\]\(\)#\.\'\>+~"]/gi},attr:{token:'\uE001',re:/(\[[^\]]*\])/g},pseudo:{token:'\uE002',re:/(\([^\)]*\))/g}},useNative:true,_escapeId:function(id){if(id){id=id.replace(/([:\[\]\(\)#\.'<>+~"])/g,'\\$1');}
return id;},_compare:('sourceIndex'in Y.config.doc.documentElement)?function(nodeA,nodeB){var a=nodeA.sourceIndex,b=nodeB.sourceIndex;if(a===b){return 0;}else if(a>b){return 1;}
return-1;}:(Y.config.doc.documentElement[COMPARE_DOCUMENT_POSITION]?function(nodeA,nodeB){if(nodeA[COMPARE_DOCUMENT_POSITION](nodeB)&4){return-1;}else{return 1;}}:function(nodeA,nodeB){var rangeA,rangeB,compare;if(nodeA&&nodeB){rangeA=nodeA[OWNER_DOCUMENT].createRange();rangeA.setStart(nodeA,0);rangeB=nodeB[OWNER_DOCUMENT].createRange();rangeB.setStart(nodeB,0);compare=rangeA.compareBoundaryPoints(1,rangeB);}
return compare;}),_sort:function(nodes){if(nodes){nodes=Y.Array(nodes,0,true);if(nodes.sort){nodes.sort(Selector._compare);}}
return nodes;},_deDupe:function(nodes){var ret=[],i,node;for(i=0;(node=nodes[i++]);){if(!node._found){ret[ret.length]=node;node._found=true;}}
for(i=0;(node=ret[i++]);){node._found=null;node.removeAttribute('_found');}
return ret;},query:function(selector,root,firstOnly,skipNative){root=root||Y.config.doc;var ret=[],useNative=(Y.Selector.useNative&&Y.config.doc.querySelector&&!skipNative),queries=[[selector,root]],query,result,i,fn=(useNative)?Y.Selector._nativeQuery:Y.Selector._bruteQuery;if(selector&&fn){if(!skipNative&&(!useNative||root.tagName)){queries=Selector._splitQueries(selector,root);}
for(i=0;(query=queries[i++]);){result=fn(query[0],query[1],firstOnly);if(!firstOnly){result=Y.Array(result,0,true);}
if(result){ret=ret.concat(result);}}
if(queries.length>1){ret=Selector._sort(Selector._deDupe(ret));}}
return(firstOnly)?(ret[0]||null):ret;},_replaceSelector:function(selector){var esc=Y.Selector._parse('esc',selector),attrs,pseudos;selector=Y.Selector._replace('esc',selector);pseudos=Y.Selector._parse('pseudo',selector);selector=Selector._replace('pseudo',selector);attrs=Y.Selector._parse('attr',selector);selector=Y.Selector._replace('attr',selector);return{esc:esc,attrs:attrs,pseudos:pseudos,selector:selector};},_restoreSelector:function(replaced){var selector=replaced.selector;selector=Y.Selector._restore('attr',selector,replaced.attrs);selector=Y.Selector._restore('pseudo',selector,replaced.pseudos);selector=Y.Selector._restore('esc',selector,replaced.esc);return selector;},_replaceCommas:function(selector){var replaced=Y.Selector._replaceSelector(selector),selector=replaced.selector;if(selector){selector=selector.replace(/,/g,'\uE007');replaced.selector=selector;selector=Y.Selector._restoreSelector(replaced);}
return selector;},_splitQueries:function(selector,node){if(selector.indexOf(',')>-1){selector=Y.Selector._replaceCommas(selector);}
var groups=selector.split('\uE007'),queries=[],prefix='',id,i,len;if(node){if(node.nodeType===1){id=Y.Selector._escapeId(Y.DOM.getId(node));if(!id){id=Y.guid();Y.DOM.setId(node,id);}
prefix='[id="'+id+'"] ';}
for(i=0,len=groups.length;i<len;++i){selector=prefix+groups[i];queries.push([selector,node]);}}
return queries;},_nativeQuery:function(selector,root,one){if((Y.UA.webkit||Y.UA.opera)&&selector.indexOf(':checked')>-1&&(Y.Selector.pseudos&&Y.Selector.pseudos.checked)){return Y.Selector.query(selector,root,one,true);}
try{return root['querySelector'+(one?'':'All')](selector);}catch(e){return Y.Selector.query(selector,root,one,true);}},filter:function(nodes,selector){var ret=[],i,node;if(nodes&&selector){for(i=0;(node=nodes[i++]);){if(Y.Selector.test(node,selector)){ret[ret.length]=node;}}}else{}
return ret;},test:function(node,selector,root){var defaultId,ret=false,useFrag=false,groups,parent,item,items,frag,id,i,j,group;if(node&&node.tagName){if(typeof selector=='function'){ret=selector.call(node,node);}else{groups=selector.split(',');if(!root&&!Y.DOM.inDoc(node)){parent=node.parentNode;if(parent){root=parent;}else{frag=node[OWNER_DOCUMENT].createDocumentFragment();frag.appendChild(node);root=frag;useFrag=true;}}
root=root||node[OWNER_DOCUMENT];id=Y.Selector._escapeId(Y.DOM.getId(node));if(!id){defaultId=true;id=Y.guid();Y.DOM.setId(node,id);}
for(i=0;(group=groups[i++]);){group+='[id="'+id+'"]';items=Y.Selector.query(group,root);for(j=0;item=items[j++];){if(item===node){ret=true;break;}}
if(ret){break;}}
if(useFrag){frag.removeChild(node);}
if(defaultId){node.removeAttribute('id');}};}
return ret;},ancestor:function(node,selector,testSelf){return Y.DOM.ancestor(node,function(n){return Y.Selector.test(n,selector);},testSelf);},_parse:function(name,selector){return selector.match(Y.Selector._types[name].re);},_replace:function(name,selector){var o=Y.Selector._types[name];return selector.replace(o.re,o.token);},_restore:function(name,selector,items){if(items){var token=Y.Selector._types[name].token,i,len;for(i=0,len=items.length;i<len;++i){selector=selector.replace(token,items[i]);}}
return selector;}};Y.mix(Y.Selector,Selector,true);})(Y);},'patched-v3.18.1',{"requires":["dom-base"]});YUI.add('selector',function(Y,NAME){},'patched-v3.18.1',{"requires":["selector-native"]});YUI.add('widget-base',function(Y,NAME){var L=Y.Lang,Node=Y.Node,ClassNameManager=Y.ClassNameManager,_getClassName=ClassNameManager.getClassName,_getWidgetClassName,_toInitialCap=Y.cached(function(str){return str.substring(0,1).toUpperCase()+str.substring(1);}),CONTENT="content",VISIBLE="visible",HIDDEN="hidden",DISABLED="disabled",FOCUSED="focused",WIDTH="width",HEIGHT="height",BOUNDING_BOX="boundingBox",CONTENT_BOX="contentBox",PARENT_NODE="parentNode",OWNER_DOCUMENT="ownerDocument",AUTO="auto",SRC_NODE="srcNode",BODY="body",TAB_INDEX="tabIndex",ID="id",RENDER="render",RENDERED="rendered",DESTROYED="destroyed",STRINGS="strings",DIV="<div></div>",CHANGE="Change",LOADING="loading",_UISET="_uiSet",EMPTY_STR="",EMPTY_FN=function(){},TRUE=true,FALSE=false,UI,ATTRS={},UI_ATTRS=[VISIBLE,DISABLED,HEIGHT,WIDTH,FOCUSED,TAB_INDEX],WEBKIT=Y.UA.webkit,_instances={};function Widget(config){var widget=this,parentNode,render,constructor=widget.constructor;widget._strs={};widget._cssPrefix=constructor.CSS_PREFIX||_getClassName(constructor.NAME.toLowerCase());config=config||{};Widget.superclass.constructor.call(widget,config);render=widget.get(RENDER);if(render){if(render!==TRUE){parentNode=render;}
widget.render(parentNode);}}
Widget.NAME="widget";UI=Widget.UI_SRC="ui";Widget.ATTRS=ATTRS;ATTRS[ID]={valueFn:"_guid",writeOnce:TRUE};ATTRS[RENDERED]={value:FALSE,readOnly:TRUE};ATTRS[BOUNDING_BOX]={valueFn:"_defaultBB",setter:"_setBB",writeOnce:TRUE};ATTRS[CONTENT_BOX]={valueFn:"_defaultCB",setter:"_setCB",writeOnce:TRUE};ATTRS[TAB_INDEX]={value:null,validator:"_validTabIndex"};ATTRS[FOCUSED]={value:FALSE,readOnly:TRUE};ATTRS[DISABLED]={value:FALSE};ATTRS[VISIBLE]={value:TRUE};ATTRS[HEIGHT]={value:EMPTY_STR};ATTRS[WIDTH]={value:EMPTY_STR};ATTRS[STRINGS]={value:{},setter:"_strSetter",getter:"_strGetter"};ATTRS[RENDER]={value:FALSE,writeOnce:TRUE};Widget.CSS_PREFIX=_getClassName(Widget.NAME.toLowerCase());Widget.getClassName=function(){return _getClassName.apply(ClassNameManager,[Widget.CSS_PREFIX].concat(Y.Array(arguments),true));};_getWidgetClassName=Widget.getClassName;Widget.getByNode=function(node){var widget,widgetMarker=_getWidgetClassName();node=Node.one(node);if(node){node=node.ancestor("."+widgetMarker,true);if(node){widget=_instances[Y.stamp(node,true)];}}
return widget||null;};Y.extend(Widget,Y.Base,{getClassName:function(){return _getClassName.apply(ClassNameManager,[this._cssPrefix].concat(Y.Array(arguments),true));},initializer:function(config){var bb=this.get(BOUNDING_BOX);if(bb instanceof Node){this._mapInstance(Y.stamp(bb));}},_mapInstance:function(id){_instances[id]=this;},destructor:function(){var boundingBox=this.get(BOUNDING_BOX),bbGuid;if(boundingBox instanceof Node){bbGuid=Y.stamp(boundingBox,true);if(bbGuid in _instances){delete _instances[bbGuid];}
this._destroyBox();}},destroy:function(destroyAllNodes){this._destroyAllNodes=destroyAllNodes;return Widget.superclass.destroy.apply(this);},_destroyBox:function(){var boundingBox=this.get(BOUNDING_BOX),contentBox=this.get(CONTENT_BOX),deep=this._destroyAllNodes,same;same=boundingBox&&boundingBox.compareTo(contentBox);if(this.UI_EVENTS){this._destroyUIEvents();}
this._unbindUI(boundingBox);if(contentBox){if(deep){contentBox.empty();}
contentBox.remove(TRUE);}
if(!same){if(deep){boundingBox.empty();}
boundingBox.remove(TRUE);}},render:function(parentNode){if(!this.get(DESTROYED)&&!this.get(RENDERED)){this.publish(RENDER,{queuable:FALSE,fireOnce:TRUE,defaultTargetOnly:TRUE,defaultFn:this._defRenderFn});this.fire(RENDER,{parentNode:(parentNode)?Node.one(parentNode):null});}
return this;},_defRenderFn:function(e){this._parentNode=e.parentNode;this.renderer();this._set(RENDERED,TRUE);this._removeLoadingClassNames();},renderer:function(){var widget=this;widget._renderUI();widget.renderUI();widget._bindUI();widget.bindUI();widget._syncUI();widget.syncUI();},bindUI:EMPTY_FN,renderUI:EMPTY_FN,syncUI:EMPTY_FN,hide:function(){return this.set(VISIBLE,FALSE);},show:function(){return this.set(VISIBLE,TRUE);},focus:function(){return this._set(FOCUSED,TRUE);},blur:function(){return this._set(FOCUSED,FALSE);},enable:function(){return this.set(DISABLED,FALSE);},disable:function(){return this.set(DISABLED,TRUE);},_uiSizeCB:function(expand){this.get(CONTENT_BOX).toggleClass(_getWidgetClassName(CONTENT,"expanded"),expand);},_renderBox:function(parentNode){var widget=this,contentBox=widget.get(CONTENT_BOX),boundingBox=widget.get(BOUNDING_BOX),srcNode=widget.get(SRC_NODE),defParentNode=widget.DEF_PARENT_NODE,doc=(srcNode&&srcNode.get(OWNER_DOCUMENT))||boundingBox.get(OWNER_DOCUMENT)||contentBox.get(OWNER_DOCUMENT);if(srcNode&&!srcNode.compareTo(contentBox)&&!contentBox.inDoc(doc)){srcNode.replace(contentBox);}
if(!boundingBox.compareTo(contentBox.get(PARENT_NODE))&&!boundingBox.compareTo(contentBox)){if(contentBox.inDoc(doc)){contentBox.replace(boundingBox);}
boundingBox.appendChild(contentBox);}
parentNode=parentNode||(defParentNode&&Node.one(defParentNode));if(parentNode){parentNode.appendChild(boundingBox);}else if(!boundingBox.inDoc(doc)){Node.one(BODY).insert(boundingBox,0);}},_setBB:function(node){return this._setBox(this.get(ID),node,this.BOUNDING_TEMPLATE,true);},_setCB:function(node){return(this.CONTENT_TEMPLATE===null)?this.get(BOUNDING_BOX):this._setBox(null,node,this.CONTENT_TEMPLATE,false);},_defaultBB:function(){var node=this.get(SRC_NODE),nullCT=(this.CONTENT_TEMPLATE===null);return((node&&nullCT)?node:null);},_defaultCB:function(node){return this.get(SRC_NODE)||null;},_setBox:function(id,node,template,isBounding){node=Node.one(node);if(!node){node=Node.create(template);if(isBounding){this._bbFromTemplate=true;}else{this._cbFromTemplate=true;}}
if(!node.get(ID)){node.set(ID,id||Y.guid());}
return node;},_renderUI:function(){this._renderBoxClassNames();this._renderBox(this._parentNode);},_renderBoxClassNames:function(){var classes=this._getClasses(),cl,boundingBox=this.get(BOUNDING_BOX),i;boundingBox.addClass(_getWidgetClassName());for(i=classes.length-3;i>=0;i--){cl=classes[i];boundingBox.addClass(cl.CSS_PREFIX||_getClassName(cl.NAME.toLowerCase()));}
this.get(CONTENT_BOX).addClass(this.getClassName(CONTENT));},_removeLoadingClassNames:function(){var boundingBox=this.get(BOUNDING_BOX),contentBox=this.get(CONTENT_BOX),instClass=this.getClassName(LOADING),widgetClass=_getWidgetClassName(LOADING);boundingBox.removeClass(widgetClass).removeClass(instClass);contentBox.removeClass(widgetClass).removeClass(instClass);},_bindUI:function(){this._bindAttrUI(this._UI_ATTRS.BIND);this._bindDOM();},_unbindUI:function(boundingBox){this._unbindDOM(boundingBox);},_bindDOM:function(){var oDocument=this.get(BOUNDING_BOX).get(OWNER_DOCUMENT),focusHandle=Widget._hDocFocus;if(!focusHandle){focusHandle=Widget._hDocFocus=oDocument.on("focus",this._onDocFocus,this);focusHandle.listeners={count:0};}
focusHandle.listeners[Y.stamp(this,true)]=true;focusHandle.listeners.count++;if(WEBKIT){this._hDocMouseDown=oDocument.on("mousedown",this._onDocMouseDown,this);}},_unbindDOM:function(boundingBox){var focusHandle=Widget._hDocFocus,yuid=Y.stamp(this,true),focusListeners,mouseHandle=this._hDocMouseDown;if(focusHandle){focusListeners=focusHandle.listeners;if(focusListeners[yuid]){delete focusListeners[yuid];focusListeners.count--;}
if(focusListeners.count===0){focusHandle.detach();Widget._hDocFocus=null;}}
if(WEBKIT&&mouseHandle){mouseHandle.detach();}},_syncUI:function(){this._syncAttrUI(this._UI_ATTRS.SYNC);},_uiSetHeight:function(val){this._uiSetDim(HEIGHT,val);this._uiSizeCB((val!==EMPTY_STR&&val!==AUTO));},_uiSetWidth:function(val){this._uiSetDim(WIDTH,val);},_uiSetDim:function(dimension,val){this.get(BOUNDING_BOX).setStyle(dimension,L.isNumber(val)?val+this.DEF_UNIT:val);},_uiSetVisible:function(val){this.get(BOUNDING_BOX).toggleClass(this.getClassName(HIDDEN),!val);},_uiSetDisabled:function(val){this.get(BOUNDING_BOX).toggleClass(this.getClassName(DISABLED),val);},_uiSetFocused:function(val,src){var boundingBox=this.get(BOUNDING_BOX);boundingBox.toggleClass(this.getClassName(FOCUSED),val);if(src!==UI){if(val){boundingBox.focus();}else{boundingBox.blur();}}},_uiSetTabIndex:function(index){var boundingBox=this.get(BOUNDING_BOX);if(L.isNumber(index)){boundingBox.set(TAB_INDEX,index);}else{boundingBox.removeAttribute(TAB_INDEX);}},_onDocMouseDown:function(evt){if(this._domFocus){this._onDocFocus(evt);}},_onDocFocus:function(evt){var widget=Widget.getByNode(evt.target),activeWidget=Widget._active;if(activeWidget&&(activeWidget!==widget)){activeWidget._domFocus=false;activeWidget._set(FOCUSED,false,{src:UI});Widget._active=null;}
if(widget){widget._domFocus=true;widget._set(FOCUSED,true,{src:UI});Widget._active=widget;}},toString:function(){return this.name+"["+this.get(ID)+"]";},DEF_UNIT:"px",DEF_PARENT_NODE:null,CONTENT_TEMPLATE:DIV,BOUNDING_TEMPLATE:DIV,_guid:function(){return Y.guid();},_validTabIndex:function(tabIndex){return(L.isNumber(tabIndex)||L.isNull(tabIndex));},_bindAttrUI:function(attrs){var i,l=attrs.length;for(i=0;i<l;i++){this.after(attrs[i]+CHANGE,this._setAttrUI);}},_syncAttrUI:function(attrs){var i,l=attrs.length,attr;for(i=0;i<l;i++){attr=attrs[i];this[_UISET+_toInitialCap(attr)](this.get(attr));}},_setAttrUI:function(e){if(e.target===this){this[_UISET+_toInitialCap(e.attrName)](e.newVal,e.src);}},_strSetter:function(strings){return Y.merge(this.get(STRINGS),strings);},getString:function(key){return this.get(STRINGS)[key];},getStrings:function(){return this.get(STRINGS);},_UI_ATTRS:{BIND:UI_ATTRS,SYNC:UI_ATTRS}});Y.Widget=Widget;},'patched-v3.18.1',{"requires":["attribute","base-base","base-pluginhost","classnamemanager","event-focus","node-base","node-style"],"skinnable":true});YUI.add('widget-htmlparser',function(Y,NAME){var Widget=Y.Widget,Node=Y.Node,Lang=Y.Lang,SRC_NODE="srcNode",CONTENT_BOX="contentBox";Widget.HTML_PARSER={};Widget._buildCfg={aggregates:["HTML_PARSER"]};Widget.ATTRS[SRC_NODE]={value:null,setter:Node.one,getter:"_getSrcNode",writeOnce:true};Y.mix(Widget.prototype,{_getSrcNode:function(val){return val||this.get(CONTENT_BOX);},_preAddAttrs:function(attrs,userVals,lazy){var preAttrs={id:attrs.id,boundingBox:attrs.boundingBox,contentBox:attrs.contentBox,srcNode:attrs.srcNode||Y.Object(Widget.ATTRS[SRC_NODE])};this.addAttrs(preAttrs,userVals,lazy);delete attrs.boundingBox;delete attrs.contentBox;delete attrs.srcNode;delete attrs.id;if(this._applyParser){this._applyParser(userVals);}},_applyParsedConfig:function(node,cfg,parsedCfg){return(parsedCfg)?Y.mix(cfg,parsedCfg,false):cfg;},_applyParser:function(config){var widget=this,srcNode=this._getNodeToParse(),schema=widget._getHtmlParser(),parsedConfig,val;if(schema&&srcNode){Y.Object.each(schema,function(v,k,o){val=null;if(Lang.isFunction(v)){val=v.call(widget,srcNode);}else{if(Lang.isArray(v)){val=srcNode.all(v[0]);if(val.isEmpty()){val=null;}}else{val=srcNode.one(v);}}
if(val!==null&&val!==undefined){parsedConfig=parsedConfig||{};parsedConfig[k]=val;}});}
config=widget._applyParsedConfig(srcNode,config,parsedConfig);},_getNodeToParse:function(){var srcNode=this.get("srcNode");return(!this._cbFromTemplate)?srcNode:null;},_getHtmlParser:function(){var classes=this._getClasses(),parser={},i,p;for(i=classes.length-1;i>=0;i--){p=classes[i].HTML_PARSER;if(p){Y.mix(parser,p,true);}}
return parser;}});},'patched-v3.18.1',{"requires":["widget-base"]});YUI.add('widget-skin',function(Y,NAME){var BOUNDING_BOX="boundingBox",CONTENT_BOX="contentBox",SKIN="skin",_getClassName=Y.ClassNameManager.getClassName;Y.Widget.prototype.getSkinName=function(skinPrefix){var root=this.get(CONTENT_BOX)||this.get(BOUNDING_BOX),match,search;skinPrefix=skinPrefix||_getClassName(SKIN,"");search=new RegExp('\\b'+skinPrefix+'(\\S+)');if(root){root.ancestor(function(node){match=node.get('className').match(search);return match;});}
return(match)?match[1]:null;};},'patched-v3.18.1',{"requires":["widget-base"]});