1/* compact [ 2 plugins/agitateur_v692/js/jquery.js 3 plugins/agitateur_v692/js/google-code-prettify/prettify.js 4 plugins/agitateur_v692/js/bootstrap-transition.js 5 plugins/agitateur_v692/js/bootstrap-alert.js 6 plugins/agitateur_v692/js/bootstrap-modal.js 7 plugins/agitateur_v692/js/bootstrap-dropdown.js 8 plugins/agitateur_v692/js/bootstrap-scrollspy.js 9 plugins/agitateur_v692/js/bootstrap-tab.js 10 plugins/agitateur_v692/js/bootstrap-tooltip.js 11 plugins/agitateur_v692/js/bootstrap-popover.js 12 plugins/agitateur_v692/js/bootstrap-button.js 13 plugins/agitateur_v692/js/bootstrap-collapse.js 14 plugins/agitateur_v692/js/bootstrap-carousel.js 15 plugins/agitateur_v692/js/bootstrap-typeahead.js 16 plugins/agitateur_v692/js/bootstrap-affix.js 17 plugins/agitateur_v692/js/application.js 18 prive/javascript/jquery.js?1790327464 19 prive/javascript/jquery.form.js?1790327464 20 prive/javascript/jquery.autosave.js?1790327464 21 prive/javascript/jquery.placeholder-label.js?1790327464 22 prive/javascript/ajaxCallback.js?1790327464 23 prive/javascript/js.cookie.js?1790327464 24 plugins-dist/mediabox/lib/lity/lity.js?1790327464 25 plugins-dist/mediabox/lity/js/lity.mediabox.js?1790327464 26 plugins-dist/mediabox/javascript/spip.mediabox.js?1790327464 27 plugins-dist/porte_plume/javascript/jquery.markitup_pour_spip.js?1790327464 28 plugins-dist/porte_plume/javascript/jquery.previsu_spip.js?1790327464 29 local/cache-js/jsdyn-javascript_porte_plume_start_js-4f2253f7.js?1790112506 30] 65.7% */ 31 32/* plugins/agitateur_v692/js/jquery.js */
vendor: 92,512 bytes, lines 33-35
33(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=function(e,t){return new b.fn.init(e,t,r)},x=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,w=/\S+/g,T=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,N=/^(?:(<[\w\W]+>)[^>]*|#([\w-]*))$/,C=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,k=/^[\],:{}\s]*$/,E=/(?:^|:|,)(?:\s*\[)+/g,S=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,A=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,j=/^-ms-/,D=/-([\da-z])/gi,L=function(e,t){return t.toUpperCase()},H=function(e){(o.addEventListener||"load"===e.type||"complete"===o.readyState)&&(q(),b.ready())},q=function(){o.addEventListener?(o.removeEventListener("DOMContentLoaded",H,!1),e.removeEventListener("load",H,!1)):(o.detachEvent("onreadystatechange",H),e.detachEvent("onload",H))};b.fn=b.prototype={jquery:p,constructor:b,init:function(e,n,r){var i,a;if(!e)return this;if("string"==typeof e){if(i="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:N.exec(e),!i||!i[1]&&n)return!n||n.jquery?(n||r).find(e):this.constructor(n).find(e);if(i[1]){if(n=n instanceof b?n[0]:n,b.merge(this,b.parseHTML(i[1],n&&n.nodeType?n.ownerDocument||n:o,!0)),C.test(i[1])&&b.isPlainObject(n))for(i in n)b.isFunction(this[i])?this[i](n[i]):this.attr(i,n[i]);return this}if(a=o.getElementById(i[2]),a&&a.parentNode){if(a.id!==i[2])return r.find(e);this.length=1,this[0]=a}return this.context=o,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):b.isFunction(e)?r.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),b.makeArray(e,this))},selector:"",length:0,size:function(){return this.length},toArray:function(){return h.call(this)},get:function(e){return null==e?this.toArray():0>e?this[this.length+e]:this[e]},pushStack:function(e){var t=b.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return b.each(this,e,t)},ready:function(e){return b.ready.promise().done(e),this},slice:function(){return this.pushStack(h.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},map:function(e){return this.pushStack(b.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:d,sort:[].sort,splice:[].splice},b.fn.init.prototype=b.fn,b.extend=b.fn.extend=function(){var e,n,r,i,o,a,s=arguments[0]||{},u=1,l=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[1]||{},u=2),"object"==typeof s||b.isFunction(s)||(s={}),l===u&&(s=this,--u);l>u;u++)if(null!=(o=arguments[u]))for(i in o)e=s[i],r=o[i],s!==r&&(c&&r&&(b.isPlainObject(r)||(n=b.isArray(r)))?(n?(n=!1,a=e&&b.isArray(e)?e:[]):a=e&&b.isPlainObject(e)?e:{},s[i]=b.extend(c,a,r)):r!==t&&(s[i]=r));return s},b.extend({noConflict:function(t){return e.$===b&&(e.$=u),t&&e.jQuery===b&&(e.jQuery=s),b},isReady:!1,readyWait:1,holdReady:function(e){e?b.readyWait++:b.ready(!0)},ready:function(e){if(e===!0?!--b.readyWait:!b.isReady){if(!o.body)return setTimeout(b.ready);b.isReady=!0,e!==!0&&--b.readyWait>0||(n.resolveWith(o,[b]),b.fn.trigger&&b(o).trigger("ready").off("ready"))}},isFunction:function(e){return"function"===b.type(e)},isArray:Array.isArray||function(e){return"array"===b.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[m.call(e)]||"object":typeof e},isPlainObject:function(e){if(!e||"object"!==b.type(e)||e.nodeType||b.isWindow(e))return!1;try{if(e.constructor&&!y.call(e,"constructor")&&!y.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}var r;for(r in e);return r===t||y.call(e,r)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw Error(e)},parseHTML:function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||o;var r=C.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=b.buildFragment([e],t,i),i&&b(i).remove(),b.merge([],r.childNodes))},parseJSON:function(n){return e.JSON&&e.JSON.parse?e.JSON.parse(n):null===n?n:"string"==typeof n&&(n=b.trim(n),n&&k.test(n.replace(S,"@").replace(A,"]").replace(E,"")))?Function("return "+n)():(b.error("Invalid JSON: "+n),t)},parseXML:function(n){var r,i;if(!n||"string"!=typeof n)return null;try{e.DOMParser?(i=new DOMParser,r=i.parseFromString(n,"text/xml")):(r=new ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.loadXML(n))}catch(o){r=t}return r&&r.documentElement&&!r.getElementsByTagName("parsererror").length||b.error("Invalid XML: "+n),r},noop:function(){},globalEval:function(t){t&&b.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(j,"ms-").replace(D,L)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var r,i=0,o=e.length,a=M(e);if(n){if(a){for(;o>i;i++)if(r=t.apply(e[i],n),r===!1)break}else for(i in e)if(r=t.apply(e[i],n),r===!1)break}else if(a){for(;o>i;i++)if(r=t.call(e[i],i,e[i]),r===!1)break}else for(i in e)if(r=t.call(e[i],i,e[i]),r===!1)break;return e},trim:v&&!v.call("\ufeff\u00a0")?function(e){return null==e?"":v.call(e)}:function(e){return null==e?"":(e+"").replace(T,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(M(Object(e))?b.merge(n,"string"==typeof e?[e]:e):d.call(n,e)),n},inArray:function(e,t,n){var r;if(t){if(g)return g.call(t,e,n);for(r=t.length,n=n?0>n?Math.max(0,r+n):n:0;r>n;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,n){var r=n.length,i=e.length,o=0;if("number"==typeof r)for(;r>o;o++)e[i++]=n[o];else while(n[o]!==t)e[i++]=n[o++];return e.length=i,e},grep:function(e,t,n){var r,i=[],o=0,a=e.length;for(n=!!n;a>o;o++)r=!!t(e[o],o),n!==r&&i.push(e[o]);return i},map:function(e,t,n){var r,i=0,o=e.length,a=M(e),s=[];if(a)for(;o>i;i++)r=t(e[i],i,n),null!=r&&(s[s.length]=r);else for(i in e)r=t(e[i],i,n),null!=r&&(s[s.length]=r);return f.apply([],s)},guid:1,proxy:function(e,n){var r,i,o;return"string"==typeof n&&(o=e[n],n=e,e=o),b.isFunction(e)?(r=h.call(arguments,2),i=function(){return e.apply(n||this,r.concat(h.call(arguments)))},i.guid=e.guid=e.guid||b.guid++,i):t},access:function(e,n,r,i,o,a,s){var u=0,l=e.length,c=null==r;if("object"===b.type(r)){o=!0;for(u in r)b.access(e,n,u,r[u],!0,a,s)}else if(i!==t&&(o=!0,b.isFunction(i)||(s=!0),c&&(s?(n.call(e,i),n=null):(c=n,n=function(e,t,n){return c.call(b(e),n)})),n))for(;l>u;u++)n(e[u],r,s?i:i.call(e[u],u,n(e[u],r)));return o?e:c?n.call(e):l?n(e[0],r):a},now:function(){return(new Date).getTime()}}),b.ready.promise=function(t){if(!n)if(n=b.Deferred(),"complete"===o.readyState)setTimeout(b.ready);else if(o.addEventListener)o.addEventListener("DOMContentLoaded",H,!1),e.addEventListener("load",H,!1);else{o.attachEvent("onreadystatechange",H),e.attachEvent("onload",H);var r=!1;try{r=null==e.frameElement&&o.documentElement}catch(i){}r&&r.doScroll&&function a(){if(!b.isReady){try{r.doScroll("left")}catch(e){return setTimeout(a,50)}q(),b.ready()}}()}return n.promise(t)},b.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){l["[object "+t+"]"]=t.toLowerCase()});function M(e){var t=e.length,n=b.type(e);return b.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}r=b(o);var _={};function F(e){var t=_[e]={};return b.each(e.match(w)||[],function(e,n){t[n]=!0}),t}b.Callbacks=function(e){e="string"==typeof e?_[e]||F(e):b.extend({},e);var n,r,i,o,a,s,u=[],l=!e.once&&[],c=function(t){for(r=e.memory&&t,i=!0,a=s||0,s=0,o=u.length,n=!0;u&&o>a;a++)if(u[a].apply(t[0],t[1])===!1&&e.stopOnFalse){r=!1;break}n=!1,u&&(l?l.length&&c(l.shift()):r?u=[]:p.disable())},p={add:function(){if(u){var t=u.length;(function i(t){b.each(t,function(t,n){var r=b.type(n);"function"===r?e.unique&&p.has(n)||u.push(n):n&&n.length&&"string"!==r&&i(n)})})(arguments),n?o=u.length:r&&(s=t,c(r))}return this},remove:function(){return u&&b.each(arguments,function(e,t){var r;while((r=b.inArray(t,u,r))>-1)u.splice(r,1),n&&(o>=r&&o--,a>=r&&a--)}),this},has:function(e){return e?b.inArray(e,u)>-1:!(!u||!u.length)},empty:function(){return u=[],this},disable:function(){return u=l=r=t,this},disabled:function(){return!u},lock:function(){return l=t,r||p.disable(),this},locked:function(){return!l},fireWith:function(e,t){return t=t||[],t=[e,t.slice?t.slice():t],!u||i&&!l||(n?l.push(t):c(t)),this},fire:function(){return p.fireWith(this,arguments),this},fired:function(){return!!i}};return p},b.extend({Deferred:function(e){var t=[["resolve","done",b.Callbacks("once memory"),"resolved"],["reject","fail",b.Callbacks("once memory"),"rejected"],["notify","progress",b.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return b.Deferred(function(n){b.each(t,function(t,o){var a=o[0],s=b.isFunction(e[t])&&e[t];i[o[1]](function(){var e=s&&s.apply(this,arguments);e&&b.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[a+"With"](this===r?n.promise():this,s?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?b.extend(e,r):r}},i={};return r.pipe=r.then,b.each(t,function(e,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t=0,n=h.call(arguments),r=n.length,i=1!==r||e&&b.isFunction(e.promise)?r:0,o=1===i?e:b.Deferred(),a=function(e,t,n){return function(r){t[e]=this,n[e]=arguments.length>1?h.call(arguments):r,n===s?o.notifyWith(t,n):--i||o.resolveWith(t,n)}},s,u,l;if(r>1)for(s=Array(r),u=Array(r),l=Array(r);r>t;t++)n[t]&&b.isFunction(n[t].promise)?n[t].promise().done(a(t,l,n)).fail(o.reject).progress(a(t,u,s)):--i;return i||o.resolveWith(l,n),o.promise()}}),b.support=function(){var t,n,r,a,s,u,l,c,p,f,d=o.createElement("div");if(d.setAttribute("className","t"),d.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",n=d.getElementsByTagName("*"),r=d.getElementsByTagName("a")[0],!n||!r||!n.length)return{};s=o.createElement("select"),l=s.appendChild(o.createElement("option")),a=d.getElementsByTagName("input")[0],r.style.cssText="top:1px;float:left;opacity:.5",t={getSetAttribute:"t"!==d.className,leadingWhitespace:3===d.firstChild.nodeType,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/top/.test(r.getAttribute("style")),hrefNormalized:"/a"===r.getAttribute("href"),opacity:/^0.5/.test(r.style.opacity),cssFloat:!!r.style.cssFloat,checkOn:!!a.value,optSelected:l.selected,enctype:!!o.createElement("form").enctype,html5Clone:"<:nav></:nav>"!==o.createElement("nav").cloneNode(!0).outerHTML,boxModel:"CSS1Compat"===o.compatMode,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,boxSizingReliable:!0,pixelPosition:!1},a.checked=!0,t.noCloneChecked=a.cloneNode(!0).checked,s.disabled=!0,t.optDisabled=!l.disabled;try{delete d.test}catch(h){t.deleteExpando=!1}a=o.createElement("input"),a.setAttribute("value",""),t.input=""===a.getAttribute("value"),a.value="t",a.setAttribute("type","radio"),t.radioValue="t"===a.value,a.setAttribute("checked","t"),a.setAttribute("name","t"),u=o.createDocumentFragment(),u.appendChild(a),t.appendChecked=a.checked,t.checkClone=u.cloneNode(!0).cloneNode(!0).lastChild.checked,d.attachEvent&&(d.attachEvent("onclick",function(){t.noCloneEvent=!1}),d.cloneNode(!0).click());for(f in{submit:!0,change:!0,focusin:!0})d.setAttribute(c="on"+f,"t"),t[f+"Bubbles"]=c in e||d.attributes[c].expando===!1;return d.style.backgroundClip="content-box",d.cloneNode(!0).style.backgroundClip="",t.clearCloneStyle="content-box"===d.style.backgroundClip,b(function(){var n,r,a,s="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",u=o.getElementsByTagName("body")[0];u&&(n=o.createElement("div"),n.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",u.appendChild(n).appendChild(d),d.innerHTML="<table><tr><td></td><td>t</td></tr></table>",a=d.getElementsByTagName("td"),a[0].style.cssText="padding:0;margin:0;border:0;display:none",p=0===a[0].offsetHeight,a[0].style.display="",a[1].style.display="none",t.reliableHiddenOffsets=p&&0===a[0].offsetHeight,d.innerHTML="",d.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",t.boxSizing=4===d.offsetWidth,t.doesNotIncludeMarginInBodyOffset=1!==u.offsetTop,e.getComputedStyle&&(t.pixelPosition="1%"!==(e.getComputedStyle(d,null)||{}).top,t.boxSizingReliable="4px"===(e.getComputedStyle(d,null)||{width:"4px"}).width,r=d.appendChild(o.createElement("div")),r.style.cssText=d.style.cssText=s,r.style.marginRight=r.style.width="0",d.style.width="1px",t.reliableMarginRight=!parseFloat((e.getComputedStyle(r,null)||{}).marginRight)),typeof d.style.zoom!==i&&(d.innerHTML="",d.style.cssText=s+"width:1px;padding:1px;display:inline;zoom:1",t.inlineBlockNeedsLayout=3===d.offsetWidth,d.style.display="block",d.innerHTML="<div></div>",d.firstChild.style.width="5px",t.shrinkWrapBlocks=3!==d.offsetWidth,t.inlineBlockNeedsLayout&&(u.style.zoom=1)),u.removeChild(n),n=d=a=r=null)}),n=s=u=l=r=a=null,t}();var O=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,B=/([A-Z])/g;function P(e,n,r,i){if(b.acceptData(e)){var o,a,s=b.expando,u="string"==typeof n,l=e.nodeType,p=l?b.cache:e,f=l?e[s]:e[s]&&s;if(f&&p[f]&&(i||p[f].data)||!u||r!==t)return f||(l?e[s]=f=c.pop()||b.guid++:f=s),p[f]||(p[f]={},l||(p[f].toJSON=b.noop)),("object"==typeof n||"function"==typeof n)&&(i?p[f]=b.extend(p[f],n):p[f].data=b.extend(p[f].data,n)),o=p[f],i||(o.data||(o.data={}),o=o.data),r!==t&&(o[b.camelCase(n)]=r),u?(a=o[n],null==a&&(a=o[b.camelCase(n)])):a=o,a}}function R(e,t,n){if(b.acceptData(e)){var r,i,o,a=e.nodeType,s=a?b.cache:e,u=a?e[b.expando]:b.expando;if(s[u]){if(t&&(o=n?s[u]:s[u].data)){b.isArray(t)?t=t.concat(b.map(t,b.camelCase)):t in o?t=[t]:(t=b.camelCase(t),t=t in o?[t]:t.split(" "));for(r=0,i=t.length;i>r;r++)delete o[t[r]];if(!(n?$:b.isEmptyObject)(o))return}(n||(delete s[u].data,$(s[u])))&&(a?b.cleanData([e],!0):b.support.deleteExpando||s!=s.window?delete s[u]:s[u]=null)}}}b.extend({cache:{},expando:"jQuery"+(p+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(e){return e=e.nodeType?b.cache[e[b.expando]]:e[b.expando],!!e&&!$(e)},data:function(e,t,n){return P(e,t,n)},removeData:function(e,t){return R(e,t)},_data:function(e,t,n){return P(e,t,n,!0)},_removeData:function(e,t){return R(e,t,!0)},acceptData:function(e){if(e.nodeType&&1!==e.nodeType&&9!==e.nodeType)return!1;var t=e.nodeName&&b.noData[e.nodeName.toLowerCase()];return!t||t!==!0&&e.getAttribute("classid")===t}}),b.fn.extend({data:function(e,n){var r,i,o=this[0],a=0,s=null;if(e===t){if(this.length&&(s=b.data(o),1===o.nodeType&&!b._data(o,"parsedAttrs"))){for(r=o.attributes;r.length>a;a++)i=r[a].name,i.indexOf("data-")||(i=b.camelCase(i.slice(5)),W(o,i,s[i]));b._data(o,"parsedAttrs",!0)}return s}return"object"==typeof e?this.each(function(){b.data(this,e)}):b.access(this,function(n){return n===t?o?W(o,e,b.data(o,e)):null:(this.each(function(){b.data(this,e,n)}),t)},null,n,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){b.removeData(this,e)})}});function W(e,n,r){if(r===t&&1===e.nodeType){var i="data-"+n.replace(B,"-$1").toLowerCase();if(r=e.getAttribute(i),"string"==typeof r){try{r="true"===r?!0:"false"===r?!1:"null"===r?null:+r+""===r?+r:O.test(r)?b.parseJSON(r):r}catch(o){}b.data(e,n,r)}else r=t}return r}function $(e){var t;for(t in e)if(("data"!==t||!b.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}b.extend({queue:function(e,n,r){var i;return e?(n=(n||"fx")+"queue",i=b._data(e,n),r&&(!i||b.isArray(r)?i=b._data(e,n,b.makeArray(r)):i.push(r)),i||[]):t},dequeue:function(e,t){t=t||"fx";var n=b.queue(e,t),r=n.length,i=n.shift(),o=b._queueHooks(e,t),a=function(){b.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),o.cur=i,i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return b._data(e,n)||b._data(e,n,{empty:b.Callbacks("once memory").add(function(){b._removeData(e,t+"queue"),b._removeData(e,n)})})}}),b.fn.extend({queue:function(e,n){var r=2;return"string"!=typeof e&&(n=e,e="fx",r--),r>arguments.length?b.queue(this[0],e):n===t?this:this.each(function(){var t=b.queue(this,e,n);b._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&b.dequeue(this,e)})},dequeue:function(e){return this.each(function(){b.dequeue(this,e)})},delay:function(e,t){return e=b.fx?b.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,n){var r,i=1,o=b.Deferred(),a=this,s=this.length,u=function(){--i||o.resolveWith(a,[a])};"string"!=typeof e&&(n=e,e=t),e=e||"fx";while(s--)r=b._data(a[s],e+"queueHooks"),r&&r.empty&&(i++,r.empty.add(u));return u(),o.promise(n)}});var I,z,X=/[\t\r\n]/g,U=/\r/g,V=/^(?:input|select|textarea|button|object)$/i,Y=/^(?:a|area)$/i,J=/^(?:checked|selected|autofocus|autoplay|async|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped)$/i,G=/^(?:checked|selected)$/i,Q=b.support.getSetAttribute,K=b.support.input;b.fn.extend({attr:function(e,t){return b.access(this,b.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){b.removeAttr(this,e)})},prop:function(e,t){return b.access(this,b.prop,e,t,arguments.length>1)},removeProp:function(e){return e=b.propFix[e]||e,this.each(function(){try{this[e]=t,delete this[e]}catch(n){}})},addClass:function(e){var t,n,r,i,o,a=0,s=this.length,u="string"==typeof e&&e;if(b.isFunction(e))return this.each(function(t){b(this).addClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(w)||[];s>a;a++)if(n=this[a],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(X," "):" ")){o=0;while(i=t[o++])0>r.indexOf(" "+i+" ")&&(r+=i+" ");n.className=b.trim(r)}return this},removeClass:function(e){var t,n,r,i,o,a=0,s=this.length,u=0===arguments.length||"string"==typeof e&&e;if(b.isFunction(e))return this.each(function(t){b(this).removeClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(w)||[];s>a;a++)if(n=this[a],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(X," "):"")){o=0;while(i=t[o++])while(r.indexOf(" "+i+" ")>=0)r=r.replace(" "+i+" "," ");n.className=e?b.trim(r):""}return this},toggleClass:function(e,t){var n=typeof e,r="boolean"==typeof t;return b.isFunction(e)?this.each(function(n){b(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if("string"===n){var o,a=0,s=b(this),u=t,l=e.match(w)||[];while(o=l[a++])u=r?u:!s.hasClass(o),s[u?"addClass":"removeClass"](o)}else(n===i||"boolean"===n)&&(this.className&&b._data(this,"__className__",this.className),this.className=this.className||e===!1?"":b._data(this,"__className__")||"")})},hasClass:function(e){var t=" "+e+" ",n=0,r=this.length;for(;r>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(X," ").indexOf(t)>=0)return!0;return!1},val:function(e){var n,r,i,o=this[0];{if(arguments.length)return i=b.isFunction(e),this.each(function(n){var o,a=b(this);1===this.nodeType&&(o=i?e.call(this,n,a.val()):e,null==o?o="":"number"==typeof o?o+="":b.isArray(o)&&(o=b.map(o,function(e){return null==e?"":e+""})),r=b.valHooks[this.type]||b.valHooks[this.nodeName.toLowerCase()],r&&"set"in r&&r.set(this,o,"value")!==t||(this.value=o))});if(o)return r=b.valHooks[o.type]||b.valHooks[o.nodeName.toLowerCase()],r&&"get"in r&&(n=r.get(o,"value"))!==t?n:(n=o.value,"string"==typeof n?n.replace(U,""):null==n?"":n)}}}),b.extend({valHooks:{option:{get:function(e){var t=e.attributes.value;return!t||t.specified?e.value:e.text}},select:{get:function(e){var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||0>i,a=o?null:[],s=o?i+1:r.length,u=0>i?s:o?i:0;for(;s>u;u++)if(n=r[u],!(!n.selected&&u!==i||(b.support.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&b.nodeName(n.parentNode,"optgroup"))){if(t=b(n).val(),o)return t;a.push(t)}return a},set:function(e,t){var n=b.makeArray(t);return b(e).find("option").each(function(){this.selected=b.inArray(b(this).val(),n)>=0}),n.length||(e.selectedIndex=-1),n}}},attr:function(e,n,r){var o,a,s,u=e.nodeType;if(e&&3!==u&&8!==u&&2!==u)return typeof e.getAttribute===i?b.prop(e,n,r):(a=1!==u||!b.isXMLDoc(e),a&&(n=n.toLowerCase(),o=b.attrHooks[n]||(J.test(n)?z:I)),r===t?o&&a&&"get"in o&&null!==(s=o.get(e,n))?s:(typeof e.getAttribute!==i&&(s=e.getAttribute(n)),null==s?t:s):null!==r?o&&a&&"set"in o&&(s=o.set(e,r,n))!==t?s:(e.setAttribute(n,r+""),r):(b.removeAttr(e,n),t))},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(w);if(o&&1===e.nodeType)while(n=o[i++])r=b.propFix[n]||n,J.test(n)?!Q&&G.test(n)?e[b.camelCase("default-"+n)]=e[r]=!1:e[r]=!1:b.attr(e,n,""),e.removeAttribute(Q?n:r)},attrHooks:{type:{set:function(e,t){if(!b.support.radioValue&&"radio"===t&&b.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(e,n,r){var i,o,a,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return a=1!==s||!b.isXMLDoc(e),a&&(n=b.propFix[n]||n,o=b.propHooks[n]),r!==t?o&&"set"in o&&(i=o.set(e,r,n))!==t?i:e[n]=r:o&&"get"in o&&null!==(i=o.get(e,n))?i:e[n]},propHooks:{tabIndex:{get:function(e){var n=e.getAttributeNode("tabindex");return n&&n.specified?parseInt(n.value,10):V.test(e.nodeName)||Y.test(e.nodeName)&&e.href?0:t}}}}),z={get:function(e,n){var r=b.prop(e,n),i="boolean"==typeof r&&e.getAttribute(n),o="boolean"==typeof r?K&&Q?null!=i:G.test(n)?e[b.camelCase("default-"+n)]:!!i:e.getAttributeNode(n);return o&&o.value!==!1?n.toLowerCase():t},set:function(e,t,n){return t===!1?b.removeAttr(e,n):K&&Q||!G.test(n)?e.setAttribute(!Q&&b.propFix[n]||n,n):e[b.camelCase("default-"+n)]=e[n]=!0,n}},K&&Q||(b.attrHooks.value={get:function(e,n){var r=e.getAttributeNode(n);return b.nodeName(e,"input")?e.defaultValue:r&&r.specified?r.value:t},set:function(e,n,r){return b.nodeName(e,"input")?(e.defaultValue=n,t):I&&I.set(e,n,r)}}),Q||(I=b.valHooks.button={get:function(e,n){var r=e.getAttributeNode(n);return r&&("id"===n||"name"===n||"coords"===n?""!==r.value:r.specified)?r.value:t},set:function(e,n,r){var i=e.getAttributeNode(r);return i||e.setAttributeNode(i=e.ownerDocument.createAttribute(r)),i.value=n+="","value"===r||n===e.getAttribute(r)?n:t}},b.attrHooks.contenteditable={get:I.get,set:function(e,t,n){I.set(e,""===t?!1:t,n)}},b.each(["width","height"],function(e,n){b.attrHooks[n]=b.extend(b.attrHooks[n],{set:function(e,r){return""===r?(e.setAttribute(n,"auto"),r):t}})})),b.support.hrefNormalized||(b.each(["href","src","width","height"],function(e,n){b.attrHooks[n]=b.extend(b.attrHooks[n],{get:function(e){var r=e.getAttribute(n,2);return null==r?t:r}})}),b.each(["href","src"],function(e,t){b.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}})),b.support.style||(b.attrHooks.style={get:function(e){return e.style.cssText||t},set:function(e,t){return e.style.cssText=t+""}}),b.support.optSelected||(b.propHooks.selected=b.extend(b.propHooks.selected,{get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}})),b.support.enctype||(b.propFix.enctype="encoding"),b.support.checkOn||b.each(["radio","checkbox"],function(){b.valHooks[this]={get:function(e){return null===e.getAttribute("value")?"on":e.value}}}),b.each(["radio","checkbox"],function(){b.valHooks[this]=b.extend(b.valHooks[this],{set:function(e,n){return b.isArray(n)?e.checked=b.inArray(b(e).val(),n)>=0:t}})});var Z=/^(?:input|select|textarea)$/i,et=/^key/,tt=/^(?:mouse|contextmenu)|click/,nt=/^(?:focusinfocus|focusoutblur)$/,rt=/^([^.]*)(?:\.(.+)|)$/;function it(){return!0}function ot(){return!1}b.event={global:{},add:function(e,n,r,o,a){var s,u,l,c,p,f,d,h,g,m,y,v=b._data(e);if(v){r.handler&&(c=r,r=c.handler,a=c.selector),r.guid||(r.guid=b.guid++),(u=v.events)||(u=v.events={}),(f=v.handle)||(f=v.handle=function(e){return typeof b===i||e&&b.event.triggered===e.type?t:b.event.dispatch.apply(f.elem,arguments)},f.elem=e),n=(n||"").match(w)||[""],l=n.length;while(l--)s=rt.exec(n[l])||[],g=y=s[1],m=(s[2]||"").split(".").sort(),p=b.event.special[g]||{},g=(a?p.delegateType:p.bindType)||g,p=b.event.special[g]||{},d=b.extend({type:g,origType:y,data:o,handler:r,guid:r.guid,selector:a,needsContext:a&&b.expr.match.needsContext.test(a),namespace:m.join(".")},c),(h=u[g])||(h=u[g]=[],h.delegateCount=0,p.setup&&p.setup.call(e,o,m,f)!==!1||(e.addEventListener?e.addEventListener(g,f,!1):e.attachEvent&&e.attachEvent("on"+g,f))),p.add&&(p.add.call(e,d),d.handler.guid||(d.handler.guid=r.guid)),a?h.splice(h.delegateCount++,0,d):h.push(d),b.event.global[g]=!0;e=null}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,p,f,d,h,g,m=b.hasData(e)&&b._data(e);if(m&&(c=m.events)){t=(t||"").match(w)||[""],l=t.length;while(l--)if(s=rt.exec(t[l])||[],d=g=s[1],h=(s[2]||"").split(".").sort(),d){p=b.event.special[d]||{},d=(r?p.delegateType:p.bindType)||d,f=c[d]||[],s=s[2]&&RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),u=o=f.length;while(o--)a=f[o],!i&&g!==a.origType||n&&n.guid!==a.guid||s&&!s.test(a.namespace)||r&&r!==a.selector&&("**"!==r||!a.selector)||(f.splice(o,1),a.selector&&f.delegateCount--,p.remove&&p.remove.call(e,a));u&&!f.length&&(p.teardown&&p.teardown.call(e,h,m.handle)!==!1||b.removeEvent(e,d,m.handle),delete c[d])}else for(d in c)b.event.remove(e,d+t[l],n,r,!0);b.isEmptyObject(c)&&(delete m.handle,b._removeData(e,"events"))}},trigger:function(n,r,i,a){var s,u,l,c,p,f,d,h=[i||o],g=y.call(n,"type")?n.type:n,m=y.call(n,"namespace")?n.namespace.split("."):[];if(l=f=i=i||o,3!==i.nodeType&&8!==i.nodeType&&!nt.test(g+b.event.triggered)&&(g.indexOf(".")>=0&&(m=g.split("."),g=m.shift(),m.sort()),u=0>g.indexOf(":")&&"on"+g,n=n[b.expando]?n:new b.Event(g,"object"==typeof n&&n),n.isTrigger=!0,n.namespace=m.join("."),n.namespace_re=n.namespace?RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,n.result=t,n.target||(n.target=i),r=null==r?[n]:b.makeArray(r,[n]),p=b.event.special[g]||{},a||!p.trigger||p.trigger.apply(i,r)!==!1)){if(!a&&!p.noBubble&&!b.isWindow(i)){for(c=p.delegateType||g,nt.test(c+g)||(l=l.parentNode);l;l=l.parentNode)h.push(l),f=l;f===(i.ownerDocument||o)&&h.push(f.defaultView||f.parentWindow||e)}d=0;while((l=h[d++])&&!n.isPropagationStopped())n.type=d>1?c:p.bindType||g,s=(b._data(l,"events")||{})[n.type]&&b._data(l,"handle"),s&&s.apply(l,r),s=u&&l[u],s&&b.acceptData(l)&&s.apply&&s.apply(l,r)===!1&&n.preventDefault();if(n.type=g,!(a||n.isDefaultPrevented()||p._default&&p._default.apply(i.ownerDocument,r)!==!1||"click"===g&&b.nodeName(i,"a")||!b.acceptData(i)||!u||!i[g]||b.isWindow(i))){f=i[u],f&&(i[u]=null),b.event.triggered=g;try{i[g]()}catch(v){}b.event.triggered=t,f&&(i[u]=f)}return n.result}},dispatch:function(e){e=b.event.fix(e);var n,r,i,o,a,s=[],u=h.call(arguments),l=(b._data(this,"events")||{})[e.type]||[],c=b.event.special[e.type]||{};if(u[0]=e,e.delegateTarget=this,!c.preDispatch||c.preDispatch.call(this,e)!==!1){s=b.event.handlers.call(this,e,l),n=0;while((o=s[n++])&&!e.isPropagationStopped()){e.currentTarget=o.elem,a=0;while((i=o.handlers[a++])&&!e.isImmediatePropagationStopped())(!e.namespace_re||e.namespace_re.test(i.namespace))&&(e.handleObj=i,e.data=i.data,r=((b.event.special[i.origType]||{}).handle||i.handler).apply(o.elem,u),r!==t&&(e.result=r)===!1&&(e.preventDefault(),e.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,e),e.result}},handlers:function(e,n){var r,i,o,a,s=[],u=n.delegateCount,l=e.target;if(u&&l.nodeType&&(!e.button||"click"!==e.type))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(l.disabled!==!0||"click"!==e.type)){for(o=[],a=0;u>a;a++)i=n[a],r=i.selector+" ",o[r]===t&&(o[r]=i.needsContext?b(r,this).index(l)>=0:b.find(r,this,null,[l]).length),o[r]&&o.push(i);o.length&&s.push({elem:l,handlers:o})}return n.length>u&&s.push({elem:this,handlers:n.slice(u)}),s},fix:function(e){if(e[b.expando])return e;var t,n,r,i=e.type,a=e,s=this.fixHooks[i];s||(this.fixHooks[i]=s=tt.test(i)?this.mouseHooks:et.test(i)?this.keyHooks:{}),r=s.props?this.props.concat(s.props):this.props,e=new b.Event(a),t=r.length;while(t--)n=r[t],e[n]=a[n];return e.target||(e.target=a.srcElement||o),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,s.filter?s.filter(e,a):e},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,n){var r,i,a,s=n.button,u=n.fromElement;return null==e.pageX&&null!=n.clientX&&(i=e.target.ownerDocument||o,a=i.documentElement,r=i.body,e.pageX=n.clientX+(a&&a.scrollLeft||r&&r.scrollLeft||0)-(a&&a.clientLeft||r&&r.clientLeft||0),e.pageY=n.clientY+(a&&a.scrollTop||r&&r.scrollTop||0)-(a&&a.clientTop||r&&r.clientTop||0)),!e.relatedTarget&&u&&(e.relatedTarget=u===e.target?n.toElement:u),e.which||s===t||(e.which=1&s?1:2&s?3:4&s?2:0),e}},special:{load:{noBubble:!0},click:{trigger:function(){return b.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):t}},focus:{trigger:function(){if(this!==o.activeElement&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){return this===o.activeElement&&this.blur?(this.blur(),!1):t},delegateType:"focusout"},beforeunload:{postDispatch:function(e){e.result!==t&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,r){var i=b.extend(new b.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?b.event.trigger(i,null,t):b.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},b.removeEvent=o.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,t,n){var r="on"+t;e.detachEvent&&(typeof e[r]===i&&(e[r]=null),e.detachEvent(r,n))},b.Event=function(e,n){return this instanceof b.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.returnValue===!1||e.getPreventDefault&&e.getPreventDefault()?it:ot):this.type=e,n&&b.extend(this,n),this.timeStamp=e&&e.timeStamp||b.now(),this[b.expando]=!0,t):new b.Event(e,n)},b.Event.prototype={isDefaultPrevented:ot,isPropagationStopped:ot,isImmediatePropagationStopped:ot,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=it,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=it,e&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=it,this.stopPropagation()}},b.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,t){b.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj; 34return(!i||i!==r&&!b.contains(r,i))&&(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),b.support.submitBubbles||(b.event.special.submit={setup:function(){return b.nodeName(this,"form")?!1:(b.event.add(this,"click._submit keypress._submit",function(e){var n=e.target,r=b.nodeName(n,"input")||b.nodeName(n,"button")?n.form:t;r&&!b._data(r,"submitBubbles")&&(b.event.add(r,"submit._submit",function(e){e._submit_bubble=!0}),b._data(r,"submitBubbles",!0))}),t)},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&b.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){return b.nodeName(this,"form")?!1:(b.event.remove(this,"._submit"),t)}}),b.support.changeBubbles||(b.event.special.change={setup:function(){return Z.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(b.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._just_changed=!0)}),b.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),b.event.simulate("change",this,e,!0)})),!1):(b.event.add(this,"beforeactivate._change",function(e){var t=e.target;Z.test(t.nodeName)&&!b._data(t,"changeBubbles")&&(b.event.add(t,"change._change",function(e){!this.parentNode||e.isSimulated||e.isTrigger||b.event.simulate("change",this.parentNode,e,!0)}),b._data(t,"changeBubbles",!0))}),t)},handle:function(e){var n=e.target;return this!==n||e.isSimulated||e.isTrigger||"radio"!==n.type&&"checkbox"!==n.type?e.handleObj.handler.apply(this,arguments):t},teardown:function(){return b.event.remove(this,"._change"),!Z.test(this.nodeName)}}),b.support.focusinBubbles||b.each({focus:"focusin",blur:"focusout"},function(e,t){var n=0,r=function(e){b.event.simulate(t,e.target,b.event.fix(e),!0)};b.event.special[t]={setup:function(){0===n++&&o.addEventListener(e,r,!0)},teardown:function(){0===--n&&o.removeEventListener(e,r,!0)}}}),b.fn.extend({on:function(e,n,r,i,o){var a,s;if("object"==typeof e){"string"!=typeof n&&(r=r||n,n=t);for(a in e)this.on(a,n,r,e[a],o);return this}if(null==r&&null==i?(i=n,r=n=t):null==i&&("string"==typeof n?(i=r,r=t):(i=r,r=n,n=t)),i===!1)i=ot;else if(!i)return this;return 1===o&&(s=i,i=function(e){return b().off(e),s.apply(this,arguments)},i.guid=s.guid||(s.guid=b.guid++)),this.each(function(){b.event.add(this,e,i,r,n)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,n,r){var i,o;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,b(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(o in e)this.off(o,n,e[o]);return this}return(n===!1||"function"==typeof n)&&(r=n,n=t),r===!1&&(r=ot),this.each(function(){b.event.remove(this,e,r,n)})},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},trigger:function(e,t){return this.each(function(){b.event.trigger(e,t,this)})},triggerHandler:function(e,n){var r=this[0];return r?b.event.trigger(e,n,r,!0):t}}),function(e,t){var n,r,i,o,a,s,u,l,c,p,f,d,h,g,m,y,v,x="sizzle"+-new Date,w=e.document,T={},N=0,C=0,k=it(),E=it(),S=it(),A=typeof t,j=1<<31,D=[],L=D.pop,H=D.push,q=D.slice,M=D.indexOf||function(e){var t=0,n=this.length;for(;n>t;t++)if(this[t]===e)return t;return-1},_="[\\x20\\t\\r\\n\\f]",F="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",O=F.replace("w","w#"),B="([*^$|!~]?=)",P="\\["+_+"*("+F+")"+_+"*(?:"+B+_+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+O+")|)|)"+_+"*\\]",R=":("+F+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+P.replace(3,8)+")*)|.*)\\)|)",W=RegExp("^"+_+"+|((?:^|[^\\\\])(?:\\\\.)*)"+_+"+$","g"),$=RegExp("^"+_+"*,"+_+"*"),I=RegExp("^"+_+"*([\\x20\\t\\r\\n\\f>+~])"+_+"*"),z=RegExp(R),X=RegExp("^"+O+"$"),U={ID:RegExp("^#("+F+")"),CLASS:RegExp("^\\.("+F+")"),NAME:RegExp("^\\[name=['\"]?("+F+")['\"]?\\]"),TAG:RegExp("^("+F.replace("w","w*")+")"),ATTR:RegExp("^"+P),PSEUDO:RegExp("^"+R),CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+_+"*(even|odd|(([+-]|)(\\d*)n|)"+_+"*(?:([+-]|)"+_+"*(\\d+)|))"+_+"*\\)|)","i"),needsContext:RegExp("^"+_+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+_+"*((?:-\\d)?\\d*)"+_+"*\\)|)(?=[^-]|$)","i")},V=/[\x20\t\r\n\f]*[+~]/,Y=/^[^{]+\{\s*\[native code/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,G=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,K=/'|\\/g,Z=/\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,et=/\\([\da-fA-F]{1,6}[\x20\t\r\n\f]?|.)/g,tt=function(e,t){var n="0x"+t-65536;return n!==n?t:0>n?String.fromCharCode(n+65536):String.fromCharCode(55296|n>>10,56320|1023&n)};try{q.call(w.documentElement.childNodes,0)[0].nodeType}catch(nt){q=function(e){var t,n=[];while(t=this[e++])n.push(t);return n}}function rt(e){return Y.test(e+"")}function it(){var e,t=[];return e=function(n,r){return t.push(n+=" ")>i.cacheLength&&delete e[t.shift()],e[n]=r}}function ot(e){return e[x]=!0,e}function at(e){var t=p.createElement("div");try{return e(t)}catch(n){return!1}finally{t=null}}function st(e,t,n,r){var i,o,a,s,u,l,f,g,m,v;if((t?t.ownerDocument||t:w)!==p&&c(t),t=t||p,n=n||[],!e||"string"!=typeof e)return n;if(1!==(s=t.nodeType)&&9!==s)return[];if(!d&&!r){if(i=J.exec(e))if(a=i[1]){if(9===s){if(o=t.getElementById(a),!o||!o.parentNode)return n;if(o.id===a)return n.push(o),n}else if(t.ownerDocument&&(o=t.ownerDocument.getElementById(a))&&y(t,o)&&o.id===a)return n.push(o),n}else{if(i[2])return H.apply(n,q.call(t.getElementsByTagName(e),0)),n;if((a=i[3])&&T.getByClassName&&t.getElementsByClassName)return H.apply(n,q.call(t.getElementsByClassName(a),0)),n}if(T.qsa&&!h.test(e)){if(f=!0,g=x,m=t,v=9===s&&e,1===s&&"object"!==t.nodeName.toLowerCase()){l=ft(e),(f=t.getAttribute("id"))?g=f.replace(K,"\\$&"):t.setAttribute("id",g),g="[id='"+g+"'] ",u=l.length;while(u--)l[u]=g+dt(l[u]);m=V.test(e)&&t.parentNode||t,v=l.join(",")}if(v)try{return H.apply(n,q.call(m.querySelectorAll(v),0)),n}catch(b){}finally{f||t.removeAttribute("id")}}}return wt(e.replace(W,"$1"),t,n,r)}a=st.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},c=st.setDocument=function(e){var n=e?e.ownerDocument||e:w;return n!==p&&9===n.nodeType&&n.documentElement?(p=n,f=n.documentElement,d=a(n),T.tagNameNoComments=at(function(e){return e.appendChild(n.createComment("")),!e.getElementsByTagName("*").length}),T.attributes=at(function(e){e.innerHTML="<select></select>";var t=typeof e.lastChild.getAttribute("multiple");return"boolean"!==t&&"string"!==t}),T.getByClassName=at(function(e){return e.innerHTML="<div class='hidden e'></div><div class='hidden'></div>",e.getElementsByClassName&&e.getElementsByClassName("e").length?(e.lastChild.className="e",2===e.getElementsByClassName("e").length):!1}),T.getByName=at(function(e){e.id=x+0,e.innerHTML="<a name='"+x+"'></a><div name='"+x+"'></div>",f.insertBefore(e,f.firstChild);var t=n.getElementsByName&&n.getElementsByName(x).length===2+n.getElementsByName(x+0).length;return T.getIdNotName=!n.getElementById(x),f.removeChild(e),t}),i.attrHandle=at(function(e){return e.innerHTML="<a href='#'></a>",e.firstChild&&typeof e.firstChild.getAttribute!==A&&"#"===e.firstChild.getAttribute("href")})?{}:{href:function(e){return e.getAttribute("href",2)},type:function(e){return e.getAttribute("type")}},T.getIdNotName?(i.find.ID=function(e,t){if(typeof t.getElementById!==A&&!d){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},i.filter.ID=function(e){var t=e.replace(et,tt);return function(e){return e.getAttribute("id")===t}}):(i.find.ID=function(e,n){if(typeof n.getElementById!==A&&!d){var r=n.getElementById(e);return r?r.id===e||typeof r.getAttributeNode!==A&&r.getAttributeNode("id").value===e?[r]:t:[]}},i.filter.ID=function(e){var t=e.replace(et,tt);return function(e){var n=typeof e.getAttributeNode!==A&&e.getAttributeNode("id");return n&&n.value===t}}),i.find.TAG=T.tagNameNoComments?function(e,n){return typeof n.getElementsByTagName!==A?n.getElementsByTagName(e):t}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},i.find.NAME=T.getByName&&function(e,n){return typeof n.getElementsByName!==A?n.getElementsByName(name):t},i.find.CLASS=T.getByClassName&&function(e,n){return typeof n.getElementsByClassName===A||d?t:n.getElementsByClassName(e)},g=[],h=[":focus"],(T.qsa=rt(n.querySelectorAll))&&(at(function(e){e.innerHTML="<select><option selected=''></option></select>",e.querySelectorAll("[selected]").length||h.push("\\["+_+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)"),e.querySelectorAll(":checked").length||h.push(":checked")}),at(function(e){e.innerHTML="<input type='hidden' i=''/>",e.querySelectorAll("[i^='']").length&&h.push("[*^$]="+_+"*(?:\"\"|'')"),e.querySelectorAll(":enabled").length||h.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),h.push(",.*:")})),(T.matchesSelector=rt(m=f.matchesSelector||f.mozMatchesSelector||f.webkitMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&at(function(e){T.disconnectedMatch=m.call(e,"div"),m.call(e,"[s!='']:x"),g.push("!=",R)}),h=RegExp(h.join("|")),g=RegExp(g.join("|")),y=rt(f.contains)||f.compareDocumentPosition?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},v=f.compareDocumentPosition?function(e,t){var r;return e===t?(u=!0,0):(r=t.compareDocumentPosition&&e.compareDocumentPosition&&e.compareDocumentPosition(t))?1&r||e.parentNode&&11===e.parentNode.nodeType?e===n||y(w,e)?-1:t===n||y(w,t)?1:0:4&r?-1:1:e.compareDocumentPosition?-1:1}:function(e,t){var r,i=0,o=e.parentNode,a=t.parentNode,s=[e],l=[t];if(e===t)return u=!0,0;if(!o||!a)return e===n?-1:t===n?1:o?-1:a?1:0;if(o===a)return ut(e,t);r=e;while(r=r.parentNode)s.unshift(r);r=t;while(r=r.parentNode)l.unshift(r);while(s[i]===l[i])i++;return i?ut(s[i],l[i]):s[i]===w?-1:l[i]===w?1:0},u=!1,[0,0].sort(v),T.detectDuplicates=u,p):p},st.matches=function(e,t){return st(e,null,null,t)},st.matchesSelector=function(e,t){if((e.ownerDocument||e)!==p&&c(e),t=t.replace(Z,"='$1']"),!(!T.matchesSelector||d||g&&g.test(t)||h.test(t)))try{var n=m.call(e,t);if(n||T.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(r){}return st(t,p,null,[e]).length>0},st.contains=function(e,t){return(e.ownerDocument||e)!==p&&c(e),y(e,t)},st.attr=function(e,t){var n;return(e.ownerDocument||e)!==p&&c(e),d||(t=t.toLowerCase()),(n=i.attrHandle[t])?n(e):d||T.attributes?e.getAttribute(t):((n=e.getAttributeNode(t))||e.getAttribute(t))&&e[t]===!0?t:n&&n.specified?n.value:null},st.error=function(e){throw Error("Syntax error, unrecognized expression: "+e)},st.uniqueSort=function(e){var t,n=[],r=1,i=0;if(u=!T.detectDuplicates,e.sort(v),u){for(;t=e[r];r++)t===e[r-1]&&(i=n.push(r));while(i--)e.splice(n[i],1)}return e};function ut(e,t){var n=t&&e,r=n&&(~t.sourceIndex||j)-(~e.sourceIndex||j);if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function lt(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function ct(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function pt(e){return ot(function(t){return t=+t,ot(function(n,r){var i,o=e([],n.length,t),a=o.length;while(a--)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}o=st.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r];r++)n+=o(t);return n},i=st.selectors={cacheLength:50,createPseudo:ot,match:U,find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(et,tt),e[3]=(e[4]||e[5]||"").replace(et,tt),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||st.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&st.error(e[0]),e},PSEUDO:function(e){var t,n=!e[5]&&e[2];return U.CHILD.test(e[0])?null:(e[4]?e[2]=e[4]:n&&z.test(n)&&(t=ft(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){return"*"===e?function(){return!0}:(e=e.replace(et,tt).toLowerCase(),function(t){return t.nodeName&&t.nodeName.toLowerCase()===e})},CLASS:function(e){var t=k[e+" "];return t||(t=RegExp("(^|"+_+")"+e+"("+_+"|$)"))&&k(e,function(e){return t.test(e.className||typeof e.getAttribute!==A&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=st.attr(r,e);return null==i?"!="===t:t?(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i+" ").indexOf(n)>-1:"|="===t?i===n||i.slice(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var l,c,p,f,d,h,g=o!==a?"nextSibling":"previousSibling",m=t.parentNode,y=s&&t.nodeName.toLowerCase(),v=!u&&!s;if(m){if(o){while(g){p=t;while(p=p[g])if(s?p.nodeName.toLowerCase()===y:1===p.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?m.firstChild:m.lastChild],a&&v){c=m[x]||(m[x]={}),l=c[e]||[],d=l[0]===N&&l[1],f=l[0]===N&&l[2],p=d&&m.childNodes[d];while(p=++d&&p&&p[g]||(f=d=0)||h.pop())if(1===p.nodeType&&++f&&p===t){c[e]=[N,d,f];break}}else if(v&&(l=(t[x]||(t[x]={}))[e])&&l[0]===N)f=l[1];else while(p=++d&&p&&p[g]||(f=d=0)||h.pop())if((s?p.nodeName.toLowerCase()===y:1===p.nodeType)&&++f&&(v&&((p[x]||(p[x]={}))[e]=[N,f]),p===t))break;return f-=i,f===r||0===f%r&&f/r>=0}}},PSEUDO:function(e,t){var n,r=i.pseudos[e]||i.setFilters[e.toLowerCase()]||st.error("unsupported pseudo: "+e);return r[x]?r(t):r.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?ot(function(e,n){var i,o=r(e,t),a=o.length;while(a--)i=M.call(e,o[a]),e[i]=!(n[i]=o[a])}):function(e){return r(e,0,n)}):r}},pseudos:{not:ot(function(e){var t=[],n=[],r=s(e.replace(W,"$1"));return r[x]?ot(function(e,t,n,i){var o,a=r(e,null,i,[]),s=e.length;while(s--)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),!n.pop()}}),has:ot(function(e){return function(t){return st(e,t).length>0}}),contains:ot(function(e){return function(t){return(t.textContent||t.innerText||o(t)).indexOf(e)>-1}}),lang:ot(function(e){return X.test(e||"")||st.error("unsupported lang: "+e),e=e.replace(et,tt).toLowerCase(),function(t){var n;do if(n=d?t.getAttribute("xml:lang")||t.getAttribute("lang"):t.lang)return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===f},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeName>"@"||3===e.nodeType||4===e.nodeType)return!1;return!0},parent:function(e){return!i.pseudos.empty(e)},header:function(e){return Q.test(e.nodeName)},input:function(e){return G.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||t.toLowerCase()===e.type)},first:pt(function(){return[0]}),last:pt(function(e,t){return[t-1]}),eq:pt(function(e,t,n){return[0>n?n+t:n]}),even:pt(function(e,t){var n=0;for(;t>n;n+=2)e.push(n);return e}),odd:pt(function(e,t){var n=1;for(;t>n;n+=2)e.push(n);return e}),lt:pt(function(e,t,n){var r=0>n?n+t:n;for(;--r>=0;)e.push(r);return e}),gt:pt(function(e,t,n){var r=0>n?n+t:n;for(;t>++r;)e.push(r);return e})}};for(n in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[n]=lt(n);for(n in{submit:!0,reset:!0})i.pseudos[n]=ct(n);function ft(e,t){var n,r,o,a,s,u,l,c=E[e+" "];if(c)return t?0:c.slice(0);s=e,u=[],l=i.preFilter;while(s){(!n||(r=$.exec(s)))&&(r&&(s=s.slice(r[0].length)||s),u.push(o=[])),n=!1,(r=I.exec(s))&&(n=r.shift(),o.push({value:n,type:r[0].replace(W," ")}),s=s.slice(n.length));for(a in i.filter)!(r=U[a].exec(s))||l[a]&&!(r=l[a](r))||(n=r.shift(),o.push({value:n,type:a,matches:r}),s=s.slice(n.length));if(!n)break}return t?s.length:s?st.error(e):E(e,u).slice(0)}function dt(e){var t=0,n=e.length,r="";for(;n>t;t++)r+=e[t].value;return r}function ht(e,t,n){var i=t.dir,o=n&&"parentNode"===i,a=C++;return t.first?function(t,n,r){while(t=t[i])if(1===t.nodeType||o)return e(t,n,r)}:function(t,n,s){var u,l,c,p=N+" "+a;if(s){while(t=t[i])if((1===t.nodeType||o)&&e(t,n,s))return!0}else while(t=t[i])if(1===t.nodeType||o)if(c=t[x]||(t[x]={}),(l=c[i])&&l[0]===p){if((u=l[1])===!0||u===r)return u===!0}else if(l=c[i]=[p],l[1]=e(t,n,s)||r,l[1]===!0)return!0}}function gt(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function mt(e,t,n,r,i){var o,a=[],s=0,u=e.length,l=null!=t;for(;u>s;s++)(o=e[s])&&(!n||n(o,r,i))&&(a.push(o),l&&t.push(s));return a}function yt(e,t,n,r,i,o){return r&&!r[x]&&(r=yt(r)),i&&!i[x]&&(i=yt(i,o)),ot(function(o,a,s,u){var l,c,p,f=[],d=[],h=a.length,g=o||xt(t||"*",s.nodeType?[s]:s,[]),m=!e||!o&&t?g:mt(g,f,e,s,u),y=n?i||(o?e:h||r)?[]:a:m;if(n&&n(m,y,s,u),r){l=mt(y,d),r(l,[],s,u),c=l.length;while(c--)(p=l[c])&&(y[d[c]]=!(m[d[c]]=p))}if(o){if(i||e){if(i){l=[],c=y.length;while(c--)(p=y[c])&&l.push(m[c]=p);i(null,y=[],l,u)}c=y.length;while(c--)(p=y[c])&&(l=i?M.call(o,p):f[c])>-1&&(o[l]=!(a[l]=p))}}else y=mt(y===a?y.splice(h,y.length):y),i?i(null,a,y,u):H.apply(a,y)})}function vt(e){var t,n,r,o=e.length,a=i.relative[e[0].type],s=a||i.relative[" "],u=a?1:0,c=ht(function(e){return e===t},s,!0),p=ht(function(e){return M.call(t,e)>-1},s,!0),f=[function(e,n,r){return!a&&(r||n!==l)||((t=n).nodeType?c(e,n,r):p(e,n,r))}];for(;o>u;u++)if(n=i.relative[e[u].type])f=[ht(gt(f),n)];else{if(n=i.filter[e[u].type].apply(null,e[u].matches),n[x]){for(r=++u;o>r;r++)if(i.relative[e[r].type])break;return yt(u>1&>(f),u>1&&dt(e.slice(0,u-1)).replace(W,"$1"),n,r>u&&vt(e.slice(u,r)),o>r&&vt(e=e.slice(r)),o>r&&dt(e))}f.push(n)}return gt(f)}function bt(e,t){var n=0,o=t.length>0,a=e.length>0,s=function(s,u,c,f,d){var h,g,m,y=[],v=0,b="0",x=s&&[],w=null!=d,T=l,C=s||a&&i.find.TAG("*",d&&u.parentNode||u),k=N+=null==T?1:Math.random()||.1;for(w&&(l=u!==p&&u,r=n);null!=(h=C[b]);b++){if(a&&h){g=0;while(m=e[g++])if(m(h,u,c)){f.push(h);break}w&&(N=k,r=++n)}o&&((h=!m&&h)&&v--,s&&x.push(h))}if(v+=b,o&&b!==v){g=0;while(m=t[g++])m(x,y,u,c);if(s){if(v>0)while(b--)x[b]||y[b]||(y[b]=L.call(f));y=mt(y)}H.apply(f,y),w&&!s&&y.length>0&&v+t.length>1&&st.uniqueSort(f)}return w&&(N=k,l=T),x};return o?ot(s):s}s=st.compile=function(e,t){var n,r=[],i=[],o=S[e+" "];if(!o){t||(t=ft(e)),n=t.length;while(n--)o=vt(t[n]),o[x]?r.push(o):i.push(o);o=S(e,bt(i,r))}return o};function xt(e,t,n){var r=0,i=t.length;for(;i>r;r++)st(e,t[r],n);return n}function wt(e,t,n,r){var o,a,u,l,c,p=ft(e);if(!r&&1===p.length){if(a=p[0]=p[0].slice(0),a.length>2&&"ID"===(u=a[0]).type&&9===t.nodeType&&!d&&i.relative[a[1].type]){if(t=i.find.ID(u.matches[0].replace(et,tt),t)[0],!t)return n;e=e.slice(a.shift().value.length)}o=U.needsContext.test(e)?0:a.length;while(o--){if(u=a[o],i.relative[l=u.type])break;if((c=i.find[l])&&(r=c(u.matches[0].replace(et,tt),V.test(a[0].type)&&t.parentNode||t))){if(a.splice(o,1),e=r.length&&dt(a),!e)return H.apply(n,q.call(r,0)),n;break}}}return s(e,p)(r,t,d,n,V.test(e)),n}i.pseudos.nth=i.pseudos.eq;function Tt(){}i.filters=Tt.prototype=i.pseudos,i.setFilters=new Tt,c(),st.attr=b.attr,b.find=st,b.expr=st.selectors,b.expr[":"]=b.expr.pseudos,b.unique=st.uniqueSort,b.text=st.getText,b.isXMLDoc=st.isXML,b.contains=st.contains}(e);var at=/Until$/,st=/^(?:parents|prev(?:Until|All))/,ut=/^.[^:#\[\.,]*$/,lt=b.expr.match.needsContext,ct={children:!0,contents:!0,next:!0,prev:!0};b.fn.extend({find:function(e){var t,n,r,i=this.length;if("string"!=typeof e)return r=this,this.pushStack(b(e).filter(function(){for(t=0;i>t;t++)if(b.contains(r[t],this))return!0}));for(n=[],t=0;i>t;t++)b.find(e,this[t],n);return n=this.pushStack(i>1?b.unique(n):n),n.selector=(this.selector?this.selector+" ":"")+e,n},has:function(e){var t,n=b(e,this),r=n.length;return this.filter(function(){for(t=0;r>t;t++)if(b.contains(this,n[t]))return!0})},not:function(e){return this.pushStack(ft(this,e,!1))},filter:function(e){return this.pushStack(ft(this,e,!0))},is:function(e){return!!e&&("string"==typeof e?lt.test(e)?b(e,this.context).index(this[0])>=0:b.filter(e,this).length>0:this.filter(e).length>0)},closest:function(e,t){var n,r=0,i=this.length,o=[],a=lt.test(e)||"string"!=typeof e?b(e,t||this.context):0;for(;i>r;r++){n=this[r];while(n&&n.ownerDocument&&n!==t&&11!==n.nodeType){if(a?a.index(n)>-1:b.find.matchesSelector(n,e)){o.push(n);break}n=n.parentNode}}return this.pushStack(o.length>1?b.unique(o):o)},index:function(e){return e?"string"==typeof e?b.inArray(this[0],b(e)):b.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){var n="string"==typeof e?b(e,t):b.makeArray(e&&e.nodeType?[e]:e),r=b.merge(this.get(),n);return this.pushStack(b.unique(r))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),b.fn.andSelf=b.fn.addBack;function pt(e,t){do e=e[t];while(e&&1!==e.nodeType);return e}b.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return b.dir(e,"parentNode")},parentsUntil:function(e,t,n){return b.dir(e,"parentNode",n)},next:function(e){return pt(e,"nextSibling")},prev:function(e){return pt(e,"previousSibling")},nextAll:function(e){return b.dir(e,"nextSibling")},prevAll:function(e){return b.dir(e,"previousSibling")},nextUntil:function(e,t,n){return b.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return b.dir(e,"previousSibling",n)},siblings:function(e){return b.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return b.sibling(e.firstChild)},contents:function(e){return b.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:b.merge([],e.childNodes)}},function(e,t){b.fn[e]=function(n,r){var i=b.map(this,t,n);return at.test(e)||(r=n),r&&"string"==typeof r&&(i=b.filter(r,i)),i=this.length>1&&!ct[e]?b.unique(i):i,this.length>1&&st.test(e)&&(i=i.reverse()),this.pushStack(i)}}),b.extend({filter:function(e,t,n){return n&&(e=":not("+e+")"),1===t.length?b.find.matchesSelector(t[0],e)?[t[0]]:[]:b.find.matches(e,t)},dir:function(e,n,r){var i=[],o=e[n];while(o&&9!==o.nodeType&&(r===t||1!==o.nodeType||!b(o).is(r)))1===o.nodeType&&i.push(o),o=o[n];return i},sibling:function(e,t){var n=[];for(;e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}});function ft(e,t,n){if(t=t||0,b.isFunction(t))return b.grep(e,function(e,r){var i=!!t.call(e,r,e);return i===n});if(t.nodeType)return b.grep(e,function(e){return e===t===n});if("string"==typeof t){var r=b.grep(e,function(e){return 1===e.nodeType});if(ut.test(t))return b.filter(t,r,!n);t=b.filter(t,r)}return b.grep(e,function(e){return b.inArray(e,t)>=0===n})}function dt(e){var t=ht.split("|"),n=e.createDocumentFragment();if(n.createElement)while(t.length)n.createElement(t.pop());return n}var ht="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",gt=/ jQuery\d+="(?:null|\d+)"/g,mt=RegExp("<(?:"+ht+")[\\s/>]","i"),yt=/^\s+/,vt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,bt=/<([\w:]+)/,xt=/<tbody/i,wt=/<|&#?\w+;/,Tt=/<(?:script|style|link)/i,Nt=/^(?:checkbox|radio)$/i,Ct=/checked\s*(?:[^=]|=\s*.checked.)/i,kt=/^$|\/(?:java|ecma)script/i,Et=/^true\/(.*)/,St=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,At={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:b.support.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},jt=dt(o),Dt=jt.appendChild(o.createElement("div"));At.optgroup=At.option,At.tbody=At.tfoot=At.colgroup=At.caption=At.thead,At.th=At.td,b.fn.extend({text:function(e){return b.access(this,function(e){return e===t?b.text(this):this.empty().append((this[0]&&this[0].ownerDocument||o).createTextNode(e))},null,e,arguments.length)},wrapAll:function(e){if(b.isFunction(e))return this.each(function(t){b(this).wrapAll(e.call(this,t))});if(this[0]){var t=b(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstChild&&1===e.firstChild.nodeType)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return b.isFunction(e)?this.each(function(t){b(this).wrapInner(e.call(this,t))}):this.each(function(){var t=b(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=b.isFunction(e);return this.each(function(n){b(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){b.nodeName(this,"body")||b(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(e){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&this.appendChild(e)})},prepend:function(){return this.domManip(arguments,!0,function(e){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&this.insertBefore(e,this.firstChild)})},before:function(){return this.domManip(arguments,!1,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,!1,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){var n,r=0;for(;null!=(n=this[r]);r++)(!e||b.filter(e,[n]).length>0)&&(t||1!==n.nodeType||b.cleanData(Ot(n)),n.parentNode&&(t&&b.contains(n.ownerDocument,n)&&Mt(Ot(n,"script")),n.parentNode.removeChild(n)));return this},empty:function(){var e,t=0;for(;null!=(e=this[t]);t++){1===e.nodeType&&b.cleanData(Ot(e,!1));while(e.firstChild)e.removeChild(e.firstChild);e.options&&b.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return b.clone(this,e,t)})},html:function(e){return b.access(this,function(e){var n=this[0]||{},r=0,i=this.length;if(e===t)return 1===n.nodeType?n.innerHTML.replace(gt,""):t;if(!("string"!=typeof e||Tt.test(e)||!b.support.htmlSerialize&&mt.test(e)||!b.support.leadingWhitespace&&yt.test(e)||At[(bt.exec(e)||["",""])[1].toLowerCase()])){e=e.replace(vt,"<$1></$2>");try{for(;i>r;r++)n=this[r]||{},1===n.nodeType&&(b.cleanData(Ot(n,!1)),n.innerHTML=e);n=0}catch(o){}}n&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(e){var t=b.isFunction(e);return t||"string"==typeof e||(e=b(e).not(this).detach()),this.domManip([e],!0,function(e){var t=this.nextSibling,n=this.parentNode;n&&(b(this).remove(),n.insertBefore(e,t))})},detach:function(e){return this.remove(e,!0)},domManip:function(e,n,r){e=f.apply([],e);var i,o,a,s,u,l,c=0,p=this.length,d=this,h=p-1,g=e[0],m=b.isFunction(g);if(m||!(1>=p||"string"!=typeof g||b.support.checkClone)&&Ct.test(g))return this.each(function(i){var o=d.eq(i);m&&(e[0]=g.call(this,i,n?o.html():t)),o.domManip(e,n,r)});if(p&&(l=b.buildFragment(e,this[0].ownerDocument,!1,this),i=l.firstChild,1===l.childNodes.length&&(l=i),i)){for(n=n&&b.nodeName(i,"tr"),s=b.map(Ot(l,"script"),Ht),a=s.length;p>c;c++)o=l,c!==h&&(o=b.clone(o,!0,!0),a&&b.merge(s,Ot(o,"script"))),r.call(n&&b.nodeName(this[c],"table")?Lt(this[c],"tbody"):this[c],o,c);if(a)for(u=s[s.length-1].ownerDocument,b.map(s,qt),c=0;a>c;c++)o=s[c],kt.test(o.type||"")&&!b._data(o,"globalEval")&&b.contains(u,o)&&(o.src?b.ajax({url:o.src,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0}):b.globalEval((o.text||o.textContent||o.innerHTML||"").replace(St,"")));l=i=null}return this}});function Lt(e,t){return e.getElementsByTagName(t)[0]||e.appendChild(e.ownerDocument.createElement(t))}function Ht(e){var t=e.getAttributeNode("type");return e.type=(t&&t.specified)+"/"+e.type,e}function qt(e){var t=Et.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function Mt(e,t){var n,r=0;for(;null!=(n=e[r]);r++)b._data(n,"globalEval",!t||b._data(t[r],"globalEval"))}function _t(e,t){if(1===t.nodeType&&b.hasData(e)){var n,r,i,o=b._data(e),a=b._data(t,o),s=o.events;if(s){delete a.handle,a.events={};for(n in s)for(r=0,i=s[n].length;i>r;r++)b.event.add(t,n,s[n][r])}a.data&&(a.data=b.extend({},a.data))}}function Ft(e,t){var n,r,i;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!b.support.noCloneEvent&&t[b.expando]){i=b._data(t);for(r in i.events)b.removeEvent(t,r,i.handle);t.removeAttribute(b.expando)}"script"===n&&t.text!==e.text?(Ht(t).text=e.text,qt(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),b.support.html5Clone&&e.innerHTML&&!b.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&Nt.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}}b.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){b.fn[e]=function(e){var n,r=0,i=[],o=b(e),a=o.length-1;for(;a>=r;r++)n=r===a?this:this.clone(!0),b(o[r])[t](n),d.apply(i,n.get());return this.pushStack(i)}});function Ot(e,n){var r,o,a=0,s=typeof e.getElementsByTagName!==i?e.getElementsByTagName(n||"*"):typeof e.querySelectorAll!==i?e.querySelectorAll(n||"*"):t;if(!s)for(s=[],r=e.childNodes||e;null!=(o=r[a]);a++)!n||b.nodeName(o,n)?s.push(o):b.merge(s,Ot(o,n));return n===t||n&&b.nodeName(e,n)?b.merge([e],s):s}function Bt(e){Nt.test(e.type)&&(e.defaultChecked=e.checked)}b.extend({clone:function(e,t,n){var r,i,o,a,s,u=b.contains(e.ownerDocument,e);if(b.support.html5Clone||b.isXMLDoc(e)||!mt.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(Dt.innerHTML=e.outerHTML,Dt.removeChild(o=Dt.firstChild)),!(b.support.noCloneEvent&&b.support.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||b.isXMLDoc(e)))for(r=Ot(o),s=Ot(e),a=0;null!=(i=s[a]);++a)r[a]&&Ft(i,r[a]);if(t)if(n)for(s=s||Ot(e),r=r||Ot(o),a=0;null!=(i=s[a]);a++)_t(i,r[a]);else _t(e,o);return r=Ot(o,"script"),r.length>0&&Mt(r,!u&&Ot(e,"script")),r=s=i=null,o},buildFragment:function(e,t,n,r){var i,o,a,s,u,l,c,p=e.length,f=dt(t),d=[],h=0;for(;p>h;h++)if(o=e[h],o||0===o)if("object"===b.type(o))b.merge(d,o.nodeType?[o]:o);else if(wt.test(o)){s=s||f.appendChild(t.createElement("div")),u=(bt.exec(o)||["",""])[1].toLowerCase(),c=At[u]||At._default,s.innerHTML=c[1]+o.replace(vt,"<$1></$2>")+c[2],i=c[0];while(i--)s=s.lastChild;if(!b.support.leadingWhitespace&&yt.test(o)&&d.push(t.createTextNode(yt.exec(o)[0])),!b.support.tbody){o="table"!==u||xt.test(o)?"<table>"!==c[1]||xt.test(o)?0:s:s.firstChild,i=o&&o.childNodes.length;while(i--)b.nodeName(l=o.childNodes[i],"tbody")&&!l.childNodes.length&&o.removeChild(l) 35}b.merge(d,s.childNodes),s.textContent="";while(s.firstChild)s.removeChild(s.firstChild);s=f.lastChild}else d.push(t.createTextNode(o));s&&f.removeChild(s),b.support.appendChecked||b.grep(Ot(d,"input"),Bt),h=0;while(o=d[h++])if((!r||-1===b.inArray(o,r))&&(a=b.contains(o.ownerDocument,o),s=Ot(f.appendChild(o),"script"),a&&Mt(s),n)){i=0;while(o=s[i++])kt.test(o.type||"")&&n.push(o)}return s=null,f},cleanData:function(e,t){var n,r,o,a,s=0,u=b.expando,l=b.cache,p=b.support.deleteExpando,f=b.event.special;for(;null!=(n=e[s]);s++)if((t||b.acceptData(n))&&(o=n[u],a=o&&l[o])){if(a.events)for(r in a.events)f[r]?b.event.remove(n,r):b.removeEvent(n,r,a.handle);l[o]&&(delete l[o],p?delete n[u]:typeof n.removeAttribute!==i?n.removeAttribute(u):n[u]=null,c.push(o))}}});var Pt,Rt,Wt,$t=/alpha\([^)]*\)/i,It=/opacity\s*=\s*([^)]*)/,zt=/^(top|right|bottom|left)$/,Xt=/^(none|table(?!-c[ea]).+)/,Ut=/^margin/,Vt=RegExp("^("+x+")(.*)$","i"),Yt=RegExp("^("+x+")(?!px)[a-z%]+$","i"),Jt=RegExp("^([+-])=("+x+")","i"),Gt={BODY:"block"},Qt={position:"absolute",visibility:"hidden",display:"block"},Kt={letterSpacing:0,fontWeight:400},Zt=["Top","Right","Bottom","Left"],en=["Webkit","O","Moz","ms"];function tn(e,t){if(t in e)return t;var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=en.length;while(i--)if(t=en[i]+n,t in e)return t;return r}function nn(e,t){return e=t||e,"none"===b.css(e,"display")||!b.contains(e.ownerDocument,e)}function rn(e,t){var n,r,i,o=[],a=0,s=e.length;for(;s>a;a++)r=e[a],r.style&&(o[a]=b._data(r,"olddisplay"),n=r.style.display,t?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&nn(r)&&(o[a]=b._data(r,"olddisplay",un(r.nodeName)))):o[a]||(i=nn(r),(n&&"none"!==n||!i)&&b._data(r,"olddisplay",i?n:b.css(r,"display"))));for(a=0;s>a;a++)r=e[a],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[a]||"":"none"));return e}b.fn.extend({css:function(e,n){return b.access(this,function(e,n,r){var i,o,a={},s=0;if(b.isArray(n)){for(o=Rt(e),i=n.length;i>s;s++)a[n[s]]=b.css(e,n[s],!1,o);return a}return r!==t?b.style(e,n,r):b.css(e,n)},e,n,arguments.length>1)},show:function(){return rn(this,!0)},hide:function(){return rn(this)},toggle:function(e){var t="boolean"==typeof e;return this.each(function(){(t?e:nn(this))?b(this).show():b(this).hide()})}}),b.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Wt(e,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":b.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,n,r,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,a,s,u=b.camelCase(n),l=e.style;if(n=b.cssProps[u]||(b.cssProps[u]=tn(l,u)),s=b.cssHooks[n]||b.cssHooks[u],r===t)return s&&"get"in s&&(o=s.get(e,!1,i))!==t?o:l[n];if(a=typeof r,"string"===a&&(o=Jt.exec(r))&&(r=(o[1]+1)*o[2]+parseFloat(b.css(e,n)),a="number"),!(null==r||"number"===a&&isNaN(r)||("number"!==a||b.cssNumber[u]||(r+="px"),b.support.clearCloneStyle||""!==r||0!==n.indexOf("background")||(l[n]="inherit"),s&&"set"in s&&(r=s.set(e,r,i))===t)))try{l[n]=r}catch(c){}}},css:function(e,n,r,i){var o,a,s,u=b.camelCase(n);return n=b.cssProps[u]||(b.cssProps[u]=tn(e.style,u)),s=b.cssHooks[n]||b.cssHooks[u],s&&"get"in s&&(a=s.get(e,!0,r)),a===t&&(a=Wt(e,n,i)),"normal"===a&&n in Kt&&(a=Kt[n]),""===r||r?(o=parseFloat(a),r===!0||b.isNumeric(o)?o||0:a):a},swap:function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=a[o];return i}}),e.getComputedStyle?(Rt=function(t){return e.getComputedStyle(t,null)},Wt=function(e,n,r){var i,o,a,s=r||Rt(e),u=s?s.getPropertyValue(n)||s[n]:t,l=e.style;return s&&(""!==u||b.contains(e.ownerDocument,e)||(u=b.style(e,n)),Yt.test(u)&&Ut.test(n)&&(i=l.width,o=l.minWidth,a=l.maxWidth,l.minWidth=l.maxWidth=l.width=u,u=s.width,l.width=i,l.minWidth=o,l.maxWidth=a)),u}):o.documentElement.currentStyle&&(Rt=function(e){return e.currentStyle},Wt=function(e,n,r){var i,o,a,s=r||Rt(e),u=s?s[n]:t,l=e.style;return null==u&&l&&l[n]&&(u=l[n]),Yt.test(u)&&!zt.test(n)&&(i=l.left,o=e.runtimeStyle,a=o&&o.left,a&&(o.left=e.currentStyle.left),l.left="fontSize"===n?"1em":u,u=l.pixelLeft+"px",l.left=i,a&&(o.left=a)),""===u?"auto":u});function on(e,t,n){var r=Vt.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function an(e,t,n,r,i){var o=n===(r?"border":"content")?4:"width"===t?1:0,a=0;for(;4>o;o+=2)"margin"===n&&(a+=b.css(e,n+Zt[o],!0,i)),r?("content"===n&&(a-=b.css(e,"padding"+Zt[o],!0,i)),"margin"!==n&&(a-=b.css(e,"border"+Zt[o]+"Width",!0,i))):(a+=b.css(e,"padding"+Zt[o],!0,i),"padding"!==n&&(a+=b.css(e,"border"+Zt[o]+"Width",!0,i)));return a}function sn(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=Rt(e),a=b.support.boxSizing&&"border-box"===b.css(e,"boxSizing",!1,o);if(0>=i||null==i){if(i=Wt(e,t,o),(0>i||null==i)&&(i=e.style[t]),Yt.test(i))return i;r=a&&(b.support.boxSizingReliable||i===e.style[t]),i=parseFloat(i)||0}return i+an(e,t,n||(a?"border":"content"),r,o)+"px"}function un(e){var t=o,n=Gt[e];return n||(n=ln(e,t),"none"!==n&&n||(Pt=(Pt||b("<iframe frameborder='0' width='0' height='0'/>").css("cssText","display:block !important")).appendTo(t.documentElement),t=(Pt[0].contentWindow||Pt[0].contentDocument).document,t.write("<!doctype html><html><body>"),t.close(),n=ln(e,t),Pt.detach()),Gt[e]=n),n}function ln(e,t){var n=b(t.createElement(e)).appendTo(t.body),r=b.css(n[0],"display");return n.remove(),r}b.each(["height","width"],function(e,n){b.cssHooks[n]={get:function(e,r,i){return r?0===e.offsetWidth&&Xt.test(b.css(e,"display"))?b.swap(e,Qt,function(){return sn(e,n,i)}):sn(e,n,i):t},set:function(e,t,r){var i=r&&Rt(e);return on(e,t,r?an(e,n,r,b.support.boxSizing&&"border-box"===b.css(e,"boxSizing",!1,i),i):0)}}}),b.support.opacity||(b.cssHooks.opacity={get:function(e,t){return It.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,i=b.isNumeric(t)?"alpha(opacity="+100*t+")":"",o=r&&r.filter||n.filter||"";n.zoom=1,(t>=1||""===t)&&""===b.trim(o.replace($t,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||r&&!r.filter)||(n.filter=$t.test(o)?o.replace($t,i):o+" "+i)}}),b(function(){b.support.reliableMarginRight||(b.cssHooks.marginRight={get:function(e,n){return n?b.swap(e,{display:"inline-block"},Wt,[e,"marginRight"]):t}}),!b.support.pixelPosition&&b.fn.position&&b.each(["top","left"],function(e,n){b.cssHooks[n]={get:function(e,r){return r?(r=Wt(e,n),Yt.test(r)?b(e).position()[n]+"px":r):t}}})}),b.expr&&b.expr.filters&&(b.expr.filters.hidden=function(e){return 0>=e.offsetWidth&&0>=e.offsetHeight||!b.support.reliableHiddenOffsets&&"none"===(e.style&&e.style.display||b.css(e,"display"))},b.expr.filters.visible=function(e){return!b.expr.filters.hidden(e)}),b.each({margin:"",padding:"",border:"Width"},function(e,t){b.cssHooks[e+t]={expand:function(n){var r=0,i={},o="string"==typeof n?n.split(" "):[n];for(;4>r;r++)i[e+Zt[r]+t]=o[r]||o[r-2]||o[0];return i}},Ut.test(e)||(b.cssHooks[e+t].set=on)});var cn=/%20/g,pn=/\[\]$/,fn=/\r?\n/g,dn=/^(?:submit|button|image|reset|file)$/i,hn=/^(?:input|select|textarea|keygen)/i;b.fn.extend({serialize:function(){return b.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=b.prop(this,"elements");return e?b.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!b(this).is(":disabled")&&hn.test(this.nodeName)&&!dn.test(e)&&(this.checked||!Nt.test(e))}).map(function(e,t){var n=b(this).val();return null==n?null:b.isArray(n)?b.map(n,function(e){return{name:t.name,value:e.replace(fn,"\r\n")}}):{name:t.name,value:n.replace(fn,"\r\n")}}).get()}}),b.param=function(e,n){var r,i=[],o=function(e,t){t=b.isFunction(t)?t():null==t?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(n===t&&(n=b.ajaxSettings&&b.ajaxSettings.traditional),b.isArray(e)||e.jquery&&!b.isPlainObject(e))b.each(e,function(){o(this.name,this.value)});else for(r in e)gn(r,e[r],n,o);return i.join("&").replace(cn,"+")};function gn(e,t,n,r){var i;if(b.isArray(t))b.each(t,function(t,i){n||pn.test(e)?r(e,i):gn(e+"["+("object"==typeof i?t:"")+"]",i,n,r)});else if(n||"object"!==b.type(t))r(e,t);else for(i in t)gn(e+"["+i+"]",t[i],n,r)}b.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){b.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),b.fn.hover=function(e,t){return this.mouseenter(e).mouseleave(t||e)};var mn,yn,vn=b.now(),bn=/\?/,xn=/#.*$/,wn=/([?&])_=[^&]*/,Tn=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Nn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Cn=/^(?:GET|HEAD)$/,kn=/^\/\//,En=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,Sn=b.fn.load,An={},jn={},Dn="*/".concat("*");try{yn=a.href}catch(Ln){yn=o.createElement("a"),yn.href="",yn=yn.href}mn=En.exec(yn.toLowerCase())||[];function Hn(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(w)||[];if(b.isFunction(n))while(r=o[i++])"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function qn(e,n,r,i){var o={},a=e===jn;function s(u){var l;return o[u]=!0,b.each(e[u]||[],function(e,u){var c=u(n,r,i);return"string"!=typeof c||a||o[c]?a?!(l=c):t:(n.dataTypes.unshift(c),s(c),!1)}),l}return s(n.dataTypes[0])||!o["*"]&&s("*")}function Mn(e,n){var r,i,o=b.ajaxSettings.flatOptions||{};for(i in n)n[i]!==t&&((o[i]?e:r||(r={}))[i]=n[i]);return r&&b.extend(!0,e,r),e}b.fn.load=function(e,n,r){if("string"!=typeof e&&Sn)return Sn.apply(this,arguments);var i,o,a,s=this,u=e.indexOf(" ");return u>=0&&(i=e.slice(u,e.length),e=e.slice(0,u)),b.isFunction(n)?(r=n,n=t):n&&"object"==typeof n&&(a="POST"),s.length>0&&b.ajax({url:e,type:a,dataType:"html",data:n}).done(function(e){o=arguments,s.html(i?b("<div>").append(b.parseHTML(e)).find(i):e)}).complete(r&&function(e,t){s.each(r,o||[e.responseText,t,e])}),this},b.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){b.fn[t]=function(e){return this.on(t,e)}}),b.each(["get","post"],function(e,n){b[n]=function(e,r,i,o){return b.isFunction(r)&&(o=o||i,i=r,r=t),b.ajax({url:e,type:n,dataType:o,data:r,success:i})}}),b.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:yn,type:"GET",isLocal:Nn.test(mn[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Dn,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":e.String,"text html":!0,"text json":b.parseJSON,"text xml":b.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Mn(Mn(e,b.ajaxSettings),t):Mn(b.ajaxSettings,e)},ajaxPrefilter:Hn(An),ajaxTransport:Hn(jn),ajax:function(e,n){"object"==typeof e&&(n=e,e=t),n=n||{};var r,i,o,a,s,u,l,c,p=b.ajaxSetup({},n),f=p.context||p,d=p.context&&(f.nodeType||f.jquery)?b(f):b.event,h=b.Deferred(),g=b.Callbacks("once memory"),m=p.statusCode||{},y={},v={},x=0,T="canceled",N={readyState:0,getResponseHeader:function(e){var t;if(2===x){if(!c){c={};while(t=Tn.exec(a))c[t[1].toLowerCase()]=t[2]}t=c[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===x?a:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return x||(e=v[n]=v[n]||e,y[e]=t),this},overrideMimeType:function(e){return x||(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>x)for(t in e)m[t]=[m[t],e[t]];else N.always(e[N.status]);return this},abort:function(e){var t=e||T;return l&&l.abort(t),k(0,t),this}};if(h.promise(N).complete=g.add,N.success=N.done,N.error=N.fail,p.url=((e||p.url||yn)+"").replace(xn,"").replace(kn,mn[1]+"//"),p.type=n.method||n.type||p.method||p.type,p.dataTypes=b.trim(p.dataType||"*").toLowerCase().match(w)||[""],null==p.crossDomain&&(r=En.exec(p.url.toLowerCase()),p.crossDomain=!(!r||r[1]===mn[1]&&r[2]===mn[2]&&(r[3]||("http:"===r[1]?80:443))==(mn[3]||("http:"===mn[1]?80:443)))),p.data&&p.processData&&"string"!=typeof p.data&&(p.data=b.param(p.data,p.traditional)),qn(An,p,n,N),2===x)return N;u=p.global,u&&0===b.active++&&b.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Cn.test(p.type),o=p.url,p.hasContent||(p.data&&(o=p.url+=(bn.test(o)?"&":"?")+p.data,delete p.data),p.cache===!1&&(p.url=wn.test(o)?o.replace(wn,"$1_="+vn++):o+(bn.test(o)?"&":"?")+"_="+vn++)),p.ifModified&&(b.lastModified[o]&&N.setRequestHeader("If-Modified-Since",b.lastModified[o]),b.etag[o]&&N.setRequestHeader("If-None-Match",b.etag[o])),(p.data&&p.hasContent&&p.contentType!==!1||n.contentType)&&N.setRequestHeader("Content-Type",p.contentType),N.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Dn+"; q=0.01":""):p.accepts["*"]);for(i in p.headers)N.setRequestHeader(i,p.headers[i]);if(p.beforeSend&&(p.beforeSend.call(f,N,p)===!1||2===x))return N.abort();T="abort";for(i in{success:1,error:1,complete:1})N[i](p[i]);if(l=qn(jn,p,n,N)){N.readyState=1,u&&d.trigger("ajaxSend",[N,p]),p.async&&p.timeout>0&&(s=setTimeout(function(){N.abort("timeout")},p.timeout));try{x=1,l.send(y,k)}catch(C){if(!(2>x))throw C;k(-1,C)}}else k(-1,"No Transport");function k(e,n,r,i){var c,y,v,w,T,C=n;2!==x&&(x=2,s&&clearTimeout(s),l=t,a=i||"",N.readyState=e>0?4:0,r&&(w=_n(p,N,r)),e>=200&&300>e||304===e?(p.ifModified&&(T=N.getResponseHeader("Last-Modified"),T&&(b.lastModified[o]=T),T=N.getResponseHeader("etag"),T&&(b.etag[o]=T)),204===e?(c=!0,C="nocontent"):304===e?(c=!0,C="notmodified"):(c=Fn(p,w),C=c.state,y=c.data,v=c.error,c=!v)):(v=C,(e||!C)&&(C="error",0>e&&(e=0))),N.status=e,N.statusText=(n||C)+"",c?h.resolveWith(f,[y,C,N]):h.rejectWith(f,[N,C,v]),N.statusCode(m),m=t,u&&d.trigger(c?"ajaxSuccess":"ajaxError",[N,p,c?y:v]),g.fireWith(f,[N,C]),u&&(d.trigger("ajaxComplete",[N,p]),--b.active||b.event.trigger("ajaxStop")))}return N},getScript:function(e,n){return b.get(e,t,n,"script")},getJSON:function(e,t,n){return b.get(e,t,n,"json")}});function _n(e,n,r){var i,o,a,s,u=e.contents,l=e.dataTypes,c=e.responseFields;for(s in c)s in r&&(n[c[s]]=r[s]);while("*"===l[0])l.shift(),o===t&&(o=e.mimeType||n.getResponseHeader("Content-Type"));if(o)for(s in u)if(u[s]&&u[s].test(o)){l.unshift(s);break}if(l[0]in r)a=l[0];else{for(s in r){if(!l[0]||e.converters[s+" "+l[0]]){a=s;break}i||(i=s)}a=a||i}return a?(a!==l[0]&&l.unshift(a),r[a]):t}function Fn(e,t){var n,r,i,o,a={},s=0,u=e.dataTypes.slice(),l=u[0];if(e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u[1])for(i in e.converters)a[i.toLowerCase()]=e.converters[i];for(;r=u[++s];)if("*"!==r){if("*"!==l&&l!==r){if(i=a[l+" "+r]||a["* "+r],!i)for(n in a)if(o=n.split(" "),o[1]===r&&(i=a[l+" "+o[0]]||a["* "+o[0]])){i===!0?i=a[n]:a[n]!==!0&&(r=o[0],u.splice(s--,0,r));break}if(i!==!0)if(i&&e["throws"])t=i(t);else try{t=i(t)}catch(c){return{state:"parsererror",error:i?c:"No conversion from "+l+" to "+r}}}l=r}return{state:"success",data:t}}b.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return b.globalEval(e),e}}}),b.ajaxPrefilter("script",function(e){e.cache===t&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),b.ajaxTransport("script",function(e){if(e.crossDomain){var n,r=o.head||b("head")[0]||o.documentElement;return{send:function(t,i){n=o.createElement("script"),n.async=!0,e.scriptCharset&&(n.charset=e.scriptCharset),n.src=e.url,n.onload=n.onreadystatechange=function(e,t){(t||!n.readyState||/loaded|complete/.test(n.readyState))&&(n.onload=n.onreadystatechange=null,n.parentNode&&n.parentNode.removeChild(n),n=null,t||i(200,"success"))},r.insertBefore(n,r.firstChild)},abort:function(){n&&n.onload(t,!0)}}}});var On=[],Bn=/(=)\?(?=&|$)|\?\?/;b.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=On.pop()||b.expando+"_"+vn++;return this[e]=!0,e}}),b.ajaxPrefilter("json jsonp",function(n,r,i){var o,a,s,u=n.jsonp!==!1&&(Bn.test(n.url)?"url":"string"==typeof n.data&&!(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&Bn.test(n.data)&&"data");return u||"jsonp"===n.dataTypes[0]?(o=n.jsonpCallback=b.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,u?n[u]=n[u].replace(Bn,"$1"+o):n.jsonp!==!1&&(n.url+=(bn.test(n.url)?"&":"?")+n.jsonp+"="+o),n.converters["script json"]=function(){return s||b.error(o+" was not called"),s[0]},n.dataTypes[0]="json",a=e[o],e[o]=function(){s=arguments},i.always(function(){e[o]=a,n[o]&&(n.jsonpCallback=r.jsonpCallback,On.push(o)),s&&b.isFunction(a)&&a(s[0]),s=a=t}),"script"):t});var Pn,Rn,Wn=0,$n=e.ActiveXObject&&function(){var e;for(e in Pn)Pn[e](t,!0)};function In(){try{return new e.XMLHttpRequest}catch(t){}}function zn(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}b.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&In()||zn()}:In,Rn=b.ajaxSettings.xhr(),b.support.cors=!!Rn&&"withCredentials"in Rn,Rn=b.support.ajax=!!Rn,Rn&&b.ajaxTransport(function(n){if(!n.crossDomain||b.support.cors){var r;return{send:function(i,o){var a,s,u=n.xhr();if(n.username?u.open(n.type,n.url,n.async,n.username,n.password):u.open(n.type,n.url,n.async),n.xhrFields)for(s in n.xhrFields)u[s]=n.xhrFields[s];n.mimeType&&u.overrideMimeType&&u.overrideMimeType(n.mimeType),n.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");try{for(s in i)u.setRequestHeader(s,i[s])}catch(l){}u.send(n.hasContent&&n.data||null),r=function(e,i){var s,l,c,p;try{if(r&&(i||4===u.readyState))if(r=t,a&&(u.onreadystatechange=b.noop,$n&&delete Pn[a]),i)4!==u.readyState&&u.abort();else{p={},s=u.status,l=u.getAllResponseHeaders(),"string"==typeof u.responseText&&(p.text=u.responseText);try{c=u.statusText}catch(f){c=""}s||!n.isLocal||n.crossDomain?1223===s&&(s=204):s=p.text?200:404}}catch(d){i||o(-1,d)}p&&o(s,c,p,l)},n.async?4===u.readyState?setTimeout(r):(a=++Wn,$n&&(Pn||(Pn={},b(e).unload($n)),Pn[a]=r),u.onreadystatechange=r):r()},abort:function(){r&&r(t,!0)}}}});var Xn,Un,Vn=/^(?:toggle|show|hide)$/,Yn=RegExp("^(?:([+-])=|)("+x+")([a-z%]*)$","i"),Jn=/queueHooks$/,Gn=[nr],Qn={"*":[function(e,t){var n,r,i=this.createTween(e,t),o=Yn.exec(t),a=i.cur(),s=+a||0,u=1,l=20;if(o){if(n=+o[2],r=o[3]||(b.cssNumber[e]?"":"px"),"px"!==r&&s){s=b.css(i.elem,e,!0)||n||1;do u=u||".5",s/=u,b.style(i.elem,e,s+r);while(u!==(u=i.cur()/a)&&1!==u&&--l)}i.unit=r,i.start=s,i.end=o[1]?s+(o[1]+1)*n:n}return i}]};function Kn(){return setTimeout(function(){Xn=t}),Xn=b.now()}function Zn(e,t){b.each(t,function(t,n){var r=(Qn[t]||[]).concat(Qn["*"]),i=0,o=r.length;for(;o>i;i++)if(r[i].call(e,t,n))return})}function er(e,t,n){var r,i,o=0,a=Gn.length,s=b.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;var t=Xn||Kn(),n=Math.max(0,l.startTime+l.duration-t),r=n/l.duration||0,o=1-r,a=0,u=l.tweens.length;for(;u>a;a++)l.tweens[a].run(o);return s.notifyWith(e,[l,o,n]),1>o&&u?n:(s.resolveWith(e,[l]),!1)},l=s.promise({elem:e,props:b.extend({},t),opts:b.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:Xn||Kn(),duration:n.duration,tweens:[],createTween:function(t,n){var r=b.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(i)return this;for(i=!0;r>n;n++)l.tweens[n].run(1);return t?s.resolveWith(e,[l,t]):s.rejectWith(e,[l,t]),this}}),c=l.props;for(tr(c,l.opts.specialEasing);a>o;o++)if(r=Gn[o].call(l,e,c,l.opts))return r;return Zn(l,c),b.isFunction(l.opts.start)&&l.opts.start.call(e,l),b.fx.timer(b.extend(u,{elem:e,anim:l,queue:l.opts.queue})),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always)}function tr(e,t){var n,r,i,o,a;for(i in e)if(r=b.camelCase(i),o=t[r],n=e[i],b.isArray(n)&&(o=n[1],n=e[i]=n[0]),i!==r&&(e[r]=n,delete e[i]),a=b.cssHooks[r],a&&"expand"in a){n=a.expand(n),delete e[r];for(i in n)i in e||(e[i]=n[i],t[i]=o)}else t[r]=o}b.Animation=b.extend(er,{tweener:function(e,t){b.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");var n,r=0,i=e.length;for(;i>r;r++)n=e[r],Qn[n]=Qn[n]||[],Qn[n].unshift(t)},prefilter:function(e,t){t?Gn.unshift(e):Gn.push(e)}});function nr(e,t,n){var r,i,o,a,s,u,l,c,p,f=this,d=e.style,h={},g=[],m=e.nodeType&&nn(e);n.queue||(c=b._queueHooks(e,"fx"),null==c.unqueued&&(c.unqueued=0,p=c.empty.fire,c.empty.fire=function(){c.unqueued||p()}),c.unqueued++,f.always(function(){f.always(function(){c.unqueued--,b.queue(e,"fx").length||c.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[d.overflow,d.overflowX,d.overflowY],"inline"===b.css(e,"display")&&"none"===b.css(e,"float")&&(b.support.inlineBlockNeedsLayout&&"inline"!==un(e.nodeName)?d.zoom=1:d.display="inline-block")),n.overflow&&(d.overflow="hidden",b.support.shrinkWrapBlocks||f.always(function(){d.overflow=n.overflow[0],d.overflowX=n.overflow[1],d.overflowY=n.overflow[2]}));for(i in t)if(a=t[i],Vn.exec(a)){if(delete t[i],u=u||"toggle"===a,a===(m?"hide":"show"))continue;g.push(i)}if(o=g.length){s=b._data(e,"fxshow")||b._data(e,"fxshow",{}),"hidden"in s&&(m=s.hidden),u&&(s.hidden=!m),m?b(e).show():f.done(function(){b(e).hide()}),f.done(function(){var t;b._removeData(e,"fxshow");for(t in h)b.style(e,t,h[t])});for(i=0;o>i;i++)r=g[i],l=f.createTween(r,m?s[r]:0),h[r]=s[r]||b.style(e,r),r in s||(s[r]=l.start,m&&(l.end=l.start,l.start="width"===r||"height"===r?1:0))}}function rr(e,t,n,r,i){return new rr.prototype.init(e,t,n,r,i)}b.Tween=rr,rr.prototype={constructor:rr,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(b.cssNumber[n]?"":"px")},cur:function(){var e=rr.propHooks[this.prop];return e&&e.get?e.get(this):rr.propHooks._default.get(this)},run:function(e){var t,n=rr.propHooks[this.prop];return this.pos=t=this.options.duration?b.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):rr.propHooks._default.set(this),this}},rr.prototype.init.prototype=rr.prototype,rr.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=b.css(e.elem,e.prop,""),t&&"auto"!==t?t:0):e.elem[e.prop]},set:function(e){b.fx.step[e.prop]?b.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[b.cssProps[e.prop]]||b.cssHooks[e.prop])?b.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},rr.propHooks.scrollTop=rr.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},b.each(["toggle","show","hide"],function(e,t){var n=b.fn[t];b.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ir(t,!0),e,r,i)}}),b.fn.extend({fadeTo:function(e,t,n,r){return this.filter(nn).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=b.isEmptyObject(e),o=b.speed(t,n,r),a=function(){var t=er(this,b.extend({},e),o);a.finish=function(){t.stop(!0)},(i||b._data(this,"finish"))&&t.stop(!0)};return a.finish=a,i||o.queue===!1?this.each(a):this.queue(o.queue,a)},stop:function(e,n,r){var i=function(e){var t=e.stop;delete e.stop,t(r)};return"string"!=typeof e&&(r=n,n=e,e=t),n&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,n=null!=e&&e+"queueHooks",o=b.timers,a=b._data(this);if(n)a[n]&&a[n].stop&&i(a[n]);else for(n in a)a[n]&&a[n].stop&&Jn.test(n)&&i(a[n]);for(n=o.length;n--;)o[n].elem!==this||null!=e&&o[n].queue!==e||(o[n].anim.stop(r),t=!1,o.splice(n,1));(t||!r)&&b.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=b._data(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=b.timers,a=r?r.length:0;for(n.finish=!0,b.queue(this,e,[]),i&&i.cur&&i.cur.finish&&i.cur.finish.call(this),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;a>t;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}});function ir(e,t){var n,r={height:e},i=0;for(t=t?1:0;4>i;i+=2-t)n=Zt[i],r["margin"+n]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}b.each({slideDown:ir("show"),slideUp:ir("hide"),slideToggle:ir("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){b.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),b.speed=function(e,t,n){var r=e&&"object"==typeof e?b.extend({},e):{complete:n||!n&&t||b.isFunction(e)&&e,duration:e,easing:n&&t||t&&!b.isFunction(t)&&t};return r.duration=b.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in b.fx.speeds?b.fx.speeds[r.duration]:b.fx.speeds._default,(null==r.queue||r.queue===!0)&&(r.queue="fx"),r.old=r.complete,r.complete=function(){b.isFunction(r.old)&&r.old.call(this),r.queue&&b.dequeue(this,r.queue)},r},b.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},b.timers=[],b.fx=rr.prototype.init,b.fx.tick=function(){var e,n=b.timers,r=0;for(Xn=b.now();n.length>r;r++)e=n[r],e()||n[r]!==e||n.splice(r--,1);n.length||b.fx.stop(),Xn=t},b.fx.timer=function(e){e()&&b.timers.push(e)&&b.fx.start()},b.fx.interval=13,b.fx.start=function(){Un||(Un=setInterval(b.fx.tick,b.fx.interval))},b.fx.stop=function(){clearInterval(Un),Un=null},b.fx.speeds={slow:600,fast:200,_default:400},b.fx.step={},b.expr&&b.expr.filters&&(b.expr.filters.animated=function(e){return b.grep(b.timers,function(t){return e===t.elem}).length}),b.fn.offset=function(e){if(arguments.length)return e===t?this:this.each(function(t){b.offset.setOffset(this,e,t)});var n,r,o={top:0,left:0},a=this[0],s=a&&a.ownerDocument;if(s)return n=s.documentElement,b.contains(n,a)?(typeof a.getBoundingClientRect!==i&&(o=a.getBoundingClientRect()),r=or(s),{top:o.top+(r.pageYOffset||n.scrollTop)-(n.clientTop||0),left:o.left+(r.pageXOffset||n.scrollLeft)-(n.clientLeft||0)}):o},b.offset={setOffset:function(e,t,n){var r=b.css(e,"position");"static"===r&&(e.style.position="relative");var i=b(e),o=i.offset(),a=b.css(e,"top"),s=b.css(e,"left"),u=("absolute"===r||"fixed"===r)&&b.inArray("auto",[a,s])>-1,l={},c={},p,f;u?(c=i.position(),p=c.top,f=c.left):(p=parseFloat(a)||0,f=parseFloat(s)||0),b.isFunction(t)&&(t=t.call(e,n,o)),null!=t.top&&(l.top=t.top-o.top+p),null!=t.left&&(l.left=t.left-o.left+f),"using"in t?t.using.call(e,l):i.css(l)}},b.fn.extend({position:function(){if(this[0]){var e,t,n={top:0,left:0},r=this[0];return"fixed"===b.css(r,"position")?t=r.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),b.nodeName(e[0],"html")||(n=e.offset()),n.top+=b.css(e[0],"borderTopWidth",!0),n.left+=b.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-b.css(r,"marginTop",!0),left:t.left-n.left-b.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||o.documentElement;while(e&&!b.nodeName(e,"html")&&"static"===b.css(e,"position"))e=e.offsetParent;return e||o.documentElement})}}),b.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var r=/Y/.test(n);b.fn[e]=function(i){return b.access(this,function(e,i,o){var a=or(e);return o===t?a?n in a?a[n]:a.document.documentElement[i]:e[i]:(a?a.scrollTo(r?b(a).scrollLeft():o,r?o:b(a).scrollTop()):e[i]=o,t)},e,i,arguments.length,null)}});function or(e){return b.isWindow(e)?e:9===e.nodeType?e.defaultView||e.parentWindow:!1}b.each({Height:"height",Width:"width"},function(e,n){b.each({padding:"inner"+e,content:n,"":"outer"+e},function(r,i){b.fn[i]=function(i,o){var a=arguments.length&&(r||"boolean"!=typeof i),s=r||(i===!0||o===!0?"margin":"border");return b.access(this,function(n,r,i){var o;return b.isWindow(n)?n.document.documentElement["client"+e]:9===n.nodeType?(o=n.documentElement,Math.max(n.body["scroll"+e],o["scroll"+e],n.body["offset"+e],o["offset"+e],o["client"+e])):i===t?b.css(n,r,s):b.style(n,r,i,s)},n,a?i:t,a,null)}})}),e.jQuery=e.$=b,"function"==typeof define&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return b})})(window);
vendor: 13,281 bytes, lines 36-64
36 37 38/* plugins/agitateur_v692/js/google-code-prettify/prettify.js */ 39var q=null;window.PR_SHOULD_USE_CONTINUATION=!0; 40(function(){function L(a){function m(a){var f=a.charCodeAt(0);if(f!==92)return f;var b=a.charAt(1);return(f=r[b])?f:"0"<=b&&b<="7"?parseInt(a.substring(1),8):b==="u"||b==="x"?parseInt(a.substring(2),16):a.charCodeAt(1)}function e(a){if(a<32)return(a<16?"\\x0":"\\x")+a.toString(16);a=String.fromCharCode(a);if(a==="\\"||a==="-"||a==="["||a==="]")a="\\"+a;return a}function h(a){for(var f=a.substring(1,a.length-1).match(/\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\S\s]|[^\\]/g),a= 41[],b=[],o=f[0]==="^",c=o?1:0,i=f.length;c<i;++c){var j=f[c];if(/\\[bdsw]/i.test(j))a.push(j);else{var j=m(j),d;c+2<i&&"-"===f[c+1]?(d=m(f[c+2]),c+=2):d=j;b.push([j,d]);d<65||j>122||(d<65||j>90||b.push([Math.max(65,j)|32,Math.min(d,90)|32]),d<97||j>122||b.push([Math.max(97,j)&-33,Math.min(d,122)&-33]))}}b.sort(function(a,f){return a[0]-f[0]||f[1]-a[1]});f=[];j=[NaN,NaN];for(c=0;c<b.length;++c)i=b[c],i[0]<=j[1]+1?j[1]=Math.max(j[1],i[1]):f.push(j=i);b=["["];o&&b.push("^");b.push.apply(b,a);for(c=0;c< 42f.length;++c)i=f[c],b.push(e(i[0])),i[1]>i[0]&&(i[1]+1>i[0]&&b.push("-"),b.push(e(i[1])));b.push("]");return b.join("")}function y(a){for(var f=a.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g),b=f.length,d=[],c=0,i=0;c<b;++c){var j=f[c];j==="("?++i:"\\"===j.charAt(0)&&(j=+j.substring(1))&&j<=i&&(d[j]=-1)}for(c=1;c<d.length;++c)-1===d[c]&&(d[c]=++t);for(i=c=0;c<b;++c)j=f[c],j==="("?(++i,d[i]===void 0&&(f[c]="(?:")):"\\"===j.charAt(0)&& 43(j=+j.substring(1))&&j<=i&&(f[c]="\\"+d[i]);for(i=c=0;c<b;++c)"^"===f[c]&&"^"!==f[c+1]&&(f[c]="");if(a.ignoreCase&&s)for(c=0;c<b;++c)j=f[c],a=j.charAt(0),j.length>=2&&a==="["?f[c]=h(j):a!=="\\"&&(f[c]=j.replace(/[A-Za-z]/g,function(a){a=a.charCodeAt(0);return"["+String.fromCharCode(a&-33,a|32)+"]"}));return f.join("")}for(var t=0,s=!1,l=!1,p=0,d=a.length;p<d;++p){var g=a[p];if(g.ignoreCase)l=!0;else if(/[a-z]/i.test(g.source.replace(/\\u[\da-f]{4}|\\x[\da-f]{2}|\\[^UXux]/gi,""))){s=!0;l=!1;break}}for(var r= 44{b:8,t:9,n:10,v:11,f:12,r:13},n=[],p=0,d=a.length;p<d;++p){g=a[p];if(g.global||g.multiline)throw Error(""+g);n.push("(?:"+y(g)+")")}return RegExp(n.join("|"),l?"gi":"g")}function M(a){function m(a){switch(a.nodeType){case 1:if(e.test(a.className))break;for(var g=a.firstChild;g;g=g.nextSibling)m(g);g=a.nodeName;if("BR"===g||"LI"===g)h[s]="\n",t[s<<1]=y++,t[s++<<1|1]=a;break;case 3:case 4:g=a.nodeValue,g.length&&(g=p?g.replace(/\r\n?/g,"\n"):g.replace(/[\t\n\r ]+/g," "),h[s]=g,t[s<<1]=y,y+=g.length, 45t[s++<<1|1]=a)}}var e=/(?:^|\s)nocode(?:\s|$)/,h=[],y=0,t=[],s=0,l;a.currentStyle?l=a.currentStyle.whiteSpace:window.getComputedStyle&&(l=document.defaultView.getComputedStyle(a,q).getPropertyValue("white-space"));var p=l&&"pre"===l.substring(0,3);m(a);return{a:h.join("").replace(/\n$/,""),c:t}}function B(a,m,e,h){m&&(a={a:m,d:a},e(a),h.push.apply(h,a.e))}function x(a,m){function e(a){for(var l=a.d,p=[l,"pln"],d=0,g=a.a.match(y)||[],r={},n=0,z=g.length;n<z;++n){var f=g[n],b=r[f],o=void 0,c;if(typeof b=== 46"string")c=!1;else{var i=h[f.charAt(0)];if(i)o=f.match(i[1]),b=i[0];else{for(c=0;c<t;++c)if(i=m[c],o=f.match(i[1])){b=i[0];break}o||(b="pln")}if((c=b.length>=5&&"lang-"===b.substring(0,5))&&!(o&&typeof o[1]==="string"))c=!1,b="src";c||(r[f]=b)}i=d;d+=f.length;if(c){c=o[1];var j=f.indexOf(c),k=j+c.length;o[2]&&(k=f.length-o[2].length,j=k-c.length);b=b.substring(5);B(l+i,f.substring(0,j),e,p);B(l+i+j,c,C(b,c),p);B(l+i+k,f.substring(k),e,p)}else p.push(l+i,b)}a.e=p}var h={},y;(function(){for(var e=a.concat(m), 47l=[],p={},d=0,g=e.length;d<g;++d){var r=e[d],n=r[3];if(n)for(var k=n.length;--k>=0;)h[n.charAt(k)]=r;r=r[1];n=""+r;p.hasOwnProperty(n)||(l.push(r),p[n]=q)}l.push(/[\S\s]/);y=L(l)})();var t=m.length;return e}function u(a){var m=[],e=[];a.tripleQuotedStrings?m.push(["str",/^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/,q,"'\""]):a.multiLineStrings?m.push(["str",/^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/, 48q,"'\"`"]):m.push(["str",/^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,q,"\"'"]);a.verbatimStrings&&e.push(["str",/^@"(?:[^"]|"")*(?:"|$)/,q]);var h=a.hashComments;h&&(a.cStyleComments?(h>1?m.push(["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,q,"#"]):m.push(["com",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\n\r]*)/,q,"#"]),e.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,q])):m.push(["com",/^#[^\n\r]*/, 49q,"#"]));a.cStyleComments&&(e.push(["com",/^\/\/[^\n\r]*/,q]),e.push(["com",/^\/\*[\S\s]*?(?:\*\/|$)/,q]));a.regexLiterals&&e.push(["lang-regex",/^(?:^^\.?|[!+-]|!=|!==|#|%|%=|&|&&|&&=|&=|\(|\*|\*=|\+=|,|-=|->|\/|\/=|:|::|;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|[?@[^]|\^=|\^\^|\^\^=|{|\||\|=|\|\||\|\|=|~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\s*(\/(?=[^*/])(?:[^/[\\]|\\[\S\s]|\[(?:[^\\\]]|\\[\S\s])*(?:]|$))+\/)/]);(h=a.types)&&e.push(["typ",h]);a=(""+a.keywords).replace(/^ | $/g, 50"");a.length&&e.push(["kwd",RegExp("^(?:"+a.replace(/[\s,]+/g,"|")+")\\b"),q]);m.push(["pln",/^\s+/,q," \r\n\t\xa0"]);e.push(["lit",/^@[$_a-z][\w$@]*/i,q],["typ",/^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/,q],["pln",/^[$_a-z][\w$@]*/i,q],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,q,"0123456789"],["pln",/^\\[\S\s]?/,q],["pun",/^.[^\s\w"-$'./@\\`]*/,q]);return x(m,e)}function D(a,m){function e(a){switch(a.nodeType){case 1:if(k.test(a.className))break;if("BR"===a.nodeName)h(a), 51a.parentNode&&a.parentNode.removeChild(a);else for(a=a.firstChild;a;a=a.nextSibling)e(a);break;case 3:case 4:if(p){var b=a.nodeValue,d=b.match(t);if(d){var c=b.substring(0,d.index);a.nodeValue=c;(b=b.substring(d.index+d[0].length))&&a.parentNode.insertBefore(s.createTextNode(b),a.nextSibling);h(a);c||a.parentNode.removeChild(a)}}}}function h(a){function b(a,d){var e=d?a.cloneNode(!1):a,f=a.parentNode;if(f){var f=b(f,1),g=a.nextSibling;f.appendChild(e);for(var h=g;h;h=g)g=h.nextSibling,f.appendChild(h)}return e} 52for(;!a.nextSibling;)if(a=a.parentNode,!a)return;for(var a=b(a.nextSibling,0),e;(e=a.parentNode)&&e.nodeType===1;)a=e;d.push(a)}var k=/(?:^|\s)nocode(?:\s|$)/,t=/\r\n?|\n/,s=a.ownerDocument,l;a.currentStyle?l=a.currentStyle.whiteSpace:window.getComputedStyle&&(l=s.defaultView.getComputedStyle(a,q).getPropertyValue("white-space"));var p=l&&"pre"===l.substring(0,3);for(l=s.createElement("LI");a.firstChild;)l.appendChild(a.firstChild);for(var d=[l],g=0;g<d.length;++g)e(d[g]);m===(m|0)&&d[0].setAttribute("value", 53m);var r=s.createElement("OL");r.className="linenums";for(var n=Math.max(0,m-1|0)||0,g=0,z=d.length;g<z;++g)l=d[g],l.className="L"+(g+n)%10,l.firstChild||l.appendChild(s.createTextNode("\xa0")),r.appendChild(l);a.appendChild(r)}function k(a,m){for(var e=m.length;--e>=0;){var h=m[e];A.hasOwnProperty(h)?window.console&&console.warn("cannot override language handler %s",h):A[h]=a}}function C(a,m){if(!a||!A.hasOwnProperty(a))a=/^\s*</.test(m)?"default-markup":"default-code";return A[a]}function E(a){var m= 54a.g;try{var e=M(a.h),h=e.a;a.a=h;a.c=e.c;a.d=0;C(m,h)(a);var k=/\bMSIE\b/.test(navigator.userAgent),m=/\n/g,t=a.a,s=t.length,e=0,l=a.c,p=l.length,h=0,d=a.e,g=d.length,a=0;d[g]=s;var r,n;for(n=r=0;n<g;)d[n]!==d[n+2]?(d[r++]=d[n++],d[r++]=d[n++]):n+=2;g=r;for(n=r=0;n<g;){for(var z=d[n],f=d[n+1],b=n+2;b+2<=g&&d[b+1]===f;)b+=2;d[r++]=z;d[r++]=f;n=b}for(d.length=r;h<p;){var o=l[h+2]||s,c=d[a+2]||s,b=Math.min(o,c),i=l[h+1],j;if(i.nodeType!==1&&(j=t.substring(e,b))){k&&(j=j.replace(m,"\r"));i.nodeValue= 55j;var u=i.ownerDocument,v=u.createElement("SPAN");v.className=d[a+1];var x=i.parentNode;x.replaceChild(v,i);v.appendChild(i);e<o&&(l[h+1]=i=u.createTextNode(t.substring(b,o)),x.insertBefore(i,v.nextSibling))}e=b;e>=o&&(h+=2);e>=c&&(a+=2)}}catch(w){"console"in window&&console.log(w&&w.stack?w.stack:w)}}var v=["break,continue,do,else,for,if,return,while"],w=[[v,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"], 56"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],F=[w,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],G=[w,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"], 57H=[G,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"],w=[w,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],I=[v,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"], 58J=[v,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],v=[v,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],K=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/,N=/\S/,O=u({keywords:[F,H,w,"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END"+ 59I,J,v],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),A={};k(O,["default-code"]);k(x([],[["pln",/^[^<?]+/],["dec",/^<!\w[^>]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^<xmp\b[^>]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^<script\b[^>]*>([\S\s]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\S\s]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]), 60["default-markup","htm","html","mxml","xhtml","xml","xsl"]);k(x([["pln",/^\s+/,q," \t\r\n"],["atv",/^(?:"[^"]*"?|'[^']*'?)/,q,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^\s"'>]*(?:[^\s"'/>]|\/(?=\s)))/],["pun",/^[/<->]+/],["lang-js",/^on\w+\s*=\s*"([^"]+)"/i],["lang-js",/^on\w+\s*=\s*'([^']+)'/i],["lang-js",/^on\w+\s*=\s*([^\s"'>]+)/i],["lang-css",/^style\s*=\s*"([^"]+)"/i],["lang-css",/^style\s*=\s*'([^']+)'/i],["lang-css",/^style\s*=\s*([^\s"'>]+)/i]]),["in.tag"]);k(x([],[["atv",/^[\S\s]+/]]),["uq.val"]);k(u({keywords:F,hashComments:!0,cStyleComments:!0,types:K}),["c","cc","cpp","cxx","cyc","m"]);k(u({keywords:"null,true,false"}),["json"]);k(u({keywords:H,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:K}),["cs"]);k(u({keywords:G,cStyleComments:!0}),["java"]);k(u({keywords:v,hashComments:!0,multiLineStrings:!0}),["bsh","csh","sh"]);k(u({keywords:I,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}), 61["cv","py"]);k(u({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["perl","pl","pm"]);k(u({keywords:J,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb"]);k(u({keywords:w,cStyleComments:!0,regexLiterals:!0}),["js"]);k(u({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes", 62hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]);k(x([],[["str",/^[\S\s]+/]]),["regex"]);window.prettyPrintOne=function(a,m,e){var h=document.createElement("PRE");h.innerHTML=a;e&&D(h,e);E({g:m,i:e,h:h});return h.innerHTML};window.prettyPrint=function(a){function m(){for(var e=window.PR_SHOULD_USE_CONTINUATION?l.now()+250:Infinity;p<h.length&&l.now()<e;p++){var n=h[p],k=n.className;if(k.indexOf("prettyprint")>=0){var k=k.match(g),f,b;if(b= 63!k){b=n;for(var o=void 0,c=b.firstChild;c;c=c.nextSibling)var i=c.nodeType,o=i===1?o?b:c:i===3?N.test(c.nodeValue)?b:o:o;b=(f=o===b?void 0:o)&&"CODE"===f.tagName}b&&(k=f.className.match(g));k&&(k=k[1]);b=!1;for(o=n.parentNode;o;o=o.parentNode)if((o.tagName==="pre"||o.tagName==="code"||o.tagName==="xmp")&&o.className&&o.className.indexOf("prettyprint")>=0){b=!0;break}b||((b=(b=n.className.match(/\blinenums\b(?::(\d+))?/))?b[1]&&b[1].length?+b[1]:!0:!1)&&D(n,b),d={g:k,h:n,i:b},E(d))}}p<h.length?setTimeout(m, 64250):a&&a()}for(var e=[document.getElementsByTagName("pre"),document.getElementsByTagName("code"),document.getElementsByTagName("xmp")],h=[],k=0;k<e.length;++k)for(var t=0,s=e[k].length;t<s;++t)h.push(e[k][t]);
64var e=q,l=Date;l.now||(l={now:function(){return+new Date}});var p=0,d,g=/\blang(?:uage)?-([\w.]+)(?!\S)/;m()};window.PR={createSimpleLexer:x,registerLangHandler:k,sourceDecorator:u,PR_ATTRIB_NAME:"atn",PR_ATTRIB_VALUE:"atv",PR_COMMENT:"com",PR_DECLARATION:"dec",PR_KEYWORD:"kwd",PR_LITERAL:"lit", 65PR_NOCODE:"nocode",PR_PLAIN:"pln",PR_PUNCTUATION:"pun",PR_SOURCE:"src",PR_STRING:"str",PR_TAG:"tag",PR_TYPE:"typ"}})(); 66 67 68/* plugins/agitateur_v692/js/bootstrap-transition.js */ 69!function($){"use strict";$(function(){$.support.transition=(function(){var transitionEnd=(function(){var el=document.createElement('bootstrap'),transEndEventNames={'WebkitTransition':'webkitTransitionEnd','MozTransition':'transitionend','OTransition':'oTransitionEnd otransitionend','transition':'transitionend'},name 70for(name in transEndEventNames){if(el.style[name]!==undefined){return transEndEventNames[name]}}}()) 71return transitionEnd&&{end:transitionEnd}})()})}(window.jQuery); 72 73 74/* plugins/agitateur_v692/js/bootstrap-alert.js */ 75!function($){"use strict";var dismiss='[data-dismiss="alert"]',Alert=function(el){$(el).on('click',dismiss,this.close)} 76Alert.prototype.close=function(e){var $this=$(this),selector=$this.attr('data-target'),$parent 77if(!selector){selector=$this.attr('href') 78selector=selector&&selector.replace(/.*(?=#[^\s]*$)/,'')}$parent=$(selector) 79e&&e.preventDefault() 80$parent.length||($parent=$this.hasClass('alert')?$this:$this.parent()) 81$parent.trigger(e=$.Event('close')) 82if(e.isDefaultPrevented())return 83$parent.removeClass('in') 84function removeElement(){$parent.trigger('closed').remove()}$.support.transition&&$parent.hasClass('fade')?$parent.on($.support.transition.end,removeElement):removeElement()} 85var old=$.fn.alert 86$.fn.alert=function(option){return this.each(function(){var $this=$(this),data=$this.data('alert') 87if(!data)$this.data('alert',(data=new Alert(this))) 88if(typeof option=='string')data[option].call($this)})} 89$.fn.alert.Constructor=Alert 90$.fn.alert.noConflict=function(){$.fn.alert=old 91return this} 92$(document).on('click.alert.data-api',dismiss,Alert.prototype.close)}(window.jQuery); 93 94 95/* plugins/agitateur_v692/js/bootstrap-modal.js */ 96!function($){"use strict";var Modal=function(element,options){this.options=options 97this.$element=$(element).delegate('[data-dismiss="modal"]','click.dismiss.modal',$.proxy(this.hide,this)) 98this.options.remote&&this.$element.find('.modal-body').load(this.options.remote)} 99Modal.prototype={constructor:Modal,toggle:function(){return this[!this.isShown?'show':'hide']()},show:function(){var that=this,e=$.Event('show') 100this.$element.trigger(e) 101if(this.isShown||e.isDefaultPrevented())return 102this.isShown=true 103this.escape() 104this.backdrop(function(){var transition=$.support.transition&&that.$element.hasClass('fade') 105if(!that.$element.parent().length){that.$element.appendTo(document.body)}that.$element.show() 106if(transition){that.$element[0].offsetWidth}that.$element.addClass('in').attr('aria-hidden',false) 107that.enforceFocus() 108transition?that.$element.one($.support.transition.end,function(){that.$element.focus().trigger('shown')}):that.$element.focus().trigger('shown')})},hide:function(e){e&&e.preventDefault() 109var that=this 110e=$.Event('hide') 111this.$element.trigger(e) 112if(!this.isShown||e.isDefaultPrevented())return 113this.isShown=false 114this.escape() 115$(document).off('focusin.modal') 116this.$element.removeClass('in').attr('aria-hidden',true) 117$.support.transition&&this.$element.hasClass('fade')?this.hideWithTransition():this.hideModal()},enforceFocus:function(){var that=this 118$(document).on('focusin.modal',function(e){if(that.$element[0]!==e.target&&!that.$element.has(e.target).length){that.$element.focus()}})},escape:function(){var that=this 119if(this.isShown&&this.options.keyboard){this.$element.on('keyup.dismiss.modal',function(e){e.which==27&&that.hide()})}else if(!this.isShown){this.$element.off('keyup.dismiss.modal')}},hideWithTransition:function(){var that=this,timeout=setTimeout(function(){that.$element.off($.support.transition.end) 120that.hideModal()},500) 121this.$element.one($.support.transition.end,function(){clearTimeout(timeout) 122that.hideModal()})},hideModal:function(){var that=this 123this.$element.hide() 124this.backdrop(function(){that.removeBackdrop() 125that.$element.trigger('hidden')})},removeBackdrop:function(){this.$backdrop&&this.$backdrop.remove() 126this.$backdrop=null},backdrop:function(callback){var that=this,animate=this.$element.hasClass('fade')?'fade':'' 127if(this.isShown&&this.options.backdrop){var doAnimate=$.support.transition&&animate 128this.$backdrop=$('<div class="modal-backdrop '+animate+'" />').appendTo(document.body) 129this.$backdrop.click(this.options.backdrop=='static'?$.proxy(this.$element[0].focus,this.$element[0]):$.proxy(this.hide,this)) 130if(doAnimate)this.$backdrop[0].offsetWidth 131this.$backdrop.addClass('in') 132if(!callback)return 133doAnimate?this.$backdrop.one($.support.transition.end,callback):callback()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass('in') 134$.support.transition&&this.$element.hasClass('fade')?this.$backdrop.one($.support.transition.end,callback):callback()}else if(callback){callback()}}} 135var old=$.fn.modal 136$.fn.modal=function(option){return this.each(function(){var $this=$(this),data=$this.data('modal'),options=$.extend({},$.fn.modal.defaults,$this.data(),typeof option=='object'&&option) 137if(!data)$this.data('modal',(data=new Modal(this,options))) 138if(typeof option=='string')data[option]() 139else if(options.show)data.show()})} 140$.fn.modal.defaults={backdrop:true,keyboard:true,show:true} 141$.fn.modal.Constructor=Modal
142$.fn.modal.noConflict=function(){$.fn.modal=old 143return this} 144$(document).on('click.modal.data-api','[data-toggle="modal"]',function(e){var $this=$(this),href=$this.attr('href'),$target=$($this.attr('data-target')||(href&&href.replace(/.*(?=#[^\s]+$)/,''))),option=$target.data('modal')?'toggle':$.extend({remote:!/#/.test(href)&&href},$target.data(),$this.data()) 145e.preventDefault() 146$target.modal(option).one('hide',function(){$this.focus()})})}(window.jQuery); 147 148 149/* plugins/agitateur_v692/js/bootstrap-dropdown.js */ 150!function($){"use strict";var toggle='[data-toggle=dropdown]',Dropdown=function(element){var $el=$(element).on('click.dropdown.data-api',this.toggle) 151$('html').on('click.dropdown.data-api',function(){$el.parent().removeClass('open')})} 152Dropdown.prototype={constructor:Dropdown,toggle:function(e){var $this=$(this),$parent,isActive 153if($this.is('.disabled, :disabled'))return 154$parent=getParent($this) 155isActive=$parent.hasClass('open') 156clearMenus() 157if(!isActive){if('ontouchstart'in document.documentElement){$('<div class="dropdown-backdrop"/>').insertBefore($(this)).on('click',clearMenus)}$parent.toggleClass('open')}$this.focus() 158return false},keydown:function(e){var $this,$items,$active,$parent,isActive,index 159if(!/(38|40|27)/.test(e.keyCode))return 160$this=$(this) 161e.preventDefault() 162e.stopPropagation() 163if($this.is('.disabled, :disabled'))return 164$parent=getParent($this) 165isActive=$parent.hasClass('open') 166if(!isActive||(isActive&&e.keyCode==27)){if(e.which==27)$parent.find(toggle).focus() 167return $this.click()}$items=$('[role=menu] li:not(.divider):visible a',$parent) 168if(!$items.length)return 169index=$items.index($items.filter(':focus')) 170if(e.keyCode==38&&index>0)index-- 171if(e.keyCode==40&&index<$items.length-1)index++ 172if(!~index)index=0 173$items.eq(index).focus()}} 174function clearMenus(){$('.dropdown-backdrop').remove() 175$(toggle).each(function(){getParent($(this)).removeClass('open')})}function getParent($this){var selector=$this.attr('data-target'),$parent 176if(!selector){selector=$this.attr('href') 177selector=selector&&/#/.test(selector)&&selector.replace(/.*(?=#[^\s]*$)/,'')}$parent=selector&&$(selector) 178if(!$parent||!$parent.length)$parent=$this.parent() 179return $parent}var old=$.fn.dropdown 180$.fn.dropdown=function(option){return this.each(function(){var $this=$(this),data=$this.data('dropdown') 181if(!data)$this.data('dropdown',(data=new Dropdown(this))) 182if(typeof option=='string')data[option].call($this)})} 183$.fn.dropdown.Constructor=Dropdown 184$.fn.dropdown.noConflict=function(){$.fn.dropdown=old 185return this} 186$(document).on('click.dropdown.data-api',clearMenus).on('click.dropdown.data-api','.dropdown form',function(e){e.stopPropagation()}).on('click.dropdown.data-api',toggle,Dropdown.prototype.toggle).on('keydown.dropdown.data-api',toggle+', [role=menu]',Dropdown.prototype.keydown)}(window.jQuery); 187 188 189/* plugins/agitateur_v692/js/bootstrap-scrollspy.js */ 190!function($){"use strict";function ScrollSpy(element,options){var process=$.proxy(this.process,this),$element=$(element).is('body')?$(window):$(element),href 191this.options=$.extend({},$.fn.scrollspy.defaults,options)
192this.$scrollElement=$element.on('scroll.scroll-spy.data-api',process) 193this.selector=(this.options.target||((href=$(element).attr('href'))&&href.replace(/.*(?=#[^\s]+$)/,''))||'')+' .nav li > a' 194this.$body=$('body') 195this.refresh() 196this.process()}ScrollSpy.prototype={constructor:ScrollSpy,refresh:function(){var self=this,$targets 197this.offsets=$([]) 198this.targets=$([]) 199$targets=this.$body.find(this.selector).map(function(){var $el=$(this),href=$el.data('target')||$el.attr('href'),$href=/^#\w/.test(href)&&$(href) 200return($href&&$href.length&&[[$href.position().top+(!$.isWindow(self.$scrollElement.get(0))&&self.$scrollElement.scrollTop()),href]])||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){self.offsets.push(this[0]) 201self.targets.push(this[1])})},process:function(){var scrollTop=this.$scrollElement.scrollTop()+this.options.offset,scrollHeight=this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight,maxScroll=scrollHeight-this.$scrollElement.height(),offsets=this.offsets,targets=this.targets,activeTarget=this.activeTarget,i 202if(scrollTop>=maxScroll){return activeTarget!=(i=targets.last()[0])&&this.activate(i)}for(i=offsets.length;i--;){activeTarget!=targets[i]&&scrollTop>=offsets[i]&&(!offsets[i+1]||scrollTop<=offsets[i+1])&&this.activate(targets[i])}},activate:function(target){var active,selector 203this.activeTarget=target 204$(this.selector).parent('.active').removeClass('active') 205selector=this.selector+'[data-target="'+target+'"],'+this.selector+'[href="'+target+'"]' 206active=$(selector).parent('li').addClass('active') 207if(active.parent('.dropdown-menu').length){active=active.closest('li.dropdown').addClass('active')}active.trigger('activate')}} 208var old=$.fn.scrollspy 209$.fn.scrollspy=function(option){return this.each(function(){var $this=$(this),data=$this.data('scrollspy'),options=typeof option=='object'&&option 210if(!data)$this.data('scrollspy',(data=new ScrollSpy(this,options))) 211if(typeof option=='string')data[option]()})} 212$.fn.scrollspy.Constructor=ScrollSpy 213$.fn.scrollspy.defaults={offset:10} 214$.fn.scrollspy.noConflict=function(){$.fn.scrollspy=old 215return this} 216$(window).on('load',function(){$('[data-spy="scroll"]').each(function(){var $spy=$(this) 217$spy.scrollspy($spy.data())})})}(window.jQuery); 218 219 220/* plugins/agitateur_v692/js/bootstrap-tab.js */ 221!function($){"use strict";var Tab=function(element){this.element=$(element)} 222Tab.prototype={constructor:Tab,show:function(){var $this=this.element,$ul=$this.closest('ul:not(.dropdown-menu)'),selector=$this.attr('data-target'),previous,$target,e 223if(!selector){selector=$this.attr('href') 224selector=selector&&selector.replace(/.*(?=#[^\s]*$)/,'')}if($this.parent('li').hasClass('active'))return 225previous=$ul.find('.active:last a')[0] 226e=$.Event('show',{relatedTarget:previous}) 227$this.trigger(e) 228if(e.isDefaultPrevented())return 229$target=$(selector) 230this.activate($this.parent('li'),$ul) 231this.activate($target,$target.parent(),function(){$this.trigger({type:'shown',relatedTarget:previous})})},activate:function(element,container,callback){var $active=container.find('> .active'),transition=callback&&$.support.transition&&$active.hasClass('fade') 232function next(){$active.removeClass('active').find('> .dropdown-menu > .active').removeClass('active') 233element.addClass('active') 234if(transition){element[0].offsetWidth 235element.addClass('in')}else{element.removeClass('fade')}if(element.parent('.dropdown-menu')){element.closest('li.dropdown').addClass('active')}callback&&callback()}transition?$active.one($.support.transition.end,next):next() 236$active.removeClass('in')}} 237var old=$.fn.tab 238$.fn.tab=function(option){return this.each(function(){var $this=$(this),data=$this.data('tab') 239if(!data)$this.data('tab',(data=new Tab(this))) 240if(typeof option=='string')data[option]()})} 241$.fn.tab.Constructor=Tab 242$.fn.tab.noConflict=function(){$.fn.tab=old 243return this} 244$(document).on('click.tab.data-api','[data-toggle="tab"], [data-toggle="pill"]',function(e){e.preventDefault() 245$(this).tab('show')})}(window.jQuery); 246 247 248/* plugins/agitateur_v692/js/bootstrap-tooltip.js */ 249!function($){"use strict";var Tooltip=function(element,options){this.init('tooltip',element,options)} 250Tooltip.prototype={constructor:Tooltip,init:function(type,element,options){var eventIn,eventOut,triggers,trigger,i 251this.type=type 252this.$element=$(element) 253this.options=this.getOptions(options) 254this.enabled=true 255triggers=this.options.trigger.split(' ') 256for(i=triggers.length;i--;){trigger=triggers[i] 257if(trigger=='click'){this.$element.on('click.'+this.type,this.options.selector,$.proxy(this.toggle,this))}else if(trigger!='manual'){eventIn=trigger=='hover'?'mouseenter':'focus' 258eventOut=trigger=='hover'?'mouseleave':'blur' 259this.$element.on(eventIn+'.'+this.type,this.options.selector,$.proxy(this.enter,this)) 260this.$element.on(eventOut+'.'+this.type,this.options.selector,$.proxy(this.leave,this))}}this.options.selector?(this._options=$.extend({},this.options,{trigger:'manual',selector:''})):this.fixTitle()},getOptions:function(options){options=$.extend({},$.fn[this.type].defaults,this.$element.data(),options) 261if(options.delay&&typeof options.delay=='number'){options.delay={show:options.delay,hide:options.delay}}return options},enter:function(e){var defaults=$.fn[this.type].defaults,options={},self 262this._options&&$.each(this._options,function(key,value){if(defaults[key]!=value)options[key]=value},this) 263self=$(e.currentTarget)[this.type](options).data(this.type) 264if(!self.options.delay||!self.options.delay.show)return self.show() 265clearTimeout(this.timeout) 266self.hoverState='in' 267this.timeout=setTimeout(function(){if(self.hoverState=='in')self.show()},self.options.delay.show)},leave:function(e){var self=$(e.currentTarget)[this.type](this._options).data(this.type) 268if(this.timeout)clearTimeout(this.timeout) 269if(!self.options.delay||!self.options.delay.hide)return self.hide() 270self.hoverState='out' 271this.timeout=setTimeout(function(){if(self.hoverState=='out')self.hide()},self.options.delay.hide)},show:function(){var $tip,pos,actualWidth,actualHeight,placement,tp,e=$.Event('show') 272if(this.hasContent()&&this.enabled){this.$element.trigger(e) 273if(e.isDefaultPrevented())return 274$tip=this.tip() 275this.setContent() 276if(this.options.animation){$tip.addClass('fade')}placement=typeof this.options.placement=='function'?this.options.placement.call(this,$tip[0],this.$element[0]):this.options.placement 277$tip.detach().css({top:0,left:0,display:'block'}) 278this.options.container?$tip.appendTo(this.options.container):$tip.insertAfter(this.$element) 279pos=this.getPosition() 280actualWidth=$tip[0].offsetWidth 281actualHeight=$tip[0].offsetHeight 282switch(placement){case'bottom':tp={top:pos.top+pos.height,left:pos.left+pos.width/2-actualWidth/2} 283break 284case'top':tp={top:pos.top-actualHeight,left:pos.left+pos.width/2-actualWidth/2} 285break 286case'left':tp={top:pos.top+pos.height/2-actualHeight/2,left:pos.left-actualWidth} 287break 288case'right':tp={top:pos.top+pos.height/2-actualHeight/2,left:pos.left+pos.width} 289break}this.applyPlacement(tp,placement) 290this.$element.trigger('shown')}},applyPlacement:function(offset,placement){var $tip=this.tip(),width=$tip[0].offsetWidth,height=$tip[0].offsetHeight,actualWidth,actualHeight,delta,replace 291$tip.offset(offset).addClass(placement).addClass('in') 292actualWidth=$tip[0].offsetWidth 293actualHeight=$tip[0].offsetHeight 294if(placement=='top'&&actualHeight!=height){offset.top=offset.top+height-actualHeight 295replace=true}if(placement=='bottom'||placement=='top'){delta=0 296if(offset.left<0){delta=offset.left*-2 297offset.left=0 298$tip.offset(offset) 299actualWidth=$tip[0].offsetWidth 300actualHeight=$tip[0].offsetHeight}this.replaceArrow(delta-width+actualWidth,actualWidth,'left')}else{this.replaceArrow(actualHeight-height,actualHeight,'top')}if(replace)$tip.offset(offset)},replaceArrow:function(delta,dimension,position){this.arrow().css(position,delta?(50*(1-delta/dimension)+"%"):'')},setContent:function(){var $tip=this.tip(),title=this.getTitle() 301$tip.find('.tooltip-inner')[this.options.html?'html':'text'](title) 302$tip.removeClass('fade in top bottom left right')},hide:function(){var that=this,$tip=this.tip(),e=$.Event('hide') 303this.$element.trigger(e) 304if(e.isDefaultPrevented())return 305$tip.removeClass('in') 306function removeWithAnimation(){var timeout=setTimeout(function(){$tip.off($.
306support.transition.end).detach()},500) 307$tip.one($.support.transition.end,function(){clearTimeout(timeout) 308$tip.detach()})}$.support.transition&&this.$tip.hasClass('fade')?removeWithAnimation():$tip.detach() 309this.$element.trigger('hidden') 310return this},fixTitle:function(){var $e=this.$element 311if($e.attr('title')||typeof($e.attr('data-original-title'))!='string'){$e.attr('data-original-title',$e.attr('title')||'').attr('title','')}},hasContent:function(){return this.getTitle()},getPosition:function(){var el=this.$element[0] 312return $.extend({},(typeof el.getBoundingClientRect=='function')?el.getBoundingClientRect():{width:el.offsetWidth,height:el.offsetHeight},this.$element.offset())},getTitle:function(){var title,$e=this.$element,o=this.options 313title=$e.attr('data-original-title')||(typeof o.title=='function'?o.title.call($e[0]):o.title) 314return title},tip:function(){return this.$tip=this.$tip||$(this.options.template)},arrow:function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},validate:function(){if(!this.$element[0].parentNode){this.hide() 315this.$element=null 316this.options=null}},enable:function(){this.enabled=true},disable:function(){this.enabled=false},toggleEnabled:function(){this.enabled=!this.enabled},toggle:function(e){var self=e?$(e.currentTarget)[this.type](this._options).data(this.type):this 317self.tip().hasClass('in')?self.hide():self.show()},destroy:function(){this.hide().$element.off('.'+this.type).removeData(this.type)}} 318var old=$.fn.tooltip 319$.fn.tooltip=function(option){return this.each(function(){var $this=$(this),data=$this.data('tooltip'),options=typeof option=='object'&&option 320if(!data)$this.data('tooltip',(data=new Tooltip(this,options))) 321if(typeof option=='string')data[option]()})} 322$.fn.tooltip.Constructor=Tooltip 323$.fn.tooltip.defaults={animation:true,placement:'top',selector:false,template:'<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:'hover focus',title:'',delay:0,html:false,container:false} 324$.fn.tooltip.noConflict=function(){$.fn.tooltip=old 325return this}}(window.jQuery); 326 327 328/* plugins/agitateur_v692/js/bootstrap-popover.js */ 329!function($){"use strict";var Popover=function(element,options){this.init('popover',element,options)} 330Popover.prototype=$.extend({},$.fn.tooltip.Constructor.prototype,{constructor:Popover,setContent:function(){var $tip=this.tip(),title=this.getTitle(),content=this.getContent() 331$tip.find('.popover-title')[this.options.html?'html':'text'](title) 332$tip.find('.popover-content')[this.options.html?'html':'text'](content) 333$tip.removeClass('fade top bottom left right in')},hasContent:function(){return this.getTitle()||this.getContent()},getContent:function(){var content,$e=this.$element,o=this.options 334content=(typeof o.content=='function'?o.content.call($e[0]):o.content)||$e.attr('data-content') 335return content},tip:function(){if(!this.$tip){this.$tip=$(this.options.template)}return this.$tip},destroy:function(){this.hide().$element.off('.'+this.type).removeData(this.type)}}) 336var old=$.fn.popover 337$.fn.popover=function(option){return this.each(function(){var $this=$(this),data=$this.data('popover'),options=typeof option=='object'&&option 338if(!data)$this.data('popover',(data=new Popover(this,options))) 339if(typeof option=='string')data[option]()})} 340$.fn.popover.Constructor=Popover 341$.fn.popover.defaults=$.extend({},$.fn.tooltip.defaults,{placement:'right',trigger:'click',content:'',template:'<div class="popover"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}) 342$.fn.popover.noConflict=function(){$.fn.popover=old 343return this}}(window.jQuery); 344 345 346/* plugins/agitateur_v692/js/bootstrap-button.js */ 347!function($){"use strict";var Button=function(element,options){this.$element=$(element) 348this.options=$.extend({},$.fn.button.defaults,options)} 349Button.prototype.setState=function(state){var d='disabled',$el=this.$element,data=$el.data(),val=$el.is('input')?'val':'html' 350state=state+'Text' 351data.resetText||$el.data('resetText',$el[val]()) 352$el[val](data[state]||this.options[state]) 353setTimeout(function(){state=='loadingText'?$el.addClass(d).attr(d,d):$el.removeClass(d).removeAttr(d)},0)} 354Button.prototype.toggle=function(){var $parent=this.$element.closest('[data-toggle="buttons-radio"]') 355$parent&&$parent.find('.active').removeClass('active') 356this.$element.toggleClass('active')} 357var old=$.fn.button 358$.fn.button=function(option){return this.each(function(){var $this=$(this),data=$this.data('button'),options=typeof option=='object'&&option 359if(!data)$this.data('button',(data=new Button(this,options))) 360if(option=='toggle')data.toggle() 361else if(option)data.setState(option)})} 362$.fn.button.defaults={loadingText:'loading...'} 363$.fn.button.Constructor=Button 364$.fn.button.noConflict=function(){$.fn.button=old 365return this} 366$(document).on('click.button.data-api','[data-toggle^=button]',function(e){var $btn=$(e.target)
367if(!$btn.hasClass('btn'))$btn=$btn.closest('.btn') 368$btn.button('toggle')})}(window.jQuery); 369 370 371/* plugins/agitateur_v692/js/bootstrap-collapse.js */ 372!function($){"use strict";var Collapse=function(element,options){this.$element=$(element) 373this.options=$.extend({},$.fn.collapse.defaults,options) 374if(this.options.parent){this.$parent=$(this.options.parent)}this.options.toggle&&this.toggle()} 375Collapse.prototype={constructor:Collapse,dimension:function(){var hasWidth=this.$element.hasClass('width') 376return hasWidth?'width':'height'},show:function(){var dimension,scroll,actives,hasData 377if(this.transitioning||this.$element.hasClass('in'))return 378dimension=this.dimension() 379scroll=$.camelCase(['scroll',dimension].join('-')) 380actives=this.$parent&&this.$parent.find('> .accordion-group > .in') 381if(actives&&actives.length){hasData=actives.data('collapse') 382if(hasData&&hasData.transitioning)return 383actives.collapse('hide') 384hasData||actives.data('collapse',null)}this.$element[dimension](0) 385this.transition('addClass',$.Event('show'),'shown') 386$.support.transition&&this.$element[dimension](this.$element[0][scroll])},hide:function(){var dimension 387if(this.transitioning||!this.$element.hasClass('in'))return 388dimension=this.dimension() 389this.reset(this.$element[dimension]()) 390this.transition('removeClass',$.Event('hide'),'hidden') 391this.$element[dimension](0)},reset:function(size){var dimension=this.dimension() 392this.$element.removeClass('collapse') 393[dimension](size||'auto') 394[0].offsetWidth 395this.$element[size!==null?'addClass':'removeClass']('collapse') 396return this},transition:function(method,startEvent,completeEvent){var that=this,complete=function(){if(startEvent.type=='show')that.reset() 397that.transitioning=0 398that.$element.trigger(completeEvent)} 399this.$element.trigger(startEvent) 400if(startEvent.isDefaultPrevented())return 401this.transitioning=1 402this.$element[method]('in') 403$.support.transition&&this.$element.hasClass('collapse')?this.$element.one($.support.transition.end,complete):complete()},toggle:function(){this[this.$element.hasClass('in')?'hide':'show']()}} 404var old=$.fn.collapse 405$.fn.collapse=function(option){return this.each(function(){var $this=$(this),data=$this.data('collapse'),options=$.extend({},$.fn.collapse.defaults,$this.data(),typeof option=='object'&&option) 406if(!data)$this.data('collapse',(data=new Collapse(this,options))) 407if(typeof option=='string')data[option]()})} 408$.fn.collapse.defaults={toggle:true} 409$.fn.collapse.Constructor=Collapse 410$.fn.collapse.noConflict=function(){$.fn.collapse=old 411return this} 412$(document).on('click.collapse.data-api','[data-toggle=collapse]',function(e){var $this=$(this),href,target=$this.attr('data-target')||e.preventDefault()||(href=$this.attr('href'))&&href.replace(/.*(?=#[^\s]+$)/,''),option=$(target).data('collapse')?'toggle':$this.data() 413$this[$(target).hasClass('in')?'addClass':'removeClass']('collapsed') 414$(target).collapse(option)})}(window.jQuery); 415 416 417/* plugins/agitateur_v692/js/bootstrap-carousel.js */ 418!function($){"use strict";var Carousel=function(element,options){this.$element=$(element) 419this.$indicators=this.$element.find('.carousel-indicators') 420this.options=options 421this.options.pause=='hover'&&this.$element.on('mouseenter',$.proxy(this.pause,this)).on('mouseleave',$.proxy(this.cycle,this))} 422Carousel.prototype={cycle:function(e){if(!e)this.paused=false 423if(this.interval)clearInterval(this.interval);this.options.interval&&!this.paused&&(this.interval=setInterval($.proxy(this.next,this),this.options.interval)) 424return this},getActiveIndex:function(){this.$active=this.$element.find('.item.active') 425this.$items=this.$active.parent().children() 426return this.$items.index(this.$active)},to:function(pos){var activeIndex=this.getActiveIndex(),that=this 427if(pos>(this.$items.length-1)||pos<0)return 428if(this.sliding){return this.$element.one('slid',function(){that.to(pos)})}if(activeIndex==pos){return this.pause().cycle()}return this.slide(pos>activeIndex?'next':'prev',$(this.$items[pos]))},pause:function(e){if(!e)this.paused=true 429if(this.$element.find('.next, .prev').length&&$.support.transition.end){this.$element.trigger($.support.transition.end) 430this.cycle(true)}clearInterval(this.interval) 431this.interval=null 432return this},next:function(){if(this.sliding)return 433return this.slide('next')},prev:function(){if(this.sliding)return 434return this.slide('prev')},slide:function(type,next){var $active=this.$element.find('.item.active'),$next=next||$active[type](),isCycling=this.interval,direction=type=='next'?'left':'right',fallback=type=='next'?'first':'last',that=this,e 435this.sliding=true 436isCycling&&this.pause() 437$next=$next.length?$next:this.$element.find('.item')[fallback]() 438e=$.Event('slide',{relatedTarget:$next[0],direction:direction}) 439if($next.hasClass('active'))return 440if(this.$indicators.length){this.$indicators.find('.active').removeClass('active') 441this.$element.one('slid',function(){var $nextIndicator=$(that.$indicators.children()[that.getActiveIndex()]) 442$nextIndicator&&$nextIndicator.addClass('active')})}
442if($.support.transition&&this.$element.hasClass('slide')){this.$element.trigger(e) 443if(e.isDefaultPrevented())return 444$next.addClass(type) 445$next[0].offsetWidth 446$active.addClass(direction) 447$next.addClass(direction) 448this.$element.one($.support.transition.end,function(){$next.removeClass([type,direction].join(' ')).addClass('active') 449$active.removeClass(['active',direction].join(' ')) 450that.sliding=false 451setTimeout(function(){that.$element.trigger('slid')},0)})}else{this.$element.trigger(e) 452if(e.isDefaultPrevented())return 453$active.removeClass('active') 454$next.addClass('active') 455this.sliding=false 456this.$element.trigger('slid')}isCycling&&this.cycle() 457return this}} 458var old=$.fn.carousel 459$.fn.carousel=function(option){return this.each(function(){var $this=$(this),data=$this.data('carousel'),options=$.extend({},$.fn.carousel.defaults,typeof option=='object'&&option),action=typeof option=='string'?option:options.slide 460if(!data)$this.data('carousel',(data=new Carousel(this,options))) 461if(typeof option=='number')data.to(option) 462else if(action)data[action]() 463else if(options.interval)data.pause().cycle()})} 464$.fn.carousel.defaults={interval:5000,pause:'hover'} 465$.fn.carousel.Constructor=Carousel 466$.fn.carousel.noConflict=function(){$.fn.carousel=old 467return this} 468$(document).on('click.carousel.data-api','[data-slide], [data-slide-to]',function(e){var $this=$(this),href,$target=$($this.attr('data-target')||(href=$this.attr('href'))&&href.replace(/.*(?=#[^\s]+$)/,'')),options=$.extend({},$target.data(),$this.data()),slideIndex 469$target.carousel(options) 470if(slideIndex=$this.attr('data-slide-to')){$target.data('carousel').pause().to(slideIndex).cycle()}e.preventDefault()})}(window.jQuery); 471 472 473/* plugins/agitateur_v692/js/bootstrap-typeahead.js */ 474!function($){"use strict";var Typeahead=function(element,options){this.$element=$(element) 475this.options=$.extend({},$.fn.typeahead.defaults,options) 476this.matcher=this.options.matcher||this.matcher 477this.sorter=this.options.sorter||this.sorter 478this.highlighter=this.options.highlighter||this.highlighter 479this.updater=this.options.updater||this.updater 480this.source=this.options.source 481this.$menu=$(this.options.menu) 482this.shown=false 483this.listen()} 484Typeahead.prototype={constructor:Typeahead,select:function(){var val=this.$menu.find('.active').attr('data-value') 485this.$element.val(this.updater(val)).change() 486return this.hide()},updater:function(item){return item},show:function(){var pos=$.extend({},this.$element.position(),{height:this.$element[0].offsetHeight}) 487this.$menu.insertAfter(this.$element).css({top:pos.top+pos.height,left:pos.left}).show() 488this.shown=true 489return this},hide:function(){this.$menu.hide() 490this.shown=false 491return this},lookup:function(event){var items 492this.query=this.$element.val() 493if(!this.query||this.query.length<this.options.minLength){return this.shown?this.hide():this}items=$.isFunction(this.source)?this.source(this.query,$.proxy(this.process,this)):this.source 494return items?this.process(items):this},process:function(items){var that=this 495items=$.grep(items,function(item){return that.matcher(item)}) 496items=this.sorter(items) 497if(!items.length){return this.shown?this.hide():this}return this.render(items.slice(0,this.options.items)).show()},matcher:function(item){return~item.toLowerCase().indexOf(this.query.toLowerCase())},sorter:function(items){var beginswith=[],caseSensitive=[],caseInsensitive=[],item 498while(item=items.shift()){if(!item.toLowerCase().indexOf(this.query.toLowerCase()))beginswith.push(item) 499else if(~item.indexOf(this.query))caseSensitive.push(item) 500else caseInsensitive.push(item)}return beginswith.concat(caseSensitive,caseInsensitive)},highlighter:function(item){var query=this.query.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,'\\$&') 501return item.replace(new RegExp('('+query+')','ig'),function($1,match){return'<strong>'+match+'</strong>'})},render:function(items){var that=this 502items=$(items).map(function(i,item){i=$(that.options.item).attr('data-value',item) 503i.find('a').html(that.highlighter(item)) 504return i[0]}) 505items.first().addClass('active') 506this.$menu.html(items) 507return this},next:function(event){var active=this.$menu.find('.active').removeClass('active'),next=active.next() 508if(!next.length){next=$(this.$menu.find('li')[0])}next.addClass('active')},prev:function(event){var active=this.$menu.find('.active').removeClass('active'),prev=active.prev() 509if(!prev.length){prev=this.$menu.find('li').last()}prev.addClass('active')},listen:function(){this.$element.on('focus',$.proxy(this.focus,this)).on('blur',$.proxy(this.blur,this)).on('keypress',$.proxy(this.keypress,this)).on('keyup',$.proxy(this.keyup,this)) 510if(this.eventSupported('keydown')){this.$element.on('keydown',$.proxy(this.keydown,this))}this.$menu.on('click',$.proxy(this.click,this)).on('mouseenter','li',$.proxy(this.mouseenter,this)).on('mouseleave','li',$.proxy(this.mouseleave,this))},eventSupported:function(eventName){var isSupported=eventName in this.$element 511if(!isSupported){this.$element.setAttribute(eventName,'return;') 512isSupported=typeof this.$element[eventName]==='function'}return isSupported},move:function(e){if(!this.shown)return 513switch(e.keyCode){case 9:case 13:case 27:e.preventDefault() 514break 515case 38:e.preventDefault() 516this.prev() 517break 518case 40:e.preventDefault() 519this.next() 520break}e.stopPropagation()},keydown:function(e){this.suppressKeyPressRepeat=~$.inArray(e.keyCode,[40,38,9,13,27]) 521this.move(e)},keypress:function(e){if(this.suppressKeyPressRepeat)return 522this.move(e)},keyup:function(e){switch(e.keyCode){case 40:case 38:case 16:case 17:case 18:break 523case 9:case 13:if(!this.shown)return 524this.select() 525break 526case 27:if(!this.shown)return 527this.hide() 528break 529default:this.lookup()}e.stopPropagation() 530e.preventDefault()},focus:function(e){this.focused=true},blur:function(e){this.focused=false 531if(!this.mousedover&&this.shown)this.hide()},click:function(e){e.stopPropagation() 532e.preventDefault() 533this.select() 534this.$element.focus()},mouseenter:function(e){this.mousedover=true 535this.$menu.find('.active').removeClass('active') 536$(e.currentTarget).addClass('active')},mouseleave:function(e){this.mousedover=false 537if(!this.focused&&this.shown)this.hide()}} 538var old=$.fn.typeahead 539$.fn.typeahead=function(option){return this.each(function(){var $this=$(this),data=$this.data('typeahead'),options=typeof option=='object'&&option 540if(!data)$this.data('typeahead',(data=new Typeahead(this,options))) 541if(typeof option=='string')data[option]()})} 542$.fn.typeahead.defaults={source:[],items:8,menu:'<ul class="typeahead dropdown-menu"></ul>',item:'<li><a href="#"></a></li>',minLength:1} 543$.fn.typeahead.Constructor=Typeahead 544$.fn.typeahead.noConflict=function(){$.fn.typeahead=old 545return this} 546$(document).on('focus.typeahead.data-api','[data-provide="typeahead"]',function(e){var $this=$(this) 547if($this.data('typeahead'))return 548$this.typeahead($this.data())})}(window.jQuery); 549 550 551/* plugins/agitateur_v692/js/bootstrap-affix.js */ 552!function($){"use strict";var Affix=function(element,options){this.options=$.extend({},$.fn.affix.defaults,options) 553this.$window=$(window).on('scroll.affix.data-api',$.proxy(this.checkPosition,this)).on('click.affix.data-api',$.proxy(function(){setTimeout($.proxy(this.checkPosition,this),1)},this)) 554this.$element=$(element) 555this.checkPosition()} 556Affix.prototype.checkPosition=function(){if(!this.$element.is(':visible'))return 557var scrollHeight=$(document).height(),scrollTop=this.$window.scrollTop(),position=this.$element.offset(),offset=this.options.offset,offsetBottom=offset.bottom,offsetTop=offset.top,reset='affix affix-top affix-bottom',affix 558if(typeof offset!='object')offsetBottom=offsetTop=offset 559if(typeof offsetTop=='function')offsetTop=offset.top() 560if(typeof offsetBottom=='function')offsetBottom=offset.bottom() 561affix=this.unpin!=null&&(scrollTop+this.unpin<=position.top)?false:offsetBottom!=null&&(position.top+this.$element.height()>=scrollHeight-offsetBottom)?'bottom':offsetTop!=null&&scrollTop<=offsetTop?'top':false 562if(this.affixed===affix)return 563this.affixed=affix 564this.unpin=affix=='bottom'?position.top-scrollTop:null 565this.$element.removeClass(reset).addClass('affix'+(affix?'-'+affix:''))} 566var old=$.fn.affix 567$.fn.affix=function(option){return this.each(function(){var $this=$(this),data=$this.data('affix'),options=typeof option=='object'&&option 568if(!data)$this.data('affix',(data=new Affix(this,options))) 569if(typeof option=='string')data[option]()})} 570$.fn.affix.Constructor=Affix 571$.fn.affix.defaults={offset:0} 572$.fn.affix.noConflict=function(){$.fn.affix=old 573return this} 574$(window).on('load',function(){$('[data-spy="affix"]').each(function(){var $spy=$(this),data=$spy.data() 575data.offset=data.offset||{} 576data.offsetBottom&&(data.offset.bottom=data.offsetBottom) 577data.offsetTop&&(data.offset.top=data.offsetTop) 578$spy.affix(data)})})}(window.jQuery); 579 580 581/* plugins/agitateur_v692/js/application.js */ 582!function($){$(function(){var $window=$(window) 583$('section [href^=#]').click(function(e){e.preventDefault()}) 584setTimeout(function(){$('.bs-docs-sidenav').affix({offset:{top:function(){return $window.width()<=980?290:210},bottom:270}})},100) 585window.prettyPrint&&prettyPrint() 586$('.add-on :checkbox').on('click',function(){var $this=$(this),method=$this.attr('checked')?'addClass':'removeClass' 587$(this).parents('.add-on')[method]('active')}) 588if($('#gridSystem').length){$('#gridSystem').tooltip({selector:'.show-grid > [class*="span"]',title:function(){return $(this).width()+'px'}})}$('.tooltip-demo').tooltip({selector:"a[data-toggle=tooltip]"}) 589$('.tooltip-test').tooltip() 590$('.popover-test').popover() 591$("a[data-toggle=popover]").popover().click(function(e){e.preventDefault()}) 592$('#fat-btn').click(function(){var btn=$(this) 593btn.button('loading') 594setTimeout(function(){btn.button('reset')},3000)}) 595$('#myCarousel').carousel() 596var inputsComponent=$("#components.download input"),inputsPlugin=$("#plugins.download input"),inputsVariables=$("#variables.download input") 597$('#components.download .toggle-all').on('click',function(e){e.preventDefault() 598inputsComponent.attr('checked',!inputsComponent.is(':checked'))}) 599$('#plugins.download .toggle-all').on('click',function(e){e.preventDefault() 600inputsPlugin.attr('checked',!inputsPlugin.is(':checked'))}) 601$('#variables.download .toggle-all').on('click',function(e){e.preventDefault() 602inputsVariables.val('')}) 603$('.download-btn .btn').on('click',function(){var css=$("#components.download input:checked").map(function(){return this.value}).toArray(),js=$("#plugins.download input:checked").map(function(){return this.value}).toArray(),vars={},img=['glyphicons-halflings.png','glyphicons-halflings-white.png'] 604$("#variables.download input").each(function(){$(this).val()&&(vars[$(this).prev().text()]=$(this).val())}) 605$.ajax({type:'POST',url:/\?dev/.test(window.location)?'http://localhost:3000':'http://bootstrap.herokuapp.com',dataType:'jsonpi',params:{js:js,css:css,vars:vars,img:img}})})}) 606$.ajaxTransport('jsonpi',function(opts,originalOptions,jqXHR){var url=opts.url;return{send:function(_,completeCallback){var name='jQuery_iframe_'+jQuery.now(),iframe,form 607iframe=$('<iframe>').attr('name',name).appendTo('head') 608form=$('<form>').attr('method',opts.type).attr('action',url).attr('target',name) 609$.each(opts.params,function(k,v){$('<input>').attr('type','hidden').attr('name',k).attr('value',typeof v=='string'?v:JSON.stringify(v)).appendTo(form)}) 610form.appendTo('body').submit()}}})}(window.jQuery); 611 612 613/* prive/javascript/jquery.js?1790327464 */ 614 615(function(global,factory){ 616"use strict"; 617if(typeof module==="object"&&typeof module.exports==="object"){ 618module.exports=global.document? 619factory(global,true): 620function(w){ 621if(!w.document){ 622throw new Error("jQuery requires a window with a document"); 623} 624return factory(w); 625}; 626}else{ 627factory(global); 628} 629})(typeof window!=="undefined"?window:this,function(window,noGlobal){ 630"use strict"; 631var arr=[]; 632var getProto=Object.getPrototypeOf; 633var slice=arr.slice; 634var flat=arr.flat?function(array){ 635return arr.flat.call(array); 636}:function(array){ 637return arr.concat.apply([],array); 638}; 639var push=arr.push; 640var indexOf=arr.indexOf; 641var class2type={}; 642var toString=class2type.toString; 643var hasOwn=class2type.hasOwnProperty; 644var fnToString=hasOwn.toString; 645var ObjectFunctionString=fnToString.call(Object); 646var support={}; 647var isFunction=function isFunction(obj){ 648return typeof obj==="function"&&typeof obj.nodeType!=="number"&& 649typeof obj.item!=="function"; 650}; 651var isWindow=function isWindow(obj){ 652return obj!=null&&obj===obj.window; 653}; 654var document=window.document; 655var preservedScriptAttributes={ 656type:true, 657src:true, 658nonce:true, 659noModule:true 660}; 661function DOMEval(code,node,doc){ 662doc=doc||document; 663var i,val, 664script=doc.createElement("script"); 665script.text=code; 666if(node){ 667for(i in preservedScriptAttributes){ 668val=node[i]||node.getAttribute&&node.getAttribute(i); 669if(val){ 670script.setAttribute(i,val); 671} 672} 673} 674doc.head.appendChild(script).parentNode.removeChild(script); 675} 676function toType(obj){ 677if(obj==null){ 678return obj+""; 679} 680return typeof obj==="object"||typeof obj==="function"? 681class2type[toString.call(obj)]||"object": 682typeof obj; 683} 684var version="3.7.1", 685rhtmlSuffix=/HTML$/i, 686jQuery=function(selector,context){ 687return new jQuery.fn.init(selector,context); 688}; 689jQuery.fn=jQuery.prototype={ 690jquery:version, 691constructor:jQuery, 692length:0, 693toArray:function(){ 694return slice.call(this); 695}, 696get:function(num){ 697if(num==null){ 698return slice.call(this); 699} 700return num<0?this[num+this.length]:this[num]; 701}, 702pushStack:function(elems){ 703var ret=jQuery.merge(this.constructor(),elems);
vendor: 141,740 bytes, lines 704-7228
704ret.prevObject=this; 705return ret; 706}, 707each:function(callback){ 708return jQuery.each(this,callback); 709}, 710map:function(callback){ 711return this.pushStack(jQuery.map(this,function(elem,i){ 712return callback.call(elem,i,elem); 713})); 714}, 715slice:function(){ 716return this.pushStack(slice.apply(this,arguments)); 717}, 718first:function(){ 719return this.eq(0); 720}, 721last:function(){ 722return this.eq(-1); 723}, 724even:function(){ 725return this.pushStack(jQuery.grep(this,function(_elem,i){ 726return(i+1)%2; 727})); 728}, 729odd:function(){ 730return this.pushStack(jQuery.grep(this,function(_elem,i){ 731return i%2; 732})); 733}, 734eq:function(i){ 735var len=this.length, 736j=+i+(i<0?len:0); 737return this.pushStack(j>=0&&j<len?[this[j]]:[]); 738}, 739end:function(){ 740return this.prevObject||this.constructor(); 741}, 742push:push, 743sort:arr.sort, 744splice:arr.splice 745}; 746jQuery.extend=jQuery.fn.extend=function(){ 747var options,name,src,copy,copyIsArray,clone, 748target=arguments[0]||{}, 749i=1, 750length=arguments.length, 751deep=false; 752if(typeof target==="boolean"){ 753deep=target; 754target=arguments[i]||{}; 755i++; 756} 757if(typeof target!=="object"&&!isFunction(target)){ 758target={}; 759} 760if(i===length){ 761target=this; 762i--; 763} 764for(;i<length;i++){ 765if((options=arguments[i])!=null){ 766for(name in options){ 767copy=options[name]; 768if(name==="__proto__"||target===copy){ 769continue; 770} 771if(deep&©&&(jQuery.isPlainObject(copy)|| 772(copyIsArray=Array.isArray(copy)))){ 773src=target[name]; 774if(copyIsArray&&!Array.isArray(src)){ 775clone=[]; 776}else if(!copyIsArray&&!jQuery.isPlainObject(src)){ 777clone={}; 778}else{ 779clone=src; 780} 781copyIsArray=false; 782target[name]=jQuery.extend(deep,clone,copy); 783}else if(copy!==undefined){ 784target[name]=copy; 785} 786} 787} 788} 789return target; 790}; 791jQuery.extend({ 792expando:"jQuery"+(version+Math.random()).replace(/\D/g,""), 793isReady:true, 794error:function(msg){ 795throw new Error(msg); 796}, 797noop:function(){}, 798isPlainObject:function(obj){ 799var proto,Ctor; 800if(!obj||toString.call(obj)!=="[object Object]"){ 801return false; 802} 803proto=getProto(obj); 804if(!proto){ 805return true; 806} 807Ctor=hasOwn.call(proto,"constructor")&&proto.constructor; 808return typeof Ctor==="function"&&fnToString.call(Ctor)===ObjectFunctionString; 809}, 810isEmptyObject:function(obj){ 811var name; 812for(name in obj){ 813return false; 814} 815return true; 816}, 817globalEval:function(code,options,doc){ 818DOMEval(code,{nonce:options&&options.nonce},doc); 819}, 820each:function(obj,callback){ 821var length,i=0; 822if(isArrayLike(obj)){ 823length=obj.length; 824for(;i<length;i++){ 825if(callback.call(obj[i],i,obj[i])===false){ 826break; 827} 828} 829}else{ 830for(i in obj){ 831if(callback.call(obj[i],i,obj[i])===false){ 832break; 833} 834} 835} 836return obj; 837}, 838text:function(elem){ 839var node, 840ret="", 841i=0, 842nodeType=elem.nodeType; 843if(!nodeType){ 844while((node=elem[i++])){ 845ret+=jQuery.text(node); 846} 847} 848if(nodeType===1||nodeType===11){ 849return elem.textContent; 850} 851if(nodeType===9){ 852return elem.documentElement.textContent; 853} 854if(nodeType===3||nodeType===4){ 855return elem.nodeValue; 856} 857return ret; 858}, 859makeArray:function(arr,results){ 860var ret=results||[]; 861if(arr!=null){ 862if(isArrayLike(Object(arr))){ 863jQuery.merge(ret, 864typeof arr==="string"? 865[arr]:arr 866); 867}else{ 868push.call(ret,arr); 869} 870} 871return ret; 872}, 873inArray:function(elem,arr,i){ 874return arr==null?-1:indexOf.call(arr,elem,i); 875}, 876isXMLDoc:function(elem){ 877var namespace=elem&&elem.namespaceURI, 878docElem=elem&&(elem.ownerDocument||elem).documentElement; 879return!rhtmlSuffix.test(namespace||docElem&&docElem.nodeName||"HTML"); 880}, 881merge:function(first,second){ 882var len=+second.length, 883j=0, 884i=first.length; 885for(;j<len;j++){ 886first[i++]=second[j]; 887} 888first.length=i; 889return first; 890}, 891grep:function(elems,callback,invert){ 892var callbackInverse, 893matches=[], 894i=0, 895length=elems.length, 896callbackExpect=!invert; 897for(;i<length;i++){ 898callbackInverse=!callback(elems[i],i); 899if(callbackInverse!==callbackExpect){ 900matches.push(elems[i]); 901} 902} 903return matches; 904}, 905map:function(elems,callback,arg){ 906var length,value, 907i=0, 908ret=[]; 909if(isArrayLike(elems)){ 910length=elems.length; 911for(;i<length;i++){ 912value=callback(elems[i],i,arg); 913if(value!=null){ 914ret.push(value); 915} 916} 917}else{ 918for(i in elems){ 919value=callback(elems[i],i,arg); 920if(value!=null){ 921ret.push(value); 922} 923} 924} 925return flat(ret); 926}, 927guid:1, 928support:support 929}); 930if(typeof Symbol==="function"){ 931jQuery.fn[Symbol.iterator]=arr[Symbol.iterator]; 932} 933jQuery.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "), 934function(_i,name){ 935class2type["[object "+name+"]"]=name.toLowerCase(); 936}); 937function isArrayLike(obj){ 938var length=!!obj&&"length"in obj&&obj.length, 939type=toType(obj); 940if(isFunction(obj)||isWindow(obj)){ 941return false; 942} 943return type==="array"||length===0|| 944typeof length==="number"&&length>0&&(length-1)in obj; 945} 946function nodeName(elem,name){ 947return elem.nodeName&&elem.nodeName.toLowerCase()===name.toLowerCase(); 948} 949var pop=arr.pop; 950var sort=arr.sort; 951var splice=arr.splice; 952var whitespace="[\\x20\\t\\r\\n\\f]"; 953var rtrimCSS=new RegExp( 954"^"+whitespace+"+|((?:^|[^\\\\])(?:\\\\.)*)"+whitespace+"+$", 955"g" 956); 957jQuery.contains=function(a,b){ 958var bup=b&&b.parentNode; 959return a===bup||!!(bup&&bup.nodeType===1&&( 960a.contains? 961a.contains(bup): 962a.compareDocumentPosition&&a.compareDocumentPosition(bup)&16 963)); 964}; 965var rcssescape=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g; 966function fcssescape(ch,asCodePoint){ 967if(asCodePoint){ 968if(ch==="\0"){ 969return"\uFFFD"; 970} 971return ch.slice(0,-1)+"\\"+ch.charCodeAt(ch.length-1).toString(16)+" "; 972} 973return"\\"+ch; 974} 975jQuery.escapeSelector=function(sel){ 976return(sel+"").replace(rcssescape,fcssescape); 977}; 978var preferredDoc=document, 979pushNative=push; 980(function(){ 981var i, 982Expr, 983outermostContext, 984sortInput, 985hasDuplicate, 986push=pushNative, 987document, 988documentElement, 989documentIsHTML, 990rbuggyQSA, 991matches, 992expando=jQuery.expando, 993dirruns=0, 994done=0, 995classCache=createCache(), 996tokenCache=createCache(), 997compilerCache=createCache(), 998nonnativeSelectorCache=createCache(), 999sortOrder=function(a,b){ 1000if(a===b){ 1001hasDuplicate=true; 1002} 1003return 0; 1004}, 1005booleans="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|"+ 1006"loop|multiple|open|readonly|required|scoped", 1007identifier="(?:\\\\[\\da-fA-F]{1,6}"+whitespace+ 1008"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+", 1009attributes="\\["+whitespace+"*("+identifier+")(?:"+whitespace+ 1010"*([*^$|!~]?=)"+whitespace+ 1011"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+identifier+"))|)"+ 1012whitespace+"*\\]", 1013pseudos=":("+identifier+")(?:\\(("+ 1014"('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|"+ 1015"((?:\\\\.|[^\\\\()[\\]]|"+attributes+")*)|"+ 1016".*"+ 1017")\\)|)", 1018rwhitespace=new RegExp(whitespace+"+","g"), 1019rcomma=new RegExp("^"+whitespace+"*,"+whitespace+"*"), 1020rleadingCombinator=new RegExp("^"+whitespace+"*([>+~]|"+whitespace+")"+ 1021whitespace+"*"), 1022rdescend=new RegExp(whitespace+"|>"), 1023rpseudo=new RegExp(pseudos), 1024ridentifier=new RegExp("^"+identifier+"$"), 1025matchExpr={ 1026ID:new RegExp("^#("+identifier+")"), 1027CLASS:new RegExp("^\\.("+identifier+")"), 1028TAG:new RegExp("^("+identifier+"|[*])"), 1029ATTR:new RegExp("^"+attributes), 1030PSEUDO:new RegExp("^"+pseudos), 1031CHILD:new RegExp( 1032"^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ 1033whitespace+"*(even|odd|(([+-]|)(\\d*)n|)"+whitespace+"*(?:([+-]|)"+ 1034whitespace+"*(\\d+)|))"+whitespace+"*\\)|)","i"), 1035bool:new RegExp("^(?:"+booleans+")$","i"), 1036needsContext:new RegExp("^"+whitespace+ 1037"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+whitespace+ 1038"*((?:-\\d)?\\d*)"+whitespace+"*\\)|)(?=[^-]|$)","i") 1039}, 1040rinputs=/^(?:input|select|textarea|button)$/i, 1041rheader=/^h\d$/i, 1042rquickExpr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, 1043rsibling=/[+~]/, 1044runescape=new RegExp("\\\\[\\da-fA-F]{1,6}"+whitespace+ 1045"?|\\\\([^\\r\\n\\f])","g"), 1046funescape=function(escape,nonHex){ 1047var high="0x"+escape.slice(1)-0x10000; 1048if(nonHex){ 1049return nonHex; 1050} 1051return high<0? 1052String.fromCharCode(high+0x10000): 1053String.fromCharCode(high>>10|0xD800,high&0x3FF|0xDC00); 1054}, 1055unloadHandler=function(){ 1056setDocument(); 1057}, 1058inDisabledFieldset=addCombinator( 1059function(elem){ 1060return elem.disabled===true&&nodeName(elem,"fieldset"); 1061}, 1062{dir:"parentNode",next:"legend"} 1063); 1064function safeActiveElement(){ 1065try{ 1066return document.activeElement; 1067}catch(err){} 1068} 1069try{ 1070push.apply( 1071(arr=slice.call(preferredDoc.childNodes)), 1072preferredDoc.childNodes 1073); 1074arr[preferredDoc.childNodes.length].nodeType; 1075}catch(e){ 1076push={ 1077apply:function(target,els){ 1078pushNative.apply(target,slice.call(els)); 1079}, 1080call:function(target){ 1081pushNative.apply(target,slice.call(arguments,1)); 1082} 1083}; 1084} 1085function find(selector,context,results,seed){ 1086var m,i,elem,nid,match,groups,newSelector, 1087newContext=context&&context.ownerDocument, 1088nodeType=context?context.nodeType:9; 1089results=results||[]; 1090if(typeof selector!=="string"||!selector|| 1091nodeType!==1&&nodeType!==9&&nodeType!==11){ 1092return results; 1093} 1094if(!seed){ 1095setDocument(context); 1096context=context||document; 1097if(documentIsHTML){ 1098if(nodeType!==11&&(match=rquickExpr.exec(selector))){ 1099if((m=match[1])){ 1100if(nodeType===9){ 1101if((elem=context.getElementById(m))){ 1102if(elem.id===m){ 1103push.call(results,elem); 1104return results; 1105} 1106}else{ 1107return results; 1108} 1109}else{ 1110if(newContext&&(elem=newContext.getElementById(m))&& 1111find.contains(context,elem)&& 1112elem.id===m){ 1113push.call(results,elem); 1114return results; 1115} 1116} 1117}else if(match[2]){ 1118push.apply(results,context.getElementsByTagName(selector)); 1119return results; 1120}else if((m=match[3])&&context.getElementsByClassName){ 1121push.apply(results,context.getElementsByClassName(m)); 1122return results; 1123} 1124} 1125if(!nonnativeSelectorCache[selector+" "]&& 1126(!rbuggyQSA||!rbuggyQSA.test(selector))){ 1127newSelector=selector; 1128newContext=context; 1129if(nodeType===1&& 1130(rdescend.test(selector)||rleadingCombinator.test(selector))){ 1131newContext=rsibling.test(selector)&&testContext(context.parentNode)|| 1132context; 1133if(newContext!=context||!support.scope){ 1134if((nid=context.getAttribute("id"))){ 1135nid=jQuery.escapeSelector(nid); 1136}else{ 1137context.setAttribute("id",(nid=expando)); 1138} 1139} 1140groups=tokenize(selector); 1141i=groups.length; 1142while(i--){ 1143groups[i]=(nid?"#"+nid:":scope")+" "+ 1144toSelector(groups[i]); 1145} 1146newSelector=groups.join(","); 1147} 1148try{ 1149push.apply(results, 1150newContext.querySelectorAll(newSelector) 1151); 1152return results; 1153}catch(qsaError){ 1154nonnativeSelectorCache(selector,true); 1155}finally{ 1156if(nid===expando){ 1157context.removeAttribute("id"); 1158} 1159} 1160} 1161} 1162} 1163return select(selector.replace(rtrimCSS,"$1"),context,results,seed); 1164} 1165function createCache(){ 1166var keys=[]; 1167function cache(key,value){ 1168if(keys.push(key+" ")>Expr.cacheLength){ 1169delete cache[keys.shift()]; 1170} 1171return(cache[key+" "]=value); 1172} 1173return cache; 1174} 1175function markFunction(fn){ 1176fn[expando]=true; 1177return fn; 1178} 1179function assert(fn){ 1180var el=document.createElement("fieldset"); 1181try{ 1182return!!fn(el); 1183}catch(e){ 1184return false; 1185}finally{ 1186if(el.parentNode){ 1187el.parentNode.removeChild(el); 1188} 1189el=null; 1190} 1191} 1192function createInputPseudo(type){ 1193return function(elem){ 1194return nodeName(elem,"input")&&elem.type===type; 1195}; 1196} 1197function createButtonPseudo(type){ 1198return function(elem){ 1199return(nodeName(elem,"input")||nodeName(elem,"button"))&& 1200elem.type===type; 1201}; 1202} 1203function createDisabledPseudo(disabled){ 1204return function(elem){ 1205if("form"in elem){ 1206if(elem.parentNode&&elem.disabled===false){ 1207if("label"in elem){ 1208if("label"in elem.parentNode){ 1209return elem.parentNode.disabled===disabled; 1210}else{ 1211return elem.disabled===disabled; 1212} 1213} 1214return elem.isDisabled===disabled|| 1215elem.isDisabled!==!disabled&& 1216inDisabledFieldset(elem)===disabled; 1217} 1218return elem.disabled===disabled; 1219}else if("label"in elem){ 1220return elem.disabled===disabled; 1221} 1222return false; 1223}; 1224} 1225function createPositionalPseudo(fn){ 1226return markFunction(function(argument){ 1227argument=+argument; 1228return markFunction(function(seed,matches){ 1229var j, 1230matchIndexes=fn([],seed.length,argument), 1231i=matchIndexes.length; 1232while(i--){ 1233if(seed[(j=matchIndexes[i])]){ 1234seed[j]=!(matches[j]=seed[j]); 1235} 1236} 1237}); 1238}); 1239} 1240function testContext(context){ 1241return context&&typeof context.getElementsByTagName!=="undefined"&&context; 1242} 1243function setDocument(node){ 1244var subWindow, 1245doc=node?node.ownerDocument||node:preferredDoc; 1246if(doc==document||doc.nodeType!==9||!doc.documentElement){ 1247return document; 1248} 1249document=doc; 1250documentElement=document.documentElement; 1251documentIsHTML=!jQuery.isXMLDoc(document); 1252matches=documentElement.matches|| 1253documentElement.webkitMatchesSelector|| 1254documentElement.msMatchesSelector; 1255if(documentElement.msMatchesSelector&& 1256preferredDoc!=document&& 1257(subWindow=document.defaultView)&&subWindow.top!==subWindow){ 1258subWindow.addEventListener("unload",unloadHandler); 1259} 1260support.getById=assert(function(el){ 1261documentElement.appendChild(el).id=jQuery.expando; 1262return!document.getElementsByName|| 1263!document.getElementsByName(jQuery.expando).length; 1264}); 1265support.disconnectedMatch=assert(function(el){ 1266return matches.call(el,"*"); 1267}); 1268support.scope=assert(function(){ 1269return document.querySelectorAll(":scope"); 1270}); 1271support.cssHas=assert(function(){ 1272try{ 1273document.querySelector(":has(*,:jqfake)"); 1274return false; 1275}catch(e){ 1276return true; 1277} 1278}); 1279if(support.getById){ 1280Expr.filter.ID=function(id){ 1281var attrId=id.replace(runescape,funescape); 1282return function(elem){ 1283return elem.getAttribute("id")===attrId; 1284}; 1285}; 1286Expr.find.ID=function(id,context){ 1287if(typeof context.getElementById!=="undefined"&&documentIsHTML){ 1288var elem=context.getElementById(id); 1289return elem?[elem]:[]; 1290} 1291}; 1292}else{ 1293Expr.filter.ID=function(id){ 1294var attrId=id.replace(runescape,funescape); 1295return function(elem){ 1296var node=typeof elem.getAttributeNode!=="undefined"&& 1297elem.getAttributeNode("id"); 1298return node&&node.value===attrId; 1299}; 1300}; 1301Expr.find.ID=function(id,context){ 1302if(typeof context.getElementById!=="undefined"&&documentIsHTML){ 1303var node,i,elems, 1304elem=context.getElementById(id); 1305if(elem){ 1306node=elem.getAttributeNode("id"); 1307if(node&&node.value===id){ 1308return[elem]; 1309} 1310elems=context.getElementsByName(id); 1311i=0; 1312while((elem=elems[i++])){ 1313node=elem.getAttributeNode("id"); 1314if(node&&node.value===id){ 1315return[elem]; 1316} 1317} 1318} 1319return[]; 1320} 1321}; 1322} 1323Expr.find.TAG=function(tag,context){ 1324if(typeof context.getElementsByTagName!=="undefined"){ 1325return context.getElementsByTagName(tag); 1326}else{ 1327return context.querySelectorAll(tag); 1328} 1329}; 1330Expr.find.CLASS=function(className,context){ 1331if(typeof context.getElementsByClassName!=="undefined"&&documentIsHTML){ 1332return context.getElementsByClassName(className); 1333} 1334}; 1335rbuggyQSA=[]; 1336assert(function(el){ 1337var input; 1338documentElement.appendChild(el).innerHTML= 1339"<a id='"+expando+"' href='' disabled='disabled'></a>"+ 1340"<select id='"+expando+"-\r\\' disabled='disabled'>"+ 1341"<option selected=''></option></select>"; 1342if(!el.querySelectorAll("[selected]").length){ 1343rbuggyQSA.push("\\["+whitespace+"*(?:value|"+booleans+")"); 1344} 1345if(!el.querySelectorAll("[id~="+expando+"-]").length){ 1346rbuggyQSA.push("~="); 1347} 1348if(!el.querySelectorAll("a#"+expando+"+*").length){ 1349rbuggyQSA.push(".#.+[+~]"); 1350} 1351if(!el.querySelectorAll(":checked").length){ 1352rbuggyQSA.push(":checked"); 1353} 1354input=document.createElement("input"); 1355input.setAttribute("type","hidden"); 1356el.appendChild(input).setAttribute("name","D"); 1357documentElement.appendChild(el).disabled=true; 1358if(el.querySelectorAll(":disabled").length!==2){ 1359rbuggyQSA.push(":enabled",":disabled"); 1360} 1361input=document.createElement("input"); 1362input.setAttribute("name",""); 1363el.appendChild(input); 1364if(!el.querySelectorAll("[name='']").length){ 1365rbuggyQSA.push("\\["+whitespace+"*name"+whitespace+"*="+ 1366whitespace+"*(?:''|\"\")"); 1367} 1368}); 1369if(!support.cssHas){ 1370rbuggyQSA.push(":has"); 1371} 1372rbuggyQSA=rbuggyQSA.length&&new RegExp(rbuggyQSA.join("|")); 1373sortOrder=function(a,b){ 1374if(a===b){ 1375hasDuplicate=true; 1376return 0; 1377} 1378var compare=!a.compareDocumentPosition-!b.compareDocumentPosition; 1379if(compare){ 1380return compare; 1381} 1382compare=(a.ownerDocument||a)==(b.ownerDocument||b)? 1383a.compareDocumentPosition(b): 13841; 1385if(compare&1|| 1386(!support.sortDetached&&b.compareDocumentPosition(a)===compare)){ 1387if(a===document||a.ownerDocument==preferredDoc&& 1388find.contains(preferredDoc,a)){ 1389return-1; 1390} 1391if(b===document||b.ownerDocument==preferredDoc&& 1392find.contains(preferredDoc,b)){ 1393return 1; 1394} 1395return sortInput? 1396(indexOf.call(sortInput,a)-indexOf.call(sortInput,b)): 13970; 1398} 1399return compare&4?-1:1; 1400}; 1401return document; 1402} 1403find.matches=function(expr,elements){ 1404return find(expr,null,null,elements); 1405}; 1406find.matchesSelector=function(elem,expr){ 1407setDocument(elem); 1408if(documentIsHTML&& 1409!nonnativeSelectorCache[expr+" "]&& 1410(!rbuggyQSA||!rbuggyQSA.test(expr))){ 1411try{ 1412var ret=matches.call(elem,expr); 1413if(ret||support.disconnectedMatch|| 1414elem.document&&elem.document.nodeType!==11){ 1415return ret; 1416} 1417}catch(e){ 1418nonnativeSelectorCache(expr,true); 1419} 1420} 1421return find(expr,document,null,[elem]).length>0; 1422}; 1423find.contains=function(context,elem){ 1424if((context.ownerDocument||context)!=document){ 1425setDocument(context); 1426} 1427return jQuery.contains(context,elem); 1428}; 1429find.attr=function(elem,name){ 1430if((elem.ownerDocument||elem)!=document){ 1431setDocument(elem); 1432} 1433var fn=Expr.attrHandle[name.toLowerCase()], 1434val=fn&&hasOwn.call(Expr.attrHandle,name.toLowerCase())? 1435fn(elem,name,!documentIsHTML): 1436undefined; 1437if(val!==undefined){ 1438return val; 1439} 1440return elem.getAttribute(name); 1441}; 1442find.error=function(msg){ 1443throw new Error("Syntax error, unrecognized expression: "+msg); 1444}; 1445jQuery.uniqueSort=function(results){ 1446var elem, 1447duplicates=[], 1448j=0, 1449i=0; 1450hasDuplicate=!support.sortStable; 1451sortInput=!support.sortStable&&slice.call(results,0); 1452sort.call(results,sortOrder); 1453if(hasDuplicate){ 1454while((elem=results[i++])){ 1455if(elem===results[i]){ 1456j=duplicates.push(i); 1457} 1458} 1459while(j--){ 1460splice.call(results,duplicates[j],1); 1461} 1462} 1463sortInput=null; 1464return results; 1465}; 1466jQuery.fn.uniqueSort=function(){ 1467return this.pushStack(jQuery.uniqueSort(slice.apply(this))); 1468}; 1469Expr=jQuery.expr={ 1470cacheLength:50, 1471createPseudo:markFunction, 1472match:matchExpr, 1473attrHandle:{}, 1474find:{}, 1475relative:{ 1476">":{dir:"parentNode",first:true}, 1477" ":{dir:"parentNode"}, 1478"+":{dir:"previousSibling",first:true}, 1479"~":{dir:"previousSibling"} 1480}, 1481preFilter:{ 1482ATTR:function(match){ 1483match[1]=match[1].replace(runescape,funescape); 1484match[3]=(match[3]||match[4]||match[5]||"") 1485.replace(runescape,funescape); 1486if(match[2]==="~="){ 1487match[3]=" "+match[3]+" "; 1488} 1489return match.slice(0,4); 1490}, 1491CHILD:function(match){ 1492match[1]=match[1].toLowerCase(); 1493if(match[1].slice(0,3)==="nth"){ 1494if(!match[3]){ 1495find.error(match[0]); 1496} 1497match[4]=+(match[4]? 1498match[5]+(match[6]||1): 14992*(match[3]==="even"||match[3]==="odd") 1500); 1501match[5]=+((match[7]+match[8])||match[3]==="odd"); 1502}else if(match[3]){ 1503find.error(match[0]); 1504} 1505return match; 1506}, 1507PSEUDO:function(match){ 1508var excess, 1509unquoted=!match[6]&&match[2]; 1510if(matchExpr.CHILD.test(match[0])){ 1511return null; 1512} 1513if(match[3]){ 1514match[2]=match[4]||match[5]||""; 1515}else if(unquoted&&rpseudo.test(unquoted)&& 1516(excess=tokenize(unquoted,true))&& 1517(excess=unquoted.indexOf(")",unquoted.length-excess)-unquoted.length)){ 1518match[0]=match[0].slice(0,excess); 1519match[2]=unquoted.slice(0,excess); 1520} 1521return match.slice(0,3); 1522} 1523}, 1524filter:{ 1525TAG:function(nodeNameSelector){ 1526var expectedNodeName=nodeNameSelector.replace(runescape,funescape).toLowerCase(); 1527return nodeNameSelector==="*"? 1528function(){ 1529return true; 1530}: 1531function(elem){ 1532return nodeName(elem,expectedNodeName); 1533}; 1534}, 1535CLASS:function(className){ 1536var pattern=classCache[className+" "]; 1537return pattern|| 1538(pattern=new RegExp("(^|"+whitespace+")"+className+ 1539"("+whitespace+"|$)"))&& 1540classCache(className,function(elem){ 1541return pattern.test( 1542typeof elem.className==="string"&&elem.className|| 1543typeof elem.getAttribute!=="undefined"&& 1544elem.getAttribute("class")|| 1545"" 1546); 1547}); 1548}, 1549ATTR:function(name,operator,check){ 1550return function(elem){ 1551var result=find.attr(elem,name); 1552if(result==null){ 1553return operator==="!="; 1554} 1555if(!operator){ 1556return true; 1557} 1558result+=""; 1559if(operator==="="){ 1560return result===check; 1561} 1562if(operator==="!="){ 1563return result!==check; 1564} 1565if(operator==="^="){ 1566return check&&result.indexOf(check)===0; 1567} 1568if(operator==="*="){ 1569return check&&result.indexOf(check)>-1; 1570} 1571if(operator==="$="){ 1572return check&&result.slice(-check.length)===check; 1573} 1574if(operator==="~="){ 1575return(" "+result.replace(rwhitespace," ")+" ") 1576.indexOf(check)>-1; 1577} 1578if(operator==="|="){ 1579return result===check||result.slice(0,check.length+1)===check+"-"; 1580} 1581return false; 1582}; 1583}, 1584CHILD:function(type,what,_argument,first,last){ 1585var simple=type.slice(0,3)!=="nth", 1586forward=type.slice(-4)!=="last", 1587ofType=what==="of-type"; 1588return first===1&&last===0? 1589function(elem){ 1590return!!elem.parentNode; 1591}: 1592function(elem,_context,xml){ 1593var cache,outerCache,node,nodeIndex,start, 1594dir=simple!==forward?"nextSibling":"previousSibling", 1595parent=elem.parentNode, 1596name=ofType&&elem.nodeName.toLowerCase(), 1597useCache=!xml&&!ofType, 1598diff=false; 1599if(parent){ 1600if(simple){ 1601while(dir){ 1602node=elem; 1603while((node=node[dir])){ 1604if(ofType? 1605nodeName(node,name): 1606node.nodeType===1){ 1607return false; 1608} 1609} 1610start=dir=type==="only"&&!start&&"nextSibling"; 1611} 1612return true; 1613} 1614start=[forward?parent.firstChild:parent.lastChild]; 1615if(forward&&useCache){ 1616outerCache=parent[expando]||(parent[expando]={}); 1617cache=outerCache[type]||[]; 1618nodeIndex=cache[0]===dirruns&&cache[1]; 1619diff=nodeIndex&&cache[2]; 1620node=nodeIndex&&parent.childNodes[nodeIndex]; 1621while((node=++nodeIndex&&node&&node[dir]|| 1622(diff=nodeIndex=0)||start.pop())){ 1623if(node.nodeType===1&&++diff&&node===elem){ 1624outerCache[type]=[dirruns,nodeIndex,diff]; 1625break; 1626} 1627} 1628}else{ 1629if(useCache){ 1630outerCache=elem[expando]||(elem[expando]={}); 1631cache=outerCache[type]||[]; 1632nodeIndex=cache[0]===dirruns&&cache[1]; 1633diff=nodeIndex; 1634} 1635if(diff===false){ 1636while((node=++nodeIndex&&node&&node[dir]|| 1637(diff=nodeIndex=0)||start.pop())){ 1638if((ofType? 1639nodeName(node,name): 1640node.nodeType===1)&& 1641++diff){ 1642if(useCache){ 1643outerCache=node[expando]|| 1644(node[expando]={}); 1645outerCache[type]=[dirruns,diff]; 1646} 1647if(node===elem){ 1648break; 1649} 1650} 1651} 1652} 1653} 1654diff-=last; 1655return diff===first||(diff%first===0&&diff/first>=0); 1656} 1657}; 1658}, 1659PSEUDO:function(pseudo,argument){ 1660var args, 1661fn=Expr.pseudos[pseudo]||Expr.setFilters[pseudo.toLowerCase()]|| 1662find.error("unsupported pseudo: "+pseudo); 1663if(fn[expando]){ 1664return fn(argument); 1665} 1666if(fn.length>1){ 1667args=[pseudo,pseudo,"",argument]; 1668return Expr.setFilters.hasOwnProperty(pseudo.toLowerCase())? 1669markFunction(function(seed,matches){ 1670var idx, 1671matched=fn(seed,argument), 1672i=matched.length; 1673while(i--){ 1674idx=indexOf.call(seed,matched[i]); 1675seed[idx]=!(matches[idx]=matched[i]); 1676} 1677}): 1678function(elem){ 1679return fn(elem,0,args); 1680}; 1681} 1682return fn; 1683} 1684}, 1685pseudos:{ 1686not:markFunction(function(selector){ 1687var input=[], 1688results=[], 1689matcher=compile(selector.replace(rtrimCSS,"$1")); 1690return matcher[expando]? 1691markFunction(function(seed,matches,_context,xml){ 1692var elem, 1693unmatched=matcher(seed,null,xml,[]), 1694i=seed.length; 1695while(i--){ 1696if((elem=unmatched[i])){ 1697seed[i]=!(matches[i]=elem); 1698} 1699} 1700}): 1701function(elem,_context,xml){ 1702input[0]=elem; 1703matcher(input,null,xml,results); 1704input[0]=null; 1705return!results.pop(); 1706}; 1707}), 1708has:markFunction(function(selector){ 1709return function(elem){ 1710return find(selector,elem).length>0; 1711}; 1712}), 1713contains:markFunction(function(text){ 1714text=text.replace(runescape,funescape); 1715return function(elem){ 1716return(elem.textContent||jQuery.text(elem)).indexOf(text)>-1; 1717}; 1718}), 1719lang:markFunction(function(lang){ 1720if(!ridentifier.test(lang||"")){ 1721find.error("unsupported lang: "+lang); 1722} 1723lang=lang.replace(runescape,funescape).toLowerCase(); 1724return function(elem){ 1725var elemLang; 1726do{ 1727if((elemLang=documentIsHTML? 1728elem.lang: 1729elem.getAttribute("xml:lang")||elem.getAttribute("lang"))){ 1730elemLang=elemLang.toLowerCase(); 1731return elemLang===lang||elemLang.indexOf(lang+"-")===0; 1732} 1733}while((elem=elem.parentNode)&&elem.nodeType===1); 1734return false; 1735}; 1736}), 1737target:function(elem){ 1738var hash=window.location&&window.location.hash; 1739return hash&&hash.slice(1)===elem.id; 1740}, 1741root:function(elem){ 1742return elem===documentElement; 1743}, 1744focus:function(elem){ 1745return elem===safeActiveElement()&& 1746document.hasFocus()&& 1747!!(elem.type||elem.href||~elem.tabIndex); 1748}, 1749enabled:createDisabledPseudo(false), 1750disabled:createDisabledPseudo(true), 1751checked:function(elem){ 1752return(nodeName(elem,"input")&&!!elem.checked)|| 1753(nodeName(elem,"option")&&!!elem.selected); 1754}, 1755selected:function(elem){ 1756if(elem.parentNode){ 1757elem.parentNode.selectedIndex; 1758} 1759return elem.selected===true; 1760}, 1761empty:function(elem){ 1762for(elem=elem.firstChild;elem;elem=elem.nextSibling){ 1763if(elem.nodeType<6){ 1764return false; 1765} 1766} 1767return true; 1768}, 1769parent:function(elem){ 1770return!Expr.pseudos.empty(elem); 1771}, 1772header:function(elem){ 1773return rheader.test(elem.nodeName); 1774}, 1775input:function(elem){ 1776return rinputs.test(elem.nodeName); 1777}, 1778button:function(elem){ 1779return nodeName(elem,"input")&&elem.type==="button"|| 1780nodeName(elem,"button"); 1781}, 1782text:function(elem){ 1783var attr; 1784return nodeName(elem,"input")&&elem.type==="text"&& 1785((attr=elem.getAttribute("type"))==null|| 1786attr.toLowerCase()==="text"); 1787}, 1788first:createPositionalPseudo(function(){ 1789return[0]; 1790}), 1791last:createPositionalPseudo(function(_matchIndexes,length){ 1792return[length-1]; 1793}), 1794eq:createPositionalPseudo(function(_matchIndexes,length,argument){ 1795return[argument<0?argument+length:argument]; 1796}), 1797even:createPositionalPseudo(function(matchIndexes,length){ 1798var i=0; 1799for(;i<length;i+=2){ 1800matchIndexes.push(i); 1801} 1802return matchIndexes; 1803}), 1804odd:createPositionalPseudo(function(matchIndexes,length){ 1805var i=1; 1806for(;i<length;i+=2){ 1807matchIndexes.push(i); 1808} 1809return matchIndexes; 1810}), 1811lt:createPositionalPseudo(function(matchIndexes,length,argument){ 1812var i; 1813if(argument<0){ 1814i=argument+length; 1815}else if(argument>length){ 1816i=length; 1817}else{ 1818i=argument; 1819} 1820for(;--i>=0;){ 1821matchIndexes.push(i); 1822} 1823return matchIndexes; 1824}), 1825gt:createPositionalPseudo(function(matchIndexes,length,argument){ 1826var i=argument<0?argument+length:argument; 1827for(;++i<length;){ 1828matchIndexes.push(i); 1829} 1830return matchIndexes; 1831}) 1832} 1833}; 1834Expr.pseudos.nth=Expr.pseudos.eq; 1835for(i in{radio:true,checkbox:true,file:true,password:true,image:true}){ 1836Expr.pseudos[i]=createInputPseudo(i); 1837} 1838for(i in{submit:true,reset:true}){ 1839Expr.pseudos[i]=createButtonPseudo(i); 1840} 1841function setFilters(){} 1842setFilters.prototype=Expr.filters=Expr.pseudos; 1843Expr.setFilters=new setFilters(); 1844function tokenize(selector,parseOnly){ 1845var matched,match,tokens,type, 1846soFar,groups,preFilters, 1847cached=tokenCache[selector+" "]; 1848if(cached){ 1849return parseOnly?0:cached.slice(0); 1850} 1851soFar=selector; 1852groups=[]; 1853preFilters=Expr.preFilter; 1854while(soFar){ 1855if(!matched||(match=rcomma.exec(soFar))){ 1856if(match){ 1857soFar=soFar.slice(match[0].length)||soFar; 1858} 1859groups.push((tokens=[])); 1860} 1861matched=false; 1862if((match=rleadingCombinator.exec(soFar))){ 1863matched=match.shift(); 1864tokens.push({ 1865value:matched, 1866type:match[0].replace(rtrimCSS," ") 1867}); 1868soFar=soFar.slice(matched.length); 1869} 1870for(type in Expr.filter){ 1871if((match=matchExpr[type].exec(soFar))&&(!preFilters[type]|| 1872(match=preFilters[type](match)))){ 1873matched=match.shift(); 1874tokens.push({ 1875value:matched, 1876type:type, 1877matches:match 1878}); 1879soFar=soFar.slice(matched.length); 1880} 1881} 1882if(!matched){ 1883break; 1884} 1885} 1886if(parseOnly){ 1887return soFar.length; 1888} 1889return soFar? 1890find.error(selector): 1891tokenCache(selector,groups).slice(0); 1892} 1893function toSelector(tokens){ 1894var i=0, 1895len=tokens.length, 1896selector=""; 1897for(;i<len;i++){ 1898selector+=tokens[i].value; 1899} 1900return selector; 1901} 1902function addCombinator(matcher,combinator,base){ 1903var dir=combinator.dir, 1904skip=combinator.next, 1905key=skip||dir, 1906checkNonElements=base&&key==="parentNode", 1907doneName=done++; 1908return combinator.first? 1909function(elem,context,xml){ 1910while((elem=elem[dir])){ 1911if(elem.nodeType===1||checkNonElements){ 1912return matcher(elem,context,xml); 1913} 1914} 1915return false; 1916}: 1917function(elem,context,xml){ 1918var oldCache,outerCache, 1919newCache=[dirruns,doneName]; 1920if(xml){ 1921while((elem=elem[dir])){ 1922if(elem.nodeType===1||checkNonElements){ 1923if(matcher(elem,context,xml)){ 1924return true; 1925} 1926} 1927} 1928}else{ 1929while((elem=elem[dir])){ 1930if(elem.nodeType===1||checkNonElements){ 1931outerCache=elem[expando]||(elem[expando]={}); 1932if(skip&&nodeName(elem,skip)){ 1933elem=elem[dir]||elem; 1934}else if((oldCache=outerCache[key])&& 1935oldCache[0]===dirruns&&oldCache[1]===doneName){ 1936return(newCache[2]=oldCache[2]); 1937}else{ 1938outerCache[key]=newCache; 1939if((newCache[2]=matcher(elem,context,xml))){ 1940return true; 1941} 1942} 1943} 1944} 1945} 1946return false; 1947}; 1948} 1949function elementMatcher(matchers){ 1950return matchers.length>1? 1951function(elem,context,xml){ 1952var i=matchers.length; 1953while(i--){ 1954if(!matchers[i](elem,context,xml)){ 1955return false; 1956} 1957} 1958return true; 1959}: 1960matchers[0]; 1961} 1962function multipleContexts(selector,contexts,results){ 1963var i=0, 1964len=contexts.length; 1965for(;i<len;i++){ 1966find(selector,contexts[i],results); 1967} 1968return results; 1969} 1970function condense(unmatched,map,filter,context,xml){ 1971var elem, 1972newUnmatched=[], 1973i=0, 1974len=unmatched.length, 1975mapped=map!=null; 1976for(;i<len;i++){ 1977if((elem=unmatched[i])){ 1978if(!filter||filter(elem,context,xml)){ 1979newUnmatched.push(elem); 1980if(mapped){ 1981map.push(i); 1982} 1983} 1984} 1985} 1986return newUnmatched; 1987} 1988function setMatcher(preFilter,selector,matcher,postFilter,postFinder,postSelector){ 1989if(postFilter&&!postFilter[expando]){ 1990postFilter=setMatcher(postFilter); 1991} 1992if(postFinder&&!postFinder[expando]){ 1993postFinder=setMatcher(postFinder,postSelector); 1994} 1995return markFunction(function(seed,results,context,xml){ 1996var temp,i,elem,matcherOut, 1997preMap=[], 1998postMap=[], 1999preexisting=results.length, 2000elems=seed|| 2001multipleContexts(selector||"*", 2002context.nodeType?[context]:context,[]), 2003matcherIn=preFilter&&(seed||!selector)? 2004condense(elems,preMap,preFilter,context,xml): 2005elems; 2006if(matcher){ 2007matcherOut=postFinder||(seed?preFilter:preexisting||postFilter)? 2008[]: 2009results; 2010matcher(matcherIn,matcherOut,context,xml); 2011}else{ 2012matcherOut=matcherIn; 2013} 2014if(postFilter){ 2015temp=condense(matcherOut,postMap); 2016postFilter(temp,[],context,xml); 2017i=temp.length; 2018while(i--){ 2019if((elem=temp[i])){ 2020matcherOut[postMap[i]]=!(matcherIn[postMap[i]]=elem); 2021} 2022} 2023} 2024if(seed){ 2025if(postFinder||preFilter){ 2026if(postFinder){ 2027temp=[]; 2028i=matcherOut.length; 2029while(i--){ 2030if((elem=matcherOut[i])){ 2031temp.push((matcherIn[i]=elem)); 2032} 2033} 2034postFinder(null,(matcherOut=[]),temp,xml); 2035} 2036i=matcherOut.length; 2037while(i--){ 2038if((elem=matcherOut[i])&& 2039(temp=postFinder?indexOf.call(seed,elem):preMap[i])>-1){ 2040seed[temp]=!(results[temp]=elem); 2041} 2042} 2043} 2044}else{ 2045matcherOut=condense( 2046matcherOut===results? 2047matcherOut.splice(preexisting,matcherOut.length): 2048matcherOut 2049); 2050if(postFinder){ 2051postFinder(null,results,matcherOut,xml); 2052}else{ 2053push.apply(results,matcherOut); 2054} 2055} 2056}); 2057} 2058function matcherFromTokens(tokens){ 2059var checkContext,matcher,j, 2060len=tokens.length, 2061leadingRelative=Expr.relative[tokens[0].type], 2062implicitRelative=leadingRelative||Expr.relative[" "], 2063i=leadingRelative?1:0, 2064matchContext=addCombinator(function(elem){ 2065return elem===checkContext; 2066},implicitRelative,true), 2067matchAnyContext=addCombinator(function(elem){ 2068return indexOf.call(checkContext,elem)>-1; 2069},implicitRelative,true), 2070matchers=[function(elem,context,xml){ 2071var ret=(!leadingRelative&&(xml||context!=outermostContext))||( 2072(checkContext=context).nodeType? 2073matchContext(elem,context,xml): 2074matchAnyContext(elem,context,xml)); 2075checkContext=null; 2076return ret; 2077}]; 2078for(;i<len;i++){ 2079if((matcher=Expr.relative[tokens[i].type])){ 2080matchers=[addCombinator(elementMatcher(matchers),matcher)]; 2081}else{ 2082matcher=Expr.filter[tokens[i].type].apply(null,tokens[i].matches); 2083if(matcher[expando]){ 2084j=++i; 2085for(;j<len;j++){ 2086if(Expr.relative[tokens[j].type]){ 2087break; 2088} 2089} 2090return setMatcher( 2091i>1&&elementMatcher(matchers), 2092i>1&&toSelector( 2093tokens.slice(0,i-1) 2094.concat({value:tokens[i-2].type===" "?"*":""}) 2095).replace(rtrimCSS,"$1"), 2096matcher, 2097i<j&&matcherFromTokens(tokens.slice(i,j)), 2098j<len&&matcherFromTokens((tokens=tokens.slice(j))), 2099j<len&&toSelector(tokens) 2100); 2101} 2102matchers.push(matcher); 2103} 2104} 2105return elementMatcher(matchers); 2106} 2107function matcherFromGroupMatchers(elementMatchers,setMatchers){ 2108var bySet=setMatchers.length>0, 2109byElement=elementMatchers.length>0, 2110superMatcher=function(seed,context,xml,results,outermost){ 2111var elem,j,matcher, 2112matchedCount=0, 2113i="0", 2114unmatched=seed&&[], 2115setMatched=[], 2116contextBackup=outermostContext, 2117elems=seed||byElement&&Expr.find.TAG("*",outermost), 2118dirrunsUnique=(dirruns+=contextBackup==null?1:Math.random()||0.1), 2119len=elems.length; 2120if(outermost){ 2121outermostContext=context==document||context||outermost; 2122} 2123for(;i!==len&&(elem=elems[i])!=null;i++){ 2124if(byElement&&elem){ 2125j=0; 2126if(!context&&elem.ownerDocument!=document){ 2127setDocument(elem); 2128xml=!documentIsHTML; 2129} 2130while((matcher=elementMatchers[j++])){ 2131if(matcher(elem,context||document,xml)){ 2132push.call(results,elem); 2133break; 2134} 2135} 2136if(outermost){ 2137dirruns=dirrunsUnique; 2138} 2139} 2140if(bySet){ 2141if((elem=!matcher&&elem)){ 2142matchedCount--; 2143} 2144if(seed){ 2145unmatched.push(elem); 2146} 2147} 2148} 2149matchedCount+=i; 2150if(bySet&&i!==matchedCount){ 2151j=0; 2152while((matcher=setMatchers[j++])){ 2153matcher(unmatched,setMatched,context,xml); 2154} 2155if(seed){ 2156if(matchedCount>0){ 2157while(i--){ 2158if(!(unmatched[i]||setMatched[i])){ 2159setMatched[i]=pop.call(results); 2160} 2161} 2162} 2163setMatched=condense(setMatched); 2164} 2165push.apply(results,setMatched); 2166if(outermost&&!seed&&setMatched.length>0&& 2167(matchedCount+setMatchers.length)>1){ 2168jQuery.uniqueSort(results); 2169} 2170} 2171if(outermost){ 2172dirruns=dirrunsUnique; 2173outermostContext=contextBackup; 2174} 2175return unmatched; 2176}; 2177return bySet? 2178markFunction(superMatcher): 2179superMatcher; 2180} 2181function compile(selector,match){ 2182var i, 2183setMatchers=[], 2184elementMatchers=[], 2185cached=compilerCache[selector+" "]; 2186if(!cached){ 2187if(!match){ 2188match=tokenize(selector); 2189} 2190i=match.length; 2191while(i--){ 2192cached=matcherFromTokens(match[i]); 2193if(cached[expando]){ 2194setMatchers.push(cached); 2195}else{ 2196elementMatchers.push(cached); 2197} 2198} 2199cached=compilerCache(selector, 2200matcherFromGroupMatchers(elementMatchers,setMatchers)); 2201cached.selector=selector; 2202} 2203return cached; 2204} 2205function select(selector,context,results,seed){ 2206var i,tokens,token,type,find, 2207compiled=typeof selector==="function"&&selector, 2208match=!seed&&tokenize((selector=compiled.selector||selector)); 2209results=results||[]; 2210if(match.length===1){ 2211tokens=match[0]=match[0].slice(0); 2212if(tokens.length>2&&(token=tokens[0]).type==="ID"&& 2213context.nodeType===9&&documentIsHTML&&Expr.relative[tokens[1].type]){ 2214context=(Expr.find.ID( 2215token.matches[0].replace(runescape,funescape), 2216context 2217)||[])[0]; 2218if(!context){ 2219return results; 2220}else if(compiled){ 2221context=context.parentNode; 2222} 2223selector=selector.slice(tokens.shift().value.length); 2224} 2225i=matchExpr.needsContext.test(selector)?0:tokens.length; 2226while(i--){ 2227token=tokens[i]; 2228if(Expr.relative[(type=token.type)]){ 2229break; 2230} 2231if((find=Expr.find[type])){ 2232if((seed=find( 2233token.matches[0].replace(runescape,funescape), 2234rsibling.test(tokens[0].type)&& 2235testContext(context.parentNode)||context 2236))){ 2237tokens.splice(i,1); 2238selector=seed.length&&toSelector(tokens); 2239if(!selector){ 2240push.apply(results,seed); 2241return results; 2242} 2243break; 2244} 2245} 2246} 2247} 2248(compiled||compile(selector,match))( 2249seed, 2250context, 2251!documentIsHTML, 2252results, 2253!context||rsibling.test(selector)&&testContext(context.parentNode)||context 2254); 2255return results; 2256} 2257support.sortStable=expando.split("").sort(sortOrder).join("")===expando; 2258setDocument(); 2259support.sortDetached=assert(function(el){ 2260return el.compareDocumentPosition(document.createElement("fieldset"))&1; 2261}); 2262jQuery.find=find; 2263jQuery.expr[":"]=jQuery.expr.pseudos; 2264jQuery.unique=jQuery.uniqueSort; 2265find.compile=compile; 2266find.select=select; 2267find.setDocument=setDocument; 2268find.tokenize=tokenize; 2269find.escape=jQuery.escapeSelector; 2270find.getText=jQuery.text; 2271find.isXML=jQuery.isXMLDoc; 2272find.selectors=jQuery.expr; 2273find.support=jQuery.support; 2274find.uniqueSort=jQuery.uniqueSort; 2275})(); 2276var dir=function(elem,dir,until){ 2277var matched=[], 2278truncate=until!==undefined; 2279while((elem=elem[dir])&&elem.nodeType!==9){ 2280if(elem.nodeType===1){ 2281if(truncate&&jQuery(elem).is(until)){ 2282break; 2283} 2284matched.push(elem); 2285} 2286} 2287return matched; 2288}; 2289var siblings=function(n,elem){ 2290var matched=[]; 2291for(;n;n=n.nextSibling){ 2292if(n.nodeType===1&&n!==elem){ 2293matched.push(n); 2294} 2295} 2296return matched; 2297}; 2298var rneedsContext=jQuery.expr.match.needsContext; 2299var rsingleTag=(/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i); 2300function winnow(elements,qualifier,not){ 2301if(isFunction(qualifier)){ 2302return jQuery.grep(elements,function(elem,i){ 2303return!!qualifier.call(elem,i,elem)!==not; 2304}); 2305} 2306if(qualifier.nodeType){ 2307return jQuery.grep(elements,function(elem){ 2308return(elem===qualifier)!==not; 2309}); 2310} 2311if(typeof qualifier!=="string"){ 2312return jQuery.grep(elements,function(elem){ 2313return(indexOf.call(qualifier,elem)>-1)!==not; 2314}); 2315} 2316return jQuery.filter(qualifier,elements,not); 2317} 2318jQuery.filter=function(expr,elems,not){ 2319var elem=elems[0]; 2320if(not){ 2321expr=":not("+expr+")"; 2322} 2323if(elems.length===1&&elem.nodeType===1){ 2324return jQuery.find.matchesSelector(elem,expr)?[elem]:[]; 2325} 2326return jQuery.find.matches(expr,jQuery.grep(elems,function(elem){ 2327return elem.nodeType===1; 2328})); 2329}; 2330jQuery.fn.extend({ 2331find:function(selector){ 2332var i,ret, 2333len=this.length, 2334self=this; 2335if(typeof selector!=="string"){ 2336return this.pushStack(jQuery(selector).filter(function(){ 2337for(i=0;i<len;i++){ 2338if(jQuery.contains(self[i],this)){ 2339return true; 2340} 2341} 2342})); 2343} 2344ret=this.pushStack([]); 2345for(i=0;i<len;i++){ 2346jQuery.find(selector,self[i],ret); 2347} 2348return len>1?jQuery.uniqueSort(ret):ret; 2349}, 2350filter:function(selector){ 2351return this.pushStack(winnow(this,selector||[],false)); 2352}, 2353not:function(selector){ 2354return this.pushStack(winnow(this,selector||[],true)); 2355}, 2356is:function(selector){ 2357return!!winnow( 2358this, 2359typeof selector==="string"&&rneedsContext.test(selector)? 2360jQuery(selector): 2361selector||[], 2362false 2363).length; 2364} 2365}); 2366var rootjQuery, 2367rquickExpr=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/, 2368init=jQuery.fn.init=function(selector,context,root){ 2369var match,elem; 2370if(!selector){ 2371return this; 2372} 2373root=root||rootjQuery; 2374if(typeof selector==="string"){ 2375if(selector[0]==="<"&& 2376selector[selector.length-1]===">"&& 2377selector.length>=3){ 2378match=[null,selector,null]; 2379}else{ 2380match=rquickExpr.exec(selector); 2381} 2382if(match&&(match[1]||!context)){ 2383if(match[1]){ 2384context=context instanceof jQuery?context[0]:context; 2385jQuery.merge(this,jQuery.parseHTML( 2386match[1], 2387context&&context.nodeType?context.ownerDocument||context:document, 2388true 2389)); 2390if(rsingleTag.test(match[1])&&jQuery.isPlainObject(context)){ 2391for(match in context){ 2392if(isFunction(this[match])){ 2393this[match](context[match]); 2394}else{ 2395this.attr(match,context[match]); 2396} 2397} 2398} 2399return this; 2400}else{ 2401elem=document.getElementById(match[2]); 2402if(elem){ 2403this[0]=elem; 2404this.length=1; 2405} 2406return this; 2407} 2408}else if(!context||context.jquery){ 2409return(context||root).find(selector); 2410}else{ 2411return this.constructor(context).find(selector); 2412} 2413}else if(selector.nodeType){ 2414this[0]=selector; 2415this.length=1; 2416return this; 2417}else if(isFunction(selector)){ 2418return root.ready!==undefined? 2419root.ready(selector): 2420selector(jQuery); 2421} 2422return jQuery.makeArray(selector,this); 2423}; 2424init.prototype=jQuery.fn; 2425rootjQuery=jQuery(document); 2426var rparentsprev=/^(?:parents|prev(?:Until|All))/, 2427guaranteedUnique={ 2428children:true, 2429contents:true, 2430next:true, 2431prev:true 2432}; 2433jQuery.fn.extend({ 2434has:function(target){ 2435var targets=jQuery(target,this), 2436l=targets.length; 2437return this.filter(function(){ 2438var i=0; 2439for(;i<l;i++){ 2440if(jQuery.contains(this,targets[i])){ 2441return true; 2442} 2443} 2444}); 2445}, 2446closest:function(selectors,context){ 2447var cur, 2448i=0, 2449l=this.length, 2450matched=[], 2451targets=typeof selectors!=="string"&&jQuery(selectors); 2452if(!rneedsContext.test(selectors)){ 2453for(;i<l;i++){ 2454for(cur=this[i];cur&&cur!==context;cur=cur.parentNode){ 2455if(cur.nodeType<11&&(targets? 2456targets.index(cur)>-1: 2457cur.nodeType===1&& 2458jQuery.find.matchesSelector(cur,selectors))){ 2459matched.push(cur); 2460break; 2461} 2462} 2463} 2464} 2465return this.pushStack(matched.length>1?jQuery.uniqueSort(matched):matched); 2466}, 2467index:function(elem){ 2468if(!elem){ 2469return(this[0]&&this[0].parentNode)?this.first().prevAll().length:-1; 2470} 2471if(typeof elem==="string"){ 2472return indexOf.call(jQuery(elem),this[0]); 2473} 2474return indexOf.call(this, 2475elem.jquery?elem[0]:elem 2476); 2477}, 2478add:function(selector,context){ 2479return this.pushStack( 2480jQuery.uniqueSort( 2481jQuery.merge(this.get(),jQuery(selector,context)) 2482) 2483); 2484}, 2485addBack:function(selector){ 2486return this.add(selector==null? 2487this.prevObject:this.prevObject.filter(selector) 2488); 2489} 2490}); 2491function sibling(cur,dir){ 2492while((cur=cur[dir])&&cur.nodeType!==1){} 2493return cur; 2494} 2495jQuery.each({ 2496parent:function(elem){ 2497var parent=elem.parentNode; 2498return parent&&parent.nodeType!==11?parent:null; 2499}, 2500parents:function(elem){ 2501return dir(elem,"parentNode"); 2502}, 2503parentsUntil:function(elem,_i,until){ 2504return dir(elem,"parentNode",until); 2505}, 2506next:function(elem){ 2507return sibling(elem,"nextSibling"); 2508}, 2509prev:function(elem){ 2510return sibling(elem,"previousSibling"); 2511}, 2512nextAll:function(elem){ 2513return dir(elem,"nextSibling"); 2514}, 2515prevAll:function(elem){ 2516return dir(elem,"previousSibling"); 2517}, 2518nextUntil:function(elem,_i,until){ 2519return dir(elem,"nextSibling",until); 2520}, 2521prevUntil:function(elem,_i,until){ 2522return dir(elem,"previousSibling",until); 2523}, 2524siblings:function(elem){ 2525return siblings((elem.parentNode||{}).firstChild,elem); 2526}, 2527children:function(elem){ 2528return siblings(elem.firstChild); 2529}, 2530contents:function(elem){ 2531if(elem.contentDocument!=null&& 2532getProto(elem.contentDocument)){ 2533return elem.contentDocument; 2534} 2535if(nodeName(elem,"template")){ 2536elem=elem.content||elem; 2537} 2538return jQuery.merge([],elem.childNodes); 2539} 2540},function(name,fn){ 2541jQuery.fn[name]=function(until,selector){ 2542var matched=jQuery.map(this,fn,until); 2543if(name.slice(-5)!=="Until"){ 2544selector=until; 2545} 2546if(selector&&typeof selector==="string"){ 2547matched=jQuery.filter(selector,matched); 2548} 2549if(this.length>1){ 2550if(!guaranteedUnique[name]){ 2551jQuery.uniqueSort(matched); 2552} 2553if(rparentsprev.test(name)){ 2554matched.reverse(); 2555} 2556} 2557return this.pushStack(matched); 2558}; 2559}); 2560var rnothtmlwhite=(/[^\x20\t\r\n\f]+/g); 2561function createOptions(options){ 2562var object={}; 2563jQuery.each(options.match(rnothtmlwhite)||[],function(_,flag){ 2564object[flag]=true; 2565}); 2566return object; 2567} 2568jQuery.Callbacks=function(options){ 2569options=typeof options==="string"? 2570createOptions(options): 2571jQuery.extend({},options); 2572var 2573firing, 2574memory, 2575fired, 2576locked, 2577list=[], 2578queue=[], 2579firingIndex=-1, 2580fire=function(){ 2581locked=locked||options.once; 2582fired=firing=true; 2583for(;queue.length;firingIndex=-1){ 2584memory=queue.shift(); 2585while(++firingIndex<list.length){ 2586if(list[firingIndex].apply(memory[0],memory[1])===false&& 2587options.stopOnFalse){ 2588firingIndex=list.length; 2589memory=false; 2590} 2591} 2592} 2593if(!options.memory){ 2594memory=false; 2595} 2596firing=false; 2597if(locked){ 2598if(memory){ 2599list=[]; 2600}else{ 2601list=""; 2602} 2603} 2604}, 2605self={ 2606add:function(){ 2607if(list){ 2608if(memory&&!firing){ 2609firingIndex=list.length-1; 2610queue.push(memory); 2611} 2612(function add(args){ 2613jQuery.each(args,function(_,arg){ 2614if(isFunction(arg)){ 2615if(!options.unique||!self.has(arg)){ 2616list.push(arg); 2617} 2618}else if(arg&&arg.length&&toType(arg)!=="string"){ 2619add(arg); 2620} 2621}); 2622})(arguments); 2623if(memory&&!firing){ 2624fire(); 2625} 2626} 2627return this; 2628}, 2629remove:function(){ 2630jQuery.each(arguments,function(_,arg){ 2631var index; 2632while((index=jQuery.inArray(arg,list,index))>-1){ 2633list.splice(index,1); 2634if(index<=firingIndex){ 2635firingIndex--; 2636} 2637} 2638}); 2639return this; 2640}, 2641has:function(fn){ 2642return fn? 2643jQuery.inArray(fn,list)>-1: 2644list.length>0; 2645}, 2646empty:function(){ 2647if(list){ 2648list=[]; 2649} 2650return this; 2651}, 2652disable:function(){ 2653locked=queue=[]; 2654list=memory=""; 2655return this; 2656}, 2657disabled:function(){ 2658return!list; 2659}, 2660lock:function(){ 2661locked=queue=[]; 2662if(!memory&&!firing){ 2663list=memory=""; 2664} 2665return this; 2666}, 2667locked:function(){ 2668return!!locked; 2669}, 2670fireWith:function(context,args){ 2671if(!locked){ 2672args=args||[]; 2673args=[context,args.slice?args.slice():args]; 2674queue.push(args); 2675if(!firing){ 2676fire(); 2677} 2678} 2679return this; 2680}, 2681fire:function(){ 2682self.fireWith(this,arguments); 2683return this; 2684}, 2685fired:function(){ 2686return!!fired; 2687} 2688}; 2689return self; 2690}; 2691function Identity(v){ 2692return v; 2693} 2694function Thrower(ex){ 2695throw ex; 2696} 2697function adoptValue(value,resolve,reject,noValue){ 2698var method; 2699try{ 2700if(value&&isFunction((method=value.promise))){ 2701method.call(value).done(resolve).fail(reject); 2702}else if(value&&isFunction((method=value.then))){ 2703method.call(value,resolve,reject); 2704}else{ 2705resolve.apply(undefined,[value].slice(noValue)); 2706} 2707}catch(value){ 2708reject.apply(undefined,[value]); 2709} 2710} 2711jQuery.extend({ 2712Deferred:function(func){ 2713var tuples=[ 2714["notify","progress",jQuery.Callbacks("memory"), 2715jQuery.Callbacks("memory"),2], 2716["resolve","done",jQuery.Callbacks("once memory"), 2717jQuery.Callbacks("once memory"),0,"resolved"], 2718["reject","fail",jQuery.Callbacks("once memory"), 2719jQuery.Callbacks("once memory"),1,"rejected"] 2720], 2721state="pending", 2722promise={ 2723state:function(){ 2724return state; 2725}, 2726always:function(){ 2727deferred.done(arguments).fail(arguments); 2728return this; 2729}, 2730"catch":function(fn){ 2731return promise.then(null,fn); 2732}, 2733pipe:function(){ 2734var fns=arguments; 2735return jQuery.Deferred(function(newDefer){ 2736jQuery.each(tuples,function(_i,tuple){ 2737var fn=isFunction(fns[tuple[4]])&&fns[tuple[4]]; 2738deferred[tuple[1]](function(){ 2739var returned=fn&&fn.apply(this,arguments); 2740if(returned&&isFunction(returned.promise)){ 2741returned.promise() 2742.progress(newDefer.notify) 2743.done(newDefer.resolve) 2744.fail(newDefer.reject); 2745}else{ 2746newDefer[tuple[0]+"With"]( 2747this, 2748fn?[returned]:arguments 2749); 2750} 2751}); 2752}); 2753fns=null; 2754}).promise(); 2755}, 2756then:function(onFulfilled,onRejected,onProgress){ 2757var maxDepth=0; 2758function resolve(depth,deferred,handler,special){ 2759return function(){ 2760var that=this, 2761args=arguments, 2762mightThrow=function(){ 2763var returned,then; 2764if(depth<maxDepth){ 2765return; 2766} 2767returned=handler.apply(that,args); 2768if(returned===deferred.promise()){ 2769throw new TypeError("Thenable self-resolution"); 2770} 2771then=returned&& 2772(typeof returned==="object"|| 2773typeof returned==="function")&& 2774returned.then; 2775if(isFunction(then)){ 2776if(special){ 2777then.call( 2778returned, 2779resolve(maxDepth,deferred,Identity,special), 2780resolve(maxDepth,deferred,Thrower,special) 2781); 2782}else{ 2783maxDepth++; 2784then.call( 2785returned, 2786resolve(maxDepth,deferred,Identity,special), 2787resolve(maxDepth,deferred,Thrower,special), 2788resolve(maxDepth,deferred,Identity, 2789deferred.notifyWith) 2790); 2791} 2792}else{ 2793if(handler!==Identity){ 2794that=undefined; 2795args=[returned]; 2796} 2797(special||deferred.resolveWith)(that,args); 2798} 2799}, 2800process=special? 2801mightThrow: 2802function(){ 2803try{ 2804mightThrow(); 2805}catch(e){ 2806if(jQuery.Deferred.exceptionHook){ 2807jQuery.Deferred.exceptionHook(e, 2808process.error); 2809} 2810if(depth+1>=maxDepth){ 2811if(handler!==Thrower){ 2812that=undefined; 2813args=[e]; 2814} 2815deferred.rejectWith(that,args); 2816} 2817} 2818}; 2819if(depth){ 2820process(); 2821}else{ 2822if(jQuery.Deferred.getErrorHook){ 2823process.error=jQuery.Deferred.getErrorHook(); 2824}else if(jQuery.Deferred.getStackHook){ 2825process.error=jQuery.Deferred.getStackHook(); 2826} 2827window.setTimeout(process); 2828} 2829}; 2830} 2831return jQuery.Deferred(function(newDefer){ 2832tuples[0][3].add( 2833resolve( 28340, 2835newDefer, 2836isFunction(onProgress)? 2837onProgress: 2838Identity, 2839newDefer.notifyWith 2840) 2841); 2842tuples[1][3].add( 2843resolve( 28440, 2845newDefer, 2846isFunction(onFulfilled)? 2847onFulfilled: 2848Identity 2849) 2850); 2851tuples[2][3].add( 2852resolve( 28530, 2854newDefer, 2855isFunction(onRejected)? 2856onRejected: 2857Thrower 2858) 2859); 2860}).promise(); 2861}, 2862promise:function(obj){ 2863return obj!=null?jQuery.extend(obj,promise):promise; 2864} 2865}, 2866deferred={}; 2867jQuery.each(tuples,function(i,tuple){ 2868var list=tuple[2], 2869stateString=tuple[5]; 2870promise[tuple[1]]=list.add; 2871if(stateString){ 2872list.add( 2873function(){ 2874state=stateString; 2875}, 2876tuples[3-i][2].disable, 2877tuples[3-i][3].disable, 2878tuples[0][2].lock, 2879tuples[0][3].lock 2880); 2881} 2882list.add(tuple[3].fire); 2883deferred[tuple[0]]=function(){ 2884deferred[tuple[0]+"With"](this===deferred?undefined:this,arguments); 2885return this; 2886}; 2887deferred[tuple[0]+"With"]=list.fireWith; 2888}); 2889promise.promise(deferred); 2890if(func){ 2891func.call(deferred,deferred); 2892} 2893return deferred; 2894}, 2895when:function(singleValue){ 2896var 2897remaining=arguments.length, 2898i=remaining, 2899resolveContexts=Array(i), 2900resolveValues=slice.call(arguments), 2901primary=jQuery.Deferred(), 2902updateFunc=function(i){ 2903return function(value){ 2904resolveContexts[i]=this; 2905resolveValues[i]=arguments.length>1?slice.call(arguments):value; 2906if(!(--remaining)){ 2907primary.resolveWith(resolveContexts,resolveValues); 2908} 2909}; 2910}; 2911if(remaining<=1){ 2912adoptValue(singleValue,primary.done(updateFunc(i)).resolve,primary.reject, 2913!remaining); 2914if(primary.state()==="pending"|| 2915isFunction(resolveValues[i]&&resolveValues[i].then)){ 2916return primary.then(); 2917} 2918} 2919while(i--){ 2920adoptValue(resolveValues[i],updateFunc(i),primary.reject); 2921} 2922return primary.promise(); 2923} 2924}); 2925var rerrorNames=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/; 2926jQuery.Deferred.exceptionHook=function(error,asyncError){ 2927if(window.console&&window.console.warn&&error&&rerrorNames.test(error.name)){ 2928window.console.warn("jQuery.Deferred exception: "+error.message, 2929error.stack,asyncError); 2930} 2931}; 2932jQuery.readyException=function(error){ 2933window.setTimeout(function(){ 2934throw error; 2935}); 2936}; 2937var readyList=jQuery.Deferred(); 2938jQuery.fn.ready=function(fn){ 2939readyList 2940.then(fn) 2941.catch(function(error){ 2942jQuery.readyException(error); 2943}); 2944return this; 2945}; 2946jQuery.extend({ 2947isReady:false, 2948readyWait:1, 2949ready:function(wait){ 2950if(wait===true?--jQuery.readyWait:jQuery.isReady){ 2951return; 2952} 2953jQuery.isReady=true; 2954if(wait!==true&&--jQuery.readyWait>0){ 2955return; 2956} 2957readyList.resolveWith(document,[jQuery]); 2958} 2959}); 2960jQuery.ready.then=readyList.then; 2961function completed(){ 2962document.removeEventListener("DOMContentLoaded",completed); 2963window.removeEventListener("load",completed); 2964jQuery.ready(); 2965} 2966if(document.readyState==="complete"|| 2967(document.readyState!=="loading"&&!document.documentElement.doScroll)){ 2968window.setTimeout(jQuery.ready); 2969}else{ 2970document.addEventListener("DOMContentLoaded",completed); 2971window.addEventListener("load",completed); 2972} 2973var access=function(elems,fn,key,value,chainable,emptyGet,raw){ 2974var i=0, 2975len=elems.length, 2976bulk=key==null; 2977if(toType(key)==="object"){ 2978chainable=true; 2979for(i in key){ 2980access(elems,fn,i,key[i],true,emptyGet,raw); 2981} 2982}else if(value!==undefined){ 2983chainable=true; 2984if(!isFunction(value)){ 2985raw=true; 2986} 2987if(bulk){ 2988if(raw){ 2989fn.call(elems,value); 2990fn=null; 2991}else{ 2992bulk=fn; 2993fn=function(elem,_key,value){ 2994return bulk.call(jQuery(elem),value); 2995}; 2996} 2997} 2998if(fn){ 2999for(;i<len;i++){ 3000fn( 3001elems[i],key,raw? 3002value: 3003value.call(elems[i],i,fn(elems[i],key)) 3004); 3005} 3006} 3007} 3008if(chainable){ 3009return elems; 3010} 3011if(bulk){ 3012return fn.call(elems); 3013} 3014return len?fn(elems[0],key):emptyGet; 3015}; 3016var rmsPrefix=/^-ms-/, 3017rdashAlpha=/-([a-z])/g; 3018function fcamelCase(_all,letter){ 3019return letter.toUpperCase(); 3020} 3021function camelCase(string){ 3022return string.replace(rmsPrefix,"ms-").replace(rdashAlpha,fcamelCase); 3023} 3024var acceptData=function(owner){ 3025return owner.nodeType===1||owner.nodeType===9||!(+owner.nodeType); 3026}; 3027function Data(){ 3028this.expando=jQuery.expando+Data.uid++; 3029} 3030Data.uid=1; 3031Data.prototype={ 3032cache:function(owner){ 3033var value=owner[this.expando]; 3034if(!value){ 3035value={}; 3036if(acceptData(owner)){ 3037if(owner.nodeType){ 3038owner[this.expando]=value; 3039}else{ 3040Object.defineProperty(owner,this.expando,{ 3041value:value, 3042configurable:true 3043}); 3044} 3045} 3046} 3047return value; 3048}, 3049set:function(owner,data,value){ 3050var prop, 3051cache=this.cache(owner); 3052if(typeof data==="string"){ 3053cache[camelCase(data)]=value; 3054}else{ 3055for(prop in data){ 3056cache[camelCase(prop)]=data[prop]; 3057} 3058} 3059return cache; 3060}, 3061get:function(owner,key){ 3062return key===undefined? 3063this.cache(owner): 3064owner[this.expando]&&owner[this.expando][camelCase(key)]; 3065}, 3066access:function(owner,key,value){ 3067if(key===undefined|| 3068((key&&typeof key==="string")&&value===undefined)){ 3069return this.get(owner,key); 3070} 3071this.set(owner,key,value); 3072return value!==undefined?value:key; 3073}, 3074remove:function(owner,key){ 3075var i, 3076cache=owner[this.expando]; 3077if(cache===undefined){ 3078return; 3079} 3080if(key!==undefined){ 3081if(Array.isArray(key)){ 3082key=key.map(camelCase); 3083}else{ 3084key=camelCase(key); 3085key=key in cache? 3086[key]: 3087(key.match(rnothtmlwhite)||[]); 3088} 3089i=key.length; 3090while(i--){ 3091delete cache[key[i]]; 3092} 3093} 3094if(key===undefined||jQuery.isEmptyObject(cache)){ 3095if(owner.nodeType){ 3096owner[this.expando]=undefined; 3097}else{ 3098delete owner[this.expando]; 3099} 3100} 3101}, 3102hasData:function(owner){ 3103var cache=owner[this.expando]; 3104return cache!==undefined&&!jQuery.isEmptyObject(cache); 3105} 3106}; 3107var dataPriv=new Data(); 3108var dataUser=new Data(); 3109var rbrace=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/, 3110rmultiDash=/[A-Z]/g; 3111function getData(data){ 3112if(data==="true"){ 3113return true; 3114} 3115if(data==="false"){ 3116return false; 3117} 3118if(data==="null"){ 3119return null; 3120} 3121if(data===+data+""){ 3122return+data; 3123} 3124if(rbrace.test(data)){ 3125return JSON.parse(data); 3126} 3127return data; 3128} 3129function dataAttr(elem,key,data){ 3130var name; 3131if(data===undefined&&elem.nodeType===1){ 3132name="data-"+key.replace(rmultiDash,"-$&").toLowerCase(); 3133data=elem.getAttribute(name); 3134if(typeof data==="string"){ 3135try{ 3136data=getData(data); 3137}catch(e){} 3138dataUser.set(elem,key,data); 3139}else{ 3140data=undefined; 3141} 3142} 3143return data; 3144} 3145jQuery.extend({ 3146hasData:function(elem){ 3147return dataUser.hasData(elem)||dataPriv.hasData(elem); 3148}, 3149data:function(elem,name,data){ 3150return dataUser.access(elem,name,data); 3151}, 3152removeData:function(elem,name){ 3153dataUser.remove(elem,name); 3154}, 3155_data:function(elem,name,data){ 3156return dataPriv.access(elem,name,data); 3157}, 3158_removeData:function(elem,name){ 3159dataPriv.remove(elem,name); 3160} 3161}); 3162jQuery.fn.extend({ 3163data:function(key,value){ 3164var i,name,data, 3165elem=this[0], 3166attrs=elem&&elem.attributes; 3167if(key===undefined){ 3168if(this.length){ 3169data=dataUser.get(elem); 3170if(elem.nodeType===1&&!dataPriv.get(elem,"hasDataAttrs")){ 3171i=attrs.length; 3172while(i--){ 3173if(attrs[i]){ 3174name=attrs[i].name; 3175if(name.indexOf("data-")===0){ 3176name=camelCase(name.slice(5)); 3177dataAttr(elem,name,data[name]); 3178} 3179} 3180} 3181dataPriv.set(elem,"hasDataAttrs",true); 3182} 3183} 3184return data; 3185} 3186if(typeof key==="object"){ 3187return this.each(function(){ 3188dataUser.set(this,key); 3189}); 3190} 3191return access(this,function(value){ 3192var data; 3193if(elem&&value===undefined){ 3194data=dataUser.get(elem,key); 3195if(data!==undefined){ 3196return data; 3197} 3198data=dataAttr(elem,key); 3199if(data!==undefined){ 3200return data; 3201} 3202return; 3203} 3204this.each(function(){ 3205dataUser.set(this,key,value); 3206}); 3207},null,value,arguments.length>1,null,true); 3208}, 3209removeData:function(key){ 3210return this.each(function(){ 3211dataUser.remove(this,key); 3212}); 3213} 3214}); 3215jQuery.extend({ 3216queue:function(elem,type,data){ 3217var queue; 3218if(elem){ 3219type=(type||"fx")+"queue"; 3220queue=dataPriv.get(elem,type); 3221if(data){ 3222if(!queue||Array.isArray(data)){ 3223queue=dataPriv.access(elem,type,jQuery.makeArray(data)); 3224}else{ 3225queue.push(data); 3226} 3227} 3228return queue||[]; 3229} 3230}, 3231dequeue:function(elem,type){ 3232type=type||"fx"; 3233var queue=jQuery.queue(elem,type), 3234startLength=queue.length, 3235fn=queue.shift(), 3236hooks=jQuery._queueHooks(elem,type), 3237next=function(){ 3238jQuery.dequeue(elem,type); 3239}; 3240if(fn==="inprogress"){ 3241fn=queue.shift(); 3242startLength--; 3243} 3244if(fn){ 3245if(type==="fx"){ 3246queue.unshift("inprogress"); 3247} 3248delete hooks.stop; 3249fn.call(elem,next,hooks); 3250} 3251if(!startLength&&hooks){ 3252hooks.empty.fire(); 3253} 3254}, 3255_queueHooks:function(elem,type){ 3256var key=type+"queueHooks"; 3257return dataPriv.get(elem,key)||dataPriv.access(elem,key,{ 3258empty:jQuery.Callbacks("once memory").add(function(){ 3259dataPriv.remove(elem,[type+"queue",key]); 3260}) 3261}); 3262} 3263}); 3264jQuery.fn.extend({ 3265queue:function(type,data){ 3266var setter=2; 3267if(typeof type!=="string"){ 3268data=type; 3269type="fx"; 3270setter--; 3271} 3272if(arguments.length<setter){ 3273return jQuery.queue(this[0],type); 3274} 3275return data===undefined? 3276this: 3277this.each(function(){ 3278var queue=jQuery.queue(this,type,data); 3279jQuery._queueHooks(this,type); 3280if(type==="fx"&&queue[0]!=="inprogress"){ 3281jQuery.dequeue(this,type); 3282} 3283}); 3284}, 3285dequeue:function(type){ 3286return this.each(function(){ 3287jQuery.dequeue(this,type); 3288}); 3289}, 3290clearQueue:function(type){ 3291return this.queue(type||"fx",[]); 3292}, 3293promise:function(type,obj){ 3294var tmp, 3295count=1, 3296defer=jQuery.Deferred(), 3297elements=this, 3298i=this.length, 3299resolve=function(){ 3300if(!(--count)){ 3301defer.resolveWith(elements,[elements]); 3302} 3303}; 3304if(typeof type!=="string"){ 3305obj=type; 3306type=undefined; 3307} 3308type=type||"fx"; 3309while(i--){ 3310tmp=dataPriv.get(elements[i],type+"queueHooks"); 3311if(tmp&&tmp.empty){ 3312count++; 3313tmp.empty.add(resolve); 3314} 3315} 3316resolve(); 3317return defer.promise(obj); 3318} 3319}); 3320var pnum=(/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/).source; 3321var rcssNum=new RegExp("^(?:([+-])=|)("+pnum+")([a-z%]*)$","i"); 3322var cssExpand=["Top","Right","Bottom","Left"]; 3323var documentElement=document.documentElement; 3324var isAttached=function(elem){ 3325return jQuery.contains(elem.ownerDocument,elem); 3326}, 3327composed={composed:true}; 3328if(documentElement.getRootNode){ 3329isAttached=function(elem){ 3330return jQuery.contains(elem.ownerDocument,elem)|| 3331elem.getRootNode(composed)===elem.ownerDocument; 3332}; 3333} 3334var isHiddenWithinTree=function(elem,el){ 3335elem=el||elem; 3336return elem.style.display==="none"|| 3337elem.style.display===""&& 3338isAttached(elem)&& 3339jQuery.css(elem,"display")==="none"; 3340}; 3341function adjustCSS(elem,prop,valueParts,tween){ 3342var adjusted,scale, 3343maxIterations=20, 3344currentValue=tween? 3345function(){ 3346return tween.cur(); 3347}: 3348function(){ 3349return jQuery.css(elem,prop,""); 3350}, 3351initial=currentValue(), 3352unit=valueParts&&valueParts[3]||(jQuery.cssNumber[prop]?"":"px"), 3353initialInUnit=elem.nodeType&& 3354(jQuery.cssNumber[prop]||unit!=="px"&&+initial)&& 3355rcssNum.exec(jQuery.css(elem,prop)); 3356if(initialInUnit&&initialInUnit[3]!==unit){ 3357initial=initial/2; 3358unit=unit||initialInUnit[3]; 3359initialInUnit=+initial||1; 3360while(maxIterations--){ 3361jQuery.style(elem,prop,initialInUnit+unit); 3362if((1-scale)*(1-(scale=currentValue()/initial||0.5))<=0){ 3363maxIterations=0; 3364} 3365initialInUnit=initialInUnit/scale; 3366} 3367initialInUnit=initialInUnit*2; 3368jQuery.style(elem,prop,initialInUnit+unit); 3369valueParts=valueParts||[]; 3370} 3371if(valueParts){ 3372initialInUnit=+initialInUnit||+initial||0; 3373adjusted=valueParts[1]? 3374initialInUnit+(valueParts[1]+1)*valueParts[2]: 3375+valueParts[2]; 3376if(tween){ 3377tween.unit=unit; 3378tween.start=initialInUnit; 3379tween.end=adjusted; 3380} 3381} 3382return adjusted; 3383} 3384var defaultDisplayMap={}; 3385function getDefaultDisplay(elem){ 3386var temp, 3387doc=elem.ownerDocument, 3388nodeName=elem.nodeName, 3389display=defaultDisplayMap[nodeName]; 3390if(display){ 3391return display; 3392} 3393temp=doc.body.appendChild(doc.createElement(nodeName)); 3394display=jQuery.css(temp,"display"); 3395temp.parentNode.removeChild(temp); 3396if(display==="none"){ 3397display="block"; 3398} 3399defaultDisplayMap[nodeName]=display; 3400return display; 3401} 3402function showHide(elements,show){ 3403var display,elem, 3404values=[], 3405index=0, 3406length=elements.length; 3407for(;index<length;index++){ 3408elem=elements[index]; 3409if(!elem.style){ 3410continue; 3411} 3412display=elem.style.display; 3413if(show){ 3414if(display==="none"){ 3415values[index]=dataPriv.get(elem,"display")||null; 3416if(!values[index]){ 3417elem.style.display=""; 3418} 3419} 3420if(elem.style.display===""&&isHiddenWithinTree(elem)){ 3421values[index]=getDefaultDisplay(elem); 3422} 3423}else{ 3424if(display!=="none"){ 3425values[index]="none"; 3426dataPriv.set(elem,"display",display); 3427} 3428} 3429} 3430for(index=0;index<length;index++){ 3431if(values[index]!=null){ 3432elements[index].style.display=values[index]; 3433} 3434} 3435return elements; 3436} 3437jQuery.fn.extend({ 3438show:function(){ 3439return showHide(this,true); 3440}, 3441hide:function(){ 3442return showHide(this); 3443}, 3444toggle:function(state){ 3445if(typeof state==="boolean"){ 3446return state?this.show():this.hide(); 3447} 3448return this.each(function(){ 3449if(isHiddenWithinTree(this)){ 3450jQuery(this).show(); 3451}else{ 3452jQuery(this).hide(); 3453} 3454}); 3455} 3456}); 3457var rcheckableType=(/^(?:checkbox|radio)$/i); 3458var rtagName=(/<([a-z][^\/\0>\x20\t\r\n\f]*)/i); 3459var rscriptType=(/^$|^module$|\/(?:java|ecma)script/i); 3460(function(){ 3461var fragment=document.createDocumentFragment(), 3462div=fragment.appendChild(document.createElement("div")), 3463input=document.createElement("input"); 3464input.setAttribute("type","radio"); 3465input.setAttribute("checked","checked"); 3466input.setAttribute("name","t"); 3467div.appendChild(input); 3468support.checkClone=div.cloneNode(true).cloneNode(true).lastChild.checked; 3469div.innerHTML="<textarea>x</textarea>"; 3470support.noCloneChecked=!!div.cloneNode(true).lastChild.defaultValue; 3471div.innerHTML="<option></option>"; 3472support.option=!!div.lastChild; 3473})(); 3474var wrapMap={ 3475thead:[1,"<table>","</table>"], 3476col:[2,"<table><colgroup>","</colgroup></table>"], 3477tr:[2,"<table><tbody>","</tbody></table>"], 3478td:[3,"<table><tbody><tr>","</tr></tbody></table>"], 3479_default:[0,"",""] 3480}; 3481wrapMap.tbody=wrapMap.tfoot=wrapMap.colgroup=wrapMap.caption=wrapMap.thead; 3482wrapMap.th=wrapMap.td; 3483if(!support.option){ 3484wrapMap.optgroup=wrapMap.option=[1,"<select multiple='multiple'>","</select>"]; 3485} 3486function getAll(context,tag){ 3487var ret; 3488if(typeof context.getElementsByTagName!=="undefined"){ 3489ret=context.getElementsByTagName(tag||"*"); 3490}else if(typeof context.querySelectorAll!=="undefined"){ 3491ret=context.querySelectorAll(tag||"*"); 3492}else{ 3493ret=[]; 3494} 3495if(tag===undefined||tag&&nodeName(context,tag)){ 3496return jQuery.merge([context],ret); 3497} 3498return ret; 3499} 3500function setGlobalEval(elems,refElements){ 3501var i=0, 3502l=elems.length; 3503for(;i<l;i++){ 3504dataPriv.set( 3505elems[i], 3506"globalEval", 3507!refElements||dataPriv.get(refElements[i],"globalEval") 3508); 3509} 3510} 3511var rhtml=/<|&#?\w+;/; 3512function buildFragment(elems,context,scripts,selection,ignored){ 3513var elem,tmp,tag,wrap,attached,j, 3514fragment=context.createDocumentFragment(), 3515nodes=[], 3516i=0, 3517l=elems.length; 3518for(;i<l;i++){ 3519elem=elems[i]; 3520if(elem||elem===0){ 3521if(toType(elem)==="object"){ 3522jQuery.merge(nodes,elem.nodeType?[elem]:elem); 3523}else if(!rhtml.test(elem)){ 3524nodes.push(context.createTextNode(elem)); 3525}else{ 3526tmp=tmp||fragment.appendChild(context.createElement("div")); 3527tag=(rtagName.exec(elem)||["",""])[1].toLowerCase(); 3528wrap=wrapMap[tag]||wrapMap._default; 3529tmp.innerHTML=wrap[1]+jQuery.htmlPrefilter(elem)+wrap[2]; 3530j=wrap[0]; 3531while(j--){ 3532tmp=tmp.lastChild; 3533} 3534jQuery.merge(nodes,tmp.childNodes); 3535tmp=fragment.firstChild; 3536tmp.textContent=""; 3537} 3538} 3539} 3540fragment.textContent=""; 3541i=0; 3542while((elem=nodes[i++])){ 3543if(selection&&jQuery.inArray(elem,selection)>-1){ 3544if(ignored){ 3545ignored.push(elem); 3546} 3547continue; 3548} 3549attached=isAttached(elem); 3550tmp=getAll(fragment.appendChild(elem),"script"); 3551if(attached){ 3552setGlobalEval(tmp); 3553} 3554if(scripts){ 3555j=0; 3556while((elem=tmp[j++])){ 3557if(rscriptType.test(elem.type||"")){ 3558scripts.push(elem); 3559} 3560} 3561} 3562} 3563return fragment; 3564} 3565var rtypenamespace=/^([^.]*)(?:\.(.+)|)/; 3566function returnTrue(){ 3567return true; 3568} 3569function returnFalse(){ 3570return false; 3571} 3572function on(elem,types,selector,data,fn,one){ 3573var origFn,type; 3574if(typeof types==="object"){ 3575if(typeof selector!=="string"){ 3576data=data||selector; 3577selector=undefined; 3578} 3579for(type in types){ 3580on(elem,type,selector,data,types[type],one); 3581} 3582return elem; 3583} 3584if(data==null&&fn==null){ 3585fn=selector; 3586data=selector=undefined; 3587}else if(fn==null){ 3588if(typeof selector==="string"){ 3589fn=data; 3590data=undefined; 3591}else{ 3592fn=data; 3593data=selector; 3594selector=undefined; 3595} 3596} 3597if(fn===false){ 3598fn=returnFalse; 3599}else if(!fn){ 3600return elem; 3601} 3602if(one===1){ 3603origFn=fn; 3604fn=function(event){ 3605jQuery().off(event); 3606return origFn.apply(this,arguments); 3607}; 3608fn.guid=origFn.guid||(origFn.guid=jQuery.guid++); 3609} 3610return elem.each(function(){ 3611jQuery.event.add(this,types,fn,data,selector); 3612}); 3613} 3614jQuery.event={ 3615global:{}, 3616add:function(elem,types,handler,data,selector){ 3617var handleObjIn,eventHandle,tmp, 3618events,t,handleObj, 3619special,handlers,type,namespaces,origType, 3620elemData=dataPriv.get(elem); 3621if(!acceptData(elem)){ 3622return; 3623} 3624if(handler.handler){ 3625handleObjIn=handler; 3626handler=handleObjIn.handler; 3627selector=handleObjIn.selector; 3628} 3629if(selector){ 3630jQuery.find.matchesSelector(documentElement,selector); 3631} 3632if(!handler.guid){ 3633handler.guid=jQuery.guid++; 3634} 3635if(!(events=elemData.events)){ 3636events=elemData.events=Object.create(null); 3637} 3638if(!(eventHandle=elemData.handle)){ 3639eventHandle=elemData.handle=function(e){ 3640return typeof jQuery!=="undefined"&&jQuery.event.triggered!==e.type? 3641jQuery.event.dispatch.apply(elem,arguments):undefined; 3642}; 3643} 3644types=(types||"").match(rnothtmlwhite)||[""]; 3645t=types.length; 3646while(t--){ 3647tmp=rtypenamespace.exec(types[t])||[]; 3648type=origType=tmp[1]; 3649namespaces=(tmp[2]||"").split(".").sort(); 3650if(!type){ 3651continue; 3652} 3653special=jQuery.event.special[type]||{}; 3654type=(selector?special.delegateType:special.bindType)||type; 3655special=jQuery.event.special[type]||{}; 3656handleObj=jQuery.extend({ 3657type:type, 3658origType:origType, 3659data:data, 3660handler:handler, 3661guid:handler.guid, 3662selector:selector, 3663needsContext:selector&&jQuery.expr.match.needsContext.test(selector), 3664namespace:namespaces.join(".") 3665},handleObjIn); 3666if(!(handlers=events[type])){ 3667handlers=events[type]=[]; 3668handlers.delegateCount=0; 3669if(!special.setup|| 3670special.setup.call(elem,data,namespaces,eventHandle)===false){ 3671if(elem.addEventListener){ 3672elem.addEventListener(type,eventHandle); 3673} 3674} 3675} 3676if(special.add){ 3677special.add.call(elem,handleObj); 3678if(!handleObj.handler.guid){ 3679handleObj.handler.guid=handler.guid; 3680} 3681} 3682if(selector){ 3683handlers.splice(handlers.delegateCount++,0,handleObj); 3684}else{ 3685handlers.push(handleObj); 3686} 3687jQuery.event.global[type]=true; 3688} 3689}, 3690remove:function(elem,types,handler,selector,mappedTypes){ 3691var j,origCount,tmp, 3692events,t,handleObj, 3693special,handlers,type,namespaces,origType, 3694elemData=dataPriv.hasData(elem)&&dataPriv.get(elem); 3695if(!elemData||!(events=elemData.events)){ 3696return; 3697} 3698types=(types||"").match(rnothtmlwhite)||[""]; 3699t=types.length; 3700while(t--){ 3701tmp=rtypenamespace.exec(types[t])||[]; 3702type=origType=tmp[1]; 3703namespaces=(tmp[2]||"").split(".").sort(); 3704if(!type){ 3705for(type in events){ 3706jQuery.event.remove(elem,type+types[t],handler,selector,true); 3707} 3708continue; 3709} 3710special=jQuery.event.special[type]||{}; 3711type=(selector?special.delegateType:special.bindType)||type; 3712handlers=events[type]||[]; 3713tmp=tmp[2]&& 3714new RegExp("(^|\\.)"+namespaces.join("\\.(?:.*\\.|)")+"(\\.|$)"); 3715origCount=j=handlers.length; 3716while(j--){ 3717handleObj=handlers[j]; 3718if((mappedTypes||origType===handleObj.origType)&& 3719(!handler||handler.guid===handleObj.guid)&& 3720(!tmp||tmp.test(handleObj.namespace))&& 3721(!selector||selector===handleObj.selector|| 3722selector==="**"&&handleObj.selector)){ 3723handlers.splice(j,1); 3724if(handleObj.selector){ 3725handlers.delegateCount--; 3726} 3727if(special.remove){ 3728special.remove.call(elem,handleObj); 3729} 3730} 3731} 3732if(origCount&&!handlers.length){ 3733if(!special.teardown|| 3734special.teardown.call(elem,namespaces,elemData.handle)===false){ 3735jQuery.removeEvent(elem,type,elemData.handle); 3736} 3737delete events[type]; 3738} 3739} 3740if(jQuery.isEmptyObject(events)){ 3741dataPriv.remove(elem,"handle events"); 3742} 3743}, 3744dispatch:function(nativeEvent){ 3745var i,j,ret,matched,handleObj,handlerQueue, 3746args=new Array(arguments.length), 3747event=jQuery.event.fix(nativeEvent), 3748handlers=( 3749dataPriv.get(this,"events")||Object.create(null) 3750)[event.type]||[], 3751special=jQuery.event.special[event.type]||{}; 3752args[0]=event; 3753for(i=1;i<arguments.length;i++){ 3754args[i]=arguments[i]; 3755} 3756event.delegateTarget=this; 3757if(special.preDispatch&&special.preDispatch.call(this,event)===false){ 3758return; 3759} 3760handlerQueue=jQuery.event.handlers.call(this,event,handlers); 3761i=0; 3762while((matched=handlerQueue[i++])&&!event.isPropagationStopped()){ 3763event.currentTarget=matched.elem; 3764j=0; 3765while((handleObj=matched.handlers[j++])&& 3766!event.isImmediatePropagationStopped()){ 3767if(!event.rnamespace||handleObj.namespace===false|| 3768event.rnamespace.test(handleObj.namespace)){ 3769event.handleObj=handleObj; 3770event.data=handleObj.data; 3771ret=((jQuery.event.special[handleObj.origType]||{}).handle|| 3772handleObj.handler).apply(matched.elem,args); 3773if(ret!==undefined){ 3774if((event.result=ret)===false){ 3775event.preventDefault(); 3776event.stopPropagation(); 3777} 3778} 3779} 3780} 3781} 3782if(special.postDispatch){ 3783special.postDispatch.call(this,event); 3784} 3785return event.result; 3786}, 3787handlers:function(event,handlers){ 3788var i,handleObj,sel,matchedHandlers,matchedSelectors, 3789handlerQueue=[], 3790delegateCount=handlers.delegateCount, 3791cur=event.target; 3792if(delegateCount&& 3793cur.nodeType&& 3794!(event.type==="click"&&event.button>=1)){ 3795for(;cur!==this;cur=cur.parentNode||this){ 3796if(cur.nodeType===1&&!(event.type==="click"&&cur.disabled===true)){ 3797matchedHandlers=[]; 3798matchedSelectors={}; 3799for(i=0;i<delegateCount;i++){ 3800handleObj=handlers[i]; 3801sel=handleObj.selector+" "; 3802if(matchedSelectors[sel]===undefined){ 3803matchedSelectors[sel]=handleObj.needsContext? 3804jQuery(sel,this).index(cur)>-1: 3805jQuery.find(sel,this,null,[cur]).length; 3806} 3807if(matchedSelectors[sel]){ 3808matchedHandlers.push(handleObj); 3809} 3810} 3811if(matchedHandlers.length){ 3812handlerQueue.push({elem:cur,handlers:matchedHandlers}); 3813} 3814} 3815} 3816} 3817cur=this; 3818if(delegateCount<handlers.length){ 3819handlerQueue.push({elem:cur,handlers:handlers.slice(delegateCount)}); 3820} 3821return handlerQueue; 3822}, 3823addProp:function(name,hook){ 3824Object.defineProperty(jQuery.Event.prototype,name,{ 3825enumerable:true, 3826configurable:true, 3827get:isFunction(hook)? 3828function(){ 3829if(this.originalEvent){ 3830return hook(this.originalEvent); 3831} 3832}: 3833function(){ 3834if(this.originalEvent){ 3835return this.originalEvent[name]; 3836} 3837}, 3838set:function(value){ 3839Object.defineProperty(this,name,{ 3840enumerable:true, 3841configurable:true, 3842writable:true, 3843value:value 3844}); 3845} 3846}); 3847}, 3848fix:function(originalEvent){ 3849return originalEvent[jQuery.expando]? 3850originalEvent: 3851new jQuery.Event(originalEvent); 3852}, 3853special:{ 3854load:{ 3855noBubble:true 3856}, 3857click:{ 3858setup:function(data){ 3859var el=this||data; 3860if(rcheckableType.test(el.type)&& 3861el.click&&nodeName(el,"input")){ 3862leverageNative(el,"click",true); 3863} 3864return false; 3865}, 3866trigger:function(data){ 3867var el=this||data; 3868if(rcheckableType.test(el.type)&& 3869el.click&&nodeName(el,"input")){ 3870leverageNative(el,"click"); 3871} 3872return true; 3873}, 3874_default:function(event){ 3875var target=event.target; 3876return rcheckableType.test(target.type)&& 3877target.click&&nodeName(target,"input")&& 3878dataPriv.get(target,"click")|| 3879nodeName(target,"a"); 3880} 3881}, 3882beforeunload:{ 3883postDispatch:function(event){ 3884if(event.result!==undefined&&event.originalEvent){ 3885event.originalEvent.returnValue=event.result; 3886} 3887} 3888} 3889} 3890}; 3891function leverageNative(el,type,isSetup){ 3892if(!isSetup){ 3893if(dataPriv.get(el,type)===undefined){ 3894jQuery.event.add(el,type,returnTrue); 3895} 3896return; 3897} 3898dataPriv.set(el,type,false); 3899jQuery.event.add(el,type,{ 3900namespace:false, 3901handler:function(event){ 3902var result, 3903saved=dataPriv.get(this,type); 3904if((event.isTrigger&1)&&this[type]){ 3905if(!saved){ 3906saved=slice.call(arguments); 3907dataPriv.set(this,type,saved); 3908this[type](); 3909result=dataPriv.get(this,type); 3910dataPriv.set(this,type,false); 3911if(saved!==result){ 3912event.stopImmediatePropagation(); 3913event.preventDefault(); 3914return result; 3915} 3916}else if((jQuery.event.special[type]||{}).delegateType){ 3917event.stopPropagation(); 3918} 3919}else if(saved){ 3920dataPriv.set(this,type,jQuery.event.trigger( 3921saved[0], 3922saved.slice(1), 3923this 3924)); 3925event.stopPropagation(); 3926event.isImmediatePropagationStopped=returnTrue; 3927} 3928} 3929}); 3930} 3931jQuery.removeEvent=function(elem,type,handle){ 3932if(elem.removeEventListener){ 3933elem.removeEventListener(type,handle); 3934} 3935}; 3936jQuery.Event=function(src,props){ 3937if(!(this instanceof jQuery.Event)){ 3938return new jQuery.Event(src,props); 3939} 3940if(src&&src.type){ 3941this.originalEvent=src; 3942this.type=src.type; 3943this.isDefaultPrevented=src.defaultPrevented|| 3944src.defaultPrevented===undefined&& 3945src.returnValue===false? 3946returnTrue: 3947returnFalse; 3948this.target=(src.target&&src.target.nodeType===3)? 3949src.target.parentNode: 3950src.target; 3951this.currentTarget=src.currentTarget; 3952this.relatedTarget=src.relatedTarget; 3953}else{ 3954this.type=src; 3955} 3956if(props){ 3957jQuery.extend(this,props); 3958} 3959this.timeStamp=src&&src.timeStamp||Date.now(); 3960this[jQuery.expando]=true; 3961}; 3962jQuery.Event.prototype={ 3963constructor:jQuery.Event, 3964isDefaultPrevented:returnFalse, 3965isPropagationStopped:returnFalse, 3966isImmediatePropagationStopped:returnFalse, 3967isSimulated:false, 3968preventDefault:function(){ 3969var e=this.originalEvent; 3970this.isDefaultPrevented=returnTrue; 3971if(e&&!this.isSimulated){ 3972e.preventDefault(); 3973} 3974}, 3975stopPropagation:function(){ 3976var e=this.originalEvent; 3977this.isPropagationStopped=returnTrue; 3978if(e&&!this.isSimulated){ 3979e.stopPropagation(); 3980} 3981}, 3982stopImmediatePropagation:function(){ 3983var e=this.originalEvent; 3984this.isImmediatePropagationStopped=returnTrue; 3985if(e&&!this.isSimulated){ 3986e.stopImmediatePropagation(); 3987} 3988this.stopPropagation(); 3989} 3990}; 3991jQuery.each({ 3992altKey:true, 3993bubbles:true, 3994cancelable:true, 3995changedTouches:true, 3996ctrlKey:true, 3997detail:true, 3998eventPhase:true, 3999metaKey:true, 4000pageX:true, 4001pageY:true, 4002shiftKey:true, 4003view:true, 4004"char":true, 4005code:true, 4006charCode:true, 4007key:true, 4008keyCode:true, 4009button:true, 4010buttons:true, 4011clientX:true, 4012clientY:true, 4013offsetX:true, 4014offsetY:true, 4015pointerId:true, 4016pointerType:true, 4017screenX:true, 4018screenY:true, 4019targetTouches:true, 4020toElement:true, 4021touches:true, 4022which:true 4023},jQuery.event.addProp); 4024jQuery.each({focus:"focusin",blur:"focusout"},function(type,delegateType){ 4025function focusMappedHandler(nativeEvent){ 4026if(document.documentMode){ 4027var handle=dataPriv.get(this,"handle"), 4028event=jQuery.event.fix(nativeEvent); 4029event.type=nativeEvent.type==="focusin"?"focus":"blur"; 4030event.isSimulated=true; 4031handle(nativeEvent); 4032if(event.target===event.currentTarget){ 4033handle(event); 4034} 4035}else{ 4036jQuery.event.simulate(delegateType,nativeEvent.target, 4037jQuery.event.fix(nativeEvent)); 4038} 4039} 4040jQuery.event.special[type]={ 4041setup:function(){ 4042var attaches; 4043leverageNative(this,type,true); 4044if(document.documentMode){ 4045attaches=dataPriv.get(this,delegateType); 4046if(!attaches){ 4047this.addEventListener(delegateType,focusMappedHandler); 4048} 4049dataPriv.set(this,delegateType,(attaches||0)+1); 4050}else{ 4051return false; 4052} 4053}, 4054trigger:function(){ 4055leverageNative(this,type); 4056return true; 4057}, 4058teardown:function(){ 4059var attaches; 4060if(document.documentMode){ 4061attaches=dataPriv.get(this,delegateType)-1; 4062if(!attaches){ 4063this.removeEventListener(delegateType,focusMappedHandler); 4064dataPriv.remove(this,delegateType); 4065}else{ 4066dataPriv.set(this,delegateType,attaches); 4067} 4068}else{ 4069return false; 4070} 4071}, 4072_default:function(event){ 4073return dataPriv.get(event.target,type); 4074}, 4075delegateType:delegateType 4076}; 4077jQuery.event.special[delegateType]={ 4078setup:function(){ 4079var doc=this.ownerDocument||this.document||this, 4080dataHolder=document.documentMode?this:doc, 4081attaches=dataPriv.get(dataHolder,delegateType); 4082if(!attaches){ 4083if(document.documentMode){ 4084this.addEventListener(delegateType,focusMappedHandler); 4085}else{ 4086doc.addEventListener(type,focusMappedHandler,true); 4087} 4088} 4089dataPriv.set(dataHolder,delegateType,(attaches||0)+1); 4090}, 4091teardown:function(){ 4092var doc=this.ownerDocument||this.document||this, 4093dataHolder=document.documentMode?this:doc, 4094attaches=dataPriv.get(dataHolder,delegateType)-1; 4095if(!attaches){ 4096if(document.documentMode){ 4097this.removeEventListener(delegateType,focusMappedHandler); 4098}else{ 4099doc.removeEventListener(type,focusMappedHandler,true); 4100} 4101dataPriv.remove(dataHolder,delegateType); 4102}else{ 4103dataPriv.set(dataHolder,delegateType,attaches); 4104} 4105} 4106}; 4107}); 4108jQuery.each({ 4109mouseenter:"mouseover", 4110mouseleave:"mouseout", 4111pointerenter:"pointerover", 4112pointerleave:"pointerout" 4113},function(orig,fix){ 4114jQuery.event.special[orig]={ 4115delegateType:fix, 4116bindType:fix, 4117handle:function(event){ 4118var ret, 4119target=this, 4120related=event.relatedTarget, 4121handleObj=event.handleObj; 4122if(!related||(related!==target&&!jQuery.contains(target,related))){ 4123event.type=handleObj.origType; 4124ret=handleObj.handler.apply(this,arguments); 4125event.type=fix; 4126} 4127return ret; 4128} 4129}; 4130}); 4131jQuery.fn.extend({ 4132on:function(types,selector,data,fn){ 4133return on(this,types,selector,data,fn); 4134}, 4135one:function(types,selector,data,fn){ 4136return on(this,types,selector,data,fn,1); 4137}, 4138off:function(types,selector,fn){ 4139var handleObj,type; 4140if(types&&types.preventDefault&&types.handleObj){ 4141handleObj=types.handleObj; 4142jQuery(types.delegateTarget).off( 4143handleObj.namespace? 4144handleObj.origType+"."+handleObj.namespace: 4145handleObj.origType, 4146handleObj.selector, 4147handleObj.handler 4148); 4149return this; 4150} 4151if(typeof types==="object"){ 4152for(type in types){ 4153this.off(type,selector,types[type]); 4154} 4155return this; 4156} 4157if(selector===false||typeof selector==="function"){ 4158fn=selector; 4159selector=undefined; 4160} 4161if(fn===false){ 4162fn=returnFalse; 4163} 4164return this.each(function(){ 4165jQuery.event.remove(this,types,fn,selector); 4166}); 4167} 4168}); 4169var 4170rnoInnerhtml=/<script|<style|<link/i, 4171rchecked=/checked\s*(?:[^=]|=\s*.checked.)/i, 4172rcleanScript=/^\s*<!\[CDATA\[|\]\]>\s*$/g; 4173function manipulationTarget(elem,content){ 4174if(nodeName(elem,"table")&& 4175nodeName(content.nodeType!==11?content:content.firstChild,"tr")){ 4176return jQuery(elem).children("tbody")[0]||elem; 4177} 4178return elem; 4179} 4180function disableScript(elem){ 4181elem.type=(elem.getAttribute("type")!==null)+"/"+elem.type; 4182return elem; 4183} 4184function restoreScript(elem){ 4185if((elem.type||"").slice(0,5)==="true/"){ 4186elem.type=elem.type.slice(5); 4187}else{ 4188elem.removeAttribute("type"); 4189} 4190return elem; 4191} 4192function cloneCopyEvent(src,dest){ 4193var i,l,type,pdataOld,udataOld,udataCur,events; 4194if(dest.nodeType!==1){ 4195return; 4196} 4197if(dataPriv.hasData(src)){ 4198pdataOld=dataPriv.get(src); 4199events=pdataOld.events; 4200if(events){ 4201dataPriv.remove(dest,"handle events"); 4202for(type in events){ 4203for(i=0,l=events[type].length;i<l;i++){ 4204jQuery.event.add(dest,type,events[type][i]); 4205} 4206} 4207} 4208} 4209if(dataUser.hasData(src)){ 4210udataOld=dataUser.access(src); 4211udataCur=jQuery.extend({},udataOld); 4212dataUser.set(dest,udataCur); 4213} 4214} 4215function fixInput(src,dest){ 4216var nodeName=dest.nodeName.toLowerCase(); 4217if(nodeName==="input"&&rcheckableType.test(src.type)){ 4218dest.checked=src.checked; 4219}else if(nodeName==="input"||nodeName==="textarea"){ 4220dest.defaultValue=src.defaultValue; 4221} 4222} 4223function domManip(collection,args,callback,ignored){ 4224args=flat(args); 4225var fragment,first,scripts,hasScripts,node,doc, 4226i=0, 4227l=collection.length, 4228iNoClone=l-1, 4229value=args[0], 4230valueIsFunction=isFunction(value); 4231if(valueIsFunction|| 4232(l>1&&typeof value==="string"&& 4233!support.checkClone&&rchecked.test(value))){ 4234return collection.each(function(index){ 4235var self=collection.eq(index); 4236if(valueIsFunction){ 4237args[0]=value.call(this,index,self.html()); 4238} 4239domManip(self,args,callback,ignored); 4240}); 4241} 4242if(l){ 4243fragment=buildFragment(args,collection[0].ownerDocument,false,collection,ignored); 4244first=fragment.firstChild; 4245if(fragment.childNodes.length===1){ 4246fragment=first; 4247} 4248if(first||ignored){ 4249scripts=jQuery.map(getAll(fragment,"script"),disableScript); 4250hasScripts=scripts.length; 4251for(;i<l;i++){ 4252node=fragment; 4253if(i!==iNoClone){ 4254node=jQuery.clone(node,true,true); 4255if(hasScripts){ 4256jQuery.merge(scripts,getAll(node,"script")); 4257} 4258} 4259callback.call(collection[i],node,i); 4260} 4261if(hasScripts){ 4262doc=scripts[scripts.length-1].ownerDocument; 4263jQuery.map(scripts,restoreScript); 4264for(i=0;i<hasScripts;i++){ 4265node=scripts[i]; 4266if(rscriptType.test(node.type||"")&& 4267!dataPriv.access(node,"globalEval")&& 4268jQuery.contains(doc,node)){ 4269if(node.src&&(node.type||"").toLowerCase()!=="module"){ 4270if(jQuery._evalUrl&&!node.noModule){ 4271jQuery._evalUrl(node.src,{ 4272nonce:node.nonce||node.getAttribute("nonce") 4273},doc); 4274} 4275}else{ 4276DOMEval(node.textContent.replace(rcleanScript,""),node,doc); 4277} 4278} 4279} 4280} 4281} 4282} 4283return collection; 4284} 4285function remove(elem,selector,keepData){ 4286var node, 4287nodes=selector?jQuery.filter(selector,elem):elem, 4288i=0; 4289for(;(node=nodes[i])!=null;i++){ 4290if(!keepData&&node.nodeType===1){ 4291jQuery.cleanData(getAll(node)); 4292} 4293if(node.parentNode){ 4294if(keepData&&isAttached(node)){ 4295setGlobalEval(getAll(node,"script")); 4296} 4297node.parentNode.removeChild(node); 4298} 4299} 4300return elem; 4301} 4302jQuery.extend({ 4303htmlPrefilter:function(html){ 4304return html; 4305}, 4306clone:function(elem,dataAndEvents,deepDataAndEvents){ 4307var i,l,srcElements,destElements, 4308clone=elem.cloneNode(true), 4309inPage=isAttached(elem); 4310if(!support.noCloneChecked&&(elem.nodeType===1||elem.nodeType===11)&& 4311!jQuery.isXMLDoc(elem)){ 4312destElements=getAll(clone); 4313srcElements=getAll(elem); 4314for(i=0,l=srcElements.length;i<l;i++){ 4315fixInput(srcElements[i],destElements[i]); 4316} 4317} 4318if(dataAndEvents){ 4319if(deepDataAndEvents){ 4320srcElements=srcElements||getAll(elem); 4321destElements=destElements||getAll(clone); 4322for(i=0,l=srcElements.length;i<l;i++){ 4323cloneCopyEvent(srcElements[i],destElements[i]); 4324} 4325}else{ 4326cloneCopyEvent(elem,clone); 4327} 4328} 4329destElements=getAll(clone,"script"); 4330if(destElements.length>0){ 4331setGlobalEval(destElements,!inPage&&getAll(elem,"script")); 4332} 4333return clone; 4334}, 4335cleanData:function(elems){ 4336var data,elem,type, 4337special=jQuery.event.special, 4338i=0; 4339for(;(elem=elems[i])!==undefined;i++){ 4340if(acceptData(elem)){ 4341if((data=elem[dataPriv.expando])){ 4342if(data.events){ 4343for(type in data.events){ 4344if(special[type]){ 4345jQuery.event.remove(elem,type); 4346}else{ 4347jQuery.removeEvent(elem,type,data.handle); 4348} 4349} 4350} 4351elem[dataPriv.expando]=undefined; 4352} 4353if(elem[dataUser.expando]){ 4354elem[dataUser.expando]=undefined; 4355} 4356} 4357} 4358} 4359}); 4360jQuery.fn.extend({ 4361detach:function(selector){ 4362return remove(this,selector,true); 4363}, 4364remove:function(selector){ 4365return remove(this,selector); 4366}, 4367text:function(value){ 4368return access(this,function(value){ 4369return value===undefined? 4370jQuery.text(this): 4371this.empty().each(function(){ 4372if(this.nodeType===1||this.nodeType===11||this.nodeType===9){ 4373this.textContent=value; 4374} 4375}); 4376},null,value,arguments.length); 4377}, 4378append:function(){ 4379return domManip(this,arguments,function(elem){ 4380if(this.nodeType===1||this.nodeType===11||this.nodeType===9){ 4381var target=manipulationTarget(this,elem); 4382target.appendChild(elem); 4383} 4384}); 4385}, 4386prepend:function(){ 4387return domManip(this,arguments,function(elem){ 4388if(this.nodeType===1||this.nodeType===11||this.nodeType===9){ 4389var target=manipulationTarget(this,elem); 4390target.insertBefore(elem,target.firstChild); 4391} 4392}); 4393}, 4394before:function(){ 4395return domManip(this,arguments,function(elem){ 4396if(this.parentNode){ 4397this.parentNode.insertBefore(elem,this); 4398} 4399}); 4400}, 4401after:function(){ 4402return domManip(this,arguments,function(elem){ 4403if(this.parentNode){ 4404this.parentNode.insertBefore(elem,this.nextSibling); 4405} 4406}); 4407}, 4408empty:function(){ 4409var elem, 4410i=0; 4411for(;(elem=this[i])!=null;i++){ 4412if(elem.nodeType===1){ 4413jQuery.cleanData(getAll(elem,false)); 4414elem.textContent=""; 4415} 4416} 4417return this; 4418}, 4419clone:function(dataAndEvents,deepDataAndEvents){ 4420dataAndEvents=dataAndEvents==null?false:dataAndEvents; 4421deepDataAndEvents=deepDataAndEvents==null?dataAndEvents:deepDataAndEvents; 4422return this.map(function(){ 4423return jQuery.clone(this,dataAndEvents,deepDataAndEvents); 4424}); 4425}, 4426html:function(value){ 4427return access(this,function(value){ 4428var elem=this[0]||{}, 4429i=0, 4430l=this.length; 4431if(value===undefined&&elem.nodeType===1){ 4432return elem.innerHTML; 4433} 4434if(typeof value==="string"&&!rnoInnerhtml.test(value)&& 4435!wrapMap[(rtagName.exec(value)||["",""])[1].toLowerCase()]){ 4436value=jQuery.htmlPrefilter(value); 4437try{ 4438for(;i<l;i++){ 4439elem=this[i]||{}; 4440if(elem.nodeType===1){ 4441jQuery.cleanData(getAll(elem,false)); 4442elem.innerHTML=value; 4443} 4444} 4445elem=0; 4446}catch(e){} 4447} 4448if(elem){ 4449this.empty().append(value); 4450} 4451},null,value,arguments.length); 4452}, 4453replaceWith:function(){ 4454var ignored=[]; 4455return domManip(this,arguments,function(elem){ 4456var parent=this.parentNode; 4457if(jQuery.inArray(this,ignored)<0){ 4458jQuery.cleanData(getAll(this)); 4459if(parent){ 4460parent.replaceChild(elem,this); 4461} 4462} 4463},ignored); 4464} 4465}); 4466jQuery.each({ 4467appendTo:"append", 4468prependTo:"prepend", 4469insertBefore:"before", 4470insertAfter:"after", 4471replaceAll:"replaceWith" 4472},function(name,original){ 4473jQuery.fn[name]=function(selector){ 4474var elems, 4475ret=[], 4476insert=jQuery(selector), 4477last=insert.length-1, 4478i=0; 4479for(;i<=last;i++){ 4480elems=i===last?this:this.clone(true); 4481jQuery(insert[i])[original](elems); 4482push.apply(ret,elems.get()); 4483} 4484return this.pushStack(ret); 4485}; 4486}); 4487var rnumnonpx=new RegExp("^("+pnum+")(?!px)[a-z%]+$","i"); 4488var rcustomProp=/^--/; 4489var getStyles=function(elem){ 4490var view=elem.ownerDocument.defaultView; 4491if(!view||!view.opener){ 4492view=window; 4493} 4494return view.getComputedStyle(elem); 4495}; 4496var swap=function(elem,options,callback){ 4497var ret,name, 4498old={}; 4499for(name in options){ 4500old[name]=elem.style[name]; 4501elem.style[name]=options[name]; 4502} 4503ret=callback.call(elem); 4504for(name in options){ 4505elem.style[name]=old[name]; 4506} 4507return ret; 4508}; 4509var rboxStyle=new RegExp(cssExpand.join("|"),"i"); 4510(function(){ 4511function computeStyleTests(){ 4512if(!div){ 4513return; 4514} 4515container.style.cssText="position:absolute;left:-11111px;width:60px;"+ 4516"margin-top:1px;padding:0;border:0"; 4517div.style.cssText= 4518"position:relative;display:block;box-sizing:border-box;overflow:scroll;"+ 4519"margin:auto;border:1px;padding:1px;"+ 4520"width:60%;top:1%"; 4521documentElement.appendChild(container).appendChild(div); 4522var divStyle=window.getComputedStyle(div); 4523pixelPositionVal=divStyle.top!=="1%"; 4524reliableMarginLeftVal=roundPixelMeasures(divStyle.marginLeft)===12; 4525div.style.right="60%"; 4526pixelBoxStylesVal=roundPixelMeasures(divStyle.right)===36; 4527boxSizingReliableVal=roundPixelMeasures(divStyle.width)===36; 4528div.style.position="absolute"; 4529scrollboxSizeVal=roundPixelMeasures(div.offsetWidth/3)===12; 4530documentElement.removeChild(container); 4531div=null; 4532} 4533function roundPixelMeasures(measure){ 4534return Math.round(parseFloat(measure)); 4535} 4536var pixelPositionVal,boxSizingReliableVal,scrollboxSizeVal,pixelBoxStylesVal, 4537reliableTrDimensionsVal,reliableMarginLeftVal, 4538container=document.createElement("div"), 4539div=document.createElement("div"); 4540if(!div.style){ 4541return; 4542} 4543div.style.backgroundClip="content-box"; 4544div.cloneNode(true).style.backgroundClip=""; 4545support.clearCloneStyle=div.style.backgroundClip==="content-box"; 4546jQuery.extend(support,{ 4547boxSizingReliable:function(){ 4548computeStyleTests(); 4549return boxSizingReliableVal; 4550}, 4551pixelBoxStyles:function(){ 4552computeStyleTests(); 4553return pixelBoxStylesVal; 4554}, 4555pixelPosition:function(){ 4556computeStyleTests(); 4557return pixelPositionVal; 4558}, 4559reliableMarginLeft:function(){ 4560computeStyleTests(); 4561return reliableMarginLeftVal; 4562}, 4563scrollboxSize:function(){ 4564computeStyleTests(); 4565return scrollboxSizeVal; 4566}, 4567reliableTrDimensions:function(){ 4568var table,tr,trChild,trStyle; 4569if(reliableTrDimensionsVal==null){ 4570table=document.createElement("table"); 4571tr=document.createElement("tr"); 4572trChild=document.createElement("div"); 4573table.style.cssText="position:absolute;left:-11111px;border-collapse:separate"; 4574tr.style.cssText="box-sizing:content-box;border:1px solid"; 4575tr.style.height="1px"; 4576trChild.style.height="9px"; 4577trChild.style.display="block"; 4578documentElement 4579.appendChild(table) 4580.appendChild(tr) 4581.appendChild(trChild); 4582trStyle=window.getComputedStyle(tr); 4583reliableTrDimensionsVal=(parseInt(trStyle.height,10)+ 4584parseInt(trStyle.borderTopWidth,10)+ 4585parseInt(trStyle.borderBottomWidth,10))===tr.offsetHeight; 4586documentElement.removeChild(table); 4587} 4588return reliableTrDimensionsVal; 4589} 4590}); 4591})(); 4592function curCSS(elem,name,computed){ 4593var width,minWidth,maxWidth,ret, 4594isCustomProp=rcustomProp.test(name), 4595style=elem.style; 4596computed=computed||getStyles(elem); 4597if(computed){ 4598ret=computed.getPropertyValue(name)||computed[name]; 4599if(isCustomProp&&ret){ 4600ret=ret.replace(rtrimCSS,"$1")||undefined; 4601} 4602if(ret===""&&!isAttached(elem)){ 4603ret=jQuery.style(elem,name); 4604} 4605if(!support.pixelBoxStyles()&&rnumnonpx.test(ret)&&rboxStyle.test(name)){ 4606width=style.width; 4607minWidth=style.minWidth; 4608maxWidth=style.maxWidth; 4609style.minWidth=style.maxWidth=style.width=ret; 4610ret=computed.width; 4611style.width=width; 4612style.minWidth=minWidth; 4613style.maxWidth=maxWidth; 4614} 4615} 4616return ret!==undefined? 4617ret+"": 4618ret; 4619} 4620function addGetHookIf(conditionFn,hookFn){ 4621return{ 4622get:function(){ 4623if(conditionFn()){ 4624delete this.get; 4625return; 4626} 4627return(this.get=hookFn).apply(this,arguments); 4628} 4629}; 4630} 4631var cssPrefixes=["Webkit","Moz","ms"], 4632emptyStyle=document.createElement("div").style, 4633vendorProps={}; 4634function vendorPropName(name){ 4635var capName=name[0].toUpperCase()+name.slice(1), 4636i=cssPrefixes.length; 4637while(i--){ 4638name=cssPrefixes[i]+capName; 4639if(name in emptyStyle){ 4640return name; 4641} 4642} 4643} 4644function finalPropName(name){ 4645var final=jQuery.cssProps[name]||vendorProps[name]; 4646if(final){ 4647return final; 4648} 4649if(name in emptyStyle){ 4650return name; 4651} 4652return vendorProps[name]=vendorPropName(name)||name; 4653} 4654var 4655rdisplayswap=/^(none|table(?!-c[ea]).+)/, 4656cssShow={position:"absolute",visibility:"hidden",display:"block"}, 4657cssNormalTransform={ 4658letterSpacing:"0", 4659fontWeight:"400" 4660}; 4661function setPositiveNumber(_elem,value,subtract){ 4662var matches=rcssNum.exec(value); 4663return matches? 4664Math.max(0,matches[2]-(subtract||0))+(matches[3]||"px"): 4665value; 4666} 4667function boxModelAdjustment(elem,dimension,box,isBorderBox,styles,computedVal){ 4668var i=dimension==="width"?1:0, 4669extra=0, 4670delta=0, 4671marginDelta=0; 4672if(box===(isBorderBox?"border":"content")){ 4673return 0; 4674} 4675for(;i<4;i+=2){ 4676if(box==="margin"){ 4677marginDelta+=jQuery.css(elem,box+cssExpand[i],true,styles); 4678} 4679if(!isBorderBox){ 4680delta+=jQuery.css(elem,"padding"+cssExpand[i],true,styles); 4681if(box!=="padding"){ 4682delta+=jQuery.css(elem,"border"+cssExpand[i]+"Width",true,styles); 4683}else{ 4684extra+=jQuery.css(elem,"border"+cssExpand[i]+"Width",true,styles); 4685} 4686}else{ 4687if(box==="content"){ 4688delta-=jQuery.css(elem,"padding"+cssExpand[i],true,styles); 4689} 4690if(box!=="margin"){ 4691delta-=jQuery.css(elem,"border"+cssExpand[i]+"Width",true,styles); 4692} 4693} 4694} 4695if(!isBorderBox&&computedVal>=0){ 4696delta+=Math.max(0,Math.ceil( 4697elem["offset"+dimension[0].toUpperCase()+dimension.slice(1)]- 4698computedVal- 4699delta- 4700extra- 47010.5 4702))||0; 4703} 4704return delta+marginDelta; 4705} 4706function getWidthOrHeight(elem,dimension,extra){ 4707var styles=getStyles(elem), 4708boxSizingNeeded=!support.boxSizingReliable()||extra, 4709isBorderBox=boxSizingNeeded&& 4710jQuery.css(elem,"boxSizing",false,styles)==="border-box", 4711valueIsBorderBox=isBorderBox, 4712val=curCSS(elem,dimension,styles), 4713offsetProp="offset"+dimension[0].toUpperCase()+dimension.slice(1); 4714if(rnumnonpx.test(val)){ 4715if(!extra){ 4716return val; 4717} 4718val="auto"; 4719} 4720if((!support.boxSizingReliable()&&isBorderBox|| 4721!support.reliableTrDimensions()&&nodeName(elem,"tr")|| 4722val==="auto"|| 4723!parseFloat(val)&&jQuery.css(elem,"display",false,styles)==="inline")&& 4724elem.getClientRects().length){ 4725isBorderBox=jQuery.css(elem,"boxSizing",false,styles)==="border-box"; 4726valueIsBorderBox=offsetProp in elem; 4727if(valueIsBorderBox){ 4728val=elem[offsetProp]; 4729} 4730} 4731val=parseFloat(val)||0; 4732return(val+ 4733boxModelAdjustment( 4734elem, 4735dimension, 4736extra||(isBorderBox?"border":"content"), 4737valueIsBorderBox, 4738styles, 4739val 4740) 4741)+"px"; 4742} 4743jQuery.extend({ 4744cssHooks:{ 4745opacity:{ 4746get:function(elem,computed){ 4747if(computed){ 4748var ret=curCSS(elem,"opacity"); 4749return ret===""?"1":ret; 4750} 4751} 4752} 4753}, 4754cssNumber:{ 4755animationIterationCount:true, 4756aspectRatio:true, 4757borderImageSlice:true, 4758columnCount:true, 4759flexGrow:true, 4760flexShrink:true, 4761fontWeight:true, 4762gridArea:true, 4763gridColumn:true, 4764gridColumnEnd:true, 4765gridColumnStart:true, 4766gridRow:true, 4767gridRowEnd:true, 4768gridRowStart:true, 4769lineHeight:true, 4770opacity:true, 4771order:true, 4772orphans:true, 4773scale:true, 4774widows:true, 4775zIndex:true, 4776zoom:true, 4777fillOpacity:true, 4778floodOpacity:true, 4779stopOpacity:true, 4780strokeMiterlimit:true, 4781strokeOpacity:true 4782}, 4783cssProps:{}, 4784style:function(elem,name,value,extra){ 4785if(!elem||elem.nodeType===3||elem.nodeType===8||!elem.style){ 4786return; 4787} 4788var ret,type,hooks, 4789origName=camelCase(name), 4790isCustomProp=rcustomProp.test(name), 4791style=elem.style; 4792if(!isCustomProp){ 4793name=finalPropName(origName); 4794} 4795hooks=jQuery.cssHooks[name]||jQuery.cssHooks[origName]; 4796if(value!==undefined){ 4797type=typeof value; 4798if(type==="string"&&(ret=rcssNum.exec(value))&&ret[1]){ 4799value=adjustCSS(elem,name,ret); 4800type="number"; 4801} 4802if(value==null||value!==value){ 4803return; 4804} 4805if(type==="number"&&!isCustomProp){ 4806value+=ret&&ret[3]||(jQuery.cssNumber[origName]?"":"px"); 4807} 4808if(!support.clearCloneStyle&&value===""&&name.indexOf("background")===0){ 4809style[name]="inherit"; 4810} 4811if(!hooks||!("set"in hooks)|| 4812(value=hooks.set(elem,value,extra))!==undefined){ 4813if(isCustomProp){ 4814style.setProperty(name,value); 4815}else{ 4816style[name]=value; 4817} 4818} 4819}else{ 4820if(hooks&&"get"in hooks&& 4821(ret=hooks.get(elem,false,extra))!==undefined){ 4822return ret; 4823} 4824return style[name]; 4825} 4826}, 4827css:function(elem,name,extra,styles){ 4828var val,num,hooks, 4829origName=camelCase(name), 4830isCustomProp=rcustomProp.test(name); 4831if(!isCustomProp){ 4832name=finalPropName(origName); 4833} 4834hooks=jQuery.cssHooks[name]||jQuery.cssHooks[origName]; 4835if(hooks&&"get"in hooks){ 4836val=hooks.get(elem,true,extra); 4837} 4838if(val===undefined){ 4839val=curCSS(elem,name,styles); 4840} 4841if(val==="normal"&&name in cssNormalTransform){ 4842val=cssNormalTransform[name]; 4843} 4844if(extra===""||extra){ 4845num=parseFloat(val); 4846return extra===true||isFinite(num)?num||0:val; 4847} 4848return val; 4849} 4850}); 4851jQuery.each(["height","width"],function(_i,dimension){ 4852jQuery.cssHooks[dimension]={ 4853get:function(elem,computed,extra){ 4854if(computed){ 4855return rdisplayswap.test(jQuery.css(elem,"display"))&& 4856(!elem.getClientRects().length||!elem.getBoundingClientRect().width)? 4857swap(elem,cssShow,function(){ 4858return getWidthOrHeight(elem,dimension,extra); 4859}): 4860getWidthOrHeight(elem,dimension,extra); 4861} 4862}, 4863set:function(elem,value,extra){ 4864var matches, 4865styles=getStyles(elem), 4866scrollboxSizeBuggy=!support.scrollboxSize()&& 4867styles.position==="absolute", 4868boxSizingNeeded=scrollboxSizeBuggy||extra, 4869isBorderBox=boxSizingNeeded&& 4870jQuery.css(elem,"boxSizing",false,styles)==="border-box", 4871subtract=extra? 4872boxModelAdjustment( 4873elem, 4874dimension, 4875extra, 4876isBorderBox, 4877styles 4878): 48790; 4880if(isBorderBox&&scrollboxSizeBuggy){ 4881subtract-=Math.ceil( 4882elem["offset"+dimension[0].toUpperCase()+dimension.slice(1)]- 4883parseFloat(styles[dimension])- 4884boxModelAdjustment(elem,dimension,"border",false,styles)- 48850.5 4886); 4887} 4888if(subtract&&(matches=rcssNum.exec(value))&& 4889(matches[3]||"px")!=="px"){ 4890elem.style[dimension]=value; 4891value=jQuery.css(elem,dimension); 4892} 4893return setPositiveNumber(elem,value,subtract); 4894} 4895}; 4896}); 4897jQuery.cssHooks.marginLeft=addGetHookIf(support.reliableMarginLeft, 4898function(elem,computed){ 4899if(computed){ 4900return(parseFloat(curCSS(elem,"marginLeft"))|| 4901elem.getBoundingClientRect().left- 4902swap(elem,{marginLeft:0},function(){ 4903return elem.getBoundingClientRect().left; 4904}) 4905)+"px"; 4906} 4907} 4908); 4909jQuery.each({ 4910margin:"", 4911padding:"", 4912border:"Width" 4913},function(prefix,suffix){ 4914jQuery.cssHooks[prefix+suffix]={ 4915expand:function(value){ 4916var i=0, 4917expanded={}, 4918parts=typeof value==="string"?value.split(" "):[value]; 4919for(;i<4;i++){ 4920expanded[prefix+cssExpand[i]+suffix]= 4921parts[i]||parts[i-2]||parts[0]; 4922} 4923return expanded; 4924} 4925}; 4926if(prefix!=="margin"){ 4927jQuery.cssHooks[prefix+suffix].set=setPositiveNumber; 4928} 4929}); 4930jQuery.fn.extend({ 4931css:function(name,value){ 4932return access(this,function(elem,name,value){ 4933var styles,len, 4934map={}, 4935i=0; 4936if(Array.isArray(name)){ 4937styles=getStyles(elem); 4938len=name.length; 4939for(;i<len;i++){ 4940map[name[i]]=jQuery.css(elem,name[i],false,styles); 4941} 4942return map; 4943} 4944return value!==undefined? 4945jQuery.style(elem,name,value): 4946jQuery.css(elem,name); 4947},name,value,arguments.length>1); 4948} 4949}); 4950function Tween(elem,options,prop,end,easing){ 4951return new Tween.prototype.init(elem,options,prop,end,easing); 4952} 4953jQuery.Tween=Tween; 4954Tween.prototype={ 4955constructor:Tween, 4956init:function(elem,options,prop,end,easing,unit){ 4957this.elem=elem; 4958this.prop=prop; 4959this.easing=easing||jQuery.easing._default; 4960this.options=options; 4961this.start=this.now=this.cur(); 4962this.end=end; 4963this.unit=unit||(jQuery.cssNumber[prop]?"":"px"); 4964}, 4965cur:function(){ 4966var hooks=Tween.propHooks[this.prop]; 4967return hooks&&hooks.get? 4968hooks.get(this): 4969Tween.propHooks._default.get(this); 4970}, 4971run:function(percent){ 4972var eased, 4973hooks=Tween.propHooks[this.prop]; 4974if(this.options.duration){ 4975this.pos=eased=jQuery.easing[this.easing]( 4976percent,this.options.duration*percent,0,1,this.options.duration 4977); 4978}else{ 4979this.pos=eased=percent; 4980} 4981this.now=(this.end-this.start)*eased+this.start; 4982if(this.options.step){ 4983this.options.step.call(this.elem,this.now,this); 4984} 4985if(hooks&&hooks.set){ 4986hooks.set(this); 4987}else{ 4988Tween.propHooks._default.set(this); 4989} 4990return this; 4991} 4992}; 4993Tween.prototype.init.prototype=Tween.prototype; 4994Tween.propHooks={ 4995_default:{ 4996get:function(tween){ 4997var result; 4998if(tween.elem.nodeType!==1|| 4999tween.elem[tween.prop]!=null&&tween.elem.style[tween.prop]==null){ 5000return tween.elem[tween.prop]; 5001} 5002result=jQuery.css(tween.elem,tween.prop,""); 5003return!result||result==="auto"?0:result; 5004}, 5005set:function(tween){ 5006if(jQuery.fx.step[tween.prop]){ 5007jQuery.fx.step[tween.prop](tween); 5008}else if(tween.elem.nodeType===1&&( 5009jQuery.cssHooks[tween.prop]|| 5010tween.elem.style[finalPropName(tween.prop)]!=null)){ 5011jQuery.style(tween.elem,tween.prop,tween.now+tween.unit); 5012}else{ 5013tween.elem[tween.prop]=tween.now; 5014} 5015} 5016} 5017}; 5018Tween.propHooks.scrollTop=Tween.propHooks.scrollLeft={ 5019set:function(tween){ 5020if(tween.elem.nodeType&&tween.elem.parentNode){ 5021tween.elem[tween.prop]=tween.now; 5022} 5023} 5024}; 5025jQuery.easing={ 5026linear:function(p){ 5027return p; 5028}, 5029swing:function(p){ 5030return 0.5-Math.cos(p*Math.PI)/2; 5031}, 5032_default:"swing" 5033}; 5034jQuery.fx=Tween.prototype.init; 5035jQuery.fx.step={}; 5036var 5037fxNow,inProgress, 5038rfxtypes=/^(?:toggle|show|hide)$/, 5039rrun=/queueHooks$/; 5040function schedule(){ 5041if(inProgress){ 5042if(document.hidden===false&&window.requestAnimationFrame){ 5043window.requestAnimationFrame(schedule); 5044}else{ 5045window.setTimeout(schedule,jQuery.fx.interval); 5046} 5047jQuery.fx.tick(); 5048} 5049} 5050function createFxNow(){ 5051window.setTimeout(function(){ 5052fxNow=undefined; 5053}); 5054return(fxNow=Date.now()); 5055} 5056function genFx(type,includeWidth){ 5057var which, 5058i=0, 5059attrs={height:type}; 5060includeWidth=includeWidth?1:0; 5061for(;i<4;i+=2-includeWidth){ 5062which=cssExpand[i]; 5063attrs["margin"+which]=attrs["padding"+which]=type; 5064} 5065if(includeWidth){ 5066attrs.opacity=attrs.width=type; 5067} 5068return attrs; 5069} 5070function createTween(value,prop,animation){ 5071var tween, 5072collection=(Animation.tweeners[prop]||[]).concat(Animation.tweeners["*"]), 5073index=0, 5074length=collection.length; 5075for(;index<length;index++){ 5076if((tween=collection[index].call(animation,prop,value))){ 5077return tween; 5078} 5079} 5080} 5081function defaultPrefilter(elem,props,opts){ 5082var prop,value,toggle,hooks,oldfire,propTween,restoreDisplay,display, 5083isBox="width"in props||"height"in props, 5084anim=this, 5085orig={}, 5086style=elem.style, 5087hidden=elem.nodeType&&isHiddenWithinTree(elem), 5088dataShow=dataPriv.get(elem,"fxshow"); 5089if(!opts.queue){ 5090hooks=jQuery._queueHooks(elem,"fx"); 5091if(hooks.unqueued==null){ 5092hooks.unqueued=0; 5093oldfire=hooks.empty.fire; 5094hooks.empty.fire=function(){ 5095if(!hooks.unqueued){ 5096oldfire(); 5097} 5098}; 5099} 5100hooks.unqueued++; 5101anim.always(function(){ 5102anim.always(function(){ 5103hooks.unqueued--; 5104if(!jQuery.queue(elem,"fx").length){ 5105hooks.empty.fire(); 5106} 5107}); 5108}); 5109} 5110for(prop in props){ 5111value=props[prop]; 5112if(rfxtypes.test(value)){ 5113delete props[prop]; 5114toggle=toggle||value==="toggle"; 5115if(value===(hidden?"hide":"show")){ 5116if(value==="show"&&dataShow&&dataShow[prop]!==undefined){ 5117hidden=true; 5118}else{ 5119continue; 5120} 5121} 5122orig[prop]=dataShow&&dataShow[prop]||jQuery.style(elem,prop); 5123} 5124} 5125propTween=!jQuery.isEmptyObject(props); 5126if(!propTween&&jQuery.isEmptyObject(orig)){ 5127return; 5128} 5129if(isBox&&elem.nodeType===1){ 5130opts.overflow=[style.overflow,style.overflowX,style.overflowY]; 5131restoreDisplay=dataShow&&dataShow.display; 5132if(restoreDisplay==null){ 5133restoreDisplay=dataPriv.get(elem,"display"); 5134} 5135display=jQuery.css(elem,"display"); 5136if(display==="none"){ 5137if(restoreDisplay){ 5138display=restoreDisplay; 5139}else{ 5140showHide([elem],true); 5141restoreDisplay=elem.style.display||restoreDisplay; 5142display=jQuery.css(elem,"display"); 5143showHide([elem]); 5144} 5145} 5146if(display==="inline"||display==="inline-block"&&restoreDisplay!=null){ 5147if(jQuery.css(elem,"float")==="none"){ 5148if(!propTween){ 5149anim.done(function(){ 5150style.display=restoreDisplay; 5151}); 5152if(restoreDisplay==null){ 5153display=style.display; 5154restoreDisplay=display==="none"?"":display; 5155} 5156} 5157style.display="inline-block"; 5158} 5159} 5160} 5161if(opts.overflow){ 5162style.overflow="hidden"; 5163anim.always(function(){ 5164style.overflow=opts.overflow[0]; 5165style.overflowX=opts.overflow[1]; 5166style.overflowY=opts.overflow[2]; 5167}); 5168} 5169propTween=false; 5170for(prop in orig){ 5171if(!propTween){ 5172if(dataShow){ 5173if("hidden"in dataShow){ 5174hidden=dataShow.hidden; 5175} 5176}else{ 5177dataShow=dataPriv.access(elem,"fxshow",{display:restoreDisplay}); 5178} 5179if(toggle){ 5180dataShow.hidden=!hidden; 5181} 5182if(hidden){ 5183showHide([elem],true); 5184} 5185anim.done(function(){ 5186if(!hidden){ 5187showHide([elem]); 5188} 5189dataPriv.remove(elem,"fxshow"); 5190for(prop in orig){ 5191jQuery.style(elem,prop,orig[prop]); 5192} 5193}); 5194} 5195propTween=createTween(hidden?dataShow[prop]:0,prop,anim); 5196if(!(prop in dataShow)){ 5197dataShow[prop]=propTween.start; 5198if(hidden){ 5199propTween.end=propTween.start; 5200propTween.start=0; 5201} 5202} 5203} 5204} 5205function propFilter(props,specialEasing){ 5206var index,name,easing,value,hooks; 5207for(index in props){ 5208name=camelCase(index); 5209easing=specialEasing[name]; 5210value=props[index]; 5211if(Array.isArray(value)){ 5212easing=value[1]; 5213value=props[index]=value[0]; 5214} 5215if(index!==name){ 5216props[name]=value; 5217delete props[index]; 5218} 5219hooks=jQuery.cssHooks[name]; 5220if(hooks&&"expand"in hooks){ 5221value=hooks.expand(value); 5222delete props[name]; 5223for(index in value){ 5224if(!(index in props)){ 5225props[index]=value[index]; 5226specialEasing[index]=easing; 5227} 5228} 5229}else{ 5230specialEasing[name]=easing; 5231} 5232} 5233} 5234function Animation(elem,properties,options){ 5235var result, 5236stopped, 5237index=0, 5238length=Animation.prefilters.length, 5239deferred=jQuery.Deferred().always(function(){ 5240delete tick.elem; 5241}), 5242tick=function(){ 5243if(stopped){ 5244return false; 5245} 5246var currentTime=fxNow||createFxNow(), 5247remaining=Math.max(0,animation.startTime+animation.duration-currentTime), 5248temp=remaining/animation.duration||0, 5249percent=1-temp, 5250index=0, 5251length=animation.tweens.length; 5252for(;index<length;index++){ 5253animation.tweens[index].run(percent); 5254} 5255deferred.notifyWith(elem,[animation,percent,remaining]); 5256if(percent<1&&length){ 5257return remaining; 5258} 5259if(!length){ 5260deferred.notifyWith(elem,[animation,1,0]); 5261} 5262deferred.resolveWith(elem,[animation]); 5263return false; 5264}, 5265animation=deferred.promise({ 5266elem:elem, 5267props:jQuery.extend({},properties), 5268opts:jQuery.extend(true,{ 5269specialEasing:{}, 5270easing:jQuery.easing._default 5271},options), 5272originalProperties:properties, 5273originalOptions:options, 5274startTime:fxNow||createFxNow(), 5275duration:options.duration, 5276tweens:[], 5277createTween:function(prop,end){ 5278var tween=jQuery.Tween(elem,animation.opts,prop,end, 5279animation.opts.specialEasing[prop]||animation.opts.easing); 5280animation.tweens.push(tween); 5281return tween; 5282}, 5283stop:function(gotoEnd){ 5284var index=0, 5285length=gotoEnd?animation.tweens.length:0; 5286if(stopped){ 5287return this; 5288} 5289stopped=true; 5290for(;index<length;index++){ 5291animation.tweens[index].run(1); 5292} 5293if(gotoEnd){ 5294deferred.notifyWith(elem,[animation,1,0]); 5295deferred.resolveWith(elem,[animation,gotoEnd]); 5296}else{ 5297deferred.rejectWith(elem,[animation,gotoEnd]); 5298} 5299return this; 5300} 5301}), 5302props=animation.props; 5303propFilter(props,animation.opts.specialEasing); 5304for(;index<length;index++){ 5305result=Animation.prefilters[index].call(animation,elem,props,animation.opts); 5306if(result){ 5307if(isFunction(result.stop)){ 5308jQuery._queueHooks(animation.elem,animation.opts.queue).stop= 5309result.stop.bind(result); 5310} 5311return result; 5312} 5313} 5314jQuery.map(props,createTween,animation); 5315if(isFunction(animation.opts.start)){ 5316animation.opts.start.call(elem,animation); 5317} 5318animation 5319.progress(animation.opts.progress) 5320.done(animation.opts.done,animation.opts.complete) 5321.fail(animation.opts.fail) 5322.always(animation.opts.always); 5323jQuery.fx.timer( 5324jQuery.extend(tick,{ 5325elem:elem, 5326anim:animation, 5327queue:animation.opts.queue 5328}) 5329); 5330return animation; 5331} 5332jQuery.Animation=jQuery.extend(Animation,{ 5333tweeners:{ 5334"*":[function(prop,value){ 5335var tween=this.createTween(prop,value); 5336adjustCSS(tween.elem,prop,rcssNum.exec(value),tween); 5337return tween; 5338}] 5339}, 5340tweener:function(props,callback){ 5341if(isFunction(props)){ 5342callback=props; 5343props=["*"]; 5344}else{ 5345props=props.match(rnothtmlwhite); 5346} 5347var prop, 5348index=0, 5349length=props.length; 5350for(;index<length;index++){ 5351prop=props[index]; 5352Animation.tweeners[prop]=Animation.tweeners[prop]||[]; 5353Animation.tweeners[prop].unshift(callback); 5354} 5355}, 5356prefilters:[defaultPrefilter], 5357prefilter:function(callback,prepend){ 5358if(prepend){ 5359Animation.prefilters.unshift(callback); 5360}else{ 5361Animation.prefilters.push(callback); 5362} 5363} 5364}); 5365jQuery.speed=function(speed,easing,fn){ 5366var opt=speed&&typeof speed==="object"?jQuery.extend({},speed):{ 5367complete:fn||!fn&&easing|| 5368isFunction(speed)&&speed, 5369duration:speed, 5370easing:fn&&easing||easing&&!isFunction(easing)&&easing 5371}; 5372if(jQuery.fx.off){ 5373opt.duration=0; 5374}else{ 5375if(typeof opt.duration!=="number"){ 5376if(opt.duration in jQuery.fx.speeds){ 5377opt.duration=jQuery.fx.speeds[opt.duration]; 5378}else{ 5379opt.duration=jQuery.fx.speeds._default; 5380} 5381} 5382} 5383if(opt.queue==null||opt.queue===true){ 5384opt.queue="fx"; 5385} 5386opt.old=opt.complete; 5387opt.complete=function(){ 5388if(isFunction(opt.old)){ 5389opt.old.call(this); 5390} 5391if(opt.queue){ 5392jQuery.dequeue(this,opt.queue); 5393} 5394}; 5395return opt; 5396}; 5397jQuery.fn.extend({ 5398fadeTo:function(speed,to,easing,callback){ 5399return this.filter(isHiddenWithinTree).css("opacity",0).show() 5400.end().animate({opacity:to},speed,easing,callback); 5401}, 5402animate:function(prop,speed,easing,callback){ 5403var empty=jQuery.isEmptyObject(prop), 5404optall=jQuery.speed(speed,easing,callback), 5405doAnimation=function(){ 5406var anim=Animation(this,jQuery.extend({},prop),optall); 5407if(empty||dataPriv.get(this,"finish")){ 5408anim.stop(true); 5409} 5410}; 5411doAnimation.finish=doAnimation; 5412return empty||optall.queue===false? 5413this.each(doAnimation): 5414this.queue(optall.queue,doAnimation); 5415}, 5416stop:function(type,clearQueue,gotoEnd){ 5417var stopQueue=function(hooks){ 5418var stop=hooks.stop; 5419delete hooks.stop; 5420stop(gotoEnd); 5421}; 5422if(typeof type!=="string"){ 5423gotoEnd=clearQueue; 5424clearQueue=type; 5425type=undefined; 5426} 5427if(clearQueue){ 5428this.queue(type||"fx",[]); 5429} 5430return this.each(function(){ 5431var dequeue=true, 5432index=type!=null&&type+"queueHooks", 5433timers=jQuery.timers, 5434data=dataPriv.get(this); 5435if(index){ 5436if(data[index]&&data[index].stop){ 5437stopQueue(data[index]); 5438} 5439}else{ 5440for(index in data){ 5441if(data[index]&&data[index].stop&&rrun.test(index)){ 5442stopQueue(data[index]); 5443} 5444} 5445} 5446for(index=timers.length;index--;){ 5447if(timers[index].elem===this&& 5448(type==null||timers[index].queue===type)){ 5449timers[index].anim.stop(gotoEnd); 5450dequeue=false; 5451timers.splice(index,1); 5452} 5453} 5454if(dequeue||!gotoEnd){ 5455jQuery.dequeue(this,type); 5456} 5457}); 5458}, 5459finish:function(type){ 5460if(type!==false){ 5461type=type||"fx"; 5462} 5463return this.each(function(){ 5464var index, 5465data=dataPriv.get(this), 5466queue=data[type+"queue"], 5467hooks=data[type+"queueHooks"], 5468timers=jQuery.timers, 5469length=queue?queue.length:0; 5470data.finish=true; 5471jQuery.queue(this,type,[]); 5472if(hooks&&hooks.stop){ 5473hooks.stop.call(this,true); 5474} 5475for(index=timers.length;index--;){ 5476if(timers[index].elem===this&&timers[index].queue===type){ 5477timers[index].anim.stop(true); 5478timers.splice(index,1); 5479} 5480} 5481for(index=0;index<length;index++){ 5482if(queue[index]&&queue[index].finish){ 5483queue[index].finish.call(this); 5484} 5485} 5486delete data.finish; 5487}); 5488} 5489}); 5490jQuery.each(["toggle","show","hide"],function(_i,name){ 5491var cssFn=jQuery.fn[name]; 5492jQuery.fn[name]=function(speed,easing,callback){ 5493return speed==null||typeof speed==="boolean"? 5494cssFn.apply(this,arguments): 5495this.animate(genFx(name,true),speed,easing,callback); 5496}; 5497}); 5498jQuery.each({ 5499slideDown:genFx("show"), 5500slideUp:genFx("hide"), 5501slideToggle:genFx("toggle"), 5502fadeIn:{opacity:"show"}, 5503fadeOut:{opacity:"hide"}, 5504fadeToggle:{opacity:"toggle"} 5505},function(name,props){ 5506jQuery.fn[name]=function(speed,easing,callback){ 5507return this.animate(props,speed,easing,callback); 5508}; 5509}); 5510jQuery.timers=[]; 5511jQuery.fx.tick=function(){ 5512var timer, 5513i=0, 5514timers=jQuery.timers; 5515fxNow=Date.now(); 5516for(;i<timers.length;i++){ 5517timer=timers[i]; 5518if(!timer()&&timers[i]===timer){ 5519timers.splice(i--,1); 5520} 5521} 5522if(!timers.length){ 5523jQuery.fx.stop(); 5524} 5525fxNow=undefined; 5526}; 5527jQuery.fx.timer=function(timer){ 5528jQuery.timers.push(timer); 5529jQuery.fx.start(); 5530}; 5531jQuery.fx.interval=13; 5532jQuery.fx.start=function(){ 5533if(inProgress){ 5534return; 5535} 5536inProgress=true; 5537schedule(); 5538}; 5539jQuery.fx.stop=function(){ 5540inProgress=null; 5541}; 5542jQuery.fx.speeds={ 5543slow:600, 5544fast:200, 5545_default:400 5546}; 5547jQuery.fn.delay=function(time,type){ 5548time=jQuery.fx?jQuery.fx.speeds[time]||time:time; 5549type=type||"fx"; 5550return this.queue(type,function(next,hooks){ 5551var timeout=window.setTimeout(next,time); 5552hooks.stop=function(){ 5553window.clearTimeout(timeout); 5554}; 5555}); 5556}; 5557(function(){ 5558var input=document.createElement("input"), 5559select=document.createElement("select"), 5560opt=select.appendChild(document.createElement("option")); 5561input.type="checkbox"; 5562support.checkOn=input.value!==""; 5563support.optSelected=opt.selected; 5564input=document.createElement("input"); 5565input.value="t"; 5566input.type="radio"; 5567support.radioValue=input.value==="t"; 5568})(); 5569var boolHook, 5570attrHandle=jQuery.expr.attrHandle; 5571jQuery.fn.extend({ 5572attr:function(name,value){ 5573return access(this,jQuery.attr,name,value,arguments.length>1); 5574}, 5575removeAttr:function(name){ 5576return this.each(function(){ 5577jQuery.removeAttr(this,name); 5578}); 5579} 5580}); 5581jQuery.extend({ 5582attr:function(elem,name,value){ 5583var ret,hooks, 5584nType=elem.nodeType; 5585if(nType===3||nType===8||nType===2){ 5586return; 5587} 5588if(typeof elem.getAttribute==="undefined"){ 5589return jQuery.prop(elem,name,value); 5590} 5591if(nType!==1||!jQuery.isXMLDoc(elem)){ 5592hooks=jQuery.attrHooks[name.toLowerCase()]|| 5593(jQuery.expr.match.bool.test(name)?boolHook:undefined); 5594} 5595if(value!==undefined){ 5596if(value===null){ 5597jQuery.removeAttr(elem,name); 5598return; 5599} 5600if(hooks&&"set"in hooks&& 5601(ret=hooks.set(elem,value,name))!==undefined){ 5602return ret; 5603} 5604elem.setAttribute(name,value+""); 5605return value; 5606} 5607if(hooks&&"get"in hooks&&(ret=hooks.get(elem,name))!==null){ 5608return ret; 5609} 5610ret=jQuery.find.attr(elem,name); 5611return ret==null?undefined:ret; 5612}, 5613attrHooks:{ 5614type:{ 5615set:function(elem,value){ 5616if(!support.radioValue&&value==="radio"&& 5617nodeName(elem,"input")){ 5618var val=elem.value; 5619elem.setAttribute("type",value); 5620if(val){ 5621elem.value=val; 5622} 5623return value; 5624} 5625} 5626} 5627}, 5628removeAttr:function(elem,value){ 5629var name, 5630i=0, 5631attrNames=value&&value.match(rnothtmlwhite); 5632if(attrNames&&elem.nodeType===1){ 5633while((name=attrNames[i++])){ 5634elem.removeAttribute(name); 5635} 5636} 5637} 5638}); 5639boolHook={ 5640set:function(elem,value,name){ 5641if(value===false){ 5642jQuery.removeAttr(elem,name); 5643}else{ 5644elem.setAttribute(name,name); 5645} 5646return name; 5647} 5648}; 5649jQuery.each(jQuery.expr.match.bool.source.match(/\w+/g),function(_i,name){ 5650var getter=attrHandle[name]||jQuery.find.attr; 5651attrHandle[name]=function(elem,name,isXML){ 5652var ret,handle, 5653lowercaseName=name.toLowerCase(); 5654if(!isXML){ 5655handle=attrHandle[lowercaseName]; 5656attrHandle[lowercaseName]=ret; 5657ret=getter(elem,name,isXML)!=null? 5658lowercaseName: 5659null; 5660attrHandle[lowercaseName]=handle; 5661} 5662return ret; 5663}; 5664}); 5665var rfocusable=/^(?:input|select|textarea|button)$/i, 5666rclickable=/^(?:a|area)$/i; 5667jQuery.fn.extend({ 5668prop:function(name,value){ 5669return access(this,jQuery.prop,name,value,arguments.length>1); 5670}, 5671removeProp:function(name){ 5672return this.each(function(){ 5673delete this[jQuery.propFix[name]||name]; 5674}); 5675} 5676}); 5677jQuery.extend({ 5678prop:function(elem,name,value){ 5679var ret,hooks, 5680nType=elem.nodeType; 5681if(nType===3||nType===8||nType===2){ 5682return; 5683} 5684if(nType!==1||!jQuery.isXMLDoc(elem)){ 5685name=jQuery.propFix[name]||name; 5686hooks=jQuery.propHooks[name]; 5687} 5688if(value!==undefined){ 5689if(hooks&&"set"in hooks&& 5690(ret=hooks.set(elem,value,name))!==undefined){ 5691return ret; 5692} 5693return(elem[name]=value); 5694} 5695if(hooks&&"get"in hooks&&(ret=hooks.get(elem,name))!==null){ 5696return ret; 5697} 5698return elem[name]; 5699}, 5700propHooks:{ 5701tabIndex:{ 5702get:function(elem){ 5703var tabindex=jQuery.find.attr(elem,"tabindex"); 5704if(tabindex){ 5705return parseInt(tabindex,10); 5706} 5707if( 5708rfocusable.test(elem.nodeName)|| 5709rclickable.test(elem.nodeName)&& 5710elem.href 5711){ 5712return 0; 5713} 5714return-1; 5715} 5716} 5717}, 5718propFix:{ 5719"for":"htmlFor", 5720"class":"className" 5721} 5722}); 5723if(!support.optSelected){ 5724jQuery.propHooks.selected={ 5725get:function(elem){ 5726var parent=elem.parentNode; 5727if(parent&&parent.parentNode){ 5728parent.parentNode.selectedIndex; 5729} 5730return null; 5731}, 5732set:function(elem){ 5733var parent=elem.parentNode; 5734if(parent){ 5735parent.selectedIndex; 5736if(parent.parentNode){ 5737parent.parentNode.selectedIndex; 5738} 5739} 5740} 5741}; 5742} 5743jQuery.each([ 5744"tabIndex", 5745"readOnly", 5746"maxLength", 5747"cellSpacing", 5748"cellPadding", 5749"rowSpan", 5750"colSpan", 5751"useMap", 5752"frameBorder", 5753"contentEditable" 5754],function(){ 5755jQuery.propFix[this.toLowerCase()]=this; 5756}); 5757function stripAndCollapse(value){ 5758var tokens=value.match(rnothtmlwhite)||[]; 5759return tokens.join(" "); 5760} 5761function getClass(elem){ 5762return elem.getAttribute&&elem.getAttribute("class")||""; 5763} 5764function classesToArray(value){ 5765if(Array.isArray(value)){ 5766return value; 5767} 5768if(typeof value==="string"){ 5769return value.match(rnothtmlwhite)||[]; 5770} 5771return[]; 5772} 5773jQuery.fn.extend({ 5774addClass:function(value){ 5775var classNames,cur,curValue,className,i,finalValue; 5776if(isFunction(value)){ 5777return this.each(function(j){ 5778jQuery(this).addClass(value.call(this,j,getClass(this))); 5779}); 5780} 5781classNames=classesToArray(value); 5782if(classNames.length){ 5783return this.each(function(){ 5784curValue=getClass(this); 5785cur=this.nodeType===1&&(" "+stripAndCollapse(curValue)+" "); 5786if(cur){ 5787for(i=0;i<classNames.length;i++){ 5788className=classNames[i]; 5789if(cur.indexOf(" "+className+" ")<0){ 5790cur+=className+" "; 5791} 5792} 5793finalValue=stripAndCollapse(cur); 5794if(curValue!==finalValue){ 5795this.setAttribute("class",finalValue); 5796} 5797} 5798}); 5799} 5800return this; 5801}, 5802removeClass:function(value){ 5803var classNames,cur,curValue,className,i,finalValue; 5804if(isFunction(value)){ 5805return this.each(function(j){ 5806jQuery(this).removeClass(value.call(this,j,getClass(this))); 5807}); 5808} 5809if(!arguments.length){ 5810return this.attr("class",""); 5811} 5812classNames=classesToArray(value); 5813if(classNames.length){ 5814return this.each(function(){ 5815curValue=getClass(this); 5816cur=this.nodeType===1&&(" "+stripAndCollapse(curValue)+" "); 5817if(cur){ 5818for(i=0;i<classNames.length;i++){ 5819className=classNames[i]; 5820while(cur.indexOf(" "+className+" ")>-1){ 5821cur=cur.replace(" "+className+" "," "); 5822} 5823} 5824finalValue=stripAndCollapse(cur); 5825if(curValue!==finalValue){ 5826this.setAttribute("class",finalValue); 5827} 5828} 5829}); 5830} 5831return this; 5832}, 5833toggleClass:function(value,stateVal){ 5834var classNames,className,i,self, 5835type=typeof value, 5836isValidValue=type==="string"||Array.isArray(value); 5837if(isFunction(value)){ 5838return this.each(function(i){ 5839jQuery(this).toggleClass( 5840value.call(this,i,getClass(this),stateVal), 5841stateVal 5842); 5843}); 5844} 5845if(typeof stateVal==="boolean"&&isValidValue){ 5846return stateVal?this.addClass(value):this.removeClass(value); 5847} 5848classNames=classesToArray(value); 5849return this.each(function(){ 5850if(isValidValue){ 5851self=jQuery(this); 5852for(i=0;i<classNames.length;i++){ 5853className=classNames[i]; 5854if(self.hasClass(className)){ 5855self.removeClass(className); 5856}else{ 5857self.addClass(className); 5858} 5859} 5860}else if(value===undefined||type==="boolean"){ 5861className=getClass(this); 5862if(className){ 5863dataPriv.set(this,"__className__",className); 5864} 5865if(this.setAttribute){ 5866this.setAttribute("class", 5867className||value===false? 5868"": 5869dataPriv.get(this,"__className__")||"" 5870); 5871} 5872} 5873}); 5874}, 5875hasClass:function(selector){ 5876var className,elem, 5877i=0; 5878className=" "+selector+" "; 5879while((elem=this[i++])){ 5880if(elem.nodeType===1&& 5881(" "+stripAndCollapse(getClass(elem))+" ").indexOf(className)>-1){ 5882return true; 5883} 5884} 5885return false; 5886} 5887}); 5888var rreturn=/\r/g; 5889jQuery.fn.extend({ 5890val:function(value){ 5891var hooks,ret,valueIsFunction, 5892elem=this[0]; 5893if(!arguments.length){ 5894if(elem){ 5895hooks=jQuery.valHooks[elem.type]|| 5896jQuery.valHooks[elem.nodeName.toLowerCase()]; 5897if(hooks&& 5898"get"in hooks&& 5899(ret=hooks.get(elem,"value"))!==undefined 5900){ 5901return ret; 5902} 5903ret=elem.value; 5904if(typeof ret==="string"){ 5905return ret.replace(rreturn,""); 5906} 5907return ret==null?"":ret; 5908} 5909return; 5910} 5911valueIsFunction=isFunction(value); 5912return this.each(function(i){ 5913var val; 5914if(this.nodeType!==1){ 5915return; 5916} 5917if(valueIsFunction){ 5918val=value.call(this,i,jQuery(this).val()); 5919}else{ 5920val=value; 5921} 5922if(val==null){ 5923val=""; 5924}else if(typeof val==="number"){ 5925val+=""; 5926}else if(Array.isArray(val)){ 5927val=jQuery.map(val,function(value){ 5928return value==null?"":value+""; 5929}); 5930} 5931hooks=jQuery.valHooks[this.type]||jQuery.valHooks[this.nodeName.toLowerCase()]; 5932if(!hooks||!("set"in hooks)||hooks.set(this,val,"value")===undefined){ 5933this.value=val; 5934} 5935}); 5936} 5937}); 5938jQuery.extend({ 5939valHooks:{ 5940option:{ 5941get:function(elem){ 5942var val=jQuery.find.attr(elem,"value"); 5943return val!=null? 5944val: 5945stripAndCollapse(jQuery.text(elem)); 5946} 5947}, 5948select:{ 5949get:function(elem){ 5950var value,option,i, 5951options=elem.options, 5952index=elem.selectedIndex, 5953one=elem.type==="select-one", 5954values=one?null:[], 5955max=one?index+1:options.length; 5956if(index<0){ 5957i=max; 5958}else{ 5959i=one?index:0; 5960} 5961for(;i<max;i++){ 5962option=options[i]; 5963if((option.selected||i===index)&& 5964!option.disabled&& 5965(!option.parentNode.disabled|| 5966!nodeName(option.parentNode,"optgroup"))){ 5967value=jQuery(option).val(); 5968if(one){ 5969return value; 5970} 5971values.push(value); 5972} 5973} 5974return values; 5975}, 5976set:function(elem,value){ 5977var optionSet,option, 5978options=elem.options, 5979values=jQuery.makeArray(value), 5980i=options.length; 5981while(i--){ 5982option=options[i]; 5983if(option.selected= 5984jQuery.inArray(jQuery.valHooks.option.get(option),values)>-1 5985){ 5986optionSet=true; 5987} 5988} 5989if(!optionSet){ 5990elem.selectedIndex=-1; 5991} 5992return values; 5993} 5994} 5995} 5996}); 5997jQuery.each(["radio","checkbox"],function(){ 5998jQuery.valHooks[this]={ 5999set:function(elem,value){ 6000if(Array.isArray(value)){ 6001return(elem.checked=jQuery.inArray(jQuery(elem).val(),value)>-1); 6002} 6003} 6004}; 6005if(!support.checkOn){ 6006jQuery.valHooks[this].get=function(elem){ 6007return elem.getAttribute("value")===null?"on":elem.value; 6008}; 6009} 6010}); 6011var location=window.location; 6012var nonce={guid:Date.now()}; 6013var rquery=(/\?/); 6014jQuery.parseXML=function(data){ 6015var xml,parserErrorElem; 6016if(!data||typeof data!=="string"){ 6017return null; 6018} 6019try{ 6020xml=(new window.DOMParser()).parseFromString(data,"text/xml"); 6021}catch(e){} 6022parserErrorElem=xml&&xml.getElementsByTagName("parsererror")[0]; 6023if(!xml||parserErrorElem){ 6024jQuery.error("Invalid XML: "+( 6025parserErrorElem? 6026jQuery.map(parserErrorElem.childNodes,function(el){ 6027return el.textContent; 6028}).join("\n"): 6029data 6030)); 6031} 6032return xml; 6033}; 6034var rfocusMorph=/^(?:focusinfocus|focusoutblur)$/, 6035stopPropagationCallback=function(e){ 6036e.stopPropagation(); 6037}; 6038jQuery.extend(jQuery.event,{ 6039trigger:function(event,data,elem,onlyHandlers){ 6040var i,cur,tmp,bubbleType,ontype,handle,special,lastElement, 6041eventPath=[elem||document], 6042type=hasOwn.call(event,"type")?event.type:event, 6043namespaces=hasOwn.call(event,"namespace")?event.namespace.split("."):[]; 6044cur=lastElement=tmp=elem=elem||document; 6045if(elem.nodeType===3||elem.nodeType===8){ 6046return; 6047} 6048if(rfocusMorph.test(type+jQuery.event.triggered)){ 6049return; 6050} 6051if(type.indexOf(".")>-1){ 6052namespaces=type.split("."); 6053type=namespaces.shift(); 6054namespaces.sort(); 6055} 6056ontype=type.indexOf(":")<0&&"on"+type; 6057event=event[jQuery.expando]? 6058event: 6059new jQuery.Event(type,typeof event==="object"&&event); 6060event.isTrigger=onlyHandlers?2:3; 6061event.namespace=namespaces.join("."); 6062event.rnamespace=event.namespace? 6063new RegExp("(^|\\.)"+namespaces.join("\\.(?:.*\\.|)")+"(\\.|$)"): 6064null; 6065event.result=undefined; 6066if(!event.target){ 6067event.target=elem; 6068} 6069data=data==null? 6070[event]: 6071jQuery.makeArray(data,[event]); 6072special=jQuery.event.special[type]||{}; 6073if(!onlyHandlers&&special.trigger&&special.trigger.apply(elem,data)===false){ 6074return; 6075} 6076if(!onlyHandlers&&!special.noBubble&&!isWindow(elem)){ 6077bubbleType=special.delegateType||type; 6078if(!rfocusMorph.test(bubbleType+type)){ 6079cur=cur.parentNode; 6080} 6081for(;cur;cur=cur.parentNode){ 6082eventPath.push(cur); 6083tmp=cur; 6084} 6085if(tmp===(elem.ownerDocument||document)){ 6086eventPath.push(tmp.defaultView||tmp.parentWindow||window); 6087} 6088} 6089i=0; 6090while((cur=eventPath[i++])&&!event.isPropagationStopped()){ 6091lastElement=cur; 6092event.type=i>1? 6093bubbleType: 6094special.bindType||type; 6095handle=(dataPriv.get(cur,"events")||Object.create(null))[event.type]&& 6096dataPriv.get(cur,"handle"); 6097if(handle){ 6098handle.apply(cur,data); 6099} 6100handle=ontype&&cur[ontype]; 6101if(handle&&handle.apply&&acceptData(cur)){ 6102event.result=handle.apply(cur,data); 6103if(event.result===false){ 6104event.preventDefault(); 6105} 6106} 6107} 6108event.type=type; 6109if(!onlyHandlers&&!event.isDefaultPrevented()){ 6110if((!special._default|| 6111special._default.apply(eventPath.pop(),data)===false)&& 6112acceptData(elem)){ 6113if(ontype&&isFunction(elem[type])&&!isWindow(elem)){ 6114tmp=elem[ontype]; 6115if(tmp){ 6116elem[ontype]=null; 6117} 6118jQuery.event.triggered=type; 6119if(event.isPropagationStopped()){ 6120lastElement.addEventListener(type,stopPropagationCallback); 6121} 6122elem[type](); 6123if(event.isPropagationStopped()){ 6124lastElement.removeEventListener(type,stopPropagationCallback); 6125} 6126jQuery.event.triggered=undefined; 6127if(tmp){ 6128elem[ontype]=tmp; 6129} 6130} 6131} 6132} 6133return event.result; 6134}, 6135simulate:function(type,elem,event){ 6136var e=jQuery.extend( 6137new jQuery.Event(), 6138event, 6139{ 6140type:type, 6141isSimulated:true 6142} 6143); 6144jQuery.event.trigger(e,null,elem); 6145} 6146}); 6147jQuery.fn.extend({ 6148trigger:function(type,data){ 6149return this.each(function(){ 6150jQuery.event.trigger(type,data,this); 6151}); 6152}, 6153triggerHandler:function(type,data){ 6154var elem=this[0]; 6155if(elem){ 6156return jQuery.event.trigger(type,data,elem,true); 6157} 6158} 6159}); 6160var 6161rbracket=/\[\]$/, 6162rCRLF=/\r?\n/g, 6163rsubmitterTypes=/^(?:submit|button|image|reset|file)$/i, 6164rsubmittable=/^(?:input|select|textarea|keygen)/i; 6165function buildParams(prefix,obj,traditional,add){ 6166var name; 6167if(Array.isArray(obj)){ 6168jQuery.each(obj,function(i,v){ 6169if(traditional||rbracket.test(prefix)){ 6170add(prefix,v); 6171}else{ 6172buildParams( 6173prefix+"["+(typeof v==="object"&&v!=null?i:"")+"]", 6174v, 6175traditional, 6176add 6177); 6178} 6179}); 6180}else if(!traditional&&toType(obj)==="object"){ 6181for(name in obj){ 6182buildParams(prefix+"["+name+"]",obj[name],traditional,add); 6183} 6184}else{ 6185add(prefix,obj); 6186} 6187} 6188jQuery.param=function(a,traditional){ 6189var prefix, 6190s=[], 6191add=function(key,valueOrFunction){ 6192var value=isFunction(valueOrFunction)? 6193valueOrFunction(): 6194valueOrFunction; 6195s[s.length]=encodeURIComponent(key)+"="+ 6196encodeURIComponent(value==null?"":value); 6197}; 6198if(a==null){ 6199return""; 6200} 6201if(Array.isArray(a)||(a.jquery&&!jQuery.isPlainObject(a))){ 6202jQuery.each(a,function(){ 6203add(this.name,this.value); 6204}); 6205}else{ 6206for(prefix in a){ 6207buildParams(prefix,a[prefix],traditional,add); 6208} 6209} 6210return s.join("&"); 6211}; 6212jQuery.fn.extend({ 6213serialize:function(){ 6214return jQuery.param(this.serializeArray()); 6215}, 6216serializeArray:function(){ 6217return this.map(function(){ 6218var elements=jQuery.prop(this,"elements"); 6219return elements?jQuery.makeArray(elements):this; 6220}).filter(function(){ 6221var type=this.type; 6222return this.name&&!jQuery(this).is(":disabled")&& 6223rsubmittable.test(this.nodeName)&&!rsubmitterTypes.test(type)&& 6224(this.checked||!rcheckableType.test(type)); 6225}).map(function(_i,elem){ 6226var val=jQuery(this).val(); 6227if(val==null){ 6228return null; 6229} 6230if(Array.isArray(val)){ 6231return jQuery.map(val,function(val){ 6232return{name:elem.name,value:val.replace(rCRLF,"\r\n")}; 6233}); 6234} 6235return{name:elem.name,value:val.replace(rCRLF,"\r\n")}; 6236}).get(); 6237} 6238}); 6239var 6240r20=/%20/g, 6241rhash=/#.*$/, 6242rantiCache=/([?&])_=[^&]*/, 6243rheaders=/^(.*?):[ \t]*([^\r\n]*)$/mg, 6244rlocalProtocol=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/, 6245rnoContent=/^(?:GET|HEAD)$/, 6246rprotocol=/^\/\//, 6247prefilters={}, 6248transports={}, 6249allTypes="*/".concat("*"), 6250originAnchor=document.createElement("a"); 6251originAnchor.href=location.href; 6252function addToPrefiltersOrTransports(structure){ 6253return function(dataTypeExpression,func){ 6254if(typeof dataTypeExpression!=="string"){ 6255func=dataTypeExpression; 6256dataTypeExpression="*"; 6257} 6258var dataType, 6259i=0, 6260dataTypes=dataTypeExpression.toLowerCase().match(rnothtmlwhite)||[]; 6261if(isFunction(func)){ 6262while((dataType=dataTypes[i++])){ 6263if(dataType[0]==="+"){ 6264dataType=dataType.slice(1)||"*"; 6265(structure[dataType]=structure[dataType]||[]).unshift(func); 6266}else{ 6267(structure[dataType]=structure[dataType]||[]).push(func); 6268} 6269} 6270} 6271}; 6272} 6273function inspectPrefiltersOrTransports(structure,options,originalOptions,jqXHR){ 6274var inspected={}, 6275seekingTransport=(structure===transports); 6276function inspect(dataType){ 6277var selected; 6278inspected[dataType]=true; 6279jQuery.each(structure[dataType]||[],function(_,prefilterOrFactory){ 6280var dataTypeOrTransport=prefilterOrFactory(options,originalOptions,jqXHR); 6281if(typeof dataTypeOrTransport==="string"&& 6282!seekingTransport&&!inspected[dataTypeOrTransport]){ 6283options.dataTypes.unshift(dataTypeOrTransport); 6284inspect(dataTypeOrTransport); 6285return false; 6286}else if(seekingTransport){ 6287return!(selected=dataTypeOrTransport); 6288} 6289}); 6290return selected; 6291} 6292return inspect(options.dataTypes[0])||!inspected["*"]&&inspect("*"); 6293} 6294function ajaxExtend(target,src){ 6295var key,deep, 6296flatOptions=jQuery.ajaxSettings.flatOptions||{}; 6297for(key in src){ 6298if(src[key]!==undefined){ 6299(flatOptions[key]?target:(deep||(deep={})))[key]=src[key]; 6300} 6301} 6302if(deep){ 6303jQuery.extend(true,target,deep); 6304} 6305return target; 6306} 6307function ajaxHandleResponses(s,jqXHR,responses){ 6308var ct,type,finalDataType,firstDataType, 6309contents=s.contents, 6310dataTypes=s.dataTypes; 6311while(dataTypes[0]==="*"){ 6312dataTypes.shift(); 6313if(ct===undefined){ 6314ct=s.mimeType||jqXHR.getResponseHeader("Content-Type"); 6315} 6316} 6317if(ct){ 6318for(type in contents){ 6319if(contents[type]&&contents[type].test(ct)){ 6320dataTypes.unshift(type); 6321break; 6322} 6323} 6324} 6325if(dataTypes[0]in responses){ 6326finalDataType=dataTypes[0]; 6327}else{ 6328for(type in responses){ 6329if(!dataTypes[0]||s.converters[type+" "+dataTypes[0]]){ 6330finalDataType=type; 6331break; 6332} 6333if(!firstDataType){ 6334firstDataType=type; 6335} 6336} 6337finalDataType=finalDataType||firstDataType; 6338} 6339if(finalDataType){ 6340if(finalDataType!==dataTypes[0]){ 6341dataTypes.unshift(finalDataType); 6342} 6343return responses[finalDataType]; 6344} 6345} 6346function ajaxConvert(s,response,jqXHR,isSuccess){ 6347var conv2,current,conv,tmp,prev, 6348converters={}, 6349dataTypes=s.dataTypes.slice(); 6350if(dataTypes[1]){ 6351for(conv in s.converters){ 6352converters[conv.toLowerCase()]=s.converters[conv]; 6353} 6354} 6355current=dataTypes.shift(); 6356while(current){ 6357if(s.responseFields[current]){ 6358jqXHR[s.responseFields[current]]=response; 6359} 6360if(!prev&&isSuccess&&s.dataFilter){ 6361response=s.dataFilter(response,s.dataType); 6362} 6363prev=current; 6364current=dataTypes.shift(); 6365if(current){ 6366if(current==="*"){ 6367current=prev; 6368}else if(prev!=="*"&&prev!==current){ 6369conv=converters[prev+" "+current]||converters["* "+current]; 6370if(!conv){ 6371for(conv2 in converters){ 6372tmp=conv2.split(" "); 6373if(tmp[1]===current){ 6374conv=converters[prev+" "+tmp[0]]|| 6375converters["* "+tmp[0]]; 6376if(conv){ 6377if(conv===true){ 6378conv=converters[conv2]; 6379}else if(converters[conv2]!==true){ 6380current=tmp[0]; 6381dataTypes.unshift(tmp[1]); 6382} 6383break; 6384} 6385} 6386} 6387} 6388if(conv!==true){ 6389if(conv&&s.throws){ 6390response=conv(response); 6391}else{ 6392try{ 6393response=conv(response); 6394}catch(e){ 6395return{ 6396state:"parsererror", 6397error:conv?e:"No conversion from "+prev+" to "+current 6398}; 6399} 6400} 6401} 6402} 6403} 6404} 6405return{state:"success",data:response}; 6406} 6407jQuery.extend({ 6408active:0, 6409lastModified:{}, 6410etag:{}, 6411ajaxSettings:{ 6412url:location.href, 6413type:"GET", 6414isLocal:rlocalProtocol.test(location.protocol), 6415global:true, 6416processData:true, 6417async:true, 6418contentType:"application/x-www-form-urlencoded; charset=UTF-8", 6419accepts:{ 6420"*":allTypes, 6421text:"text/plain", 6422html:"text/html", 6423xml:"application/xml, text/xml", 6424json:"application/json, text/javascript" 6425}, 6426contents:{ 6427xml:/\bxml\b/, 6428html:/\bhtml/, 6429json:/\bjson\b/ 6430}, 6431responseFields:{ 6432xml:"responseXML", 6433text:"responseText", 6434json:"responseJSON" 6435}, 6436converters:{ 6437"* text":String, 6438"text html":true, 6439"text json":JSON.parse, 6440"text xml":jQuery.parseXML 6441}, 6442flatOptions:{ 6443url:true, 6444context:true 6445} 6446}, 6447ajaxSetup:function(target,settings){ 6448return settings? 6449ajaxExtend(ajaxExtend(target,jQuery.ajaxSettings),settings): 6450ajaxExtend(jQuery.ajaxSettings,target); 6451}, 6452ajaxPrefilter:addToPrefiltersOrTransports(prefilters), 6453ajaxTransport:addToPrefiltersOrTransports(transports), 6454ajax:function(url,options){ 6455if(typeof url==="object"){ 6456options=url; 6457url=undefined; 6458} 6459options=options||{}; 6460var transport, 6461cacheURL, 6462responseHeadersString, 6463responseHeaders, 6464timeoutTimer, 6465urlAnchor, 6466completed, 6467fireGlobals, 6468i, 6469uncached, 6470s=jQuery.ajaxSetup({},options), 6471callbackContext=s.context||s, 6472globalEventContext=s.context&& 6473(callbackContext.nodeType||callbackContext.jquery)? 6474jQuery(callbackContext): 6475jQuery.event, 6476deferred=jQuery.Deferred(), 6477completeDeferred=jQuery.Callbacks("once memory"), 6478statusCode=s.statusCode||{}, 6479requestHeaders={}, 6480requestHeadersNames={}, 6481strAbort="canceled", 6482jqXHR={ 6483readyState:0, 6484getResponseHeader:function(key){ 6485var match; 6486if(completed){ 6487if(!responseHeaders){ 6488responseHeaders={}; 6489while((match=rheaders.exec(responseHeadersString))){ 6490responseHeaders[match[1].toLowerCase()+" "]= 6491(responseHeaders[match[1].toLowerCase()+" "]||[]) 6492.concat(match[2]); 6493} 6494} 6495match=responseHeaders[key.toLowerCase()+" "]; 6496} 6497return match==null?null:match.join(", "); 6498}, 6499getAllResponseHeaders:function(){ 6500return completed?responseHeadersString:null; 6501}, 6502setRequestHeader:function(name,value){ 6503if(completed==null){ 6504name=requestHeadersNames[name.toLowerCase()]= 6505requestHeadersNames[name.toLowerCase()]||name; 6506requestHeaders[name]=value; 6507} 6508return this; 6509}, 6510overrideMimeType:function(type){ 6511if(completed==null){ 6512s.mimeType=type; 6513} 6514return this; 6515}, 6516statusCode:function(map){ 6517var code; 6518if(map){ 6519if(completed){ 6520jqXHR.always(map[jqXHR.status]); 6521}else{ 6522for(code in map){ 6523statusCode[code]=[statusCode[code],map[code]]; 6524} 6525} 6526} 6527return this; 6528}, 6529abort:function(statusText){ 6530var finalText=statusText||strAbort; 6531if(transport){ 6532transport.abort(finalText); 6533} 6534done(0,finalText); 6535return this; 6536} 6537}; 6538deferred.promise(jqXHR); 6539s.url=((url||s.url||location.href)+"") 6540.replace(rprotocol,location.protocol+"//"); 6541s.type=options.method||options.type||s.method||s.type; 6542s.dataTypes=(s.dataType||"*").toLowerCase().match(rnothtmlwhite)||[""]; 6543if(s.crossDomain==null){ 6544urlAnchor=document.createElement("a"); 6545try{ 6546urlAnchor.href=s.url; 6547urlAnchor.href=urlAnchor.href; 6548s.crossDomain=originAnchor.protocol+"//"+originAnchor.host!== 6549urlAnchor.protocol+"//"+urlAnchor.host; 6550}catch(e){ 6551s.crossDomain=true; 6552} 6553} 6554if(s.data&&s.processData&&typeof s.data!=="string"){ 6555s.data=jQuery.param(s.data,s.traditional); 6556} 6557inspectPrefiltersOrTransports(prefilters,s,options,jqXHR); 6558if(completed){ 6559return jqXHR; 6560} 6561fireGlobals=jQuery.event&&s.global; 6562if(fireGlobals&&jQuery.active++===0){ 6563jQuery.event.trigger("ajaxStart"); 6564} 6565s.type=s.type.toUpperCase(); 6566s.hasContent=!rnoContent.test(s.type); 6567cacheURL=s.url.replace(rhash,""); 6568if(!s.hasContent){ 6569uncached=s.url.slice(cacheURL.length); 6570if(s.data&&(s.processData||typeof s.data==="string")){ 6571cacheURL+=(rquery.test(cacheURL)?"&":"?")+s.data; 6572delete s.data; 6573} 6574if(s.cache===false){ 6575cacheURL=cacheURL.replace(rantiCache,"$1"); 6576uncached=(rquery.test(cacheURL)?"&":"?")+"_="+(nonce.guid++)+ 6577uncached; 6578} 6579s.url=cacheURL+uncached; 6580}else if(s.data&&s.processData&& 6581(s.contentType||"").indexOf("application/x-www-form-urlencoded")===0){ 6582s.data=s.data.replace(r20,"+"); 6583} 6584if(s.ifModified){ 6585if(jQuery.lastModified[cacheURL]){ 6586jqXHR.setRequestHeader("If-Modified-Since",jQuery.lastModified[cacheURL]); 6587} 6588if(jQuery.etag[cacheURL]){ 6589jqXHR.setRequestHeader("If-None-Match",jQuery.etag[cacheURL]); 6590} 6591} 6592if(s.data&&s.hasContent&&s.contentType!==false||options.contentType){ 6593jqXHR.setRequestHeader("Content-Type",s.contentType); 6594} 6595jqXHR.setRequestHeader( 6596"Accept", 6597s.dataTypes[0]&&s.accepts[s.dataTypes[0]]? 6598s.accepts[s.dataTypes[0]]+ 6599(s.dataTypes[0]!=="*"?", "+allTypes+"; q=0.01":""): 6600s.accepts["*"] 6601); 6602for(i in s.headers){ 6603jqXHR.setRequestHeader(i,s.headers[i]); 6604} 6605if(s.beforeSend&& 6606(s.beforeSend.call(callbackContext,jqXHR,s)===false||completed)){ 6607return jqXHR.abort(); 6608} 6609strAbort="abort"; 6610completeDeferred.add(s.complete); 6611jqXHR.done(s.success); 6612jqXHR.fail(s.error); 6613transport=inspectPrefiltersOrTransports(transports,s,options,jqXHR); 6614if(!transport){ 6615done(-1,"No Transport"); 6616}else{ 6617jqXHR.readyState=1; 6618if(fireGlobals){ 6619globalEventContext.trigger("ajaxSend",[jqXHR,s]); 6620} 6621if(completed){ 6622return jqXHR; 6623} 6624if(s.async&&s.timeout>0){ 6625timeoutTimer=window.setTimeout(function(){ 6626jqXHR.abort("timeout"); 6627},s.timeout); 6628} 6629try{ 6630completed=false; 6631transport.send(requestHeaders,done); 6632}catch(e){ 6633if(completed){ 6634throw e; 6635} 6636done(-1,e); 6637} 6638} 6639function done(status,nativeStatusText,responses,headers){ 6640var isSuccess,success,error,response,modified, 6641statusText=nativeStatusText; 6642if(completed){ 6643return; 6644} 6645completed=true; 6646if(timeoutTimer){ 6647window.clearTimeout(timeoutTimer); 6648} 6649transport=undefined; 6650responseHeadersString=headers||""; 6651jqXHR.readyState=status>0?4:0; 6652isSuccess=status>=200&&status<300||status===304; 6653if(responses){ 6654response=ajaxHandleResponses(s,jqXHR,responses); 6655} 6656if(!isSuccess&& 6657jQuery.inArray("script",s.dataTypes)>-1&& 6658jQuery.inArray("json",s.dataTypes)<0){ 6659s.converters["text script"]=function(){}; 6660} 6661response=ajaxConvert(s,response,jqXHR,isSuccess); 6662if(isSuccess){ 6663if(s.ifModified){ 6664modified=jqXHR.getResponseHeader("Last-Modified"); 6665if(modified){ 6666jQuery.lastModified[cacheURL]=modified; 6667} 6668modified=jqXHR.getResponseHeader("etag"); 6669if(modified){ 6670jQuery.etag[cacheURL]=modified; 6671} 6672} 6673if(status===204||s.type==="HEAD"){ 6674statusText="nocontent"; 6675}else if(status===304){ 6676statusText="notmodified"; 6677}else{ 6678statusText=response.state; 6679success=response.data; 6680error=response.error; 6681isSuccess=!error; 6682} 6683}else{ 6684error=statusText; 6685if(status||!statusText){ 6686statusText="error"; 6687if(status<0){ 6688status=0; 6689} 6690} 6691} 6692jqXHR.status=status; 6693jqXHR.statusText=(nativeStatusText||statusText)+""; 6694if(isSuccess){ 6695deferred.resolveWith(callbackContext,[success,statusText,jqXHR]); 6696}else{ 6697deferred.rejectWith(callbackContext,[jqXHR,statusText,error]); 6698} 6699jqXHR.statusCode(statusCode); 6700statusCode=undefined; 6701if(fireGlobals){ 6702globalEventContext.trigger(isSuccess?"ajaxSuccess":"ajaxError", 6703[jqXHR,s,isSuccess?success:error]); 6704} 6705completeDeferred.fireWith(callbackContext,[jqXHR,statusText]); 6706if(fireGlobals){ 6707globalEventContext.trigger("ajaxComplete",[jqXHR,s]); 6708if(!(--jQuery.active)){ 6709jQuery.event.trigger("ajaxStop"); 6710} 6711} 6712} 6713return jqXHR; 6714}, 6715getJSON:function(url,data,callback){ 6716return jQuery.get(url,data,callback,"json"); 6717}, 6718getScript:function(url,callback){ 6719return jQuery.get(url,undefined,callback,"script"); 6720} 6721}); 6722jQuery.each(["get","post"],function(_i,method){ 6723jQuery[method]=function(url,data,callback,type){ 6724if(isFunction(data)){ 6725type=type||callback; 6726callback=data; 6727data=undefined; 6728} 6729return jQuery.ajax(jQuery.extend({ 6730url:url, 6731type:method, 6732dataType:type, 6733data:data, 6734success:callback 6735},jQuery.isPlainObject(url)&&url)); 6736}; 6737}); 6738jQuery.ajaxPrefilter(function(s){ 6739var i; 6740for(i in s.headers){ 6741if(i.toLowerCase()==="content-type"){ 6742s.contentType=s.headers[i]||""; 6743} 6744} 6745}); 6746jQuery._evalUrl=function(url,options,doc){ 6747return jQuery.ajax({ 6748url:url, 6749type:"GET", 6750dataType:"script", 6751cache:true, 6752async:false, 6753global:false, 6754converters:{ 6755"text script":function(){} 6756}, 6757dataFilter:function(response){ 6758jQuery.globalEval(response,options,doc); 6759} 6760}); 6761}; 6762jQuery.fn.extend({ 6763wrapAll:function(html){ 6764var wrap; 6765if(this[0]){ 6766if(isFunction(html)){ 6767html=html.call(this[0]); 6768} 6769wrap=jQuery(html,this[0].ownerDocument).eq(0).clone(true); 6770if(this[0].parentNode){ 6771wrap.insertBefore(this[0]); 6772} 6773wrap.map(function(){ 6774var elem=this; 6775while(elem.firstElementChild){ 6776elem=elem.firstElementChild; 6777} 6778return elem; 6779}).append(this); 6780} 6781return this; 6782}, 6783wrapInner:function(html){ 6784if(isFunction(html)){ 6785return this.each(function(i){ 6786jQuery(this).wrapInner(html.call(this,i)); 6787}); 6788} 6789return this.each(function(){ 6790var self=jQuery(this), 6791contents=self.contents(); 6792if(contents.length){ 6793contents.wrapAll(html); 6794}else{ 6795self.append(html); 6796} 6797}); 6798}, 6799wrap:function(html){ 6800var htmlIsFunction=isFunction(html); 6801return this.each(function(i){ 6802jQuery(this).wrapAll(htmlIsFunction?html.call(this,i):html); 6803}); 6804}, 6805unwrap:function(selector){ 6806this.parent(selector).not("body").each(function(){ 6807jQuery(this).replaceWith(this.childNodes); 6808}); 6809return this; 6810} 6811}); 6812jQuery.expr.pseudos.hidden=function(elem){ 6813return!jQuery.expr.pseudos.visible(elem); 6814}; 6815jQuery.expr.pseudos.visible=function(elem){ 6816return!!(elem.offsetWidth||elem.offsetHeight||elem.getClientRects().length); 6817}; 6818jQuery.ajaxSettings.xhr=function(){ 6819try{ 6820return new window.XMLHttpRequest(); 6821}catch(e){} 6822}; 6823var xhrSuccessStatus={ 68240:200, 68251223:204 6826}, 6827xhrSupported=jQuery.ajaxSettings.xhr(); 6828support.cors=!!xhrSupported&&("withCredentials"in xhrSupported); 6829support.ajax=xhrSupported=!!xhrSupported; 6830jQuery.ajaxTransport(function(options){ 6831var callback,errorCallback; 6832if(support.cors||xhrSupported&&!options.crossDomain){ 6833return{ 6834send:function(headers,complete){ 6835var i, 6836xhr=options.xhr(); 6837xhr.open( 6838options.type, 6839options.url, 6840options.async, 6841options.username, 6842options.password 6843); 6844if(options.xhrFields){ 6845for(i in options.xhrFields){ 6846xhr[i]=options.xhrFields[i]; 6847} 6848} 6849if(options.mimeType&&xhr.overrideMimeType){ 6850xhr.overrideMimeType(options.mimeType); 6851} 6852if(!options.crossDomain&&!headers["X-Requested-With"]){ 6853headers["X-Requested-With"]="XMLHttpRequest"; 6854} 6855for(i in headers){ 6856xhr.setRequestHeader(i,headers[i]); 6857} 6858callback=function(type){ 6859return function(){ 6860if(callback){ 6861callback=errorCallback=xhr.onload= 6862xhr.onerror=xhr.onabort=xhr.ontimeout= 6863xhr.onreadystatechange=null; 6864if(type==="abort"){ 6865xhr.abort(); 6866}else if(type==="error"){ 6867if(typeof xhr.status!=="number"){ 6868complete(0,"error"); 6869}else{ 6870complete( 6871xhr.status, 6872xhr.statusText 6873); 6874} 6875}else{ 6876complete( 6877xhrSuccessStatus[xhr.status]||xhr.status, 6878xhr.statusText, 6879(xhr.responseType||"text")!=="text"|| 6880typeof xhr.responseText!=="string"? 6881{binary:xhr.response}: 6882{text:xhr.responseText}, 6883xhr.getAllResponseHeaders() 6884); 6885} 6886} 6887}; 6888}; 6889xhr.onload=callback(); 6890errorCallback=xhr.onerror=xhr.ontimeout=callback("error"); 6891if(xhr.onabort!==undefined){ 6892xhr.onabort=errorCallback; 6893}else{ 6894xhr.onreadystatechange=function(){ 6895if(xhr.readyState===4){ 6896window.setTimeout(function(){ 6897if(callback){ 6898errorCallback(); 6899} 6900}); 6901} 6902}; 6903} 6904callback=callback("abort"); 6905try{ 6906xhr.send(options.hasContent&&options.data||null); 6907}catch(e){ 6908if(callback){ 6909throw e; 6910} 6911} 6912}, 6913abort:function(){ 6914if(callback){ 6915callback(); 6916} 6917} 6918}; 6919} 6920}); 6921jQuery.ajaxPrefilter(function(s){ 6922if(s.crossDomain){ 6923s.contents.script=false; 6924} 6925}); 6926jQuery.ajaxSetup({ 6927accepts:{ 6928script:"text/javascript, application/javascript, "+ 6929"application/ecmascript, application/x-ecmascript" 6930}, 6931contents:{ 6932script:/\b(?:java|ecma)script\b/ 6933}, 6934converters:{ 6935"text script":function(text){ 6936jQuery.globalEval(text); 6937return text; 6938} 6939} 6940}); 6941jQuery.ajaxPrefilter("script",function(s){ 6942if(s.cache===undefined){ 6943s.cache=false; 6944} 6945if(s.crossDomain){ 6946s.type="GET"; 6947} 6948}); 6949jQuery.ajaxTransport("script",function(s){ 6950if(s.crossDomain||s.scriptAttrs){ 6951var script,callback; 6952return{ 6953send:function(_,complete){ 6954script=jQuery("<script>") 6955.attr(s.scriptAttrs||{}) 6956.prop({charset:s.scriptCharset,src:s.url}) 6957.on("load error",callback=function(evt){ 6958script.remove(); 6959callback=null; 6960if(evt){ 6961complete(evt.type==="error"?404:200,evt.type); 6962} 6963}); 6964document.head.appendChild(script[0]); 6965}, 6966abort:function(){ 6967if(callback){ 6968callback(); 6969} 6970} 6971}; 6972} 6973}); 6974var oldCallbacks=[], 6975rjsonp=/(=)\?(?=&|$)|\?\?/; 6976jQuery.ajaxSetup({ 6977jsonp:"callback", 6978jsonpCallback:function(){ 6979var callback=oldCallbacks.pop()||(jQuery.expando+"_"+(nonce.guid++)); 6980this[callback]=true; 6981return callback; 6982} 6983}); 6984jQuery.ajaxPrefilter("json jsonp",function(s,originalSettings,jqXHR){ 6985var callbackName,overwritten,responseContainer, 6986jsonProp=s.jsonp!==false&&(rjsonp.test(s.url)? 6987"url": 6988typeof s.data==="string"&& 6989(s.contentType||"") 6990.indexOf("application/x-www-form-urlencoded")===0&& 6991rjsonp.test(s.data)&&"data" 6992); 6993if(jsonProp||s.dataTypes[0]==="jsonp"){ 6994callbackName=s.jsonpCallback=isFunction(s.jsonpCallback)? 6995s.jsonpCallback(): 6996s.jsonpCallback; 6997if(jsonProp){ 6998s[jsonProp]=s[jsonProp].replace(rjsonp,"$1"+callbackName); 6999}else if(s.jsonp!==false){ 7000s.url+=(rquery.test(s.url)?"&":"?")+s.jsonp+"="+callbackName; 7001} 7002s.converters["script json"]=function(){ 7003if(!responseContainer){ 7004jQuery.error(callbackName+" was not called"); 7005} 7006return responseContainer[0]; 7007}; 7008s.dataTypes[0]="json"; 7009overwritten=window[callbackName]; 7010window[callbackName]=function(){ 7011responseContainer=arguments; 7012}; 7013jqXHR.always(function(){ 7014if(overwritten===undefined){ 7015jQuery(window).removeProp(callbackName); 7016}else{ 7017window[callbackName]=overwritten; 7018} 7019if(s[callbackName]){ 7020s.jsonpCallback=originalSettings.jsonpCallback; 7021oldCallbacks.push(callbackName); 7022} 7023if(responseContainer&&isFunction(overwritten)){ 7024overwritten(responseContainer[0]); 7025} 7026responseContainer=overwritten=undefined; 7027}); 7028return"script"; 7029} 7030}); 7031support.createHTMLDocument=(function(){ 7032var body=document.implementation.createHTMLDocument("").body; 7033body.innerHTML="<form></form><form></form>"; 7034return body.childNodes.length===2; 7035})(); 7036jQuery.parseHTML=function(data,context,keepScripts){ 7037if(typeof data!=="string"){ 7038return[]; 7039} 7040if(typeof context==="boolean"){ 7041keepScripts=context; 7042context=false; 7043} 7044var base,parsed,scripts; 7045if(!context){ 7046if(support.createHTMLDocument){ 7047context=document.implementation.createHTMLDocument(""); 7048base=context.createElement("base"); 7049base.href=document.location.href; 7050context.head.appendChild(base); 7051}else{ 7052context=document; 7053} 7054} 7055parsed=rsingleTag.exec(data); 7056scripts=!keepScripts&&[]; 7057if(parsed){ 7058return[context.createElement(parsed[1])]; 7059} 7060parsed=buildFragment([data],context,scripts); 7061if(scripts&&scripts.length){ 7062jQuery(scripts).remove(); 7063} 7064return jQuery.merge([],parsed.childNodes); 7065}; 7066jQuery.fn.load=function(url,params,callback){ 7067var selector,type,response, 7068self=this, 7069off=url.indexOf(" "); 7070if(off>-1){ 7071selector=stripAndCollapse(url.slice(off)); 7072url=url.slice(0,off); 7073} 7074if(isFunction(params)){ 7075callback=params; 7076params=undefined; 7077}else if(params&&typeof params==="object"){ 7078type="POST"; 7079} 7080if(self.length>0){ 7081jQuery.ajax({ 7082url:url, 7083type:type||"GET", 7084dataType:"html", 7085data:params 7086}).done(function(responseText){ 7087response=arguments; 7088self.html(selector? 7089jQuery("<div>").append(jQuery.parseHTML(responseText)).find(selector): 7090responseText); 7091}).always(callback&&function(jqXHR,status){ 7092self.each(function(){ 7093callback.apply(this,response||[jqXHR.responseText,status,jqXHR]); 7094}); 7095}); 7096} 7097return this; 7098}; 7099jQuery.expr.pseudos.animated=function(elem){ 7100return jQuery.grep(jQuery.timers,function(fn){ 7101return elem===fn.elem; 7102}).length; 7103}; 7104jQuery.offset={ 7105setOffset:function(elem,options,i){ 7106var curPosition,curLeft,curCSSTop,curTop,curOffset,curCSSLeft,calculatePosition, 7107position=jQuery.css(elem,"position"), 7108curElem=jQuery(elem), 7109props={}; 7110if(position==="static"){ 7111elem.style.position="relative"; 7112} 7113curOffset=curElem.offset(); 7114curCSSTop=jQuery.css(elem,"top"); 7115curCSSLeft=jQuery.css(elem,"left"); 7116calculatePosition=(position==="absolute"||position==="fixed")&& 7117(curCSSTop+curCSSLeft).indexOf("auto")>-1; 7118if(calculatePosition){ 7119curPosition=curElem.position(); 7120curTop=curPosition.top; 7121curLeft=curPosition.left; 7122}else{ 7123curTop=parseFloat(curCSSTop)||0; 7124curLeft=parseFloat(curCSSLeft)||0; 7125} 7126if(isFunction(options)){ 7127options=options.call(elem,i,jQuery.extend({},curOffset)); 7128} 7129if(options.top!=null){ 7130props.top=(options.top-curOffset.top)+curTop; 7131} 7132if(options.left!=null){ 7133props.left=(options.left-curOffset.left)+curLeft; 7134} 7135if("using"in options){ 7136options.using.call(elem,props); 7137}else{ 7138curElem.css(props); 7139} 7140} 7141}; 7142jQuery.fn.extend({ 7143offset:function(options){ 7144if(arguments.length){ 7145return options===undefined? 7146this: 7147this.each(function(i){ 7148jQuery.offset.setOffset(this,options,i); 7149}); 7150} 7151var rect,win, 7152elem=this[0]; 7153if(!elem){ 7154return; 7155} 7156if(!elem.getClientRects().length){ 7157return{top:0,left:0}; 7158} 7159rect=elem.getBoundingClientRect(); 7160win=elem.ownerDocument.defaultView; 7161return{ 7162top:rect.top+win.pageYOffset, 7163left:rect.left+win.pageXOffset 7164}; 7165}, 7166position:function(){ 7167if(!this[0]){ 7168return; 7169} 7170var offsetParent,offset,doc, 7171elem=this[0], 7172parentOffset={top:0,left:0}; 7173if(jQuery.css(elem,"position")==="fixed"){ 7174offset=elem.getBoundingClientRect(); 7175}else{ 7176offset=this.offset(); 7177doc=elem.ownerDocument; 7178offsetParent=elem.offsetParent||doc.documentElement; 7179while(offsetParent&& 7180(offsetParent===doc.body||offsetParent===doc.documentElement)&& 7181jQuery.css(offsetParent,"position")==="static"){ 7182offsetParent=offsetParent.parentNode; 7183} 7184if(offsetParent&&offsetParent!==elem&&offsetParent.nodeType===1){ 7185parentOffset=jQuery(offsetParent).offset(); 7186parentOffset.top+=jQuery.css(offsetParent,"borderTopWidth",true); 7187parentOffset.left+=jQuery.css(offsetParent,"borderLeftWidth",true); 7188} 7189} 7190return{ 7191top:offset.top-parentOffset.top-jQuery.css(elem,"marginTop",true), 7192left:offset.left-parentOffset.left-jQuery.css(elem,"marginLeft",true) 7193}; 7194}, 7195offsetParent:function(){ 7196return this.map(function(){ 7197var offsetParent=this.offsetParent; 7198while(offsetParent&&jQuery.css(offsetParent,"position")==="static"){ 7199offsetParent=offsetParent.offsetParent; 7200} 7201return offsetParent||documentElement; 7202}); 7203} 7204}); 7205jQuery.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(method,prop){ 7206var top="pageYOffset"===prop; 7207jQuery.fn[method]=function(val){ 7208return access(this,function(elem,method,val){ 7209var win; 7210if(isWindow(elem)){ 7211win=elem; 7212}else if(elem.nodeType===9){ 7213win=elem.defaultView; 7214} 7215if(val===undefined){ 7216return win?win[prop]:elem[method]; 7217} 7218if(win){ 7219win.scrollTo( 7220!top?val:win.pageXOffset, 7221top?val:win.pageYOffset 7222); 7223}else{ 7224elem[method]=val; 7225} 7226},method,val,arguments.length); 7227}; 7228});
7229jQuery.each(["top","left"],function(_i,prop){ 7230jQuery.cssHooks[prop]=addGetHookIf(support.pixelPosition, 7231function(elem,computed){ 7232if(computed){ 7233computed=curCSS(elem,prop); 7234return rnumnonpx.test(computed)? 7235jQuery(elem).position()[prop]+"px": 7236computed; 7237} 7238} 7239); 7240}); 7241jQuery.each({Height:"height",Width:"width"},function(name,type){ 7242jQuery.each({ 7243padding:"inner"+name, 7244content:type, 7245"":"outer"+name 7246},function(defaultExtra,funcName){ 7247jQuery.fn[funcName]=function(margin,value){ 7248var chainable=arguments.length&&(defaultExtra||typeof margin!=="boolean"), 7249extra=defaultExtra||(margin===true||value===true?"margin":"border"); 7250return access(this,function(elem,type,value){ 7251var doc; 7252if(isWindow(elem)){ 7253return funcName.indexOf("outer")===0? 7254elem["inner"+name]: 7255elem.document.documentElement["client"+name]; 7256} 7257if(elem.nodeType===9){ 7258doc=elem.documentElement; 7259return Math.max( 7260elem.body["scroll"+name],doc["scroll"+name], 7261elem.body["offset"+name],doc["offset"+name], 7262doc["client"+name] 7263); 7264} 7265return value===undefined? 7266jQuery.css(elem,type,extra): 7267jQuery.style(elem,type,value,extra); 7268},type,chainable?margin:undefined,chainable); 7269}; 7270}); 7271}); 7272jQuery.each([ 7273"ajaxStart", 7274"ajaxStop", 7275"ajaxComplete", 7276"ajaxError", 7277"ajaxSuccess", 7278"ajaxSend" 7279],function(_i,type){ 7280jQuery.fn[type]=function(fn){ 7281return this.on(type,fn); 7282}; 7283}); 7284jQuery.fn.extend({ 7285bind:function(types,data,fn){ 7286return this.on(types,null,data,fn); 7287}, 7288unbind:function(types,fn){ 7289return this.off(types,null,fn); 7290}, 7291delegate:function(selector,types,data,fn){ 7292return this.on(types,selector,data,fn); 7293}, 7294undelegate:function(selector,types,fn){ 7295return arguments.length===1? 7296this.off(selector,"**"): 7297this.off(types,selector||"**",fn); 7298}, 7299hover:function(fnOver,fnOut){ 7300return this 7301.on("mouseenter",fnOver) 7302.on("mouseleave",fnOut||fnOver); 7303} 7304}); 7305jQuery.each( 7306("blur focus focusin focusout resize scroll click dblclick "+ 7307"mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave "+ 7308"change select submit keydown keypress keyup contextmenu").split(" "), 7309function(_i,name){ 7310jQuery.fn[name]=function(data,fn){ 7311return arguments.length>0? 7312this.on(name,null,data,fn): 7313this.trigger(name); 7314}; 7315} 7316); 7317var rtrim=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g; 7318jQuery.proxy=function(fn,context){ 7319var tmp,args,proxy; 7320if(typeof context==="string"){ 7321tmp=fn[context]; 7322context=fn; 7323fn=tmp; 7324} 7325if(!isFunction(fn)){ 7326return undefined; 7327} 7328args=slice.call(arguments,2); 7329proxy=function(){ 7330return fn.apply(context||this,args.concat(slice.call(arguments))); 7331}; 7332proxy.guid=fn.guid=fn.guid||jQuery.guid++; 7333return proxy; 7334}; 7335jQuery.holdReady=function(hold){ 7336if(hold){ 7337jQuery.readyWait++; 7338}else{ 7339jQuery.ready(true); 7340} 7341}; 7342jQuery.isArray=Array.isArray; 7343jQuery.parseJSON=JSON.parse; 7344jQuery.nodeName=nodeName; 7345jQuery.isFunction=isFunction; 7346jQuery.isWindow=isWindow; 7347jQuery.camelCase=camelCase; 7348jQuery.type=toType; 7349jQuery.now=Date.now; 7350jQuery.isNumeric=function(obj){ 7351var type=jQuery.type(obj); 7352return(type==="number"||type==="string")&& 7353!isNaN(obj-parseFloat(obj)); 7354}; 7355jQuery.trim=function(text){ 7356return text==null? 7357"": 7358(text+"").replace(rtrim,"$1"); 7359}; 7360if(typeof define==="function"&&define.amd){ 7361define("jquery",[],function(){ 7362return jQuery; 7363}); 7364} 7365var 7366_jQuery=window.jQuery, 7367_$=window.$; 7368jQuery.noConflict=function(deep){ 7369if(window.$===jQuery){ 7370window.$=_$; 7371} 7372if(deep&&window.jQuery===jQuery){ 7373window.jQuery=_jQuery; 7374} 7375return jQuery; 7376}; 7377if(typeof noGlobal==="undefined"){ 7378window.jQuery=window.$=jQuery; 7379} 7380return jQuery; 7381}); 7382 7383 7384/* prive/javascript/jquery.form.js?1790327464 */ 7385 7386(function(factory){ 7387if(typeof define==='function'&&define.amd){ 7388define(['jquery'],factory); 7389}else if(typeof module==='object'&&module.exports){ 7390module.exports=function(root,jQuery){ 7391if(typeof jQuery==='undefined'){ 7392if(typeof window!=='undefined'){ 7393jQuery=require('jquery'); 7394} 7395else{ 7396jQuery=require('jquery')(root); 7397} 7398} 7399factory(jQuery); 7400return jQuery; 7401}; 7402}else{ 7403factory(jQuery); 7404} 7405}(function($){ 7406'use strict'; 7407var rCRLF=/\r?\n/g; 7408var feature={}; 7409feature.fileapi=$('<input type="file">').get(0).files!==undefined; 7410feature.formdata=(typeof window.FormData!=='undefined'); 7411var hasProp=!!$.fn.prop; 7412$.fn.attr2=function(){ 7413if(!hasProp){ 7414return this.attr.apply(this,arguments); 7415} 7416var val=this.prop.apply(this,arguments); 7417if((val&&val.jquery)||typeof val==='string'){ 7418return val; 7419} 7420return this.attr.apply(this,arguments); 7421}; 7422$.fn.ajaxSubmit=function(options,data,dataType,onSuccess){ 7423if(!this.length){
7424log('ajaxSubmit: skipping submit process - no element selected'); 7425return this; 7426} 7427var method,action,url,isMsie,iframeSrc,$form=this; 7428if(typeof options==='function'){ 7429options={success:options}; 7430}else if(typeof options==='string'||(options===false&&arguments.length>0)){ 7431options={ 7432'url':options, 7433'data':data, 7434'dataType':dataType 7435}; 7436if(typeof onSuccess==='function'){ 7437options.success=onSuccess; 7438} 7439}else if(typeof options==='undefined'){ 7440options={}; 7441} 7442method=options.method||options.type||this.attr2('method'); 7443action=options.url||this.attr2('action'); 7444url=(typeof action==='string')?$.trim(action):''; 7445url=url||window.location.href||''; 7446if(url){ 7447url=(url.match(/^([^#]+)/)||[])[1]; 7448} 7449isMsie=/(MSIE|Trident)/.test(navigator.userAgent||''); 7450iframeSrc=(isMsie&&/^https/i.test(window.location.href||''))?'javascript:false':'about:blank'; 7451options=$.extend(true,{ 7452url:url, 7453success:$.ajaxSettings.success, 7454type:method||$.ajaxSettings.type, 7455iframeSrc:iframeSrc 7456},options); 7457var veto={}; 7458this.trigger('form-pre-serialize',[this,options,veto]); 7459if(veto.veto){ 7460log('ajaxSubmit: submit vetoed via form-pre-serialize trigger'); 7461return this; 7462} 7463if(options.beforeSerialize&&options.beforeSerialize(this,options)===false){ 7464log('ajaxSubmit: submit aborted via beforeSerialize callback'); 7465return this; 7466} 7467var traditional=options.traditional; 7468if(typeof traditional==='undefined'){ 7469traditional=$.ajaxSettings.traditional; 7470} 7471var elements=[]; 7472var qx,a=this.formToArray(options.semantic,elements,options.filtering); 7473if(options.data){ 7474var optionsData=$.isFunction(options.data)?options.data(a):options.data; 7475options.extraData=optionsData; 7476qx=$.param(optionsData,traditional); 7477} 7478if(options.beforeSubmit&&options.beforeSubmit(a,this,options)===false){ 7479log('ajaxSubmit: submit aborted via beforeSubmit callback'); 7480return this; 7481} 7482this.trigger('form-submit-validate',[a,this,options,veto]); 7483if(veto.veto){ 7484log('ajaxSubmit: submit vetoed via form-submit-validate trigger'); 7485return this; 7486} 7487var q=$.param(a,traditional); 7488if(qx){ 7489q=(q?(q+'&'+qx):qx); 7490} 7491if(options.type.toUpperCase()==='GET'){ 7492options.url+=(options.url.indexOf('?')>=0?'&':'?')+q; 7493options.data=null; 7494}else{ 7495options.data=q; 7496} 7497var callbacks=[]; 7498if(options.resetForm){ 7499callbacks.push(function(){ 7500$form.resetForm(); 7501}); 7502} 7503if(options.clearForm){ 7504callbacks.push(function(){ 7505$form.clearForm(options.includeHidden); 7506}); 7507} 7508if(!options.dataType&&options.target){ 7509var oldSuccess=options.success||function(){}; 7510callbacks.push(function(data,textStatus,jqXHR){ 7511var successArguments=arguments, 7512fn=options.replaceTarget?'replaceWith':'html'; 7513if(fn=='html'){ 7514data=$.parseHTML($("<div>").text(data).html()) 7515}; 7516$(options.target)[fn](data).each(function(){ 7517oldSuccess.apply(this,successArguments); 7518}); 7519}); 7520}else if(options.success){ 7521if($.isArray(options.success)){ 7522$.merge(callbacks,options.success); 7523}else{ 7524callbacks.push(options.success); 7525} 7526} 7527options.success=function(data,status,xhr){ 7528var context=options.context||this; 7529for(var i=0,max=callbacks.length;i<max;i++){ 7530callbacks[i].apply(context,[data,status,xhr||$form,$form]); 7531} 7532}; 7533if(options.error){ 7534var oldError=options.error; 7535options.error=function(xhr,status,error){ 7536var context=options.context||this; 7537oldError.apply(context,[xhr,status,error,$form]); 7538}; 7539} 7540if(options.complete){ 7541var oldComplete=options.complete; 7542options.complete=function(xhr,status){ 7543var context=options.context||this; 7544oldComplete.apply(context,[xhr,status,$form]); 7545}; 7546} 7547var fileInputs=$('input[type=file]:enabled',this).filter(function(){ 7548return $(this).val()!==''; 7549}); 7550var hasFileInputs=fileInputs.length>0; 7551var mp='multipart/form-data'; 7552var multipart=($form.attr('enctype')===mp||$form.attr('encoding')===mp); 7553var fileAPI=feature.fileapi&&feature.formdata; 7554log('fileAPI :'+fileAPI); 7555var shouldUseFrame=(hasFileInputs||multipart)&&!fileAPI; 7556var jqxhr; 7557if(options.iframe!==false&&(options.iframe||shouldUseFrame)){ 7558if(options.closeKeepAlive){ 7559$.get(options.closeKeepAlive,function(){ 7560jqxhr=fileUploadIframe(a); 7561}); 7562}else{ 7563jqxhr=fileUploadIframe(a); 7564} 7565}else if((hasFileInputs||multipart)&&fileAPI){ 7566jqxhr=fileUploadXhr(a); 7567}else{ 7568jqxhr=$.ajax(options); 7569} 7570$form.removeData('jqxhr').data('jqxhr',jqxhr); 7571for(var k=0;k<elements.length;k++){ 7572elements[k]=null; 7573} 7574this.trigger('form-submit-notify',[this,options]); 7575return this; 7576function deepSerialize(extraData){ 7577var serialized=$.param(extraData,options.traditional).split('&'); 7578var len=serialized.length; 7579var result=[]; 7580var i,part; 7581for(i=0;i<len;i++){ 7582serialized[i]=serialized[i].replace(/\+/g,' '); 7583part=serialized[i].split('='); 7584result.push([decodeURIComponent(part[0]),decodeURIComponent(part[1])]); 7585} 7586return result; 7587} 7588function fileUploadXhr(a){ 7589var formdata=new FormData(); 7590for(var i=0;i<a.length;i++){ 7591formdata.append(a[i].name,a[i].value); 7592} 7593if(options.extraData){ 7594var serializedData=deepSerialize(options.extraData); 7595for(i=0;i<serializedData.length;i++){ 7596if(serializedData[i]){ 7597formdata.append(serializedData[i][0],serializedData[i][1]); 7598} 7599} 7600} 7601options.data=null; 7602var s=$.extend(true,{},$.ajaxSettings,options,{ 7603contentType:false, 7604processData:false, 7605cache:false, 7606type:method||'POST' 7607}); 7608if(options.uploadProgress){ 7609s.xhr=function(){ 7610var xhr=$.ajaxSettings.xhr(); 7611if(xhr.upload){ 7612xhr.upload.addEventListener('progress',function(event){ 7613var percent=0; 7614var position=event.loaded||event.position; 7615var total=event.total; 7616if(event.lengthComputable){ 7617percent=Math.ceil(position/total*100); 7618} 7619options.uploadProgress(event,position,total,percent); 7620},false); 7621} 7622return xhr; 7623}; 7624} 7625s.data=null; 7626var beforeSend=s.beforeSend; 7627s.beforeSend=function(xhr,o){ 7628if(options.formData){ 7629o.data=options.formData; 7630}else{ 7631o.data=formdata; 7632} 7633if(beforeSend){
7634beforeSend.call(this,xhr,o); 7635} 7636}; 7637return $.ajax(s); 7638} 7639function fileUploadIframe(a){ 7640var form=$form[0],el,i,s,g,id,$io,io,xhr,sub,n,timedOut,timeoutHandle; 7641var deferred=$.Deferred(); 7642deferred.abort=function(status){ 7643xhr.abort(status); 7644}; 7645if(a){ 7646for(i=0;i<elements.length;i++){ 7647el=$(elements[i]); 7648if(hasProp){ 7649el.prop('disabled',false); 7650}else{ 7651el.removeAttr('disabled'); 7652} 7653} 7654} 7655s=$.extend(true,{},$.ajaxSettings,options); 7656s.context=s.context||s; 7657id='jqFormIO'+new Date().getTime(); 7658var ownerDocument=form.ownerDocument; 7659var $body=$form.closest('body'); 7660if(s.iframeTarget){ 7661$io=$(s.iframeTarget,ownerDocument); 7662n=$io.attr2('name'); 7663if(!n){ 7664$io.attr2('name',id); 7665}else{ 7666id=n; 7667} 7668}else{ 7669$io=$('<iframe name="'+id+'" src="'+s.iframeSrc+'">',ownerDocument); 7670$io.css({position:'absolute',top:'-1000px',left:'-1000px'}); 7671} 7672io=$io[0]; 7673xhr={ 7674aborted:0, 7675responseText:null, 7676responseXML:null, 7677status:0, 7678statusText:'n/a', 7679getAllResponseHeaders:function(){}, 7680getResponseHeader:function(){}, 7681setRequestHeader:function(){}, 7682abort:function(status){ 7683var e=(status==='timeout'?'timeout':'aborted'); 7684log('aborting upload... '+e); 7685this.aborted=1; 7686try{ 7687if(io.contentWindow.document.execCommand){ 7688io.contentWindow.document.execCommand('Stop'); 7689} 7690}catch(ignore){} 7691$io.attr('src',s.iframeSrc); 7692xhr.error=e; 7693if(s.error){ 7694s.error.call(s.context,xhr,e,status); 7695} 7696if(g){ 7697$.event.trigger('ajaxError',[xhr,s,e]); 7698} 7699if(s.complete){ 7700s.complete.call(s.context,xhr,e); 7701} 7702} 7703}; 7704g=s.global; 7705if(g&&$.active++===0){ 7706$.event.trigger('ajaxStart'); 7707} 7708if(g){ 7709$.event.trigger('ajaxSend',[xhr,s]); 7710} 7711if(s.beforeSend&&s.beforeSend.call(s.context,xhr,s)===false){ 7712if(s.global){ 7713$.active--; 7714} 7715deferred.reject(); 7716return deferred; 7717} 7718if(xhr.aborted){ 7719deferred.reject(); 7720return deferred; 7721} 7722sub=form.clk; 7723if(sub){ 7724n=sub.name; 7725if(n&&!sub.disabled){ 7726s.extraData=s.extraData||{}; 7727s.extraData[n]=sub.value; 7728if(sub.type==='image'){ 7729s.extraData[n+'.x']=form.clk_x; 7730s.extraData[n+'.y']=form.clk_y; 7731} 7732} 7733} 7734var CLIENT_TIMEOUT_ABORT=1; 7735var SERVER_ABORT=2; 7736function getDoc(frame){ 7737var doc=null; 7738try{ 7739if(frame.contentWindow){ 7740doc=frame.contentWindow.document; 7741} 7742}catch(err){ 7743log('cannot get iframe.contentWindow document: '+err); 7744} 7745if(doc){ 7746return doc; 7747} 7748try{ 7749doc=frame.contentDocument?frame.contentDocument:frame.document; 7750}catch(err){ 7751log('cannot get iframe.contentDocument: '+err); 7752doc=frame.document; 7753} 7754return doc; 7755} 7756var csrf_token=$('meta[name=csrf-token]').attr('content'); 7757var csrf_param=$('meta[name=csrf-param]').attr('content'); 7758if(csrf_param&&csrf_token){ 7759s.extraData=s.extraData||{}; 7760s.extraData[csrf_param]=csrf_token; 7761} 7762function doSubmit(){ 7763var t=$form.attr2('target'), 7764a=$form.attr2('action'), 7765mp='multipart/form-data', 7766et=$form.attr('enctype')||$form.attr('encoding')||mp; 7767form.setAttribute('target',id); 7768if(!method||/post/i.test(method)){ 7769form.setAttribute('method','POST'); 7770} 7771if(a!==s.url){ 7772form.setAttribute('action',s.url); 7773} 7774if(!s.skipEncodingOverride&&(!method||/post/i.test(method))){ 7775$form.attr({ 7776encoding:'multipart/form-data', 7777enctype:'multipart/form-data' 7778}); 7779} 7780if(s.timeout){ 7781timeoutHandle=setTimeout(function(){ 7782timedOut=true;cb(CLIENT_TIMEOUT_ABORT); 7783},s.timeout); 7784} 7785function checkState(){ 7786try{ 7787var state=getDoc(io).readyState; 7788log('state = '+state); 7789if(state&&state.toLowerCase()==='uninitialized'){ 7790setTimeout(checkState,50); 7791} 7792}catch(e){ 7793log('Server abort: ',e,' (',e.name,')'); 7794cb(SERVER_ABORT); 7795if(timeoutHandle){ 7796clearTimeout(timeoutHandle); 7797} 7798timeoutHandle=undefined; 7799} 7800} 7801var extraInputs=[]; 7802try{ 7803if(s.extraData){ 7804for(var n in s.extraData){ 7805if(s.extraData.hasOwnProperty(n)){ 7806if($.isPlainObject(s.extraData[n])&&s.extraData[n].hasOwnProperty('name')&&s.extraData[n].hasOwnProperty('value')){ 7807extraInputs.push( 7808$('<input type="hidden" name="'+s.extraData[n].name+'">',ownerDocument).val(s.extraData[n].value) 7809.appendTo(form)[0]); 7810}else{ 7811extraInputs.push( 7812$('<input type="hidden" name="'+n+'">',ownerDocument).val(s.extraData[n]) 7813.appendTo(form)[0]); 7814} 7815} 7816} 7817} 7818if(!s.iframeTarget){ 7819$io.appendTo($body); 7820} 7821if(io.attachEvent){ 7822io.attachEvent('onload',cb); 7823}else{ 7824io.addEventListener('load',cb,false); 7825} 7826setTimeout(checkState,15); 7827try{ 7828form.submit(); 7829}catch(err){ 7830var submitFn=document.createElement('form').submit; 7831submitFn.apply(form); 7832} 7833}finally{ 7834form.setAttribute('action',a); 7835form.setAttribute('enctype',et); 7836if(t){ 7837form.setAttribute('target',t); 7838}else{ 7839$form.removeAttr('target'); 7840} 7841$(extraInputs).remove(); 7842} 7843} 7844if(s.forceSync){ 7845doSubmit(); 7846}else{ 7847setTimeout(doSubmit,10); 7848} 7849var data,doc,domCheckCount=50,callbackProcessed; 7850function cb(e){ 7851if(xhr.aborted||callbackProcessed){ 7852return; 7853} 7854doc=getDoc(io); 7855if(!doc){ 7856log('cannot access response document'); 7857e=SERVER_ABORT; 7858} 7859if(e===CLIENT_TIMEOUT_ABORT&&xhr){ 7860xhr.abort('timeout'); 7861deferred.reject(xhr,'timeout'); 7862return; 7863} 7864if(e===SERVER_ABORT&&xhr){ 7865xhr.abort('server abort'); 7866deferred.reject(xhr,'error','server abort'); 7867return; 7868} 7869if(!doc||doc.location.href===s.iframeSrc){ 7870if(!timedOut){ 7871return; 7872} 7873} 7874if(io.detachEvent){ 7875io.detachEvent('onload',cb); 7876}else{ 7877io.removeEventListener('load',cb,false); 7878} 7879var status='success',errMsg; 7880try{ 7881if(timedOut){ 7882throw'timeout'; 7883} 7884var isXml=s.dataType==='xml'||doc.XMLDocument||$.isXMLDoc(doc); 7885log('isXml='+isXml); 7886if(!isXml&&window.opera&&(doc.body===null||!doc.body.innerHTML)){ 7887if(--domCheckCount){ 7888log('requeing onLoad callback, DOM not available'); 7889setTimeout(cb,250); 7890return; 7891} 7892} 7893var docRoot=doc.body?doc.body:doc.documentElement; 7894xhr.responseText=docRoot?docRoot.innerHTML:null; 7895xhr.responseXML=doc.XMLDocument?doc.XMLDocument:doc; 7896if(isXml){ 7897s.dataType='xml'; 7898} 7899xhr.getResponseHeader=function(header){ 7900var headers={'content-type':s.dataType}; 7901return headers[header.toLowerCase()]; 7902}; 7903if(docRoot){ 7904xhr.status=Number(docRoot.getAttribute('status'))||xhr.status; 7905xhr.statusText=docRoot.getAttribute('statusText')||xhr.statusText; 7906} 7907var dt=(s.dataType||'').toLowerCase(); 7908var scr=/(json|script|text)/.test(dt); 7909if(scr||s.textarea){ 7910var ta=doc.getElementsByTagName('textarea')[0]; 7911if(ta){ 7912xhr.responseText=ta.value; 7913xhr.status=Number(ta.getAttribute('status'))||xhr.status; 7914xhr.statusText=ta.getAttribute('statusText')||xhr.statusText; 7915}else if(scr){ 7916var pre=doc.getElementsByTagName('pre')[0]; 7917var b=doc.getElementsByTagName('body')[0]; 7918if(pre){ 7919xhr.responseText=pre.textContent?pre.textContent:pre.innerText; 7920}else if(b){ 7921xhr.responseText=b.textContent?b.textContent:b.innerText; 7922} 7923} 7924}else if(dt==='xml'&&!xhr.responseXML&&xhr.responseText){ 7925xhr.responseXML=toXml(xhr.responseText); 7926} 7927try{ 7928data=httpData(xhr,dt,s); 7929}catch(err){ 7930status='parsererror'; 7931xhr.error=errMsg=(err||status); 7932} 7933}catch(err){ 7934log('error caught: ',err); 7935status='error'; 7936xhr.error=errMsg=(err||status); 7937} 7938if(xhr.aborted){ 7939log('upload aborted'); 7940status=null; 7941} 7942if(xhr.status){ 7943status=((xhr.status>=200&&xhr.status<300)||xhr.status===304)?'success':'error'; 7944} 7945if(status==='success'){ 7946if(s.success){ 7947s.success.call(s.context,data,'success',xhr); 7948} 7949deferred.resolve(xhr.responseText,'success',xhr); 7950if(g){
7951$.event.trigger('ajaxSuccess',[xhr,s]); 7952} 7953}else if(status){ 7954if(typeof errMsg==='undefined'){ 7955errMsg=xhr.statusText; 7956} 7957if(s.error){ 7958s.error.call(s.context,xhr,status,errMsg); 7959} 7960deferred.reject(xhr,'error',errMsg); 7961if(g){ 7962$.event.trigger('ajaxError',[xhr,s,errMsg]); 7963} 7964} 7965if(g){ 7966$.event.trigger('ajaxComplete',[xhr,s]); 7967} 7968if(g&&!--$.active){ 7969$.event.trigger('ajaxStop'); 7970} 7971if(s.complete){ 7972s.complete.call(s.context,xhr,status); 7973} 7974callbackProcessed=true; 7975if(s.timeout){ 7976clearTimeout(timeoutHandle); 7977} 7978setTimeout(function(){ 7979if(!s.iframeTarget){ 7980$io.remove(); 7981}else{ 7982$io.attr('src',s.iframeSrc); 7983} 7984xhr.responseXML=null; 7985},100); 7986} 7987var toXml=$.parseXML||function(s,doc){ 7988if(window.ActiveXObject){ 7989doc=new ActiveXObject('Microsoft.XMLDOM'); 7990doc.async='false'; 7991doc.loadXML(s); 7992}else{ 7993doc=(new DOMParser()).parseFromString(s,'text/xml'); 7994} 7995return(doc&&doc.documentElement&&doc.documentElement.nodeName!=='parsererror')?doc:null; 7996}; 7997var parseJSON=$.parseJSON||function(s){ 7998window.console.error('jquery.parseJSON is undefined'); 7999return null; 8000}; 8001var httpData=function(xhr,type,s){ 8002var ct=xhr.getResponseHeader('content-type')||'', 8003xml=((type==='xml'||!type)&&ct.indexOf('xml')>=0), 8004data=xml?xhr.responseXML:xhr.responseText; 8005if(xml&&data.documentElement.nodeName==='parsererror'){ 8006if($.error){ 8007$.error('parsererror'); 8008} 8009} 8010if(s&&s.dataFilter){ 8011data=s.dataFilter(data,type); 8012} 8013if(typeof data==='string'){ 8014if((type==='json'||!type)&&ct.indexOf('json')>=0){ 8015data=parseJSON(data); 8016}else if((type==='script'||!type)&&ct.indexOf('javascript')>=0){ 8017$.globalEval(data); 8018} 8019} 8020return data; 8021}; 8022return deferred; 8023} 8024}; 8025$.fn.ajaxForm=function(options,data,dataType,onSuccess){ 8026if(typeof options==='string'||(options===false&&arguments.length>0)){ 8027options={ 8028'url':options, 8029'data':data, 8030'dataType':dataType 8031}; 8032if(typeof onSuccess==='function'){ 8033options.success=onSuccess; 8034} 8035} 8036options=options||{}; 8037options.delegation=options.delegation&&$.isFunction($.fn.on); 8038if(!options.delegation&&this.length===0){ 8039var o={s:this.selector,c:this.context}; 8040if(!$.isReady&&o.s){ 8041log('DOM not ready, queuing ajaxForm'); 8042$(function(){ 8043$(o.s,o.c).ajaxForm(options); 8044}); 8045return this; 8046} 8047log('terminating; zero elements found by selector'+($.isReady?'':' (DOM not ready)')); 8048return this; 8049} 8050if(options.delegation){ 8051$(document) 8052.off('submit.form-plugin',this.selector,doAjaxSubmit) 8053.off('click.form-plugin',this.selector,captureSubmittingElement) 8054.on('submit.form-plugin',this.selector,options,doAjaxSubmit) 8055.on('click.form-plugin',this.selector,options,captureSubmittingElement); 8056return this; 8057} 8058if(options.beforeFormUnbind){ 8059options.beforeFormUnbind(this,options); 8060} 8061return this.ajaxFormUnbind() 8062.on('submit.form-plugin',options,doAjaxSubmit) 8063.on('click.form-plugin',options,captureSubmittingElement); 8064}; 8065function doAjaxSubmit(e){ 8066var options=e.data; 8067if(!e.isDefaultPrevented()){ 8068e.preventDefault(); 8069$(e.target).closest('form').ajaxSubmit(options); 8070} 8071} 8072function captureSubmittingElement(e){ 8073var target=e.target; 8074var $el=$(target); 8075if(!$el.is('[type=submit],[type=image]')){ 8076var t=$el.closest('[type=submit]'); 8077if(t.length===0){ 8078return; 8079} 8080target=t[0]; 8081} 8082var form=target.form; 8083form.clk=target; 8084if(target.type==='image'){ 8085if(typeof e.offsetX!=='undefined'){ 8086form.clk_x=e.offsetX; 8087form.clk_y=e.offsetY; 8088}else if(typeof $.fn.offset==='function'){ 8089var offset=$el.offset(); 8090form.clk_x=e.pageX-offset.left; 8091form.clk_y=e.pageY-offset.top; 8092}else{ 8093form.clk_x=e.pageX-target.offsetLeft; 8094form.clk_y=e.pageY-target.offsetTop; 8095} 8096} 8097setTimeout(function(){ 8098form.clk=form.clk_x=form.clk_y=null; 8099},100); 8100} 8101$.fn.ajaxFormUnbind=function(){ 8102return this.off('submit.form-plugin click.form-plugin'); 8103}; 8104$.fn.formToArray=function(semantic,elements,filtering){ 8105var a=[]; 8106if(this.length===0){ 8107return a; 8108} 8109var form=this[0]; 8110var formId=this.attr('id'); 8111var els=(semantic||typeof form.elements==='undefined')?form.getElementsByTagName('*'):form.elements; 8112var els2; 8113if(els){ 8114els=$.makeArray(els); 8115} 8116if(formId&&(semantic||/(Edge|Trident)\//.test(navigator.userAgent))){ 8117els2=$(':input[form="'+formId+'"]').get(); 8118if(els2.length){ 8119els=(els||[]).concat(els2); 8120} 8121} 8122if(!els||!els.length){ 8123return a; 8124}
8125if($.isFunction(filtering)){ 8126els=$.map(els,filtering); 8127} 8128var i,j,n,v,el,max,jmax; 8129for(i=0,max=els.length;i<max;i++){ 8130el=els[i]; 8131n=el.name; 8132if(!n||el.disabled){ 8133continue; 8134} 8135if(semantic&&form.clk&&el.type==='image'){ 8136if(form.clk===el){ 8137a.push({name:n,value:$(el).val(),type:el.type}); 8138a.push({name:n+'.x',value:form.clk_x},{name:n+'.y',value:form.clk_y}); 8139} 8140continue; 8141} 8142v=$.fieldValue(el,true); 8143if(v&&v.constructor===Array){ 8144if(elements){ 8145elements.push(el); 8146} 8147for(j=0,jmax=v.length;j<jmax;j++){ 8148a.push({name:n,value:v[j]}); 8149} 8150}else if(feature.fileapi&&el.type==='file'){ 8151if(elements){ 8152elements.push(el); 8153} 8154var files=el.files; 8155if(files.length){ 8156for(j=0;j<files.length;j++){ 8157a.push({name:n,value:files[j],type:el.type}); 8158} 8159}else{ 8160a.push({name:n,value:'',type:el.type}); 8161} 8162}else if(v!==null&&typeof v!=='undefined'){ 8163if(elements){ 8164elements.push(el); 8165} 8166a.push({name:n,value:v,type:el.type,required:el.required}); 8167} 8168} 8169if(!semantic&&form.clk){ 8170var $input=$(form.clk),input=$input[0]; 8171n=input.name; 8172if(n&&!input.disabled&&input.type==='image'){ 8173a.push({name:n,value:$input.val()}); 8174a.push({name:n+'.x',value:form.clk_x},{name:n+'.y',value:form.clk_y}); 8175} 8176} 8177return a; 8178}; 8179$.fn.formSerialize=function(semantic){ 8180return $.param(this.formToArray(semantic)); 8181}; 8182$.fn.fieldSerialize=function(successful){ 8183var a=[]; 8184this.each(function(){ 8185var n=this.name; 8186if(!n){ 8187return; 8188} 8189var v=$.fieldValue(this,successful); 8190if(v&&v.constructor===Array){ 8191for(var i=0,max=v.length;i<max;i++){ 8192a.push({name:n,value:v[i]}); 8193} 8194}else if(v!==null&&typeof v!=='undefined'){ 8195a.push({name:this.name,value:v}); 8196} 8197}); 8198return $.param(a); 8199}; 8200$.fn.fieldValue=function(successful){ 8201for(var val=[],i=0,max=this.length;i<max;i++){ 8202var el=this[i]; 8203var v=$.fieldValue(el,successful); 8204if(v===null||typeof v==='undefined'||(v.constructor===Array&&!v.length)){ 8205continue; 8206} 8207if(v.constructor===Array){ 8208$.merge(val,v); 8209}else{ 8210val.push(v); 8211} 8212} 8213return val; 8214}; 8215$.fieldValue=function(el,successful){ 8216var n=el.name,t=el.type,tag=el.tagName.toLowerCase(); 8217if(typeof successful==='undefined'){ 8218successful=true; 8219} 8220if(successful&&(!n||el.disabled||t==='reset'||t==='button'|| 8221(t==='checkbox'||t==='radio')&&!el.checked|| 8222(t==='submit'||t==='image')&&el.form&&el.form.clk!==el|| 8223tag==='select'&&el.selectedIndex===-1)){ 8224return null; 8225} 8226if(tag==='select'){ 8227var index=el.selectedIndex; 8228if(index<0){ 8229return null; 8230} 8231var a=[],ops=el.options; 8232var one=(t==='select-one'); 8233var max=(one?index+1:ops.length); 8234for(var i=(one?index:0);i<max;i++){ 8235var op=ops[i]; 8236if(op.selected&&!op.disabled){ 8237var v=op.value; 8238if(!v){ 8239v=(op.attributes&&op.attributes.value&&!(op.attributes.value.specified))?op.text:op.value; 8240} 8241if(one){ 8242return v; 8243} 8244a.push(v); 8245} 8246} 8247return a; 8248} 8249return $(el).val().replace(rCRLF,'\r\n'); 8250}; 8251$.fn.clearForm=function(includeHidden){ 8252return this.each(function(){ 8253$('input,select,textarea',this).clearFields(includeHidden); 8254}); 8255}; 8256$.fn.clearFields=$.fn.clearInputs=function(includeHidden){ 8257var re=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i; 8258return this.each(function(){ 8259var t=this.type,tag=this.tagName.toLowerCase(); 8260if(re.test(t)||tag==='textarea'){ 8261this.value=''; 8262}else if(t==='checkbox'||t==='radio'){ 8263this.checked=false; 8264}else if(tag==='select'){ 8265this.selectedIndex=-1; 8266}else if(t==='file'){ 8267if(/MSIE/.test(navigator.userAgent)){ 8268$(this).replaceWith($(this).clone(true)); 8269}else{ 8270$(this).val(''); 8271} 8272}else if(includeHidden){ 8273if((includeHidden===true&&/hidden/.test(t))|| 8274(typeof includeHidden==='string'&&$(this).is(includeHidden))){ 8275this.value=''; 8276} 8277} 8278}); 8279}; 8280$.fn.resetForm=function(){ 8281return this.each(function(){ 8282var el=$(this); 8283var tag=this.tagName.toLowerCase(); 8284switch(tag){ 8285case'input': 8286this.checked=this.defaultChecked; 8287case'textarea': 8288this.value=this.defaultValue; 8289return true; 8290case'option': 8291case'optgroup': 8292var select=el.parents('select'); 8293if(select.length&&select[0].multiple){ 8294if(tag==='option'){ 8295this.selected=this.defaultSelected; 8296}else{ 8297el.find('option').resetForm(); 8298} 8299}else{ 8300select.resetForm(); 8301} 8302return true; 8303case'select': 8304el.find('option').each(function(i){ 8305this.selected=this.defaultSelected; 8306if(this.defaultSelected&&!el[0].multiple){ 8307el[0].selectedIndex=i; 8308return false;
8309} 8310}); 8311return true; 8312case'label': 8313var forEl=$(el.attr('for')); 8314var list=el.find('input,select,textarea'); 8315if(forEl[0]){ 8316list.unshift(forEl[0]); 8317} 8318list.resetForm(); 8319return true; 8320case'form': 8321if(typeof this.reset==='function'||(typeof this.reset==='object'&&!this.reset.nodeType)){ 8322this.reset(); 8323} 8324return true; 8325default: 8326el.find('form,input,label,select,textarea').resetForm(); 8327return true; 8328} 8329}); 8330}; 8331$.fn.enable=function(b){ 8332if(typeof b==='undefined'){ 8333b=true; 8334} 8335return this.each(function(){ 8336this.disabled=!b; 8337}); 8338}; 8339$.fn.selected=function(select){ 8340if(typeof select==='undefined'){ 8341select=true; 8342} 8343return this.each(function(){ 8344var t=this.type; 8345if(t==='checkbox'||t==='radio'){ 8346this.checked=select; 8347}else if(this.tagName.toLowerCase()==='option'){ 8348var $sel=$(this).parent('select'); 8349if(select&&$sel[0]&&$sel[0].type==='select-one'){ 8350$sel.find('option').selected(false); 8351} 8352this.selected=select; 8353} 8354}); 8355}; 8356$.fn.ajaxSubmit.debug=false; 8357function log(){ 8358if(!$.fn.ajaxSubmit.debug){ 8359return; 8360} 8361var msg='[jquery.form] '+Array.prototype.join.call(arguments,''); 8362if(window.console&&window.console.log){ 8363window.console.log(msg); 8364}else if(window.opera&&window.opera.postError){ 8365window.opera.postError(msg); 8366} 8367} 8368})); 8369 8370 8371/* prive/javascript/jquery.autosave.js?1790327464 */ 8372 8373(function($){ 8374$.fn.autosave=function(opt){ 8375opt=$.extend({ 8376url:window.location, 8377confirm:false, 8378confirmstring:'Sauvegarder ?' 8379},opt); 8380var save_changed=function(){ 8381$('form.autosavechanged') 8382.each(function(){ 8383if(!opt.confirm||confirm(opt.confirmstring)){ 8384var contenu=$(this).serialize(); 8385var d=new Date(); 8386contenu=contenu+"&__timestamp="+Math.round(d.getTime()/1000); 8387$.post(opt.url,{ 8388'action':'session', 8389'var':'autosave_'+$('input[name=autosave]',this).val(), 8390'val':contenu 8391}); 8392} 8393}).removeClass('autosavechanged'); 8394}; 8395$(window).on('unload',save_changed); 8396return this 8397.on('keyup',function(){ 8398$(this).addClass('autosavechanged'); 8399}) 8400.on('change',function(){ 8401$(this).addClass('autosavechanged'); 8402save_changed(); 8403}) 8404.on('submit',function(){ 8405save_changed(); 8406}); 8407}; 8408})(jQuery); 8409 8410 8411/* prive/javascript/jquery.placeholder-label.js?1790327464 */ 8412 8413(function($){
8414$.placeholderLabel={ 8415placeholder_class:null, 8416add_placeholder:function(){ 8417if($(this).val()==$(this).attr('placeholder')){ 8418$(this).val('').removeClass($.placeholderLabel.placeholder_class); 8419} 8420}, 8421remove_placeholder:function(){ 8422if($(this).val()==''){ 8423$(this).val($(this).attr('placeholder')).addClass($.placeholderLabel.placeholder_class); 8424} 8425}, 8426disable_placeholder_fields:function(){ 8427$(this).find("input[placeholder]").each(function(){ 8428if($(this).val()==$(this).attr('placeholder')){ 8429$(this).val(''); 8430} 8431}); 8432return true; 8433} 8434}; 8435$.fn.placeholderLabel=function(options){ 8436var dummy=document.createElement('input'); 8437if(dummy.placeholder!=undefined){ 8438return this; 8439} 8440var config={ 8441placeholder_class:'placeholder' 8442}; 8443if(options)$.extend(config,options); 8444$.placeholderLabel.placeholder_class=config.placeholder_class; 8445this.each(function(){ 8446var input=$(this); 8447input.focus($.placeholderLabel.add_placeholder); 8448input.blur($.placeholderLabel.remove_placeholder); 8449input.triggerHandler('focus'); 8450input.triggerHandler('blur'); 8451$(this.form).submit($.placeholderL
8451abel.disable_placeholder_fields); 8452}); 8453return this; 8454} 8455})(jQuery); 8456 8457 8458/* prive/javascript/ajaxCallback.js?1790327464 */ 8459jQuery.spip=jQuery.spip||{}; 8460jQuery.spip.log=function(){ 8461if(jQuery.spip.debug&&window.console&&window.console.log) 8462window.console.log.apply(this,arguments); 8463} 8464jQuery.spip.test_espace_prive=function(){ 8465if(typeof spipConfig.core.test_espace_prive!=undefined&&spipConfig.core.test_espace_prive){ 8466return true; 8467} 8468return false; 8469} 8470if(!jQuery.spip.load_handlers){ 8471jQuery.spip.load_handlers=new Array(); 8472function onAjaxLoad(f){ 8473jQuery.spip.load_handlers.push(f); 8474}; 8475jQuery.spip.triggerAjaxLoad=function(root){ 8476jQuery.spip.log('triggerAjaxLoad'); 8477jQuery.spip.log(root); 8478for(var i=0;i<jQuery.spip.load_handlers.length;i++) 8479jQuery.spip.load_handlers[i].apply(root); 8480}; 8481jQuery.spip.intercepted={}; 8482jQuery.spip.intercepted.load=jQuery.fn.load; 8483jQuery.fn.load=function(url,params,callback){ 8484if(typeof url!=="string"){ 8485return jQuery.spip.intercepted.load.apply(this,arguments); 8486} 8487callback=callback||function(){}; 8488if(params){ 8489if(params.constructor==Function){ 8490callback=params; 8491params=null; 8492} 8493} 8494params=jQuery.extend(params,{triggerAjaxLoad:false}); 8495var callback2=function(){jQuery.spip.log('jQuery.load');jQuery.spip.triggerAjaxLoad(this);callback.apply(this,arguments);}; 8496return jQuery.spip.intercepted.load.apply(this,[url,params,callback2]); 8497}; 8498jQuery.spip.intercepted.ajaxSubmit=jQuery.fn.ajaxSubmit; 8499jQuery.fn.ajaxSubmit=function(options){ 8500options=options||{}; 8501if(typeof options.onAjaxLoad=="undefined"||options.onAjaxLoad!=false){ 8502var me=jQuery(this).parents('div.ajax'); 8503if(me.length) 8504me=me.parent(); 8505else 8506me=document; 8507if(typeof options=='function') 8508options={success:options}; 8509var callback=options.success||function(){}; 8510options.success=function(){callback.apply(this,arguments);jQuery.spip.log('jQuery.ajaxSubmit');jQuery.spip.triggerAjaxLoad(me);} 8511} 8512return jQuery.spip.intercepted.ajaxSubmit.apply(this,[options]); 8513} 8514jQuery.spip.intercepted.ajax=jQuery.ajax; 8515jQuery.ajax=function(url,settings){ 8516if(typeof settings=='undefined'){ 8517settings={}; 8518if(typeof url=='object'){ 8519settings=url; 8520url=null; 8521} 8522} 8523if(typeof url=='string'){ 8524settings['url']=url; 8525} 8526if(settings.data&&settings.data['triggerAjaxLoad']===false){ 8527settings.data['triggerAjaxLoad']=null; 8528return jQuery.spip.intercepted.ajax(settings); 8529} 8530var s=jQuery.extend(true,{},jQuery.ajaxSettings,settings); 8531var callbackContext=s.context||s; 8532try{ 8533if(jQuery.ajax.caller==jQuery.spip.intercepted.load||jQuery.ajax.caller==jQuery.spip.intercepted.ajaxSubmit) 8534return jQuery.spip.intercepted.ajax(settings); 8535} 8536catch(err){} 8537var orig_complete=s.complete||function(){}; 8538settings.complete=function(res,status){
8539var dataType=settings.dataType; 8540var ct=(res&&(typeof res.getResponseHeader=='function')) 8541?res.getResponseHeader("content-type"):''; 8542var xml=!dataType&&ct&&ct.indexOf("xml")>=0; 8543orig_complete.call(callbackContext,res,status); 8544if((!dataType&&!xml)||dataType=="html"){ 8545jQuery.spip.log('jQuery.ajax'); 8546if(typeof s.onAjaxLoad=="undefined"||s.onAjaxLoad!=false) 8547jQuery.spip.triggerAjaxLoad(s.ajaxTarget?s.ajaxTarget:document); 8548} 8549}; 8550return jQuery.spip.intercepted.ajax(settings); 8551}; 8552} 8553jQuery.uaMatch=function(ua){ 8554ua=ua.toLowerCase(); 8555var match=/(chrome)[ \/]([\w.]+)/.exec(ua)||/(webkit)[ \/]([\w.]+)/.exec(ua)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ua)||/(msie) ([\w.]+)/.exec(ua)|| 8556ua.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua)|| 8557[]; 8558return{ 8559browser:match[1]||"", 8560version:match[2]||"0" 8561}; 8562}; 8563if(!jQuery.browser){ 8564matched=jQuery.uaMatch(navigator.userAgent); 8565browser={}; 8566if(matched.browser){ 8567browser[matched.browser]=true; 8568browser.version=matched.version; 8569} 8570if(browser.chrome){ 8571browser.webkit=true; 8572}else if(browser.webkit){ 8573browser.safari=true; 8574} 8575jQuery.browser=browser; 8576} 8577jQuery.getScript=function(url,callback){ 8578return $.ajax({ 8579url:url, 8580dataType:"script", 8581success:callback, 8582cache:true 8583}); 8584} 8585jQuery.fn.positionner=function(force,setfocus){ 8586if(!this.length){ 8587return this; 8588} 8589var offset=jQuery(this).offset(); 8590var hauteur=parseInt(jQuery(this).css('height')); 8591var marge=jQuery.spip.positionner_marge||5; 8592var scrolltop=self['pageYOffset']|| 8593jQuery.boxModel&&document.documentElement['scrollTop']|| 8594document.body['scrollTop']; 8595var h=jQuery(window).height(); 8596var scroll=0; 8597if(force||(offset&&offset['top']-marge<=scrolltop)){ 8598scroll=offset['top']-marge; 8599} 8600else if(offset&&offset['top']+hauteur-h+marge>scrolltop){ 8601scroll=Math.min(offset['top']-marge-15,offset['top']+hauteur-h+40); 8602} 8603if(scroll) 8604jQuery('html,body') 8605.animate({scrollTop:scroll},300); 8606if(setfocus!==false) 8607jQuery(jQuery('*',this).filter('input[type=text],textarea')[0]).focus(); 8608return this; 8609} 8610jQuery.spip.virtualbuffer_id='spip_virtualbufferupdate'; 8611jQuery.spip.initReaderBuffer=function(){ 8612if(jQuery('#'+jQuery.spip.virtualbuffer_id).length)return; 8613jQuery('body').append('<div style="float:left;width:0;height:0;position:absolute;left:-5000px;top:-5000px;"><input type="hidden" name="'+jQuery.spip.virtualbuffer_id+'" id="'+jQuery.spip.virtualbuffer_id+'" value="0"></div>'); 8614} 8615jQuery.spip.updateReaderBuffer=function(){ 8616var i=jQuery('#'+jQuery.spip.virtualbuffer_id); 8617if(!i.length)return; 8618i.val(parseInt(i.val())+1); 8619} 8620jQuery.fn.formulaire_setContainer=function(){ 8621if(!this.closest('.ajax-form-container').length){ 8622this.find('script').remove(); 8623var aria=this.data('aria'); 8624var $container=jQuery('<div class="ajax-form-container"></div>'); 8625if(aria&&typeof aria==='object'){ 8626for(var i in aria){ 8627$container=$container.attr(i,aria[i]); 8628} 8629} 8630else{ 8631aria=false; 8632} 8633this.wrap($container); 8634if(aria){ 8635jQuery('form',this).not('[aria-live]').attr('aria-live','off'); 8636} 8637} 8638return this; 8639} 8640jQuery.fn.formulaire_dyn_ajax=function(target){ 8641if(this.length) 8642jQuery.spip.initReaderBuffer(); 8643return this.each(function(){ 8644var scrollwhensubmit=!jQuery(this).is('.noscroll'); 8645var cible=target||this; 8646jQuery(cible).formulaire_setContainer(); 8647jQuery('form:not(.noajax):not(.bouton_action_post)',this).each(function(){ 8648var leform=this; 8649var leclk,leclk_x,leclk_y; 8650var onError=function(xhr,status,error,$form){
8651jQuery(leform).ajaxFormUnbind().find('input[name="var_ajax"]').remove(); 8652var msg="Erreur"; 8653if(typeof(error_on_ajaxform)!=="undefined")msg=error_on_ajaxform; 8654jQuery(leform).prepend("<p class='error ajax-error none'>"+msg+"</p>").find('.ajax-error').show('fast'); 8655jQuery(cible).closest('.ajax-form-container').endLoading(true); 8656} 8657jQuery(this).prepend("<input type='hidden' name='var_ajax' value='form'>") 8658.ajaxForm({ 8659beforeSubmit:function(){ 8660leclk=leform.clk; 8661var scrollwhensubmit_button=true; 8662if(leclk){ 8663scrollwhensubmit_button=!jQuery(leclk).is('.noscroll'); 8664var n=leclk.name; 8665if(n&&!leclk.disabled&&leclk.type==="image"){ 8666leclk_x=leform.clk_x; 8667leclk_y=leform.clk_y; 8668} 8669} 8670jQuery(cible).wrap('<div />'); 8671cible=jQuery(cible).parent(); 8672jQuery(cible).closest('.ajax-form-container').animateLoading(); 8673if(scrollwhensubmit&&scrollwhensubmit_button){ 8674jQuery(cible).positionner(false,false); 8675} 8676}, 8677error:onError, 8678success:function(c,status,xhr,$form){ 8679if(c.match(/^\s*noajax\s*$/)){ 8680jQuery("input[name=var_ajax]",leform).remove(); 8681if(leclk){ 8682var n=leclk.name; 8683if(n&&!leclk.disabled){ 8684jQuery(leform).prepend("<input type='hidden' name='"+n+"' value='"+leclk.value+"'>"); 8685if(leclk.type==="image"){ 8686jQuery(leform).prepend("<input type='hidden' name='"+n+".x' value='"+leform.clk_x+"'>"); 8687jQuery(leform).prepend("<input type='hidden' name='"+n+".y' value='"+leform.clk_y+"'>"); 8688} 8689} 8690}
8691jQuery(leform).ajaxFormUnbind().closest('.formulaire_spip').addClass('resubmit-noajax'); 8692try{ 8693leform.submit(); 8694}catch(err){ 8695var submitFn=document.createElement('form').submit; 8696submitFn.apply(leform); 8697} 8698} 8699else{ 8700if(!c.length||c.indexOf("ajax-form-is-ok")==-1) 8701return onError.apply(this,[status,xhr,$form]); 8702var preloaded=jQuery.spip.preloaded_urls; 8703jQuery.spip.preloaded_urls={}; 8704jQuery(cible).html(c); 8705var a=jQuery('a:first',cible).eq(0); 8706var d=jQuery('div.ajax',cible); 8707if(!d.length){ 8708jQuery(cible).addClass('ajax'); 8709if(!scrollwhensubmit) 8710jQuery(cible).addClass('noscroll'); 8711} 8712else{ 8713d.siblings('br.bugajaxie').remove(); 8714cible=jQuery(":first",cible); 8715cible.unwrap(); 8716} 8717if(a.length 8718&&a.is('a[name=ajax_ancre]') 8719&&jQuery(a.attr('href'),cible).length){ 8720a=a.attr('href'); 8721if(jQuery(a,cible).length) 8722setTimeout(function(){ 8723jQuery(a,cible).positionner(false); 8724},10); 8725jQuery(cible).closest('.ajax-form-container').endLoading(true); 8726} 8727else{ 8728if(a.length&&a.is('a[name=ajax_redirect]')){ 8729a=a.get(0).href; 8730setTimeout(function(){ 8731var cur=window.location.href.split('#'); 8732document.location.replace(a); 8733if(cur[0]==a.split('#')[0]){ 8734window.location.reload(); 8735} 8736},10); 8737jQuery(cible).closest('.ajax-form-container').animateLoading(); 8738} 8739else{ 8740jQuery(cible).closest('.ajax-form-container').endLoading(true); 8741} 8742} 8743if(!jQuery('.reponse_formulaire_ok',cible).length) 8744jQuery.spip.preloaded_urls=preloaded; 8745jQuery.spip.updateReaderBuffer(); 8746} 8747} 8748}) 8749.addClass('noajax hasajax'); 8750}); 8751}); 8752} 8753jQuery.fn.formulaire_verifier=function(callback,champ){ 8754var erreurs={'message_erreur':'form non ajax'}; 8755var me=this; 8756if(jQuery(me).closest('.ajax-form-container').attr('aria-busy')!='true'){ 8757if(jQuery(me).is('form.hasajax')){ 8758jQuery(me).ajaxSubmit({ 8759dataType:"json", 8760data:{formulaire_action_verifier_json:true}, 8761success:function(errs){ 8762var args=[errs,champ] 8763if(jQuery(me).closest('.ajax-form-container').attr('aria-busy')!='true') 8764callback.apply(me,args); 8765} 8766}); 8767} 8768else 8769callback.apply(me,[erreurs,champ]); 8770} 8771return this; 8772} 8773jQuery.fn.formulaire_activer_verif_auto=function(callback){ 8774callback=callback||formulaire_actualiser_erreurs; 8775var me=jQuery(this).closest('.ajax-form-container'); 8776var check=function(){ 8777var name=jQuery(this).attr('name'); 8778setTimeout(function(){me.find('form').formulaire_verifier(callback,name);},50); 8779} 8780var activer=function(){ 8781if(me.find('form').attr('data-verifjson')!='on'){ 8782me 8783.find('form') 8784.attr('data-verifjson','on') 8785.find('input,select,textarea') 8786.on('change',check); 8787} 8788} 8789jQuery(activer); 8790onAjaxLoad(function(){setTimeout(activer,150);}); 8791} 8792function formulaire_actualiser_erreurs(erreurs){ 8793var parent=jQuery(this).closest('.formulaire_spip'); 8794if(!parent.length)return; 8795parent.find('.reponse_formulaire,.erreur_message').fadeOut().remove(); 8796parent.find('.erreur').removeClass('erreur'); 8797if(erreurs['message_ok']) 8798parent.find('form').before('<p class="reponse_formulaire reponse_formulaire_ok">'+erreurs['message_ok']+'</p>'); 8799if(erreurs['message_erreur']) 8800parent.find('form').before('<p class="reponse_formulaire reponse_formulaire_erreur">'+erreurs['message_erreur']+'</p>'); 8801for(var k in erreurs){ 8802var saisie=parent.find('.editer_'+k); 8803if(saisie.length){ 8804saisie.addClass('erreur'); 8805saisie.find('label').after('<span class="erreur_message">'+erreurs[k]+'</span>'); 8806} 8807} 8808} 8809var ajax_confirm=true; 8810var ajax_confirm_date=0; 8811var spip_confirm=window.confirm; 8812function _confirm(message){ 8813ajax_confirm=spip_confirm(message); 8814if(!ajax_confirm){ 8815var d=new Date(); 8816ajax_confirm_date=d.getTime(); 8817} 8818return ajax_confirm; 8819} 8820window.confirm=_confirm; 8821var ajaxbloc_selecteur; 8822jQuery.spip.preloaded_urls={}; 8823jQuery.spip.on_ajax_loaded=function(blocfrag,c,href,history){ 8824history=history||(history==null); 8825if(typeof href==undefined||href==null) 8826history=false; 8827if(history) 8828jQuery.spip.setHistoryState(blocfrag); 8829if(jQuery(blocfrag).attr('data-loaded-callback')){ 8830var callback=eval(jQuery(blocfrag).attr('data-loaded-callback')); 8831callback.call(blocfrag,c,href,history); 8832} 8833else{ 8834jQuery(blocfrag) 8835.html(c) 8836.endLoading(); 8837} 8838if(typeof href!=undefined) 8839jQuery(blocfrag).attr('data-url',href); 8840if(history){ 8841var href_history=href; 8842if(href_history.indexOf('var_nullify')!==-1){ 8843href_history=parametre_url(href_history,'var_nullify',''); 8844} 8845jQuery.spip.pushHistoryState(href_history); 8846jQuery.spip.setHistoryState(blocfrag); 8847} 8848var a=jQuery('a:first',jQuery(blocfrag)).eq(0); 8849if(a.length 8850&&a.is('a[name=ajax_ancre]') 8851&&jQuery(a.attr('href'),blocfrag).length){ 8852a=a.attr('href'); 8853jQuery(a,blocfrag).positionner(false); 8854} 8855jQuery.spip.log('on_ajax_loaded'); 8856jQuery.spip.triggerAjaxLoad(blocfrag); 8857a=jQuery(blocfrag).parents('form.hasajax') 8858if(a.length) 8859a.eq(0).removeClass('noajax').parents('div.ajax').formulaire_dyn_ajax(); 8860jQuery.spip.updateReaderBuffer(); 8861} 8862jQuery.spip.on_ajax_failed=function(blocfrag,statusCode,href,history){ 8863jQuery(blocfrag).addClass('invalid'); 8864jQuery.spip.log("Echec AJAX statusCode "+statusCode) 8865history=history||(history==null); 8866if(history){ 8867if(jQuery.spip.debug){ 8868jQuery.spip.log("On redirige sur sur "+href) 8869} 8870else{ 8871window.location.href=href; 8872} 8873} 8874} 8875jQuery.spip.stateId=0; 8876jQuery.spip.setHistoryState=function(blocfrag){ 8877if(!window.history.replaceState)return; 8878if(!blocfrag.attr('id')){ 8879while(jQuery('#ghsid'+jQuery.spip.stateId).length) 8880jQuery.spip.stateId++; 8881blocfrag.attr('id','ghsid'+jQuery.spip.stateId); 8882} 8883var href=blocfrag.attr('data-url')||blocfrag.attr('data-origin'); 8884href=jQuery("<"+"a href='"+href+"'></a>").get(0).href; 8885var state={ 8886id:blocfrag.attr('id'), 8887href:href 8888}; 8889var ajaxid=blocfrag.attr('class').match(/\bajax-id-[\w-]+\b/); 8890if(ajaxid&&ajaxid.length) 8891state["ajaxid"]=ajaxid[0]; 8892window.history.replaceState(state,window.document.title,window.document.location); 8893} 8894jQuery.spip.pushHistoryState=function(href,title){ 8895if(!window.history.pushState) 8896return false;
8897window.history.pushState({},title,href); 8898} 8899window.onpopstate=function(popState){ 8900if(popState.state&&popState.state.href){ 8901var blocfrag=false; 8902if(popState.state.id){ 8903blocfrag=jQuery('#'+popState.state.id); 8904} 8905if((!blocfrag||!blocfrag.length)&&popState.state.ajaxid){ 8906blocfrag=jQuery('.ajaxbloc.'+popState.state.ajaxid); 8907} 8908if(blocfrag&&blocfrag.length==1){ 8909jQuery.spip.ajaxClick(blocfrag,popState.state.href,{history:false}); 8910return true; 8911} 8912else{ 8913window.location.href=popState.state.href; 8914} 8915} 8916} 8917jQuery.spip.loadAjax=function(blocfrag,url,href,options){ 8918var force=options.force||false; 8919if(jQuery(blocfrag).attr('data-loading-callback')){ 8920var callback=eval(jQuery(blocfrag).attr('data-loading-callback')); 8921callback.call(blocfrag,url,href,options); 8922} 8923else{ 8924jQuery(blocfrag).animateLoading(); 8925} 8926if(jQuery.spip.preloaded_urls[url]&&!force){ 8927if(jQuery.spip.preloaded_urls[url]=="<!--loading-->"){ 8928setTimeout(function(){jQuery.spip.loadAjax(blocfrag,url,href,options);},100); 8929return; 8930} 8931jQuery.spip.on_ajax_loaded(blocfrag,jQuery.spip.preloaded_urls[url],href,options.history); 8932}else{ 8933var d=new Date(); 8934jQuery.spip.preloaded_urls[url]="<!--loading-->"; 8935jQuery.ajax({ 8936url:parametre_url(url,'var_t',d.getTime()), 8937onAjaxLoad:false, 8938success:function(c){ 8939jQuery.spip.on_ajax_loaded(blocfrag,c,href,options.history); 8940jQuery.spip.preloaded_urls[url]=c; 8941if(options.callback&&typeof options.callback=="function") 8942options.callback.apply(blocfrag); 8943}, 8944error:function(e){ 8945jQuery.spip.preloaded_urls[url]=''; 8946jQuery.spip.on_ajax_failed(blocfrag,e.status,href,options.history); 8947} 8948}); 8949} 8950} 8951jQuery.spip.makeAjaxUrl=function(href,ajax_env,origin){ 8952var url=href.split('#'); 8953url[0]=parametre_url(url[0],'var_ajax',1); 8954url[0]=parametre_url(url[0],'var_ajax_env',ajax_env); 8955if(origin){ 8956if(origin.indexOf('var_nullify')!==-1){ 8957origin=parametre_url(origin,'var_nullify',''); 8958} 8959var p=origin.indexOf('?'); 8960var nullify=[]; 8961if(p!==-1){ 8962var args=origin.substring(p+1).split('&'); 8963var val; 8964var arg; 8965for(var n=0;n<args.length;n++){ 8966arg=args[n].split('='); 8967arg=decodeURIComponent(arg[0]); 8968p=arg.indexOf('['); 8969if(p!==-1) 8970arg=arg.substring(0,p); 8971val=parametre_url(href,arg); 8972if((typeof val=="undefined"||val==null)&&nullify.indexOf(arg)===-1){ 8973nullify.push(arg); 8974} 8975} 8976if(nullify.length){ 8977url[0]=url[0]+'&'+'var_nullify='+encodeURIComponent(nullify.join('|')); 8978} 8979} 8980} 8981if(url[1]) 8982url[0]=parametre_url(url[0],'var_ajax_ancre',url[1]); 8983return url[0]; 8984} 8985jQuery.spip.ajaxReload=function(blocfrag,options){ 8986var ajax_env=blocfrag.attr('data-ajax-env'); 8987if(!ajax_env||ajax_env==undefined)return; 8988var href=options.href||blocfrag.attr('data-url')||blocfrag.attr('data-origin'); 8989if(href&&typeof href!=undefined){ 8990if(href.indexOf('var_nullify')!==-1){ 8991href=parametre_url(href,'var_nullify',''); 8992} 8993options=options||{}; 8994var callback=options.callback||null; 8995var history=options.history||false; 8996var args=options.args||{}; 8997for(var key in args){ 8998href=parametre_url(href,key,args[key]==undefined?'':args[key],'&',args[key]==undefined?false:true); 8999} 9000var url=jQuery.spip.makeAjaxUrl(href,ajax_env,blocfrag.attr('data-origin')); 9001jQuery.spip.loadAjax(blocfrag,url,href,{force:true,callback:callback,history:history}); 9002return true; 9003} 9004} 9005jQuery.spip.ajaxClick=function(blocfrag,href,options){ 9006var ajax_env=blocfrag.attr('data-ajax-env'); 9007if(!ajax_env||ajax_env==undefined)return; 9008if(!ajax_confirm){ 9009ajax_confirm=true; 9010var d=new Date(); 9011if((d.getTime()-ajax_confirm_date)<=2) 9012return false; 9013} 9014var url=jQuery.spip.makeAjaxUrl(href,ajax_env,blocfrag.attr('data-origin')); 9015jQuery.spip.loadAjax(blocfrag,url,href,options); 9016return false; 9017} 9018jQuery.fn.ajaxbloc=function(){ 9019if(this.length) 9020jQuery.spip.initReaderBuffer(); 9021if(ajaxbloc_selecteur==undefined) 9022ajaxbloc_selecteur='.pagination a,a.ajax'; 9023return this.each(function(){ 9024jQuery('div.ajaxbloc',this).ajaxbloc(); 9025var blocfrag=jQuery(this); 9026var ajax_env=blocfrag.attr('data-ajax-env'); 9027if(!ajax_env||ajax_env==undefined)return; 9028blocfrag.not('.bind-ajaxReload').on('ajaxReload',function(event,options){ 9029if(jQuery.spip.ajaxReload(blocfrag,options)) 9030event.stopPropagation(); 9031}).addClass('bind-ajaxReload'); 9032jQuery(ajaxbloc_selecteur,this).not('.noajax,.bind-ajax') 9033.click(function(){return jQuery.spip.ajaxClick(blocfrag,this.href,{force:jQuery(this).is('.nocache'),history:!(jQuery(this).is('.nohistory')||jQuery(this).closest('.box_modalbox').length)});}) 9034.addClass('bind-ajax') 9035.filter('.preload').each(function(){ 9036var href=this.href; 9037var url=jQuery.spip.makeAjaxUrl(href,ajax_env,blocfrag.attr('data-origin')); 9038if(!jQuery.spip.preloaded_urls[url]){ 9039jQuery.spip.preloaded_urls[url]='<!--loading-->'; 9040jQuery.ajax({url:url,onAjaxLoad:false,success:function(r){jQuery.spip.preloaded_urls[url]=r;},error:function(){jQuery.spip.preloaded_urls[url]='';}}); 9041} 9042}); 9043jQuery('form.bouton_action_post.ajax',this).not('.noajax,.bind-ajax').each(function(){ 9044var leform=this; 9045var url=jQuery(this).attr('action').split('#'); 9046var scrollwhensubmit=(!jQuery(this).is('.noscroll')&&!jQuery('.submit',this).is('.noscroll')); 9047jQuery(this) 9048.prepend("<input type='hidden' name='var_ajax' value='1'><input type='hidden' name='var_ajax_env' value='"+(ajax_env)+"'>"+(url[1]?"<input type='hidden' name='var_ajax_ancre' value='"+url[1]+"'>":"")) 9049.ajaxForm({ 9050beforeSubmit:function(){ 9051jQuery(blocfrag).animateLoading(); 9052if(scrollwhensubmit){ 9053jQuery(blocfrag).positionner(false); 9054} 9055}, 9056onAjaxLoad:false, 9057success:function(c){ 9058jQuery.spip.on_ajax_loaded(blocfrag,c); 9059jQuery.spip.preloaded_urls={}; 9060}, 9061error:function(e){ 9062jQuery.spip.preloaded_urls={}; 9063var href=parametre_url(url,'redirect'); 9064if(!href){ 9065href=window.location.href; 9066} 9067jQuery.spip.on_ajax_failed(blocfrag,e.status,href,e.status===400); 9068} 9069}) 9070.addClass('bind-ajax'); 9071}); 9072}); 9073}; 9074jQuery.fn.followLink=function(){ 9075$(this).click(); 9076if(!$(this).is('.bind-ajax')) 9077window.location.href=$(this).get(0).href; 9078return this; 9079} 9080function ajaxReload(ajaxid,options){ 9081jQuery('div.ajaxbloc.ajax-id-'+ajaxid).ajaxReload(options); 9082} 9083jQuery.fn.ajaxReload=function(options){ 9084options=options||{};
9085jQuery(this).trigger('ajaxReload',[options]); 9086return this; 9087} 9088jQuery.fn.animateLoading=function(){ 9089this.attr('aria-busy','true').addClass('loading').children().css('opacity',0.5); 9090if(typeof ajax_image_searching!='undefined'){ 9091var i=(this).find('.image_loading'); 9092if(i.length)i.eq(0).html(ajax_image_searching); 9093else this.prepend('<span class="image_loading">'+ajax_image_searching+'</span>'); 9094} 9095return this; 9096} 9097jQuery.fn.animeajax=jQuery.fn.animateLoading; 9098jQuery.fn.endLoading=function(hard){ 9099hard=hard||false; 9100this.attr('aria-busy','false').removeClass('loading'); 9101if(hard){ 9102this.children().css('opacity',''); 9103this.find('.image_loading').html(''); 9104} 9105return this; 9106} 9107jQuery.fn.animateRemove=function(callback){ 9108if(this.length){ 9109var me=this; 9110var color=$("<div class='remove'></div>").css('background-color'); 9111var sel=$(this); 9112if(sel.is('tr')) 9113sel=sel.add('>td',sel); 9114sel.addClass('remove').css({backgroundColor:color}).animate({opacity:"0.0"},'fast',function(){ 9115sel.removeClass('remove').css({backgroundColor:''}); 9116if(callback) 9117callback.apply(me); 9118}); 9119} 9120return this; 9121} 9122jQuery.fn.animateAppend=function(callback){ 9123if(this.length){ 9124var me=this; 9125var color=$("<div class='append'></div>").css('background-color'); 9126var origin=$(this).css('background-color')||'#ffffff'; 9127if(origin=='transparent')origin='#ffffff'; 9128var sel=$(this); 9129if(sel.is('tr')) 9130sel=sel.add('>td',sel); 9131sel.css('opacity','0.0').addClass('append').css({backgroundColor:color}).animate({opacity:"1.0"},1000,function(){ 9132sel.animate({backgroundColor:origin},3000,function(){ 9133sel.removeClass('append').css({backgroundColor:''}); 9134if(callback) 9135callback.apply(me); 9136}); 9137}); 9138} 9139return this; 9140} 9141function parametre_url(url,c,v,sep,force_vide){ 9142if(typeof(url)=='undefined'){ 9143url=''; 9144} 9145var p; 9146var ancre=''; 9147var a='./'; 9148var args=[]; 9149p=url.indexOf('#'); 9150if(p!=-1){ 9151ancre=url.substring(p); 9152url=url.substring(0,p); 9153} 9154p=url.indexOf('?'); 9155if(p!==-1){ 9156if(p>0)a=url.substring(0,p); 9157args=url.substring(p+1).split('&'); 9158} 9159else 9160a=url; 9161var regexp=new RegExp('^('+c.replace('[]','\\[\\]')+'\\[?\\]?)(=.*)?$'); 9162var ajouts=[]; 9163var u=(typeof(v)!=='object')?encodeURIComponent(v):v; 9164var na=[]; 9165var v_read=null; 9166for(var n=0;n<args.length;n++){ 9167var val=args[n]; 9168try{ 9169val=decodeURIComponent(val); 9170}catch(e){} 9171var r=val.match(regexp); 9172if(r&&r.length){ 9173if(v==null){ 9174if(r[1].substr(-2)=='[]'){ 9175if(!v_read)v_read=[]; 9176v_read.push((r.length>2&&typeof r[2]!=='undefined')?r[2].substring(1):''); 9177} 9178else{ 9179return(r.length>2&&typeof r[2]!=='undefined')?r[2].substring(1):''; 9180} 9181} 9182else if(!v.length){ 9183} 9184else if(r[1].substr(-2)!='[]'){ 9185na.push(r[1]+'='+u); 9186ajouts.push(r[1]); 9187} 9188} 9189else 9190na.push(args[n]); 9191} 9192if(v==null)return v_read; 9193if(v||v.length||force_vide){ 9194ajouts="="+ajouts.join("=")+"="; 9195var all=c.split('|'); 9196for(n=0;n<all.length;n++){ 9197if(ajouts.search("="+all[n]+"=")==-1){ 9198if(typeof(v)!=='object'){ 9199na.push(all[n]+'='+u); 9200} 9201else{ 9202var id=((all[n].substring(-2)=='[]')?all[n]:all[n]+"[]"); 9203for(p=0;p<v.length;p++) 9204na.push(id+'='+encodeURIComponent(v[p])); 9205} 9206} 9207} 9208} 9209if(na.length){ 9210if(!sep)sep='&'; 9211a=a+"?"+na.join(sep); 9212} 9213return a+ancre; 9214} 9215function spip_logo_survol_hover(){ 9216var me=jQuery(this); 9217if(me.attr('data-src-hover')){ 9218me.attr('data-src-original',me.attr('src')); 9219me.attr('src',me.attr('data-src-hover')); 9220} 9221} 9222function spip_logo_survol_out(){ 9223var me=jQuery(this); 9224if(me.attr('data-src-original')){ 9225me.attr('src',me.attr('data-src-original')); 9226} 9227} 9228function disableClickAfterFormSubmit(){ 9229if(jQuery(this).is('.processing-submitted-form')){ 9230return false; 9231} 9232jQuery(this) 9233.addClass('processing-submitted-form') 9234.find('button[type="submit"]') 9235.attr('disabled','disabled') 9236.addClass('disabled') 9237} 9238function puce_enable_survol(){ 9239jQuery('span.puce_objet_popup a',this).not('.puce-survol-enabled').click(function(){ 9240selec_statut(jQuery(this).attr('data-puce-id'),jQuery(this).attr('data-puce-type'),jQuery(this).attr('data-puce-decal'),jQuery('img',this).attr('src'),jQuery(this).attr('data-puce-action')); 9241return false; 9242}).addClass('puce-survol-enabled'); 9243jQuery('span.puce_objet',this).not('.puce-survol-enabled').mouseover(function(){ 9244if(!this.puce_loaded){ 9245this.puce_loaded=true;prepare_selec_statut(this,jQuery(this).attr('data-puce-nom'),jQuery(this).attr('data-puce-type'),jQuery(this).attr('data-puce-id'),jQuery(this).attr('data-puce-action')); 9246} 9247}).addClass('puce-survol-enabled'); 9248} 9249if(!window.var_zajax_content) 9250window.var_zajax_content='contenu'; 9251jQuery(function(){ 9252jQuery('form:not(.bouton_action_post)').parents('div.ajax') 9253.formulaire_dyn_ajax();
9254jQuery('div.ajaxbloc').ajaxbloc(); 9255jQuery("input[placeholder]:text").placeholderLabel(); 9256jQuery('.spip_logo_survol').hover(spip_logo_survol_hover,spip_logo_survol_out); 9257puce_enable_survol.apply(this); 9258jQuery('body').on('submit','form.bouton_action_post',disableClickAfterFormSubmit); 9259}); 9260onAjaxLoad(function(){ 9261if(jQuery){ 9262jQuery('form:not(.bouton_action_post)',this).parents('div.ajax') 9263.formulaire_dyn_ajax(); 9264if(jQuery(this).is('div.ajaxbloc')) 9265jQuery(this).ajaxbloc(); 9266else if(jQuery(this).closest('div.ajaxbloc').length) 9267jQuery(this).closest('div.ajaxbloc').ajaxbloc(); 9268else 9269jQuery('div.ajaxbloc',this).ajaxbloc(); 9270jQuery("input[placeholder]:text",this).placeholderLabel(); 9271jQuery('.spip_logo_survol',this).hover(spip_logo_survol_hover,spip_logo_survol_out); 9272puce_enable_survol.apply(this); 9273} 9274}); 9275 9276 9277/* prive/javascript/js.cookie.js?1790327464 */ 9278 9279; 9280(function(global,factory){ 9281typeof exports==='object'&&typeof module!=='undefined'?module.exports=factory(): 9282typeof define==='function'&&define.amd?define(factory): 9283(global=typeof globalThis!=='undefined'?globalThis:global||self,(function(){ 9284var current=global.Cookies; 9285var exports=global.Cookies=factory(); 9286exports.noConflict=function(){global.Cookies=current;return exports;}; 9287})()); 9288})(this,(function(){'use strict'; 9289function assign(target){ 9290for(var i=1;i<arguments.length;i++){ 9291var source=arguments[i]; 9292for(var key in source){ 9293target[key]=source[key]; 9294} 9295} 9296return target 9297} 9298var defaultConverter={ 9299read:function(value){ 9300if(value[0]==='"'){ 9301value=value.slice(1,-1); 9302} 9303return value.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent) 9304}, 9305write:function(value){ 9306return encodeURIComponent(value).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g, 9307decodeURIComponent 9308) 9309} 9310}; 9311function init(converter,defaultAttributes){ 9312function set(name,value,attributes){ 9313if(typeof document==='undefined'){ 9314return 9315} 9316attributes=assign({},defaultAttributes,attributes); 9317if(typeof attributes.expires==='number'){ 9318attributes.expires=new Date(Date.now()+attributes.expires*864e5); 9319} 9320if(attributes.expires){ 9321attributes.expires=attributes.expires.toUTCString(); 9322} 9323name=encodeURIComponent(name) 9324.replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent) 9325.replace(/[()]/g,escape); 9326var stringifiedAttributes=''; 9327for(var attributeName in attributes){ 9328if(!attributes[attributeName]){ 9329continue 9330} 9331stringifiedAttributes+='; '+attributeName; 9332if(attributes[attributeName]===true){ 9333continue 9334} 9335stringifiedAttributes+='='+attributes[attributeName].split(';')[0]; 9336} 9337return(document.cookie= 9338name+'='+converter.write(value,name)+stringifiedAttributes) 9339} 9340function get(name){ 9341if(typeof document==='undefined'||(arguments.length&&!name)){ 9342return 9343} 9344var cookies=document.cookie?document.cookie.split('; '):[]; 9345var jar={}; 9346for(var i=0;i<cookies.length;i++){ 9347var parts=cookies[i].split('='); 9348var value=parts.slice(1).join('='); 9349try{ 9350var found=decodeURIComponent(parts[0]); 9351jar[found]=converter.read(value,found); 9352if(name===found){ 9353break 9354} 9355}catch(e){} 9356} 9357return name?jar[name]:jar 9358} 9359return Object.create( 9360{ 9361set, 9362get, 9363remove:function(name,attributes){ 9364set( 9365name, 9366'', 9367assign({},attributes,{ 9368expires:-1 9369}) 9370); 9371}, 9372withAttributes:function(attributes){ 9373return init(this.converter,assign({},this.attributes,attributes)) 9374}, 9375withConverter:function(converter){ 9376return init(assign({},this.converter,converter),this.attributes) 9377} 9378}, 9379{ 9380attributes:{value:Object.freeze(defaultAttributes)}, 9381converter:{value:Object.freeze(converter)} 9382} 9383) 9384} 9385var api=init(defaultConverter,{path:'/'}); 9386return api; 9387})); 9388 9389 9390/* plugins-dist/mediabox/lib/lity/lity.js?1790327464 */ 9391 9392(function(window,factory){ 9393if(typeof define==='function'&&define.amd){ 9394define(['jquery'],function($){ 9395return factory(window,$); 9396}); 9397}else if(typeof module==='object'&&typeof module.exports==='object'){ 9398module.exports=factory(window,require('jquery')); 9399}else{ 9400window.lity=factory(window,window.jQuery||window.Zepto); 9401} 9402}(typeof window!=="undefined"?window:this,function(window,$){ 9403'use strict'; 9404var document=window.document; 9405var _win=$(window); 9406var _deferred=$.Deferred; 9407var _html=$('html'); 9408var _instances=[]; 9409var _attrAriaHidden='aria-hidden'; 9410var _dataAriaHidden='lity-'+_attrAriaHidden; 9411var _focusableElementsSelector='a[href],area[href],input:not([disabled]),select:not([disabled]),textarea:not([disabled]),button:not([disabled]),iframe,object,embed,[contenteditable],[tabindex]:not
9411([tabindex^="-"])'; 9412var _defaultOptions={ 9413esc:true, 9414handler:null, 9415handlers:{ 9416image:imageHandler, 9417inline:inlineHandler, 9418iframe:iframeHandler 9419}, 9420forceFocusInside:false, 9421template:'<div class="lity" role="dialog" aria-label="Dialog Window (Press escape to close)" tabindex="-1"><div class="lity-wrap" data-lity-close role="document"><div class="lity-loader" aria-hidden="true">Loading...</div><div class="lity-container"><div class="lity-content"></div><button class="lity-close" type="button" aria-label="Close (Press escape to close)" data-lity-close>×</button></div></div></div>' 9422}; 9423var _imageRegexp=/(^data:image\/)|(\.(png|jpe?g|gif|svg|webp|bmp|ico|tiff?)(\?\S*)?$)/i; 9424var _transitionEndEvent=(function(){ 9425var el=document.createElement('div'); 9426var transEndEventNames={ 9427WebkitTransition:'webkitTransitionEnd', 9428MozTransition:'transitionend', 9429OTransition:'oTransitionEnd otransitionend', 9430transition:'transitionend' 9431}; 9432for(var name in transEndEventNames){ 9433if(el.style[name]!==undefined){ 9434return transEndEventNames[name]; 9435} 9436} 9437return false; 9438})(); 9439function transitionEnd(element){ 9440var deferred=_deferred(); 9441if(!_transitionEndEvent||!element.length){ 9442deferred.resolve(); 9443}else{ 9444element.one(_transitionEndEvent,deferred.resolve); 9445setTimeout(deferred.resolve,500); 9446} 9447return deferred.promise(); 9448} 9449function settings(currSettings,key,value){ 9450if(arguments.length===1){ 9451return $.extend({},currSettings); 9452} 9453if(typeof key==='string'){ 9454if(typeof value==='undefined'){ 9455return typeof currSettings[key]==='undefined' 9456?null 9457:currSettings[key]; 9458} 9459currSettings[key]=value; 9460}else{ 9461$.extend(currSettings,key); 9462} 9463return this; 9464} 9465function parseQueryParams(params){ 9466var pos=params.indexOf('?'); 9467if(pos>-1){ 9468params=params.substr(pos+1); 9469} 9470var pairs=decodeURI(params.split('#')[0]).split('&'); 9471var obj={},p; 9472for(var i=0,n=pairs.length;i<n;i++){ 9473if(!pairs[i]){ 9474continue; 9475} 9476p=pairs[i].split('='); 9477obj[p[0]]=p[1]; 9478} 9479return obj; 9480} 9481function appendQueryParams(url,params){ 9482if(!params){ 9483return url; 9484} 9485if('string'===$.type(params)){ 9486params=parseQueryParams(params); 9487} 9488if(url.indexOf('?')>-1){ 9489var split=url.split('?'); 9490url=split.shift(); 9491params=$.extend( 9492{}, 9493parseQueryParams(split[0]), 9494params 9495) 9496} 9497return url+'?'+$.param(params); 9498} 9499function transferHash(originalUrl,newUrl){ 9500var pos=originalUrl.indexOf('#'); 9501if(-1===pos){ 9502return newUrl; 9503} 9504if(pos>0){ 9505originalUrl=originalUrl.substr(pos); 9506} 9507return newUrl+originalUrl; 9508} 9509function iframe(iframeUrl,instance,queryParams,hashUrl){ 9510instance&&instance.element().addClass('lity-iframe'); 9511if(queryParams){ 9512iframeUrl=appendQueryParams(iframeUrl,queryParams); 9513} 9514if(hashUrl){ 9515iframeUrl=transferHash(hashUrl,iframeUrl); 9516} 9517return'<div class="lity-iframe-container"><iframe frameborder="0" allowfullscreen allow="autoplay; fullscreen" src="'+iframeUrl+'"/></div>'; 9518} 9519function error(msg){ 9520return $('<span class="lity-error"></span>').append(msg); 9521} 9522function imageHandler(target,instance){ 9523var desc=(instance.opener()&&instance.opener().data('lity-desc'))||'Image with no description'; 9524var img=$('<img src="'+target+'" alt="'+desc+'"/>'); 9525var deferred=_deferred(); 9526var failed=function(){ 9527deferred.reject(error('Failed loading image')); 9528}; 9529img 9530.on('load',function(){ 9531if(this.naturalWidth===0){ 9532return failed(); 9533} 9534deferred.resolve(img); 9535}) 9536.on('error',failed) 9537; 9538return deferred.promise(); 9539} 9540imageHandler.test=function(target){ 9541return _imageRegexp.test(target); 9542}; 9543function inlineHandler(target,instance){ 9544var el,placeholder,hasHideClass; 9545try{ 9546el=$(target); 9547}catch(e){ 9548return false; 9549} 9550if(!el.length){ 9551return false; 9552} 9553placeholder=$('<i style="display:none !important"></i>'); 9554hasHideClass=el.hasClass('lity-hide'); 9555instance 9556.element() 9557.one('lity:remove',function(){ 9558placeholder 9559.before(el) 9560.remove() 9561; 9562if(hasHideClass&&!el.closest('.lity-content').length){ 9563el.addClass('lity-hide'); 9564} 9565}) 9566; 9567return el 9568.removeClass('lity-hide') 9569.after(placeholder) 9570; 9571} 9572function iframeHandler(target,instance){ 9573return iframe(target,instance); 9574} 9575function winHeight(){ 9576return document.documentElement.clientHeight 9577?document.documentElement.clientHeight 9578:Math.round(_win.height()); 9579} 9580function keydown(e){ 9581var current=currentInstance(); 9582if(!current){ 9583return; 9584} 9585if(e.keyCode===27&&!!current.options('esc')){ 9586current.close(); 9587} 9588if(e.keyCode===9){ 9589handleTabKey(e,current); 9590} 9591} 9592function handleTabKey(e,instance){ 9593var focusableElements=instance.element().find(_focusableElementsSelector); 9594var focusedIndex=focusableElements.index(document.activeElement); 9595if(e.shiftKey&&focusedIndex<=0){ 9596focusableElements.get(focusableElements.length-1).focus(); 9597e.preventDefault(); 9598}else if(!e.shiftKey&&focusedIndex===focusableElements.length-1){ 9599focusableElements.get(0).focus(); 9600e.preventDefault(); 9601} 9602if(focusedIndex===-1&&instance.options().forceFocusInside){ 9603focusableElements.get(0).focus(); 9604e.preventDefault(); 9605} 9606} 9607function resize(){ 9608$.each(_instances,function(i,instance){ 9609instance.resize(); 9610}); 9611} 9612function registerInstance(instanceToRegister){ 9613if(1===_instances.unshift(instanceToRegister)){ 9614_html.addClass('lity-active'); 9615_win 9616.on({ 9617resize:resize, 9618keydown:keydown 9619}) 9620; 9621} 9622$('body > *').not(instanceToRegister.element()) 9623.addClass('lity-hidden') 9624.each(function(){ 9625var el=$(this); 9626if(undefined!==el.data(_dataAriaHidden)){ 9627return; 9628} 9629el.data(_dataAriaHidden,el.attr(_attrAriaHidden)||null); 9630}) 9631.attr(_attrAriaHidden,'true') 9632; 9633} 9634function removeInstance(instanceToRemove){ 9635var show; 9636instanceToRemove
9637.element() 9638.attr(_attrAriaHidden,'true') 9639; 9640if(1===_instances.length){ 9641_html.removeClass('lity-active'); 9642_win 9643.off({ 9644resize:resize, 9645keydown:keydown 9646}) 9647; 9648} 9649_instances=$.grep(_instances,function(instance){ 9650return instanceToRemove!==instance; 9651}); 9652if(!!_instances.length){ 9653show=_instances[0].element(); 9654}else{ 9655show=$('.lity-hidden'); 9656} 9657show 9658.removeClass('lity-hidden') 9659.each(function(){ 9660var el=$(this),oldAttr=el.data(_dataAriaHidden); 9661if(!oldAttr){ 9662el.removeAttr(_attrAriaHidden); 9663}else{ 9664el.attr(_attrAriaHidden,oldAttr); 9665} 9666el.removeData(_dataAriaHidden); 9667}) 9668; 9669} 9670function currentInstance(){ 9671if(0===_instances.length){ 9672return null; 9673} 9674return _instances[0]; 9675} 9676function factory(target,instance,handlers,preferredHandler){ 9677var handler='inline',content; 9678var currentHandlers=$.extend({},handlers); 9679if(preferredHandler&¤tHandlers[preferredHandler]){ 9680content=currentHandlers[preferredHandler](target,instance); 9681handler=preferredHandler; 9682}else{ 9683$.each(['inline','iframe'],function(i,name){ 9684delete currentHandlers[name]; 9685currentHandlers[name]=handlers[name]; 9686}); 9687$.each(currentHandlers,function(name,currentHandler){ 9688if(!currentHandler){ 9689return true; 9690} 9691if( 9692currentHandler.test&& 9693!currentHandler.test(target,instance) 9694){ 9695return true; 9696} 9697content=currentHandler(target,instance); 9698if(false!==content){ 9699handler=name; 9700return false; 9701} 9702}); 9703} 9704return{handler:handler,content:content||''}; 9705} 9706function Lity(target,options,opener,activeElement){ 9707var self=this; 9708var result; 9709var isReady=false; 9710var isClosed=false; 9711var element; 9712var content; 9713options=$.extend( 9714{}, 9715_defaultOptions, 9716options 9717); 9718element=$(options.template); 9719self.element=function(){ 9720return element; 9721}; 9722self.opener=function(){ 9723return opener; 9724}; 9725self.content=function(){ 9726return content; 9727}; 9728self.options=$.proxy(settings,self,options); 9729self.handlers=$.proxy(settings,self,options.handlers); 9730self.resize=function(){ 9731if(!isReady||isClosed){ 9732return; 9733} 9734content 9735.css('max-height',winHeight()+'px') 9736.trigger('lity:resize',[self]) 9737; 9738}; 9739self.close=function(){ 9740if(isClosed){ 9741return; 9742} 9743isClosed=true; 9744removeInstance(self); 9745var deferred=_deferred(); 9746if( 9747activeElement&& 9748( 9749document.activeElement===element[0]|| 9750$.contains(element[0],document.activeElement) 9751) 9752){ 9753try{ 9754activeElement.focus(); 9755}catch(e){ 9756} 9757} 9758var trigerable=(content?content:element); 9759trigerable.trigger('lity:close',[self]); 9760element 9761.removeClass('lity-opened') 9762.addClass('lity-closed') 9763; 9764transitionEnd(trigerable.add(element)) 9765.always(function(){ 9766trigerable.trigger('lity:remove',[self]); 9767element.remove(); 9768element=undefined; 9769deferred.resolve(); 9770}) 9771; 9772return deferred.promise(); 9773}; 9774result=factory(target,self,options.handlers,options.handler); 9775element 9776.attr(_attrAriaHidden,'false') 9777.addClass('lity-loading lity-opened lity-'+result.handler) 9778.appendTo('body') 9779.focus() 9780.on('click','[data-lity-close]',function(e){ 9781if($(e.target).is('[data-lity-close]')){ 9782self.close(); 9783} 9784}) 9785.trigger('lity:open',[self]) 9786; 9787registerInstance(self); 9788$.when(result.content) 9789.always(ready) 9790; 9791function ready(result){ 9792if(isClosed){ 9793return; 9794} 9795content=$(result) 9796.css('max-height',winHeight()+'px') 9797; 9798element 9799.find('.lity-loader') 9800.each(function(){ 9801var loader=$(this); 9802transitionEnd(loader) 9803.always(function(){ 9804loader.remove(); 9805}) 9806; 9807}) 9808; 9809element 9810.removeClass('lity-loading') 9811.find('.lity-content') 9812.empty() 9813.append(content) 9814; 9815isReady=true; 9816content 9817.trigger('lity:ready',[self]) 9818; 9819} 9820} 9821function lity(target,options,opener){ 9822if(!target.preventDefault){ 9823opener=$(opener); 9824}else{ 9825target.preventDefault(); 9826opener=$(this); 9827target=opener.data('lity-target')||opener.attr('href')||opener.attr('src'); 9828} 9829var instance=new Lity( 9830target, 9831$.extend( 9832{}, 9833opener.data('lity-options')||opener.data('lity'), 9834options 9835), 9836opener, 9837document.activeElement 9838); 9839if(!target.preventDefault){ 9840return instance; 9841} 9842} 9843lity.version='3.0.0-dev'; 9844lity.options=$.proxy(settings,lity,_defaultOptions); 9845lity.handlers=$.proxy(settings,lity,_defaultOptions.handlers); 9846lity.current=currentInstance; 9847lity.iframe=iframe; 9848$(document).on('click.lity','[data-lity]',lity); 9849return lity; 9850})); 9851 9852 9853/* plugins-dist/mediabox/lity/js/lity.mediabox.js?1790327464 */ 9854; 9855(function($){ 9856var litySpip={ 9857nameSpace:'mediabox', 9858config:{ 9859forceFocusInside:true, 9860}, 9861strings:{ 9862}, 9863callbacks:{ 9864onOpen:[], 9865onShow:[], 9866onClose:[] 9867}, 9868focusedItem:[], 9869isTransition:false, 9870adjustHeight:function(instance){ 9871var $content=instance.content(); 9872var $containerHeight=instance.element().find('.lity-container').height(); 9873if($containerHeight){ 9874var h=Math.round($containerHeight)+'px'; 9875$content 9876.css('max-height',h) 9877.find('[data-'+litySpip.nameSpace+'-force-max-height]') 9878.css('max-height',h); 9879} 9880}, 9881template:function(cfg,type,groupName,groupPosition,groupLength){ 9882var className=''; 9883if(!!cfg.className){ 9884className=' '+cfg.className; 9885} 9886if(cfg.transitionOnOpen){ 9887className+=' lity-transition-on-open-'+cfg.transitionOnOpen; 9888} 9889if(!!cfg.noTransition){ 9890className+=' lity-no-transition'; 9891} 9892if(!!cfg.slideShow){ 9893className+=' lity-slideshow'; 9894} 9895var styles=[]; 9896var styles_container=''; 9897var styles_content=''; 9898if(cfg.sideBar){ 9899className+=' lity-sidebar lity-sidebar-'+cfg.sideBar; 9900if(cfg.sideBar==='start'||cfg.sideBar==='end'){ 9901className+=' lity-sidebar-inline'; 9902cfg.height='100vh'; 9903cfg.maxHeight='100vh'; 9904} 9905if(cfg.sideBar==='top'||cfg.sideBar==='bottom'){ 9906className+=' lity-sidebar-block'; 9907cfg.width='100vw'; 9908cfg.maxWidth='100vw'; 9909} 9910} 9911if(cfg.maxWidth){ 9912styles.push("max-width:"+cfg.maxWidth.replace("%","vw")); 9913} 9914if(cfg.maxHeight){ 9915styles.push("max-height:"+cfg.maxHeight.replace("%","vh")); 9916} 9917if(cfg.width){ 9918styles.push("width:"+cfg.width.replace("%","vw")); 9919className+=' lity-width-set'; 9920} 9921if(cfg.height){ 9922styles.push("height:"+cfg.height.replace("%","vh")); 9923className+=' lity-height-set'; 9924if(cfg.minHeight){ 9925styles.push("min-height:"+cfg.minHeight.replace("%","vh")); 9926} 9927} 9928if(styles.length){ 9929styles_container=' style="'+styles.join(';')+'"'; 9930} 9931styles=[]; 9932var max; 9933if(cfg.minWidth){ 9934max=(cfg.maxWidth?cfg.maxWidth.replace("%","vw"):'95vw'); 9935styles.push("min-width:min("+max+","+cfg.minWidth.replace("%","vw")+')'); 9936} 9937if(cfg.minHeight&&!cfg.height){ 9938max=(cfg.maxHeight?cfg.maxHeight.replace("%","vw"):'95vh'); 9939styles.push("min-height:min("+max+","+cfg.minHeight.replace("%","vh")+')'); 9940} 9941if(styles.length){ 9942styles_content=' style="'+styles.join(';')+'"'; 9943} 9944var button_next_prev='',
9945button_start_stop='', 9946group_info_text='', 9947group_info=''; 9948if(groupName&&groupLength){ 9949if(groupLength>1){ 9950var newPosition=(groupPosition<=0?groupLength-1:groupPosition-1); 9951button_next_prev+='<button class="lity-previous" type="button" data-group-name="'+groupName+'" data-group-position="'+newPosition+'" aria-label="'+litySpip.strings.previous+'" data-lity-previous' 9952+'><b title="'+litySpip.strings.previous+'">â®</b></button>'; 9953newPosition=(groupPosition>=groupLength-1?0:groupPosition+1); 9954button_next_prev+='<button class="lity-next" type="button" data-group-name="'+groupName+'" data-group-position="'+newPosition+'" aria-label="'+litySpip.strings.next+'" data-lity-next' 9955+'><b title="'+litySpip.strings.next+'">â¯</b></button>'; 9956} 9957group_info_text=" "+litySpip.strings.current; 9958group_info_text=group_info_text.replace('{current}',(groupPosition+1)+''); 9959group_info_text=group_info_text.replace('{total}',groupLength+''); 9960button_start_stop+='<button class="lity-start-stop" type="button" data-lity-stop-start>' 9961+'<b class="lity-start" aria-label="'+litySpip.strings.slideshowStart+'" title="'+litySpip.strings.slideshowStart+'">â¶</b>' 9962+'<b class="lity-stop" aria-label="'+litySpip.strings.slideshowStop+'" title="'+litySpip.strings.slideshowStop+'">â¡</b>' 9963+'</button>'; 9964group_info='<div class="lity-group-caption">' 9965+'<span class="lity-group-start-stop">'+button_start_stop+'</span>' 9966+'<span class="lity-group-current">'+group_info_text+'</span>' 9967+'<span class="lity-group-next-prev">'+button_next_prev+'</span>' 9968+'<span class="lity-group-progress-bar"><span class="lity-group-progress-bar-status" style="width:0"></span></span>' 9969+'</div>'; 9970} 9971var close_button_aria_label=litySpip.strings.close+' ('+litySpip.strings.press_escape+')'; 9972var dialog_title=(type==='image'?litySpip.strings.dialog_title_med:litySpip.strings.dialog_title_def); 9973dialog_title+=group_info_text+' ('+litySpip.strings.press_escape+')'; 9974var t= 9975'<dialog class="box_mediabox box_modalbox lity'+className+'" role="dialog" aria-label="'+dialog_title+'" tabindex="-1">' 9976+'<div class="lity-wrap"'+(cfg.overlayClose===false?'':' data-lity-close')+' role="document">' 9977+'<div class="lity-loader" aria-hidden="true" aria-label="'+litySpip.strings.loading+'"><span class="box-loading"></span></div>' 9978+'<div class="lity-container"'+styles_container+'>' 9979+'<button class="lity-close" type="button" aria-label="'+close_button_aria_label+'" data-lity-close><b data-lity-close title="'+litySpip.strings.close+'">×</b></button>' 9980+'<div class="lity-content"'+styles_content+'></div>' 9981+group_info 9982+'</div>' 9983+'</div>' 9984+'</dialog>'; 9985return t; 9986}, 9987failHandler:function(target,instance){ 9988return'<div class="error lity-error">Failed loading content</div>'; 9989}, 9990ajaxHandler:function(target,instance){ 9991var selector, 9992off=target.indexOf(" "); 9993if(off>-1){ 9994selector=target.slice(off); 9995selector=selector.match(/[^\x20\t\r\n\f]+/g)||[]; 9996selector=selector.join(" "); 9997target=target.slice(0,off); 9998} 9999if(jQuery.spip.preloaded_urls[target]){ 10000var content=jQuery.spip.preloaded_urls[target]; 10001if(selector){ 10002content=$("<div>").append($.parseHTML(content)).find(selector); 10003} 10004return $('<div class="lity-content-inner"></div>').append(content); 10005} 10006var _deferred=$.Deferred; 10007var deferred=_deferred(); 10008var failed=function(){ 10009deferred.reject($('<span class="error lity-error"></span>').append('Failed loading ajax')); 10010}; 10011$.get(target) 10012.done(function(content){ 10013jQuery.spip.preloaded_urls[target]=content; 10014if(selector){ 10015content=$("<div>").append($.parseHTML(content)).find(selector); 10016} 10017deferred.resolve($('<div class="lity-content-inner"></div>').append(content)); 10018}) 10019.fail(failed); 10020return deferred.promise(); 10021}, 10022imageBuildContent:function(img,desc,longdesc,defaultCaptionClass){ 10023img.attr('alt',desc?desc:''); 10024desc=(longdesc?longdesc:desc); 10025if(desc){ 10026defaultCaptionClass=(defaultCaptionClass?defaultCaptionClass:'expanded'); 10027var id='lity-image-caption-'+Date.now().toString(36)+Math.random().toString(36).substr(2); 10028img.attr('aria-describedby',id); 10029img=$('<figure class="lity-image-figure"></figure>').append(img).append('<figcaption id="'+id+'" class="lity-image-caption '+defaultCaptionClass+'"><div class="lity-image-caption-text">'+desc+'</div></figcaption>'); 10030} 10031else{
10032img=$('<figure class="lity-image-figure"></figure>').append(img); 10033} 10034return img; 10035}, 10036imageHandler:function(target,instance){ 10037var _deferred=$.Deferred; 10038var desc=''; 10039var longdesc=''; 10040var defaultCaptionClass=(instance.options().defaultCaptionState==='min'?'min':'expanded'); 10041var opener=instance.opener(); 10042if(opener){ 10043desc=opener.attr('title')||$('img[alt]',opener).eq(0).attr('alt')||''; 10044var by=opener.attr('aria-describedby')||$('img[aria-describedby]',opener).eq(0).attr('aria-describedby')||''; 10045if(by){ 10046longdesc=$('#'+by).html(); 10047longdesc=longdesc.trim(); 10048} 10049if(!desc){ 10050desc=desc||instance.opener().attr('aria-label')||''; 10051} 10052desc=desc.trim(); 10053} 10054var img; 10055var cache=opener.data('lity-image-cache')||{}; 10056if(cache[target]){ 10057img=cache[target]; 10058img=litySpip.imageBuildContent(img,desc,longdesc,defaultCaptionClass); 10059return img; 10060} 10061img=$('<img src="'+target+'" class="lity-image-img" data-'+litySpip.nameSpace+'-force-max-height />'); 10062var deferred=_deferred(); 10063var failed=function(){ 10064deferred.reject($('<span class="error lity-error"></span>').append('Failed loading image')); 10065}; 10066img 10067.on('load',function(){ 10068if(this.naturalWidth===0){ 10069img.attr("style","width:25vw;"); 10070} 10071cache[target]=img; 10072opener.data('lity-image-cache',cache); 10073deferred.resolve(litySpip.imageBuildContent(img,desc,longdesc,defaultCaptionClass)); 10074}) 10075.on('error',failed) 10076; 10077return deferred.promise(); 10078}, 10079groupElements:function(groupName){ 10080return $('.lity-enabled[data-'+litySpip.nameSpace+'-group'+'='+groupName+']'); 10081}, 10082eventSet:{}, 10083setEvents:function(what){ 10084if(!litySpip.eventSet[what]){ 10085switch(what){ 10086case'opener': 10087$(document).on('click','.lity-enabled',litySpip.onClickOpener); 10088break; 10089case'listener': 10090$(document).on('click','.lity-previous,.lity-next',litySpip.onPrevNext); 10091$(document).on('click','.lity-start-stop',litySpip.onSlideShowToggle); 10092$(window).on('keyup',litySpip.onKeyUp); 10093$(document).on('click','.lity-image-caption',litySpip.onCaptionToggle); 10094break; 10095} 10096litySpip.eventSet[what]=true; 10097} 10098}, 10099onKeyUp:function(event){ 10100var c={37:"previous",39:"next"}[event.keyCode]; 10101if(c){ 10102var current=lity.current(); 10103if(current){ 10104jQuery('.lity-'+c,current.element()).trigger('click'); 10105} 10106} 10107}, 10108onCaptionToggle:function(event){ 10109var $caption=$(this); 10110$caption.toggleClass('min expanded'); 10111}, 10112openerFromPrevNext($button){ 10113var groupName=$button.data('group-name'); 10114var groupPosition=$button.data('group-position'); 10115return litySpip.groupElements(groupName).eq(groupPosition); 10116}, 10117onPrevNext:function(event){ 10118var $button=$(this); 10119var newEl=litySpip.openerFromPrevNext($button); 10120if(newEl){ 10121var element=lity.current().element(); 10122litySpip.isTransition={oldClosed:false,newOpened:true}; 10123element.addClass('lity-no-transition').css('visibility','hidden'); 10124litySpip.slideshowStop(element); 10125var options={transitionOnOpen:$button.is('.lity-next')?'slide-from-right':'slide-from-left'}; 10126if(element.is('.lity-slideshow')){ 10127options.slideShow=true; 10128} 10129lity.current().close(); 10130litySpip.elementOpener(newEl,options); 10131} 10132}, 10133slideshowStart:function(element){ 10134var $progress=element.find('.lity-group-progress-bar-status'); 10135$progress.attr('style',''); 10136$progress.css('width','100%'); 10137var delay=litySpip.config.slideshowSpeed; 10138setTimeout(function(){ 10139$progress.css('transition','width '+((delay-200)/1000)+'s linear'); 10140$progress.css('width','0'); 10141},200); 10142timer=setTimeout(function(){element.find('.lity-next').trigger('click')},delay); 10143element.data('lity-timer',timer); 10144$('.lity-start',element).attr('aria-hidden','true'); 10145$('.lity-stop',element).attr('aria-hidden','false'); 10146jQuery('.lity-start-stop',element).focus(); 10147}, 10148slideshowStop:function(element){ 10149timer=element.data('lity-timer'); 10150if(timer){ 10151clearTimeout(timer); 10152} 10153}, 10154onSlideShowToggle:function(event){ 10155var $button=$(this); 10156var element=$button.closest('.lity'); 10157var slideShowState=(element.is('.lity-slideshow')?true:false); 10158var timer; 10159if(!slideShowState){ 10160litySpip.slideshowStart(element); 10161} 10162else{ 10163litySpip.slideshowStop(element); 10164$('.lity-start',element).attr('aria-hidden','false'); 10165$('.lity-stop',element).attr('aria-hidden','true'); 10166} 10167element.toggleClass('lity-slideshow'); 10168}, 10169onClickOpener:function(event){ 10170event.preventDefault(); 10171var opener=$(this); 10172litySpip.elementOpener(opener); 10173}, 10174elementOpener:function(opener,options){ 10175var cfg=opener.data('mediabox-options'); 10176if(options){ 10177cfg=$.extend({},cfg,options); 10178} 10179var target=opener.data('href-popin')||opener.data('href')||opener.attr('href')||opener.attr('src'); 10180litySpip.lityOpener(target,cfg,opener.get(0)); 10181}, 10182lityOpener:function(target,cfg,opener){ 10183litySpip.setEvents('listener'); 10184if(!litySpip.isTransition){ 10185litySpip.callbacks.onOpen.push(cfg.onOpen||false); 10186litySpip.callbacks.onShow.push(cfg.onShow||false); 10187litySpip.callbacks.onClose.push(cfg.onClose||false); 10188litySpip.focusedItem.push($(document.activeElement)); 10189} 10190var type=cfg.type||''; 10191if(!type&&opener){ 10192type=$(opener).data(litySpip.nameSpace+'-type')||''; 10193} 10194var handlers=lity.handlers(); 10195if(type==='ajax'){ 10196handlers.ajax=litySpip.ajaxHandler; 10197} 10198handlers.image=litySpip.imageHandler; 10199if(type==='inline'){ 10200var el=[]; 10201try{ 10202el=$(target); 10203}catch(e){ 10204el=[]; 10205} 10206if(!el.length){ 10207handlers.inline=litySpip.failHandler; 10208} 10209} 10210cfg=$.extend({handlers:handlers},cfg); 10211if(type&&['image','inline','ajax','iframe'].indexOf(type)!==-1){ 10212cfg.handler=type; 10213} 10214if(opener&&typeof($.parseMediaboxOptions)!=="undefined"){
10215cfg=$.extend(cfg,$.parseMediaboxOptions(litySpip.nameSpace,opener)); 10216} 10217if(!!cfg.preloadOnly){ 10218litySpip.lityPreLoader(target,cfg,opener); 10219} 10220else{ 10221var groupPosition=0; 10222var groupLength=0; 10223if(opener){ 10224var groupName=cfg.rel||(opener?$(opener).data(litySpip.nameSpace+'-group'):''); 10225if(groupName){ 10226var elements=litySpip.groupElements(groupName); 10227groupPosition=elements.index($(opener)); 10228groupLength=elements.length; 10229} 10230} 10231cfg=$.extend({template:litySpip.template(cfg,type,groupName,groupPosition,groupLength)},cfg); 10232if(cfg.samePopin){ 10233var l=lity.current(); 10234if(l){ 10235l.close(); 10236} 10237} 10238lity(target,cfg,opener); 10239} 10240}, 10241lityPreLoader:function(target,cfg,opener){ 10242if(cfg.handler&&cfg.handlers[cfg.handler]){ 10243if(cfg.handler==='image'||cfg.handler==='ajax'){ 10244var instance={ 10245opener:function(){return $(opener);}, 10246options:function(){return cfg} 10247}; 10248var content=cfg.handlers[cfg.handler](target,instance); 10249} 10250} 10251}, 10252ajaxReloadElements:function(elements){ 10253const targets=elements 10254.split(',') 10255.map(s=>s.trim()) 10256.filter(Boolean); 10257targets.forEach(function(target){ 10258try{ 10259if(/^[.#[]/.test(target)){ 10260const $element=$(target); 10261if($element.length){ 10262$element.ajaxReload(); 10263} 10264}else{ 10265ajaxReload(target); 10266} 10267}catch(e){ 10268console.warn("Mediabox ajaxReloadElements : erreur lors du traitement de '"+target+"'.",e); 10269} 10270}); 10271} 10272} 10273jQuery.fn.extend({ 10274mediabox:function(options){ 10275var cfg=$.extend({},litySpip.config,options); 10276if(this===jQuery.fn){ 10277var href=cfg.href||""; 10278litySpip.lityOpener(href,cfg,null); 10279return this; 10280}else{ 10281if(cfg.rel){ 10282this.attr('data-'+litySpip.nameSpace+'-group',cfg.rel); 10283} 10284else{ 10285this.each(function(){ 10286var rel=$(this).attr('rel'); 10287if(rel){ 10288$(this).attr('data-'+litySpip.nameSpace+'-group',rel); 10289} 10290}); 10291} 10292litySpip.setEvents('opener'); 10293this 10294.data('mediabox-options',cfg) 10295.addClass('lity-enabled'); 10296(cfg.preload?this:this.filter('[data-'+litySpip.nameSpace+'-preload]')).each(function(){ 10297litySpip.elementOpener($(this),{preloadOnly:true}); 10298}); 10299return this; 10300} 10301}, 10302mediaboxClose:function(){ 10303var $current=lity.current(); 10304if($current){ 10305$current.close(); 10306return true; 10307} 10308return false; 10309} 10310}); 10311var initConfig=function(){ 10312var b=typeof(mediabox_settings)=='object'?mediabox_settings:{}; 10313litySpip.nameSpace=b.ns?b.ns:'mediabox'; 10314litySpip.strings.slideshowStart=b.str_ssStart; 10315litySpip.strings.slideshowStop=b.str_ssStop; 10316litySpip.strings.current=b.str_cur; 10317litySpip.strings.previous=b.str_prev; 10318litySpip.strings.next=b.str_next; 10319litySpip.strings.close=b.str_close; 10320litySpip.strings.loading=b.str_loading; 10321litySpip.strings.press_escape=b.str_petc; 10322litySpip.strings.dialog_title_def=b.str_dialTitDef; 10323litySpip.strings.dialog_title_med=b.str_dialTitMed; 10324litySpip.config.slideshowSpeed=(b.lity.slideshow_speed?b.lity.slideshow_speed:5000); 10325litySpip.config.defaultCaptionState=(b.lity.defaultCaptionState?b.lity.defaultCaptionState:'expanded'); 10326var styles={ 10327'container':'', 10328'content':'', 10329}; 10330var max; 10331if(b.lity.minWidth){ 10332max=(b.lity.maxWidth?b.lity.maxWidth.replace('%','vw'):'95vw'); 10333styles.content+="min-width:min("+max+","+b.lity.minWidth.replace('%','vw')+');'; 10334} 10335if(b.lity.maxWidth){ 10336styles.container+="max-width:"+b.lity.maxWidth.replace('%','vw')+';'; 10337} 10338if(b.lity.minHeight){ 10339max=(b.lity.maxHeight?b.lity.maxHeight.replace('%','vw'):'95vh'); 10340styles.content+="min-height:min("+max+","+b.lity.minHeight.replace('%','vh')+');'; 10341} 10342if(b.lity.maxHeight){ 10343styles.container+="max-height:"+b.lity.maxHeight.replace('%','vh')+';'; 10344} 10345var insert=''; 10346for(let key in styles){ 10347if(styles[key]){ 10348insert+='.box_mediabox .lity-'+key+'{'+styles[key]+'}'; 10349} 10350} 10351if(b.lity.opacite){ 10352insert+='.box_mediabox:before{opacity:'+b.lity.opacite+'}'; 10353} 10354if(insert){ 10355$('head').append($('<style type="text/css">'+insert+'</style>')); 10356} 10357$(document).on('lity:open',function(event,instance){ 10358if(document.fullscreenElement){ 10359document.fullscreenElement.appendChild(instance.element().get(0)); 10360} 10361if(!instance.element().is('.lity-slideshow')){ 10362jQuery('.lity-close',instance.element()).focus(); 10363} 10364if(!litySpip.isTransition){ 10365var callback=litySpip.callbacks.onOpen.pop(); 10366if(callback){ 10367callback(event,instance); 10368} 10369} 10370}); 10371$(document).on('lity:ready',function(event,instance){ 10372litySpip.adjustHeight(instance); 10373if(jQuery.spip){ 10374jQuery.spip.triggerAjaxLoad(instance.element().get(0)) 10375} 10376if(instance.element().addClass('lity-ready').is('.lity-slideshow')){ 10377litySpip.slideshowStart(instance.element()); 10378} 10379if(!litySpip.isTransition){ 10380var callback=litySpip.callbacks.onShow.pop(); 10381if(callback){
10382callback(event,instance); 10383} 10384} 10385else{ 10386litySpip.isTransition.newOpened=true; 10387if(litySpip.isTransition.oldClosed){ 10388litySpip.isTransition=false; 10389} 10390instance.content().trigger('lity:resize',[instance]); 10391} 10392var $next=instance.element().find('.lity-next'); 10393if($next.length){ 10394$next=litySpip.openerFromPrevNext($next); 10395if($next){ 10396litySpip.elementOpener($next,{preloadOnly:true}); 10397} 10398} 10399}); 10400$(document).on('lity:close',function(event,instance){ 10401if(!litySpip.isTransition){ 10402if(litySpip.callbacks.onShow.length>litySpip.callbacks.onOpen.length){ 10403litySpip.callbacks.onShow.pop(); 10404} 10405var callback=litySpip.callbacks.onClose.pop(); 10406if(callback){ 10407callback(event,instance); 10408} 10409let options=instance.options(); 10410let ajaxReloadArgs=options.ajaxReloadOnClose; 10411if(ajaxReloadArgs&&typeof(ajaxReloadArgs)==='string'){ 10412litySpip.ajaxReloadElements(ajaxReloadArgs); 10413} 10414} 10415}); 10416$(document).on('lity:remove',function(event,instance){ 10417if(!litySpip.isTransition){ 10418var focused=litySpip.focusedItem.pop(); 10419if(focused){ 10420try{ 10421focused.focus(); 10422}catch(e){ 10423} 10424} 10425} 10426else{ 10427litySpip.isTransition.oldClosed=true; 10428if(litySpip.isTransition.newOpened){ 10429litySpip.isTransition=false; 10430} 10431} 10432}); 10433$(document).on('lity:resize',function(event,instance){ 10434litySpip.adjustHeight(instance); 10435}); 10436} 10437initConfig(); 10438})(jQuery); 10439 10440 10441/* plugins-dist/mediabox/javascript/spip.mediabox.js?1790327464 */ 10442(function($){ 10443$.mediabox 10444=function(options){ 10445if(typeof(mediabox_autodetect_href)=='function' 10446&&options.href 10447&&!options.type){ 10448options.type=mediabox_autodetect_href(options.href); 10449} 10450$.fn.mediabox(options); 10451}; 10452$.modalboxload=$.modalbox=function(href,options){$.mediabox($.extend({href:href,overlayClose:true},options));}; 10453$.modalboxclose=$.mediaboxClose=$.fn.mediaboxClose; 10454$.parseMediaboxOptions=function(nameSpace,opener){ 10455var options={}; 10456var data2options={ 10457"width":"width", 10458"height":"height", 10459"min-width":"minWidth", 10460"min-height":"minHeight", 10461"max-width":"maxWidth", 10462"max-height":"maxHeight", 10463"caption-state":"defaultCaptionState", 10464"sidebar":"sideBar", 10465"class":"className", 10466"ajaxreload-on-close":"ajaxReloadOnClose", 10467}; 10468var v; 10469for(var o in data2options){ 10470v=($(opener).data(nameSpace+'-'+o)||''); 10471if(v){ 10472options[data2options[o]]=v; 10473} 10474} 10475if(!options.length){ 10476var eltclass=$(opener).prop('class'); 10477if(eltclass){ 10478if(eltclass.indexOf("boxWidth-")!==-1){ 10479var w=eltclass.match(/boxWidth-([^\s'">]*)/); 10480w=w[1].replace(/pc/,'%'); 10481options["width"]=w; 10482} 10483if(eltclass.indexOf("boxHeight-")!==-1){ 10484var h=eltclass.match(/boxHeight-([^\s'">]*)/); 10485h=h[1].replace(/pc/,'%'); 10486options["height"]=h; 10487} 10488if(eltclass.indexOf("boxIframe")!==-1){ 10489options["type"]='iframe'; 10490} 10491if(eltclass.indexOf("boxInline")!==-1){ 10492options["type"]='inline'; 10493} 10494} 10495} 10496data2options={"same-popin":"samePopin","type":"type"}; 10497for(var o in data2options){ 10498v=($(opener).data(nameSpace+'-'+o)||''); 10499if(v){ 10500options[data2options[o]]=v; 10501} 10502} 10503return options; 10504} 10505})(jQuery); 10506var mediaboxInit=function(){ 10507var b=$.extend({},mediabox_settings); 10508if(b.ns!=='box'){ 10509$('[data-box-type]').each(function(i,e){ 10510var $e=$(e); 10511var d=$e.attr('data-box-type'); 10512$e.removeAttr('data-box-type').attr('data-'+b.ns+'-type',d); 10513}); 10514} 10515if(b.auto_detect){ 10516var $popins=$('[data-href-popin],[data-'+b.ns+'-type]'+(window.var_zajax_content?',[data-var_zajax],a.popin':'')) 10517.add(b.sel_c) 10518.not(ajaxbloc_selecteur,'.ajaxbloc','.hasbox'); 10519$popins.each(function(i,e){ 10520var $e=$(e); 10521var url=$e.attr('href')||"./"; 10522var popin=$e.attr('data-href-popin'); 10523var type=$e.attr('data-'+b.ns+'-type')||''; 10524if(!popin){ 10525var env=$e.attr('data-ajax-env'); 10526if(env){ 10527url=parametre_url(parametre_url(url,'var_ajax',1),'var_ajax_env',env) 10528$e.removeAttr('data-ajax-env'); 10529type='ajax'; 10530} 10531var za=$e.attr('data-var_zajax'); 10532if(za!==undefined||$e.hasClass('popin')){ 10533if(za==='content'&&window.var_zajax_content){ 10534za=window.var_zajax_content; 10535} 10536url=parametre_url(url,'var_zajax',za||window.var_zajax_content); 10537$e.removeAttr('data-var_zajax'); 10538type='ajax'; 10539} 10540if((url!==$e.attr('href')||(!popin&&type))&&url!=="./"){ 10541$e.attr('data-href-popin',url); 10542} 10543} 10544url=popin||url; 10545if(!type){ 10546var attrs=$e.data(); 10547var types=['inline','html','iframe','image','ajax']; 10548types.some(function(e){ 10549var k=b.ns+e.charAt(0).toUpperCase()+e.slice(1); 10550if(attrs[k]){ 10551type=e; 10552return true; 10553} 10554}); 10555} 10556if(!type&&typeof(mediabox_autodetect_href)=='function'){ 10557type=mediabox_autodetect_href(url); 10558} 10559if(!type||$e.hasClass('boxIframe')){ 10560type="iframe"; 10561$e.removeClass('boxIframe'); 10562} 10563$e.attr('data-'+b.ns+'-type',type); 10564}); 10565} 10566if(b.sel_g){ 10567var $items=$(); 10568$(b.sel_g).each(function(i,e){ 10569$items=$items.add( 10570$(this).is('a[type^=\'image\']') 10571?$(this) 10572:$(this).find('a[type^=\'image\']') 10573); 10574}); 10575$items 10576.not('.hasbox') 10577.removeAttr('onclick') 10578.mediabox({rel:'galerieauto',slideshow:true,slideshowAuto:false,type:'image'}) 10579.addClass('hasbox'); 10580} 10581if(b.tt_img){ 10582$('a[type^="image"],a[href$=".png"],a[href$=".jpg"],a[href$=".jpeg"],a[href$=".svg"],a[href$=".webp"]') 10583.not('.hasbox') 10584.removeAttr('onclick') 10585.mediabox({type:'image'}) 10586.addClass('hasbox') 10587; 10588} 10589$(b.sel_c) 10590.not('.hasbox') 10591.mediabox() 10592.addClass('hasbox') 10593; 10594$('[data-href-popin]',this) 10595.not('.hasbox') 10596.click(function(){if($.modalbox)$.modalbox($(this).attr('data-href-popin'),$.parseMediaboxOptions(b.ns,this));return false;}) 10597.addClass('hasbox'); 10598}; 10599(function($){ 10600if(typeof onAjaxLoad=='function')onAjaxLoad(mediaboxInit);
10601$(mediaboxInit); 10602})(jQuery); 10603function mediabox_autodetect_href(href,options){ 10604options=$.extend({ 10605breakMode:true, 10606tests:{ 10607image:/\.(gif|png|jp(e|g|eg)|bmp|ico|webp|jxr|svg)((#|\?).*)?$/i, 10608inline:/^[#.]\w/, 10609html:/^\s*<[\w!][^<]*>/, 10610ajax:/((\?|&(amp;)?)var_z?ajax=|cache-ajaxload\/)/i, 10611iframe:/^(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,}))\.?)(?::\d{2,5})?(?:[/?#]\S*)?$/i, 10612}, 10613},options); 10614var matched=options.breakMode?false:[]; 10615$.each(options.tests,function(type,regex){ 10616if(href.match(regex)&&!href.match('/File:[^/]+(\\#|[?]|$)')){ 10617if(options.breakMode){ 10618matched=type; 10619return false; 10620}else{ 10621matched.push(type); 10622} 10623} 10624}); 10625return matched; 10626}; 10627 10628 10629/* plugins-dist/porte_plume/javascript/jquery.markitup_pour_spip.js?1790327464 */ 10630 10631;(function($){ 10632$.fn.markItUp=function(settings,extraSettings){ 10633var method,params,options,ctrlKey,shiftKey,altKey;ctrlKey=shiftKey=altKey=false; 10634markitup_prompt=false; 10635if(typeof settings=='string'){ 10636method=settings; 10637params=extraSettings; 10638} 10639options={id:'', 10640nameSpace:'', 10641root:'', 10642lang:'', 10643previewHandler:false, 10644previewInWindow:'', 10645previewInElement:'', 10646previewAutoRefresh:true, 10647previewPosition:'after', 10648previewTemplatePath:'~/templates/preview.html', 10649previewParser:false, 10650previewParserPath:'', 10651previewParserVar:'data', 10652previewParserAjaxType:'POST', 10653resizeHandle:true, 10654beforeInsert:'', 10655afterInsert:'', 10656onEnter:{}, 10657onShiftEnter:{}, 10658onCtrlEnter:{}, 10659onTab:{}, 10660markupSet:[{}] 10661}; 10662$.extend(options,settings,extraSettings); 10663if(!options.root){ 10664$('script').each(function(a,tag){ 10665var miuScript=$(tag).get(0).src.match(/(.*)jquery\.markitup(\.pack)?\.js$/); 10666if(miuScript!==null){ 10667options.root=miuScript[1]; 10668} 10669}); 10670} 10671var uaMatch=function(ua){ 10672ua=ua.toLowerCase(); 10673var match=/(chrome)[ \/]([\w.]+)/.exec(ua)||/(webkit)[ \/]([\w.]+)/.exec(ua)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ua)||/(msie) ([\w.]+)/.exec(ua)|| 10674ua.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua)|| 10675[]; 10676return{ 10677browser:match[1]||"", 10678version:match[2]||"0" 10679}; 10680}; 10681var matched=uaMatch(navigator.userAgent); 10682var browser={}; 10683if(matched.browser){ 10684browser[matched.browser]=true; 10685browser.version=matched.version; 10686} 10687if(browser.chrome){ 10688browser.webkit=true; 10689}else if(browser.webkit){ 10690browser.safari=true; 10691} 10692return this.each(function(){ 10693var $$,textarea,levels,scrollPosition,caretPosition, 10694clicked,hash,header,footer,previewWindow,template,iFrame,abort, 10695before,after; 10696$$=$(this); 10697textarea=this; 10698levels=[]; 10699abort=false; 10700scrollPosition=caretPosition=0; 10701caretOffset=-1; 10702options.previewParserPath=localize(options.previewParserPath); 10703options.previewTemplatePath=localize(options.previewTemplatePath); 10704if(method){ 10705switch(method){ 10706case'remove': 10707remove(); 10708break; 10709case'insert': 10710markup(params); 10711break; 10712default: 10713$.error('Method '+method+' does not exist on jQuery.markItUp'); 10714} 10715return; 10716} 10717function localize(data,inText){ 10718if(inText){ 10719return data.replace(/("|')~\//g,"$1"+options.root); 10720} 10721return data.replace(/^~\//,options.root); 10722} 10723function init(){ 10724id='';nameSpace=''; 10725if(options.id){ 10726id='id="'+options.id+'"'; 10727}else if($$.attr("id")){ 10728id='id="markItUp'+($$.attr("id").substr(0,1).toUpperCase())+($$.attr("id").substr(1))+'"'; 10729} 10730if(options.nameSpace){ 10731nameSpace='class="'+options.nameSpace+'"'; 10732} 10733currentScrollPosition=$$.scrollTop(); 10734$$.wrap('<div '+nameSpace+'></div>'); 10735$$.wrap('<div '+id+' class="markItUp"></div>'); 10736$$.wrap('<div class="markItUpContainer"></div>'); 10737$$.addClass("markItUpEditor"); 10738$$.scrollTop(currentScrollPosition); 10739header=$('<div class="markItUpHeader"></div>').insertBefore($$); 10740$(dropMenus(options.markupSet)).appendTo(header); 10741$(header).find("li.markItUpDropMenu ul:empty").parent().remove(); 10742footer=$('<div class="markItUpFooter"></div>').insertAfter($$); 10743if(options.resizeHandle===true&&browser.safari!==true){ 10744resizeHandle=$('<div class="markItUpResizeHandle"></div>') 10745.insertAfter($$) 10746.on("mousedown.markItUp",function(e){ 10747var h=$$.height(),y=e.clientY,mouseMove,mouseUp; 10748mouseMove=function(e){ 10749$$.css("height",Math.max(20,e.clientY+h-y)+"px"); 10750return false;
10751}; 10752mouseUp=function(e){ 10753$("html").off("mousemove.markItUp",mouseMove).off("mouseup.markItUp",mouseUp); 10754return false; 10755}; 10756$("html").on("mousemove.markItUp",mouseMove).on("mouseup.markItUp",mouseUp); 10757}); 10758footer.append(resizeHandle); 10759} 10760$$.on('keydown.markItUp',keyPressed).on('keyup',keyPressed); 10761$$.on("insertion.markItUp",function(e,settings){ 10762if(settings.target!==false){ 10763get(); 10764} 10765if(textarea===$.markItUp.focused){ 10766markup(settings); 10767} 10768}); 10769$$.on('focus.markItUp',function(){ 10770$.markItUp.focused=this; 10771}); 10772if(options.previewInElement){ 10773refreshPreview(); 10774} 10775} 10776function dropMenus(markupSet){ 10777var ul=$('<ul></ul>'),i=0; 10778var lang=($$.attr('lang')||options.lang); 10779$('li:hover > ul',ul).css('display','block'); 10780$.each(markupSet,function(){ 10781var button=this,t='',title,li,j; 10782if((!lang||!button.lang||($.inArray(lang,button.lang)!=-1)) 10783&&(!button.lang_not||($.inArray(lang,button.lang_not)==-1))){ 10784button.title?title=(button.key)?(button.title||'')+' [Ctrl+'+button.key+']':(button.title||''):title=(button.key)?(button.name||'')+' [Ctrl+'+button.key+']':(button.name||''); 10785key=(button.key)?'accesskey="'+button.key+'"':''; 10786if(button.separator){ 10787li=$('<li class="markItUpSeparator">'+(button.separator||'')+'</li>').appendTo(ul); 10788}else{ 10789i++; 10790for(j=levels.length-1;j>=0;j--){ 10791t+=levels[j]+"-"; 10792} 10793li=$('<li class="markItUpButton markItUpButton'+t+(i)+' '+(button.className||'')+'"><a href="#" '+key+' title="'+title+'"><em>'+(button.name||'')+'</em></a></li>') 10794.on("contextmenu.markItUp",function(){ 10795return false; 10796}).on('click.markItUp',function(e){ 10797e.preventDefault(); 10798}).on("focusin.markItUp",function(){ 10799setTimeout(function(){ 10800$$.focus(); 10801},0); 10802}).on('mouseup',function(e){ 10803if(button.call){ 10804eval(button.call)(e); 10805} 10806setTimeout(function(){markup(button)},1); 10807return false; 10808}).on('mouseenter.markItUp',function(){ 10809$('> a',this).addClass('active'); 10810$('> ul',this).addClass('expanded'); 10811$(document).one('click',function(){ 10812$('ul a',header).removeClass('active'); 10813$('ul ul',header).removeClass('expanded'); 10814} 10815); 10816}).on('mouseleave.markItUp',function(){ 10817$('> a',this).removeClass('active'); 10818$('> ul',this).removeClass('expanded'); 10819}).appendTo(ul); 10820if(button.dropMenu){ 10821levels.push(i); 10822$(li).addClass('markItUpDropMenu').append(dropMenus(button.dropMenu)); 10823} 10824} 10825} 10826}); 10827levels.pop(); 10828return ul; 10829} 10830function magicMarkups(string){ 10831if(string){ 10832string=string.toString(); 10833string=string.replace(/\(\!\(([\s\S]*?)\)\!\)/g, 10834function(x,a){ 10835var b=a.split('|!|'); 10836if(altKey===true){ 10837return(b[1]!==undefined)?b[1]:b[0]; 10838}else{ 10839return(b[1]===undefined)?"":b[0]; 10840} 10841} 10842); 10843string=string.replace(/\[\!\[([\s\S]*?)\]\!\]/g, 10844function(x,a){ 10845var b=a.split(':!:'); 10846if(abort===true){ 10847return false; 10848} 10849markitup_prompt=true; 10850value=prompt(b[0],(b[1])?b[1]:''); 10851if(value===null){ 10852abort=true; 10853} 10854setTimeout(function(){markitup_prompt=false;},500); 10855return value; 10856} 10857); 10858return string; 10859} 10860return""; 10861} 10862function prepare(action){ 10863if($.isFunction(action)){ 10864action=action(hash); 10865} 10866return magicMarkups(action); 10867} 10868function build(string){ 10869var openWith=prepare(clicked.openWith); 10870var placeHolder=prepare(clicked.placeHolder); 10871var replaceWith=prepare(clicked.replaceWith); 10872var closeWith=prepare(clicked.closeWith); 10873var openBlockWith=prepare(clicked.openBlockWith); 10874var closeBlockWith=prepare(clicked.closeBlockWith); 10875var multiline=clicked.multiline; 10876if(replaceWith!==""){ 10877block=openWith+replaceWith+closeWith; 10878}else if(selection===''&&placeHolder!==''){ 10879block=openWith+placeHolder+closeWith; 10880}else if(multiline===true){ 10881string=string||selection; 10882var lines=[string],blocks=[]; 10883if(multiline===true){ 10884lines=string.split(/\r?\n/); 10885} 10886for(var l=0;l<lines.length;l++){ 10887line=lines[l]; 10888var trailingSpaces; 10889if(trailingSpaces=line.match(/ *$/)){ 10890blocks.push(openWith+line.replace(/ *$/g,'')+closeWith+trailingSpaces); 10891}else{ 10892blocks.push(openWith+line+closeWith); 10893} 10894} 10895block=blocks.join("\n"); 10896}else{ 10897block=openWith+(string||selection)+closeWith; 10898} 10899block=openBlockWith+block+closeBlockWith; 10900return{block:block, 10901openBlockWith:openBlockWith, 10902openWith:openWith, 10903replaceWith:replaceWith, 10904placeHolder:placeHolder, 10905closeWith:closeWith, 10906closeBlockWith:closeBlockWith 10907}; 10908} 10909function selectWord(){ 10910selectionBeforeAfter(/\s|[.,;:!¡?¿()]/); 10911selectionSave(); 10912} 10913function selectLine(){ 10914selectionBeforeAfter(/\r?\n/); 10915selectionSave(); 10916} 10917function selectionRemoveLast(pattern){ 10918if(!pattern)pattern=/\s/; 10919last=selection[selection.length-1]; 10920if(last&&last.match(pattern)){ 10921set(caretPosition,selection.length-1); 10922get(); 10923$.extend(hash,{caretPosition:caretPosition,scrollPosition:scrollPosition}); 10924} 10925} 10926function selectionBeforeAfter(pattern){ 10927if(!pattern)pattern=/\s/; 10928sautAvantIE=sautApresIE=0; 10929if(browser.msie){ 10930lenSelection=selection.length-fixIeBug(selection); 10931if(caretPosition){ 10932set(caretPosition-1,2); 10933sautAvantIE=fixIeBug(document.selection.createRange().text); 10934} 10935set(caretPosition,2); 10936sautApresIE=fixIeBug(document.selection.createRange().text); 10937set(0,caretPosition); 10938before=document.selection.createRange().text; 10939set(caretPosition+lenSelection,textarea.value.length);
10940after=document.selection.createRange().text; 10941set(caretPosition,lenSelection); 10942selection=document.selection.createRange().text; 10943}else{ 10944before=textarea.value.substring(0,caretPosition); 10945after=textarea.value.substring(caretPosition+selection.length-fixIeBug(selection)); 10946} 10947before=before.split(pattern); 10948after=after.split(pattern); 10949if(sautAvantIE)before.push(""); 10950if(sautApresIE)after.unshift(""); 10951} 10952function selectionSave(){ 10953nb_before=before?before[before.length-1].length:0; 10954nb_after=after?after[0].length:0; 10955nb=nb_before+selection.length+nb_after-fixIeBug(selection); 10956caretPosition=caretPosition-nb_before; 10957set(caretPosition,nb); 10958get(); 10959$.extend(hash,{selection:selection,caretPosition:caretPosition,scrollPosition:scrollPosition}); 10960} 10961function markup(button){ 10962var len,j,n,i; 10963hash=clicked=button; 10964get(); 10965$.extend(hash,{line:"", 10966root:options.root, 10967textarea:textarea, 10968selection:(selection||''), 10969caretPosition:caretPosition, 10970ctrlKey:ctrlKey, 10971shiftKey:shiftKey, 10972altKey:altKey 10973} 10974); 10975if(button.selectionType){ 10976if(button.selectionType=="word"){ 10977if(!selection){ 10978selectWord(); 10979}else{ 10980selectionRemoveLast(/\s/); 10981} 10982} 10983if(button.selectionType=="line"){ 10984selectLine(); 10985} 10986if(button.selectionType=="return"){ 10987if(!browser.msie){ 10988selectionBeforeAfter(/\r?\n/); 10989before_last=before[before.length-1]; 10990after=''; 10991if(r=before_last.match(/^-([*#]+) ?(.*)$/)){ 10992if(r[2]){ 10993button.replaceWith="\n-"+r[1]+' '; 10994before_last=''; 10995}else{ 10996button.replaceWith="\n"; 10997} 10998}else{ 10999before_last=''; 11000button.replaceWith="\n"; 11001} 11002before[before.length-1]=before_last; 11003selectionSave(); 11004} 11005} 11006} 11007prepare(options.beforeInsert); 11008prepare(clicked.beforeInsert); 11009if((ctrlKey===true&&shiftKey===true)||button.multiline===true){ 11010prepare(clicked.beforeMultiInsert); 11011} 11012$.extend(hash,{line:1}); 11013if((ctrlKey===true&&shiftKey===true)||button.forceMultiline===true){ 11014lines=selection.split(/\r?\n/); 11015for(j=0,n=lines.length,i=0;i<n;i++){ 11016if(n==1||$.trim(lines[i])!==''){ 11017$.extend(hash,{line:++j,selection:lines[i]}); 11018lines[i]=build(lines[i]).block; 11019}else{ 11020lines[i]=""; 11021} 11022} 11023string={block:lines.join('\n')}; 11024start=caretPosition; 11025len=string.block.length+((browser.opera)?n-1:0); 11026}else if(ctrlKey===true){ 11027string=build(selection); 11028start=caretPosition+string.openWith.length; 11029len=string.block.length-string.openWith.length-string.closeWith.length; 11030len=len-(string.block.match(/ $/)?1:0); 11031len-=fixIeBug(string.block); 11032}else if(shiftKey===true){ 11033string=build(selection); 11034start=caretPosition; 11035len=string.block.length; 11036len-=fixIeBug(string.block); 11037}else{ 11038string=build(selection); 11039start=caretPosition+string.block.length; 11040len=0; 11041start-=fixIeBug(string.block); 11042} 11043if((selection===''&&string.replaceWith==='')){ 11044caretOffset+=fixOperaBug(string.block); 11045start=caretPosition+string.openBlockWith.length+string.openWith.length; 11046len=string.block.length-string.openBlockWith.length-string.openWith.length-string.closeWith.length-string.closeBlockWith.length; 11047caretOffset=$$.val().substring(caretPosition,$$.val().length).length; 11048caretOffset-=fixOperaBug($$.val().substring(0,caretPosition)); 11049} 11050$.extend(hash,{caretPosition:caretPosition,scrollPosition:scrollPosition}); 11051if(string.block!==selection&&abort===false){ 11052insert(string.block); 11053set(start,len); 11054}else{ 11055caretOffset=-1; 11056} 11057get(); 11058$.extend(hash,{line:'',selection:selection}); 11059if((ctrlKey===true&&shiftKey===true)||button.multiline===true){ 11060prepare(clicked.afterMultiInsert); 11061} 11062prepare(clicked.afterInsert); 11063prepare(options.afterInsert); 11064if(previewWindow&&options.previewAutoRefresh){ 11065refreshPreview(); 11066} 11067textarea.dispatchEvent(new Event('input')); 11068shiftKey=altKey=ctrlKey=abort=false; 11069} 11070function fixOperaBug(string){ 11071if(browser.opera){ 11072return string.length-string.replace(/\n*/g,'').length; 11073} 11074return 0; 11075} 11076function fixIeBug(string){ 11077if(browser.msie){ 11078return string.length-string.replace(/\r*/g,'').length; 11079} 11080return 0; 11081} 11082function insert(block){ 11083if(document.selection){ 11084var newSelection=document.selection.createRange(); 11085newSelection.text=block; 11086}else{ 11087textarea.value=textarea.value.substring(0,caretPosition)+block+textarea.value.substring(caretPosition+selection.length,textarea.value.length); 11088} 11089} 11090function set(start,len){ 11091if(textarea.createTextRange){ 11092if(browser.opera&&browser.version>=9.5&&len==0){ 11093return false;
11094} 11095range=textarea.createTextRange(); 11096range.collapse(true); 11097range.moveStart('character',start); 11098range.moveEnd('character',len); 11099range.select(); 11100}else if(textarea.setSelectionRange){ 11101textarea.setSelectionRange(start,start+len); 11102} 11103textarea.scrollTop=scrollPosition; 11104textarea.focus(); 11105} 11106function get(){ 11107textarea.focus(); 11108scrollPosition=textarea.scrollTop; 11109if(document.selection){ 11110selection=document.selection.createRange().text; 11111if(browser.msie){ 11112var range=document.selection.createRange(),rangeCopy=range.duplicate(); 11113rangeCopy.moveToElementText(textarea); 11114caretPosition=-1; 11115while(rangeCopy.inRange(range)){ 11116rangeCopy.moveStart('character'); 11117caretPosition++; 11118} 11119}else{ 11120caretPosition=textarea.selectionStart; 11121} 11122}else{ 11123caretPosition=textarea.selectionStart; 11124selection=textarea.value.substring(caretPosition,textarea.selectionEnd); 11125} 11126return selection; 11127} 11128function preview(){ 11129if(typeof options.previewHandler==='function'){ 11130previewWindow=true; 11131}else if(options.previewInElement){ 11132previewWindow=$(options.previewInElement); 11133}else if(!previewWindow||previewWindow.closed){ 11134if(options.previewInWindow){ 11135previewWindow=window.open('','preview',options.previewInWindow); 11136$(window).unload(function(){ 11137previewWindow.close(); 11138}); 11139}else{ 11140iFrame=$('<iframe class="markItUpPreviewFrame"></iframe>'); 11141if(options.previewPosition=='after'){ 11142iFrame.insertAfter(footer); 11143}else{ 11144iFrame.insertBefore(header); 11145} 11146previewWindow=iFrame[iFrame.length-1].contentWindow||frame[iFrame.length-1]; 11147} 11148}else if(altKey===true){ 11149if(iFrame){ 11150iFrame.remove(); 11151}else{ 11152previewWindow.close(); 11153} 11154previewWindow=iFrame=false; 11155} 11156if(!options.previewAutoRefresh){ 11157refreshPreview(); 11158} 11159if(options.previewInWindow){ 11160previewWindow.focus(); 11161} 11162} 11163function refreshPreview(){ 11164renderPreview(); 11165} 11166function renderPreview(){ 11167var phtml; 11168var parsedData=$$.val(); 11169if(options.previewParser&&typeof options.previewParser==='function'){ 11170parsedData=options.previewParser(parsedData); 11171} 11172if(options.previewHandler&&typeof options.previewHandler==='function'){ 11173options.previewHandler(parsedData); 11174}else if(options.previewParserPath!==''){ 11175$.ajax({ 11176type:options.previewParserAjaxType, 11177dataType:'text', 11178global:false, 11179url:options.previewParserPath, 11180data:options.previewParserVar+'='+encodeURIComponent(parsedData), 11181success:function(data){ 11182writeInPreview(localize(data,1)); 11183} 11184}); 11185}else{ 11186if(!template){ 11187$.ajax({ 11188url:options.previewTemplatePath, 11189dataType:'text', 11190global:false, 11191success:function(data){ 11192writeInPreview(localize(data,1).replace(/<!-- content -->/g,parsedData)); 11193} 11194}); 11195} 11196} 11197return false; 11198} 11199function writeInPreview(data){ 11200if(options.previewInElement){ 11201$(options.previewInElement).html(data); 11202}else if(previewWindow&&previewWindow.document){ 11203try{ 11204sp=previewWindow.document.documentElement.scrollTop 11205}catch(e){ 11206sp=0; 11207} 11208previewWindow.document.open(); 11209previewWindow.document.write(data); 11210previewWindow.document.close(); 11211previewWindow.document.documentElement.scrollTop=sp; 11212} 11213} 11214function keyPressed(e){ 11215shiftKey=e.shiftKey; 11216altKey=e.altKey; 11217ctrlKey=(!(e.altKey&&e.ctrlKey))?(e.ctrlKey||e.metaKey):false; 11218if(e.type==='keydown'){ 11219if(ctrlKey===true){ 11220li=$('a[accesskey="'+((e.keyCode==13)?'\\n':String.fromCharCode(e.keyCode))+'"]',header).parent('li'); 11221if(li.length!==0){ 11222ctrlKey=false; 11223setTimeout(function(){ 11224li.triggerHandler('mouseup'); 11225},1); 11226return false; 11227} 11228} 11229if(!browser.opera){ 11230if(e.keyCode===13||e.keyCode===10){ 11231if(ctrlKey===true){ 11232ctrlKey=false; 11233markup(options.onCtrlEnter); 11234if(!options.onCtrlEnter.keepDefault){ 11235textarea.dispatchEvent(new Event('input')); 11236} 11237return options.onCtrlEnter.keepDefault; 11238}else if(shiftKey===true){ 11239shiftKey=false; 11240markup(options.onShiftEnter); 11241if(!options.onShiftEnter.keepDefault){ 11242textarea.dispatchEvent(new Event('input')); 11243} 11244return options.onShiftEnter.keepDefault; 11245}else{ 11246markup(options.onEnter); 11247if(!options.onEnter.keepDefault){ 11248textarea.dispatchEvent(new Event('input')); 11249} 11250return options.onEnter.keepDefault; 11251} 11252} 11253if(e.keyCode===9){ 11254if(shiftKey==true||ctrlKey==true||altKey==true){ 11255return false; 11256} 11257if(caretOffset!==-1){ 11258get(); 11259caretOffset=$$.val().length-caretOffset; 11260set(caretOffset,0); 11261caretOffset=-1; 11262return false; 11263}else{ 11264markup(options.onTab); 11265return options.onTab.keepDefault; 11266} 11267} 11268} 11269} 11270} 11271function remove(){ 11272$$.off(".markItUp").removeClass('markItUpEditor'); 11273$$.parent('div').parent('div.markItUp').parent('div').replaceWith($$); 11274var relativeRef=$$.parent('div').parent('div.markItUp').parent('div'); 11275if(relativeRef.length){ 11276relativeRef.replaceWith($$); 11277} 11278$$.data('markItUp',null); 11279} 11280init(); 11281}); 11282}; 11283$.fn.markItUpRemove=function(){ 11284return this.each(function(){ 11285$(this).markItUp('remove'); 11286} 11287); 11288}; 11289$.markItUp=function(settings){ 11290var options={target:false}; 11291$.extend(options,settings); 11292if(options.target){ 11293return $(options.target).each(function(){ 11294$(this).focus(); 11295$(this).trigger('insertion',[options]); 11296}); 11297}else{ 11298$('textarea').trigger('insertion',[options]); 11299} 11300}; 11301})(jQuery); 11302 11303 11304/* plugins-dist/porte_plume/javascript/jquery.previsu_spip.js?1790327464 */ 11305;(function($){ 11306$.fn.previsu_spip=function(settings){ 11307var options; 11308options={ 11309previewParserPath:'', 11310previewParserVar:'data', 11311textEditer:'Editer', 11312textVoir:'Voir', 11313textFullScreen:'Plein écran' 11314}; 11315$.extend(options,settings); 11316return this.each(function(){ 11317var $$,textarea,tabs,preview; 11318$$=$(this); 11319textarea=this;
11320function init(){ 11321$$.addClass("pp_previsualisation"); 11322if(!$$.parent().has('.markItUpContainer').length){ 11323$$.barre_outils('vide'); 11324} 11325var mark=$$.parent(); 11326tabs=$('<div class="markItUpTabs"></div>').prependTo(mark); 11327$(tabs).append( 11328'<a href="#fullscreen" class="fullscreen">'+options.textFullScreen+'</a>'+ 11329'<a href="#previsuVoir" class="previsuVoir">'+options.textVoir+'</a>'+ 11330'<a href="#previsuEditer" class="previsuEditer on">'+options.textEditer+'</a>' 11331); 11332preview=$('<div class="markItUpPreview"></div>').insertAfter(mark.find('.markItUpHeader')); 11333preview.hide(); 11334var is_full_screen=false; 11335var objet=mark.parents('.formulaire_spip')[0].className.match(/formulaire_editer_(\w+)/); 11336objet=(objet?objet[1]:''); 11337var champ=mark.parents('.editer')[0].className.match(/editer_(\w+)/); 11338champ=(champ?champ[1].toUpperCase():''); 11339var textarea=mark.find('textarea.pp_previsualisation'); 11340var preview=mark.find('.markItUpPreview'); 11341var dir=textarea.attr('dir'); 11342if(dir){ 11343preview.attr('dir',dir); 11344} 11345tabs.find('.fullscreen').click(function(){ 11346if(!mark.is('.fullscreen')){ 11347textarea.data('height-origin',textarea.css('height')); 11348} 11349mark.toggleClass('fullscreen'); 11350if(mark.is('.fullscreen')){ 11351$('body').addClass('markitup-fullscreen'); 11352is_full_screen=true; 11353mark.find('.markItUpHeader a').show(); 11354if(!mark.is('.livepreview')){ 11355var original_texte=""; 11356function refresh_preview(){ 11357var texte=textarea.val(); 11358if(original_texte==texte){ 11359return; 11360} 11361renderPreview(preview.addClass('ajaxLoad'),texte,champ,objet); 11362original_texte=texte; 11363} 11364var timerPreview=null; 11365mark.addClass('livepreview').find('.markItUpEditor').on('keyup click change focus refreshpreview',function(e){ 11366if(is_full_screen){ 11367if(timerPreview)clearTimeout(timerPreview); 11368timerPreview=setTimeout(refresh_preview,500); 11369} 11370}); 11371$(window).on('keyup',function(e){ 11372if(is_full_screen){ 11373if(e.type=='keyup'&&e.keyCode==27&&!markitup_prompt){ 11374mark.removeClass('fullscreen'); 11375$('body').removeClass('markitup-fullscreen'); 11376textarea.css('height',textarea.data('height-origin')); 11377is_full_screen=false; 11378} 11379} 11380}); 11381} 11382mark.find('.markItUpEditor').trigger('refreshpreview'); 11383} 11384else{ 11385$('body').removeClass('markitup-fullscreen'); 11386textarea.css('height',textarea.data('height-origin')); 11387if($(this).next().hasClass('on')){ 11388mark.find('.markItUpHeader a').hide(); 11389} 11390is_full_screen=false; 11391} 11392return false; 11393}); 11394tabs.find('.previsuVoir').click(function(){ 11395preview.height( 11396mark.find('.markItUpEditor').height() 11397+mark.find('.markItUpFooter').height() 11398); 11399mark.find('.markItUpHeader a,.markItUpEditor,.markItUpFooter').hide(); 11400$(this).addClass('on').next().removeClass('on'); 11401renderPreview( 11402preview.show().addClass('ajaxLoad'), 11403mark.find('textarea.pp_previsualisation').val(), 11404champ, 11405objet, 11406false 11407); 11408return false; 11409}); 11410tabs.find('.previsuEditer').click(function(){ 11411mark.find('.markItUpPreview').hide(); 11412mark.find('.markItUpHeader a,.markItUpEditor,.markItUpFooter').show(); 11413$(this).addClass('on').prev().removeClass('on'); 11414return false; 11415}); 11416} 11417function renderPreview(node,val,champ,objet,async){ 11418if(options.previewParserPath!==''){ 11419$.ajax({ 11420type:'POST', 11421async:typeof(async)=="undefined"?true:async, 11422url:options.previewParserPath, 11423data:'champ='+champ 11424+'&objet='+objet 11425+'&'+options.previewParserVar+'='+encodeURIComponent(val), 11426success:function(data){ 11427node.html(data).removeClass('ajaxLoad'); 11428$("a",node).attr("target","blank"); 11429$(":input",node).attr("disabled","disabled"); 11430} 11431}); 11432} 11433} 11434init(); 11435}); 11436}; 11437})(jQuery); 11438 11439 11440/* local/cache-js/jsdyn-javascript_porte_plume_start_js-4f2253f7.js?1790112506 */ 11441 11442barre_outils_edition={ 11443"nameSpace":"edition", 11444"previewAutoRefresh":false, 11445"onEnter":{ 11446"keepDefault":false, 11447"selectionType":"return", 11448"replaceWith":"\n" 11449}, 11450"onShiftEnter":{ 11451"keepDefault":false, 11452"replaceWith":"\n_ " 11453}, 11454"onCtrlEnter":{ 11455"keepDefault":false, 11456"replaceWith":"\n\n" 11457}, 11458"markupSet":[ 11459{ 11460"name":"Transformer en {{{intertitre}}}", 11461"key":"H", 11462"className":"outil_header1", 11463"openWith":"\n{{{", 11464"closeWith":"}}}\n", 11465"selectionType":"line" 11466}, 11467{ 11468"name":"Mettre en {{gras}}", 11469"key":"B", 11470"className":"outil_bold", 11471"replaceWith":function(h){return espace_si_accolade(h,'{{','}}');}, 11472"selectionType":"word" 11473}, 11474{ 11475"name":"Mettre en {italique}", 11476"key":"I", 11477"className":"outil_italic", 11478"replaceWith":function(h){return espace_si_accolade(h,'{','}');}, 11479"selectionType":"word" 11480}, 11481{ 11482"name":"Mettre en liste", 11483"className":"outil_liste_ul separateur_avant", 11484"replaceWith":function(h){return outil_liste(h,'*');}, 11485"selectionType":"line", 11486"forceMultiline":true, 11487"dropMenu":[ 11488{ 11489"id":"liste_ol", 11490"name":"Mettre en liste num\u00e9rot\u00e9e", 11491"className":"outil_liste_ol", 11492"replaceWith":function(h){return outil_liste(h,'#');}, 11493"display":true, 11494"selectionType":"line", 11495"forceMultiline":true 11496}, 11497{ 11498"id":"desindenter", 11499"name":"D\u00e9sindenter une liste", 11500"className":"outil_desindenter", 11501"replaceWith":function(h){return outil_desindenter(h);}, 11502"display":true, 11503"selectionType":"line", 11504"forceMultiline":true 11505}, 11506{ 11507"id":"indenter", 11508"name":"Indenter une liste", 11509"className":"outil_indenter", 11510"replaceWith":function(h){return outil_indenter(h);}, 11511"display":true, 11512"selectionType":"line", 11513"forceMultiline":true 11514} 11515] 11516}, 11517{ 11518"name":"Transformer en [lien hypertexte->http:\/\/...]", 11519"key":"L", 11520"className":"outil_link separateur separateur_apres sepLink", 11521"openWith":"[", 11522"closeWith":"->[![Veuillez indiquer l\u2019adresse de votre lien (vous pouvez indiquer une adresse Internet sous la forme http:\/\/www.monsite.com, une adresse courriel, ou simplement indiquer le num\u00e9ro d\u2019un article de ce site.]!]]" 11523}, 11524{ 11525"name":"Transformer en [[Note de bas de page]]", 11526"className":"outil_notes separateur_avant", 11527"openWith":"[[", 11528"closeWith":"]]", 11529"selectionType":"word" 11530}, 11531{ 11532"name":"<quote>Citer un message<\/quote>", 11533"key":"Q", 11534"className":"outil_quote separateur separateur_apres sepGuillemets", 11535"openWith":"\n<quote>", 11536"closeWith":"<\/quote>\n", 11537"selectionType":"word", 11538"dropMenu":[ 11539{ 11540"id":"barre_poesie", 11541"name":"Mettre en forme comme une <poesie>po\u00e9sie<\/poesie>", 11542"className":"outil_poesie", 11543"openWith":"\n<poesie>", 11544"closeWith":"<\/poesie>\n", 11545"display":true, 11546"selectionType":"line" 11547} 11548] 11549}, 11550{
11551"name":"Entourer de \u00ab\u00a0guillemets\u00a0\u00bb", 11552"className":"outil_guillemets", 11553"openWith":"«", 11554"closeWith":"»", 11555"lang":[ 11556"fr", 11557"eo", 11558"cpf", 11559"ar", 11560"es" 11561], 11562"selectionType":"word", 11563"dropMenu":[ 11564{ 11565"id":"guillemets_simples", 11566"name":"Entourer de \u201cguillemets de second niveau\u201d", 11567"className":"outil_guillemets_simples", 11568"openWith":"â", 11569"closeWith":"â", 11570"display":true, 11571"lang":[ 11572"fr", 11573"eo", 11574"cpf", 11575"ar", 11576"es" 11577], 11578"selectionType":"word" 11579} 11580] 11581}, 11582{ 11583"name":"Entourer de \u00ab\u00a0guillemets\u00a0\u00bb", 11584"className":"outil_guillemets_de", 11585"openWith":"â", 11586"closeWith":"â", 11587"lang":[ 11588"bg", 11589"de", 11590"pl", 11591"hr", 11592"src" 11593], 11594"selectionType":"word", 11595"dropMenu":[ 11596{ 11597"id":"guillemets_de_simples", 11598"name":"Entourer de \u201cguillemets de second niveau\u201d", 11599"className":"outil_guillemets_de_simples", 11600"openWith":"‚", 11601"closeWith":"â", 11602"display":true, 11603"lang":[ 11604"bg", 11605"de", 11606"pl", 11607"hr", 11608"src" 11609], 11610"selectionType":"word" 11611} 11612] 11613}, 11614{ 11615"name":"Entourer de \u00ab\u00a0guillemets\u00a0\u00bb", 11616"className":"outil_guillemets_simples separateur_avant", 11617"openWith":"â", 11618"closeWith":"â", 11619"lang_not":[ 11620"fr", 11621"eo", 11622"cpf", 11623"ar", 11624"es", 11625"bg", 11626"de", 11627"pl", 11628"hr", 11629"src" 11630], 11631"selectionType":"word", 11632"dropMenu":[ 11633{ 11634"id":"guillemets_autres_simples", 11635"name":"Entourer de \u201cguillemets de second niveau\u201d", 11636"className":"outil_guillemets_uniques", 11637"openWith":"â", 11638"closeWith":"â", 11639"display":true, 11640"lang_not":[ 11641"fr", 11642"eo", 11643"cpf", 11644"ar", 11645"es", 11646"bg", 11647"de", 11648"pl", 11649"hr", 11650"src" 11651], 11652"selectionType":"word" 11653} 11654] 11655}, 11656{ 11657"name":"Ins\u00e9rer des caract\u00e8res sp\u00e9cifiques", 11658"className":"outil_caracteres separateur separateur_apres sepCaracteres separateur_avant", 11659"dropMenu":[ 11660{ 11661"id":"A_grave", 11662"name":"Ins\u00e9rer un \u00c0", 11663"className":"outil_a_maj_grave", 11664"replaceWith":"Ã", 11665"display":true, 11666"lang":[ 11667"fr", 11668"eo", 11669"cpf" 11670] 11671}, 11672{ 11673"id":"E_aigu", 11674"name":"Ins\u00e9rer un \u00c9", 11675"className":"outil_e_maj_aigu", 11676"replaceWith":"Ã", 11677"display":true, 11678"lang":[ 11679"fr", 11680"eo", 11681"cpf" 11682] 11683}, 11684{ 11685"id":"E_grave", 11686"name":"Ins\u00e9rer un \u00c8", 11687"className":"outil_e_maj_grave", 11688"replaceWith":"Ã", 11689"display":true, 11690"lang":[ 11691"fr", 11692"eo", 11693"cpf" 11694] 11695}, 11696{ 11697"id":"aelig", 11698"name":"Ins\u00e9rer un \u00e6", 11699"className":"outil_aelig", 11700"replaceWith":"æ", 11701"display":true, 11702"lang":[ 11703"fr", 11704"eo", 11705"cpf" 11706] 11707}, 11708{ 11709"id":"AElig", 11710"name":"Ins\u00e9rer un \u00c6", 11711"className":"outil_aelig_maj", 11712"replaceWith":"Ã", 11713"display":true, 11714"lang":[ 11715"fr", 11716"eo", 11717"cpf" 11718] 11719}, 11720{ 11721"id":"oe", 11722"name":"Ins\u00e9rer un \u0153", 11723"className":"outil_oe", 11724"replaceWith":"Å", 11725"display":true, 11726"lang":[ 11727"fr" 11728] 11729}, 11730{ 11731"id":"OE", 11732"name":"Ins\u00e9rer un \u0152", 11733"className":"outil_oe_maj", 11734"replaceWith":"Å", 11735"display":true, 11736"lang":[ 11737"fr" 11738] 11739}, 11740{ 11741"id":"Ccedil", 11742"name":"Ins\u00e9rer un \u00c7", 11743"className":"outil_ccedil_maj", 11744"replaceWith":"Ã", 11745"display":true, 11746"lang":[ 11747"fr", 11748"eo", 11749"cpf" 11750] 11751}, 11752{ 11753"id":"uppercase", 11754"name":"Passer en majuscules", 11755"className":"outil_uppercase", 11756"replaceWith":function(markitup){return markitup.selection.toUpperCase()}, 11757"display":true, 11758"lang":[ 11759"fr", 11760"en" 11761] 11762}, 11763{ 11764"id":"lowercase", 11765"name":"Passer en minuscules", 11766"className":"outil_lowercase", 11767"replaceWith":function(markitup){return markitup.selection.toLowerCase()}, 11768"display":true, 11769"lang":[ 11770"fr", 11771"en" 11772] 11773} 11774] 11775}, 11776{ 11777"name":"Ins\u00e9rer un code informatique (`)", 11778"className":"outil_code separateur separateur_apres sepCode", 11779"openWith":"`", 11780"closeWith":"`", 11781"dropMenu":[ 11782{ 11783"id":"cadre", 11784"name":"Ins\u00e9rer un code pr\u00e9format\u00e9 (```)", 11785"className":"outil_cadre", 11786"openWith":"```\n", 11787"closeWith":"\n```", 11788"display":true 11789} 11790] 11791} 11792] 11793} 11794function outil_liste(h,c){ 11795if((s=h.selection)&&(r=s.match(/^-([*#]+) (.*)$/))){ 11796r[1]=r[1].replace(/[#*]/g,c); 11797s='-'+r[1]+' '+r[2]; 11798}else{ 11799s='-'+c+' '+s; 11800} 11801return s; 11802} 11803function outil_indenter(h){ 11804if(s=h.selection){ 11805if(s.substr(0,2)=='-*'){ 11806s='-**'+s.substr(2); 11807}else if(s.substr(0,2)=='-#'){ 11808s='-##'+s.substr(2); 11809}else{ 11810s='-* '+s; 11811} 11812} 11813return s; 11814} 11815function outil_desindenter(h){ 11816if(s=h.selection){ 11817if(s.substr(0,3)=='-**'){ 11818s='-*'+s.substr(3); 11819}else if(s.substr(0,3)=='-* '){ 11820s=s.substr(3); 11821}else if(s.substr(0,3)=='-##'){ 11822s='-#'+s.substr(3); 11823}else if(s.substr(0,3)=='-# '){ 11824s=s.substr(3); 11825} 11826} 11827return s; 11828} 11829function espace_si_accolade(h,openWith,closeWith){ 11830if(s=h.selection){ 11831if(s.charAt(0)=='{'){ 11832return openWith+' '+s+' '+closeWith; 11833} 11834else if(c=h.textarea.selectionStart){ 11835if(h.textarea.value.charAt(c-1)=='{'){ 11836return' '+openWith+s+closeWith+' '; 11837} 11838} 11839} 11840return openWith+s+closeWith; 11841} 11842barre_outils_forum={ 11843"nameSpace":"forum", 11844"previewAutoRefresh":false, 11845"onEnter":{ 11846"keepDefault":false, 11847"selectionType":"return", 11848"replaceWith":"\n" 11849}, 11850"onShiftEnter":{ 11851"keepDefault":false, 11852"replaceWith":"\n_ " 11853}, 11854"onCtrlEnter":{ 11855"keepDefault":false, 11856"replaceWith":"\n\n" 11857}, 11858"markupSet":[ 11859{ 11860"name":"Mettre en {{gras}}", 11861"key":"B", 11862"className":"outil_bold", 11863"replaceWith":function(h){return espace_si_accolade(h,'{{','}}');}, 11864"selectionType":"word" 11865}, 11866{ 11867"name":"Mettre en {italique}", 11868"key":"I", 11869"className":"outil_italic separateur_avant", 11870"replaceWith":function(h){return espace_si_accolade(h,'{','}');}, 11871"selectionType":"word" 11872}, 11873{ 11874"name":"Transformer en [lien hypertexte->http:\/\/...]", 11875"key":"L", 11876"className":"outil_link separateur separateur_apres sepLink separateur_avant", 11877"openWith":"[", 11878"closeWith":"->[![Veuillez indiquer l\u2019adresse de votre lien (vous pouvez indiquer une adresse Internet sous la forme http:\/\/www.monsite.com, une adresse courriel, ou simplement indiquer le num\u00e9ro d\u2019un article de ce site.]!]]" 11879}, 11880{ 11881"name":"<quote>Citer un message<\/quote>", 11882"key":"Q", 11883"className":"outil_quote separateur separateur_apres sepGuillemets", 11884"openWith":"\n<quote>", 11885"closeWith":"<\/quote>\n", 11886"selectionType":"word" 11887}, 11888{
11889"name":"Entourer de \u00ab\u00a0guillemets\u00a0\u00bb", 11890"className":"outil_guillemets", 11891"openWith":"«", 11892"closeWith":"»", 11893"lang":[ 11894"fr", 11895"eo", 11896"cpf", 11897"ar", 11898"es" 11899], 11900"selectionType":"word", 11901"dropMenu":[ 11902{ 11903"id":"guillemets_simples", 11904"name":"Entourer de \u201cguillemets de second niveau\u201d", 11905"className":"outil_guillemets_simples", 11906"openWith":"â", 11907"closeWith":"â", 11908"display":true, 11909"lang":[ 11910"fr", 11911"eo", 11912"cpf", 11913"ar", 11914"es" 11915], 11916"selectionType":"word" 11917} 11918] 11919}, 11920{ 11921"name":"Entourer de \u00ab\u00a0guillemets\u00a0\u00bb", 11922"className":"outil_guillemets_de", 11923"openWith":"â", 11924"closeWith":"â", 11925"lang":[ 11926"bg", 11927"de", 11928"pl", 11929"hr", 11930"src" 11931], 11932"selectionType":"word", 11933"dropMenu":[ 11934{ 11935"id":"guillemets_de_simples", 11936"name":"Entourer de \u201cguillemets de second niveau\u201d", 11937"className":"outil_guillemets_de_simples", 11938"openWith":"‚", 11939"closeWith":"â", 11940"display":true, 11941"lang":[ 11942"bg", 11943"de", 11944"pl", 11945"hr", 11946"src" 11947], 11948"selectionType":"word" 11949} 11950] 11951}, 11952{ 11953"name":"Entourer de \u00ab\u00a0guillemets\u00a0\u00bb", 11954"className":"outil_guillemets_simples separateur_avant", 11955"openWith":"â", 11956"closeWith":"â", 11957"lang_not":[ 11958"fr", 11959"eo", 11960"cpf", 11961"ar", 11962"es", 11963"bg", 11964"de", 11965"pl", 11966"hr", 11967"src" 11968], 11969"selectionType":"word", 11970"dropMenu":[ 11971{ 11972"id":"guillemets_autres_simples", 11973"name":"Entourer de \u201cguillemets de second niveau\u201d", 11974"className":"outil_guillemets_uniques", 11975"openWith":"â", 11976"closeWith":"â", 11977"display":true, 11978"lang_not":[ 11979"fr", 11980"eo", 11981"cpf", 11982"ar", 11983"es", 11984"bg", 11985"de", 11986"pl", 11987"hr", 11988"src" 11989], 11990"selectionType":"word" 11991} 11992] 11993} 11994] 11995} 11996function outil_liste(h,c){ 11997if((s=h.selection)&&(r=s.match(/^-([*#]+) (.*)$/))){ 11998r[1]=r[1].replace(/[#*]/g,c); 11999s='-'+r[1]+' '+r[2]; 12000}else{ 12001s='-'+c+' '+s; 12002} 12003return s; 12004} 12005function outil_indenter(h){ 12006if(s=h.selection){ 12007if(s.substr(0,2)=='-*'){ 12008s='-**'+s.substr(2); 12009}else if(s.substr(0,2)=='-#'){ 12010s='-##'+s.substr(2); 12011}else{ 12012s='-* '+s; 12013} 12014} 12015return s; 12016} 12017function outil_desindenter(h){ 12018if(s=h.selection){ 12019if(s.substr(0,3)=='-**'){ 12020s='-*'+s.substr(3); 12021}else if(s.substr(0,3)=='-* '){ 12022s=s.substr(3); 12023}else if(s.substr(0,3)=='-##'){ 12024s='-#'+s.substr(3); 12025}else if(s.substr(0,3)=='-# '){ 12026s=s.substr(3); 12027} 12028} 12029return s; 12030} 12031function espace_si_accolade(h,openWith,closeWith){ 12032if(s=h.selection){ 12033if(s.charAt(0)=='{'){ 12034return openWith+' '+s+' '+closeWith; 12035} 12036else if(c=h.textarea.selectionStart){ 12037if(h.textarea.value.charAt(c-1)=='{'){ 12038return' '+openWith+s+closeWith+' '; 12039} 12040} 12041} 12042return openWith+s+closeWith; 12043} 12044barre_outils_vide={ 12045"nameSpace":"vide", 12046"previewAutoRefresh":false, 12047"markupSet":[] 12048} 12049;(function($){ 12050$.fn.barre_outils=function(nom,settings){ 12051options={ 12052lang:'fr' 12053}; 12054$.extend(options,settings); 12055return $(this) 12056.not('.markItUpEditor, .no_barre') 12057.markItUp(eval('barre_outils_'+nom),{lang:options.lang}) 12058.trigger('markItUpEditor.loaded') 12059.parent().find('.markItUpButton a').attr('tabindex',-1) 12060.end(); 12061}; 12062$.fn.barre_previsualisation=function(settings){ 12063options={ 12064previewParserPath:"index.php?action=porte_plume_previsu", 12065textEditer:"Modifier", 12066textVoir:"Voir" 12067}; 12068$.extend(options,settings); 12069return $(this) 12070.not('.pp_previsualisation, .no_previsualisation') 12071.previsu_spip(options) 12072.trigger('markItUpPreview.loaded') 12073.parent().find('.markItUpTabs a').attr('tabindex',-1) 12074.end(); 12075}; 12076$(window).on('load',function(){ 12077function barrebouilles(){ 12078$('.formulaire_spip textarea.inserer_barre_forum').barre_outils('forum'); 12079$('.formulaire_spip textarea.inserer_barre_edition').barre_outils('edition'); 12080$('.formulaire_spip textarea.inserer_previsualisation').barre_previsualisation(); 12081$('textarea.textarea_forum').barre_outils('forum'); 12082$('.formulaire_forum textarea[name=texte]').barre_outils('forum'); 12083$('.formulaire_spip textarea[name=texte]') 12084.barre_outils('edition').end() 12085.barre_previsualisation(); 12086} 12087barrebouilles(); 12088onAjaxLoad(barrebouilles); 12089}); 12090})(jQuery); 12091 12092
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.