ow-eengine-power 2.2.6 → 2.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/OW_EEngine_Power.js
CHANGED
|
@@ -44253,7 +44253,7 @@ function Qr(e, t, n, i = {}) {
|
|
|
44253
44253
|
color: s,
|
|
44254
44254
|
pixelSize: a,
|
|
44255
44255
|
heightReference: h,
|
|
44256
|
-
distanceDisplayCondition: new it(0,
|
|
44256
|
+
distanceDisplayCondition: new it(0, 100)
|
|
44257
44257
|
// 显示距离范围
|
|
44258
44258
|
},
|
|
44259
44259
|
label: {
|
|
@@ -44265,7 +44265,7 @@ function Qr(e, t, n, i = {}) {
|
|
|
44265
44265
|
outlineWidth: 2,
|
|
44266
44266
|
outlineColor: S.BLACK,
|
|
44267
44267
|
heightReference: h,
|
|
44268
|
-
distanceDisplayCondition: new it(0,
|
|
44268
|
+
distanceDisplayCondition: new it(0, 100)
|
|
44269
44269
|
// 显示距离范围
|
|
44270
44270
|
}
|
|
44271
44271
|
});
|
|
@@ -45671,7 +45671,6 @@ class YD {
|
|
|
45671
45671
|
console.warn(`找不到连接 ${r.from}->${r.to} 的节点`);
|
|
45672
45672
|
return;
|
|
45673
45673
|
}
|
|
45674
|
-
debugger;
|
|
45675
45674
|
const h = i.find((E) => E.nodeId === r.from), d = i.find((E) => E.nodeId === r.to);
|
|
45676
45675
|
if (!h || !d) {
|
|
45677
45676
|
console.warn(`找不到连接 ${r.from}->${r.to} 的位移数据`);
|
|
@@ -45710,7 +45709,6 @@ class YD {
|
|
|
45710
45709
|
);
|
|
45711
45710
|
this.pointEntities.push(A);
|
|
45712
45711
|
const b = [T, w];
|
|
45713
|
-
debugger;
|
|
45714
45712
|
this.TowerLineManager.addLine(b);
|
|
45715
45713
|
});
|
|
45716
45714
|
}
|
|
@@ -45725,9 +45723,7 @@ class YD {
|
|
|
45725
45723
|
const r = this.TowerNodes.find((T) => T.id === a.from), f = n[t].find((T) => T.nodeId === a.from), c = this.TowerNodes.find((T) => T.id === a.to), h = n[t].find((T) => T.nodeId === a.to), d = [], p = new u(r.x - f.x, r.y - f.y, r.z - f.z);
|
|
45726
45724
|
d.push(Q(s, p, i));
|
|
45727
45725
|
const m = new u(c.x - h.x, c.y - h.y, c.z - h.z);
|
|
45728
|
-
d.push(Q(s, m, i));
|
|
45729
|
-
debugger;
|
|
45730
|
-
this.entityCollection2.add(v(d, a.from + "" + a.to, this.TowerFZS.TowerMembersWidth, this.TowerFZS.TowerMemberColor));
|
|
45726
|
+
d.push(Q(s, m, i)), this.entityCollection2.add(v(d, a.from + "" + a.to, this.TowerFZS.TowerMembersWidth, this.TowerFZS.TowerMemberColor));
|
|
45731
45727
|
});
|
|
45732
45728
|
}
|
|
45733
45729
|
/**
|
|
@@ -6581,7 +6581,7 @@ void main()
|
|
|
6581
6581
|
v_pickColor = pickColor;
|
|
6582
6582
|
v_splitDirection = distanceDisplayConditionAndDisableDepthAndSplitDirection.w;
|
|
6583
6583
|
}
|
|
6584
|
-
`,_x=Re.SHOW_INDEX,rf=Re.POSITION_INDEX,_0=Re.COLOR_INDEX,gx=Re.OUTLINE_COLOR_INDEX,Tx=Re.OUTLINE_WIDTH_INDEX,yx=Re.PIXEL_SIZE_INDEX,g0=Re.SCALE_BY_DISTANCE_INDEX,T0=Re.TRANSLUCENCY_BY_DISTANCE_INDEX,y0=Re.DISTANCE_DISPLAY_CONDITION_INDEX,Cx=Re.DISABLE_DEPTH_DISTANCE_INDEX,wx=Re.SPLIT_DIRECTION_INDEX,af=Re.NUMBER_OF_PROPERTIES,tn={positionHighAndSize:0,positionLowAndOutline:1,compressedAttribute0:2,compressedAttribute1:3,scaleByDistance:4,distanceDisplayConditionAndDisableDepthAndSplitDirection:5};function An(e){e=g(e,g.EMPTY_OBJECT),this._sp=void 0,this._spTranslucent=void 0,this._rsOpaque=void 0,this._rsTranslucent=void 0,this._vaf=void 0,this._pointPrimitives=[],this._pointPrimitivesToUpdate=[],this._pointPrimitivesToUpdateIndex=0,this._pointPrimitivesRemoved=!1,this._createVertexArray=!1,this._shaderScaleByDistance=!1,this._compiledShaderScaleByDistance=!1,this._shaderTranslucencyByDistance=!1,this._compiledShaderTranslucencyByDistance=!1,this._shaderDistanceDisplayCondition=!1,this._compiledShaderDistanceDisplayCondition=!1,this._shaderDisableDepthDistance=!1,this._compiledShaderDisableDepthDistance=!1,this._propertiesChanged=new Uint32Array(af),this._maxPixelSize=1,this._baseVolume=new te,this._baseVolumeWC=new te,this._baseVolume2D=new te,this._boundingVolume=new te,this._boundingVolumeDirty=!1,this._colorCommands=[],this.show=g(e.show,!0),this.modelMatrix=V.clone(g(e.modelMatrix,V.IDENTITY)),this._modelMatrix=V.clone(V.IDENTITY),this.debugShowBoundingVolume=g(e.debugShowBoundingVolume,!1),this.blendOption=g(e.blendOption,_t.OPAQUE_AND_TRANSLUCENT),this._blendOption=void 0,this._mode=Ce.SCENE3D,this._maxTotalPointSize=1,this._buffersUsage=[We.STATIC_DRAW,We.STATIC_DRAW,We.STATIC_DRAW,We.STATIC_DRAW,We.STATIC_DRAW,We.STATIC_DRAW,We.STATIC_DRAW,We.STATIC_DRAW,We.STATIC_DRAW];const t=this;this._uniforms={u_maxTotalPointSize:function(){return t._maxTotalPointSize}}}Object.defineProperties(An.prototype,{length:{get:function(){return cf(this),this._pointPrimitives.length}}});function C0(e){const t=e.length;for(let n=0;n<t;++n)e[n]&&e[n]._destroy()}An.prototype.add=function(e){const t=new Re(e,this);return t._index=this._pointPrimitives.length,this._pointPrimitives.push(t),this._createVertexArray=!0,t},An.prototype.remove=function(e){return this.contains(e)?(this._pointPrimitives[e._index]=null,this._pointPrimitivesRemoved=!0,this._createVertexArray=!0,e._destroy(),!0):!1},An.prototype.removeAll=function(){C0(this._pointPrimitives),this._pointPrimitives=[],this._pointPrimitivesToUpdate=[],this._pointPrimitivesToUpdateIndex=0,this._pointPrimitivesRemoved=!1,this._createVertexArray=!0};function cf(e){if(e._pointPrimitivesRemoved){e._pointPrimitivesRemoved=!1;const t=[],n=e._pointPrimitives,i=n.length;for(let o=0,a=0;o<i;++o){const r=n[o];r&&(r._index=a++,t.push(r))}e._pointPrimitives=t}}An.prototype._updatePointPrimitive=function(e,t){e._dirty||(this._pointPrimitivesToUpdate[this._pointPrimitivesToUpdateIndex++]=e),++this._propertiesChanged[t]},An.prototype.contains=function(e){return l(e)&&e._pointPrimitiveCollection===this},An.prototype.get=function(e){if(!l(e))throw new C("index is required.");return cf(this),this._pointPrimitives[e]},An.prototype.computeNewBuffersUsage=function(){const e=this._buffersUsage;let t=!1;const n=this._propertiesChanged;for(let i=0;i<af;++i){const o=n[i]===0?We.STATIC_DRAW:We.STREAM_DRAW;t=t||e[i]!==o,e[i]=o}return t};function Ax(e,t,n){return new Dt(e,[{index:tn.positionHighAndSize,componentsPerAttribute:4,componentDatatype:he.FLOAT,usage:n[rf]},{index:tn.positionLowAndShow,componentsPerAttribute:4,componentDatatype:he.FLOAT,usage:n[rf]},{index:tn.compressedAttribute0,componentsPerAttribute:4,componentDatatype:he.FLOAT,usage:n[_0]},{index:tn.compressedAttribute1,componentsPerAttribute:4,componentDatatype:he.FLOAT,usage:n[T0]},{index:tn.scaleByDistance,componentsPerAttribute:4,componentDatatype:he.FLOAT,usage:n[g0]},{index:tn.distanceDisplayConditionAndDisableDepthAndSplitDirection,componentsPerAttribute:4,componentDatatype:he.FLOAT,usage:n[y0]}],t)}const hf=new Qe;function w0(e,t,n,i){const o=i._index,a=i._getActualPosition();e._mode===Ce.SCENE3D&&(te.expand(e._baseVolume,a,e._baseVolume),e._boundingVolumeDirty=!0),Qe.fromCartesian(a,hf);const r=i.pixelSize,f=i.outlineWidth;e._maxPixelSize=Math.max(e._maxPixelSize,r+f);const c=n[tn.positionHighAndSize],h=hf.high;c(o,h.x,h.y,h.z,r);const d=n[tn.positionLowAndOutline],p=hf.low;d(o,p.x,p.y,p.z,f)}const Pa=65536,or=256;function A0(e,t,n,i){const o=i._index,a=i.color,r=i.getPickId(t).color,f=i.outlineColor;let c=S.floatToByte(a.red),h=S.floatToByte(a.green),d=S.floatToByte(a.blue);const p=c*Pa+h*or+d;c=S.floatToByte(f.red),h=S.floatToByte(f.green),d=S.floatToByte(f.blue);const m=c*Pa+h*or+d;c=S.floatToByte(r.red),h=S.floatToByte(r.green),d=S.floatToByte(r.blue);const T=c*Pa+h*or+d,y=S.floatToByte(a.alpha)*Pa+S.floatToByte(f.alpha)*or+S.floatToByte(r.alpha),w=n[tn.compressedAttribute0];w(o,p,m,T,y)}function E0(e,t,n,i){const o=i._index;let a=0,r=1,f=1,c=1;const h=i.translucencyByDistance;l(h)&&(a=h.near,r=h.nearValue,f=h.far,c=h.farValue,(r!==1||c!==1)&&(e._shaderTranslucencyByDistance=!0));let d=i.show&&i.clusterShow;i.color.alpha===0&&i.outlineColor.alpha===0&&(d=!1),r=I.clamp(r,0,1),r=r===1?255:r*255|0;const p=(d?1:0)*or+r;c=I.clamp(c,0,1),c=c===1?255:c*255|0;const m=c,T=n[tn.compressedAttribute1];T(o,p,m,a,f)}function b0(e,t,n,i){const o=i._index,a=n[tn.scaleByDistance];let r=0,f=1,c=1,h=1;const d=i.scaleByDistance;l(d)&&(r=d.near,f=d.nearValue,c=d.far,h=d.farValue,(f!==1||h!==1)&&(e._shaderScaleByDistance=!0)),a(o,r,f,c,h)}function x0(e,t,n,i){const o=i._index,a=n[tn.distanceDisplayConditionAndDisableDepthAndSplitDirection];let r=0,f=Number.MAX_VALUE;const c=i.distanceDisplayCondition;l(c)&&(r=c.near,f=c.far,r*=r,f*=f,e._shaderDistanceDisplayCondition=!0);let h=i.disableDepthTestDistance;h*=h,h>0&&(e._shaderDisableDepthDistance=!0,h===Number.POSITIVE_INFINITY&&(h=-1));let d=0;const p=i.splitDirection;l(p)&&(d=p),a(o,r,f,h,d)}function Ex(e,t,n,i){w0(e,t,n,i),A0(e,t,n,i),E0(e,t,n,i),b0(e,t,n,i),x0(e,t,n,i)}function ff(e,t,n,i,o,a){let r;i.mode===Ce.SCENE3D?(r=e._baseVolume,e._boundingVolumeDirty=!0):r=e._baseVolume2D;const f=[];for(let c=0;c<n;++c){const h=t[c],d=h.position,p=Re._computeActualPosition(d,i,o);l(p)&&(h._setActualPosition(p),a?f.push(p):te.expand(r,p,r))}a&&te.fromPoints(f,r)}function bx(e,t){const n=t.mode,i=e._pointPrimitives,o=e._pointPrimitivesToUpdate,a=e._modelMatrix;e._createVertexArray||e._mode!==n||n!==Ce.SCENE3D&&!V.equals(a,e.modelMatrix)?(e._mode=n,V.clone(e.modelMatrix,a),e._createVertexArray=!0,(n===Ce.SCENE3D||n===Ce.SCENE2D||n===Ce.COLUMBUS_VIEW)&&ff(e,i,i.length,t,a,!0)):n===Ce.MORPHING?ff(e,i,i.length,t,a,!0):(n===Ce.SCENE2D||n===Ce.COLUMBUS_VIEW)&&ff(e,o,e._pointPrimitivesToUpdateIndex,t,a,!1)}function xx(e,t,n){const o=t.camera.getPixelSize(n,t.context.drawingBufferWidth,t.context.drawingBufferHeight)*e._maxPixelSize;n.radius+=o}const Sx=[];An.prototype.update=function(e){if(cf(this),!this.show)return;this._maxTotalPointSize=Se.maximumAliasedPointSize,bx(this,e);const n=this._pointPrimitives.length,i=this._pointPrimitivesToUpdate,o=this._pointPrimitivesToUpdateIndex,a=this._propertiesChanged,r=this._createVertexArray;let f;const c=e.context,h=e.passes,d=h.pick;if(r||!d&&this.computeNewBuffersUsage()){this._createVertexArray=!1;for(let B=0;B<af;++B)a[B]=0;if(this._vaf=this._vaf&&this._vaf.destroy(),n>0){this._vaf=Ax(c,n,this._buffersUsage),f=this._vaf.writers;for(let B=0;B<n;++B){const z=this._pointPrimitives[B];z._dirty=!1,Ex(this,c,f,z)}this._vaf.commit()}this._pointPrimitivesToUpdateIndex=0}else if(o>0){const B=Sx;B.length=0,(a[rf]||a[Tx]||a[yx])&&B.push(w0),(a[_0]||a[gx])&&B.push(A0),(a[_x]||a[T0])&&B.push(E0),a[g0]&&B.push(b0),(a[y0]||a[Cx]||a[wx])&&B.push(x0);const z=B.length;if(f=this._vaf.writers,o/n>.1){for(let F=0;F<o;++F){const N=i[F];N._dirty=!1;for(let k=0;k<z;++k)B[k](this,c,f,N)}this._vaf.commit()}else{for(let F=0;F<o;++F){const N=i[F];N._dirty=!1;for(let k=0;k<z;++k)B[k](this,c,f,N);this._vaf.subCommit(N._index,1)}this._vaf.endSubCommits()}this._pointPrimitivesToUpdateIndex=0}if(o>n*1.5&&(i.length=n),!l(this._vaf)||!l(this._vaf.va))return;this._boundingVolumeDirty&&(this._boundingVolumeDirty=!1,te.transform(this._baseVolume,this.modelMatrix,this._baseVolumeWC));let p,m=V.IDENTITY;e.mode===Ce.SCENE3D?(m=this.modelMatrix,p=te.clone(this._baseVolumeWC,this._boundingVolume)):p=te.clone(this._baseVolume2D,this._boundingVolume),xx(this,e,p);const T=this._blendOption!==this.blendOption;this._blendOption=this.blendOption,T&&(this._blendOption===_t.OPAQUE||this._blendOption===_t.OPAQUE_AND_TRANSLUCENT?this._rsOpaque=je.fromCache({depthTest:{enabled:!0,func:R.LEQUAL},depthMask:!0}):this._rsOpaque=void 0,this._blendOption===_t.TRANSLUCENT||this._blendOption===_t.OPAQUE_AND_TRANSLUCENT?this._rsTranslucent=je.fromCache({depthTest:{enabled:!0,func:R.LEQUAL},depthMask:!1,blending:ro.ALPHA_BLEND}):this._rsTranslucent=void 0),this._shaderDisableDepthDistance=this._shaderDisableDepthDistance||e.minimumDisableDepthTestDistance!==0;let y,w;(T||this._shaderScaleByDistance&&!this._compiledShaderScaleByDistance||this._shaderTranslucencyByDistance&&!this._compiledShaderTranslucencyByDistance||this._shaderDistanceDisplayCondition&&!this._compiledShaderDistanceDisplayCondition||this._shaderDisableDepthDistance!==this._compiledShaderDisableDepthDistance)&&(y=new Ee({sources:[mx]}),this._shaderScaleByDistance&&y.defines.push("EYE_DISTANCE_SCALING"),this._shaderTranslucencyByDistance&&y.defines.push("EYE_DISTANCE_TRANSLUCENCY"),this._shaderDistanceDisplayCondition&&y.defines.push("DISTANCE_DISPLAY_CONDITION"),this._shaderDisableDepthDistance&&y.defines.push("DISABLE_DEPTH_DISTANCE"),this._blendOption===_t.OPAQUE_AND_TRANSLUCENT&&(w=new Ee({defines:["OPAQUE"],sources:[Wa]}),this._sp=lt.replaceCache({context:c,shaderProgram:this._sp,vertexShaderSource:y,fragmentShaderSource:w,attributeLocations:tn}),w=new Ee({defines:["TRANSLUCENT"],sources:[Wa]}),this._spTranslucent=lt.replaceCache({context:c,shaderProgram:this._spTranslucent,vertexShaderSource:y,fragmentShaderSource:w,attributeLocations:tn})),this._blendOption===_t.OPAQUE&&(w=new Ee({sources:[Wa]}),this._sp=lt.replaceCache({context:c,shaderProgram:this._sp,vertexShaderSource:y,fragmentShaderSource:w,attributeLocations:tn})),this._blendOption===_t.TRANSLUCENT&&(w=new Ee({sources:[Wa]}),this._spTranslucent=lt.replaceCache({context:c,shaderProgram:this._spTranslucent,vertexShaderSource:y,fragmentShaderSource:w,attributeLocations:tn})),this._compiledShaderScaleByDistance=this._shaderScaleByDistance,this._compiledShaderTranslucencyByDistance=this._shaderTranslucencyByDistance,this._compiledShaderDistanceDisplayCondition=this._shaderDistanceDisplayCondition,this._compiledShaderDisableDepthDistance=this._shaderDisableDepthDistance);let A,b,E,D;const O=e.commandList;if(h.render||d){const B=this._colorCommands,z=this._blendOption===_t.OPAQUE,F=this._blendOption===_t.OPAQUE_AND_TRANSLUCENT;A=this._vaf.va,b=A.length,B.length=b;const N=F?b*2:b;for(D=0;D<N;++D){const k=z||F&&D%2===0;E=B[D],l(E)||(E=B[D]=new et),E.primitiveType=Xe.POINTS,E.pass=k||!F?Nt.OPAQUE:Nt.TRANSLUCENT,E.owner=this;const U=F?Math.floor(D/2):D;E.boundingVolume=p,E.modelMatrix=m,E.shaderProgram=k?this._sp:this._spTranslucent,E.uniformMap=this._uniforms,E.vertexArray=A[U].va,E.renderState=k?this._rsOpaque:this._rsTranslucent,E.debugShowBoundingVolume=this.debugShowBoundingVolume,E.pickId="v_pickColor",O.push(E)}}},An.prototype.isDestroyed=function(){return!1},An.prototype.destroy=function(){return this._sp=this._sp&&this._sp.destroy(),this._spTranslucent=this._spTranslucent&&this._spTranslucent.destroy(),this._spPick=this._spPick&&this._spPick.destroy(),this._vaf=this._vaf&&this._vaf.destroy(),C0(this._pointPrimitives),st(this)};const S0=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],lf=1,sr=8;class uf{static from(t){if(!(t instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");const[n,i]=new Uint8Array(t,0,2);if(n!==219)throw new Error("Data does not appear to be in a KDBush format.");const o=i>>4;if(o!==lf)throw new Error(`Got v${o} data when expected v${lf}.`);const a=S0[i&15];if(!a)throw new Error("Unrecognized array type.");const[r]=new Uint16Array(t,2,1),[f]=new Uint32Array(t,4,1);return new uf(f,r,a,t)}constructor(t,n=64,i=Float64Array,o){if(isNaN(t)||t<0)throw new Error(`Unpexpected numItems value: ${t}.`);this.numItems=+t,this.nodeSize=Math.min(Math.max(+n,2),65535),this.ArrayType=i,this.IndexArrayType=t<65536?Uint16Array:Uint32Array;const a=S0.indexOf(this.ArrayType),r=t*2*this.ArrayType.BYTES_PER_ELEMENT,f=t*this.IndexArrayType.BYTES_PER_ELEMENT,c=(8-f%8)%8;if(a<0)throw new Error(`Unexpected typed array class: ${i}.`);o&&o instanceof ArrayBuffer?(this.data=o,this.ids=new this.IndexArrayType(this.data,sr,t),this.coords=new this.ArrayType(this.data,sr+f+c,t*2),this._pos=t*2,this._finished=!0):(this.data=new ArrayBuffer(sr+r+f+c),this.ids=new this.IndexArrayType(this.data,sr,t),this.coords=new this.ArrayType(this.data,sr+f+c,t*2),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,(lf<<4)+a]),new Uint16Array(this.data,2,1)[0]=n,new Uint32Array(this.data,4,1)[0]=t)}add(t,n){const i=this._pos>>1;return this.ids[i]=i,this.coords[this._pos++]=t,this.coords[this._pos++]=n,i}finish(){const t=this._pos>>1;if(t!==this.numItems)throw new Error(`Added ${t} items when expected ${this.numItems}.`);return df(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(t,n,i,o){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:a,coords:r,nodeSize:f}=this,c=[0,a.length-1,0],h=[];for(;c.length;){const d=c.pop()||0,p=c.pop()||0,m=c.pop()||0;if(p-m<=f){for(let A=m;A<=p;A++){const b=r[2*A],E=r[2*A+1];b>=t&&b<=i&&E>=n&&E<=o&&h.push(a[A])}continue}const T=m+p>>1,y=r[2*T],w=r[2*T+1];y>=t&&y<=i&&w>=n&&w<=o&&h.push(a[T]),(d===0?t<=y:n<=w)&&(c.push(m),c.push(T-1),c.push(1-d)),(d===0?i>=y:o>=w)&&(c.push(T+1),c.push(p),c.push(1-d))}return h}within(t,n,i){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:o,coords:a,nodeSize:r}=this,f=[0,o.length-1,0],c=[],h=i*i;for(;f.length;){const d=f.pop()||0,p=f.pop()||0,m=f.pop()||0;if(p-m<=r){for(let A=m;A<=p;A++)D0(a[2*A],a[2*A+1],t,n)<=h&&c.push(o[A]);continue}const T=m+p>>1,y=a[2*T],w=a[2*T+1];D0(y,w,t,n)<=h&&c.push(o[T]),(d===0?t-i<=y:n-i<=w)&&(f.push(m),f.push(T-1),f.push(1-d)),(d===0?t+i>=y:n+i>=w)&&(f.push(T+1),f.push(p),f.push(1-d))}return c}}function df(e,t,n,i,o,a){if(o-i<=n)return;const r=i+o>>1;I0(e,t,r,i,o,a),df(e,t,n,i,r-1,1-a),df(e,t,n,r+1,o,1-a)}function I0(e,t,n,i,o,a){for(;o>i;){if(o-i>600){const h=o-i+1,d=n-i+1,p=Math.log(h),m=.5*Math.exp(2*p/3),T=.5*Math.sqrt(p*m*(h-m)/h)*(d-h/2<0?-1:1),y=Math.max(i,Math.floor(n-d*m/h+T)),w=Math.min(o,Math.floor(n+(h-d)*m/h+T));I0(e,t,n,y,w,a)}const r=t[2*n+a];let f=i,c=o;for(rr(e,t,i,n),t[2*o+a]>r&&rr(e,t,i,o);f<c;){for(rr(e,t,f,c),f++,c--;t[2*f+a]<r;)f++;for(;t[2*c+a]>r;)c--}t[2*i+a]===r?rr(e,t,i,c):(c++,rr(e,t,c,o)),c<=n&&(i=c+1),n<=c&&(o=c-1)}}function rr(e,t,n,i){pf(e,n,i),pf(t,2*n,2*i),pf(t,2*n+1,2*i+1)}function pf(e,t,n){const i=e[t];e[t]=e[n],e[n]=i}function D0(e,t,n,i){const o=e-n,a=t-i;return o*o+a*a}function Hn(e){e=g(e,g.EMPTY_OBJECT),this._enabled=g(e.enabled,!1),this._pixelRange=g(e.pixelRange,80),this._minimumClusterSize=g(e.minimumClusterSize,2),this._clusterBillboards=g(e.clusterBillboards,!0),this._clusterLabels=g(e.clusterLabels,!0),this._clusterPoints=g(e.clusterPoints,!0),this._labelCollection=void 0,this._billboardCollection=void 0,this._pointCollection=void 0,this._clusterBillboardCollection=void 0,this._clusterLabelCollection=void 0,this._clusterPointCollection=void 0,this._collectionIndicesByEntity={},this._unusedLabelIndices=[],this._unusedBillboardIndices=[],this._unusedPointIndices=[],this._previousClusters=[],this._previousHeight=void 0,this._enabledDirty=!1,this._clusterDirty=!1,this._cluster=void 0,this._removeEventListener=void 0,this._clusterEvent=new Le,this.show=g(e.show,!0)}function O0(e,t){e.x-=t,e.y-=t,e.width+=t*2,e.height+=t*2}const Ix=new xe;function v0(e,t,n,i,o){if(l(e._labelCollection)&&i._clusterLabels?o=Gn.getScreenSpaceBoundingBox(e,t,o):l(e._billboardCollection)&&i._clusterBillboards?o=me.getScreenSpaceBoundingBox(e,t,o):l(e._pointPrimitiveCollection)&&i._clusterPoints&&(o=Re.getScreenSpaceBoundingBox(e,t,o)),O0(o,n),i._clusterLabels&&!l(e._labelCollection)&&l(e.id)&&P0(i,e.id.id)&&l(e.id._label)){const a=i._collectionIndicesByEntity[e.id.id].labelIndex,r=i._labelCollection.get(a),f=Gn.getScreenSpaceBoundingBox(r,t,Ix);O0(f,n),o=xe.union(o,f,o)}return o}function Dx(e,t){if(e.clusterShow=!0,!l(e._labelCollection)&&l(e.id)&&P0(t,e.id.id)&&l(e.id._label)){const n=t._collectionIndicesByEntity[e.id.id].labelIndex,i=t._labelCollection.get(n);i.clusterShow=!0}}function W0(e,t,n,i){const o={billboard:i._clusterBillboardCollection.add(),label:i._clusterLabelCollection.add(),point:i._clusterPointCollection.add()};o.billboard.show=!1,o.point.show=!1,o.label.show=!0,o.label.text=t.toLocaleString(),o.label.id=n,o.billboard.position=o.label.position=o.point.position=e,i._clusterEvent.raiseEvent(n,o)}function P0(e,t){return l(e)&&l(e._collectionIndicesByEntity[t])&&l(e._collectionIndicesByEntity[t].labelIndex)}function mf(e,t,n,i,o){if(!l(e))return;const a=e.length;for(let r=0;r<a;++r){const f=e.get(r);if(f.clusterShow=!1,!f.show||o._scene.mode===Ce.SCENE3D&&!i.isPointVisible(f.position))continue;const c=o._clusterLabels&&l(f._labelCollection),h=o._clusterBillboards&&l(f.id._billboard),d=o._clusterPoints&&l(f.id._point);if(c&&(d||h))continue;const p=f.computeScreenSpacePosition(n);l(p)&&t.push({index:r,collection:e,clustered:!1,coord:p})}}const Ox=new xe,vx=new xe,Wx=new xe;function Px(e){return function(t){if(l(t)&&t<.05||!e.enabled)return;const n=e._scene,i=e._labelCollection,o=e._billboardCollection,a=e._pointCollection;if(!l(i)&&!l(o)&&!l(a)||!e._clusterBillboards&&!e._clusterLabels&&!e._clusterPoints)return;let r=e._clusterLabelCollection,f=e._clusterBillboardCollection,c=e._clusterPointCollection;l(r)?r.removeAll():r=e._clusterLabelCollection=new qn({scene:n}),l(f)?f.removeAll():f=e._clusterBillboardCollection=new rn({scene:n}),l(c)?c.removeAll():c=e._clusterPointCollection=new An;const h=e._pixelRange,d=e._minimumClusterSize,p=e._previousClusters,m=[],T=e._previousHeight,y=n.camera.positionCartographic.height,w=n.ellipsoid,A=n.camera.positionWC,b=new ui(w,A),E=[];e._clusterLabels&&mf(i,E,n,b,e),e._clusterBillboards&&mf(o,E,n,b,e),e._clusterPoints&&mf(a,E,n,b,e);let D,O,B,z,F,N,k,U,j,Y,s,x;if(E.length>0){const P=new uf(E.length,64,Uint32Array);for(let L=0;L<E.length;++L)P.add(E[L].coord.x,E[L].coord.y);if(P.finish(),y<T)for(B=p.length,D=0;D<B;++D){const L=p[D];if(!b.isPointVisible(L.position))continue;const H=me._computeScreenSpacePosition(V.IDENTITY,L.position,u.ZERO,q.ZERO,n);if(!l(H))continue;const X=1-y/T;let ee=L.width=L.width*X,K=L.height=L.height*X;ee=Math.max(ee,L.minimumWidth),K=Math.max(K,L.minimumHeight);const ce=H.x-ee*.5,le=H.y-K*.5,Ae=H.x+ee,Ie=H.y+K;for(F=P.range(ce,le,Ae,Ie),N=F.length,Y=0,j=[],O=0;O<N;++O)k=F[O],U=E[k],U.clustered||(++Y,s=U.collection,x=U.index,j.push(s.get(x).id));if(Y>=d)for(W0(L.position,Y,j,e),m.push(L),O=0;O<N;++O)E[F[O]].clustered=!0}for(B=E.length,D=0;D<B;++D){const L=E[D];if(L.clustered)continue;L.clustered=!0,s=L.collection,x=L.index;const H=s.get(x);z=v0(H,L.coord,h,e,Ox);const X=xe.clone(z,vx);F=P.range(z.x,z.y,z.x+z.width,z.y+z.height),N=F.length;const ee=u.clone(H.position);for(Y=1,j=[H.id],O=0;O<N;++O)if(k=F[O],U=E[k],!U.clustered){const K=U.collection.get(U.index),ce=v0(K,U.coord,h,e,Wx);u.add(K.position,ee,ee),xe.union(X,ce,X),++Y,j.push(K.id)}if(Y>=d){const K=u.multiplyByScalar(ee,1/Y,ee);for(W0(K,Y,j,e),m.push({position:K,width:X.width,height:X.height,minimumWidth:z.width,minimumHeight:z.height}),O=0;O<N;++O)E[F[O]].clustered=!0}else Dx(H,e)}}r.length===0&&(r.destroy(),e._clusterLabelCollection=void 0),f.length===0&&(f.destroy(),e._clusterBillboardCollection=void 0),c.length===0&&(c.destroy(),e._clusterPointCollection=void 0),e._previousClusters=m,e._previousHeight=y}}Hn.prototype._initialize=function(e){this._scene=e;const t=Px(this);this._cluster=t,this._removeEventListener=e.camera.changed.addEventListener(t)},Object.defineProperties(Hn.prototype,{enabled:{get:function(){return this._enabled},set:function(e){this._enabledDirty=e!==this._enabled,this._enabled=e}},pixelRange:{get:function(){return this._pixelRange},set:function(e){this._clusterDirty=this._clusterDirty||e!==this._pixelRange,this._pixelRange=e}},minimumClusterSize:{get:function(){return this._minimumClusterSize},set:function(e){this._clusterDirty=this._clusterDirty||e!==this._minimumClusterSize,this._minimumClusterSize=e}},clusterEvent:{get:function(){return this._clusterEvent}},clusterBillboards:{get:function(){return this._clusterBillboards},set:function(e){this._clusterDirty=this._clusterDirty||e!==this._clusterBillboards,this._clusterBillboards=e}},clusterLabels:{get:function(){return this._clusterLabels},set:function(e){this._clusterDirty=this._clusterDirty||e!==this._clusterLabels,this._clusterLabels=e}},clusterPoints:{get:function(){return this._clusterPoints},set:function(e){this._clusterDirty=this._clusterDirty||e!==this._clusterPoints,this._clusterPoints=e}}});function _f(e,t,n,i){return function(o){let a=this[e];l(this._collectionIndicesByEntity)||(this._collectionIndicesByEntity={});let r=this._collectionIndicesByEntity[o.id];if(l(r)||(r=this._collectionIndicesByEntity[o.id]={billboardIndex:void 0,labelIndex:void 0,pointIndex:void 0}),l(a)&&l(r[i]))return a.get(r[i]);l(a)||(a=this[e]=new t({scene:this._scene}));let f,c;const h=this[n];h.length>0?(f=h.shift(),c=a.get(f)):(c=a.add(),f=a.length-1),r[i]=f;const d=this;return Promise.resolve().then(function(){d._clusterDirty=!0}),c}}function gf(e,t){const n=e._collectionIndicesByEntity[t];!l(n.billboardIndex)&&!l(n.labelIndex)&&!l(n.pointIndex)&&delete e._collectionIndicesByEntity[t]}Hn.prototype.getLabel=_f("_labelCollection",qn,"_unusedLabelIndices","labelIndex"),Hn.prototype.removeLabel=function(e){const t=this._collectionIndicesByEntity&&this._collectionIndicesByEntity[e.id];if(!l(this._labelCollection)||!l(t)||!l(t.labelIndex))return;const n=t.labelIndex;t.labelIndex=void 0,gf(this,e.id);const i=this._labelCollection.get(n);i.show=!1,i.text="",i.id=void 0,this._unusedLabelIndices.push(n),this._clusterDirty=!0},Hn.prototype.getBillboard=_f("_billboardCollection",rn,"_unusedBillboardIndices","billboardIndex"),Hn.prototype.removeBillboard=function(e){const t=this._collectionIndicesByEntity&&this._collectionIndicesByEntity[e.id];if(!l(this._billboardCollection)||!l(t)||!l(t.billboardIndex))return;const n=t.billboardIndex;t.billboardIndex=void 0,gf(this,e.id);const i=this._billboardCollection.get(n);i.id=void 0,i.show=!1,i.image=void 0,this._unusedBillboardIndices.push(n),this._clusterDirty=!0},Hn.prototype.getPoint=_f("_pointCollection",An,"_unusedPointIndices","pointIndex"),Hn.prototype.removePoint=function(e){const t=this._collectionIndicesByEntity&&this._collectionIndicesByEntity[e.id];if(!l(this._pointCollection)||!l(t)||!l(t.pointIndex))return;const n=t.pointIndex;t.pointIndex=void 0,gf(this,e.id);const i=this._pointCollection.get(n);i.show=!1,i.id=void 0,this._unusedPointIndices.push(n),this._clusterDirty=!0};function Tf(e){if(!l(e))return;const t=e.length;for(let n=0;n<t;++n)e.get(n).clusterShow=!0}function Bx(e){e.enabled||(l(e._clusterLabelCollection)&&e._clusterLabelCollection.destroy(),l(e._clusterBillboardCollection)&&e._clusterBillboardCollection.destroy(),l(e._clusterPointCollection)&&e._clusterPointCollection.destroy(),e._clusterLabelCollection=void 0,e._clusterBillboardCollection=void 0,e._clusterPointCollection=void 0,Tf(e._labelCollection),Tf(e._billboardCollection),Tf(e._pointCollection))}Hn.prototype.update=function(e){if(!this.show)return;let t;l(this._labelCollection)&&this._labelCollection.length>0&&this._labelCollection.get(0)._glyphs.length===0&&(t=e.commandList,e.commandList=[],this._labelCollection.update(e),e.commandList=t),l(this._billboardCollection)&&this._billboardCollection.length>0&&!l(this._billboardCollection.get(0).width)&&(t=e.commandList,e.commandList=[],this._billboardCollection.update(e),e.commandList=t),this._enabledDirty&&(this._enabledDirty=!1,Bx(this),this._clusterDirty=!0),this._clusterDirty&&(this._clusterDirty=!1,this._cluster()),l(this._clusterLabelCollection)&&this._clusterLabelCollection.update(e),l(this._clusterBillboardCollection)&&this._clusterBillboardCollection.update(e),l(this._clusterPointCollection)&&this._clusterPointCollection.update(e),l(this._labelCollection)&&this._labelCollection.update(e),l(this._billboardCollection)&&this._billboardCollection.update(e),l(this._pointCollection)&&this._pointCollection.update(e)},Hn.prototype.destroy=function(){this._labelCollection=this._labelCollection&&this._labelCollection.destroy(),this._billboardCollection=this._billboardCollection&&this._billboardCollection.destroy(),this._pointCollection=this._pointCollection&&this._pointCollection.destroy(),this._clusterLabelCollection=this._clusterLabelCollection&&this._clusterLabelCollection.destroy(),this._clusterBillboardCollection=this._clusterBillboardCollection&&this._clusterBillboardCollection.destroy(),this._clusterPointCollection=this._clusterPointCollection&&this._clusterPointCollection.destroy(),l(this._removeEventListener)&&(this._removeEventListener(),this._removeEventListener=void 0),this._labelCollection=void 0,this._billboardCollection=void 0,this._pointCollection=void 0,this._clusterBillboardCollection=void 0,this._clusterLabelCollection=void 0,this._clusterPointCollection=void 0,this._collectionIndicesByEntity=void 0,this._unusedLabelIndices=[],this._unusedBillboardIndices=[],this._unusedPointIndices=[],this._previousClusters=[],this._previousHeight=void 0,this._enabledDirty=!1,this._pixelRangeDirty=!1,this._minimumClusterSizeDirty=!1};function ar(e){this._name=e,this._clock=void 0,this._changed=new Le,this._error=new Le,this._isLoading=!1,this._loading=new Le,this._entityCollection=new en(this),this._entityCluster=new Hn}Object.defineProperties(ar.prototype,{name:{get:function(){return this._name},set:function(e){this._name!==e&&(this._name=e,this._changed.raiseEvent(this))}},clock:{get:function(){return this._clock},set:function(e){this._clock!==e&&(this._clock=e,this._changed.raiseEvent(this))}},entities:{get:function(){return this._entityCollection}},isLoading:{get:function(){return this._isLoading},set:function(e){Oa.setLoading(this,e)}},changedEvent:{get:function(){return this._changed}},errorEvent:{get:function(){return this._error}},loadingEvent:{get:function(){return this._loading}},show:{get:function(){return this._entityCollection.show},set:function(e){this._entityCollection.show=e}},clustering:{get:function(){return this._entityCluster},set:function(e){if(!l(e))throw new C("value must be defined.");this._entityCluster=e}}}),ar.prototype.update=function(e){return!0};const Rx=S.WHITE,Lx=S.TRANSPARENT,zx=16,Nx=255;function Ko(e){e=g(e,g.EMPTY_OBJECT),this._definitionChanged=new Le,this._color=void 0,this._colorSubscription=void 0,this._gapColor=void 0,this._gapColorSubscription=void 0,this._dashLength=void 0,this._dashLengthSubscription=void 0,this._dashPattern=void 0,this._dashPatternSubscription=void 0,this.color=e.color,this.gapColor=e.gapColor,this.dashLength=e.dashLength,this.dashPattern=e.dashPattern}Object.defineProperties(Ko.prototype,{isConstant:{get:function(){return Te.isConstant(this._color)&&Te.isConstant(this._gapColor)&&Te.isConstant(this._dashLength)&&Te.isConstant(this._dashPattern)}},definitionChanged:{get:function(){return this._definitionChanged}},color:M("color"),gapColor:M("gapColor"),dashLength:M("dashLength"),dashPattern:M("dashPattern")}),Ko.prototype.getType=function(e){return"PolylineDash"};const Fx=new J;Ko.prototype.getValue=function(e,t){return l(e)||(e=J.now(Fx)),l(t)||(t={}),t.color=Te.getValueOrClonedDefault(this._color,e,Rx,t.color),t.gapColor=Te.getValueOrClonedDefault(this._gapColor,e,Lx,t.gapColor),t.dashLength=Te.getValueOrDefault(this._dashLength,e,zx,t.dashLength),t.dashPattern=Te.getValueOrDefault(this._dashPattern,e,Nx,t.dashPattern),t},Ko.prototype.equals=function(e){return this===e||e instanceof Ko&&Te.equals(this._color,e._color)&&Te.equals(this._gapColor,e._gapColor)&&Te.equals(this._dashLength,e._dashLength)&&Te.equals(this._dashPattern,e._dashPattern)};function Mx(e,t,n={}){const{color:i=S.WHITE,width:o=3,clampToGround:a=!1,zIndex:r=0,dashed:f=!1,dashLength:c=10}=n,h=f?new Ko({color:i,dashLength:c}):new ao(i);return e.entities.add({polyline:{positions:t,width:o,material:h,clampToGround:a,zIndex:r}})}function v(e,t,n=10,i="#ba1919"){return{name:t,label:{text:t,font:"18px sans-serif"},polyline:{show:!0,positions:e,clampToGround:!1,width:n,material:S.fromCssColorString(i),arcType:ai.NONE,shadows:ma.DISABLED}}}function To(e,t,n,i,o=new He(0,0,0),a=1){return{id:e,name:n,position:t,orientation:we.headingPitchRollQuaternion(t,o),model:{show:!0,uri:i,scale:a,heightReference:ii.NONE}}}function Ba(e,t,n,i={}){const{pointColor:o=S.YELLOW,pointSize:a=12,labelColor:r=S.WHITE,fontSize:f=16,pixelOffset:c=[0,-20],heightReference:h=ii.NONE}=i;return e.entities.add({position:t,point:{color:o,pixelSize:a,heightReference:h,distanceDisplayCondition:new ot(0,1e4)},label:{text:n,font:`${f}px sans-serif`,fillColor:r,pixelOffset:new q(...c),style:li.FILL_AND_OUTLINE,outlineWidth:2,outlineColor:S.BLACK,heightReference:h,distanceDisplayCondition:new ot(0,1e4)}})}function Q(e,t,n,i,o){n||(n=new He);const a=we.headingPitchRollQuaternion(e,n,i,o),r=V.fromRotationTranslation(G.fromQuaternion(a,new G),e,new V);return V.multiplyByPoint(r,t,new u)}function W(e,t=4){const n=[];for(var i=0;i<e.length-1;i++)n.push(...Ux(e[i],e[i+1],t*-1e3,100));return n}function Ux(e,t,n,i){var o=[],a=oe.fromCartesian(e),r=oe.fromCartesian(t),f=a.longitude*180/Math.PI,c=a.latitude*180/Math.PI,h=r.longitude*180/Math.PI,d=r.latitude*180/Math.PI,p=Math.sqrt((f-h)*(f-h)+(c-d)*(c-d)),m=p*n,T=u.clone(e),y=u.clone(t),w=u.distance(T,u.ZERO),A=u.distance(y,u.ZERO);if(u.normalize(T,T),u.normalize(y,y),u.distance(T,y)==0)return o;var b=u.angleBetween(T,y);o.push(e);for(var E=1;E<i-1;E++){var D=E*1/(i-1),O=1-D,B=Math.sin(O*b)/Math.sin(b),z=Math.sin(D*b)/Math.sin(b),F=u.multiplyByScalar(T,B,new u),N=u.multiplyByScalar(y,z,new u),k=u.add(F,N,new u),U=D*Math.PI,j=w*O+A*D+Math.sin(U)*m;k=u.multiplyByScalar(k,j,k),o.push(k)}return o.push(t),o}class kx{constructor(){se(this,"LineID","myEntity1");se(this,"Tag","");se(this,"towers",[]);se(this,"ISPhaseSequence",!1);se(this,"Wairnum",0);se(this,"Type",0);se(this,"wireAColor","#FFFFFF");se(this,"wireBColor","#FFFFFF");se(this,"wireCColor","#FFFFFF");se(this,"wireTColor","#FFFFFF");se(this,"wireD1Color","#FFFFFF");se(this,"wireD2Color","#FFFFFF");se(this,"wireWidth",1)}}class Vx{constructor(){se(this,"id","");se(this,"name","");se(this,"type",0);se(this,"Longitude",0);se(this,"Latitude",0);se(this,"Altitude",0);se(this,"RollX",0);se(this,"RollY",90);se(this,"RollZ",0);se(this,"towerScale",1);se(this,"towerHeight",42);se(this,"towerModelUri","");se(this,"towerPoint",[]);se(this,"Insulators",[])}}class Gx{constructor(){se(this,"id","");se(this,"name","");se(this,"type",0);se(this,"WairFX","进");se(this,"linenum",1);se(this,"Wairnum",0);se(this,"PhaseSequence",0);se(this,"RollX",90);se(this,"RollY",0);se(this,"RollZ",0);se(this,"InsulatorScale",1);se(this,"InsulatorLength",0);se(this,"InsulatorModelUri","");se(this,"InsulatorPoint",[])}}class qx{constructor(){se(this,"name","");se(this,"X",-45);se(this,"Y",90);se(this,"Z",0)}}var nn=(e=>(e[e.A相=0]="A相",e[e.B相=1]="B相",e[e.C相=2]="C相",e[e.地线1=3]="地线1",e[e.地线2=4]="地线2",e))(nn||{}),$i=(e=>(e[e.直线塔=0]="直线塔",e[e.耐张塔=1]="耐张塔",e[e.门架塔=2]="门架塔",e[e.换位塔=3]="换位塔",e))($i||{}),B0=(e=>(e[e.交流单回路=0]="交流单回路",e[e.交流双回路=1]="交流双回路",e[e.直流单回路=2]="直流单回路",e[e.直流双回路=3]="直流双回路",e[e.交流四回路=4]="交流四回路",e))(B0||{}),cr=(e=>(e[e.地线=0]="地线",e[e.回路一=1]="回路一",e[e.回路二=2]="回路二",e[e.回路三=3]="回路三",e[e.回路四=4]="回路四",e))(cr||{}),Ht=(e=>(e[e.悬垂串=0]="悬垂串",e[e.耐张串=1]="耐张串",e[e.跳线串=2]="跳线串",e[e.硬跳串=3]="硬跳串",e[e.V串=4]="V串",e[e.地线串=5]="地线串",e[e.绕跳临时=6]="绕跳临时",e))(Ht||{}),$=(e=>(e[e.单分裂=0]="单分裂",e[e.双分裂=1]="双分裂",e[e.四分裂=2]="四分裂",e[e.六分裂=3]="六分裂",e[e.八分裂=4]="八分裂",e))($||{});class Hx{constructor(t,n,i){se(this,"viewer");se(this,"LineInfo");se(this,"Keym","");se(this,"dataSource2");se(this,"entityCollection2");se(this,"offsetTowers",[]);se(this,"offsetWires11",[]);se(this,"offsetWires12",[]);se(this,"offsetWires13",[]);se(this,"offsetWires21",[]);se(this,"offsetWires22",[]);se(this,"offsetWires23",[]);se(this,"ToffsetArcWires1A",[]);se(this,"ToffsetArcWires2A",[]);se(this,"ToffsetWires1A1",[]);se(this,"ToffsetWires1A2",[]);se(this,"ToffsetArcWires1B",[]);se(this,"ToffsetArcWires2B",[]);se(this,"ToffsetWires1B1",[]);se(this,"ToffsetWires1B2",[]);se(this,"ToffsetArcWires1C",[]);se(this,"ToffsetArcWires2C",[]);se(this,"ToffsetWires1C1",[]);se(this,"ToffsetWires1C2",[]);se(this,"ToffsetArcWires1A2",[]);se(this,"ToffsetArcWires2A2",[]);se(this,"ToffsetWires2A1",[]);se(this,"ToffsetWires2A2",[]);se(this,"ToffsetArcWires1B2",[]);se(this,"ToffsetArcWires2B2",[]);se(this,"ToffsetWires2B1",[]);se(this,"ToffsetWires2B2",[]);se(this,"ToffsetArcWires1C2",[]);se(this,"ToffsetArcWires2C2",[]);se(this,"ToffsetWires2C1",[]);se(this,"ToffsetWires2C2",[]);se(this,"offsetArcWires1A",[]);se(this,"offsetArcWires1B",[]);se(this,"offsetArcWires1C",[]);se(this,"offsetArcWires2A",[]);se(this,"offsetArcWires2B",[]);se(this,"offsetArcWires2C",[]);se(this,"offsetGrouundWires1",[]);se(this,"offsetGrouundWires2",[]);se(this,"offsetGrouundWires11",[]);se(this,"offsetGrouundWires12",[]);this.Keym=i,this.viewer=t,this.LineInfo=n,this.dataSource2=new ar(this.LineInfo.LineID),this.entityCollection2=this.dataSource2.entities}loadLineTower(){if(this.Keym!="OW_JPS_EEngin_001")return;debugger;this.LineInfo.towers.forEach(i=>{this.offsetTowers.push(u.fromDegrees(i.Longitude,i.Latitude,i.Altitude))});let t=0,n=0;this.offsetTowers.forEach((i,o)=>{const a=new He(I.toRadians(this.LineInfo.towers[o].RollX),I.toRadians(this.LineInfo.towers[o].RollY),I.toRadians(this.LineInfo.towers[o].RollZ));this.entityCollection2.add(To(this.LineInfo.towers[o].id,i,this.LineInfo.towers[o].name,this.LineInfo.towers[o].towerModelUri,a,this.LineInfo.towers[o].towerScale));let r=new He(I.toRadians(this.LineInfo.towers[o].RollX),0,0),f=0;this.LineInfo.towers[o].Insulators.forEach(c=>{if(this.LineInfo.towers[o].type==$i.耐张塔)switch(c.type){case Ht.耐张串:let d=new He(I.toRadians(this.LineInfo.towers[o].RollX),0,0);if(c.WairFX=="进"){const w=new He(I.toRadians(c.RollX),I.toRadians(-90),I.toRadians(180)),A=Q(i,new u(this.LineInfo.towers[o].towerPoint[f].X,this.LineInfo.towers[o].towerPoint[f].Y,this.LineInfo.towers[o].towerPoint[f].Z),d);this.entityCollection2.add(To(c.id,A,c.name,c.InsulatorModelUri,w,c.InsulatorScale))}else{const w=new He(I.toRadians(c.RollX),I.toRadians(-90),I.toRadians(0)),A=Q(i,new u(this.LineInfo.towers[o].towerPoint[f].X,this.LineInfo.towers[o].towerPoint[f].Y,this.LineInfo.towers[o].towerPoint[f].Z),d);this.entityCollection2.add(To(c.id,A,c.name,c.InsulatorModelUri,w,c.InsulatorScale))}break;case Ht.跳线串:const p=new He(I.toRadians(c.RollX),I.toRadians(c.RollY),I.toRadians(c.RollZ)),m=Q(i,new u(this.LineInfo.towers[o].towerPoint[f].X,this.LineInfo.towers[o].towerPoint[f].Y,this.LineInfo.towers[o].towerPoint[f].Z),r);this.entityCollection2.add(To(c.id,m,c.name,c.InsulatorModelUri,p,c.InsulatorScale));break;case Ht.地线串:const T=new He(I.toRadians(c.RollX),I.toRadians(c.RollY),I.toRadians(c.RollZ)),y=Q(i,new u(this.LineInfo.towers[o].towerPoint[f].X,this.LineInfo.towers[o].towerPoint[f].Y,this.LineInfo.towers[o].towerPoint[f].Z),r);this.entityCollection2.add(To(c.id,y,c.name,c.InsulatorModelUri,T,c.InsulatorScale));break}else{const d=new He(I.toRadians(c.RollX),I.toRadians(c.RollY),I.toRadians(c.RollZ)),p=Q(i,new u(this.LineInfo.towers[o].towerPoint[f].X,this.LineInfo.towers[o].towerPoint[f].Y,this.LineInfo.towers[o].towerPoint[f].Z),r);this.entityCollection2.add(To(c.id,p,c.name,c.InsulatorModelUri,d,c.InsulatorScale))}const h=[];switch(c.InsulatorPoint.forEach(d=>{h.push(Q(i,new u(d.X,d.Y,d.Z),r))}),c.linenum){case cr.回路一:if(this.LineInfo.ISPhaseSequence)if(this.LineInfo.towers[o].type==$i.耐张塔)switch(c.PhaseSequence){case nn.A相:if(c.type==Ht.耐张串)if(c.WairFX=="进")switch(this.LineInfo.Wairnum){case $.单分裂:this.offsetWires11.push(h[0]),this.ToffsetWires1A1.push(h[0]);break;case $.双分裂:this.offsetWires11.push(h[0]),this.offsetWires11.push(h[1]),this.ToffsetWires1A1.push(h[2]),this.ToffsetWires1A1.push(h[3]);break;case $.四分裂:this.offsetWires11.push(h[0]),this.offsetWires11.push(h[1]),this.offsetWires11.push(h[2]),this.offsetWires11.push(h[3]),this.ToffsetWires1A1.push(h[4]),this.ToffsetWires1A1.push(h[5]),this.ToffsetWires1A1.push(h[6]),this.ToffsetWires1A1.push(h[7]);break;case $.六分裂:this.offsetWires11.push(h[0]),this.offsetWires11.push(h[1]),this.offsetWires11.push(h[2]),this.offsetWires11.push(h[3]),this.offsetWires11.push(h[4]),this.offsetWires11.push(h[5]),this.ToffsetWires1A1.push(h[6]),this.ToffsetWires1A1.push(h[7]),this.ToffsetWires1A1.push(h[8]),this.ToffsetWires1A1.push(h[9]),this.ToffsetWires1A1.push(h[10]),this.ToffsetWires1A1.push(h[11]);break;case $.八分裂:this.offsetWires11.push(h[0]),this.offsetWires11.push(h[1]),this.offsetWires11.push(h[2]),this.offsetWires11.push(h[3]),this.offsetWires11.push(h[4]),this.offsetWires11.push(h[5]),this.offsetWires11.push(h[6]),this.offsetWires11.push(h[7]),this.ToffsetWires1A1.push(h[8]),this.ToffsetWires1A1.push(h[9]),this.ToffsetWires1A1.push(h[10]),this.ToffsetWires1A1.push(h[11]),this.ToffsetWires1A1.push(h[12]),this.ToffsetWires1A1.push(h[13]),this.ToffsetWires1A1.push(h[14]),this.ToffsetWires1A1.push(h[15]);break}else switch(this.LineInfo.Wairnum){case $.单分裂:const d=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r);this.offsetWires11.push(d),this.ToffsetWires1A2.push(d);break;case $.双分裂:const p=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),m=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r);this.offsetWires11.push(p),this.offsetWires11.push(m),this.ToffsetWires1A2.push(p),this.ToffsetWires1A2.push(m);break;case $.四分裂:const T=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),y=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),w=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),A=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r);this.offsetWires11.push(T),this.offsetWires11.push(y),this.offsetWires11.push(w),this.offsetWires11.push(A),this.ToffsetWires1A2.push(T),this.ToffsetWires1A2.push(y),this.ToffsetWires1A2.push(w),this.ToffsetWires1A2.push(A);break;case $.六分裂:const b=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),E=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),D=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),O=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r),B=Q(i,new u(c.InsulatorPoint[4].X*-1,c.InsulatorPoint[4].Y,c.InsulatorPoint[4].Z),r),z=Q(i,new u(c.InsulatorPoint[5].X*-1,c.InsulatorPoint[5].Y,c.InsulatorPoint[5].Z),r);this.offsetWires11.push(b),this.offsetWires11.push(E),this.offsetWires11.push(D),this.offsetWires11.push(O),this.offsetWires11.push(B),this.offsetWires11.push(z),this.ToffsetWires1A2.push(b),this.ToffsetWires1A2.push(E),this.ToffsetWires1A2.push(D),this.ToffsetWires1A2.push(O),this.ToffsetWires1A2.push(B),this.ToffsetWires1A2.push(z);break;case $.八分裂:const F=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),N=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),k=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),U=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r),j=Q(i,new u(c.InsulatorPoint[4].X*-1,c.InsulatorPoint[4].Y,c.InsulatorPoint[4].Z),r),Y=Q(i,new u(c.InsulatorPoint[5].X*-1,c.InsulatorPoint[5].Y,c.InsulatorPoint[5].Z),r),s=Q(i,new u(c.InsulatorPoint[6].X*-1,c.InsulatorPoint[6].Y,c.InsulatorPoint[6].Z),r),x=Q(i,new u(c.InsulatorPoint[7].X*-1,c.InsulatorPoint[7].Y,c.InsulatorPoint[7].Z),r);this.offsetWires11.push(F),this.offsetWires11.push(N),this.offsetWires11.push(k),this.offsetWires11.push(U),this.offsetWires11.push(j),this.offsetWires11.push(Y),this.offsetWires11.push(s),this.offsetWires11.push(x),this.ToffsetWires1A2.push(F),this.ToffsetWires1A2.push(N),this.ToffsetWires1A2.push(k),this.ToffsetWires1A2.push(U),this.ToffsetWires1A2.push(j),this.ToffsetWires1A2.push(Y),this.ToffsetWires1A2.push(s),this.ToffsetWires1A2.push(x);break}else if(c.type==Ht.跳线串)switch(this.LineInfo.Wairnum){case $.单分裂:this.ToffsetWires1A1.push(h[0]),this.ToffsetWires1A2.push(h[0]);break;case $.双分裂:this.ToffsetWires1A1.push(h[0]),this.ToffsetWires1A1.push(h[1]),this.ToffsetWires1A2.push(h[2]),this.ToffsetWires1A2.push(h[3]);break;case $.四分裂:this.ToffsetWires1A1.push(h[0]),this.ToffsetWires1A1.push(h[1]),this.ToffsetWires1A1.push(h[2]),this.ToffsetWires1A1.push(h[3]),this.ToffsetWires1A2.push(h[4]),this.ToffsetWires1A2.push(h[5]),this.ToffsetWires1A2.push(h[6]),this.ToffsetWires1A2.push(h[7]);break;case $.六分裂:this.ToffsetWires1A1.push(h[0]),this.ToffsetWires1A1.push(h[1]),this.ToffsetWires1A1.push(h[2]),this.ToffsetWires1A1.push(h[3]),this.ToffsetWires1A1.push(h[4]),this.ToffsetWires1A1.push(h[5]),this.ToffsetWires1A2.push(h[6]),this.ToffsetWires1A2.push(h[7]),this.ToffsetWires1A2.push(h[8]),this.ToffsetWires1A2.push(h[9]),this.ToffsetWires1A2.push(h[10]),this.ToffsetWires1A2.push(h[11]);break;case $.八分裂:this.ToffsetWires1A1.push(h[0]),this.ToffsetWires1A1.push(h[1]),this.ToffsetWires1A1.push(h[2]),this.ToffsetWires1A1.push(h[3]),this.ToffsetWires1A1.push(h[4]),this.ToffsetWires1A1.push(h[5]),this.ToffsetWires1A1.push(h[6]),this.ToffsetWires1A1.push(h[7]),this.ToffsetWires1A2.push(h[8]),this.ToffsetWires1A2.push(h[9]),this.ToffsetWires1A2.push(h[10]),this.ToffsetWires1A2.push(h[11]),this.ToffsetWires1A2.push(h[12]),this.ToffsetWires1A2.push(h[13]),this.ToffsetWires1A2.push(h[14]),this.ToffsetWires1A2.push(h[15]);break}break;case nn.B相:if(c.type==Ht.耐张串)if(c.WairFX=="进")switch(this.LineInfo.Wairnum){case $.单分裂:this.offsetWires12.push(h[0]),this.ToffsetWires1B1.push(h[0]);break;case $.双分裂:this.offsetWires12.push(h[0]),this.offsetWires12.push(h[1]),this.ToffsetWires1B1.push(h[2]),this.ToffsetWires1B1.push(h[3]);break;case $.四分裂:this.offsetWires12.push(h[0]),this.offsetWires12.push(h[1]),this.offsetWires12.push(h[2]),this.offsetWires12.push(h[3]),this.ToffsetWires1B1.push(h[4]),this.ToffsetWires1B1.push(h[5]),this.ToffsetWires1B1.push(h[6]),this.ToffsetWires1B1.push(h[7]);break;case $.六分裂:this.offsetWires12.push(h[0]),this.offsetWires12.push(h[1]),this.offsetWires12.push(h[2]),this.offsetWires12.push(h[3]),this.offsetWires12.push(h[4]),this.offsetWires12.push(h[5]),this.ToffsetWires1B1.push(h[6]),this.ToffsetWires1B1.push(h[7]),this.ToffsetWires1B1.push(h[8]),this.ToffsetWires1B1.push(h[9]),this.ToffsetWires1B1.push(h[10]),this.ToffsetWires1B1.push(h[11]);break;case $.八分裂:this.offsetWires12.push(h[0]),this.offsetWires12.push(h[1]),this.offsetWires12.push(h[2]),this.offsetWires12.push(h[3]),this.offsetWires12.push(h[4]),this.offsetWires12.push(h[5]),this.offsetWires12.push(h[6]),this.offsetWires12.push(h[7]),this.ToffsetWires1B1.push(h[8]),this.ToffsetWires1B1.push(h[9]),this.ToffsetWires1B1.push(h[10]),this.ToffsetWires1B1.push(h[11]),this.ToffsetWires1B1.push(h[12]),this.ToffsetWires1B1.push(h[13]),this.ToffsetWires1B1.push(h[14]),this.ToffsetWires1B1.push(h[15]);break}else switch(this.LineInfo.Wairnum){case $.单分裂:const d=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r);this.offsetWires12.push(d),this.ToffsetWires1B2.push(d);break;case $.双分裂:const p=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),m=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r);this.offsetWires12.push(p),this.offsetWires12.push(m),this.ToffsetWires1B2.push(p),this.ToffsetWires1B2.push(m);break;case $.四分裂:const T=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),y=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),w=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),A=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r);this.offsetWires12.push(T),this.offsetWires12.push(y),this.offsetWires12.push(w),this.offsetWires12.push(A),this.ToffsetWires1B2.push(T),this.ToffsetWires1B2.push(y),this.ToffsetWires1B2.push(w),this.ToffsetWires1B2.push(A);break;case $.六分裂:const b=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),E=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),D=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),O=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r),B=Q(i,new u(c.InsulatorPoint[4].X*-1,c.InsulatorPoint[4].Y,c.InsulatorPoint[4].Z),r),z=Q(i,new u(c.InsulatorPoint[5].X*-1,c.InsulatorPoint[5].Y,c.InsulatorPoint[5].Z),r);this.offsetWires12.push(b),this.offsetWires12.push(E),this.offsetWires12.push(D),this.offsetWires12.push(O),this.offsetWires12.push(B),this.offsetWires12.push(z),this.ToffsetWires1B2.push(b),this.ToffsetWires1B2.push(E),this.ToffsetWires1B2.push(D),this.ToffsetWires1B2.push(O),this.ToffsetWires1B2.push(B),this.ToffsetWires1B2.push(z);break;case $.八分裂:const F=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),N=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),k=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),U=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r),j=Q(i,new u(c.InsulatorPoint[4].X*-1,c.InsulatorPoint[4].Y,c.InsulatorPoint[4].Z),r),Y=Q(i,new u(c.InsulatorPoint[5].X*-1,c.InsulatorPoint[5].Y,c.InsulatorPoint[5].Z),r),s=Q(i,new u(c.InsulatorPoint[6].X*-1,c.InsulatorPoint[6].Y,c.InsulatorPoint[6].Z),r),x=Q(i,new u(c.InsulatorPoint[7].X*-1,c.InsulatorPoint[7].Y,c.InsulatorPoint[7].Z),r);this.offsetWires12.push(F),this.offsetWires12.push(N),this.offsetWires12.push(k),this.offsetWires12.push(U),this.offsetWires12.push(j),this.offsetWires12.push(Y),this.offsetWires12.push(s),this.offsetWires12.push(x),this.ToffsetWires1B2.push(F),this.ToffsetWires1B2.push(N),this.ToffsetWires1B2.push(k),this.ToffsetWires1B2.push(U),this.ToffsetWires1B2.push(j),this.ToffsetWires1B2.push(Y),this.ToffsetWires1B2.push(s),this.ToffsetWires1B2.push(x);break}else if(c.type==Ht.跳线串)switch(this.LineInfo.Wairnum){case $.单分裂:this.ToffsetWires1B1.push(h[0]),this.ToffsetWires1B2.push(h[0]);break;case $.双分裂:this.ToffsetWires1B1.push(h[0]),this.ToffsetWires1B1.push(h[1]),this.ToffsetWires1B2.push(h[2]),this.ToffsetWires1B2.push(h[3]);break;case $.四分裂:this.ToffsetWires1B1.push(h[0]),this.ToffsetWires1B1.push(h[1]),this.ToffsetWires1B1.push(h[2]),this.ToffsetWires1B1.push(h[3]),this.ToffsetWires1B2.push(h[4]),this.ToffsetWires1B2.push(h[5]),this.ToffsetWires1B2.push(h[6]),this.ToffsetWires1B2.push(h[7]);break;case $.六分裂:this.ToffsetWires1B1.push(h[0]),this.ToffsetWires1B1.push(h[1]),this.ToffsetWires1B1.push(h[2]),this.ToffsetWires1B1.push(h[3]),this.ToffsetWires1B1.push(h[4]),this.ToffsetWires1B1.push(h[5]),this.ToffsetWires1B2.push(h[6]),this.ToffsetWires1B2.push(h[7]),this.ToffsetWires1B2.push(h[8]),this.ToffsetWires1B2.push(h[9]),this.ToffsetWires1B2.push(h[10]),this.ToffsetWires1B2.push(h[11]);break;case $.八分裂:this.ToffsetWires1B1.push(h[0]),this.ToffsetWires1B1.push(h[1]),this.ToffsetWires1B1.push(h[2]),this.ToffsetWires1B1.push(h[3]),this.ToffsetWires1B1.push(h[4]),this.ToffsetWires1B1.push(h[5]),this.ToffsetWires1B1.push(h[6]),this.ToffsetWires1B1.push(h[7]),this.ToffsetWires1B2.push(h[8]),this.ToffsetWires1B2.push(h[9]),this.ToffsetWires1B2.push(h[10]),this.ToffsetWires1B2.push(h[11]),this.ToffsetWires1B2.push(h[12]),this.ToffsetWires1B2.push(h[13]),this.ToffsetWires1B2.push(h[14]),this.ToffsetWires1B2.push(h[15]);break}break;case nn.C相:if(c.type==Ht.耐张串)if(c.WairFX=="进")switch(this.LineInfo.Wairnum){case $.单分裂:this.offsetWires13.push(h[0]),this.ToffsetWires1C1.push(h[0]);break;case $.双分裂:this.offsetWires13.push(h[0]),this.offsetWires13.push(h[1]),this.ToffsetWires1C1.push(h[2]),this.ToffsetWires1C1.push(h[3]);break;case $.四分裂:this.offsetWires13.push(h[0]),this.offsetWires13.push(h[1]),this.offsetWires13.push(h[2]),this.offsetWires13.push(h[3]),this.ToffsetWires1C1.push(h[4]),this.ToffsetWires1C1.push(h[5]),this.ToffsetWires1C1.push(h[6]),this.ToffsetWires1C1.push(h[7]);break;case $.六分裂:this.offsetWires13.push(h[0]),this.offsetWires13.push(h[1]),this.offsetWires13.push(h[2]),this.offsetWires13.push(h[3]),this.offsetWires13.push(h[4]),this.offsetWires13.push(h[5]),this.ToffsetWires1C1.push(h[6]),this.ToffsetWires1C1.push(h[7]),this.ToffsetWires1C1.push(h[8]),this.ToffsetWires1C1.push(h[9]),this.ToffsetWires1C1.push(h[10]),this.ToffsetWires1C1.push(h[11]);break;case $.八分裂:this.offsetWires13.push(h[0]),this.offsetWires13.push(h[1]),this.offsetWires13.push(h[2]),this.offsetWires13.push(h[3]),this.offsetWires13.push(h[4]),this.offsetWires13.push(h[5]),this.offsetWires13.push(h[6]),this.offsetWires13.push(h[7]),this.ToffsetWires1C1.push(h[8]),this.ToffsetWires1C1.push(h[9]),this.ToffsetWires1C1.push(h[10]),this.ToffsetWires1C1.push(h[11]),this.ToffsetWires1C1.push(h[12]),this.ToffsetWires1C1.push(h[13]),this.ToffsetWires1C1.push(h[14]),this.ToffsetWires1C1.push(h[15]);break}else switch(this.LineInfo.Wairnum){case $.单分裂:const d=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r);this.offsetWires13.push(d),this.ToffsetWires1C2.push(d);break;case $.双分裂:const p=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),m=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r);this.offsetWires13.push(p),this.offsetWires13.push(m),this.ToffsetWires1C2.push(p),this.ToffsetWires1C2.push(m);break;case $.四分裂:const T=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),y=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),w=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),A=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r);this.offsetWires13.push(T),this.offsetWires13.push(y),this.offsetWires13.push(w),this.offsetWires13.push(A),this.ToffsetWires1C2.push(T),this.ToffsetWires1C2.push(y),this.ToffsetWires1C2.push(w),this.ToffsetWires1C2.push(A);break;case $.六分裂:const b=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),E=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),D=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),O=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r),B=Q(i,new u(c.InsulatorPoint[4].X*-1,c.InsulatorPoint[4].Y,c.InsulatorPoint[4].Z),r),z=Q(i,new u(c.InsulatorPoint[5].X*-1,c.InsulatorPoint[5].Y,c.InsulatorPoint[5].Z),r);this.offsetWires13.push(b),this.offsetWires13.push(E),this.offsetWires13.push(D),this.offsetWires13.push(O),this.offsetWires13.push(B),this.offsetWires13.push(z),this.ToffsetWires1C2.push(b),this.ToffsetWires1C2.push(E),this.ToffsetWires1C2.push(D),this.ToffsetWires1C2.push(O),this.ToffsetWires1C2.push(B),this.ToffsetWires1C2.push(z);break;case $.八分裂:const F=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),N=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),k=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),U=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r),j=Q(i,new u(c.InsulatorPoint[4].X*-1,c.InsulatorPoint[4].Y,c.InsulatorPoint[4].Z),r),Y=Q(i,new u(c.InsulatorPoint[5].X*-1,c.InsulatorPoint[5].Y,c.InsulatorPoint[5].Z),r),s=Q(i,new u(c.InsulatorPoint[6].X*-1,c.InsulatorPoint[6].Y,c.InsulatorPoint[6].Z),r),x=Q(i,new u(c.InsulatorPoint[7].X*-1,c.InsulatorPoint[7].Y,c.InsulatorPoint[7].Z),r);this.offsetWires13.push(F),this.offsetWires13.push(N),this.offsetWires13.push(k),this.offsetWires13.push(U),this.offsetWires13.push(j),this.offsetWires13.push(Y),this.offsetWires13.push(s),this.offsetWires13.push(x),this.ToffsetWires1C2.push(F),this.ToffsetWires1C2.push(N),this.ToffsetWires1C2.push(k),this.ToffsetWires1C2.push(U),this.ToffsetWires1C2.push(j),this.ToffsetWires1C2.push(Y),this.ToffsetWires1C2.push(s),this.ToffsetWires1C2.push(x);break}else if(c.type==Ht.跳线串)switch(this.LineInfo.Wairnum){case $.单分裂:this.ToffsetWires1C1.push(h[0]),this.ToffsetWires1C2.push(h[0]);break;case $.双分裂:this.ToffsetWires1C1.push(h[0]),this.ToffsetWires1C1.push(h[1]),this.ToffsetWires1C2.push(h[2]),this.ToffsetWires1C2.push(h[3]);break;case $.四分裂:this.ToffsetWires1C1.push(h[0]),this.ToffsetWires1C1.push(h[1]),this.ToffsetWires1C1.push(h[2]),this.ToffsetWires1C1.push(h[3]),this.ToffsetWires1C2.push(h[4]),this.ToffsetWires1C2.push(h[5]),this.ToffsetWires1C2.push(h[6]),this.ToffsetWires1C2.push(h[7]);break;case $.六分裂:this.ToffsetWires1C1.push(h[0]),this.ToffsetWires1C1.push(h[1]),this.ToffsetWires1C1.push(h[2]),this.ToffsetWires1C1.push(h[3]),this.ToffsetWires1C1.push(h[4]),this.ToffsetWires1C1.push(h[5]),this.ToffsetWires1C2.push(h[6]),this.ToffsetWires1C2.push(h[7]),this.ToffsetWires1C2.push(h[8]),this.ToffsetWires1C2.push(h[9]),this.ToffsetWires1C2.push(h[10]),this.ToffsetWires1C2.push(h[11]);break;case $.八分裂:this.ToffsetWires1C1.push(h[0]),this.ToffsetWires1C1.push(h[1]),this.ToffsetWires1C1.push(h[2]),this.ToffsetWires1C1.push(h[3]),this.ToffsetWires1C1.push(h[4]),this.ToffsetWires1C1.push(h[5]),this.ToffsetWires1C1.push(h[6]),this.ToffsetWires1C1.push(h[7]),this.ToffsetWires1C2.push(h[8]),this.ToffsetWires1C2.push(h[9]),this.ToffsetWires1C2.push(h[10]),this.ToffsetWires1C2.push(h[11]),this.ToffsetWires1C2.push(h[12]),this.ToffsetWires1C2.push(h[13]),this.ToffsetWires1C2.push(h[14]),this.ToffsetWires1C2.push(h[15]);break}break}else switch(c.PhaseSequence){case nn.A相:h.forEach(d=>{this.offsetWires11.push(d)});break;case nn.B相:h.forEach(d=>{this.offsetWires12.push(d)});break;case nn.C相:h.forEach(d=>{this.offsetWires13.push(d)});break}else if(this.LineInfo.towers[o].type==$i.耐张塔){debugger;switch(f){case 2:switch(this.LineInfo.Wairnum){case $.单分裂:this.offsetWires11.push(h[0]),this.ToffsetWires1A1.push(h[0]);break;case $.双分裂:this.offsetWires11.push(h[0]),this.offsetWires11.push(h[1]),this.ToffsetWires1A1.push(h[2]),this.ToffsetWires1A1.push(h[3]);break}break;case 3:switch(this.LineInfo.Wairnum){case $.单分裂:this.ToffsetWires1A1.push(h[0]),this.ToffsetWires1A2.push(h[0]);break;case $.双分裂:this.ToffsetWires1A1.push(h[0]),this.ToffsetWires1A1.push(h[1]),this.ToffsetWires1A2.push(h[2]),this.ToffsetWires1A2.push(h[3]);break}break;case 4:switch(this.LineInfo.Wairnum){case $.单分裂:const d=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r);this.offsetWires11.push(d),this.ToffsetWires1A2.push(d);break;case $.双分裂:const p=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),m=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r);this.offsetWires11.push(p),this.offsetWires11.push(m),this.ToffsetWires1A2.push(p),this.ToffsetWires1A2.push(m);break}break;case 5:h.forEach(d=>{this.offsetWires12.push(d),this.ToffsetWires1B1.push(d)});break;case 6:h.forEach(d=>{this.ToffsetWires1B1.push(d),this.ToffsetWires1B2.push(d)});break;case 7:c.InsulatorPoint.forEach(d=>{const p=Q(i,new u(d.X*-1,d.Y,d.Z),r);this.offsetWires12.push(p),this.ToffsetWires1B2.push(p)});break;case 8:h.forEach(d=>{this.offsetWires13.push(d),this.ToffsetWires1C1.push(d)});break;case 9:h.forEach(d=>{this.ToffsetWires1C1.push(d),this.ToffsetWires1C2.push(d)});break;case 10:c.InsulatorPoint.forEach(d=>{const p=Q(i,new u(d.X*-1,d.Y,d.Z),r);this.offsetWires13.push(p),this.ToffsetWires1C2.push(p)});break}}else switch(f){case 2:h.forEach(d=>{this.offsetWires11.push(d)});break;case 3:h.forEach(d=>{this.offsetWires12.push(d)});break;case 4:h.forEach(d=>{this.offsetWires13.push(d)});break}break;case cr.回路二:if(this.LineInfo.ISPhaseSequence)if(this.LineInfo.towers[o].type==$i.耐张塔)switch(c.PhaseSequence){case nn.A相:if(c.type==Ht.耐张串)if(c.WairFX=="进")switch(this.LineInfo.Wairnum){case $.单分裂:this.offsetWires21.push(h[0]),this.ToffsetWires2A1.push(h[0]);break;case $.双分裂:this.offsetWires21.push(h[0]),this.offsetWires21.push(h[1]),this.ToffsetWires2A1.push(h[2]),this.ToffsetWires2A1.push(h[3]);break;case $.四分裂:this.offsetWires21.push(h[0]),this.offsetWires21.push(h[1]),this.offsetWires21.push(h[2]),this.offsetWires21.push(h[3]),this.ToffsetWires2A1.push(h[4]),this.ToffsetWires2A1.push(h[5]),this.ToffsetWires2A1.push(h[6]),this.ToffsetWires2A1.push(h[7]);break;case $.六分裂:this.offsetWires21.push(h[0]),this.offsetWires21.push(h[1]),this.offsetWires21.push(h[2]),this.offsetWires21.push(h[3]),this.offsetWires21.push(h[4]),this.offsetWires21.push(h[5]),this.ToffsetWires2A1.push(h[6]),this.ToffsetWires2A1.push(h[7]),this.ToffsetWires2A1.push(h[8]),this.ToffsetWires2A1.push(h[9]),this.ToffsetWires2A1.push(h[10]),this.ToffsetWires2A1.push(h[11]);break;case $.八分裂:this.offsetWires21.push(h[0]),this.offsetWires21.push(h[1]),this.offsetWires21.push(h[2]),this.offsetWires21.push(h[3]),this.offsetWires21.push(h[4]),this.offsetWires21.push(h[5]),this.offsetWires21.push(h[6]),this.offsetWires21.push(h[7]),this.ToffsetWires2A1.push(h[8]),this.ToffsetWires2A1.push(h[9]),this.ToffsetWires2A1.push(h[10]),this.ToffsetWires2A1.push(h[11]),this.ToffsetWires2A1.push(h[12]),this.ToffsetWires2A1.push(h[13]),this.ToffsetWires2A1.push(h[14]),this.ToffsetWires2A1.push(h[15]);break}else switch(this.LineInfo.Wairnum){case $.单分裂:const d=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r);this.offsetWires21.push(d),this.ToffsetWires2A2.push(d);break;case $.双分裂:const p=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),m=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r);this.offsetWires21.push(p),this.offsetWires21.push(m),this.ToffsetWires2A2.push(p),this.ToffsetWires2A2.push(m);break;case $.四分裂:const T=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),y=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),w=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),A=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r);this.offsetWires21.push(T),this.offsetWires21.push(y),this.offsetWires21.push(w),this.offsetWires21.push(A),this.ToffsetWires2A2.push(T),this.ToffsetWires2A2.push(y),this.ToffsetWires2A2.push(w),this.ToffsetWires2A2.push(A);break;case $.六分裂:const b=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),E=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),D=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),O=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r),B=Q(i,new u(c.InsulatorPoint[4].X*-1,c.InsulatorPoint[4].Y,c.InsulatorPoint[4].Z),r),z=Q(i,new u(c.InsulatorPoint[5].X*-1,c.InsulatorPoint[5].Y,c.InsulatorPoint[5].Z),r);this.offsetWires21.push(b),this.offsetWires21.push(E),this.offsetWires21.push(D),this.offsetWires21.push(O),this.offsetWires21.push(B),this.offsetWires21.push(z),this.ToffsetWires2A2.push(b),this.ToffsetWires2A2.push(E),this.ToffsetWires2A2.push(D),this.ToffsetWires2A2.push(O),this.ToffsetWires2A2.push(B),this.ToffsetWires2A2.push(z);break;case $.八分裂:const F=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),N=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),k=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),U=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r),j=Q(i,new u(c.InsulatorPoint[4].X*-1,c.InsulatorPoint[4].Y,c.InsulatorPoint[4].Z),r),Y=Q(i,new u(c.InsulatorPoint[5].X*-1,c.InsulatorPoint[5].Y,c.InsulatorPoint[5].Z),r),s=Q(i,new u(c.InsulatorPoint[6].X*-1,c.InsulatorPoint[6].Y,c.InsulatorPoint[6].Z),r),x=Q(i,new u(c.InsulatorPoint[7].X*-1,c.InsulatorPoint[7].Y,c.InsulatorPoint[7].Z),r);this.offsetWires21.push(F),this.offsetWires21.push(N),this.offsetWires21.push(k),this.offsetWires21.push(U),this.offsetWires21.push(j),this.offsetWires21.push(Y),this.offsetWires21.push(s),this.offsetWires21.push(x),this.ToffsetWires2A2.push(F),this.ToffsetWires2A2.push(N),this.ToffsetWires2A2.push(k),this.ToffsetWires2A2.push(U),this.ToffsetWires2A2.push(j),this.ToffsetWires2A2.push(Y),this.ToffsetWires2A2.push(s),this.ToffsetWires2A2.push(x);break}else if(c.type==Ht.跳线串)switch(this.LineInfo.Wairnum){case $.单分裂:this.ToffsetWires2A1.push(h[0]),this.ToffsetWires2A2.push(h[0]);break;case $.双分裂:this.ToffsetWires2A1.push(h[0]),this.ToffsetWires2A1.push(h[1]),this.ToffsetWires2A2.push(h[2]),this.ToffsetWires2A2.push(h[3]);break;case $.四分裂:this.ToffsetWires2A1.push(h[0]),this.ToffsetWires2A1.push(h[1]),this.ToffsetWires2A1.push(h[2]),this.ToffsetWires2A1.push(h[3]),this.ToffsetWires2A2.push(h[4]),this.ToffsetWires2A2.push(h[5]),this.ToffsetWires2A2.push(h[6]),this.ToffsetWires2A2.push(h[7]);break;case $.六分裂:this.ToffsetWires2A1.push(h[0]),this.ToffsetWires2A1.push(h[1]),this.ToffsetWires2A1.push(h[2]),this.ToffsetWires2A1.push(h[3]),this.ToffsetWires2A1.push(h[4]),this.ToffsetWires2A1.push(h[5]),this.ToffsetWires2A2.push(h[6]),this.ToffsetWires2A2.push(h[7]),this.ToffsetWires2A2.push(h[8]),this.ToffsetWires2A2.push(h[9]),this.ToffsetWires2A2.push(h[10]),this.ToffsetWires2A2.push(h[11]);break;case $.八分裂:this.ToffsetWires2A1.push(h[0]),this.ToffsetWires2A1.push(h[1]),this.ToffsetWires2A1.push(h[2]),this.ToffsetWires2A1.push(h[3]),this.ToffsetWires2A1.push(h[4]),this.ToffsetWires2A1.push(h[5]),this.ToffsetWires2A1.push(h[6]),this.ToffsetWires2A1.push(h[7]),this.ToffsetWires2A2.push(h[8]),this.ToffsetWires2A2.push(h[9]),this.ToffsetWires2A2.push(h[10]),this.ToffsetWires2A2.push(h[11]),this.ToffsetWires2A2.push(h[12]),this.ToffsetWires2A2.push(h[13]),this.ToffsetWires2A2.push(h[14]),this.ToffsetWires2A2.push(h[15]);break}break;case nn.B相:if(c.type==Ht.耐张串)if(c.WairFX=="进")switch(this.LineInfo.Wairnum){case $.单分裂:this.offsetWires22.push(h[0]),this.ToffsetWires2B1.push(h[0]);break;case $.双分裂:this.offsetWires22.push(h[0]),this.offsetWires22.push(h[1]),this.ToffsetWires2B1.push(h[2]),this.ToffsetWires2B1.push(h[3]);break;case $.四分裂:this.offsetWires22.push(h[0]),this.offsetWires22.push(h[1]),this.offsetWires22.push(h[2]),this.offsetWires22.push(h[3]),this.ToffsetWires2B1.push(h[4]),this.ToffsetWires2B1.push(h[5]),this.ToffsetWires2B1.push(h[6]),this.ToffsetWires2B1.push(h[7]);break;case $.六分裂:this.offsetWires22.push(h[0]),this.offsetWires22.push(h[1]),this.offsetWires22.push(h[2]),this.offsetWires22.push(h[3]),this.offsetWires22.push(h[4]),this.offsetWires22.push(h[5]),this.ToffsetWires2B1.push(h[6]),this.ToffsetWires2B1.push(h[7]),this.ToffsetWires2B1.push(h[8]),this.ToffsetWires2B1.push(h[9]),this.ToffsetWires2B1.push(h[10]),this.ToffsetWires2B1.push(h[11]);break;case $.八分裂:this.offsetWires22.push(h[0]),this.offsetWires22.push(h[1]),this.offsetWires22.push(h[2]),this.offsetWires22.push(h[3]),this.offsetWires22.push(h[4]),this.offsetWires22.push(h[5]),this.offsetWires22.push(h[6]),this.offsetWires22.push(h[7]),this.ToffsetWires2B1.push(h[8]),this.ToffsetWires2B1.push(h[9]),this.ToffsetWires2B1.push(h[10]),this.ToffsetWires2B1.push(h[11]),this.ToffsetWires2B1.push(h[12]),this.ToffsetWires2B1.push(h[13]),this.ToffsetWires2B1.push(h[14]),this.ToffsetWires2B1.push(h[15]);break}else switch(this.LineInfo.Wairnum){case $.单分裂:const d=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r);this.offsetWires22.push(d),this.ToffsetWires2B2.push(d);break;case $.双分裂:const p=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),m=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r);this.offsetWires22.push(p),this.offsetWires22.push(m),this.ToffsetWires2B2.push(p),this.ToffsetWires2B2.push(m);break;case $.四分裂:const T=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),y=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),w=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),A=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r);this.offsetWires22.push(T),this.offsetWires22.push(y),this.offsetWires22.push(w),this.offsetWires22.push(A),this.ToffsetWires2B2.push(T),this.ToffsetWires2B2.push(y),this.ToffsetWires2B2.push(w),this.ToffsetWires2B2.push(A);break;case $.六分裂:const b=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),E=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),D=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),O=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r),B=Q(i,new u(c.InsulatorPoint[4].X*-1,c.InsulatorPoint[4].Y,c.InsulatorPoint[4].Z),r),z=Q(i,new u(c.InsulatorPoint[5].X*-1,c.InsulatorPoint[5].Y,c.InsulatorPoint[5].Z),r);this.offsetWires22.push(b),this.offsetWires22.push(E),this.offsetWires22.push(D),this.offsetWires22.push(O),this.offsetWires22.push(B),this.offsetWires22.push(z),this.ToffsetWires2B2.push(b),this.ToffsetWires2B2.push(E),this.ToffsetWires2B2.push(D),this.ToffsetWires2B2.push(O),this.ToffsetWires2B2.push(B),this.ToffsetWires2B2.push(z);break;case $.八分裂:const F=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),N=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),k=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),U=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r),j=Q(i,new u(c.InsulatorPoint[4].X*-1,c.InsulatorPoint[4].Y,c.InsulatorPoint[4].Z),r),Y=Q(i,new u(c.InsulatorPoint[5].X*-1,c.InsulatorPoint[5].Y,c.InsulatorPoint[5].Z),r),s=Q(i,new u(c.InsulatorPoint[6].X*-1,c.InsulatorPoint[6].Y,c.InsulatorPoint[6].Z),r),x=Q(i,new u(c.InsulatorPoint[7].X*-1,c.InsulatorPoint[7].Y,c.InsulatorPoint[7].Z),r);this.offsetWires22.push(F),this.offsetWires22.push(N),this.offsetWires22.push(k),this.offsetWires22.push(U),this.offsetWires22.push(j),this.offsetWires22.push(Y),this.offsetWires22.push(s),this.offsetWires22.push(x),this.ToffsetWires2B2.push(F),this.ToffsetWires2B2.push(N),this.ToffsetWires2B2.push(k),this.ToffsetWires2B2.push(U),this.ToffsetWires2B2.push(j),this.ToffsetWires2B2.push(Y),this.ToffsetWires2B2.push(s),this.ToffsetWires2B2.push(x);break}else if(c.type==Ht.跳线串)switch(this.LineInfo.Wairnum){case $.单分裂:this.ToffsetWires2B1.push(h[0]),this.ToffsetWires2B2.push(h[0]);break;case $.双分裂:this.ToffsetWires2B1.push(h[0]),this.ToffsetWires2B1.push(h[1]),this.ToffsetWires2B2.push(h[2]),this.ToffsetWires2B2.push(h[3]);break;case $.四分裂:this.ToffsetWires2B1.push(h[0]),this.ToffsetWires2B1.push(h[1]),this.ToffsetWires2B1.push(h[2]),this.ToffsetWires2B1.push(h[3]),this.ToffsetWires2B2.push(h[4]),this.ToffsetWires2B2.push(h[5]),this.ToffsetWires2B2.push(h[6]),this.ToffsetWires2B2.push(h[7]);break;case $.六分裂:this.ToffsetWires2B1.push(h[0]),this.ToffsetWires2B1.push(h[1]),this.ToffsetWires2B1.push(h[2]),this.ToffsetWires2B1.push(h[3]),this.ToffsetWires2B1.push(h[4]),this.ToffsetWires2B1.push(h[5]),this.ToffsetWires2B2.push(h[6]),this.ToffsetWires2B2.push(h[7]),this.ToffsetWires2B2.push(h[8]),this.ToffsetWires2B2.push(h[9]),this.ToffsetWires2B2.push(h[10]),this.ToffsetWires2B2.push(h[11]);break;case $.八分裂:this.ToffsetWires2B1.push(h[0]),this.ToffsetWires2B1.push(h[1]),this.ToffsetWires2B1.push(h[2]),this.ToffsetWires2B1.push(h[3]),this.ToffsetWires2B1.push(h[4]),this.ToffsetWires2B1.push(h[5]),this.ToffsetWires2B1.push(h[6]),this.ToffsetWires2B1.push(h[7]),this.ToffsetWires2B2.push(h[8]),this.ToffsetWires2B2.push(h[9]),this.ToffsetWires2B2.push(h[10]),this.ToffsetWires2B2.push(h[11]),this.ToffsetWires2B2.push(h[12]),this.ToffsetWires2B2.push(h[13]),this.ToffsetWires2B2.push(h[14]),this.ToffsetWires2B2.push(h[15]);break}break;case nn.C相:if(c.type==Ht.耐张串)if(c.WairFX=="进")switch(this.LineInfo.Wairnum){case $.单分裂:this.offsetWires23.push(h[0]),this.ToffsetWires2C1.push(h[0]);break;case $.双分裂:this.offsetWires23.push(h[0]),this.offsetWires23.push(h[1]),this.ToffsetWires2C1.push(h[2]),this.ToffsetWires2C1.push(h[3]);break;case $.四分裂:this.offsetWires23.push(h[0]),this.offsetWires23.push(h[1]),this.offsetWires23.push(h[2]),this.offsetWires23.push(h[3]),this.ToffsetWires2C1.push(h[4]),this.ToffsetWires2C1.push(h[5]),this.ToffsetWires2C1.push(h[6]),this.ToffsetWires2C1.push(h[7]);break;case $.六分裂:this.offsetWires23.push(h[0]),this.offsetWires23.push(h[1]),this.offsetWires23.push(h[2]),this.offsetWires23.push(h[3]),this.offsetWires23.push(h[4]),this.offsetWires23.push(h[5]),this.ToffsetWires2C1.push(h[6]),this.ToffsetWires2C1.push(h[7]),this.ToffsetWires2C1.push(h[8]),this.ToffsetWires2C1.push(h[9]),this.ToffsetWires2C1.push(h[10]),this.ToffsetWires2C1.push(h[11]);break;case $.八分裂:this.offsetWires23.push(h[0]),this.offsetWires23.push(h[1]),this.offsetWires23.push(h[2]),this.offsetWires23.push(h[3]),this.offsetWires23.push(h[4]),this.offsetWires23.push(h[5]),this.offsetWires23.push(h[6]),this.offsetWires23.push(h[7]),this.ToffsetWires2C1.push(h[8]),this.ToffsetWires2C1.push(h[9]),this.ToffsetWires2C1.push(h[10]),this.ToffsetWires2C1.push(h[11]),this.ToffsetWires2C1.push(h[12]),this.ToffsetWires2C1.push(h[13]),this.ToffsetWires2C1.push(h[14]),this.ToffsetWires2C1.push(h[15]);break}else switch(this.LineInfo.Wairnum){case $.单分裂:const d=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r);this.offsetWires23.push(d),this.ToffsetWires2C2.push(d);break;case $.双分裂:const p=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),m=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r);this.offsetWires23.push(p),this.offsetWires23.push(m),this.ToffsetWires2C2.push(p),this.ToffsetWires2C2.push(m);break;case $.四分裂:const T=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),y=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),w=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),A=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r);this.offsetWires23.push(T),this.offsetWires23.push(y),this.offsetWires23.push(w),this.offsetWires23.push(A),this.ToffsetWires2C2.push(T),this.ToffsetWires2C2.push(y),this.ToffsetWires2C2.push(w),this.ToffsetWires2C2.push(A);break;case $.六分裂:const b=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),E=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),D=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),O=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r),B=Q(i,new u(c.InsulatorPoint[4].X*-1,c.InsulatorPoint[4].Y,c.InsulatorPoint[4].Z),r),z=Q(i,new u(c.InsulatorPoint[5].X*-1,c.InsulatorPoint[5].Y,c.InsulatorPoint[5].Z),r);this.offsetWires23.push(b),this.offsetWires23.push(E),this.offsetWires23.push(D),this.offsetWires23.push(O),this.offsetWires23.push(B),this.offsetWires23.push(z),this.ToffsetWires2C2.push(b),this.ToffsetWires2C2.push(E),this.ToffsetWires2C2.push(D),this.ToffsetWires2C2.push(O),this.ToffsetWires2C2.push(B),this.ToffsetWires2C2.push(z);break;case $.八分裂:const F=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),N=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),k=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),U=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r),j=Q(i,new u(c.InsulatorPoint[4].X*-1,c.InsulatorPoint[4].Y,c.InsulatorPoint[4].Z),r),Y=Q(i,new u(c.InsulatorPoint[5].X*-1,c.InsulatorPoint[5].Y,c.InsulatorPoint[5].Z),r),s=Q(i,new u(c.InsulatorPoint[6].X*-1,c.InsulatorPoint[6].Y,c.InsulatorPoint[6].Z),r),x=Q(i,new u(c.InsulatorPoint[7].X*-1,c.InsulatorPoint[7].Y,c.InsulatorPoint[7].Z),r);this.offsetWires23.push(F),this.offsetWires23.push(N),this.offsetWires23.push(k),this.offsetWires23.push(U),this.offsetWires23.push(j),this.offsetWires23.push(Y),this.offsetWires23.push(s),this.offsetWires23.push(x),this.ToffsetWires2C2.push(F),this.ToffsetWires2C2.push(N),this.ToffsetWires2C2.push(k),this.ToffsetWires2C2.push(U),this.ToffsetWires2C2.push(j),this.ToffsetWires2C2.push(Y),this.ToffsetWires2C2.push(s),this.ToffsetWires2C2.push(x);break}else if(c.type==Ht.跳线串)switch(this.LineInfo.Wairnum){case $.单分裂:this.ToffsetWires2C1.push(h[0]),this.ToffsetWires2C2.push(h[0]);break;case $.双分裂:this.ToffsetWires2C1.push(h[0]),this.ToffsetWires2C1.push(h[1]),this.ToffsetWires2C2.push(h[2]),this.ToffsetWires2C2.push(h[3]);break;case $.四分裂:this.ToffsetWires2C1.push(h[0]),this.ToffsetWires2C1.push(h[1]),this.ToffsetWires2C1.push(h[2]),this.ToffsetWires2C1.push(h[3]),this.ToffsetWires2C2.push(h[4]),this.ToffsetWires2C2.push(h[5]),this.ToffsetWires2C2.push(h[6]),this.ToffsetWires2C2.push(h[7]);break;case $.六分裂:this.ToffsetWires2C1.push(h[0]),this.ToffsetWires2C1.push(h[1]),this.ToffsetWires2C1.push(h[2]),this.ToffsetWires2C1.push(h[3]),this.ToffsetWires2C1.push(h[4]),this.ToffsetWires2C1.push(h[5]),this.ToffsetWires2C2.push(h[6]),this.ToffsetWires2C2.push(h[7]),this.ToffsetWires2C2.push(h[8]),this.ToffsetWires2C2.push(h[9]),this.ToffsetWires2C2.push(h[10]),this.ToffsetWires2C2.push(h[11]);break;case $.八分裂:this.ToffsetWires2C1.push(h[0]),this.ToffsetWires2C1.push(h[1]),this.ToffsetWires2C1.push(h[2]),this.ToffsetWires2C1.push(h[3]),this.ToffsetWires2C1.push(h[4]),this.ToffsetWires2C1.push(h[5]),this.ToffsetWires2C1.push(h[6]),this.ToffsetWires2C1.push(h[7]),this.ToffsetWires2C2.push(h[8]),this.ToffsetWires2C2.push(h[9]),this.ToffsetWires2C2.push(h[10]),this.ToffsetWires2C2.push(h[11]),this.ToffsetWires2C2.push(h[12]),this.ToffsetWires2C2.push(h[13]),this.ToffsetWires2C2.push(h[14]),this.ToffsetWires2C2.push(h[15]);break}break}else switch(c.PhaseSequence){case nn.A相:h.forEach(d=>{this.offsetWires21.push(d)});break;case nn.B相:h.forEach(d=>{this.offsetWires22.push(d)});break;case nn.C相:h.forEach(d=>{this.offsetWires23.push(d)});break}else if(this.LineInfo.towers[o].type==$i.耐张塔)switch(f){case 11:this.offsetWires21.push(h[0]),this.ToffsetWires2A1.push(h[0]);break;case 12:this.ToffsetWires2A1.push(h[0]),this.ToffsetWires2A2.push(h[0]);break;case 13:const d=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r);this.offsetWires21.push(d),this.ToffsetWires2A2.push(d);break;case 14:this.offsetWires22.push(h[0]),this.ToffsetWires2B1.push(h[0]);break;case 15:this.ToffsetWires2B1.push(h[0]),this.ToffsetWires2B2.push(h[0]);break;case 16:const p=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r);this.offsetWires22.push(p),this.ToffsetWires2B2.push(p);break;case 17:this.offsetWires23.push(h[0]),this.ToffsetWires2C1.push(h[0]);break;case 18:this.ToffsetWires2C1.push(h[0]),this.ToffsetWires2C2.push(h[0]);break;case 19:const m=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r);this.offsetWires23.push(m),this.ToffsetWires2C2.push(m);break}else switch(f){case 5:h.forEach(d=>{this.offsetWires21.push(d)});break;case 6:h.forEach(d=>{this.offsetWires22.push(d)});break;case 7:h.forEach(d=>{this.offsetWires23.push(d)});break}break;case cr.地线:if(this.LineInfo.ISPhaseSequence)switch(c.PhaseSequence){case nn.地线1:this.offsetGrouundWires11.push(h[0]);break;case nn.地线2:this.offsetGrouundWires12.push(h[0]);break}else switch(f){case 0:this.offsetGrouundWires11.push(h[0]);break;case 1:this.offsetGrouundWires12.push(h[0]);break}break}f=f+1});debugger;if(this.offsetWires11.length>0&&o>0){const c=[],h=[],d=[],p=[],m=[],T=[],y=[],w=[];switch(this.LineInfo.Wairnum){case $.单分裂:this.offsetWires11.length>=2&&(c.push(this.offsetWires11[t]),c.push(this.offsetWires11[t-1]),this.offsetArcWires1A=W(c),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)));break;case $.双分裂:this.offsetWires11.length>=4&&(c.push(this.offsetWires11[t]),c.push(this.offsetWires11[t-2]),this.offsetArcWires1A=W(c),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires11[t+1]),h.push(this.offsetWires11[t-1]),this.offsetArcWires1A=W(h),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)));break;case $.四分裂:this.offsetWires11.length>=8&&(c.push(this.offsetWires11[t]),c.push(this.offsetWires11[t-4]),this.offsetArcWires1A=W(c),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires11[t+1]),h.push(this.offsetWires11[t-3]),this.offsetArcWires1A=W(h),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires11[t+2]),d.push(this.offsetWires11[t-2]),this.offsetArcWires1A=W(d),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires11[t+3]),p.push(this.offsetWires11[t-1]),this.offsetArcWires1A=W(p),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)));break;case $.六分裂:this.offsetWires11.length>=12&&(c.push(this.offsetWires11[t]),c.push(this.offsetWires11[t-6]),this.offsetArcWires1A=W(c),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires11[t+1]),h.push(this.offsetWires11[t-5]),this.offsetArcWires1A=W(h),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires11[t+2]),d.push(this.offsetWires11[t-4]),this.offsetArcWires1A=W(d),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires11[t+3]),p.push(this.offsetWires11[t-3]),this.offsetArcWires1A=W(p),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),m.push(this.offsetWires11[t+4]),m.push(this.offsetWires11[t-2]),this.offsetArcWires1A=W(m),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A5"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),T.push(this.offsetWires11[t+5]),T.push(this.offsetWires11[t-1]),this.offsetArcWires1A=W(T),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A6"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)));break;case $.八分裂:this.offsetWires11.length>=16&&(c.push(this.offsetWires11[t]),c.push(this.offsetWires11[t-8]),this.offsetArcWires1A=W(c),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires11[t+1]),h.push(this.offsetWires11[t-7]),this.offsetArcWires1A=W(h),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires11[t+2]),d.push(this.offsetWires11[t-6]),this.offsetArcWires1A=W(d),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires11[t+3]),p.push(this.offsetWires11[t-5]),this.offsetArcWires1A=W(p),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),m.push(this.offsetWires11[t+4]),m.push(this.offsetWires11[t-4]),this.offsetArcWires1A=W(m),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A5"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),T.push(this.offsetWires11[t+5]),T.push(this.offsetWires11[t-3]),this.offsetArcWires1A=W(T),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A6"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),y.push(this.offsetWires11[t+6]),y.push(this.offsetWires11[t-2]),this.offsetArcWires1A=W(y),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A7"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),w.push(this.offsetWires11[t+7]),w.push(this.offsetWires11[t-1]),this.offsetArcWires1A=W(w),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A8"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)));break}}if(this.offsetWires12.length>0&&o>0){const c=[],h=[],d=[],p=[],m=[],T=[],y=[],w=[];switch(this.LineInfo.Wairnum){case $.单分裂:c.push(this.offsetWires12[t]),c.push(this.offsetWires12[t-1]),this.offsetArcWires1B=W(c),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.双分裂:c.push(this.offsetWires12[t]),c.push(this.offsetWires12[t-2]),this.offsetArcWires1B=W(c),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires12[t+1]),h.push(this.offsetWires12[t-1]),this.offsetArcWires1B=W(h),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.四分裂:c.push(this.offsetWires12[t]),c.push(this.offsetWires12[t-4]),this.offsetArcWires1B=W(c),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires12[t+1]),h.push(this.offsetWires12[t-3]),this.offsetArcWires1B=W(h),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires12[t+2]),d.push(this.offsetWires12[t-2]),this.offsetArcWires1B=W(d),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires12[t+3]),p.push(this.offsetWires12[t-1]),this.offsetArcWires1B=W(p),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.六分裂:c.push(this.offsetWires12[t]),c.push(this.offsetWires12[t-6]),this.offsetArcWires1B=W(c),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires12[t+1]),h.push(this.offsetWires12[t-5]),this.offsetArcWires1B=W(h),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires12[t+2]),d.push(this.offsetWires12[t-4]),this.offsetArcWires1B=W(d),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires12[t+3]),p.push(this.offsetWires12[t-3]),this.offsetArcWires1B=W(p),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),m.push(this.offsetWires12[t+4]),m.push(this.offsetWires12[t-2]),this.offsetArcWires1B=W(m),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B5"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),T.push(this.offsetWires12[t+5]),T.push(this.offsetWires12[t-1]),this.offsetArcWires1B=W(T),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B6"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.八分裂:c.push(this.offsetWires12[t]),c.push(this.offsetWires12[t-8]),this.offsetArcWires1B=W(c),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires12[t+1]),h.push(this.offsetWires12[t-7]),this.offsetArcWires1B=W(h),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires12[t+2]),d.push(this.offsetWires12[t-6]),this.offsetArcWires1B=W(d),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires12[t+3]),p.push(this.offsetWires12[t-5]),this.offsetArcWires1B=W(p),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),m.push(this.offsetWires12[t+4]),m.push(this.offsetWires12[t-4]),this.offsetArcWires1B=W(m),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B5"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),T.push(this.offsetWires12[t+5]),T.push(this.offsetWires12[t-3]),this.offsetArcWires1B=W(T),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B6"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),y.push(this.offsetWires12[t+6]),y.push(this.offsetWires12[t-2]),this.offsetArcWires1B=W(y),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B7"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),w.push(this.offsetWires12[t+7]),w.push(this.offsetWires12[t-1]),this.offsetArcWires1B=W(w),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B8"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break}}if(this.offsetWires13.length>0&&o>0){const c=[],h=[],d=[],p=[],m=[],T=[],y=[],w=[];switch(this.LineInfo.Wairnum){case $.单分裂:c.push(this.offsetWires13[t]),c.push(this.offsetWires13[t-1]),this.offsetArcWires1C=W(c),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.双分裂:c.push(this.offsetWires13[t]),c.push(this.offsetWires13[t-2]),this.offsetArcWires1C=W(c),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires13[t+1]),h.push(this.offsetWires13[t-1]),this.offsetArcWires1C=W(h),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.四分裂:c.push(this.offsetWires13[t]),c.push(this.offsetWires13[t-4]),this.offsetArcWires1C=W(c),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires13[t+1]),h.push(this.offsetWires13[t-3]),this.offsetArcWires1C=W(h),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires13[t+2]),d.push(this.offsetWires13[t-2]),this.offsetArcWires1C=W(d),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires13[t+3]),p.push(this.offsetWires13[t-1]),this.offsetArcWires1C=W(p),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.六分裂:c.push(this.offsetWires13[t]),c.push(this.offsetWires13[t-6]),this.offsetArcWires1C=W(c),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires13[t+1]),h.push(this.offsetWires13[t-5]),this.offsetArcWires1C=W(h),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires13[t+2]),d.push(this.offsetWires13[t-4]),this.offsetArcWires1C=W(d),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires13[t+3]),p.push(this.offsetWires13[t-3]),this.offsetArcWires1C=W(p),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),m.push(this.offsetWires13[t+4]),m.push(this.offsetWires13[t-2]),this.offsetArcWires1C=W(m),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C5"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),T.push(this.offsetWires13[t+5]),T.push(this.offsetWires13[t-1]),this.offsetArcWires1C=W(T),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C6"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.八分裂:c.push(this.offsetWires13[t]),c.push(this.offsetWires13[t-8]),this.offsetArcWires1C=W(c),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires13[t+1]),h.push(this.offsetWires13[t-7]),this.offsetArcWires1C=W(h),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires13[t+2]),d.push(this.offsetWires13[t-6]),this.offsetArcWires1C=W(d),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires13[t+3]),p.push(this.offsetWires13[t-5]),this.offsetArcWires1C=W(p),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),m.push(this.offsetWires13[t+4]),m.push(this.offsetWires13[t-4]),this.offsetArcWires1C=W(m),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C5"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),T.push(this.offsetWires13[t+5]),T.push(this.offsetWires13[t-3]),this.offsetArcWires1C=W(T),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C6"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),y.push(this.offsetWires13[t+6]),y.push(this.offsetWires13[t-2]),this.offsetArcWires1C=W(y),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C7"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),w.push(this.offsetWires13[t+7]),w.push(this.offsetWires13[t-1]),this.offsetArcWires1C=W(w),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C8"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break}}if(this.offsetWires21.length>0&&o>0){const c=[],h=[],d=[],p=[],m=[],T=[],y=[],w=[];switch(this.LineInfo.Wairnum){case $.单分裂:c.push(this.offsetWires21[t]),c.push(this.offsetWires21[t-1]),this.offsetArcWires2A=W(c),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.双分裂:c.push(this.offsetWires21[t]),c.push(this.offsetWires21[t-2]),this.offsetArcWires2A=W(c),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires21[t+1]),h.push(this.offsetWires21[t-1]),this.offsetArcWires2A=W(h),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.四分裂:c.push(this.offsetWires21[t]),c.push(this.offsetWires21[t-4]),this.offsetArcWires2A=W(c),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires21[t+1]),h.push(this.offsetWires21[t-3]),this.offsetArcWires2A=W(h),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires21[t+2]),d.push(this.offsetWires21[t-2]),this.offsetArcWires2A=W(d),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires21[t+3]),p.push(this.offsetWires21[t-1]),this.offsetArcWires2A=W(p),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.六分裂:c.push(this.offsetWires21[t]),c.push(this.offsetWires21[t-6]),this.offsetArcWires2A=W(c),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires21[t+1]),h.push(this.offsetWires21[t-5]),this.offsetArcWires2A=W(h),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires21[t+2]),d.push(this.offsetWires21[t-4]),this.offsetArcWires2A=W(d),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires21[t+3]),p.push(this.offsetWires21[t-3]),this.offsetArcWires2A=W(p),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),m.push(this.offsetWires21[t+4]),m.push(this.offsetWires21[t-2]),this.offsetArcWires2A=W(m),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A5"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),T.push(this.offsetWires21[t+5]),T.push(this.offsetWires21[t-1]),this.offsetArcWires2A=W(T),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A6"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.八分裂:c.push(this.offsetWires21[t]),c.push(this.offsetWires21[t-8]),this.offsetArcWires2A=W(c),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires21[t+1]),h.push(this.offsetWires21[t-7]),this.offsetArcWires2A=W(h),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires21[t+2]),d.push(this.offsetWires21[t-6]),this.offsetArcWires2A=W(d),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires21[t+3]),p.push(this.offsetWires21[t-5]),this.offsetArcWires2A=W(p),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),m.push(this.offsetWires21[t+4]),m.push(this.offsetWires21[t-4]),this.offsetArcWires2A=W(m),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A5"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),T.push(this.offsetWires21[t+5]),T.push(this.offsetWires21[t-3]),this.offsetArcWires2A=W(T),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A6"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),y.push(this.offsetWires21[t+6]),y.push(this.offsetWires21[t-2]),this.offsetArcWires2A=W(y),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A7"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),w.push(this.offsetWires21[t+7]),w.push(this.offsetWires21[t-1]),this.offsetArcWires2A=W(w),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A8"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break}}if(this.offsetWires22.length>0&&o>0){const c=[],h=[],d=[],p=[],m=[],T=[],y=[],w=[];switch(this.LineInfo.Wairnum){case $.单分裂:c.push(this.offsetWires22[t]),c.push(this.offsetWires22[t-1]),this.offsetArcWires2B=W(c),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.双分裂:c.push(this.offsetWires22[t]),c.push(this.offsetWires22[t-2]),this.offsetArcWires2B=W(c),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires22[t+1]),h.push(this.offsetWires22[t-1]),this.offsetArcWires2B=W(h),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.四分裂:c.push(this.offsetWires22[t]),c.push(this.offsetWires22[t-4]),this.offsetArcWires2B=W(c),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires22[t+1]),h.push(this.offsetWires22[t-3]),this.offsetArcWires2B=W(h),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires22[t+2]),d.push(this.offsetWires22[t-2]),this.offsetArcWires2B=W(d),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires22[t+3]),p.push(this.offsetWires22[t-1]),this.offsetArcWires2B=W(p),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.六分裂:c.push(this.offsetWires22[t]),c.push(this.offsetWires22[t-6]),this.offsetArcWires2B=W(c),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires22[t+1]),h.push(this.offsetWires22[t-5]),this.offsetArcWires2B=W(h),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires22[t+2]),d.push(this.offsetWires22[t-4]),this.offsetArcWires2B=W(d),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires22[t+3]),p.push(this.offsetWires22[t-3]),this.offsetArcWires2B=W(p),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),m.push(this.offsetWires22[t+4]),m.push(this.offsetWires22[t-2]),this.offsetArcWires2B=W(m),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B5"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),T.push(this.offsetWires22[t+5]),T.push(this.offsetWires22[t-1]),this.offsetArcWires2B=W(T),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B6"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.八分裂:c.push(this.offsetWires22[t]),c.push(this.offsetWires22[t-8]),this.offsetArcWires2B=W(c),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires22[t+1]),h.push(this.offsetWires22[t-7]),this.offsetArcWires2B=W(h),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires22[t+2]),d.push(this.offsetWires22[t-6]),this.offsetArcWires2B=W(d),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires22[t+3]),p.push(this.offsetWires22[t-5]),this.offsetArcWires2B=W(p),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),m.push(this.offsetWires22[t+4]),m.push(this.offsetWires22[t-4]),this.offsetArcWires2B=W(m),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B5"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),T.push(this.offsetWires22[t+5]),T.push(this.offsetWires22[t-3]),this.offsetArcWires2B=W(T),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B6"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),y.push(this.offsetWires22[t+6]),y.push(this.offsetWires22[t-2]),this.offsetArcWires2B=W(y),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B7"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),w.push(this.offsetWires22[t+7]),w.push(this.offsetWires22[t-1]),this.offsetArcWires2B=W(w),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B8"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break}}if(this.offsetWires23.length>0&&o>0){const c=[],h=[],d=[],p=[],m=[],T=[],y=[],w=[];switch(this.LineInfo.Wairnum){case $.单分裂:c.push(this.offsetWires23[t]),c.push(this.offsetWires23[t-1]),this.offsetArcWires2C=W(c),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.双分裂:c.push(this.offsetWires23[t]),c.push(this.offsetWires23[t-2]),this.offsetArcWires2C=W(c),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires23[t+1]),h.push(this.offsetWires23[t-1]),this.offsetArcWires2C=W(h),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.四分裂:c.push(this.offsetWires23[t]),c.push(this.offsetWires23[t-4]),this.offsetArcWires2C=W(c),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires23[t+1]),h.push(this.offsetWires23[t-3]),this.offsetArcWires2C=W(h),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires23[t+2]),d.push(this.offsetWires23[t-2]),this.offsetArcWires2C=W(d),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires23[t+3]),p.push(this.offsetWires23[t-1]),this.offsetArcWires2C=W(p),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.六分裂:c.push(this.offsetWires23[t]),c.push(this.offsetWires23[t-6]),this.offsetArcWires2C=W(c),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires23[t+1]),h.push(this.offsetWires23[t-5]),this.offsetArcWires2C=W(h),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires23[t+2]),d.push(this.offsetWires23[t-4]),this.offsetArcWires2C=W(d),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires23[t+3]),p.push(this.offsetWires23[t-3]),this.offsetArcWires2C=W(p),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),m.push(this.offsetWires23[t+4]),m.push(this.offsetWires23[t-2]),this.offsetArcWires2C=W(m),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C5"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),T.push(this.offsetWires23[t+5]),T.push(this.offsetWires23[t-1]),this.offsetArcWires2C=W(T),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C6"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.八分裂:c.push(this.offsetWires23[t]),c.push(this.offsetWires23[t-8]),this.offsetArcWires2C=W(c),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires23[t+1]),h.push(this.offsetWires23[t-7]),this.offsetArcWires2C=W(h),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires23[t+2]),d.push(this.offsetWires23[t-6]),this.offsetArcWires2C=W(d),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires23[t+3]),p.push(this.offsetWires23[t-5]),this.offsetArcWires2C=W(p),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),m.push(this.offsetWires23[t+4]),m.push(this.offsetWires23[t-4]),this.offsetArcWires2C=W(m),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C5"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),T.push(this.offsetWires23[t+5]),T.push(this.offsetWires23[t-3]),this.offsetArcWires2C=W(T),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C6"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),y.push(this.offsetWires23[t+6]),y.push(this.offsetWires23[t-2]),this.offsetArcWires2C=W(y),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C7"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),w.push(this.offsetWires23[t+7]),w.push(this.offsetWires23[t-1]),this.offsetArcWires2C=W(w),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C8"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break}}if(this.offsetGrouundWires11.length>1){const c=[];c.push(this.offsetGrouundWires11[o]),c.push(this.offsetGrouundWires11[o-1]);const h=[];h.push(this.offsetGrouundWires12[o]),h.push(this.offsetGrouundWires12[o-1]),this.offsetGrouundWires1=W(c,2),this.offsetGrouundWires2=W(h,2),this.entityCollection2.add(v(this.offsetGrouundWires1,"地线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireD1Color)),this.entityCollection2.add(v(this.offsetGrouundWires2,"地线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireD2Color))}if(this.LineInfo.towers[o].type==$i.耐张塔){switch(this.LineInfo.Wairnum){case $.单分裂:t=t+2,n=n+2;break;case $.双分裂:t=t+4,n=n+4;break;case $.四分裂:t=t+8,n=n+8;break;case $.六分裂:t=t+12,n=n+12;break;case $.八分裂:t=t+16,n=n+16;break}if(this.ToffsetWires1A1.length>1&&this.ToffsetWires1A2.length>1){const c=[],h=[],d=[],p=[],m=[],T=[],y=[],w=[],A=[],b=[],E=[],D=[],O=[],B=[],z=[],F=[];switch(this.LineInfo.Wairnum){case $.单分裂:this.ToffsetWires1A1.length>=2&&(c.push(this.ToffsetWires1A1[n-2]),c.push(this.ToffsetWires1A1[n-1]),this.ToffsetArcWires1A=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1A2.length>=2&&(A.push(this.ToffsetWires1A2[n-2]),A.push(this.ToffsetWires1A2[n-1]),this.ToffsetArcWires2A=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.双分裂:this.ToffsetWires1A1.length>=4&&(c.push(this.ToffsetWires1A1[n-4]),c.push(this.ToffsetWires1A1[n-2]),this.ToffsetArcWires1A=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires1A1[n-3]),h.push(this.ToffsetWires1A1[n-1]),this.ToffsetArcWires1A=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1A2.length>=4&&(A.push(this.ToffsetWires1A2[n-4]),A.push(this.ToffsetWires1A2[n-2]),this.ToffsetArcWires2A=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires1A2[n-3]),b.push(this.ToffsetWires1A2[n-1]),this.ToffsetArcWires2A=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.四分裂:this.ToffsetWires1A1.length>=8&&(c.push(this.ToffsetWires1A1[n-8]),c.push(this.ToffsetWires1A1[n-4]),this.ToffsetArcWires1A=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires1A1[n-7]),h.push(this.ToffsetWires1A1[n-3]),this.ToffsetArcWires1A=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires1A1[n-6]),d.push(this.ToffsetWires1A1[n-2]),this.ToffsetArcWires1A=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires1A1[n-5]),p.push(this.ToffsetWires1A1[n-1]),this.ToffsetArcWires1A=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1A2.length>=8&&(A.push(this.ToffsetWires1A2[n-8]),A.push(this.ToffsetWires1A2[n-4]),this.ToffsetArcWires2A=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires1A2[n-7]),b.push(this.ToffsetWires1A2[n-3]),this.ToffsetArcWires2A=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires1A2[n-6]),E.push(this.ToffsetWires1A2[n-2]),this.ToffsetArcWires2A=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires1A2[n-5]),D.push(this.ToffsetWires1A2[n-1]),this.ToffsetArcWires2A=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.六分裂:this.ToffsetWires1A1.length>=12&&(c.push(this.ToffsetWires1A1[n-12]),c.push(this.ToffsetWires1A1[n-6]),this.ToffsetArcWires1A=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires1A1[n-11]),h.push(this.ToffsetWires1A1[n-5]),this.ToffsetArcWires1A=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires1A1[n-10]),d.push(this.ToffsetWires1A1[n-4]),this.ToffsetArcWires1A=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires1A1[n-9]),p.push(this.ToffsetWires1A1[n-3]),this.ToffsetArcWires1A=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires1A1[n-8]),m.push(this.ToffsetWires1A1[n-2]),this.ToffsetArcWires1A=W(m,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),T.push(this.ToffsetWires1A1[n-7]),T.push(this.ToffsetWires1A1[n-1]),this.ToffsetArcWires1A=W(T,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1A2.length>=12&&(A.push(this.ToffsetWires1A2[n-12]),A.push(this.ToffsetWires1A2[n-6]),this.ToffsetArcWires2A=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires1A2[n-11]),b.push(this.ToffsetWires1A2[n-5]),this.ToffsetArcWires2A=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires1A2[n-10]),E.push(this.ToffsetWires1A2[n-4]),this.ToffsetArcWires2A=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires1A2[n-9]),D.push(this.ToffsetWires1A2[n-3]),this.ToffsetArcWires2A=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),O.push(this.ToffsetWires1A2[n-8]),O.push(this.ToffsetWires1A2[n-2]),this.ToffsetArcWires2A=W(O,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1A2[n-7]),B.push(this.ToffsetWires1A2[n-1]),this.ToffsetArcWires2A=W(B,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.八分裂:this.ToffsetWires1A1.length>=16&&(c.push(this.ToffsetWires1A1[n-16]),c.push(this.ToffsetWires1A1[n-8]),this.ToffsetArcWires1A=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires1A1[n-15]),h.push(this.ToffsetWires1A1[n-7]),this.ToffsetArcWires1A=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires1A1[n-14]),d.push(this.ToffsetWires1A1[n-6]),this.ToffsetArcWires1A=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires1A1[n-13]),p.push(this.ToffsetWires1A1[n-5]),this.ToffsetArcWires1A=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires1A1[n-12]),m.push(this.ToffsetWires1A1[n-4]),this.ToffsetArcWires1A=W(m,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),T.push(this.ToffsetWires1A1[n-11]),T.push(this.ToffsetWires1A1[n-3]),this.ToffsetArcWires1A=W(T,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1A1[n-10]),y.push(this.ToffsetWires1A1[n-2]),this.ToffsetArcWires1A=W(y,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线7"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),w.push(this.ToffsetWires1A1[n-9]),w.push(this.ToffsetWires1A1[n-1]),this.ToffsetArcWires1A=W(w,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线8"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1A2.length>=16&&(A.push(this.ToffsetWires1A2[n-16]),A.push(this.ToffsetWires1A2[n-8]),this.ToffsetArcWires2A=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires1A2[n-15]),b.push(this.ToffsetWires1A2[n-7]),this.ToffsetArcWires2A=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires1A2[n-14]),E.push(this.ToffsetWires1A2[n-6]),this.ToffsetArcWires2A=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires1A2[n-13]),D.push(this.ToffsetWires1A2[n-5]),this.ToffsetArcWires2A=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),O.push(this.ToffsetWires1A2[n-12]),O.push(this.ToffsetWires1A2[n-4]),this.ToffsetArcWires2A=W(O,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1A2[n-11]),B.push(this.ToffsetWires1A2[n-3]),this.ToffsetArcWires2A=W(B,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),z.push(this.ToffsetWires1A2[n-10]),z.push(this.ToffsetWires1A2[n-2]),this.ToffsetArcWires2A=W(z,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线7"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),F.push(this.ToffsetWires1A2[n-9]),F.push(this.ToffsetWires1A2[n-1]),this.ToffsetArcWires2A=W(F,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线8"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break}}if(this.ToffsetWires1B1.length>1&&this.ToffsetWires1B2.length>1){const c=[],h=[],d=[],p=[],m=[],T=[],y=[],w=[],A=[],b=[],E=[],D=[],O=[],B=[],z=[],F=[];switch(this.LineInfo.Wairnum){case $.单分裂:this.ToffsetWires1B1.length>=2&&(c.push(this.ToffsetWires1B1[n-2]),c.push(this.ToffsetWires1B1[n-1]),this.ToffsetArcWires1B=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1B2.length>=2&&(A.push(this.ToffsetWires1B2[n-2]),A.push(this.ToffsetWires1B2[n-1]),this.ToffsetArcWires2B=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.双分裂:this.ToffsetWires1B1.length>=4&&(c.push(this.ToffsetWires1B1[n-4]),c.push(this.ToffsetWires1B1[n-2]),this.ToffsetArcWires1B=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires1B1[n-3]),h.push(this.ToffsetWires1B1[n-1]),this.ToffsetArcWires1B=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1B2.length>=4&&(A.push(this.ToffsetWires1B2[n-4]),A.push(this.ToffsetWires1B2[n-2]),this.ToffsetArcWires2B=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires1B2[n-3]),b.push(this.ToffsetWires1B2[n-1]),this.ToffsetArcWires2B=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.四分裂:this.ToffsetWires1B1.length>=8&&(c.push(this.ToffsetWires1B1[n-8]),c.push(this.ToffsetWires1B1[n-4]),this.ToffsetArcWires1B=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires1B1[n-7]),h.push(this.ToffsetWires1B1[n-3]),this.ToffsetArcWires1B=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires1B1[n-6]),d.push(this.ToffsetWires1B1[n-2]),this.ToffsetArcWires1B=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires1B1[n-5]),p.push(this.ToffsetWires1B1[n-1]),this.ToffsetArcWires1B=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1B2.length>=8&&(A.push(this.ToffsetWires1B2[n-8]),A.push(this.ToffsetWires1B2[n-4]),this.ToffsetArcWires2B=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires1B2[n-7]),b.push(this.ToffsetWires1B2[n-3]),this.ToffsetArcWires2B=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires1B2[n-6]),E.push(this.ToffsetWires1B2[n-2]),this.ToffsetArcWires2B=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires1B2[n-5]),D.push(this.ToffsetWires1B2[n-1]),this.ToffsetArcWires2B=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.六分裂:this.ToffsetWires1B1.length>=12&&(c.push(this.ToffsetWires1B1[n-12]),c.push(this.ToffsetWires1B1[n-6]),this.ToffsetArcWires1B=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires1B1[n-11]),h.push(this.ToffsetWires1B1[n-5]),this.ToffsetArcWires1B=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires1B1[n-10]),d.push(this.ToffsetWires1B1[n-4]),this.ToffsetArcWires1B=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires1B1[n-9]),p.push(this.ToffsetWires1B1[n-3]),this.ToffsetArcWires1B=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires1B1[n-8]),m.push(this.ToffsetWires1B1[n-2]),this.ToffsetArcWires1B=W(m,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),T.push(this.ToffsetWires1B1[n-7]),T.push(this.ToffsetWires1B1[n-1]),this.ToffsetArcWires1B=W(T,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1B2.length>=12&&(A.push(this.ToffsetWires1B2[n-12]),A.push(this.ToffsetWires1B2[n-6]),this.ToffsetArcWires2B=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires1B2[n-11]),b.push(this.ToffsetWires1B2[n-5]),this.ToffsetArcWires2B=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires1B2[n-10]),E.push(this.ToffsetWires1B2[n-4]),this.ToffsetArcWires2B=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires1B2[n-9]),D.push(this.ToffsetWires1B2[n-3]),this.ToffsetArcWires2B=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),O.push(this.ToffsetWires1B2[n-8]),O.push(this.ToffsetWires1B2[n-2]),this.ToffsetArcWires2B=W(O,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1B2[n-7]),B.push(this.ToffsetWires1B2[n-1]),this.ToffsetArcWires2B=W(B,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.八分裂:this.ToffsetWires1B1.length>=16&&(c.push(this.ToffsetWires1B1[n-16]),c.push(this.ToffsetWires1B1[n-8]),this.ToffsetArcWires1B=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires1B1[n-15]),h.push(this.ToffsetWires1B1[n-7]),this.ToffsetArcWires1B=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires1B1[n-14]),d.push(this.ToffsetWires1B1[n-6]),this.ToffsetArcWires1B=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires1B1[n-13]),p.push(this.ToffsetWires1B1[n-5]),this.ToffsetArcWires1B=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires1B1[n-12]),m.push(this.ToffsetWires1B1[n-4]),this.ToffsetArcWires1B=W(m,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),T.push(this.ToffsetWires1B1[n-11]),T.push(this.ToffsetWires1B1[n-3]),this.ToffsetArcWires1B=W(T,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1B1[n-10]),y.push(this.ToffsetWires1B1[n-2]),this.ToffsetArcWires1B=W(y,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线7"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),w.push(this.ToffsetWires1B1[n-9]),w.push(this.ToffsetWires1B1[n-1]),this.ToffsetArcWires1B=W(w,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线8"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1B2.length>=16&&(A.push(this.ToffsetWires1B2[n-16]),A.push(this.ToffsetWires1B2[n-8]),this.ToffsetArcWires2B=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires1B2[n-15]),b.push(this.ToffsetWires1B2[n-7]),this.ToffsetArcWires2B=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires1B2[n-14]),E.push(this.ToffsetWires1B2[n-6]),this.ToffsetArcWires2B=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires1B2[n-13]),D.push(this.ToffsetWires1B2[n-5]),this.ToffsetArcWires2B=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),O.push(this.ToffsetWires1B2[n-12]),O.push(this.ToffsetWires1B2[n-4]),this.ToffsetArcWires2B=W(O,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1B2[n-11]),B.push(this.ToffsetWires1B2[n-3]),this.ToffsetArcWires2B=W(B,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),z.push(this.ToffsetWires1B2[n-10]),z.push(this.ToffsetWires1B2[n-2]),this.ToffsetArcWires2B=W(z,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线7"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),F.push(this.ToffsetWires1B2[n-9]),F.push(this.ToffsetWires1B2[n-1]),this.ToffsetArcWires2B=W(F,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线8"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break}}debugger;if(this.ToffsetWires1C1.length>1&&this.ToffsetWires1C2.length>1){const c=[],h=[],d=[],p=[],m=[],T=[],y=[],w=[],A=[],b=[],E=[],D=[],O=[],B=[],z=[],F=[];switch(this.LineInfo.Wairnum){case $.单分裂:this.ToffsetWires1C1.length>=2&&(c.push(this.ToffsetWires1C1[n-2]),c.push(this.ToffsetWires1C1[n-1]),this.ToffsetArcWires1C=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1C2.length>=2&&(A.push(this.ToffsetWires1C2[n-2]),A.push(this.ToffsetWires1C2[n-1]),this.ToffsetArcWires2C=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.双分裂:this.ToffsetWires1C1.length>=4&&(c.push(this.ToffsetWires1C1[n-4]),c.push(this.ToffsetWires1C1[n-2]),this.ToffsetArcWires1C=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires1C1[n-3]),h.push(this.ToffsetWires1C1[n-1]),this.ToffsetArcWires1C=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1C2.length>=4&&(A.push(this.ToffsetWires1C2[n-4]),A.push(this.ToffsetWires1C2[n-2]),this.ToffsetArcWires2C=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires1C2[n-3]),b.push(this.ToffsetWires1C2[n-1]),this.ToffsetArcWires2C=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.四分裂:this.ToffsetWires1C1.length>=8&&(c.push(this.ToffsetWires1C1[n-8]),c.push(this.ToffsetWires1C1[n-4]),this.ToffsetArcWires1C=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires1C1[n-7]),h.push(this.ToffsetWires1C1[n-3]),this.ToffsetArcWires1C=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires1C1[n-6]),d.push(this.ToffsetWires1C1[n-2]),this.ToffsetArcWires1C=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires1C1[n-5]),p.push(this.ToffsetWires1C1[n-1]),this.ToffsetArcWires1C=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1C2.length>=8&&(A.push(this.ToffsetWires1C2[n-8]),A.push(this.ToffsetWires1C2[n-4]),this.ToffsetArcWires2C=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires1C2[n-7]),b.push(this.ToffsetWires1C2[n-3]),this.ToffsetArcWires2C=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires1C2[n-6]),E.push(this.ToffsetWires1C2[n-2]),this.ToffsetArcWires2C=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires1C2[n-5]),D.push(this.ToffsetWires1C2[n-1]),this.ToffsetArcWires2C=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.六分裂:this.ToffsetWires1C1.length>=12&&(c.push(this.ToffsetWires1C1[n-12]),c.push(this.ToffsetWires1C1[n-6]),this.ToffsetArcWires1C=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires1C1[n-11]),h.push(this.ToffsetWires1C1[n-5]),this.ToffsetArcWires1C=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires1C1[n-10]),d.push(this.ToffsetWires1C1[n-4]),this.ToffsetArcWires1C=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires1C1[n-9]),p.push(this.ToffsetWires1C1[n-3]),this.ToffsetArcWires1C=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires1C1[n-8]),m.push(this.ToffsetWires1C1[n-2]),this.ToffsetArcWires1C=W(m,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),T.push(this.ToffsetWires1C1[n-7]),T.push(this.ToffsetWires1C1[n-1]),this.ToffsetArcWires1C=W(T,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1C2.length>=12&&(A.push(this.ToffsetWires1C2[n-12]),A.push(this.ToffsetWires1C2[n-6]),this.ToffsetArcWires2C=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires1C2[n-11]),b.push(this.ToffsetWires1C2[n-5]),this.ToffsetArcWires2C=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires1C2[n-10]),E.push(this.ToffsetWires1C2[n-4]),this.ToffsetArcWires2C=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires1C2[n-9]),D.push(this.ToffsetWires1C2[n-3]),this.ToffsetArcWires2C=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),O.push(this.ToffsetWires1C2[n-8]),O.push(this.ToffsetWires1C2[n-2]),this.ToffsetArcWires2C=W(O,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1C2[n-7]),B.push(this.ToffsetWires1C2[n-1]),this.ToffsetArcWires2C=W(B,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.八分裂:this.ToffsetWires1C1.length>=16&&(c.push(this.ToffsetWires1C1[n-16]),c.push(this.ToffsetWires1C1[n-8]),this.ToffsetArcWires1C=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires1C1[n-15]),h.push(this.ToffsetWires1C1[n-7]),this.ToffsetArcWires1C=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires1C1[n-14]),d.push(this.ToffsetWires1C1[n-6]),this.ToffsetArcWires1C=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires1C1[n-13]),p.push(this.ToffsetWires1C1[n-5]),this.ToffsetArcWires1C=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires1C1[n-12]),m.push(this.ToffsetWires1C1[n-4]),this.ToffsetArcWires1C=W(m,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),T.push(this.ToffsetWires1C1[n-11]),T.push(this.ToffsetWires1C1[n-3]),this.ToffsetArcWires1C=W(T,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1C1[n-10]),y.push(this.ToffsetWires1C1[n-2]),this.ToffsetArcWires1C=W(y,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线7"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),w.push(this.ToffsetWires1C1[n-9]),w.push(this.ToffsetWires1C1[n-1]),this.ToffsetArcWires1C=W(w,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线8"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1C2.length>=16&&(A.push(this.ToffsetWires1C2[n-16]),A.push(this.ToffsetWires1C2[n-8]),this.ToffsetArcWires2C=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires1C2[n-15]),b.push(this.ToffsetWires1C2[n-7]),this.ToffsetArcWires2C=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires1C2[n-14]),E.push(this.ToffsetWires1C2[n-6]),this.ToffsetArcWires2C=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires1C2[n-13]),D.push(this.ToffsetWires1C2[n-5]),this.ToffsetArcWires2C=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),O.push(this.ToffsetWires1C2[n-12]),O.push(this.ToffsetWires1C2[n-4]),this.ToffsetArcWires2C=W(O,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1C2[n-11]),B.push(this.ToffsetWires1C2[n-3]),this.ToffsetArcWires2C=W(B,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),z.push(this.ToffsetWires1C2[n-10]),z.push(this.ToffsetWires1C2[n-2]),this.ToffsetArcWires2C=W(z,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线7"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),F.push(this.ToffsetWires1C2[n-9]),F.push(this.ToffsetWires1C2[n-1]),this.ToffsetArcWires2C=W(F,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线8"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break}}if(this.ToffsetWires2A1.length>1&&this.ToffsetWires2A2.length>1){const c=[],h=[],d=[],p=[],m=[],T=[],y=[],w=[],A=[],b=[],E=[],D=[],O=[],B=[],z=[],F=[];switch(this.LineInfo.Wairnum){case $.单分裂:this.ToffsetWires2A1.length>=2&&(c.push(this.ToffsetWires2A1[n-2]),c.push(this.ToffsetWires2A1[n-1]),this.ToffsetArcWires1A2=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2A2.length>=2&&(A.push(this.ToffsetWires2A2[n-2]),A.push(this.ToffsetWires2A2[n-1]),this.ToffsetArcWires2A2=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.双分裂:this.ToffsetWires2A1.length>=4&&(c.push(this.ToffsetWires2A1[n-4]),c.push(this.ToffsetWires2A1[n-2]),this.ToffsetArcWires1A2=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires2A1[n-3]),h.push(this.ToffsetWires2A1[n-1]),this.ToffsetArcWires1A2=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2A2.length>=4&&(A.push(this.ToffsetWires2A2[n-4]),A.push(this.ToffsetWires2A2[n-2]),this.ToffsetArcWires2A2=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires2A2[n-3]),b.push(this.ToffsetWires2A2[n-1]),this.ToffsetArcWires2A2=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.四分裂:this.ToffsetWires2A1.length>=8&&(c.push(this.ToffsetWires2A1[n-8]),c.push(this.ToffsetWires2A1[n-4]),this.ToffsetArcWires1A2=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires2A1[n-7]),h.push(this.ToffsetWires2A1[n-3]),this.ToffsetArcWires1A2=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires2A1[n-6]),d.push(this.ToffsetWires2A1[n-2]),this.ToffsetArcWires1A2=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires2A1[n-5]),p.push(this.ToffsetWires2A1[n-1]),this.ToffsetArcWires1A2=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2A2.length>=8&&(A.push(this.ToffsetWires2A2[n-8]),A.push(this.ToffsetWires2A2[n-4]),this.ToffsetArcWires2A2=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires2A2[n-7]),b.push(this.ToffsetWires2A2[n-3]),this.ToffsetArcWires2A2=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires2A2[n-6]),E.push(this.ToffsetWires2A2[n-2]),this.ToffsetArcWires2A2=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires2A2[n-5]),D.push(this.ToffsetWires2A2[n-1]),this.ToffsetArcWires2A2=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.六分裂:this.ToffsetWires2A1.length>=12&&(c.push(this.ToffsetWires2A1[n-12]),c.push(this.ToffsetWires2A1[n-6]),this.ToffsetArcWires1A2=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires2A1[n-11]),h.push(this.ToffsetWires2A1[n-5]),this.ToffsetArcWires1A2=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires2A1[n-10]),d.push(this.ToffsetWires2A1[n-4]),this.ToffsetArcWires1A2=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires2A1[n-9]),p.push(this.ToffsetWires2A1[n-3]),this.ToffsetArcWires1A2=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires2A1[n-8]),m.push(this.ToffsetWires2A1[n-2]),this.ToffsetArcWires1A2=W(m,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),T.push(this.ToffsetWires2A1[n-7]),T.push(this.ToffsetWires2A1[n-1]),this.ToffsetArcWires1A2=W(T,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2A2.length>=12&&(A.push(this.ToffsetWires2A2[n-12]),A.push(this.ToffsetWires2A2[n-6]),this.ToffsetArcWires2A2=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires2A2[n-11]),b.push(this.ToffsetWires2A2[n-5]),this.ToffsetArcWires2A2=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires2A2[n-10]),E.push(this.ToffsetWires2A2[n-4]),this.ToffsetArcWires2A2=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires2A2[n-9]),D.push(this.ToffsetWires2A2[n-3]),this.ToffsetArcWires2A2=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),O.push(this.ToffsetWires2A2[n-8]),O.push(this.ToffsetWires2A2[n-2]),this.ToffsetArcWires2A2=W(O,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2A2[n-7]),B.push(this.ToffsetWires2A2[n-1]),this.ToffsetArcWires2A2=W(B,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.八分裂:this.ToffsetWires2A1.length>=16&&(c.push(this.ToffsetWires2A1[n-16]),c.push(this.ToffsetWires2A1[n-8]),this.ToffsetArcWires1A2=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires2A1[n-15]),h.push(this.ToffsetWires2A1[n-7]),this.ToffsetArcWires1A2=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires2A1[n-14]),d.push(this.ToffsetWires2A1[n-6]),this.ToffsetArcWires1A2=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires2A1[n-13]),p.push(this.ToffsetWires2A1[n-5]),this.ToffsetArcWires1A2=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires2A1[n-12]),m.push(this.ToffsetWires2A1[n-4]),this.ToffsetArcWires1A2=W(m,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),T.push(this.ToffsetWires2A1[n-11]),T.push(this.ToffsetWires2A1[n-3]),this.ToffsetArcWires1A2=W(T,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2A1[n-10]),y.push(this.ToffsetWires2A1[n-2]),this.ToffsetArcWires1A2=W(y,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线7"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),w.push(this.ToffsetWires2A1[n-9]),w.push(this.ToffsetWires2A1[n-1]),this.ToffsetArcWires1A2=W(w,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线8"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2A2.length>=16&&(A.push(this.ToffsetWires2A2[n-16]),A.push(this.ToffsetWires2A2[n-8]),this.ToffsetArcWires2A2=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires2A2[n-15]),b.push(this.ToffsetWires2A2[n-7]),this.ToffsetArcWires2A2=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires2A2[n-14]),E.push(this.ToffsetWires2A2[n-6]),this.ToffsetArcWires2A2=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires2A2[n-13]),D.push(this.ToffsetWires2A2[n-5]),this.ToffsetArcWires2A2=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),O.push(this.ToffsetWires2A2[n-12]),O.push(this.ToffsetWires2A2[n-4]),this.ToffsetArcWires2A2=W(O,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2A2[n-11]),B.push(this.ToffsetWires2A2[n-3]),this.ToffsetArcWires2A2=W(B,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),z.push(this.ToffsetWires2A2[n-10]),z.push(this.ToffsetWires2A2[n-2]),this.ToffsetArcWires2A2=W(z,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线7"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),F.push(this.ToffsetWires2A2[n-9]),F.push(this.ToffsetWires2A2[n-1]),this.ToffsetArcWires2A2=W(F,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线8"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break}}if(this.ToffsetWires2B1.length>1&&this.ToffsetWires2B2.length>1){const c=[],h=[],d=[],p=[],m=[],T=[],y=[],w=[],A=[],b=[],E=[],D=[],O=[],B=[],z=[],F=[];switch(this.LineInfo.Wairnum){case $.单分裂:this.ToffsetWires2B1.length>=2&&(c.push(this.ToffsetWires2B1[n-2]),c.push(this.ToffsetWires2B1[n-1]),this.ToffsetArcWires1B2=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2B2.length>=2&&(A.push(this.ToffsetWires2B2[n-2]),A.push(this.ToffsetWires2B2[n-1]),this.ToffsetArcWires2B2=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.双分裂:this.ToffsetWires2B1.length>=4&&(c.push(this.ToffsetWires2B1[n-4]),c.push(this.ToffsetWires2B1[n-2]),this.ToffsetArcWires1B2=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires2B1[n-3]),h.push(this.ToffsetWires2B1[n-1]),this.ToffsetArcWires1B2=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2B2.length>=4&&(A.push(this.ToffsetWires2B2[n-4]),A.push(this.ToffsetWires2B2[n-2]),this.ToffsetArcWires2B2=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires2B2[n-3]),b.push(this.ToffsetWires2B2[n-1]),this.ToffsetArcWires2B2=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.四分裂:this.ToffsetWires2B1.length>=8&&(c.push(this.ToffsetWires2B1[n-8]),c.push(this.ToffsetWires2B1[n-4]),this.ToffsetArcWires1B2=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires2B1[n-7]),h.push(this.ToffsetWires2B1[n-3]),this.ToffsetArcWires1B2=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires2B1[n-6]),d.push(this.ToffsetWires2B1[n-2]),this.ToffsetArcWires1B2=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires2B1[n-5]),p.push(this.ToffsetWires2B1[n-1]),this.ToffsetArcWires1B2=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2B2.length>=8&&(A.push(this.ToffsetWires2B2[n-8]),A.push(this.ToffsetWires2B2[n-4]),this.ToffsetArcWires2B2=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires2B2[n-7]),b.push(this.ToffsetWires2B2[n-3]),this.ToffsetArcWires2B2=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires2B2[n-6]),E.push(this.ToffsetWires2B2[n-2]),this.ToffsetArcWires2B2=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires2B2[n-5]),D.push(this.ToffsetWires2B2[n-1]),this.ToffsetArcWires2B2=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.六分裂:this.ToffsetWires2B1.length>=12&&(c.push(this.ToffsetWires2B1[n-12]),c.push(this.ToffsetWires2B1[n-6]),this.ToffsetArcWires1B2=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires2B1[n-11]),h.push(this.ToffsetWires2B1[n-5]),this.ToffsetArcWires1B2=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires2B1[n-10]),d.push(this.ToffsetWires2B1[n-4]),this.ToffsetArcWires1B2=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires2B1[n-9]),p.push(this.ToffsetWires2B1[n-3]),this.ToffsetArcWires1B2=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires2B1[n-8]),m.push(this.ToffsetWires2B1[n-2]),this.ToffsetArcWires1B2=W(m,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),T.push(this.ToffsetWires2B1[n-7]),T.push(this.ToffsetWires2B1[n-1]),this.ToffsetArcWires1B2=W(T,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2B2.length>=12&&(A.push(this.ToffsetWires2B2[n-12]),A.push(this.ToffsetWires2B2[n-6]),this.ToffsetArcWires2B2=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires2B2[n-11]),b.push(this.ToffsetWires2B2[n-5]),this.ToffsetArcWires2B2=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires2B2[n-10]),E.push(this.ToffsetWires2B2[n-4]),this.ToffsetArcWires2B2=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires2B2[n-9]),D.push(this.ToffsetWires2B2[n-3]),this.ToffsetArcWires2B2=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),O.push(this.ToffsetWires2B2[n-8]),O.push(this.ToffsetWires2B2[n-2]),this.ToffsetArcWires2B2=W(O,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2B2[n-7]),B.push(this.ToffsetWires2B2[n-1]),this.ToffsetArcWires2B2=W(B,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.八分裂:this.ToffsetWires2B1.length>=16&&(c.push(this.ToffsetWires2B1[n-16]),c.push(this.ToffsetWires2B1[n-8]),this.ToffsetArcWires1B2=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires2B1[n-15]),h.push(this.ToffsetWires2B1[n-7]),this.ToffsetArcWires1B2=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires2B1[n-14]),d.push(this.ToffsetWires2B1[n-6]),this.ToffsetArcWires1B2=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires2B1[n-13]),p.push(this.ToffsetWires2B1[n-5]),this.ToffsetArcWires1B2=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires2B1[n-12]),m.push(this.ToffsetWires2B1[n-4]),this.ToffsetArcWires1B2=W(m,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),T.push(this.ToffsetWires2B1[n-11]),T.push(this.ToffsetWires2B1[n-3]),this.ToffsetArcWires1B2=W(T,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2B1[n-10]),y.push(this.ToffsetWires2B1[n-2]),this.ToffsetArcWires1B2=W(y,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线7"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),w.push(this.ToffsetWires2B1[n-9]),w.push(this.ToffsetWires2B1[n-1]),this.ToffsetArcWires1B2=W(w,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线8"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2B2.length>=16&&(A.push(this.ToffsetWires2B2[n-16]),A.push(this.ToffsetWires2B2[n-8]),this.ToffsetArcWires2B2=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires2B2[n-15]),b.push(this.ToffsetWires2B2[n-7]),this.ToffsetArcWires2B2=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires2B2[n-14]),E.push(this.ToffsetWires2B2[n-6]),this.ToffsetArcWires2B2=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires2B2[n-13]),D.push(this.ToffsetWires2B2[n-5]),this.ToffsetArcWires2B2=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),O.push(this.ToffsetWires2B2[n-12]),O.push(this.ToffsetWires2B2[n-4]),this.ToffsetArcWires2B2=W(O,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2B2[n-11]),B.push(this.ToffsetWires2B2[n-3]),this.ToffsetArcWires2B2=W(B,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),z.push(this.ToffsetWires2B2[n-10]),z.push(this.ToffsetWires2B2[n-2]),this.ToffsetArcWires2B2=W(z,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线7"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),F.push(this.ToffsetWires2B2[n-9]),F.push(this.ToffsetWires2B2[n-1]),this.ToffsetArcWires2B2=W(F,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线8"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break}}if(this.ToffsetWires2C1.length>1&&this.ToffsetWires2C2.length>1){const c=[],h=[],d=[],p=[],m=[],T=[],y=[],w=[],A=[],b=[],E=[],D=[],O=[],B=[],z=[],F=[];switch(this.LineInfo.Wairnum){case $.单分裂:this.ToffsetWires2C1.length>=2&&(c.push(this.ToffsetWires2C1[n-2]),c.push(this.ToffsetWires2C1[n-1]),this.ToffsetArcWires1C2=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2C2.length>=2&&(A.push(this.ToffsetWires2C2[n-2]),A.push(this.ToffsetWires2C2[n-1]),this.ToffsetArcWires2C2=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.双分裂:this.ToffsetWires2C1.length>=4&&(c.push(this.ToffsetWires2C1[n-4]),c.push(this.ToffsetWires2C1[n-2]),this.ToffsetArcWires1C2=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires2C1[n-3]),h.push(this.ToffsetWires2C1[n-1]),this.ToffsetArcWires1C2=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2C2.length>=4&&(A.push(this.ToffsetWires2C2[n-4]),A.push(this.ToffsetWires2C2[n-2]),this.ToffsetArcWires2C2=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires2C2[n-3]),b.push(this.ToffsetWires2C2[n-1]),this.ToffsetArcWires2C2=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.四分裂:this.ToffsetWires2C1.length>=8&&(c.push(this.ToffsetWires2C1[n-8]),c.push(this.ToffsetWires2C1[n-4]),this.ToffsetArcWires1C2=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires2C1[n-7]),h.push(this.ToffsetWires2C1[n-3]),this.ToffsetArcWires1C2=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires2C1[n-6]),d.push(this.ToffsetWires2C1[n-2]),this.ToffsetArcWires1C2=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires2C1[n-5]),p.push(this.ToffsetWires2C1[n-1]),this.ToffsetArcWires1C2=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2C2.length>=8&&(A.push(this.ToffsetWires2C2[n-8]),A.push(this.ToffsetWires2C2[n-4]),this.ToffsetArcWires2C2=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires2C2[n-7]),b.push(this.ToffsetWires2C2[n-3]),this.ToffsetArcWires2C2=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires2C2[n-6]),E.push(this.ToffsetWires2C2[n-2]),this.ToffsetArcWires2C2=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires2C2[n-5]),D.push(this.ToffsetWires2C2[n-1]),this.ToffsetArcWires2C2=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.六分裂:this.ToffsetWires2C1.length>=12&&(c.push(this.ToffsetWires2C1[n-12]),c.push(this.ToffsetWires2C1[n-6]),this.ToffsetArcWires1C2=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires2C1[n-11]),h.push(this.ToffsetWires2C1[n-5]),this.ToffsetArcWires1C2=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires2C1[n-10]),d.push(this.ToffsetWires2C1[n-4]),this.ToffsetArcWires1C2=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires2C1[n-9]),p.push(this.ToffsetWires2C1[n-3]),this.ToffsetArcWires1C2=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires2C1[n-8]),m.push(this.ToffsetWires2C1[n-2]),this.ToffsetArcWires1C2=W(m,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),T.push(this.ToffsetWires2C1[n-7]),T.push(this.ToffsetWires2C1[n-1]),this.ToffsetArcWires1C2=W(T,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2C2.length>=12&&(A.push(this.ToffsetWires2C2[n-12]),A.push(this.ToffsetWires2C2[n-6]),this.ToffsetArcWires2C2=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires2C2[n-11]),b.push(this.ToffsetWires2C2[n-5]),this.ToffsetArcWires2C2=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires2C2[n-10]),E.push(this.ToffsetWires2C2[n-4]),this.ToffsetArcWires2C2=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires2C2[n-9]),D.push(this.ToffsetWires2C2[n-3]),this.ToffsetArcWires2C2=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),O.push(this.ToffsetWires2C2[n-8]),O.push(this.ToffsetWires2C2[n-2]),this.ToffsetArcWires2C2=W(O,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2C2[n-7]),B.push(this.ToffsetWires2C2[n-1]),this.ToffsetArcWires2C2=W(B,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.八分裂:this.ToffsetWires2C1.length>=16&&(c.push(this.ToffsetWires2C1[n-16]),c.push(this.ToffsetWires2C1[n-8]),this.ToffsetArcWires1C2=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires2C1[n-15]),h.push(this.ToffsetWires2C1[n-7]),this.ToffsetArcWires1C2=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires2C1[n-14]),d.push(this.ToffsetWires2C1[n-6]),this.ToffsetArcWires1C2=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires2C1[n-13]),p.push(this.ToffsetWires2C1[n-5]),this.ToffsetArcWires1C2=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires2C1[n-12]),m.push(this.ToffsetWires2C1[n-4]),this.ToffsetArcWires1C2=W(m,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),T.push(this.ToffsetWires2C1[n-11]),T.push(this.ToffsetWires2C1[n-3]),this.ToffsetArcWires1C2=W(T,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2C1[n-10]),y.push(this.ToffsetWires2C1[n-2]),this.ToffsetArcWires1C2=W(y,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线7"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),w.push(this.ToffsetWires2C1[n-9]),w.push(this.ToffsetWires2C1[n-1]),this.ToffsetArcWires1C2=W(w,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线8"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2C2.length>=16&&(A.push(this.ToffsetWires2C2[n-16]),A.push(this.ToffsetWires2C2[n-8]),this.ToffsetArcWires2C2=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires2C2[n-15]),b.push(this.ToffsetWires2C2[n-7]),this.ToffsetArcWires2C2=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires2C2[n-14]),E.push(this.ToffsetWires2C2[n-6]),this.ToffsetArcWires2C2=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires2C2[n-13]),D.push(this.ToffsetWires2C2[n-5]),this.ToffsetArcWires2C2=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),O.push(this.ToffsetWires2C2[n-12]),O.push(this.ToffsetWires2C2[n-4]),this.ToffsetArcWires2C2=W(O,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2C2[n-11]),B.push(this.ToffsetWires2C2[n-3]),this.ToffsetArcWires2C2=W(B,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),z.push(this.ToffsetWires2C2[n-10]),z.push(this.ToffsetWires2C2[n-2]),this.ToffsetArcWires2C2=W(z,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线7"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),F.push(this.ToffsetWires2C2[n-9]),F.push(this.ToffsetWires2C2[n-1]),this.ToffsetArcWires2C2=W(F,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线8"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break}}}else switch(this.LineInfo.Wairnum){case $.单分裂:t=t+1;break;case $.双分裂:t=t+2;break;case $.四分裂:t=t+4;break;case $.六分裂:t=t+6;break;case $.八分裂:t=t+8;break}})}loadLineModel(){this.Keym=="OW_JPS_EEngin_001"&&(this.viewer.dataSources.add(this.dataSource2),this.viewer.entities.show)}LineSpriteLineinit(){ne._materialCache.addMaterial("SpriteLineMaterialType",{fabric:{type:"SpriteLineMaterialType",uniforms:{color:new S(1,1,0,1),speed:2},source:`
|
|
6584
|
+
`,_x=Re.SHOW_INDEX,rf=Re.POSITION_INDEX,_0=Re.COLOR_INDEX,gx=Re.OUTLINE_COLOR_INDEX,Tx=Re.OUTLINE_WIDTH_INDEX,yx=Re.PIXEL_SIZE_INDEX,g0=Re.SCALE_BY_DISTANCE_INDEX,T0=Re.TRANSLUCENCY_BY_DISTANCE_INDEX,y0=Re.DISTANCE_DISPLAY_CONDITION_INDEX,Cx=Re.DISABLE_DEPTH_DISTANCE_INDEX,wx=Re.SPLIT_DIRECTION_INDEX,af=Re.NUMBER_OF_PROPERTIES,tn={positionHighAndSize:0,positionLowAndOutline:1,compressedAttribute0:2,compressedAttribute1:3,scaleByDistance:4,distanceDisplayConditionAndDisableDepthAndSplitDirection:5};function An(e){e=g(e,g.EMPTY_OBJECT),this._sp=void 0,this._spTranslucent=void 0,this._rsOpaque=void 0,this._rsTranslucent=void 0,this._vaf=void 0,this._pointPrimitives=[],this._pointPrimitivesToUpdate=[],this._pointPrimitivesToUpdateIndex=0,this._pointPrimitivesRemoved=!1,this._createVertexArray=!1,this._shaderScaleByDistance=!1,this._compiledShaderScaleByDistance=!1,this._shaderTranslucencyByDistance=!1,this._compiledShaderTranslucencyByDistance=!1,this._shaderDistanceDisplayCondition=!1,this._compiledShaderDistanceDisplayCondition=!1,this._shaderDisableDepthDistance=!1,this._compiledShaderDisableDepthDistance=!1,this._propertiesChanged=new Uint32Array(af),this._maxPixelSize=1,this._baseVolume=new te,this._baseVolumeWC=new te,this._baseVolume2D=new te,this._boundingVolume=new te,this._boundingVolumeDirty=!1,this._colorCommands=[],this.show=g(e.show,!0),this.modelMatrix=V.clone(g(e.modelMatrix,V.IDENTITY)),this._modelMatrix=V.clone(V.IDENTITY),this.debugShowBoundingVolume=g(e.debugShowBoundingVolume,!1),this.blendOption=g(e.blendOption,_t.OPAQUE_AND_TRANSLUCENT),this._blendOption=void 0,this._mode=Ce.SCENE3D,this._maxTotalPointSize=1,this._buffersUsage=[We.STATIC_DRAW,We.STATIC_DRAW,We.STATIC_DRAW,We.STATIC_DRAW,We.STATIC_DRAW,We.STATIC_DRAW,We.STATIC_DRAW,We.STATIC_DRAW,We.STATIC_DRAW];const t=this;this._uniforms={u_maxTotalPointSize:function(){return t._maxTotalPointSize}}}Object.defineProperties(An.prototype,{length:{get:function(){return cf(this),this._pointPrimitives.length}}});function C0(e){const t=e.length;for(let n=0;n<t;++n)e[n]&&e[n]._destroy()}An.prototype.add=function(e){const t=new Re(e,this);return t._index=this._pointPrimitives.length,this._pointPrimitives.push(t),this._createVertexArray=!0,t},An.prototype.remove=function(e){return this.contains(e)?(this._pointPrimitives[e._index]=null,this._pointPrimitivesRemoved=!0,this._createVertexArray=!0,e._destroy(),!0):!1},An.prototype.removeAll=function(){C0(this._pointPrimitives),this._pointPrimitives=[],this._pointPrimitivesToUpdate=[],this._pointPrimitivesToUpdateIndex=0,this._pointPrimitivesRemoved=!1,this._createVertexArray=!0};function cf(e){if(e._pointPrimitivesRemoved){e._pointPrimitivesRemoved=!1;const t=[],n=e._pointPrimitives,i=n.length;for(let o=0,a=0;o<i;++o){const r=n[o];r&&(r._index=a++,t.push(r))}e._pointPrimitives=t}}An.prototype._updatePointPrimitive=function(e,t){e._dirty||(this._pointPrimitivesToUpdate[this._pointPrimitivesToUpdateIndex++]=e),++this._propertiesChanged[t]},An.prototype.contains=function(e){return l(e)&&e._pointPrimitiveCollection===this},An.prototype.get=function(e){if(!l(e))throw new C("index is required.");return cf(this),this._pointPrimitives[e]},An.prototype.computeNewBuffersUsage=function(){const e=this._buffersUsage;let t=!1;const n=this._propertiesChanged;for(let i=0;i<af;++i){const o=n[i]===0?We.STATIC_DRAW:We.STREAM_DRAW;t=t||e[i]!==o,e[i]=o}return t};function Ax(e,t,n){return new Dt(e,[{index:tn.positionHighAndSize,componentsPerAttribute:4,componentDatatype:he.FLOAT,usage:n[rf]},{index:tn.positionLowAndShow,componentsPerAttribute:4,componentDatatype:he.FLOAT,usage:n[rf]},{index:tn.compressedAttribute0,componentsPerAttribute:4,componentDatatype:he.FLOAT,usage:n[_0]},{index:tn.compressedAttribute1,componentsPerAttribute:4,componentDatatype:he.FLOAT,usage:n[T0]},{index:tn.scaleByDistance,componentsPerAttribute:4,componentDatatype:he.FLOAT,usage:n[g0]},{index:tn.distanceDisplayConditionAndDisableDepthAndSplitDirection,componentsPerAttribute:4,componentDatatype:he.FLOAT,usage:n[y0]}],t)}const hf=new Qe;function w0(e,t,n,i){const o=i._index,a=i._getActualPosition();e._mode===Ce.SCENE3D&&(te.expand(e._baseVolume,a,e._baseVolume),e._boundingVolumeDirty=!0),Qe.fromCartesian(a,hf);const r=i.pixelSize,f=i.outlineWidth;e._maxPixelSize=Math.max(e._maxPixelSize,r+f);const c=n[tn.positionHighAndSize],h=hf.high;c(o,h.x,h.y,h.z,r);const d=n[tn.positionLowAndOutline],p=hf.low;d(o,p.x,p.y,p.z,f)}const Pa=65536,or=256;function A0(e,t,n,i){const o=i._index,a=i.color,r=i.getPickId(t).color,f=i.outlineColor;let c=S.floatToByte(a.red),h=S.floatToByte(a.green),d=S.floatToByte(a.blue);const p=c*Pa+h*or+d;c=S.floatToByte(f.red),h=S.floatToByte(f.green),d=S.floatToByte(f.blue);const m=c*Pa+h*or+d;c=S.floatToByte(r.red),h=S.floatToByte(r.green),d=S.floatToByte(r.blue);const T=c*Pa+h*or+d,y=S.floatToByte(a.alpha)*Pa+S.floatToByte(f.alpha)*or+S.floatToByte(r.alpha),w=n[tn.compressedAttribute0];w(o,p,m,T,y)}function E0(e,t,n,i){const o=i._index;let a=0,r=1,f=1,c=1;const h=i.translucencyByDistance;l(h)&&(a=h.near,r=h.nearValue,f=h.far,c=h.farValue,(r!==1||c!==1)&&(e._shaderTranslucencyByDistance=!0));let d=i.show&&i.clusterShow;i.color.alpha===0&&i.outlineColor.alpha===0&&(d=!1),r=I.clamp(r,0,1),r=r===1?255:r*255|0;const p=(d?1:0)*or+r;c=I.clamp(c,0,1),c=c===1?255:c*255|0;const m=c,T=n[tn.compressedAttribute1];T(o,p,m,a,f)}function b0(e,t,n,i){const o=i._index,a=n[tn.scaleByDistance];let r=0,f=1,c=1,h=1;const d=i.scaleByDistance;l(d)&&(r=d.near,f=d.nearValue,c=d.far,h=d.farValue,(f!==1||h!==1)&&(e._shaderScaleByDistance=!0)),a(o,r,f,c,h)}function x0(e,t,n,i){const o=i._index,a=n[tn.distanceDisplayConditionAndDisableDepthAndSplitDirection];let r=0,f=Number.MAX_VALUE;const c=i.distanceDisplayCondition;l(c)&&(r=c.near,f=c.far,r*=r,f*=f,e._shaderDistanceDisplayCondition=!0);let h=i.disableDepthTestDistance;h*=h,h>0&&(e._shaderDisableDepthDistance=!0,h===Number.POSITIVE_INFINITY&&(h=-1));let d=0;const p=i.splitDirection;l(p)&&(d=p),a(o,r,f,h,d)}function Ex(e,t,n,i){w0(e,t,n,i),A0(e,t,n,i),E0(e,t,n,i),b0(e,t,n,i),x0(e,t,n,i)}function ff(e,t,n,i,o,a){let r;i.mode===Ce.SCENE3D?(r=e._baseVolume,e._boundingVolumeDirty=!0):r=e._baseVolume2D;const f=[];for(let c=0;c<n;++c){const h=t[c],d=h.position,p=Re._computeActualPosition(d,i,o);l(p)&&(h._setActualPosition(p),a?f.push(p):te.expand(r,p,r))}a&&te.fromPoints(f,r)}function bx(e,t){const n=t.mode,i=e._pointPrimitives,o=e._pointPrimitivesToUpdate,a=e._modelMatrix;e._createVertexArray||e._mode!==n||n!==Ce.SCENE3D&&!V.equals(a,e.modelMatrix)?(e._mode=n,V.clone(e.modelMatrix,a),e._createVertexArray=!0,(n===Ce.SCENE3D||n===Ce.SCENE2D||n===Ce.COLUMBUS_VIEW)&&ff(e,i,i.length,t,a,!0)):n===Ce.MORPHING?ff(e,i,i.length,t,a,!0):(n===Ce.SCENE2D||n===Ce.COLUMBUS_VIEW)&&ff(e,o,e._pointPrimitivesToUpdateIndex,t,a,!1)}function xx(e,t,n){const o=t.camera.getPixelSize(n,t.context.drawingBufferWidth,t.context.drawingBufferHeight)*e._maxPixelSize;n.radius+=o}const Sx=[];An.prototype.update=function(e){if(cf(this),!this.show)return;this._maxTotalPointSize=Se.maximumAliasedPointSize,bx(this,e);const n=this._pointPrimitives.length,i=this._pointPrimitivesToUpdate,o=this._pointPrimitivesToUpdateIndex,a=this._propertiesChanged,r=this._createVertexArray;let f;const c=e.context,h=e.passes,d=h.pick;if(r||!d&&this.computeNewBuffersUsage()){this._createVertexArray=!1;for(let B=0;B<af;++B)a[B]=0;if(this._vaf=this._vaf&&this._vaf.destroy(),n>0){this._vaf=Ax(c,n,this._buffersUsage),f=this._vaf.writers;for(let B=0;B<n;++B){const z=this._pointPrimitives[B];z._dirty=!1,Ex(this,c,f,z)}this._vaf.commit()}this._pointPrimitivesToUpdateIndex=0}else if(o>0){const B=Sx;B.length=0,(a[rf]||a[Tx]||a[yx])&&B.push(w0),(a[_0]||a[gx])&&B.push(A0),(a[_x]||a[T0])&&B.push(E0),a[g0]&&B.push(b0),(a[y0]||a[Cx]||a[wx])&&B.push(x0);const z=B.length;if(f=this._vaf.writers,o/n>.1){for(let F=0;F<o;++F){const N=i[F];N._dirty=!1;for(let k=0;k<z;++k)B[k](this,c,f,N)}this._vaf.commit()}else{for(let F=0;F<o;++F){const N=i[F];N._dirty=!1;for(let k=0;k<z;++k)B[k](this,c,f,N);this._vaf.subCommit(N._index,1)}this._vaf.endSubCommits()}this._pointPrimitivesToUpdateIndex=0}if(o>n*1.5&&(i.length=n),!l(this._vaf)||!l(this._vaf.va))return;this._boundingVolumeDirty&&(this._boundingVolumeDirty=!1,te.transform(this._baseVolume,this.modelMatrix,this._baseVolumeWC));let p,m=V.IDENTITY;e.mode===Ce.SCENE3D?(m=this.modelMatrix,p=te.clone(this._baseVolumeWC,this._boundingVolume)):p=te.clone(this._baseVolume2D,this._boundingVolume),xx(this,e,p);const T=this._blendOption!==this.blendOption;this._blendOption=this.blendOption,T&&(this._blendOption===_t.OPAQUE||this._blendOption===_t.OPAQUE_AND_TRANSLUCENT?this._rsOpaque=je.fromCache({depthTest:{enabled:!0,func:R.LEQUAL},depthMask:!0}):this._rsOpaque=void 0,this._blendOption===_t.TRANSLUCENT||this._blendOption===_t.OPAQUE_AND_TRANSLUCENT?this._rsTranslucent=je.fromCache({depthTest:{enabled:!0,func:R.LEQUAL},depthMask:!1,blending:ro.ALPHA_BLEND}):this._rsTranslucent=void 0),this._shaderDisableDepthDistance=this._shaderDisableDepthDistance||e.minimumDisableDepthTestDistance!==0;let y,w;(T||this._shaderScaleByDistance&&!this._compiledShaderScaleByDistance||this._shaderTranslucencyByDistance&&!this._compiledShaderTranslucencyByDistance||this._shaderDistanceDisplayCondition&&!this._compiledShaderDistanceDisplayCondition||this._shaderDisableDepthDistance!==this._compiledShaderDisableDepthDistance)&&(y=new Ee({sources:[mx]}),this._shaderScaleByDistance&&y.defines.push("EYE_DISTANCE_SCALING"),this._shaderTranslucencyByDistance&&y.defines.push("EYE_DISTANCE_TRANSLUCENCY"),this._shaderDistanceDisplayCondition&&y.defines.push("DISTANCE_DISPLAY_CONDITION"),this._shaderDisableDepthDistance&&y.defines.push("DISABLE_DEPTH_DISTANCE"),this._blendOption===_t.OPAQUE_AND_TRANSLUCENT&&(w=new Ee({defines:["OPAQUE"],sources:[Wa]}),this._sp=lt.replaceCache({context:c,shaderProgram:this._sp,vertexShaderSource:y,fragmentShaderSource:w,attributeLocations:tn}),w=new Ee({defines:["TRANSLUCENT"],sources:[Wa]}),this._spTranslucent=lt.replaceCache({context:c,shaderProgram:this._spTranslucent,vertexShaderSource:y,fragmentShaderSource:w,attributeLocations:tn})),this._blendOption===_t.OPAQUE&&(w=new Ee({sources:[Wa]}),this._sp=lt.replaceCache({context:c,shaderProgram:this._sp,vertexShaderSource:y,fragmentShaderSource:w,attributeLocations:tn})),this._blendOption===_t.TRANSLUCENT&&(w=new Ee({sources:[Wa]}),this._spTranslucent=lt.replaceCache({context:c,shaderProgram:this._spTranslucent,vertexShaderSource:y,fragmentShaderSource:w,attributeLocations:tn})),this._compiledShaderScaleByDistance=this._shaderScaleByDistance,this._compiledShaderTranslucencyByDistance=this._shaderTranslucencyByDistance,this._compiledShaderDistanceDisplayCondition=this._shaderDistanceDisplayCondition,this._compiledShaderDisableDepthDistance=this._shaderDisableDepthDistance);let A,b,E,D;const O=e.commandList;if(h.render||d){const B=this._colorCommands,z=this._blendOption===_t.OPAQUE,F=this._blendOption===_t.OPAQUE_AND_TRANSLUCENT;A=this._vaf.va,b=A.length,B.length=b;const N=F?b*2:b;for(D=0;D<N;++D){const k=z||F&&D%2===0;E=B[D],l(E)||(E=B[D]=new et),E.primitiveType=Xe.POINTS,E.pass=k||!F?Nt.OPAQUE:Nt.TRANSLUCENT,E.owner=this;const U=F?Math.floor(D/2):D;E.boundingVolume=p,E.modelMatrix=m,E.shaderProgram=k?this._sp:this._spTranslucent,E.uniformMap=this._uniforms,E.vertexArray=A[U].va,E.renderState=k?this._rsOpaque:this._rsTranslucent,E.debugShowBoundingVolume=this.debugShowBoundingVolume,E.pickId="v_pickColor",O.push(E)}}},An.prototype.isDestroyed=function(){return!1},An.prototype.destroy=function(){return this._sp=this._sp&&this._sp.destroy(),this._spTranslucent=this._spTranslucent&&this._spTranslucent.destroy(),this._spPick=this._spPick&&this._spPick.destroy(),this._vaf=this._vaf&&this._vaf.destroy(),C0(this._pointPrimitives),st(this)};const S0=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],lf=1,sr=8;class uf{static from(t){if(!(t instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");const[n,i]=new Uint8Array(t,0,2);if(n!==219)throw new Error("Data does not appear to be in a KDBush format.");const o=i>>4;if(o!==lf)throw new Error(`Got v${o} data when expected v${lf}.`);const a=S0[i&15];if(!a)throw new Error("Unrecognized array type.");const[r]=new Uint16Array(t,2,1),[f]=new Uint32Array(t,4,1);return new uf(f,r,a,t)}constructor(t,n=64,i=Float64Array,o){if(isNaN(t)||t<0)throw new Error(`Unpexpected numItems value: ${t}.`);this.numItems=+t,this.nodeSize=Math.min(Math.max(+n,2),65535),this.ArrayType=i,this.IndexArrayType=t<65536?Uint16Array:Uint32Array;const a=S0.indexOf(this.ArrayType),r=t*2*this.ArrayType.BYTES_PER_ELEMENT,f=t*this.IndexArrayType.BYTES_PER_ELEMENT,c=(8-f%8)%8;if(a<0)throw new Error(`Unexpected typed array class: ${i}.`);o&&o instanceof ArrayBuffer?(this.data=o,this.ids=new this.IndexArrayType(this.data,sr,t),this.coords=new this.ArrayType(this.data,sr+f+c,t*2),this._pos=t*2,this._finished=!0):(this.data=new ArrayBuffer(sr+r+f+c),this.ids=new this.IndexArrayType(this.data,sr,t),this.coords=new this.ArrayType(this.data,sr+f+c,t*2),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,(lf<<4)+a]),new Uint16Array(this.data,2,1)[0]=n,new Uint32Array(this.data,4,1)[0]=t)}add(t,n){const i=this._pos>>1;return this.ids[i]=i,this.coords[this._pos++]=t,this.coords[this._pos++]=n,i}finish(){const t=this._pos>>1;if(t!==this.numItems)throw new Error(`Added ${t} items when expected ${this.numItems}.`);return df(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(t,n,i,o){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:a,coords:r,nodeSize:f}=this,c=[0,a.length-1,0],h=[];for(;c.length;){const d=c.pop()||0,p=c.pop()||0,m=c.pop()||0;if(p-m<=f){for(let A=m;A<=p;A++){const b=r[2*A],E=r[2*A+1];b>=t&&b<=i&&E>=n&&E<=o&&h.push(a[A])}continue}const T=m+p>>1,y=r[2*T],w=r[2*T+1];y>=t&&y<=i&&w>=n&&w<=o&&h.push(a[T]),(d===0?t<=y:n<=w)&&(c.push(m),c.push(T-1),c.push(1-d)),(d===0?i>=y:o>=w)&&(c.push(T+1),c.push(p),c.push(1-d))}return h}within(t,n,i){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:o,coords:a,nodeSize:r}=this,f=[0,o.length-1,0],c=[],h=i*i;for(;f.length;){const d=f.pop()||0,p=f.pop()||0,m=f.pop()||0;if(p-m<=r){for(let A=m;A<=p;A++)D0(a[2*A],a[2*A+1],t,n)<=h&&c.push(o[A]);continue}const T=m+p>>1,y=a[2*T],w=a[2*T+1];D0(y,w,t,n)<=h&&c.push(o[T]),(d===0?t-i<=y:n-i<=w)&&(f.push(m),f.push(T-1),f.push(1-d)),(d===0?t+i>=y:n+i>=w)&&(f.push(T+1),f.push(p),f.push(1-d))}return c}}function df(e,t,n,i,o,a){if(o-i<=n)return;const r=i+o>>1;I0(e,t,r,i,o,a),df(e,t,n,i,r-1,1-a),df(e,t,n,r+1,o,1-a)}function I0(e,t,n,i,o,a){for(;o>i;){if(o-i>600){const h=o-i+1,d=n-i+1,p=Math.log(h),m=.5*Math.exp(2*p/3),T=.5*Math.sqrt(p*m*(h-m)/h)*(d-h/2<0?-1:1),y=Math.max(i,Math.floor(n-d*m/h+T)),w=Math.min(o,Math.floor(n+(h-d)*m/h+T));I0(e,t,n,y,w,a)}const r=t[2*n+a];let f=i,c=o;for(rr(e,t,i,n),t[2*o+a]>r&&rr(e,t,i,o);f<c;){for(rr(e,t,f,c),f++,c--;t[2*f+a]<r;)f++;for(;t[2*c+a]>r;)c--}t[2*i+a]===r?rr(e,t,i,c):(c++,rr(e,t,c,o)),c<=n&&(i=c+1),n<=c&&(o=c-1)}}function rr(e,t,n,i){pf(e,n,i),pf(t,2*n,2*i),pf(t,2*n+1,2*i+1)}function pf(e,t,n){const i=e[t];e[t]=e[n],e[n]=i}function D0(e,t,n,i){const o=e-n,a=t-i;return o*o+a*a}function Hn(e){e=g(e,g.EMPTY_OBJECT),this._enabled=g(e.enabled,!1),this._pixelRange=g(e.pixelRange,80),this._minimumClusterSize=g(e.minimumClusterSize,2),this._clusterBillboards=g(e.clusterBillboards,!0),this._clusterLabels=g(e.clusterLabels,!0),this._clusterPoints=g(e.clusterPoints,!0),this._labelCollection=void 0,this._billboardCollection=void 0,this._pointCollection=void 0,this._clusterBillboardCollection=void 0,this._clusterLabelCollection=void 0,this._clusterPointCollection=void 0,this._collectionIndicesByEntity={},this._unusedLabelIndices=[],this._unusedBillboardIndices=[],this._unusedPointIndices=[],this._previousClusters=[],this._previousHeight=void 0,this._enabledDirty=!1,this._clusterDirty=!1,this._cluster=void 0,this._removeEventListener=void 0,this._clusterEvent=new Le,this.show=g(e.show,!0)}function O0(e,t){e.x-=t,e.y-=t,e.width+=t*2,e.height+=t*2}const Ix=new xe;function v0(e,t,n,i,o){if(l(e._labelCollection)&&i._clusterLabels?o=Gn.getScreenSpaceBoundingBox(e,t,o):l(e._billboardCollection)&&i._clusterBillboards?o=me.getScreenSpaceBoundingBox(e,t,o):l(e._pointPrimitiveCollection)&&i._clusterPoints&&(o=Re.getScreenSpaceBoundingBox(e,t,o)),O0(o,n),i._clusterLabels&&!l(e._labelCollection)&&l(e.id)&&P0(i,e.id.id)&&l(e.id._label)){const a=i._collectionIndicesByEntity[e.id.id].labelIndex,r=i._labelCollection.get(a),f=Gn.getScreenSpaceBoundingBox(r,t,Ix);O0(f,n),o=xe.union(o,f,o)}return o}function Dx(e,t){if(e.clusterShow=!0,!l(e._labelCollection)&&l(e.id)&&P0(t,e.id.id)&&l(e.id._label)){const n=t._collectionIndicesByEntity[e.id.id].labelIndex,i=t._labelCollection.get(n);i.clusterShow=!0}}function W0(e,t,n,i){const o={billboard:i._clusterBillboardCollection.add(),label:i._clusterLabelCollection.add(),point:i._clusterPointCollection.add()};o.billboard.show=!1,o.point.show=!1,o.label.show=!0,o.label.text=t.toLocaleString(),o.label.id=n,o.billboard.position=o.label.position=o.point.position=e,i._clusterEvent.raiseEvent(n,o)}function P0(e,t){return l(e)&&l(e._collectionIndicesByEntity[t])&&l(e._collectionIndicesByEntity[t].labelIndex)}function mf(e,t,n,i,o){if(!l(e))return;const a=e.length;for(let r=0;r<a;++r){const f=e.get(r);if(f.clusterShow=!1,!f.show||o._scene.mode===Ce.SCENE3D&&!i.isPointVisible(f.position))continue;const c=o._clusterLabels&&l(f._labelCollection),h=o._clusterBillboards&&l(f.id._billboard),d=o._clusterPoints&&l(f.id._point);if(c&&(d||h))continue;const p=f.computeScreenSpacePosition(n);l(p)&&t.push({index:r,collection:e,clustered:!1,coord:p})}}const Ox=new xe,vx=new xe,Wx=new xe;function Px(e){return function(t){if(l(t)&&t<.05||!e.enabled)return;const n=e._scene,i=e._labelCollection,o=e._billboardCollection,a=e._pointCollection;if(!l(i)&&!l(o)&&!l(a)||!e._clusterBillboards&&!e._clusterLabels&&!e._clusterPoints)return;let r=e._clusterLabelCollection,f=e._clusterBillboardCollection,c=e._clusterPointCollection;l(r)?r.removeAll():r=e._clusterLabelCollection=new qn({scene:n}),l(f)?f.removeAll():f=e._clusterBillboardCollection=new rn({scene:n}),l(c)?c.removeAll():c=e._clusterPointCollection=new An;const h=e._pixelRange,d=e._minimumClusterSize,p=e._previousClusters,m=[],T=e._previousHeight,y=n.camera.positionCartographic.height,w=n.ellipsoid,A=n.camera.positionWC,b=new ui(w,A),E=[];e._clusterLabels&&mf(i,E,n,b,e),e._clusterBillboards&&mf(o,E,n,b,e),e._clusterPoints&&mf(a,E,n,b,e);let D,O,B,z,F,N,k,U,j,Y,s,x;if(E.length>0){const P=new uf(E.length,64,Uint32Array);for(let L=0;L<E.length;++L)P.add(E[L].coord.x,E[L].coord.y);if(P.finish(),y<T)for(B=p.length,D=0;D<B;++D){const L=p[D];if(!b.isPointVisible(L.position))continue;const H=me._computeScreenSpacePosition(V.IDENTITY,L.position,u.ZERO,q.ZERO,n);if(!l(H))continue;const X=1-y/T;let ee=L.width=L.width*X,K=L.height=L.height*X;ee=Math.max(ee,L.minimumWidth),K=Math.max(K,L.minimumHeight);const ce=H.x-ee*.5,le=H.y-K*.5,Ae=H.x+ee,Ie=H.y+K;for(F=P.range(ce,le,Ae,Ie),N=F.length,Y=0,j=[],O=0;O<N;++O)k=F[O],U=E[k],U.clustered||(++Y,s=U.collection,x=U.index,j.push(s.get(x).id));if(Y>=d)for(W0(L.position,Y,j,e),m.push(L),O=0;O<N;++O)E[F[O]].clustered=!0}for(B=E.length,D=0;D<B;++D){const L=E[D];if(L.clustered)continue;L.clustered=!0,s=L.collection,x=L.index;const H=s.get(x);z=v0(H,L.coord,h,e,Ox);const X=xe.clone(z,vx);F=P.range(z.x,z.y,z.x+z.width,z.y+z.height),N=F.length;const ee=u.clone(H.position);for(Y=1,j=[H.id],O=0;O<N;++O)if(k=F[O],U=E[k],!U.clustered){const K=U.collection.get(U.index),ce=v0(K,U.coord,h,e,Wx);u.add(K.position,ee,ee),xe.union(X,ce,X),++Y,j.push(K.id)}if(Y>=d){const K=u.multiplyByScalar(ee,1/Y,ee);for(W0(K,Y,j,e),m.push({position:K,width:X.width,height:X.height,minimumWidth:z.width,minimumHeight:z.height}),O=0;O<N;++O)E[F[O]].clustered=!0}else Dx(H,e)}}r.length===0&&(r.destroy(),e._clusterLabelCollection=void 0),f.length===0&&(f.destroy(),e._clusterBillboardCollection=void 0),c.length===0&&(c.destroy(),e._clusterPointCollection=void 0),e._previousClusters=m,e._previousHeight=y}}Hn.prototype._initialize=function(e){this._scene=e;const t=Px(this);this._cluster=t,this._removeEventListener=e.camera.changed.addEventListener(t)},Object.defineProperties(Hn.prototype,{enabled:{get:function(){return this._enabled},set:function(e){this._enabledDirty=e!==this._enabled,this._enabled=e}},pixelRange:{get:function(){return this._pixelRange},set:function(e){this._clusterDirty=this._clusterDirty||e!==this._pixelRange,this._pixelRange=e}},minimumClusterSize:{get:function(){return this._minimumClusterSize},set:function(e){this._clusterDirty=this._clusterDirty||e!==this._minimumClusterSize,this._minimumClusterSize=e}},clusterEvent:{get:function(){return this._clusterEvent}},clusterBillboards:{get:function(){return this._clusterBillboards},set:function(e){this._clusterDirty=this._clusterDirty||e!==this._clusterBillboards,this._clusterBillboards=e}},clusterLabels:{get:function(){return this._clusterLabels},set:function(e){this._clusterDirty=this._clusterDirty||e!==this._clusterLabels,this._clusterLabels=e}},clusterPoints:{get:function(){return this._clusterPoints},set:function(e){this._clusterDirty=this._clusterDirty||e!==this._clusterPoints,this._clusterPoints=e}}});function _f(e,t,n,i){return function(o){let a=this[e];l(this._collectionIndicesByEntity)||(this._collectionIndicesByEntity={});let r=this._collectionIndicesByEntity[o.id];if(l(r)||(r=this._collectionIndicesByEntity[o.id]={billboardIndex:void 0,labelIndex:void 0,pointIndex:void 0}),l(a)&&l(r[i]))return a.get(r[i]);l(a)||(a=this[e]=new t({scene:this._scene}));let f,c;const h=this[n];h.length>0?(f=h.shift(),c=a.get(f)):(c=a.add(),f=a.length-1),r[i]=f;const d=this;return Promise.resolve().then(function(){d._clusterDirty=!0}),c}}function gf(e,t){const n=e._collectionIndicesByEntity[t];!l(n.billboardIndex)&&!l(n.labelIndex)&&!l(n.pointIndex)&&delete e._collectionIndicesByEntity[t]}Hn.prototype.getLabel=_f("_labelCollection",qn,"_unusedLabelIndices","labelIndex"),Hn.prototype.removeLabel=function(e){const t=this._collectionIndicesByEntity&&this._collectionIndicesByEntity[e.id];if(!l(this._labelCollection)||!l(t)||!l(t.labelIndex))return;const n=t.labelIndex;t.labelIndex=void 0,gf(this,e.id);const i=this._labelCollection.get(n);i.show=!1,i.text="",i.id=void 0,this._unusedLabelIndices.push(n),this._clusterDirty=!0},Hn.prototype.getBillboard=_f("_billboardCollection",rn,"_unusedBillboardIndices","billboardIndex"),Hn.prototype.removeBillboard=function(e){const t=this._collectionIndicesByEntity&&this._collectionIndicesByEntity[e.id];if(!l(this._billboardCollection)||!l(t)||!l(t.billboardIndex))return;const n=t.billboardIndex;t.billboardIndex=void 0,gf(this,e.id);const i=this._billboardCollection.get(n);i.id=void 0,i.show=!1,i.image=void 0,this._unusedBillboardIndices.push(n),this._clusterDirty=!0},Hn.prototype.getPoint=_f("_pointCollection",An,"_unusedPointIndices","pointIndex"),Hn.prototype.removePoint=function(e){const t=this._collectionIndicesByEntity&&this._collectionIndicesByEntity[e.id];if(!l(this._pointCollection)||!l(t)||!l(t.pointIndex))return;const n=t.pointIndex;t.pointIndex=void 0,gf(this,e.id);const i=this._pointCollection.get(n);i.show=!1,i.id=void 0,this._unusedPointIndices.push(n),this._clusterDirty=!0};function Tf(e){if(!l(e))return;const t=e.length;for(let n=0;n<t;++n)e.get(n).clusterShow=!0}function Bx(e){e.enabled||(l(e._clusterLabelCollection)&&e._clusterLabelCollection.destroy(),l(e._clusterBillboardCollection)&&e._clusterBillboardCollection.destroy(),l(e._clusterPointCollection)&&e._clusterPointCollection.destroy(),e._clusterLabelCollection=void 0,e._clusterBillboardCollection=void 0,e._clusterPointCollection=void 0,Tf(e._labelCollection),Tf(e._billboardCollection),Tf(e._pointCollection))}Hn.prototype.update=function(e){if(!this.show)return;let t;l(this._labelCollection)&&this._labelCollection.length>0&&this._labelCollection.get(0)._glyphs.length===0&&(t=e.commandList,e.commandList=[],this._labelCollection.update(e),e.commandList=t),l(this._billboardCollection)&&this._billboardCollection.length>0&&!l(this._billboardCollection.get(0).width)&&(t=e.commandList,e.commandList=[],this._billboardCollection.update(e),e.commandList=t),this._enabledDirty&&(this._enabledDirty=!1,Bx(this),this._clusterDirty=!0),this._clusterDirty&&(this._clusterDirty=!1,this._cluster()),l(this._clusterLabelCollection)&&this._clusterLabelCollection.update(e),l(this._clusterBillboardCollection)&&this._clusterBillboardCollection.update(e),l(this._clusterPointCollection)&&this._clusterPointCollection.update(e),l(this._labelCollection)&&this._labelCollection.update(e),l(this._billboardCollection)&&this._billboardCollection.update(e),l(this._pointCollection)&&this._pointCollection.update(e)},Hn.prototype.destroy=function(){this._labelCollection=this._labelCollection&&this._labelCollection.destroy(),this._billboardCollection=this._billboardCollection&&this._billboardCollection.destroy(),this._pointCollection=this._pointCollection&&this._pointCollection.destroy(),this._clusterLabelCollection=this._clusterLabelCollection&&this._clusterLabelCollection.destroy(),this._clusterBillboardCollection=this._clusterBillboardCollection&&this._clusterBillboardCollection.destroy(),this._clusterPointCollection=this._clusterPointCollection&&this._clusterPointCollection.destroy(),l(this._removeEventListener)&&(this._removeEventListener(),this._removeEventListener=void 0),this._labelCollection=void 0,this._billboardCollection=void 0,this._pointCollection=void 0,this._clusterBillboardCollection=void 0,this._clusterLabelCollection=void 0,this._clusterPointCollection=void 0,this._collectionIndicesByEntity=void 0,this._unusedLabelIndices=[],this._unusedBillboardIndices=[],this._unusedPointIndices=[],this._previousClusters=[],this._previousHeight=void 0,this._enabledDirty=!1,this._pixelRangeDirty=!1,this._minimumClusterSizeDirty=!1};function ar(e){this._name=e,this._clock=void 0,this._changed=new Le,this._error=new Le,this._isLoading=!1,this._loading=new Le,this._entityCollection=new en(this),this._entityCluster=new Hn}Object.defineProperties(ar.prototype,{name:{get:function(){return this._name},set:function(e){this._name!==e&&(this._name=e,this._changed.raiseEvent(this))}},clock:{get:function(){return this._clock},set:function(e){this._clock!==e&&(this._clock=e,this._changed.raiseEvent(this))}},entities:{get:function(){return this._entityCollection}},isLoading:{get:function(){return this._isLoading},set:function(e){Oa.setLoading(this,e)}},changedEvent:{get:function(){return this._changed}},errorEvent:{get:function(){return this._error}},loadingEvent:{get:function(){return this._loading}},show:{get:function(){return this._entityCollection.show},set:function(e){this._entityCollection.show=e}},clustering:{get:function(){return this._entityCluster},set:function(e){if(!l(e))throw new C("value must be defined.");this._entityCluster=e}}}),ar.prototype.update=function(e){return!0};const Rx=S.WHITE,Lx=S.TRANSPARENT,zx=16,Nx=255;function Ko(e){e=g(e,g.EMPTY_OBJECT),this._definitionChanged=new Le,this._color=void 0,this._colorSubscription=void 0,this._gapColor=void 0,this._gapColorSubscription=void 0,this._dashLength=void 0,this._dashLengthSubscription=void 0,this._dashPattern=void 0,this._dashPatternSubscription=void 0,this.color=e.color,this.gapColor=e.gapColor,this.dashLength=e.dashLength,this.dashPattern=e.dashPattern}Object.defineProperties(Ko.prototype,{isConstant:{get:function(){return Te.isConstant(this._color)&&Te.isConstant(this._gapColor)&&Te.isConstant(this._dashLength)&&Te.isConstant(this._dashPattern)}},definitionChanged:{get:function(){return this._definitionChanged}},color:M("color"),gapColor:M("gapColor"),dashLength:M("dashLength"),dashPattern:M("dashPattern")}),Ko.prototype.getType=function(e){return"PolylineDash"};const Fx=new J;Ko.prototype.getValue=function(e,t){return l(e)||(e=J.now(Fx)),l(t)||(t={}),t.color=Te.getValueOrClonedDefault(this._color,e,Rx,t.color),t.gapColor=Te.getValueOrClonedDefault(this._gapColor,e,Lx,t.gapColor),t.dashLength=Te.getValueOrDefault(this._dashLength,e,zx,t.dashLength),t.dashPattern=Te.getValueOrDefault(this._dashPattern,e,Nx,t.dashPattern),t},Ko.prototype.equals=function(e){return this===e||e instanceof Ko&&Te.equals(this._color,e._color)&&Te.equals(this._gapColor,e._gapColor)&&Te.equals(this._dashLength,e._dashLength)&&Te.equals(this._dashPattern,e._dashPattern)};function Mx(e,t,n={}){const{color:i=S.WHITE,width:o=3,clampToGround:a=!1,zIndex:r=0,dashed:f=!1,dashLength:c=10}=n,h=f?new Ko({color:i,dashLength:c}):new ao(i);return e.entities.add({polyline:{positions:t,width:o,material:h,clampToGround:a,zIndex:r}})}function v(e,t,n=10,i="#ba1919"){return{name:t,label:{text:t,font:"18px sans-serif"},polyline:{show:!0,positions:e,clampToGround:!1,width:n,material:S.fromCssColorString(i),arcType:ai.NONE,shadows:ma.DISABLED}}}function To(e,t,n,i,o=new He(0,0,0),a=1){return{id:e,name:n,position:t,orientation:we.headingPitchRollQuaternion(t,o),model:{show:!0,uri:i,scale:a,heightReference:ii.NONE}}}function Ba(e,t,n,i={}){const{pointColor:o=S.YELLOW,pointSize:a=12,labelColor:r=S.WHITE,fontSize:f=16,pixelOffset:c=[0,-20],heightReference:h=ii.NONE}=i;return e.entities.add({position:t,point:{color:o,pixelSize:a,heightReference:h,distanceDisplayCondition:new ot(0,100)},label:{text:n,font:`${f}px sans-serif`,fillColor:r,pixelOffset:new q(...c),style:li.FILL_AND_OUTLINE,outlineWidth:2,outlineColor:S.BLACK,heightReference:h,distanceDisplayCondition:new ot(0,100)}})}function Q(e,t,n,i,o){n||(n=new He);const a=we.headingPitchRollQuaternion(e,n,i,o),r=V.fromRotationTranslation(G.fromQuaternion(a,new G),e,new V);return V.multiplyByPoint(r,t,new u)}function W(e,t=4){const n=[];for(var i=0;i<e.length-1;i++)n.push(...Ux(e[i],e[i+1],t*-1e3,100));return n}function Ux(e,t,n,i){var o=[],a=oe.fromCartesian(e),r=oe.fromCartesian(t),f=a.longitude*180/Math.PI,c=a.latitude*180/Math.PI,h=r.longitude*180/Math.PI,d=r.latitude*180/Math.PI,p=Math.sqrt((f-h)*(f-h)+(c-d)*(c-d)),m=p*n,T=u.clone(e),y=u.clone(t),w=u.distance(T,u.ZERO),A=u.distance(y,u.ZERO);if(u.normalize(T,T),u.normalize(y,y),u.distance(T,y)==0)return o;var b=u.angleBetween(T,y);o.push(e);for(var E=1;E<i-1;E++){var D=E*1/(i-1),O=1-D,B=Math.sin(O*b)/Math.sin(b),z=Math.sin(D*b)/Math.sin(b),F=u.multiplyByScalar(T,B,new u),N=u.multiplyByScalar(y,z,new u),k=u.add(F,N,new u),U=D*Math.PI,j=w*O+A*D+Math.sin(U)*m;k=u.multiplyByScalar(k,j,k),o.push(k)}return o.push(t),o}class kx{constructor(){se(this,"LineID","myEntity1");se(this,"Tag","");se(this,"towers",[]);se(this,"ISPhaseSequence",!1);se(this,"Wairnum",0);se(this,"Type",0);se(this,"wireAColor","#FFFFFF");se(this,"wireBColor","#FFFFFF");se(this,"wireCColor","#FFFFFF");se(this,"wireTColor","#FFFFFF");se(this,"wireD1Color","#FFFFFF");se(this,"wireD2Color","#FFFFFF");se(this,"wireWidth",1)}}class Vx{constructor(){se(this,"id","");se(this,"name","");se(this,"type",0);se(this,"Longitude",0);se(this,"Latitude",0);se(this,"Altitude",0);se(this,"RollX",0);se(this,"RollY",90);se(this,"RollZ",0);se(this,"towerScale",1);se(this,"towerHeight",42);se(this,"towerModelUri","");se(this,"towerPoint",[]);se(this,"Insulators",[])}}class Gx{constructor(){se(this,"id","");se(this,"name","");se(this,"type",0);se(this,"WairFX","进");se(this,"linenum",1);se(this,"Wairnum",0);se(this,"PhaseSequence",0);se(this,"RollX",90);se(this,"RollY",0);se(this,"RollZ",0);se(this,"InsulatorScale",1);se(this,"InsulatorLength",0);se(this,"InsulatorModelUri","");se(this,"InsulatorPoint",[])}}class qx{constructor(){se(this,"name","");se(this,"X",-45);se(this,"Y",90);se(this,"Z",0)}}var nn=(e=>(e[e.A相=0]="A相",e[e.B相=1]="B相",e[e.C相=2]="C相",e[e.地线1=3]="地线1",e[e.地线2=4]="地线2",e))(nn||{}),$i=(e=>(e[e.直线塔=0]="直线塔",e[e.耐张塔=1]="耐张塔",e[e.门架塔=2]="门架塔",e[e.换位塔=3]="换位塔",e))($i||{}),B0=(e=>(e[e.交流单回路=0]="交流单回路",e[e.交流双回路=1]="交流双回路",e[e.直流单回路=2]="直流单回路",e[e.直流双回路=3]="直流双回路",e[e.交流四回路=4]="交流四回路",e))(B0||{}),cr=(e=>(e[e.地线=0]="地线",e[e.回路一=1]="回路一",e[e.回路二=2]="回路二",e[e.回路三=3]="回路三",e[e.回路四=4]="回路四",e))(cr||{}),Ht=(e=>(e[e.悬垂串=0]="悬垂串",e[e.耐张串=1]="耐张串",e[e.跳线串=2]="跳线串",e[e.硬跳串=3]="硬跳串",e[e.V串=4]="V串",e[e.地线串=5]="地线串",e[e.绕跳临时=6]="绕跳临时",e))(Ht||{}),$=(e=>(e[e.单分裂=0]="单分裂",e[e.双分裂=1]="双分裂",e[e.四分裂=2]="四分裂",e[e.六分裂=3]="六分裂",e[e.八分裂=4]="八分裂",e))($||{});class Hx{constructor(t,n,i){se(this,"viewer");se(this,"LineInfo");se(this,"Keym","");se(this,"dataSource2");se(this,"entityCollection2");se(this,"offsetTowers",[]);se(this,"offsetWires11",[]);se(this,"offsetWires12",[]);se(this,"offsetWires13",[]);se(this,"offsetWires21",[]);se(this,"offsetWires22",[]);se(this,"offsetWires23",[]);se(this,"ToffsetArcWires1A",[]);se(this,"ToffsetArcWires2A",[]);se(this,"ToffsetWires1A1",[]);se(this,"ToffsetWires1A2",[]);se(this,"ToffsetArcWires1B",[]);se(this,"ToffsetArcWires2B",[]);se(this,"ToffsetWires1B1",[]);se(this,"ToffsetWires1B2",[]);se(this,"ToffsetArcWires1C",[]);se(this,"ToffsetArcWires2C",[]);se(this,"ToffsetWires1C1",[]);se(this,"ToffsetWires1C2",[]);se(this,"ToffsetArcWires1A2",[]);se(this,"ToffsetArcWires2A2",[]);se(this,"ToffsetWires2A1",[]);se(this,"ToffsetWires2A2",[]);se(this,"ToffsetArcWires1B2",[]);se(this,"ToffsetArcWires2B2",[]);se(this,"ToffsetWires2B1",[]);se(this,"ToffsetWires2B2",[]);se(this,"ToffsetArcWires1C2",[]);se(this,"ToffsetArcWires2C2",[]);se(this,"ToffsetWires2C1",[]);se(this,"ToffsetWires2C2",[]);se(this,"offsetArcWires1A",[]);se(this,"offsetArcWires1B",[]);se(this,"offsetArcWires1C",[]);se(this,"offsetArcWires2A",[]);se(this,"offsetArcWires2B",[]);se(this,"offsetArcWires2C",[]);se(this,"offsetGrouundWires1",[]);se(this,"offsetGrouundWires2",[]);se(this,"offsetGrouundWires11",[]);se(this,"offsetGrouundWires12",[]);this.Keym=i,this.viewer=t,this.LineInfo=n,this.dataSource2=new ar(this.LineInfo.LineID),this.entityCollection2=this.dataSource2.entities}loadLineTower(){if(this.Keym!="OW_JPS_EEngin_001")return;debugger;this.LineInfo.towers.forEach(i=>{this.offsetTowers.push(u.fromDegrees(i.Longitude,i.Latitude,i.Altitude))});let t=0,n=0;this.offsetTowers.forEach((i,o)=>{const a=new He(I.toRadians(this.LineInfo.towers[o].RollX),I.toRadians(this.LineInfo.towers[o].RollY),I.toRadians(this.LineInfo.towers[o].RollZ));this.entityCollection2.add(To(this.LineInfo.towers[o].id,i,this.LineInfo.towers[o].name,this.LineInfo.towers[o].towerModelUri,a,this.LineInfo.towers[o].towerScale));let r=new He(I.toRadians(this.LineInfo.towers[o].RollX),0,0),f=0;this.LineInfo.towers[o].Insulators.forEach(c=>{if(this.LineInfo.towers[o].type==$i.耐张塔)switch(c.type){case Ht.耐张串:let d=new He(I.toRadians(this.LineInfo.towers[o].RollX),0,0);if(c.WairFX=="进"){const w=new He(I.toRadians(c.RollX),I.toRadians(-90),I.toRadians(180)),A=Q(i,new u(this.LineInfo.towers[o].towerPoint[f].X,this.LineInfo.towers[o].towerPoint[f].Y,this.LineInfo.towers[o].towerPoint[f].Z),d);this.entityCollection2.add(To(c.id,A,c.name,c.InsulatorModelUri,w,c.InsulatorScale))}else{const w=new He(I.toRadians(c.RollX),I.toRadians(-90),I.toRadians(0)),A=Q(i,new u(this.LineInfo.towers[o].towerPoint[f].X,this.LineInfo.towers[o].towerPoint[f].Y,this.LineInfo.towers[o].towerPoint[f].Z),d);this.entityCollection2.add(To(c.id,A,c.name,c.InsulatorModelUri,w,c.InsulatorScale))}break;case Ht.跳线串:const p=new He(I.toRadians(c.RollX),I.toRadians(c.RollY),I.toRadians(c.RollZ)),m=Q(i,new u(this.LineInfo.towers[o].towerPoint[f].X,this.LineInfo.towers[o].towerPoint[f].Y,this.LineInfo.towers[o].towerPoint[f].Z),r);this.entityCollection2.add(To(c.id,m,c.name,c.InsulatorModelUri,p,c.InsulatorScale));break;case Ht.地线串:const T=new He(I.toRadians(c.RollX),I.toRadians(c.RollY),I.toRadians(c.RollZ)),y=Q(i,new u(this.LineInfo.towers[o].towerPoint[f].X,this.LineInfo.towers[o].towerPoint[f].Y,this.LineInfo.towers[o].towerPoint[f].Z),r);this.entityCollection2.add(To(c.id,y,c.name,c.InsulatorModelUri,T,c.InsulatorScale));break}else{const d=new He(I.toRadians(c.RollX),I.toRadians(c.RollY),I.toRadians(c.RollZ)),p=Q(i,new u(this.LineInfo.towers[o].towerPoint[f].X,this.LineInfo.towers[o].towerPoint[f].Y,this.LineInfo.towers[o].towerPoint[f].Z),r);this.entityCollection2.add(To(c.id,p,c.name,c.InsulatorModelUri,d,c.InsulatorScale))}const h=[];switch(c.InsulatorPoint.forEach(d=>{h.push(Q(i,new u(d.X,d.Y,d.Z),r))}),c.linenum){case cr.回路一:if(this.LineInfo.ISPhaseSequence)if(this.LineInfo.towers[o].type==$i.耐张塔)switch(c.PhaseSequence){case nn.A相:if(c.type==Ht.耐张串)if(c.WairFX=="进")switch(this.LineInfo.Wairnum){case $.单分裂:this.offsetWires11.push(h[0]),this.ToffsetWires1A1.push(h[0]);break;case $.双分裂:this.offsetWires11.push(h[0]),this.offsetWires11.push(h[1]),this.ToffsetWires1A1.push(h[2]),this.ToffsetWires1A1.push(h[3]);break;case $.四分裂:this.offsetWires11.push(h[0]),this.offsetWires11.push(h[1]),this.offsetWires11.push(h[2]),this.offsetWires11.push(h[3]),this.ToffsetWires1A1.push(h[4]),this.ToffsetWires1A1.push(h[5]),this.ToffsetWires1A1.push(h[6]),this.ToffsetWires1A1.push(h[7]);break;case $.六分裂:this.offsetWires11.push(h[0]),this.offsetWires11.push(h[1]),this.offsetWires11.push(h[2]),this.offsetWires11.push(h[3]),this.offsetWires11.push(h[4]),this.offsetWires11.push(h[5]),this.ToffsetWires1A1.push(h[6]),this.ToffsetWires1A1.push(h[7]),this.ToffsetWires1A1.push(h[8]),this.ToffsetWires1A1.push(h[9]),this.ToffsetWires1A1.push(h[10]),this.ToffsetWires1A1.push(h[11]);break;case $.八分裂:this.offsetWires11.push(h[0]),this.offsetWires11.push(h[1]),this.offsetWires11.push(h[2]),this.offsetWires11.push(h[3]),this.offsetWires11.push(h[4]),this.offsetWires11.push(h[5]),this.offsetWires11.push(h[6]),this.offsetWires11.push(h[7]),this.ToffsetWires1A1.push(h[8]),this.ToffsetWires1A1.push(h[9]),this.ToffsetWires1A1.push(h[10]),this.ToffsetWires1A1.push(h[11]),this.ToffsetWires1A1.push(h[12]),this.ToffsetWires1A1.push(h[13]),this.ToffsetWires1A1.push(h[14]),this.ToffsetWires1A1.push(h[15]);break}else switch(this.LineInfo.Wairnum){case $.单分裂:const d=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r);this.offsetWires11.push(d),this.ToffsetWires1A2.push(d);break;case $.双分裂:const p=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),m=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r);this.offsetWires11.push(p),this.offsetWires11.push(m),this.ToffsetWires1A2.push(p),this.ToffsetWires1A2.push(m);break;case $.四分裂:const T=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),y=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),w=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),A=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r);this.offsetWires11.push(T),this.offsetWires11.push(y),this.offsetWires11.push(w),this.offsetWires11.push(A),this.ToffsetWires1A2.push(T),this.ToffsetWires1A2.push(y),this.ToffsetWires1A2.push(w),this.ToffsetWires1A2.push(A);break;case $.六分裂:const b=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),E=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),D=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),O=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r),B=Q(i,new u(c.InsulatorPoint[4].X*-1,c.InsulatorPoint[4].Y,c.InsulatorPoint[4].Z),r),z=Q(i,new u(c.InsulatorPoint[5].X*-1,c.InsulatorPoint[5].Y,c.InsulatorPoint[5].Z),r);this.offsetWires11.push(b),this.offsetWires11.push(E),this.offsetWires11.push(D),this.offsetWires11.push(O),this.offsetWires11.push(B),this.offsetWires11.push(z),this.ToffsetWires1A2.push(b),this.ToffsetWires1A2.push(E),this.ToffsetWires1A2.push(D),this.ToffsetWires1A2.push(O),this.ToffsetWires1A2.push(B),this.ToffsetWires1A2.push(z);break;case $.八分裂:const F=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),N=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),k=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),U=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r),j=Q(i,new u(c.InsulatorPoint[4].X*-1,c.InsulatorPoint[4].Y,c.InsulatorPoint[4].Z),r),Y=Q(i,new u(c.InsulatorPoint[5].X*-1,c.InsulatorPoint[5].Y,c.InsulatorPoint[5].Z),r),s=Q(i,new u(c.InsulatorPoint[6].X*-1,c.InsulatorPoint[6].Y,c.InsulatorPoint[6].Z),r),x=Q(i,new u(c.InsulatorPoint[7].X*-1,c.InsulatorPoint[7].Y,c.InsulatorPoint[7].Z),r);this.offsetWires11.push(F),this.offsetWires11.push(N),this.offsetWires11.push(k),this.offsetWires11.push(U),this.offsetWires11.push(j),this.offsetWires11.push(Y),this.offsetWires11.push(s),this.offsetWires11.push(x),this.ToffsetWires1A2.push(F),this.ToffsetWires1A2.push(N),this.ToffsetWires1A2.push(k),this.ToffsetWires1A2.push(U),this.ToffsetWires1A2.push(j),this.ToffsetWires1A2.push(Y),this.ToffsetWires1A2.push(s),this.ToffsetWires1A2.push(x);break}else if(c.type==Ht.跳线串)switch(this.LineInfo.Wairnum){case $.单分裂:this.ToffsetWires1A1.push(h[0]),this.ToffsetWires1A2.push(h[0]);break;case $.双分裂:this.ToffsetWires1A1.push(h[0]),this.ToffsetWires1A1.push(h[1]),this.ToffsetWires1A2.push(h[2]),this.ToffsetWires1A2.push(h[3]);break;case $.四分裂:this.ToffsetWires1A1.push(h[0]),this.ToffsetWires1A1.push(h[1]),this.ToffsetWires1A1.push(h[2]),this.ToffsetWires1A1.push(h[3]),this.ToffsetWires1A2.push(h[4]),this.ToffsetWires1A2.push(h[5]),this.ToffsetWires1A2.push(h[6]),this.ToffsetWires1A2.push(h[7]);break;case $.六分裂:this.ToffsetWires1A1.push(h[0]),this.ToffsetWires1A1.push(h[1]),this.ToffsetWires1A1.push(h[2]),this.ToffsetWires1A1.push(h[3]),this.ToffsetWires1A1.push(h[4]),this.ToffsetWires1A1.push(h[5]),this.ToffsetWires1A2.push(h[6]),this.ToffsetWires1A2.push(h[7]),this.ToffsetWires1A2.push(h[8]),this.ToffsetWires1A2.push(h[9]),this.ToffsetWires1A2.push(h[10]),this.ToffsetWires1A2.push(h[11]);break;case $.八分裂:this.ToffsetWires1A1.push(h[0]),this.ToffsetWires1A1.push(h[1]),this.ToffsetWires1A1.push(h[2]),this.ToffsetWires1A1.push(h[3]),this.ToffsetWires1A1.push(h[4]),this.ToffsetWires1A1.push(h[5]),this.ToffsetWires1A1.push(h[6]),this.ToffsetWires1A1.push(h[7]),this.ToffsetWires1A2.push(h[8]),this.ToffsetWires1A2.push(h[9]),this.ToffsetWires1A2.push(h[10]),this.ToffsetWires1A2.push(h[11]),this.ToffsetWires1A2.push(h[12]),this.ToffsetWires1A2.push(h[13]),this.ToffsetWires1A2.push(h[14]),this.ToffsetWires1A2.push(h[15]);break}break;case nn.B相:if(c.type==Ht.耐张串)if(c.WairFX=="进")switch(this.LineInfo.Wairnum){case $.单分裂:this.offsetWires12.push(h[0]),this.ToffsetWires1B1.push(h[0]);break;case $.双分裂:this.offsetWires12.push(h[0]),this.offsetWires12.push(h[1]),this.ToffsetWires1B1.push(h[2]),this.ToffsetWires1B1.push(h[3]);break;case $.四分裂:this.offsetWires12.push(h[0]),this.offsetWires12.push(h[1]),this.offsetWires12.push(h[2]),this.offsetWires12.push(h[3]),this.ToffsetWires1B1.push(h[4]),this.ToffsetWires1B1.push(h[5]),this.ToffsetWires1B1.push(h[6]),this.ToffsetWires1B1.push(h[7]);break;case $.六分裂:this.offsetWires12.push(h[0]),this.offsetWires12.push(h[1]),this.offsetWires12.push(h[2]),this.offsetWires12.push(h[3]),this.offsetWires12.push(h[4]),this.offsetWires12.push(h[5]),this.ToffsetWires1B1.push(h[6]),this.ToffsetWires1B1.push(h[7]),this.ToffsetWires1B1.push(h[8]),this.ToffsetWires1B1.push(h[9]),this.ToffsetWires1B1.push(h[10]),this.ToffsetWires1B1.push(h[11]);break;case $.八分裂:this.offsetWires12.push(h[0]),this.offsetWires12.push(h[1]),this.offsetWires12.push(h[2]),this.offsetWires12.push(h[3]),this.offsetWires12.push(h[4]),this.offsetWires12.push(h[5]),this.offsetWires12.push(h[6]),this.offsetWires12.push(h[7]),this.ToffsetWires1B1.push(h[8]),this.ToffsetWires1B1.push(h[9]),this.ToffsetWires1B1.push(h[10]),this.ToffsetWires1B1.push(h[11]),this.ToffsetWires1B1.push(h[12]),this.ToffsetWires1B1.push(h[13]),this.ToffsetWires1B1.push(h[14]),this.ToffsetWires1B1.push(h[15]);break}else switch(this.LineInfo.Wairnum){case $.单分裂:const d=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r);this.offsetWires12.push(d),this.ToffsetWires1B2.push(d);break;case $.双分裂:const p=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),m=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r);this.offsetWires12.push(p),this.offsetWires12.push(m),this.ToffsetWires1B2.push(p),this.ToffsetWires1B2.push(m);break;case $.四分裂:const T=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),y=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),w=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),A=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r);this.offsetWires12.push(T),this.offsetWires12.push(y),this.offsetWires12.push(w),this.offsetWires12.push(A),this.ToffsetWires1B2.push(T),this.ToffsetWires1B2.push(y),this.ToffsetWires1B2.push(w),this.ToffsetWires1B2.push(A);break;case $.六分裂:const b=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),E=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),D=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),O=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r),B=Q(i,new u(c.InsulatorPoint[4].X*-1,c.InsulatorPoint[4].Y,c.InsulatorPoint[4].Z),r),z=Q(i,new u(c.InsulatorPoint[5].X*-1,c.InsulatorPoint[5].Y,c.InsulatorPoint[5].Z),r);this.offsetWires12.push(b),this.offsetWires12.push(E),this.offsetWires12.push(D),this.offsetWires12.push(O),this.offsetWires12.push(B),this.offsetWires12.push(z),this.ToffsetWires1B2.push(b),this.ToffsetWires1B2.push(E),this.ToffsetWires1B2.push(D),this.ToffsetWires1B2.push(O),this.ToffsetWires1B2.push(B),this.ToffsetWires1B2.push(z);break;case $.八分裂:const F=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),N=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),k=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),U=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r),j=Q(i,new u(c.InsulatorPoint[4].X*-1,c.InsulatorPoint[4].Y,c.InsulatorPoint[4].Z),r),Y=Q(i,new u(c.InsulatorPoint[5].X*-1,c.InsulatorPoint[5].Y,c.InsulatorPoint[5].Z),r),s=Q(i,new u(c.InsulatorPoint[6].X*-1,c.InsulatorPoint[6].Y,c.InsulatorPoint[6].Z),r),x=Q(i,new u(c.InsulatorPoint[7].X*-1,c.InsulatorPoint[7].Y,c.InsulatorPoint[7].Z),r);this.offsetWires12.push(F),this.offsetWires12.push(N),this.offsetWires12.push(k),this.offsetWires12.push(U),this.offsetWires12.push(j),this.offsetWires12.push(Y),this.offsetWires12.push(s),this.offsetWires12.push(x),this.ToffsetWires1B2.push(F),this.ToffsetWires1B2.push(N),this.ToffsetWires1B2.push(k),this.ToffsetWires1B2.push(U),this.ToffsetWires1B2.push(j),this.ToffsetWires1B2.push(Y),this.ToffsetWires1B2.push(s),this.ToffsetWires1B2.push(x);break}else if(c.type==Ht.跳线串)switch(this.LineInfo.Wairnum){case $.单分裂:this.ToffsetWires1B1.push(h[0]),this.ToffsetWires1B2.push(h[0]);break;case $.双分裂:this.ToffsetWires1B1.push(h[0]),this.ToffsetWires1B1.push(h[1]),this.ToffsetWires1B2.push(h[2]),this.ToffsetWires1B2.push(h[3]);break;case $.四分裂:this.ToffsetWires1B1.push(h[0]),this.ToffsetWires1B1.push(h[1]),this.ToffsetWires1B1.push(h[2]),this.ToffsetWires1B1.push(h[3]),this.ToffsetWires1B2.push(h[4]),this.ToffsetWires1B2.push(h[5]),this.ToffsetWires1B2.push(h[6]),this.ToffsetWires1B2.push(h[7]);break;case $.六分裂:this.ToffsetWires1B1.push(h[0]),this.ToffsetWires1B1.push(h[1]),this.ToffsetWires1B1.push(h[2]),this.ToffsetWires1B1.push(h[3]),this.ToffsetWires1B1.push(h[4]),this.ToffsetWires1B1.push(h[5]),this.ToffsetWires1B2.push(h[6]),this.ToffsetWires1B2.push(h[7]),this.ToffsetWires1B2.push(h[8]),this.ToffsetWires1B2.push(h[9]),this.ToffsetWires1B2.push(h[10]),this.ToffsetWires1B2.push(h[11]);break;case $.八分裂:this.ToffsetWires1B1.push(h[0]),this.ToffsetWires1B1.push(h[1]),this.ToffsetWires1B1.push(h[2]),this.ToffsetWires1B1.push(h[3]),this.ToffsetWires1B1.push(h[4]),this.ToffsetWires1B1.push(h[5]),this.ToffsetWires1B1.push(h[6]),this.ToffsetWires1B1.push(h[7]),this.ToffsetWires1B2.push(h[8]),this.ToffsetWires1B2.push(h[9]),this.ToffsetWires1B2.push(h[10]),this.ToffsetWires1B2.push(h[11]),this.ToffsetWires1B2.push(h[12]),this.ToffsetWires1B2.push(h[13]),this.ToffsetWires1B2.push(h[14]),this.ToffsetWires1B2.push(h[15]);break}break;case nn.C相:if(c.type==Ht.耐张串)if(c.WairFX=="进")switch(this.LineInfo.Wairnum){case $.单分裂:this.offsetWires13.push(h[0]),this.ToffsetWires1C1.push(h[0]);break;case $.双分裂:this.offsetWires13.push(h[0]),this.offsetWires13.push(h[1]),this.ToffsetWires1C1.push(h[2]),this.ToffsetWires1C1.push(h[3]);break;case $.四分裂:this.offsetWires13.push(h[0]),this.offsetWires13.push(h[1]),this.offsetWires13.push(h[2]),this.offsetWires13.push(h[3]),this.ToffsetWires1C1.push(h[4]),this.ToffsetWires1C1.push(h[5]),this.ToffsetWires1C1.push(h[6]),this.ToffsetWires1C1.push(h[7]);break;case $.六分裂:this.offsetWires13.push(h[0]),this.offsetWires13.push(h[1]),this.offsetWires13.push(h[2]),this.offsetWires13.push(h[3]),this.offsetWires13.push(h[4]),this.offsetWires13.push(h[5]),this.ToffsetWires1C1.push(h[6]),this.ToffsetWires1C1.push(h[7]),this.ToffsetWires1C1.push(h[8]),this.ToffsetWires1C1.push(h[9]),this.ToffsetWires1C1.push(h[10]),this.ToffsetWires1C1.push(h[11]);break;case $.八分裂:this.offsetWires13.push(h[0]),this.offsetWires13.push(h[1]),this.offsetWires13.push(h[2]),this.offsetWires13.push(h[3]),this.offsetWires13.push(h[4]),this.offsetWires13.push(h[5]),this.offsetWires13.push(h[6]),this.offsetWires13.push(h[7]),this.ToffsetWires1C1.push(h[8]),this.ToffsetWires1C1.push(h[9]),this.ToffsetWires1C1.push(h[10]),this.ToffsetWires1C1.push(h[11]),this.ToffsetWires1C1.push(h[12]),this.ToffsetWires1C1.push(h[13]),this.ToffsetWires1C1.push(h[14]),this.ToffsetWires1C1.push(h[15]);break}else switch(this.LineInfo.Wairnum){case $.单分裂:const d=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r);this.offsetWires13.push(d),this.ToffsetWires1C2.push(d);break;case $.双分裂:const p=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),m=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r);this.offsetWires13.push(p),this.offsetWires13.push(m),this.ToffsetWires1C2.push(p),this.ToffsetWires1C2.push(m);break;case $.四分裂:const T=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),y=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),w=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),A=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r);this.offsetWires13.push(T),this.offsetWires13.push(y),this.offsetWires13.push(w),this.offsetWires13.push(A),this.ToffsetWires1C2.push(T),this.ToffsetWires1C2.push(y),this.ToffsetWires1C2.push(w),this.ToffsetWires1C2.push(A);break;case $.六分裂:const b=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),E=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),D=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),O=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r),B=Q(i,new u(c.InsulatorPoint[4].X*-1,c.InsulatorPoint[4].Y,c.InsulatorPoint[4].Z),r),z=Q(i,new u(c.InsulatorPoint[5].X*-1,c.InsulatorPoint[5].Y,c.InsulatorPoint[5].Z),r);this.offsetWires13.push(b),this.offsetWires13.push(E),this.offsetWires13.push(D),this.offsetWires13.push(O),this.offsetWires13.push(B),this.offsetWires13.push(z),this.ToffsetWires1C2.push(b),this.ToffsetWires1C2.push(E),this.ToffsetWires1C2.push(D),this.ToffsetWires1C2.push(O),this.ToffsetWires1C2.push(B),this.ToffsetWires1C2.push(z);break;case $.八分裂:const F=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),N=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),k=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),U=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r),j=Q(i,new u(c.InsulatorPoint[4].X*-1,c.InsulatorPoint[4].Y,c.InsulatorPoint[4].Z),r),Y=Q(i,new u(c.InsulatorPoint[5].X*-1,c.InsulatorPoint[5].Y,c.InsulatorPoint[5].Z),r),s=Q(i,new u(c.InsulatorPoint[6].X*-1,c.InsulatorPoint[6].Y,c.InsulatorPoint[6].Z),r),x=Q(i,new u(c.InsulatorPoint[7].X*-1,c.InsulatorPoint[7].Y,c.InsulatorPoint[7].Z),r);this.offsetWires13.push(F),this.offsetWires13.push(N),this.offsetWires13.push(k),this.offsetWires13.push(U),this.offsetWires13.push(j),this.offsetWires13.push(Y),this.offsetWires13.push(s),this.offsetWires13.push(x),this.ToffsetWires1C2.push(F),this.ToffsetWires1C2.push(N),this.ToffsetWires1C2.push(k),this.ToffsetWires1C2.push(U),this.ToffsetWires1C2.push(j),this.ToffsetWires1C2.push(Y),this.ToffsetWires1C2.push(s),this.ToffsetWires1C2.push(x);break}else if(c.type==Ht.跳线串)switch(this.LineInfo.Wairnum){case $.单分裂:this.ToffsetWires1C1.push(h[0]),this.ToffsetWires1C2.push(h[0]);break;case $.双分裂:this.ToffsetWires1C1.push(h[0]),this.ToffsetWires1C1.push(h[1]),this.ToffsetWires1C2.push(h[2]),this.ToffsetWires1C2.push(h[3]);break;case $.四分裂:this.ToffsetWires1C1.push(h[0]),this.ToffsetWires1C1.push(h[1]),this.ToffsetWires1C1.push(h[2]),this.ToffsetWires1C1.push(h[3]),this.ToffsetWires1C2.push(h[4]),this.ToffsetWires1C2.push(h[5]),this.ToffsetWires1C2.push(h[6]),this.ToffsetWires1C2.push(h[7]);break;case $.六分裂:this.ToffsetWires1C1.push(h[0]),this.ToffsetWires1C1.push(h[1]),this.ToffsetWires1C1.push(h[2]),this.ToffsetWires1C1.push(h[3]),this.ToffsetWires1C1.push(h[4]),this.ToffsetWires1C1.push(h[5]),this.ToffsetWires1C2.push(h[6]),this.ToffsetWires1C2.push(h[7]),this.ToffsetWires1C2.push(h[8]),this.ToffsetWires1C2.push(h[9]),this.ToffsetWires1C2.push(h[10]),this.ToffsetWires1C2.push(h[11]);break;case $.八分裂:this.ToffsetWires1C1.push(h[0]),this.ToffsetWires1C1.push(h[1]),this.ToffsetWires1C1.push(h[2]),this.ToffsetWires1C1.push(h[3]),this.ToffsetWires1C1.push(h[4]),this.ToffsetWires1C1.push(h[5]),this.ToffsetWires1C1.push(h[6]),this.ToffsetWires1C1.push(h[7]),this.ToffsetWires1C2.push(h[8]),this.ToffsetWires1C2.push(h[9]),this.ToffsetWires1C2.push(h[10]),this.ToffsetWires1C2.push(h[11]),this.ToffsetWires1C2.push(h[12]),this.ToffsetWires1C2.push(h[13]),this.ToffsetWires1C2.push(h[14]),this.ToffsetWires1C2.push(h[15]);break}break}else switch(c.PhaseSequence){case nn.A相:h.forEach(d=>{this.offsetWires11.push(d)});break;case nn.B相:h.forEach(d=>{this.offsetWires12.push(d)});break;case nn.C相:h.forEach(d=>{this.offsetWires13.push(d)});break}else if(this.LineInfo.towers[o].type==$i.耐张塔){debugger;switch(f){case 2:switch(this.LineInfo.Wairnum){case $.单分裂:this.offsetWires11.push(h[0]),this.ToffsetWires1A1.push(h[0]);break;case $.双分裂:this.offsetWires11.push(h[0]),this.offsetWires11.push(h[1]),this.ToffsetWires1A1.push(h[2]),this.ToffsetWires1A1.push(h[3]);break}break;case 3:switch(this.LineInfo.Wairnum){case $.单分裂:this.ToffsetWires1A1.push(h[0]),this.ToffsetWires1A2.push(h[0]);break;case $.双分裂:this.ToffsetWires1A1.push(h[0]),this.ToffsetWires1A1.push(h[1]),this.ToffsetWires1A2.push(h[2]),this.ToffsetWires1A2.push(h[3]);break}break;case 4:switch(this.LineInfo.Wairnum){case $.单分裂:const d=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r);this.offsetWires11.push(d),this.ToffsetWires1A2.push(d);break;case $.双分裂:const p=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),m=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r);this.offsetWires11.push(p),this.offsetWires11.push(m),this.ToffsetWires1A2.push(p),this.ToffsetWires1A2.push(m);break}break;case 5:h.forEach(d=>{this.offsetWires12.push(d),this.ToffsetWires1B1.push(d)});break;case 6:h.forEach(d=>{this.ToffsetWires1B1.push(d),this.ToffsetWires1B2.push(d)});break;case 7:c.InsulatorPoint.forEach(d=>{const p=Q(i,new u(d.X*-1,d.Y,d.Z),r);this.offsetWires12.push(p),this.ToffsetWires1B2.push(p)});break;case 8:h.forEach(d=>{this.offsetWires13.push(d),this.ToffsetWires1C1.push(d)});break;case 9:h.forEach(d=>{this.ToffsetWires1C1.push(d),this.ToffsetWires1C2.push(d)});break;case 10:c.InsulatorPoint.forEach(d=>{const p=Q(i,new u(d.X*-1,d.Y,d.Z),r);this.offsetWires13.push(p),this.ToffsetWires1C2.push(p)});break}}else switch(f){case 2:h.forEach(d=>{this.offsetWires11.push(d)});break;case 3:h.forEach(d=>{this.offsetWires12.push(d)});break;case 4:h.forEach(d=>{this.offsetWires13.push(d)});break}break;case cr.回路二:if(this.LineInfo.ISPhaseSequence)if(this.LineInfo.towers[o].type==$i.耐张塔)switch(c.PhaseSequence){case nn.A相:if(c.type==Ht.耐张串)if(c.WairFX=="进")switch(this.LineInfo.Wairnum){case $.单分裂:this.offsetWires21.push(h[0]),this.ToffsetWires2A1.push(h[0]);break;case $.双分裂:this.offsetWires21.push(h[0]),this.offsetWires21.push(h[1]),this.ToffsetWires2A1.push(h[2]),this.ToffsetWires2A1.push(h[3]);break;case $.四分裂:this.offsetWires21.push(h[0]),this.offsetWires21.push(h[1]),this.offsetWires21.push(h[2]),this.offsetWires21.push(h[3]),this.ToffsetWires2A1.push(h[4]),this.ToffsetWires2A1.push(h[5]),this.ToffsetWires2A1.push(h[6]),this.ToffsetWires2A1.push(h[7]);break;case $.六分裂:this.offsetWires21.push(h[0]),this.offsetWires21.push(h[1]),this.offsetWires21.push(h[2]),this.offsetWires21.push(h[3]),this.offsetWires21.push(h[4]),this.offsetWires21.push(h[5]),this.ToffsetWires2A1.push(h[6]),this.ToffsetWires2A1.push(h[7]),this.ToffsetWires2A1.push(h[8]),this.ToffsetWires2A1.push(h[9]),this.ToffsetWires2A1.push(h[10]),this.ToffsetWires2A1.push(h[11]);break;case $.八分裂:this.offsetWires21.push(h[0]),this.offsetWires21.push(h[1]),this.offsetWires21.push(h[2]),this.offsetWires21.push(h[3]),this.offsetWires21.push(h[4]),this.offsetWires21.push(h[5]),this.offsetWires21.push(h[6]),this.offsetWires21.push(h[7]),this.ToffsetWires2A1.push(h[8]),this.ToffsetWires2A1.push(h[9]),this.ToffsetWires2A1.push(h[10]),this.ToffsetWires2A1.push(h[11]),this.ToffsetWires2A1.push(h[12]),this.ToffsetWires2A1.push(h[13]),this.ToffsetWires2A1.push(h[14]),this.ToffsetWires2A1.push(h[15]);break}else switch(this.LineInfo.Wairnum){case $.单分裂:const d=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r);this.offsetWires21.push(d),this.ToffsetWires2A2.push(d);break;case $.双分裂:const p=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),m=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r);this.offsetWires21.push(p),this.offsetWires21.push(m),this.ToffsetWires2A2.push(p),this.ToffsetWires2A2.push(m);break;case $.四分裂:const T=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),y=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),w=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),A=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r);this.offsetWires21.push(T),this.offsetWires21.push(y),this.offsetWires21.push(w),this.offsetWires21.push(A),this.ToffsetWires2A2.push(T),this.ToffsetWires2A2.push(y),this.ToffsetWires2A2.push(w),this.ToffsetWires2A2.push(A);break;case $.六分裂:const b=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),E=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),D=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),O=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r),B=Q(i,new u(c.InsulatorPoint[4].X*-1,c.InsulatorPoint[4].Y,c.InsulatorPoint[4].Z),r),z=Q(i,new u(c.InsulatorPoint[5].X*-1,c.InsulatorPoint[5].Y,c.InsulatorPoint[5].Z),r);this.offsetWires21.push(b),this.offsetWires21.push(E),this.offsetWires21.push(D),this.offsetWires21.push(O),this.offsetWires21.push(B),this.offsetWires21.push(z),this.ToffsetWires2A2.push(b),this.ToffsetWires2A2.push(E),this.ToffsetWires2A2.push(D),this.ToffsetWires2A2.push(O),this.ToffsetWires2A2.push(B),this.ToffsetWires2A2.push(z);break;case $.八分裂:const F=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),N=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),k=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),U=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r),j=Q(i,new u(c.InsulatorPoint[4].X*-1,c.InsulatorPoint[4].Y,c.InsulatorPoint[4].Z),r),Y=Q(i,new u(c.InsulatorPoint[5].X*-1,c.InsulatorPoint[5].Y,c.InsulatorPoint[5].Z),r),s=Q(i,new u(c.InsulatorPoint[6].X*-1,c.InsulatorPoint[6].Y,c.InsulatorPoint[6].Z),r),x=Q(i,new u(c.InsulatorPoint[7].X*-1,c.InsulatorPoint[7].Y,c.InsulatorPoint[7].Z),r);this.offsetWires21.push(F),this.offsetWires21.push(N),this.offsetWires21.push(k),this.offsetWires21.push(U),this.offsetWires21.push(j),this.offsetWires21.push(Y),this.offsetWires21.push(s),this.offsetWires21.push(x),this.ToffsetWires2A2.push(F),this.ToffsetWires2A2.push(N),this.ToffsetWires2A2.push(k),this.ToffsetWires2A2.push(U),this.ToffsetWires2A2.push(j),this.ToffsetWires2A2.push(Y),this.ToffsetWires2A2.push(s),this.ToffsetWires2A2.push(x);break}else if(c.type==Ht.跳线串)switch(this.LineInfo.Wairnum){case $.单分裂:this.ToffsetWires2A1.push(h[0]),this.ToffsetWires2A2.push(h[0]);break;case $.双分裂:this.ToffsetWires2A1.push(h[0]),this.ToffsetWires2A1.push(h[1]),this.ToffsetWires2A2.push(h[2]),this.ToffsetWires2A2.push(h[3]);break;case $.四分裂:this.ToffsetWires2A1.push(h[0]),this.ToffsetWires2A1.push(h[1]),this.ToffsetWires2A1.push(h[2]),this.ToffsetWires2A1.push(h[3]),this.ToffsetWires2A2.push(h[4]),this.ToffsetWires2A2.push(h[5]),this.ToffsetWires2A2.push(h[6]),this.ToffsetWires2A2.push(h[7]);break;case $.六分裂:this.ToffsetWires2A1.push(h[0]),this.ToffsetWires2A1.push(h[1]),this.ToffsetWires2A1.push(h[2]),this.ToffsetWires2A1.push(h[3]),this.ToffsetWires2A1.push(h[4]),this.ToffsetWires2A1.push(h[5]),this.ToffsetWires2A2.push(h[6]),this.ToffsetWires2A2.push(h[7]),this.ToffsetWires2A2.push(h[8]),this.ToffsetWires2A2.push(h[9]),this.ToffsetWires2A2.push(h[10]),this.ToffsetWires2A2.push(h[11]);break;case $.八分裂:this.ToffsetWires2A1.push(h[0]),this.ToffsetWires2A1.push(h[1]),this.ToffsetWires2A1.push(h[2]),this.ToffsetWires2A1.push(h[3]),this.ToffsetWires2A1.push(h[4]),this.ToffsetWires2A1.push(h[5]),this.ToffsetWires2A1.push(h[6]),this.ToffsetWires2A1.push(h[7]),this.ToffsetWires2A2.push(h[8]),this.ToffsetWires2A2.push(h[9]),this.ToffsetWires2A2.push(h[10]),this.ToffsetWires2A2.push(h[11]),this.ToffsetWires2A2.push(h[12]),this.ToffsetWires2A2.push(h[13]),this.ToffsetWires2A2.push(h[14]),this.ToffsetWires2A2.push(h[15]);break}break;case nn.B相:if(c.type==Ht.耐张串)if(c.WairFX=="进")switch(this.LineInfo.Wairnum){case $.单分裂:this.offsetWires22.push(h[0]),this.ToffsetWires2B1.push(h[0]);break;case $.双分裂:this.offsetWires22.push(h[0]),this.offsetWires22.push(h[1]),this.ToffsetWires2B1.push(h[2]),this.ToffsetWires2B1.push(h[3]);break;case $.四分裂:this.offsetWires22.push(h[0]),this.offsetWires22.push(h[1]),this.offsetWires22.push(h[2]),this.offsetWires22.push(h[3]),this.ToffsetWires2B1.push(h[4]),this.ToffsetWires2B1.push(h[5]),this.ToffsetWires2B1.push(h[6]),this.ToffsetWires2B1.push(h[7]);break;case $.六分裂:this.offsetWires22.push(h[0]),this.offsetWires22.push(h[1]),this.offsetWires22.push(h[2]),this.offsetWires22.push(h[3]),this.offsetWires22.push(h[4]),this.offsetWires22.push(h[5]),this.ToffsetWires2B1.push(h[6]),this.ToffsetWires2B1.push(h[7]),this.ToffsetWires2B1.push(h[8]),this.ToffsetWires2B1.push(h[9]),this.ToffsetWires2B1.push(h[10]),this.ToffsetWires2B1.push(h[11]);break;case $.八分裂:this.offsetWires22.push(h[0]),this.offsetWires22.push(h[1]),this.offsetWires22.push(h[2]),this.offsetWires22.push(h[3]),this.offsetWires22.push(h[4]),this.offsetWires22.push(h[5]),this.offsetWires22.push(h[6]),this.offsetWires22.push(h[7]),this.ToffsetWires2B1.push(h[8]),this.ToffsetWires2B1.push(h[9]),this.ToffsetWires2B1.push(h[10]),this.ToffsetWires2B1.push(h[11]),this.ToffsetWires2B1.push(h[12]),this.ToffsetWires2B1.push(h[13]),this.ToffsetWires2B1.push(h[14]),this.ToffsetWires2B1.push(h[15]);break}else switch(this.LineInfo.Wairnum){case $.单分裂:const d=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r);this.offsetWires22.push(d),this.ToffsetWires2B2.push(d);break;case $.双分裂:const p=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),m=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r);this.offsetWires22.push(p),this.offsetWires22.push(m),this.ToffsetWires2B2.push(p),this.ToffsetWires2B2.push(m);break;case $.四分裂:const T=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),y=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),w=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),A=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r);this.offsetWires22.push(T),this.offsetWires22.push(y),this.offsetWires22.push(w),this.offsetWires22.push(A),this.ToffsetWires2B2.push(T),this.ToffsetWires2B2.push(y),this.ToffsetWires2B2.push(w),this.ToffsetWires2B2.push(A);break;case $.六分裂:const b=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),E=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),D=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),O=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r),B=Q(i,new u(c.InsulatorPoint[4].X*-1,c.InsulatorPoint[4].Y,c.InsulatorPoint[4].Z),r),z=Q(i,new u(c.InsulatorPoint[5].X*-1,c.InsulatorPoint[5].Y,c.InsulatorPoint[5].Z),r);this.offsetWires22.push(b),this.offsetWires22.push(E),this.offsetWires22.push(D),this.offsetWires22.push(O),this.offsetWires22.push(B),this.offsetWires22.push(z),this.ToffsetWires2B2.push(b),this.ToffsetWires2B2.push(E),this.ToffsetWires2B2.push(D),this.ToffsetWires2B2.push(O),this.ToffsetWires2B2.push(B),this.ToffsetWires2B2.push(z);break;case $.八分裂:const F=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),N=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),k=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),U=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r),j=Q(i,new u(c.InsulatorPoint[4].X*-1,c.InsulatorPoint[4].Y,c.InsulatorPoint[4].Z),r),Y=Q(i,new u(c.InsulatorPoint[5].X*-1,c.InsulatorPoint[5].Y,c.InsulatorPoint[5].Z),r),s=Q(i,new u(c.InsulatorPoint[6].X*-1,c.InsulatorPoint[6].Y,c.InsulatorPoint[6].Z),r),x=Q(i,new u(c.InsulatorPoint[7].X*-1,c.InsulatorPoint[7].Y,c.InsulatorPoint[7].Z),r);this.offsetWires22.push(F),this.offsetWires22.push(N),this.offsetWires22.push(k),this.offsetWires22.push(U),this.offsetWires22.push(j),this.offsetWires22.push(Y),this.offsetWires22.push(s),this.offsetWires22.push(x),this.ToffsetWires2B2.push(F),this.ToffsetWires2B2.push(N),this.ToffsetWires2B2.push(k),this.ToffsetWires2B2.push(U),this.ToffsetWires2B2.push(j),this.ToffsetWires2B2.push(Y),this.ToffsetWires2B2.push(s),this.ToffsetWires2B2.push(x);break}else if(c.type==Ht.跳线串)switch(this.LineInfo.Wairnum){case $.单分裂:this.ToffsetWires2B1.push(h[0]),this.ToffsetWires2B2.push(h[0]);break;case $.双分裂:this.ToffsetWires2B1.push(h[0]),this.ToffsetWires2B1.push(h[1]),this.ToffsetWires2B2.push(h[2]),this.ToffsetWires2B2.push(h[3]);break;case $.四分裂:this.ToffsetWires2B1.push(h[0]),this.ToffsetWires2B1.push(h[1]),this.ToffsetWires2B1.push(h[2]),this.ToffsetWires2B1.push(h[3]),this.ToffsetWires2B2.push(h[4]),this.ToffsetWires2B2.push(h[5]),this.ToffsetWires2B2.push(h[6]),this.ToffsetWires2B2.push(h[7]);break;case $.六分裂:this.ToffsetWires2B1.push(h[0]),this.ToffsetWires2B1.push(h[1]),this.ToffsetWires2B1.push(h[2]),this.ToffsetWires2B1.push(h[3]),this.ToffsetWires2B1.push(h[4]),this.ToffsetWires2B1.push(h[5]),this.ToffsetWires2B2.push(h[6]),this.ToffsetWires2B2.push(h[7]),this.ToffsetWires2B2.push(h[8]),this.ToffsetWires2B2.push(h[9]),this.ToffsetWires2B2.push(h[10]),this.ToffsetWires2B2.push(h[11]);break;case $.八分裂:this.ToffsetWires2B1.push(h[0]),this.ToffsetWires2B1.push(h[1]),this.ToffsetWires2B1.push(h[2]),this.ToffsetWires2B1.push(h[3]),this.ToffsetWires2B1.push(h[4]),this.ToffsetWires2B1.push(h[5]),this.ToffsetWires2B1.push(h[6]),this.ToffsetWires2B1.push(h[7]),this.ToffsetWires2B2.push(h[8]),this.ToffsetWires2B2.push(h[9]),this.ToffsetWires2B2.push(h[10]),this.ToffsetWires2B2.push(h[11]),this.ToffsetWires2B2.push(h[12]),this.ToffsetWires2B2.push(h[13]),this.ToffsetWires2B2.push(h[14]),this.ToffsetWires2B2.push(h[15]);break}break;case nn.C相:if(c.type==Ht.耐张串)if(c.WairFX=="进")switch(this.LineInfo.Wairnum){case $.单分裂:this.offsetWires23.push(h[0]),this.ToffsetWires2C1.push(h[0]);break;case $.双分裂:this.offsetWires23.push(h[0]),this.offsetWires23.push(h[1]),this.ToffsetWires2C1.push(h[2]),this.ToffsetWires2C1.push(h[3]);break;case $.四分裂:this.offsetWires23.push(h[0]),this.offsetWires23.push(h[1]),this.offsetWires23.push(h[2]),this.offsetWires23.push(h[3]),this.ToffsetWires2C1.push(h[4]),this.ToffsetWires2C1.push(h[5]),this.ToffsetWires2C1.push(h[6]),this.ToffsetWires2C1.push(h[7]);break;case $.六分裂:this.offsetWires23.push(h[0]),this.offsetWires23.push(h[1]),this.offsetWires23.push(h[2]),this.offsetWires23.push(h[3]),this.offsetWires23.push(h[4]),this.offsetWires23.push(h[5]),this.ToffsetWires2C1.push(h[6]),this.ToffsetWires2C1.push(h[7]),this.ToffsetWires2C1.push(h[8]),this.ToffsetWires2C1.push(h[9]),this.ToffsetWires2C1.push(h[10]),this.ToffsetWires2C1.push(h[11]);break;case $.八分裂:this.offsetWires23.push(h[0]),this.offsetWires23.push(h[1]),this.offsetWires23.push(h[2]),this.offsetWires23.push(h[3]),this.offsetWires23.push(h[4]),this.offsetWires23.push(h[5]),this.offsetWires23.push(h[6]),this.offsetWires23.push(h[7]),this.ToffsetWires2C1.push(h[8]),this.ToffsetWires2C1.push(h[9]),this.ToffsetWires2C1.push(h[10]),this.ToffsetWires2C1.push(h[11]),this.ToffsetWires2C1.push(h[12]),this.ToffsetWires2C1.push(h[13]),this.ToffsetWires2C1.push(h[14]),this.ToffsetWires2C1.push(h[15]);break}else switch(this.LineInfo.Wairnum){case $.单分裂:const d=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r);this.offsetWires23.push(d),this.ToffsetWires2C2.push(d);break;case $.双分裂:const p=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),m=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r);this.offsetWires23.push(p),this.offsetWires23.push(m),this.ToffsetWires2C2.push(p),this.ToffsetWires2C2.push(m);break;case $.四分裂:const T=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),y=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),w=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),A=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r);this.offsetWires23.push(T),this.offsetWires23.push(y),this.offsetWires23.push(w),this.offsetWires23.push(A),this.ToffsetWires2C2.push(T),this.ToffsetWires2C2.push(y),this.ToffsetWires2C2.push(w),this.ToffsetWires2C2.push(A);break;case $.六分裂:const b=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),E=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),D=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),O=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r),B=Q(i,new u(c.InsulatorPoint[4].X*-1,c.InsulatorPoint[4].Y,c.InsulatorPoint[4].Z),r),z=Q(i,new u(c.InsulatorPoint[5].X*-1,c.InsulatorPoint[5].Y,c.InsulatorPoint[5].Z),r);this.offsetWires23.push(b),this.offsetWires23.push(E),this.offsetWires23.push(D),this.offsetWires23.push(O),this.offsetWires23.push(B),this.offsetWires23.push(z),this.ToffsetWires2C2.push(b),this.ToffsetWires2C2.push(E),this.ToffsetWires2C2.push(D),this.ToffsetWires2C2.push(O),this.ToffsetWires2C2.push(B),this.ToffsetWires2C2.push(z);break;case $.八分裂:const F=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),N=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),k=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),U=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r),j=Q(i,new u(c.InsulatorPoint[4].X*-1,c.InsulatorPoint[4].Y,c.InsulatorPoint[4].Z),r),Y=Q(i,new u(c.InsulatorPoint[5].X*-1,c.InsulatorPoint[5].Y,c.InsulatorPoint[5].Z),r),s=Q(i,new u(c.InsulatorPoint[6].X*-1,c.InsulatorPoint[6].Y,c.InsulatorPoint[6].Z),r),x=Q(i,new u(c.InsulatorPoint[7].X*-1,c.InsulatorPoint[7].Y,c.InsulatorPoint[7].Z),r);this.offsetWires23.push(F),this.offsetWires23.push(N),this.offsetWires23.push(k),this.offsetWires23.push(U),this.offsetWires23.push(j),this.offsetWires23.push(Y),this.offsetWires23.push(s),this.offsetWires23.push(x),this.ToffsetWires2C2.push(F),this.ToffsetWires2C2.push(N),this.ToffsetWires2C2.push(k),this.ToffsetWires2C2.push(U),this.ToffsetWires2C2.push(j),this.ToffsetWires2C2.push(Y),this.ToffsetWires2C2.push(s),this.ToffsetWires2C2.push(x);break}else if(c.type==Ht.跳线串)switch(this.LineInfo.Wairnum){case $.单分裂:this.ToffsetWires2C1.push(h[0]),this.ToffsetWires2C2.push(h[0]);break;case $.双分裂:this.ToffsetWires2C1.push(h[0]),this.ToffsetWires2C1.push(h[1]),this.ToffsetWires2C2.push(h[2]),this.ToffsetWires2C2.push(h[3]);break;case $.四分裂:this.ToffsetWires2C1.push(h[0]),this.ToffsetWires2C1.push(h[1]),this.ToffsetWires2C1.push(h[2]),this.ToffsetWires2C1.push(h[3]),this.ToffsetWires2C2.push(h[4]),this.ToffsetWires2C2.push(h[5]),this.ToffsetWires2C2.push(h[6]),this.ToffsetWires2C2.push(h[7]);break;case $.六分裂:this.ToffsetWires2C1.push(h[0]),this.ToffsetWires2C1.push(h[1]),this.ToffsetWires2C1.push(h[2]),this.ToffsetWires2C1.push(h[3]),this.ToffsetWires2C1.push(h[4]),this.ToffsetWires2C1.push(h[5]),this.ToffsetWires2C2.push(h[6]),this.ToffsetWires2C2.push(h[7]),this.ToffsetWires2C2.push(h[8]),this.ToffsetWires2C2.push(h[9]),this.ToffsetWires2C2.push(h[10]),this.ToffsetWires2C2.push(h[11]);break;case $.八分裂:this.ToffsetWires2C1.push(h[0]),this.ToffsetWires2C1.push(h[1]),this.ToffsetWires2C1.push(h[2]),this.ToffsetWires2C1.push(h[3]),this.ToffsetWires2C1.push(h[4]),this.ToffsetWires2C1.push(h[5]),this.ToffsetWires2C1.push(h[6]),this.ToffsetWires2C1.push(h[7]),this.ToffsetWires2C2.push(h[8]),this.ToffsetWires2C2.push(h[9]),this.ToffsetWires2C2.push(h[10]),this.ToffsetWires2C2.push(h[11]),this.ToffsetWires2C2.push(h[12]),this.ToffsetWires2C2.push(h[13]),this.ToffsetWires2C2.push(h[14]),this.ToffsetWires2C2.push(h[15]);break}break}else switch(c.PhaseSequence){case nn.A相:h.forEach(d=>{this.offsetWires21.push(d)});break;case nn.B相:h.forEach(d=>{this.offsetWires22.push(d)});break;case nn.C相:h.forEach(d=>{this.offsetWires23.push(d)});break}else if(this.LineInfo.towers[o].type==$i.耐张塔)switch(f){case 11:this.offsetWires21.push(h[0]),this.ToffsetWires2A1.push(h[0]);break;case 12:this.ToffsetWires2A1.push(h[0]),this.ToffsetWires2A2.push(h[0]);break;case 13:const d=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r);this.offsetWires21.push(d),this.ToffsetWires2A2.push(d);break;case 14:this.offsetWires22.push(h[0]),this.ToffsetWires2B1.push(h[0]);break;case 15:this.ToffsetWires2B1.push(h[0]),this.ToffsetWires2B2.push(h[0]);break;case 16:const p=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r);this.offsetWires22.push(p),this.ToffsetWires2B2.push(p);break;case 17:this.offsetWires23.push(h[0]),this.ToffsetWires2C1.push(h[0]);break;case 18:this.ToffsetWires2C1.push(h[0]),this.ToffsetWires2C2.push(h[0]);break;case 19:const m=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r);this.offsetWires23.push(m),this.ToffsetWires2C2.push(m);break}else switch(f){case 5:h.forEach(d=>{this.offsetWires21.push(d)});break;case 6:h.forEach(d=>{this.offsetWires22.push(d)});break;case 7:h.forEach(d=>{this.offsetWires23.push(d)});break}break;case cr.地线:if(this.LineInfo.ISPhaseSequence)switch(c.PhaseSequence){case nn.地线1:this.offsetGrouundWires11.push(h[0]);break;case nn.地线2:this.offsetGrouundWires12.push(h[0]);break}else switch(f){case 0:this.offsetGrouundWires11.push(h[0]);break;case 1:this.offsetGrouundWires12.push(h[0]);break}break}f=f+1});debugger;if(this.offsetWires11.length>0&&o>0){const c=[],h=[],d=[],p=[],m=[],T=[],y=[],w=[];switch(this.LineInfo.Wairnum){case $.单分裂:this.offsetWires11.length>=2&&(c.push(this.offsetWires11[t]),c.push(this.offsetWires11[t-1]),this.offsetArcWires1A=W(c),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)));break;case $.双分裂:this.offsetWires11.length>=4&&(c.push(this.offsetWires11[t]),c.push(this.offsetWires11[t-2]),this.offsetArcWires1A=W(c),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires11[t+1]),h.push(this.offsetWires11[t-1]),this.offsetArcWires1A=W(h),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)));break;case $.四分裂:this.offsetWires11.length>=8&&(c.push(this.offsetWires11[t]),c.push(this.offsetWires11[t-4]),this.offsetArcWires1A=W(c),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires11[t+1]),h.push(this.offsetWires11[t-3]),this.offsetArcWires1A=W(h),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires11[t+2]),d.push(this.offsetWires11[t-2]),this.offsetArcWires1A=W(d),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires11[t+3]),p.push(this.offsetWires11[t-1]),this.offsetArcWires1A=W(p),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)));break;case $.六分裂:this.offsetWires11.length>=12&&(c.push(this.offsetWires11[t]),c.push(this.offsetWires11[t-6]),this.offsetArcWires1A=W(c),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires11[t+1]),h.push(this.offsetWires11[t-5]),this.offsetArcWires1A=W(h),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires11[t+2]),d.push(this.offsetWires11[t-4]),this.offsetArcWires1A=W(d),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires11[t+3]),p.push(this.offsetWires11[t-3]),this.offsetArcWires1A=W(p),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),m.push(this.offsetWires11[t+4]),m.push(this.offsetWires11[t-2]),this.offsetArcWires1A=W(m),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A5"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),T.push(this.offsetWires11[t+5]),T.push(this.offsetWires11[t-1]),this.offsetArcWires1A=W(T),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A6"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)));break;case $.八分裂:this.offsetWires11.length>=16&&(c.push(this.offsetWires11[t]),c.push(this.offsetWires11[t-8]),this.offsetArcWires1A=W(c),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires11[t+1]),h.push(this.offsetWires11[t-7]),this.offsetArcWires1A=W(h),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires11[t+2]),d.push(this.offsetWires11[t-6]),this.offsetArcWires1A=W(d),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires11[t+3]),p.push(this.offsetWires11[t-5]),this.offsetArcWires1A=W(p),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),m.push(this.offsetWires11[t+4]),m.push(this.offsetWires11[t-4]),this.offsetArcWires1A=W(m),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A5"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),T.push(this.offsetWires11[t+5]),T.push(this.offsetWires11[t-3]),this.offsetArcWires1A=W(T),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A6"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),y.push(this.offsetWires11[t+6]),y.push(this.offsetWires11[t-2]),this.offsetArcWires1A=W(y),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A7"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),w.push(this.offsetWires11[t+7]),w.push(this.offsetWires11[t-1]),this.offsetArcWires1A=W(w),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A8"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)));break}}if(this.offsetWires12.length>0&&o>0){const c=[],h=[],d=[],p=[],m=[],T=[],y=[],w=[];switch(this.LineInfo.Wairnum){case $.单分裂:c.push(this.offsetWires12[t]),c.push(this.offsetWires12[t-1]),this.offsetArcWires1B=W(c),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.双分裂:c.push(this.offsetWires12[t]),c.push(this.offsetWires12[t-2]),this.offsetArcWires1B=W(c),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires12[t+1]),h.push(this.offsetWires12[t-1]),this.offsetArcWires1B=W(h),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.四分裂:c.push(this.offsetWires12[t]),c.push(this.offsetWires12[t-4]),this.offsetArcWires1B=W(c),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires12[t+1]),h.push(this.offsetWires12[t-3]),this.offsetArcWires1B=W(h),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires12[t+2]),d.push(this.offsetWires12[t-2]),this.offsetArcWires1B=W(d),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires12[t+3]),p.push(this.offsetWires12[t-1]),this.offsetArcWires1B=W(p),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.六分裂:c.push(this.offsetWires12[t]),c.push(this.offsetWires12[t-6]),this.offsetArcWires1B=W(c),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires12[t+1]),h.push(this.offsetWires12[t-5]),this.offsetArcWires1B=W(h),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires12[t+2]),d.push(this.offsetWires12[t-4]),this.offsetArcWires1B=W(d),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires12[t+3]),p.push(this.offsetWires12[t-3]),this.offsetArcWires1B=W(p),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),m.push(this.offsetWires12[t+4]),m.push(this.offsetWires12[t-2]),this.offsetArcWires1B=W(m),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B5"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),T.push(this.offsetWires12[t+5]),T.push(this.offsetWires12[t-1]),this.offsetArcWires1B=W(T),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B6"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.八分裂:c.push(this.offsetWires12[t]),c.push(this.offsetWires12[t-8]),this.offsetArcWires1B=W(c),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires12[t+1]),h.push(this.offsetWires12[t-7]),this.offsetArcWires1B=W(h),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires12[t+2]),d.push(this.offsetWires12[t-6]),this.offsetArcWires1B=W(d),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires12[t+3]),p.push(this.offsetWires12[t-5]),this.offsetArcWires1B=W(p),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),m.push(this.offsetWires12[t+4]),m.push(this.offsetWires12[t-4]),this.offsetArcWires1B=W(m),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B5"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),T.push(this.offsetWires12[t+5]),T.push(this.offsetWires12[t-3]),this.offsetArcWires1B=W(T),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B6"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),y.push(this.offsetWires12[t+6]),y.push(this.offsetWires12[t-2]),this.offsetArcWires1B=W(y),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B7"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),w.push(this.offsetWires12[t+7]),w.push(this.offsetWires12[t-1]),this.offsetArcWires1B=W(w),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B8"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break}}if(this.offsetWires13.length>0&&o>0){const c=[],h=[],d=[],p=[],m=[],T=[],y=[],w=[];switch(this.LineInfo.Wairnum){case $.单分裂:c.push(this.offsetWires13[t]),c.push(this.offsetWires13[t-1]),this.offsetArcWires1C=W(c),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.双分裂:c.push(this.offsetWires13[t]),c.push(this.offsetWires13[t-2]),this.offsetArcWires1C=W(c),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires13[t+1]),h.push(this.offsetWires13[t-1]),this.offsetArcWires1C=W(h),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.四分裂:c.push(this.offsetWires13[t]),c.push(this.offsetWires13[t-4]),this.offsetArcWires1C=W(c),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires13[t+1]),h.push(this.offsetWires13[t-3]),this.offsetArcWires1C=W(h),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires13[t+2]),d.push(this.offsetWires13[t-2]),this.offsetArcWires1C=W(d),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires13[t+3]),p.push(this.offsetWires13[t-1]),this.offsetArcWires1C=W(p),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.六分裂:c.push(this.offsetWires13[t]),c.push(this.offsetWires13[t-6]),this.offsetArcWires1C=W(c),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires13[t+1]),h.push(this.offsetWires13[t-5]),this.offsetArcWires1C=W(h),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires13[t+2]),d.push(this.offsetWires13[t-4]),this.offsetArcWires1C=W(d),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires13[t+3]),p.push(this.offsetWires13[t-3]),this.offsetArcWires1C=W(p),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),m.push(this.offsetWires13[t+4]),m.push(this.offsetWires13[t-2]),this.offsetArcWires1C=W(m),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C5"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),T.push(this.offsetWires13[t+5]),T.push(this.offsetWires13[t-1]),this.offsetArcWires1C=W(T),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C6"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.八分裂:c.push(this.offsetWires13[t]),c.push(this.offsetWires13[t-8]),this.offsetArcWires1C=W(c),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires13[t+1]),h.push(this.offsetWires13[t-7]),this.offsetArcWires1C=W(h),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires13[t+2]),d.push(this.offsetWires13[t-6]),this.offsetArcWires1C=W(d),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires13[t+3]),p.push(this.offsetWires13[t-5]),this.offsetArcWires1C=W(p),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),m.push(this.offsetWires13[t+4]),m.push(this.offsetWires13[t-4]),this.offsetArcWires1C=W(m),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C5"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),T.push(this.offsetWires13[t+5]),T.push(this.offsetWires13[t-3]),this.offsetArcWires1C=W(T),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C6"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),y.push(this.offsetWires13[t+6]),y.push(this.offsetWires13[t-2]),this.offsetArcWires1C=W(y),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C7"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),w.push(this.offsetWires13[t+7]),w.push(this.offsetWires13[t-1]),this.offsetArcWires1C=W(w),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C8"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break}}if(this.offsetWires21.length>0&&o>0){const c=[],h=[],d=[],p=[],m=[],T=[],y=[],w=[];switch(this.LineInfo.Wairnum){case $.单分裂:c.push(this.offsetWires21[t]),c.push(this.offsetWires21[t-1]),this.offsetArcWires2A=W(c),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.双分裂:c.push(this.offsetWires21[t]),c.push(this.offsetWires21[t-2]),this.offsetArcWires2A=W(c),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires21[t+1]),h.push(this.offsetWires21[t-1]),this.offsetArcWires2A=W(h),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.四分裂:c.push(this.offsetWires21[t]),c.push(this.offsetWires21[t-4]),this.offsetArcWires2A=W(c),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires21[t+1]),h.push(this.offsetWires21[t-3]),this.offsetArcWires2A=W(h),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires21[t+2]),d.push(this.offsetWires21[t-2]),this.offsetArcWires2A=W(d),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires21[t+3]),p.push(this.offsetWires21[t-1]),this.offsetArcWires2A=W(p),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.六分裂:c.push(this.offsetWires21[t]),c.push(this.offsetWires21[t-6]),this.offsetArcWires2A=W(c),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires21[t+1]),h.push(this.offsetWires21[t-5]),this.offsetArcWires2A=W(h),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires21[t+2]),d.push(this.offsetWires21[t-4]),this.offsetArcWires2A=W(d),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires21[t+3]),p.push(this.offsetWires21[t-3]),this.offsetArcWires2A=W(p),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),m.push(this.offsetWires21[t+4]),m.push(this.offsetWires21[t-2]),this.offsetArcWires2A=W(m),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A5"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),T.push(this.offsetWires21[t+5]),T.push(this.offsetWires21[t-1]),this.offsetArcWires2A=W(T),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A6"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.八分裂:c.push(this.offsetWires21[t]),c.push(this.offsetWires21[t-8]),this.offsetArcWires2A=W(c),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires21[t+1]),h.push(this.offsetWires21[t-7]),this.offsetArcWires2A=W(h),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires21[t+2]),d.push(this.offsetWires21[t-6]),this.offsetArcWires2A=W(d),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires21[t+3]),p.push(this.offsetWires21[t-5]),this.offsetArcWires2A=W(p),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),m.push(this.offsetWires21[t+4]),m.push(this.offsetWires21[t-4]),this.offsetArcWires2A=W(m),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A5"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),T.push(this.offsetWires21[t+5]),T.push(this.offsetWires21[t-3]),this.offsetArcWires2A=W(T),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A6"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),y.push(this.offsetWires21[t+6]),y.push(this.offsetWires21[t-2]),this.offsetArcWires2A=W(y),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A7"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),w.push(this.offsetWires21[t+7]),w.push(this.offsetWires21[t-1]),this.offsetArcWires2A=W(w),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A8"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break}}if(this.offsetWires22.length>0&&o>0){const c=[],h=[],d=[],p=[],m=[],T=[],y=[],w=[];switch(this.LineInfo.Wairnum){case $.单分裂:c.push(this.offsetWires22[t]),c.push(this.offsetWires22[t-1]),this.offsetArcWires2B=W(c),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.双分裂:c.push(this.offsetWires22[t]),c.push(this.offsetWires22[t-2]),this.offsetArcWires2B=W(c),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires22[t+1]),h.push(this.offsetWires22[t-1]),this.offsetArcWires2B=W(h),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.四分裂:c.push(this.offsetWires22[t]),c.push(this.offsetWires22[t-4]),this.offsetArcWires2B=W(c),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires22[t+1]),h.push(this.offsetWires22[t-3]),this.offsetArcWires2B=W(h),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires22[t+2]),d.push(this.offsetWires22[t-2]),this.offsetArcWires2B=W(d),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires22[t+3]),p.push(this.offsetWires22[t-1]),this.offsetArcWires2B=W(p),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.六分裂:c.push(this.offsetWires22[t]),c.push(this.offsetWires22[t-6]),this.offsetArcWires2B=W(c),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires22[t+1]),h.push(this.offsetWires22[t-5]),this.offsetArcWires2B=W(h),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires22[t+2]),d.push(this.offsetWires22[t-4]),this.offsetArcWires2B=W(d),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires22[t+3]),p.push(this.offsetWires22[t-3]),this.offsetArcWires2B=W(p),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),m.push(this.offsetWires22[t+4]),m.push(this.offsetWires22[t-2]),this.offsetArcWires2B=W(m),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B5"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),T.push(this.offsetWires22[t+5]),T.push(this.offsetWires22[t-1]),this.offsetArcWires2B=W(T),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B6"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.八分裂:c.push(this.offsetWires22[t]),c.push(this.offsetWires22[t-8]),this.offsetArcWires2B=W(c),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires22[t+1]),h.push(this.offsetWires22[t-7]),this.offsetArcWires2B=W(h),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires22[t+2]),d.push(this.offsetWires22[t-6]),this.offsetArcWires2B=W(d),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires22[t+3]),p.push(this.offsetWires22[t-5]),this.offsetArcWires2B=W(p),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),m.push(this.offsetWires22[t+4]),m.push(this.offsetWires22[t-4]),this.offsetArcWires2B=W(m),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B5"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),T.push(this.offsetWires22[t+5]),T.push(this.offsetWires22[t-3]),this.offsetArcWires2B=W(T),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B6"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),y.push(this.offsetWires22[t+6]),y.push(this.offsetWires22[t-2]),this.offsetArcWires2B=W(y),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B7"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),w.push(this.offsetWires22[t+7]),w.push(this.offsetWires22[t-1]),this.offsetArcWires2B=W(w),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B8"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break}}if(this.offsetWires23.length>0&&o>0){const c=[],h=[],d=[],p=[],m=[],T=[],y=[],w=[];switch(this.LineInfo.Wairnum){case $.单分裂:c.push(this.offsetWires23[t]),c.push(this.offsetWires23[t-1]),this.offsetArcWires2C=W(c),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.双分裂:c.push(this.offsetWires23[t]),c.push(this.offsetWires23[t-2]),this.offsetArcWires2C=W(c),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires23[t+1]),h.push(this.offsetWires23[t-1]),this.offsetArcWires2C=W(h),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.四分裂:c.push(this.offsetWires23[t]),c.push(this.offsetWires23[t-4]),this.offsetArcWires2C=W(c),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires23[t+1]),h.push(this.offsetWires23[t-3]),this.offsetArcWires2C=W(h),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires23[t+2]),d.push(this.offsetWires23[t-2]),this.offsetArcWires2C=W(d),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires23[t+3]),p.push(this.offsetWires23[t-1]),this.offsetArcWires2C=W(p),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.六分裂:c.push(this.offsetWires23[t]),c.push(this.offsetWires23[t-6]),this.offsetArcWires2C=W(c),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires23[t+1]),h.push(this.offsetWires23[t-5]),this.offsetArcWires2C=W(h),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires23[t+2]),d.push(this.offsetWires23[t-4]),this.offsetArcWires2C=W(d),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires23[t+3]),p.push(this.offsetWires23[t-3]),this.offsetArcWires2C=W(p),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),m.push(this.offsetWires23[t+4]),m.push(this.offsetWires23[t-2]),this.offsetArcWires2C=W(m),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C5"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),T.push(this.offsetWires23[t+5]),T.push(this.offsetWires23[t-1]),this.offsetArcWires2C=W(T),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C6"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.八分裂:c.push(this.offsetWires23[t]),c.push(this.offsetWires23[t-8]),this.offsetArcWires2C=W(c),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires23[t+1]),h.push(this.offsetWires23[t-7]),this.offsetArcWires2C=W(h),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires23[t+2]),d.push(this.offsetWires23[t-6]),this.offsetArcWires2C=W(d),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires23[t+3]),p.push(this.offsetWires23[t-5]),this.offsetArcWires2C=W(p),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),m.push(this.offsetWires23[t+4]),m.push(this.offsetWires23[t-4]),this.offsetArcWires2C=W(m),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C5"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),T.push(this.offsetWires23[t+5]),T.push(this.offsetWires23[t-3]),this.offsetArcWires2C=W(T),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C6"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),y.push(this.offsetWires23[t+6]),y.push(this.offsetWires23[t-2]),this.offsetArcWires2C=W(y),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C7"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),w.push(this.offsetWires23[t+7]),w.push(this.offsetWires23[t-1]),this.offsetArcWires2C=W(w),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C8"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break}}if(this.offsetGrouundWires11.length>1){const c=[];c.push(this.offsetGrouundWires11[o]),c.push(this.offsetGrouundWires11[o-1]);const h=[];h.push(this.offsetGrouundWires12[o]),h.push(this.offsetGrouundWires12[o-1]),this.offsetGrouundWires1=W(c,2),this.offsetGrouundWires2=W(h,2),this.entityCollection2.add(v(this.offsetGrouundWires1,"地线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireD1Color)),this.entityCollection2.add(v(this.offsetGrouundWires2,"地线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireD2Color))}if(this.LineInfo.towers[o].type==$i.耐张塔){switch(this.LineInfo.Wairnum){case $.单分裂:t=t+2,n=n+2;break;case $.双分裂:t=t+4,n=n+4;break;case $.四分裂:t=t+8,n=n+8;break;case $.六分裂:t=t+12,n=n+12;break;case $.八分裂:t=t+16,n=n+16;break}if(this.ToffsetWires1A1.length>1&&this.ToffsetWires1A2.length>1){const c=[],h=[],d=[],p=[],m=[],T=[],y=[],w=[],A=[],b=[],E=[],D=[],O=[],B=[],z=[],F=[];switch(this.LineInfo.Wairnum){case $.单分裂:this.ToffsetWires1A1.length>=2&&(c.push(this.ToffsetWires1A1[n-2]),c.push(this.ToffsetWires1A1[n-1]),this.ToffsetArcWires1A=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1A2.length>=2&&(A.push(this.ToffsetWires1A2[n-2]),A.push(this.ToffsetWires1A2[n-1]),this.ToffsetArcWires2A=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.双分裂:this.ToffsetWires1A1.length>=4&&(c.push(this.ToffsetWires1A1[n-4]),c.push(this.ToffsetWires1A1[n-2]),this.ToffsetArcWires1A=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires1A1[n-3]),h.push(this.ToffsetWires1A1[n-1]),this.ToffsetArcWires1A=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1A2.length>=4&&(A.push(this.ToffsetWires1A2[n-4]),A.push(this.ToffsetWires1A2[n-2]),this.ToffsetArcWires2A=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires1A2[n-3]),b.push(this.ToffsetWires1A2[n-1]),this.ToffsetArcWires2A=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.四分裂:this.ToffsetWires1A1.length>=8&&(c.push(this.ToffsetWires1A1[n-8]),c.push(this.ToffsetWires1A1[n-4]),this.ToffsetArcWires1A=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires1A1[n-7]),h.push(this.ToffsetWires1A1[n-3]),this.ToffsetArcWires1A=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires1A1[n-6]),d.push(this.ToffsetWires1A1[n-2]),this.ToffsetArcWires1A=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires1A1[n-5]),p.push(this.ToffsetWires1A1[n-1]),this.ToffsetArcWires1A=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1A2.length>=8&&(A.push(this.ToffsetWires1A2[n-8]),A.push(this.ToffsetWires1A2[n-4]),this.ToffsetArcWires2A=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires1A2[n-7]),b.push(this.ToffsetWires1A2[n-3]),this.ToffsetArcWires2A=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires1A2[n-6]),E.push(this.ToffsetWires1A2[n-2]),this.ToffsetArcWires2A=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires1A2[n-5]),D.push(this.ToffsetWires1A2[n-1]),this.ToffsetArcWires2A=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.六分裂:this.ToffsetWires1A1.length>=12&&(c.push(this.ToffsetWires1A1[n-12]),c.push(this.ToffsetWires1A1[n-6]),this.ToffsetArcWires1A=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires1A1[n-11]),h.push(this.ToffsetWires1A1[n-5]),this.ToffsetArcWires1A=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires1A1[n-10]),d.push(this.ToffsetWires1A1[n-4]),this.ToffsetArcWires1A=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires1A1[n-9]),p.push(this.ToffsetWires1A1[n-3]),this.ToffsetArcWires1A=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires1A1[n-8]),m.push(this.ToffsetWires1A1[n-2]),this.ToffsetArcWires1A=W(m,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),T.push(this.ToffsetWires1A1[n-7]),T.push(this.ToffsetWires1A1[n-1]),this.ToffsetArcWires1A=W(T,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1A2.length>=12&&(A.push(this.ToffsetWires1A2[n-12]),A.push(this.ToffsetWires1A2[n-6]),this.ToffsetArcWires2A=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires1A2[n-11]),b.push(this.ToffsetWires1A2[n-5]),this.ToffsetArcWires2A=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires1A2[n-10]),E.push(this.ToffsetWires1A2[n-4]),this.ToffsetArcWires2A=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires1A2[n-9]),D.push(this.ToffsetWires1A2[n-3]),this.ToffsetArcWires2A=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),O.push(this.ToffsetWires1A2[n-8]),O.push(this.ToffsetWires1A2[n-2]),this.ToffsetArcWires2A=W(O,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1A2[n-7]),B.push(this.ToffsetWires1A2[n-1]),this.ToffsetArcWires2A=W(B,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.八分裂:this.ToffsetWires1A1.length>=16&&(c.push(this.ToffsetWires1A1[n-16]),c.push(this.ToffsetWires1A1[n-8]),this.ToffsetArcWires1A=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires1A1[n-15]),h.push(this.ToffsetWires1A1[n-7]),this.ToffsetArcWires1A=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires1A1[n-14]),d.push(this.ToffsetWires1A1[n-6]),this.ToffsetArcWires1A=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires1A1[n-13]),p.push(this.ToffsetWires1A1[n-5]),this.ToffsetArcWires1A=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires1A1[n-12]),m.push(this.ToffsetWires1A1[n-4]),this.ToffsetArcWires1A=W(m,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),T.push(this.ToffsetWires1A1[n-11]),T.push(this.ToffsetWires1A1[n-3]),this.ToffsetArcWires1A=W(T,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1A1[n-10]),y.push(this.ToffsetWires1A1[n-2]),this.ToffsetArcWires1A=W(y,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线7"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),w.push(this.ToffsetWires1A1[n-9]),w.push(this.ToffsetWires1A1[n-1]),this.ToffsetArcWires1A=W(w,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线8"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1A2.length>=16&&(A.push(this.ToffsetWires1A2[n-16]),A.push(this.ToffsetWires1A2[n-8]),this.ToffsetArcWires2A=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires1A2[n-15]),b.push(this.ToffsetWires1A2[n-7]),this.ToffsetArcWires2A=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires1A2[n-14]),E.push(this.ToffsetWires1A2[n-6]),this.ToffsetArcWires2A=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires1A2[n-13]),D.push(this.ToffsetWires1A2[n-5]),this.ToffsetArcWires2A=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),O.push(this.ToffsetWires1A2[n-12]),O.push(this.ToffsetWires1A2[n-4]),this.ToffsetArcWires2A=W(O,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1A2[n-11]),B.push(this.ToffsetWires1A2[n-3]),this.ToffsetArcWires2A=W(B,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),z.push(this.ToffsetWires1A2[n-10]),z.push(this.ToffsetWires1A2[n-2]),this.ToffsetArcWires2A=W(z,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线7"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),F.push(this.ToffsetWires1A2[n-9]),F.push(this.ToffsetWires1A2[n-1]),this.ToffsetArcWires2A=W(F,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线8"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break}}if(this.ToffsetWires1B1.length>1&&this.ToffsetWires1B2.length>1){const c=[],h=[],d=[],p=[],m=[],T=[],y=[],w=[],A=[],b=[],E=[],D=[],O=[],B=[],z=[],F=[];switch(this.LineInfo.Wairnum){case $.单分裂:this.ToffsetWires1B1.length>=2&&(c.push(this.ToffsetWires1B1[n-2]),c.push(this.ToffsetWires1B1[n-1]),this.ToffsetArcWires1B=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1B2.length>=2&&(A.push(this.ToffsetWires1B2[n-2]),A.push(this.ToffsetWires1B2[n-1]),this.ToffsetArcWires2B=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.双分裂:this.ToffsetWires1B1.length>=4&&(c.push(this.ToffsetWires1B1[n-4]),c.push(this.ToffsetWires1B1[n-2]),this.ToffsetArcWires1B=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires1B1[n-3]),h.push(this.ToffsetWires1B1[n-1]),this.ToffsetArcWires1B=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1B2.length>=4&&(A.push(this.ToffsetWires1B2[n-4]),A.push(this.ToffsetWires1B2[n-2]),this.ToffsetArcWires2B=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires1B2[n-3]),b.push(this.ToffsetWires1B2[n-1]),this.ToffsetArcWires2B=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.四分裂:this.ToffsetWires1B1.length>=8&&(c.push(this.ToffsetWires1B1[n-8]),c.push(this.ToffsetWires1B1[n-4]),this.ToffsetArcWires1B=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires1B1[n-7]),h.push(this.ToffsetWires1B1[n-3]),this.ToffsetArcWires1B=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires1B1[n-6]),d.push(this.ToffsetWires1B1[n-2]),this.ToffsetArcWires1B=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires1B1[n-5]),p.push(this.ToffsetWires1B1[n-1]),this.ToffsetArcWires1B=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1B2.length>=8&&(A.push(this.ToffsetWires1B2[n-8]),A.push(this.ToffsetWires1B2[n-4]),this.ToffsetArcWires2B=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires1B2[n-7]),b.push(this.ToffsetWires1B2[n-3]),this.ToffsetArcWires2B=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires1B2[n-6]),E.push(this.ToffsetWires1B2[n-2]),this.ToffsetArcWires2B=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires1B2[n-5]),D.push(this.ToffsetWires1B2[n-1]),this.ToffsetArcWires2B=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.六分裂:this.ToffsetWires1B1.length>=12&&(c.push(this.ToffsetWires1B1[n-12]),c.push(this.ToffsetWires1B1[n-6]),this.ToffsetArcWires1B=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires1B1[n-11]),h.push(this.ToffsetWires1B1[n-5]),this.ToffsetArcWires1B=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires1B1[n-10]),d.push(this.ToffsetWires1B1[n-4]),this.ToffsetArcWires1B=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires1B1[n-9]),p.push(this.ToffsetWires1B1[n-3]),this.ToffsetArcWires1B=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires1B1[n-8]),m.push(this.ToffsetWires1B1[n-2]),this.ToffsetArcWires1B=W(m,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),T.push(this.ToffsetWires1B1[n-7]),T.push(this.ToffsetWires1B1[n-1]),this.ToffsetArcWires1B=W(T,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1B2.length>=12&&(A.push(this.ToffsetWires1B2[n-12]),A.push(this.ToffsetWires1B2[n-6]),this.ToffsetArcWires2B=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires1B2[n-11]),b.push(this.ToffsetWires1B2[n-5]),this.ToffsetArcWires2B=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires1B2[n-10]),E.push(this.ToffsetWires1B2[n-4]),this.ToffsetArcWires2B=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires1B2[n-9]),D.push(this.ToffsetWires1B2[n-3]),this.ToffsetArcWires2B=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),O.push(this.ToffsetWires1B2[n-8]),O.push(this.ToffsetWires1B2[n-2]),this.ToffsetArcWires2B=W(O,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1B2[n-7]),B.push(this.ToffsetWires1B2[n-1]),this.ToffsetArcWires2B=W(B,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.八分裂:this.ToffsetWires1B1.length>=16&&(c.push(this.ToffsetWires1B1[n-16]),c.push(this.ToffsetWires1B1[n-8]),this.ToffsetArcWires1B=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires1B1[n-15]),h.push(this.ToffsetWires1B1[n-7]),this.ToffsetArcWires1B=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires1B1[n-14]),d.push(this.ToffsetWires1B1[n-6]),this.ToffsetArcWires1B=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires1B1[n-13]),p.push(this.ToffsetWires1B1[n-5]),this.ToffsetArcWires1B=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires1B1[n-12]),m.push(this.ToffsetWires1B1[n-4]),this.ToffsetArcWires1B=W(m,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),T.push(this.ToffsetWires1B1[n-11]),T.push(this.ToffsetWires1B1[n-3]),this.ToffsetArcWires1B=W(T,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1B1[n-10]),y.push(this.ToffsetWires1B1[n-2]),this.ToffsetArcWires1B=W(y,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线7"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),w.push(this.ToffsetWires1B1[n-9]),w.push(this.ToffsetWires1B1[n-1]),this.ToffsetArcWires1B=W(w,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线8"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1B2.length>=16&&(A.push(this.ToffsetWires1B2[n-16]),A.push(this.ToffsetWires1B2[n-8]),this.ToffsetArcWires2B=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires1B2[n-15]),b.push(this.ToffsetWires1B2[n-7]),this.ToffsetArcWires2B=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires1B2[n-14]),E.push(this.ToffsetWires1B2[n-6]),this.ToffsetArcWires2B=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires1B2[n-13]),D.push(this.ToffsetWires1B2[n-5]),this.ToffsetArcWires2B=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),O.push(this.ToffsetWires1B2[n-12]),O.push(this.ToffsetWires1B2[n-4]),this.ToffsetArcWires2B=W(O,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1B2[n-11]),B.push(this.ToffsetWires1B2[n-3]),this.ToffsetArcWires2B=W(B,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),z.push(this.ToffsetWires1B2[n-10]),z.push(this.ToffsetWires1B2[n-2]),this.ToffsetArcWires2B=W(z,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线7"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),F.push(this.ToffsetWires1B2[n-9]),F.push(this.ToffsetWires1B2[n-1]),this.ToffsetArcWires2B=W(F,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线8"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break}}debugger;if(this.ToffsetWires1C1.length>1&&this.ToffsetWires1C2.length>1){const c=[],h=[],d=[],p=[],m=[],T=[],y=[],w=[],A=[],b=[],E=[],D=[],O=[],B=[],z=[],F=[];switch(this.LineInfo.Wairnum){case $.单分裂:this.ToffsetWires1C1.length>=2&&(c.push(this.ToffsetWires1C1[n-2]),c.push(this.ToffsetWires1C1[n-1]),this.ToffsetArcWires1C=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1C2.length>=2&&(A.push(this.ToffsetWires1C2[n-2]),A.push(this.ToffsetWires1C2[n-1]),this.ToffsetArcWires2C=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.双分裂:this.ToffsetWires1C1.length>=4&&(c.push(this.ToffsetWires1C1[n-4]),c.push(this.ToffsetWires1C1[n-2]),this.ToffsetArcWires1C=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires1C1[n-3]),h.push(this.ToffsetWires1C1[n-1]),this.ToffsetArcWires1C=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1C2.length>=4&&(A.push(this.ToffsetWires1C2[n-4]),A.push(this.ToffsetWires1C2[n-2]),this.ToffsetArcWires2C=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires1C2[n-3]),b.push(this.ToffsetWires1C2[n-1]),this.ToffsetArcWires2C=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.四分裂:this.ToffsetWires1C1.length>=8&&(c.push(this.ToffsetWires1C1[n-8]),c.push(this.ToffsetWires1C1[n-4]),this.ToffsetArcWires1C=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires1C1[n-7]),h.push(this.ToffsetWires1C1[n-3]),this.ToffsetArcWires1C=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires1C1[n-6]),d.push(this.ToffsetWires1C1[n-2]),this.ToffsetArcWires1C=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires1C1[n-5]),p.push(this.ToffsetWires1C1[n-1]),this.ToffsetArcWires1C=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1C2.length>=8&&(A.push(this.ToffsetWires1C2[n-8]),A.push(this.ToffsetWires1C2[n-4]),this.ToffsetArcWires2C=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires1C2[n-7]),b.push(this.ToffsetWires1C2[n-3]),this.ToffsetArcWires2C=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires1C2[n-6]),E.push(this.ToffsetWires1C2[n-2]),this.ToffsetArcWires2C=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires1C2[n-5]),D.push(this.ToffsetWires1C2[n-1]),this.ToffsetArcWires2C=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.六分裂:this.ToffsetWires1C1.length>=12&&(c.push(this.ToffsetWires1C1[n-12]),c.push(this.ToffsetWires1C1[n-6]),this.ToffsetArcWires1C=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires1C1[n-11]),h.push(this.ToffsetWires1C1[n-5]),this.ToffsetArcWires1C=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires1C1[n-10]),d.push(this.ToffsetWires1C1[n-4]),this.ToffsetArcWires1C=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires1C1[n-9]),p.push(this.ToffsetWires1C1[n-3]),this.ToffsetArcWires1C=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires1C1[n-8]),m.push(this.ToffsetWires1C1[n-2]),this.ToffsetArcWires1C=W(m,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),T.push(this.ToffsetWires1C1[n-7]),T.push(this.ToffsetWires1C1[n-1]),this.ToffsetArcWires1C=W(T,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1C2.length>=12&&(A.push(this.ToffsetWires1C2[n-12]),A.push(this.ToffsetWires1C2[n-6]),this.ToffsetArcWires2C=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires1C2[n-11]),b.push(this.ToffsetWires1C2[n-5]),this.ToffsetArcWires2C=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires1C2[n-10]),E.push(this.ToffsetWires1C2[n-4]),this.ToffsetArcWires2C=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires1C2[n-9]),D.push(this.ToffsetWires1C2[n-3]),this.ToffsetArcWires2C=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),O.push(this.ToffsetWires1C2[n-8]),O.push(this.ToffsetWires1C2[n-2]),this.ToffsetArcWires2C=W(O,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1C2[n-7]),B.push(this.ToffsetWires1C2[n-1]),this.ToffsetArcWires2C=W(B,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.八分裂:this.ToffsetWires1C1.length>=16&&(c.push(this.ToffsetWires1C1[n-16]),c.push(this.ToffsetWires1C1[n-8]),this.ToffsetArcWires1C=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires1C1[n-15]),h.push(this.ToffsetWires1C1[n-7]),this.ToffsetArcWires1C=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires1C1[n-14]),d.push(this.ToffsetWires1C1[n-6]),this.ToffsetArcWires1C=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires1C1[n-13]),p.push(this.ToffsetWires1C1[n-5]),this.ToffsetArcWires1C=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires1C1[n-12]),m.push(this.ToffsetWires1C1[n-4]),this.ToffsetArcWires1C=W(m,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),T.push(this.ToffsetWires1C1[n-11]),T.push(this.ToffsetWires1C1[n-3]),this.ToffsetArcWires1C=W(T,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1C1[n-10]),y.push(this.ToffsetWires1C1[n-2]),this.ToffsetArcWires1C=W(y,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线7"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),w.push(this.ToffsetWires1C1[n-9]),w.push(this.ToffsetWires1C1[n-1]),this.ToffsetArcWires1C=W(w,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线8"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1C2.length>=16&&(A.push(this.ToffsetWires1C2[n-16]),A.push(this.ToffsetWires1C2[n-8]),this.ToffsetArcWires2C=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires1C2[n-15]),b.push(this.ToffsetWires1C2[n-7]),this.ToffsetArcWires2C=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires1C2[n-14]),E.push(this.ToffsetWires1C2[n-6]),this.ToffsetArcWires2C=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires1C2[n-13]),D.push(this.ToffsetWires1C2[n-5]),this.ToffsetArcWires2C=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),O.push(this.ToffsetWires1C2[n-12]),O.push(this.ToffsetWires1C2[n-4]),this.ToffsetArcWires2C=W(O,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1C2[n-11]),B.push(this.ToffsetWires1C2[n-3]),this.ToffsetArcWires2C=W(B,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),z.push(this.ToffsetWires1C2[n-10]),z.push(this.ToffsetWires1C2[n-2]),this.ToffsetArcWires2C=W(z,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线7"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),F.push(this.ToffsetWires1C2[n-9]),F.push(this.ToffsetWires1C2[n-1]),this.ToffsetArcWires2C=W(F,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线8"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break}}if(this.ToffsetWires2A1.length>1&&this.ToffsetWires2A2.length>1){const c=[],h=[],d=[],p=[],m=[],T=[],y=[],w=[],A=[],b=[],E=[],D=[],O=[],B=[],z=[],F=[];switch(this.LineInfo.Wairnum){case $.单分裂:this.ToffsetWires2A1.length>=2&&(c.push(this.ToffsetWires2A1[n-2]),c.push(this.ToffsetWires2A1[n-1]),this.ToffsetArcWires1A2=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2A2.length>=2&&(A.push(this.ToffsetWires2A2[n-2]),A.push(this.ToffsetWires2A2[n-1]),this.ToffsetArcWires2A2=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.双分裂:this.ToffsetWires2A1.length>=4&&(c.push(this.ToffsetWires2A1[n-4]),c.push(this.ToffsetWires2A1[n-2]),this.ToffsetArcWires1A2=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires2A1[n-3]),h.push(this.ToffsetWires2A1[n-1]),this.ToffsetArcWires1A2=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2A2.length>=4&&(A.push(this.ToffsetWires2A2[n-4]),A.push(this.ToffsetWires2A2[n-2]),this.ToffsetArcWires2A2=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires2A2[n-3]),b.push(this.ToffsetWires2A2[n-1]),this.ToffsetArcWires2A2=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.四分裂:this.ToffsetWires2A1.length>=8&&(c.push(this.ToffsetWires2A1[n-8]),c.push(this.ToffsetWires2A1[n-4]),this.ToffsetArcWires1A2=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires2A1[n-7]),h.push(this.ToffsetWires2A1[n-3]),this.ToffsetArcWires1A2=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires2A1[n-6]),d.push(this.ToffsetWires2A1[n-2]),this.ToffsetArcWires1A2=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires2A1[n-5]),p.push(this.ToffsetWires2A1[n-1]),this.ToffsetArcWires1A2=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2A2.length>=8&&(A.push(this.ToffsetWires2A2[n-8]),A.push(this.ToffsetWires2A2[n-4]),this.ToffsetArcWires2A2=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires2A2[n-7]),b.push(this.ToffsetWires2A2[n-3]),this.ToffsetArcWires2A2=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires2A2[n-6]),E.push(this.ToffsetWires2A2[n-2]),this.ToffsetArcWires2A2=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires2A2[n-5]),D.push(this.ToffsetWires2A2[n-1]),this.ToffsetArcWires2A2=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.六分裂:this.ToffsetWires2A1.length>=12&&(c.push(this.ToffsetWires2A1[n-12]),c.push(this.ToffsetWires2A1[n-6]),this.ToffsetArcWires1A2=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires2A1[n-11]),h.push(this.ToffsetWires2A1[n-5]),this.ToffsetArcWires1A2=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires2A1[n-10]),d.push(this.ToffsetWires2A1[n-4]),this.ToffsetArcWires1A2=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires2A1[n-9]),p.push(this.ToffsetWires2A1[n-3]),this.ToffsetArcWires1A2=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires2A1[n-8]),m.push(this.ToffsetWires2A1[n-2]),this.ToffsetArcWires1A2=W(m,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),T.push(this.ToffsetWires2A1[n-7]),T.push(this.ToffsetWires2A1[n-1]),this.ToffsetArcWires1A2=W(T,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2A2.length>=12&&(A.push(this.ToffsetWires2A2[n-12]),A.push(this.ToffsetWires2A2[n-6]),this.ToffsetArcWires2A2=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires2A2[n-11]),b.push(this.ToffsetWires2A2[n-5]),this.ToffsetArcWires2A2=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires2A2[n-10]),E.push(this.ToffsetWires2A2[n-4]),this.ToffsetArcWires2A2=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires2A2[n-9]),D.push(this.ToffsetWires2A2[n-3]),this.ToffsetArcWires2A2=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),O.push(this.ToffsetWires2A2[n-8]),O.push(this.ToffsetWires2A2[n-2]),this.ToffsetArcWires2A2=W(O,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2A2[n-7]),B.push(this.ToffsetWires2A2[n-1]),this.ToffsetArcWires2A2=W(B,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.八分裂:this.ToffsetWires2A1.length>=16&&(c.push(this.ToffsetWires2A1[n-16]),c.push(this.ToffsetWires2A1[n-8]),this.ToffsetArcWires1A2=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires2A1[n-15]),h.push(this.ToffsetWires2A1[n-7]),this.ToffsetArcWires1A2=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires2A1[n-14]),d.push(this.ToffsetWires2A1[n-6]),this.ToffsetArcWires1A2=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires2A1[n-13]),p.push(this.ToffsetWires2A1[n-5]),this.ToffsetArcWires1A2=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires2A1[n-12]),m.push(this.ToffsetWires2A1[n-4]),this.ToffsetArcWires1A2=W(m,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),T.push(this.ToffsetWires2A1[n-11]),T.push(this.ToffsetWires2A1[n-3]),this.ToffsetArcWires1A2=W(T,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2A1[n-10]),y.push(this.ToffsetWires2A1[n-2]),this.ToffsetArcWires1A2=W(y,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线7"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),w.push(this.ToffsetWires2A1[n-9]),w.push(this.ToffsetWires2A1[n-1]),this.ToffsetArcWires1A2=W(w,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线8"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2A2.length>=16&&(A.push(this.ToffsetWires2A2[n-16]),A.push(this.ToffsetWires2A2[n-8]),this.ToffsetArcWires2A2=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires2A2[n-15]),b.push(this.ToffsetWires2A2[n-7]),this.ToffsetArcWires2A2=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires2A2[n-14]),E.push(this.ToffsetWires2A2[n-6]),this.ToffsetArcWires2A2=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires2A2[n-13]),D.push(this.ToffsetWires2A2[n-5]),this.ToffsetArcWires2A2=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),O.push(this.ToffsetWires2A2[n-12]),O.push(this.ToffsetWires2A2[n-4]),this.ToffsetArcWires2A2=W(O,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2A2[n-11]),B.push(this.ToffsetWires2A2[n-3]),this.ToffsetArcWires2A2=W(B,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),z.push(this.ToffsetWires2A2[n-10]),z.push(this.ToffsetWires2A2[n-2]),this.ToffsetArcWires2A2=W(z,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线7"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),F.push(this.ToffsetWires2A2[n-9]),F.push(this.ToffsetWires2A2[n-1]),this.ToffsetArcWires2A2=W(F,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线8"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break}}if(this.ToffsetWires2B1.length>1&&this.ToffsetWires2B2.length>1){const c=[],h=[],d=[],p=[],m=[],T=[],y=[],w=[],A=[],b=[],E=[],D=[],O=[],B=[],z=[],F=[];switch(this.LineInfo.Wairnum){case $.单分裂:this.ToffsetWires2B1.length>=2&&(c.push(this.ToffsetWires2B1[n-2]),c.push(this.ToffsetWires2B1[n-1]),this.ToffsetArcWires1B2=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2B2.length>=2&&(A.push(this.ToffsetWires2B2[n-2]),A.push(this.ToffsetWires2B2[n-1]),this.ToffsetArcWires2B2=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.双分裂:this.ToffsetWires2B1.length>=4&&(c.push(this.ToffsetWires2B1[n-4]),c.push(this.ToffsetWires2B1[n-2]),this.ToffsetArcWires1B2=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires2B1[n-3]),h.push(this.ToffsetWires2B1[n-1]),this.ToffsetArcWires1B2=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2B2.length>=4&&(A.push(this.ToffsetWires2B2[n-4]),A.push(this.ToffsetWires2B2[n-2]),this.ToffsetArcWires2B2=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires2B2[n-3]),b.push(this.ToffsetWires2B2[n-1]),this.ToffsetArcWires2B2=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.四分裂:this.ToffsetWires2B1.length>=8&&(c.push(this.ToffsetWires2B1[n-8]),c.push(this.ToffsetWires2B1[n-4]),this.ToffsetArcWires1B2=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires2B1[n-7]),h.push(this.ToffsetWires2B1[n-3]),this.ToffsetArcWires1B2=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires2B1[n-6]),d.push(this.ToffsetWires2B1[n-2]),this.ToffsetArcWires1B2=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires2B1[n-5]),p.push(this.ToffsetWires2B1[n-1]),this.ToffsetArcWires1B2=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2B2.length>=8&&(A.push(this.ToffsetWires2B2[n-8]),A.push(this.ToffsetWires2B2[n-4]),this.ToffsetArcWires2B2=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires2B2[n-7]),b.push(this.ToffsetWires2B2[n-3]),this.ToffsetArcWires2B2=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires2B2[n-6]),E.push(this.ToffsetWires2B2[n-2]),this.ToffsetArcWires2B2=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires2B2[n-5]),D.push(this.ToffsetWires2B2[n-1]),this.ToffsetArcWires2B2=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.六分裂:this.ToffsetWires2B1.length>=12&&(c.push(this.ToffsetWires2B1[n-12]),c.push(this.ToffsetWires2B1[n-6]),this.ToffsetArcWires1B2=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires2B1[n-11]),h.push(this.ToffsetWires2B1[n-5]),this.ToffsetArcWires1B2=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires2B1[n-10]),d.push(this.ToffsetWires2B1[n-4]),this.ToffsetArcWires1B2=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires2B1[n-9]),p.push(this.ToffsetWires2B1[n-3]),this.ToffsetArcWires1B2=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires2B1[n-8]),m.push(this.ToffsetWires2B1[n-2]),this.ToffsetArcWires1B2=W(m,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),T.push(this.ToffsetWires2B1[n-7]),T.push(this.ToffsetWires2B1[n-1]),this.ToffsetArcWires1B2=W(T,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2B2.length>=12&&(A.push(this.ToffsetWires2B2[n-12]),A.push(this.ToffsetWires2B2[n-6]),this.ToffsetArcWires2B2=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires2B2[n-11]),b.push(this.ToffsetWires2B2[n-5]),this.ToffsetArcWires2B2=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires2B2[n-10]),E.push(this.ToffsetWires2B2[n-4]),this.ToffsetArcWires2B2=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires2B2[n-9]),D.push(this.ToffsetWires2B2[n-3]),this.ToffsetArcWires2B2=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),O.push(this.ToffsetWires2B2[n-8]),O.push(this.ToffsetWires2B2[n-2]),this.ToffsetArcWires2B2=W(O,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2B2[n-7]),B.push(this.ToffsetWires2B2[n-1]),this.ToffsetArcWires2B2=W(B,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.八分裂:this.ToffsetWires2B1.length>=16&&(c.push(this.ToffsetWires2B1[n-16]),c.push(this.ToffsetWires2B1[n-8]),this.ToffsetArcWires1B2=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires2B1[n-15]),h.push(this.ToffsetWires2B1[n-7]),this.ToffsetArcWires1B2=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires2B1[n-14]),d.push(this.ToffsetWires2B1[n-6]),this.ToffsetArcWires1B2=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires2B1[n-13]),p.push(this.ToffsetWires2B1[n-5]),this.ToffsetArcWires1B2=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires2B1[n-12]),m.push(this.ToffsetWires2B1[n-4]),this.ToffsetArcWires1B2=W(m,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),T.push(this.ToffsetWires2B1[n-11]),T.push(this.ToffsetWires2B1[n-3]),this.ToffsetArcWires1B2=W(T,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2B1[n-10]),y.push(this.ToffsetWires2B1[n-2]),this.ToffsetArcWires1B2=W(y,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线7"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),w.push(this.ToffsetWires2B1[n-9]),w.push(this.ToffsetWires2B1[n-1]),this.ToffsetArcWires1B2=W(w,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线8"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2B2.length>=16&&(A.push(this.ToffsetWires2B2[n-16]),A.push(this.ToffsetWires2B2[n-8]),this.ToffsetArcWires2B2=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires2B2[n-15]),b.push(this.ToffsetWires2B2[n-7]),this.ToffsetArcWires2B2=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires2B2[n-14]),E.push(this.ToffsetWires2B2[n-6]),this.ToffsetArcWires2B2=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires2B2[n-13]),D.push(this.ToffsetWires2B2[n-5]),this.ToffsetArcWires2B2=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),O.push(this.ToffsetWires2B2[n-12]),O.push(this.ToffsetWires2B2[n-4]),this.ToffsetArcWires2B2=W(O,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2B2[n-11]),B.push(this.ToffsetWires2B2[n-3]),this.ToffsetArcWires2B2=W(B,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),z.push(this.ToffsetWires2B2[n-10]),z.push(this.ToffsetWires2B2[n-2]),this.ToffsetArcWires2B2=W(z,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线7"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),F.push(this.ToffsetWires2B2[n-9]),F.push(this.ToffsetWires2B2[n-1]),this.ToffsetArcWires2B2=W(F,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线8"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break}}if(this.ToffsetWires2C1.length>1&&this.ToffsetWires2C2.length>1){const c=[],h=[],d=[],p=[],m=[],T=[],y=[],w=[],A=[],b=[],E=[],D=[],O=[],B=[],z=[],F=[];switch(this.LineInfo.Wairnum){case $.单分裂:this.ToffsetWires2C1.length>=2&&(c.push(this.ToffsetWires2C1[n-2]),c.push(this.ToffsetWires2C1[n-1]),this.ToffsetArcWires1C2=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2C2.length>=2&&(A.push(this.ToffsetWires2C2[n-2]),A.push(this.ToffsetWires2C2[n-1]),this.ToffsetArcWires2C2=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.双分裂:this.ToffsetWires2C1.length>=4&&(c.push(this.ToffsetWires2C1[n-4]),c.push(this.ToffsetWires2C1[n-2]),this.ToffsetArcWires1C2=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires2C1[n-3]),h.push(this.ToffsetWires2C1[n-1]),this.ToffsetArcWires1C2=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2C2.length>=4&&(A.push(this.ToffsetWires2C2[n-4]),A.push(this.ToffsetWires2C2[n-2]),this.ToffsetArcWires2C2=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires2C2[n-3]),b.push(this.ToffsetWires2C2[n-1]),this.ToffsetArcWires2C2=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.四分裂:this.ToffsetWires2C1.length>=8&&(c.push(this.ToffsetWires2C1[n-8]),c.push(this.ToffsetWires2C1[n-4]),this.ToffsetArcWires1C2=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires2C1[n-7]),h.push(this.ToffsetWires2C1[n-3]),this.ToffsetArcWires1C2=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires2C1[n-6]),d.push(this.ToffsetWires2C1[n-2]),this.ToffsetArcWires1C2=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires2C1[n-5]),p.push(this.ToffsetWires2C1[n-1]),this.ToffsetArcWires1C2=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2C2.length>=8&&(A.push(this.ToffsetWires2C2[n-8]),A.push(this.ToffsetWires2C2[n-4]),this.ToffsetArcWires2C2=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires2C2[n-7]),b.push(this.ToffsetWires2C2[n-3]),this.ToffsetArcWires2C2=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires2C2[n-6]),E.push(this.ToffsetWires2C2[n-2]),this.ToffsetArcWires2C2=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires2C2[n-5]),D.push(this.ToffsetWires2C2[n-1]),this.ToffsetArcWires2C2=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.六分裂:this.ToffsetWires2C1.length>=12&&(c.push(this.ToffsetWires2C1[n-12]),c.push(this.ToffsetWires2C1[n-6]),this.ToffsetArcWires1C2=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires2C1[n-11]),h.push(this.ToffsetWires2C1[n-5]),this.ToffsetArcWires1C2=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires2C1[n-10]),d.push(this.ToffsetWires2C1[n-4]),this.ToffsetArcWires1C2=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires2C1[n-9]),p.push(this.ToffsetWires2C1[n-3]),this.ToffsetArcWires1C2=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires2C1[n-8]),m.push(this.ToffsetWires2C1[n-2]),this.ToffsetArcWires1C2=W(m,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),T.push(this.ToffsetWires2C1[n-7]),T.push(this.ToffsetWires2C1[n-1]),this.ToffsetArcWires1C2=W(T,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2C2.length>=12&&(A.push(this.ToffsetWires2C2[n-12]),A.push(this.ToffsetWires2C2[n-6]),this.ToffsetArcWires2C2=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires2C2[n-11]),b.push(this.ToffsetWires2C2[n-5]),this.ToffsetArcWires2C2=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires2C2[n-10]),E.push(this.ToffsetWires2C2[n-4]),this.ToffsetArcWires2C2=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires2C2[n-9]),D.push(this.ToffsetWires2C2[n-3]),this.ToffsetArcWires2C2=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),O.push(this.ToffsetWires2C2[n-8]),O.push(this.ToffsetWires2C2[n-2]),this.ToffsetArcWires2C2=W(O,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2C2[n-7]),B.push(this.ToffsetWires2C2[n-1]),this.ToffsetArcWires2C2=W(B,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.八分裂:this.ToffsetWires2C1.length>=16&&(c.push(this.ToffsetWires2C1[n-16]),c.push(this.ToffsetWires2C1[n-8]),this.ToffsetArcWires1C2=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires2C1[n-15]),h.push(this.ToffsetWires2C1[n-7]),this.ToffsetArcWires1C2=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires2C1[n-14]),d.push(this.ToffsetWires2C1[n-6]),this.ToffsetArcWires1C2=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires2C1[n-13]),p.push(this.ToffsetWires2C1[n-5]),this.ToffsetArcWires1C2=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires2C1[n-12]),m.push(this.ToffsetWires2C1[n-4]),this.ToffsetArcWires1C2=W(m,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),T.push(this.ToffsetWires2C1[n-11]),T.push(this.ToffsetWires2C1[n-3]),this.ToffsetArcWires1C2=W(T,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2C1[n-10]),y.push(this.ToffsetWires2C1[n-2]),this.ToffsetArcWires1C2=W(y,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线7"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),w.push(this.ToffsetWires2C1[n-9]),w.push(this.ToffsetWires2C1[n-1]),this.ToffsetArcWires1C2=W(w,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线8"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2C2.length>=16&&(A.push(this.ToffsetWires2C2[n-16]),A.push(this.ToffsetWires2C2[n-8]),this.ToffsetArcWires2C2=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires2C2[n-15]),b.push(this.ToffsetWires2C2[n-7]),this.ToffsetArcWires2C2=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires2C2[n-14]),E.push(this.ToffsetWires2C2[n-6]),this.ToffsetArcWires2C2=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires2C2[n-13]),D.push(this.ToffsetWires2C2[n-5]),this.ToffsetArcWires2C2=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),O.push(this.ToffsetWires2C2[n-12]),O.push(this.ToffsetWires2C2[n-4]),this.ToffsetArcWires2C2=W(O,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2C2[n-11]),B.push(this.ToffsetWires2C2[n-3]),this.ToffsetArcWires2C2=W(B,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),z.push(this.ToffsetWires2C2[n-10]),z.push(this.ToffsetWires2C2[n-2]),this.ToffsetArcWires2C2=W(z,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线7"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),F.push(this.ToffsetWires2C2[n-9]),F.push(this.ToffsetWires2C2[n-1]),this.ToffsetArcWires2C2=W(F,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线8"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break}}}else switch(this.LineInfo.Wairnum){case $.单分裂:t=t+1;break;case $.双分裂:t=t+2;break;case $.四分裂:t=t+4;break;case $.六分裂:t=t+6;break;case $.八分裂:t=t+8;break}})}loadLineModel(){this.Keym=="OW_JPS_EEngin_001"&&(this.viewer.dataSources.add(this.dataSource2),this.viewer.entities.show)}LineSpriteLineinit(){ne._materialCache.addMaterial("SpriteLineMaterialType",{fabric:{type:"SpriteLineMaterialType",uniforms:{color:new S(1,1,0,1),speed:2},source:`
|
|
6585
6585
|
uniform vec4 color;
|
|
6586
6586
|
const float pi = 3.1415926;
|
|
6587
6587
|
czm_material czm_getMaterial(czm_materialInput materialInput)
|
|
@@ -6595,4 +6595,4 @@ void main()
|
|
|
6595
6595
|
}
|
|
6596
6596
|
`},translucent:function(){return!0}})}setLineVisible(t){this.Keym=="OW_JPS_EEngin_001"&&(this.entityCollection2.show=t)}RemoveLineModel(){this.Keym=="OW_JPS_EEngin_001"&&(this.viewer.dataSources.remove(this.dataSource2),this.entityCollection2.show=!1)}}class jx{constructor(){se(this,"id","");se(this,"name","");se(this,"towerFZinfo","");se(this,"towerDisFile","");se(this,"stressFileContent","");se(this,"TowerMemberColor","#FFFFFF");se(this,"TowerMembersWidth",2);se(this,"Longitude",0);se(this,"Latitude",0);se(this,"Altitude",0);se(this,"RollX",0);se(this,"RollY",90);se(this,"RollZ",0)}}function Yx(e){debugger;const t=e.split(`
|
|
6597
6597
|
`),n=[],i=[],o=/^\s*(\d+)\s+([\d.-]+)\s+([\d.-]+)\s+([\d.-]+)\s+(-?\d+)/,a=/^\s*(\d+)\s+(\d+)\s+(\d+)\s*(?:#|$)/;for(const r of t){const f=r.trim();if(!f)continue;const c=f.match(o);if(c){n.push({id:parseInt(c[1]),x:parseFloat(c[2]),y:parseFloat(c[3]),z:parseFloat(c[4]),flag:parseInt(c[5])});continue}const h=f.match(a);h&&i.push({from:parseInt(h[1]),to:parseInt(h[2]),type:parseInt(h[3])})}return{TowerNodes:n,connections:i}}function Xx(e){const t=e.split(`
|
|
6598
|
-
`),n=[];for(const i of t){if(!i.trim())continue;const o=i.trim().split(/\s+/).filter(f=>f!==""),a=parseInt(o[0]);if(isNaN(a))continue;const r=[];for(let f=1;f<o.length;f+=3){const c=parseFloat(o[f]),h=parseFloat(o[f+1]),d=parseFloat(o[f+2]);if(!isNaN(c)&&!isNaN(h)&&!isNaN(d)){const p=Math.floor((f-1)/3)+1;r.push({timeStep:p,x:c,y:h,z:d})}}n.push({nodeId:a,displacements:r})}return n}function R0(e){const t={};return e.forEach(n=>{n.displacements.forEach(i=>{t[i.timeStep]||(t[i.timeStep]=[]),t[i.timeStep].push({nodeId:n.nodeId,...i})})}),t}class L0{constructor(t){se(this,"viewer");se(this,"lines",[]);this.viewer=t}addLine(t,n){const i=Mx(this.viewer,t,n);return this.lines.push(i),i}removeAll(){this.lines.forEach(t=>this.viewer.entities.remove(t)),this.lines=[]}}class $x{constructor(t,n,i){se(this,"viewer");se(this,"TowerFZS");se(this,"Keym","");se(this,"dataSource2");se(this,"entityCollection2");se(this,"pointEntities",[]);se(this,"TowerLineManager");se(this,"TowerNodes",[]);se(this,"connections",[]);se(this,"displacementData",[]);se(this,"_animationInterval",null);this.Keym=i,this.viewer=t,this.TowerFZS=n,this.dataSource2=new ar(this.TowerFZS.id),this.entityCollection2=this.dataSource2.entities,this.TowerLineManager=new L0(this.viewer)}loadfile(){if(this.Keym!="OW_JPS_EEngin_001")return;const{TowerNodes:t,connections:n}=Yx(this.TowerFZS.towerFZinfo);this.TowerNodes=t,this.connections=n,this.displacementData=Xx(this.TowerFZS.towerDisFile)}loadFZTower(){if(this.Keym!="OW_JPS_EEngin_001")return;let t=new He(I.toRadians(this.TowerFZS.RollX),this.TowerFZS.RollY,this.TowerFZS.RollZ);const n=u.fromDegrees(this.TowerFZS.Longitude,this.TowerFZS.Latitude,this.TowerFZS.Altitude);this.connections.forEach(i=>{const o=this.TowerNodes.find(p=>p.id===i.from),a=this.TowerNodes.find(p=>p.id===i.to),r=[],f=new u(o==null?void 0:o.x,o==null?void 0:o.y,o==null?void 0:o.z);r.push(Q(n,f,t));const c=Ba(this.viewer,r[0],(o==null?void 0:o.id)+"",{pointColor:S.RED,labelColor:S.GOLD,fontSize:18,pixelOffset:[0,-30]});this.pointEntities.push(c);const h=new u(a==null?void 0:a.x,a==null?void 0:a.y,a==null?void 0:a.z);r.push(Q(n,h,t));const d=Ba(this.viewer,r[1],(o==null?void 0:o.id)+"",{pointColor:S.RED,labelColor:S.GOLD,fontSize:18,pixelOffset:[0,-30]});this.pointEntities.push(d),this.TowerLineManager.addLine(r)})}loadFZDISTower(t){if(this.Keym!=="OW_JPS_EEngin_001")return;const i=R0(this.displacementData)[t];if(!i){console.warn(`未找到时间步 ${t} 的位移数据`);return}const o=new He(I.toRadians(this.TowerFZS.RollX),this.TowerFZS.RollY,this.TowerFZS.RollZ),a=u.fromDegrees(this.TowerFZS.Longitude,this.TowerFZS.Latitude,this.TowerFZS.Altitude);this.connections.forEach(r=>{const f=this.TowerNodes.find(E=>E.id===r.from),c=this.TowerNodes.find(E=>E.id===r.to);if(!f||!c){console.warn(`找不到连接 ${r.from}->${r.to} 的节点`);return}
|
|
6598
|
+
`),n=[];for(const i of t){if(!i.trim())continue;const o=i.trim().split(/\s+/).filter(f=>f!==""),a=parseInt(o[0]);if(isNaN(a))continue;const r=[];for(let f=1;f<o.length;f+=3){const c=parseFloat(o[f]),h=parseFloat(o[f+1]),d=parseFloat(o[f+2]);if(!isNaN(c)&&!isNaN(h)&&!isNaN(d)){const p=Math.floor((f-1)/3)+1;r.push({timeStep:p,x:c,y:h,z:d})}}n.push({nodeId:a,displacements:r})}return n}function R0(e){const t={};return e.forEach(n=>{n.displacements.forEach(i=>{t[i.timeStep]||(t[i.timeStep]=[]),t[i.timeStep].push({nodeId:n.nodeId,...i})})}),t}class L0{constructor(t){se(this,"viewer");se(this,"lines",[]);this.viewer=t}addLine(t,n){const i=Mx(this.viewer,t,n);return this.lines.push(i),i}removeAll(){this.lines.forEach(t=>this.viewer.entities.remove(t)),this.lines=[]}}class $x{constructor(t,n,i){se(this,"viewer");se(this,"TowerFZS");se(this,"Keym","");se(this,"dataSource2");se(this,"entityCollection2");se(this,"pointEntities",[]);se(this,"TowerLineManager");se(this,"TowerNodes",[]);se(this,"connections",[]);se(this,"displacementData",[]);se(this,"_animationInterval",null);this.Keym=i,this.viewer=t,this.TowerFZS=n,this.dataSource2=new ar(this.TowerFZS.id),this.entityCollection2=this.dataSource2.entities,this.TowerLineManager=new L0(this.viewer)}loadfile(){if(this.Keym!="OW_JPS_EEngin_001")return;const{TowerNodes:t,connections:n}=Yx(this.TowerFZS.towerFZinfo);this.TowerNodes=t,this.connections=n,this.displacementData=Xx(this.TowerFZS.towerDisFile)}loadFZTower(){if(this.Keym!="OW_JPS_EEngin_001")return;let t=new He(I.toRadians(this.TowerFZS.RollX),this.TowerFZS.RollY,this.TowerFZS.RollZ);const n=u.fromDegrees(this.TowerFZS.Longitude,this.TowerFZS.Latitude,this.TowerFZS.Altitude);this.connections.forEach(i=>{const o=this.TowerNodes.find(p=>p.id===i.from),a=this.TowerNodes.find(p=>p.id===i.to),r=[],f=new u(o==null?void 0:o.x,o==null?void 0:o.y,o==null?void 0:o.z);r.push(Q(n,f,t));const c=Ba(this.viewer,r[0],(o==null?void 0:o.id)+"",{pointColor:S.RED,labelColor:S.GOLD,fontSize:18,pixelOffset:[0,-30]});this.pointEntities.push(c);const h=new u(a==null?void 0:a.x,a==null?void 0:a.y,a==null?void 0:a.z);r.push(Q(n,h,t));const d=Ba(this.viewer,r[1],(o==null?void 0:o.id)+"",{pointColor:S.RED,labelColor:S.GOLD,fontSize:18,pixelOffset:[0,-30]});this.pointEntities.push(d),this.TowerLineManager.addLine(r)})}loadFZDISTower(t){if(this.Keym!=="OW_JPS_EEngin_001")return;const i=R0(this.displacementData)[t];if(!i){console.warn(`未找到时间步 ${t} 的位移数据`);return}const o=new He(I.toRadians(this.TowerFZS.RollX),this.TowerFZS.RollY,this.TowerFZS.RollZ),a=u.fromDegrees(this.TowerFZS.Longitude,this.TowerFZS.Latitude,this.TowerFZS.Altitude);this.connections.forEach(r=>{const f=this.TowerNodes.find(E=>E.id===r.from),c=this.TowerNodes.find(E=>E.id===r.to);if(!f||!c){console.warn(`找不到连接 ${r.from}->${r.to} 的节点`);return}const h=i.find(E=>E.nodeId===r.from),d=i.find(E=>E.nodeId===r.to);if(!h||!d){console.warn(`找不到连接 ${r.from}->${r.to} 的位移数据`);return}const p=new u(f.x-h.x,f.y-h.y,f.z-h.z),m=new u(c.x-d.x,c.y-d.y,c.z-d.z),T=Q(a,p,o),y=Ba(this.viewer,T,r.from+"",{pointColor:S.RED,labelColor:S.GOLD,fontSize:18,pixelOffset:[0,-30]});this.pointEntities.push(y);const w=Q(a,m,o),A=Ba(this.viewer,w,r.to+"",{pointColor:S.RED,labelColor:S.GOLD,fontSize:18,pixelOffset:[0,-30]});this.pointEntities.push(A);const b=[T,w];this.TowerLineManager.addLine(b)})}loadFZDISTower1(t){if(this.Keym!="OW_JPS_EEngin_001")return;const n=R0(this.displacementData);let i=new He(I.toRadians(this.TowerFZS.RollX),this.TowerFZS.RollY,this.TowerFZS.RollZ);const o=u.fromDegrees(this.TowerFZS.Longitude,this.TowerFZS.Latitude,this.TowerFZS.Altitude);this.connections.forEach(a=>{const r=this.TowerNodes.find(T=>T.id===a.from),f=n[t].find(T=>T.nodeId===a.from),c=this.TowerNodes.find(T=>T.id===a.to),h=n[t].find(T=>T.nodeId===a.to),d=[],p=new u(r.x-f.x,r.y-f.y,r.z-f.z);d.push(Q(o,p,i));const m=new u(c.x-h.x,c.y-h.y,c.z-h.z);d.push(Q(o,m,i)),this.entityCollection2.add(v(d,a.from+""+a.to,this.TowerFZS.TowerMembersWidth,this.TowerFZS.TowerMemberColor))})}loadAllFZDisTower(){if(this.Keym!=="OW_JPS_EEngin_001")return;if(!this.displacementData||this.displacementData.length===0){console.warn("没有可用的位移数据");return}let t=1;const n=this.displacementData.length;this._animationInterval&&(clearInterval(this._animationInterval),this._animationInterval=null);const i=()=>{if(this.viewer.dataSources.contains(this.dataSource2)&&this.viewer.dataSources.remove(this.dataSource2,!0),t>n){t=1;return}this.dataSource2=new ar("fztower"),this.entityCollection2=this.dataSource2.entities;try{this.loadFZDISTower(t),this.loadFZModel(),console.log(`正在显示位移帧: ${t}/${n}`),t++}catch(o){console.error("加载位移帧时出错:",o),this._animationInterval&&(clearInterval(this._animationInterval),this._animationInterval=null)}};i(),this._animationInterval=setInterval(i,300)}stopDisplacementAnimation(){this._animationInterval&&(clearInterval(this._animationInterval),this._animationInterval=null)}toggleAnimation(t){t?this.stopDisplacementAnimation():this.loadAllFZDisTower()}loadFZModel(){this.Keym=="OW_JPS_EEngin_001"&&(this.viewer.dataSources.add(this.dataSource2),this.viewer.entities.show)}setFZModelVisible(t){this.Keym=="OW_JPS_EEngin_001"&&(this.entityCollection2.show=t)}RemoveFZModel(){this.Keym=="OW_JPS_EEngin_001"&&(this.TowerLineManager.removeAll(),this.pointEntities.forEach(t=>this.viewer.entities.remove(t)),this.pointEntities.length=0)}}it.GUAPoint=qx,it.InsulatorInfo=Gx,it.InsulatorType=Ht,it.LineManager=L0,it.LineNum=cr,it.LineType=B0,it.OWEEgineFZManager=$x,it.OWEEgineManager=Hx,it.PhaseSType=nn,it.TowerFZInfo=jx,it.TowerInfo=Vx,it.TowerLineInfo=kx,it.TowerType=$i,it.WairnumType=$,it.drawModel=To,Object.defineProperty(it,Symbol.toStringTag,{value:"Module"})});
|