/*
 * Copyright CADMAI Software GmbH.
 * All rights reserved.
 *
 * Redistribution (includes making available on a web location) is permitted 
 * provided that the following conditions are met:
 *
 * The redistributor must hold one of these licenses:
 * a valid CADMAI WebGl-Publisher license (SingleWebGlPubLic)
 * a valid CADMAI WebGl-Publisher Revit export license (SingleWebGlRevitExportLic)
 * a valid CADMAI WebGl-Publisher Inventor export license (SingleWebGlInventorExportLic)
 * or a written permission of CADMAI Software GmbH 
 *
 * The redistributor / user does not have the right to change, translate,
 * back-develop, decompile or disassemble the software.
 * 
 * Redistributions must retain the above copyright notice, 
 * this list of conditions and the following disclaimer.
 *   
 * Neither the name of CADMAI Software GmbH nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
 "\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74";var rt=function(){this.sj="";this.Xu=null;this.ty=null;this.fF=null;this.id="";this.sN=null;this.kM=false;this.VD=false;this.LE=false;this.bg=0;this.FI=false;this.Rw=false;this.WI=false;this.tp="";this.parentNode=null;this.fg=0;this.kV="\x73\x74\x64";this.lM=null;this.Db=null;this.zV=null;this.mL=null;};var CmiAssemblyBrowser=function(Ch,bN){var f7=null;var du=null;var wg=null;var Im=null;var Tm=null;var w2=Ch;var aI=this;var aB=bN;var xE=false;var Nr=0;var fX=false;var qx="\x61";var DF=false;var KF=true;var cO=null;var BX=0;var xB=0;var NL="\x3c\x73\x70\x61\x6e\x20\x63\x6c\x61\x73\x73\x3d\x27\x63\x6d\x69\x41\x73\x73\x53\x6d\x61\x6c\x6c\x54\x61\x62\x44\x69\x73\x70\x6c\x61\x79\x27\x3e\x26\x6e\x62\x73\x70\x3b\x3c\x2f\x73\x70\x61\x6e\x3e";var bd="\x3c\x73\x70\x61\x6e\x20\x63\x6c\x61\x73\x73\x3d\x27\x63\x6d\x69\x41\x73\x73\x54\x61\x62\x44\x69\x73\x70\x6c\x61\x79\x27\x3e\x26\x6e\x62\x73\x70\x3b\x3c\x2f\x73\x70\x61\x6e\x3e";var Vz="\x3c\x73\x70\x61\x6e\x20\x63\x6c\x61\x73\x73\x3d\x27\x63\x6d\x69\x41\x73\x73\x53\x6d\x61\x6c\x6c\x54\x61\x62\x44\x69\x73\x70\x6c\x61\x79\x27\x3e\x26\x23\x38\x38\x36\x32\x3b\x3c\x2f\x73\x70\x61\x6e\x3e";var PC="\x3c\x73\x70\x61\x6e\x20\x63\x6c\x61\x73\x73\x3d\x27\x63\x6d\x69\x41\x73\x73\x53\x6d\x61\x6c\x6c\x54\x61\x62\x44\x69\x73\x70\x6c\x61\x79\x27\x3e\x26\x23\x38\x38\x36\x33\x3b\x3c\x2f\x73\x70\x61\x6e\x3e";var lA="\x3c\x73\x70\x61\x6e\x20\x63\x6c\x61\x73\x73\x3d\x27\x63\x6d\x69\x41\x73\x73\x53\x6d\x61\x6c\x6c\x54\x61\x62\x44\x69\x73\x70\x6c\x61\x79\x27\x3e\x26\x23\x31\x32\x38\x34\x34\x38\x3b\x3c\x2f\x73\x70\x61\x6e\x3e";var Hr="\x3c\x73\x70\x61\x6e\x20\x63\x6c\x61\x73\x73\x3d\x27\x63\x6d\x69\x41\x73\x73\x53\x6d\x61\x6c\x6c\x54\x61\x62\x44\x69\x73\x70\x6c\x61\x79\x27\x3e\x26\x23\x31\x32\x38\x34\x34\x39\x3b\x3c\x2f\x73\x70\x61\x6e\x3e";var TG=null;var ye=null;var OJ=new Array();var iD=null;du=document.getElementById(bN);this.getProductStructure=function(){return Tm;};this.t1=function(){return xE;};this.setInteractiveBrowserFlag=function(DP){xE=DP;};this.Uz=function(){return Nr;};this.setUseModelAsTopNodeFlag=function(Oi){Nr=Oi;};this.h4=function(){return fX;};this.setCollectSameNamesFlag=function(Hk){fX=Hk;};this.dT=function(){return qx;};this.setSortFlag=function(EF){qx=EF;};this.kf=function(){return DF;};this.setShowPosNrFlag=function(OZ){DF=OZ;};this.getShowInvisibleComponentsFlag=function(){return KF;};this.setShowInvisibleComponentsFlag=function(FS){KF=FS;};this.getModelAttributeForTitle=function(){return cO;};this.setModelAttributeForTitle=function(KD){cO=KD;};this.setCmiWindow=function(o){Im=o;};this.getNodeCount=function(){return BX;};this.getHlNodeCount=function(){return xB;};var Ut=function(a,b){if(a.sj==b.sj)return 0;else if(a.sj<b.sj)return-1;else return 1;};var h5=function(a,b){let yd;let v8;if(isNaN(a.fg))yd=a.fg;else yd=parseInt(a.fg);if(isNaN(b.fg))v8=b.fg;else v8=parseInt(b.fg);if(yd==v8)return 0;else if(yd<v8)return-1;else return 1;};this.setDropHandler=function(E8){TG=E8;};this.setDragHandler=function(PT){ye=PT;};this.clearContent=function(){var body=du.getElementsByTagName("\x74\x62\x6f\x64\x79")[0];while(body.hasChildNodes()){body.removeChild(body.firstChild);}BX=0;xB=0;f7=null;wg=null;Tm=null;OJ=new Array();};this.buildProductStructureTree=function(_q,Hk,MD,DP){if((_q!=undefined)&&(_q!=null))Tm=_q;if((Tm==null)||(du==null))return-1;wg=null;f7=new Array();var WM=0;BX=0;xB=0;if(Hk!=undefined)fX=Hk;if(DP!=undefined)xE=DP;var Zk=new rt();if(xE==true){xE=true;if(iD==null){Zk.FI=true;}}Zk.Rw=true;if((MD!=undefined)&&(MD.length>0))Zk.sj=MD;else{Zk.sj=Tm.getTopNodeRef().getTitle();}Zk.VD=true;Zk.kM=true;Zk.id="\x43\x6d\x70"+WM.toString();Zk.sj=Tm.getTopNodeRef().getTitle();f7.push(Zk);N4(Tm.getTopNodeRef(),Zk,fX);};var N4=function(lW,cm,Hk){var WM=0;var Z6=lW.sq();var qB=null;var oo=null;var Zk=null;var Aa="";var h1="";for(var G=0;G<Z6.length;G++){qB=Z6[G];oo=qB.getSonNodeRef();Aa=oo.wA();switch(Aa){case "\x6d\x75\x73":WM++;h1=cm.id;cm.id=cm.id+"\x2e"+WM.toString();N4(oo,cm,Hk);cm.id=h1;break;case "\x73\x73":WM++;BX++;Zk=new rt();Zk.mL=qB;Zk.fF=qB.getComponentRef();Zk.fg=qB.getPosNr();Zk.sj=oo.getTitle();Zk.VD=true;if(Zk.fF.isHighlighted){Zk.LE=true;xB++;}Zk.id=cm.id+"\x2e"+WM.toString();if(cm.Xu==null)cm.Xu=new Array();cm.Xu.push(Zk);Zk.parentNode=cm;break;case "\x73\x63":break;default:WM++;BX++;Zk=new rt();Zk.mL=qB;Zk.fF=qB.getComponentRef();Zk.fg=qB.getPosNr();Zk.sj=oo.getTitle();Zk.VD=true;Zk.id=cm.id+"\x2e"+WM.toString();if(Zk.fF.isHighlighted){Zk.LE=true;xB++;}if(cm.Xu==null)cm.Xu=new Array();cm.Xu.push(Zk);Zk.parentNode=cm;N4(oo,Zk,Hk);break;}};if(qx=="\x70"){if(cm==null)f7.sort(h5);else if(cm.Xu!=null)cm.Xu.sort(h5);}else{if(cm==null)f7.sort(Ut);else if(cm.Xu!=null)cm.Xu.sort(Ut);}if(Hk){var FM=0;var KB;KB=cm.Xu;if(KB!=null)FM=KB.length;if(FM>0){var wz=new Array();var Vb=0;var nextNode=null;var yE=null;var oF=null;var vP=null;for(var G=0;G<FM;G++){yE=KB[G];if(G<FM-1)nextNode=KB[G+1];if(vP==null){if((nextNode!=null)&&(yE.sj==nextNode.sj)&&(G<FM-1)){vP=new rt();vP.parentNode=cm;vP.sj=yE.sj;vP.Xu=new Array();vP.id="\x43\x6f\x6c\x6c\x65\x63\x74\x65\x64"+yE.id;vP.bg=1;vP.VD=true;vP.WI=true;wz.push(vP);vP.Xu.push(yE);yE.parentNode=vP;}else{wz.push(yE);}}else{if(yE.sj==vP.sj){vP.Xu.push(yE);yE.parentNode=vP;vP.bg++;if(G==FM-1)vP.sj=vP.bg.toString()+"\x20\x78\x20"+vP.sj;}else if((yE.sj==nextNode.sj)&&(G<FM-1)){vP.sj=vP.bg.toString()+"\x20\x78\x20"+vP.sj;vP=new rt();vP.parentNode=cm;vP.sj=yE.sj;vP.Xu=new Array();vP.id="\x43\x6f\x6c\x6c\x65\x63\x74\x65\x64"+yE.id;vP.bg=1;vP.VD=true;vP.WI=true;wz.push(vP);vP.Xu.push(yE);yE.parentNode=vP;}else{vP.sj=vP.bg.toString()+"\x20\x78\x20"+vP.sj;vP=null;wz.push(yE);}}}for(var G=0;G<KB.length;G++)KB[G]=null;if(cm==null){f7=wz;}else{cm.Xu=wz;}}}};this.buildAssemblyTree=function(wC,Hk,Oi,MD,DP){if((wC!=undefined)&&(wC!=null))wg=wC;if((wg==null)||(du==null))return-1;Tm=null;Im=wg.getCmiWindow();f7=new Array();BX=0;xB=0;if(Hk!=undefined)fX=Hk;if(Oi!=undefined)Nr=Oi;if(DP!=undefined)xE=DP;if(Nr>=1){var hs=new rt();if(xE==true){xE=true;if(iD==null){hs.FI=true;}}hs.Rw=true;if((MD!=undefined)&&(MD.length>0))hs.sj=MD;else{var Kf=wg.getPropertyValue(cO);if(Kf!=undefined)hs.sj=Kf;else hs.sj=wg.getModelName();}hs.VD=true;if(Nr==2)hs.kM=true;f7.push(hs);m6(null,hs,fX);}else{m6(null,null,fX);}return 0;};var m6=function(fF,cm,Hk){var hs;var hk;var WM=0;var mC;var pn=1;if(fF==null){hk=wg.getEntityCollection();}else if(fF.getModel()!=null){if(fF.getModel().isTemplate()){hk=fF.getSubComponents();}else hk=fF.getModel().getEntityCollection();}else return;for(var G=0;G<hk.length;G++){if(hk[G].getClassName()=="\x63\x6d\x69\x43\x6f\x6d\x70\x6f\x6e\x65\x6e\x74\x4f\x62\x6a\x65\x63\x74"){if((hk[G].getModelTemplateData()!=null)&&(hk[G].getModelTemplateData().getModel().suppressComponentsInBrowser==true))pn=2;else pn=hk[G].getBrowserVisibleState();if(pn<3){WM++;BX++;hs=new rt();hs.fF=hk[G];hs.fg=hs.fF.getPosNr();if(hk[G].getModel()!=null){var Kf=hk[G].getModel().getPropertyValue(cO);if((cO!=null)&&(Kf!=undefined))hs.sj=Kf;else hs.sj=hk[G].getModel().getModelName();}else hs.sj="\x6e\x6f\x74\x20\x66\x6f\x75\x6e\x64";hs.VD=true;if(hs.fF.isHighlighted){hs.LE=true;xB++;}if(cm==null){hs.id="\x43\x6d\x70"+WM.toString();}else{hs.id=cm.id+"\x2e"+WM.toString();}if(cm==null){f7.push(hs);}else{if(cm.Xu==null)cm.Xu=new Array();cm.Xu.push(hs);hs.parentNode=cm;}if(pn<2)m6(hk[G],hs,Hk);}}}if(qx=="\x70"){if(cm==null)f7.sort(h5);else if(cm.Xu!=null)cm.Xu.sort(h5);}else{if(cm==null)f7.sort(Ut);else if(cm.Xu!=null)cm.Xu.sort(Ut);}if(Hk){var FM=0;var KB;if(cm==null){KB=f7;FM=KB.length;}else if(cm.Xu!=null){KB=cm.Xu;FM=KB.length;}if(FM>0){var wz=new Array();var Vb=0;var nextNode=null;var yE=null;var oF=null;var vP=null;for(var G=0;G<FM;G++){yE=KB[G];if(G<FM-1)nextNode=KB[G+1];if(vP==null){if((nextNode!=null)&&(yE.sj==nextNode.sj)&&(G<FM-1)){vP=new rt();vP.parentNode=cm;vP.sj=yE.sj;vP.Xu=new Array();vP.id="\x43\x6f\x6c\x6c\x65\x63\x74\x65\x64"+yE.id;vP.bg=1;vP.VD=true;vP.WI=true;wz.push(vP);vP.Xu.push(yE);yE.parentNode=vP;}else{wz.push(yE);}}else{if(yE.sj==vP.sj){vP.Xu.push(yE);yE.parentNode=vP;vP.bg++;if(G==FM-1)vP.sj=vP.bg.toString()+"\x20\x78\x20"+vP.sj;}else if((yE.sj==nextNode.sj)&&(G<FM-1)){vP.sj=vP.bg.toString()+"\x20\x78\x20"+vP.sj;vP=new rt();vP.parentNode=cm;vP.sj=yE.sj;vP.Xu=new Array();vP.id="\x43\x6f\x6c\x6c\x65\x63\x74\x65\x64"+yE.id;vP.bg=1;vP.VD=true;vP.WI=true;wz.push(vP);vP.Xu.push(yE);yE.parentNode=vP;}else{vP.sj=vP.bg.toString()+"\x20\x78\x20"+vP.sj;vP=null;wz.push(yE);}}}for(var G=0;G<KB.length;G++)KB[G]=null;if(cm==null){f7=wz;}else{cm.Xu=wz;}}}};this.handleInfoTextEnter=function(FB,EZ){FB.preventDefault();if((f7==null)||(du==null))return-1;var EP=null;var u1=EZ.split(aB);EP=Hs(f7,u1[1]);if(EP!=null){var k="\x43\x4d\x49\x5f\x49\x4e\x46\x4f\x7c\x48\x61\x6e\x64\x6c\x65\x49\x6e\x66\x6f\x54\x65\x78\x74\x45\x6e\x74\x65\x72\x7c"+FB.clientX+"\x7c"+FB.clientY+"\x7c"+EP.fF.getInfoText()+"\x7c\x62\x72\x4e\x61\x6d\x65\x3d"+Ch;Im.sendCmiNotification(k);}};this.handleInfoTextLeave=function(FB){FB.preventDefault();var k="\x43\x4d\x49\x5f\x49\x4e\x46\x4f\x7c\x48\x61\x6e\x64\x6c\x65\x49\x6e\x66\x6f\x54\x65\x78\x74\x4c\x65\x61\x76\x65"+"\x7c\x62\x72\x4e\x61\x6d\x65\x3d"+Ch;Im.sendCmiNotification(k);};this.createEmptyNodeTree=function(o){f7=new Array();wg=new CmiModel(o);Im=o;Tm=null;DF=false;};this.addNewNode=function(parentNode,nodeType,sj,sN){var Zk=new rt();Zk.sj=sj;if(nodeType.length>0)Zk.kV=nodeType;Zk.sN=sN;Zk.id=(Date.now().toString(36)+Math.random().toString(36).substring(2));if(parentNode!=null){Zk.parentNode=parentNode;if(parentNode.ty==null)parentNode.ty=new Array();parentNode.ty.push(Zk);}else f7.push(Zk);return Zk;};this.nG=function(){var k="\x43\x4d\x49\x5f\x49\x4e\x46\x4f\x7c\x42\x72\x6f\x77\x73\x65\x72\x56\x69\x65\x77\x55\x70\x64\x61\x74\x65\x64\x7c"+Ch;Im.sendCmiNotification(k);return 0;};this.updateNodeTypeByNodeDataArray=function(NS,wX,ND){var sI=new Array();var VJ=new Array();var ru=new Array();var Hl="";for(var G=0;G<ND.length;G++){Hl=JSON.stringify(ND[G]);ru.push(Hl);}for(var G=0;G<f7.length;G++){if(f7[G].sN!=null){Hl=JSON.stringify(f7[G].sN);if(ru.includes(Hl))sI.push(f7[G]);else VJ.push(f7[G]);}if(f7[G].ty!=null)F2(f7[G],sI,VJ,ru);}for(var G=0;G<sI.length;G++)sI[G].kV=NS;if(wX.length>0){for(var G=0;G<VJ.length;G++)VJ[G].kV=wX;}};var F2=function(parentNode,sI,VJ,ru){var OQ=null;var Ny="";for(var G=0;G<parentNode.ty.length;G++){var OQ=parentNode.ty[G];if(OQ.sN!=null){Ny=JSON.stringify(OQ.sN);if(ru.includes(Ny))sI.push(OQ);else VJ.push(OQ);}if(OQ.ty!=null)F2(OQ,sI,VJ,ru);}};this.allowDrop=function(FB){FB.preventDefault();};this.Oy=function(FB){var mk=FB.target;var EP=null;var IC=document.getElementById("\x48\x6c\x2d"+mk.u_);var u1=mk.u_.split(aB);if(IC.checked==false){EP=Hs(f7,u1[1]);if(EP!=null){aI.eN(EP,true);Im.drawScene();}}if(ye!=null)ye();};this.dragEnter=function(FB){var mk=FB.target;while(mk.tagName!="\x54\x52")mk=mk.parentElement;if(mk!=null)mk.className="\x63\x6d\x69\x41\x73\x73\x4e\x6f\x64\x65\x44\x72\x6f\x70";};this.dragLeave=function(FB){var mk=FB.target;while(mk.tagName!="\x54\x52")mk=mk.parentElement;if(mk!=null){if(mk.O.kV=="\x64\x79\x6e"){if(mk.O.FI==true)mk.className="\x63\x6d\x69\x41\x73\x73\x4e\x6f\x64\x65\x41\x63\x74\x69\x76\x65";else mk.className="\x63\x6d\x69\x41\x73\x73\x4e\x6f\x64\x65\x44\x79\x6e\x50\x6f\x73";}}};this.dropped=function(FB){var mk=FB.target;while(mk.tagName!="\x54\x52")mk=mk.parentElement;if(mk!=null){if(mk.O.kV=="\x64\x79\x6e"){if(mk.O.FI==true)mk.className="\x63\x6d\x69\x41\x73\x73\x4e\x6f\x64\x65\x41\x63\x74\x69\x76\x65";else mk.className="\x63\x6d\x69\x41\x73\x73\x4e\x6f\x64\x65\x44\x79\x6e\x50\x6f\x73";}if(TG!=null){var EP=null;var u1=mk.u_.split(aB);EP=Hs(f7,u1[1]);if(EP!=null){TG(EP.fF);}}}};this.generatePositionNumbers=function(uh,mJ){if((f7==null)||(du==null))return-1;var O=null;var mq=1;var _l=1;var Aa="";var R2=true;var nw=true;var kz=true;if(uh!=undefined){_l=uh;mq=uh;}for(var G=0;G<f7.length;G++){O=f7[G];if(O.mL!=null)Aa=O.mL.getSonNodeRef().wA();else Aa="";switch(Aa){case "\x73\x63":R2=false;nw=false;kz=true;break;case "\x73\x73":R2=false;nw=true;kz=true;break;case "\x6d\x75\x73":R2=true;nw=false;kz=false;break;default:R2=true;nw=true;kz=true;break;}if(Nr>=1){R2=true;nw=false;kz=true;}if(nw==true){O.fg=mq;if(O.mL!=null)O.mL.setPosNr(mq);if((O.fF!=null)&&(O.fF.getPosNrFixed()==false)){O.fF.setPosNr(mq);if(O.fF.modelEntity!=null)O.fF.modelEntity.setPosNr(mq);}mq=mq+_l;}if(((O.fF!=null)||(O.mL!=null))&&(R2==true)){if(kz==true)fz(O,uh,uh,mJ,null);else mq=fz(O,mq,uh,mJ,null);}else if(R2==true){mq=fz(O,mq,uh,mJ,null);}}return this.rebuildTreeViewTable();};var fz=function(O,pp,uh,mJ,_t){var OQ=null;var mq=1;var _l=1;var YF=null;var Aa="";var R2=true;var nw=true;var kz=true;if(pp!=undefined)mq=pp;if(uh!=undefined)_l=uh;if(_t!=null)YF=_t;else YF=new Array();if(O.Xu!=null){for(var G=0;G<O.Xu.length;G++){OQ=O.Xu[G];if(OQ.mL!=null)Aa=OQ.mL.getSonNodeRef().wA();else Aa="";switch(Aa){case "\x73\x63":R2=false;nw=false;kz=true;break;case "\x73\x73":R2=false;nw=true;kz=true;break;case "\x6d\x75\x73":R2=true;nw=false;kz=false;break;default:R2=true;nw=true;kz=true;break;}if(nw==true){if(mJ==true){var we=null;if(OQ.mL!=null)we=OQ.mL.getSonNodeRef().getNode();else if(OQ.fF!=null)we=OQ.fF.getModelTemplateData();var F8=YF.find(item=>item.Y8===we);if((F8!=undefined)||(F8!=null)){OQ.fg=F8.Kq;if(OQ.mL!=null)OQ.mL.setPosNr(F8.Kq);if((OQ.fF!=null)&&(OQ.fF.getPosNrFixed()==false)){OQ.fF.setPosNr(F8.Kq);if(OQ.fF.modelEntity!=null)OQ.fF.modelEntity.setPosNr(F8.Kq);}}else{var sz=new Object();if(OQ.mL!=null)sz.Y8=OQ.mL.getSonNodeRef().getNode();else if(OQ.fF!=null)sz.Y8=OQ.fF.getModelTemplateData();sz.Kq=mq;YF.push(sz);OQ.fg=mq;if(OQ.mL!=null)OQ.mL.setPosNr(mq);if((OQ.fF!=null)&&(OQ.fF.getPosNrFixed()==false)){OQ.fF.setPosNr(mq);if(OQ.fF.modelEntity!=null)OQ.fF.modelEntity.setPosNr(mq);}mq=mq+_l;}}else{OQ.fg=mq;if(OQ.mL!=null)OQ.mL.setPosNr(mq);if((OQ.fF!=null)&&(OQ.fF.getPosNrFixed()==false)){OQ.fF.setPosNr(mq);if(OQ.fF.modelEntity!=null)OQ.fF.modelEntity.setPosNr(mq);}mq=mq+_l;}}if(((OQ.fF!=null)||(OQ.mL!=null))&&(R2==true)){if(kz==true)fz(OQ,uh,uh,mJ,null);else mq=fz(OQ,mq,uh,mJ,null);}else if(R2==true){mq=fz(OQ,mq,uh,mJ,YF);}}}return(mq);};this.switchCollectionState=function(EZ){if((f7==null)||(du==null))return-1;var u1=EZ.split("\x2d"+aB);var EP=null;EP=Hs(f7,u1[1]);if(EP!=null){if(u1[0]=="\x63\x6f\x6c\x6c\x61\x70\x73")EP.kM=false;else EP.kM=true;return this.rebuildTreeViewTable();}return-1;};this.expandAllNodes=function(expand){if((f7==null)||(du==null))return-1;var O=null;for(var G=0;G<f7.length;G++){O=f7[G];Ly(O,expand);}return this.rebuildTreeViewTable();};var Ly=function(O,expand){var OQ=null;O.kM=expand;if(O.Xu!=null){for(var G=0;G<O.Xu.length;G++){OQ=O.Xu[G];Ly(OQ,expand);}}};var Ei=function(O){if(O.kM==false)O.kM=true;if(O.parentNode!=null)Ei(O.parentNode);};this.hideSelectedNodes=function(){if((f7==null)||(du==null))return-1;var O=null;for(var G=0;G<f7.length;G++){O=f7[G];ny(O);}return this.rebuildTreeViewTable();};var ny=function(O){var OQ=null;if((O.VD==true)&&(O.LE==true)){aI.eN(O,false);aI.Xo(O,false);}else if(O.Xu!=null){for(var G=0;G<O.Xu.length;G++){OQ=O.Xu[G];ny(OQ);}}};this.hideUnSelectedNodes=function(){if((f7==null)||(du==null))return-1;var O=null;for(var G=0;G<f7.length;G++){O=f7[G];Mq(O,this);}return this.rebuildTreeViewTable();};var Mq=function(O){var OQ=null;if((O.LE==false)&&((O.Xu==null)||(O.Xu.length==0))){aI.Xo(O,false);}else if(O.Xu!=null){for(var G=0;G<O.Xu.length;G++){OQ=O.Xu[G];Mq(OQ);}}};this.getActiveComponent=function(){if((f7==null)||(du==null))return null;var EP=null;EP=RP(f7);if(EP!=null)return EP.fF;else return null;};var RP=function(aj){var EP=null;for(var G=0;G<aj.length;G++){if(aj[G].Xu!=null){EP=RP(aj[G].Xu);if(EP!=null)return EP;}if(aj[G].FI==true)return aj[G];}return null;};this.getComponentFromTableRow=function(KJ){if((f7==null)||(du==null)||(KJ==null))return null;if((KJ.O==undefined)||(KJ.O==null))return null;return KJ.O.fF;};this.getComponentArray=function(){if((f7==null)||(du==null))return null;var _t=new Array();pv(f7,_t);return _t;};var pv=function(aj,vm){for(var G=0;G<aj.length;G++){if(aj[G].fF!=null)vm.push(aj[G].fF);if(aj[G].Xu!=null){pv(aj[G].Xu,vm);}}return 0;};this.switchVisibilityState=function(EZ){if((f7==null)||(du==null))return-1;var u1=EZ.split("\x2d"+aB);var EP=null;var IC=document.getElementById(EZ);EP=Hs(f7,u1[1]);if(EP!=null){if(IC.checked){this.Xo(EP,true);}else{this.eN(EP,false,true);this.Xo(EP,false);}if(Im)Im.drawScene();return this.nG();}return-1;};this.switchVisibilityStateForAll=function(pn){if((f7==null)||(du==null))return-1;var O=null;for(var G=0;G<f7.length;G++){O=f7[G];if(pn==true){this.Xo(O,true);}else{this.eN(O,false);this.Xo(O,false);}}return this.nG();};this.Xo=function(O,pn,UN){var W3=false;if(UN!=undefined)W3=UN;if(O.fF){if((pn==false)&&(O.fF.isHighlighted==true)){if(O.LE==true)xB--;O.fF.isHighlighted=false;O.LE=false;}O.fF.gV=pn;O.VD=pn;}else{O.VD=pn;}if(O.zV!=null)O.zV.checked=pn;if(O.Xu!=null){for(var G=0;G<O.Xu.length;G++){this.Xo(O.Xu[G],pn);}}if((O.parentNode!=null)&&(xE==false)&&(W3==true))kq(O.parentNode);};this.activateForInput=function(EZ){if((f7==null)||(du==null))return-1;var u1=EZ.split(aB);var EP=null;var cW=document.getElementById(EZ);var g2=RP(f7);EP=Hs(f7,u1[1]);if(EP!=null){if(g2!=null){g2.FI=false;if(g2.lM!=null)g2.lM.setAttribute("\x64\x72\x61\x67\x67\x61\x62\x6c\x65",true);}EP.FI=true;if(EP.lM!=null)EP.lM.setAttribute("\x64\x72\x61\x67\x67\x61\x62\x6c\x65",false);return this.rebuildTreeViewTable();}return-1;};this.nameClicked=function(EZ){if((f7==null)||(du==null))return-1;var u1=EZ.split(aB);var EP=null;EP=Hs(f7,u1[1]);if(EP!=null){var k="\x43\x4d\x49\x5f\x49\x4e\x46\x4f\x7c\x42\x72\x6f\x77\x73\x65\x72\x45\x6e\x74\x72\x79\x43\x6c\x69\x63\x6b\x65\x64\x7c"+JSON.stringify(EP.sN);var DX=CmiHelpers.FT(k,0);du.dispatchEvent(DX);}};this.setPosNr=function(EZ){if((f7==null)||(du==null))return-1;var u1=EZ.split(aB);var EP=null;var hW=document.getElementById(EZ);EP=Hs(f7,u1[1]);if(EP!=null){EP.fg=hW.value;if((EP.fF!=null)&&(EP.fF.getPosNrFixed()==false)){EP.fF.setPosNr(EP.fg);if(EP.fF.modelEntity!=null)EP.fF.modelEntity.setPosNr(EP.fg);}if(EP.mL!=null)EP.mL.setPosNr(EP.fg);return this.rebuildTreeViewTable();}return-1;};this.setName=function(EZ){if((f7==null)||(du==null))return-1;var u1=EZ.split(aB);var EP=null;var hW=document.getElementById(EZ);EP=Hs(f7,u1[1]);if(EP!=null){EP.sj=hW.value;if(EP.Rw==true){if(wg!=null)wg.setModelName(EP.sj);}else{EP.fF.getModelTemplateData().getModel().setModelName(EP.sj);EP.fF.getModelTemplateData().wo=EP.sj+"\x2e\x74\x65\x6d\x70\x6c\x61\x74\x65";EP.fF.Tr(EP.sj+"\x2e\x74\x65\x6d\x70\x6c\x61\x74\x65");}return this.rebuildTreeViewTable();}return-1;};this.setModificationFlagToSelectedNodes=function(Aa){if((f7==null)||(du==null))return-1;var O=null;var us=null;if(Aa.length==0){if((Nr>=1)&&(f7[0].LE==true)){Tm.sf();this.buildProductStructureTree(Tm);return this.rebuildTreeViewTable();}else us=this.Hw(2);}else us=this.Hw(1);for(var G=0;G<us.length;G++){O=us[G];if(O.mL!=null){switch(Aa){case "\x73\x63":O.mL.getSonNodeRef().P_(Aa);break;case "\x73\x73":if(O.Xu!=null)O.mL.getSonNodeRef().P_(Aa);break;case "\x6d\x75\x73":if(O.Xu!=null)O.mL.getSonNodeRef().P_(Aa);break;default:O.mL.getSonNodeRef().P_(Aa);break;}}}this.saveTableLayout();this.buildProductStructureTree(Tm);this.restoreTableLayout();this.rebuildTreeViewTable();};this.switchHighlightState=function(EZ){if((f7==null)||(du==null))return-1;var u1=EZ.split("\x2d"+aB);var EP=null;var IC=document.getElementById(EZ);EP=Hs(f7,u1[1]);if(EP!=null){if(IC.checked){this.eN(EP,true);}else{this.eN(EP,false,true);}if(Im)Im.drawScene();return this.nG();}return-1;};this.switchHighlightStateForAll=function(Wa){if((f7==null)||(du==null))return-1;var O=null;for(var G=0;G<f7.length;G++){O=f7[G];if(O.fF){if(O.fF.gV==false){if(O.LE==true)xB--;O.fF.isHighlighted=false;}}else{if(O.VD==false){O.LE=false;}}if(Wa==true){this.eN(O,true);}else{this.eN(O,false);}}return this.nG();};this.eN=function(O,Wa,UN){var W3=false;if((f7==null)||(du==null))return-1;if(UN!=undefined)W3=UN;if(O.fF){if((Wa==true)&&(O.LE==false))xB++;else if((Wa==false)&&(O.LE==true))xB--;O.fF.isHighlighted=Wa;O.LE=Wa;}else{O.LE=Wa;}if(O.Db!=null)O.Db.checked=Wa;if(O.Xu!=null){for(var G=0;G<O.Xu.length;G++){this.eN(O.Xu[G],Wa);}}if((O.parentNode!=null)&&(W3==true))pB(O.parentNode);};this.switchHighlightStateOfComponent=function(z7,UN){var O=G0(f7,z7);var Wa;var W3=false;if((f7==null)||(du==null))return-1;if((z7.getBrowserVisibleState()>=3)&&(z7.getParentComponent()!=null))O=G0(f7,z7.getParentComponent());if(UN!=undefined)W3=UN;if(O!=null){Wa=!O.fF.isHighlighted;if((Wa==true)&&(O.LE==false))xB++;else if((Wa==false)&&(O.LE==true))xB--;O.fF.isHighlighted=Wa;O.LE=Wa;if(O.Xu!=null){for(var G=0;G<O.Xu.length;G++){this.eN(O.Xu[G],Wa);}}if((O.parentNode!=null)&&(W3==true))pB(O.parentNode);if((W3==true)&&(Wa==true))Ei(O);this.rebuildTreeViewTable();return "\x48\x6c\x2d"+O.tp;}};this.switchHighlightStateOfComponentNode=function(z7,Wa){if((f7==null)||(du==null))return-1;var O=G0(f7,z7);if(O!=null){if((Wa==true)&&(O.LE==false))xB++;else if((Wa==false)&&(O.LE==true))xB--;O.LE=Wa;this.rebuildTreeViewTable();return "\x48\x6c\x2d"+O.tp;}else return "";};this.expandComponentBranch=function(_t){var O=null;var z7=null;if((f7==null)||(du==null))return-1;for(var G=0;G<_t.length;G++){z7=_t[G];O=G0(f7,z7);if((z7.getBrowserVisibleState()>=3)&&(z7.getParentComponent()!=null))O=G0(f7,z7.getParentComponent());if(O!=null){Ei(O);}};this.rebuildTreeViewTable();if(O!=null)return "\x48\x6c\x2d"+O.tp;else return "";};this.highlightComponents=function(_t){var O=null;var Wa;if((f7==null)||(du==null))return-1;for(var G=0;G<_t.length;G++){O=G0(f7,_t[G]);if(O!=null){if(O.LE==false)xB++;O.fF.isHighlighted=true;O.LE=true;if(O.Xu!=null){for(var M=0;M<O.Xu.length;M++){this.eN(O.Xu[M],true);};}}};return this.rebuildTreeViewTable();};this.MP=function(ta){var IO=new Array();var O=null;if(f7==null)return IO;for(var G=0;G<f7.length;G++){O=f7[G];IO.push(O);if(O.Xu!=null){Or(O,IO);}};return IO;};var Or=function(O,IO){var OQ=null;for(var G=0;G<O.Xu.length;G++){OQ=O.Xu[G];IO.push(OQ);if(OQ.Xu!=null)Or(OQ,IO);};};this.Hw=function(ta){var IO=new Array();var O=null;if(f7==null)return IO;for(var G=0;G<f7.length;G++){O=f7[G];if(O.LE==true){IO.push(O);if((ta==2)&&(O.Xu!=null)){ga(O,IO,ta);}}else{if((ta>0)&&(O.Xu!=null)){ga(O,IO,ta);}}}return IO;};var ga=function(O,IO,ta){var OQ=null;for(var G=0;G<O.Xu.length;G++){OQ=O.Xu[G];if(OQ.LE==true){IO.push(OQ);if((ta==2)&&(OQ.Xu!=null)){ga(OQ,IO,ta);}}else{if((ta>0)&&(OQ.Xu!=null)){ga(OQ,IO,ta);}}}};this.Lz=function(R2){var IO=new Array();var O=null;if(f7==null)return IO;for(var G=0;G<f7.length;G++){O=f7[G];if(O.LE==false){IO.push(O);if((R2==true)&&(O.Xu!=null)){nH(O,IO,R2);}}}return IO;};var nH=function(O,IO,R2){var OQ=null;for(var G=0;G<O.Xu.length;G++){OQ=O.Xu[G];if(OQ.LE==false){IO.push(OQ);if((R2==true)&&(OQ.Xu!=null)){nH(OQ,IO,R2);}}}};this.getHighlightedStructureLinks=function(R2){var IO=new Array();var us=null;if(f7==null)return IO;if(R2)us=this.Hw(2);else us=this.Hw(0);for(var G=0;G<us.length;G++){if(us[G].mL!=null)IO.push(us[G].mL);else if((Nr>=1)&&(f7[0]==us[G])){let LI=new CmiStructureLink();LI.dl(Tm.getTopNodeRef());IO.push(LI);}}return IO;};this.getHighlightedComponents=function(R2){var IO=new Array();var O=null;var Lh=false;if(f7==null)return IO;if(R2!=undefined)Lh=R2;for(var G=0;G<f7.length;G++){O=f7[G];if((O.fF)&&(O.fF.isHighlighted==true)){IO.push(O.fF);if((Lh==true)&&(O.Xu!=null)){iZ(O,IO,Lh,false);}}else{if(O.Xu!=null){iZ(O,IO,Lh,false);}}}return IO;};this.getUnHighlightedComponents=function(R2){var IO=new Array();var O=null;var Lh=false;if(R2!=undefined)Lh=R2;if(f7==null)return IO;for(var G=0;G<f7.length;G++){O=f7[G];if((O.fF)&&(O.fF.isHighlighted==false)){IO.push(O.fF);if((Lh==true)&&(O.Xu!=null)){iZ(O,IO,Lh,true);}}else{if(O.Xu!=null){iZ(O,IO,Lh,true);}}}return IO;};var iZ=function(O,IO,R2,VB){var OQ=null;for(var G=0;G<O.Xu.length;G++){OQ=O.Xu[G];if(OQ.fF){if(((OQ.fF.isHighlighted==true)&&(VB==false))||((OQ.fF.isHighlighted==false)&&(VB==true))){IO.push(OQ.fF);}if((R2==true)&&(OQ.Xu!=null)){iZ(OQ,IO,R2,VB);}}else{if(OQ.Xu!=null){iZ(OQ,IO,R2,VB);}}}};this.searchComponents=function(MJ,Y9){var IO=new Array();var O=null;var A9="";var sj="";if(f7==null)return IO;if(!Y9)A9=MJ.toLowerCase();else A9=MJ;for(var G=0;G<f7.length;G++){O=f7[G];if(O.fF){if(!Y9)sj=O.sj.toLowerCase();else sj=O.sj;if(sj.includes(A9))IO.push(O.fF);if(O.Xu!=null){Iv(O,IO,A9,Y9);}}else{if(O.Xu!=null){Iv(O,IO,A9,Y9);}}}return IO;};var Iv=function(O,IO,A9,Y9){var OQ=null;var sj="";for(var G=0;G<O.Xu.length;G++){OQ=O.Xu[G];if(OQ.fF){if(!Y9)sj=OQ.sj.toLowerCase();else sj=OQ.sj;if(sj.includes(A9))IO.push(OQ.fF);if(OQ.Xu!=null){Iv(OQ,IO,A9,Y9);}}else{if(OQ.Xu!=null){Iv(OQ,IO,A9,Y9);}}}};this.searchComponentInstances=function(z7){var IO=new Array();var O=null;if(f7==null)return IO;var kA=G0(f7,z7);if(kA==null)return IO;var Cw=z7.getModelTemplateData();for(var G=0;G<f7.length;G++){O=f7[G];if(O.fF){if(O.fF.getModelTemplateData()==Cw){IO.push(O.fF);}else if(O.Xu!=null){N_(O,kA,IO);}}else{if(O.Xu!=null){N_(O,kA,IO);}}}return IO;};var N_=function(O,kA,IO){var OQ=null;var sj="";var Cw=kA.fF.getModelTemplateData();for(var G=0;G<O.Xu.length;G++){OQ=O.Xu[G];if(OQ.fF){if(OQ.fF.getModelTemplateData()==Cw){IO.push(OQ.fF);}else if(OQ.Xu!=null){N_(OQ,kA,IO);}}else{if(OQ.Xu!=null){Iv(OQ,kA,IO);}}}};this.saveTableLayout=function(){var O=null;if(f7==null)return 0;OJ=new Array();for(var G=0;G<f7.length;G++){O=f7[G];if((O.kM==true)&&(O.fF!=null)){OJ.push(O.fF);}if((O.FI==true)&&(O.fF!=null))iD=O.fF;if(O.Xu!=null){P2(O);}}return 0;};var P2=function(O){var OQ=null;for(var G=0;G<O.Xu.length;G++){OQ=O.Xu[G];if((OQ.kM==true)&&(OQ.fF!=null)){OJ.push(OQ.fF);}if((OQ.FI==true)&&(OQ.fF!=null))iD=OQ.fF;if(OQ.Xu!=null){P2(OQ);}}return 0;};this.restoreTableLayout=function(){var O=null;if(f7==null)return 0;for(var G=0;G<f7.length;G++){O=f7[G];if((iD!=null)&&(iD==O.fF)){O.FI=true;iD=null;}for(var M=0;M<OJ.length;M++){if(OJ[M]==O.fF){O.kM=true;OJ.splice(M,1);}}if(O.Xu!=null){Hj(O);}if(iD!=null){f7[0].FI=true;iD=null;}}return 0;};var Hj=function(O){var OQ=null;for(var G=0;G<O.Xu.length;G++){OQ=O.Xu[G];if((iD!=null)&&(iD==OQ.fF)){OQ.FI=true;iD=null;}for(var M=0;M<OJ.length;M++){if(OJ[M]==OQ.fF){OQ.kM=true;OJ.splice(M,1);if(OQ.Xu!=null){Hj(OQ);}}}}return 0;};var Hs=function(aj,Zf){var EP=null;for(var G=0;G<aj.length;G++){if(aj[G].Xu!=null){EP=Hs(aj[G].Xu,Zf);if(EP!=null)return EP;}else if(aj[G].ty!=null){EP=Hs(aj[G].ty,Zf);if(EP!=null)return EP;}if(aj[G].id==Zf)return aj[G];}return null;};var G0=function(aj,z7){var EP=null;for(var G=0;G<aj.length;G++){if(aj[G].fF==z7)return aj[G];if(aj[G].Xu!=null){EP=G0(aj[G].Xu,z7);if(EP!=null)return EP;}}return null;};var pB=function(O){var OQ=null;var UK=true;var Oc=true;var ut=true;var mb=true;if(O.Xu!=null){for(var G=0;G<O.Xu.length;G++){OQ=O.Xu[G];if(OQ.VD==false)UK=false;else Oc=false;if(OQ.LE==false)ut=false;else mb=false;}{if(ut==true){if(O.fF){if(O.LE==false)xB++;O.fF.isHighlighted=true;}O.LE=true;if(O.Db!=null)O.Db.checked=true;}else{if(O.fF){if(O.LE==true)xB--;O.fF.isHighlighted=false;}O.LE=false;if(O.Db!=null)O.Db.checked=false;}if(O.parentNode!=null){pB(O.parentNode);}}}};var kq=function(O){var OQ=null;var UK=true;var Oc=true;var ut=true;var mb=true;if(O.Xu!=null){for(var G=0;G<O.Xu.length;G++){OQ=O.Xu[G];if(OQ.VD==false)UK=false;else Oc=false;if(OQ.LE==false)ut=false;else mb=false;if(O.parentNode!=null){kq(O.parentNode);}}}if((ut==true)&&(O.LE==false)){aI.eN(O,true);}else if((mb==true)&&(O.LE==true)){aI.eN(O,false);}};this.rebuildTreeViewTable=function(){if((f7==null)||(du==null))return-1;var body=du.getElementsByTagName("\x74\x62\x6f\x64\x79")[0];while(body.hasChildNodes()){body.removeChild(body.firstChild);}Pq(body,f7,"",KF);var k="\x43\x4d\x49\x5f\x49\x4e\x46\x4f\x7c\x42\x72\x6f\x77\x73\x65\x72\x56\x69\x65\x77\x55\x70\x64\x61\x74\x65\x64\x7c"+Ch;var DX=CmiHelpers.FT(k,0);du.dispatchEvent(DX);return 0;};var Pq=function(A6,Uf,prefix,FS){var uI;var b9;var Wv="";var _o;var xR="";var rG="";var Qp="";var R4="";var C7="";var cmiClassName="";var Qf=false;var be=true;var R2=true;var Aa="";var Lb=null;for(var G=0;G<Uf.length;G++){if(Uf[G].mL!=null)Aa=Uf[G].mL.getSonNodeRef().wA();else Aa="";be=true;if((FS==false)&&(Uf[G].parentNode!=null)){if(Uf[G].VD==false)be=false;else if((Uf[G].fF!=null)&&(Uf[G].fF.gV==false))be=false;}switch(Aa){case "\x73\x63":R2=false;be=false;break;case "\x73\x73":R2=false;be=true;break;case "\x6d\x75\x73":R2=true;be=false;break;default:R2=true;break;}if(be==true){uI=document.createElement("\x74\x72");b9=document.createElement("\x74\x64");xR=aB+Uf[G].id;Uf[G].tp=xR;uI.u_=xR;Uf[G].lM=uI;uI.O=Uf[G];if(Uf[G].kV=="\x70\x61\x67\x65\x52\x65\x66")cmiClassName="\x63\x6d\x69\x41\x73\x73\x49\x63\x6f\x6e\x20"+"\x70\x61\x67\x65\x52\x65\x66";else if(Uf[G].kV=="\x70\x61\x67\x65\x52\x65\x66\x41\x6e\x6e")cmiClassName="\x63\x6d\x69\x41\x73\x73\x49\x63\x6f\x6e\x20"+"\x70\x61\x67\x65\x52\x65\x66\x41\x6e\x6e";else if((wg!=null)&&(Uf[G].fF!=null)&&(Uf[G].fF.getRepresentedType().length>0))cmiClassName="\x63\x6d\x69\x41\x73\x73\x49\x63\x6f\x6e\x20"+Uf[G].fF.getRepresentedType();else if((Tm!=null)&&(Uf[G].WI==false))cmiClassName="\x63\x6d\x69\x41\x73\x73\x49\x63\x6f\x6e\x20"+"\x61\x72\x74\x69\x63\x6c\x65";else if(Uf==f7){if(wg)cmiClassName="\x63\x6d\x69\x41\x73\x73\x49\x63\x6f\x6e\x20"+wg.getRepresentedType();else if(Tm)cmiClassName="\x63\x6d\x69\x41\x73\x73\x49\x63\x6f\x6e\x20"+"\x61\x72\x74\x69\x63\x6c\x65";}else cmiClassName="\x63\x6d\x69\x41\x73\x73\x49\x63\x6f\x6e";C7="\x3c\x64\x69\x76\x20\x63\x6c\x61\x73\x73\x3d\x27"+cmiClassName+"\x27\x20\x73\x74\x79\x6c\x65\x3d\x27\x64\x69\x73\x70\x6c\x61\x79\x3a\x69\x6e\x6c\x69\x6e\x65\x2d\x62\x6c\x6f\x63\x6b\x3b\x27\x3e\x26\x6e\x62\x73\x70\x3b\x26\x6e\x62\x73\x70\x3b\x3c\x2f\x64\x69\x76\x3e";Qp="\x3c\x73\x70\x61\x6e\x20\x74\x69\x74\x6c\x65\x3d\x27"+Uf[G].sj+"\x27\x3e"+Uf[G].sj+"\x26\x6e\x62\x73\x70\x3b\x3c\x2f\x73\x70\x61\x6e\x3e";if((Uf[G].Rw==true)||(Uf[G].fF==null)||(DF==false)){R4=""}else if((Uf[G].fF!=null)&&(Uf[G].fF.getPosNrFixed()==false)||(Uf[G].mL!=null)){R4="\x3c\x69\x6e\x70\x75\x74\x20\x74\x79\x70\x65\x3d\x27\x74\x65\x78\x74\x27\x20\x64\x72\x61\x67\x67\x61\x62\x6c\x65\x3d\x66\x61\x6c\x73\x65\x20\x63\x6c\x61\x73\x73\x3d\x27\x63\x6d\x69\x41\x73\x73\x50\x6f\x73\x4e\x72\x41\x63\x74\x69\x76\x65\x27\x20"+"\x6f\x6e\x63\x68\x61\x6e\x67\x65\x3d\x22\x6a\x61\x76\x61\x73\x63\x72\x69\x70\x74\x3a"+w2+"\x2e\x73\x65\x74\x50\x6f\x73\x4e\x72\x28\x27\x70\x6e\x72\x2d"+xR+"\x27\x29\x22"+"\x76\x61\x6c\x75\x65\x3d\x27"+Uf[G].fg+"\x27\x20\x69\x64\x3d\x27\x70\x6e\x72\x2d"+xR+"\x27\x3e\x26\x6e\x62\x73\x70\x3b";}else{R4="\x3c\x69\x6e\x70\x75\x74\x20\x74\x79\x70\x65\x3d\x27\x74\x65\x78\x74\x27\x20\x64\x72\x61\x67\x67\x61\x62\x6c\x65\x3d\x66\x61\x6c\x73\x65\x20\x63\x6c\x61\x73\x73\x3d\x27\x63\x6d\x69\x41\x73\x73\x50\x6f\x73\x4e\x72\x46\x69\x78\x65\x64\x27\x20"+"\x76\x61\x6c\x75\x65\x3d\x27"+Uf[G].fg+"\x27\x20\x69\x64\x3d\x27\x70\x6e\x72\x2d"+xR+"\x27\x3e\x26\x6e\x62\x73\x70\x3b";}uI.setAttribute("\x64\x72\x61\x67\x67\x61\x62\x6c\x65",true);uI.addEventListener("\x64\x72\x61\x67\x73\x74\x61\x72\x74",aI.Oy);if(Uf[G].kV.includes("\x70\x61\x67\x65\x52\x65\x66")){Qp="\x3c\x61\x20\x73\x74\x79\x6c\x65\x3d\x22\x63\x75\x72\x73\x6f\x72\x3a\x20\x70\x6f\x69\x6e\x74\x65\x72\x3b\x22\x20\x6f\x6e\x63\x6c\x69\x63\x6b\x3d\x22\x6a\x61\x76\x61\x73\x63\x72\x69\x70\x74\x3a"+w2+"\x2e\x6e\x61\x6d\x65\x43\x6c\x69\x63\x6b\x65\x64\x28\x27"+xR+"\x27\x29\x22"+"\x74\x69\x74\x6c\x65\x3d\x27"+Uf[G].sj+"\x27\x3e"+Uf[G].sj+"\x26\x6e\x62\x73\x70\x3b\x3c\x2f\x61\x3e";}else if(Uf[G].FI==true){if((Uf[G].fF!=null)&&(Uf[G].fF.getInfoText().length>0)){uI.className="\x63\x6d\x69\x41\x73\x73\x4e\x6f\x64\x65\x41\x63\x74\x69\x76\x65\x20"+"\x63\x6d\x69\x48\x61\x73\x49\x6e\x66\x6f\x54\x65\x78\x74";Qf=true;}else{uI.className="\x63\x6d\x69\x41\x73\x73\x4e\x6f\x64\x65\x41\x63\x74\x69\x76\x65";Qf=false;}Uf[G].kV="\x64\x79\x6e";Qp="\x3c\x69\x6e\x70\x75\x74\x20\x73\x74\x79\x6c\x65\x3d\x22\x62\x61\x63\x6b\x67\x72\x6f\x75\x6e\x64\x2d\x63\x6f\x6c\x6f\x72\x3a\x69\x6e\x68\x65\x72\x69\x74\x3b\x22\x20\x74\x79\x70\x65\x3d\x27\x74\x65\x78\x74\x27\x20\x63\x6c\x61\x73\x73\x3d\x27\x63\x6d\x69\x41\x73\x73\x4e\x6f\x64\x65\x41\x63\x74\x69\x76\x65\x27\x20"+"\x74\x69\x74\x6c\x65\x3d\x27"+Uf[G].sj+"\x27\x20"+"\x6f\x6e\x63\x68\x61\x6e\x67\x65\x3d\x22\x6a\x61\x76\x61\x73\x63\x72\x69\x70\x74\x3a"+w2+"\x2e\x73\x65\x74\x4e\x61\x6d\x65\x28\x27\x70\x6e\x6d\x2d"+xR+"\x27\x29\x22"+"\x6f\x6e\x64\x72\x6f\x70\x3d\x22\x6a\x61\x76\x61\x73\x63\x72\x69\x70\x74\x3a"+w2+"\x2e\x64\x72\x6f\x70\x70\x65\x64\x28\x65\x76\x65\x6e\x74\x29\x22"+"\x6f\x6e\x64\x72\x61\x67\x6f\x76\x65\x72\x3d\x22\x6a\x61\x76\x61\x73\x63\x72\x69\x70\x74\x3a"+w2+"\x2e\x61\x6c\x6c\x6f\x77\x44\x72\x6f\x70\x28\x65\x76\x65\x6e\x74\x29\x22"+"\x6f\x6e\x64\x72\x61\x67\x65\x6e\x74\x65\x72\x3d\x22\x6a\x61\x76\x61\x73\x63\x72\x69\x70\x74\x3a"+w2+"\x2e\x64\x72\x61\x67\x45\x6e\x74\x65\x72\x28\x65\x76\x65\x6e\x74\x29\x22"+"\x6f\x6e\x64\x72\x61\x67\x6c\x65\x61\x76\x65\x3d\x22\x6a\x61\x76\x61\x73\x63\x72\x69\x70\x74\x3a"+w2+"\x2e\x64\x72\x61\x67\x4c\x65\x61\x76\x65\x28\x65\x76\x65\x6e\x74\x29\x22"+"\x76\x61\x6c\x75\x65\x3d\x27"+Uf[G].sj+"\x27\x20\x69\x64\x3d\x27\x70\x6e\x6d\x2d"+xR+"\x27\x3e\x26\x6e\x62\x73\x70\x3b";if(Qf==true){C7="\x3c\x64\x69\x76\x20\x63\x6c\x61\x73\x73\x3d\x22"+cmiClassName+"\x22\x20\x73\x74\x79\x6c\x65\x3d\x22\x64\x69\x73\x70\x6c\x61\x79\x3a\x69\x6e\x6c\x69\x6e\x65\x2d\x62\x6c\x6f\x63\x6b\x3b\x22"+"\x20\x6f\x6e\x6d\x6f\x75\x73\x65\x65\x6e\x74\x65\x72\x3d\x22\x6a\x61\x76\x61\x73\x63\x72\x69\x70\x74\x3a"+w2+"\x2e\x68\x61\x6e\x64\x6c\x65\x49\x6e\x66\x6f\x54\x65\x78\x74\x45\x6e\x74\x65\x72\x28\x65\x76\x65\x6e\x74\x2c\x27"+xR+"\x27\x29\x22"+"\x20\x6f\x6e\x6d\x6f\x75\x73\x65\x6c\x65\x61\x76\x65\x3d\x22\x6a\x61\x76\x61\x73\x63\x72\x69\x70\x74\x3a"+w2+"\x2e\x68\x61\x6e\x64\x6c\x65\x49\x6e\x66\x6f\x54\x65\x78\x74\x4c\x65\x61\x76\x65\x28\x65\x76\x65\x6e\x74\x29\x22\x3e\x26\x6e\x62\x73\x70\x3b\x26\x6e\x62\x73\x70\x3b\x3c\x2f\x64\x69\x76\x3e";}if((Uf[G].fF!=null)&&(Uf[G].fF.getPosNrFixed()==false))uI.setAttribute("\x64\x72\x61\x67\x67\x61\x62\x6c\x65",true);else uI.setAttribute("\x64\x72\x61\x67\x67\x61\x62\x6c\x65",false);}else if((Uf[G].Rw==true)&&(xE==true)){if((Uf[G].fF!=null)&&(Uf[G].fF.getInfoText().length>0)){uI.className="\x63\x6d\x69\x41\x73\x73\x4e\x6f\x64\x65\x44\x79\x6e\x50\x6f\x73\x20"+"\x63\x6d\x69\x48\x61\x73\x49\x6e\x66\x6f\x54\x65\x78\x74";Qf=true;}else{uI.className="\x63\x6d\x69\x41\x73\x73\x4e\x6f\x64\x65\x44\x79\x6e\x50\x6f\x73";Qf=false;}Uf[G].kV="\x64\x79\x6e";Qp="\x3c\x61\x20\x73\x74\x79\x6c\x65\x3d\x22\x63\x75\x72\x73\x6f\x72\x3a\x20\x70\x6f\x69\x6e\x74\x65\x72\x3b\x22\x20\x6f\x6e\x63\x6c\x69\x63\x6b\x3d\x22\x6a\x61\x76\x61\x73\x63\x72\x69\x70\x74\x3a"+w2+"\x2e\x61\x63\x74\x69\x76\x61\x74\x65\x46\x6f\x72\x49\x6e\x70\x75\x74\x28\x27"+xR+"\x27\x29\x22"+"\x74\x69\x74\x6c\x65\x3d\x27"+Uf[G].sj+"\x27\x20"+"\x6f\x6e\x64\x72\x6f\x70\x3d\x22\x6a\x61\x76\x61\x73\x63\x72\x69\x70\x74\x3a"+w2+"\x2e\x64\x72\x6f\x70\x70\x65\x64\x28\x65\x76\x65\x6e\x74\x29\x22"+"\x6f\x6e\x64\x72\x61\x67\x6f\x76\x65\x72\x3d\x22\x6a\x61\x76\x61\x73\x63\x72\x69\x70\x74\x3a"+w2+"\x2e\x61\x6c\x6c\x6f\x77\x44\x72\x6f\x70\x28\x65\x76\x65\x6e\x74\x29\x22"+"\x6f\x6e\x64\x72\x61\x67\x65\x6e\x74\x65\x72\x3d\x22\x6a\x61\x76\x61\x73\x63\x72\x69\x70\x74\x3a"+w2+"\x2e\x64\x72\x61\x67\x45\x6e\x74\x65\x72\x28\x65\x76\x65\x6e\x74\x29\x22"+"\x6f\x6e\x64\x72\x61\x67\x6c\x65\x61\x76\x65\x3d\x22\x6a\x61\x76\x61\x73\x63\x72\x69\x70\x74\x3a"+w2+"\x2e\x64\x72\x61\x67\x4c\x65\x61\x76\x65\x28\x65\x76\x65\x6e\x74\x29\x22\x3e"+Uf[G].sj+"\x26\x6e\x62\x73\x70\x3b\x3c\x2f\x61\x3e";if(Qf==true){C7="\x3c\x64\x69\x76\x20\x63\x6c\x61\x73\x73\x3d\x22"+cmiClassName+"\x22\x20\x73\x74\x79\x6c\x65\x3d\x22\x64\x69\x73\x70\x6c\x61\x79\x3a\x69\x6e\x6c\x69\x6e\x65\x2d\x62\x6c\x6f\x63\x6b\x3b\x22"+"\x20\x6f\x6e\x6d\x6f\x75\x73\x65\x65\x6e\x74\x65\x72\x3d\x22\x6a\x61\x76\x61\x73\x63\x72\x69\x70\x74\x3a"+w2+"\x2e\x68\x61\x6e\x64\x6c\x65\x49\x6e\x66\x6f\x54\x65\x78\x74\x45\x6e\x74\x65\x72\x28\x65\x76\x65\x6e\x74\x2c\x27"+xR+"\x27\x29\x22"+"\x20\x6f\x6e\x6d\x6f\x75\x73\x65\x6c\x65\x61\x76\x65\x3d\x22\x6a\x61\x76\x61\x73\x63\x72\x69\x70\x74\x3a"+w2+"\x2e\x68\x61\x6e\x64\x6c\x65\x49\x6e\x66\x6f\x54\x65\x78\x74\x4c\x65\x61\x76\x65\x28\x65\x76\x65\x6e\x74\x29\x22\x3e\x26\x6e\x62\x73\x70\x3b\x26\x6e\x62\x73\x70\x3b\x3c\x2f\x64\x69\x76\x3e";}}else if((Uf[G].fF!=null)&&(Uf[G].fF.getModelTemplateData()!=null)&&(Uf[G].fF.getModelTemplateData().getDynamicAssemblyState()==true)){if((Uf[G].fF!=null)&&(Uf[G].fF.getInfoText().length>0)){uI.className="\x63\x6d\x69\x41\x73\x73\x4e\x6f\x64\x65\x44\x79\x6e\x50\x6f\x73\x20"+"\x63\x6d\x69\x48\x61\x73\x49\x6e\x66\x6f\x54\x65\x78\x74";Qf=true;}else{uI.className="\x63\x6d\x69\x41\x73\x73\x4e\x6f\x64\x65\x44\x79\x6e\x50\x6f\x73";Qf=false;}Uf[G].kV="\x64\x79\x6e";Qp="\x3c\x61\x20\x73\x74\x79\x6c\x65\x3d\x22\x63\x75\x72\x73\x6f\x72\x3a\x20\x70\x6f\x69\x6e\x74\x65\x72\x3b\x22\x20\x6f\x6e\x63\x6c\x69\x63\x6b\x3d\x22\x6a\x61\x76\x61\x73\x63\x72\x69\x70\x74\x3a"+w2+"\x2e\x61\x63\x74\x69\x76\x61\x74\x65\x46\x6f\x72\x49\x6e\x70\x75\x74\x28\x27"+xR+"\x27\x29\x22"+"\x74\x69\x74\x6c\x65\x3d\x27"+Uf[G].sj+"\x27\x20"+"\x6f\x6e\x64\x72\x6f\x70\x3d\x22\x6a\x61\x76\x61\x73\x63\x72\x69\x70\x74\x3a"+w2+"\x2e\x64\x72\x6f\x70\x70\x65\x64\x28\x65\x76\x65\x6e\x74\x29\x22"+"\x6f\x6e\x64\x72\x61\x67\x6f\x76\x65\x72\x3d\x22\x6a\x61\x76\x61\x73\x63\x72\x69\x70\x74\x3a"+w2+"\x2e\x61\x6c\x6c\x6f\x77\x44\x72\x6f\x70\x28\x65\x76\x65\x6e\x74\x29\x22"+"\x6f\x6e\x64\x72\x61\x67\x65\x6e\x74\x65\x72\x3d\x22\x6a\x61\x76\x61\x73\x63\x72\x69\x70\x74\x3a"+w2+"\x2e\x64\x72\x61\x67\x45\x6e\x74\x65\x72\x28\x65\x76\x65\x6e\x74\x29\x22"+"\x6f\x6e\x64\x72\x61\x67\x6c\x65\x61\x76\x65\x3d\x22\x6a\x61\x76\x61\x73\x63\x72\x69\x70\x74\x3a"+w2+"\x2e\x64\x72\x61\x67\x4c\x65\x61\x76\x65\x28\x65\x76\x65\x6e\x74\x29\x22\x3e"+Uf[G].sj+"\x26\x6e\x62\x73\x70\x3b\x3c\x2f\x61\x3e";if(Qf==true){C7="\x3c\x64\x69\x76\x20\x63\x6c\x61\x73\x73\x3d\x22"+cmiClassName+"\x22\x20\x73\x74\x79\x6c\x65\x3d\x22\x64\x69\x73\x70\x6c\x61\x79\x3a\x69\x6e\x6c\x69\x6e\x65\x2d\x62\x6c\x6f\x63\x6b\x3b\x22"+"\x20\x6f\x6e\x6d\x6f\x75\x73\x65\x65\x6e\x74\x65\x72\x3d\x22\x6a\x61\x76\x61\x73\x63\x72\x69\x70\x74\x3a"+w2+"\x2e\x68\x61\x6e\x64\x6c\x65\x49\x6e\x66\x6f\x54\x65\x78\x74\x45\x6e\x74\x65\x72\x28\x65\x76\x65\x6e\x74\x2c\x27"+xR+"\x27\x29\x22"+"\x20\x6f\x6e\x6d\x6f\x75\x73\x65\x6c\x65\x61\x76\x65\x3d\x22\x6a\x61\x76\x61\x73\x63\x72\x69\x70\x74\x3a"+w2+"\x2e\x68\x61\x6e\x64\x6c\x65\x49\x6e\x66\x6f\x54\x65\x78\x74\x4c\x65\x61\x76\x65\x28\x65\x76\x65\x6e\x74\x29\x22\x3e\x26\x6e\x62\x73\x70\x3b\x26\x6e\x62\x73\x70\x3b\x3c\x2f\x64\x69\x76\x3e";}}else{if((Uf[G].fF!=null)&&(Uf[G].fF.getInfoText().length>0)){uI.className="\x63\x6d\x69\x41\x73\x73\x4e\x6f\x64\x65\x53\x74\x64\x20"+"\x63\x6d\x69\x48\x61\x73\x49\x6e\x66\x6f\x54\x65\x78\x74";Qf=true;}else{uI.className="\x63\x6d\x69\x41\x73\x73\x4e\x6f\x64\x65\x53\x74\x64";Qf=false;}if((Uf[G].parentNode!=null)&&(Uf[G].parentNode.fF!=null)&&(xE==true)){if((Uf[G].parentNode.fF.getModel().getFixedSubstructureFlag()==true)){if((Uf[G].fF!=null)&&(Uf[G].fF.getInfoText().length>0)){uI.className="\x63\x6d\x69\x41\x73\x73\x4e\x6f\x64\x65\x46\x69\x78\x65\x64\x20"+"\x63\x6d\x69\x48\x61\x73\x49\x6e\x66\x6f\x54\x65\x78\x74";Qf=true;}else{uI.className="\x63\x6d\x69\x41\x73\x73\x4e\x6f\x64\x65\x46\x69\x78\x65\x64";Qf=false;}if((Uf[G].fF!=null)&&(Uf[G].fF.getPosNrFixed()==false))uI.setAttribute("\x64\x72\x61\x67\x67\x61\x62\x6c\x65",true);else uI.setAttribute("\x64\x72\x61\x67\x67\x61\x62\x6c\x65",false);}}else if((Uf[G].fF!=null)&&(Uf[G].fF.getHandledState()!="\x66\x61\x6c\x73\x65")||(Uf[G].fF!=null)&&(Uf[G].fF.getLockedState()==true)){if((Uf[G].fF!=null)&&(Uf[G].fF.getInfoText().length>0)){uI.className="\x63\x6d\x69\x41\x73\x73\x4e\x6f\x64\x65\x48\x61\x6e\x64\x6c\x65\x64\x20"+"\x63\x6d\x69\x48\x61\x73\x49\x6e\x66\x6f\x54\x65\x78\x74";Qf=true;}else{uI.className="\x63\x6d\x69\x41\x73\x73\x4e\x6f\x64\x65\x48\x61\x6e\x64\x6c\x65\x64";Qf=false;}if((Uf[G].fF!=null)&&(Uf[G].fF.getPosNrFixed()==false))uI.setAttribute("\x64\x72\x61\x67\x67\x61\x62\x6c\x65",true);else uI.setAttribute("\x64\x72\x61\x67\x67\x61\x62\x6c\x65",false);}if(Qf==true){C7="\x3c\x64\x69\x76\x20\x63\x6c\x61\x73\x73\x3d\x22"+cmiClassName+"\x22\x20\x73\x74\x79\x6c\x65\x3d\x22\x64\x69\x73\x70\x6c\x61\x79\x3a\x69\x6e\x6c\x69\x6e\x65\x2d\x62\x6c\x6f\x63\x6b\x3b\x22"+"\x20\x6f\x6e\x6d\x6f\x75\x73\x65\x65\x6e\x74\x65\x72\x3d\x22\x6a\x61\x76\x61\x73\x63\x72\x69\x70\x74\x3a"+w2+"\x2e\x68\x61\x6e\x64\x6c\x65\x49\x6e\x66\x6f\x54\x65\x78\x74\x45\x6e\x74\x65\x72\x28\x65\x76\x65\x6e\x74\x2c\x27"+xR+"\x27\x29\x22"+"\x20\x6f\x6e\x6d\x6f\x75\x73\x65\x6c\x65\x61\x76\x65\x3d\x22\x6a\x61\x76\x61\x73\x63\x72\x69\x70\x74\x3a"+w2+"\x2e\x68\x61\x6e\x64\x6c\x65\x49\x6e\x66\x6f\x54\x65\x78\x74\x4c\x65\x61\x76\x65\x28\x65\x76\x65\x6e\x74\x29\x22\x3e\x26\x6e\x62\x73\x70\x3b\x26\x6e\x62\x73\x70\x3b\x3c\x2f\x64\x69\x76\x3e";}}if((Uf[G].Xu!=null)&&(R2==true)){var v5=prefix;var xN=Vz;var Al=PC;if(Uf[G].fF!=null){v5=prefix;}else if(Uf[G].Rw==false){v5=bd+prefix;xN=lA;Al=Hr;}if(Uf[G].kM)Wv="\x3c\x63\x6f\x64\x65\x3e"+v5+"\x3c\x2f\x63\x6f\x64\x65\x3e"+"\x3c\x61\x20\x73\x74\x79\x6c\x65\x3d\x22\x63\x75\x72\x73\x6f\x72\x3a\x20\x70\x6f\x69\x6e\x74\x65\x72\x3b\x22\x20\x69\x64\x3d\x22\x63\x6f\x6c\x6c\x61\x70\x73\x2d"+xR+"\x22\x20\x6f\x6e\x63\x6c\x69\x63\x6b\x3d\x22\x6a\x61\x76\x61\x73\x63\x72\x69\x70\x74\x3a"+w2+"\x2e\x73\x77\x69\x74\x63\x68\x43\x6f\x6c\x6c\x65\x63\x74\x69\x6f\x6e\x53\x74\x61\x74\x65\x28\x27\x63\x6f\x6c\x6c\x61\x70\x73\x2d"+xR+"\x27\x29\x22\x3e\x3c\x63\x6f\x64\x65\x3e"+Al+NL+"\x3c\x2f\x63\x6f\x64\x65\x3e\x3c\x2f\x61\x3e"+R4+C7+Qp;else Wv="\x3c\x63\x6f\x64\x65\x3e"+v5+"\x3c\x2f\x63\x6f\x64\x65\x3e"+"\x3c\x61\x20\x73\x74\x79\x6c\x65\x3d\x22\x63\x75\x72\x73\x6f\x72\x3a\x20\x70\x6f\x69\x6e\x74\x65\x72\x3b\x22\x20\x69\x64\x3d\x22\x65\x78\x70\x61\x6e\x64\x2d"+xR+"\x22\x20\x6f\x6e\x63\x6c\x69\x63\x6b\x3d\x22\x6a\x61\x76\x61\x73\x63\x72\x69\x70\x74\x3a"+w2+"\x2e\x73\x77\x69\x74\x63\x68\x43\x6f\x6c\x6c\x65\x63\x74\x69\x6f\x6e\x53\x74\x61\x74\x65\x28\x27\x65\x78\x70\x61\x6e\x64\x2d"+xR+"\x27\x29\x22\x3e\x3c\x63\x6f\x64\x65\x3e"+xN+NL+"\x3c\x2f\x63\x6f\x64\x65\x3e\x3c\x2f\x61\x3e"+R4+C7+Qp;}else if(Uf[G].ty!=null){var v5=prefix;var xN=Vz;var Al=PC;if(Uf[G].kM)Wv="\x3c\x63\x6f\x64\x65\x3e"+v5+"\x3c\x2f\x63\x6f\x64\x65\x3e"+"\x3c\x61\x20\x73\x74\x79\x6c\x65\x3d\x22\x63\x75\x72\x73\x6f\x72\x3a\x20\x70\x6f\x69\x6e\x74\x65\x72\x3b\x22\x20\x69\x64\x3d\x22\x63\x6f\x6c\x6c\x61\x70\x73\x2d"+xR+"\x22\x20\x6f\x6e\x63\x6c\x69\x63\x6b\x3d\x22\x6a\x61\x76\x61\x73\x63\x72\x69\x70\x74\x3a"+w2+"\x2e\x73\x77\x69\x74\x63\x68\x43\x6f\x6c\x6c\x65\x63\x74\x69\x6f\x6e\x53\x74\x61\x74\x65\x28\x27\x63\x6f\x6c\x6c\x61\x70\x73\x2d"+xR+"\x27\x29\x22\x3e\x3c\x63\x6f\x64\x65\x3e"+Al+NL+"\x3c\x2f\x63\x6f\x64\x65\x3e\x3c\x2f\x61\x3e"+R4+C7+Qp;else Wv="\x3c\x63\x6f\x64\x65\x3e"+v5+"\x3c\x2f\x63\x6f\x64\x65\x3e"+"\x3c\x61\x20\x73\x74\x79\x6c\x65\x3d\x22\x63\x75\x72\x73\x6f\x72\x3a\x20\x70\x6f\x69\x6e\x74\x65\x72\x3b\x22\x20\x69\x64\x3d\x22\x65\x78\x70\x61\x6e\x64\x2d"+xR+"\x22\x20\x6f\x6e\x63\x6c\x69\x63\x6b\x3d\x22\x6a\x61\x76\x61\x73\x63\x72\x69\x70\x74\x3a"+w2+"\x2e\x73\x77\x69\x74\x63\x68\x43\x6f\x6c\x6c\x65\x63\x74\x69\x6f\x6e\x53\x74\x61\x74\x65\x28\x27\x65\x78\x70\x61\x6e\x64\x2d"+xR+"\x27\x29\x22\x3e\x3c\x63\x6f\x64\x65\x3e"+xN+NL+"\x3c\x2f\x63\x6f\x64\x65\x3e\x3c\x2f\x61\x3e"+R4+C7+Qp;}else{Wv="\x3c\x63\x6f\x64\x65\x3e"+bd+prefix+"\x3c\x2f\x63\x6f\x64\x65\x3e"+R4+C7+Qp;}b9.innerHTML=Wv;uI.appendChild(b9);b9=document.createElement("\x74\x64");if(Uf[G].kV.includes("\x70\x61\x67\x65\x52\x65\x66")){Wv="";}else if(Uf[G].fF!=null){if(Uf[G].fF.gV)Wv="\x3c\x69\x6e\x70\x75\x74\x20\x74\x79\x70\x65\x3d\x27\x63\x68\x65\x63\x6b\x62\x6f\x78\x27\x20\x69\x64\x3d\x27\x53\x68\x2d"+xR+"\x27\x20\x6f\x6e\x63\x6c\x69\x63\x6b\x3d\x22\x6a\x61\x76\x61\x73\x63\x72\x69\x70\x74\x3a"+w2+"\x2e\x73\x77\x69\x74\x63\x68\x56\x69\x73\x69\x62\x69\x6c\x69\x74\x79\x53\x74\x61\x74\x65\x28\x27\x53\x68\x2d"+xR+"\x27\x29\x22\x20\x63\x68\x65\x63\x6b\x65\x64\x3e\x3c\x2f\x69\x6e\x70\x75\x74\x3e";else Wv="\x3c\x69\x6e\x70\x75\x74\x20\x74\x79\x70\x65\x3d\x27\x63\x68\x65\x63\x6b\x62\x6f\x78\x27\x20\x69\x64\x3d\x27\x53\x68\x2d"+xR+"\x27\x20\x6f\x6e\x63\x6c\x69\x63\x6b\x3d\x22\x6a\x61\x76\x61\x73\x63\x72\x69\x70\x74\x3a"+w2+"\x2e\x73\x77\x69\x74\x63\x68\x56\x69\x73\x69\x62\x69\x6c\x69\x74\x79\x53\x74\x61\x74\x65\x28\x27\x53\x68\x2d"+xR+"\x27\x29\x22\x3e\x3c\x2f\x69\x6e\x70\x75\x74\x3e";}else{if(Uf[G].VD)Wv="\x3c\x69\x6e\x70\x75\x74\x20\x74\x79\x70\x65\x3d\x27\x63\x68\x65\x63\x6b\x62\x6f\x78\x27\x20\x69\x64\x3d\x27\x53\x68\x2d"+xR+"\x27\x20\x6f\x6e\x63\x6c\x69\x63\x6b\x3d\x22\x6a\x61\x76\x61\x73\x63\x72\x69\x70\x74\x3a"+w2+"\x2e\x73\x77\x69\x74\x63\x68\x56\x69\x73\x69\x62\x69\x6c\x69\x74\x79\x53\x74\x61\x74\x65\x28\x27\x53\x68\x2d"+xR+"\x27\x29\x22\x20\x63\x68\x65\x63\x6b\x65\x64\x3e\x3c\x2f\x69\x6e\x70\x75\x74\x3e";else Wv="\x3c\x69\x6e\x70\x75\x74\x20\x74\x79\x70\x65\x3d\x27\x63\x68\x65\x63\x6b\x62\x6f\x78\x27\x20\x69\x64\x3d\x27\x53\x68\x2d"+xR+"\x27\x20\x6f\x6e\x63\x6c\x69\x63\x6b\x3d\x22\x6a\x61\x76\x61\x73\x63\x72\x69\x70\x74\x3a"+w2+"\x2e\x73\x77\x69\x74\x63\x68\x56\x69\x73\x69\x62\x69\x6c\x69\x74\x79\x53\x74\x61\x74\x65\x28\x27\x53\x68\x2d"+xR+"\x27\x29\x22\x3e\x3c\x2f\x69\x6e\x70\x75\x74\x3e";}b9.innerHTML=Wv;uI.appendChild(b9);b9=document.createElement("\x74\x64");if(Uf[G].kV.includes("\x70\x61\x67\x65\x52\x65\x66")){Wv="";}else if(Uf[G].fF!=null){if(Uf[G].fF.isHighlighted)Wv="\x3c\x69\x6e\x70\x75\x74\x20\x74\x79\x70\x65\x3d\x27\x63\x68\x65\x63\x6b\x62\x6f\x78\x27\x20\x69\x64\x3d\x27\x48\x6c\x2d"+xR+"\x27\x20\x6f\x6e\x63\x6c\x69\x63\x6b\x3d\x22\x6a\x61\x76\x61\x73\x63\x72\x69\x70\x74\x3a"+w2+"\x2e\x73\x77\x69\x74\x63\x68\x48\x69\x67\x68\x6c\x69\x67\x68\x74\x53\x74\x61\x74\x65\x28\x27\x48\x6c\x2d"+xR+"\x27\x29\x22\x20\x63\x68\x65\x63\x6b\x65\x64\x3e\x3c\x2f\x69\x6e\x70\x75\x74\x3e";else Wv="\x3c\x69\x6e\x70\x75\x74\x20\x74\x79\x70\x65\x3d\x27\x63\x68\x65\x63\x6b\x62\x6f\x78\x27\x20\x69\x64\x3d\x27\x48\x6c\x2d"+xR+"\x27\x20\x6f\x6e\x63\x6c\x69\x63\x6b\x3d\x22\x6a\x61\x76\x61\x73\x63\x72\x69\x70\x74\x3a"+w2+"\x2e\x73\x77\x69\x74\x63\x68\x48\x69\x67\x68\x6c\x69\x67\x68\x74\x53\x74\x61\x74\x65\x28\x27\x48\x6c\x2d"+xR+"\x27\x29\x22\x3e\x3c\x2f\x69\x6e\x70\x75\x74\x3e";}else{if(Uf[G].LE)Wv="\x3c\x69\x6e\x70\x75\x74\x20\x74\x79\x70\x65\x3d\x27\x63\x68\x65\x63\x6b\x62\x6f\x78\x27\x20\x69\x64\x3d\x27\x48\x6c\x2d"+xR+"\x27\x20\x6f\x6e\x63\x6c\x69\x63\x6b\x3d\x22\x6a\x61\x76\x61\x73\x63\x72\x69\x70\x74\x3a"+w2+"\x2e\x73\x77\x69\x74\x63\x68\x48\x69\x67\x68\x6c\x69\x67\x68\x74\x53\x74\x61\x74\x65\x28\x27\x48\x6c\x2d"+xR+"\x27\x29\x22\x20\x63\x68\x65\x63\x6b\x65\x64\x3e\x3c\x2f\x69\x6e\x70\x75\x74\x3e";else Wv="\x3c\x69\x6e\x70\x75\x74\x20\x74\x79\x70\x65\x3d\x27\x63\x68\x65\x63\x6b\x62\x6f\x78\x27\x20\x69\x64\x3d\x27\x48\x6c\x2d"+xR+"\x27\x20\x6f\x6e\x63\x6c\x69\x63\x6b\x3d\x22\x6a\x61\x76\x61\x73\x63\x72\x69\x70\x74\x3a"+w2+"\x2e\x73\x77\x69\x74\x63\x68\x48\x69\x67\x68\x6c\x69\x67\x68\x74\x53\x74\x61\x74\x65\x28\x27\x48\x6c\x2d"+xR+"\x27\x29\x22\x3e\x3c\x2f\x69\x6e\x70\x75\x74\x3e";}b9.innerHTML=Wv;uI.appendChild(b9);A6.appendChild(uI);Uf[G].zV=document.getElementById("\x53\x68\x2d"+xR);Uf[G].Db=document.getElementById("\x48\x6c\x2d"+xR);}if(R2==true){if(((Uf[G].Xu!=null)||(Uf[G].ty!=null))&&(Uf[G].kM)){if(Aa=="\x6d\x75\x73")_o=prefix;else{if(Uf[G].fF!=null)_o=bd+prefix;else _o=NL+prefix;}if(Uf[G].Xu!=null)Pq(A6,Uf[G].Xu,_o,FS);else Pq(A6,Uf[G].ty,_o,FS);}}}return 0;};};
