(function($){$.widget("\x75\x69\x2e\x63\x6f\x6d\x62\x6f\x62\x6f\x78",{_create:function(){var input,self=this,select=this.element.hide(),selected=select.children("\x3a\x73\x65\x6c\x65\x63\x74\x65\x64"),value=selected.val()?selected.text():"",wrapper=this.wrapper=$("\x3c\x73\x70\x61\x6e\x3e").addClass("\x75\x69\x2d\x63\x6f\x6d\x62\x6f\x62\x6f\x78").insertAfter(select);input=$("\x3c\x69\x6e\x70\x75\x74\x3e").appendTo(wrapper).val(value).addClass("\x75\x69\x2d\x73\x74\x61\x74\x65\x2d\x64\x65\x66\x61\x75\x6c\x74\x20\x75\x69\x2d\x63\x6f\x6d\x62\x6f\x62\x6f\x78\x2d\x69\x6e\x70\x75\x74\x20\x62\x61\x63\x6b\x43\x6c\x61\x73\x73").autocomplete({delay:0,minLength:0,source:function(request,response){var matcher=new RegExp($.ui.autocomplete.escapeRegex(request.term),"\x69");response(select.children("\x6f\x70\x74\x69\x6f\x6e").map(function(){var text=$(this).text();if(this.value&&(!request.term||matcher.test(text)))return{label:text.replace(new RegExp("\x28\x3f\x21\x5b\x5e\x26\x3b\x5d\x2b\x3b\x29\x28\x3f\x21\x3c\x5b\x5e\x3c\x3e\x5d\x2a\x29\x28"+$.ui.autocomplete.escapeRegex(request.term)+"\x29\x28\x3f\x21\x5b\x5e\x3c\x3e\x5d\x2a\x3e\x29\x28\x3f\x21\x5b\x5e\x26\x3b\x5d\x2b\x3b\x29","\x67\x69"),"\x3c\x73\x74\x72\x6f\x6e\x67\x3e\x24\x31\x3c\x2f\x73\x74\x72\x6f\x6e\x67\x3e").replace(/ /g,'\x26\x6e\x62\x73\x70'),value:text,option:this};}));},select:function(event,ui){ui.item.option.selected=true;self._trigger("\x73\x65\x6c\x65\x63\x74\x65\x64",event,{item:ui.item.option});},change:function(event,ui){if(!ui.item){var matcher=new RegExp("\x5e"+$.ui.autocomplete.escapeRegex($(this).val())+"\x24","\x69"),valid=false;select.children("\x6f\x70\x74\x69\x6f\x6e").each(function(){if($(this).text().match(matcher)){this.selected=valid=true;return false;}});if(!valid){select.val("");input.data("\x61\x75\x74\x6f\x63\x6f\x6d\x70\x6c\x65\x74\x65").term="";return false;}}}}).addClass("\x75\x69\x2d\x77\x69\x64\x67\x65\x74\x20\x75\x69\x2d\x77\x69\x64\x67\x65\x74\x2d\x63\x6f\x6e\x74\x65\x6e\x74\x20\x75\x69\x2d\x63\x6f\x72\x6e\x65\x72\x2d\x6c\x65\x66\x74");input.data("\x61\x75\x74\x6f\x63\x6f\x6d\x70\x6c\x65\x74\x65")._renderItem=function(ul,item){if(item.option.className=="\x53\x75\x70\x70\x6f\x72\x74\x65\x64\x53\x65\x74\x74\x69\x6e\x67\x73"&&$('\x23\x6c\x62\x6c\x43\x72\x65\x61\x74\x65\x50\x72\x6f\x67\x72\x61\x6d\x6d\x69\x6e\x67\x42\x61\x72\x63\x6f\x64\x65').hasClass('\x48\x69\x67\x68\x6c\x69\x67\x68\x74\x65\x64')){}else{return $("\x3c\x6c\x69\x3e\x3c\x2f\x6c\x69\x3e").data("\x69\x74\x65\x6d\x2e\x61\x75\x74\x6f\x63\x6f\x6d\x70\x6c\x65\x74\x65",item).append("\x3c\x61\x3e"+item.label+"\x3c\x2f\x61\x3e").appendTo(ul);}};$("\x3c\x61\x3e").css('\x68\x65\x69\x67\x68\x74','\x32\x32\x70\x78').attr("\x74\x61\x62\x49\x6e\x64\x65\x78",-1).attr("\x74\x69\x74\x6c\x65","\x53\x68\x6f\x77\x20\x41\x6c\x6c\x20\x49\x74\x65\x6d\x73").appendTo(wrapper).button({icons:{primary:"\x75\x69\x2d\x69\x63\x6f\x6e\x2d\x74\x72\x69\x61\x6e\x67\x6c\x65\x2d\x31\x2d\x73"},text:false}).removeClass("\x75\x69\x2d\x63\x6f\x72\x6e\x65\x72\x2d\x61\x6c\x6c").addClass("\x75\x69\x2d\x63\x6f\x72\x6e\x65\x72\x2d\x72\x69\x67\x68\x74\x20\x75\x69\x2d\x63\x6f\x6d\x62\x6f\x62\x6f\x78\x2d\x74\x6f\x67\x67\x6c\x65").click(function(){if(input.autocomplete("\x77\x69\x64\x67\x65\x74").is("\x3a\x76\x69\x73\x69\x62\x6c\x65")){input.autocomplete("\x63\x6c\x6f\x73\x65");return;}$(this).blur();input.autocomplete("\x73\x65\x61\x72\x63\x68","");input.focus();if(input.autocomplete("\x77\x69\x64\x67\x65\x74").children().length==0)input.autocomplete("\x63\x6c\x6f\x73\x65");});},destroy:function(){this.wrapper.remove();this.element.show();$.Widget.prototype.destroy.call(this);}});})(jQuery);