@univerjs-pro/sheets-shape 0.24.0 → 0.25.0-insiders.20260608-e4336f7

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.
@@ -49,7 +49,8 @@ export interface IShapeBuilderInfo {
49
49
  * @example
50
50
  * ```ts
51
51
  * const fWorkbook = univerAPI.getActiveWorkbook();
52
- * const fWorksheet = fWorkbook.getActiveSheet();
52
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
53
+ * if (!fWorksheet) return;
53
54
  *
54
55
  * // Create a rectangle shape at cell B2 with offset
55
56
  * const shapeInfo = fWorksheet.newShape()
@@ -115,7 +116,8 @@ export declare class FShape {
115
116
  * @example
116
117
  * ```ts
117
118
  * const fWorkbook = univerAPI.getActiveWorkbook();
118
- * const fWorksheet = fWorkbook.getActiveSheet();
119
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
120
+ * if (!fWorksheet) return;
119
121
  *
120
122
  * const shapeInfo = fWorksheet.newShape()
121
123
  * .setShapeType(univerAPI.Enum.ShapeTypeEnum.Rect)
@@ -135,7 +137,8 @@ export declare class FShape {
135
137
  * @example
136
138
  * ```ts
137
139
  * const fWorkbook = univerAPI.getActiveWorkbook();
138
- * const fWorksheet = fWorkbook.getActiveSheet();
140
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
141
+ * if (!fWorksheet) return;
139
142
  *
140
143
  * const shapeInfo = fWorksheet.newShape()
141
144
  * .setShapeType(univerAPI.Enum.ShapeTypeEnum.Rect)
@@ -153,7 +156,8 @@ export declare class FShape {
153
156
  * @example
154
157
  * ```ts
155
158
  * const fWorkbook = univerAPI.getActiveWorkbook();
156
- * const fWorksheet = fWorkbook.getActiveSheet();
159
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
160
+ * if (!fWorksheet) return;
157
161
  *
158
162
  * const shapeInfo = fWorksheet.newShape()
159
163
  * .setShapeType(univerAPI.Enum.ShapeTypeEnum.Rect)
@@ -172,7 +176,8 @@ export declare class FShape {
172
176
  * @example
173
177
  * ```ts
174
178
  * const fWorkbook = univerAPI.getActiveWorkbook();
175
- * const fWorksheet = fWorkbook.getActiveSheet();
179
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
180
+ * if (!fWorksheet) return;
176
181
  *
177
182
  * const shapeInfo = fWorksheet.newShape()
178
183
  * .setShapeType(univerAPI.Enum.ShapeTypeEnum.Rect)
@@ -186,14 +191,15 @@ export declare class FShape {
186
191
  /**
187
192
  * Sets the gradient fill style for the shape.
188
193
  * @param {ShapeGradientTypeEnum} shapeGradientType The gradient type. Which can be found from `univerAPI.Enum.ShapeGradientTypeEnum`.
189
- * @param {Array<{ position: number; color: string }>} colorStops An array of gradient color stops. Each stop has a `position` (0 to 1) and a `color` (e.g., '#ff0000').
194
+ * @param {Array<{ position: number; color: string; opacity?: number }>} colorStops An array of gradient color stops. Each stop has a `position` (0 to 1), a `color` (e.g., '#ff0000'), and optional `opacity` (0 to 1).
190
195
  * @param {number} [gradientAngle] The angle of the gradient in degrees (e.g., 0 for left-to-right, 90 for top-to-bottom).
191
196
  * @returns {FShape} this builder, for chaining.
192
197
  *
193
198
  * @example
194
199
  * ```ts
195
200
  * const fWorkbook = univerAPI.getActiveWorkbook();
196
- * const fWorksheet = fWorkbook.getActiveSheet();
201
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
202
+ * if (!fWorksheet) return;
197
203
  * // Gradient fill with angle and color stops
198
204
  * const shapeInfo = fWorksheet.newShape()
199
205
  * .setShapeType(univerAPI.Enum.ShapeTypeEnum.Rect)
@@ -214,6 +220,7 @@ export declare class FShape {
214
220
  setShapeGradientFill(shapeGradientType: ShapeGradientTypeEnum, colorStops: Array<{
215
221
  position: number;
216
222
  color: string;
223
+ opacity?: number;
217
224
  }>, gradientAngle?: number): this;
218
225
  /**
219
226
  * Removes the fill from the shape, making it transparent.
@@ -222,7 +229,8 @@ export declare class FShape {
222
229
  * @example
223
230
  * ```ts
224
231
  * const fWorkbook = univerAPI.getActiveWorkbook();
225
- * const fWorksheet = fWorkbook.getActiveSheet();
232
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
233
+ * if (!fWorksheet) return;
226
234
  *
227
235
  * const shapeInfo = fWorksheet.newShape()
228
236
  * .setShapeType(univerAPI.Enum.ShapeTypeEnum.Rect)
@@ -241,7 +249,8 @@ export declare class FShape {
241
249
  * @example
242
250
  * ```ts
243
251
  * const fWorkbook = univerAPI.getActiveWorkbook();
244
- * const fWorksheet = fWorkbook.getActiveSheet();
252
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
253
+ * if (!fWorksheet) return;
245
254
  *
246
255
  * const shapeInfo = fWorksheet.newShape()
247
256
  * .setShapeType(univerAPI.Enum.ShapeTypeEnum.Rect)
@@ -260,7 +269,8 @@ export declare class FShape {
260
269
  * @example
261
270
  * ```ts
262
271
  * const fWorkbook = univerAPI.getActiveWorkbook();
263
- * const fWorksheet = fWorkbook.getActiveSheet();
272
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
273
+ * if (!fWorksheet) return;
264
274
  *
265
275
  * const shapeInfo = fWorksheet.newShape()
266
276
  * .setShapeType(univerAPI.Enum.ShapeTypeEnum.Rect)
@@ -279,7 +289,8 @@ export declare class FShape {
279
289
  * @example
280
290
  * ```ts
281
291
  * const fWorkbook = univerAPI.getActiveWorkbook();
282
- * const fWorksheet = fWorkbook.getActiveSheet();
292
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
293
+ * if (!fWorksheet) return;
283
294
  *
284
295
  * const shapeInfo = fWorksheet.newShape()
285
296
  * .setShapeType(univerAPI.Enum.ShapeTypeEnum.Rect)
@@ -298,7 +309,8 @@ export declare class FShape {
298
309
  * @example
299
310
  * ```ts
300
311
  * const fWorkbook = univerAPI.getActiveWorkbook();
301
- * const fWorksheet = fWorkbook.getActiveSheet();
312
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
313
+ * if (!fWorksheet) return;
302
314
  *
303
315
  * const shapeInfo = fWorksheet.newShape()
304
316
  * .setShapeType(univerAPI.Enum.ShapeTypeEnum.Rect)
@@ -317,7 +329,8 @@ export declare class FShape {
317
329
  * @example
318
330
  * ```ts
319
331
  * const fWorkbook = univerAPI.getActiveWorkbook();
320
- * const fWorksheet = fWorkbook.getActiveSheet();
332
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
333
+ * if (!fWorksheet) return;
321
334
  *
322
335
  * const shapeInfo = fWorksheet.newShape()
323
336
  * .setShapeType(univerAPI.Enum.ShapeTypeEnum.Rect)
@@ -336,7 +349,8 @@ export declare class FShape {
336
349
  * @example
337
350
  * ```ts
338
351
  * const fWorkbook = univerAPI.getActiveWorkbook();
339
- * const fWorksheet = fWorkbook.getActiveSheet();
352
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
353
+ * if (!fWorksheet) return;
340
354
  *
341
355
  * const shapeInfo = fWorksheet.newShape()
342
356
  * .setShapeType(univerAPI.Enum.ShapeTypeEnum.Rect)
@@ -356,7 +370,8 @@ export declare class FShape {
356
370
  * @example
357
371
  * ```ts
358
372
  * const fWorkbook = univerAPI.getActiveWorkbook();
359
- * const fWorksheet = fWorkbook.getActiveSheet();
373
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
374
+ * if (!fWorksheet) return;
360
375
  *
361
376
  * const shapeInfo = fWorksheet.newShape()
362
377
  * .setShapeType(univerAPI.Enum.ShapeTypeEnum.Rect)
@@ -376,7 +391,8 @@ export declare class FShape {
376
391
  * @example
377
392
  * ```ts
378
393
  * const fWorkbook = univerAPI.getActiveWorkbook();
379
- * const fWorksheet = fWorkbook.getActiveSheet();
394
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
395
+ * if (!fWorksheet) return;
380
396
  *
381
397
  * const shapeInfo = fWorksheet.newShape()
382
398
  * .setShapeType(univerAPI.Enum.ShapeTypeEnum.Rect)
@@ -396,7 +412,8 @@ export declare class FShape {
396
412
  * @example
397
413
  * ```ts
398
414
  * const fWorkbook = univerAPI.getActiveWorkbook();
399
- * const fWorksheet = fWorkbook.getActiveSheet();
415
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
416
+ * if (!fWorksheet) return;
400
417
  *
401
418
  * const shapeInfo = fWorksheet.newShape()
402
419
  * .setShapeType(univerAPI.Enum.ShapeTypeEnum.Rect)
@@ -415,7 +432,8 @@ export declare class FShape {
415
432
  * @example
416
433
  * ```ts
417
434
  * const fWorkbook = univerAPI.getActiveWorkbook();
418
- * const fWorksheet = fWorkbook.getActiveSheet();
435
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
436
+ * if (!fWorksheet) return;
419
437
  * const shapes = fWorksheet.getShapes();
420
438
  *
421
439
  * for (const shape of shapes) {
@@ -434,7 +452,8 @@ export declare class FShape {
434
452
  * @example
435
453
  * ```ts
436
454
  * const fWorkbook = univerAPI.getActiveWorkbook();
437
- * const fWorksheet = fWorkbook.getActiveSheet();
455
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
456
+ * if (!fWorksheet) return;
438
457
  * const shapes = fWorksheet.getShapes();
439
458
  *
440
459
  * const basicShape = shapes.find((s) => !s.isLineShape());
@@ -460,7 +479,8 @@ export declare class FShape {
460
479
  * @example
461
480
  * ```ts
462
481
  * const fWorkbook = univerAPI.getActiveWorkbook();
463
- * const fWorksheet = fWorkbook.getActiveSheet();
482
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
483
+ * if (!fWorksheet) return;
464
484
  * const shapes = fWorksheet.getShapes();
465
485
  *
466
486
  * const shape = shapes[0];
@@ -482,7 +502,8 @@ export declare class FShape {
482
502
  * @example
483
503
  * ```ts
484
504
  * const fWorkbook = univerAPI.getActiveWorkbook();
485
- * const fWorksheet = fWorkbook.getActiveSheet();
505
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
506
+ * if (!fWorksheet) return;
486
507
  * const shapes = fWorksheet.getShapes();
487
508
  *
488
509
  * const lineShape = shapes.find((s) => s.isLineShape());
@@ -535,7 +556,8 @@ export declare class FShape {
535
556
  * @example
536
557
  * ```ts
537
558
  * const fWorkbook = univerAPI.getActiveWorkbook();
538
- * const fWorksheet = fWorkbook.getActiveSheet();
559
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
560
+ * if (!fWorksheet) return;
539
561
  *
540
562
  * const shapeInfo = fWorksheet.newShape()
541
563
  * .setShapeType(univerAPI.Enum.ShapeTypeEnum.Rect)
@@ -556,7 +578,8 @@ export declare class FShape {
556
578
  * @example
557
579
  * ```ts
558
580
  * const fWorkbook = univerAPI.getActiveWorkbook();
559
- * const fWorksheet = fWorkbook.getActiveSheet();
581
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
582
+ * if (!fWorksheet) return;
560
583
  * const shapes = fWorksheet.getShapes();
561
584
  *
562
585
  * if (shapes.length > 0) {
@@ -572,7 +595,8 @@ export declare class FShape {
572
595
  * @example
573
596
  * ```ts
574
597
  * const fWorkbook = univerAPI.getActiveWorkbook();
575
- * const fWorksheet = fWorkbook.getActiveSheet();
598
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
599
+ * if (!fWorksheet) return;
576
600
  * const shapes = fWorksheet.getShapes();
577
601
  *
578
602
  * if (shapes.length > 0) {
@@ -588,7 +612,8 @@ export declare class FShape {
588
612
  * @example
589
613
  * ```ts
590
614
  * const fWorkbook = univerAPI.getActiveWorkbook();
591
- * const fWorksheet = fWorkbook.getActiveSheet();
615
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
616
+ * if (!fWorksheet) return;
592
617
  * const shapes = fWorksheet.getShapes();
593
618
  *
594
619
  * if (shapes.length > 0) {
@@ -606,7 +631,8 @@ export declare class FShape {
606
631
  * @example
607
632
  * ```ts
608
633
  * const fWorkbook = univerAPI.getActiveWorkbook();
609
- * const fWorksheet = fWorkbook.getActiveSheet();
634
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
635
+ * if (!fWorksheet) return;
610
636
  * const shapes = fWorksheet.getShapes();
611
637
  *
612
638
  * if (shapes.length > 0) {
@@ -626,7 +652,8 @@ export declare class FShape {
626
652
  * @example
627
653
  * ```ts
628
654
  * const fWorkbook = univerAPI.getActiveWorkbook();
629
- * const fWorksheet = fWorkbook.getActiveSheet();
655
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
656
+ * if (!fWorksheet) return;
630
657
  * const shapes = fWorksheet.getShapes();
631
658
  *
632
659
  * if (shapes.length > 0) {
@@ -31,7 +31,8 @@ export interface IFWorksheetShapeMixin {
31
31
  * @example
32
32
  * ```ts
33
33
  * const fWorkbook = univerAPI.getActiveWorkbook();
34
- * const fWorksheet = fWorkbook.getActiveSheet();
34
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
35
+ * if (!fWorksheet) return;
35
36
  *
36
37
  * // Create a rectangle shape at cell B2.
37
38
  * const shapeInfo = fWorksheet.newShape()
@@ -53,7 +54,8 @@ export interface IFWorksheetShapeMixin {
53
54
  * @example
54
55
  * ```ts
55
56
  * const fWorkbook = univerAPI.getActiveWorkbook();
56
- * const fWorksheet = fWorkbook.getActiveSheet();
57
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
58
+ * if (!fWorksheet) return;
57
59
  *
58
60
  * // Create a rectangle shape at cell B2.
59
61
  * const shapeInfo = fWorksheet.newShape()
@@ -86,7 +88,8 @@ export interface IFWorksheetShapeMixin {
86
88
  * @example
87
89
  * ```ts
88
90
  * const fWorkbook = univerAPI.getActiveWorkbook();
89
- * const fWorksheet = fWorkbook.getActiveSheet();
91
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
92
+ * if (!fWorksheet) return;
90
93
  *
91
94
  * // Create a rectangle shape at cell B2 with 200x200 size.
92
95
  * const shapeInfo = fWorksheet.newShape()
@@ -106,7 +109,8 @@ export interface IFWorksheetShapeMixin {
106
109
  * @example
107
110
  * ```ts
108
111
  * const fWorkbook = univerAPI.getActiveWorkbook();
109
- * const fWorksheet = fWorkbook.getActiveSheet();
112
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
113
+ * if (!fWorksheet) return;
110
114
  *
111
115
  * // Get all shapes on the active sheet.
112
116
  * const shapes = fWorksheet.getShapes();
@@ -122,7 +126,8 @@ export interface IFWorksheetShapeMixin {
122
126
  * @example
123
127
  * ```ts
124
128
  * const fWorkbook = univerAPI.getActiveWorkbook();
125
- * const fWorksheet = fWorkbook.getActiveSheet();
129
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
130
+ * if (!fWorksheet) return;
126
131
  *
127
132
  * // Create a rectangle shape.
128
133
  * const shapeInfo = fWorksheet.newShape()
@@ -155,7 +160,8 @@ export interface IFWorksheetShapeMixin {
155
160
  * @example
156
161
  * ```ts
157
162
  * const fWorkbook = univerAPI.getActiveWorkbook();
158
- * const fWorksheet = fWorkbook.getActiveSheet();
163
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
164
+ * if (!fWorksheet) return;
159
165
  *
160
166
  * // Get all shapes on the sheet.
161
167
  * const shapes = fWorksheet.getShapes();
@@ -184,7 +190,8 @@ export interface IFWorksheetShapeMixin {
184
190
  * @example
185
191
  * ```ts
186
192
  * const fWorkbook = univerAPI.getActiveWorkbook();
187
- * const fWorksheet = fWorkbook.getActiveSheet();
193
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
194
+ * if (!fWorksheet) return;
188
195
  *
189
196
  * // Create a straight connector with arrows at cell B2 with 200x100 size.
190
197
  * const connectorInfo = fWorksheet.newConnector()
@@ -1,4 +1,4 @@
1
- import type { IUniverSheetsShapeConfig } from './controllers/config.schema';
1
+ import type { IUniverSheetsShapeConfig } from './config/config';
2
2
  import { ICommandService, IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
3
3
  export declare class UniverSheetsShapePlugin extends Plugin {
4
4
  private readonly _config;
@@ -17,7 +17,7 @@ export declare class SheetsShapeService extends Disposable {
17
17
  getShapeTypeById(unitId: string, subUnitId: string, shapeId: string): ShapeTypeEnum | undefined;
18
18
  getShapeDataById(unitId: string, subUnitId: string, shapeId: string): IShapeData | undefined;
19
19
  getShapeModel(unitId: string, subUnitId: string, shapeId: string): import("@univerjs-pro/engine-shape").ShapeModel | undefined;
20
- getBasicShapeRelation(unitId: string, subUnitId: string, shapeId: string): import("../model/shape-manager").IShapeRelationItemWithLineId[];
20
+ getBasicShapeRelation(unitId: string, subUnitId: string, shapeId: string): import("../models/shape-manager").IShapeRelationItemWithLineId[];
21
21
  getLineShapeRelation(unitId: string, subUnitId: string, shapeId: string): import("@univerjs-pro/engine-shape").IShapeRelation | undefined;
22
22
  setShapeType(): void;
23
23
  private _serializeShapeForUnit;
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- (function(_0x336749,_0x59e143){const _0x419f90=_0x301c,_0xdc94ea=_0x336749();while(!![]){try{const _0x301248=parseInt(_0x419f90(0x139))/0x1+parseInt(_0x419f90(0x143))/0x2*(-parseInt(_0x419f90(0x12f))/0x3)+parseInt(_0x419f90(0x13c))/0x4*(parseInt(_0x419f90(0x1b0))/0x5)+parseInt(_0x419f90(0x1b2))/0x6+-parseInt(_0x419f90(0x1ba))/0x7+parseInt(_0x419f90(0x15e))/0x8+-parseInt(_0x419f90(0x163))/0x9;if(_0x301248===_0x59e143)break;else _0xdc94ea['push'](_0xdc94ea['shift']());}catch(_0x4ac3cf){_0xdc94ea['push'](_0xdc94ea['shift']());}}}(_0x172e,0x33215),function(_0x2966ad,_0x240f99){const _0x2c680a=_0x301c;typeof exports==_0x2c680a(0x19d)&&typeof module<'u'?_0x240f99(exports,require(`@univerjs-pro/engine-shape`),require(`@univerjs/core/facade`),require(`@univerjs-pro/sheets-shape`),require(`@univerjs/core`),require(`@univerjs/drawing`),require(`@univerjs/sheets`),require(`@univerjs/sheets-drawing`),require(`@univerjs/sheets/facade`)):typeof define==_0x2c680a(0x157)&&define[_0x2c680a(0x154)]?define([_0x2c680a(0x18d),_0x2c680a(0x123),_0x2c680a(0x150),_0x2c680a(0x1a9),_0x2c680a(0x14b),_0x2c680a(0x17f),_0x2c680a(0x137),'@univerjs/sheets-drawing',_0x2c680a(0x194)],_0x240f99):(_0x2966ad=typeof globalThis<'u'?globalThis:_0x2966ad||self,_0x240f99(_0x2966ad[_0x2c680a(0x13b)]={},_0x2966ad[_0x2c680a(0x142)],_0x2966ad[_0x2c680a(0x180)],_0x2966ad[_0x2c680a(0x147)],_0x2966ad['UniverCore'],_0x2966ad['UniverDrawing'],_0x2966ad[_0x2c680a(0x125)],_0x2966ad['UniverSheetsDrawing'],_0x2966ad['UniverSheetsFacade']));}(this,function(_0x5f0df1,_0x153f96,_0x3c1a33,_0x4d9a36,_0x38b0aa,_0x636280,_0x100dfc,_0x135bc6,_0x537fbb){const _0x578e73=_0x301c;Object['defineProperty'](_0x5f0df1,Symbol[_0x578e73(0x18b)],{'value':'Module'});var _0x24765d=class extends _0x3c1a33['FEnum']{get[_0x578e73(0x15c)](){const _0x109947=_0x578e73;return _0x153f96[_0x109947(0x15c)];}get[_0x578e73(0x193)](){const _0xe32788=_0x578e73;return _0x153f96[_0xe32788(0x193)];}get[_0x578e73(0x178)](){const _0x4cb41a=_0x578e73;return _0x153f96[_0x4cb41a(0x178)];}get[_0x578e73(0x13a)](){const _0x1f4402=_0x578e73;return _0x153f96[_0x1f4402(0x13a)];}get[_0x578e73(0x156)](){const _0x3c155b=_0x578e73;return _0x153f96[_0x3c155b(0x156)];}get[_0x578e73(0x1bc)](){return _0x153f96['ShapeLineCapEnum'];}get[_0x578e73(0x169)](){const _0x571954=_0x578e73;return _0x153f96[_0x571954(0x169)];}get[_0x578e73(0x13d)](){const _0x42097b=_0x578e73;return _0x153f96[_0x42097b(0x13d)];}get[_0x578e73(0x19e)](){const _0x38f0c9=_0x578e73;return _0x153f96[_0x38f0c9(0x19e)];}};_0x3c1a33['FEnum'][_0x578e73(0x12b)](_0x24765d);function _0x5c500b(_0x49dde){'@babel/helpers - typeof';const _0x54a6b3=_0x578e73;return _0x5c500b=typeof Symbol==_0x54a6b3(0x157)&&typeof Symbol[_0x54a6b3(0x126)]=='symbol'?function(_0x45fe18){return typeof _0x45fe18;}:function(_0x31bcb0){const _0x29ca89=_0x54a6b3;return _0x31bcb0&&typeof Symbol==_0x29ca89(0x157)&&_0x31bcb0[_0x29ca89(0x14a)]===Symbol&&_0x31bcb0!==Symbol[_0x29ca89(0x16f)]?'symbol':typeof _0x31bcb0;},_0x5c500b(_0x49dde);}function _0x256521(_0x3b0626,_0x5f5af8){const _0x201104=_0x578e73;if(_0x5c500b(_0x3b0626)!=_0x201104(0x19d)||!_0x3b0626)return _0x3b0626;var _0x39c468=_0x3b0626[Symbol[_0x201104(0x184)]];if(_0x39c468!==void 0x0){var _0x3361b3=_0x39c468['call'](_0x3b0626,_0x5f5af8||'default');if(_0x5c500b(_0x3361b3)!='object')return _0x3361b3;throw TypeError(_0x201104(0x1aa));}return(_0x5f5af8===_0x201104(0x195)?String:Number)(_0x3b0626);}function _0x1179ac(_0x282644){const _0x4e7017=_0x578e73;var _0x1036e8=_0x256521(_0x282644,_0x4e7017(0x195));return _0x5c500b(_0x1036e8)==_0x4e7017(0x183)?_0x1036e8:_0x1036e8+'';}function _0x3da4fe(_0x2a1ee4,_0x5c0e45,_0x1eb711){const _0x21c37a=_0x578e73;return(_0x5c0e45=_0x1179ac(_0x5c0e45))in _0x2a1ee4?Object[_0x21c37a(0x158)](_0x2a1ee4,_0x5c0e45,{'value':_0x1eb711,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2a1ee4[_0x5c0e45]=_0x1eb711,_0x2a1ee4;}var _0x5eb595=class{constructor(_0x4c7b35,_0x40b824,_0x5d46c5,_0x325b1a){const _0x1f59ef=_0x578e73;_0x3da4fe(this,_0x1f59ef(0x13e),void 0x0),_0x3da4fe(this,_0x1f59ef(0x19b),void 0x0),_0x3da4fe(this,'drawId',void 0x0),_0x3da4fe(this,'x',0x0),_0x3da4fe(this,'y',0x0),_0x3da4fe(this,'width',_0x4d9a36['DEFAULT_SHAPE_WIDTH']),_0x3da4fe(this,_0x1f59ef(0x1a4),_0x4d9a36[_0x1f59ef(0x160)]),_0x3da4fe(this,_0x1f59ef(0x190),void 0x0),_0x3da4fe(this,_0x1f59ef(0x198),{}),_0x3da4fe(this,'_injector',void 0x0),this['unitId']=_0x4c7b35,this['subUnitId']=_0x40b824,this[_0x1f59ef(0x136)]=_0x5d46c5||(0x0,_0x38b0aa[_0x1f59ef(0x1b3)])(),this[_0x1f59ef(0x15d)]=_0x325b1a;}['setPosition'](_0x5d7c80,_0x219c8d,_0x540054,_0x895ae){const _0x3cc7ea=_0x578e73;let _0x14480d=this[_0x3cc7ea(0x15d)][_0x3cc7ea(0x18c)](_0x100dfc[_0x3cc7ea(0x182)])['ensureSkeleton'](this[_0x3cc7ea(0x13e)],this[_0x3cc7ea(0x19b)]);if(!_0x14480d)throw Error(_0x3cc7ea(0x1a2)+this[_0x3cc7ea(0x13e)]+_0x3cc7ea(0x17e)+this[_0x3cc7ea(0x19b)]+_0x3cc7ea(0x1bf));let {transform:_0x48ba69}=(0x0,_0x100dfc['convertPositionCellToSheetOverGrid'])(this['unitId'],this[_0x3cc7ea(0x19b)],{'row':_0x5d7c80,'column':_0x219c8d,'rowOffset':_0x540054,'columnOffset':_0x895ae},0x1,0x1,_0x14480d);return this['x']=_0x48ba69[_0x3cc7ea(0x16c)],this['y']=_0x48ba69[_0x3cc7ea(0x1a8)],this;}['setAbsolutePosition'](_0x3021a9,_0x355f99){return this['x']=_0x3021a9,this['y']=_0x355f99,this;}[_0x578e73(0x171)](_0x20c268){const _0x1d7b83=_0x578e73;return this[_0x1d7b83(0x190)]=_0x20c268,this;}[_0x578e73(0x153)](_0x39bb71,_0x27cb63){const _0x1fda1c=_0x578e73;return this[_0x1fda1c(0x198)][_0x1fda1c(0x16b)]||(this[_0x1fda1c(0x198)][_0x1fda1c(0x16b)]={}),this[_0x1fda1c(0x198)][_0x1fda1c(0x16b)][_0x1fda1c(0x131)]=_0x153f96[_0x1fda1c(0x193)][_0x1fda1c(0x161)],_0x39bb71!==void 0x0&&(this['shapeData']['fill'][_0x1fda1c(0x1ae)]=_0x39bb71),_0x27cb63!==void 0x0&&(this[_0x1fda1c(0x198)][_0x1fda1c(0x16b)][_0x1fda1c(0x15b)]=_0x27cb63),this;}['setShapeGradientFill'](_0x406dcc,_0xf8e383,_0x38739e){const _0x5c16fc=_0x578e73;if(_0xf8e383===void 0x0||_0xf8e383[_0x5c16fc(0x127)]===0x0)throw Error('colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.');return this[_0x5c16fc(0x198)][_0x5c16fc(0x16b)]||(this[_0x5c16fc(0x198)][_0x5c16fc(0x16b)]={}),this[_0x5c16fc(0x198)][_0x5c16fc(0x16b)][_0x5c16fc(0x1a7)]=_0xf8e383,this[_0x5c16fc(0x198)]['fill']['fillType']=_0x153f96['ShapeFillEnum']['GradientFill'],this['shapeData'][_0x5c16fc(0x16b)][_0x5c16fc(0x14d)]=_0x406dcc,_0x38739e!==void 0x0&&(this[_0x5c16fc(0x198)][_0x5c16fc(0x16b)][_0x5c16fc(0x151)]=_0x38739e),this;}[_0x578e73(0x1a5)](){const _0x2b66da=_0x578e73;return this[_0x2b66da(0x198)][_0x2b66da(0x16b)]={'fillType':_0x153f96[_0x2b66da(0x193)]['NoFill']},this;}[_0x578e73(0x15a)](_0x5b7f98){const _0x222463=_0x578e73;return this[_0x222463(0x198)]['stroke']||(this['shapeData'][_0x222463(0x12d)]={}),this[_0x222463(0x198)][_0x222463(0x12d)][_0x222463(0x1ae)]=_0x5b7f98,this;}['setStrokeWidth'](_0x25794d){const _0x3f2ba3=_0x578e73;return this[_0x3f2ba3(0x198)][_0x3f2ba3(0x12d)]||(this[_0x3f2ba3(0x198)][_0x3f2ba3(0x12d)]={}),this[_0x3f2ba3(0x198)][_0x3f2ba3(0x12d)][_0x3f2ba3(0x141)]=_0x25794d,this;}[_0x578e73(0x177)](_0x1f7ac7){const _0x42df2b=_0x578e73;return this[_0x42df2b(0x198)][_0x42df2b(0x12d)]||(this[_0x42df2b(0x198)]['stroke']={}),this[_0x42df2b(0x198)][_0x42df2b(0x12d)]['dashType']=_0x1f7ac7,this;}['setStrokeLineJoinType'](_0x10cf1d){const _0x3131cc=_0x578e73;return this[_0x3131cc(0x198)][_0x3131cc(0x12d)]||(this[_0x3131cc(0x198)][_0x3131cc(0x12d)]={}),this[_0x3131cc(0x198)][_0x3131cc(0x12d)][_0x3131cc(0x185)]=_0x10cf1d,this;}['setStrokeLineCapType'](_0xe65ec4){const _0x23ba40=_0x578e73;return this[_0x23ba40(0x198)][_0x23ba40(0x12d)]||(this['shapeData'][_0x23ba40(0x12d)]={}),this[_0x23ba40(0x198)]['stroke'][_0x23ba40(0x18a)]=_0xe65ec4,this;}[_0x578e73(0x1b9)](_0x5c3f69){const _0x180ac3=_0x578e73;return this['shapeData'][_0x180ac3(0x12d)]||(this['shapeData'][_0x180ac3(0x12d)]={}),this['shapeData'][_0x180ac3(0x12d)]['opacity']=_0x5c3f69,this;}['setStrokeLineType'](_0x58814e){const _0x3715fb=_0x578e73;return this[_0x3715fb(0x198)]['stroke']||(this['shapeData'][_0x3715fb(0x12d)]={}),this['shapeData'][_0x3715fb(0x12d)][_0x3715fb(0x1b1)]=_0x58814e,this;}[_0x578e73(0x19c)](_0x49222b){const _0x55cc19=_0x578e73;return this[_0x55cc19(0x141)]=_0x49222b,this;}[_0x578e73(0x173)](_0x425871){const _0x5bbb85=_0x578e73;return this[_0x5bbb85(0x1a4)]=_0x425871,this;}[_0x578e73(0x1bb)](){const _0x2cced1=_0x578e73;let _0x41de03=this[_0x2cced1(0x15d)]['get'](_0x4d9a36[_0x2cced1(0x152)])[_0x2cced1(0x19f)](this[_0x2cced1(0x13e)],this[_0x2cced1(0x19b)],this[_0x2cced1(0x136)]);return _0x41de03?(0x0,_0x153f96['isConnectorShape'])(_0x41de03[_0x2cced1(0x1ab)]()):this[_0x2cced1(0x190)]?(0x0,_0x153f96[_0x2cced1(0x186)])(this[_0x2cced1(0x190)]):!0x1;}['getConnectionSites'](){const _0x7b14af=_0x578e73;let _0x29d0ff=this[_0x7b14af(0x15d)]['get'](_0x4d9a36[_0x7b14af(0x152)])[_0x7b14af(0x19f)](this[_0x7b14af(0x13e)],this[_0x7b14af(0x19b)],this[_0x7b14af(0x136)]);if(!_0x29d0ff)return[];let _0xf2219b=this['_injector'][_0x7b14af(0x18c)](_0x636280[_0x7b14af(0x191)])['getDrawingByParam']({'unitId':this[_0x7b14af(0x13e)],'subUnitId':this['subUnitId'],'drawingId':this[_0x7b14af(0x136)]});if(!(_0xf2219b!=null&&_0xf2219b[_0x7b14af(0x1a6)]))return[];let {width:_0x132aa8=0x0,height:_0x1f995a=0x0}=_0xf2219b[_0x7b14af(0x1a6)];return _0x29d0ff[_0x7b14af(0x170)]({'width':_0x132aa8,'height':_0x1f995a}),_0x29d0ff[_0x7b14af(0x148)]();}['getAdjustPoints'](){const _0x3c3574=_0x578e73;let _0x581ee3=this[_0x3c3574(0x15d)][_0x3c3574(0x18c)](_0x4d9a36[_0x3c3574(0x152)])['getShapeModel'](this[_0x3c3574(0x13e)],this[_0x3c3574(0x19b)],this[_0x3c3574(0x136)]);if(!_0x581ee3)return[];let _0x4f8459=this[_0x3c3574(0x15d)][_0x3c3574(0x18c)](_0x636280[_0x3c3574(0x191)])[_0x3c3574(0x1b4)]({'unitId':this['unitId'],'subUnitId':this['subUnitId'],'drawingId':this[_0x3c3574(0x136)]});if(!(_0x4f8459!=null&&_0x4f8459['transform']))return[];let {width:_0x16a055=0x0,height:_0x456cd8=0x0}=_0x4f8459[_0x3c3574(0x1a6)];return _0x581ee3[_0x3c3574(0x170)]({'width':_0x16a055,'height':_0x456cd8}),_0x581ee3['getDrawingPoints']();}[_0x578e73(0x140)](){const _0x2ceaf4=_0x578e73;let _0x363d40=this['_injector']['get'](_0x4d9a36[_0x2ceaf4(0x152)])['getShapeModel'](this[_0x2ceaf4(0x13e)],this[_0x2ceaf4(0x19b)],this[_0x2ceaf4(0x136)]);if(!_0x363d40||!(0x0,_0x153f96['isConnectorShape'])(_0x363d40[_0x2ceaf4(0x1ab)]()))return[];let _0x402a6f=this[_0x2ceaf4(0x15d)][_0x2ceaf4(0x18c)](_0x636280[_0x2ceaf4(0x191)])['getDrawingByParam']({'unitId':this['unitId'],'subUnitId':this[_0x2ceaf4(0x19b)],'drawingId':this['drawId']});if(!(_0x402a6f!=null&&_0x402a6f[_0x2ceaf4(0x1a6)]))return[];let {width:_0x1e4b53=0x0,height:_0xa4262f=0x0}=_0x402a6f[_0x2ceaf4(0x1a6)];return _0x363d40[_0x2ceaf4(0x170)]({'width':_0x1e4b53,'height':_0xa4262f}),_0x363d40[_0x2ceaf4(0x140)]();}[_0x578e73(0x145)](){const _0x280b35=_0x578e73;var _0x19cf1a;let _0x1522fe=this['_injector']['get'](_0x4d9a36[_0x280b35(0x152)])[_0x280b35(0x19f)](this[_0x280b35(0x13e)],this['subUnitId'],this[_0x280b35(0x136)]);return _0x1522fe?(_0x19cf1a=_0x1522fe[_0x280b35(0x145)]())==null?null:_0x19cf1a:null;}[_0x578e73(0x188)](){const _0x372fc9=_0x578e73;var _0x276077;let _0x21025f=this[_0x372fc9(0x15d)][_0x372fc9(0x18c)](_0x4d9a36[_0x372fc9(0x152)])[_0x372fc9(0x19f)](this[_0x372fc9(0x13e)],this[_0x372fc9(0x19b)],this['drawId']);return _0x21025f?(_0x276077=_0x21025f[_0x372fc9(0x188)]())==null?null:_0x276077:null;}[_0x578e73(0x1ad)](){const _0x4186a7=_0x578e73;var _0x2ef413,_0x2517ac;if(!this[_0x4186a7(0x190)])throw Error(_0x4186a7(0x165));if(this['x']===0x0||this['y']===0x0){let _0x352cdd=this['_injector'][_0x4186a7(0x18c)](_0x100dfc['SheetSkeletonService'])[_0x4186a7(0x17a)](this[_0x4186a7(0x13e)],this[_0x4186a7(0x19b)]);if(!_0x352cdd)throw Error(_0x4186a7(0x1a2)+this['unitId']+_0x4186a7(0x17e)+this[_0x4186a7(0x19b)]+_0x4186a7(0x1bf));let {transform:_0x4a4f32}=(0x0,_0x100dfc['convertPositionCellToSheetOverGrid'])(this['unitId'],this['subUnitId'],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x352cdd);this['x']=this['x']>0x0?this['x']:_0x4a4f32[_0x4186a7(0x16c)],this['y']=this['y']>0x0?this['y']:_0x4a4f32['top'];}return this['width']=(_0x2ef413=this['width'])==null?_0x4d9a36[_0x4186a7(0x17b)]:_0x2ef413,this[_0x4186a7(0x1a4)]=(_0x2517ac=this['height'])==null?_0x4d9a36[_0x4186a7(0x160)]:_0x2517ac,{'unitId':this[_0x4186a7(0x13e)],'subUnitId':this[_0x4186a7(0x19b)],'shapeId':this[_0x4186a7(0x136)],'shapeType':this[_0x4186a7(0x190)],'shapeData':Object[_0x4186a7(0x1b7)](this['shapeData'])[_0x4186a7(0x127)]>0x0?this[_0x4186a7(0x198)]:void 0x0,'x':this['x'],'y':this['y'],'width':this[_0x4186a7(0x141)],'height':this['height']};}[_0x578e73(0x130)](){return this['drawId'];}[_0x578e73(0x1ab)](){const _0x3c8216=_0x578e73;return this[_0x3c8216(0x190)];}[_0x578e73(0x132)](){const _0xdfc9bb=_0x578e73;return this[_0xdfc9bb(0x198)];}[_0x578e73(0x1ac)](){return{'x':this['x'],'y':this['y']};}[_0x578e73(0x192)](){const _0x2fff61=_0x578e73;return{'width':this[_0x2fff61(0x141)],'height':this['height']};}},_0x240650=class extends _0x5eb595{constructor(_0x3ea8b6,_0xe3a6e,_0x154e78,_0x2583bc){super(_0x3ea8b6,_0xe3a6e,_0x154e78,_0x2583bc),_0x3da4fe(this,'shapeData',{});}['setShapeType'](_0x1f9e80){const _0x54a786=_0x578e73;if(!(0x0,_0x153f96[_0x54a786(0x186)])(_0x1f9e80))throw Error(_0x54a786(0x144)+_0x1f9e80+',\x20but\x20expected\x20a\x20connector\x20shape\x20type.');return super[_0x54a786(0x171)](_0x1f9e80),this;}[_0x578e73(0x196)](_0x4e629d){const _0x4e026f=_0x578e73;var _0x460427,_0x2c42c8;return(_0x460427=this[_0x4e026f(0x198)])!=null&&_0x460427['ln']||(this['shapeData']['ln']={}),!((_0x2c42c8=this[_0x4e026f(0x198)])==null||(_0x2c42c8=_0x2c42c8['ln'])==null)&&_0x2c42c8[_0x4e026f(0x18f)]||(this['shapeData']['ln']['startArrow']={}),this[_0x4e026f(0x198)]['ln'][_0x4e026f(0x18f)]['type']=_0x4e629d,this;}['setEndArrowType'](_0x341c17){const _0x41b8b0=_0x578e73;var _0x28c02e,_0x41b167;return(_0x28c02e=this[_0x41b8b0(0x198)])!=null&&_0x28c02e['ln']||(this['shapeData']['ln']={}),!((_0x41b167=this['shapeData'])==null||(_0x41b167=_0x41b167['ln'])==null)&&_0x41b167[_0x41b8b0(0x16a)]||(this[_0x41b8b0(0x198)]['ln'][_0x41b8b0(0x16a)]={}),this[_0x41b8b0(0x198)]['ln'][_0x41b8b0(0x16a)]['type']=_0x341c17,this;}[_0x578e73(0x15f)](_0x426265){const _0x3cf8d8=_0x578e73;var _0x1398ac,_0x52b57f;return(_0x1398ac=this[_0x3cf8d8(0x198)])!=null&&_0x1398ac['ln']||(this[_0x3cf8d8(0x198)]['ln']={}),!((_0x52b57f=this[_0x3cf8d8(0x198)])==null||(_0x52b57f=_0x52b57f['ln'])==null)&&_0x52b57f[_0x3cf8d8(0x18f)]||(this[_0x3cf8d8(0x198)]['ln'][_0x3cf8d8(0x18f)]={}),this[_0x3cf8d8(0x198)]['ln'][_0x3cf8d8(0x18f)][_0x3cf8d8(0x14c)]=_0x426265,this;}[_0x578e73(0x1b5)](_0x4b80b0){const _0x191b1e=_0x578e73;var _0x8432e3,_0x23444f;return(_0x8432e3=this[_0x191b1e(0x198)])!=null&&_0x8432e3['ln']||(this['shapeData']['ln']={}),!((_0x23444f=this['shapeData'])==null||(_0x23444f=_0x23444f['ln'])==null)&&_0x23444f[_0x191b1e(0x16a)]||(this[_0x191b1e(0x198)]['ln']['endArrow']={}),this['shapeData']['ln'][_0x191b1e(0x16a)]['size']=_0x4b80b0,this;}[_0x578e73(0x1ad)](){const _0x27de5c=_0x578e73;return super[_0x27de5c(0x1ad)]();}[_0x578e73(0x188)](){const _0xa718dc=_0x578e73;var _0xae2755;return((_0xae2755=this[_0xa718dc(0x198)])==null||(_0xae2755=_0xae2755[_0xa718dc(0x146)])==null?void 0x0:_0xae2755['to'])||null;}[_0x578e73(0x145)](){const _0x277b9e=_0x578e73;var _0x1471c9;return((_0x1471c9=this[_0x277b9e(0x198)])==null||(_0x1471c9=_0x1471c9[_0x277b9e(0x146)])==null?void 0x0:_0x1471c9[_0x277b9e(0x138)])||null;}};function _0x42768b(_0x58c4c0,_0x58a8e2,_0x114ad9,_0x52c773,_0x17e9f6,_0xe79540){const _0x28a8f3=_0x578e73;let _0x3d8d69=_0x17e9f6['getShapeModel'](_0x58c4c0,_0x58a8e2,_0x114ad9);if(!_0x3d8d69)return null;let _0xbe0786=_0xe79540[_0x28a8f3(0x1b4)]({'unitId':_0x58c4c0,'subUnitId':_0x58a8e2,'drawingId':_0x114ad9});if(!(_0xbe0786!=null&&_0xbe0786[_0x28a8f3(0x1a6)]))return null;let {left:_0x5a6454=0x0,top:_0x37db86=0x0,width:_0x34350e=0x0,height:_0x3c86ae=0x0,flipX:_0x23a832=!0x1,flipY:_0x1be4f1=!0x1,angle:_0x5dfdb2}=_0xbe0786[_0x28a8f3(0x1a6)];_0x3d8d69[_0x28a8f3(0x170)]({'width':_0x34350e,'height':_0x3c86ae});let _0x4c8487=_0x3d8d69[_0x28a8f3(0x148)]()[_0x28a8f3(0x197)](_0x4e5622=>_0x4e5622[_0x28a8f3(0x155)]===_0x52c773);if(!_0x4c8487)return null;let _0x5dc646=_0x23a832?_0x34350e-_0x4c8487['x']:_0x4c8487['x'],_0x436d71=_0x1be4f1?_0x3c86ae-_0x4c8487['y']:_0x4c8487['y'];if(_0x5dfdb2&&_0x5dfdb2!==0x0){let _0x315c05=_0x5dfdb2*Math['PI']/0xb4,_0x4ed14e=Math['cos'](_0x315c05),_0x5ef677=Math['sin'](_0x315c05),_0x20c039=_0x34350e/0x2,_0x3ddd53=_0x3c86ae/0x2,_0x11885e=_0x5dc646-_0x20c039,_0x2fb209=_0x436d71-_0x3ddd53;_0x5dc646=_0x20c039+_0x11885e*_0x4ed14e-_0x2fb209*_0x5ef677,_0x436d71=_0x3ddd53+_0x11885e*_0x5ef677+_0x2fb209*_0x4ed14e;}_0x5dc646+=_0x5a6454,_0x436d71+=_0x37db86;let _0x3771b3=_0x4c8487[_0x28a8f3(0x1b8)]/0xea60;_0x23a832&&(_0x3771b3=0xb4-_0x3771b3),_0x1be4f1&&(_0x3771b3=-_0x3771b3),_0x3771b3+=_0x5dfdb2||0x0,_0x3771b3=(_0x3771b3%0x168+0x168)%0x168;let _0x578c8b=(0x0,_0x153f96[_0x28a8f3(0x12e)])({'left':_0x5a6454,'top':_0x37db86,'width':_0x34350e,'height':_0x3c86ae},_0x5dfdb2||0x0);return{'point':{'x':_0x5dc646,'y':_0x436d71},'angle':_0x3771b3,'bounds':_0x578c8b};}function _0x36a5ba(_0x2c2c02,_0x3f67ab){const _0x26b847=_0x578e73;let _0x2413e1=_0x3f67ab['x']-_0x2c2c02['x'],_0x3ec6fa=_0x3f67ab['y']-_0x2c2c02['y'];return Math[_0x26b847(0x189)](_0x2413e1)>=Math[_0x26b847(0x189)](_0x3ec6fa)?_0x2413e1>=0x0?0xb4:0x0:_0x3ec6fa>=0x0?0x10e:0x5a;}function _0x3b7043(_0x39cf3c,_0x4fbefc,_0x187c40,_0x42034e,_0x1a1ce1,_0x25a077,_0x510092){const _0x3ffcbf=_0x578e73;let _0x5c7633=_0x25a077[_0x3ffcbf(0x19f)](_0x39cf3c,_0x4fbefc,_0x187c40);if(!_0x5c7633)return null;let _0x39e544=_0x510092[_0x3ffcbf(0x1b4)]({'unitId':_0x39cf3c,'subUnitId':_0x4fbefc,'drawingId':_0x187c40});if(!(_0x39e544!=null&&_0x39e544['transform']))return null;let {left:_0x5b2211=0x0,top:_0x5aa66d=0x0,width:_0x32d945=0x0,height:_0x45deee=0x0,flipX:_0x303268=!0x1,flipY:_0x3b2bf6=!0x1}=_0x39e544[_0x3ffcbf(0x1a6)];_0x5c7633[_0x3ffcbf(0x170)]({'width':_0x32d945,'height':_0x45deee});let _0x58f932=_0x5c7633[_0x3ffcbf(0x140)]();if(_0x58f932[_0x3ffcbf(0x127)]<0x2)return null;let _0x175915=_0x42034e?_0x58f932[0x0]:_0x58f932[_0x58f932[_0x3ffcbf(0x127)]-0x1],_0x45925f=new _0x153f96[(_0x3ffcbf(0x16e))]({'left':_0x5b2211,'top':_0x5aa66d,'width':_0x32d945,'height':_0x45deee,'flipX':_0x303268,'flipY':_0x3b2bf6})['localToWorld'](_0x175915);return{'point':_0x45925f,'angle':_0x36a5ba(_0x1a1ce1[_0x3ffcbf(0x167)],_0x45925f),'bounds':{'left':_0x45925f['x'],'top':_0x45925f['y'],'width':0x0,'height':0x0}};}var _0x3f50d1=class extends _0x537fbb[_0x578e73(0x19a)]{async[_0x578e73(0x16d)](_0x142cf6){const _0x1a3e7d=_0x578e73;let {unitId:_0x341332,subUnitId:_0xffc602,shapeId:_0x416a0e,shapeType:_0x3869b1,shapeData:_0x1b48cd,x:_0x394aeb,y:_0x34367d,width:_0x4db41d,height:_0x63b2d9}=_0x142cf6;return this[_0x1a3e7d(0x1a0)][_0x1a3e7d(0x175)](_0x4d9a36['InsertShapeCommand']['id'],{'unitId':_0x341332,'subUnitId':_0xffc602,'shapeId':_0x416a0e,'shapeType':_0x3869b1,'shapeData':_0x1b48cd,'position':{'x':_0x394aeb,'y':_0x34367d},'width':_0x4db41d,'height':_0x63b2d9});}async[_0x578e73(0x166)](_0x51a360){const _0x17b887=_0x578e73;let {unitId:_0x55c519,subUnitId:_0x5b7031,shapeId:_0x57a947,shapeType:_0x1b6501,shapeData:_0x475c86,x:_0x5ab3d3,y:_0x30418d,width:_0xc26217,height:_0x30c8e5}=_0x51a360;return this[_0x17b887(0x1a0)][_0x17b887(0x175)](_0x4d9a36[_0x17b887(0x14f)]['id'],{'unitId':_0x55c519,'subUnitId':_0x5b7031,'shapeId':_0x57a947,'shapeType':_0x1b6501,'shapeData':_0x475c86,'position':{'x':_0x5ab3d3,'y':_0x30418d},'width':_0xc26217,'height':_0x30c8e5});}[_0x578e73(0x199)](_0x541087){const _0x3e9708=_0x578e73;let _0x35e152=this[_0x3e9708(0x128)]()['getUnitId'](),_0x15dcf0=this[_0x3e9708(0x1bd)]();if(_0x541087){let _0x2e5561=new _0x5eb595(_0x35e152,_0x15dcf0,_0x541087[_0x3e9708(0x136)],this[_0x3e9708(0x15d)]);return this[_0x3e9708(0x168)](_0x2e5561,_0x35e152,_0x15dcf0,_0x541087[_0x3e9708(0x136)]),_0x2e5561;}return new _0x5eb595(_0x35e152,_0x15dcf0,(0x0,_0x38b0aa[_0x3e9708(0x1b3)])(),this[_0x3e9708(0x15d)]);}[_0x578e73(0x1b6)](_0x39c7aa){const _0x24e540=_0x578e73;let _0x50fce3=this[_0x24e540(0x128)]()[_0x24e540(0x13f)](),_0x529b3c=this[_0x24e540(0x1bd)]();if(_0x39c7aa){let _0x5588aa=new _0x240650(_0x50fce3,_0x529b3c,_0x39c7aa[_0x24e540(0x136)],this[_0x24e540(0x15d)]);return this[_0x24e540(0x168)](_0x5588aa,_0x50fce3,_0x529b3c,_0x39c7aa[_0x24e540(0x136)]),_0x5588aa;}return new _0x240650(_0x50fce3,_0x529b3c,(0x0,_0x38b0aa[_0x24e540(0x1b3)])(),this[_0x24e540(0x15d)]);}[_0x578e73(0x135)](){const _0x11bb77=_0x578e73;let _0x1d24e9=this[_0x11bb77(0x15d)][_0x11bb77(0x18c)](_0x135bc6['ISheetDrawingService']),_0x3c4dfa=this['getWorkbook']()[_0x11bb77(0x13f)](),_0x4e4ab0=this[_0x11bb77(0x1bd)](),_0x18bb2a=_0x1d24e9['getDrawingData'](_0x3c4dfa,_0x4e4ab0);if(!_0x18bb2a)return[];let _0x20af76=[];for(let [_0x82743c,_0x4112d1]of Object[_0x11bb77(0x149)](_0x18bb2a))if(_0x4112d1&&_0x4112d1[_0x11bb77(0x162)]===_0x38b0aa['DrawingTypeEnum'][_0x11bb77(0x174)]){let _0x44db57=new _0x5eb595(_0x3c4dfa,_0x4e4ab0,_0x82743c,this['_injector']);this[_0x11bb77(0x168)](_0x44db57,_0x3c4dfa,_0x4e4ab0,_0x82743c),_0x20af76[_0x11bb77(0x159)](_0x44db57);}return _0x20af76;}[_0x578e73(0x18e)](_0x4b78f2){const _0x368d12=_0x578e73;let {unitId:_0xbda03b,subUnitId:_0x4fc6a4,drawId:_0x3142fa}=_0x4b78f2;return this[_0x368d12(0x1a0)][_0x368d12(0x175)](_0x135bc6[_0x368d12(0x124)]['id'],{'unitId':_0xbda03b,'drawings':[{'unitId':_0xbda03b,'subUnitId':_0x4fc6a4,'drawingId':_0x3142fa,'drawingType':_0x38b0aa['DrawingTypeEnum']['DRAWING_SHAPE']}]});}async[_0x578e73(0x17d)](_0x39ed09){const _0x350b97=_0x578e73;let {connector:_0x5d9ae8,startTarget:_0x7f3100,endTarget:_0x44f1c9}=_0x39ed09;if(!_0x7f3100&&!_0x44f1c9)return!0x1;let _0x331e02=this[_0x350b97(0x128)]()[_0x350b97(0x13f)](),_0x97c206=this['getSheetId'](),_0x4eb3b1=this['_injector'][_0x350b97(0x18c)](_0x4d9a36[_0x350b97(0x152)]),_0x7172b8=this['_injector']['get'](_0x636280[_0x350b97(0x191)]),_0x26b5ed=_0x4eb3b1[_0x350b97(0x19f)](_0x331e02,_0x97c206,_0x5d9ae8['drawId']);if(!_0x26b5ed)return!0x1;let _0x3d2f9a=_0x26b5ed[_0x350b97(0x1ab)](),_0x2726e0=_0x26b5ed[_0x350b97(0x172)](),_0x102da8={};for(let _0x3ee76d of _0x26b5ed[_0x350b97(0x17c)]()){let _0x6ec497=_0x26b5ed['getAdjustValueByName'](_0x3ee76d);_0x6ec497!==void 0x0&&(_0x102da8[_0x3ee76d]=_0x6ec497);}let {startInfo:_0x320b68,endInfo:_0x454b90}=this[_0x350b97(0x164)](_0x331e02,_0x97c206,_0x5d9ae8,_0x26b5ed,_0x7f3100,_0x44f1c9,_0x4eb3b1,_0x7172b8,_0x2726e0);if(!_0x320b68||!_0x454b90)return!0x1;let _0xc16d5a=(0x0,_0x153f96[_0x350b97(0x1a1)])((0x0,_0x153f96['routeConnectorLineShape'])(_0x320b68,_0x454b90,_0x3d2f9a),_0x3d2f9a),_0x43b686={};return _0x7f3100?_0x43b686[_0x350b97(0x138)]={'shapeId':_0x7f3100[_0x350b97(0x1be)][_0x350b97(0x136)],'cxnIndex':_0x7f3100[_0x350b97(0x134)]}:_0x2726e0!=null&&_0x2726e0[_0x350b97(0x138)]&&(_0x43b686[_0x350b97(0x138)]=_0x2726e0[_0x350b97(0x138)]),_0x44f1c9?_0x43b686['to']={'shapeId':_0x44f1c9[_0x350b97(0x1be)][_0x350b97(0x136)],'cxnIndex':_0x44f1c9['connectionSiteIndex']}:_0x2726e0!=null&&_0x2726e0['to']&&(_0x43b686['to']=_0x2726e0['to']),this[_0x350b97(0x1a0)][_0x350b97(0x175)](_0x4d9a36[_0x350b97(0x181)]['id'],{'unitId':_0x331e02,'subUnitId':_0x97c206,'connectorShapeId':_0x5d9ae8['drawId'],'width':_0xc16d5a['worldRect'][_0x350b97(0x141)],'height':_0xc16d5a[_0x350b97(0x12c)][_0x350b97(0x1a4)],'left':_0xc16d5a['worldRect'][_0x350b97(0x16c)],'top':_0xc16d5a['worldRect'][_0x350b97(0x1a8)],'flipX':_0xc16d5a[_0x350b97(0x12c)][_0x350b97(0x176)]||!0x1,'flipY':_0xc16d5a[_0x350b97(0x12c)]['flipY']||!0x1,'oldAdjustValues':_0x102da8,'newAdjustValues':_0xc16d5a['adjustValues'],'newLineType':_0xc16d5a[_0x350b97(0x14e)],'oldLineType':_0x3d2f9a,'rotation':_0xc16d5a[_0x350b97(0x133)],'oldRelation':_0x2726e0,'newRelation':_0x43b686});}['_preloadShapeProperties'](_0x5a50b3,_0x2575ee,_0x5c01e8,_0x45987e){const _0x59508b=_0x578e73;let _0x3e1154=this[_0x59508b(0x15d)][_0x59508b(0x18c)](_0x636280[_0x59508b(0x191)])['getDrawingByParam']({'unitId':_0x2575ee,'subUnitId':_0x5c01e8,'drawingId':_0x45987e});if(_0x3e1154!=null&&_0x3e1154['transform']){var _0x52a72d,_0x1aef53,_0x4b0621,_0x454f08;_0x5a50b3['x']=(_0x52a72d=_0x3e1154[_0x59508b(0x1a6)][_0x59508b(0x16c)])==null?0x0:_0x52a72d,_0x5a50b3['y']=(_0x1aef53=_0x3e1154['transform'][_0x59508b(0x1a8)])==null?0x0:_0x1aef53,_0x5a50b3[_0x59508b(0x141)]=(_0x4b0621=_0x3e1154[_0x59508b(0x1a6)][_0x59508b(0x141)])==null?_0x5a50b3['width']:_0x4b0621,_0x5a50b3[_0x59508b(0x1a4)]=(_0x454f08=_0x3e1154[_0x59508b(0x1a6)][_0x59508b(0x1a4)])==null?_0x5a50b3[_0x59508b(0x1a4)]:_0x454f08;}let _0x671132=this['_injector'][_0x59508b(0x18c)](_0x4d9a36['SheetsShapeService'])[_0x59508b(0x19f)](_0x2575ee,_0x5c01e8,_0x45987e);if(_0x671132){_0x5a50b3[_0x59508b(0x190)]=_0x671132['getShapeType']();let _0x4e56ef=_0x671132[_0x59508b(0x132)]();_0x4e56ef&&(_0x5a50b3[_0x59508b(0x198)]=JSON[_0x59508b(0x129)](JSON['stringify'](_0x4e56ef)));}}[_0x578e73(0x164)](_0x3c12eb,_0x37731a,_0x1ae958,_0x2a6fb8,_0x268e59,_0x435442,_0x48ec8b,_0x368f72,_0x5afca8){const _0x3ca0ab=_0x578e73;let _0x284e46=null,_0x5a580e=null;return _0x268e59&&(_0x284e46=_0x42768b(_0x3c12eb,_0x37731a,_0x268e59[_0x3ca0ab(0x1be)][_0x3ca0ab(0x136)],_0x268e59['connectionSiteIndex'],_0x48ec8b,_0x368f72)),_0x435442&&(_0x5a580e=_0x42768b(_0x3c12eb,_0x37731a,_0x435442[_0x3ca0ab(0x1be)][_0x3ca0ab(0x136)],_0x435442[_0x3ca0ab(0x134)],_0x48ec8b,_0x368f72)),_0x284e46||(_0x284e46=this[_0x3ca0ab(0x179)](_0x3c12eb,_0x37731a,_0x1ae958[_0x3ca0ab(0x136)],!0x0,_0x5a580e,_0x5afca8==null?void 0x0:_0x5afca8[_0x3ca0ab(0x138)],_0x48ec8b,_0x368f72)),_0x5a580e||(_0x5a580e=this[_0x3ca0ab(0x179)](_0x3c12eb,_0x37731a,_0x1ae958[_0x3ca0ab(0x136)],!0x1,_0x284e46,_0x5afca8==null?void 0x0:_0x5afca8['to'],_0x48ec8b,_0x368f72)),{'startInfo':_0x284e46,'endInfo':_0x5a580e};}[_0x578e73(0x179)](_0x1d3c84,_0x5aeb38,_0x1d0b00,_0x107fef,_0x164d68,_0x5cdb9a,_0x50534d,_0x84f667){const _0x2b2553=_0x578e73;if(_0x5cdb9a){let _0x6d5062=_0x42768b(_0x1d3c84,_0x5aeb38,_0x5cdb9a[_0x2b2553(0x1af)],_0x5cdb9a[_0x2b2553(0x12a)],_0x50534d,_0x84f667);if(_0x6d5062)return _0x6d5062;}return _0x164d68?_0x3b7043(_0x1d3c84,_0x5aeb38,_0x1d0b00,_0x107fef,_0x164d68,_0x50534d,_0x84f667):null;}};_0x537fbb['FWorksheet']['extend'](_0x3f50d1),_0x5f0df1[_0x578e73(0x187)]=_0x240650,_0x5f0df1[_0x578e73(0x1a3)]=_0x5eb595;}));function _0x301c(_0x1c9dc1,_0x19ef19){_0x1c9dc1=_0x1c9dc1-0x123;const _0x172ea8=_0x172e();let _0x301ce2=_0x172ea8[_0x1c9dc1];return _0x301ce2;}function _0x172e(){const _0x524da4=['SetShapeDrawingDataCommand','@univerjs/core/facade','gradientAngle','SheetsShapeService','setShapeSolidFill','amd','index','ShapeLineDashEnum','function','defineProperty','push','setStrokeColor','opacity','ShapeTypeEnum','_injector','1540792meiCSA','setStartArrowSize','DEFAULT_SHAPE_HEIGHT','SolidFill','drawingType','1314207rvIYeV','_resolveEndpoints','Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().','updateShape','point','_preloadShapeProperties','ShapeLineJoinEnum','endArrow','fill','left','insertShape','ConnectorCoordinateTransform','prototype','updateContext','setShapeType','getShapeRelation','setHeight','DRAWING_SHAPE','executeCommand','flipX','setStrokeLineDashType','ShapeGradientTypeEnum','_resolveExistingOrFreeEndpoint','ensureSkeleton','DEFAULT_SHAPE_WIDTH','getAdjustNames','connectShapes','\x20and\x20subUnitId\x20','@univerjs/drawing','UniverCoreFacade','UpdateConnectorRelationCommand','SheetSkeletonService','symbol','toPrimitive','lineJoinType','isConnectorShape','FConnectorShape','getEndConnectInfo','abs','capType','toStringTag','get','exports','removeShape','startArrow','shapeType','IDrawingManagerService','getSize','ShapeFillEnum','@univerjs/sheets/facade','string','setStartArrowType','find','shapeData','newShape','FWorksheet','subUnitId','setWidth','object','ShapeArrowSizeEnum','getShapeModel','_commandService','computeConnectorRouteLayout','Skeleton\x20for\x20unitId\x20','FShape','height','setNoneFill','transform','gradientStops','top','@univerjs-pro/sheets-shape','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getShapeType','getPosition','build','color','shapeId','10sLBSIH','lineStrokeType','1521084HZXUEH','generateRandomId','getDrawingByParam','setEndArrowSize','newConnector','keys','ang','setStrokeOpacity','2249905iAwPCN','isLineShape','ShapeLineCapEnum','getSheetId','shape','\x20not\x20found','@univerjs-pro/engine-shape','RemoveSheetDrawingCommand','UniverSheets','iterator','length','getWorkbook','parse','cxnIndex','extend','worldRect','stroke','getBasicShapeRotateBound','80226PcZzBI','getShapeId','fillType','getShapeData','rotation','connectionSiteIndex','getShapes','drawId','@univerjs/sheets','from','7056WHircU','ShapeLineTypeEnum','UniverProSheetsShapeFacade','500880OUBYfG','ShapeArrowTypeEnum','unitId','getUnitId','getConnectorLinePoints','width','UniverProEngineShape','2QFYRvb','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20','getStartConnectInfo','relation','UniverProSheetsShape','getConnectionSiteList','entries','constructor','@univerjs/core','size','gradientType','lineType'];_0x172e=function(){return _0x524da4;};return _0x172e();}
1
+ function _0x42c8(){const _0x37b7ac=['SolidFill','InsertShapeCommand','entries','getAdjustPoints','default','getDrawingData','setStrokeLineType','sin','getShapeRelation','NoFill','ShapeFillEnum','RemoveSheetDrawingCommand','get','@univerjs/core','removeShape','cos','getShapes','@univerjs-pro/engine-shape','capType','UniverSheets','symbol','gradientType','object','startArrow','getStartConnectInfo','executeCommand','insertShape','newConnector','DEFAULT_SHAPE_WIDTH','color','@univerjs/sheets-drawing','FEnum','lineStrokeType','\x20not\x20found','connectionSiteIndex','stringify','index','@univerjs/sheets','build','@univerjs/drawing','connectShapes','UniverSheetsDrawing','setStrokeOpacity','58768mercro','drawId','ShapeArrowSizeEnum','UniverCore','lineJoinType','shape','getAdjustValueByName','setPosition','ShapeLineCapEnum','setStrokeColor','4123956nqTEcX','updateShape','DEFAULT_SHAPE_HEIGHT','getUnitId','2ojBaSd','setShapeGradientFill','amd','call','drawingType','find','routeConnectorLineShape','rotation','getAdjustNames','toStringTag','setEndArrowType','gradientStops','FShape','getEndConnectInfo','opacity','shapeType','getPosition','DRAWING_SHAPE','ConnectorCoordinateTransform','parse','from','ShapeGradientTypeEnum','setShapeType','abs','UniverProEngineShape','_injector','extend','exports','prototype','SetShapeDrawingDataCommand','generateRandomId','getDrawingByParam','ShapeTypeEnum','top','getShapeType','1143uYTQkT','point','adjustValues','SheetsShapeService','_preloadShapeProperties','left','IDrawingManagerService','setStrokeLineJoinType','worldRect','SheetSkeletonService','DrawingTypeEnum','ShapeLineJoinEnum','isLineShape','function','getDrawingPoints','convertPositionCellToSheetOverGrid','unitId','colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.','type','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','stroke','ShapeArrowTypeEnum','ShapeLineDashEnum','ensureSkeleton','fillType','string','getSheetId','defineProperty','endArrow','push','@univerjs/core/facade','getConnectorLinePoints','updateContext','568225haMllp','getConnectionSiteList','FWorksheet','_resolveExistingOrFreeEndpoint','flipX','getShapeModel','ShapeLineTypeEnum','UniverDrawing','isConnectorShape','toPrimitive','length','\x20and\x20subUnitId\x20','Module','FConnectorShape','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20','transform','getWorkbook','getShapeId','63654XHVthc','setStrokeLineCapType','fill','UniverSheetsFacade','setStrokeLineDashType','3675575GHSgOv','computeConnectorRouteLayout','ang','342937CaSoFv','@univerjs-pro/sheets-shape','@univerjs/sheets/facade','setHeight','GradientFill','getShapeData','_resolveEndpoints','UniverProSheetsShape','localToWorld','dashType','_commandService','size','height','getSize','UniverProSheetsShapeFacade','ISheetDrawingService','width',',\x20but\x20expected\x20a\x20connector\x20shape\x20type.','subUnitId','flipY','shapeData','setNoneFill','newShape','1565536nmCTRo','setStrokeWidth','shapeId'];_0x42c8=function(){return _0x37b7ac;};return _0x42c8();}function _0x5208(_0x5c01b8,_0x55b11e){_0x5c01b8=_0x5c01b8-0x12a;const _0x42c8dc=_0x42c8();let _0x52089e=_0x42c8dc[_0x5c01b8];return _0x52089e;}(function(_0x3d51f7,_0xc6aa8c){const _0x333b02=_0x5208,_0x53c401=_0x3d51f7();while(!![]){try{const _0x282bb4=parseInt(_0x333b02(0x173))/0x1*(-parseInt(_0x333b02(0x1c6))/0x2)+-parseInt(_0x333b02(0x16b))/0x3+parseInt(_0x333b02(0x18a))/0x4+parseInt(_0x333b02(0x170))/0x5+parseInt(_0x333b02(0x1c2))/0x6+-parseInt(_0x333b02(0x159))/0x7+parseInt(_0x333b02(0x1b8))/0x8*(-parseInt(_0x333b02(0x138))/0x9);if(_0x282bb4===_0xc6aa8c)break;else _0x53c401['push'](_0x53c401['shift']());}catch(_0x1a9b84){_0x53c401['push'](_0x53c401['shift']());}}}(_0x42c8,0x6a561),function(_0x37f49b,_0x22601d){const _0x4b3da4=_0x5208;typeof exports==_0x4b3da4(0x1a3)&&typeof module<'u'?_0x22601d(exports,require('@univerjs-pro/engine-shape'),require('@univerjs/core/facade'),require('@univerjs-pro/sheets-shape'),require('@univerjs/core'),require('@univerjs/drawing'),require('@univerjs/sheets'),require('@univerjs/sheets-drawing'),require('@univerjs/sheets/facade')):typeof define==_0x4b3da4(0x145)&&define[_0x4b3da4(0x1c8)]?define([_0x4b3da4(0x130),_0x4b3da4(0x19e),_0x4b3da4(0x156),_0x4b3da4(0x174),_0x4b3da4(0x19a),_0x4b3da4(0x1b4),_0x4b3da4(0x1b2),_0x4b3da4(0x1ab),_0x4b3da4(0x175)],_0x22601d):(_0x37f49b=typeof globalThis<'u'?globalThis:_0x37f49b||self,_0x22601d(_0x37f49b[_0x4b3da4(0x181)]={},_0x37f49b[_0x4b3da4(0x12d)],_0x37f49b['UniverCoreFacade'],_0x37f49b[_0x4b3da4(0x17a)],_0x37f49b[_0x4b3da4(0x1bb)],_0x37f49b[_0x4b3da4(0x160)],_0x37f49b[_0x4b3da4(0x1a0)],_0x37f49b[_0x4b3da4(0x1b6)],_0x37f49b[_0x4b3da4(0x16e)]));}(this,function(_0x418a41,_0x9446f4,_0x31d73f,_0x4329e1,_0x9cc0d4,_0x59b72c,_0x477e47,_0x4480be,_0x286114){const _0x193286=_0x5208;Object[_0x193286(0x153)](_0x418a41,Symbol[_0x193286(0x1cf)],{'value':_0x193286(0x165)});var _0x596902=class extends _0x31d73f[_0x193286(0x1ac)]{get[_0x193286(0x135)](){return _0x9446f4['ShapeTypeEnum'];}get[_0x193286(0x197)](){const _0x5c1f3f=_0x193286;return _0x9446f4[_0x5c1f3f(0x197)];}get['ShapeGradientTypeEnum'](){const _0x145db2=_0x193286;return _0x9446f4[_0x145db2(0x12a)];}get[_0x193286(0x15f)](){return _0x9446f4['ShapeLineTypeEnum'];}get[_0x193286(0x14e)](){return _0x9446f4['ShapeLineDashEnum'];}get[_0x193286(0x1c0)](){const _0x14a86f=_0x193286;return _0x9446f4[_0x14a86f(0x1c0)];}get['ShapeLineJoinEnum'](){const _0x504ca9=_0x193286;return _0x9446f4[_0x504ca9(0x143)];}get['ShapeArrowTypeEnum'](){const _0x217f52=_0x193286;return _0x9446f4[_0x217f52(0x14d)];}get[_0x193286(0x1ba)](){return _0x9446f4['ShapeArrowSizeEnum'];}};_0x31d73f[_0x193286(0x1ac)][_0x193286(0x12f)](_0x596902);function _0x3c8388(_0x43da5c){'@babel/helpers - typeof';const _0x123506=_0x193286;return _0x3c8388=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x123506(0x1a1)?function(_0x5c4cd0){return typeof _0x5c4cd0;}:function(_0x1ceeb1){const _0x33ae8a=_0x123506;return _0x1ceeb1&&typeof Symbol=='function'&&_0x1ceeb1['constructor']===Symbol&&_0x1ceeb1!==Symbol[_0x33ae8a(0x131)]?_0x33ae8a(0x1a1):typeof _0x1ceeb1;},_0x3c8388(_0x43da5c);}function _0x463ba2(_0x1bde56,_0xf7e38c){const _0x4ed237=_0x193286;if(_0x3c8388(_0x1bde56)!='object'||!_0x1bde56)return _0x1bde56;var _0x4ddf10=_0x1bde56[Symbol[_0x4ed237(0x162)]];if(_0x4ddf10!==void 0x0){var _0xeac9b8=_0x4ddf10[_0x4ed237(0x1c9)](_0x1bde56,_0xf7e38c||_0x4ed237(0x191));if(_0x3c8388(_0xeac9b8)!=_0x4ed237(0x1a3))return _0xeac9b8;throw TypeError(_0x4ed237(0x14b));}return(_0xf7e38c===_0x4ed237(0x151)?String:Number)(_0x1bde56);}function _0x3ef88f(_0x46bb68){const _0xd92ff9=_0x193286;var _0x229be3=_0x463ba2(_0x46bb68,_0xd92ff9(0x151));return _0x3c8388(_0x229be3)=='symbol'?_0x229be3:_0x229be3+'';}function _0x1a3780(_0x5e9850,_0x35c4b4,_0x9cd978){const _0x759ac5=_0x193286;return(_0x35c4b4=_0x3ef88f(_0x35c4b4))in _0x5e9850?Object[_0x759ac5(0x153)](_0x5e9850,_0x35c4b4,{'value':_0x9cd978,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5e9850[_0x35c4b4]=_0x9cd978,_0x5e9850;}var _0x44a4c0=class{constructor(_0x19f920,_0x368f56,_0x29a64b,_0x760b88){const _0x2986b0=_0x193286;_0x1a3780(this,'unitId',void 0x0),_0x1a3780(this,_0x2986b0(0x185),void 0x0),_0x1a3780(this,'drawId',void 0x0),_0x1a3780(this,'x',0x0),_0x1a3780(this,'y',0x0),_0x1a3780(this,_0x2986b0(0x183),_0x4329e1[_0x2986b0(0x1a9)]),_0x1a3780(this,'height',_0x4329e1[_0x2986b0(0x1c4)]),_0x1a3780(this,'shapeType',void 0x0),_0x1a3780(this,_0x2986b0(0x187),{}),_0x1a3780(this,_0x2986b0(0x12e),void 0x0),this[_0x2986b0(0x148)]=_0x19f920,this[_0x2986b0(0x185)]=_0x368f56,this[_0x2986b0(0x1b9)]=_0x29a64b||(0x0,_0x9cc0d4[_0x2986b0(0x133)])(),this[_0x2986b0(0x12e)]=_0x760b88;}[_0x193286(0x1bf)](_0x56bf3a,_0x5122a2,_0x4baa5a,_0x2eed60){const _0xcb8658=_0x193286;let _0xa19d4d=this[_0xcb8658(0x12e)][_0xcb8658(0x199)](_0x477e47[_0xcb8658(0x141)])['ensureSkeleton'](this[_0xcb8658(0x148)],this[_0xcb8658(0x185)]);if(!_0xa19d4d)throw Error('Skeleton\x20for\x20unitId\x20'+this['unitId']+_0xcb8658(0x164)+this['subUnitId']+_0xcb8658(0x1ae));let {transform:_0x1a6a58}=(0x0,_0x477e47['convertPositionCellToSheetOverGrid'])(this[_0xcb8658(0x148)],this[_0xcb8658(0x185)],{'row':_0x56bf3a,'column':_0x5122a2,'rowOffset':_0x4baa5a,'columnOffset':_0x2eed60},0x1,0x1,_0xa19d4d);return this['x']=_0x1a6a58['left'],this['y']=_0x1a6a58[_0xcb8658(0x136)],this;}['setAbsolutePosition'](_0x29076c,_0x1694a0){return this['x']=_0x29076c,this['y']=_0x1694a0,this;}[_0x193286(0x12b)](_0x56beff){const _0x427020=_0x193286;return this[_0x427020(0x1d5)]=_0x56beff,this;}['setShapeSolidFill'](_0x4df624,_0x156451){const _0x24fd09=_0x193286;return this[_0x24fd09(0x187)][_0x24fd09(0x16d)]||(this[_0x24fd09(0x187)]['fill']={}),this[_0x24fd09(0x187)]['fill'][_0x24fd09(0x150)]=_0x9446f4[_0x24fd09(0x197)][_0x24fd09(0x18d)],_0x4df624!==void 0x0&&(this[_0x24fd09(0x187)]['fill'][_0x24fd09(0x1aa)]=_0x4df624),_0x156451!==void 0x0&&(this[_0x24fd09(0x187)][_0x24fd09(0x16d)][_0x24fd09(0x1d4)]=_0x156451),this;}[_0x193286(0x1c7)](_0x1c1f0a,_0x5be49f,_0x4c4aba){const _0xd620f9=_0x193286;if(_0x5be49f===void 0x0||_0x5be49f[_0xd620f9(0x163)]===0x0)throw Error(_0xd620f9(0x149));return this[_0xd620f9(0x187)][_0xd620f9(0x16d)]||(this[_0xd620f9(0x187)]['fill']={}),this[_0xd620f9(0x187)]['fill'][_0xd620f9(0x1d1)]=_0x5be49f,this[_0xd620f9(0x187)][_0xd620f9(0x16d)][_0xd620f9(0x150)]=_0x9446f4[_0xd620f9(0x197)][_0xd620f9(0x177)],this[_0xd620f9(0x187)][_0xd620f9(0x16d)][_0xd620f9(0x1a2)]=_0x1c1f0a,_0x4c4aba!==void 0x0&&(this['shapeData']['fill']['gradientAngle']=_0x4c4aba),this;}[_0x193286(0x188)](){const _0x495db0=_0x193286;return this['shapeData']['fill']={'fillType':_0x9446f4[_0x495db0(0x197)][_0x495db0(0x196)]},this;}[_0x193286(0x1c1)](_0x3f9b2d){const _0x2f617d=_0x193286;return this[_0x2f617d(0x187)][_0x2f617d(0x14c)]||(this['shapeData']['stroke']={}),this[_0x2f617d(0x187)]['stroke']['color']=_0x3f9b2d,this;}[_0x193286(0x18b)](_0x510e1e){const _0x105be0=_0x193286;return this[_0x105be0(0x187)][_0x105be0(0x14c)]||(this['shapeData'][_0x105be0(0x14c)]={}),this[_0x105be0(0x187)][_0x105be0(0x14c)][_0x105be0(0x183)]=_0x510e1e,this;}[_0x193286(0x16f)](_0x350208){const _0x57d80d=_0x193286;return this[_0x57d80d(0x187)][_0x57d80d(0x14c)]||(this[_0x57d80d(0x187)][_0x57d80d(0x14c)]={}),this[_0x57d80d(0x187)]['stroke'][_0x57d80d(0x17c)]=_0x350208,this;}[_0x193286(0x13f)](_0x20681b){const _0x172f53=_0x193286;return this[_0x172f53(0x187)][_0x172f53(0x14c)]||(this[_0x172f53(0x187)][_0x172f53(0x14c)]={}),this[_0x172f53(0x187)][_0x172f53(0x14c)][_0x172f53(0x1bc)]=_0x20681b,this;}[_0x193286(0x16c)](_0x8308f9){const _0x11b8db=_0x193286;return this['shapeData'][_0x11b8db(0x14c)]||(this[_0x11b8db(0x187)][_0x11b8db(0x14c)]={}),this[_0x11b8db(0x187)][_0x11b8db(0x14c)][_0x11b8db(0x19f)]=_0x8308f9,this;}[_0x193286(0x1b7)](_0x3d92c0){const _0x2bf63c=_0x193286;return this['shapeData'][_0x2bf63c(0x14c)]||(this[_0x2bf63c(0x187)]['stroke']={}),this['shapeData'][_0x2bf63c(0x14c)][_0x2bf63c(0x1d4)]=_0x3d92c0,this;}[_0x193286(0x193)](_0x9faab3){const _0x14ec1c=_0x193286;return this[_0x14ec1c(0x187)][_0x14ec1c(0x14c)]||(this[_0x14ec1c(0x187)][_0x14ec1c(0x14c)]={}),this[_0x14ec1c(0x187)][_0x14ec1c(0x14c)][_0x14ec1c(0x1ad)]=_0x9faab3,this;}['setWidth'](_0x25a864){const _0x1128ea=_0x193286;return this[_0x1128ea(0x183)]=_0x25a864,this;}[_0x193286(0x176)](_0x12506a){return this['height']=_0x12506a,this;}[_0x193286(0x144)](){const _0x265824=_0x193286;let _0x5ec535=this[_0x265824(0x12e)][_0x265824(0x199)](_0x4329e1[_0x265824(0x13b)])[_0x265824(0x15e)](this[_0x265824(0x148)],this[_0x265824(0x185)],this[_0x265824(0x1b9)]);return _0x5ec535?(0x0,_0x9446f4['isConnectorShape'])(_0x5ec535['getShapeType']()):this['shapeType']?(0x0,_0x9446f4[_0x265824(0x161)])(this['shapeType']):!0x1;}['getConnectionSites'](){const _0x1be152=_0x193286;let _0x1f687d=this[_0x1be152(0x12e)][_0x1be152(0x199)](_0x4329e1[_0x1be152(0x13b)])['getShapeModel'](this['unitId'],this[_0x1be152(0x185)],this[_0x1be152(0x1b9)]);if(!_0x1f687d)return[];let _0x310d8f=this[_0x1be152(0x12e)]['get'](_0x59b72c[_0x1be152(0x13e)])['getDrawingByParam']({'unitId':this[_0x1be152(0x148)],'subUnitId':this['subUnitId'],'drawingId':this[_0x1be152(0x1b9)]});if(!(_0x310d8f!=null&&_0x310d8f[_0x1be152(0x168)]))return[];let {width:_0x48bea6=0x0,height:_0x190345=0x0}=_0x310d8f['transform'];return _0x1f687d[_0x1be152(0x158)]({'width':_0x48bea6,'height':_0x190345}),_0x1f687d[_0x1be152(0x15a)]();}[_0x193286(0x190)](){const _0x4bd151=_0x193286;let _0x43ccf5=this[_0x4bd151(0x12e)]['get'](_0x4329e1[_0x4bd151(0x13b)])[_0x4bd151(0x15e)](this[_0x4bd151(0x148)],this[_0x4bd151(0x185)],this[_0x4bd151(0x1b9)]);if(!_0x43ccf5)return[];let _0xcb5815=this[_0x4bd151(0x12e)][_0x4bd151(0x199)](_0x59b72c[_0x4bd151(0x13e)])[_0x4bd151(0x134)]({'unitId':this[_0x4bd151(0x148)],'subUnitId':this[_0x4bd151(0x185)],'drawingId':this[_0x4bd151(0x1b9)]});if(!(_0xcb5815!=null&&_0xcb5815[_0x4bd151(0x168)]))return[];let {width:_0x47603c=0x0,height:_0x17d98b=0x0}=_0xcb5815['transform'];return _0x43ccf5['updateContext']({'width':_0x47603c,'height':_0x17d98b}),_0x43ccf5[_0x4bd151(0x146)]();}['getConnectorLinePoints'](){const _0x4e0d6d=_0x193286;let _0x3e7f83=this[_0x4e0d6d(0x12e)][_0x4e0d6d(0x199)](_0x4329e1[_0x4e0d6d(0x13b)])[_0x4e0d6d(0x15e)](this[_0x4e0d6d(0x148)],this['subUnitId'],this[_0x4e0d6d(0x1b9)]);if(!_0x3e7f83||!(0x0,_0x9446f4[_0x4e0d6d(0x161)])(_0x3e7f83['getShapeType']()))return[];let _0x1596e8=this[_0x4e0d6d(0x12e)]['get'](_0x59b72c[_0x4e0d6d(0x13e)])[_0x4e0d6d(0x134)]({'unitId':this['unitId'],'subUnitId':this[_0x4e0d6d(0x185)],'drawingId':this['drawId']});if(!(_0x1596e8!=null&&_0x1596e8[_0x4e0d6d(0x168)]))return[];let {width:_0x4d8db7=0x0,height:_0x29d34d=0x0}=_0x1596e8[_0x4e0d6d(0x168)];return _0x3e7f83[_0x4e0d6d(0x158)]({'width':_0x4d8db7,'height':_0x29d34d}),_0x3e7f83[_0x4e0d6d(0x157)]();}[_0x193286(0x1a5)](){const _0x2783db=_0x193286;var _0x333962;let _0x2aff6b=this[_0x2783db(0x12e)][_0x2783db(0x199)](_0x4329e1[_0x2783db(0x13b)])[_0x2783db(0x15e)](this[_0x2783db(0x148)],this[_0x2783db(0x185)],this[_0x2783db(0x1b9)]);return _0x2aff6b?(_0x333962=_0x2aff6b[_0x2783db(0x1a5)]())==null?null:_0x333962:null;}[_0x193286(0x1d3)](){const _0x26ed81=_0x193286;var _0x1cc4d4;let _0x478c7c=this[_0x26ed81(0x12e)][_0x26ed81(0x199)](_0x4329e1[_0x26ed81(0x13b)])[_0x26ed81(0x15e)](this['unitId'],this['subUnitId'],this[_0x26ed81(0x1b9)]);return _0x478c7c?(_0x1cc4d4=_0x478c7c['getEndConnectInfo']())==null?null:_0x1cc4d4:null;}[_0x193286(0x1b3)](){const _0x51d1f6=_0x193286;var _0x5baa7a,_0xe14db3;if(!this[_0x51d1f6(0x1d5)])throw Error('Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().');if(this['x']===0x0||this['y']===0x0){let _0x227693=this['_injector'][_0x51d1f6(0x199)](_0x477e47[_0x51d1f6(0x141)])[_0x51d1f6(0x14f)](this[_0x51d1f6(0x148)],this[_0x51d1f6(0x185)]);if(!_0x227693)throw Error('Skeleton\x20for\x20unitId\x20'+this[_0x51d1f6(0x148)]+_0x51d1f6(0x164)+this['subUnitId']+'\x20not\x20found');let {transform:_0x205c3c}=(0x0,_0x477e47[_0x51d1f6(0x147)])(this[_0x51d1f6(0x148)],this['subUnitId'],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x227693);this['x']=this['x']>0x0?this['x']:_0x205c3c[_0x51d1f6(0x13d)],this['y']=this['y']>0x0?this['y']:_0x205c3c[_0x51d1f6(0x136)];}return this['width']=(_0x5baa7a=this[_0x51d1f6(0x183)])==null?_0x4329e1[_0x51d1f6(0x1a9)]:_0x5baa7a,this[_0x51d1f6(0x17f)]=(_0xe14db3=this[_0x51d1f6(0x17f)])==null?_0x4329e1[_0x51d1f6(0x1c4)]:_0xe14db3,{'unitId':this['unitId'],'subUnitId':this[_0x51d1f6(0x185)],'shapeId':this[_0x51d1f6(0x1b9)],'shapeType':this[_0x51d1f6(0x1d5)],'shapeData':Object['keys'](this[_0x51d1f6(0x187)])[_0x51d1f6(0x163)]>0x0?this['shapeData']:void 0x0,'x':this['x'],'y':this['y'],'width':this[_0x51d1f6(0x183)],'height':this[_0x51d1f6(0x17f)]};}[_0x193286(0x16a)](){const _0x2f3375=_0x193286;return this[_0x2f3375(0x1b9)];}['getShapeType'](){const _0x3c5ef5=_0x193286;return this[_0x3c5ef5(0x1d5)];}[_0x193286(0x178)](){const _0x55ab9d=_0x193286;return this[_0x55ab9d(0x187)];}[_0x193286(0x1d6)](){return{'x':this['x'],'y':this['y']};}[_0x193286(0x180)](){const _0x15ca12=_0x193286;return{'width':this[_0x15ca12(0x183)],'height':this[_0x15ca12(0x17f)]};}},_0x29af58=class extends _0x44a4c0{constructor(_0x24296e,_0x1f4f2a,_0xb42b55,_0x2179ad){const _0x53a59e=_0x193286;super(_0x24296e,_0x1f4f2a,_0xb42b55,_0x2179ad),_0x1a3780(this,_0x53a59e(0x187),{});}[_0x193286(0x12b)](_0x52b65b){const _0x21cd6e=_0x193286;if(!(0x0,_0x9446f4[_0x21cd6e(0x161)])(_0x52b65b))throw Error(_0x21cd6e(0x167)+_0x52b65b+_0x21cd6e(0x184));return super[_0x21cd6e(0x12b)](_0x52b65b),this;}['setStartArrowType'](_0x427c58){const _0x2bf607=_0x193286;var _0x5d2173,_0x1a7aaf;return(_0x5d2173=this['shapeData'])!=null&&_0x5d2173['ln']||(this[_0x2bf607(0x187)]['ln']={}),!((_0x1a7aaf=this[_0x2bf607(0x187)])==null||(_0x1a7aaf=_0x1a7aaf['ln'])==null)&&_0x1a7aaf[_0x2bf607(0x1a4)]||(this[_0x2bf607(0x187)]['ln'][_0x2bf607(0x1a4)]={}),this['shapeData']['ln'][_0x2bf607(0x1a4)]['type']=_0x427c58,this;}[_0x193286(0x1d0)](_0x149ee9){const _0x5ca1f8=_0x193286;var _0x594be7,_0x4a9096;return(_0x594be7=this[_0x5ca1f8(0x187)])!=null&&_0x594be7['ln']||(this['shapeData']['ln']={}),!((_0x4a9096=this[_0x5ca1f8(0x187)])==null||(_0x4a9096=_0x4a9096['ln'])==null)&&_0x4a9096['endArrow']||(this[_0x5ca1f8(0x187)]['ln'][_0x5ca1f8(0x154)]={}),this[_0x5ca1f8(0x187)]['ln'][_0x5ca1f8(0x154)][_0x5ca1f8(0x14a)]=_0x149ee9,this;}['setStartArrowSize'](_0x1c9fe8){const _0x30fac4=_0x193286;var _0x586726,_0x270a6d;return(_0x586726=this[_0x30fac4(0x187)])!=null&&_0x586726['ln']||(this[_0x30fac4(0x187)]['ln']={}),!((_0x270a6d=this[_0x30fac4(0x187)])==null||(_0x270a6d=_0x270a6d['ln'])==null)&&_0x270a6d['startArrow']||(this[_0x30fac4(0x187)]['ln'][_0x30fac4(0x1a4)]={}),this['shapeData']['ln'][_0x30fac4(0x1a4)][_0x30fac4(0x17e)]=_0x1c9fe8,this;}['setEndArrowSize'](_0x4e8d7c){const _0x459a5a=_0x193286;var _0x59e7e6,_0x241a2d;return(_0x59e7e6=this[_0x459a5a(0x187)])!=null&&_0x59e7e6['ln']||(this[_0x459a5a(0x187)]['ln']={}),!((_0x241a2d=this['shapeData'])==null||(_0x241a2d=_0x241a2d['ln'])==null)&&_0x241a2d[_0x459a5a(0x154)]||(this[_0x459a5a(0x187)]['ln']['endArrow']={}),this[_0x459a5a(0x187)]['ln'][_0x459a5a(0x154)][_0x459a5a(0x17e)]=_0x4e8d7c,this;}[_0x193286(0x1b3)](){const _0x5ebd2e=_0x193286;return super[_0x5ebd2e(0x1b3)]();}[_0x193286(0x1d3)](){const _0x58b2d7=_0x193286;var _0x394a44;return((_0x394a44=this[_0x58b2d7(0x187)])==null||(_0x394a44=_0x394a44['relation'])==null?void 0x0:_0x394a44['to'])||null;}[_0x193286(0x1a5)](){const _0x4fda79=_0x193286;var _0x458001;return((_0x458001=this[_0x4fda79(0x187)])==null||(_0x458001=_0x458001['relation'])==null?void 0x0:_0x458001['from'])||null;}};function _0x284fc2(_0x4d64f6,_0x490615,_0x2ea80a,_0x4c614f,_0x50084b,_0x5caf23){const _0x3bea2a=_0x193286;let _0xe332f0=_0x50084b[_0x3bea2a(0x15e)](_0x4d64f6,_0x490615,_0x2ea80a);if(!_0xe332f0)return null;let _0x4c1a80=_0x5caf23[_0x3bea2a(0x134)]({'unitId':_0x4d64f6,'subUnitId':_0x490615,'drawingId':_0x2ea80a});if(!(_0x4c1a80!=null&&_0x4c1a80['transform']))return null;let {left:_0x25af72=0x0,top:_0x203a4e=0x0,width:_0x13755a=0x0,height:_0x45be95=0x0,flipX:_0x348035=!0x1,flipY:_0x3ad6b7=!0x1,angle:_0xf4334c}=_0x4c1a80[_0x3bea2a(0x168)];_0xe332f0[_0x3bea2a(0x158)]({'width':_0x13755a,'height':_0x45be95});let _0x3d0759=_0xe332f0[_0x3bea2a(0x15a)]()[_0x3bea2a(0x1cb)](_0x48bdd9=>_0x48bdd9[_0x3bea2a(0x1b1)]===_0x4c614f);if(!_0x3d0759)return null;let _0x2e7baf=_0x348035?_0x13755a-_0x3d0759['x']:_0x3d0759['x'],_0x55193b=_0x3ad6b7?_0x45be95-_0x3d0759['y']:_0x3d0759['y'];if(_0xf4334c&&_0xf4334c!==0x0){let _0xeb352f=_0xf4334c*Math['PI']/0xb4,_0x41165a=Math[_0x3bea2a(0x19c)](_0xeb352f),_0x2221d3=Math[_0x3bea2a(0x194)](_0xeb352f),_0xe39de6=_0x13755a/0x2,_0x2ac79e=_0x45be95/0x2,_0x3c2b80=_0x2e7baf-_0xe39de6,_0x1addda=_0x55193b-_0x2ac79e;_0x2e7baf=_0xe39de6+_0x3c2b80*_0x41165a-_0x1addda*_0x2221d3,_0x55193b=_0x2ac79e+_0x3c2b80*_0x2221d3+_0x1addda*_0x41165a;}_0x2e7baf+=_0x25af72,_0x55193b+=_0x203a4e;let _0x36ebc6=_0x3d0759[_0x3bea2a(0x172)]/0xea60;_0x348035&&(_0x36ebc6=0xb4-_0x36ebc6),_0x3ad6b7&&(_0x36ebc6=-_0x36ebc6),_0x36ebc6+=_0xf4334c||0x0,_0x36ebc6=(_0x36ebc6%0x168+0x168)%0x168;let _0x3ada74=(0x0,_0x9446f4['getBasicShapeRotateBound'])({'left':_0x25af72,'top':_0x203a4e,'width':_0x13755a,'height':_0x45be95},_0xf4334c||0x0);return{'point':{'x':_0x2e7baf,'y':_0x55193b},'angle':_0x36ebc6,'bounds':_0x3ada74};}function _0x29f2e9(_0x4f4454,_0x45e14f){const _0x54f289=_0x193286;let _0x1c4ad0=_0x45e14f['x']-_0x4f4454['x'],_0x37bd75=_0x45e14f['y']-_0x4f4454['y'];return Math[_0x54f289(0x12c)](_0x1c4ad0)>=Math[_0x54f289(0x12c)](_0x37bd75)?_0x1c4ad0>=0x0?0xb4:0x0:_0x37bd75>=0x0?0x10e:0x5a;}function _0x4ed653(_0x12ca56,_0x5df2f3,_0x4b6662,_0x5e7f2f,_0x25b73c,_0x5e6480,_0x21baa8){const _0x3a20ee=_0x193286;let _0x447230=_0x5e6480[_0x3a20ee(0x15e)](_0x12ca56,_0x5df2f3,_0x4b6662);if(!_0x447230)return null;let _0x5ae6bf=_0x21baa8['getDrawingByParam']({'unitId':_0x12ca56,'subUnitId':_0x5df2f3,'drawingId':_0x4b6662});if(!(_0x5ae6bf!=null&&_0x5ae6bf[_0x3a20ee(0x168)]))return null;let {left:_0x2364a3=0x0,top:_0x24c735=0x0,width:_0x27a334=0x0,height:_0x3975a0=0x0,flipX:_0x2ff47c=!0x1,flipY:_0x5c60da=!0x1}=_0x5ae6bf['transform'];_0x447230['updateContext']({'width':_0x27a334,'height':_0x3975a0});let _0x11cc9e=_0x447230['getConnectorLinePoints']();if(_0x11cc9e[_0x3a20ee(0x163)]<0x2)return null;let _0x4871f8=_0x5e7f2f?_0x11cc9e[0x0]:_0x11cc9e[_0x11cc9e['length']-0x1],_0x1ec3dc=new _0x9446f4[(_0x3a20ee(0x1d8))]({'left':_0x2364a3,'top':_0x24c735,'width':_0x27a334,'height':_0x3975a0,'flipX':_0x2ff47c,'flipY':_0x5c60da})[_0x3a20ee(0x17b)](_0x4871f8);return{'point':_0x1ec3dc,'angle':_0x29f2e9(_0x25b73c[_0x3a20ee(0x139)],_0x1ec3dc),'bounds':{'left':_0x1ec3dc['x'],'top':_0x1ec3dc['y'],'width':0x0,'height':0x0}};}var _0x2e1413=class extends _0x286114[_0x193286(0x15b)]{async[_0x193286(0x1a7)](_0x5cbf0b){const _0x388c96=_0x193286;let {unitId:_0x2a9d4c,subUnitId:_0x5989a3,shapeId:_0x50626f,shapeType:_0x5f487f,shapeData:_0x1e84fb,x:_0x3a551e,y:_0x1e2c3c,width:_0x3c786c,height:_0x1a87b8}=_0x5cbf0b;return this[_0x388c96(0x17d)][_0x388c96(0x1a6)](_0x4329e1[_0x388c96(0x18e)]['id'],{'unitId':_0x2a9d4c,'subUnitId':_0x5989a3,'shapeId':_0x50626f,'shapeType':_0x5f487f,'shapeData':_0x1e84fb,'position':{'x':_0x3a551e,'y':_0x1e2c3c},'width':_0x3c786c,'height':_0x1a87b8});}async[_0x193286(0x1c3)](_0x5e24d1){const _0x2639f9=_0x193286;let {unitId:_0x48a015,subUnitId:_0x304ade,shapeId:_0x4da330,shapeType:_0x5104ca,shapeData:_0x2ea098,x:_0x3c6442,y:_0x536b69,width:_0x13cc8d,height:_0x15b50c}=_0x5e24d1;return this['_commandService'][_0x2639f9(0x1a6)](_0x4329e1[_0x2639f9(0x132)]['id'],{'unitId':_0x48a015,'subUnitId':_0x304ade,'shapeId':_0x4da330,'shapeType':_0x5104ca,'shapeData':_0x2ea098,'position':{'x':_0x3c6442,'y':_0x536b69},'width':_0x13cc8d,'height':_0x15b50c});}[_0x193286(0x189)](_0x555d98){const _0x1f5901=_0x193286;let _0x1b2c42=this[_0x1f5901(0x169)]()[_0x1f5901(0x1c5)](),_0x2f4a96=this[_0x1f5901(0x152)]();if(_0x555d98){let _0x1248eb=new _0x44a4c0(_0x1b2c42,_0x2f4a96,_0x555d98[_0x1f5901(0x1b9)],this[_0x1f5901(0x12e)]);return this[_0x1f5901(0x13c)](_0x1248eb,_0x1b2c42,_0x2f4a96,_0x555d98[_0x1f5901(0x1b9)]),_0x1248eb;}return new _0x44a4c0(_0x1b2c42,_0x2f4a96,(0x0,_0x9cc0d4[_0x1f5901(0x133)])(),this[_0x1f5901(0x12e)]);}[_0x193286(0x1a8)](_0x3b4eba){const _0xe5bd3c=_0x193286;let _0x5d6ad6=this[_0xe5bd3c(0x169)]()[_0xe5bd3c(0x1c5)](),_0x45820a=this['getSheetId']();if(_0x3b4eba){let _0x5e19c8=new _0x29af58(_0x5d6ad6,_0x45820a,_0x3b4eba['drawId'],this[_0xe5bd3c(0x12e)]);return this[_0xe5bd3c(0x13c)](_0x5e19c8,_0x5d6ad6,_0x45820a,_0x3b4eba[_0xe5bd3c(0x1b9)]),_0x5e19c8;}return new _0x29af58(_0x5d6ad6,_0x45820a,(0x0,_0x9cc0d4[_0xe5bd3c(0x133)])(),this[_0xe5bd3c(0x12e)]);}[_0x193286(0x19d)](){const _0x127eb1=_0x193286;let _0x3574b3=this[_0x127eb1(0x12e)][_0x127eb1(0x199)](_0x4480be[_0x127eb1(0x182)]),_0x37d692=this[_0x127eb1(0x169)]()[_0x127eb1(0x1c5)](),_0x40ad28=this[_0x127eb1(0x152)](),_0x3ca923=_0x3574b3[_0x127eb1(0x192)](_0x37d692,_0x40ad28);if(!_0x3ca923)return[];let _0x32b32f=[];for(let [_0x123819,_0x20155b]of Object[_0x127eb1(0x18f)](_0x3ca923))if(_0x20155b&&_0x20155b[_0x127eb1(0x1ca)]===_0x9cc0d4[_0x127eb1(0x142)][_0x127eb1(0x1d7)]){let _0x2dd1aa=new _0x44a4c0(_0x37d692,_0x40ad28,_0x123819,this[_0x127eb1(0x12e)]);this[_0x127eb1(0x13c)](_0x2dd1aa,_0x37d692,_0x40ad28,_0x123819),_0x32b32f[_0x127eb1(0x155)](_0x2dd1aa);}return _0x32b32f;}[_0x193286(0x19b)](_0x134db8){const _0x3e8c2e=_0x193286;let {unitId:_0x38e385,subUnitId:_0x5dc3d5,drawId:_0x2a1eaa}=_0x134db8;return this[_0x3e8c2e(0x17d)][_0x3e8c2e(0x1a6)](_0x4480be[_0x3e8c2e(0x198)]['id'],{'unitId':_0x38e385,'drawings':[{'unitId':_0x38e385,'subUnitId':_0x5dc3d5,'drawingId':_0x2a1eaa,'drawingType':_0x9cc0d4['DrawingTypeEnum'][_0x3e8c2e(0x1d7)]}]});}async[_0x193286(0x1b5)](_0x4b8ce1){const _0x404dd2=_0x193286;let {connector:_0x36e6fe,startTarget:_0x2cd06a,endTarget:_0x33a98a}=_0x4b8ce1;if(!_0x2cd06a&&!_0x33a98a)return!0x1;let _0x3ec27c=this[_0x404dd2(0x169)]()[_0x404dd2(0x1c5)](),_0x5be6dd=this[_0x404dd2(0x152)](),_0xf68f75=this[_0x404dd2(0x12e)]['get'](_0x4329e1[_0x404dd2(0x13b)]),_0x25a7af=this[_0x404dd2(0x12e)]['get'](_0x59b72c[_0x404dd2(0x13e)]),_0x4a6fe1=_0xf68f75[_0x404dd2(0x15e)](_0x3ec27c,_0x5be6dd,_0x36e6fe['drawId']);if(!_0x4a6fe1)return!0x1;let _0x2d3c26=_0x4a6fe1[_0x404dd2(0x137)](),_0x1d773d=_0x4a6fe1[_0x404dd2(0x195)](),_0x27af15={};for(let _0x2f97dc of _0x4a6fe1[_0x404dd2(0x1ce)]()){let _0x51f14a=_0x4a6fe1[_0x404dd2(0x1be)](_0x2f97dc);_0x51f14a!==void 0x0&&(_0x27af15[_0x2f97dc]=_0x51f14a);}let {startInfo:_0x3a8f6c,endInfo:_0xe75eab}=this[_0x404dd2(0x179)](_0x3ec27c,_0x5be6dd,_0x36e6fe,_0x4a6fe1,_0x2cd06a,_0x33a98a,_0xf68f75,_0x25a7af,_0x1d773d);if(!_0x3a8f6c||!_0xe75eab)return!0x1;let _0x22ec10=(0x0,_0x9446f4[_0x404dd2(0x171)])((0x0,_0x9446f4[_0x404dd2(0x1cc)])(_0x3a8f6c,_0xe75eab,_0x2d3c26),_0x2d3c26),_0x2b4745={};return _0x2cd06a?_0x2b4745[_0x404dd2(0x1da)]={'shapeId':_0x2cd06a['shape'][_0x404dd2(0x1b9)],'cxnIndex':_0x2cd06a[_0x404dd2(0x1af)]}:_0x1d773d!=null&&_0x1d773d['from']&&(_0x2b4745[_0x404dd2(0x1da)]=_0x1d773d['from']),_0x33a98a?_0x2b4745['to']={'shapeId':_0x33a98a[_0x404dd2(0x1bd)][_0x404dd2(0x1b9)],'cxnIndex':_0x33a98a['connectionSiteIndex']}:_0x1d773d!=null&&_0x1d773d['to']&&(_0x2b4745['to']=_0x1d773d['to']),this['_commandService']['executeCommand'](_0x4329e1['UpdateConnectorRelationCommand']['id'],{'unitId':_0x3ec27c,'subUnitId':_0x5be6dd,'connectorShapeId':_0x36e6fe[_0x404dd2(0x1b9)],'width':_0x22ec10['worldRect'][_0x404dd2(0x183)],'height':_0x22ec10[_0x404dd2(0x140)][_0x404dd2(0x17f)],'left':_0x22ec10[_0x404dd2(0x140)][_0x404dd2(0x13d)],'top':_0x22ec10[_0x404dd2(0x140)][_0x404dd2(0x136)],'flipX':_0x22ec10[_0x404dd2(0x140)][_0x404dd2(0x15d)]||!0x1,'flipY':_0x22ec10[_0x404dd2(0x140)][_0x404dd2(0x186)]||!0x1,'oldAdjustValues':_0x27af15,'newAdjustValues':_0x22ec10[_0x404dd2(0x13a)],'newLineType':_0x22ec10['lineType'],'oldLineType':_0x2d3c26,'rotation':_0x22ec10[_0x404dd2(0x1cd)],'oldRelation':_0x1d773d,'newRelation':_0x2b4745});}[_0x193286(0x13c)](_0x2be3f2,_0x532319,_0x190c84,_0x2f0f99){const _0x567b0f=_0x193286;let _0x18cb0b=this[_0x567b0f(0x12e)][_0x567b0f(0x199)](_0x59b72c[_0x567b0f(0x13e)])[_0x567b0f(0x134)]({'unitId':_0x532319,'subUnitId':_0x190c84,'drawingId':_0x2f0f99});if(_0x18cb0b!=null&&_0x18cb0b[_0x567b0f(0x168)]){var _0x168626,_0x54c912,_0x3e85aa,_0x4b8e34;_0x2be3f2['x']=(_0x168626=_0x18cb0b['transform'][_0x567b0f(0x13d)])==null?0x0:_0x168626,_0x2be3f2['y']=(_0x54c912=_0x18cb0b[_0x567b0f(0x168)][_0x567b0f(0x136)])==null?0x0:_0x54c912,_0x2be3f2[_0x567b0f(0x183)]=(_0x3e85aa=_0x18cb0b['transform'][_0x567b0f(0x183)])==null?_0x2be3f2[_0x567b0f(0x183)]:_0x3e85aa,_0x2be3f2[_0x567b0f(0x17f)]=(_0x4b8e34=_0x18cb0b[_0x567b0f(0x168)][_0x567b0f(0x17f)])==null?_0x2be3f2[_0x567b0f(0x17f)]:_0x4b8e34;}let _0x58026a=this[_0x567b0f(0x12e)][_0x567b0f(0x199)](_0x4329e1[_0x567b0f(0x13b)])[_0x567b0f(0x15e)](_0x532319,_0x190c84,_0x2f0f99);if(_0x58026a){_0x2be3f2[_0x567b0f(0x1d5)]=_0x58026a[_0x567b0f(0x137)]();let _0x24c32a=_0x58026a[_0x567b0f(0x178)]();_0x24c32a&&(_0x2be3f2['shapeData']=JSON[_0x567b0f(0x1d9)](JSON[_0x567b0f(0x1b0)](_0x24c32a)));}}[_0x193286(0x179)](_0x47895e,_0x3e1ac7,_0x38dc48,_0x55d7ed,_0x3c3703,_0x1f2707,_0x3e3f75,_0x466ce8,_0x599c8e){const _0x2bc9c0=_0x193286;let _0x469b63=null,_0x396dfb=null;return _0x3c3703&&(_0x469b63=_0x284fc2(_0x47895e,_0x3e1ac7,_0x3c3703[_0x2bc9c0(0x1bd)]['drawId'],_0x3c3703[_0x2bc9c0(0x1af)],_0x3e3f75,_0x466ce8)),_0x1f2707&&(_0x396dfb=_0x284fc2(_0x47895e,_0x3e1ac7,_0x1f2707[_0x2bc9c0(0x1bd)][_0x2bc9c0(0x1b9)],_0x1f2707[_0x2bc9c0(0x1af)],_0x3e3f75,_0x466ce8)),_0x469b63||(_0x469b63=this['_resolveExistingOrFreeEndpoint'](_0x47895e,_0x3e1ac7,_0x38dc48[_0x2bc9c0(0x1b9)],!0x0,_0x396dfb,_0x599c8e==null?void 0x0:_0x599c8e[_0x2bc9c0(0x1da)],_0x3e3f75,_0x466ce8)),_0x396dfb||(_0x396dfb=this[_0x2bc9c0(0x15c)](_0x47895e,_0x3e1ac7,_0x38dc48[_0x2bc9c0(0x1b9)],!0x1,_0x469b63,_0x599c8e==null?void 0x0:_0x599c8e['to'],_0x3e3f75,_0x466ce8)),{'startInfo':_0x469b63,'endInfo':_0x396dfb};}[_0x193286(0x15c)](_0x1ace5f,_0x35a6da,_0x54ae37,_0x4e68c6,_0x4a61ca,_0x218fbb,_0x82c226,_0x3c4b3a){const _0x5c6bd9=_0x193286;if(_0x218fbb){let _0x2ba9d6=_0x284fc2(_0x1ace5f,_0x35a6da,_0x218fbb[_0x5c6bd9(0x18c)],_0x218fbb['cxnIndex'],_0x82c226,_0x3c4b3a);if(_0x2ba9d6)return _0x2ba9d6;}return _0x4a61ca?_0x4ed653(_0x1ace5f,_0x35a6da,_0x54ae37,_0x4e68c6,_0x4a61ca,_0x82c226,_0x3c4b3a):null;}};_0x286114[_0x193286(0x15b)]['extend'](_0x2e1413),_0x418a41[_0x193286(0x166)]=_0x29af58,_0x418a41[_0x193286(0x1d2)]=_0x44a4c0;}));