diff --git a/client/galaxy/scripts/mvc/tours.js b/client/galaxy/scripts/mvc/tours.js
index 6fd15b2dcb9..00f09965522 100644
--- a/client/galaxy/scripts/mvc/tours.js
+++ b/client/galaxy/scripts/mvc/tours.js
@@ -12,6 +12,20 @@ define(['libs/bootstrap-tour'],function(BootstrapTour) {
var gxy_root = typeof Galaxy === "undefined" ? '/' : Galaxy.root;
+ var tourpage_template = `
Galaxy Tours
+This page presents a list of interactive tours available on this Galaxy server.
+Select any tour to get started (and remember, you can click 'End Tour' at any time).
+`;
+
var tour_opts = { storage: window.sessionStorage,
onEnd: function(){
sessionStorage.removeItem('activeGalaxyTour');
@@ -94,20 +108,7 @@ define(['libs/bootstrap-tour'],function(BootstrapTour) {
},
render: function(){
- var tpl = _.template([
- "Galaxy Tours ",
- "This page presents a list of interactive tours available on this Galaxy server. ",
- "Select any tour to get started (and remember, you can click 'End Tour' at any time).
",
- "",
- '<% _.each(tours, function(tour) { %>',
- '',
- '>',
- '<%- tour.attributes.name || tour.id %>',
- ' ',
- ' - <%- tour.attributes.description || "No description given." %>',
- ' ',
- '<% }); %>',
- " "].join(''));
+ var tpl = _.template(tourpage_template);
this.$el.html(tpl({tours: this.model.models})).on("click", ".tourItem", function(e){
e.preventDefault();
giveTour($(this).data("tour.id"));
diff --git a/static/maps/mvc/tours.js.map b/static/maps/mvc/tours.js.map
index 770e3ba770e..c0690bf4b24 100644
--- a/static/maps/mvc/tours.js.map
+++ b/static/maps/mvc/tours.js.map
@@ -1 +1 @@
-{"version":3,"sources":["mvc/tours.js"],"names":["define","BootstrapTour","gxy_root","Galaxy","root","storage","sessionStorage","onEnd","removeItem","orphan","hooked_tour_from_data","data","_","each","steps","step","preclick","postclick","onHide","textinsert","onShown","$","element","val","trigger","TourItem","Backbone","Model","extend","urlRoot","Tours","Collection","url","model","giveTour","tour_id","getJSON","tourdata","JSON","stringify","tour","Tour","init","goTo","ToursView","View","initialize","this","self","setElement","fetch","success","error","console","render","tpl","template","e","tour_opts","join","$el","html","tours","models","on","preventDefault"],"mappings":"YAUAA,SAAQ,uBAAuB,SAASC,GAAxCD,GAAQE,GAAuB,mBAAvBC,QAAgCF,IAAeE,OAAAC,KAE/CF,GAAWG,QAAOF,OAAWG,eAGfC,MAAO,WADPF,eAAgBC,WAAlB,qBAEMA,MAAeE,IAFrBC,QAAA,GAAhBC,EAAA,SAAAC,GAiCS,MAxBLC,GAAEC,KAAKF,EAAKG,MAAO,SAASC,GAD5BL,EAAAA,WACOC,EAAKG,OAAO,WACXC,EAAKC,KAAAA,EAASA,SAAA,SAAAA,GAERH,EAAFG,GAAYA,YAIfD,EALDE,YAMHF,EAAAG,OAAA,WACGH,EAAKE,KAAAA,EAAUA,UAAA,SAAAA,GAETJ,EAAFI,GAAYA,YAIfF,EALDI,aASAJ,EAAAK,QAAA,WACAC,EAAAN,EAAAO,SAAAC,IAAAR,EAAAI,YAAAK,QAAA,cAIHb,GAzBTc,EAAAC,SAAAC,MAAAC,QA+BEC,QAAS3B,EAAW,cADtB4B,EAAAJ,SAAAK,WAAAH,QAKEI,IAAM9B,EAAW,YADnB+B,MAAIH,IAMAI,EAAY,SAASC,GAArBD,GAAAA,GAAAA,EAAAA,aAAYC,CACZd,GAAAe,QAAUlC,EAAAA,SAAWS,GAEjB,GAAA0B,GAAA3B,EAAAC,EACAL,gBAAeI,QAAAA,mBAAf4B,KAAAC,UAAA5B,GAEA,IAAA6B,GAAA,GAAAC,MAAA7B,EAAAgB,QACIY,MAAOH,EAASzB,OAChBE,GAEJ0B,GAAAE,OACAF,EAAKE,KAAL,GACAF,EAAKG,YA2Cb,QAAQC,UAvDRlB,SAAAmB,KAAAjB,QAiBIkB,WAAA,WACAA,GAAAA,GAAYC,IACRA,MAAIC,WAAJ,UACAD,KAAKE,MAAAA,GAAWnB,GAChBiB,KAAKd,MAALiB,OACAC,QAAWD,WACTC,EAAAA,UAECC,MAHc,WAKbC,QAAAD,MAAA,8BAMRE,OAAQ,WAARA,GAAQC,GAAA3C,EAAA4C,UACAD,wBAcJ,uFACIE,2FACAvB,OAFJ,uCAIH,OApCL,gFA0BwB,yCAaLU,OACXlC,mEACWgD,QACXxB,YA9GZ,SAAAyB,KAAA,IAoGYZ,MAAKa,IAAIC,KAAKN,GAAKO,MAAOf,KAAKd,MAAM8B,UAAUC,GAAG,QAAS,YAAa,SAASP,GAC7EA,EAAEQ,iBACF/B,EAASb,EAAE0B,MAAMpC,KAAK,iBAM1BD,sBAAuBA,EACvBgD,UAAWA,EACXxB,SAAUA","file":"../../scripts/mvc/tours.js","sourcesContent":["/**\n * This is the primary galaxy tours definition, currently only used for\n * rendering a tour menu.\n *\n * For now it's intended to be plunked into the center display a-la\n * Galaxy.app.display, but we could use a modal as well for more flexibility.\n *\n * DBTODO - This is downright backbone abuse, rewrite it.\n */\n\ndefine(['libs/bootstrap-tour'],function(BootstrapTour) {\n\n var gxy_root = typeof Galaxy === \"undefined\" ? '/' : Galaxy.root;\n\n var tour_opts = { storage: window.sessionStorage,\n onEnd: function(){\n sessionStorage.removeItem('activeGalaxyTour');\n },\n delay: 150, // Attempts to make it look natural\n orphan:true\n };\n\n var hooked_tour_from_data = function(data){\n _.each(data.steps, function(step) {\n if (step.preclick){\n step.onShow= function(){\n _.each(step.preclick, function(preclick){\n // TODO: click delay between clicks\n $(preclick).click();\n });\n };\n }\n if (step.postclick){\n step.onHide = function(){\n _.each(step.postclick, function(postclick){\n // TODO: click delay between clicks\n $(postclick).click();\n });\n };\n }\n if (step.textinsert){\n // Have to manually trigger a change here, for some\n // elements which have additional logic, like the\n // upload input box\n step.onShown= function(){\n $(step.element).val(step.textinsert).trigger(\"change\");\n };\n }\n });\n return data;\n };\n\n var TourItem = Backbone.Model.extend({\n urlRoot: gxy_root + 'api/tours',\n });\n\n var Tours = Backbone.Collection.extend({\n url: gxy_root + 'api/tours',\n model: TourItem,\n });\n\n\n var giveTour = function(tour_id){\n var url = gxy_root + 'api/tours/' + tour_id;\n $.getJSON( url, function( data ) {\n // Set hooks for additional click and data entry actions.\n var tourdata = hooked_tour_from_data(data);\n sessionStorage.setItem('activeGalaxyTour', JSON.stringify(data));\n // Store tour steps in sessionStorage to easily persist w/o hackery.\n var tour = new Tour(_.extend({\n steps: tourdata.steps,\n }, tour_opts));\n // Always clean restart, since this is a new, explicit giveTour execution.\n tour.init();\n tour.goTo(0);\n tour.restart();\n });\n };\n var ToursView = Backbone.View.extend({\n // initialize\n initialize: function() {\n var self = this;\n this.setElement('
');\n this.model = new Tours();\n this.model.fetch({\n success: function(){\n self.render();\n },\n error: function(){\n // Do something.\n console.error(\"Failed to fetch tours.\");\n }\n });\n },\n\n render: function(){\n var tpl = _.template([\n \"Galaxy Tours \",\n \"This page presents a list of interactive tours available on this Galaxy server. \",\n \"Select any tour to get started (and remember, you can click 'End Tour' at any time).
\",\n \"\",\n '<% _.each(tours, function(tour) { %>',\n '',\n '\" class=\"tourItem\" data-tour.id=<%- tour.id %>>',\n '<%- tour.attributes.name || tour.id %>',\n ' ',\n ' - <%- tour.attributes.description || \"No description given.\" %>',\n ' ',\n '<% }); %>',\n \" \"].join(''));\n this.$el.html(tpl({tours: this.model.models})).on(\"click\", \".tourItem\", function(e){\n e.preventDefault();\n giveTour($(this).data(\"tour.id\"));\n });\n }\n });\n\n return {ToursView: ToursView,\n hooked_tour_from_data: hooked_tour_from_data,\n tour_opts: tour_opts,\n giveTour: giveTour};\n});\n"]}
\ No newline at end of file
+{"version":3,"sources":["mvc/tours.js"],"names":["define","BootstrapTour","gxy_root","Galaxy","root","tour_opts","preclick","window","sessionStorage","onShow","removeItem","$","orphan","hooked_tour_from_data","data","step","_","postclick","click","onHide","onShown","textinsert","element","val","trigger","TourItem","extend","getJSON","url","model","tour","init","tour_id","goTo","restart","tourdata","ToursView","Backbone","JSON","stringify","initialize","Tour","self","steps","success","View","this","setElement","Tours","render","fetch","html","giveTour","console","error","$el","tpl","tours","models","on","e","preventDefault"],"mappings":"YAUAA,SAAQ,uBAAuB,SAASC,GAAxCD,GAAQE,GAAuB,mBAAvBC,QAAgCF,IAAeE,OAAAC,KA4B3CC,GAASC,QAASC,OAAAC,eACTC,MAAL,WACID,eAAAE,WAA+BJ,qBAE3BK,MAAEL,IAFNM,QAAA,GAMRC,EAAmB,SAAAC,GAwB3B,MAvBYC,GAAAA,KAAAA,EAAAA,MAAA,SAAcA,GACVC,EAAAA,WACID,EAAAN,OAAA,WACAE,EAAAA,KAAEM,EAAAA,SAAF,SAAAX,GAHRK,EAAAL,GAAAY,YASAH,EAAAE,YACAF,EAAAI,OAAA,WACAJ,EAAKK,KAAAA,EAASH,UAAU,SAAAA,GAAxBN,EAAAM,GAAAC,YAtBZH,EAAAM,aA8BAN,EAAAK,QAAA,WAPgBT,EAAEI,EAAKO,SAASC,IAAIR,EAAKM,YAAYG,QAAQ,cAW7DV,GAOIW,EAAUvB,SAAAA,MAAWwB,QACrBf,QAAEgB,EAAc,cAGZnB,EAAAA,SAAAA,WAAuBkB,QACvBE,IAAA1B,EAAA,YACA2B,MAAAJ,IAIAK,EAAKC,SAALC,GACAF,GAAAA,GAAKG,EAAL,aAAAD,CACAF,GAAAA,QAAKI,EAAL,SAAApB,GAbR,GAAAqB,GAAAtB,EAAAC,EAgBIsB,gBAAYC,QAAcX,mBAAOY,KAAAC,UAAAzB,GAEjC0B,IAAAA,GAAY,GAAAC,MAAAzB,EAAAU,QACJgB,MAAOP,EAAXQ,OACAtC,GAEAyB,GAAKD,OACHe,EAAAA,KAAAA,GACEF,EAAAA,YAkBZ,QAAQN,UAfIC,SAAAQ,KAAAnB,QAEDc,WAAA,WAPc,GAAjBE,GAAAI,IAN6BA,MAAAC,WAAA,UAK7BD,KAAKjB,MAAQ,GAAImB,GAYrBC,KAAQpB,MAAAqB,OACJN,QAAU5B,WACV0B,EAASS,UAELC,MAAAA,WAEPC,QAAAC,MAAA,8BAKGjD,OAAAA,WACA+C,GAAAA,GAAUA,EAAAA,SA7GdlD,8fAFR4C,MAAAS,IAAAJ,KAAAK,GAAAC,MAAAX,KAAAjB,MAAA6B,UAAAC,GAAA,QAAA,YAAA,SAAAC,GAsGgBA,EAAEC,iBACFT,EAASzC,EAAEmC,MAAMhC,KAAK,iBAM1BD,sBAAuBA,EACvBR,UAAWA,EACX+C,SAAUA","file":"../../scripts/mvc/tours.js","sourcesContent":["/**\n * This is the primary galaxy tours definition, currently only used for\n * rendering a tour menu.\n *\n * For now it's intended to be plunked into the center display a-la\n * Galaxy.app.display, but we could use a modal as well for more flexibility.\n *\n * DBTODO - This is downright backbone abuse, rewrite it.\n */\n\ndefine(['libs/bootstrap-tour'],function(BootstrapTour) {\n\n var gxy_root = typeof Galaxy === \"undefined\" ? '/' : Galaxy.root;\n\n var tourpage_template = `Galaxy Tours \nThis page presents a list of interactive tours available on this Galaxy server.\nSelect any tour to get started (and remember, you can click 'End Tour' at any time).
\n`;\n\n var tour_opts = { storage: window.sessionStorage,\n onEnd: function(){\n sessionStorage.removeItem('activeGalaxyTour');\n },\n delay: 150, // Attempts to make it look natural\n orphan:true\n };\n\n var hooked_tour_from_data = function(data){\n _.each(data.steps, function(step) {\n if (step.preclick){\n step.onShow= function(){\n _.each(step.preclick, function(preclick){\n // TODO: click delay between clicks\n $(preclick).click();\n });\n };\n }\n if (step.postclick){\n step.onHide = function(){\n _.each(step.postclick, function(postclick){\n // TODO: click delay between clicks\n $(postclick).click();\n });\n };\n }\n if (step.textinsert){\n // Have to manually trigger a change here, for some\n // elements which have additional logic, like the\n // upload input box\n step.onShown= function(){\n $(step.element).val(step.textinsert).trigger(\"change\");\n };\n }\n });\n return data;\n };\n\n var TourItem = Backbone.Model.extend({\n urlRoot: gxy_root + 'api/tours',\n });\n\n var Tours = Backbone.Collection.extend({\n url: gxy_root + 'api/tours',\n model: TourItem,\n });\n\n\n var giveTour = function(tour_id){\n var url = gxy_root + 'api/tours/' + tour_id;\n $.getJSON( url, function( data ) {\n // Set hooks for additional click and data entry actions.\n var tourdata = hooked_tour_from_data(data);\n sessionStorage.setItem('activeGalaxyTour', JSON.stringify(data));\n // Store tour steps in sessionStorage to easily persist w/o hackery.\n var tour = new Tour(_.extend({\n steps: tourdata.steps,\n }, tour_opts));\n // Always clean restart, since this is a new, explicit giveTour execution.\n tour.init();\n tour.goTo(0);\n tour.restart();\n });\n };\n var ToursView = Backbone.View.extend({\n // initialize\n initialize: function() {\n var self = this;\n this.setElement('
');\n this.model = new Tours();\n this.model.fetch({\n success: function(){\n self.render();\n },\n error: function(){\n // Do something.\n console.error(\"Failed to fetch tours.\");\n }\n });\n },\n\n render: function(){\n var tpl = _.template(tourpage_template);\n this.$el.html(tpl({tours: this.model.models})).on(\"click\", \".tourItem\", function(e){\n e.preventDefault();\n giveTour($(this).data(\"tour.id\"));\n });\n }\n });\n\n return {ToursView: ToursView,\n hooked_tour_from_data: hooked_tour_from_data,\n tour_opts: tour_opts,\n giveTour: giveTour};\n});\n"]}
\ No newline at end of file
diff --git a/static/scripts/bundled/libs.bundled.js b/static/scripts/bundled/libs.bundled.js
index 3c63995d523..1799120f9d0 100644
--- a/static/scripts/bundled/libs.bundled.js
+++ b/static/scripts/bundled/libs.bundled.js
@@ -21,7 +21,7 @@
*
* Date: 2015-10-17
*/
-function(t){function e(t,e,i,n){var s,o,r,a,u,h,d,p,f=e&&e.ownerDocument,g=e?e.nodeType:9;if(i=i||[],"string"!=typeof t||!t||1!==g&&9!==g&&11!==g)return i;if(!n&&((e?e.ownerDocument||e:I)!==D&&N(e),e=e||D,M)){if(11!==g&&(h=gt.exec(t)))if(s=h[1]){if(9===g){if(!(r=e.getElementById(s)))return i;if(r.id===s)return i.push(r),i}else if(f&&(r=f.getElementById(s))&&H(e,r)&&r.id===s)return i.push(r),i}else{if(h[2])return J.apply(i,e.getElementsByTagName(t)),i;if((s=h[3])&&b.getElementsByClassName&&e.getElementsByClassName)return J.apply(i,e.getElementsByClassName(s)),i}if(b.qsa&&!z[t+" "]&&(!P||!P.test(t))){if(1!==g)f=e,p=t;else if("object"!==e.nodeName.toLowerCase()){for((a=e.getAttribute("id"))?a=a.replace(vt,"\\$&"):e.setAttribute("id",a=L),d=C(t),o=d.length,u=ct.test(a)?"#"+a:"[id='"+a+"']";o--;)d[o]=u+" "+c(d[o]);p=d.join(","),f=mt.test(t)&&l(e.parentNode)||e}if(p)try{return J.apply(i,f.querySelectorAll(p)),i}catch(t){}finally{a===L&&e.removeAttribute("id")}}}return k(t.replace(ot,"$1"),e,i,n)}function i(){function t(i,n){return e.push(i+" ")>w.cacheLength&&delete t[e.shift()],t[i+" "]=n}var e=[];return t}function n(t){return t[L]=!0,t}function s(t){var e=D.createElement("div");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function o(t,e){for(var i=t.split("|"),n=i.length;n--;)w.attrHandle[i[n]]=e}function r(t,e){var i=e&&t,n=i&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||U)-(~t.sourceIndex||U);if(n)return n;if(i)for(;i=i.nextSibling;)if(i===e)return-1;return t?1:-1}function a(t){return n(function(e){return e=+e,n(function(i,n){for(var s,o=t([],i.length,e),r=o.length;r--;)i[s=o[r]]&&(i[s]=!(n[s]=i[s]))})})}function l(t){return t&&void 0!==t.getElementsByTagName&&t}function u(){}function c(t){for(var e=0,i=t.length,n="";e1?function(e,i,n){for(var s=t.length;s--;)if(!t[s](e,i,n))return!1;return!0}:t[0]}function p(t,i,n){for(var s=0,o=i.length;s-1&&(n[u]=!(r[u]=h))}}else b=f(b===r?b.splice(m,b.length):b),o?o(null,r,b,l):J.apply(r,b)})}function m(t){for(var e,i,n,s=t.length,o=w.relative[t[0].type],r=o||w.relative[" "],a=o?1:0,l=h(function(t){return t===e},r,!0),u=h(function(t){return K(e,t)>-1},r,!0),p=[function(t,i,n){var s=!o&&(n||i!==T)||((e=i).nodeType?l(t,i,n):u(t,i,n));return e=null,s}];a1&&d(p),a>1&&c(t.slice(0,a-1).concat({value:" "===t[a-2].type?"*":""})).replace(ot,"$1"),i,a0,o=t.length>0,r=function(n,r,a,l,u){var c,h,d,p=0,g="0",m=n&&[],v=[],y=T,b=n||o&&w.find.TAG("*",u),_=$+=null==y?1:Math.random()||.1,x=b.length;for(u&&(T=r===D||r||u);g!==x&&null!=(c=b[g]);g++){if(o&&c){for(h=0,r||c.ownerDocument===D||(N(c),a=!M);d=t[h++];)if(d(c,r||D,a)){l.push(c);break}u&&($=_)}s&&((c=!d&&c)&&p--,n&&m.push(c))}if(p+=g,s&&g!==p){for(h=0;d=i[h++];)d(m,v,r,a);if(n){if(p>0)for(;g--;)m[g]||v[g]||(v[g]=X.call(l));v=f(v)}J.apply(l,v),u&&!n&&v.length>0&&p+i.length>1&&e.uniqueSort(l)}return u&&($=_,T=y),m};return s?n(r):r}var y,b,w,_,x,C,S,k,T,E,A,N,D,O,M,P,j,R,H,L="sizzle"+1*new Date,I=t.document,$=0,F=0,q=i(),W=i(),z=i(),B=function(t,e){return t===e&&(A=!0),0},U=1<<31,V={}.hasOwnProperty,G=[],X=G.pop,Y=G.push,J=G.push,Q=G.slice,K=function(t,e){for(var i=0,n=t.length;i+~]|"+tt+")"+tt+"*"),lt=new RegExp("="+tt+"*([^\\]'\"]*?)"+tt+"*\\]","g"),ut=new RegExp(nt),ct=new RegExp("^"+et+"$"),ht={ID:new RegExp("^#("+et+")"),CLASS:new RegExp("^\\.("+et+")"),TAG:new RegExp("^("+et+"|[*])"),ATTR:new RegExp("^"+it),PSEUDO:new RegExp("^"+nt),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+tt+"*(even|odd|(([+-]|)(\\d*)n|)"+tt+"*(?:([+-]|)"+tt+"*(\\d+)|))"+tt+"*\\)|)","i"),bool:new RegExp("^(?:"+Z+")$","i"),needsContext:new RegExp("^"+tt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+tt+"*((?:-\\d)?\\d*)"+tt+"*\\)|)(?=[^-]|$)","i")},dt=/^(?:input|select|textarea|button)$/i,pt=/^h\d$/i,ft=/^[^{]+\{\s*\[native \w/,gt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,mt=/[+~]/,vt=/'|\\/g,yt=new RegExp("\\\\([\\da-f]{1,6}"+tt+"?|("+tt+")|.)","ig"),bt=function(t,e,i){var n="0x"+e-65536;return n!==n||i?e:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)},wt=function(){N()};try{J.apply(G=Q.call(I.childNodes),I.childNodes),G[I.childNodes.length].nodeType}catch(t){J={apply:G.length?function(t,e){Y.apply(t,Q.call(e))}:function(t,e){for(var i=t.length,n=0;t[i++]=e[n++];);t.length=i-1}}}b=e.support={},x=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},N=e.setDocument=function(t){var e,i,n=t?t.ownerDocument||t:I;return n!==D&&9===n.nodeType&&n.documentElement?(D=n,O=D.documentElement,M=!x(D),(i=D.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",wt,!1):i.attachEvent&&i.attachEvent("onunload",wt)),b.attributes=s(function(t){return t.className="i",!t.getAttribute("className")}),b.getElementsByTagName=s(function(t){return t.appendChild(D.createComment("")),!t.getElementsByTagName("*").length}),b.getElementsByClassName=ft.test(D.getElementsByClassName),b.getById=s(function(t){return O.appendChild(t).id=L,!D.getElementsByName||!D.getElementsByName(L).length}),b.getById?(w.find.ID=function(t,e){if(void 0!==e.getElementById&&M){var i=e.getElementById(t);return i?[i]:[]}},w.filter.ID=function(t){var e=t.replace(yt,bt);return function(t){return t.getAttribute("id")===e}}):(delete w.find.ID,w.filter.ID=function(t){var e=t.replace(yt,bt);return function(t){var i=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return i&&i.value===e}}),w.find.TAG=b.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):b.qsa?e.querySelectorAll(t):void 0}:function(t,e){var i,n=[],s=0,o=e.getElementsByTagName(t);if("*"===t){for(;i=o[s++];)1===i.nodeType&&n.push(i);return n}return o},w.find.CLASS=b.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&M)return e.getElementsByClassName(t)},j=[],P=[],(b.qsa=ft.test(D.querySelectorAll))&&(s(function(t){O.appendChild(t).innerHTML=" ",t.querySelectorAll("[msallowcapture^='']").length&&P.push("[*^$]="+tt+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||P.push("\\["+tt+"*(?:value|"+Z+")"),t.querySelectorAll("[id~="+L+"-]").length||P.push("~="),t.querySelectorAll(":checked").length||P.push(":checked"),t.querySelectorAll("a#"+L+"+*").length||P.push(".#.+[+~]")}),s(function(t){var e=D.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&P.push("name"+tt+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||P.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),P.push(",.*:")})),(b.matchesSelector=ft.test(R=O.matches||O.webkitMatchesSelector||O.mozMatchesSelector||O.oMatchesSelector||O.msMatchesSelector))&&s(function(t){b.disconnectedMatch=R.call(t,"div"),R.call(t,"[s!='']:x"),j.push("!=",nt)}),P=P.length&&new RegExp(P.join("|")),j=j.length&&new RegExp(j.join("|")),e=ft.test(O.compareDocumentPosition),H=e||ft.test(O.contains)?function(t,e){var i=9===t.nodeType?t.documentElement:t,n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},B=e?function(t,e){if(t===e)return A=!0,0;var i=!t.compareDocumentPosition-!e.compareDocumentPosition;return i||(i=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&i||!b.sortDetached&&e.compareDocumentPosition(t)===i?t===D||t.ownerDocument===I&&H(I,t)?-1:e===D||e.ownerDocument===I&&H(I,e)?1:E?K(E,t)-K(E,e):0:4&i?-1:1)}:function(t,e){if(t===e)return A=!0,0;var i,n=0,s=t.parentNode,o=e.parentNode,a=[t],l=[e];if(!s||!o)return t===D?-1:e===D?1:s?-1:o?1:E?K(E,t)-K(E,e):0;if(s===o)return r(t,e);for(i=t;i=i.parentNode;)a.unshift(i);for(i=e;i=i.parentNode;)l.unshift(i);for(;a[n]===l[n];)n++;return n?r(a[n],l[n]):a[n]===I?-1:l[n]===I?1:0},D):D},e.matches=function(t,i){return e(t,null,null,i)},e.matchesSelector=function(t,i){if((t.ownerDocument||t)!==D&&N(t),i=i.replace(lt,"='$1']"),b.matchesSelector&&M&&!z[i+" "]&&(!j||!j.test(i))&&(!P||!P.test(i)))try{var n=R.call(t,i);if(n||b.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){}return e(i,D,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==D&&N(t),H(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==D&&N(t);var i=w.attrHandle[e.toLowerCase()],n=i&&V.call(w.attrHandle,e.toLowerCase())?i(t,e,!M):void 0;return void 0!==n?n:b.attributes||!M?t.getAttribute(e):(n=t.getAttributeNode(e))&&n.specified?n.value:null},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,i=[],n=0,s=0;if(A=!b.detectDuplicates,E=!b.sortStable&&t.slice(0),t.sort(B),A){for(;e=t[s++];)e===t[s]&&(n=i.push(s));for(;n--;)t.splice(i[n],1)}return E=null,t},_=e.getText=function(t){var e,i="",n=0,s=t.nodeType;if(s){if(1===s||9===s||11===s){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)i+=_(t)}else if(3===s||4===s)return t.nodeValue}else for(;e=t[n++];)i+=_(e);return i},w=e.selectors={cacheLength:50,createPseudo:n,match:ht,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(yt,bt),t[3]=(t[3]||t[4]||t[5]||"").replace(yt,bt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||e.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&e.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2];return ht.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&ut.test(i)&&(e=C(i,!0))&&(e=i.indexOf(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(yt,bt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=q[t+" "];return e||(e=new RegExp("(^|"+tt+")"+t+"("+tt+"|$)"))&&q(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,i,n){return function(s){var o=e.attr(s,t);return null==o?"!="===i:!i||(o+="","="===i?o===n:"!="===i?o!==n:"^="===i?n&&0===o.indexOf(n):"*="===i?n&&o.indexOf(n)>-1:"$="===i?n&&o.slice(-n.length)===n:"~="===i?(" "+o.replace(st," ")+" ").indexOf(n)>-1:"|="===i&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,i,n,s){var o="nth"!==t.slice(0,3),r="last"!==t.slice(-4),a="of-type"===e;return 1===n&&0===s?function(t){return!!t.parentNode}:function(e,i,l){var u,c,h,d,p,f,g=o!==r?"nextSibling":"previousSibling",m=e.parentNode,v=a&&e.nodeName.toLowerCase(),y=!l&&!a,b=!1;if(m){if(o){for(;g;){for(d=e;d=d[g];)if(a?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;f=g="only"===t&&!f&&"nextSibling"}return!0}if(f=[r?m.firstChild:m.lastChild],r&&y){for(d=m,h=d[L]||(d[L]={}),c=h[d.uniqueID]||(h[d.uniqueID]={}),u=c[t]||[],p=u[0]===$&&u[1],b=p&&u[2],d=p&&m.childNodes[p];d=++p&&d&&d[g]||(b=p=0)||f.pop();)if(1===d.nodeType&&++b&&d===e){c[t]=[$,p,b];break}}else if(y&&(d=e,h=d[L]||(d[L]={}),c=h[d.uniqueID]||(h[d.uniqueID]={}),u=c[t]||[],p=u[0]===$&&u[1],b=p),!1===b)for(;(d=++p&&d&&d[g]||(b=p=0)||f.pop())&&((a?d.nodeName.toLowerCase()!==v:1!==d.nodeType)||!++b||(y&&(h=d[L]||(d[L]={}),c=h[d.uniqueID]||(h[d.uniqueID]={}),c[t]=[$,b]),d!==e)););return(b-=s)===n||b%n==0&&b/n>=0}}},PSEUDO:function(t,i){var s,o=w.pseudos[t]||w.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return o[L]?o(i):o.length>1?(s=[t,t,"",i],w.setFilters.hasOwnProperty(t.toLowerCase())?n(function(t,e){for(var n,s=o(t,i),r=s.length;r--;)n=K(t,s[r]),t[n]=!(e[n]=s[r])}):function(t){return o(t,0,s)}):o}},pseudos:{not:n(function(t){var e=[],i=[],s=S(t.replace(ot,"$1"));return s[L]?n(function(t,e,i,n){for(var o,r=s(t,null,n,[]),a=t.length;a--;)(o=r[a])&&(t[a]=!(e[a]=o))}):function(t,n,o){return e[0]=t,s(e,null,o,i),e[0]=null,!i.pop()}}),has:n(function(t){return function(i){return e(t,i).length>0}}),contains:n(function(t){return t=t.replace(yt,bt),function(e){return(e.textContent||e.innerText||_(e)).indexOf(t)>-1}}),lang:n(function(t){return ct.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(yt,bt).toLowerCase(),function(e){var i;do{if(i=M?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(i=i.toLowerCase())===t||0===i.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var i=t.location&&t.location.hash;return i&&i.slice(1)===e.id},root:function(t){return t===O},focus:function(t){return t===D.activeElement&&(!D.hasFocus||D.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return!1===t.disabled},disabled:function(t){return!0===t.disabled},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!w.pseudos.empty(t)},header:function(t){return pt.test(t.nodeName)},input:function(t){return dt.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:a(function(){return[0]}),last:a(function(t,e){return[e-1]}),eq:a(function(t,e,i){return[i<0?i+e:i]}),even:a(function(t,e){for(var i=0;i=0;)t.push(n);return t}),gt:a(function(t,e,i){for(var n=i<0?i+e:i;++n2&&"ID"===(r=o[0]).type&&b.getById&&9===e.nodeType&&M&&w.relative[o[1].type]){if(!(e=(w.find.ID(r.matches[0].replace(yt,bt),e)||[])[0]))return i;h&&(e=e.parentNode),t=t.slice(o.shift().value.length)}for(s=ht.needsContext.test(t)?0:o.length;s--&&(r=o[s],!w.relative[a=r.type]);)if((u=w.find[a])&&(n=u(r.matches[0].replace(yt,bt),mt.test(o[0].type)&&l(e.parentNode)||e))){if(o.splice(s,1),!(t=n.length&&c(o)))return J.apply(i,n),i;break}}return(h||S(t,d))(n,e,!M,i,!e||mt.test(t)&&l(e.parentNode)||e),i},b.sortStable=L.split("").sort(B).join("")===L,b.detectDuplicates=!!A,N(),b.sortDetached=s(function(t){return 1&t.compareDocumentPosition(D.createElement("div"))}),s(function(t){return t.innerHTML=" ","#"===t.firstChild.getAttribute("href")})||o("type|href|height|width",function(t,e,i){if(!i)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),b.attributes&&s(function(t){return t.innerHTML=" ",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||o("value",function(t,e,i){if(!i&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),s(function(t){return null==t.getAttribute("disabled")})||o(Z,function(t,e,i){var n;if(!i)return!0===t[e]?e.toLowerCase():(n=t.getAttributeNode(e))&&n.specified?n.value:null}),e}(i);mt.find=yt,mt.expr=yt.selectors,mt.expr[":"]=mt.expr.pseudos,mt.uniqueSort=mt.unique=yt.uniqueSort,mt.text=yt.getText,mt.isXMLDoc=yt.isXML,mt.contains=yt.contains;var bt=function(t,e,i){for(var n=[],s=void 0!==i;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(s&&mt(t).is(i))break;n.push(t)}return n},wt=function(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i},_t=mt.expr.match.needsContext,xt=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,Ct=/^.[^:#\[\.,]*$/;mt.filter=function(t,e,i){var n=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===n.nodeType?mt.find.matchesSelector(n,t)?[n]:[]:mt.find.matches(t,mt.grep(e,function(t){return 1===t.nodeType}))},mt.fn.extend({find:function(t){var e,i=[],n=this,s=n.length;if("string"!=typeof t)return this.pushStack(mt(t).filter(function(){for(e=0;e1?mt.unique(i):i),i.selector=this.selector?this.selector+" "+t:t,i},filter:function(t){return this.pushStack(a(this,t||[],!1))},not:function(t){return this.pushStack(a(this,t||[],!0))},is:function(t){return!!a(this,"string"==typeof t&&_t.test(t)?mt(t):t||[],!1).length}});var St,kt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(mt.fn.init=function(t,e,i){var n,s;if(!t)return this;if(i=i||St,"string"==typeof t){if(!(n="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&t.length>=3?[null,t,null]:kt.exec(t))||!n[1]&&e)return!e||e.jquery?(e||i).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof mt?e[0]:e,mt.merge(this,mt.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:at,!0)),xt.test(n[1])&&mt.isPlainObject(e))for(n in e)mt.isFunction(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}if((s=at.getElementById(n[2]))&&s.parentNode){if(s.id!==n[2])return St.find(t);this.length=1,this[0]=s}return this.context=at,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):mt.isFunction(t)?void 0!==i.ready?i.ready(t):t(mt):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),mt.makeArray(t,this))}).prototype=mt.fn,St=mt(at);var Tt=/^(?:parents|prev(?:Until|All))/,Et={children:!0,contents:!0,next:!0,prev:!0};mt.fn.extend({has:function(t){var e,i=mt(t,this),n=i.length;return this.filter(function(){for(e=0;e-1:1===i.nodeType&&mt.find.matchesSelector(i,t))){o.push(i);break}return this.pushStack(o.length>1?mt.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?mt.inArray(this[0],mt(t)):mt.inArray(t.jquery?t[0]:t,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(mt.uniqueSort(mt.merge(this.get(),mt(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),mt.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return bt(t,"parentNode")},parentsUntil:function(t,e,i){return bt(t,"parentNode",i)},next:function(t){return l(t,"nextSibling")},prev:function(t){return l(t,"previousSibling")},nextAll:function(t){return bt(t,"nextSibling")},prevAll:function(t){return bt(t,"previousSibling")},nextUntil:function(t,e,i){return bt(t,"nextSibling",i)},prevUntil:function(t,e,i){return bt(t,"previousSibling",i)},siblings:function(t){return wt((t.parentNode||{}).firstChild,t)},children:function(t){return wt(t.firstChild)},contents:function(t){return mt.nodeName(t,"iframe")?t.contentDocument||t.contentWindow.document:mt.merge([],t.childNodes)}},function(t,e){mt.fn[t]=function(i,n){var s=mt.map(this,e,i);return"Until"!==t.slice(-5)&&(n=i),n&&"string"==typeof n&&(s=mt.filter(n,s)),this.length>1&&(Et[t]||(s=mt.uniqueSort(s)),Tt.test(t)&&(s=s.reverse())),this.pushStack(s)}});var At=/\S+/g;mt.Callbacks=function(t){t="string"==typeof t?u(t):mt.extend({},t);var e,i,n,s,o=[],r=[],a=-1,l=function(){for(s=t.once,n=e=!0;r.length;a=-1)for(i=r.shift();++a-1;)o.splice(i,1),i<=a&&a--}),this},has:function(t){return t?mt.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return s=r=[],o=i="",this},disabled:function(){return!o},lock:function(){return s=!0,i||c.disable(),this},locked:function(){return!!s},fireWith:function(t,i){return s||(i=i||[],i=[t,i.slice?i.slice():i],r.push(i),e||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!n}};return c},mt.extend({Deferred:function(t){var e=[["resolve","done",mt.Callbacks("once memory"),"resolved"],["reject","fail",mt.Callbacks("once memory"),"rejected"],["notify","progress",mt.Callbacks("memory")]],i="pending",n={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},then:function(){var t=arguments;return mt.Deferred(function(i){mt.each(e,function(e,o){var r=mt.isFunction(t[e])&&t[e];s[o[1]](function(){var t=r&&r.apply(this,arguments);t&&mt.isFunction(t.promise)?t.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[o[0]+"With"](this===n?i.promise():this,r?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?mt.extend(t,n):n}},s={};return n.pipe=n.then,mt.each(e,function(t,o){var r=o[2],a=o[3];n[o[1]]=r.add,a&&r.add(function(){i=a},e[1^t][2].disable,e[2][2].lock),s[o[0]]=function(){return s[o[0]+"With"](this===s?n:this,arguments),this},s[o[0]+"With"]=r.fireWith}),n.promise(s),t&&t.call(s,s),s},when:function(t){var e,i,n,s=0,o=lt.call(arguments),r=o.length,a=1!==r||t&&mt.isFunction(t.promise)?r:0,l=1===a?t:mt.Deferred(),u=function(t,i,n){return function(s){i[t]=this,n[t]=arguments.length>1?lt.call(arguments):s,n===e?l.notifyWith(i,n):--a||l.resolveWith(i,n)}};if(r>1)for(e=new Array(r),i=new Array(r),n=new Array(r);s0||(Nt.resolveWith(at,[mt]),mt.fn.triggerHandler&&(mt(at).triggerHandler("ready"),mt(at).off("ready"))))}}),mt.ready.promise=function(t){if(!Nt)if(Nt=mt.Deferred(),"complete"===at.readyState||"loading"!==at.readyState&&!at.documentElement.doScroll)i.setTimeout(mt.ready);else if(at.addEventListener)at.addEventListener("DOMContentLoaded",h),i.addEventListener("load",h);else{at.attachEvent("onreadystatechange",h),i.attachEvent("onload",h);var e=!1;try{e=null==i.frameElement&&at.documentElement}catch(t){}e&&e.doScroll&&function t(){if(!mt.isReady){try{e.doScroll("left")}catch(e){return i.setTimeout(t,50)}c(),mt.ready()}}()}return Nt.promise(t)},mt.ready.promise();var Dt;for(Dt in mt(gt))break;gt.ownFirst="0"===Dt,gt.inlineBlockNeedsLayout=!1,mt(function(){var t,e,i,n;(i=at.getElementsByTagName("body")[0])&&i.style&&(e=at.createElement("div"),n=at.createElement("div"),n.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",i.appendChild(n).appendChild(e),void 0!==e.style.zoom&&(e.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",gt.inlineBlockNeedsLayout=t=3===e.offsetWidth,t&&(i.style.zoom=1)),i.removeChild(n))}),function(){var t=at.createElement("div");gt.deleteExpando=!0;try{delete t.test}catch(t){gt.deleteExpando=!1}t=null}();var Ot=function(t){var e=mt.noData[(t.nodeName+" ").toLowerCase()],i=+t.nodeType||1;return(1===i||9===i)&&(!e||!0!==e&&t.getAttribute("classid")===e)},Mt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Pt=/([A-Z])/g;mt.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(t){return!!(t=t.nodeType?mt.cache[t[mt.expando]]:t[mt.expando])&&!p(t)},data:function(t,e,i){return f(t,e,i)},removeData:function(t,e){return g(t,e)},_data:function(t,e,i){return f(t,e,i,!0)},_removeData:function(t,e){return g(t,e,!0)}}),mt.fn.extend({data:function(t,e){var i,n,s,o=this[0],r=o&&o.attributes;if(void 0===t){if(this.length&&(s=mt.data(o),1===o.nodeType&&!mt._data(o,"parsedAttrs"))){for(i=r.length;i--;)r[i]&&(n=r[i].name,0===n.indexOf("data-")&&(n=mt.camelCase(n.slice(5)),d(o,n,s[n])));mt._data(o,"parsedAttrs",!0)}return s}return"object"==typeof t?this.each(function(){mt.data(this,t)}):arguments.length>1?this.each(function(){mt.data(this,t,e)}):o?d(o,t,mt.data(o,t)):void 0},removeData:function(t){return this.each(function(){mt.removeData(this,t)})}}),mt.extend({queue:function(t,e,i){var n;if(t)return e=(e||"fx")+"queue",n=mt._data(t,e),i&&(!n||mt.isArray(i)?n=mt._data(t,e,mt.makeArray(i)):n.push(i)),n||[]},dequeue:function(t,e){e=e||"fx";var i=mt.queue(t,e),n=i.length,s=i.shift(),o=mt._queueHooks(t,e),r=function(){mt.dequeue(t,e)};"inprogress"===s&&(s=i.shift(),n--),s&&("fx"===e&&i.unshift("inprogress"),delete o.stop,s.call(t,r,o)),!n&&o&&o.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks";return mt._data(t,i)||mt._data(t,i,{empty:mt.Callbacks("once memory").add(function(){mt._removeData(t,e+"queue"),mt._removeData(t,i)})})}}),mt.fn.extend({queue:function(t,e){var i=2;return"string"!=typeof t&&(e=t,t="fx",i--),arguments.lengtha ",gt.leadingWhitespace=3===t.firstChild.nodeType,gt.tbody=!t.getElementsByTagName("tbody").length,gt.htmlSerialize=!!t.getElementsByTagName("link").length,gt.html5Clone="<:nav>"!==at.createElement("nav").cloneNode(!0).outerHTML,i.type="checkbox",i.checked=!0,e.appendChild(i),gt.appendChecked=i.checked,t.innerHTML="",gt.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue,e.appendChild(t),i=at.createElement("input"),i.setAttribute("type","radio"),i.setAttribute("checked","checked"),i.setAttribute("name","t"),t.appendChild(i),gt.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,gt.noCloneEvent=!!t.addEventListener,t[mt.expando]=1,gt.attributes=!t.getAttribute(mt.expando)}();var Bt={option:[1,""," "],legend:[1,""," "],area:[1,""," "],param:[1,""," "],thead:[1,""],tr:[2,""],col:[2,""],td:[3,""],_default:gt.htmlSerialize?[0,"",""]:[1,"X","
"]};Bt.optgroup=Bt.option,Bt.tbody=Bt.tfoot=Bt.colgroup=Bt.caption=Bt.thead,Bt.th=Bt.td;var Ut=/<|?\w+;/,Vt=/-1&&(f=p.split("."),p=f.shift(),f.sort()),r=p.indexOf(":")<0&&"on"+p,t=t[mt.expando]?t:new mt.Event(p,"object"==typeof t&&t),t.isTrigger=s?2:3,t.namespace=f.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:mt.makeArray(e,[t]),u=mt.event.special[p]||{},s||!u.trigger||!1!==u.trigger.apply(n,e))){if(!s&&!u.noBubble&&!mt.isWindow(n)){for(l=u.delegateType||p,Jt.test(l+p)||(a=a.parentNode);a;a=a.parentNode)d.push(a),c=a;c===(n.ownerDocument||at)&&d.push(c.defaultView||c.parentWindow||i)}for(h=0;(a=d[h++])&&!t.isPropagationStopped();)t.type=h>1?l:u.bindType||p,o=(mt._data(a,"events")||{})[t.type]&&mt._data(a,"handle"),o&&o.apply(a,e),(o=r&&a[r])&&o.apply&&Ot(a)&&(t.result=o.apply(a,e),!1===t.result&&t.preventDefault());if(t.type=p,!s&&!t.isDefaultPrevented()&&(!u._default||!1===u._default.apply(d.pop(),e))&&Ot(n)&&r&&n[p]&&!mt.isWindow(n)){c=n[r],c&&(n[r]=null),mt.event.triggered=p;try{n[p]()}catch(t){}mt.event.triggered=void 0,c&&(n[r]=c)}return t.result}},dispatch:function(t){t=mt.event.fix(t);var e,i,n,s,o,r=[],a=lt.call(arguments),l=(mt._data(this,"events")||{})[t.type]||[],u=mt.event.special[t.type]||{};if(a[0]=t,t.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,t)){for(r=mt.event.handlers.call(this,t,l),e=0;(s=r[e++])&&!t.isPropagationStopped();)for(t.currentTarget=s.elem,i=0;(o=s.handlers[i++])&&!t.isImmediatePropagationStopped();)t.rnamespace&&!t.rnamespace.test(o.namespace)||(t.handleObj=o,t.data=o.data,void 0!==(n=((mt.event.special[o.origType]||{}).handle||o.handler).apply(s.elem,a))&&!1===(t.result=n)&&(t.preventDefault(),t.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,t),t.result}},handlers:function(t,e){var i,n,s,o,r=[],a=e.delegateCount,l=t.target;if(a&&l.nodeType&&("click"!==t.type||isNaN(t.button)||t.button<1))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==t.type)){for(n=[],i=0;i-1:mt.find(s,this,null,[l]).length),n[s]&&n.push(o);n.length&&r.push({elem:l,handlers:n})}return a ]","i"),Zt=/