/*! * jquery migrate - v1.2.1 - 2013-05-08 * https://github.com/jquery/jquery-migrate * copyright 2005, 2013 jquery foundation, inc. and other contributors; licensed mit */ (function(jquery,window,undefined){var warnedabout={};jquery.migratewarnings=[];if(!jquery.migratemute&&window.console&&window.console.log){window.console.log("jqmigrate: logging is active")}if(jquery.migratetrace===undefined){jquery.migratetrace=true}jquery.migratereset=function(){warnedabout={};jquery.migratewarnings.length=0};function migratewarn(msg){var console=window.console;if(!warnedabout[msg]){warnedabout[msg]=true;jquery.migratewarnings.push(msg);if(console&&console.warn&&!jquery.migratemute){console.warn("jqmigrate: "+msg);if(jquery.migratetrace&&console.trace){console.trace()}}}}function migratewarnprop(obj,prop,value,msg){if(object.defineproperty){try{object.defineproperty(obj,prop,{configurable:true,enumerable:true,get:function(){migratewarn(msg);return value},set:function(newvalue){migratewarn(msg);value=newvalue}});return}catch(err){}}jquery._definepropertybroken=true;obj[prop]=value}if(document.compatmode==="backcompat"){migratewarn("jquery is not compatible with quirks mode")}var attrfn=jquery("",{size:1}).attr("size")&&jquery.attrfn,oldattr=jquery.attr,valueattrget=jquery.attrhooks.value&&jquery.attrhooks.value.get||function(){return null},valueattrset=jquery.attrhooks.value&&jquery.attrhooks.value.set||function(){return undefined},rnotype=/^(?:input|button)$/i,rnoattrnodetype=/^[238]$/,rboolean=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,rusedefault=/^(?:checked|selected)$/i;migratewarnprop(jquery,"attrfn",attrfn||{},"jquery.attrfn is deprecated");jquery.attr=function(elem,name,value,pass){var lowername=name.tolowercase(),ntype=elem&&elem.nodetype;if(pass){if(oldattr.length<4){migratewarn("jquery.fn.attr( props, pass ) is deprecated")}if(elem&&!rnoattrnodetype.test(ntype)&&(attrfn?name in attrfn:jquery.isfunction(jquery.fn[name]))){return jquery(elem)[name](value)}}if(name==="type"&&value!==undefined&&rnotype.test(elem.nodename)&&elem.parentnode){migratewarn("can't change the 'type' of an input or button in ie 6/7/8")}if(!jquery.attrhooks[lowername]&&rboolean.test(lowername)){jquery.attrhooks[lowername]={get:function(elem,name){var attrnode,property=jquery.prop(elem,name);return property===true||typeof property!=="boolean"&&(attrnode=elem.getattributenode(name))&&attrnode.nodevalue!==false?name.tolowercase():undefined},set:function(elem,value,name){var propname;if(value===false){jquery.removeattr(elem,name)}else{propname=jquery.propfix[name]||name;if(propname in elem){elem[propname]=true}elem.setattribute(name,name.tolowercase())}return name}};if(rusedefault.test(lowername)){migratewarn("jquery.fn.attr('"+lowername+"') may use property instead of attribute")}}return oldattr.call(jquery,elem,name,value)};jquery.attrhooks.value={get:function(elem,name){var nodename=(elem.nodename||"").tolowercase();if(nodename==="button"){return valueattrget.apply(this,arguments)}if(nodename!=="input"&&nodename!=="option"){migratewarn("jquery.fn.attr('value') no longer gets properties")}return name in elem?elem.value:null},set:function(elem,value){var nodename=(elem.nodename||"").tolowercase();if(nodename==="button"){return valueattrset.apply(this,arguments)}if(nodename!=="input"&&nodename!=="option"){migratewarn("jquery.fn.attr('value', val) no longer sets properties")}elem.value=value}};var matched,browser,oldinit=jquery.fn.init,oldparsejson=jquery.parsejson,rquickexpr=/^([^<]*)(<[\w\w]+>)([^>]*)$/;jquery.fn.init=function(selector,context,rootjquery){var match;if(selector&&typeof selector==="string"&&!jquery.isplainobject(context)&&(match=rquickexpr.exec(jquery.trim(selector)))&&match[0]){if(selector.charat(0)!=="<"){migratewarn("$(html) html strings must start with '<' character")}if(match[3]){migratewarn("$(html) html text after last tag is ignored")}if(match[0].charat(0)==="#"){migratewarn("html string cannot start with a '#' character");jquery.error("jqmigrate: invalid selector string (xss)")}if(context&&context.context){context=context.context}if(jquery.parsehtml){return oldinit.call(this,jquery.parsehtml(match[2],context,true),context,rootjquery)}}return oldinit.apply(this,arguments)};jquery.fn.init.prototype=jquery.fn;jquery.parsejson=function(json){if(!json&&json!==null){migratewarn("jquery.parsejson requires a valid json string");return null}return oldparsejson.apply(this,arguments)};jquery.uamatch=function(ua){ua=ua.tolowercase();var match=/(chrome)[ \/]([\w.]+)/.exec(ua)||/(webkit)[ \/]([\w.]+)/.exec(ua)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ua)||/(msie) ([\w.]+)/.exec(ua)||ua.indexof("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua)||[];return{browser:match[1]||"",version:match[2]||"0"}};if(!jquery.browser){matched=jquery.uamatch(navigator.useragent);browser={};if(matched.browser){browser[matched.browser]=true;browser.version=matched.version}if(browser.chrome){browser.webkit=true}else if(browser.webkit){browser.safari=true}jquery.browser=browser}migratewarnprop(jquery,"browser",jquery.browser,"jquery.browser is deprecated");jquery.sub=function(){function jquerysub(selector,context){return new jquerysub.fn.init(selector,context)}jquery.extend(true,jquerysub,this);jquerysub.superclass=this;jquerysub.fn=jquerysub.prototype=this();jquerysub.fn.constructor=jquerysub;jquerysub.sub=this.sub;jquerysub.fn.init=function init(selector,context){if(context&&context instanceof jquery&&!(context instanceof jquerysub)){context=jquerysub(context)}return jquery.fn.init.call(this,selector,context,rootjquerysub)};jquerysub.fn.init.prototype=jquerysub.fn;var rootjquerysub=jquerysub(document);migratewarn("jquery.sub() is deprecated");return jquerysub};jquery.ajaxsetup({converters:{"text json":jquery.parsejson}});var oldfndata=jquery.fn.data;jquery.fn.data=function(name){var ret,evt,elem=this[0];if(elem&&name==="events"&&arguments.length===1){ret=jquery.data(elem,name);evt=jquery._data(elem,name);if((ret===undefined||ret===evt)&&evt!==undefined){migratewarn("use of jquery.fn.data('events') is deprecated");return evt}}return oldfndata.apply(this,arguments)};var rscripttype=/\/(java|ecma)script/i,oldself=jquery.fn.andself||jquery.fn.addback;jquery.fn.andself=function(){migratewarn("jquery.fn.andself() replaced by jquery.fn.addback()");return oldself.apply(this,arguments)};if(!jquery.clean){jquery.clean=function(elems,context,fragment,scripts){context=context||document;context=!context.nodetype&&context[0]||context;context=context.ownerdocument||context;migratewarn("jquery.clean() is deprecated");var i,elem,handlescript,jstags,ret=[];jquery.merge(ret,jquery.buildfragment(elems,context).childnodes);if(fragment){handlescript=function(elem){if(!elem.type||rscripttype.test(elem.type)){return scripts?scripts.push(elem.parentnode?elem.parentnode.removechild(elem):elem):fragment.appendchild(elem)}};for(i=0;(elem=ret[i])!=null;i++){if(!(jquery.nodename(elem,"script")&&handlescript(elem))){fragment.appendchild(elem);if(typeof elem.getelementsbytagname!=="undefined"){jstags=jquery.grep(jquery.merge([],elem.getelementsbytagname("script")),handlescript);ret.splice.apply(ret,[i+1,0].concat(jstags));i+=jstags.length}}}}return ret}}var eventadd=jquery.event.add,eventremove=jquery.event.remove,eventtrigger=jquery.event.trigger,oldtoggle=jquery.fn.toggle,oldlive=jquery.fn.live,olddie=jquery.fn.die,ajaxevents="ajaxstart|ajaxstop|ajaxsend|ajaxcomplete|ajaxerror|ajaxsuccess",rajaxevent=new regexp("\\b(?:"+ajaxevents+")\\b"),rhoverhack=/(?:^|\s)hover(\.\s+|)\b/,hoverhack=function(events){if(typeof(events)!=="string"||jquery.event.special.hover){return events}if(rhoverhack.test(events)){migratewarn("'hover' pseudo-event is deprecated, use 'mouseenter mouseleave'")}return events&&events.replace(rhoverhack,"mouseenter$1 mouseleave$1")};if(jquery.event.props&&jquery.event.props[0]!=="attrchange"){jquery.event.props.unshift("attrchange","attrname","relatednode","srcelement")}if(jquery.event.dispatch){migratewarnprop(jquery.event,"handle",jquery.event.dispatch,"jquery.event.handle is undocumented and deprecated")}jquery.event.add=function(elem,types,handler,data,selector){if(elem!==document&&rajaxevent.test(types)){migratewarn("ajax events should be attached to document: "+types)}eventadd.call(this,elem,hoverhack(types||""),handler,data,selector)};jquery.event.remove=function(elem,types,handler,selector,mappedtypes){eventremove.call(this,elem,hoverhack(types)||"",handler,selector,mappedtypes)};jquery.fn.error=function(){var args=array.prototype.slice.call(arguments,0);migratewarn("jquery.fn.error() is deprecated");args.splice(0,0,"error");if(arguments.length){return this.bind.apply(this,args)}this.triggerhandler.apply(this,args);return this};jquery.fn.toggle=function(fn,fn2){if(!jquery.isfunction(fn)||!jquery.isfunction(fn2)){return oldtoggle.apply(this,arguments)}migratewarn("jquery.fn.toggle(handler, handler...) is deprecated");var args=arguments,guid=fn.guid||jquery.guid++,i=0,toggler=function(event){var lasttoggle=(jquery._data(this,"lasttoggle"+fn.guid)||0)%i;jquery._data(this,"lasttoggle"+fn.guid,lasttoggle+1);event.preventdefault();return args[lasttoggle].apply(this,arguments)||false};toggler.guid=guid;while(i