text: AUI.add("aui-form-base",function(b){var i=b.Lang,d=b.getClassName,c=b.IO.prototype._serialize,j="form",a=d(j),g=d("field","labels"),f=d("field","labels","inline"),e={left:[g,"left"].join("-"),right:[g,"right"].join("-"),top:[g,"top"].join("-")};var h=b.Component.create({NAME:j,ATTRS:{action:{value:location.href,getter:"_attributeGetter",setter:"_attributeSetter"},id:{},method:{value:"POST",getter:"_attributeGetter",setter:"_attributeSetter"},monitorChanges:{value:false},nativeSubmit:{value:false},values:{getter:function(m){var k=this;var l=c(k.get("contentBox").getDOM());return b.QueryString.parse(l);},setter:function(n){var k=this;var l=k._setFieldsObject;var m=k.get("monitorChanges");if(i.isArray(n)){l=k._setFieldsArray;}b.each(n,b.rbind(l,k,m));return b.Attribute.INVALID_VALUE;}},fieldValues:{getter:function(l){var k=this;var m={};k.fields.each(function(o,n,p){m[o.get("name")]=o.get("value");});return m;}},labelAlign:{value:""}},HTML_PARSER:{action:function(l){var k=this;return k._attributeGetter(null,"action");},method:function(l){var k=this;return k._attributeGetter(null,"method");}},prototype:{CONTENT_TEMPLATE:"<form></form>",initializer:function(){var k=this;k.fields=new b.DataSet({getKey:k._getNodeId});},renderUI:function(){var k=this;k._renderForm();},bindUI:function(){var k=this;var l=k.get("nativeSubmit");if(!l){k.get("contentBox").on("submit",k._onSubmit);}k.after("disabledChange",k._afterDisabledChange);k.after("labelAlignChange",k._afterLabelAlignChange);k.after("nativeSubmitChange",k._afterNativeSubmitChange);},syncUI:function(){var k=this;var l=k.get("contentBox");k.set("id",l.guid());k._uiSetLabelAlign(k.get("labelAlign"));},add:function(o,k){var t=this;var p=b.Array(o);var l=p.length;var r;var o=t.fields;var q=t.get("contentBox");for(var n=0;n<p.length;n++){r=p[n];r=b.Field.getField(r);if(r&&o.indexOf(r)==-1){o.add(r);if(k&&!r.get("rendered")){var m=r.get("node");var s=null;if(!m.inDoc()){s=q;}r.render(s);}}}},clearInvalid:function(){var k=this;k.fields.each(function(m,l,n){m.clearInvalid();});},getField:function(n){var l=this;var m;if(n){var k=l.fields;m=k.item(n);if(!i.isObject(m)){k.each(function(p,o,q){if(p.get("id")==n||p.get("name")==n){m=p;return false;}});}}return m;},invoke:function(m,l){var k=this;return k.fields.invoke(m,l);},isDirty:function(){var k=this;var l=false;k.fields.each(function(n,m,o){if(n.isDirty()){l=true;return false;}});return l;},isValid:function(){var k=this;var l=true;k.fields.each(function(n,m,o){if(!n.isValid()){l=false;return false;}});return l;},markInvalid:function(m){var k=this;var l=k._markInvalidObject;if(i.isArray(m)){l=k._markInvalidArray;}b.each(m,l,k);return k;},remove:function(m,l){var k=this;k.fields.remove(m);if(l){m=k.getField(m);if(m){m.destroy();}}return k;},resetValues:function(){var k=this;k.fields.each(function(m,l,n){m.resetValue();});},submit:function(l){var k=this;var m=k.isValid();if(m){if(k.get("nativeSubmit")){k.get("contentBox").submit();}else{l=l||{};b.mix(l,{id:k.get("id")});b.io(k.get("action"),{form:l,method:k.get("method"),on:{complete:b.bind(k._onSubmitComplete,k),end:b.bind(k._onSubmitEnd,k),failure:b.bind(k._onSubmitFailure,k),start:b.bind(k._onSubmitStart,k),success:b.bind(k._onSubmitSuccess,k)}});}}return m;},_afterDisabledChange:function(l){var k=this;var m="disable";if(l.newVal){m="enable";}k.fields.each(function(o,n,p){o[m];});},_afterLabelAlignChange:function(l){var k=this;k._uiSetLabelAlign(l.newVal,l.prevVal);},_afterNativeSubmitChange:function(m){var k=this;var l=k.get("contentBox");var n="on";if(m.newVal){n="detach";}l[n]("submit",k._onSubmit);},_attributeGetter:function(m,l){var k=this;return k.get("contentBox").attr(l);},_attributeSetter:function(m,l){var k=this;k.get("contentBox").attr(l,m);return m;},_getNodeId:function(m){var l;if(m instanceof b.Field){l=m.get("node");}else{l=b.one(m);}var k=l&&l.guid();return k;},_onSubmit:function(k){k.halt();},_onSubmitComplete:function(l){var k=this;k.fire("complete",{ioEvent:l});},_onSubmitEnd:function(l){var k=this;k.fire("end",{ioEvent:l});},_onSubmitFailure:function(l){var k=this;k.fire("failure",{ioEvent:l});},_onSubmitStart:function(l){var k=this;k.fire("start",{ioEvent:l});},_onSubmitSuccess:function(l){var k=this;k.fire("success",{ioEvent:l});},_renderForm:function(){var k=this;k.get("contentBox").removeClass(a);},_markInvalidArray:function(m,l,o){var k=this;var n=k.getField(m.id);if(n){n.markInvalid(m.message);}},_markInvalidObject:function(m,l,o){var k=this;var n=(!i.isFunction(m))&&k.getField(l);if(n){n.markInvalid(m);}},_setFieldsArray:function(n,m,p,l){var k=this;var o=k.getField(n.id);if(o){o.set("value",n.value);if(l){o.set("prevVal",o.get("value"));}}},_setFieldsObject:function(n,m,p,l){var k=this;var o=(!i.isFunction(n))&&k.getField(m);if(o){o.set("value",n);if(l){o.set("prevVal",o.get("value"));}}},_uiSetLabelAlign:function(m,o){var k=this;var l=k.get("contentBox");l.replaceClass(e[o],e[m]);var n="removeClass";if(/right|left/.test(m)){n="addClass";}l[n](f);}}});b.Form=h;},"@VERSION@",{requires:["aui-base","aui-data-set","aui-form-field","querystring-parse","io-form"]});AUI.add("aui-form-combobox",function(a){var e=a.Lang,c=a.getClassName,f="combobox",d=c(f);var b=a.Component.create({NAME:f,ATTRS:{field:{},fieldWidget:{value:a.Textfield},node:{getter:function(){var g=this;if(g._field){return g._field.get("node");}}},icons:{value:["circle-triangle-b"],validator:e.isArray}},prototype:{renderUI:function(){var g=this;b.superclass.renderUI.call(g);g._renderField();g._renderIcons();},_renderField:function(){var g=this;var h=g.get("contentBox");var i=g.get("field");var j=g.get("fieldWidget");g._field=new j(i).render();h.appendChild(g._field.get("boundingBox"));},_renderIcons:function(){var g=this;var h=g.get("icons");if(h.length){var i=new a.Toolbar({children:h}).render(g.get("contentBox"));g.icons=i;}}}});a.Combobox=b;},"@VERSION@",{skinnable:true,requires:["aui-form-textarea","aui-toolbar"]});AUI.add("aui-form-field",function(s){var h=s.Lang,l=s.getClassName,j="field",o=" ",u=s.cached(function(C,E){var D=["field"];
  if(E){D.push(E);}D=D.join("-");var A=[l(D,C)];if(C=="password"){A.push(l(D,"text"));}return A.join(" ");}),b=l(j),g=l(j,"checkbox"),f=l(j,"choice"),B=l(j,"content"),e=l(j,"input"),q=l(j,"hint"),d=l(j,"invalid"),c=l(j,"label"),i=l(j,"radio"),a=l(j,"labels"),y=l(j,"labels","inline"),w={left:[a,"left"].join("-"),right:[a,"right"].join("-"),top:[a,"top"].join("-")},z={radio:i,checkbox:g},n=/left|right/,t='<span class="'+b+'"></span>',x='<span class="'+B+'"></span>',m='<span class="'+q+'"></span>',r='<input autocomplete="off" class="{cssClass}" id="{id}" name="{name}" type="{type}" />',p='<label class="'+c+'"></label>',v={};var k=s.Component.create({NAME:j,ATTRS:{readOnly:{value:false},name:{value:"",getter:function(C){var A=this;return C||A.get("id");}},disabled:{value:false,validator:h.isBoolean},id:{getter:function(D){var A=this;var C=this.get("node");if(C){D=C.get("id");}if(!D){D=s.guid();}return D;}},type:{value:"text",validator:h.isString,writeOnce:true},labelAlign:{valueFn:function(){var A=this;return A._getChoiceCss()?"left":null;}},labelNode:{valueFn:function(){var A=this;return s.Node.create(p);}},labelText:{valueFn:function(){var A=this;return A.get("labelNode").get("innerHTML");},setter:function(C){var A=this;A.get("labelNode").set("innerHTML",C);return C;}},node:{value:null,setter:function(C){var A=this;return s.one(C)||A._createFieldNode();}},fieldHint:{value:""},fieldHintNode:{value:null,setter:function(C){var A=this;return s.one(C)||A._createFieldHint();}},prevVal:{value:""},valid:{value:true,getter:function(E){var A=this;var C=A.get("validator");var D=A.get("disabled")||C(A.get("value"));return D;}},dirty:{value:false,getter:function(D){var A=this;if(A.get("disabled")){D=false;}else{var C=String(A.get("value"));var E=String(A.get("prevVal"));D=(C!==E);}return D;}},size:{},validator:{valueFn:function(){var A=this;return A.fieldValidator;},validator:h.isFunction},value:{getter:"_getNodeValue",setter:"_setNodeValue",validator:"fieldValidator"}},HTML_PARSER:{labelNode:"label",node:"input, textarea, select"},BIND_UI_ATTRS:["disabled","id","readOnly","name","size","tabIndex","type","value"],getTypeClassName:u,getField:function(E){var F=null;if(E instanceof s.Field){F=E;}else{if(E&&(h.isString(E)||E instanceof s.Node||E.nodeName)){var C=s.one(E).get("id");F=v[C];if(!F){var D=E.ancestor(".aui-field");var A=E.ancestor(".aui-field-content");F=new k({boundingBox:D,contentBox:A,node:E});}}else{if(h.isObject(E)){F=new k(E);}}}return F;},prototype:{BOUNDING_TEMPLATE:t,CONTENT_TEMPLATE:x,FIELD_TEMPLATE:r,FIELD_TYPE:"text",initializer:function(){var A=this;var C=A.get("node").guid();v[C]=A;},renderUI:function(){var A=this;A._renderField();A._renderLabel();A._renderFieldHint();},bindUI:function(){var A=this;A.after("labelAlignChange",A._afterLabelAlignChange);A.after("fieldHintChange",A._afterFieldHintChange);},syncUI:function(){var A=this;A.set("prevVal",A.get("value"));},fieldValidator:function(C){var A=this;return true;},isValid:function(){var A=this;return A.get("valid");},isDirty:function(){var A=this;return A.get("dirty");},resetValue:function(){var A=this;A.set("value",A.get("prevVal"));A.clearInvalid();},markInvalid:function(C){var A=this;A.set("fieldHint",C);A.get("fieldHintNode").show();A.get("boundingBox").addClass(d);},clearInvalid:function(){var A=this;A.reset("fieldHint");if(!A.get("fieldHint")){A.get("fieldHintNode").hide();}A.get("boundingBox").removeClass(d);},validate:function(){var A=this;var C=A.get("valid");if(C){A.clearInvalid();}return C;},_afterFieldHintChange:function(C){var A=this;A._uiSetFieldHint(C.newVal,C.prevVal);},_afterLabelAlignChange:function(C){var A=this;A._uiSetLabelAlign(C.newVal,C.prevVal);},_createFieldHint:function(){var A=this;var C=s.Node.create(m);A.get("contentBox").append(C);return C;},_createFieldNode:function(){var A=this;var C=A.FIELD_TEMPLATE;A.FIELD_TEMPLATE=h.sub(C,{cssClass:e,id:A.get("id"),name:A.get("name"),type:A.get("type")});return s.Node.create(A.FIELD_TEMPLATE);},_getChoiceCss:function(){var A=this;var C=A.get("type");return z[C];},_getNodeValue:function(){var A=this;return A.get("node").val();},_renderField:function(){var A=this;var G=A.get("node");G.val(A.get("value"));var E=A.get("boundingBox");var D=A.get("contentBox");var F=A.get("type");var C=[u(F)];var H=A._getChoiceCss();if(H){C.push(f);C.push(H);}E.addClass(C.join(o));G.addClass(u(F,"input"));if(!D.contains(G)){if(G.inDoc()){G.placeBefore(E);D.appendChild(G);}else{D.appendChild(G);}}E.removeAttribute("tabIndex");},_renderFieldHint:function(){var A=this;var C=A.get("fieldHint");if(C){A._uiSetFieldHint(C);}},_renderLabel:function(){var J=this;var D=J.get("labelText");if(D!==false){var E=J.get("node");var A=E.guid();D=J.get("labelText");var G=J.get("labelNode");G.addClass(l(J.name,"label"));G.setAttribute("for",A);G.set("innerHTML",D);J._uiSetLabelAlign(J.get("labelAlign"));var H=J.get("contentBox");var C=J.get("labelAlign");var I=J.get("type").toLowerCase();var K=n.test(C);var F="prepend";if(K&&J._getChoiceCss()){F="append";}H[F](G);}},_setNodeValue:function(C){var A=this;A._uiSetValue(C);return C;},_uiSetDisabled:function(D){var A=this;var C=A.get("node");if(D){C.setAttribute("disabled",D);}else{C.removeAttribute("disabled");}},_uiSetFieldHint:function(C,D){var A=this;A.get("fieldHintNode").set("innerHTML",C);},_uiSetId:function(C,D){var A=this;A.get("node").set("id",C);},_uiSetLabelAlign:function(D,F){var A=this;var C=A.get("boundingBox");C.replaceClass(w[F],w[D]);var E="removeClass";if(n.test(D)){E="addClass";}C[E](y);},_uiSetName:function(C,D){var A=this;A.get("node").setAttribute("name",C);},_uiSetReadOnly:function(C,D){var A=this;A.get("node").setAttribute("readOnly",C);},_uiSetSize:function(C,D){var A=this;A.get("node").setAttribute("size",C);},_uiSetTabIndex:function(C,D){var A=this;A.get("node").setAttribute("tabIndex",C);},_uiSetValue:function(C,D){var A=this;A.get("node").val(C);},_requireAddAttr:false}});s.Field=k;},"@VERSION@",{requires:["aui-base","aui-component"]});
  AUI.add("aui-form-select",function(b){var d=b.Lang,e=d.isArray,h=d.isObject,c=b.getClassName,i="select",f=c(i),g='<select {multiple} class="{cssClass}" id="{id}" name="{name}"></select>';var a=b.Component.create({NAME:i,ATTRS:{multiple:{value:false},options:{value:[],setter:"_setOptions"},selectedIndex:{value:-1}},UI_ATTRS:["multiple","options","selectedIndex"],EXTENDS:b.Field,HTML_PARSER:{node:"select"},prototype:{FIELD_TEMPLATE:g,FIELD_TYPE:i,_setOptions:function(k){var j=this;if(!e(k)){k=[k];}return k;},_uiSetMultiple:function(k){var j=this;j.get("node").attr("multiple",k);},_uiSetOptions:function(q){var r=this;var l=[];var n;var o;var p;var k=0;for(var m=0;m<q.length;m++){n=q[m];o=n.labelText||n;p=n.value||n;if(n.selected){k=m;}l.push('<option value="'+p+'">'+o+"</option>");}var j=r.get("node");j.all("option").remove(true);j.append(l.join(""));r.set("selectedIndex",k);},_uiSetSelectedIndex:function(k){var j=this;if(k>-1){j.get("node").attr("selectedIndex",k);}}}});b.Select=a;},"@VERSION@",{requires:["aui-form-field"]});AUI.add("aui-form-textarea",function(b){var g=b.Lang,e=b.getClassName,f=b.config.doc,h="textarea",a="node",d='<textarea autocomplete="off" class="{cssClass}" name="{name}"></textarea>';var c=b.Component.create({NAME:h,ATTRS:{autoSize:{value:true},height:{value:"auto"},maxHeight:{value:1000},minHeight:{value:45},width:{value:"auto"}},HTML_PARSER:{node:"textarea"},EXTENDS:b.Textfield,prototype:{FIELD_TEMPLATE:d,renderUI:function(){var j=this;c.superclass.renderUI.call(j);var i=j.get("autoSize");if(i!==false){var k=null;if(g.isObject(i)){k=i;}j.get(a).plug(b.Plugin.Autosize,k);}},bindUI:function(){var i=this;c.superclass.bindUI.call(i);i.after("heightChange",i._afterHeightChange);i.after("widthChange",i._afterWidthChange);i.after(["maxHeightChange","minHeightChange"],i._afterMinMaxChange);},syncUI:function(){var i=this;c.superclass.syncUI.call(i);i._uiSetDim("height",i.get("height"));i._uiSetDim("width",i.get("width"));var k=i.get("maxHeight");var l=i.get("minHeight");var j=i.get(a).autosize;if(j){if(g.isValue(k)){j.set("maxHeight",k);}if(g.isValue(l)){j.set("minHeight",l);}}},_afterHeightChange:function(j){var i=this;i._uiSetDim("height",j.newVal,j.prevVal);},_afterMinMaxChange:function(k){var i=this;var j=i.get(a).autosize;if(j){j.set(k.attrName,k.newVal);}},_afterWidthChange:function(j){var i=this;i._uiSetDim("width",j.newVal,j.prevVal);},_uiSetDim:function(k,j){var i=this;i.get("node").setStyle(k,j);}}});b.Textarea=c;},"@VERSION@",{skinnable:true,requires:["aui-autosize","aui-form-textfield"]});AUI.add("aui-form-textfield",function(a){var e=a.Lang,b=a.getClassName,f="textfield",c=b(f);var d=a.Component.create({NAME:f,ATTRS:{selectOnFocus:{value:false},allowOnly:{value:null,validator:function(h){var g=this;return h instanceof RegExp;}},defaultValue:{value:""},validator:{value:null}},EXTENDS:a.Field,prototype:{bindUI:function(){var g=this;d.superclass.bindUI.call(g);var i=g.get("node");if(g.get("allowOnly")){i.on("keypress",g._filterInputText,g);}if(g.get("selectOnFocus")){i.on("focus",g._selectInputText,g);}var h=g.get("defaultValue");if(h){i.on("blur",g._checkDefaultValue,g);i.on("focus",g._checkDefaultValue,g);}},syncUI:function(){var g=this;var i=g.get("value");if(!i){var h=g.get("defaultValue");g.set("value",g.get("defaultValue"));}d.superclass.syncUI.apply(g,arguments);},_filterInputText:function(j){var g=this;var h=g.get("allowOnly");var i=String.fromCharCode(j.charCode);if(!h.test(i)){j.halt();}},_checkDefaultValue:function(m){var g=this;var i=g.get("defaultValue");var l=g.get("node");var k=e.trim(g.get("value"));var j=m.type;var h=(j=="focus"||j=="focusin");if(i){var n=k;if(h&&(k==i)){n="";}else{if(!h&&!k){n=i;}}g.set("value",n);}},_selectInputText:function(h){var g=this;h.currentTarget.select();}}});a.Textfield=d;},"@VERSION@",{requires:["aui-form-field"]});AUI.add("aui-form",function(a){},"@VERSION@",{use:["aui-form-base","aui-form-combobox","aui-form-field","aui-form-select","aui-form-textarea","aui-form-textfield"],skinnable:false});