new (function(k){var r=k.separator||"&",p=k.spaces===false?false:true,s=k.suffix===false?"":"[]",t=(s=k.prefix===false?false:true)?k.hash===true?"#":"?":"",u=k.numbers===false?false:true;jQuery.query=new (function(){function f(a,b){return a!=undefined&&a!==null&&(b?a.constructor==b:true)}function q(a){for(var b=/\[([^[]*)\]/g,c=/^([^[]+)(\[.*\])?$/.exec(a),e=c[1],d=[];a=b.exec(c[2]);)d.push(a[1]);return[e,d]}function l(a,b,c){var e=b.shift();if(typeof a!="object")a=null;if(e===""){a||(a=[]);if(f(a,
Array))a.push(b.length==0?c:l(null,b.slice(0),c));else if(f(a,Object)){for(e=0;a[e++]!=null;);a[--e]=b.length==0?c:l(a[e],b.slice(0),c)}else{a=[];a.push(b.length==0?c:l(null,b.slice(0),c))}}else if(e&&e.match(/^\s*[0-9]+\s*$/)){var d=parseInt(e,10);a||(a=[]);a[d]=b.length==0?c:l(a[d],b.slice(0),c)}else if(e){d=e.replace(/^\s*|\s*$/g,"");a||(a={});if(f(a,Array)){var h={};for(e=0;e<a.length;++e)h[e]=a[e];a=h}a[d]=b.length==0?c:l(a[d],b.slice(0),c)}else return c;return a}function n(a){var b=this;b.keys=
{};a.queryObject?jQuery.each(a.get(),function(c,e){b.SET(c,e)}):jQuery.each(arguments,function(){var c=""+this;c=c.replace(/^[?#]/,"");c=c.replace(/[;&]$/,"");if(p)c=c.replace(/[+]/g," ");jQuery.each(c.split(/[&;]/),function(){var e=decodeURIComponent(this.split("=")[0]||""),d=decodeURIComponent(this.split("=")[1]||"");if(e){if(u)if(/^[+-]?[0-9]+\.[0-9]*$/.test(d))d=parseFloat(d);else if(/^[+-]?[0-9]+$/.test(d))d=parseInt(d,10);d=!d&&d!==0?true:d;if(d!==false&&d!==true&&typeof d!="number")d=d;b.SET(e,
d)}})});return b}n.prototype={queryObject:true,has:function(a,b){a=this.get(a);return f(a,b)},GET:function(a){if(!f(a))return this.keys;var b=q(a);a=b[0];b=b[1];for(a=this.keys[a];a!=null&&b.length!=0;)a=a[b.shift()];return typeof a=="number"?a:a||""},get:function(a){a=this.GET(a);if(f(a,Object))return jQuery.extend(true,{},a);else if(f(a,Array))return a.slice(0);return a},SET:function(a,b){b=!f(b)?null:b;var c=q(a);a=c[0];c=c[1];var e=this.keys[a];this.keys[a]=l(e,c.slice(0),b);return this},set:function(a,
b){return this.copy().SET(a,b)},REMOVE:function(a){return this.SET(a,null).COMPACT()},remove:function(a){return this.copy().REMOVE(a)},EMPTY:function(){var a=this;jQuery.each(a.keys,function(b,c){delete a.keys[b]});return a},load:function(a){var b=a.replace(/^.*?[#](.+?)(?:\?.+)?$/,"$1"),c=a.replace(/^.*?[?](.+?)(?:#.+)?$/,"$1");return new n(a.length==c.length?"":c,a.length==b.length?"":b)},empty:function(){return this.copy().EMPTY()},copy:function(){return new n(this)},COMPACT:function(){function a(b){var c=
typeof b=="object"?f(b,Array)?[]:{}:b;if(typeof b=="object"){function e(d,h,g){if(f(d,Array))d.push(g);else d[h]=g}jQuery.each(b,function(d,h){if(!f(h))return true;e(c,d,a(h))})}return c}this.keys=a(this.keys);return this},compact:function(){return this.copy().COMPACT()},toString:function(){var a=0;a=[];var b=[],c=this;function e(g){g+="";if(p)g=g.replace(/ /g,"+");return encodeURIComponent(g)}function d(g,i,j){if(!(!f(j)||j===false)){i=[e(i)];if(j!==true){i.push("=");i.push(e(j))}g.push(i.join(""))}}
function h(g,i){function j(m){return!i||i==""?""+m:[i,"[",m,"]"].join("")}jQuery.each(g,function(m,o){typeof o=="object"?h(o,j(m)):d(b,j(m),o)})}h(this.keys);b.length>0&&a.push(t);a.push(b.join(r));return a.join("")}};return new n(location.search,location.hash)})})(jQuery.query||{});