//>>built
define("dojox/dtl/filter/lists",["dojo/_base/lang","../_base"],function(g,k){var h=g.getObject("filter.lists",!0,k);g.mixin(h,{_dictsort:function(a,d){return a[0]==d[0]?0:a[0]<d[0]?-1:1},dictsort:function(a,d){if(!d)return a;var e,b=[];if(!g.isArray(a)){var c=a;a=[];for(e in c)a.push(c[e])}for(c=0;c<a.length;c++)b.push([(new dojox.dtl._Filter("var."+d)).resolve(new dojox.dtl._Context({"var":a[c]})),a[c]]);b.sort(dojox.dtl.filter.lists._dictsort);var f=[];for(c=0;e=b[c];c++)f.push(e[1]);return f},
dictsortreversed:function(a,d){return d?dojox.dtl.filter.lists.dictsort(a,d).reverse():a},first:function(a){return a.length?a[0]:""},join:function(a,d){return a.join(d||",")},length:function(a){return isNaN(a.length)?(a+"").length:a.length},length_is:function(a,d){return a.length==parseInt(d)},random:function(a){return a[Math.floor(Math.random()*a.length)]},slice:function(a,d){for(var e=(d||"").split(":"),b=[],c=0;c<e.length;c++)e[c].length?b.push(parseInt(e[c])):b.push(null);null===b[0]&&(b[0]=0);
0>b[0]&&(b[0]=a.length+b[0]);if(2>b.length||null===b[1])b[1]=a.length;0>b[1]&&(b[1]=a.length+b[1]);return a.slice(b[0],b[1])},_unordered_list:function(a,d){var e=dojox.dtl.filter.lists,b,c="";for(b=0;b<d;b++)c+="\t";if(a[1]&&a[1].length){var f=[];for(b=0;b<a[1].length;b++)f.push(e._unordered_list(a[1][b],d+1));return c+"\x3cli\x3e"+a[0]+"\n"+c+"\x3cul\x3e\n"+f.join("\n")+"\n"+c+"\x3c/ul\x3e\n"+c+"\x3c/li\x3e"}return c+"\x3cli\x3e"+a[0]+"\x3c/li\x3e"},unordered_list:function(a){return h._unordered_list(a,
1)}});return h});