function Ue(){this.Init()}v("AdfMarshalingService",Ue);z.l(Ue);Ue.prototype.Init=function(){Ue.f.Init.call(this);this.XZ={};this.N8a={}};z.a("AdfMarshalingService.prototype.Init",{Init:Ue.prototype.Init});Ue.prototype.Oha=function(a){var b=a.XZ,d=this.XZ,e;for(e in b)d[e]={name:b[e],encoder:a}};z.a("AdfMarshalingService.prototype.registerEncoder",{Oha:Ue.prototype.Oha});
Ue.prototype.Jy=function(a,b,d){var e=Ve(this,b.constructor);e==n&&(e=Ve(this,Object));if(d==n)d=new Ue.U6;else{var f;a:{f=d.stack;for(var g=f.length,h=0;h<g;h++){var m=f[h];if(m===b&&b.constructor===m.constructor){f=l;break a}}f=p}if(f)return n}d.push(b);e=Ue.GW(a.ownerDocument,e.name);a.appendChild(e);a=d;f=n;g=e.ownerDocument;h=b.constructor;if(h==String||h==Number)f=b;else if(h==Boolean)f=b?"1":"0";else if(h==Date)f=b.getTime();else if(h==Array){for(var q=0;q<b.length;q++){var s=n;b[q]!=n&&(s=
this.Jy(e,b[q],a));s==n&&e.appendChild(Ue.GW(g,Ue.ie.qFa))}e.setAttribute(Ue.ie.HFa,b.length)}else if(h==Object)for(q in b)s=Ue.GW(g,Ue.ie.xla),s.setAttribute(Ue.ie.Bma,q),e.appendChild(s),b[q]!=n&&this.Jy(s,b[q],a);else if(J.prototype.isPrototypeOf(b))f=b.e();else if(E.prototype.isPrototypeOf(b))f=b.eq();else for(s in b)try{var y=b[s];if(y!=n&&"function"!=typeof y){var A=Ue.GW(g,Ue.ie.xla);A.setAttribute(Ue.ie.Bma,s);e.appendChild(A);this.Jy(A,y,a)}}catch(C){D.i.ee(C,"Error in marshaling object")}f!=
n&&e.appendChild(g.createTextNode(f.toString()));d.pop(b);return e};z.a("AdfMarshalingService.prototype.marshal",{Jy:Ue.prototype.Jy});Ue.getDefault=function(){var a=Ue.vTa;a||(a=new Ue,a.Oha(new Ue.ie),Ue.vTa=a);return a};v("AdfMarshalingService.getDefault",Ue.getDefault);function Ve(a,b){return a.XZ[b===String?"String":b===Boolean?"Boolean":b===Number?"Number":b===Array?"Array":b===Date?"Date":J.prototype.isPrototypeOf(b.prototype)?"AdfUIComponent":E===b?"AdfKeyStroke":"Object"]}
Ue.GW=function(a,b){var d=w.b;return d.G()==w.aa&&11>d.nb()?a.createNode(1,b,"http://oracle.com/richClient/comm"):a.createElementNS("http://oracle.com/richClient/comm",b)};Ue.U6=function(){this.stack=[]};Ue.U6.prototype.push=function(a){this.stack.push(a)};Ue.U6.prototype.pop=function(){return this.stack.pop()};
Ue.ie=function(){var a={};a.Number=Ue.ie.fGa;a.Boolean=Ue.ie.BFa;a.String=Ue.ie.rGa;a.Date=Ue.ie.JFa;a.Array=Ue.ie.pFa;a.Object=Ue.ie.ZFa;a.AdfUIComponent=Ue.ie.jFa;a.AdfKeyStroke=Ue.ie.iFa;this.XZ=a};Ue.ie.qFa="o";Ue.ie.xla="k";Ue.ie.Bma="v";Ue.ie.HFa="n";Ue.ie.fGa="n";Ue.ie.BFa="b";Ue.ie.rGa="s";Ue.ie.JFa="d";Ue.ie.pFa="a";Ue.ie.ZFa="m";Ue.ie.jFa="AdfUIComponent";Ue.ie.iFa="AdfKeyStroke";