<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fc0 solid; padding: 6px; }
#msg ul, pre { overflow: auto; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<title>[15526] trunk: munge admin-table.js &amp; minify jquery.query</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/15526">15526</a></dd>
<dt>Author</dt> <dd>scribu</dd>
<dt>Date</dt> <dd>2010-08-23 21:44:25 +0000 (Mon, 23 Aug 2010)</dd>
</dl>

<h3>Log Message</h3>
<pre>munge admin-table.js &amp; minify jquery.query</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpadminjsadmintablejs">trunk/wp-admin/js/admin-table.js</a></li>
<li><a href="#trunkwpincludesjsjqueryjqueryqueryjs">trunk/wp-includes/js/jquery/jquery.query.js</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpadminjsadmintablejs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/admin-table.js (15525 => 15526)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/admin-table.js        2010-08-23 21:31:42 UTC (rev 15525)
+++ trunk/wp-admin/js/admin-table.js        2010-08-23 21:44:25 UTC (rev 15526)
</span><span class="lines">@@ -1 +1 @@
</span><del>-var adminTable;jQuery(document).ready(function(a){adminTable={init:function(){this.loading=false;a(&quot;form&quot;).each(function(){this.reset()});if(&quot;&quot;==a.query.GET(&quot;paged&quot;)){a.query.SET(&quot;paged&quot;,1)}this.set_total_pages();this.$tbody=a(&quot;#the-list, #the-comment-list&quot;);this.$overlay=a('&lt;div id=&quot;loading-items&gt;').html(adminTableL10n.loading).hide().prependTo(a(&quot;body&quot;))},set_total_pages:function(){this.total_pages=parseInt(a(&quot;.total-pages&quot;).eq(0).text())},get_total_pages:function(){return this.total_pages},change_page:function(b){if(b&lt;1||b&gt;this.total_pages){return false}this.update_rows({paged:b})},change_search:function(b){this.update_rows({s:b},true,function(){a(&quot;h2 .subtitle&quot;).remove();if(b){a(&quot;h2&quot;).eq(0).append(a('&lt;span class=&quot;subtitle&quot;&gt;').html(adminTableL10n.search.replace(&quot;%s&quot;,this.htmlencode(b))))}})},htmlencode:function(b){return a(&quot;&lt;div/&gt;&quot;).text(b).html()},update_rows:function(c,b,f){if(this.loading){return false}var e=false;a.each(c,function(g,h){if(h!=a.query.GET(g)){a.query.SET(g,h);e=true}});if(!e){return false}this.show_overlay();if(b){a.query.SET(&quot;paged&quot;,1)}var d=a.query.get();this._callback=f;this.fetch_list(d,a.proxy(this,&quot;handle_success&quot;),a.proxy(this,&quot;handle_error&quot;));return true},fetch_list:function(c,d,b){c=a.extend(c,{action:&quot;fetch-list&quot;,list_args:list_args,});a.ajax({url:ajaxurl,global:false,dataType:&quot;json&quot;,data:c,success:d,error:b,})},handle_success:function(b){if(&quot;object&quot;!=typeof b){this.handle_error()}else{this.hide_overlay();this.$tbody.html(b.rows);a(&quot;.displaying-num&quot;).html(b.total_items);a(&quot;.total-pages&quot;).html(b.total_pages);this.set_total_pages();a(&quot;.current-page&quot;).val(a.query.GET(&quot;paged&quot;));if(this._callback){this._callback()}}},handle_error:function(){this.hide_overlay();a(&quot;h2&quot;).after('&lt;div class=&quot;error ajax below-h2&quot;&gt;&lt;p&gt;'+adminTableL10n.error+&quot;&lt;/p&gt;&lt;/div&gt;&quot;)},show_overlay:function(){this.loading=true;a(&quot;.error.ajax&quot;).remove();this.$overlay.css({width:this.$tbody.width()+&quot;px&quot;,height:this.$tbody.height()-20+&quot;px&quot;}).css(this.$tbody.offset()).show()},hide_overlay:function(){this.loading=false;this.$overlay.hide()}};adminTable.init();a(&quot;.tablenav-pages a&quot;).click(function(){var b=a.query.GET(&quot;paged&quot;);switch(a(this).attr(&quot;class&quot;)){case&quot;first-page&quot;:b=1;break;case&quot;prev-page&quot;:b-=1;break;case&quot;next-page&quot;:b+=1;break;case&quot;last-page&quot;:b=adminTable.get_total_pages();break}adminTable.change_page(b);return false});a(&quot;.current-page&quot;).keypress(function(b){if(13!=b.keyCode){return}adminTable.change_page(parseInt(a(this).val()));return false});a(&quot;th a&quot;).click(function(){var d=a.query.GET(&quot;orderby&quot;),b=a.query.GET(&quot;order&quot;),c=a(this).parent(&quot;th&quot;);if(c.hasClass(&quot;sortable&quot;)){d=a.query.load(a(this).attr(&quot;href&quot;)).get(&quot;orderby&quot;);b=&quot;asc&quot;;a(&quot;th.sorted-desc, th.sorted-asc&quot;).removeClass(&quot;sorted-asc&quot;).removeClass(&quot;sorted-desc&quot;).addClass(&quot;sortable&quot;);c.removeClass(&quot;sortable&quot;).addClass(&quot;sorted-asc&quot;)}else{if(c.hasClass(&quot;sorted-asc&quot;)){b=&quot;desc&quot;;c.removeClass(&quot;sorted-asc&quot;).addClass(&quot;sorted-desc&quot;)}else{if(c.hasClass(&quot;sorted-desc&quot;)){b=&quot;asc&quot;;c.removeClass(&quot;sorted-desc&quot;).addClass(&quot;sorted-asc&quot;)}}}adminTable.update_rows({orderby:d,order:b},true);return false});a(&quot;.search-box :submit&quot;).click(function(){adminTable.change_search(a(this).parent(&quot;.search-box&quot;).find(&quot;:text&quot;).val());return false});a(&quot;.search-box :text&quot;).keypress(function(b){if(13!=b.keyCode){return}adminTable.change_search(a(this).val());return false});a(&quot;#post-query-submit&quot;).click(function(){var c,d,b={};a(this).parents(&quot;.actions&quot;).find('select[name!=&quot;action&quot;]').each(function(){var e=a(this);b[e.attr(&quot;name&quot;)]=e.val()});adminTable.update_rows(b,true);return false});a(&quot;.view-switch a&quot;).click(function(){var b=a(this);adminTable.update_rows({mode:a.query.load(b.attr(&quot;href&quot;)).get(&quot;mode&quot;)},false,function(){a(&quot;.view-switch .current&quot;).removeClass(&quot;current&quot;);b.addClass(&quot;current&quot;)});return false})});
</del><span class="cx">\ No newline at end of file
</span><ins>+jQuery(document).ready(function(a){window.adminTable={init:function(){this.loading=false;a(&quot;form&quot;).each(function(){this.reset()});if(&quot;&quot;==a.query.GET(&quot;paged&quot;)){a.query.SET(&quot;paged&quot;,1)}this.set_total_pages();this.$tbody=a(&quot;#the-list, #the-comment-list&quot;);this.$overlay=a('&lt;div id=&quot;loading-items&gt;').html(adminTableL10n.loading).hide().prependTo(a(&quot;body&quot;))},set_total_pages:function(){this.total_pages=parseInt(a(&quot;.total-pages&quot;).eq(0).text())},get_total_pages:function(){return this.total_pages},change_page:function(b){if(b&lt;1||b&gt;this.total_pages){return false}this.update_rows({paged:b})},change_search:function(b){this.update_rows({s:b},true,function(){a(&quot;h2 .subtitle&quot;).remove();if(b){a(&quot;h2&quot;).eq(0).append(a('&lt;span class=&quot;subtitle&quot;&gt;').html(adminTableL10n.search.replace(&quot;%s&quot;,this.htmlencode(b))))}})},htmlencode:function(b){return a(&quot;&lt;div/&gt;&quot;).text(b).html()},update_rows:function(c,b,f){if(this.loading){return false}var e=false;a.each(c,function(g,h){if(h!=a.query.GET(g)){a.query.SET(g,h);e=true}});if(!e){return false}this.show_overlay();if(b){a.query.SET(&quot;paged&quot;,1)}var d=a.query.get();this._callback=f;this.fetch_list(d,a.proxy(this,&quot;handle_success&quot;),a.proxy(this,&quot;handle_error&quot;));return true},fetch_list:function(c,d,b){c=a.extend(c,{action:&quot;fetch-list&quot;,list_args:list_args,});a.ajax({url:ajaxurl,global:false,dataType:&quot;json&quot;,data:c,success:d,error:b,})},handle_success:function(b){if(&quot;object&quot;!=typeof b){this.handle_error()}else{this.hide_overlay();this.$tbody.html(b.rows);a(&quot;.displaying-num&quot;).html(b.total_items);a(&quot;.total-pages&quot;).html(b.total_pages);this.set_total_pages();a(&quot;.current-page&quot;).val(a.query.GET(&quot;paged&quot;));if(this._callback){this._callback()}}},handle_error:function(){this.hide_overlay();a(&quot;h2&quot;).after('&lt;div class=&quot;error ajax below-h2&quot;&gt;&lt;p&gt;'+adminTableL10n.error+&quot;&lt;/p&gt;&lt;/div&gt;&quot;)},show_overlay:function(){this.loading=true;a(&quot;.error.ajax&quot;).remove();this.$overlay.css({width:this.$tbody.width()+&quot;px&quot;,height:this.$tbody.height()-20+&quot;px&quot;}).css(this.$tbody.offset()).show()},hide_overlay:function(){this.loading=false;this.$overlay.hide()}};adminTable.init();a(&quot;.tablenav-pages a&quot;).click(function(){var b=a.query.GET(&quot;paged&quot;);switch(a(this).attr(&quot;class&quot;)){case&quot;first-page&quot;:b=1;break;case&quot;prev-page&quot;:b-=1;break;case&quot;next-page&quot;:b+=1;break;case&quot;last-page&quot;:b=adminTable.get_total_pages();break}adminTable.change_page(b);return false});a(&quot;.current-page&quot;).keypress(function(b){if(13!=b.keyCode){return}adminTable.change_page(parseInt(a(this).val()));return false});a(&quot;th a&quot;).click(function(){var d=a.query.GET(&quot;orderby&quot;),b=a.query.GET(&quot;order&quot;),c=a(this).parent(&quot;th&quot;);if(c.hasClass(&quot;sortable&quot;)){d=a.query.load(a(this).attr(&quot;href&quot;)).get(&quot;orderby&quot;);b=&quot;asc&quot;;a(&quot;th.sorted-desc, th.sorted-asc&quot;).removeClass(&quot;sorted-asc&quot;).removeClass(&quot;sorted-desc&quot;).addClass(&quot;sortable&quot;);c.removeClass(&quot;sortable&quot;).addClass(&quot;sorted-asc&quot;)}else{if(c.hasClass(&quot;sorted-asc&quot;)){b=&quot;desc&quot;;c.removeClass(&quot;sorted-asc&quot;).addClass(&quot;sorted-desc&quot;)}else{if(c.hasClass(&quot;sorted-desc&quot;)){b=&quot;asc&quot;;c.removeClass(&quot;sorted-desc&quot;).addClass(&quot;sorted-asc&quot;)}}}adminTable.update_rows({orderby:d,order:b},true);return false});a(&quot;.search-box :submit&quot;).click(function(){adminTable.change_search(a(this).parent(&quot;.search-box&quot;).find(&quot;:text&quot;).val());return false});a(&quot;.search-box :text&quot;).keypress(function(b){if(13!=b.keyCode){return}adminTable.change_search(a(this).val());return false});a(&quot;#post-query-submit&quot;).click(function(){var c,d,b={};a(this).parents(&quot;.actions&quot;).find('select[name!=&quot;action&quot;]').each(function(){var e=a(this);b[e.attr(&quot;name&quot;)]=e.val()});adminTable.update_rows(b,true);return false});a(&quot;.view-switch a&quot;).click(function(){var b=a(this);adminTable.update_rows({mode:a.query.load(b.attr(&quot;href&quot;)).get(&quot;mode&quot;)},false,function(){a(&quot;.view-switch .current&quot;).removeClass(&quot;current&quot;);b.addClass(&quot;current&quot;)});return false})});
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludesjsjqueryjqueryqueryjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/jquery/jquery.query.js (15525 => 15526)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/jquery/jquery.query.js        2010-08-23 21:31:42 UTC (rev 15525)
+++ trunk/wp-includes/js/jquery/jquery.query.js        2010-08-23 21:44:25 UTC (rev 15526)
</span><span class="lines">@@ -8,217 +8,4 @@
</span><span class="cx">  * @version 2.1.7
</span><span class="cx">  *
</span><span class="cx">  **/
</span><del>-new function(settings) { 
-  // Various Settings
-  var $separator = settings.separator || '&amp;';
-  var $spaces = settings.spaces === false ? false : true;
-  var $suffix = settings.suffix === false ? '' : '[]';
-  var $prefix = settings.prefix === false ? false : true;
-  var $hash = $prefix ? settings.hash === true ? &quot;#&quot; : &quot;?&quot; : &quot;&quot;;
-  var $numbers = settings.numbers === false ? false : true;
-  
-  jQuery.query = new function() {
-    var is = function(o, t) {
-      return o != undefined &amp;&amp; o !== null &amp;&amp; (!!t ? o.constructor == t : true);
-    };
-    var parse = function(path) {
-      var m, rx = /\[([^[]*)\]/g, match = /^([^[]+)(\[.*\])?$/.exec(path), base = match[1], tokens = [];
-      while (m = rx.exec(match[2])) tokens.push(m[1]);
-      return [base, tokens];
-    };
-    var set = function(target, tokens, value) {
-      var o, token = tokens.shift();
-      if (typeof target != 'object') target = null;
-      if (token === &quot;&quot;) {
-        if (!target) target = [];
-        if (is(target, Array)) {
-          target.push(tokens.length == 0 ? value : set(null, tokens.slice(0), value));
-        } else if (is(target, Object)) {
-          var i = 0;
-          while (target[i++] != null);
-          target[--i] = tokens.length == 0 ? value : set(target[i], tokens.slice(0), value);
-        } else {
-          target = [];
-          target.push(tokens.length == 0 ? value : set(null, tokens.slice(0), value));
-        }
-      } else if (token &amp;&amp; token.match(/^\s*[0-9]+\s*$/)) {
-        var index = parseInt(token, 10);
-        if (!target) target = [];
-        target[index] = tokens.length == 0 ? value : set(target[index], tokens.slice(0), value);
-      } else if (token) {
-        var index = token.replace(/^\s*|\s*$/g, &quot;&quot;);
-        if (!target) target = {};
-        if (is(target, Array)) {
-          var temp = {};
-          for (var i = 0; i &lt; target.length; ++i) {
-            temp[i] = target[i];
-          }
-          target = temp;
-        }
-        target[index] = tokens.length == 0 ? value : set(target[index], tokens.slice(0), value);
-      } else {
-        return value;
-      }
-      return target;
-    };
-    
-    var queryObject = function(a) {
-      var self = this;
-      self.keys = {};
-      
-      if (a.queryObject) {
-        jQuery.each(a.get(), function(key, val) {
-          self.SET(key, val);
-        });
-      } else {
-        jQuery.each(arguments, function() {
-          var q = &quot;&quot; + this;
-          q = q.replace(/^[?#]/,''); // remove any leading ? || #
-          q = q.replace(/[;&amp;]$/,''); // remove any trailing &amp; || ;
-          if ($spaces) q = q.replace(/[+]/g,' '); // replace +'s with spaces
-          
-          jQuery.each(q.split(/[&amp;;]/), function(){
-            var key = decodeURIComponent(this.split('=')[0] || &quot;&quot;);
-            var val = decodeURIComponent(this.split('=')[1] || &quot;&quot;);
-            
-            if (!key) return;
-            
-            if ($numbers) {
-              if (/^[+-]?[0-9]+\.[0-9]*$/.test(val)) // simple float regex
-                val = parseFloat(val);
-              else if (/^[+-]?[0-9]+$/.test(val)) // simple int regex
-                val = parseInt(val, 10);
-            }
-            
-            val = (!val &amp;&amp; val !== 0) ? true : val;
-            
-            if (val !== false &amp;&amp; val !== true &amp;&amp; typeof val != 'number')
-              val = val;
-            
-            self.SET(key, val);
-          });
-        });
-      }
-      return self;
-    };
-    
-    queryObject.prototype = {
-      queryObject: true,
-      has: function(key, type) {
-        var value = this.get(key);
-        return is(value, type);
-      },
-      GET: function(key) {
-        if (!is(key)) return this.keys;
-        var parsed = parse(key), base = parsed[0], tokens = parsed[1];
-        var target = this.keys[base];
-        while (target != null &amp;&amp; tokens.length != 0) {
-          target = target[tokens.shift()];
-        }
-        return typeof target == 'number' ? target : target || &quot;&quot;;
-      },
-      get: function(key) {
-        var target = this.GET(key);
-        if (is(target, Object))
-          return jQuery.extend(true, {}, target);
-        else if (is(target, Array))
-          return target.slice(0);
-        return target;
-      },
-      SET: function(key, val) {
-        var value = !is(val) ? null : val;
-        var parsed = parse(key), base = parsed[0], tokens = parsed[1];
-        var target = this.keys[base];
-        this.keys[base] = set(target, tokens.slice(0), value);
-        return this;
-      },
-      set: function(key, val) {
-        return this.copy().SET(key, val);
-      },
-      REMOVE: function(key) {
-        return this.SET(key, null).COMPACT();
-      },
-      remove: function(key) {
-        return this.copy().REMOVE(key);
-      },
-      EMPTY: function() {
-        var self = this;
-        jQuery.each(self.keys, function(key, value) {
-          delete self.keys[key];
-        });
-        return self;
-      },
-      load: function(url) {
-        var hash = url.replace(/^.*?[#](.+?)(?:\?.+)?$/, &quot;$1&quot;);
-        var search = url.replace(/^.*?[?](.+?)(?:#.+)?$/, &quot;$1&quot;);
-        return new queryObject(url.length == search.length ? '' : search, url.length == hash.length ? '' : hash);
-      },
-      empty: function() {
-        return this.copy().EMPTY();
-      },
-      copy: function() {
-        return new queryObject(this);
-      },
-      COMPACT: function() {
-        function build(orig) {
-          var obj = typeof orig == &quot;object&quot; ? is(orig, Array) ? [] : {} : orig;
-          if (typeof orig == 'object') {
-            function add(o, key, value) {
-              if (is(o, Array))
-                o.push(value);
-              else
-                o[key] = value;
-            }
-            jQuery.each(orig, function(key, value) {
-              if (!is(value)) return true;
-              add(obj, key, build(value));
-            });
-          }
-          return obj;
-        }
-        this.keys = build(this.keys);
-        return this;
-      },
-      compact: function() {
-        return this.copy().COMPACT();
-      },
-      toString: function() {
-        var i = 0, queryString = [], chunks = [], self = this;
-        var encode = function(str) {
-          str = str + &quot;&quot;;
-          if ($spaces) str = str.replace(/ /g, &quot;+&quot;);
-          return encodeURIComponent(str);
-        };
-        var addFields = function(arr, key, value) {
-          if (!is(value) || value === false) return;
-          var o = [encode(key)];
-          if (value !== true) {
-            o.push(&quot;=&quot;);
-            o.push(encode(value));
-          }
-          arr.push(o.join(&quot;&quot;));
-        };
-        var build = function(obj, base) {
-          var newKey = function(key) {
-            return !base || base == &quot;&quot; ? [key].join(&quot;&quot;) : [base, &quot;[&quot;, key, &quot;]&quot;].join(&quot;&quot;);
-          };
-          jQuery.each(obj, function(key, value) {
-            if (typeof value == 'object') 
-              build(value, newKey(key));
-            else
-              addFields(chunks, newKey(key), value);
-          });
-        };
-        
-        build(this.keys);
-        
-        if (chunks.length &gt; 0) queryString.push($hash);
-        queryString.push(chunks.join($separator));
-        
-        return queryString.join(&quot;&quot;);
-      }
-    };
-    
-    return new queryObject(location.search, location.hash);
-  };
-}(jQuery.query || {}); // Pass in jQuery.query as settings object
</del><ins>+new function(e){var d=e.separator||&quot;&amp;&quot;;var c=e.spaces===false?false:true;var a=e.suffix===false?&quot;&quot;:&quot;[]&quot;;var g=e.prefix===false?false:true;var b=g?e.hash===true?&quot;#&quot;:&quot;?&quot;:&quot;&quot;;var f=e.numbers===false?false:true;jQuery.query=new function(){var h=function(m,l){return m!=undefined&amp;&amp;m!==null&amp;&amp;(!!l?m.constructor==l:true)};var i=function(r){var l,q=/\[([^[]*)\]/g,n=/^([^[]+)(\[.*\])?$/.exec(r),o=n[1],p=[];while(l=q.exec(n[2])){p.push(l[1])}return[o,p]};var k=function(s,r,q){var t,p=r.shift();if(typeof s!=&quot;object&quot;){s=null}if(p===&quot;&quot;){if(!s){s=[]}if(h(s,Array)){s.push(r.length==0?q:k(null,r.slice(0),q))}else{if(h(s,Object)){var n=0;while(s[n++]!=null){}s[--n]=r.length==0?q:k(s[n],r.slice(0),q)}else{s=[];s.push(r.length==0?q:k(null,r.slice(0),q))}}}else{if(p&amp;&amp;p.match(/^\s*[0-9]+\s*$/)){var m=parseInt(p,10);if(!s){s=[]}s[m]=r.length==0?q:k(s[m],r.slice(0),q)}else{if(p){var m=p.replace(/^\s*|\s*$/g,&quot;&quot;);if(!s){s={}}if(h(s,Array)){var l={};for(var n=0;n&lt;s.length;++n){l[n]=s[n]}s=l}s[m]=r.length==0?q:k(s[m],r.slice(0),q)}else{return q}}}return s};var j=function(l){var m=this;m.keys={};if(l.queryObject){jQuery.each(l.get(),function(n,o){m.SET(n,o)})}else{jQuery.each(arguments,function(){var n=&quot;&quot;+this;n=n.replace(/^[?#]/,&quot;&quot;);n=n.replace(/[;&amp;]$/,&quot;&quot;);if(c){n=n.replace(/[+]/g,&quot; &quot;)}jQuery.each(n.split(/[&amp;;]/),function(){var o=decodeURIComponent(this.split(&quot;=&quot;)[0]||&quot;&quot;);var p=decodeURIComponent(this.split(&quot;=&quot;)[1]||&quot;&quot;);if(!o){return}if(f){if(/^[+-]?[0-9]+\.[0-9]*$/.test(p)){p=parseFloat(p)}else{if(/^[+-]?[0-9]+$/.test(p)){p=parseInt(p,10)}}}p=(!p&amp;&amp;p!==0)?true:p;if(p!==false&amp;&amp;p!==true&amp;&amp;typeof p!=&quot;number&quot;){p=p}m.SET(o,p)})})}return m};j.prototype={queryObject:true,has:function(l,m){var n=this.get(l);return h(n,m)},GET:function(m){if(!h(m)){return this.keys}var l=i(m),n=l[0],p=l[1];var o=this.keys[n];while(o!=null&amp;&amp;p.length!=0){o=o[p.shift()]}return typeof o==&quot;number&quot;?o:o||&quot;&quot;},get:function(l){var m=this.GET(l);if(h(m,Object)){return jQuery.extend(true,{},m)}else{if(h(m,Array)){return m.slice(0)}}return m},SET:function(m,r){var o=!h(r)?null:r;var l=i(m),n=l[0],q=l[1];var p=this.keys[n];this.keys[n]=k(p,q.slice(0),o);return this},set:function(l,m){return this.copy().SET(l,m)},REMOVE:function(l){return this.SET(l,null).COMPACT()},remove:function(l){return this.copy().REMOVE(l)},EMPTY:function(){var l=this;jQuery.each(l.keys,function(m,n){delete l.keys[m]});return l},load:function(l){var n=l.replace(/^.*?[#](.+?)(?:\?.+)?$/,&quot;$1&quot;);var m=l.replace(/^.*?[?](.+?)(?:#.+)?$/,&quot;$1&quot;);return new j(l.length==m.length?&quot;&quot;:m,l.length==n.length?&quot;&quot;:n)},empty:function(){return this.copy().EMPTY()},copy:function(){return new j(this)},COMPACT:function(){function l(o){var n=typeof o==&quot;object&quot;?h(o,Array)?[]:{}:o;if(typeof o==&quot;object&quot;){function m(r,p,q){if(h(r,Array)){r.push(q)}else{r[p]=q}}jQuery.each(o,function(p,q){if(!h(q)){return true}m(n,p,l(q))})}return n}this.keys=l(this.keys);return this},compact:function(){return this.copy().COMPACT()},toString:function(){var n=0,r=[],q=[],m=this;var o=function(s){s=s+&quot;&quot;;if(c){s=s.replace(/ /g,&quot;+&quot;)}return encodeURIComponent(s)};var l=function(s,t,u){if(!h(u)||u===false){return}var v=[o(t)];if(u!==true){v.push(&quot;=&quot;);v.push(o(u))}s.push(v.join(&quot;&quot;))};var p=function(t,s){var u=function(v){return !s||s==&quot;&quot;?[v].join(&quot;&quot;):[s,&quot;[&quot;,v,&quot;]&quot;].join(&quot;&quot;)};jQuery.each(t,function(v,w){if(typeof w==&quot;object&quot;){p(w,u(v))}else{l(q,u(v),w)}})};p(this.keys);if(q.length&gt;0){r.push(b)}r.push(q.join(d));return r.join(&quot;&quot;)}};return new j(location.search,location.hash)}}(jQuery.query||{});
</ins></span></pre>
</div>
</div>

</body>
</html>