@univerjs-pro/ink 1.0.0-alpha.7 → 1.0.0-beta.0
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/README.md +1 -1
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +6 -6
package/README.md
CHANGED
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x307b71=_0x4ee8;(function(_0x3cf796,_0x7ebb19){const _0x79ab0a=_0x4ee8,_0x31c5d0=_0x3cf796();while(!![]){try{const _0x3c21db=-parseInt(_0x79ab0a(0x111))/0x1*(-parseInt(_0x79ab0a(0x106))/0x2)+parseInt(_0x79ab0a(0x100))/0x3+-parseInt(_0x79ab0a(0xfa))/0x4*(parseInt(_0x79ab0a(0x116))/0x5)+-parseInt(_0x79ab0a(0xe0))/0x6+parseInt(_0x79ab0a(0xfc))/0x7+parseInt(_0x79ab0a(0x105))/0x8+parseInt(_0x79ab0a(0xe7))/0x9*(-parseInt(_0x79ab0a(0x10f))/0xa);if(_0x3c21db===_0x7ebb19)break;else _0x31c5d0['push'](_0x31c5d0['shift']());}catch(_0x5c9195){_0x31c5d0['push'](_0x31c5d0['shift']());}}}(_0x4eae,0xab275),Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x307b71(0xf6)}));let e=require('@univerjs-pro/boards'),t=require('@univerjs-pro/boards/facade'),n=require('@univerjs-pro/ink'),r=require('@univerjs/core'),i=require('@univerjs/core/facade');var a=class extends t[_0x307b71(0x101)]{['insertInk'](_0x4c3671){const _0x289313=_0x307b71;let _0x4ef3ae=o(_0x4c3671);return _0x4ef3ae&&this[_0x289313(0x10b)](_0x4ef3ae,{'insertIndex':_0x4c3671['insertIndex']})?_0x4ef3ae:null;}[_0x307b71(0x10a)](){const _0x346d6b=_0x307b71;return this[_0x346d6b(0xf3)]({'elementType':e[_0x346d6b(0xf8)]['Shape'],'includeHidden':!0x0,'includeLocked':!0x0})[_0x346d6b(0xfe)](f);}};function o(_0x216fe8,_0x2d0da8){const _0xc252b8=_0x307b71;if(!c(_0x216fe8[_0xc252b8(0xf7)])||_0x216fe8['sourceModel']!==void 0x0&&!c(_0x216fe8['sourceModel'])||!l(_0x216fe8[_0xc252b8(0x110)]))return null;let _0x3ab42d=_0x216fe8[_0xc252b8(0x114)]??(_0x2d0da8==null?void 0x0:_0x2d0da8['parentId']),_0x52d84f=r[_0xc252b8(0x115)][_0xc252b8(0xf0)](_0x216fe8[_0xc252b8(0xf7)]),_0x4499c5=(0x0,n[_0xc252b8(0xe8)])({'model':_0x52d84f,'style':_0x216fe8[_0xc252b8(0x110)],'tool':_0x216fe8[_0xc252b8(0xe3)],'sourceModel':_0x216fe8[_0xc252b8(0x103)]?r[_0xc252b8(0x115)][_0xc252b8(0xf0)](_0x216fe8[_0xc252b8(0x103)]):_0x52d84f}),_0x3eb90c=u(_0x2d0da8==null?void 0x0:_0x2d0da8[_0xc252b8(0xf1)]);return{'id':(_0x2d0da8==null?void 0x0:_0x2d0da8['id'])??_0x216fe8['id']??(0x0,r['generateRandomId'])(0x6),'type':e[_0xc252b8(0xf8)][_0xc252b8(0xe4)],'transform':_0x4499c5[_0xc252b8(0xee)],'shapeData':_0x4499c5['shapeData'],'parentId':_0x3ab42d??void 0x0,'laneId':_0x216fe8[_0xc252b8(0xfb)]===void 0x0?_0x2d0da8==null?void 0x0:_0x2d0da8[_0xc252b8(0xfb)]:_0x216fe8['laneId'],'custom':{..._0x3eb90c,'ink':_0x4499c5[_0xc252b8(0xfd)]}};}function s(_0x4c3e1d){const _0x128707=_0x307b71;return Number[_0x128707(0x109)](_0x4c3e1d['x'])&&Number[_0x128707(0x109)](_0x4c3e1d['y']);}function c(_0x179e01){const _0x3a531b=_0x307b71;if(_0x179e01[_0x3a531b(0xf2)]===_0x3a531b(0x117)){let _0x5e3416=new Set();return _0x179e01[_0x3a531b(0xf4)][_0x3a531b(0xea)]>=(_0x179e01['closed']?0x3:0x2)&&_0x179e01['anchors'][_0x3a531b(0x113)](_0x12be06=>{const _0x17272a=_0x3a531b;let _0x3ce5ab=_0x12be06['id'][_0x17272a(0xe1)]()['length']>0x0&&!_0x5e3416['has'](_0x12be06['id'])&&s(_0x12be06)&&(!_0x12be06['in']||s(_0x12be06['in']))&&(!_0x12be06[_0x17272a(0xf5)]||s(_0x12be06['out']));return _0x5e3416[_0x17272a(0x10d)](_0x12be06['id']),_0x3ce5ab;});}return _0x179e01['points']['length']>=0x2&&_0x179e01[_0x3a531b(0xec)][_0x3a531b(0x113)](_0x59af4c=>s(_0x59af4c)&&Number['isFinite'](_0x59af4c['t'])&&(_0x59af4c[_0x3a531b(0xe2)]===void 0x0||Number['isFinite'](_0x59af4c[_0x3a531b(0xe2)])))&&Number[_0x3a531b(0x109)](_0x179e01[_0x3a531b(0x107)])&&_0x179e01['width']>0x0&&Number['isFinite'](_0x179e01['opacity'])&&_0x179e01[_0x3a531b(0xeb)]>=0x0&&_0x179e01[_0x3a531b(0xeb)]<=0x1;}function _0x4ee8(_0x5dabb8,_0x11ba55){_0x5dabb8=_0x5dabb8-0xe0;const _0x4eae0b=_0x4eae();let _0x4ee83f=_0x4eae0b[_0x5dabb8];return _0x4ee83f;}function l(_0x57fb8d){const _0x1014e2=_0x307b71;return _0x57fb8d===void 0x0||(_0x57fb8d[_0x1014e2(0x107)]===void 0x0||Number[_0x1014e2(0x109)](_0x57fb8d[_0x1014e2(0x107)])&&_0x57fb8d[_0x1014e2(0x107)]>0x0)&&(_0x57fb8d[_0x1014e2(0xeb)]===void 0x0||Number[_0x1014e2(0x109)](_0x57fb8d[_0x1014e2(0xeb)])&&_0x57fb8d[_0x1014e2(0xeb)]>=0x0&&_0x57fb8d[_0x1014e2(0xeb)]<=0x1);}function u(_0x4b5677){const _0x301df0=_0x307b71;return _0x4b5677&&typeof _0x4b5677==_0x301df0(0xe9)&&!Array[_0x301df0(0x108)](_0x4b5677)?_0x4b5677:{};}function d(_0x360b42){const _0x3b9250=_0x307b71;let _0x13c2c9=u(_0x360b42[_0x3b9250(0xf1)])[_0x3b9250(0xfd)];if(!_0x13c2c9||typeof _0x13c2c9!=_0x3b9250(0xe9)||Array[_0x3b9250(0x108)](_0x13c2c9))return null;let _0x4c0567=_0x13c2c9;return _0x4c0567[_0x3b9250(0x104)]===0x1&&_0x4c0567['sourceModel']&&typeof _0x4c0567[_0x3b9250(0x103)]==_0x3b9250(0xe9)?_0x4c0567:null;}function _0x4eae(){const _0x306cd3=['findElements','anchors','out','Module','model','BoardElementType','BoardInkHandleKind','312756ZurlHO','laneId','8626436AMNpXC','ink','filter','symmetric','1888200muLqWy','FBoard','extend','sourceModel','version','7359464EmpZzO','6TMpIlh','width','isArray','isFinite','getInks','_addElement','highlighter','add','corner','260HadddS','style','271240hmCNAN','brush','every','parentId','Tools','10WesNWQ','pen','type','4347384GKddOe','trim','pressure','tool','Shape','BoardInkPointType','FEnum','696951JBikoG','buildInkCustomShapePayload','object','length','opacity','points','BoardInkTool','transform','free','deepClone','custom','kind'];_0x4eae=function(){return _0x306cd3;};return _0x4eae();}function f(_0x2c892d){const _0x4977c7=_0x307b71;return _0x2c892d[_0x4977c7(0x118)]===e[_0x4977c7(0xf8)]['Shape']&&!!d(_0x2c892d);}t[_0x307b71(0x101)][_0x307b71(0x102)](a);const p={'Pen':_0x307b71(0x117),'Brush':_0x307b71(0x112),'Highlighter':_0x307b71(0x10c)},m={'Corner':_0x307b71(0x10e),'Smooth':'smooth','Symmetric':_0x307b71(0xff),'Free':_0x307b71(0xef)},h={'Anchor':'anchor','In':'in','Out':_0x307b71(0xf5)};var g=class extends i[_0x307b71(0xe6)]{get[_0x307b71(0xed)](){return p;}get[_0x307b71(0xe5)](){return m;}get[_0x307b71(0xf9)](){return h;}};i[_0x307b71(0xe6)][_0x307b71(0x102)](g),exports[_0x307b71(0xf9)]=h,exports[_0x307b71(0xe5)]=m,exports[_0x307b71(0xed)]=p;
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x59a874=_0x193f;(function(_0x4f5db1,_0xe390d2){const _0x1b0e9f=_0x193f,_0x26299b=_0x4f5db1();while(!![]){try{const _0x47024a=parseInt(_0x1b0e9f(0x1b3))/0x1+-parseInt(_0x1b0e9f(0x183))/0x2+parseInt(_0x1b0e9f(0x172))/0x3*(-parseInt(_0x1b0e9f(0x180))/0x4)+-parseInt(_0x1b0e9f(0x1a4))/0x5+-parseInt(_0x1b0e9f(0x187))/0x6+-parseInt(_0x1b0e9f(0x1b0))/0x7*(-parseInt(_0x1b0e9f(0x1c1))/0x8)+-parseInt(_0x1b0e9f(0x1ca))/0x9*(-parseInt(_0x1b0e9f(0x1d2))/0xa);if(_0x47024a===_0xe390d2)break;else _0x26299b['push'](_0x26299b['shift']());}catch(_0x22d8eb){_0x26299b['push'](_0x26299b['shift']());}}}(_0x46e4,0x93b6b),Object[_0x59a874(0x164)](exports,Symbol['toStringTag'],{'value':_0x59a874(0x175)}));let e=require('@univerjs-pro/engine-shape'),t=require('@univerjs-pro/license'),n=require('@univerjs/core');const r=0.0001;function i(_0x889d19){return{'x':_0x889d19['x'],'y':_0x889d19['y']};}function a(_0x341a6b){const _0x178b85=_0x59a874;return{..._0x341a6b,'in':_0x341a6b['in']?i(_0x341a6b['in']):void 0x0,'out':_0x341a6b['out']?i(_0x341a6b[_0x178b85(0x1b6)]):void 0x0};}function o(_0x5000c0){const _0x3d6090=_0x59a874;return{'kind':_0x3d6090(0x174),'closed':_0x5000c0[_0x3d6090(0x16d)],'anchors':_0x5000c0[_0x3d6090(0x188)][_0x3d6090(0x17a)](a)};}function s(_0x316b4e,_0x43d3e3,_0x1f47d6){return{'x':_0x316b4e['x']+(_0x43d3e3['x']-_0x316b4e['x'])*_0x1f47d6,'y':_0x316b4e['y']+(_0x43d3e3['y']-_0x316b4e['y'])*_0x1f47d6};}function c(_0x59c9da,_0x2dbbea){const _0x157487=_0x59a874;return Math[_0x157487(0x16b)](_0x59c9da['x']-_0x2dbbea['x'],_0x59c9da['y']-_0x2dbbea['y']);}function l(_0x98f842){const _0xfc3492=_0x59a874;let _0x453f6d=Math[_0xfc3492(0x16b)](_0x98f842['x'],_0x98f842['y']);return _0x453f6d<r?{'x':0x1,'y':0x0}:{'x':_0x98f842['x']/_0x453f6d,'y':_0x98f842['y']/_0x453f6d};}function u(_0x33d0da,_0x4f0d94,_0x7a2900=c(_0x33d0da,_0x4f0d94)){let _0x495a8f=l({'x':_0x33d0da['x']-_0x4f0d94['x'],'y':_0x33d0da['y']-_0x4f0d94['y']});return{'x':_0x33d0da['x']+_0x495a8f['x']*_0x7a2900,'y':_0x33d0da['y']+_0x495a8f['y']*_0x7a2900};}function d(_0xff1417,_0xb65cad){const _0x3bda45=_0x59a874;let {anchors:_0x47a94f}=_0xff1417;return _0x47a94f[_0x3bda45(0x198)]<0x2||_0xb65cad<0x0?null:_0xb65cad<_0x47a94f['length']-0x1?{'startIndex':_0xb65cad,'endIndex':_0xb65cad+0x1,'start':_0x47a94f[_0xb65cad],'end':_0x47a94f[_0xb65cad+0x1]}:_0xff1417[_0x3bda45(0x16d)]&&_0xb65cad===_0x47a94f[_0x3bda45(0x198)]-0x1?{'startIndex':_0x47a94f[_0x3bda45(0x198)]-0x1,'endIndex':0x0,'start':_0x47a94f[_0x47a94f[_0x3bda45(0x198)]-0x1],'end':_0x47a94f[0x0]}:null;}function f(_0x510ded,_0x3c366c){const _0xfaeb6a=_0x59a874;var _0x3dca57,_0x833402;let _0x2c9a57=d(_0x510ded,_0x3c366c);return _0x2c9a57?[_0x2c9a57[_0xfaeb6a(0x191)],(_0x3dca57=_0x2c9a57['start'][_0xfaeb6a(0x1b6)])==null?_0x2c9a57[_0xfaeb6a(0x191)]:_0x3dca57,(_0x833402=_0x2c9a57[_0xfaeb6a(0x19f)]['in'])==null?_0x2c9a57[_0xfaeb6a(0x19f)]:_0x833402,_0x2c9a57[_0xfaeb6a(0x19f)]]:null;}function ee(_0x197be2,_0x1eeba9){var _0x5173fe;return _0x1eeba9==='anchor'?_0x197be2:(_0x5173fe=_0x197be2[_0x1eeba9])==null?null:_0x5173fe;}function p(_0x51c8cb,_0x312194,_0x20594f){const _0x3b1c14=_0x59a874;return _0x20594f===_0x3b1c14(0x1ce)||_0x51c8cb[_0x3b1c14(0x16d)]?!0x0:_0x20594f==='in'?_0x312194>0x0:_0x312194<_0x51c8cb[_0x3b1c14(0x188)]['length']-0x1;}function m(_0x11ee17,_0x339cbb){let [_0x592f48,_0x24cf3d,_0x5f4aef,_0x4a1aca]=_0x11ee17,_0x4b502e=s(_0x592f48,_0x24cf3d,_0x339cbb),_0x320de1=s(_0x24cf3d,_0x5f4aef,_0x339cbb),_0x1cd89f=s(_0x5f4aef,_0x4a1aca,_0x339cbb);return s(s(_0x4b502e,_0x320de1,_0x339cbb),s(_0x320de1,_0x1cd89f,_0x339cbb),_0x339cbb);}function h(_0x3f6fc6,_0x386e33){let [_0xc2e0ef,_0x339aca,_0x413512,_0x15ada4]=_0x3f6fc6,_0x42040d=s(_0xc2e0ef,_0x339aca,_0x386e33),_0x35f973=s(_0x339aca,_0x413512,_0x386e33),_0x46990a=s(_0x413512,_0x15ada4,_0x386e33),_0x3ff375=s(_0x42040d,_0x35f973,_0x386e33),_0x2574c5=s(_0x35f973,_0x46990a,_0x386e33),_0x413e99=s(_0x3ff375,_0x2574c5,_0x386e33);return{'left':[_0xc2e0ef,_0x42040d,_0x3ff375,_0x413e99],'right':[_0x413e99,_0x2574c5,_0x46990a,_0x15ada4]};}function g(_0x1f1879,_0x4dc181,_0x4ab63c){const _0x59caeb=_0x59a874;let _0x3aa640=_0x4ab63c['x']-_0x4dc181['x'],_0x120940=_0x4ab63c['y']-_0x4dc181['y'],_0x7d19e9=_0x3aa640*_0x3aa640+_0x120940*_0x120940,_0x3636f1=_0x7d19e9<=r?0x0:Math[_0x59caeb(0x189)](0x0,Math[_0x59caeb(0x1ba)](0x1,((_0x1f1879['x']-_0x4dc181['x'])*_0x3aa640+(_0x1f1879['y']-_0x4dc181['y'])*_0x120940)/_0x7d19e9)),_0x38eb45={'x':_0x4dc181['x']+_0x3aa640*_0x3636f1,'y':_0x4dc181['y']+_0x120940*_0x3636f1};return{'point':_0x38eb45,'ratio':_0x3636f1,'distance':c(_0x1f1879,_0x38eb45)};}function te(_0x915348,_0x55fb5a,_0xa7aae2){return g(_0x915348,_0x55fb5a,_0xa7aae2)['distance']**0x2;}function _(_0x133000,_0x5c3e5b){const _0x269b6e=_0x59a874;if(_0x133000[_0x269b6e(0x198)]<=0x2)return _0x133000[_0x269b6e(0x17a)](i);let _0x46a117=0x0,_0x26b48e=0x0,_0x4e9847=_0x133000[0x0],_0x1f4cca=_0x133000[_0x133000[_0x269b6e(0x198)]-0x1],_0x3729bf=_0x5c3e5b*_0x5c3e5b;for(let _0x109e6e=0x1;_0x109e6e<_0x133000[_0x269b6e(0x198)]-0x1;_0x109e6e++){let _0x1bb6a9=te(_0x133000[_0x109e6e],_0x4e9847,_0x1f4cca);_0x1bb6a9>_0x46a117&&(_0x46a117=_0x1bb6a9,_0x26b48e=_0x109e6e);}if(_0x46a117<=_0x3729bf)return[i(_0x4e9847),i(_0x1f4cca)];let _0x15b063=_(_0x133000[_0x269b6e(0x1c6)](0x0,_0x26b48e+0x1),_0x5c3e5b),_0x21ee26=_(_0x133000[_0x269b6e(0x1c6)](_0x26b48e),_0x5c3e5b);return[..._0x15b063[_0x269b6e(0x1c6)](0x0,-0x1),..._0x21ee26];}function ne(_0x55d7ea,_0x4654ee){var _0x37372e;let _0x24ba50=_0x55d7ea[_0x4654ee],_0x30d351=_0x55d7ea[_0x4654ee+0x1],_0x261e69=(_0x37372e=_0x55d7ea[_0x4654ee-0x1])==null?_0x24ba50:_0x37372e;return{'x':_0x24ba50['x']+(_0x30d351['x']-_0x261e69['x'])/0x6,'y':_0x24ba50['y']+(_0x30d351['y']-_0x261e69['y'])/0x6};}function v(_0x4687b0,_0x50a46b){var _0x594b80;let _0x2cb43e=_0x4687b0[_0x50a46b],_0x3abbf6=_0x4687b0[_0x50a46b-0x1],_0x31d175=(_0x594b80=_0x4687b0[_0x50a46b+0x1])==null?_0x2cb43e:_0x594b80;return{'x':_0x2cb43e['x']-(_0x31d175['x']-_0x3abbf6['x'])/0x6,'y':_0x2cb43e['y']-(_0x31d175['y']-_0x3abbf6['y'])/0x6};}function y(_0x3620f8,_0x161f82){const _0x396b42=_0x59a874;var _0x48601c,_0x201de4;let _0x860045=_0x3620f8[_0x396b42(0x188)][_0x161f82],_0x40633b=(_0x48601c=_0x3620f8['anchors'][_0x161f82-0x1])==null?_0x3620f8['closed']?_0x3620f8[_0x396b42(0x188)][_0x3620f8[_0x396b42(0x188)][_0x396b42(0x198)]-0x1]:null:_0x48601c,_0x255ee8=(_0x201de4=_0x3620f8[_0x396b42(0x188)][_0x161f82+0x1])==null?_0x3620f8[_0x396b42(0x16d)]?_0x3620f8[_0x396b42(0x188)][0x0]:null:_0x201de4,_0x34bdbd=_0x40633b&&_0x255ee8?l({'x':_0x255ee8['x']-_0x40633b['x'],'y':_0x255ee8['y']-_0x40633b['y']}):_0x255ee8?l({'x':_0x255ee8['x']-_0x860045['x'],'y':_0x255ee8['y']-_0x860045['y']}):_0x40633b?l({'x':_0x860045['x']-_0x40633b['x'],'y':_0x860045['y']-_0x40633b['y']}):{'x':0x1,'y':0x0},_0x2dd9c2=_0x40633b&&_0x255ee8?Math['max'](0x32,c(_0x40633b,_0x255ee8)/0x4):0x32;return{'in':{'x':_0x860045['x']-_0x34bdbd['x']*_0x2dd9c2,'y':_0x860045['y']-_0x34bdbd['y']*_0x2dd9c2},'out':{'x':_0x860045['x']+_0x34bdbd['x']*_0x2dd9c2,'y':_0x860045['y']+_0x34bdbd['y']*_0x2dd9c2}};}function b(_0x3aaa89,_0x563bd9){const _0x3d191a=_0x59a874;let _0x2f2d34=_0x3aaa89[_0x563bd9],_0x5b93dc=_0x563bd9==='in'?_0x3d191a(0x1b6):'in',_0x108c7d=_0x3aaa89[_0x5b93dc];if(_0x2f2d34){if(_0x3aaa89[_0x3d191a(0x18c)]===_0x3d191a(0x1a0)){_0x3aaa89[_0x5b93dc]=u(_0x3aaa89,_0x2f2d34);return;}_0x3aaa89[_0x3d191a(0x18c)]==='smooth'&&(_0x3aaa89[_0x5b93dc]=u(_0x3aaa89,_0x2f2d34,_0x108c7d?c(_0x3aaa89,_0x108c7d):c(_0x3aaa89,_0x2f2d34)));}}function x(_0x268fdf,_0x9e347d){const _0x3251fe=_0x59a874;let _0x22d0a1=o(_0x268fdf);return!_0x9e347d||_0x22d0a1[_0x3251fe(0x16d)]||_0x22d0a1[_0x3251fe(0x188)][_0x3251fe(0x198)]===0x0||_0x22d0a1[_0x3251fe(0x188)][_0x3251fe(0x16f)]({'id':_0x3251fe(0x170),'x':_0x9e347d['x'],'y':_0x9e347d['y'],'pointType':_0x3251fe(0x186)}),_0x22d0a1;}function re(_0x10665c,_0x58c883={}){const _0x17cb56=_0x59a874;var _0x176d7d,_0x5023e6;let _0x58874e=Math[_0x17cb56(0x189)](0x0,(_0x176d7d=_0x58c883[_0x17cb56(0x1bf)])==null?Math[_0x17cb56(0x189)](0x4,_0x10665c['width']*0.35):_0x176d7d),_0x55f162=(_0x5023e6=_0x58c883[_0x17cb56(0x1c0)])==null?_0x339ed3=>_0x17cb56(0x1a6)+_0x339ed3:_0x5023e6,_0x97c22a=_(_0x10665c[_0x17cb56(0x195)],_0x58874e),_0x598bf7=_0x97c22a[_0x17cb56(0x17a)]((_0x28ad76,_0x344a11)=>({'id':_0x55f162(_0x344a11),'x':_0x28ad76['x'],'y':_0x28ad76['y'],'pointType':_0x17cb56(0x1b8)}));for(let _0x2a93d8=0x0;_0x2a93d8<_0x598bf7['length']-0x1;_0x2a93d8++)_0x598bf7[_0x2a93d8][_0x17cb56(0x1b6)]=ne(_0x97c22a,_0x2a93d8),_0x598bf7[_0x2a93d8+0x1]['in']=v(_0x97c22a,_0x2a93d8+0x1);return{'kind':'pen','closed':!0x1,'anchors':_0x598bf7};}function _0x46e4(){const _0x2264a6=['object','ShapeFillEnum','string','slice','default','SolidFill','1.0.0-alpha.7','218394owSsJX','startIndex','moveInkPenAnchorPoint','ShapeTypeEnum','anchor','tool','Round','kind','890MyIxJW','toPrimitive','color','defineProperty','registerCommand','decorate','_configService','_adapters','onStarting','forEach','hypot','splice','closed','UNIVER_UNKNOWN','push','__ink-preview-anchor__','distance','6jcPjiI','setInkPenAnchorPointType','pen','Module','ICommandService','norm','createCustomShape','find','map','ink.host-adapter.service','OPERATION','findIndex','left','call','1957724XEbgeB','IInkHostAdapterService','getInkPenPreviewModel','633222BsKZwn','insertInkPenAnchorAt','filter','corner','3534630efFeeE','anchors','max','symbol','ink.operation.start','pointType','UNIVER_INK_PLUGIN','_commandService','indexOf','findClosestInkPenHandle','start','ShapeLineCapEnum','constructor','ShapeLineJoinEnum','points','abs','merge','length','prototype','getOwnPropertyDescriptor','findClosestInkPenSegment','top','Inject','opacity','end','symmetric','SolidLine','endIndex','width','5674260pwamPG','UniverInkPlugin','ink-centerline-','segmentIndex','UniverLicensePlugin','iterator','join','point','NoFill','ShapeLineTypeEnum','Plugin','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','134715FMrbTo','registerAdapter','get','714236sfrVbj','smooth','toDisposable','out','_config','free','convertBrushModelToPenModel','min','function','beginInkMode','height','anchorId','tolerance','createId','312slTZjO','round'];_0x46e4=function(){return _0x2264a6;};return _0x46e4();}function ie(_0x22a915,_0x1bde6e,_0x16771b){const _0x986a14=_0x59a874;let _0x282b75=null,_0x254c21=[_0x986a14(0x1ce),'in',_0x986a14(0x1b6)];return _0x22a915[_0x986a14(0x188)][_0x986a14(0x16a)]((_0x329961,_0x6ee73e)=>{const _0x16a46a=_0x986a14;_0x254c21[_0x16a46a(0x16a)](_0x1c6f71=>{const _0x151cec=_0x16a46a;if(!p(_0x22a915,_0x6ee73e,_0x1c6f71))return;let _0x5efdc4=ee(_0x329961,_0x1c6f71);if(!_0x5efdc4)return;let _0x2cbed0=c(_0x1bde6e,_0x5efdc4);_0x2cbed0>_0x16771b||_0x282b75&&_0x2cbed0>=_0x282b75[_0x151cec(0x171)]||(_0x282b75={'handle':{'kind':_0x1c6f71,'anchorId':_0x329961['id']},'point':i(_0x5efdc4),'distance':_0x2cbed0});});}),_0x282b75;}function S(_0x54c289,_0x195ef8,_0x412d1a){const _0x4dd555=_0x59a874;let _0x31a1e7=null,_0x14a205=_0x54c289[_0x4dd555(0x16d)]?_0x54c289['anchors'][_0x4dd555(0x198)]:Math[_0x4dd555(0x189)](0x0,_0x54c289['anchors'][_0x4dd555(0x198)]-0x1);for(let _0x314cac=0x0;_0x314cac<_0x14a205;_0x314cac++){let _0x32b367=f(_0x54c289,_0x314cac);if(!_0x32b367)continue;let _0x1e58b6=m(_0x32b367,0x0);for(let _0x2bf85a=0x1;_0x2bf85a<=0x20;_0x2bf85a++){let _0x59cba2=m(_0x32b367,_0x2bf85a/0x20),_0x5cd7c3=g(_0x195ef8,_0x1e58b6,_0x59cba2),_0x5014f6=(_0x2bf85a-0x1+_0x5cd7c3['ratio'])/0x20;(!_0x31a1e7||_0x5cd7c3['distance']<_0x31a1e7[_0x4dd555(0x171)])&&(_0x31a1e7={'segmentIndex':_0x314cac,'t':_0x5014f6,'point':_0x5cd7c3[_0x4dd555(0x1ab)],'distance':_0x5cd7c3[_0x4dd555(0x171)]}),_0x1e58b6=_0x59cba2;}}return _0x31a1e7&&_0x31a1e7[_0x4dd555(0x171)]<=_0x412d1a?_0x31a1e7:null;}function C(_0x2fbeec,_0x905720,_0x476442){const _0x48f8ed=_0x59a874;let _0x4c2634=o(_0x2fbeec),_0x45f38c=d(_0x4c2634,_0x905720[_0x48f8ed(0x1a7)]),_0x2d1d69=f(_0x4c2634,_0x905720['segmentIndex']);if(!_0x45f38c||!_0x2d1d69)return _0x4c2634;let _0x3b1fe0=h(_0x2d1d69,Math[_0x48f8ed(0x189)](0x0,Math[_0x48f8ed(0x1ba)](0x1,_0x905720['t']))),_0x51c556={'id':_0x476442(),'x':_0x3b1fe0[_0x48f8ed(0x17e)][0x3]['x'],'y':_0x3b1fe0['left'][0x3]['y'],'in':i(_0x3b1fe0[_0x48f8ed(0x17e)][0x2]),'out':i(_0x3b1fe0['right'][0x1]),'pointType':_0x48f8ed(0x1b8)};return _0x4c2634[_0x48f8ed(0x188)][_0x45f38c[_0x48f8ed(0x1cb)]][_0x48f8ed(0x1b6)]=i(_0x3b1fe0[_0x48f8ed(0x17e)][0x1]),_0x4c2634[_0x48f8ed(0x188)][_0x45f38c[_0x48f8ed(0x1a2)]]['in']=i(_0x3b1fe0['right'][0x2]),_0x4c2634[_0x48f8ed(0x188)][_0x48f8ed(0x16c)](_0x45f38c[_0x48f8ed(0x1cb)]+0x1,0x0,_0x51c556),_0x4c2634;}function w(_0x76a63,_0x21404f){const _0x434c65=_0x59a874;let _0x5b1855=o(_0x76a63);return _0x5b1855['anchors']=_0x5b1855[_0x434c65(0x188)][_0x434c65(0x185)](_0x144581=>_0x144581['id']!==_0x21404f),_0x5b1855[_0x434c65(0x16d)]&&_0x5b1855['anchors']['length']<0x3&&(_0x5b1855[_0x434c65(0x16d)]=!0x1),_0x5b1855;}function T(_0x53e92e,_0x11dbf9,_0x5f2118){const _0x290d06=_0x59a874;let _0x2a2f06=o(_0x53e92e),_0x41956e=_0x2a2f06['anchors'][_0x290d06(0x17d)](_0xbc6de0=>_0xbc6de0['id']===_0x11dbf9),_0x491e54=_0x2a2f06[_0x290d06(0x188)][_0x41956e];if(!_0x491e54)return _0x2a2f06;if(_0x491e54[_0x290d06(0x18c)]=_0x5f2118,_0x5f2118===_0x290d06(0x186))return delete _0x491e54['in'],delete _0x491e54[_0x290d06(0x1b6)],_0x2a2f06;let _0x422cb8=y(_0x2a2f06,_0x41956e);if(_0x491e54['in']=_0x491e54['in']?i(_0x491e54['in']):_0x422cb8['in'],_0x491e54[_0x290d06(0x1b6)]=_0x491e54[_0x290d06(0x1b6)]?i(_0x491e54[_0x290d06(0x1b6)]):_0x422cb8['out'],_0x5f2118===_0x290d06(0x1a0)){let _0x378685=Math['max'](c(_0x491e54,_0x491e54['in']),c(_0x491e54,_0x491e54[_0x290d06(0x1b6)]),0x32),_0x3f894d=l({'x':_0x491e54[_0x290d06(0x1b6)]['x']-_0x491e54['x'],'y':_0x491e54[_0x290d06(0x1b6)]['y']-_0x491e54['y']});_0x491e54['out']={'x':_0x491e54['x']+_0x3f894d['x']*_0x378685,'y':_0x491e54['y']+_0x3f894d['y']*_0x378685},_0x491e54['in']={'x':_0x491e54['x']-_0x3f894d['x']*_0x378685,'y':_0x491e54['y']-_0x3f894d['y']*_0x378685};}else _0x5f2118===_0x290d06(0x1b4)&&b(_0x491e54,_0x290d06(0x1b6));return _0x2a2f06;}function E(_0x30da42,_0x4baa68){const _0x5abf48=_0x59a874;var _0x33c9c6;let _0xb9e319=_0x30da42[_0x5abf48(0x188)]['find'](_0x479f0b=>_0x479f0b['id']===_0x4baa68),_0x4d66db=(_0x33c9c6=_0xb9e319==null?void 0x0:_0xb9e319[_0x5abf48(0x18c)])==null?_0x5abf48(0x186):_0x33c9c6;return T(_0x30da42,_0x4baa68,_0x4d66db===_0x5abf48(0x186)?'smooth':_0x4d66db===_0x5abf48(0x1b4)?_0x5abf48(0x1a0):_0x4d66db===_0x5abf48(0x1a0)?_0x5abf48(0x1b8):_0x5abf48(0x186));}function ae(_0x42cc6f,_0x2752de,_0x54d36a){const _0x293a74=_0x59a874;let _0x5386d8=o(_0x42cc6f),_0x28e324=_0x5386d8[_0x293a74(0x188)][_0x293a74(0x179)](_0x263245=>_0x263245['id']===_0x2752de[_0x293a74(0x1be)]);if(!_0x28e324)return _0x5386d8;if(_0x2752de[_0x293a74(0x1d1)]===_0x293a74(0x1ce)){let _0x510ce6={'x':_0x54d36a['x']-_0x28e324['x'],'y':_0x54d36a['y']-_0x28e324['y']};return _0x28e324['x']=_0x54d36a['x'],_0x28e324['y']=_0x54d36a['y'],_0x28e324['in']&&(_0x28e324['in']={'x':_0x28e324['in']['x']+_0x510ce6['x'],'y':_0x28e324['in']['y']+_0x510ce6['y']}),_0x28e324[_0x293a74(0x1b6)]&&(_0x28e324[_0x293a74(0x1b6)]={'x':_0x28e324[_0x293a74(0x1b6)]['x']+_0x510ce6['x'],'y':_0x28e324['out']['y']+_0x510ce6['y']}),_0x5386d8;}return _0x28e324[_0x2752de[_0x293a74(0x1d1)]]=i(_0x54d36a),_0x28e324[_0x293a74(0x18c)]===_0x293a74(0x186)&&(_0x28e324[_0x293a74(0x18c)]=_0x293a74(0x1b8)),b(_0x28e324,_0x2752de[_0x293a74(0x1d1)]),_0x5386d8;}const D=1e-9;function O(_0x324304){let _0x21794f=Math['round'](_0x324304*0x2710)/0x2710;return Object['is'](_0x21794f,-0x0)?'0':String(_0x21794f);}function k(_0x552dd0){return O(_0x552dd0['x'])+'\x20'+O(_0x552dd0['y']);}function A(_0x17744b,_0x10bc27){return{'x':_0x17744b['x']-_0x10bc27['x'],'y':_0x17744b['y']-_0x10bc27['y']};}function j(_0xc82808,_0x442dc9,_0x18d5f4,_0x246b9a,_0x5ae311){let _0x3988c4=0x1-_0x5ae311;return{'x':_0x3988c4*_0x3988c4*_0x3988c4*_0xc82808['x']+0x3*_0x3988c4*_0x3988c4*_0x5ae311*_0x442dc9['x']+0x3*_0x3988c4*_0x5ae311*_0x5ae311*_0x18d5f4['x']+_0x5ae311*_0x5ae311*_0x5ae311*_0x246b9a['x'],'y':_0x3988c4*_0x3988c4*_0x3988c4*_0xc82808['y']+0x3*_0x3988c4*_0x3988c4*_0x5ae311*_0x442dc9['y']+0x3*_0x3988c4*_0x5ae311*_0x5ae311*_0x18d5f4['y']+_0x5ae311*_0x5ae311*_0x5ae311*_0x246b9a['y']};}function M(_0x3471a8,_0xac42d6,_0x86b447,_0x3ec75e){const _0x86734e=_0x59a874;let _0x5ec3ec=-_0x3471a8+0x3*_0xac42d6-0x3*_0x86b447+_0x3ec75e,_0x250b1e=0x3*_0x3471a8-0x6*_0xac42d6+0x3*_0x86b447,_0x5791c6=-0x3*_0x3471a8+0x3*_0xac42d6,_0x4a4dc8=[];if(Math[_0x86734e(0x196)](_0x5ec3ec)<D){if(Math[_0x86734e(0x196)](_0x250b1e)<D)return _0x4a4dc8;let _0x5d5d3d=-_0x5791c6/(0x2*_0x250b1e);return _0x5d5d3d>0x0&&_0x5d5d3d<0x1&&_0x4a4dc8[_0x86734e(0x16f)](_0x5d5d3d),_0x4a4dc8;}let _0x7fcefa=_0x250b1e*_0x250b1e-0x3*_0x5ec3ec*_0x5791c6;if(_0x7fcefa<0x0)return _0x4a4dc8;let _0x43b592=Math['sqrt'](Math[_0x86734e(0x189)](0x0,_0x7fcefa)),_0x41429b=(-_0x250b1e+_0x43b592)/(0x3*_0x5ec3ec),_0xfa4eb=(-_0x250b1e-_0x43b592)/(0x3*_0x5ec3ec);return _0x41429b>0x0&&_0x41429b<0x1&&_0x4a4dc8[_0x86734e(0x16f)](_0x41429b),_0xfa4eb>0x0&&_0xfa4eb<0x1&&Math['abs'](_0xfa4eb-_0x41429b)>D&&_0x4a4dc8[_0x86734e(0x16f)](_0xfa4eb),_0x4a4dc8;}function _0x193f(_0x3ebf7d,_0x1ac285){_0x3ebf7d=_0x3ebf7d-0x164;const _0x46e4d7=_0x46e4();let _0x193f53=_0x46e4d7[_0x3ebf7d];return _0x193f53;}function N(_0x247b4c,_0x210e26,_0x4131cd,_0x16f064,_0x273101){const _0x4ea912=_0x59a874;_0x247b4c[_0x4ea912(0x16f)](_0x210e26,_0x273101),new Set([...M(_0x210e26['x'],_0x4131cd['x'],_0x16f064['x'],_0x273101['x']),...M(_0x210e26['y'],_0x4131cd['y'],_0x16f064['y'],_0x273101['y'])])[_0x4ea912(0x16a)](_0x5a4789=>{const _0x3b0c82=_0x4ea912;_0x247b4c[_0x3b0c82(0x16f)](j(_0x210e26,_0x4131cd,_0x16f064,_0x273101,_0x5a4789));});}function P(_0x232c84){const _0x32b65b=_0x59a874;let _0x4dab35=_0x232c84['anchors'];if(_0x4dab35[_0x32b65b(0x198)]<=0x1)return _0x4dab35;let _0x33dbda=[];for(let _0x4332e5=0x1;_0x4332e5<_0x4dab35[_0x32b65b(0x198)];_0x4332e5++){var _0x1e11f5,_0x545da6;let _0x487ca9=_0x4dab35[_0x4332e5-0x1],_0x4e698b=_0x4dab35[_0x4332e5];N(_0x33dbda,_0x487ca9,(_0x1e11f5=_0x487ca9[_0x32b65b(0x1b6)])==null?_0x487ca9:_0x1e11f5,(_0x545da6=_0x4e698b['in'])==null?_0x4e698b:_0x545da6,_0x4e698b);}if(_0x232c84[_0x32b65b(0x16d)]&&_0x4dab35[_0x32b65b(0x198)]>0x1){var _0x350283,_0x56a24d;let _0x2d4fa1=_0x4dab35[_0x4dab35['length']-0x1],_0x20bcfd=_0x4dab35[0x0];N(_0x33dbda,_0x2d4fa1,(_0x350283=_0x2d4fa1['out'])==null?_0x2d4fa1:_0x350283,(_0x56a24d=_0x20bcfd['in'])==null?_0x20bcfd:_0x56a24d,_0x20bcfd);}return _0x33dbda;}function F(_0x101e52){const _0x1801c2=_0x59a874;let _0x49cdfa=_0x101e52['points'];if(_0x49cdfa[_0x1801c2(0x198)]<=0x1)return _0x49cdfa;let _0x5e994d=[];for(let _0xc4915=0x0;_0xc4915<_0x49cdfa[_0x1801c2(0x198)]-0x1;_0xc4915++){var _0x243d15,_0x50d2ee;let _0x47a63c=_0x49cdfa[_0xc4915],_0x4ba4f9=_0x49cdfa[_0xc4915+0x1],_0x1b3ed6=(_0x243d15=_0x49cdfa[_0xc4915-0x1])==null?_0x47a63c:_0x243d15,_0x54e02a=(_0x50d2ee=_0x49cdfa[_0xc4915+0x2])==null?_0x4ba4f9:_0x50d2ee;N(_0x5e994d,_0x47a63c,{'x':_0x47a63c['x']+(_0x4ba4f9['x']-_0x1b3ed6['x'])/0x6,'y':_0x47a63c['y']+(_0x4ba4f9['y']-_0x1b3ed6['y'])/0x6},{'x':_0x4ba4f9['x']-(_0x54e02a['x']-_0x47a63c['x'])/0x6,'y':_0x4ba4f9['y']-(_0x54e02a['y']-_0x47a63c['y'])/0x6},_0x4ba4f9);}return _0x5e994d;}function I(_0x4624a6){const _0x47ec15=_0x59a874;return _0x4624a6['kind']===_0x47ec15(0x174)?P(_0x4624a6):F(_0x4624a6);}function L(_0x3199b2){const _0x10ad4b=_0x59a874;let _0x3896f0=Math[_0x10ad4b(0x1c2)](_0x3199b2*0x2710)/0x2710;return Object['is'](_0x3896f0,-0x0)?0x0:_0x3896f0;}function R(_0xcdb471){const _0x1cd628=_0x59a874;let _0x331b55=I(_0xcdb471);if(_0x331b55[_0x1cd628(0x198)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x52033c=Math[_0x1cd628(0x1ba)](..._0x331b55[_0x1cd628(0x17a)](_0x1827fc=>_0x1827fc['x'])),_0x191aaa=Math[_0x1cd628(0x1ba)](..._0x331b55[_0x1cd628(0x17a)](_0x392c76=>_0x392c76['y'])),_0x35c185=Math[_0x1cd628(0x189)](..._0x331b55['map'](_0x22dd89=>_0x22dd89['x'])),_0x4bb1b8=Math['max'](..._0x331b55[_0x1cd628(0x17a)](_0xce9fb8=>_0xce9fb8['y']));return{'left':L(_0x52033c),'top':L(_0x191aaa),'width':L(Math['max'](0x1,_0x35c185-_0x52033c)),'height':L(Math['max'](0x1,_0x4bb1b8-_0x191aaa))};}function z(_0x1aa911,_0x423ff9){const _0x5a3064=_0x59a874;let _0xdf214d=_0x1aa911[_0x5a3064(0x188)];if(_0xdf214d[_0x5a3064(0x198)]===0x0)return'';let _0x3740be=['M\x20'+k(A(_0xdf214d[0x0],_0x423ff9))];for(let _0x42f1ef=0x1;_0x42f1ef<_0xdf214d['length'];_0x42f1ef++){var _0x515d6c,_0x89b90a;let _0x46e432=_0xdf214d[_0x42f1ef-0x1],_0x4dc879=_0xdf214d[_0x42f1ef],_0xa60d53=(_0x515d6c=_0x46e432['out'])==null?_0x46e432:_0x515d6c,_0x18254c=(_0x89b90a=_0x4dc879['in'])==null?_0x4dc879:_0x89b90a;_0x3740be[_0x5a3064(0x16f)]('C\x20'+k(A(_0xa60d53,_0x423ff9))+'\x20'+k(A(_0x18254c,_0x423ff9))+'\x20'+k(A(_0x4dc879,_0x423ff9)));}if(_0x1aa911[_0x5a3064(0x16d)]&&_0xdf214d['length']>0x1){var _0x2cc17c,_0x46cfa4;let _0x19e3a4=_0xdf214d[_0xdf214d[_0x5a3064(0x198)]-0x1],_0x578512=_0xdf214d[0x0],_0x3b4ec5=(_0x2cc17c=_0x19e3a4[_0x5a3064(0x1b6)])==null?_0x19e3a4:_0x2cc17c,_0x2d563f=(_0x46cfa4=_0x578512['in'])==null?_0x578512:_0x46cfa4;_0x3740be[_0x5a3064(0x16f)]('C\x20'+k(A(_0x3b4ec5,_0x423ff9))+'\x20'+k(A(_0x2d563f,_0x423ff9))+'\x20'+k(A(_0x578512,_0x423ff9))),_0x3740be[_0x5a3064(0x16f)]('Z');}return _0x3740be[_0x5a3064(0x1aa)]('\x20');}function B(_0x4b8155,_0x12dc0c){const _0x2c47c8=_0x59a874;let _0x33d710=_0x4b8155[_0x2c47c8(0x195)][_0x2c47c8(0x17a)](_0x47b1e8=>A(_0x47b1e8,_0x12dc0c));if(_0x33d710[_0x2c47c8(0x198)]===0x0)return'';if(_0x33d710[_0x2c47c8(0x198)]===0x1)return'M\x20'+k(_0x33d710[0x0]);let _0x27f9dd=['M\x20'+k(_0x33d710[0x0])];for(let _0xa83e7=0x0;_0xa83e7<_0x33d710[_0x2c47c8(0x198)]-0x1;_0xa83e7++){var _0x510a7e,_0x58030c;let _0x3f5626=_0x33d710[_0xa83e7],_0xc7a88f=_0x33d710[_0xa83e7+0x1],_0x37b81a=(_0x510a7e=_0x33d710[_0xa83e7-0x1])==null?_0x3f5626:_0x510a7e,_0x24375b=(_0x58030c=_0x33d710[_0xa83e7+0x2])==null?_0xc7a88f:_0x58030c,_0x3c8f25={'x':_0x3f5626['x']+(_0xc7a88f['x']-_0x37b81a['x'])/0x6,'y':_0x3f5626['y']+(_0xc7a88f['y']-_0x37b81a['y'])/0x6},_0x445210={'x':_0xc7a88f['x']-(_0x24375b['x']-_0x3f5626['x'])/0x6,'y':_0xc7a88f['y']-(_0x24375b['y']-_0x3f5626['y'])/0x6};_0x27f9dd[_0x2c47c8(0x16f)]('C\x20'+k(_0x3c8f25)+'\x20'+k(_0x445210)+'\x20'+k(_0xc7a88f));}return _0x27f9dd[_0x2c47c8(0x1aa)]('\x20');}function V(_0x50c6be,_0x1d861c){const _0x45a0fa=_0x59a874;return _0x50c6be['kind']===_0x45a0fa(0x174)?z(_0x50c6be,_0x1d861c):B(_0x50c6be,_0x1d861c);}function H(_0x5def3e,_0x404f26){const _0x10d8f5=_0x59a874;return _0x404f26!=null&&_0x404f26['color']?_0x404f26[_0x10d8f5(0x1d4)]:_0x5def3e[_0x10d8f5(0x1d1)]===_0x10d8f5(0x174)?'#f54a45':_0x5def3e['color'];}function U(_0x1da639,_0x590b6b){const _0x52e7d3=_0x59a874;return(_0x590b6b==null?void 0x0:_0x590b6b[_0x52e7d3(0x1a3)])===void 0x0?_0x1da639['kind']===_0x52e7d3(0x174)?0x2:_0x1da639[_0x52e7d3(0x1a3)]:_0x590b6b['width'];}function W(_0x41b064,_0x56d7d2){const _0x3d5c8d=_0x59a874;return(_0x56d7d2==null?void 0x0:_0x56d7d2[_0x3d5c8d(0x19e)])===void 0x0?_0x41b064[_0x3d5c8d(0x1d1)]===_0x3d5c8d(0x174)?void 0x0:_0x41b064[_0x3d5c8d(0x19e)]:_0x56d7d2[_0x3d5c8d(0x19e)];}function oe(_0x4dbf90,_0x393109){const _0x123f0a=_0x59a874;let _0x304ba7=R(_0x4dbf90),_0x4b02e3=V(_0x4dbf90,{'x':_0x304ba7[_0x123f0a(0x17e)],'y':_0x304ba7[_0x123f0a(0x19c)]}),_0x3364ab=_0x4dbf90['kind']===_0x123f0a(0x174)&&_0x4dbf90['closed'],_0x312a27=_0x393109==null?void 0x0:_0x393109['fillColor'];return{'shapeType':e[_0x123f0a(0x1cd)]['Rect'],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x304ba7[_0x123f0a(0x1a3)],'h':_0x304ba7[_0x123f0a(0x1bd)],'fill':_0x3364ab?_0x123f0a(0x177):'none','stroke':!0x0,'data':_0x4b02e3,'dataArray':K(_0x4dbf90,{'x':_0x304ba7['left'],'y':_0x304ba7['top']})}]},'fill':_0x3364ab&&_0x312a27?{'color':_0x312a27,'fillType':e[_0x123f0a(0x1c4)][_0x123f0a(0x1c8)]}:{'fillType':e[_0x123f0a(0x1c4)][_0x123f0a(0x1ac)]},'stroke':{'color':H(_0x4dbf90,_0x393109),'width':U(_0x4dbf90,_0x393109),'opacity':W(_0x4dbf90,_0x393109),'lineStrokeType':e[_0x123f0a(0x1ad)][_0x123f0a(0x1a1)],'capType':e[_0x123f0a(0x192)]['Round'],'lineJoinType':e[_0x123f0a(0x194)][_0x123f0a(0x1d0)]}};}function G(_0x3753ac,_0x3c55e5){return{'x':_0x3753ac['x']-_0x3c55e5['x'],'y':_0x3753ac['y']-_0x3c55e5['y']};}function K(_0x3dbfbc,_0x5efb73){const _0x2eeb65=_0x59a874;if(_0x3dbfbc['kind']===_0x2eeb65(0x174)){let _0x4696b3=_0x3dbfbc[_0x2eeb65(0x188)];if(_0x4696b3[_0x2eeb65(0x198)]===0x0)return[];let _0x275e6f=G(_0x4696b3[0x0],_0x5efb73),_0x4a23b5=[{'command':'M','points':[_0x275e6f['x'],_0x275e6f['y']]}];for(let _0x1f2b67=0x1;_0x1f2b67<_0x4696b3[_0x2eeb65(0x198)];_0x1f2b67++){var _0x5ae7a3,_0x4f22c8;let _0x286f5a=_0x4696b3[_0x1f2b67-0x1],_0x133ba9=_0x4696b3[_0x1f2b67],_0xf6dbec=G((_0x5ae7a3=_0x286f5a[_0x2eeb65(0x1b6)])==null?_0x286f5a:_0x5ae7a3,_0x5efb73),_0xc3c58d=G((_0x4f22c8=_0x133ba9['in'])==null?_0x133ba9:_0x4f22c8,_0x5efb73),_0x12df3f=G(_0x133ba9,_0x5efb73);_0x4a23b5[_0x2eeb65(0x16f)]({'command':'C','points':[_0xf6dbec['x'],_0xf6dbec['y'],_0xc3c58d['x'],_0xc3c58d['y'],_0x12df3f['x'],_0x12df3f['y']]});}if(_0x3dbfbc['closed']&&_0x4696b3[_0x2eeb65(0x198)]>0x1){var _0x4ba7a4,_0x552c68;let _0x4a2042=_0x4696b3[_0x4696b3[_0x2eeb65(0x198)]-0x1],_0x1604f9=_0x4696b3[0x0],_0x2f200f=G((_0x4ba7a4=_0x4a2042[_0x2eeb65(0x1b6)])==null?_0x4a2042:_0x4ba7a4,_0x5efb73),_0x4936ba=G((_0x552c68=_0x1604f9['in'])==null?_0x1604f9:_0x552c68,_0x5efb73),_0x5d0950=G(_0x1604f9,_0x5efb73);_0x4a23b5[_0x2eeb65(0x16f)]({'command':'C','points':[_0x2f200f['x'],_0x2f200f['y'],_0x4936ba['x'],_0x4936ba['y'],_0x5d0950['x'],_0x5d0950['y']]}),_0x4a23b5['push']({'command':'z','points':[]});}return _0x4a23b5;}let _0x36bb2c=_0x3dbfbc[_0x2eeb65(0x195)][_0x2eeb65(0x17a)](_0x2187fd=>G(_0x2187fd,_0x5efb73));if(_0x36bb2c[_0x2eeb65(0x198)]===0x0)return[];let _0x3831a0=[{'command':'M','points':[_0x36bb2c[0x0]['x'],_0x36bb2c[0x0]['y']]}];for(let _0x125054=0x0;_0x125054<_0x36bb2c[_0x2eeb65(0x198)]-0x1;_0x125054++){var _0x579628,_0x297d08;let _0x349b8a=_0x36bb2c[_0x125054],_0x32b98f=_0x36bb2c[_0x125054+0x1],_0x383cf=(_0x579628=_0x36bb2c[_0x125054-0x1])==null?_0x349b8a:_0x579628,_0x55fd9d=(_0x297d08=_0x36bb2c[_0x125054+0x2])==null?_0x32b98f:_0x297d08,_0x24f6ce={'x':_0x349b8a['x']+(_0x32b98f['x']-_0x383cf['x'])/0x6,'y':_0x349b8a['y']+(_0x32b98f['y']-_0x383cf['y'])/0x6},_0x174934={'x':_0x32b98f['x']-(_0x55fd9d['x']-_0x349b8a['x'])/0x6,'y':_0x32b98f['y']-(_0x55fd9d['y']-_0x349b8a['y'])/0x6};_0x3831a0[_0x2eeb65(0x16f)]({'command':'C','points':[_0x24f6ce['x'],_0x24f6ce['y'],_0x174934['x'],_0x174934['y'],_0x32b98f['x'],_0x32b98f['y']]});}return _0x3831a0;}function q(_0x2e2607){const _0x332927=_0x59a874;var _0x3a991b;let {model:_0x585b92,sourceModel:_0x394c97=_0x585b92,style:_0x4e836f}=_0x2e2607,_0x5b28ea=(_0x3a991b=_0x2e2607[_0x332927(0x1cf)])==null?_0x585b92[_0x332927(0x1d1)]:_0x3a991b,_0x497af0=R(_0x585b92),_0x36ea49=_0x585b92[_0x332927(0x1d1)]===_0x332927(0x174)&&_0x5b28ea!==_0x332927(0x174)?_0x585b92:void 0x0;return{'transform':{..._0x497af0,'rotation':0x0},'shapeData':oe(_0x585b92,_0x4e836f),'ink':{'version':0x1,'tool':_0x5b28ea,'sourceModel':_0x394c97,..._0x36ea49?{'editModel':_0x36ea49}:{},'normalizedBounds':_0x497af0}};}var se='@univerjs-pro/ink',ce=_0x59a874(0x1c9);function J(_0x47d8ce){'@babel/helpers - typeof';const _0x9e2b24=_0x59a874;return J=typeof Symbol==_0x9e2b24(0x1bb)&&typeof Symbol[_0x9e2b24(0x1a9)]==_0x9e2b24(0x18a)?function(_0xd7719e){return typeof _0xd7719e;}:function(_0x4e556d){const _0x41fbcc=_0x9e2b24;return _0x4e556d&&typeof Symbol==_0x41fbcc(0x1bb)&&_0x4e556d[_0x41fbcc(0x193)]===Symbol&&_0x4e556d!==Symbol[_0x41fbcc(0x199)]?_0x41fbcc(0x18a):typeof _0x4e556d;},J(_0x47d8ce);}function le(_0x5379e5,_0x3922af){const _0x2524d4=_0x59a874;if(J(_0x5379e5)!=_0x2524d4(0x1c3)||!_0x5379e5)return _0x5379e5;var _0x358c71=_0x5379e5[Symbol[_0x2524d4(0x1d3)]];if(_0x358c71!==void 0x0){var _0x5e2be2=_0x358c71[_0x2524d4(0x17f)](_0x5379e5,_0x3922af||_0x2524d4(0x1c7));if(J(_0x5e2be2)!='object')return _0x5e2be2;throw TypeError(_0x2524d4(0x1af));}return(_0x3922af===_0x2524d4(0x1c5)?String:Number)(_0x5379e5);}function ue(_0x8fe591){const _0x40c5f1=_0x59a874;var _0x56bcd2=le(_0x8fe591,'string');return J(_0x56bcd2)==_0x40c5f1(0x18a)?_0x56bcd2:_0x56bcd2+'';}function Y(_0x4f6de3,_0x1ecd0e,_0x259194){const _0x25a693=_0x59a874;return(_0x1ecd0e=ue(_0x1ecd0e))in _0x4f6de3?Object[_0x25a693(0x164)](_0x4f6de3,_0x1ecd0e,{'value':_0x259194,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4f6de3[_0x1ecd0e]=_0x259194,_0x4f6de3;}const X=(0x0,n['createIdentifier'])(_0x59a874(0x17b));var de=class{constructor(){const _0x209e2d=_0x59a874;Y(this,_0x209e2d(0x168),[]);}[_0x59a874(0x1b1)](_0x429d63){const _0x42cdb1=_0x59a874;return this['_adapters'][_0x42cdb1(0x16f)](_0x429d63),(0x0,n[_0x42cdb1(0x1b5)])(()=>{const _0x3c1f41=_0x42cdb1;let _0x246aa9=this['_adapters'][_0x3c1f41(0x18f)](_0x429d63);_0x246aa9>=0x0&&this[_0x3c1f41(0x168)][_0x3c1f41(0x16c)](_0x246aa9,0x1);});}[_0x59a874(0x1bc)](_0x3b4436){const _0x2862ef=_0x59a874;for(let _0x52fd30 of this[_0x2862ef(0x168)])if(_0x52fd30[_0x2862ef(0x1bc)](_0x3b4436))return!0x0;return!0x1;}async[_0x59a874(0x178)](_0x51ef30){const _0x5d9456=_0x59a874;for(let _0x32885e of this[_0x5d9456(0x168)])if(_0x32885e['createCustomShape']&&await _0x32885e['createCustomShape'](_0x51ef30))return!0x0;return!0x1;}};const fe={'id':_0x59a874(0x18b),'type':n['CommandType'][_0x59a874(0x17c)],'handler':(_0x36dca0,_0x4e31bf)=>_0x4e31bf?_0x36dca0[_0x59a874(0x1b2)](X)[_0x59a874(0x1bc)](_0x4e31bf):!0x1},Z={};function Q(_0x3398c8,_0x9737bb){return function(_0xee0fac,_0x584548){_0x9737bb(_0xee0fac,_0x584548,_0x3398c8);};}function pe(_0x58c361,_0x444650,_0x20aa73,_0x3ce9a4){const _0x4d18bd=_0x59a874;var _0x2d75b5=arguments[_0x4d18bd(0x198)],_0xad1e94=_0x2d75b5<0x3?_0x444650:_0x3ce9a4===null?_0x3ce9a4=Object[_0x4d18bd(0x19a)](_0x444650,_0x20aa73):_0x3ce9a4,_0x2621cd;if(typeof Reflect==_0x4d18bd(0x1c3)&&typeof Reflect[_0x4d18bd(0x166)]==_0x4d18bd(0x1bb))_0xad1e94=Reflect['decorate'](_0x58c361,_0x444650,_0x20aa73,_0x3ce9a4);else{for(var _0x3bad82=_0x58c361[_0x4d18bd(0x198)]-0x1;_0x3bad82>=0x0;_0x3bad82--)(_0x2621cd=_0x58c361[_0x3bad82])&&(_0xad1e94=(_0x2d75b5<0x3?_0x2621cd(_0xad1e94):_0x2d75b5>0x3?_0x2621cd(_0x444650,_0x20aa73,_0xad1e94):_0x2621cd(_0x444650,_0x20aa73))||_0xad1e94);}return _0x2d75b5>0x3&&_0xad1e94&&Object['defineProperty'](_0x444650,_0x20aa73,_0xad1e94),_0xad1e94;}let $=class extends n[_0x59a874(0x1ae)]{constructor(_0x160ea9=Z,_0x39e4c1,_0x14f4f9,_0x1bf9f2){const _0x2560b=_0x59a874;super(),this['_config']=_0x160ea9,this['_injector']=_0x39e4c1,this['_commandService']=_0x14f4f9,this[_0x2560b(0x167)]=_0x1bf9f2;let {..._0x5b9baf}=(0x0,n[_0x2560b(0x197)])({},Z,this[_0x2560b(0x1b7)]);this['_configService']['setConfig']('ink.config',_0x5b9baf);}[_0x59a874(0x169)](){const _0x111633=_0x59a874;[[X,{'useClass':de}]]['forEach'](_0xa0c0e3=>this['_injector']['add'](_0xa0c0e3)),this['disposeWithMe'](this[_0x111633(0x18e)][_0x111633(0x165)](fe));}};Y($,'pluginName',_0x59a874(0x18d)),Y($,'packageName',se),Y($,'version',ce),Y($,'type',n['UniverInstanceType'][_0x59a874(0x16e)]),$=pe([(0x0,n['DependentOn'])(t[_0x59a874(0x1a8)]),Q(0x1,(0x0,n[_0x59a874(0x19d)])(n['Injector'])),Q(0x2,n[_0x59a874(0x176)]),Q(0x3,n['IConfigService'])],$),exports[_0x59a874(0x181)]=X,Object['defineProperty'](exports,_0x59a874(0x1a5),{'enumerable':!0x0,'get':function(){return $;}}),exports['buildInkCustomShapePayload']=q,exports[_0x59a874(0x1b9)]=re,exports['cycleInkPenAnchorPointType']=E,exports['deleteInkPenAnchor']=w,exports[_0x59a874(0x190)]=ie,exports[_0x59a874(0x19b)]=S,exports['getInkModelBounds']=R,exports[_0x59a874(0x182)]=x,exports[_0x59a874(0x184)]=C,exports['isInkPenHandleVisible']=p,exports[_0x59a874(0x1cc)]=ae,exports[_0x59a874(0x173)]=T;
|
|
1
|
+
const _0xf8ff5a=_0x39ca;(function(_0x4f664e,_0x593ca9){const _0x334a77=_0x39ca,_0x2e1010=_0x4f664e();while(!![]){try{const _0x18d8e2=parseInt(_0x334a77(0xf1))/0x1*(-parseInt(_0x334a77(0xc9))/0x2)+-parseInt(_0x334a77(0xe7))/0x3+parseInt(_0x334a77(0xf8))/0x4+-parseInt(_0x334a77(0xe6))/0x5+parseInt(_0x334a77(0xab))/0x6+parseInt(_0x334a77(0x103))/0x7*(-parseInt(_0x334a77(0xa7))/0x8)+-parseInt(_0x334a77(0xb9))/0x9*(-parseInt(_0x334a77(0xb8))/0xa);if(_0x18d8e2===_0x593ca9)break;else _0x2e1010['push'](_0x2e1010['shift']());}catch(_0x2cb678){_0x2e1010['push'](_0x2e1010['shift']());}}}(_0x1e55,0xca88d),Object['defineProperty'](exports,Symbol[_0xf8ff5a(0xfb)],{'value':_0xf8ff5a(0xa4)}));let e=require('@univerjs-pro/engine-shape'),t=require('@univerjs-pro/license'),n=require('@univerjs/core');const r=0.0001;function i(_0x5b1ad0){return{'x':_0x5b1ad0['x'],'y':_0x5b1ad0['y']};}function a(_0x37ca7c){const _0x20a85c=_0xf8ff5a;return{..._0x37ca7c,'in':_0x37ca7c['in']?i(_0x37ca7c['in']):void 0x0,'out':_0x37ca7c[_0x20a85c(0xe0)]?i(_0x37ca7c[_0x20a85c(0xe0)]):void 0x0};}function o(_0x2ae095){const _0x3b5269=_0xf8ff5a;return{'kind':_0x3b5269(0xe1),'closed':_0x2ae095[_0x3b5269(0xd5)],'anchors':_0x2ae095[_0x3b5269(0xe8)][_0x3b5269(0x102)](a)};}function s(_0x53e809,_0x5ef25d,_0x3ceb76){return{'x':_0x53e809['x']+(_0x5ef25d['x']-_0x53e809['x'])*_0x3ceb76,'y':_0x53e809['y']+(_0x5ef25d['y']-_0x53e809['y'])*_0x3ceb76};}function c(_0x1f9de3,_0x584c0f){const _0x387254=_0xf8ff5a;return Math[_0x387254(0xed)](_0x1f9de3['x']-_0x584c0f['x'],_0x1f9de3['y']-_0x584c0f['y']);}function l(_0x1fa004){const _0x5d44c9=_0xf8ff5a;let _0x5714ff=Math[_0x5d44c9(0xed)](_0x1fa004['x'],_0x1fa004['y']);return _0x5714ff<r?{'x':0x1,'y':0x0}:{'x':_0x1fa004['x']/_0x5714ff,'y':_0x1fa004['y']/_0x5714ff};}function u(_0x355da8,_0x1e9778,_0x44322c=c(_0x355da8,_0x1e9778)){let _0x500fec=l({'x':_0x355da8['x']-_0x1e9778['x'],'y':_0x355da8['y']-_0x1e9778['y']});return{'x':_0x355da8['x']+_0x500fec['x']*_0x44322c,'y':_0x355da8['y']+_0x500fec['y']*_0x44322c};}function d(_0x30ac23,_0x4d13c4){const _0x42fda7=_0xf8ff5a;let {anchors:_0x343701}=_0x30ac23;return _0x343701[_0x42fda7(0xec)]<0x2||_0x4d13c4<0x0?null:_0x4d13c4<_0x343701[_0x42fda7(0xec)]-0x1?{'startIndex':_0x4d13c4,'endIndex':_0x4d13c4+0x1,'start':_0x343701[_0x4d13c4],'end':_0x343701[_0x4d13c4+0x1]}:_0x30ac23['closed']&&_0x4d13c4===_0x343701['length']-0x1?{'startIndex':_0x343701[_0x42fda7(0xec)]-0x1,'endIndex':0x0,'start':_0x343701[_0x343701['length']-0x1],'end':_0x343701[0x0]}:null;}function f(_0x13b0bc,_0x1cac36){const _0x114899=_0xf8ff5a;let _0xec0907=d(_0x13b0bc,_0x1cac36);return _0xec0907?[_0xec0907[_0x114899(0x9c)],_0xec0907[_0x114899(0x9c)]['out']??_0xec0907[_0x114899(0x9c)],_0xec0907[_0x114899(0xc6)]['in']??_0xec0907[_0x114899(0xc6)],_0xec0907[_0x114899(0xc6)]]:null;}function ee(_0x2be0ef,_0x5aff3e){return _0x5aff3e==='anchor'?_0x2be0ef:_0x2be0ef[_0x5aff3e]??null;}function p(_0x436d04,_0x5353fb,_0x183eba){const _0x39c79c=_0xf8ff5a;return _0x183eba===_0x39c79c(0xd3)||_0x436d04[_0x39c79c(0xd5)]?!0x0:_0x183eba==='in'?_0x5353fb>0x0:_0x5353fb<_0x436d04[_0x39c79c(0xe8)]['length']-0x1;}function m(_0x575da2,_0x320a23){let [_0x376481,_0x1e7d34,_0x44c088,_0x56c7b7]=_0x575da2,_0x81bce3=s(_0x376481,_0x1e7d34,_0x320a23),_0x4dfa7e=s(_0x1e7d34,_0x44c088,_0x320a23),_0x34e1c2=s(_0x44c088,_0x56c7b7,_0x320a23);return s(s(_0x81bce3,_0x4dfa7e,_0x320a23),s(_0x4dfa7e,_0x34e1c2,_0x320a23),_0x320a23);}function h(_0x46fa72,_0x2844d0){let [_0x32f979,_0x5871f1,_0x22f944,_0x43cfbb]=_0x46fa72,_0x4bb254=s(_0x32f979,_0x5871f1,_0x2844d0),_0x46a1a8=s(_0x5871f1,_0x22f944,_0x2844d0),_0x5ca7d4=s(_0x22f944,_0x43cfbb,_0x2844d0),_0x3bbcc8=s(_0x4bb254,_0x46a1a8,_0x2844d0),_0x35c3b9=s(_0x46a1a8,_0x5ca7d4,_0x2844d0),_0x2f7680=s(_0x3bbcc8,_0x35c3b9,_0x2844d0);return{'left':[_0x32f979,_0x4bb254,_0x3bbcc8,_0x2f7680],'right':[_0x2f7680,_0x35c3b9,_0x5ca7d4,_0x43cfbb]};}function g(_0x3d665f,_0x2efead,_0x4cac54){const _0x336853=_0xf8ff5a;let _0x378a7a=_0x4cac54['x']-_0x2efead['x'],_0x2f9c79=_0x4cac54['y']-_0x2efead['y'],_0x4b9401=_0x378a7a*_0x378a7a+_0x2f9c79*_0x2f9c79,_0x4ba0b3=_0x4b9401<=r?0x0:Math['max'](0x0,Math[_0x336853(0x10b)](0x1,((_0x3d665f['x']-_0x2efead['x'])*_0x378a7a+(_0x3d665f['y']-_0x2efead['y'])*_0x2f9c79)/_0x4b9401)),_0x4473eb={'x':_0x2efead['x']+_0x378a7a*_0x4ba0b3,'y':_0x2efead['y']+_0x2f9c79*_0x4ba0b3};return{'point':_0x4473eb,'ratio':_0x4ba0b3,'distance':c(_0x3d665f,_0x4473eb)};}function te(_0x2431be,_0x4cfcff,_0x48b892){const _0xbe8829=_0xf8ff5a;return g(_0x2431be,_0x4cfcff,_0x48b892)[_0xbe8829(0xef)]**0x2;}function _(_0x13f291,_0x1cf35e){const _0x1be61a=_0xf8ff5a;if(_0x13f291[_0x1be61a(0xec)]<=0x2)return _0x13f291[_0x1be61a(0x102)](i);let _0x82ce68=0x0,_0x392c2d=0x0,_0x1dc35c=_0x13f291[0x0],_0x269a00=_0x13f291[_0x13f291[_0x1be61a(0xec)]-0x1],_0x48d1c5=_0x1cf35e*_0x1cf35e;for(let _0x2f4c9e=0x1;_0x2f4c9e<_0x13f291[_0x1be61a(0xec)]-0x1;_0x2f4c9e++){let _0x4cc8d7=te(_0x13f291[_0x2f4c9e],_0x1dc35c,_0x269a00);_0x4cc8d7>_0x82ce68&&(_0x82ce68=_0x4cc8d7,_0x392c2d=_0x2f4c9e);}if(_0x82ce68<=_0x48d1c5)return[i(_0x1dc35c),i(_0x269a00)];let _0x2fa150=_(_0x13f291['slice'](0x0,_0x392c2d+0x1),_0x1cf35e),_0x48283=_(_0x13f291[_0x1be61a(0xcc)](_0x392c2d),_0x1cf35e);return[..._0x2fa150[_0x1be61a(0xcc)](0x0,-0x1),..._0x48283];}function ne(_0x24cd4f,_0x20c035){let _0x3db41e=_0x24cd4f[_0x20c035],_0x41de2e=_0x24cd4f[_0x20c035+0x1],_0x2bad0b=_0x24cd4f[_0x20c035-0x1]??_0x3db41e;return{'x':_0x3db41e['x']+(_0x41de2e['x']-_0x2bad0b['x'])/0x6,'y':_0x3db41e['y']+(_0x41de2e['y']-_0x2bad0b['y'])/0x6};}function v(_0x1b8842,_0x235441){let _0x2da571=_0x1b8842[_0x235441],_0x4b4276=_0x1b8842[_0x235441-0x1],_0x32bda6=_0x1b8842[_0x235441+0x1]??_0x2da571;return{'x':_0x2da571['x']-(_0x32bda6['x']-_0x4b4276['x'])/0x6,'y':_0x2da571['y']-(_0x32bda6['y']-_0x4b4276['y'])/0x6};}function y(_0x487d2c,_0x405454){const _0x16f5e0=_0xf8ff5a;let _0x59c789=_0x487d2c['anchors'][_0x405454],_0x9b324=_0x487d2c[_0x16f5e0(0xe8)][_0x405454-0x1]??(_0x487d2c[_0x16f5e0(0xd5)]?_0x487d2c[_0x16f5e0(0xe8)][_0x487d2c['anchors'][_0x16f5e0(0xec)]-0x1]:null),_0x56547e=_0x487d2c[_0x16f5e0(0xe8)][_0x405454+0x1]??(_0x487d2c[_0x16f5e0(0xd5)]?_0x487d2c[_0x16f5e0(0xe8)][0x0]:null),_0x3fecb2=_0x9b324&&_0x56547e?l({'x':_0x56547e['x']-_0x9b324['x'],'y':_0x56547e['y']-_0x9b324['y']}):_0x56547e?l({'x':_0x56547e['x']-_0x59c789['x'],'y':_0x56547e['y']-_0x59c789['y']}):_0x9b324?l({'x':_0x59c789['x']-_0x9b324['x'],'y':_0x59c789['y']-_0x9b324['y']}):{'x':0x1,'y':0x0},_0x502e19=_0x9b324&&_0x56547e?Math[_0x16f5e0(0xd0)](0x32,c(_0x9b324,_0x56547e)/0x4):0x32;return{'in':{'x':_0x59c789['x']-_0x3fecb2['x']*_0x502e19,'y':_0x59c789['y']-_0x3fecb2['y']*_0x502e19},'out':{'x':_0x59c789['x']+_0x3fecb2['x']*_0x502e19,'y':_0x59c789['y']+_0x3fecb2['y']*_0x502e19}};}function b(_0x561170,_0x5f48cb){const _0xadf304=_0xf8ff5a;let _0x24a614=_0x561170[_0x5f48cb],_0x1409fd=_0x5f48cb==='in'?_0xadf304(0xe0):'in',_0x475040=_0x561170[_0x1409fd];if(_0x24a614){if(_0x561170[_0xadf304(0xca)]==='symmetric'){_0x561170[_0x1409fd]=u(_0x561170,_0x24a614);return;}_0x561170[_0xadf304(0xca)]==='smooth'&&(_0x561170[_0x1409fd]=u(_0x561170,_0x24a614,_0x475040?c(_0x561170,_0x475040):c(_0x561170,_0x24a614)));}}function x(_0xba2d42,_0x16ad68){const _0x472123=_0xf8ff5a;let _0x2903d2=o(_0xba2d42);return!_0x16ad68||_0x2903d2[_0x472123(0xd5)]||_0x2903d2[_0x472123(0xe8)]['length']===0x0||_0x2903d2['anchors'][_0x472123(0x100)]({'id':_0x472123(0xb1),'x':_0x16ad68['x'],'y':_0x16ad68['y'],'pointType':_0x472123(0xf4)}),_0x2903d2;}function re(_0x2b45af,_0x3dbbf={}){const _0x198f1a=_0xf8ff5a;let _0x299927=Math[_0x198f1a(0xd0)](0x0,_0x3dbbf[_0x198f1a(0xb0)]??Math[_0x198f1a(0xd0)](0x4,_0x2b45af[_0x198f1a(0xd7)]*0.35)),_0x285ba8=_0x3dbbf[_0x198f1a(0x91)]??(_0x12ab14=>_0x198f1a(0xaa)+_0x12ab14),_0xe929ce=_(_0x2b45af['points'],_0x299927),_0x41fc68=_0xe929ce['map']((_0x301844,_0x3353b4)=>({'id':_0x285ba8(_0x3353b4),'x':_0x301844['x'],'y':_0x301844['y'],'pointType':_0x198f1a(0xb4)}));for(let _0x14afcb=0x0;_0x14afcb<_0x41fc68['length']-0x1;_0x14afcb++)_0x41fc68[_0x14afcb][_0x198f1a(0xe0)]=ne(_0xe929ce,_0x14afcb),_0x41fc68[_0x14afcb+0x1]['in']=v(_0xe929ce,_0x14afcb+0x1);return{'kind':'pen','closed':!0x1,'anchors':_0x41fc68};}function ie(_0x3ca62f,_0x5cd551,_0x4eed18){const _0x4210ab=_0xf8ff5a;let _0x42ee53=null,_0x5ca0ea=[_0x4210ab(0xd3),'in','out'];return _0x3ca62f['anchors']['forEach']((_0x2ed030,_0x207810)=>{_0x5ca0ea['forEach'](_0x197a8b=>{if(!p(_0x3ca62f,_0x207810,_0x197a8b))return;let _0x38a3ec=ee(_0x2ed030,_0x197a8b);if(!_0x38a3ec)return;let _0x48476c=c(_0x5cd551,_0x38a3ec);_0x48476c>_0x4eed18||_0x42ee53&&_0x48476c>=_0x42ee53['distance']||(_0x42ee53={'handle':{'kind':_0x197a8b,'anchorId':_0x2ed030['id']},'point':i(_0x38a3ec),'distance':_0x48476c});});}),_0x42ee53;}function S(_0x5a6298,_0x37fd5d,_0x116522){const _0x478213=_0xf8ff5a;let _0x5c010f=null,_0x420c33=_0x5a6298[_0x478213(0xd5)]?_0x5a6298[_0x478213(0xe8)][_0x478213(0xec)]:Math[_0x478213(0xd0)](0x0,_0x5a6298['anchors']['length']-0x1);for(let _0x2e4529=0x0;_0x2e4529<_0x420c33;_0x2e4529++){let _0x1a679d=f(_0x5a6298,_0x2e4529);if(!_0x1a679d)continue;let _0x293ec8=m(_0x1a679d,0x0);for(let _0x47f376=0x1;_0x47f376<=0x20;_0x47f376++){let _0x4385b7=m(_0x1a679d,_0x47f376/0x20),_0x35655f=g(_0x37fd5d,_0x293ec8,_0x4385b7),_0x5dc708=(_0x47f376-0x1+_0x35655f[_0x478213(0xf5)])/0x20;(!_0x5c010f||_0x35655f[_0x478213(0xef)]<_0x5c010f['distance'])&&(_0x5c010f={'segmentIndex':_0x2e4529,'t':_0x5dc708,'point':_0x35655f[_0x478213(0x10c)],'distance':_0x35655f[_0x478213(0xef)]}),_0x293ec8=_0x4385b7;}}return _0x5c010f&&_0x5c010f[_0x478213(0xef)]<=_0x116522?_0x5c010f:null;}function C(_0x43bcd9,_0xf759a2,_0x18c300){const _0x4be11a=_0xf8ff5a;let _0x4f3dea=o(_0x43bcd9),_0xfadea3=d(_0x4f3dea,_0xf759a2[_0x4be11a(0xa9)]),_0x365766=f(_0x4f3dea,_0xf759a2[_0x4be11a(0xa9)]);if(!_0xfadea3||!_0x365766)return _0x4f3dea;let _0x3d5381=h(_0x365766,Math['max'](0x0,Math[_0x4be11a(0x10b)](0x1,_0xf759a2['t']))),_0x18cbd5={'id':_0x18c300(),'x':_0x3d5381[_0x4be11a(0x97)][0x3]['x'],'y':_0x3d5381[_0x4be11a(0x97)][0x3]['y'],'in':i(_0x3d5381[_0x4be11a(0x97)][0x2]),'out':i(_0x3d5381[_0x4be11a(0xda)][0x1]),'pointType':_0x4be11a(0xb4)};return _0x4f3dea['anchors'][_0xfadea3[_0x4be11a(0x9d)]]['out']=i(_0x3d5381['left'][0x1]),_0x4f3dea[_0x4be11a(0xe8)][_0xfadea3['endIndex']]['in']=i(_0x3d5381[_0x4be11a(0xda)][0x2]),_0x4f3dea[_0x4be11a(0xe8)][_0x4be11a(0x99)](_0xfadea3[_0x4be11a(0x9d)]+0x1,0x0,_0x18cbd5),_0x4f3dea;}function _0x39ca(_0x1f8741,_0x106a16){_0x1f8741=_0x1f8741-0x8e;const _0x1e552a=_0x1e55();let _0x39cade=_0x1e552a[_0x1f8741];return _0x39cade;}function w(_0x355425,_0x4eba5b){const _0x497e08=_0xf8ff5a;let _0x6f2575=o(_0x355425);return _0x6f2575[_0x497e08(0xe8)]=_0x6f2575[_0x497e08(0xe8)][_0x497e08(0xba)](_0x54d229=>_0x54d229['id']!==_0x4eba5b),_0x6f2575['closed']&&_0x6f2575[_0x497e08(0xe8)]['length']<0x3&&(_0x6f2575['closed']=!0x1),_0x6f2575;}function T(_0x3643ba,_0x41a74b,_0x17c9c6){const _0x329920=_0xf8ff5a;let _0x3dc3bf=o(_0x3643ba),_0xefce30=_0x3dc3bf[_0x329920(0xe8)][_0x329920(0x10a)](_0x52d70d=>_0x52d70d['id']===_0x41a74b),_0x35aecc=_0x3dc3bf[_0x329920(0xe8)][_0xefce30];if(!_0x35aecc)return _0x3dc3bf;if(_0x35aecc[_0x329920(0xca)]=_0x17c9c6,_0x17c9c6===_0x329920(0xf4))return delete _0x35aecc['in'],delete _0x35aecc[_0x329920(0xe0)],_0x3dc3bf;let _0x3ac1ad=y(_0x3dc3bf,_0xefce30);if(_0x35aecc['in']=_0x35aecc['in']?i(_0x35aecc['in']):_0x3ac1ad['in'],_0x35aecc[_0x329920(0xe0)]=_0x35aecc[_0x329920(0xe0)]?i(_0x35aecc[_0x329920(0xe0)]):_0x3ac1ad['out'],_0x17c9c6==='symmetric'){let _0x47e677=Math[_0x329920(0xd0)](c(_0x35aecc,_0x35aecc['in']),c(_0x35aecc,_0x35aecc[_0x329920(0xe0)]),0x32),_0xfaf59d=l({'x':_0x35aecc[_0x329920(0xe0)]['x']-_0x35aecc['x'],'y':_0x35aecc['out']['y']-_0x35aecc['y']});_0x35aecc[_0x329920(0xe0)]={'x':_0x35aecc['x']+_0xfaf59d['x']*_0x47e677,'y':_0x35aecc['y']+_0xfaf59d['y']*_0x47e677},_0x35aecc['in']={'x':_0x35aecc['x']-_0xfaf59d['x']*_0x47e677,'y':_0x35aecc['y']-_0xfaf59d['y']*_0x47e677};}else _0x17c9c6===_0x329920(0xdd)&&b(_0x35aecc,_0x329920(0xe0));return _0x3dc3bf;}function E(_0x13bde2,_0x3ac505){const _0x4a676b=_0xf8ff5a;let _0x80e37=_0x13bde2['anchors'][_0x4a676b(0x96)](_0x478c14=>_0x478c14['id']===_0x3ac505),_0x35f8dd=(_0x80e37==null?void 0x0:_0x80e37['pointType'])??_0x4a676b(0xf4);return T(_0x13bde2,_0x3ac505,_0x35f8dd===_0x4a676b(0xf4)?_0x4a676b(0xdd):_0x35f8dd===_0x4a676b(0xdd)?_0x4a676b(0x95):_0x35f8dd===_0x4a676b(0x95)?'free':_0x4a676b(0xf4));}function ae(_0xc636bb,_0x594dba,_0x191dd2){const _0x17ca01=_0xf8ff5a;let _0x336cd3=o(_0xc636bb),_0x27fd36=_0x336cd3[_0x17ca01(0xe8)][_0x17ca01(0x96)](_0x113d20=>_0x113d20['id']===_0x594dba[_0x17ca01(0xbf)]);if(!_0x27fd36)return _0x336cd3;if(_0x594dba[_0x17ca01(0xbc)]==='anchor'){let _0x5a8874={'x':_0x191dd2['x']-_0x27fd36['x'],'y':_0x191dd2['y']-_0x27fd36['y']};return _0x27fd36['x']=_0x191dd2['x'],_0x27fd36['y']=_0x191dd2['y'],_0x27fd36['in']&&={'x':_0x27fd36['in']['x']+_0x5a8874['x'],'y':_0x27fd36['in']['y']+_0x5a8874['y']},_0x27fd36[_0x17ca01(0xe0)]&&={'x':_0x27fd36[_0x17ca01(0xe0)]['x']+_0x5a8874['x'],'y':_0x27fd36[_0x17ca01(0xe0)]['y']+_0x5a8874['y']},_0x336cd3;}return _0x27fd36[_0x594dba[_0x17ca01(0xbc)]]=i(_0x191dd2),_0x27fd36[_0x17ca01(0xca)]===_0x17ca01(0xf4)&&(_0x27fd36[_0x17ca01(0xca)]=_0x17ca01(0xb4)),b(_0x27fd36,_0x594dba[_0x17ca01(0xbc)]),_0x336cd3;}const D=1e-9;function O(_0x4ce209){let _0x4614b9=Math['round'](_0x4ce209*0x2710)/0x2710;return Object['is'](_0x4614b9,-0x0)?'0':String(_0x4614b9);}function k(_0x4660dd){return O(_0x4660dd['x'])+'\x20'+O(_0x4660dd['y']);}function A(_0x142ef0,_0x27f836){return{'x':_0x142ef0['x']-_0x27f836['x'],'y':_0x142ef0['y']-_0x27f836['y']};}function j(_0xb7fc87,_0x1b76b2,_0x562f63,_0x1aeaba,_0x4f3845){let _0xc65437=0x1-_0x4f3845;return{'x':_0xc65437*_0xc65437*_0xc65437*_0xb7fc87['x']+0x3*_0xc65437*_0xc65437*_0x4f3845*_0x1b76b2['x']+0x3*_0xc65437*_0x4f3845*_0x4f3845*_0x562f63['x']+_0x4f3845*_0x4f3845*_0x4f3845*_0x1aeaba['x'],'y':_0xc65437*_0xc65437*_0xc65437*_0xb7fc87['y']+0x3*_0xc65437*_0xc65437*_0x4f3845*_0x1b76b2['y']+0x3*_0xc65437*_0x4f3845*_0x4f3845*_0x562f63['y']+_0x4f3845*_0x4f3845*_0x4f3845*_0x1aeaba['y']};}function M(_0x5e4cf6,_0x2334c0,_0x534f9e,_0x556ddc){const _0x495447=_0xf8ff5a;let _0x4358d9=-_0x5e4cf6+0x3*_0x2334c0-0x3*_0x534f9e+_0x556ddc,_0x574b9a=0x3*_0x5e4cf6-0x6*_0x2334c0+0x3*_0x534f9e,_0x5235c3=-0x3*_0x5e4cf6+0x3*_0x2334c0,_0x2750a9=[];if(Math['abs'](_0x4358d9)<D){if(Math[_0x495447(0x105)](_0x574b9a)<D)return _0x2750a9;let _0x4861bd=-_0x5235c3/(0x2*_0x574b9a);return _0x4861bd>0x0&&_0x4861bd<0x1&&_0x2750a9[_0x495447(0x100)](_0x4861bd),_0x2750a9;}let _0x5c6d65=_0x574b9a*_0x574b9a-0x3*_0x4358d9*_0x5235c3;if(_0x5c6d65<0x0)return _0x2750a9;let _0x4b6600=Math[_0x495447(0xf2)](Math['max'](0x0,_0x5c6d65)),_0x15304c=(-_0x574b9a+_0x4b6600)/(0x3*_0x4358d9),_0x1393fb=(-_0x574b9a-_0x4b6600)/(0x3*_0x4358d9);return _0x15304c>0x0&&_0x15304c<0x1&&_0x2750a9[_0x495447(0x100)](_0x15304c),_0x1393fb>0x0&&_0x1393fb<0x1&&Math['abs'](_0x1393fb-_0x15304c)>D&&_0x2750a9[_0x495447(0x100)](_0x1393fb),_0x2750a9;}function N(_0x36d12e,_0x21cbbf,_0x36822e,_0x304633,_0x4d9efa){const _0x1a0a62=_0xf8ff5a;_0x36d12e[_0x1a0a62(0x100)](_0x21cbbf,_0x4d9efa),new Set([...M(_0x21cbbf['x'],_0x36822e['x'],_0x304633['x'],_0x4d9efa['x']),...M(_0x21cbbf['y'],_0x36822e['y'],_0x304633['y'],_0x4d9efa['y'])])[_0x1a0a62(0xbb)](_0x203352=>{_0x36d12e['push'](j(_0x21cbbf,_0x36822e,_0x304633,_0x4d9efa,_0x203352));});}function P(_0x1be9b2){const _0x4c69f7=_0xf8ff5a;let _0xdb941b=_0x1be9b2['anchors'];if(_0xdb941b[_0x4c69f7(0xec)]<=0x1)return _0xdb941b;let _0x219fbe=[];for(let _0x109e58=0x1;_0x109e58<_0xdb941b[_0x4c69f7(0xec)];_0x109e58++){let _0x35c5ed=_0xdb941b[_0x109e58-0x1],_0x19e80f=_0xdb941b[_0x109e58];N(_0x219fbe,_0x35c5ed,_0x35c5ed[_0x4c69f7(0xe0)]??_0x35c5ed,_0x19e80f['in']??_0x19e80f,_0x19e80f);}if(_0x1be9b2[_0x4c69f7(0xd5)]&&_0xdb941b[_0x4c69f7(0xec)]>0x1){let _0x40fc09=_0xdb941b[_0xdb941b['length']-0x1],_0x401522=_0xdb941b[0x0];N(_0x219fbe,_0x40fc09,_0x40fc09[_0x4c69f7(0xe0)]??_0x40fc09,_0x401522['in']??_0x401522,_0x401522);}return _0x219fbe;}function F(_0x20206f){const _0xf67912=_0xf8ff5a;let _0x209459=_0x20206f[_0xf67912(0xc4)];if(_0x209459[_0xf67912(0xec)]<=0x1)return _0x209459;let _0x2ae012=[];for(let _0x4b88da=0x0;_0x4b88da<_0x209459[_0xf67912(0xec)]-0x1;_0x4b88da++){let _0x17bccc=_0x209459[_0x4b88da],_0xd81e85=_0x209459[_0x4b88da+0x1],_0x367163=_0x209459[_0x4b88da-0x1]??_0x17bccc,_0x5ef881=_0x209459[_0x4b88da+0x2]??_0xd81e85;N(_0x2ae012,_0x17bccc,{'x':_0x17bccc['x']+(_0xd81e85['x']-_0x367163['x'])/0x6,'y':_0x17bccc['y']+(_0xd81e85['y']-_0x367163['y'])/0x6},{'x':_0xd81e85['x']-(_0x5ef881['x']-_0x17bccc['x'])/0x6,'y':_0xd81e85['y']-(_0x5ef881['y']-_0x17bccc['y'])/0x6},_0xd81e85);}return _0x2ae012;}function I(_0x4a424b){const _0x22447a=_0xf8ff5a;return _0x4a424b[_0x22447a(0xbc)]===_0x22447a(0xe1)?P(_0x4a424b):F(_0x4a424b);}function L(_0x11a47f){let _0x4b208c=Math['round'](_0x11a47f*0x2710)/0x2710;return Object['is'](_0x4b208c,-0x0)?0x0:_0x4b208c;}function R(_0x2d3e73){const _0xc9e259=_0xf8ff5a;let _0x19a5b0=I(_0x2d3e73);if(_0x19a5b0[_0xc9e259(0xec)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x357d65=Math['min'](..._0x19a5b0[_0xc9e259(0x102)](_0x13c474=>_0x13c474['x'])),_0x27dcaf=Math['min'](..._0x19a5b0[_0xc9e259(0x102)](_0x364cfc=>_0x364cfc['y'])),_0x18c22e=Math[_0xc9e259(0xd0)](..._0x19a5b0[_0xc9e259(0x102)](_0x5b4757=>_0x5b4757['x'])),_0x50312c=Math[_0xc9e259(0xd0)](..._0x19a5b0[_0xc9e259(0x102)](_0x2473a9=>_0x2473a9['y']));return{'left':L(_0x357d65),'top':L(_0x27dcaf),'width':L(Math['max'](0x1,_0x18c22e-_0x357d65)),'height':L(Math['max'](0x1,_0x50312c-_0x27dcaf))};}function z(_0x10fc91,_0x3f4775){const _0x4d9ef2=_0xf8ff5a;let _0x90acf0=_0x10fc91['anchors'];if(_0x90acf0[_0x4d9ef2(0xec)]===0x0)return'';let _0x1e8233=['M\x20'+k(A(_0x90acf0[0x0],_0x3f4775))];for(let _0x4e2f32=0x1;_0x4e2f32<_0x90acf0[_0x4d9ef2(0xec)];_0x4e2f32++){let _0x5c4c36=_0x90acf0[_0x4e2f32-0x1],_0x535995=_0x90acf0[_0x4e2f32],_0x421a60=_0x5c4c36[_0x4d9ef2(0xe0)]??_0x5c4c36,_0x5cb654=_0x535995['in']??_0x535995;_0x1e8233['push']('C\x20'+k(A(_0x421a60,_0x3f4775))+'\x20'+k(A(_0x5cb654,_0x3f4775))+'\x20'+k(A(_0x535995,_0x3f4775)));}if(_0x10fc91[_0x4d9ef2(0xd5)]&&_0x90acf0['length']>0x1){let _0x30c3a5=_0x90acf0[_0x90acf0[_0x4d9ef2(0xec)]-0x1],_0x364c5a=_0x90acf0[0x0],_0x26b4cd=_0x30c3a5[_0x4d9ef2(0xe0)]??_0x30c3a5,_0xfee7e=_0x364c5a['in']??_0x364c5a;_0x1e8233[_0x4d9ef2(0x100)]('C\x20'+k(A(_0x26b4cd,_0x3f4775))+'\x20'+k(A(_0xfee7e,_0x3f4775))+'\x20'+k(A(_0x364c5a,_0x3f4775))),_0x1e8233[_0x4d9ef2(0x100)]('Z');}return _0x1e8233[_0x4d9ef2(0xad)]('\x20');}function B(_0x319f64,_0xa333ec){const _0x5115a3=_0xf8ff5a;let _0x5a5c20=_0x319f64['points'][_0x5115a3(0x102)](_0x2a31d9=>A(_0x2a31d9,_0xa333ec));if(_0x5a5c20[_0x5115a3(0xec)]===0x0)return'';if(_0x5a5c20[_0x5115a3(0xec)]===0x1)return'M\x20'+k(_0x5a5c20[0x0]);let _0x29ee34=['M\x20'+k(_0x5a5c20[0x0])];for(let _0x44ba90=0x0;_0x44ba90<_0x5a5c20[_0x5115a3(0xec)]-0x1;_0x44ba90++){let _0x30cb46=_0x5a5c20[_0x44ba90],_0x197ac9=_0x5a5c20[_0x44ba90+0x1],_0x23154b=_0x5a5c20[_0x44ba90-0x1]??_0x30cb46,_0x54650f=_0x5a5c20[_0x44ba90+0x2]??_0x197ac9,_0x119aae={'x':_0x30cb46['x']+(_0x197ac9['x']-_0x23154b['x'])/0x6,'y':_0x30cb46['y']+(_0x197ac9['y']-_0x23154b['y'])/0x6},_0x227aeb={'x':_0x197ac9['x']-(_0x54650f['x']-_0x30cb46['x'])/0x6,'y':_0x197ac9['y']-(_0x54650f['y']-_0x30cb46['y'])/0x6};_0x29ee34['push']('C\x20'+k(_0x119aae)+'\x20'+k(_0x227aeb)+'\x20'+k(_0x197ac9));}return _0x29ee34[_0x5115a3(0xad)]('\x20');}function V(_0x2d37e5,_0x7b2d70){const _0x35dbdd=_0xf8ff5a;return _0x2d37e5['kind']===_0x35dbdd(0xe1)?z(_0x2d37e5,_0x7b2d70):B(_0x2d37e5,_0x7b2d70);}function H(_0x5a3fd2,_0x53ae46){const _0xd70f2c=_0xf8ff5a;return _0x53ae46!=null&&_0x53ae46[_0xd70f2c(0xd4)]?_0x53ae46[_0xd70f2c(0xd4)]:_0x5a3fd2[_0xd70f2c(0xbc)]===_0xd70f2c(0xe1)?_0xd70f2c(0xa2):_0x5a3fd2[_0xd70f2c(0xd4)];}function U(_0x52b7c0,_0x934c8d){const _0x4d1aa3=_0xf8ff5a;return(_0x934c8d==null?void 0x0:_0x934c8d[_0x4d1aa3(0xd7)])===void 0x0?_0x52b7c0['kind']===_0x4d1aa3(0xe1)?0x2:_0x52b7c0['width']:_0x934c8d[_0x4d1aa3(0xd7)];}function W(_0x5de3cc,_0x3dfd50){const _0x21ba1d=_0xf8ff5a;return(_0x3dfd50==null?void 0x0:_0x3dfd50[_0x21ba1d(0xb3)])===void 0x0?_0x5de3cc[_0x21ba1d(0xbc)]===_0x21ba1d(0xe1)?void 0x0:_0x5de3cc['opacity']:_0x3dfd50[_0x21ba1d(0xb3)];}function oe(_0x3e0f73,_0x40aab9){const _0x494eba=_0xf8ff5a;let _0x237c41=R(_0x3e0f73),_0x186d06=V(_0x3e0f73,{'x':_0x237c41[_0x494eba(0x97)],'y':_0x237c41['top']}),_0x46de4a=_0x3e0f73[_0x494eba(0xbc)]==='pen'&&_0x3e0f73[_0x494eba(0xd5)],_0x497d33=_0x40aab9==null?void 0x0:_0x40aab9['fillColor'];return{'shapeType':e[_0x494eba(0x8f)][_0x494eba(0x104)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x237c41['width'],'h':_0x237c41[_0x494eba(0xd2)],'fill':_0x46de4a?_0x494eba(0xac):_0x494eba(0x108),'stroke':!0x0,'data':_0x186d06,'dataArray':K(_0x3e0f73,{'x':_0x237c41[_0x494eba(0x97)],'y':_0x237c41[_0x494eba(0xfa)]})}]},'fill':_0x46de4a&&_0x497d33?{'color':_0x497d33,'fillType':e[_0x494eba(0x9a)][_0x494eba(0xd6)]}:{'fillType':e[_0x494eba(0x9a)][_0x494eba(0xf3)]},'stroke':{'color':H(_0x3e0f73,_0x40aab9),'width':U(_0x3e0f73,_0x40aab9),'opacity':W(_0x3e0f73,_0x40aab9),'lineStrokeType':e[_0x494eba(0xc8)][_0x494eba(0xd9)],'capType':e[_0x494eba(0x9b)][_0x494eba(0xa3)],'lineJoinType':e[_0x494eba(0xee)][_0x494eba(0xa3)]}};}function G(_0x3afe87,_0xc51ea2){return{'x':_0x3afe87['x']-_0xc51ea2['x'],'y':_0x3afe87['y']-_0xc51ea2['y']};}function K(_0x4a2b4c,_0x303970){const _0x3b25f8=_0xf8ff5a;if(_0x4a2b4c[_0x3b25f8(0xbc)]===_0x3b25f8(0xe1)){let _0x191038=_0x4a2b4c[_0x3b25f8(0xe8)];if(_0x191038[_0x3b25f8(0xec)]===0x0)return[];let _0x3130d9=G(_0x191038[0x0],_0x303970),_0x4a74f6=[{'command':'M','points':[_0x3130d9['x'],_0x3130d9['y']]}];for(let _0x457385=0x1;_0x457385<_0x191038[_0x3b25f8(0xec)];_0x457385++){let _0x438a34=_0x191038[_0x457385-0x1],_0x5699b3=_0x191038[_0x457385],_0x5e3e58=G(_0x438a34['out']??_0x438a34,_0x303970),_0x9134c9=G(_0x5699b3['in']??_0x5699b3,_0x303970),_0x3af378=G(_0x5699b3,_0x303970);_0x4a74f6[_0x3b25f8(0x100)]({'command':'C','points':[_0x5e3e58['x'],_0x5e3e58['y'],_0x9134c9['x'],_0x9134c9['y'],_0x3af378['x'],_0x3af378['y']]});}if(_0x4a2b4c['closed']&&_0x191038['length']>0x1){let _0x11a620=_0x191038[_0x191038['length']-0x1],_0x1ecb5a=_0x191038[0x0],_0x286821=G(_0x11a620[_0x3b25f8(0xe0)]??_0x11a620,_0x303970),_0x3eaad2=G(_0x1ecb5a['in']??_0x1ecb5a,_0x303970),_0x353341=G(_0x1ecb5a,_0x303970);_0x4a74f6[_0x3b25f8(0x100)]({'command':'C','points':[_0x286821['x'],_0x286821['y'],_0x3eaad2['x'],_0x3eaad2['y'],_0x353341['x'],_0x353341['y']]}),_0x4a74f6['push']({'command':'z','points':[]});}return _0x4a74f6;}let _0x3d8272=_0x4a2b4c[_0x3b25f8(0xc4)][_0x3b25f8(0x102)](_0x39d74e=>G(_0x39d74e,_0x303970));if(_0x3d8272[_0x3b25f8(0xec)]===0x0)return[];let _0x3e2553=[{'command':'M','points':[_0x3d8272[0x0]['x'],_0x3d8272[0x0]['y']]}];for(let _0x267028=0x0;_0x267028<_0x3d8272[_0x3b25f8(0xec)]-0x1;_0x267028++){let _0x109ee1=_0x3d8272[_0x267028],_0x5ce089=_0x3d8272[_0x267028+0x1],_0xc1749b=_0x3d8272[_0x267028-0x1]??_0x109ee1,_0x580020=_0x3d8272[_0x267028+0x2]??_0x5ce089,_0x4f61a9={'x':_0x109ee1['x']+(_0x5ce089['x']-_0xc1749b['x'])/0x6,'y':_0x109ee1['y']+(_0x5ce089['y']-_0xc1749b['y'])/0x6},_0x37f967={'x':_0x5ce089['x']-(_0x580020['x']-_0x109ee1['x'])/0x6,'y':_0x5ce089['y']-(_0x580020['y']-_0x109ee1['y'])/0x6};_0x3e2553['push']({'command':'C','points':[_0x4f61a9['x'],_0x4f61a9['y'],_0x37f967['x'],_0x37f967['y'],_0x5ce089['x'],_0x5ce089['y']]});}return _0x3e2553;}function q(_0x3384b6){const _0x4a6bbc=_0xf8ff5a;let {model:_0x3cf28c,sourceModel:_0x1e3f04=_0x3cf28c,style:_0x548fa1}=_0x3384b6,_0x5848b3=_0x3384b6[_0x4a6bbc(0x94)]??_0x3cf28c[_0x4a6bbc(0xbc)],_0x1f4ab7=R(_0x3cf28c),_0x5b4f00=_0x3cf28c[_0x4a6bbc(0xbc)]===_0x4a6bbc(0xe1)&&_0x5848b3!==_0x4a6bbc(0xe1)?_0x3cf28c:void 0x0;return{'transform':{..._0x1f4ab7,'rotation':0x0},'shapeData':oe(_0x3cf28c,_0x548fa1),'ink':{'version':0x1,'tool':_0x5848b3,'sourceModel':_0x1e3f04,..._0x5b4f00?{'editModel':_0x5b4f00}:{},'normalizedBounds':_0x1f4ab7}};}var se=_0xf8ff5a(0xdf),ce='1.0.0-beta.0';function J(_0x3d8e01){'@babel/helpers - typeof';const _0x462eca=_0xf8ff5a;return J=typeof Symbol==_0x462eca(0xb7)&&typeof Symbol[_0x462eca(0xde)]==_0x462eca(0x8e)?function(_0x553cba){return typeof _0x553cba;}:function(_0x545a47){const _0x56a259=_0x462eca;return _0x545a47&&typeof Symbol==_0x56a259(0xb7)&&_0x545a47[_0x56a259(0xb2)]===Symbol&&_0x545a47!==Symbol[_0x56a259(0xd1)]?'symbol':typeof _0x545a47;},J(_0x3d8e01);}function le(_0xd30962,_0x1ba9fd){const _0x5ee51c=_0xf8ff5a;if(J(_0xd30962)!='object'||!_0xd30962)return _0xd30962;var _0x5e944c=_0xd30962[Symbol[_0x5ee51c(0x109)]];if(_0x5e944c!==void 0x0){var _0x3cbb58=_0x5e944c[_0x5ee51c(0xe2)](_0xd30962,_0x1ba9fd||_0x5ee51c(0x106));if(J(_0x3cbb58)!=_0x5ee51c(0xc1))return _0x3cbb58;throw TypeError(_0x5ee51c(0x10d));}return(_0x1ba9fd===_0x5ee51c(0xce)?String:Number)(_0xd30962);}function ue(_0x2dadc2){var _0x349309=le(_0x2dadc2,'string');return J(_0x349309)=='symbol'?_0x349309:_0x349309+'';}function Y(_0x3c2c64,_0x245ac9,_0x5b5a26){const _0x105b11=_0xf8ff5a;return(_0x245ac9=ue(_0x245ac9))in _0x3c2c64?Object[_0x105b11(0xff)](_0x3c2c64,_0x245ac9,{'value':_0x5b5a26,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3c2c64[_0x245ac9]=_0x5b5a26,_0x3c2c64;}const X=(0x0,n[_0xf8ff5a(0xf0)])(_0xf8ff5a(0xfd));var de=class{constructor(){Y(this,'_adapters',[]);}[_0xf8ff5a(0xe5)](_0x596682){const _0x2c0390=_0xf8ff5a;return this[_0x2c0390(0xae)][_0x2c0390(0x100)](_0x596682),(0x0,n[_0x2c0390(0xd8)])(()=>{const _0x1c2d28=_0x2c0390;let _0x58f9c2=this['_adapters'][_0x1c2d28(0xc5)](_0x596682);_0x58f9c2>=0x0&&this[_0x1c2d28(0xae)][_0x1c2d28(0x99)](_0x58f9c2,0x1);});}[_0xf8ff5a(0xeb)](_0x2fec0b){const _0x308f06=_0xf8ff5a;for(let _0x3eef79 of this[_0x308f06(0xae)])if(_0x3eef79[_0x308f06(0xeb)](_0x2fec0b))return!0x0;return!0x1;}async[_0xf8ff5a(0xc2)](_0x376b23){const _0xb1c3c3=_0xf8ff5a;for(let _0x42c8ca of this[_0xb1c3c3(0xae)])if(_0x42c8ca[_0xb1c3c3(0xc2)]&&await _0x42c8ca['createCustomShape'](_0x376b23))return!0x0;return!0x1;}};function _0x1e55(){const _0x52471a=['_commandService','max','prototype','height','anchor','color','closed','SolidFill','width','toDisposable','SolidLine','right','merge','ink.operation.start','smooth','iterator','@univerjs-pro/ink','out','pen','call','insertInkPenAnchorAt','UNIVER_UNKNOWN','registerAdapter','740080XHShBT','3330735GJPOLo','anchors','version','_injector','beginInkMode','length','hypot','ShapeLineJoinEnum','distance','createIdentifier','36qJZpVY','sqrt','NoFill','corner','ratio','moveInkPenAnchorPoint','onStarting','363224AFsvXR','_configService','top','toStringTag','cycleInkPenAnchorPointType','ink.host-adapter.service','add','defineProperty','push','packageName','map','7WAhKFE','Rect','abs','default','_config','none','toPrimitive','findIndex','min','point','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','symbol','ShapeTypeEnum','IConfigService','createId','pluginName','IInkHostAdapterService','tool','symmetric','find','left','setConfig','splice','ShapeFillEnum','ShapeLineCapEnum','start','startIndex','disposeWithMe','UniverInkPlugin','UniverInstanceType','get','#f54a45','Round','Module','findClosestInkPenHandle','Inject','10504120lhuFrh','setInkPenAnchorPointType','segmentIndex','ink-centerline-','5304564AFpVJJ','norm','join','_adapters','ink.config','tolerance','__ink-preview-anchor__','constructor','opacity','free','Plugin','registerCommand','function','970ZXOLuB','227457ulsHMv','filter','forEach','kind','CommandType','isInkPenHandleVisible','anchorId','DependentOn','object','createCustomShape','UniverLicensePlugin','points','indexOf','end','ICommandService','ShapeLineTypeEnum','1418GkqSTD','pointType','type','slice','convertBrushModelToPenModel','string'];_0x1e55=function(){return _0x52471a;};return _0x1e55();}const fe={'id':_0xf8ff5a(0xdc),'type':n[_0xf8ff5a(0xbd)]['OPERATION'],'handler':(_0x14c530,_0x458f56)=>_0x458f56?_0x14c530[_0xf8ff5a(0xa1)](X)[_0xf8ff5a(0xeb)](_0x458f56):!0x1},Z={};function Q(_0x43fd2d,_0x383a08){return function(_0x51011b,_0x50d419){_0x383a08(_0x51011b,_0x50d419,_0x43fd2d);};}function pe(_0x48ddb7,_0x45367d,_0x34c3c9,_0x2d75ff){const _0x2a0896=_0xf8ff5a;var _0x3ace53=arguments[_0x2a0896(0xec)],_0xfaec24=_0x3ace53<0x3?_0x45367d:_0x2d75ff===null?_0x2d75ff=Object['getOwnPropertyDescriptor'](_0x45367d,_0x34c3c9):_0x2d75ff,_0x65aa5e;if(typeof Reflect==_0x2a0896(0xc1)&&typeof Reflect['decorate']==_0x2a0896(0xb7))_0xfaec24=Reflect['decorate'](_0x48ddb7,_0x45367d,_0x34c3c9,_0x2d75ff);else{for(var _0x2503db=_0x48ddb7[_0x2a0896(0xec)]-0x1;_0x2503db>=0x0;_0x2503db--)(_0x65aa5e=_0x48ddb7[_0x2503db])&&(_0xfaec24=(_0x3ace53<0x3?_0x65aa5e(_0xfaec24):_0x3ace53>0x3?_0x65aa5e(_0x45367d,_0x34c3c9,_0xfaec24):_0x65aa5e(_0x45367d,_0x34c3c9))||_0xfaec24);}return _0x3ace53>0x3&&_0xfaec24&&Object[_0x2a0896(0xff)](_0x45367d,_0x34c3c9,_0xfaec24),_0xfaec24;}let $=class extends n[_0xf8ff5a(0xb5)]{constructor(_0x4fd2bd=Z,_0x3eb585,_0x26de3b,_0x5cd047){const _0xf127e2=_0xf8ff5a;super(),this[_0xf127e2(0x107)]=_0x4fd2bd,this[_0xf127e2(0xea)]=_0x3eb585,this['_commandService']=_0x26de3b,this[_0xf127e2(0xf9)]=_0x5cd047;let {..._0x16deb5}=(0x0,n[_0xf127e2(0xdb)])({},Z,this[_0xf127e2(0x107)]);this[_0xf127e2(0xf9)][_0xf127e2(0x98)](_0xf127e2(0xaf),_0x16deb5);}[_0xf8ff5a(0xf7)](){const _0x10e37b=_0xf8ff5a;[[X,{'useClass':de}]][_0x10e37b(0xbb)](_0x2ee1aa=>this['_injector'][_0x10e37b(0xfe)](_0x2ee1aa)),this[_0x10e37b(0x9e)](this[_0x10e37b(0xcf)][_0x10e37b(0xb6)](fe));}};Y($,_0xf8ff5a(0x92),'UNIVER_INK_PLUGIN'),Y($,_0xf8ff5a(0x101),se),Y($,_0xf8ff5a(0xe9),ce),Y($,_0xf8ff5a(0xcb),n[_0xf8ff5a(0xa0)][_0xf8ff5a(0xe4)]),$=pe([(0x0,n[_0xf8ff5a(0xc0)])(t[_0xf8ff5a(0xc3)]),Q(0x1,(0x0,n[_0xf8ff5a(0xa6)])(n['Injector'])),Q(0x2,n[_0xf8ff5a(0xc7)]),Q(0x3,n[_0xf8ff5a(0x90)])],$),exports[_0xf8ff5a(0x93)]=X,Object[_0xf8ff5a(0xff)](exports,_0xf8ff5a(0x9f),{'enumerable':!0x0,'get':function(){return $;}}),exports['buildInkCustomShapePayload']=q,exports[_0xf8ff5a(0xcd)]=re,exports[_0xf8ff5a(0xfc)]=E,exports['deleteInkPenAnchor']=w,exports[_0xf8ff5a(0xa5)]=ie,exports['findClosestInkPenSegment']=S,exports['getInkModelBounds']=R,exports['getInkPenPreviewModel']=x,exports[_0xf8ff5a(0xe3)]=C,exports[_0xf8ff5a(0xbe)]=p,exports[_0xf8ff5a(0xf6)]=ae,exports[_0xf8ff5a(0xa8)]=T;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x10deff=_0x9ffd;(function(_0x240102,_0x1d0053){const _0x39082d=_0x9ffd,_0x434859=_0x240102();while(!![]){try{const _0x2bc20e=parseInt(_0x39082d(0xe1))/0x1+-parseInt(_0x39082d(0xfe))/0x2*(-parseInt(_0x39082d(0xdf))/0x3)+-parseInt(_0x39082d(0xe4))/0x4+parseInt(_0x39082d(0x100))/0x5+-parseInt(_0x39082d(0xe8))/0x6*(-parseInt(_0x39082d(0x107))/0x7)+-parseInt(_0x39082d(0xf9))/0x8*(parseInt(_0x39082d(0xea))/0x9)+-parseInt(_0x39082d(0xe6))/0xa;if(_0x2bc20e===_0x1d0053)break;else _0x434859['push'](_0x434859['shift']());}catch(_0x57ed82){_0x434859['push'](_0x434859['shift']());}}}(_0x5deb,0x67fa3));import{BoardElementType as _0x2fca1a}from'@univerjs-pro/boards';import{FBoard as _0x5d619f}from'@univerjs-pro/boards/facade';import{buildInkCustomShapePayload as _0x4d2eb1}from'@univerjs-pro/ink';import{Tools as _0x16901a,generateRandomId as _0x1905fc}from'@univerjs/core';import{FEnum as _0x395991}from'@univerjs/core/facade';var o=class extends _0x5d619f{['insertInk'](_0xc08a26){const _0x408c6e=_0x9ffd;let _0x9336ee=s(_0xc08a26);return _0x9336ee&&this['_addElement'](_0x9336ee,{'insertIndex':_0xc08a26[_0x408c6e(0x106)]})?_0x9336ee:null;}[_0x10deff(0x10a)](){const _0x38884d=_0x10deff;return this[_0x38884d(0xf3)]({'elementType':_0x2fca1a['Shape'],'includeHidden':!0x0,'includeLocked':!0x0})[_0x38884d(0xef)](p);}};function s(_0x6f98d3,_0x4354c8){const _0x4d9e72=_0x10deff;if(!l(_0x6f98d3[_0x4d9e72(0xfb)])||_0x6f98d3[_0x4d9e72(0x108)]!==void 0x0&&!l(_0x6f98d3[_0x4d9e72(0x108)])||!u(_0x6f98d3[_0x4d9e72(0xfd)]))return null;let _0x3eece5=_0x6f98d3[_0x4d9e72(0xe9)]??(_0x4354c8==null?void 0x0:_0x4354c8[_0x4d9e72(0xe9)]),_0x38687c=_0x16901a['deepClone'](_0x6f98d3[_0x4d9e72(0xfb)]),_0x14d957=_0x4d2eb1({'model':_0x38687c,'style':_0x6f98d3['style'],'tool':_0x6f98d3[_0x4d9e72(0xf5)],'sourceModel':_0x6f98d3[_0x4d9e72(0x108)]?_0x16901a[_0x4d9e72(0xf6)](_0x6f98d3[_0x4d9e72(0x108)]):_0x38687c}),_0x924a12=d(_0x4354c8==null?void 0x0:_0x4354c8['custom']);return{'id':(_0x4354c8==null?void 0x0:_0x4354c8['id'])??_0x6f98d3['id']??_0x1905fc(0x6),'type':_0x2fca1a['Shape'],'transform':_0x14d957[_0x4d9e72(0xde)],'shapeData':_0x14d957[_0x4d9e72(0x105)],'parentId':_0x3eece5??void 0x0,'laneId':_0x6f98d3[_0x4d9e72(0x101)]===void 0x0?_0x4354c8==null?void 0x0:_0x4354c8[_0x4d9e72(0x101)]:_0x6f98d3[_0x4d9e72(0x101)],'custom':{..._0x924a12,'ink':_0x14d957[_0x4d9e72(0x109)]}};}function _0x5deb(){const _0x57ef65=['2480uliDal','Shape','model','free','style','4DhwEuY','object','3737060PAEQIG','laneId','points','highlighter','trim','shapeData','insertIndex','28tEqqtz','sourceModel','ink','getInks','extend','type','smooth','transform','366963GRVHUX','anchor','190082riUmnP','add','symmetric','1881912WHPbCu','isArray','4152250CvMWQx','length','515502ljtLGD','parentId','6219XGAzHv','out','isFinite','BoardInkTool','opacity','filter','every','custom','pen','findElements','width','tool','deepClone','version','has'];_0x5deb=function(){return _0x57ef65;};return _0x5deb();}function c(_0x47988a){const _0x2ba446=_0x10deff;return Number[_0x2ba446(0xec)](_0x47988a['x'])&&Number[_0x2ba446(0xec)](_0x47988a['y']);}function l(_0xd5a41c){const _0x2d992e=_0x10deff;if(_0xd5a41c['kind']===_0x2d992e(0xf2)){let _0x15cf4a=new Set();return _0xd5a41c['anchors'][_0x2d992e(0xe7)]>=(_0xd5a41c['closed']?0x3:0x2)&&_0xd5a41c['anchors'][_0x2d992e(0xf0)](_0x3e8600=>{const _0x217b20=_0x2d992e;let _0x4cfa72=_0x3e8600['id'][_0x217b20(0x104)]()[_0x217b20(0xe7)]>0x0&&!_0x15cf4a[_0x217b20(0xf8)](_0x3e8600['id'])&&c(_0x3e8600)&&(!_0x3e8600['in']||c(_0x3e8600['in']))&&(!_0x3e8600['out']||c(_0x3e8600[_0x217b20(0xeb)]));return _0x15cf4a[_0x217b20(0xe2)](_0x3e8600['id']),_0x4cfa72;});}return _0xd5a41c['points']['length']>=0x2&&_0xd5a41c[_0x2d992e(0x102)][_0x2d992e(0xf0)](_0x14800d=>c(_0x14800d)&&Number[_0x2d992e(0xec)](_0x14800d['t'])&&(_0x14800d['pressure']===void 0x0||Number[_0x2d992e(0xec)](_0x14800d['pressure'])))&&Number[_0x2d992e(0xec)](_0xd5a41c['width'])&&_0xd5a41c[_0x2d992e(0xf4)]>0x0&&Number[_0x2d992e(0xec)](_0xd5a41c[_0x2d992e(0xee)])&&_0xd5a41c[_0x2d992e(0xee)]>=0x0&&_0xd5a41c['opacity']<=0x1;}function u(_0x5d5282){const _0x19140c=_0x10deff;return _0x5d5282===void 0x0||(_0x5d5282[_0x19140c(0xf4)]===void 0x0||Number[_0x19140c(0xec)](_0x5d5282[_0x19140c(0xf4)])&&_0x5d5282[_0x19140c(0xf4)]>0x0)&&(_0x5d5282[_0x19140c(0xee)]===void 0x0||Number[_0x19140c(0xec)](_0x5d5282['opacity'])&&_0x5d5282[_0x19140c(0xee)]>=0x0&&_0x5d5282[_0x19140c(0xee)]<=0x1);}function d(_0x3c74c2){const _0x503edb=_0x10deff;return _0x3c74c2&&typeof _0x3c74c2=='object'&&!Array[_0x503edb(0xe5)](_0x3c74c2)?_0x3c74c2:{};}function f(_0x1d3f5f){const _0x2e0128=_0x10deff;let _0x5ec492=d(_0x1d3f5f[_0x2e0128(0xf1)])['ink'];if(!_0x5ec492||typeof _0x5ec492!=_0x2e0128(0xff)||Array[_0x2e0128(0xe5)](_0x5ec492))return null;let _0x7f0ade=_0x5ec492;return _0x7f0ade[_0x2e0128(0xf7)]===0x1&&_0x7f0ade[_0x2e0128(0x108)]&&typeof _0x7f0ade[_0x2e0128(0x108)]==_0x2e0128(0xff)?_0x7f0ade:null;}function p(_0x3f9419){const _0x2c7141=_0x10deff;return _0x3f9419[_0x2c7141(0xdc)]===_0x2fca1a[_0x2c7141(0xfa)]&&!!f(_0x3f9419);}function _0x9ffd(_0x110c82,_0x46d458){_0x110c82=_0x110c82-0xdb;const _0x5deba8=_0x5deb();let _0x9ffdf1=_0x5deba8[_0x110c82];return _0x9ffdf1;}_0x5d619f['extend'](o);const m={'Pen':_0x10deff(0xf2),'Brush':'brush','Highlighter':_0x10deff(0x103)},h={'Corner':'corner','Smooth':_0x10deff(0xdd),'Symmetric':_0x10deff(0xe3),'Free':_0x10deff(0xfc)},g={'Anchor':_0x10deff(0xe0),'In':'in','Out':_0x10deff(0xeb)};var _=class extends _0x395991{get[_0x10deff(0xed)](){return m;}get['BoardInkPointType'](){return h;}get['BoardInkHandleKind'](){return g;}};_0x395991[_0x10deff(0xdb)](_);export{g as BoardInkHandleKind,h as BoardInkPointType,m as BoardInkTool};
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0xd9ea97=_0x5d75;(function(_0x583a21,_0x3dd7e7){const _0x56c90b=_0x5d75,_0x37ba04=_0x583a21();while(!![]){try{const _0x47bcfa=-parseInt(_0x56c90b(0x173))/0x1+-parseInt(_0x56c90b(0x140))/0x2+parseInt(_0x56c90b(0x14f))/0x3+-parseInt(_0x56c90b(0x13d))/0x4+parseInt(_0x56c90b(0x16b))/0x5+-parseInt(_0x56c90b(0x187))/0x6*(-parseInt(_0x56c90b(0x15e))/0x7)+parseInt(_0x56c90b(0x18e))/0x8;if(_0x47bcfa===_0x3dd7e7)break;else _0x37ba04['push'](_0x37ba04['shift']());}catch(_0xaae5ca){_0x37ba04['push'](_0x37ba04['shift']());}}}(_0x1f0e,0xd2e2d));import{ShapeFillEnum as _0x157d04,ShapeLineCapEnum as _0x363052,ShapeLineJoinEnum as _0x56486c,ShapeLineTypeEnum as _0x41a350,ShapeTypeEnum as _0x2fc13d}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x42d00b}from'@univerjs-pro/license';import{CommandType as _0x3450b2,DependentOn as _0xbc0f6e,ICommandService as _0x16de20,IConfigService as _0x3c718d,Inject as _0x4e3a63,Injector as _0x5500c4,Plugin as _0x205aab,UniverInstanceType as _0x42f687,createIdentifier as _0x1ab48e,merge as _0x1239fb,toDisposable as _0x29412f}from'@univerjs/core';const g=0.0001;function _(_0x1c4784){return{'x':_0x1c4784['x'],'y':_0x1c4784['y']};}function v(_0x2a107c){const _0x2cd110=_0x5d75;return{..._0x2a107c,'in':_0x2a107c['in']?_(_0x2a107c['in']):void 0x0,'out':_0x2a107c['out']?_(_0x2a107c[_0x2cd110(0x139)]):void 0x0};}function y(_0x5c7ca3){const _0x3ce2bc=_0x5d75;return{'kind':_0x3ce2bc(0x195),'closed':_0x5c7ca3[_0x3ce2bc(0x177)],'anchors':_0x5c7ca3[_0x3ce2bc(0x143)][_0x3ce2bc(0x13c)](v)};}function b(_0x421435,_0x3ecbc4,_0x13d740){return{'x':_0x421435['x']+(_0x3ecbc4['x']-_0x421435['x'])*_0x13d740,'y':_0x421435['y']+(_0x3ecbc4['y']-_0x421435['y'])*_0x13d740};}function x(_0x3ed006,_0x2248cc){const _0x303571=_0x5d75;return Math[_0x303571(0x179)](_0x3ed006['x']-_0x2248cc['x'],_0x3ed006['y']-_0x2248cc['y']);}function S(_0x43b2af){let _0x4ce1e7=Math['hypot'](_0x43b2af['x'],_0x43b2af['y']);return _0x4ce1e7<g?{'x':0x1,'y':0x0}:{'x':_0x43b2af['x']/_0x4ce1e7,'y':_0x43b2af['y']/_0x4ce1e7};}function C(_0x1b10ba,_0x4d4b62,_0x57b104=x(_0x1b10ba,_0x4d4b62)){let _0x29f3c0=S({'x':_0x1b10ba['x']-_0x4d4b62['x'],'y':_0x1b10ba['y']-_0x4d4b62['y']});return{'x':_0x1b10ba['x']+_0x29f3c0['x']*_0x57b104,'y':_0x1b10ba['y']+_0x29f3c0['y']*_0x57b104};}function w(_0x4fa05c,_0x4d9b3c){const _0x168da6=_0x5d75;let {anchors:_0x16ed3e}=_0x4fa05c;return _0x16ed3e[_0x168da6(0x15b)]<0x2||_0x4d9b3c<0x0?null:_0x4d9b3c<_0x16ed3e['length']-0x1?{'startIndex':_0x4d9b3c,'endIndex':_0x4d9b3c+0x1,'start':_0x16ed3e[_0x4d9b3c],'end':_0x16ed3e[_0x4d9b3c+0x1]}:_0x4fa05c[_0x168da6(0x177)]&&_0x4d9b3c===_0x16ed3e['length']-0x1?{'startIndex':_0x16ed3e[_0x168da6(0x15b)]-0x1,'endIndex':0x0,'start':_0x16ed3e[_0x16ed3e[_0x168da6(0x15b)]-0x1],'end':_0x16ed3e[0x0]}:null;}function T(_0x252e88,_0x516bc5){const _0x1124c8=_0x5d75;var _0xe8f2fe,_0x23763c;let _0x876388=w(_0x252e88,_0x516bc5);return _0x876388?[_0x876388['start'],(_0xe8f2fe=_0x876388[_0x1124c8(0x181)][_0x1124c8(0x139)])==null?_0x876388[_0x1124c8(0x181)]:_0xe8f2fe,(_0x23763c=_0x876388[_0x1124c8(0x169)]['in'])==null?_0x876388[_0x1124c8(0x169)]:_0x23763c,_0x876388[_0x1124c8(0x169)]]:null;}function te(_0x137d6a,_0x28c135){var _0x4001aa;return _0x28c135==='anchor'?_0x137d6a:(_0x4001aa=_0x137d6a[_0x28c135])==null?null:_0x4001aa;}function E(_0x1c5905,_0x107d8e,_0x1ccfbc){const _0x112356=_0x5d75;return _0x1ccfbc===_0x112356(0x163)||_0x1c5905[_0x112356(0x177)]?!0x0:_0x1ccfbc==='in'?_0x107d8e>0x0:_0x107d8e<_0x1c5905['anchors'][_0x112356(0x15b)]-0x1;}function D(_0x30166d,_0x59ad48){let [_0xff4e02,_0x486f37,_0x25b23f,_0x1c2b6f]=_0x30166d,_0x5a6c14=b(_0xff4e02,_0x486f37,_0x59ad48),_0x2e6c74=b(_0x486f37,_0x25b23f,_0x59ad48),_0x165d33=b(_0x25b23f,_0x1c2b6f,_0x59ad48);return b(b(_0x5a6c14,_0x2e6c74,_0x59ad48),b(_0x2e6c74,_0x165d33,_0x59ad48),_0x59ad48);}function ne(_0x1b6283,_0x135d30){let [_0x561704,_0x90133e,_0x41c9d4,_0x428715]=_0x1b6283,_0x5092ca=b(_0x561704,_0x90133e,_0x135d30),_0x37b48c=b(_0x90133e,_0x41c9d4,_0x135d30),_0x2b4dc5=b(_0x41c9d4,_0x428715,_0x135d30),_0x5a3e1e=b(_0x5092ca,_0x37b48c,_0x135d30),_0x3b1b03=b(_0x37b48c,_0x2b4dc5,_0x135d30),_0x478d72=b(_0x5a3e1e,_0x3b1b03,_0x135d30);return{'left':[_0x561704,_0x5092ca,_0x5a3e1e,_0x478d72],'right':[_0x478d72,_0x3b1b03,_0x2b4dc5,_0x428715]};}function O(_0x250740,_0xc0a51b,_0x345ecb){const _0x4aff10=_0x5d75;let _0x580f77=_0x345ecb['x']-_0xc0a51b['x'],_0x2d4d1b=_0x345ecb['y']-_0xc0a51b['y'],_0x2f93e5=_0x580f77*_0x580f77+_0x2d4d1b*_0x2d4d1b,_0x5a4687=_0x2f93e5<=g?0x0:Math[_0x4aff10(0x14a)](0x0,Math['min'](0x1,((_0x250740['x']-_0xc0a51b['x'])*_0x580f77+(_0x250740['y']-_0xc0a51b['y'])*_0x2d4d1b)/_0x2f93e5)),_0x5045d2={'x':_0xc0a51b['x']+_0x580f77*_0x5a4687,'y':_0xc0a51b['y']+_0x2d4d1b*_0x5a4687};return{'point':_0x5045d2,'ratio':_0x5a4687,'distance':x(_0x250740,_0x5045d2)};}function re(_0x316cf3,_0x2c511a,_0x16ea29){return O(_0x316cf3,_0x2c511a,_0x16ea29)['distance']**0x2;}function k(_0x41db0d,_0x5c6cd1){const _0x5cb9ec=_0x5d75;if(_0x41db0d[_0x5cb9ec(0x15b)]<=0x2)return _0x41db0d[_0x5cb9ec(0x13c)](_);let _0x527150=0x0,_0x1f759b=0x0,_0xa900a5=_0x41db0d[0x0],_0x5da654=_0x41db0d[_0x41db0d[_0x5cb9ec(0x15b)]-0x1],_0x49d039=_0x5c6cd1*_0x5c6cd1;for(let _0x4ee1c2=0x1;_0x4ee1c2<_0x41db0d[_0x5cb9ec(0x15b)]-0x1;_0x4ee1c2++){let _0x29b206=re(_0x41db0d[_0x4ee1c2],_0xa900a5,_0x5da654);_0x29b206>_0x527150&&(_0x527150=_0x29b206,_0x1f759b=_0x4ee1c2);}if(_0x527150<=_0x49d039)return[_(_0xa900a5),_(_0x5da654)];let _0x29d723=k(_0x41db0d[_0x5cb9ec(0x168)](0x0,_0x1f759b+0x1),_0x5c6cd1),_0x287549=k(_0x41db0d[_0x5cb9ec(0x168)](_0x1f759b),_0x5c6cd1);return[..._0x29d723['slice'](0x0,-0x1),..._0x287549];}function ie(_0x3ebe1e,_0x168b14){var _0x1fd1fb;let _0x55f4a4=_0x3ebe1e[_0x168b14],_0x11235c=_0x3ebe1e[_0x168b14+0x1],_0x177792=(_0x1fd1fb=_0x3ebe1e[_0x168b14-0x1])==null?_0x55f4a4:_0x1fd1fb;return{'x':_0x55f4a4['x']+(_0x11235c['x']-_0x177792['x'])/0x6,'y':_0x55f4a4['y']+(_0x11235c['y']-_0x177792['y'])/0x6};}function A(_0x40ed69,_0x105113){var _0x36c000;let _0x1bee18=_0x40ed69[_0x105113],_0x13e58e=_0x40ed69[_0x105113-0x1],_0x5d1cf4=(_0x36c000=_0x40ed69[_0x105113+0x1])==null?_0x1bee18:_0x36c000;return{'x':_0x1bee18['x']-(_0x5d1cf4['x']-_0x13e58e['x'])/0x6,'y':_0x1bee18['y']-(_0x5d1cf4['y']-_0x13e58e['y'])/0x6};}function j(_0x5a8e8d,_0x34b014){const _0x325343=_0x5d75;var _0x54c804,_0x319837;let _0x173d6c=_0x5a8e8d[_0x325343(0x143)][_0x34b014],_0x1ce829=(_0x54c804=_0x5a8e8d['anchors'][_0x34b014-0x1])==null?_0x5a8e8d[_0x325343(0x177)]?_0x5a8e8d[_0x325343(0x143)][_0x5a8e8d['anchors'][_0x325343(0x15b)]-0x1]:null:_0x54c804,_0x21c725=(_0x319837=_0x5a8e8d['anchors'][_0x34b014+0x1])==null?_0x5a8e8d[_0x325343(0x177)]?_0x5a8e8d[_0x325343(0x143)][0x0]:null:_0x319837,_0x3b9465=_0x1ce829&&_0x21c725?S({'x':_0x21c725['x']-_0x1ce829['x'],'y':_0x21c725['y']-_0x1ce829['y']}):_0x21c725?S({'x':_0x21c725['x']-_0x173d6c['x'],'y':_0x21c725['y']-_0x173d6c['y']}):_0x1ce829?S({'x':_0x173d6c['x']-_0x1ce829['x'],'y':_0x173d6c['y']-_0x1ce829['y']}):{'x':0x1,'y':0x0},_0x1bb118=_0x1ce829&&_0x21c725?Math[_0x325343(0x14a)](0x32,x(_0x1ce829,_0x21c725)/0x4):0x32;return{'in':{'x':_0x173d6c['x']-_0x3b9465['x']*_0x1bb118,'y':_0x173d6c['y']-_0x3b9465['y']*_0x1bb118},'out':{'x':_0x173d6c['x']+_0x3b9465['x']*_0x1bb118,'y':_0x173d6c['y']+_0x3b9465['y']*_0x1bb118}};}function M(_0x331f34,_0x225f45){const _0x1635fa=_0x5d75;let _0x5c5948=_0x331f34[_0x225f45],_0x34a908=_0x225f45==='in'?_0x1635fa(0x139):'in',_0x1d5124=_0x331f34[_0x34a908];if(_0x5c5948){if(_0x331f34['pointType']==='symmetric'){_0x331f34[_0x34a908]=C(_0x331f34,_0x5c5948);return;}_0x331f34[_0x1635fa(0x155)]===_0x1635fa(0x146)&&(_0x331f34[_0x34a908]=C(_0x331f34,_0x5c5948,_0x1d5124?x(_0x331f34,_0x1d5124):x(_0x331f34,_0x5c5948)));}}function ae(_0x32764f,_0x140103){const _0x501204=_0x5d75;let _0x4d5d43=y(_0x32764f);return!_0x140103||_0x4d5d43['closed']||_0x4d5d43[_0x501204(0x143)][_0x501204(0x15b)]===0x0||_0x4d5d43[_0x501204(0x143)][_0x501204(0x18d)]({'id':_0x501204(0x144),'x':_0x140103['x'],'y':_0x140103['y'],'pointType':_0x501204(0x188)}),_0x4d5d43;}function oe(_0x95db77,_0x335c81={}){const _0x3ff665=_0x5d75;var _0x455e4b,_0x4a9cd2;let _0x42e572=Math[_0x3ff665(0x14a)](0x0,(_0x455e4b=_0x335c81[_0x3ff665(0x178)])==null?Math['max'](0x4,_0x95db77['width']*0.35):_0x455e4b),_0x5c818d=(_0x4a9cd2=_0x335c81[_0x3ff665(0x194)])==null?_0x298564=>_0x3ff665(0x152)+_0x298564:_0x4a9cd2,_0x519604=k(_0x95db77['points'],_0x42e572),_0x4b6ddc=_0x519604[_0x3ff665(0x13c)]((_0x40e9b8,_0x42a616)=>({'id':_0x5c818d(_0x42a616),'x':_0x40e9b8['x'],'y':_0x40e9b8['y'],'pointType':_0x3ff665(0x13b)}));for(let _0x265a12=0x0;_0x265a12<_0x4b6ddc[_0x3ff665(0x15b)]-0x1;_0x265a12++)_0x4b6ddc[_0x265a12][_0x3ff665(0x139)]=ie(_0x519604,_0x265a12),_0x4b6ddc[_0x265a12+0x1]['in']=A(_0x519604,_0x265a12+0x1);return{'kind':_0x3ff665(0x195),'closed':!0x1,'anchors':_0x4b6ddc};}function se(_0x208dd5,_0x5e25e0,_0x2962f8){const _0x5cda09=_0x5d75;let _0x38bab0=null,_0x16fa07=[_0x5cda09(0x163),'in',_0x5cda09(0x139)];return _0x208dd5[_0x5cda09(0x143)]['forEach']((_0x8f85da,_0x3ef198)=>{const _0x1731ad=_0x5cda09;_0x16fa07[_0x1731ad(0x193)](_0x405653=>{const _0x4c7e97=_0x1731ad;if(!E(_0x208dd5,_0x3ef198,_0x405653))return;let _0xb85dac=te(_0x8f85da,_0x405653);if(!_0xb85dac)return;let _0x3d87c9=x(_0x5e25e0,_0xb85dac);_0x3d87c9>_0x2962f8||_0x38bab0&&_0x3d87c9>=_0x38bab0[_0x4c7e97(0x17d)]||(_0x38bab0={'handle':{'kind':_0x405653,'anchorId':_0x8f85da['id']},'point':_(_0xb85dac),'distance':_0x3d87c9});});}),_0x38bab0;}function ce(_0x4655b2,_0x265026,_0x1c40a5){const _0x41aee7=_0x5d75;let _0x4973e7=null,_0x2466ba=_0x4655b2['closed']?_0x4655b2[_0x41aee7(0x143)][_0x41aee7(0x15b)]:Math[_0x41aee7(0x14a)](0x0,_0x4655b2[_0x41aee7(0x143)][_0x41aee7(0x15b)]-0x1);for(let _0x31f18d=0x0;_0x31f18d<_0x2466ba;_0x31f18d++){let _0x51465b=T(_0x4655b2,_0x31f18d);if(!_0x51465b)continue;let _0x3e8297=D(_0x51465b,0x0);for(let _0x16aaad=0x1;_0x16aaad<=0x20;_0x16aaad++){let _0x43e783=D(_0x51465b,_0x16aaad/0x20),_0x117a70=O(_0x265026,_0x3e8297,_0x43e783),_0x552101=(_0x16aaad-0x1+_0x117a70[_0x41aee7(0x16e)])/0x20;(!_0x4973e7||_0x117a70['distance']<_0x4973e7[_0x41aee7(0x17d)])&&(_0x4973e7={'segmentIndex':_0x31f18d,'t':_0x552101,'point':_0x117a70['point'],'distance':_0x117a70['distance']}),_0x3e8297=_0x43e783;}}return _0x4973e7&&_0x4973e7[_0x41aee7(0x17d)]<=_0x1c40a5?_0x4973e7:null;}function le(_0x1b6e6c,_0x1718f5,_0x31090c){const _0x3d0d01=_0x5d75;let _0xa81a9b=y(_0x1b6e6c),_0x1dce41=w(_0xa81a9b,_0x1718f5[_0x3d0d01(0x174)]),_0x2870c8=T(_0xa81a9b,_0x1718f5[_0x3d0d01(0x174)]);if(!_0x1dce41||!_0x2870c8)return _0xa81a9b;let _0x59758a=ne(_0x2870c8,Math['max'](0x0,Math[_0x3d0d01(0x18b)](0x1,_0x1718f5['t']))),_0x337435={'id':_0x31090c(),'x':_0x59758a['left'][0x3]['x'],'y':_0x59758a[_0x3d0d01(0x175)][0x3]['y'],'in':_(_0x59758a[_0x3d0d01(0x175)][0x2]),'out':_(_0x59758a[_0x3d0d01(0x182)][0x1]),'pointType':_0x3d0d01(0x13b)};return _0xa81a9b['anchors'][_0x1dce41[_0x3d0d01(0x15a)]][_0x3d0d01(0x139)]=_(_0x59758a[_0x3d0d01(0x175)][0x1]),_0xa81a9b[_0x3d0d01(0x143)][_0x1dce41[_0x3d0d01(0x189)]]['in']=_(_0x59758a[_0x3d0d01(0x182)][0x2]),_0xa81a9b['anchors'][_0x3d0d01(0x16c)](_0x1dce41[_0x3d0d01(0x15a)]+0x1,0x0,_0x337435),_0xa81a9b;}function ue(_0x1d9e10,_0x3e5793){const _0x287dcd=_0x5d75;let _0x4e4cf8=y(_0x1d9e10);return _0x4e4cf8['anchors']=_0x4e4cf8[_0x287dcd(0x143)][_0x287dcd(0x164)](_0x457dfe=>_0x457dfe['id']!==_0x3e5793),_0x4e4cf8['closed']&&_0x4e4cf8[_0x287dcd(0x143)]['length']<0x3&&(_0x4e4cf8['closed']=!0x1),_0x4e4cf8;}function N(_0x3d3393,_0x3a4f81,_0x181438){const _0x2db96c=_0x5d75;let _0x2fe297=y(_0x3d3393),_0x1999b5=_0x2fe297[_0x2db96c(0x143)][_0x2db96c(0x150)](_0x3a3f41=>_0x3a3f41['id']===_0x3a4f81),_0x2055e7=_0x2fe297['anchors'][_0x1999b5];if(!_0x2055e7)return _0x2fe297;if(_0x2055e7['pointType']=_0x181438,_0x181438===_0x2db96c(0x188))return delete _0x2055e7['in'],delete _0x2055e7[_0x2db96c(0x139)],_0x2fe297;let _0x3c9431=j(_0x2fe297,_0x1999b5);if(_0x2055e7['in']=_0x2055e7['in']?_(_0x2055e7['in']):_0x3c9431['in'],_0x2055e7[_0x2db96c(0x139)]=_0x2055e7['out']?_(_0x2055e7[_0x2db96c(0x139)]):_0x3c9431[_0x2db96c(0x139)],_0x181438===_0x2db96c(0x13f)){let _0x16372e=Math['max'](x(_0x2055e7,_0x2055e7['in']),x(_0x2055e7,_0x2055e7['out']),0x32),_0xf3593c=S({'x':_0x2055e7[_0x2db96c(0x139)]['x']-_0x2055e7['x'],'y':_0x2055e7['out']['y']-_0x2055e7['y']});_0x2055e7[_0x2db96c(0x139)]={'x':_0x2055e7['x']+_0xf3593c['x']*_0x16372e,'y':_0x2055e7['y']+_0xf3593c['y']*_0x16372e},_0x2055e7['in']={'x':_0x2055e7['x']-_0xf3593c['x']*_0x16372e,'y':_0x2055e7['y']-_0xf3593c['y']*_0x16372e};}else _0x181438===_0x2db96c(0x146)&&M(_0x2055e7,_0x2db96c(0x139));return _0x2fe297;}function P(_0x8faea0,_0x4d05f0){const _0x587d9c=_0x5d75;var _0x474a43;let _0x68e57f=_0x8faea0[_0x587d9c(0x143)][_0x587d9c(0x154)](_0x33bfe9=>_0x33bfe9['id']===_0x4d05f0),_0x19db64=(_0x474a43=_0x68e57f==null?void 0x0:_0x68e57f[_0x587d9c(0x155)])==null?_0x587d9c(0x188):_0x474a43;return N(_0x8faea0,_0x4d05f0,_0x19db64===_0x587d9c(0x188)?_0x587d9c(0x146):_0x19db64===_0x587d9c(0x146)?'symmetric':_0x19db64===_0x587d9c(0x13f)?_0x587d9c(0x13b):_0x587d9c(0x188));}function F(_0x3530c9,_0x3e48d2,_0x2043a9){const _0x4a851f=_0x5d75;let _0x232366=y(_0x3530c9),_0x5e5d14=_0x232366['anchors'][_0x4a851f(0x154)](_0x34c602=>_0x34c602['id']===_0x3e48d2['anchorId']);if(!_0x5e5d14)return _0x232366;if(_0x3e48d2[_0x4a851f(0x172)]===_0x4a851f(0x163)){let _0x831642={'x':_0x2043a9['x']-_0x5e5d14['x'],'y':_0x2043a9['y']-_0x5e5d14['y']};return _0x5e5d14['x']=_0x2043a9['x'],_0x5e5d14['y']=_0x2043a9['y'],_0x5e5d14['in']&&(_0x5e5d14['in']={'x':_0x5e5d14['in']['x']+_0x831642['x'],'y':_0x5e5d14['in']['y']+_0x831642['y']}),_0x5e5d14[_0x4a851f(0x139)]&&(_0x5e5d14[_0x4a851f(0x139)]={'x':_0x5e5d14[_0x4a851f(0x139)]['x']+_0x831642['x'],'y':_0x5e5d14[_0x4a851f(0x139)]['y']+_0x831642['y']}),_0x232366;}return _0x5e5d14[_0x3e48d2['kind']]=_(_0x2043a9),_0x5e5d14[_0x4a851f(0x155)]==='corner'&&(_0x5e5d14['pointType']=_0x4a851f(0x13b)),M(_0x5e5d14,_0x3e48d2[_0x4a851f(0x172)]),_0x232366;}const I=1e-9;function L(_0x2563c6){const _0x12a095=_0x5d75;let _0x407f4f=Math[_0x12a095(0x16d)](_0x2563c6*0x2710)/0x2710;return Object['is'](_0x407f4f,-0x0)?'0':String(_0x407f4f);}function R(_0x6b4dcc){return L(_0x6b4dcc['x'])+'\x20'+L(_0x6b4dcc['y']);}function z(_0x1e0f2c,_0x2de331){return{'x':_0x1e0f2c['x']-_0x2de331['x'],'y':_0x1e0f2c['y']-_0x2de331['y']};}function B(_0xacfda9,_0x2e249b,_0x98a8a6,_0x3ace9c,_0x2d3f80){let _0x157773=0x1-_0x2d3f80;return{'x':_0x157773*_0x157773*_0x157773*_0xacfda9['x']+0x3*_0x157773*_0x157773*_0x2d3f80*_0x2e249b['x']+0x3*_0x157773*_0x2d3f80*_0x2d3f80*_0x98a8a6['x']+_0x2d3f80*_0x2d3f80*_0x2d3f80*_0x3ace9c['x'],'y':_0x157773*_0x157773*_0x157773*_0xacfda9['y']+0x3*_0x157773*_0x157773*_0x2d3f80*_0x2e249b['y']+0x3*_0x157773*_0x2d3f80*_0x2d3f80*_0x98a8a6['y']+_0x2d3f80*_0x2d3f80*_0x2d3f80*_0x3ace9c['y']};}function V(_0x4f5ce8,_0xba8f6f,_0x5cc759,_0x43106a){const _0x1c5686=_0x5d75;let _0x2c581c=-_0x4f5ce8+0x3*_0xba8f6f-0x3*_0x5cc759+_0x43106a,_0xa4545c=0x3*_0x4f5ce8-0x6*_0xba8f6f+0x3*_0x5cc759,_0x2d2f6d=-0x3*_0x4f5ce8+0x3*_0xba8f6f,_0x2df6c3=[];if(Math[_0x1c5686(0x171)](_0x2c581c)<I){if(Math[_0x1c5686(0x171)](_0xa4545c)<I)return _0x2df6c3;let _0x5d7fd2=-_0x2d2f6d/(0x2*_0xa4545c);return _0x5d7fd2>0x0&&_0x5d7fd2<0x1&&_0x2df6c3[_0x1c5686(0x18d)](_0x5d7fd2),_0x2df6c3;}let _0x2173b7=_0xa4545c*_0xa4545c-0x3*_0x2c581c*_0x2d2f6d;if(_0x2173b7<0x0)return _0x2df6c3;let _0x16cc2e=Math[_0x1c5686(0x186)](Math[_0x1c5686(0x14a)](0x0,_0x2173b7)),_0x3f270f=(-_0xa4545c+_0x16cc2e)/(0x3*_0x2c581c),_0x3c4d7c=(-_0xa4545c-_0x16cc2e)/(0x3*_0x2c581c);return _0x3f270f>0x0&&_0x3f270f<0x1&&_0x2df6c3['push'](_0x3f270f),_0x3c4d7c>0x0&&_0x3c4d7c<0x1&&Math[_0x1c5686(0x171)](_0x3c4d7c-_0x3f270f)>I&&_0x2df6c3['push'](_0x3c4d7c),_0x2df6c3;}function H(_0x363c5d,_0x468aa2,_0x37313d,_0x2b50a2,_0xc68336){const _0x4618cf=_0x5d75;_0x363c5d[_0x4618cf(0x18d)](_0x468aa2,_0xc68336),new Set([...V(_0x468aa2['x'],_0x37313d['x'],_0x2b50a2['x'],_0xc68336['x']),...V(_0x468aa2['y'],_0x37313d['y'],_0x2b50a2['y'],_0xc68336['y'])])[_0x4618cf(0x193)](_0x3f830d=>{const _0x12bb73=_0x4618cf;_0x363c5d[_0x12bb73(0x18d)](B(_0x468aa2,_0x37313d,_0x2b50a2,_0xc68336,_0x3f830d));});}function U(_0x442e04){const _0xbe0606=_0x5d75;let _0x350ec2=_0x442e04[_0xbe0606(0x143)];if(_0x350ec2[_0xbe0606(0x15b)]<=0x1)return _0x350ec2;let _0x2aed2d=[];for(let _0x396f42=0x1;_0x396f42<_0x350ec2[_0xbe0606(0x15b)];_0x396f42++){var _0x5e79a9,_0x2f4f9b;let _0x5ebdf1=_0x350ec2[_0x396f42-0x1],_0xe9b299=_0x350ec2[_0x396f42];H(_0x2aed2d,_0x5ebdf1,(_0x5e79a9=_0x5ebdf1['out'])==null?_0x5ebdf1:_0x5e79a9,(_0x2f4f9b=_0xe9b299['in'])==null?_0xe9b299:_0x2f4f9b,_0xe9b299);}if(_0x442e04[_0xbe0606(0x177)]&&_0x350ec2[_0xbe0606(0x15b)]>0x1){var _0x3a2839,_0x32de18;let _0x3b4a69=_0x350ec2[_0x350ec2[_0xbe0606(0x15b)]-0x1],_0x2d8f81=_0x350ec2[0x0];H(_0x2aed2d,_0x3b4a69,(_0x3a2839=_0x3b4a69[_0xbe0606(0x139)])==null?_0x3b4a69:_0x3a2839,(_0x32de18=_0x2d8f81['in'])==null?_0x2d8f81:_0x32de18,_0x2d8f81);}return _0x2aed2d;}function de(_0x4a97cb){const _0x2b4158=_0x5d75;let _0x4e941c=_0x4a97cb['points'];if(_0x4e941c[_0x2b4158(0x15b)]<=0x1)return _0x4e941c;let _0x57784e=[];for(let _0x576090=0x0;_0x576090<_0x4e941c[_0x2b4158(0x15b)]-0x1;_0x576090++){var _0xf30f9c,_0x4b5c5e;let _0x275902=_0x4e941c[_0x576090],_0x40e952=_0x4e941c[_0x576090+0x1],_0x248644=(_0xf30f9c=_0x4e941c[_0x576090-0x1])==null?_0x275902:_0xf30f9c,_0x434f63=(_0x4b5c5e=_0x4e941c[_0x576090+0x2])==null?_0x40e952:_0x4b5c5e;H(_0x57784e,_0x275902,{'x':_0x275902['x']+(_0x40e952['x']-_0x248644['x'])/0x6,'y':_0x275902['y']+(_0x40e952['y']-_0x248644['y'])/0x6},{'x':_0x40e952['x']-(_0x434f63['x']-_0x275902['x'])/0x6,'y':_0x40e952['y']-(_0x434f63['y']-_0x275902['y'])/0x6},_0x40e952);}return _0x57784e;}function fe(_0x9511fb){const _0x4ae3e7=_0x5d75;return _0x9511fb[_0x4ae3e7(0x172)]===_0x4ae3e7(0x195)?U(_0x9511fb):de(_0x9511fb);}function _0x1f0e(){const _0x3ccca4=['out','height','free','map','5280012gcHgel','width','symmetric','1307234iubbVe','string','Rect','anchors','__ink-preview-anchor__','top','smooth','OPERATION','none','_configService','max','onStarting','ink.host-adapter.service','add','_config','2383332VilSed','findIndex','_injector','ink-centerline-','ink.config','find','pointType','createCustomShape','default','color','fillColor','startIndex','length','pluginName','function','6405xMnsxe','disposeWithMe','1.0.0-alpha.7','version','norm','anchor','filter','toPrimitive','SolidLine','join','slice','end','beginInkMode','7111505pjiuRz','splice','round','ratio','points','getOwnPropertyDescriptor','abs','kind','315613ByEvnX','segmentIndex','left','call','closed','tolerance','hypot','registerAdapter','NoFill','opacity','distance','prototype','setConfig','type','start','right','indexOf','UNIVER_UNKNOWN','decorate','sqrt','4890NshZEP','corner','endIndex','get','min','object','push','1524416ZDxBmg','constructor','_adapters','#f54a45','symbol','forEach','createId','pen','packageName','defineProperty','tool','_commandService'];_0x1f0e=function(){return _0x3ccca4;};return _0x1f0e();}function W(_0x4abd06){let _0x31810a=Math['round'](_0x4abd06*0x2710)/0x2710;return Object['is'](_0x31810a,-0x0)?0x0:_0x31810a;}function G(_0x3aefeb){const _0x6e0444=_0x5d75;let _0xcf3dd2=fe(_0x3aefeb);if(_0xcf3dd2[_0x6e0444(0x15b)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x54267d=Math[_0x6e0444(0x18b)](..._0xcf3dd2[_0x6e0444(0x13c)](_0x45fa62=>_0x45fa62['x'])),_0x4166b5=Math[_0x6e0444(0x18b)](..._0xcf3dd2['map'](_0x33a011=>_0x33a011['y'])),_0x233859=Math[_0x6e0444(0x14a)](..._0xcf3dd2[_0x6e0444(0x13c)](_0x29c37e=>_0x29c37e['x'])),_0x132a2a=Math[_0x6e0444(0x14a)](..._0xcf3dd2[_0x6e0444(0x13c)](_0x4e5cbd=>_0x4e5cbd['y']));return{'left':W(_0x54267d),'top':W(_0x4166b5),'width':W(Math['max'](0x1,_0x233859-_0x54267d)),'height':W(Math['max'](0x1,_0x132a2a-_0x4166b5))};}function pe(_0x334233,_0x3d41e9){const _0x3dfa26=_0x5d75;let _0x2648ae=_0x334233[_0x3dfa26(0x143)];if(_0x2648ae[_0x3dfa26(0x15b)]===0x0)return'';let _0x598b18=['M\x20'+R(z(_0x2648ae[0x0],_0x3d41e9))];for(let _0x4bce92=0x1;_0x4bce92<_0x2648ae[_0x3dfa26(0x15b)];_0x4bce92++){var _0x56bf23,_0x2d1a27;let _0x3b9355=_0x2648ae[_0x4bce92-0x1],_0x5b049c=_0x2648ae[_0x4bce92],_0x1f109d=(_0x56bf23=_0x3b9355[_0x3dfa26(0x139)])==null?_0x3b9355:_0x56bf23,_0x40e6d3=(_0x2d1a27=_0x5b049c['in'])==null?_0x5b049c:_0x2d1a27;_0x598b18['push']('C\x20'+R(z(_0x1f109d,_0x3d41e9))+'\x20'+R(z(_0x40e6d3,_0x3d41e9))+'\x20'+R(z(_0x5b049c,_0x3d41e9)));}if(_0x334233[_0x3dfa26(0x177)]&&_0x2648ae[_0x3dfa26(0x15b)]>0x1){var _0x561711,_0x1457c5;let _0x258a7c=_0x2648ae[_0x2648ae[_0x3dfa26(0x15b)]-0x1],_0x216813=_0x2648ae[0x0],_0xe8667c=(_0x561711=_0x258a7c['out'])==null?_0x258a7c:_0x561711,_0x37a844=(_0x1457c5=_0x216813['in'])==null?_0x216813:_0x1457c5;_0x598b18['push']('C\x20'+R(z(_0xe8667c,_0x3d41e9))+'\x20'+R(z(_0x37a844,_0x3d41e9))+'\x20'+R(z(_0x216813,_0x3d41e9))),_0x598b18[_0x3dfa26(0x18d)]('Z');}return _0x598b18[_0x3dfa26(0x167)]('\x20');}function me(_0x5b09e9,_0x4f66d2){const _0x33c9b4=_0x5d75;let _0x1db0de=_0x5b09e9[_0x33c9b4(0x16f)][_0x33c9b4(0x13c)](_0x43b973=>z(_0x43b973,_0x4f66d2));if(_0x1db0de['length']===0x0)return'';if(_0x1db0de[_0x33c9b4(0x15b)]===0x1)return'M\x20'+R(_0x1db0de[0x0]);let _0x3624b6=['M\x20'+R(_0x1db0de[0x0])];for(let _0x792733=0x0;_0x792733<_0x1db0de[_0x33c9b4(0x15b)]-0x1;_0x792733++){var _0x507bf8,_0x594f92;let _0x5885df=_0x1db0de[_0x792733],_0x25455a=_0x1db0de[_0x792733+0x1],_0x48cbfa=(_0x507bf8=_0x1db0de[_0x792733-0x1])==null?_0x5885df:_0x507bf8,_0x3c13b7=(_0x594f92=_0x1db0de[_0x792733+0x2])==null?_0x25455a:_0x594f92,_0x1e02f3={'x':_0x5885df['x']+(_0x25455a['x']-_0x48cbfa['x'])/0x6,'y':_0x5885df['y']+(_0x25455a['y']-_0x48cbfa['y'])/0x6},_0x45d4ba={'x':_0x25455a['x']-(_0x3c13b7['x']-_0x5885df['x'])/0x6,'y':_0x25455a['y']-(_0x3c13b7['y']-_0x5885df['y'])/0x6};_0x3624b6[_0x33c9b4(0x18d)]('C\x20'+R(_0x1e02f3)+'\x20'+R(_0x45d4ba)+'\x20'+R(_0x25455a));}return _0x3624b6[_0x33c9b4(0x167)]('\x20');}function he(_0x141417,_0x520a99){const _0x16b282=_0x5d75;return _0x141417[_0x16b282(0x172)]===_0x16b282(0x195)?pe(_0x141417,_0x520a99):me(_0x141417,_0x520a99);}function ge(_0x1a6011,_0x3afb42){const _0x3f7058=_0x5d75;return _0x3afb42!=null&&_0x3afb42[_0x3f7058(0x158)]?_0x3afb42[_0x3f7058(0x158)]:_0x1a6011['kind']===_0x3f7058(0x195)?_0x3f7058(0x191):_0x1a6011[_0x3f7058(0x158)];}function _e(_0x366021,_0x28ed85){const _0x695865=_0x5d75;return(_0x28ed85==null?void 0x0:_0x28ed85[_0x695865(0x13e)])===void 0x0?_0x366021[_0x695865(0x172)]===_0x695865(0x195)?0x2:_0x366021[_0x695865(0x13e)]:_0x28ed85[_0x695865(0x13e)];}function ve(_0x2b8123,_0x4340cf){const _0x4bc57d=_0x5d75;return(_0x4340cf==null?void 0x0:_0x4340cf[_0x4bc57d(0x17c)])===void 0x0?_0x2b8123[_0x4bc57d(0x172)]===_0x4bc57d(0x195)?void 0x0:_0x2b8123[_0x4bc57d(0x17c)]:_0x4340cf['opacity'];}function _0x5d75(_0x1bc714,_0x4d42ab){_0x1bc714=_0x1bc714-0x136;const _0x1f0e4c=_0x1f0e();let _0x5d75b0=_0x1f0e4c[_0x1bc714];return _0x5d75b0;}function ye(_0x7bb899,_0x2db820){const _0x470b01=_0x5d75;let _0x1e3437=G(_0x7bb899),_0x12d0b4=he(_0x7bb899,{'x':_0x1e3437['left'],'y':_0x1e3437[_0x470b01(0x145)]}),_0x15a7a1=_0x7bb899[_0x470b01(0x172)]===_0x470b01(0x195)&&_0x7bb899[_0x470b01(0x177)],_0xbd4d92=_0x2db820==null?void 0x0:_0x2db820[_0x470b01(0x159)];return{'shapeType':_0x2fc13d[_0x470b01(0x142)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x1e3437[_0x470b01(0x13e)],'h':_0x1e3437[_0x470b01(0x13a)],'fill':_0x15a7a1?_0x470b01(0x162):_0x470b01(0x148),'stroke':!0x0,'data':_0x12d0b4,'dataArray':be(_0x7bb899,{'x':_0x1e3437[_0x470b01(0x175)],'y':_0x1e3437['top']})}]},'fill':_0x15a7a1&&_0xbd4d92?{'color':_0xbd4d92,'fillType':_0x157d04['SolidFill']}:{'fillType':_0x157d04[_0x470b01(0x17b)]},'stroke':{'color':ge(_0x7bb899,_0x2db820),'width':_e(_0x7bb899,_0x2db820),'opacity':ve(_0x7bb899,_0x2db820),'lineStrokeType':_0x41a350[_0x470b01(0x166)],'capType':_0x363052['Round'],'lineJoinType':_0x56486c['Round']}};}function K(_0x766837,_0x43fad4){return{'x':_0x766837['x']-_0x43fad4['x'],'y':_0x766837['y']-_0x43fad4['y']};}function be(_0x143aee,_0x4d1d82){const _0x22ba30=_0x5d75;if(_0x143aee[_0x22ba30(0x172)]===_0x22ba30(0x195)){let _0x179f00=_0x143aee[_0x22ba30(0x143)];if(_0x179f00[_0x22ba30(0x15b)]===0x0)return[];let _0x4fb16b=K(_0x179f00[0x0],_0x4d1d82),_0x23f539=[{'command':'M','points':[_0x4fb16b['x'],_0x4fb16b['y']]}];for(let _0x12c749=0x1;_0x12c749<_0x179f00[_0x22ba30(0x15b)];_0x12c749++){var _0x2bb2f3,_0xef5a00;let _0x23fd86=_0x179f00[_0x12c749-0x1],_0x54c1b6=_0x179f00[_0x12c749],_0x296aa1=K((_0x2bb2f3=_0x23fd86[_0x22ba30(0x139)])==null?_0x23fd86:_0x2bb2f3,_0x4d1d82),_0x2242ed=K((_0xef5a00=_0x54c1b6['in'])==null?_0x54c1b6:_0xef5a00,_0x4d1d82),_0x23db98=K(_0x54c1b6,_0x4d1d82);_0x23f539['push']({'command':'C','points':[_0x296aa1['x'],_0x296aa1['y'],_0x2242ed['x'],_0x2242ed['y'],_0x23db98['x'],_0x23db98['y']]});}if(_0x143aee[_0x22ba30(0x177)]&&_0x179f00['length']>0x1){var _0x2656b6,_0x4b44e1;let _0x29f6bd=_0x179f00[_0x179f00[_0x22ba30(0x15b)]-0x1],_0x1168d2=_0x179f00[0x0],_0x3af9f5=K((_0x2656b6=_0x29f6bd[_0x22ba30(0x139)])==null?_0x29f6bd:_0x2656b6,_0x4d1d82),_0x120745=K((_0x4b44e1=_0x1168d2['in'])==null?_0x1168d2:_0x4b44e1,_0x4d1d82),_0x1587f4=K(_0x1168d2,_0x4d1d82);_0x23f539[_0x22ba30(0x18d)]({'command':'C','points':[_0x3af9f5['x'],_0x3af9f5['y'],_0x120745['x'],_0x120745['y'],_0x1587f4['x'],_0x1587f4['y']]}),_0x23f539[_0x22ba30(0x18d)]({'command':'z','points':[]});}return _0x23f539;}let _0x314f03=_0x143aee['points'][_0x22ba30(0x13c)](_0x5d6b03=>K(_0x5d6b03,_0x4d1d82));if(_0x314f03[_0x22ba30(0x15b)]===0x0)return[];let _0x5528aa=[{'command':'M','points':[_0x314f03[0x0]['x'],_0x314f03[0x0]['y']]}];for(let _0x4db741=0x0;_0x4db741<_0x314f03[_0x22ba30(0x15b)]-0x1;_0x4db741++){var _0x1cce6c,_0x3668f2;let _0x29cc40=_0x314f03[_0x4db741],_0x37cdc5=_0x314f03[_0x4db741+0x1],_0x35d8db=(_0x1cce6c=_0x314f03[_0x4db741-0x1])==null?_0x29cc40:_0x1cce6c,_0x58235c=(_0x3668f2=_0x314f03[_0x4db741+0x2])==null?_0x37cdc5:_0x3668f2,_0x332416={'x':_0x29cc40['x']+(_0x37cdc5['x']-_0x35d8db['x'])/0x6,'y':_0x29cc40['y']+(_0x37cdc5['y']-_0x35d8db['y'])/0x6},_0x1ac2ed={'x':_0x37cdc5['x']-(_0x58235c['x']-_0x29cc40['x'])/0x6,'y':_0x37cdc5['y']-(_0x58235c['y']-_0x29cc40['y'])/0x6};_0x5528aa[_0x22ba30(0x18d)]({'command':'C','points':[_0x332416['x'],_0x332416['y'],_0x1ac2ed['x'],_0x1ac2ed['y'],_0x37cdc5['x'],_0x37cdc5['y']]});}return _0x5528aa;}function xe(_0x588b9a){const _0x8e653=_0x5d75;var _0x1f1de2;let {model:_0x1ea07a,sourceModel:_0xecba1=_0x1ea07a,style:_0x3770c8}=_0x588b9a,_0x2078d1=(_0x1f1de2=_0x588b9a[_0x8e653(0x137)])==null?_0x1ea07a[_0x8e653(0x172)]:_0x1f1de2,_0xc349b6=G(_0x1ea07a),_0x4335c9=_0x1ea07a['kind']===_0x8e653(0x195)&&_0x2078d1!==_0x8e653(0x195)?_0x1ea07a:void 0x0;return{'transform':{..._0xc349b6,'rotation':0x0},'shapeData':ye(_0x1ea07a,_0x3770c8),'ink':{'version':0x1,'tool':_0x2078d1,'sourceModel':_0xecba1,..._0x4335c9?{'editModel':_0x4335c9}:{},'normalizedBounds':_0xc349b6}};}var Se='@univerjs-pro/ink',Ce=_0xd9ea97(0x160);function q(_0xf0db8e){'@babel/helpers - typeof';const _0x5d8d4e=_0xd9ea97;return q=typeof Symbol==_0x5d8d4e(0x15d)&&typeof Symbol['iterator']==_0x5d8d4e(0x192)?function(_0x24b45b){return typeof _0x24b45b;}:function(_0x26e7cd){const _0xbf86d7=_0x5d8d4e;return _0x26e7cd&&typeof Symbol==_0xbf86d7(0x15d)&&_0x26e7cd[_0xbf86d7(0x18f)]===Symbol&&_0x26e7cd!==Symbol[_0xbf86d7(0x17e)]?_0xbf86d7(0x192):typeof _0x26e7cd;},q(_0xf0db8e);}function we(_0x371f38,_0x5a98fe){const _0x118f7f=_0xd9ea97;if(q(_0x371f38)!=_0x118f7f(0x18c)||!_0x371f38)return _0x371f38;var _0x5cef0e=_0x371f38[Symbol[_0x118f7f(0x165)]];if(_0x5cef0e!==void 0x0){var _0x4c12fa=_0x5cef0e[_0x118f7f(0x176)](_0x371f38,_0x5a98fe||_0x118f7f(0x157));if(q(_0x4c12fa)!='object')return _0x4c12fa;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x5a98fe===_0x118f7f(0x141)?String:Number)(_0x371f38);}function J(_0x207d73){const _0x1e708a=_0xd9ea97;var _0x51aab3=we(_0x207d73,_0x1e708a(0x141));return q(_0x51aab3)==_0x1e708a(0x192)?_0x51aab3:_0x51aab3+'';}function Y(_0x519233,_0x36e28c,_0x4da7f7){const _0x56af46=_0xd9ea97;return(_0x36e28c=J(_0x36e28c))in _0x519233?Object[_0x56af46(0x136)](_0x519233,_0x36e28c,{'value':_0x4da7f7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x519233[_0x36e28c]=_0x4da7f7,_0x519233;}const X=_0x1ab48e(_0xd9ea97(0x14c));var Te=class{constructor(){const _0x3e1613=_0xd9ea97;Y(this,_0x3e1613(0x190),[]);}[_0xd9ea97(0x17a)](_0x28cc61){const _0x152a73=_0xd9ea97;return this[_0x152a73(0x190)][_0x152a73(0x18d)](_0x28cc61),_0x29412f(()=>{const _0x565455=_0x152a73;let _0xaa94e7=this[_0x565455(0x190)][_0x565455(0x183)](_0x28cc61);_0xaa94e7>=0x0&&this['_adapters'][_0x565455(0x16c)](_0xaa94e7,0x1);});}['beginInkMode'](_0x4f93b2){const _0x322df5=_0xd9ea97;for(let _0x47f994 of this[_0x322df5(0x190)])if(_0x47f994[_0x322df5(0x16a)](_0x4f93b2))return!0x0;return!0x1;}async[_0xd9ea97(0x156)](_0x4cfe8e){const _0xa467ed=_0xd9ea97;for(let _0x4a6b52 of this[_0xa467ed(0x190)])if(_0x4a6b52['createCustomShape']&&await _0x4a6b52['createCustomShape'](_0x4cfe8e))return!0x0;return!0x1;}};const Ee={'id':'ink.operation.start','type':_0x3450b2[_0xd9ea97(0x147)],'handler':(_0x1273c6,_0x1aed1d)=>_0x1aed1d?_0x1273c6[_0xd9ea97(0x18a)](X)[_0xd9ea97(0x16a)](_0x1aed1d):!0x1},Z={};function Q(_0x55af48,_0x31d419){return function(_0x43e9e7,_0x483b20){_0x31d419(_0x43e9e7,_0x483b20,_0x55af48);};}function De(_0x263be4,_0x433ad3,_0x2f01f1,_0x4819fb){const _0x1e66c2=_0xd9ea97;var _0x351722=arguments[_0x1e66c2(0x15b)],_0x269040=_0x351722<0x3?_0x433ad3:_0x4819fb===null?_0x4819fb=Object[_0x1e66c2(0x170)](_0x433ad3,_0x2f01f1):_0x4819fb,_0x543774;if(typeof Reflect=='object'&&typeof Reflect[_0x1e66c2(0x185)]=='function')_0x269040=Reflect[_0x1e66c2(0x185)](_0x263be4,_0x433ad3,_0x2f01f1,_0x4819fb);else{for(var _0x500a5b=_0x263be4['length']-0x1;_0x500a5b>=0x0;_0x500a5b--)(_0x543774=_0x263be4[_0x500a5b])&&(_0x269040=(_0x351722<0x3?_0x543774(_0x269040):_0x351722>0x3?_0x543774(_0x433ad3,_0x2f01f1,_0x269040):_0x543774(_0x433ad3,_0x2f01f1))||_0x269040);}return _0x351722>0x3&&_0x269040&&Object['defineProperty'](_0x433ad3,_0x2f01f1,_0x269040),_0x269040;}let $=class extends _0x205aab{constructor(_0x38ea78=Z,_0x794021,_0x6333bb,_0xe202d0){const _0xeafa4d=_0xd9ea97;super(),this[_0xeafa4d(0x14e)]=_0x38ea78,this['_injector']=_0x794021,this[_0xeafa4d(0x138)]=_0x6333bb,this[_0xeafa4d(0x149)]=_0xe202d0;let {..._0x581cc3}=_0x1239fb({},Z,this['_config']);this[_0xeafa4d(0x149)][_0xeafa4d(0x17f)](_0xeafa4d(0x153),_0x581cc3);}[_0xd9ea97(0x14b)](){const _0x191e72=_0xd9ea97;[[X,{'useClass':Te}]]['forEach'](_0x5cd6c4=>this[_0x191e72(0x151)][_0x191e72(0x14d)](_0x5cd6c4)),this[_0x191e72(0x15f)](this['_commandService']['registerCommand'](Ee));}};Y($,_0xd9ea97(0x15c),'UNIVER_INK_PLUGIN'),Y($,_0xd9ea97(0x196),Se),Y($,_0xd9ea97(0x161),Ce),Y($,_0xd9ea97(0x180),_0x42f687[_0xd9ea97(0x184)]),$=De([_0xbc0f6e(_0x42d00b),Q(0x1,_0x4e3a63(_0x5500c4)),Q(0x2,_0x16de20),Q(0x3,_0x3c718d)],$);export{X as IInkHostAdapterService,$ as UniverInkPlugin,xe as buildInkCustomShapePayload,oe as convertBrushModelToPenModel,P as cycleInkPenAnchorPointType,ue as deleteInkPenAnchor,se as findClosestInkPenHandle,ce as findClosestInkPenSegment,G as getInkModelBounds,ae as getInkPenPreviewModel,le as insertInkPenAnchorAt,E as isInkPenHandleVisible,F as moveInkPenAnchorPoint,N as setInkPenAnchorPointType};
|
|
1
|
+
const _0x4b144b=_0xa6e8;(function(_0x2a1230,_0x39b6f6){const _0x1a5676=_0xa6e8,_0x175688=_0x2a1230();while(!![]){try{const _0x3f02e8=-parseInt(_0x1a5676(0xc3))/0x1*(-parseInt(_0x1a5676(0x79))/0x2)+parseInt(_0x1a5676(0x91))/0x3+parseInt(_0x1a5676(0x9b))/0x4*(-parseInt(_0x1a5676(0xaa))/0x5)+parseInt(_0x1a5676(0xad))/0x6*(-parseInt(_0x1a5676(0xa0))/0x7)+parseInt(_0x1a5676(0x85))/0x8+-parseInt(_0x1a5676(0xbd))/0x9*(parseInt(_0x1a5676(0x99))/0xa)+parseInt(_0x1a5676(0x8e))/0xb;if(_0x3f02e8===_0x39b6f6)break;else _0x175688['push'](_0x175688['shift']());}catch(_0x27b4d0){_0x175688['push'](_0x175688['shift']());}}}(_0x5b48,0xdd1e3));import{ShapeFillEnum as _0x44a149,ShapeLineCapEnum as _0x16f41b,ShapeLineJoinEnum as _0x91310c,ShapeLineTypeEnum as _0x1adfb6,ShapeTypeEnum as _0x55f3a7}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x5be20a}from'@univerjs-pro/license';import{CommandType as _0x12267a,DependentOn as _0xdb0733,ICommandService as _0x42e8fe,IConfigService as _0x559208,Inject as _0x4c7430,Injector as _0x3cafb4,Plugin as _0x5aaff8,UniverInstanceType as _0x307cd7,createIdentifier as _0x2b9493,merge as _0x2c6874,toDisposable as _0x309fee}from'@univerjs/core';const g=0.0001;function _(_0x4244c9){return{'x':_0x4244c9['x'],'y':_0x4244c9['y']};}function v(_0x21d004){const _0x2f7f4b=_0xa6e8;return{..._0x21d004,'in':_0x21d004['in']?_(_0x21d004['in']):void 0x0,'out':_0x21d004[_0x2f7f4b(0x84)]?_(_0x21d004['out']):void 0x0};}function y(_0x33ee76){const _0x4909da=_0xa6e8;return{'kind':'pen','closed':_0x33ee76[_0x4909da(0x89)],'anchors':_0x33ee76[_0x4909da(0xae)][_0x4909da(0x86)](v)};}function b(_0x1e1978,_0x1da082,_0x2addd3){return{'x':_0x1e1978['x']+(_0x1da082['x']-_0x1e1978['x'])*_0x2addd3,'y':_0x1e1978['y']+(_0x1da082['y']-_0x1e1978['y'])*_0x2addd3};}function x(_0x3e455d,_0x43cf78){return Math['hypot'](_0x3e455d['x']-_0x43cf78['x'],_0x3e455d['y']-_0x43cf78['y']);}function S(_0x48dc8f){const _0x595ecb=_0xa6e8;let _0x2f8d1c=Math[_0x595ecb(0xa1)](_0x48dc8f['x'],_0x48dc8f['y']);return _0x2f8d1c<g?{'x':0x1,'y':0x0}:{'x':_0x48dc8f['x']/_0x2f8d1c,'y':_0x48dc8f['y']/_0x2f8d1c};}function C(_0x708df6,_0x3b9637,_0x18a5fa=x(_0x708df6,_0x3b9637)){let _0x2416fe=S({'x':_0x708df6['x']-_0x3b9637['x'],'y':_0x708df6['y']-_0x3b9637['y']});return{'x':_0x708df6['x']+_0x2416fe['x']*_0x18a5fa,'y':_0x708df6['y']+_0x2416fe['y']*_0x18a5fa};}function w(_0x3096fc,_0x18c15e){const _0x5beac4=_0xa6e8;let {anchors:_0x15474b}=_0x3096fc;return _0x15474b[_0x5beac4(0xab)]<0x2||_0x18c15e<0x0?null:_0x18c15e<_0x15474b[_0x5beac4(0xab)]-0x1?{'startIndex':_0x18c15e,'endIndex':_0x18c15e+0x1,'start':_0x15474b[_0x18c15e],'end':_0x15474b[_0x18c15e+0x1]}:_0x3096fc[_0x5beac4(0x89)]&&_0x18c15e===_0x15474b['length']-0x1?{'startIndex':_0x15474b[_0x5beac4(0xab)]-0x1,'endIndex':0x0,'start':_0x15474b[_0x15474b[_0x5beac4(0xab)]-0x1],'end':_0x15474b[0x0]}:null;}function T(_0x3f8dbe,_0x4e1269){const _0x328447=_0xa6e8;let _0x3af9eb=w(_0x3f8dbe,_0x4e1269);return _0x3af9eb?[_0x3af9eb[_0x328447(0xb4)],_0x3af9eb[_0x328447(0xb4)][_0x328447(0x84)]??_0x3af9eb[_0x328447(0xb4)],_0x3af9eb['end']['in']??_0x3af9eb['end'],_0x3af9eb['end']]:null;}function te(_0x7502a4,_0x2cfa0c){const _0x3f967b=_0xa6e8;return _0x2cfa0c===_0x3f967b(0x75)?_0x7502a4:_0x7502a4[_0x2cfa0c]??null;}function E(_0x257782,_0x1652f8,_0x1609f5){const _0x5b1a51=_0xa6e8;return _0x1609f5===_0x5b1a51(0x75)||_0x257782['closed']?!0x0:_0x1609f5==='in'?_0x1652f8>0x0:_0x1652f8<_0x257782[_0x5b1a51(0xae)]['length']-0x1;}function D(_0x10fb7e,_0x3ab2d1){let [_0x658ce3,_0x52bbad,_0x339528,_0x5c10ac]=_0x10fb7e,_0x5eeeec=b(_0x658ce3,_0x52bbad,_0x3ab2d1),_0x648467=b(_0x52bbad,_0x339528,_0x3ab2d1),_0x55b2d1=b(_0x339528,_0x5c10ac,_0x3ab2d1);return b(b(_0x5eeeec,_0x648467,_0x3ab2d1),b(_0x648467,_0x55b2d1,_0x3ab2d1),_0x3ab2d1);}function ne(_0x1b1c60,_0x149d2e){let [_0x16613b,_0x2060ac,_0x3e4b01,_0x1142bc]=_0x1b1c60,_0x8c15e1=b(_0x16613b,_0x2060ac,_0x149d2e),_0x14d81e=b(_0x2060ac,_0x3e4b01,_0x149d2e),_0x1bce4b=b(_0x3e4b01,_0x1142bc,_0x149d2e),_0x55935d=b(_0x8c15e1,_0x14d81e,_0x149d2e),_0x278c49=b(_0x14d81e,_0x1bce4b,_0x149d2e),_0x204881=b(_0x55935d,_0x278c49,_0x149d2e);return{'left':[_0x16613b,_0x8c15e1,_0x55935d,_0x204881],'right':[_0x204881,_0x278c49,_0x1bce4b,_0x1142bc]};}function _0xa6e8(_0x4c6af2,_0x481f79){_0x4c6af2=_0x4c6af2-0x6c;const _0x5b48bd=_0x5b48();let _0xa6e8b5=_0x5b48bd[_0x4c6af2];return _0xa6e8b5;}function O(_0xc66f48,_0x34747c,_0x598199){const _0x1c1541=_0xa6e8;let _0x9f2e71=_0x598199['x']-_0x34747c['x'],_0x51ea26=_0x598199['y']-_0x34747c['y'],_0x5ecf89=_0x9f2e71*_0x9f2e71+_0x51ea26*_0x51ea26,_0x278aa6=_0x5ecf89<=g?0x0:Math[_0x1c1541(0x71)](0x0,Math[_0x1c1541(0xb2)](0x1,((_0xc66f48['x']-_0x34747c['x'])*_0x9f2e71+(_0xc66f48['y']-_0x34747c['y'])*_0x51ea26)/_0x5ecf89)),_0x41d46a={'x':_0x34747c['x']+_0x9f2e71*_0x278aa6,'y':_0x34747c['y']+_0x51ea26*_0x278aa6};return{'point':_0x41d46a,'ratio':_0x278aa6,'distance':x(_0xc66f48,_0x41d46a)};}function re(_0x5ce28,_0x205545,_0x2b7952){const _0x481bb0=_0xa6e8;return O(_0x5ce28,_0x205545,_0x2b7952)[_0x481bb0(0xa7)]**0x2;}function k(_0x9e9a64,_0x5b2696){const _0x5b725c=_0xa6e8;if(_0x9e9a64['length']<=0x2)return _0x9e9a64[_0x5b725c(0x86)](_);let _0x4448ba=0x0,_0x31bdbc=0x0,_0x12d6df=_0x9e9a64[0x0],_0x489cb3=_0x9e9a64[_0x9e9a64[_0x5b725c(0xab)]-0x1],_0x20478a=_0x5b2696*_0x5b2696;for(let _0x12106f=0x1;_0x12106f<_0x9e9a64[_0x5b725c(0xab)]-0x1;_0x12106f++){let _0x1720f8=re(_0x9e9a64[_0x12106f],_0x12d6df,_0x489cb3);_0x1720f8>_0x4448ba&&(_0x4448ba=_0x1720f8,_0x31bdbc=_0x12106f);}if(_0x4448ba<=_0x20478a)return[_(_0x12d6df),_(_0x489cb3)];let _0x93676d=k(_0x9e9a64['slice'](0x0,_0x31bdbc+0x1),_0x5b2696),_0x5ea466=k(_0x9e9a64['slice'](_0x31bdbc),_0x5b2696);return[..._0x93676d['slice'](0x0,-0x1),..._0x5ea466];}function ie(_0x152fa7,_0x361223){let _0x17e805=_0x152fa7[_0x361223],_0x174a9a=_0x152fa7[_0x361223+0x1],_0x43da0f=_0x152fa7[_0x361223-0x1]??_0x17e805;return{'x':_0x17e805['x']+(_0x174a9a['x']-_0x43da0f['x'])/0x6,'y':_0x17e805['y']+(_0x174a9a['y']-_0x43da0f['y'])/0x6};}function A(_0x3ad810,_0x311c21){let _0x157760=_0x3ad810[_0x311c21],_0x5aee88=_0x3ad810[_0x311c21-0x1],_0xc75b2f=_0x3ad810[_0x311c21+0x1]??_0x157760;return{'x':_0x157760['x']-(_0xc75b2f['x']-_0x5aee88['x'])/0x6,'y':_0x157760['y']-(_0xc75b2f['y']-_0x5aee88['y'])/0x6};}function j(_0x41b2f0,_0x5f29a6){const _0xb9a749=_0xa6e8;let _0x37d3d8=_0x41b2f0[_0xb9a749(0xae)][_0x5f29a6],_0x18bdaa=_0x41b2f0['anchors'][_0x5f29a6-0x1]??(_0x41b2f0[_0xb9a749(0x89)]?_0x41b2f0[_0xb9a749(0xae)][_0x41b2f0[_0xb9a749(0xae)][_0xb9a749(0xab)]-0x1]:null),_0x4fb97b=_0x41b2f0['anchors'][_0x5f29a6+0x1]??(_0x41b2f0[_0xb9a749(0x89)]?_0x41b2f0['anchors'][0x0]:null),_0x372f85=_0x18bdaa&&_0x4fb97b?S({'x':_0x4fb97b['x']-_0x18bdaa['x'],'y':_0x4fb97b['y']-_0x18bdaa['y']}):_0x4fb97b?S({'x':_0x4fb97b['x']-_0x37d3d8['x'],'y':_0x4fb97b['y']-_0x37d3d8['y']}):_0x18bdaa?S({'x':_0x37d3d8['x']-_0x18bdaa['x'],'y':_0x37d3d8['y']-_0x18bdaa['y']}):{'x':0x1,'y':0x0},_0x4d75ac=_0x18bdaa&&_0x4fb97b?Math[_0xb9a749(0x71)](0x32,x(_0x18bdaa,_0x4fb97b)/0x4):0x32;return{'in':{'x':_0x37d3d8['x']-_0x372f85['x']*_0x4d75ac,'y':_0x37d3d8['y']-_0x372f85['y']*_0x4d75ac},'out':{'x':_0x37d3d8['x']+_0x372f85['x']*_0x4d75ac,'y':_0x37d3d8['y']+_0x372f85['y']*_0x4d75ac}};}function M(_0x4a2393,_0x3bef0c){const _0xd99315=_0xa6e8;let _0x1db5e2=_0x4a2393[_0x3bef0c],_0x4d2cfc=_0x3bef0c==='in'?_0xd99315(0x84):'in',_0x133777=_0x4a2393[_0x4d2cfc];if(_0x1db5e2){if(_0x4a2393['pointType']===_0xd99315(0xc4)){_0x4a2393[_0x4d2cfc]=C(_0x4a2393,_0x1db5e2);return;}_0x4a2393[_0xd99315(0xb5)]===_0xd99315(0x6c)&&(_0x4a2393[_0x4d2cfc]=C(_0x4a2393,_0x1db5e2,_0x133777?x(_0x4a2393,_0x133777):x(_0x4a2393,_0x1db5e2)));}}function ae(_0x4379d2,_0x1c426a){const _0x28d8ef=_0xa6e8;let _0x3cdce5=y(_0x4379d2);return!_0x1c426a||_0x3cdce5[_0x28d8ef(0x89)]||_0x3cdce5[_0x28d8ef(0xae)][_0x28d8ef(0xab)]===0x0||_0x3cdce5['anchors'][_0x28d8ef(0x7c)]({'id':'__ink-preview-anchor__','x':_0x1c426a['x'],'y':_0x1c426a['y'],'pointType':_0x28d8ef(0xa3)}),_0x3cdce5;}function oe(_0x3629c8,_0x36b824={}){const _0xa05bdb=_0xa6e8;let _0xc5962d=Math[_0xa05bdb(0x71)](0x0,_0x36b824[_0xa05bdb(0x82)]??Math[_0xa05bdb(0x71)](0x4,_0x3629c8[_0xa05bdb(0x9e)]*0.35)),_0x2022ed=_0x36b824['createId']??(_0x439bc3=>'ink-centerline-'+_0x439bc3),_0x12b038=k(_0x3629c8[_0xa05bdb(0x95)],_0xc5962d),_0x5e348e=_0x12b038[_0xa05bdb(0x86)]((_0x15b5fc,_0xb0f2f0)=>({'id':_0x2022ed(_0xb0f2f0),'x':_0x15b5fc['x'],'y':_0x15b5fc['y'],'pointType':'free'}));for(let _0x369496=0x0;_0x369496<_0x5e348e[_0xa05bdb(0xab)]-0x1;_0x369496++)_0x5e348e[_0x369496][_0xa05bdb(0x84)]=ie(_0x12b038,_0x369496),_0x5e348e[_0x369496+0x1]['in']=A(_0x12b038,_0x369496+0x1);return{'kind':_0xa05bdb(0x7e),'closed':!0x1,'anchors':_0x5e348e};}function se(_0x559961,_0x47a700,_0x1e5c53){const _0x19b0f5=_0xa6e8;let _0x24f5d7=null,_0x5ee64c=[_0x19b0f5(0x75),'in',_0x19b0f5(0x84)];return _0x559961['anchors'][_0x19b0f5(0xa9)]((_0xb9551f,_0x369961)=>{const _0x37480d=_0x19b0f5;_0x5ee64c[_0x37480d(0xa9)](_0x9f0abe=>{if(!E(_0x559961,_0x369961,_0x9f0abe))return;let _0x20636a=te(_0xb9551f,_0x9f0abe);if(!_0x20636a)return;let _0x4c15ad=x(_0x47a700,_0x20636a);_0x4c15ad>_0x1e5c53||_0x24f5d7&&_0x4c15ad>=_0x24f5d7['distance']||(_0x24f5d7={'handle':{'kind':_0x9f0abe,'anchorId':_0xb9551f['id']},'point':_(_0x20636a),'distance':_0x4c15ad});});}),_0x24f5d7;}function ce(_0x2b5382,_0x4b5907,_0x45b57f){const _0x551329=_0xa6e8;let _0x160df6=null,_0x1c6e42=_0x2b5382[_0x551329(0x89)]?_0x2b5382[_0x551329(0xae)]['length']:Math[_0x551329(0x71)](0x0,_0x2b5382[_0x551329(0xae)][_0x551329(0xab)]-0x1);for(let _0x19edd8=0x0;_0x19edd8<_0x1c6e42;_0x19edd8++){let _0x1a9c5c=T(_0x2b5382,_0x19edd8);if(!_0x1a9c5c)continue;let _0x40ac56=D(_0x1a9c5c,0x0);for(let _0x29d6d0=0x1;_0x29d6d0<=0x20;_0x29d6d0++){let _0x31bba2=D(_0x1a9c5c,_0x29d6d0/0x20),_0x34dff3=O(_0x4b5907,_0x40ac56,_0x31bba2),_0x66749=(_0x29d6d0-0x1+_0x34dff3[_0x551329(0x8a)])/0x20;(!_0x160df6||_0x34dff3['distance']<_0x160df6[_0x551329(0xa7)])&&(_0x160df6={'segmentIndex':_0x19edd8,'t':_0x66749,'point':_0x34dff3[_0x551329(0xac)],'distance':_0x34dff3[_0x551329(0xa7)]}),_0x40ac56=_0x31bba2;}}return _0x160df6&&_0x160df6[_0x551329(0xa7)]<=_0x45b57f?_0x160df6:null;}function le(_0x54cf5a,_0x1d8fa6,_0x234861){const _0x6321f2=_0xa6e8;let _0x251b04=y(_0x54cf5a),_0x2db2a2=w(_0x251b04,_0x1d8fa6[_0x6321f2(0x73)]),_0x3ef9c9=T(_0x251b04,_0x1d8fa6[_0x6321f2(0x73)]);if(!_0x2db2a2||!_0x3ef9c9)return _0x251b04;let _0x153c36=ne(_0x3ef9c9,Math[_0x6321f2(0x71)](0x0,Math[_0x6321f2(0xb2)](0x1,_0x1d8fa6['t']))),_0x5094df={'id':_0x234861(),'x':_0x153c36[_0x6321f2(0xb3)][0x3]['x'],'y':_0x153c36['left'][0x3]['y'],'in':_(_0x153c36[_0x6321f2(0xb3)][0x2]),'out':_(_0x153c36[_0x6321f2(0x81)][0x1]),'pointType':_0x6321f2(0xb8)};return _0x251b04['anchors'][_0x2db2a2['startIndex']][_0x6321f2(0x84)]=_(_0x153c36[_0x6321f2(0xb3)][0x1]),_0x251b04[_0x6321f2(0xae)][_0x2db2a2['endIndex']]['in']=_(_0x153c36[_0x6321f2(0x81)][0x2]),_0x251b04[_0x6321f2(0xae)]['splice'](_0x2db2a2['startIndex']+0x1,0x0,_0x5094df),_0x251b04;}function ue(_0x2e4d6d,_0x284c08){const _0x5bdb71=_0xa6e8;let _0x392943=y(_0x2e4d6d);return _0x392943[_0x5bdb71(0xae)]=_0x392943[_0x5bdb71(0xae)][_0x5bdb71(0x98)](_0x99e245=>_0x99e245['id']!==_0x284c08),_0x392943[_0x5bdb71(0x89)]&&_0x392943[_0x5bdb71(0xae)][_0x5bdb71(0xab)]<0x3&&(_0x392943[_0x5bdb71(0x89)]=!0x1),_0x392943;}function N(_0x121236,_0x3410c8,_0x5e7aeb){const _0x3d1e0f=_0xa6e8;let _0x1dc4cd=y(_0x121236),_0x23f969=_0x1dc4cd[_0x3d1e0f(0xae)][_0x3d1e0f(0x7f)](_0xa9c6f8=>_0xa9c6f8['id']===_0x3410c8),_0x527baa=_0x1dc4cd['anchors'][_0x23f969];if(!_0x527baa)return _0x1dc4cd;if(_0x527baa[_0x3d1e0f(0xb5)]=_0x5e7aeb,_0x5e7aeb===_0x3d1e0f(0xa3))return delete _0x527baa['in'],delete _0x527baa['out'],_0x1dc4cd;let _0x44c50c=j(_0x1dc4cd,_0x23f969);if(_0x527baa['in']=_0x527baa['in']?_(_0x527baa['in']):_0x44c50c['in'],_0x527baa[_0x3d1e0f(0x84)]=_0x527baa['out']?_(_0x527baa[_0x3d1e0f(0x84)]):_0x44c50c[_0x3d1e0f(0x84)],_0x5e7aeb===_0x3d1e0f(0xc4)){let _0x17a71c=Math[_0x3d1e0f(0x71)](x(_0x527baa,_0x527baa['in']),x(_0x527baa,_0x527baa[_0x3d1e0f(0x84)]),0x32),_0x490154=S({'x':_0x527baa[_0x3d1e0f(0x84)]['x']-_0x527baa['x'],'y':_0x527baa[_0x3d1e0f(0x84)]['y']-_0x527baa['y']});_0x527baa[_0x3d1e0f(0x84)]={'x':_0x527baa['x']+_0x490154['x']*_0x17a71c,'y':_0x527baa['y']+_0x490154['y']*_0x17a71c},_0x527baa['in']={'x':_0x527baa['x']-_0x490154['x']*_0x17a71c,'y':_0x527baa['y']-_0x490154['y']*_0x17a71c};}else _0x5e7aeb===_0x3d1e0f(0x6c)&&M(_0x527baa,_0x3d1e0f(0x84));return _0x1dc4cd;}function P(_0x2531db,_0x44a56c){const _0x3e3248=_0xa6e8;let _0x2d75d6=_0x2531db['anchors'][_0x3e3248(0x8d)](_0x2ff419=>_0x2ff419['id']===_0x44a56c),_0x358b30=(_0x2d75d6==null?void 0x0:_0x2d75d6['pointType'])??_0x3e3248(0xa3);return N(_0x2531db,_0x44a56c,_0x358b30===_0x3e3248(0xa3)?_0x3e3248(0x6c):_0x358b30===_0x3e3248(0x6c)?'symmetric':_0x358b30==='symmetric'?_0x3e3248(0xb8):'corner');}function F(_0x2d1047,_0x544e0c,_0xfc8ada){const _0x2355e6=_0xa6e8;let _0x4cc9e3=y(_0x2d1047),_0x23be65=_0x4cc9e3[_0x2355e6(0xae)][_0x2355e6(0x8d)](_0x611f7f=>_0x611f7f['id']===_0x544e0c[_0x2355e6(0xb1)]);if(!_0x23be65)return _0x4cc9e3;if(_0x544e0c[_0x2355e6(0x7d)]===_0x2355e6(0x75)){let _0x563207={'x':_0xfc8ada['x']-_0x23be65['x'],'y':_0xfc8ada['y']-_0x23be65['y']};return _0x23be65['x']=_0xfc8ada['x'],_0x23be65['y']=_0xfc8ada['y'],_0x23be65['in']&&={'x':_0x23be65['in']['x']+_0x563207['x'],'y':_0x23be65['in']['y']+_0x563207['y']},_0x23be65[_0x2355e6(0x84)]&&={'x':_0x23be65['out']['x']+_0x563207['x'],'y':_0x23be65[_0x2355e6(0x84)]['y']+_0x563207['y']},_0x4cc9e3;}return _0x23be65[_0x544e0c[_0x2355e6(0x7d)]]=_(_0xfc8ada),_0x23be65[_0x2355e6(0xb5)]===_0x2355e6(0xa3)&&(_0x23be65[_0x2355e6(0xb5)]='free'),M(_0x23be65,_0x544e0c[_0x2355e6(0x7d)]),_0x4cc9e3;}const I=1e-9;function L(_0x2a8fa1){const _0x1bf56f=_0xa6e8;let _0x2b4c95=Math[_0x1bf56f(0x74)](_0x2a8fa1*0x2710)/0x2710;return Object['is'](_0x2b4c95,-0x0)?'0':String(_0x2b4c95);}function R(_0x2daf38){return L(_0x2daf38['x'])+'\x20'+L(_0x2daf38['y']);}function z(_0x172cc6,_0x4605c2){return{'x':_0x172cc6['x']-_0x4605c2['x'],'y':_0x172cc6['y']-_0x4605c2['y']};}function B(_0x2dcfaf,_0x362f06,_0x2c99a3,_0x182b2f,_0x5c350f){let _0x4037ad=0x1-_0x5c350f;return{'x':_0x4037ad*_0x4037ad*_0x4037ad*_0x2dcfaf['x']+0x3*_0x4037ad*_0x4037ad*_0x5c350f*_0x362f06['x']+0x3*_0x4037ad*_0x5c350f*_0x5c350f*_0x2c99a3['x']+_0x5c350f*_0x5c350f*_0x5c350f*_0x182b2f['x'],'y':_0x4037ad*_0x4037ad*_0x4037ad*_0x2dcfaf['y']+0x3*_0x4037ad*_0x4037ad*_0x5c350f*_0x362f06['y']+0x3*_0x4037ad*_0x5c350f*_0x5c350f*_0x2c99a3['y']+_0x5c350f*_0x5c350f*_0x5c350f*_0x182b2f['y']};}function V(_0x1fd8e7,_0x439b6d,_0x46c724,_0x453352){const _0xc2e663=_0xa6e8;let _0x4de1d2=-_0x1fd8e7+0x3*_0x439b6d-0x3*_0x46c724+_0x453352,_0x3606a9=0x3*_0x1fd8e7-0x6*_0x439b6d+0x3*_0x46c724,_0x2b73ba=-0x3*_0x1fd8e7+0x3*_0x439b6d,_0xcb7972=[];if(Math[_0xc2e663(0x96)](_0x4de1d2)<I){if(Math['abs'](_0x3606a9)<I)return _0xcb7972;let _0x192e2b=-_0x2b73ba/(0x2*_0x3606a9);return _0x192e2b>0x0&&_0x192e2b<0x1&&_0xcb7972['push'](_0x192e2b),_0xcb7972;}let _0x52dfec=_0x3606a9*_0x3606a9-0x3*_0x4de1d2*_0x2b73ba;if(_0x52dfec<0x0)return _0xcb7972;let _0xc68246=Math[_0xc2e663(0x97)](Math[_0xc2e663(0x71)](0x0,_0x52dfec)),_0x3df083=(-_0x3606a9+_0xc68246)/(0x3*_0x4de1d2),_0x3e6a57=(-_0x3606a9-_0xc68246)/(0x3*_0x4de1d2);return _0x3df083>0x0&&_0x3df083<0x1&&_0xcb7972[_0xc2e663(0x7c)](_0x3df083),_0x3e6a57>0x0&&_0x3e6a57<0x1&&Math[_0xc2e663(0x96)](_0x3e6a57-_0x3df083)>I&&_0xcb7972[_0xc2e663(0x7c)](_0x3e6a57),_0xcb7972;}function H(_0xcefa55,_0x999634,_0x49742d,_0x3e1ead,_0x501b2e){const _0x1fd5a4=_0xa6e8;_0xcefa55[_0x1fd5a4(0x7c)](_0x999634,_0x501b2e),new Set([...V(_0x999634['x'],_0x49742d['x'],_0x3e1ead['x'],_0x501b2e['x']),...V(_0x999634['y'],_0x49742d['y'],_0x3e1ead['y'],_0x501b2e['y'])])[_0x1fd5a4(0xa9)](_0x7740c1=>{const _0x33457f=_0x1fd5a4;_0xcefa55[_0x33457f(0x7c)](B(_0x999634,_0x49742d,_0x3e1ead,_0x501b2e,_0x7740c1));});}function U(_0x3a410b){const _0x1eaf77=_0xa6e8;let _0x343701=_0x3a410b[_0x1eaf77(0xae)];if(_0x343701[_0x1eaf77(0xab)]<=0x1)return _0x343701;let _0x3cebf3=[];for(let _0x23d098=0x1;_0x23d098<_0x343701[_0x1eaf77(0xab)];_0x23d098++){let _0x289780=_0x343701[_0x23d098-0x1],_0x1261ad=_0x343701[_0x23d098];H(_0x3cebf3,_0x289780,_0x289780['out']??_0x289780,_0x1261ad['in']??_0x1261ad,_0x1261ad);}if(_0x3a410b[_0x1eaf77(0x89)]&&_0x343701['length']>0x1){let _0x523b9a=_0x343701[_0x343701[_0x1eaf77(0xab)]-0x1],_0x3cd466=_0x343701[0x0];H(_0x3cebf3,_0x523b9a,_0x523b9a[_0x1eaf77(0x84)]??_0x523b9a,_0x3cd466['in']??_0x3cd466,_0x3cd466);}return _0x3cebf3;}function de(_0xd4d8e5){const _0x4f95fe=_0xa6e8;let _0x52ab0c=_0xd4d8e5[_0x4f95fe(0x95)];if(_0x52ab0c[_0x4f95fe(0xab)]<=0x1)return _0x52ab0c;let _0x510fe5=[];for(let _0x57cef9=0x0;_0x57cef9<_0x52ab0c[_0x4f95fe(0xab)]-0x1;_0x57cef9++){let _0x54c8f1=_0x52ab0c[_0x57cef9],_0x1fce4c=_0x52ab0c[_0x57cef9+0x1],_0x158d07=_0x52ab0c[_0x57cef9-0x1]??_0x54c8f1,_0x1e7ca8=_0x52ab0c[_0x57cef9+0x2]??_0x1fce4c;H(_0x510fe5,_0x54c8f1,{'x':_0x54c8f1['x']+(_0x1fce4c['x']-_0x158d07['x'])/0x6,'y':_0x54c8f1['y']+(_0x1fce4c['y']-_0x158d07['y'])/0x6},{'x':_0x1fce4c['x']-(_0x1e7ca8['x']-_0x54c8f1['x'])/0x6,'y':_0x1fce4c['y']-(_0x1e7ca8['y']-_0x54c8f1['y'])/0x6},_0x1fce4c);}return _0x510fe5;}function fe(_0x3f83fc){const _0x5a6c0d=_0xa6e8;return _0x3f83fc[_0x5a6c0d(0x7d)]===_0x5a6c0d(0x7e)?U(_0x3f83fc):de(_0x3f83fc);}function W(_0x3c69e3){const _0x1fabc5=_0xa6e8;let _0x3b9b72=Math[_0x1fabc5(0x74)](_0x3c69e3*0x2710)/0x2710;return Object['is'](_0x3b9b72,-0x0)?0x0:_0x3b9b72;}function G(_0x19f094){const _0x1d802a=_0xa6e8;let _0x27edcd=fe(_0x19f094);if(_0x27edcd[_0x1d802a(0xab)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x2c75d2=Math[_0x1d802a(0xb2)](..._0x27edcd[_0x1d802a(0x86)](_0x77b9bb=>_0x77b9bb['x'])),_0x5771bd=Math[_0x1d802a(0xb2)](..._0x27edcd[_0x1d802a(0x86)](_0x4de94d=>_0x4de94d['y'])),_0x5ed010=Math[_0x1d802a(0x71)](..._0x27edcd['map'](_0x2dce57=>_0x2dce57['x'])),_0x4f621b=Math[_0x1d802a(0x71)](..._0x27edcd['map'](_0x553ef3=>_0x553ef3['y']));return{'left':W(_0x2c75d2),'top':W(_0x5771bd),'width':W(Math[_0x1d802a(0x71)](0x1,_0x5ed010-_0x2c75d2)),'height':W(Math[_0x1d802a(0x71)](0x1,_0x4f621b-_0x5771bd))};}function pe(_0x5afb8a,_0x679f8b){const _0x2a9398=_0xa6e8;let _0xa7ed8d=_0x5afb8a['anchors'];if(_0xa7ed8d[_0x2a9398(0xab)]===0x0)return'';let _0x25ff72=['M\x20'+R(z(_0xa7ed8d[0x0],_0x679f8b))];for(let _0xce010f=0x1;_0xce010f<_0xa7ed8d['length'];_0xce010f++){let _0x3a3a84=_0xa7ed8d[_0xce010f-0x1],_0x4c4095=_0xa7ed8d[_0xce010f],_0x30ec4c=_0x3a3a84[_0x2a9398(0x84)]??_0x3a3a84,_0x8b2a41=_0x4c4095['in']??_0x4c4095;_0x25ff72[_0x2a9398(0x7c)]('C\x20'+R(z(_0x30ec4c,_0x679f8b))+'\x20'+R(z(_0x8b2a41,_0x679f8b))+'\x20'+R(z(_0x4c4095,_0x679f8b)));}if(_0x5afb8a[_0x2a9398(0x89)]&&_0xa7ed8d[_0x2a9398(0xab)]>0x1){let _0x35bf97=_0xa7ed8d[_0xa7ed8d['length']-0x1],_0x5a3504=_0xa7ed8d[0x0],_0x76d188=_0x35bf97[_0x2a9398(0x84)]??_0x35bf97,_0x1cf5db=_0x5a3504['in']??_0x5a3504;_0x25ff72[_0x2a9398(0x7c)]('C\x20'+R(z(_0x76d188,_0x679f8b))+'\x20'+R(z(_0x1cf5db,_0x679f8b))+'\x20'+R(z(_0x5a3504,_0x679f8b))),_0x25ff72[_0x2a9398(0x7c)]('Z');}return _0x25ff72[_0x2a9398(0x72)]('\x20');}function me(_0x145651,_0x307647){const _0x42b032=_0xa6e8;let _0x3dcd33=_0x145651['points'][_0x42b032(0x86)](_0xb6ffcb=>z(_0xb6ffcb,_0x307647));if(_0x3dcd33[_0x42b032(0xab)]===0x0)return'';if(_0x3dcd33[_0x42b032(0xab)]===0x1)return'M\x20'+R(_0x3dcd33[0x0]);let _0x1033d0=['M\x20'+R(_0x3dcd33[0x0])];for(let _0x14a3f3=0x0;_0x14a3f3<_0x3dcd33[_0x42b032(0xab)]-0x1;_0x14a3f3++){let _0x34f98c=_0x3dcd33[_0x14a3f3],_0x28b907=_0x3dcd33[_0x14a3f3+0x1],_0x32a1a3=_0x3dcd33[_0x14a3f3-0x1]??_0x34f98c,_0x4e9d01=_0x3dcd33[_0x14a3f3+0x2]??_0x28b907,_0x5e70c7={'x':_0x34f98c['x']+(_0x28b907['x']-_0x32a1a3['x'])/0x6,'y':_0x34f98c['y']+(_0x28b907['y']-_0x32a1a3['y'])/0x6},_0x3dd837={'x':_0x28b907['x']-(_0x4e9d01['x']-_0x34f98c['x'])/0x6,'y':_0x28b907['y']-(_0x4e9d01['y']-_0x34f98c['y'])/0x6};_0x1033d0['push']('C\x20'+R(_0x5e70c7)+'\x20'+R(_0x3dd837)+'\x20'+R(_0x28b907));}return _0x1033d0['join']('\x20');}function he(_0xd7c84d,_0x431852){const _0x58ee8e=_0xa6e8;return _0xd7c84d[_0x58ee8e(0x7d)]===_0x58ee8e(0x7e)?pe(_0xd7c84d,_0x431852):me(_0xd7c84d,_0x431852);}function ge(_0x4d23d9,_0x255e18){const _0x5af349=_0xa6e8;return _0x255e18!=null&&_0x255e18['color']?_0x255e18[_0x5af349(0x9d)]:_0x4d23d9[_0x5af349(0x7d)]==='pen'?_0x5af349(0x76):_0x4d23d9[_0x5af349(0x9d)];}function _e(_0xac9607,_0x5a5b79){const _0xe23c66=_0xa6e8;return(_0x5a5b79==null?void 0x0:_0x5a5b79['width'])===void 0x0?_0xac9607['kind']===_0xe23c66(0x7e)?0x2:_0xac9607[_0xe23c66(0x9e)]:_0x5a5b79[_0xe23c66(0x9e)];}function ve(_0x1ff6f6,_0x3cd9be){const _0x3504cf=_0xa6e8;return(_0x3cd9be==null?void 0x0:_0x3cd9be[_0x3504cf(0xa8)])===void 0x0?_0x1ff6f6[_0x3504cf(0x7d)]==='pen'?void 0x0:_0x1ff6f6[_0x3504cf(0xa8)]:_0x3cd9be[_0x3504cf(0xa8)];}function ye(_0x4b3432,_0x4834e4){const _0x37b7c3=_0xa6e8;let _0x107ee4=G(_0x4b3432),_0x10ea17=he(_0x4b3432,{'x':_0x107ee4['left'],'y':_0x107ee4['top']}),_0x3e021=_0x4b3432[_0x37b7c3(0x7d)]===_0x37b7c3(0x7e)&&_0x4b3432['closed'],_0x26f87d=_0x4834e4==null?void 0x0:_0x4834e4['fillColor'];return{'shapeType':_0x55f3a7[_0x37b7c3(0xc1)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x107ee4[_0x37b7c3(0x9e)],'h':_0x107ee4[_0x37b7c3(0xc0)],'fill':_0x3e021?_0x37b7c3(0xbc):'none','stroke':!0x0,'data':_0x10ea17,'dataArray':be(_0x4b3432,{'x':_0x107ee4[_0x37b7c3(0xb3)],'y':_0x107ee4['top']})}]},'fill':_0x3e021&&_0x26f87d?{'color':_0x26f87d,'fillType':_0x44a149[_0x37b7c3(0xbf)]}:{'fillType':_0x44a149[_0x37b7c3(0x8b)]},'stroke':{'color':ge(_0x4b3432,_0x4834e4),'width':_e(_0x4b3432,_0x4834e4),'opacity':ve(_0x4b3432,_0x4834e4),'lineStrokeType':_0x1adfb6[_0x37b7c3(0xb7)],'capType':_0x16f41b[_0x37b7c3(0x80)],'lineJoinType':_0x91310c[_0x37b7c3(0x80)]}};}function K(_0x1b9ca0,_0x329d51){return{'x':_0x1b9ca0['x']-_0x329d51['x'],'y':_0x1b9ca0['y']-_0x329d51['y']};}function be(_0x46806c,_0xc6f0a9){const _0x1e4b4c=_0xa6e8;if(_0x46806c[_0x1e4b4c(0x7d)]===_0x1e4b4c(0x7e)){let _0x5db4d2=_0x46806c[_0x1e4b4c(0xae)];if(_0x5db4d2['length']===0x0)return[];let _0x2489ff=K(_0x5db4d2[0x0],_0xc6f0a9),_0x188b67=[{'command':'M','points':[_0x2489ff['x'],_0x2489ff['y']]}];for(let _0x6acf4=0x1;_0x6acf4<_0x5db4d2[_0x1e4b4c(0xab)];_0x6acf4++){let _0x456655=_0x5db4d2[_0x6acf4-0x1],_0xcf59e0=_0x5db4d2[_0x6acf4],_0x161716=K(_0x456655[_0x1e4b4c(0x84)]??_0x456655,_0xc6f0a9),_0x304f88=K(_0xcf59e0['in']??_0xcf59e0,_0xc6f0a9),_0x21cde8=K(_0xcf59e0,_0xc6f0a9);_0x188b67['push']({'command':'C','points':[_0x161716['x'],_0x161716['y'],_0x304f88['x'],_0x304f88['y'],_0x21cde8['x'],_0x21cde8['y']]});}if(_0x46806c['closed']&&_0x5db4d2[_0x1e4b4c(0xab)]>0x1){let _0x50979d=_0x5db4d2[_0x5db4d2[_0x1e4b4c(0xab)]-0x1],_0x20a745=_0x5db4d2[0x0],_0x28db01=K(_0x50979d['out']??_0x50979d,_0xc6f0a9),_0x4af0c7=K(_0x20a745['in']??_0x20a745,_0xc6f0a9),_0x52015c=K(_0x20a745,_0xc6f0a9);_0x188b67[_0x1e4b4c(0x7c)]({'command':'C','points':[_0x28db01['x'],_0x28db01['y'],_0x4af0c7['x'],_0x4af0c7['y'],_0x52015c['x'],_0x52015c['y']]}),_0x188b67[_0x1e4b4c(0x7c)]({'command':'z','points':[]});}return _0x188b67;}let _0x4de5c7=_0x46806c[_0x1e4b4c(0x95)][_0x1e4b4c(0x86)](_0x1b930e=>K(_0x1b930e,_0xc6f0a9));if(_0x4de5c7[_0x1e4b4c(0xab)]===0x0)return[];let _0x24ee85=[{'command':'M','points':[_0x4de5c7[0x0]['x'],_0x4de5c7[0x0]['y']]}];for(let _0xdd5641=0x0;_0xdd5641<_0x4de5c7[_0x1e4b4c(0xab)]-0x1;_0xdd5641++){let _0x2d9c8a=_0x4de5c7[_0xdd5641],_0x214f24=_0x4de5c7[_0xdd5641+0x1],_0x1afe45=_0x4de5c7[_0xdd5641-0x1]??_0x2d9c8a,_0x11fb33=_0x4de5c7[_0xdd5641+0x2]??_0x214f24,_0xc2fde6={'x':_0x2d9c8a['x']+(_0x214f24['x']-_0x1afe45['x'])/0x6,'y':_0x2d9c8a['y']+(_0x214f24['y']-_0x1afe45['y'])/0x6},_0x3ed11b={'x':_0x214f24['x']-(_0x11fb33['x']-_0x2d9c8a['x'])/0x6,'y':_0x214f24['y']-(_0x11fb33['y']-_0x2d9c8a['y'])/0x6};_0x24ee85[_0x1e4b4c(0x7c)]({'command':'C','points':[_0xc2fde6['x'],_0xc2fde6['y'],_0x3ed11b['x'],_0x3ed11b['y'],_0x214f24['x'],_0x214f24['y']]});}return _0x24ee85;}function xe(_0x3d5ba3){const _0x3e6d86=_0xa6e8;let {model:_0x19f146,sourceModel:_0x5b03c9=_0x19f146,style:_0x51cf1a}=_0x3d5ba3,_0x85a45e=_0x3d5ba3['tool']??_0x19f146[_0x3e6d86(0x7d)],_0x1c2615=G(_0x19f146),_0x33152b=_0x19f146['kind']==='pen'&&_0x85a45e!=='pen'?_0x19f146:void 0x0;return{'transform':{..._0x1c2615,'rotation':0x0},'shapeData':ye(_0x19f146,_0x51cf1a),'ink':{'version':0x1,'tool':_0x85a45e,'sourceModel':_0x5b03c9,..._0x33152b?{'editModel':_0x33152b}:{},'normalizedBounds':_0x1c2615}};}var Se='@univerjs-pro/ink',Ce=_0x4b144b(0xa5);function q(_0x1facf5){'@babel/helpers - typeof';const _0x570018=_0x4b144b;return q=typeof Symbol==_0x570018(0xba)&&typeof Symbol[_0x570018(0xbe)]==_0x570018(0x7b)?function(_0x3d1981){return typeof _0x3d1981;}:function(_0x5223b3){const _0x5d211b=_0x570018;return _0x5223b3&&typeof Symbol=='function'&&_0x5223b3[_0x5d211b(0xbb)]===Symbol&&_0x5223b3!==Symbol[_0x5d211b(0xaf)]?_0x5d211b(0x7b):typeof _0x5223b3;},q(_0x1facf5);}function we(_0x10985f,_0x14ecdf){const _0x558d0d=_0x4b144b;if(q(_0x10985f)!='object'||!_0x10985f)return _0x10985f;var _0x10ab46=_0x10985f[Symbol[_0x558d0d(0x9c)]];if(_0x10ab46!==void 0x0){var _0x1be331=_0x10ab46['call'](_0x10985f,_0x14ecdf||_0x558d0d(0xa2));if(q(_0x1be331)!=_0x558d0d(0x93))return _0x1be331;throw TypeError(_0x558d0d(0x94));}return(_0x14ecdf===_0x558d0d(0x6d)?String:Number)(_0x10985f);}function J(_0x1da09a){const _0x472dfa=_0x4b144b;var _0x18a3eb=we(_0x1da09a,_0x472dfa(0x6d));return q(_0x18a3eb)==_0x472dfa(0x7b)?_0x18a3eb:_0x18a3eb+'';}function _0x5b48(){const _0x15659d=['out','363544uTiaLF','map','ink.config','beginInkMode','closed','ratio','NoFill','indexOf','find','17996979anZsDx','_commandService','registerCommand','3074907mvsAeo','createCustomShape','object','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','points','abs','sqrt','filter','1475490ZiIDgV','disposeWithMe','4qzUpMU','toPrimitive','color','width','splice','4298HiufEU','hypot','default','corner','onStarting','1.0.0-beta.0','_config','distance','opacity','forEach','3558775YdBCum','length','point','17196CDtEdj','anchors','prototype','registerAdapter','anchorId','min','left','start','pointType','decorate','SolidLine','free','_adapters','function','constructor','norm','9ZJDHWX','iterator','SolidFill','height','Rect','ink.operation.start','409113mVOQtx','symmetric','smooth','string','defineProperty','setConfig','add','max','join','segmentIndex','round','anchor','#f54a45','_configService','_injector','4wCnkGp','version','symbol','push','kind','pen','findIndex','Round','right','tolerance','type'];_0x5b48=function(){return _0x15659d;};return _0x5b48();}function Y(_0x2cd039,_0x49203b,_0x57474e){const _0x318249=_0x4b144b;return(_0x49203b=J(_0x49203b))in _0x2cd039?Object[_0x318249(0x6e)](_0x2cd039,_0x49203b,{'value':_0x57474e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2cd039[_0x49203b]=_0x57474e,_0x2cd039;}const X=_0x2b9493('ink.host-adapter.service');var Te=class{constructor(){const _0x2e3e3e=_0x4b144b;Y(this,_0x2e3e3e(0xb9),[]);}[_0x4b144b(0xb0)](_0x58364a){const _0x57712d=_0x4b144b;return this['_adapters'][_0x57712d(0x7c)](_0x58364a),_0x309fee(()=>{const _0x5dcfce=_0x57712d;let _0x1f35d4=this[_0x5dcfce(0xb9)][_0x5dcfce(0x8c)](_0x58364a);_0x1f35d4>=0x0&&this['_adapters'][_0x5dcfce(0x9f)](_0x1f35d4,0x1);});}[_0x4b144b(0x88)](_0x1b0518){const _0x50e357=_0x4b144b;for(let _0x512cb6 of this[_0x50e357(0xb9)])if(_0x512cb6[_0x50e357(0x88)](_0x1b0518))return!0x0;return!0x1;}async['createCustomShape'](_0x13597d){const _0x3a3d88=_0x4b144b;for(let _0x506fed of this[_0x3a3d88(0xb9)])if(_0x506fed[_0x3a3d88(0x92)]&&await _0x506fed[_0x3a3d88(0x92)](_0x13597d))return!0x0;return!0x1;}};const Ee={'id':_0x4b144b(0xc2),'type':_0x12267a['OPERATION'],'handler':(_0x356ada,_0x5a3929)=>_0x5a3929?_0x356ada['get'](X)[_0x4b144b(0x88)](_0x5a3929):!0x1},Z={};function Q(_0x30f070,_0x153c22){return function(_0x1d3163,_0x4315c8){_0x153c22(_0x1d3163,_0x4315c8,_0x30f070);};}function De(_0x44ef33,_0x510c25,_0x394c76,_0x41c613){const _0x5e2564=_0x4b144b;var _0x29a518=arguments[_0x5e2564(0xab)],_0xffb34d=_0x29a518<0x3?_0x510c25:_0x41c613===null?_0x41c613=Object['getOwnPropertyDescriptor'](_0x510c25,_0x394c76):_0x41c613,_0x1fbf81;if(typeof Reflect==_0x5e2564(0x93)&&typeof Reflect['decorate']==_0x5e2564(0xba))_0xffb34d=Reflect[_0x5e2564(0xb6)](_0x44ef33,_0x510c25,_0x394c76,_0x41c613);else{for(var _0x2a8d54=_0x44ef33[_0x5e2564(0xab)]-0x1;_0x2a8d54>=0x0;_0x2a8d54--)(_0x1fbf81=_0x44ef33[_0x2a8d54])&&(_0xffb34d=(_0x29a518<0x3?_0x1fbf81(_0xffb34d):_0x29a518>0x3?_0x1fbf81(_0x510c25,_0x394c76,_0xffb34d):_0x1fbf81(_0x510c25,_0x394c76))||_0xffb34d);}return _0x29a518>0x3&&_0xffb34d&&Object['defineProperty'](_0x510c25,_0x394c76,_0xffb34d),_0xffb34d;}let $=class extends _0x5aaff8{constructor(_0x4b7fe9=Z,_0x3855a4,_0x24d6c2,_0x4c05b7){const _0x541eb5=_0x4b144b;super(),this[_0x541eb5(0xa6)]=_0x4b7fe9,this[_0x541eb5(0x78)]=_0x3855a4,this[_0x541eb5(0x8f)]=_0x24d6c2,this[_0x541eb5(0x77)]=_0x4c05b7;let {..._0x98179d}=_0x2c6874({},Z,this['_config']);this['_configService'][_0x541eb5(0x6f)](_0x541eb5(0x87),_0x98179d);}[_0x4b144b(0xa4)](){const _0x52e5d0=_0x4b144b;[[X,{'useClass':Te}]][_0x52e5d0(0xa9)](_0x423632=>this['_injector'][_0x52e5d0(0x70)](_0x423632)),this[_0x52e5d0(0x9a)](this[_0x52e5d0(0x8f)][_0x52e5d0(0x90)](Ee));}};Y($,'pluginName','UNIVER_INK_PLUGIN'),Y($,'packageName',Se),Y($,_0x4b144b(0x7a),Ce),Y($,_0x4b144b(0x83),_0x307cd7['UNIVER_UNKNOWN']),$=De([_0xdb0733(_0x5be20a),Q(0x1,_0x4c7430(_0x3cafb4)),Q(0x2,_0x42e8fe),Q(0x3,_0x559208)],$);export{X as IInkHostAdapterService,$ as UniverInkPlugin,xe as buildInkCustomShapePayload,oe as convertBrushModelToPenModel,P as cycleInkPenAnchorPointType,ue as deleteInkPenAnchor,se as findClosestInkPenHandle,ce as findClosestInkPenSegment,G as getInkModelBounds,ae as getInkPenPreviewModel,le as insertInkPenAnchorAt,E as isInkPenHandleVisible,F as moveInkPenAnchorPoint,N as setInkPenAnchorPointType};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x10deff=_0x9ffd;(function(_0x240102,_0x1d0053){const _0x39082d=_0x9ffd,_0x434859=_0x240102();while(!![]){try{const _0x2bc20e=parseInt(_0x39082d(0xe1))/0x1+-parseInt(_0x39082d(0xfe))/0x2*(-parseInt(_0x39082d(0xdf))/0x3)+-parseInt(_0x39082d(0xe4))/0x4+parseInt(_0x39082d(0x100))/0x5+-parseInt(_0x39082d(0xe8))/0x6*(-parseInt(_0x39082d(0x107))/0x7)+-parseInt(_0x39082d(0xf9))/0x8*(parseInt(_0x39082d(0xea))/0x9)+-parseInt(_0x39082d(0xe6))/0xa;if(_0x2bc20e===_0x1d0053)break;else _0x434859['push'](_0x434859['shift']());}catch(_0x57ed82){_0x434859['push'](_0x434859['shift']());}}}(_0x5deb,0x67fa3));import{BoardElementType as _0x2fca1a}from'@univerjs-pro/boards';import{FBoard as _0x5d619f}from'@univerjs-pro/boards/facade';import{buildInkCustomShapePayload as _0x4d2eb1}from'@univerjs-pro/ink';import{Tools as _0x16901a,generateRandomId as _0x1905fc}from'@univerjs/core';import{FEnum as _0x395991}from'@univerjs/core/facade';var o=class extends _0x5d619f{['insertInk'](_0xc08a26){const _0x408c6e=_0x9ffd;let _0x9336ee=s(_0xc08a26);return _0x9336ee&&this['_addElement'](_0x9336ee,{'insertIndex':_0xc08a26[_0x408c6e(0x106)]})?_0x9336ee:null;}[_0x10deff(0x10a)](){const _0x38884d=_0x10deff;return this[_0x38884d(0xf3)]({'elementType':_0x2fca1a['Shape'],'includeHidden':!0x0,'includeLocked':!0x0})[_0x38884d(0xef)](p);}};function s(_0x6f98d3,_0x4354c8){const _0x4d9e72=_0x10deff;if(!l(_0x6f98d3[_0x4d9e72(0xfb)])||_0x6f98d3[_0x4d9e72(0x108)]!==void 0x0&&!l(_0x6f98d3[_0x4d9e72(0x108)])||!u(_0x6f98d3[_0x4d9e72(0xfd)]))return null;let _0x3eece5=_0x6f98d3[_0x4d9e72(0xe9)]??(_0x4354c8==null?void 0x0:_0x4354c8[_0x4d9e72(0xe9)]),_0x38687c=_0x16901a['deepClone'](_0x6f98d3[_0x4d9e72(0xfb)]),_0x14d957=_0x4d2eb1({'model':_0x38687c,'style':_0x6f98d3['style'],'tool':_0x6f98d3[_0x4d9e72(0xf5)],'sourceModel':_0x6f98d3[_0x4d9e72(0x108)]?_0x16901a[_0x4d9e72(0xf6)](_0x6f98d3[_0x4d9e72(0x108)]):_0x38687c}),_0x924a12=d(_0x4354c8==null?void 0x0:_0x4354c8['custom']);return{'id':(_0x4354c8==null?void 0x0:_0x4354c8['id'])??_0x6f98d3['id']??_0x1905fc(0x6),'type':_0x2fca1a['Shape'],'transform':_0x14d957[_0x4d9e72(0xde)],'shapeData':_0x14d957[_0x4d9e72(0x105)],'parentId':_0x3eece5??void 0x0,'laneId':_0x6f98d3[_0x4d9e72(0x101)]===void 0x0?_0x4354c8==null?void 0x0:_0x4354c8[_0x4d9e72(0x101)]:_0x6f98d3[_0x4d9e72(0x101)],'custom':{..._0x924a12,'ink':_0x14d957[_0x4d9e72(0x109)]}};}function _0x5deb(){const _0x57ef65=['2480uliDal','Shape','model','free','style','4DhwEuY','object','3737060PAEQIG','laneId','points','highlighter','trim','shapeData','insertIndex','28tEqqtz','sourceModel','ink','getInks','extend','type','smooth','transform','366963GRVHUX','anchor','190082riUmnP','add','symmetric','1881912WHPbCu','isArray','4152250CvMWQx','length','515502ljtLGD','parentId','6219XGAzHv','out','isFinite','BoardInkTool','opacity','filter','every','custom','pen','findElements','width','tool','deepClone','version','has'];_0x5deb=function(){return _0x57ef65;};return _0x5deb();}function c(_0x47988a){const _0x2ba446=_0x10deff;return Number[_0x2ba446(0xec)](_0x47988a['x'])&&Number[_0x2ba446(0xec)](_0x47988a['y']);}function l(_0xd5a41c){const _0x2d992e=_0x10deff;if(_0xd5a41c['kind']===_0x2d992e(0xf2)){let _0x15cf4a=new Set();return _0xd5a41c['anchors'][_0x2d992e(0xe7)]>=(_0xd5a41c['closed']?0x3:0x2)&&_0xd5a41c['anchors'][_0x2d992e(0xf0)](_0x3e8600=>{const _0x217b20=_0x2d992e;let _0x4cfa72=_0x3e8600['id'][_0x217b20(0x104)]()[_0x217b20(0xe7)]>0x0&&!_0x15cf4a[_0x217b20(0xf8)](_0x3e8600['id'])&&c(_0x3e8600)&&(!_0x3e8600['in']||c(_0x3e8600['in']))&&(!_0x3e8600['out']||c(_0x3e8600[_0x217b20(0xeb)]));return _0x15cf4a[_0x217b20(0xe2)](_0x3e8600['id']),_0x4cfa72;});}return _0xd5a41c['points']['length']>=0x2&&_0xd5a41c[_0x2d992e(0x102)][_0x2d992e(0xf0)](_0x14800d=>c(_0x14800d)&&Number[_0x2d992e(0xec)](_0x14800d['t'])&&(_0x14800d['pressure']===void 0x0||Number[_0x2d992e(0xec)](_0x14800d['pressure'])))&&Number[_0x2d992e(0xec)](_0xd5a41c['width'])&&_0xd5a41c[_0x2d992e(0xf4)]>0x0&&Number[_0x2d992e(0xec)](_0xd5a41c[_0x2d992e(0xee)])&&_0xd5a41c[_0x2d992e(0xee)]>=0x0&&_0xd5a41c['opacity']<=0x1;}function u(_0x5d5282){const _0x19140c=_0x10deff;return _0x5d5282===void 0x0||(_0x5d5282[_0x19140c(0xf4)]===void 0x0||Number[_0x19140c(0xec)](_0x5d5282[_0x19140c(0xf4)])&&_0x5d5282[_0x19140c(0xf4)]>0x0)&&(_0x5d5282[_0x19140c(0xee)]===void 0x0||Number[_0x19140c(0xec)](_0x5d5282['opacity'])&&_0x5d5282[_0x19140c(0xee)]>=0x0&&_0x5d5282[_0x19140c(0xee)]<=0x1);}function d(_0x3c74c2){const _0x503edb=_0x10deff;return _0x3c74c2&&typeof _0x3c74c2=='object'&&!Array[_0x503edb(0xe5)](_0x3c74c2)?_0x3c74c2:{};}function f(_0x1d3f5f){const _0x2e0128=_0x10deff;let _0x5ec492=d(_0x1d3f5f[_0x2e0128(0xf1)])['ink'];if(!_0x5ec492||typeof _0x5ec492!=_0x2e0128(0xff)||Array[_0x2e0128(0xe5)](_0x5ec492))return null;let _0x7f0ade=_0x5ec492;return _0x7f0ade[_0x2e0128(0xf7)]===0x1&&_0x7f0ade[_0x2e0128(0x108)]&&typeof _0x7f0ade[_0x2e0128(0x108)]==_0x2e0128(0xff)?_0x7f0ade:null;}function p(_0x3f9419){const _0x2c7141=_0x10deff;return _0x3f9419[_0x2c7141(0xdc)]===_0x2fca1a[_0x2c7141(0xfa)]&&!!f(_0x3f9419);}function _0x9ffd(_0x110c82,_0x46d458){_0x110c82=_0x110c82-0xdb;const _0x5deba8=_0x5deb();let _0x9ffdf1=_0x5deba8[_0x110c82];return _0x9ffdf1;}_0x5d619f['extend'](o);const m={'Pen':_0x10deff(0xf2),'Brush':'brush','Highlighter':_0x10deff(0x103)},h={'Corner':'corner','Smooth':_0x10deff(0xdd),'Symmetric':_0x10deff(0xe3),'Free':_0x10deff(0xfc)},g={'Anchor':_0x10deff(0xe0),'In':'in','Out':_0x10deff(0xeb)};var _=class extends _0x395991{get[_0x10deff(0xed)](){return m;}get['BoardInkPointType'](){return h;}get['BoardInkHandleKind'](){return g;}};_0x395991[_0x10deff(0xdb)](_);export{g as BoardInkHandleKind,h as BoardInkPointType,m as BoardInkTool};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0xd9ea97=_0x5d75;(function(_0x583a21,_0x3dd7e7){const _0x56c90b=_0x5d75,_0x37ba04=_0x583a21();while(!![]){try{const _0x47bcfa=-parseInt(_0x56c90b(0x173))/0x1+-parseInt(_0x56c90b(0x140))/0x2+parseInt(_0x56c90b(0x14f))/0x3+-parseInt(_0x56c90b(0x13d))/0x4+parseInt(_0x56c90b(0x16b))/0x5+-parseInt(_0x56c90b(0x187))/0x6*(-parseInt(_0x56c90b(0x15e))/0x7)+parseInt(_0x56c90b(0x18e))/0x8;if(_0x47bcfa===_0x3dd7e7)break;else _0x37ba04['push'](_0x37ba04['shift']());}catch(_0xaae5ca){_0x37ba04['push'](_0x37ba04['shift']());}}}(_0x1f0e,0xd2e2d));import{ShapeFillEnum as _0x157d04,ShapeLineCapEnum as _0x363052,ShapeLineJoinEnum as _0x56486c,ShapeLineTypeEnum as _0x41a350,ShapeTypeEnum as _0x2fc13d}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x42d00b}from'@univerjs-pro/license';import{CommandType as _0x3450b2,DependentOn as _0xbc0f6e,ICommandService as _0x16de20,IConfigService as _0x3c718d,Inject as _0x4e3a63,Injector as _0x5500c4,Plugin as _0x205aab,UniverInstanceType as _0x42f687,createIdentifier as _0x1ab48e,merge as _0x1239fb,toDisposable as _0x29412f}from'@univerjs/core';const g=0.0001;function _(_0x1c4784){return{'x':_0x1c4784['x'],'y':_0x1c4784['y']};}function v(_0x2a107c){const _0x2cd110=_0x5d75;return{..._0x2a107c,'in':_0x2a107c['in']?_(_0x2a107c['in']):void 0x0,'out':_0x2a107c['out']?_(_0x2a107c[_0x2cd110(0x139)]):void 0x0};}function y(_0x5c7ca3){const _0x3ce2bc=_0x5d75;return{'kind':_0x3ce2bc(0x195),'closed':_0x5c7ca3[_0x3ce2bc(0x177)],'anchors':_0x5c7ca3[_0x3ce2bc(0x143)][_0x3ce2bc(0x13c)](v)};}function b(_0x421435,_0x3ecbc4,_0x13d740){return{'x':_0x421435['x']+(_0x3ecbc4['x']-_0x421435['x'])*_0x13d740,'y':_0x421435['y']+(_0x3ecbc4['y']-_0x421435['y'])*_0x13d740};}function x(_0x3ed006,_0x2248cc){const _0x303571=_0x5d75;return Math[_0x303571(0x179)](_0x3ed006['x']-_0x2248cc['x'],_0x3ed006['y']-_0x2248cc['y']);}function S(_0x43b2af){let _0x4ce1e7=Math['hypot'](_0x43b2af['x'],_0x43b2af['y']);return _0x4ce1e7<g?{'x':0x1,'y':0x0}:{'x':_0x43b2af['x']/_0x4ce1e7,'y':_0x43b2af['y']/_0x4ce1e7};}function C(_0x1b10ba,_0x4d4b62,_0x57b104=x(_0x1b10ba,_0x4d4b62)){let _0x29f3c0=S({'x':_0x1b10ba['x']-_0x4d4b62['x'],'y':_0x1b10ba['y']-_0x4d4b62['y']});return{'x':_0x1b10ba['x']+_0x29f3c0['x']*_0x57b104,'y':_0x1b10ba['y']+_0x29f3c0['y']*_0x57b104};}function w(_0x4fa05c,_0x4d9b3c){const _0x168da6=_0x5d75;let {anchors:_0x16ed3e}=_0x4fa05c;return _0x16ed3e[_0x168da6(0x15b)]<0x2||_0x4d9b3c<0x0?null:_0x4d9b3c<_0x16ed3e['length']-0x1?{'startIndex':_0x4d9b3c,'endIndex':_0x4d9b3c+0x1,'start':_0x16ed3e[_0x4d9b3c],'end':_0x16ed3e[_0x4d9b3c+0x1]}:_0x4fa05c[_0x168da6(0x177)]&&_0x4d9b3c===_0x16ed3e['length']-0x1?{'startIndex':_0x16ed3e[_0x168da6(0x15b)]-0x1,'endIndex':0x0,'start':_0x16ed3e[_0x16ed3e[_0x168da6(0x15b)]-0x1],'end':_0x16ed3e[0x0]}:null;}function T(_0x252e88,_0x516bc5){const _0x1124c8=_0x5d75;var _0xe8f2fe,_0x23763c;let _0x876388=w(_0x252e88,_0x516bc5);return _0x876388?[_0x876388['start'],(_0xe8f2fe=_0x876388[_0x1124c8(0x181)][_0x1124c8(0x139)])==null?_0x876388[_0x1124c8(0x181)]:_0xe8f2fe,(_0x23763c=_0x876388[_0x1124c8(0x169)]['in'])==null?_0x876388[_0x1124c8(0x169)]:_0x23763c,_0x876388[_0x1124c8(0x169)]]:null;}function te(_0x137d6a,_0x28c135){var _0x4001aa;return _0x28c135==='anchor'?_0x137d6a:(_0x4001aa=_0x137d6a[_0x28c135])==null?null:_0x4001aa;}function E(_0x1c5905,_0x107d8e,_0x1ccfbc){const _0x112356=_0x5d75;return _0x1ccfbc===_0x112356(0x163)||_0x1c5905[_0x112356(0x177)]?!0x0:_0x1ccfbc==='in'?_0x107d8e>0x0:_0x107d8e<_0x1c5905['anchors'][_0x112356(0x15b)]-0x1;}function D(_0x30166d,_0x59ad48){let [_0xff4e02,_0x486f37,_0x25b23f,_0x1c2b6f]=_0x30166d,_0x5a6c14=b(_0xff4e02,_0x486f37,_0x59ad48),_0x2e6c74=b(_0x486f37,_0x25b23f,_0x59ad48),_0x165d33=b(_0x25b23f,_0x1c2b6f,_0x59ad48);return b(b(_0x5a6c14,_0x2e6c74,_0x59ad48),b(_0x2e6c74,_0x165d33,_0x59ad48),_0x59ad48);}function ne(_0x1b6283,_0x135d30){let [_0x561704,_0x90133e,_0x41c9d4,_0x428715]=_0x1b6283,_0x5092ca=b(_0x561704,_0x90133e,_0x135d30),_0x37b48c=b(_0x90133e,_0x41c9d4,_0x135d30),_0x2b4dc5=b(_0x41c9d4,_0x428715,_0x135d30),_0x5a3e1e=b(_0x5092ca,_0x37b48c,_0x135d30),_0x3b1b03=b(_0x37b48c,_0x2b4dc5,_0x135d30),_0x478d72=b(_0x5a3e1e,_0x3b1b03,_0x135d30);return{'left':[_0x561704,_0x5092ca,_0x5a3e1e,_0x478d72],'right':[_0x478d72,_0x3b1b03,_0x2b4dc5,_0x428715]};}function O(_0x250740,_0xc0a51b,_0x345ecb){const _0x4aff10=_0x5d75;let _0x580f77=_0x345ecb['x']-_0xc0a51b['x'],_0x2d4d1b=_0x345ecb['y']-_0xc0a51b['y'],_0x2f93e5=_0x580f77*_0x580f77+_0x2d4d1b*_0x2d4d1b,_0x5a4687=_0x2f93e5<=g?0x0:Math[_0x4aff10(0x14a)](0x0,Math['min'](0x1,((_0x250740['x']-_0xc0a51b['x'])*_0x580f77+(_0x250740['y']-_0xc0a51b['y'])*_0x2d4d1b)/_0x2f93e5)),_0x5045d2={'x':_0xc0a51b['x']+_0x580f77*_0x5a4687,'y':_0xc0a51b['y']+_0x2d4d1b*_0x5a4687};return{'point':_0x5045d2,'ratio':_0x5a4687,'distance':x(_0x250740,_0x5045d2)};}function re(_0x316cf3,_0x2c511a,_0x16ea29){return O(_0x316cf3,_0x2c511a,_0x16ea29)['distance']**0x2;}function k(_0x41db0d,_0x5c6cd1){const _0x5cb9ec=_0x5d75;if(_0x41db0d[_0x5cb9ec(0x15b)]<=0x2)return _0x41db0d[_0x5cb9ec(0x13c)](_);let _0x527150=0x0,_0x1f759b=0x0,_0xa900a5=_0x41db0d[0x0],_0x5da654=_0x41db0d[_0x41db0d[_0x5cb9ec(0x15b)]-0x1],_0x49d039=_0x5c6cd1*_0x5c6cd1;for(let _0x4ee1c2=0x1;_0x4ee1c2<_0x41db0d[_0x5cb9ec(0x15b)]-0x1;_0x4ee1c2++){let _0x29b206=re(_0x41db0d[_0x4ee1c2],_0xa900a5,_0x5da654);_0x29b206>_0x527150&&(_0x527150=_0x29b206,_0x1f759b=_0x4ee1c2);}if(_0x527150<=_0x49d039)return[_(_0xa900a5),_(_0x5da654)];let _0x29d723=k(_0x41db0d[_0x5cb9ec(0x168)](0x0,_0x1f759b+0x1),_0x5c6cd1),_0x287549=k(_0x41db0d[_0x5cb9ec(0x168)](_0x1f759b),_0x5c6cd1);return[..._0x29d723['slice'](0x0,-0x1),..._0x287549];}function ie(_0x3ebe1e,_0x168b14){var _0x1fd1fb;let _0x55f4a4=_0x3ebe1e[_0x168b14],_0x11235c=_0x3ebe1e[_0x168b14+0x1],_0x177792=(_0x1fd1fb=_0x3ebe1e[_0x168b14-0x1])==null?_0x55f4a4:_0x1fd1fb;return{'x':_0x55f4a4['x']+(_0x11235c['x']-_0x177792['x'])/0x6,'y':_0x55f4a4['y']+(_0x11235c['y']-_0x177792['y'])/0x6};}function A(_0x40ed69,_0x105113){var _0x36c000;let _0x1bee18=_0x40ed69[_0x105113],_0x13e58e=_0x40ed69[_0x105113-0x1],_0x5d1cf4=(_0x36c000=_0x40ed69[_0x105113+0x1])==null?_0x1bee18:_0x36c000;return{'x':_0x1bee18['x']-(_0x5d1cf4['x']-_0x13e58e['x'])/0x6,'y':_0x1bee18['y']-(_0x5d1cf4['y']-_0x13e58e['y'])/0x6};}function j(_0x5a8e8d,_0x34b014){const _0x325343=_0x5d75;var _0x54c804,_0x319837;let _0x173d6c=_0x5a8e8d[_0x325343(0x143)][_0x34b014],_0x1ce829=(_0x54c804=_0x5a8e8d['anchors'][_0x34b014-0x1])==null?_0x5a8e8d[_0x325343(0x177)]?_0x5a8e8d[_0x325343(0x143)][_0x5a8e8d['anchors'][_0x325343(0x15b)]-0x1]:null:_0x54c804,_0x21c725=(_0x319837=_0x5a8e8d['anchors'][_0x34b014+0x1])==null?_0x5a8e8d[_0x325343(0x177)]?_0x5a8e8d[_0x325343(0x143)][0x0]:null:_0x319837,_0x3b9465=_0x1ce829&&_0x21c725?S({'x':_0x21c725['x']-_0x1ce829['x'],'y':_0x21c725['y']-_0x1ce829['y']}):_0x21c725?S({'x':_0x21c725['x']-_0x173d6c['x'],'y':_0x21c725['y']-_0x173d6c['y']}):_0x1ce829?S({'x':_0x173d6c['x']-_0x1ce829['x'],'y':_0x173d6c['y']-_0x1ce829['y']}):{'x':0x1,'y':0x0},_0x1bb118=_0x1ce829&&_0x21c725?Math[_0x325343(0x14a)](0x32,x(_0x1ce829,_0x21c725)/0x4):0x32;return{'in':{'x':_0x173d6c['x']-_0x3b9465['x']*_0x1bb118,'y':_0x173d6c['y']-_0x3b9465['y']*_0x1bb118},'out':{'x':_0x173d6c['x']+_0x3b9465['x']*_0x1bb118,'y':_0x173d6c['y']+_0x3b9465['y']*_0x1bb118}};}function M(_0x331f34,_0x225f45){const _0x1635fa=_0x5d75;let _0x5c5948=_0x331f34[_0x225f45],_0x34a908=_0x225f45==='in'?_0x1635fa(0x139):'in',_0x1d5124=_0x331f34[_0x34a908];if(_0x5c5948){if(_0x331f34['pointType']==='symmetric'){_0x331f34[_0x34a908]=C(_0x331f34,_0x5c5948);return;}_0x331f34[_0x1635fa(0x155)]===_0x1635fa(0x146)&&(_0x331f34[_0x34a908]=C(_0x331f34,_0x5c5948,_0x1d5124?x(_0x331f34,_0x1d5124):x(_0x331f34,_0x5c5948)));}}function ae(_0x32764f,_0x140103){const _0x501204=_0x5d75;let _0x4d5d43=y(_0x32764f);return!_0x140103||_0x4d5d43['closed']||_0x4d5d43[_0x501204(0x143)][_0x501204(0x15b)]===0x0||_0x4d5d43[_0x501204(0x143)][_0x501204(0x18d)]({'id':_0x501204(0x144),'x':_0x140103['x'],'y':_0x140103['y'],'pointType':_0x501204(0x188)}),_0x4d5d43;}function oe(_0x95db77,_0x335c81={}){const _0x3ff665=_0x5d75;var _0x455e4b,_0x4a9cd2;let _0x42e572=Math[_0x3ff665(0x14a)](0x0,(_0x455e4b=_0x335c81[_0x3ff665(0x178)])==null?Math['max'](0x4,_0x95db77['width']*0.35):_0x455e4b),_0x5c818d=(_0x4a9cd2=_0x335c81[_0x3ff665(0x194)])==null?_0x298564=>_0x3ff665(0x152)+_0x298564:_0x4a9cd2,_0x519604=k(_0x95db77['points'],_0x42e572),_0x4b6ddc=_0x519604[_0x3ff665(0x13c)]((_0x40e9b8,_0x42a616)=>({'id':_0x5c818d(_0x42a616),'x':_0x40e9b8['x'],'y':_0x40e9b8['y'],'pointType':_0x3ff665(0x13b)}));for(let _0x265a12=0x0;_0x265a12<_0x4b6ddc[_0x3ff665(0x15b)]-0x1;_0x265a12++)_0x4b6ddc[_0x265a12][_0x3ff665(0x139)]=ie(_0x519604,_0x265a12),_0x4b6ddc[_0x265a12+0x1]['in']=A(_0x519604,_0x265a12+0x1);return{'kind':_0x3ff665(0x195),'closed':!0x1,'anchors':_0x4b6ddc};}function se(_0x208dd5,_0x5e25e0,_0x2962f8){const _0x5cda09=_0x5d75;let _0x38bab0=null,_0x16fa07=[_0x5cda09(0x163),'in',_0x5cda09(0x139)];return _0x208dd5[_0x5cda09(0x143)]['forEach']((_0x8f85da,_0x3ef198)=>{const _0x1731ad=_0x5cda09;_0x16fa07[_0x1731ad(0x193)](_0x405653=>{const _0x4c7e97=_0x1731ad;if(!E(_0x208dd5,_0x3ef198,_0x405653))return;let _0xb85dac=te(_0x8f85da,_0x405653);if(!_0xb85dac)return;let _0x3d87c9=x(_0x5e25e0,_0xb85dac);_0x3d87c9>_0x2962f8||_0x38bab0&&_0x3d87c9>=_0x38bab0[_0x4c7e97(0x17d)]||(_0x38bab0={'handle':{'kind':_0x405653,'anchorId':_0x8f85da['id']},'point':_(_0xb85dac),'distance':_0x3d87c9});});}),_0x38bab0;}function ce(_0x4655b2,_0x265026,_0x1c40a5){const _0x41aee7=_0x5d75;let _0x4973e7=null,_0x2466ba=_0x4655b2['closed']?_0x4655b2[_0x41aee7(0x143)][_0x41aee7(0x15b)]:Math[_0x41aee7(0x14a)](0x0,_0x4655b2[_0x41aee7(0x143)][_0x41aee7(0x15b)]-0x1);for(let _0x31f18d=0x0;_0x31f18d<_0x2466ba;_0x31f18d++){let _0x51465b=T(_0x4655b2,_0x31f18d);if(!_0x51465b)continue;let _0x3e8297=D(_0x51465b,0x0);for(let _0x16aaad=0x1;_0x16aaad<=0x20;_0x16aaad++){let _0x43e783=D(_0x51465b,_0x16aaad/0x20),_0x117a70=O(_0x265026,_0x3e8297,_0x43e783),_0x552101=(_0x16aaad-0x1+_0x117a70[_0x41aee7(0x16e)])/0x20;(!_0x4973e7||_0x117a70['distance']<_0x4973e7[_0x41aee7(0x17d)])&&(_0x4973e7={'segmentIndex':_0x31f18d,'t':_0x552101,'point':_0x117a70['point'],'distance':_0x117a70['distance']}),_0x3e8297=_0x43e783;}}return _0x4973e7&&_0x4973e7[_0x41aee7(0x17d)]<=_0x1c40a5?_0x4973e7:null;}function le(_0x1b6e6c,_0x1718f5,_0x31090c){const _0x3d0d01=_0x5d75;let _0xa81a9b=y(_0x1b6e6c),_0x1dce41=w(_0xa81a9b,_0x1718f5[_0x3d0d01(0x174)]),_0x2870c8=T(_0xa81a9b,_0x1718f5[_0x3d0d01(0x174)]);if(!_0x1dce41||!_0x2870c8)return _0xa81a9b;let _0x59758a=ne(_0x2870c8,Math['max'](0x0,Math[_0x3d0d01(0x18b)](0x1,_0x1718f5['t']))),_0x337435={'id':_0x31090c(),'x':_0x59758a['left'][0x3]['x'],'y':_0x59758a[_0x3d0d01(0x175)][0x3]['y'],'in':_(_0x59758a[_0x3d0d01(0x175)][0x2]),'out':_(_0x59758a[_0x3d0d01(0x182)][0x1]),'pointType':_0x3d0d01(0x13b)};return _0xa81a9b['anchors'][_0x1dce41[_0x3d0d01(0x15a)]][_0x3d0d01(0x139)]=_(_0x59758a[_0x3d0d01(0x175)][0x1]),_0xa81a9b[_0x3d0d01(0x143)][_0x1dce41[_0x3d0d01(0x189)]]['in']=_(_0x59758a[_0x3d0d01(0x182)][0x2]),_0xa81a9b['anchors'][_0x3d0d01(0x16c)](_0x1dce41[_0x3d0d01(0x15a)]+0x1,0x0,_0x337435),_0xa81a9b;}function ue(_0x1d9e10,_0x3e5793){const _0x287dcd=_0x5d75;let _0x4e4cf8=y(_0x1d9e10);return _0x4e4cf8['anchors']=_0x4e4cf8[_0x287dcd(0x143)][_0x287dcd(0x164)](_0x457dfe=>_0x457dfe['id']!==_0x3e5793),_0x4e4cf8['closed']&&_0x4e4cf8[_0x287dcd(0x143)]['length']<0x3&&(_0x4e4cf8['closed']=!0x1),_0x4e4cf8;}function N(_0x3d3393,_0x3a4f81,_0x181438){const _0x2db96c=_0x5d75;let _0x2fe297=y(_0x3d3393),_0x1999b5=_0x2fe297[_0x2db96c(0x143)][_0x2db96c(0x150)](_0x3a3f41=>_0x3a3f41['id']===_0x3a4f81),_0x2055e7=_0x2fe297['anchors'][_0x1999b5];if(!_0x2055e7)return _0x2fe297;if(_0x2055e7['pointType']=_0x181438,_0x181438===_0x2db96c(0x188))return delete _0x2055e7['in'],delete _0x2055e7[_0x2db96c(0x139)],_0x2fe297;let _0x3c9431=j(_0x2fe297,_0x1999b5);if(_0x2055e7['in']=_0x2055e7['in']?_(_0x2055e7['in']):_0x3c9431['in'],_0x2055e7[_0x2db96c(0x139)]=_0x2055e7['out']?_(_0x2055e7[_0x2db96c(0x139)]):_0x3c9431[_0x2db96c(0x139)],_0x181438===_0x2db96c(0x13f)){let _0x16372e=Math['max'](x(_0x2055e7,_0x2055e7['in']),x(_0x2055e7,_0x2055e7['out']),0x32),_0xf3593c=S({'x':_0x2055e7[_0x2db96c(0x139)]['x']-_0x2055e7['x'],'y':_0x2055e7['out']['y']-_0x2055e7['y']});_0x2055e7[_0x2db96c(0x139)]={'x':_0x2055e7['x']+_0xf3593c['x']*_0x16372e,'y':_0x2055e7['y']+_0xf3593c['y']*_0x16372e},_0x2055e7['in']={'x':_0x2055e7['x']-_0xf3593c['x']*_0x16372e,'y':_0x2055e7['y']-_0xf3593c['y']*_0x16372e};}else _0x181438===_0x2db96c(0x146)&&M(_0x2055e7,_0x2db96c(0x139));return _0x2fe297;}function P(_0x8faea0,_0x4d05f0){const _0x587d9c=_0x5d75;var _0x474a43;let _0x68e57f=_0x8faea0[_0x587d9c(0x143)][_0x587d9c(0x154)](_0x33bfe9=>_0x33bfe9['id']===_0x4d05f0),_0x19db64=(_0x474a43=_0x68e57f==null?void 0x0:_0x68e57f[_0x587d9c(0x155)])==null?_0x587d9c(0x188):_0x474a43;return N(_0x8faea0,_0x4d05f0,_0x19db64===_0x587d9c(0x188)?_0x587d9c(0x146):_0x19db64===_0x587d9c(0x146)?'symmetric':_0x19db64===_0x587d9c(0x13f)?_0x587d9c(0x13b):_0x587d9c(0x188));}function F(_0x3530c9,_0x3e48d2,_0x2043a9){const _0x4a851f=_0x5d75;let _0x232366=y(_0x3530c9),_0x5e5d14=_0x232366['anchors'][_0x4a851f(0x154)](_0x34c602=>_0x34c602['id']===_0x3e48d2['anchorId']);if(!_0x5e5d14)return _0x232366;if(_0x3e48d2[_0x4a851f(0x172)]===_0x4a851f(0x163)){let _0x831642={'x':_0x2043a9['x']-_0x5e5d14['x'],'y':_0x2043a9['y']-_0x5e5d14['y']};return _0x5e5d14['x']=_0x2043a9['x'],_0x5e5d14['y']=_0x2043a9['y'],_0x5e5d14['in']&&(_0x5e5d14['in']={'x':_0x5e5d14['in']['x']+_0x831642['x'],'y':_0x5e5d14['in']['y']+_0x831642['y']}),_0x5e5d14[_0x4a851f(0x139)]&&(_0x5e5d14[_0x4a851f(0x139)]={'x':_0x5e5d14[_0x4a851f(0x139)]['x']+_0x831642['x'],'y':_0x5e5d14[_0x4a851f(0x139)]['y']+_0x831642['y']}),_0x232366;}return _0x5e5d14[_0x3e48d2['kind']]=_(_0x2043a9),_0x5e5d14[_0x4a851f(0x155)]==='corner'&&(_0x5e5d14['pointType']=_0x4a851f(0x13b)),M(_0x5e5d14,_0x3e48d2[_0x4a851f(0x172)]),_0x232366;}const I=1e-9;function L(_0x2563c6){const _0x12a095=_0x5d75;let _0x407f4f=Math[_0x12a095(0x16d)](_0x2563c6*0x2710)/0x2710;return Object['is'](_0x407f4f,-0x0)?'0':String(_0x407f4f);}function R(_0x6b4dcc){return L(_0x6b4dcc['x'])+'\x20'+L(_0x6b4dcc['y']);}function z(_0x1e0f2c,_0x2de331){return{'x':_0x1e0f2c['x']-_0x2de331['x'],'y':_0x1e0f2c['y']-_0x2de331['y']};}function B(_0xacfda9,_0x2e249b,_0x98a8a6,_0x3ace9c,_0x2d3f80){let _0x157773=0x1-_0x2d3f80;return{'x':_0x157773*_0x157773*_0x157773*_0xacfda9['x']+0x3*_0x157773*_0x157773*_0x2d3f80*_0x2e249b['x']+0x3*_0x157773*_0x2d3f80*_0x2d3f80*_0x98a8a6['x']+_0x2d3f80*_0x2d3f80*_0x2d3f80*_0x3ace9c['x'],'y':_0x157773*_0x157773*_0x157773*_0xacfda9['y']+0x3*_0x157773*_0x157773*_0x2d3f80*_0x2e249b['y']+0x3*_0x157773*_0x2d3f80*_0x2d3f80*_0x98a8a6['y']+_0x2d3f80*_0x2d3f80*_0x2d3f80*_0x3ace9c['y']};}function V(_0x4f5ce8,_0xba8f6f,_0x5cc759,_0x43106a){const _0x1c5686=_0x5d75;let _0x2c581c=-_0x4f5ce8+0x3*_0xba8f6f-0x3*_0x5cc759+_0x43106a,_0xa4545c=0x3*_0x4f5ce8-0x6*_0xba8f6f+0x3*_0x5cc759,_0x2d2f6d=-0x3*_0x4f5ce8+0x3*_0xba8f6f,_0x2df6c3=[];if(Math[_0x1c5686(0x171)](_0x2c581c)<I){if(Math[_0x1c5686(0x171)](_0xa4545c)<I)return _0x2df6c3;let _0x5d7fd2=-_0x2d2f6d/(0x2*_0xa4545c);return _0x5d7fd2>0x0&&_0x5d7fd2<0x1&&_0x2df6c3[_0x1c5686(0x18d)](_0x5d7fd2),_0x2df6c3;}let _0x2173b7=_0xa4545c*_0xa4545c-0x3*_0x2c581c*_0x2d2f6d;if(_0x2173b7<0x0)return _0x2df6c3;let _0x16cc2e=Math[_0x1c5686(0x186)](Math[_0x1c5686(0x14a)](0x0,_0x2173b7)),_0x3f270f=(-_0xa4545c+_0x16cc2e)/(0x3*_0x2c581c),_0x3c4d7c=(-_0xa4545c-_0x16cc2e)/(0x3*_0x2c581c);return _0x3f270f>0x0&&_0x3f270f<0x1&&_0x2df6c3['push'](_0x3f270f),_0x3c4d7c>0x0&&_0x3c4d7c<0x1&&Math[_0x1c5686(0x171)](_0x3c4d7c-_0x3f270f)>I&&_0x2df6c3['push'](_0x3c4d7c),_0x2df6c3;}function H(_0x363c5d,_0x468aa2,_0x37313d,_0x2b50a2,_0xc68336){const _0x4618cf=_0x5d75;_0x363c5d[_0x4618cf(0x18d)](_0x468aa2,_0xc68336),new Set([...V(_0x468aa2['x'],_0x37313d['x'],_0x2b50a2['x'],_0xc68336['x']),...V(_0x468aa2['y'],_0x37313d['y'],_0x2b50a2['y'],_0xc68336['y'])])[_0x4618cf(0x193)](_0x3f830d=>{const _0x12bb73=_0x4618cf;_0x363c5d[_0x12bb73(0x18d)](B(_0x468aa2,_0x37313d,_0x2b50a2,_0xc68336,_0x3f830d));});}function U(_0x442e04){const _0xbe0606=_0x5d75;let _0x350ec2=_0x442e04[_0xbe0606(0x143)];if(_0x350ec2[_0xbe0606(0x15b)]<=0x1)return _0x350ec2;let _0x2aed2d=[];for(let _0x396f42=0x1;_0x396f42<_0x350ec2[_0xbe0606(0x15b)];_0x396f42++){var _0x5e79a9,_0x2f4f9b;let _0x5ebdf1=_0x350ec2[_0x396f42-0x1],_0xe9b299=_0x350ec2[_0x396f42];H(_0x2aed2d,_0x5ebdf1,(_0x5e79a9=_0x5ebdf1['out'])==null?_0x5ebdf1:_0x5e79a9,(_0x2f4f9b=_0xe9b299['in'])==null?_0xe9b299:_0x2f4f9b,_0xe9b299);}if(_0x442e04[_0xbe0606(0x177)]&&_0x350ec2[_0xbe0606(0x15b)]>0x1){var _0x3a2839,_0x32de18;let _0x3b4a69=_0x350ec2[_0x350ec2[_0xbe0606(0x15b)]-0x1],_0x2d8f81=_0x350ec2[0x0];H(_0x2aed2d,_0x3b4a69,(_0x3a2839=_0x3b4a69[_0xbe0606(0x139)])==null?_0x3b4a69:_0x3a2839,(_0x32de18=_0x2d8f81['in'])==null?_0x2d8f81:_0x32de18,_0x2d8f81);}return _0x2aed2d;}function de(_0x4a97cb){const _0x2b4158=_0x5d75;let _0x4e941c=_0x4a97cb['points'];if(_0x4e941c[_0x2b4158(0x15b)]<=0x1)return _0x4e941c;let _0x57784e=[];for(let _0x576090=0x0;_0x576090<_0x4e941c[_0x2b4158(0x15b)]-0x1;_0x576090++){var _0xf30f9c,_0x4b5c5e;let _0x275902=_0x4e941c[_0x576090],_0x40e952=_0x4e941c[_0x576090+0x1],_0x248644=(_0xf30f9c=_0x4e941c[_0x576090-0x1])==null?_0x275902:_0xf30f9c,_0x434f63=(_0x4b5c5e=_0x4e941c[_0x576090+0x2])==null?_0x40e952:_0x4b5c5e;H(_0x57784e,_0x275902,{'x':_0x275902['x']+(_0x40e952['x']-_0x248644['x'])/0x6,'y':_0x275902['y']+(_0x40e952['y']-_0x248644['y'])/0x6},{'x':_0x40e952['x']-(_0x434f63['x']-_0x275902['x'])/0x6,'y':_0x40e952['y']-(_0x434f63['y']-_0x275902['y'])/0x6},_0x40e952);}return _0x57784e;}function fe(_0x9511fb){const _0x4ae3e7=_0x5d75;return _0x9511fb[_0x4ae3e7(0x172)]===_0x4ae3e7(0x195)?U(_0x9511fb):de(_0x9511fb);}function _0x1f0e(){const _0x3ccca4=['out','height','free','map','5280012gcHgel','width','symmetric','1307234iubbVe','string','Rect','anchors','__ink-preview-anchor__','top','smooth','OPERATION','none','_configService','max','onStarting','ink.host-adapter.service','add','_config','2383332VilSed','findIndex','_injector','ink-centerline-','ink.config','find','pointType','createCustomShape','default','color','fillColor','startIndex','length','pluginName','function','6405xMnsxe','disposeWithMe','1.0.0-alpha.7','version','norm','anchor','filter','toPrimitive','SolidLine','join','slice','end','beginInkMode','7111505pjiuRz','splice','round','ratio','points','getOwnPropertyDescriptor','abs','kind','315613ByEvnX','segmentIndex','left','call','closed','tolerance','hypot','registerAdapter','NoFill','opacity','distance','prototype','setConfig','type','start','right','indexOf','UNIVER_UNKNOWN','decorate','sqrt','4890NshZEP','corner','endIndex','get','min','object','push','1524416ZDxBmg','constructor','_adapters','#f54a45','symbol','forEach','createId','pen','packageName','defineProperty','tool','_commandService'];_0x1f0e=function(){return _0x3ccca4;};return _0x1f0e();}function W(_0x4abd06){let _0x31810a=Math['round'](_0x4abd06*0x2710)/0x2710;return Object['is'](_0x31810a,-0x0)?0x0:_0x31810a;}function G(_0x3aefeb){const _0x6e0444=_0x5d75;let _0xcf3dd2=fe(_0x3aefeb);if(_0xcf3dd2[_0x6e0444(0x15b)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x54267d=Math[_0x6e0444(0x18b)](..._0xcf3dd2[_0x6e0444(0x13c)](_0x45fa62=>_0x45fa62['x'])),_0x4166b5=Math[_0x6e0444(0x18b)](..._0xcf3dd2['map'](_0x33a011=>_0x33a011['y'])),_0x233859=Math[_0x6e0444(0x14a)](..._0xcf3dd2[_0x6e0444(0x13c)](_0x29c37e=>_0x29c37e['x'])),_0x132a2a=Math[_0x6e0444(0x14a)](..._0xcf3dd2[_0x6e0444(0x13c)](_0x4e5cbd=>_0x4e5cbd['y']));return{'left':W(_0x54267d),'top':W(_0x4166b5),'width':W(Math['max'](0x1,_0x233859-_0x54267d)),'height':W(Math['max'](0x1,_0x132a2a-_0x4166b5))};}function pe(_0x334233,_0x3d41e9){const _0x3dfa26=_0x5d75;let _0x2648ae=_0x334233[_0x3dfa26(0x143)];if(_0x2648ae[_0x3dfa26(0x15b)]===0x0)return'';let _0x598b18=['M\x20'+R(z(_0x2648ae[0x0],_0x3d41e9))];for(let _0x4bce92=0x1;_0x4bce92<_0x2648ae[_0x3dfa26(0x15b)];_0x4bce92++){var _0x56bf23,_0x2d1a27;let _0x3b9355=_0x2648ae[_0x4bce92-0x1],_0x5b049c=_0x2648ae[_0x4bce92],_0x1f109d=(_0x56bf23=_0x3b9355[_0x3dfa26(0x139)])==null?_0x3b9355:_0x56bf23,_0x40e6d3=(_0x2d1a27=_0x5b049c['in'])==null?_0x5b049c:_0x2d1a27;_0x598b18['push']('C\x20'+R(z(_0x1f109d,_0x3d41e9))+'\x20'+R(z(_0x40e6d3,_0x3d41e9))+'\x20'+R(z(_0x5b049c,_0x3d41e9)));}if(_0x334233[_0x3dfa26(0x177)]&&_0x2648ae[_0x3dfa26(0x15b)]>0x1){var _0x561711,_0x1457c5;let _0x258a7c=_0x2648ae[_0x2648ae[_0x3dfa26(0x15b)]-0x1],_0x216813=_0x2648ae[0x0],_0xe8667c=(_0x561711=_0x258a7c['out'])==null?_0x258a7c:_0x561711,_0x37a844=(_0x1457c5=_0x216813['in'])==null?_0x216813:_0x1457c5;_0x598b18['push']('C\x20'+R(z(_0xe8667c,_0x3d41e9))+'\x20'+R(z(_0x37a844,_0x3d41e9))+'\x20'+R(z(_0x216813,_0x3d41e9))),_0x598b18[_0x3dfa26(0x18d)]('Z');}return _0x598b18[_0x3dfa26(0x167)]('\x20');}function me(_0x5b09e9,_0x4f66d2){const _0x33c9b4=_0x5d75;let _0x1db0de=_0x5b09e9[_0x33c9b4(0x16f)][_0x33c9b4(0x13c)](_0x43b973=>z(_0x43b973,_0x4f66d2));if(_0x1db0de['length']===0x0)return'';if(_0x1db0de[_0x33c9b4(0x15b)]===0x1)return'M\x20'+R(_0x1db0de[0x0]);let _0x3624b6=['M\x20'+R(_0x1db0de[0x0])];for(let _0x792733=0x0;_0x792733<_0x1db0de[_0x33c9b4(0x15b)]-0x1;_0x792733++){var _0x507bf8,_0x594f92;let _0x5885df=_0x1db0de[_0x792733],_0x25455a=_0x1db0de[_0x792733+0x1],_0x48cbfa=(_0x507bf8=_0x1db0de[_0x792733-0x1])==null?_0x5885df:_0x507bf8,_0x3c13b7=(_0x594f92=_0x1db0de[_0x792733+0x2])==null?_0x25455a:_0x594f92,_0x1e02f3={'x':_0x5885df['x']+(_0x25455a['x']-_0x48cbfa['x'])/0x6,'y':_0x5885df['y']+(_0x25455a['y']-_0x48cbfa['y'])/0x6},_0x45d4ba={'x':_0x25455a['x']-(_0x3c13b7['x']-_0x5885df['x'])/0x6,'y':_0x25455a['y']-(_0x3c13b7['y']-_0x5885df['y'])/0x6};_0x3624b6[_0x33c9b4(0x18d)]('C\x20'+R(_0x1e02f3)+'\x20'+R(_0x45d4ba)+'\x20'+R(_0x25455a));}return _0x3624b6[_0x33c9b4(0x167)]('\x20');}function he(_0x141417,_0x520a99){const _0x16b282=_0x5d75;return _0x141417[_0x16b282(0x172)]===_0x16b282(0x195)?pe(_0x141417,_0x520a99):me(_0x141417,_0x520a99);}function ge(_0x1a6011,_0x3afb42){const _0x3f7058=_0x5d75;return _0x3afb42!=null&&_0x3afb42[_0x3f7058(0x158)]?_0x3afb42[_0x3f7058(0x158)]:_0x1a6011['kind']===_0x3f7058(0x195)?_0x3f7058(0x191):_0x1a6011[_0x3f7058(0x158)];}function _e(_0x366021,_0x28ed85){const _0x695865=_0x5d75;return(_0x28ed85==null?void 0x0:_0x28ed85[_0x695865(0x13e)])===void 0x0?_0x366021[_0x695865(0x172)]===_0x695865(0x195)?0x2:_0x366021[_0x695865(0x13e)]:_0x28ed85[_0x695865(0x13e)];}function ve(_0x2b8123,_0x4340cf){const _0x4bc57d=_0x5d75;return(_0x4340cf==null?void 0x0:_0x4340cf[_0x4bc57d(0x17c)])===void 0x0?_0x2b8123[_0x4bc57d(0x172)]===_0x4bc57d(0x195)?void 0x0:_0x2b8123[_0x4bc57d(0x17c)]:_0x4340cf['opacity'];}function _0x5d75(_0x1bc714,_0x4d42ab){_0x1bc714=_0x1bc714-0x136;const _0x1f0e4c=_0x1f0e();let _0x5d75b0=_0x1f0e4c[_0x1bc714];return _0x5d75b0;}function ye(_0x7bb899,_0x2db820){const _0x470b01=_0x5d75;let _0x1e3437=G(_0x7bb899),_0x12d0b4=he(_0x7bb899,{'x':_0x1e3437['left'],'y':_0x1e3437[_0x470b01(0x145)]}),_0x15a7a1=_0x7bb899[_0x470b01(0x172)]===_0x470b01(0x195)&&_0x7bb899[_0x470b01(0x177)],_0xbd4d92=_0x2db820==null?void 0x0:_0x2db820[_0x470b01(0x159)];return{'shapeType':_0x2fc13d[_0x470b01(0x142)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x1e3437[_0x470b01(0x13e)],'h':_0x1e3437[_0x470b01(0x13a)],'fill':_0x15a7a1?_0x470b01(0x162):_0x470b01(0x148),'stroke':!0x0,'data':_0x12d0b4,'dataArray':be(_0x7bb899,{'x':_0x1e3437[_0x470b01(0x175)],'y':_0x1e3437['top']})}]},'fill':_0x15a7a1&&_0xbd4d92?{'color':_0xbd4d92,'fillType':_0x157d04['SolidFill']}:{'fillType':_0x157d04[_0x470b01(0x17b)]},'stroke':{'color':ge(_0x7bb899,_0x2db820),'width':_e(_0x7bb899,_0x2db820),'opacity':ve(_0x7bb899,_0x2db820),'lineStrokeType':_0x41a350[_0x470b01(0x166)],'capType':_0x363052['Round'],'lineJoinType':_0x56486c['Round']}};}function K(_0x766837,_0x43fad4){return{'x':_0x766837['x']-_0x43fad4['x'],'y':_0x766837['y']-_0x43fad4['y']};}function be(_0x143aee,_0x4d1d82){const _0x22ba30=_0x5d75;if(_0x143aee[_0x22ba30(0x172)]===_0x22ba30(0x195)){let _0x179f00=_0x143aee[_0x22ba30(0x143)];if(_0x179f00[_0x22ba30(0x15b)]===0x0)return[];let _0x4fb16b=K(_0x179f00[0x0],_0x4d1d82),_0x23f539=[{'command':'M','points':[_0x4fb16b['x'],_0x4fb16b['y']]}];for(let _0x12c749=0x1;_0x12c749<_0x179f00[_0x22ba30(0x15b)];_0x12c749++){var _0x2bb2f3,_0xef5a00;let _0x23fd86=_0x179f00[_0x12c749-0x1],_0x54c1b6=_0x179f00[_0x12c749],_0x296aa1=K((_0x2bb2f3=_0x23fd86[_0x22ba30(0x139)])==null?_0x23fd86:_0x2bb2f3,_0x4d1d82),_0x2242ed=K((_0xef5a00=_0x54c1b6['in'])==null?_0x54c1b6:_0xef5a00,_0x4d1d82),_0x23db98=K(_0x54c1b6,_0x4d1d82);_0x23f539['push']({'command':'C','points':[_0x296aa1['x'],_0x296aa1['y'],_0x2242ed['x'],_0x2242ed['y'],_0x23db98['x'],_0x23db98['y']]});}if(_0x143aee[_0x22ba30(0x177)]&&_0x179f00['length']>0x1){var _0x2656b6,_0x4b44e1;let _0x29f6bd=_0x179f00[_0x179f00[_0x22ba30(0x15b)]-0x1],_0x1168d2=_0x179f00[0x0],_0x3af9f5=K((_0x2656b6=_0x29f6bd[_0x22ba30(0x139)])==null?_0x29f6bd:_0x2656b6,_0x4d1d82),_0x120745=K((_0x4b44e1=_0x1168d2['in'])==null?_0x1168d2:_0x4b44e1,_0x4d1d82),_0x1587f4=K(_0x1168d2,_0x4d1d82);_0x23f539[_0x22ba30(0x18d)]({'command':'C','points':[_0x3af9f5['x'],_0x3af9f5['y'],_0x120745['x'],_0x120745['y'],_0x1587f4['x'],_0x1587f4['y']]}),_0x23f539[_0x22ba30(0x18d)]({'command':'z','points':[]});}return _0x23f539;}let _0x314f03=_0x143aee['points'][_0x22ba30(0x13c)](_0x5d6b03=>K(_0x5d6b03,_0x4d1d82));if(_0x314f03[_0x22ba30(0x15b)]===0x0)return[];let _0x5528aa=[{'command':'M','points':[_0x314f03[0x0]['x'],_0x314f03[0x0]['y']]}];for(let _0x4db741=0x0;_0x4db741<_0x314f03[_0x22ba30(0x15b)]-0x1;_0x4db741++){var _0x1cce6c,_0x3668f2;let _0x29cc40=_0x314f03[_0x4db741],_0x37cdc5=_0x314f03[_0x4db741+0x1],_0x35d8db=(_0x1cce6c=_0x314f03[_0x4db741-0x1])==null?_0x29cc40:_0x1cce6c,_0x58235c=(_0x3668f2=_0x314f03[_0x4db741+0x2])==null?_0x37cdc5:_0x3668f2,_0x332416={'x':_0x29cc40['x']+(_0x37cdc5['x']-_0x35d8db['x'])/0x6,'y':_0x29cc40['y']+(_0x37cdc5['y']-_0x35d8db['y'])/0x6},_0x1ac2ed={'x':_0x37cdc5['x']-(_0x58235c['x']-_0x29cc40['x'])/0x6,'y':_0x37cdc5['y']-(_0x58235c['y']-_0x29cc40['y'])/0x6};_0x5528aa[_0x22ba30(0x18d)]({'command':'C','points':[_0x332416['x'],_0x332416['y'],_0x1ac2ed['x'],_0x1ac2ed['y'],_0x37cdc5['x'],_0x37cdc5['y']]});}return _0x5528aa;}function xe(_0x588b9a){const _0x8e653=_0x5d75;var _0x1f1de2;let {model:_0x1ea07a,sourceModel:_0xecba1=_0x1ea07a,style:_0x3770c8}=_0x588b9a,_0x2078d1=(_0x1f1de2=_0x588b9a[_0x8e653(0x137)])==null?_0x1ea07a[_0x8e653(0x172)]:_0x1f1de2,_0xc349b6=G(_0x1ea07a),_0x4335c9=_0x1ea07a['kind']===_0x8e653(0x195)&&_0x2078d1!==_0x8e653(0x195)?_0x1ea07a:void 0x0;return{'transform':{..._0xc349b6,'rotation':0x0},'shapeData':ye(_0x1ea07a,_0x3770c8),'ink':{'version':0x1,'tool':_0x2078d1,'sourceModel':_0xecba1,..._0x4335c9?{'editModel':_0x4335c9}:{},'normalizedBounds':_0xc349b6}};}var Se='@univerjs-pro/ink',Ce=_0xd9ea97(0x160);function q(_0xf0db8e){'@babel/helpers - typeof';const _0x5d8d4e=_0xd9ea97;return q=typeof Symbol==_0x5d8d4e(0x15d)&&typeof Symbol['iterator']==_0x5d8d4e(0x192)?function(_0x24b45b){return typeof _0x24b45b;}:function(_0x26e7cd){const _0xbf86d7=_0x5d8d4e;return _0x26e7cd&&typeof Symbol==_0xbf86d7(0x15d)&&_0x26e7cd[_0xbf86d7(0x18f)]===Symbol&&_0x26e7cd!==Symbol[_0xbf86d7(0x17e)]?_0xbf86d7(0x192):typeof _0x26e7cd;},q(_0xf0db8e);}function we(_0x371f38,_0x5a98fe){const _0x118f7f=_0xd9ea97;if(q(_0x371f38)!=_0x118f7f(0x18c)||!_0x371f38)return _0x371f38;var _0x5cef0e=_0x371f38[Symbol[_0x118f7f(0x165)]];if(_0x5cef0e!==void 0x0){var _0x4c12fa=_0x5cef0e[_0x118f7f(0x176)](_0x371f38,_0x5a98fe||_0x118f7f(0x157));if(q(_0x4c12fa)!='object')return _0x4c12fa;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x5a98fe===_0x118f7f(0x141)?String:Number)(_0x371f38);}function J(_0x207d73){const _0x1e708a=_0xd9ea97;var _0x51aab3=we(_0x207d73,_0x1e708a(0x141));return q(_0x51aab3)==_0x1e708a(0x192)?_0x51aab3:_0x51aab3+'';}function Y(_0x519233,_0x36e28c,_0x4da7f7){const _0x56af46=_0xd9ea97;return(_0x36e28c=J(_0x36e28c))in _0x519233?Object[_0x56af46(0x136)](_0x519233,_0x36e28c,{'value':_0x4da7f7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x519233[_0x36e28c]=_0x4da7f7,_0x519233;}const X=_0x1ab48e(_0xd9ea97(0x14c));var Te=class{constructor(){const _0x3e1613=_0xd9ea97;Y(this,_0x3e1613(0x190),[]);}[_0xd9ea97(0x17a)](_0x28cc61){const _0x152a73=_0xd9ea97;return this[_0x152a73(0x190)][_0x152a73(0x18d)](_0x28cc61),_0x29412f(()=>{const _0x565455=_0x152a73;let _0xaa94e7=this[_0x565455(0x190)][_0x565455(0x183)](_0x28cc61);_0xaa94e7>=0x0&&this['_adapters'][_0x565455(0x16c)](_0xaa94e7,0x1);});}['beginInkMode'](_0x4f93b2){const _0x322df5=_0xd9ea97;for(let _0x47f994 of this[_0x322df5(0x190)])if(_0x47f994[_0x322df5(0x16a)](_0x4f93b2))return!0x0;return!0x1;}async[_0xd9ea97(0x156)](_0x4cfe8e){const _0xa467ed=_0xd9ea97;for(let _0x4a6b52 of this[_0xa467ed(0x190)])if(_0x4a6b52['createCustomShape']&&await _0x4a6b52['createCustomShape'](_0x4cfe8e))return!0x0;return!0x1;}};const Ee={'id':'ink.operation.start','type':_0x3450b2[_0xd9ea97(0x147)],'handler':(_0x1273c6,_0x1aed1d)=>_0x1aed1d?_0x1273c6[_0xd9ea97(0x18a)](X)[_0xd9ea97(0x16a)](_0x1aed1d):!0x1},Z={};function Q(_0x55af48,_0x31d419){return function(_0x43e9e7,_0x483b20){_0x31d419(_0x43e9e7,_0x483b20,_0x55af48);};}function De(_0x263be4,_0x433ad3,_0x2f01f1,_0x4819fb){const _0x1e66c2=_0xd9ea97;var _0x351722=arguments[_0x1e66c2(0x15b)],_0x269040=_0x351722<0x3?_0x433ad3:_0x4819fb===null?_0x4819fb=Object[_0x1e66c2(0x170)](_0x433ad3,_0x2f01f1):_0x4819fb,_0x543774;if(typeof Reflect=='object'&&typeof Reflect[_0x1e66c2(0x185)]=='function')_0x269040=Reflect[_0x1e66c2(0x185)](_0x263be4,_0x433ad3,_0x2f01f1,_0x4819fb);else{for(var _0x500a5b=_0x263be4['length']-0x1;_0x500a5b>=0x0;_0x500a5b--)(_0x543774=_0x263be4[_0x500a5b])&&(_0x269040=(_0x351722<0x3?_0x543774(_0x269040):_0x351722>0x3?_0x543774(_0x433ad3,_0x2f01f1,_0x269040):_0x543774(_0x433ad3,_0x2f01f1))||_0x269040);}return _0x351722>0x3&&_0x269040&&Object['defineProperty'](_0x433ad3,_0x2f01f1,_0x269040),_0x269040;}let $=class extends _0x205aab{constructor(_0x38ea78=Z,_0x794021,_0x6333bb,_0xe202d0){const _0xeafa4d=_0xd9ea97;super(),this[_0xeafa4d(0x14e)]=_0x38ea78,this['_injector']=_0x794021,this[_0xeafa4d(0x138)]=_0x6333bb,this[_0xeafa4d(0x149)]=_0xe202d0;let {..._0x581cc3}=_0x1239fb({},Z,this['_config']);this[_0xeafa4d(0x149)][_0xeafa4d(0x17f)](_0xeafa4d(0x153),_0x581cc3);}[_0xd9ea97(0x14b)](){const _0x191e72=_0xd9ea97;[[X,{'useClass':Te}]]['forEach'](_0x5cd6c4=>this[_0x191e72(0x151)][_0x191e72(0x14d)](_0x5cd6c4)),this[_0x191e72(0x15f)](this['_commandService']['registerCommand'](Ee));}};Y($,_0xd9ea97(0x15c),'UNIVER_INK_PLUGIN'),Y($,_0xd9ea97(0x196),Se),Y($,_0xd9ea97(0x161),Ce),Y($,_0xd9ea97(0x180),_0x42f687[_0xd9ea97(0x184)]),$=De([_0xbc0f6e(_0x42d00b),Q(0x1,_0x4e3a63(_0x5500c4)),Q(0x2,_0x16de20),Q(0x3,_0x3c718d)],$);export{X as IInkHostAdapterService,$ as UniverInkPlugin,xe as buildInkCustomShapePayload,oe as convertBrushModelToPenModel,P as cycleInkPenAnchorPointType,ue as deleteInkPenAnchor,se as findClosestInkPenHandle,ce as findClosestInkPenSegment,G as getInkModelBounds,ae as getInkPenPreviewModel,le as insertInkPenAnchorAt,E as isInkPenHandleVisible,F as moveInkPenAnchorPoint,N as setInkPenAnchorPointType};
|
|
1
|
+
const _0x4b144b=_0xa6e8;(function(_0x2a1230,_0x39b6f6){const _0x1a5676=_0xa6e8,_0x175688=_0x2a1230();while(!![]){try{const _0x3f02e8=-parseInt(_0x1a5676(0xc3))/0x1*(-parseInt(_0x1a5676(0x79))/0x2)+parseInt(_0x1a5676(0x91))/0x3+parseInt(_0x1a5676(0x9b))/0x4*(-parseInt(_0x1a5676(0xaa))/0x5)+parseInt(_0x1a5676(0xad))/0x6*(-parseInt(_0x1a5676(0xa0))/0x7)+parseInt(_0x1a5676(0x85))/0x8+-parseInt(_0x1a5676(0xbd))/0x9*(parseInt(_0x1a5676(0x99))/0xa)+parseInt(_0x1a5676(0x8e))/0xb;if(_0x3f02e8===_0x39b6f6)break;else _0x175688['push'](_0x175688['shift']());}catch(_0x27b4d0){_0x175688['push'](_0x175688['shift']());}}}(_0x5b48,0xdd1e3));import{ShapeFillEnum as _0x44a149,ShapeLineCapEnum as _0x16f41b,ShapeLineJoinEnum as _0x91310c,ShapeLineTypeEnum as _0x1adfb6,ShapeTypeEnum as _0x55f3a7}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x5be20a}from'@univerjs-pro/license';import{CommandType as _0x12267a,DependentOn as _0xdb0733,ICommandService as _0x42e8fe,IConfigService as _0x559208,Inject as _0x4c7430,Injector as _0x3cafb4,Plugin as _0x5aaff8,UniverInstanceType as _0x307cd7,createIdentifier as _0x2b9493,merge as _0x2c6874,toDisposable as _0x309fee}from'@univerjs/core';const g=0.0001;function _(_0x4244c9){return{'x':_0x4244c9['x'],'y':_0x4244c9['y']};}function v(_0x21d004){const _0x2f7f4b=_0xa6e8;return{..._0x21d004,'in':_0x21d004['in']?_(_0x21d004['in']):void 0x0,'out':_0x21d004[_0x2f7f4b(0x84)]?_(_0x21d004['out']):void 0x0};}function y(_0x33ee76){const _0x4909da=_0xa6e8;return{'kind':'pen','closed':_0x33ee76[_0x4909da(0x89)],'anchors':_0x33ee76[_0x4909da(0xae)][_0x4909da(0x86)](v)};}function b(_0x1e1978,_0x1da082,_0x2addd3){return{'x':_0x1e1978['x']+(_0x1da082['x']-_0x1e1978['x'])*_0x2addd3,'y':_0x1e1978['y']+(_0x1da082['y']-_0x1e1978['y'])*_0x2addd3};}function x(_0x3e455d,_0x43cf78){return Math['hypot'](_0x3e455d['x']-_0x43cf78['x'],_0x3e455d['y']-_0x43cf78['y']);}function S(_0x48dc8f){const _0x595ecb=_0xa6e8;let _0x2f8d1c=Math[_0x595ecb(0xa1)](_0x48dc8f['x'],_0x48dc8f['y']);return _0x2f8d1c<g?{'x':0x1,'y':0x0}:{'x':_0x48dc8f['x']/_0x2f8d1c,'y':_0x48dc8f['y']/_0x2f8d1c};}function C(_0x708df6,_0x3b9637,_0x18a5fa=x(_0x708df6,_0x3b9637)){let _0x2416fe=S({'x':_0x708df6['x']-_0x3b9637['x'],'y':_0x708df6['y']-_0x3b9637['y']});return{'x':_0x708df6['x']+_0x2416fe['x']*_0x18a5fa,'y':_0x708df6['y']+_0x2416fe['y']*_0x18a5fa};}function w(_0x3096fc,_0x18c15e){const _0x5beac4=_0xa6e8;let {anchors:_0x15474b}=_0x3096fc;return _0x15474b[_0x5beac4(0xab)]<0x2||_0x18c15e<0x0?null:_0x18c15e<_0x15474b[_0x5beac4(0xab)]-0x1?{'startIndex':_0x18c15e,'endIndex':_0x18c15e+0x1,'start':_0x15474b[_0x18c15e],'end':_0x15474b[_0x18c15e+0x1]}:_0x3096fc[_0x5beac4(0x89)]&&_0x18c15e===_0x15474b['length']-0x1?{'startIndex':_0x15474b[_0x5beac4(0xab)]-0x1,'endIndex':0x0,'start':_0x15474b[_0x15474b[_0x5beac4(0xab)]-0x1],'end':_0x15474b[0x0]}:null;}function T(_0x3f8dbe,_0x4e1269){const _0x328447=_0xa6e8;let _0x3af9eb=w(_0x3f8dbe,_0x4e1269);return _0x3af9eb?[_0x3af9eb[_0x328447(0xb4)],_0x3af9eb[_0x328447(0xb4)][_0x328447(0x84)]??_0x3af9eb[_0x328447(0xb4)],_0x3af9eb['end']['in']??_0x3af9eb['end'],_0x3af9eb['end']]:null;}function te(_0x7502a4,_0x2cfa0c){const _0x3f967b=_0xa6e8;return _0x2cfa0c===_0x3f967b(0x75)?_0x7502a4:_0x7502a4[_0x2cfa0c]??null;}function E(_0x257782,_0x1652f8,_0x1609f5){const _0x5b1a51=_0xa6e8;return _0x1609f5===_0x5b1a51(0x75)||_0x257782['closed']?!0x0:_0x1609f5==='in'?_0x1652f8>0x0:_0x1652f8<_0x257782[_0x5b1a51(0xae)]['length']-0x1;}function D(_0x10fb7e,_0x3ab2d1){let [_0x658ce3,_0x52bbad,_0x339528,_0x5c10ac]=_0x10fb7e,_0x5eeeec=b(_0x658ce3,_0x52bbad,_0x3ab2d1),_0x648467=b(_0x52bbad,_0x339528,_0x3ab2d1),_0x55b2d1=b(_0x339528,_0x5c10ac,_0x3ab2d1);return b(b(_0x5eeeec,_0x648467,_0x3ab2d1),b(_0x648467,_0x55b2d1,_0x3ab2d1),_0x3ab2d1);}function ne(_0x1b1c60,_0x149d2e){let [_0x16613b,_0x2060ac,_0x3e4b01,_0x1142bc]=_0x1b1c60,_0x8c15e1=b(_0x16613b,_0x2060ac,_0x149d2e),_0x14d81e=b(_0x2060ac,_0x3e4b01,_0x149d2e),_0x1bce4b=b(_0x3e4b01,_0x1142bc,_0x149d2e),_0x55935d=b(_0x8c15e1,_0x14d81e,_0x149d2e),_0x278c49=b(_0x14d81e,_0x1bce4b,_0x149d2e),_0x204881=b(_0x55935d,_0x278c49,_0x149d2e);return{'left':[_0x16613b,_0x8c15e1,_0x55935d,_0x204881],'right':[_0x204881,_0x278c49,_0x1bce4b,_0x1142bc]};}function _0xa6e8(_0x4c6af2,_0x481f79){_0x4c6af2=_0x4c6af2-0x6c;const _0x5b48bd=_0x5b48();let _0xa6e8b5=_0x5b48bd[_0x4c6af2];return _0xa6e8b5;}function O(_0xc66f48,_0x34747c,_0x598199){const _0x1c1541=_0xa6e8;let _0x9f2e71=_0x598199['x']-_0x34747c['x'],_0x51ea26=_0x598199['y']-_0x34747c['y'],_0x5ecf89=_0x9f2e71*_0x9f2e71+_0x51ea26*_0x51ea26,_0x278aa6=_0x5ecf89<=g?0x0:Math[_0x1c1541(0x71)](0x0,Math[_0x1c1541(0xb2)](0x1,((_0xc66f48['x']-_0x34747c['x'])*_0x9f2e71+(_0xc66f48['y']-_0x34747c['y'])*_0x51ea26)/_0x5ecf89)),_0x41d46a={'x':_0x34747c['x']+_0x9f2e71*_0x278aa6,'y':_0x34747c['y']+_0x51ea26*_0x278aa6};return{'point':_0x41d46a,'ratio':_0x278aa6,'distance':x(_0xc66f48,_0x41d46a)};}function re(_0x5ce28,_0x205545,_0x2b7952){const _0x481bb0=_0xa6e8;return O(_0x5ce28,_0x205545,_0x2b7952)[_0x481bb0(0xa7)]**0x2;}function k(_0x9e9a64,_0x5b2696){const _0x5b725c=_0xa6e8;if(_0x9e9a64['length']<=0x2)return _0x9e9a64[_0x5b725c(0x86)](_);let _0x4448ba=0x0,_0x31bdbc=0x0,_0x12d6df=_0x9e9a64[0x0],_0x489cb3=_0x9e9a64[_0x9e9a64[_0x5b725c(0xab)]-0x1],_0x20478a=_0x5b2696*_0x5b2696;for(let _0x12106f=0x1;_0x12106f<_0x9e9a64[_0x5b725c(0xab)]-0x1;_0x12106f++){let _0x1720f8=re(_0x9e9a64[_0x12106f],_0x12d6df,_0x489cb3);_0x1720f8>_0x4448ba&&(_0x4448ba=_0x1720f8,_0x31bdbc=_0x12106f);}if(_0x4448ba<=_0x20478a)return[_(_0x12d6df),_(_0x489cb3)];let _0x93676d=k(_0x9e9a64['slice'](0x0,_0x31bdbc+0x1),_0x5b2696),_0x5ea466=k(_0x9e9a64['slice'](_0x31bdbc),_0x5b2696);return[..._0x93676d['slice'](0x0,-0x1),..._0x5ea466];}function ie(_0x152fa7,_0x361223){let _0x17e805=_0x152fa7[_0x361223],_0x174a9a=_0x152fa7[_0x361223+0x1],_0x43da0f=_0x152fa7[_0x361223-0x1]??_0x17e805;return{'x':_0x17e805['x']+(_0x174a9a['x']-_0x43da0f['x'])/0x6,'y':_0x17e805['y']+(_0x174a9a['y']-_0x43da0f['y'])/0x6};}function A(_0x3ad810,_0x311c21){let _0x157760=_0x3ad810[_0x311c21],_0x5aee88=_0x3ad810[_0x311c21-0x1],_0xc75b2f=_0x3ad810[_0x311c21+0x1]??_0x157760;return{'x':_0x157760['x']-(_0xc75b2f['x']-_0x5aee88['x'])/0x6,'y':_0x157760['y']-(_0xc75b2f['y']-_0x5aee88['y'])/0x6};}function j(_0x41b2f0,_0x5f29a6){const _0xb9a749=_0xa6e8;let _0x37d3d8=_0x41b2f0[_0xb9a749(0xae)][_0x5f29a6],_0x18bdaa=_0x41b2f0['anchors'][_0x5f29a6-0x1]??(_0x41b2f0[_0xb9a749(0x89)]?_0x41b2f0[_0xb9a749(0xae)][_0x41b2f0[_0xb9a749(0xae)][_0xb9a749(0xab)]-0x1]:null),_0x4fb97b=_0x41b2f0['anchors'][_0x5f29a6+0x1]??(_0x41b2f0[_0xb9a749(0x89)]?_0x41b2f0['anchors'][0x0]:null),_0x372f85=_0x18bdaa&&_0x4fb97b?S({'x':_0x4fb97b['x']-_0x18bdaa['x'],'y':_0x4fb97b['y']-_0x18bdaa['y']}):_0x4fb97b?S({'x':_0x4fb97b['x']-_0x37d3d8['x'],'y':_0x4fb97b['y']-_0x37d3d8['y']}):_0x18bdaa?S({'x':_0x37d3d8['x']-_0x18bdaa['x'],'y':_0x37d3d8['y']-_0x18bdaa['y']}):{'x':0x1,'y':0x0},_0x4d75ac=_0x18bdaa&&_0x4fb97b?Math[_0xb9a749(0x71)](0x32,x(_0x18bdaa,_0x4fb97b)/0x4):0x32;return{'in':{'x':_0x37d3d8['x']-_0x372f85['x']*_0x4d75ac,'y':_0x37d3d8['y']-_0x372f85['y']*_0x4d75ac},'out':{'x':_0x37d3d8['x']+_0x372f85['x']*_0x4d75ac,'y':_0x37d3d8['y']+_0x372f85['y']*_0x4d75ac}};}function M(_0x4a2393,_0x3bef0c){const _0xd99315=_0xa6e8;let _0x1db5e2=_0x4a2393[_0x3bef0c],_0x4d2cfc=_0x3bef0c==='in'?_0xd99315(0x84):'in',_0x133777=_0x4a2393[_0x4d2cfc];if(_0x1db5e2){if(_0x4a2393['pointType']===_0xd99315(0xc4)){_0x4a2393[_0x4d2cfc]=C(_0x4a2393,_0x1db5e2);return;}_0x4a2393[_0xd99315(0xb5)]===_0xd99315(0x6c)&&(_0x4a2393[_0x4d2cfc]=C(_0x4a2393,_0x1db5e2,_0x133777?x(_0x4a2393,_0x133777):x(_0x4a2393,_0x1db5e2)));}}function ae(_0x4379d2,_0x1c426a){const _0x28d8ef=_0xa6e8;let _0x3cdce5=y(_0x4379d2);return!_0x1c426a||_0x3cdce5[_0x28d8ef(0x89)]||_0x3cdce5[_0x28d8ef(0xae)][_0x28d8ef(0xab)]===0x0||_0x3cdce5['anchors'][_0x28d8ef(0x7c)]({'id':'__ink-preview-anchor__','x':_0x1c426a['x'],'y':_0x1c426a['y'],'pointType':_0x28d8ef(0xa3)}),_0x3cdce5;}function oe(_0x3629c8,_0x36b824={}){const _0xa05bdb=_0xa6e8;let _0xc5962d=Math[_0xa05bdb(0x71)](0x0,_0x36b824[_0xa05bdb(0x82)]??Math[_0xa05bdb(0x71)](0x4,_0x3629c8[_0xa05bdb(0x9e)]*0.35)),_0x2022ed=_0x36b824['createId']??(_0x439bc3=>'ink-centerline-'+_0x439bc3),_0x12b038=k(_0x3629c8[_0xa05bdb(0x95)],_0xc5962d),_0x5e348e=_0x12b038[_0xa05bdb(0x86)]((_0x15b5fc,_0xb0f2f0)=>({'id':_0x2022ed(_0xb0f2f0),'x':_0x15b5fc['x'],'y':_0x15b5fc['y'],'pointType':'free'}));for(let _0x369496=0x0;_0x369496<_0x5e348e[_0xa05bdb(0xab)]-0x1;_0x369496++)_0x5e348e[_0x369496][_0xa05bdb(0x84)]=ie(_0x12b038,_0x369496),_0x5e348e[_0x369496+0x1]['in']=A(_0x12b038,_0x369496+0x1);return{'kind':_0xa05bdb(0x7e),'closed':!0x1,'anchors':_0x5e348e};}function se(_0x559961,_0x47a700,_0x1e5c53){const _0x19b0f5=_0xa6e8;let _0x24f5d7=null,_0x5ee64c=[_0x19b0f5(0x75),'in',_0x19b0f5(0x84)];return _0x559961['anchors'][_0x19b0f5(0xa9)]((_0xb9551f,_0x369961)=>{const _0x37480d=_0x19b0f5;_0x5ee64c[_0x37480d(0xa9)](_0x9f0abe=>{if(!E(_0x559961,_0x369961,_0x9f0abe))return;let _0x20636a=te(_0xb9551f,_0x9f0abe);if(!_0x20636a)return;let _0x4c15ad=x(_0x47a700,_0x20636a);_0x4c15ad>_0x1e5c53||_0x24f5d7&&_0x4c15ad>=_0x24f5d7['distance']||(_0x24f5d7={'handle':{'kind':_0x9f0abe,'anchorId':_0xb9551f['id']},'point':_(_0x20636a),'distance':_0x4c15ad});});}),_0x24f5d7;}function ce(_0x2b5382,_0x4b5907,_0x45b57f){const _0x551329=_0xa6e8;let _0x160df6=null,_0x1c6e42=_0x2b5382[_0x551329(0x89)]?_0x2b5382[_0x551329(0xae)]['length']:Math[_0x551329(0x71)](0x0,_0x2b5382[_0x551329(0xae)][_0x551329(0xab)]-0x1);for(let _0x19edd8=0x0;_0x19edd8<_0x1c6e42;_0x19edd8++){let _0x1a9c5c=T(_0x2b5382,_0x19edd8);if(!_0x1a9c5c)continue;let _0x40ac56=D(_0x1a9c5c,0x0);for(let _0x29d6d0=0x1;_0x29d6d0<=0x20;_0x29d6d0++){let _0x31bba2=D(_0x1a9c5c,_0x29d6d0/0x20),_0x34dff3=O(_0x4b5907,_0x40ac56,_0x31bba2),_0x66749=(_0x29d6d0-0x1+_0x34dff3[_0x551329(0x8a)])/0x20;(!_0x160df6||_0x34dff3['distance']<_0x160df6[_0x551329(0xa7)])&&(_0x160df6={'segmentIndex':_0x19edd8,'t':_0x66749,'point':_0x34dff3[_0x551329(0xac)],'distance':_0x34dff3[_0x551329(0xa7)]}),_0x40ac56=_0x31bba2;}}return _0x160df6&&_0x160df6[_0x551329(0xa7)]<=_0x45b57f?_0x160df6:null;}function le(_0x54cf5a,_0x1d8fa6,_0x234861){const _0x6321f2=_0xa6e8;let _0x251b04=y(_0x54cf5a),_0x2db2a2=w(_0x251b04,_0x1d8fa6[_0x6321f2(0x73)]),_0x3ef9c9=T(_0x251b04,_0x1d8fa6[_0x6321f2(0x73)]);if(!_0x2db2a2||!_0x3ef9c9)return _0x251b04;let _0x153c36=ne(_0x3ef9c9,Math[_0x6321f2(0x71)](0x0,Math[_0x6321f2(0xb2)](0x1,_0x1d8fa6['t']))),_0x5094df={'id':_0x234861(),'x':_0x153c36[_0x6321f2(0xb3)][0x3]['x'],'y':_0x153c36['left'][0x3]['y'],'in':_(_0x153c36[_0x6321f2(0xb3)][0x2]),'out':_(_0x153c36[_0x6321f2(0x81)][0x1]),'pointType':_0x6321f2(0xb8)};return _0x251b04['anchors'][_0x2db2a2['startIndex']][_0x6321f2(0x84)]=_(_0x153c36[_0x6321f2(0xb3)][0x1]),_0x251b04[_0x6321f2(0xae)][_0x2db2a2['endIndex']]['in']=_(_0x153c36[_0x6321f2(0x81)][0x2]),_0x251b04[_0x6321f2(0xae)]['splice'](_0x2db2a2['startIndex']+0x1,0x0,_0x5094df),_0x251b04;}function ue(_0x2e4d6d,_0x284c08){const _0x5bdb71=_0xa6e8;let _0x392943=y(_0x2e4d6d);return _0x392943[_0x5bdb71(0xae)]=_0x392943[_0x5bdb71(0xae)][_0x5bdb71(0x98)](_0x99e245=>_0x99e245['id']!==_0x284c08),_0x392943[_0x5bdb71(0x89)]&&_0x392943[_0x5bdb71(0xae)][_0x5bdb71(0xab)]<0x3&&(_0x392943[_0x5bdb71(0x89)]=!0x1),_0x392943;}function N(_0x121236,_0x3410c8,_0x5e7aeb){const _0x3d1e0f=_0xa6e8;let _0x1dc4cd=y(_0x121236),_0x23f969=_0x1dc4cd[_0x3d1e0f(0xae)][_0x3d1e0f(0x7f)](_0xa9c6f8=>_0xa9c6f8['id']===_0x3410c8),_0x527baa=_0x1dc4cd['anchors'][_0x23f969];if(!_0x527baa)return _0x1dc4cd;if(_0x527baa[_0x3d1e0f(0xb5)]=_0x5e7aeb,_0x5e7aeb===_0x3d1e0f(0xa3))return delete _0x527baa['in'],delete _0x527baa['out'],_0x1dc4cd;let _0x44c50c=j(_0x1dc4cd,_0x23f969);if(_0x527baa['in']=_0x527baa['in']?_(_0x527baa['in']):_0x44c50c['in'],_0x527baa[_0x3d1e0f(0x84)]=_0x527baa['out']?_(_0x527baa[_0x3d1e0f(0x84)]):_0x44c50c[_0x3d1e0f(0x84)],_0x5e7aeb===_0x3d1e0f(0xc4)){let _0x17a71c=Math[_0x3d1e0f(0x71)](x(_0x527baa,_0x527baa['in']),x(_0x527baa,_0x527baa[_0x3d1e0f(0x84)]),0x32),_0x490154=S({'x':_0x527baa[_0x3d1e0f(0x84)]['x']-_0x527baa['x'],'y':_0x527baa[_0x3d1e0f(0x84)]['y']-_0x527baa['y']});_0x527baa[_0x3d1e0f(0x84)]={'x':_0x527baa['x']+_0x490154['x']*_0x17a71c,'y':_0x527baa['y']+_0x490154['y']*_0x17a71c},_0x527baa['in']={'x':_0x527baa['x']-_0x490154['x']*_0x17a71c,'y':_0x527baa['y']-_0x490154['y']*_0x17a71c};}else _0x5e7aeb===_0x3d1e0f(0x6c)&&M(_0x527baa,_0x3d1e0f(0x84));return _0x1dc4cd;}function P(_0x2531db,_0x44a56c){const _0x3e3248=_0xa6e8;let _0x2d75d6=_0x2531db['anchors'][_0x3e3248(0x8d)](_0x2ff419=>_0x2ff419['id']===_0x44a56c),_0x358b30=(_0x2d75d6==null?void 0x0:_0x2d75d6['pointType'])??_0x3e3248(0xa3);return N(_0x2531db,_0x44a56c,_0x358b30===_0x3e3248(0xa3)?_0x3e3248(0x6c):_0x358b30===_0x3e3248(0x6c)?'symmetric':_0x358b30==='symmetric'?_0x3e3248(0xb8):'corner');}function F(_0x2d1047,_0x544e0c,_0xfc8ada){const _0x2355e6=_0xa6e8;let _0x4cc9e3=y(_0x2d1047),_0x23be65=_0x4cc9e3[_0x2355e6(0xae)][_0x2355e6(0x8d)](_0x611f7f=>_0x611f7f['id']===_0x544e0c[_0x2355e6(0xb1)]);if(!_0x23be65)return _0x4cc9e3;if(_0x544e0c[_0x2355e6(0x7d)]===_0x2355e6(0x75)){let _0x563207={'x':_0xfc8ada['x']-_0x23be65['x'],'y':_0xfc8ada['y']-_0x23be65['y']};return _0x23be65['x']=_0xfc8ada['x'],_0x23be65['y']=_0xfc8ada['y'],_0x23be65['in']&&={'x':_0x23be65['in']['x']+_0x563207['x'],'y':_0x23be65['in']['y']+_0x563207['y']},_0x23be65[_0x2355e6(0x84)]&&={'x':_0x23be65['out']['x']+_0x563207['x'],'y':_0x23be65[_0x2355e6(0x84)]['y']+_0x563207['y']},_0x4cc9e3;}return _0x23be65[_0x544e0c[_0x2355e6(0x7d)]]=_(_0xfc8ada),_0x23be65[_0x2355e6(0xb5)]===_0x2355e6(0xa3)&&(_0x23be65[_0x2355e6(0xb5)]='free'),M(_0x23be65,_0x544e0c[_0x2355e6(0x7d)]),_0x4cc9e3;}const I=1e-9;function L(_0x2a8fa1){const _0x1bf56f=_0xa6e8;let _0x2b4c95=Math[_0x1bf56f(0x74)](_0x2a8fa1*0x2710)/0x2710;return Object['is'](_0x2b4c95,-0x0)?'0':String(_0x2b4c95);}function R(_0x2daf38){return L(_0x2daf38['x'])+'\x20'+L(_0x2daf38['y']);}function z(_0x172cc6,_0x4605c2){return{'x':_0x172cc6['x']-_0x4605c2['x'],'y':_0x172cc6['y']-_0x4605c2['y']};}function B(_0x2dcfaf,_0x362f06,_0x2c99a3,_0x182b2f,_0x5c350f){let _0x4037ad=0x1-_0x5c350f;return{'x':_0x4037ad*_0x4037ad*_0x4037ad*_0x2dcfaf['x']+0x3*_0x4037ad*_0x4037ad*_0x5c350f*_0x362f06['x']+0x3*_0x4037ad*_0x5c350f*_0x5c350f*_0x2c99a3['x']+_0x5c350f*_0x5c350f*_0x5c350f*_0x182b2f['x'],'y':_0x4037ad*_0x4037ad*_0x4037ad*_0x2dcfaf['y']+0x3*_0x4037ad*_0x4037ad*_0x5c350f*_0x362f06['y']+0x3*_0x4037ad*_0x5c350f*_0x5c350f*_0x2c99a3['y']+_0x5c350f*_0x5c350f*_0x5c350f*_0x182b2f['y']};}function V(_0x1fd8e7,_0x439b6d,_0x46c724,_0x453352){const _0xc2e663=_0xa6e8;let _0x4de1d2=-_0x1fd8e7+0x3*_0x439b6d-0x3*_0x46c724+_0x453352,_0x3606a9=0x3*_0x1fd8e7-0x6*_0x439b6d+0x3*_0x46c724,_0x2b73ba=-0x3*_0x1fd8e7+0x3*_0x439b6d,_0xcb7972=[];if(Math[_0xc2e663(0x96)](_0x4de1d2)<I){if(Math['abs'](_0x3606a9)<I)return _0xcb7972;let _0x192e2b=-_0x2b73ba/(0x2*_0x3606a9);return _0x192e2b>0x0&&_0x192e2b<0x1&&_0xcb7972['push'](_0x192e2b),_0xcb7972;}let _0x52dfec=_0x3606a9*_0x3606a9-0x3*_0x4de1d2*_0x2b73ba;if(_0x52dfec<0x0)return _0xcb7972;let _0xc68246=Math[_0xc2e663(0x97)](Math[_0xc2e663(0x71)](0x0,_0x52dfec)),_0x3df083=(-_0x3606a9+_0xc68246)/(0x3*_0x4de1d2),_0x3e6a57=(-_0x3606a9-_0xc68246)/(0x3*_0x4de1d2);return _0x3df083>0x0&&_0x3df083<0x1&&_0xcb7972[_0xc2e663(0x7c)](_0x3df083),_0x3e6a57>0x0&&_0x3e6a57<0x1&&Math[_0xc2e663(0x96)](_0x3e6a57-_0x3df083)>I&&_0xcb7972[_0xc2e663(0x7c)](_0x3e6a57),_0xcb7972;}function H(_0xcefa55,_0x999634,_0x49742d,_0x3e1ead,_0x501b2e){const _0x1fd5a4=_0xa6e8;_0xcefa55[_0x1fd5a4(0x7c)](_0x999634,_0x501b2e),new Set([...V(_0x999634['x'],_0x49742d['x'],_0x3e1ead['x'],_0x501b2e['x']),...V(_0x999634['y'],_0x49742d['y'],_0x3e1ead['y'],_0x501b2e['y'])])[_0x1fd5a4(0xa9)](_0x7740c1=>{const _0x33457f=_0x1fd5a4;_0xcefa55[_0x33457f(0x7c)](B(_0x999634,_0x49742d,_0x3e1ead,_0x501b2e,_0x7740c1));});}function U(_0x3a410b){const _0x1eaf77=_0xa6e8;let _0x343701=_0x3a410b[_0x1eaf77(0xae)];if(_0x343701[_0x1eaf77(0xab)]<=0x1)return _0x343701;let _0x3cebf3=[];for(let _0x23d098=0x1;_0x23d098<_0x343701[_0x1eaf77(0xab)];_0x23d098++){let _0x289780=_0x343701[_0x23d098-0x1],_0x1261ad=_0x343701[_0x23d098];H(_0x3cebf3,_0x289780,_0x289780['out']??_0x289780,_0x1261ad['in']??_0x1261ad,_0x1261ad);}if(_0x3a410b[_0x1eaf77(0x89)]&&_0x343701['length']>0x1){let _0x523b9a=_0x343701[_0x343701[_0x1eaf77(0xab)]-0x1],_0x3cd466=_0x343701[0x0];H(_0x3cebf3,_0x523b9a,_0x523b9a[_0x1eaf77(0x84)]??_0x523b9a,_0x3cd466['in']??_0x3cd466,_0x3cd466);}return _0x3cebf3;}function de(_0xd4d8e5){const _0x4f95fe=_0xa6e8;let _0x52ab0c=_0xd4d8e5[_0x4f95fe(0x95)];if(_0x52ab0c[_0x4f95fe(0xab)]<=0x1)return _0x52ab0c;let _0x510fe5=[];for(let _0x57cef9=0x0;_0x57cef9<_0x52ab0c[_0x4f95fe(0xab)]-0x1;_0x57cef9++){let _0x54c8f1=_0x52ab0c[_0x57cef9],_0x1fce4c=_0x52ab0c[_0x57cef9+0x1],_0x158d07=_0x52ab0c[_0x57cef9-0x1]??_0x54c8f1,_0x1e7ca8=_0x52ab0c[_0x57cef9+0x2]??_0x1fce4c;H(_0x510fe5,_0x54c8f1,{'x':_0x54c8f1['x']+(_0x1fce4c['x']-_0x158d07['x'])/0x6,'y':_0x54c8f1['y']+(_0x1fce4c['y']-_0x158d07['y'])/0x6},{'x':_0x1fce4c['x']-(_0x1e7ca8['x']-_0x54c8f1['x'])/0x6,'y':_0x1fce4c['y']-(_0x1e7ca8['y']-_0x54c8f1['y'])/0x6},_0x1fce4c);}return _0x510fe5;}function fe(_0x3f83fc){const _0x5a6c0d=_0xa6e8;return _0x3f83fc[_0x5a6c0d(0x7d)]===_0x5a6c0d(0x7e)?U(_0x3f83fc):de(_0x3f83fc);}function W(_0x3c69e3){const _0x1fabc5=_0xa6e8;let _0x3b9b72=Math[_0x1fabc5(0x74)](_0x3c69e3*0x2710)/0x2710;return Object['is'](_0x3b9b72,-0x0)?0x0:_0x3b9b72;}function G(_0x19f094){const _0x1d802a=_0xa6e8;let _0x27edcd=fe(_0x19f094);if(_0x27edcd[_0x1d802a(0xab)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x2c75d2=Math[_0x1d802a(0xb2)](..._0x27edcd[_0x1d802a(0x86)](_0x77b9bb=>_0x77b9bb['x'])),_0x5771bd=Math[_0x1d802a(0xb2)](..._0x27edcd[_0x1d802a(0x86)](_0x4de94d=>_0x4de94d['y'])),_0x5ed010=Math[_0x1d802a(0x71)](..._0x27edcd['map'](_0x2dce57=>_0x2dce57['x'])),_0x4f621b=Math[_0x1d802a(0x71)](..._0x27edcd['map'](_0x553ef3=>_0x553ef3['y']));return{'left':W(_0x2c75d2),'top':W(_0x5771bd),'width':W(Math[_0x1d802a(0x71)](0x1,_0x5ed010-_0x2c75d2)),'height':W(Math[_0x1d802a(0x71)](0x1,_0x4f621b-_0x5771bd))};}function pe(_0x5afb8a,_0x679f8b){const _0x2a9398=_0xa6e8;let _0xa7ed8d=_0x5afb8a['anchors'];if(_0xa7ed8d[_0x2a9398(0xab)]===0x0)return'';let _0x25ff72=['M\x20'+R(z(_0xa7ed8d[0x0],_0x679f8b))];for(let _0xce010f=0x1;_0xce010f<_0xa7ed8d['length'];_0xce010f++){let _0x3a3a84=_0xa7ed8d[_0xce010f-0x1],_0x4c4095=_0xa7ed8d[_0xce010f],_0x30ec4c=_0x3a3a84[_0x2a9398(0x84)]??_0x3a3a84,_0x8b2a41=_0x4c4095['in']??_0x4c4095;_0x25ff72[_0x2a9398(0x7c)]('C\x20'+R(z(_0x30ec4c,_0x679f8b))+'\x20'+R(z(_0x8b2a41,_0x679f8b))+'\x20'+R(z(_0x4c4095,_0x679f8b)));}if(_0x5afb8a[_0x2a9398(0x89)]&&_0xa7ed8d[_0x2a9398(0xab)]>0x1){let _0x35bf97=_0xa7ed8d[_0xa7ed8d['length']-0x1],_0x5a3504=_0xa7ed8d[0x0],_0x76d188=_0x35bf97[_0x2a9398(0x84)]??_0x35bf97,_0x1cf5db=_0x5a3504['in']??_0x5a3504;_0x25ff72[_0x2a9398(0x7c)]('C\x20'+R(z(_0x76d188,_0x679f8b))+'\x20'+R(z(_0x1cf5db,_0x679f8b))+'\x20'+R(z(_0x5a3504,_0x679f8b))),_0x25ff72[_0x2a9398(0x7c)]('Z');}return _0x25ff72[_0x2a9398(0x72)]('\x20');}function me(_0x145651,_0x307647){const _0x42b032=_0xa6e8;let _0x3dcd33=_0x145651['points'][_0x42b032(0x86)](_0xb6ffcb=>z(_0xb6ffcb,_0x307647));if(_0x3dcd33[_0x42b032(0xab)]===0x0)return'';if(_0x3dcd33[_0x42b032(0xab)]===0x1)return'M\x20'+R(_0x3dcd33[0x0]);let _0x1033d0=['M\x20'+R(_0x3dcd33[0x0])];for(let _0x14a3f3=0x0;_0x14a3f3<_0x3dcd33[_0x42b032(0xab)]-0x1;_0x14a3f3++){let _0x34f98c=_0x3dcd33[_0x14a3f3],_0x28b907=_0x3dcd33[_0x14a3f3+0x1],_0x32a1a3=_0x3dcd33[_0x14a3f3-0x1]??_0x34f98c,_0x4e9d01=_0x3dcd33[_0x14a3f3+0x2]??_0x28b907,_0x5e70c7={'x':_0x34f98c['x']+(_0x28b907['x']-_0x32a1a3['x'])/0x6,'y':_0x34f98c['y']+(_0x28b907['y']-_0x32a1a3['y'])/0x6},_0x3dd837={'x':_0x28b907['x']-(_0x4e9d01['x']-_0x34f98c['x'])/0x6,'y':_0x28b907['y']-(_0x4e9d01['y']-_0x34f98c['y'])/0x6};_0x1033d0['push']('C\x20'+R(_0x5e70c7)+'\x20'+R(_0x3dd837)+'\x20'+R(_0x28b907));}return _0x1033d0['join']('\x20');}function he(_0xd7c84d,_0x431852){const _0x58ee8e=_0xa6e8;return _0xd7c84d[_0x58ee8e(0x7d)]===_0x58ee8e(0x7e)?pe(_0xd7c84d,_0x431852):me(_0xd7c84d,_0x431852);}function ge(_0x4d23d9,_0x255e18){const _0x5af349=_0xa6e8;return _0x255e18!=null&&_0x255e18['color']?_0x255e18[_0x5af349(0x9d)]:_0x4d23d9[_0x5af349(0x7d)]==='pen'?_0x5af349(0x76):_0x4d23d9[_0x5af349(0x9d)];}function _e(_0xac9607,_0x5a5b79){const _0xe23c66=_0xa6e8;return(_0x5a5b79==null?void 0x0:_0x5a5b79['width'])===void 0x0?_0xac9607['kind']===_0xe23c66(0x7e)?0x2:_0xac9607[_0xe23c66(0x9e)]:_0x5a5b79[_0xe23c66(0x9e)];}function ve(_0x1ff6f6,_0x3cd9be){const _0x3504cf=_0xa6e8;return(_0x3cd9be==null?void 0x0:_0x3cd9be[_0x3504cf(0xa8)])===void 0x0?_0x1ff6f6[_0x3504cf(0x7d)]==='pen'?void 0x0:_0x1ff6f6[_0x3504cf(0xa8)]:_0x3cd9be[_0x3504cf(0xa8)];}function ye(_0x4b3432,_0x4834e4){const _0x37b7c3=_0xa6e8;let _0x107ee4=G(_0x4b3432),_0x10ea17=he(_0x4b3432,{'x':_0x107ee4['left'],'y':_0x107ee4['top']}),_0x3e021=_0x4b3432[_0x37b7c3(0x7d)]===_0x37b7c3(0x7e)&&_0x4b3432['closed'],_0x26f87d=_0x4834e4==null?void 0x0:_0x4834e4['fillColor'];return{'shapeType':_0x55f3a7[_0x37b7c3(0xc1)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x107ee4[_0x37b7c3(0x9e)],'h':_0x107ee4[_0x37b7c3(0xc0)],'fill':_0x3e021?_0x37b7c3(0xbc):'none','stroke':!0x0,'data':_0x10ea17,'dataArray':be(_0x4b3432,{'x':_0x107ee4[_0x37b7c3(0xb3)],'y':_0x107ee4['top']})}]},'fill':_0x3e021&&_0x26f87d?{'color':_0x26f87d,'fillType':_0x44a149[_0x37b7c3(0xbf)]}:{'fillType':_0x44a149[_0x37b7c3(0x8b)]},'stroke':{'color':ge(_0x4b3432,_0x4834e4),'width':_e(_0x4b3432,_0x4834e4),'opacity':ve(_0x4b3432,_0x4834e4),'lineStrokeType':_0x1adfb6[_0x37b7c3(0xb7)],'capType':_0x16f41b[_0x37b7c3(0x80)],'lineJoinType':_0x91310c[_0x37b7c3(0x80)]}};}function K(_0x1b9ca0,_0x329d51){return{'x':_0x1b9ca0['x']-_0x329d51['x'],'y':_0x1b9ca0['y']-_0x329d51['y']};}function be(_0x46806c,_0xc6f0a9){const _0x1e4b4c=_0xa6e8;if(_0x46806c[_0x1e4b4c(0x7d)]===_0x1e4b4c(0x7e)){let _0x5db4d2=_0x46806c[_0x1e4b4c(0xae)];if(_0x5db4d2['length']===0x0)return[];let _0x2489ff=K(_0x5db4d2[0x0],_0xc6f0a9),_0x188b67=[{'command':'M','points':[_0x2489ff['x'],_0x2489ff['y']]}];for(let _0x6acf4=0x1;_0x6acf4<_0x5db4d2[_0x1e4b4c(0xab)];_0x6acf4++){let _0x456655=_0x5db4d2[_0x6acf4-0x1],_0xcf59e0=_0x5db4d2[_0x6acf4],_0x161716=K(_0x456655[_0x1e4b4c(0x84)]??_0x456655,_0xc6f0a9),_0x304f88=K(_0xcf59e0['in']??_0xcf59e0,_0xc6f0a9),_0x21cde8=K(_0xcf59e0,_0xc6f0a9);_0x188b67['push']({'command':'C','points':[_0x161716['x'],_0x161716['y'],_0x304f88['x'],_0x304f88['y'],_0x21cde8['x'],_0x21cde8['y']]});}if(_0x46806c['closed']&&_0x5db4d2[_0x1e4b4c(0xab)]>0x1){let _0x50979d=_0x5db4d2[_0x5db4d2[_0x1e4b4c(0xab)]-0x1],_0x20a745=_0x5db4d2[0x0],_0x28db01=K(_0x50979d['out']??_0x50979d,_0xc6f0a9),_0x4af0c7=K(_0x20a745['in']??_0x20a745,_0xc6f0a9),_0x52015c=K(_0x20a745,_0xc6f0a9);_0x188b67[_0x1e4b4c(0x7c)]({'command':'C','points':[_0x28db01['x'],_0x28db01['y'],_0x4af0c7['x'],_0x4af0c7['y'],_0x52015c['x'],_0x52015c['y']]}),_0x188b67[_0x1e4b4c(0x7c)]({'command':'z','points':[]});}return _0x188b67;}let _0x4de5c7=_0x46806c[_0x1e4b4c(0x95)][_0x1e4b4c(0x86)](_0x1b930e=>K(_0x1b930e,_0xc6f0a9));if(_0x4de5c7[_0x1e4b4c(0xab)]===0x0)return[];let _0x24ee85=[{'command':'M','points':[_0x4de5c7[0x0]['x'],_0x4de5c7[0x0]['y']]}];for(let _0xdd5641=0x0;_0xdd5641<_0x4de5c7[_0x1e4b4c(0xab)]-0x1;_0xdd5641++){let _0x2d9c8a=_0x4de5c7[_0xdd5641],_0x214f24=_0x4de5c7[_0xdd5641+0x1],_0x1afe45=_0x4de5c7[_0xdd5641-0x1]??_0x2d9c8a,_0x11fb33=_0x4de5c7[_0xdd5641+0x2]??_0x214f24,_0xc2fde6={'x':_0x2d9c8a['x']+(_0x214f24['x']-_0x1afe45['x'])/0x6,'y':_0x2d9c8a['y']+(_0x214f24['y']-_0x1afe45['y'])/0x6},_0x3ed11b={'x':_0x214f24['x']-(_0x11fb33['x']-_0x2d9c8a['x'])/0x6,'y':_0x214f24['y']-(_0x11fb33['y']-_0x2d9c8a['y'])/0x6};_0x24ee85[_0x1e4b4c(0x7c)]({'command':'C','points':[_0xc2fde6['x'],_0xc2fde6['y'],_0x3ed11b['x'],_0x3ed11b['y'],_0x214f24['x'],_0x214f24['y']]});}return _0x24ee85;}function xe(_0x3d5ba3){const _0x3e6d86=_0xa6e8;let {model:_0x19f146,sourceModel:_0x5b03c9=_0x19f146,style:_0x51cf1a}=_0x3d5ba3,_0x85a45e=_0x3d5ba3['tool']??_0x19f146[_0x3e6d86(0x7d)],_0x1c2615=G(_0x19f146),_0x33152b=_0x19f146['kind']==='pen'&&_0x85a45e!=='pen'?_0x19f146:void 0x0;return{'transform':{..._0x1c2615,'rotation':0x0},'shapeData':ye(_0x19f146,_0x51cf1a),'ink':{'version':0x1,'tool':_0x85a45e,'sourceModel':_0x5b03c9,..._0x33152b?{'editModel':_0x33152b}:{},'normalizedBounds':_0x1c2615}};}var Se='@univerjs-pro/ink',Ce=_0x4b144b(0xa5);function q(_0x1facf5){'@babel/helpers - typeof';const _0x570018=_0x4b144b;return q=typeof Symbol==_0x570018(0xba)&&typeof Symbol[_0x570018(0xbe)]==_0x570018(0x7b)?function(_0x3d1981){return typeof _0x3d1981;}:function(_0x5223b3){const _0x5d211b=_0x570018;return _0x5223b3&&typeof Symbol=='function'&&_0x5223b3[_0x5d211b(0xbb)]===Symbol&&_0x5223b3!==Symbol[_0x5d211b(0xaf)]?_0x5d211b(0x7b):typeof _0x5223b3;},q(_0x1facf5);}function we(_0x10985f,_0x14ecdf){const _0x558d0d=_0x4b144b;if(q(_0x10985f)!='object'||!_0x10985f)return _0x10985f;var _0x10ab46=_0x10985f[Symbol[_0x558d0d(0x9c)]];if(_0x10ab46!==void 0x0){var _0x1be331=_0x10ab46['call'](_0x10985f,_0x14ecdf||_0x558d0d(0xa2));if(q(_0x1be331)!=_0x558d0d(0x93))return _0x1be331;throw TypeError(_0x558d0d(0x94));}return(_0x14ecdf===_0x558d0d(0x6d)?String:Number)(_0x10985f);}function J(_0x1da09a){const _0x472dfa=_0x4b144b;var _0x18a3eb=we(_0x1da09a,_0x472dfa(0x6d));return q(_0x18a3eb)==_0x472dfa(0x7b)?_0x18a3eb:_0x18a3eb+'';}function _0x5b48(){const _0x15659d=['out','363544uTiaLF','map','ink.config','beginInkMode','closed','ratio','NoFill','indexOf','find','17996979anZsDx','_commandService','registerCommand','3074907mvsAeo','createCustomShape','object','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','points','abs','sqrt','filter','1475490ZiIDgV','disposeWithMe','4qzUpMU','toPrimitive','color','width','splice','4298HiufEU','hypot','default','corner','onStarting','1.0.0-beta.0','_config','distance','opacity','forEach','3558775YdBCum','length','point','17196CDtEdj','anchors','prototype','registerAdapter','anchorId','min','left','start','pointType','decorate','SolidLine','free','_adapters','function','constructor','norm','9ZJDHWX','iterator','SolidFill','height','Rect','ink.operation.start','409113mVOQtx','symmetric','smooth','string','defineProperty','setConfig','add','max','join','segmentIndex','round','anchor','#f54a45','_configService','_injector','4wCnkGp','version','symbol','push','kind','pen','findIndex','Round','right','tolerance','type'];_0x5b48=function(){return _0x15659d;};return _0x5b48();}function Y(_0x2cd039,_0x49203b,_0x57474e){const _0x318249=_0x4b144b;return(_0x49203b=J(_0x49203b))in _0x2cd039?Object[_0x318249(0x6e)](_0x2cd039,_0x49203b,{'value':_0x57474e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2cd039[_0x49203b]=_0x57474e,_0x2cd039;}const X=_0x2b9493('ink.host-adapter.service');var Te=class{constructor(){const _0x2e3e3e=_0x4b144b;Y(this,_0x2e3e3e(0xb9),[]);}[_0x4b144b(0xb0)](_0x58364a){const _0x57712d=_0x4b144b;return this['_adapters'][_0x57712d(0x7c)](_0x58364a),_0x309fee(()=>{const _0x5dcfce=_0x57712d;let _0x1f35d4=this[_0x5dcfce(0xb9)][_0x5dcfce(0x8c)](_0x58364a);_0x1f35d4>=0x0&&this['_adapters'][_0x5dcfce(0x9f)](_0x1f35d4,0x1);});}[_0x4b144b(0x88)](_0x1b0518){const _0x50e357=_0x4b144b;for(let _0x512cb6 of this[_0x50e357(0xb9)])if(_0x512cb6[_0x50e357(0x88)](_0x1b0518))return!0x0;return!0x1;}async['createCustomShape'](_0x13597d){const _0x3a3d88=_0x4b144b;for(let _0x506fed of this[_0x3a3d88(0xb9)])if(_0x506fed[_0x3a3d88(0x92)]&&await _0x506fed[_0x3a3d88(0x92)](_0x13597d))return!0x0;return!0x1;}};const Ee={'id':_0x4b144b(0xc2),'type':_0x12267a['OPERATION'],'handler':(_0x356ada,_0x5a3929)=>_0x5a3929?_0x356ada['get'](X)[_0x4b144b(0x88)](_0x5a3929):!0x1},Z={};function Q(_0x30f070,_0x153c22){return function(_0x1d3163,_0x4315c8){_0x153c22(_0x1d3163,_0x4315c8,_0x30f070);};}function De(_0x44ef33,_0x510c25,_0x394c76,_0x41c613){const _0x5e2564=_0x4b144b;var _0x29a518=arguments[_0x5e2564(0xab)],_0xffb34d=_0x29a518<0x3?_0x510c25:_0x41c613===null?_0x41c613=Object['getOwnPropertyDescriptor'](_0x510c25,_0x394c76):_0x41c613,_0x1fbf81;if(typeof Reflect==_0x5e2564(0x93)&&typeof Reflect['decorate']==_0x5e2564(0xba))_0xffb34d=Reflect[_0x5e2564(0xb6)](_0x44ef33,_0x510c25,_0x394c76,_0x41c613);else{for(var _0x2a8d54=_0x44ef33[_0x5e2564(0xab)]-0x1;_0x2a8d54>=0x0;_0x2a8d54--)(_0x1fbf81=_0x44ef33[_0x2a8d54])&&(_0xffb34d=(_0x29a518<0x3?_0x1fbf81(_0xffb34d):_0x29a518>0x3?_0x1fbf81(_0x510c25,_0x394c76,_0xffb34d):_0x1fbf81(_0x510c25,_0x394c76))||_0xffb34d);}return _0x29a518>0x3&&_0xffb34d&&Object['defineProperty'](_0x510c25,_0x394c76,_0xffb34d),_0xffb34d;}let $=class extends _0x5aaff8{constructor(_0x4b7fe9=Z,_0x3855a4,_0x24d6c2,_0x4c05b7){const _0x541eb5=_0x4b144b;super(),this[_0x541eb5(0xa6)]=_0x4b7fe9,this[_0x541eb5(0x78)]=_0x3855a4,this[_0x541eb5(0x8f)]=_0x24d6c2,this[_0x541eb5(0x77)]=_0x4c05b7;let {..._0x98179d}=_0x2c6874({},Z,this['_config']);this['_configService'][_0x541eb5(0x6f)](_0x541eb5(0x87),_0x98179d);}[_0x4b144b(0xa4)](){const _0x52e5d0=_0x4b144b;[[X,{'useClass':Te}]][_0x52e5d0(0xa9)](_0x423632=>this['_injector'][_0x52e5d0(0x70)](_0x423632)),this[_0x52e5d0(0x9a)](this[_0x52e5d0(0x8f)][_0x52e5d0(0x90)](Ee));}};Y($,'pluginName','UNIVER_INK_PLUGIN'),Y($,'packageName',Se),Y($,_0x4b144b(0x7a),Ce),Y($,_0x4b144b(0x83),_0x307cd7['UNIVER_UNKNOWN']),$=De([_0xdb0733(_0x5be20a),Q(0x1,_0x4c7430(_0x3cafb4)),Q(0x2,_0x42e8fe),Q(0x3,_0x559208)],$);export{X as IInkHostAdapterService,$ as UniverInkPlugin,xe as buildInkCustomShapePayload,oe as convertBrushModelToPenModel,P as cycleInkPenAnchorPointType,ue as deleteInkPenAnchor,se as findClosestInkPenHandle,ce as findClosestInkPenSegment,G as getInkModelBounds,ae as getInkPenPreviewModel,le as insertInkPenAnchorAt,E as isInkPenHandleVisible,F as moveInkPenAnchorPoint,N as setInkPenAnchorPointType};
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x14de(){const _0xf51d8e=['transform','@univerjs-pro/boards/facade','Shape','exports','parentId','UniverCoreFacade','FEnum','shapeData','anchor','10eFysUj','laneId','insertInk','@univerjs-pro/ink','buildInkCustomShapePayload','points','findElements','filter','every','tool','free','15MQrYax','function','highlighter','@univerjs-pro/boards','6332641RNhtAr','has','length','Tools','trim','out','deepClone','BoardElementType','32VAwdOY','custom','amd','495762cjyIFN','generateRandomId','5RcizmQ','495888wHXmqi','pressure','ink','UniverProInkFacade','BoardInkHandleKind','brush','FBoard','360837QMzKLe','isFinite','isArray','sourceModel','corner','UniverProInk','closed','UniverProBoards','style','6076668iKcIey','BoardInkPointType','width','smooth','anchors','19578779fVCUAG','1254714OCzKov','version','model','opacity','@univerjs/core/facade','object','BoardInkTool','extend'];_0x14de=function(){return _0xf51d8e;};return _0x14de();}function _0x7a93(_0x59b3ff,_0x1035c2){_0x59b3ff=_0x59b3ff-0x1ba;const _0x14ded4=_0x14de();let _0x7a9327=_0x14ded4[_0x59b3ff];return _0x7a9327;}(function(_0x257c49,_0x47cbdb){const _0x5dfbb3=_0x7a93,_0x265fe1=_0x257c49();while(!![]){try{const _0x45998c=parseInt(_0x5dfbb3(0x1d1))/0x1+parseInt(_0x5dfbb3(0x1ea))/0x2+-parseInt(_0x5dfbb3(0x1c2))/0x3*(parseInt(_0x5dfbb3(0x1d4))/0x4)+-parseInt(_0x5dfbb3(0x1d3))/0x5*(parseInt(_0x5dfbb3(0x1e4))/0x6)+-parseInt(_0x5dfbb3(0x1c6))/0x7+-parseInt(_0x5dfbb3(0x1ce))/0x8*(-parseInt(_0x5dfbb3(0x1db))/0x9)+parseInt(_0x5dfbb3(0x1fb))/0xa*(parseInt(_0x5dfbb3(0x1e9))/0xb);if(_0x45998c===_0x47cbdb)break;else _0x265fe1['push'](_0x265fe1['shift']());}catch(_0xff9f82){_0x265fe1['push'](_0x265fe1['shift']());}}}(_0x14de,0x806ff),function(_0x48d052,_0x70d1cc){const _0x1570cc=_0x7a93;typeof exports=='object'&&typeof module<'u'?_0x70d1cc(exports,require('@univerjs-pro/boards'),require('@univerjs-pro/boards/facade'),require('@univerjs-pro/ink'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0x1570cc(0x1c3)&&define[_0x1570cc(0x1d0)]?define([_0x1570cc(0x1f5),_0x1570cc(0x1c5),_0x1570cc(0x1f3),_0x1570cc(0x1ba),'@univerjs/core',_0x1570cc(0x1ee)],_0x70d1cc):(_0x48d052=typeof globalThis<'u'?globalThis:_0x48d052||self,_0x70d1cc(_0x48d052[_0x1570cc(0x1d7)]={},_0x48d052[_0x1570cc(0x1e2)],_0x48d052['UniverProBoardsFacade'],_0x48d052[_0x1570cc(0x1e0)],_0x48d052['UniverCore'],_0x48d052[_0x1570cc(0x1f7)]));}(this,function(_0x145292,_0x3afee0,_0x5c24db,_0x1181b5,_0xde919e,_0x56faea){const _0x44ed01=_0x7a93;Object['defineProperty'](_0x145292,Symbol['toStringTag'],{'value':'Module'});var _0x3fdc8e=class extends _0x5c24db[_0x44ed01(0x1da)]{[_0x44ed01(0x1fd)](_0x56f758){let _0x1509a6=_0x1bbaa5(_0x56f758);return _0x1509a6&&this['_addElement'](_0x1509a6,{'insertIndex':_0x56f758['insertIndex']})?_0x1509a6:null;}['getInks'](){const _0x1f1c18=_0x44ed01;return this[_0x1f1c18(0x1bd)]({'elementType':_0x3afee0['BoardElementType'][_0x1f1c18(0x1f4)],'includeHidden':!0x0,'includeLocked':!0x0})[_0x1f1c18(0x1be)](_0x309766);}};function _0x1bbaa5(_0x1cb2bc,_0x111e0d){const _0x3f5179=_0x44ed01;if(!_0x5f2516(_0x1cb2bc[_0x3f5179(0x1ec)])||_0x1cb2bc['sourceModel']!==void 0x0&&!_0x5f2516(_0x1cb2bc[_0x3f5179(0x1de)])||!_0x3ba848(_0x1cb2bc['style']))return null;let _0xe52ec6=_0x1cb2bc[_0x3f5179(0x1f6)]??(_0x111e0d==null?void 0x0:_0x111e0d[_0x3f5179(0x1f6)]),_0x4ed558=_0xde919e[_0x3f5179(0x1c9)][_0x3f5179(0x1cc)](_0x1cb2bc[_0x3f5179(0x1ec)]),_0x348b86=(0x0,_0x1181b5[_0x3f5179(0x1bb)])({'model':_0x4ed558,'style':_0x1cb2bc[_0x3f5179(0x1e3)],'tool':_0x1cb2bc[_0x3f5179(0x1c0)],'sourceModel':_0x1cb2bc['sourceModel']?_0xde919e[_0x3f5179(0x1c9)]['deepClone'](_0x1cb2bc[_0x3f5179(0x1de)]):_0x4ed558}),_0x1f501c=_0x1ceebb(_0x111e0d==null?void 0x0:_0x111e0d['custom']);return{'id':(_0x111e0d==null?void 0x0:_0x111e0d['id'])??_0x1cb2bc['id']??(0x0,_0xde919e[_0x3f5179(0x1d2)])(0x6),'type':_0x3afee0[_0x3f5179(0x1cd)][_0x3f5179(0x1f4)],'transform':_0x348b86[_0x3f5179(0x1f2)],'shapeData':_0x348b86[_0x3f5179(0x1f9)],'parentId':_0xe52ec6??void 0x0,'laneId':_0x1cb2bc[_0x3f5179(0x1fc)]===void 0x0?_0x111e0d==null?void 0x0:_0x111e0d[_0x3f5179(0x1fc)]:_0x1cb2bc[_0x3f5179(0x1fc)],'custom':{..._0x1f501c,'ink':_0x348b86[_0x3f5179(0x1d6)]}};}function _0x279bc2(_0x4214f7){const _0x3a3894=_0x44ed01;return Number[_0x3a3894(0x1dc)](_0x4214f7['x'])&&Number['isFinite'](_0x4214f7['y']);}function _0x5f2516(_0x39ae3c){const _0x19c718=_0x44ed01;if(_0x39ae3c['kind']==='pen'){let _0x32b750=new Set();return _0x39ae3c[_0x19c718(0x1e8)]['length']>=(_0x39ae3c[_0x19c718(0x1e1)]?0x3:0x2)&&_0x39ae3c[_0x19c718(0x1e8)][_0x19c718(0x1bf)](_0x47a1c2=>{const _0x49d2a8=_0x19c718;let _0x2366c6=_0x47a1c2['id'][_0x49d2a8(0x1ca)]()[_0x49d2a8(0x1c8)]>0x0&&!_0x32b750[_0x49d2a8(0x1c7)](_0x47a1c2['id'])&&_0x279bc2(_0x47a1c2)&&(!_0x47a1c2['in']||_0x279bc2(_0x47a1c2['in']))&&(!_0x47a1c2[_0x49d2a8(0x1cb)]||_0x279bc2(_0x47a1c2[_0x49d2a8(0x1cb)]));return _0x32b750['add'](_0x47a1c2['id']),_0x2366c6;});}return _0x39ae3c[_0x19c718(0x1bc)][_0x19c718(0x1c8)]>=0x2&&_0x39ae3c[_0x19c718(0x1bc)][_0x19c718(0x1bf)](_0x413515=>_0x279bc2(_0x413515)&&Number[_0x19c718(0x1dc)](_0x413515['t'])&&(_0x413515[_0x19c718(0x1d5)]===void 0x0||Number[_0x19c718(0x1dc)](_0x413515[_0x19c718(0x1d5)])))&&Number['isFinite'](_0x39ae3c[_0x19c718(0x1e6)])&&_0x39ae3c[_0x19c718(0x1e6)]>0x0&&Number[_0x19c718(0x1dc)](_0x39ae3c[_0x19c718(0x1ed)])&&_0x39ae3c[_0x19c718(0x1ed)]>=0x0&&_0x39ae3c[_0x19c718(0x1ed)]<=0x1;}function _0x3ba848(_0x10ec56){const _0x2207f6=_0x44ed01;return _0x10ec56===void 0x0||(_0x10ec56[_0x2207f6(0x1e6)]===void 0x0||Number[_0x2207f6(0x1dc)](_0x10ec56[_0x2207f6(0x1e6)])&&_0x10ec56[_0x2207f6(0x1e6)]>0x0)&&(_0x10ec56[_0x2207f6(0x1ed)]===void 0x0||Number[_0x2207f6(0x1dc)](_0x10ec56[_0x2207f6(0x1ed)])&&_0x10ec56['opacity']>=0x0&&_0x10ec56[_0x2207f6(0x1ed)]<=0x1);}function _0x1ceebb(_0x21597f){const _0xc3d8f8=_0x44ed01;return _0x21597f&&typeof _0x21597f==_0xc3d8f8(0x1ef)&&!Array[_0xc3d8f8(0x1dd)](_0x21597f)?_0x21597f:{};}function _0x19aeec(_0x3da603){const _0x518920=_0x44ed01;let _0x41cdb2=_0x1ceebb(_0x3da603[_0x518920(0x1cf)])[_0x518920(0x1d6)];if(!_0x41cdb2||typeof _0x41cdb2!=_0x518920(0x1ef)||Array[_0x518920(0x1dd)](_0x41cdb2))return null;let _0x395db6=_0x41cdb2;return _0x395db6[_0x518920(0x1eb)]===0x1&&_0x395db6[_0x518920(0x1de)]&&typeof _0x395db6[_0x518920(0x1de)]==_0x518920(0x1ef)?_0x395db6:null;}function _0x309766(_0x3ef886){const _0x39b651=_0x44ed01;return _0x3ef886['type']===_0x3afee0[_0x39b651(0x1cd)][_0x39b651(0x1f4)]&&!!_0x19aeec(_0x3ef886);}_0x5c24db[_0x44ed01(0x1da)][_0x44ed01(0x1f1)](_0x3fdc8e);let _0x4ebccd={'Pen':'pen','Brush':_0x44ed01(0x1d9),'Highlighter':_0x44ed01(0x1c4)},_0x5e4c04={'Corner':_0x44ed01(0x1df),'Smooth':_0x44ed01(0x1e7),'Symmetric':'symmetric','Free':_0x44ed01(0x1c1)},_0x42bffb={'Anchor':_0x44ed01(0x1fa),'In':'in','Out':_0x44ed01(0x1cb)};var _0xd200e2=class extends _0x56faea[_0x44ed01(0x1f8)]{get[_0x44ed01(0x1f0)](){return _0x4ebccd;}get[_0x44ed01(0x1e5)](){return _0x5e4c04;}get[_0x44ed01(0x1d8)](){return _0x42bffb;}};_0x56faea['FEnum'][_0x44ed01(0x1f1)](_0xd200e2),_0x145292['BoardInkHandleKind']=_0x42bffb,_0x145292[_0x44ed01(0x1e5)]=_0x5e4c04,_0x145292[_0x44ed01(0x1f0)]=_0x4ebccd;}));
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x333a8d,_0x3774ad){const _0x5c7150=_0x3a25,_0x211721=_0x333a8d();while(!![]){try{const _0x5bae21=parseInt(_0x5c7150(0x1ab))/0x1*(-parseInt(_0x5c7150(0x1a3))/0x2)+-parseInt(_0x5c7150(0x1f0))/0x3+parseInt(_0x5c7150(0x1b9))/0x4+-parseInt(_0x5c7150(0x200))/0x5*(parseInt(_0x5c7150(0x1c8))/0x6)+-parseInt(_0x5c7150(0x20b))/0x7+-parseInt(_0x5c7150(0x1d9))/0x8*(-parseInt(_0x5c7150(0x1b8))/0x9)+parseInt(_0x5c7150(0x1df))/0xa;if(_0x5bae21===_0x3774ad)break;else _0x211721['push'](_0x211721['shift']());}catch(_0x544444){_0x211721['push'](_0x211721['shift']());}}}(_0x5601,0xda0be),function(_0x27e1e0,_0x3ee756){const _0x10d8fb=_0x3a25;typeof exports==_0x10d8fb(0x1bf)&&typeof module<'u'?_0x3ee756(exports,require('@univerjs-pro/engine-shape'),require('@univerjs-pro/license'),require('@univerjs/core')):typeof define==_0x10d8fb(0x1d3)&&define[_0x10d8fb(0x204)]?define(['exports',_0x10d8fb(0x1f6),_0x10d8fb(0x1d7),_0x10d8fb(0x1f2)],_0x3ee756):(_0x27e1e0=typeof globalThis<'u'?globalThis:_0x27e1e0||self,_0x3ee756(_0x27e1e0['UniverProInk']={},_0x27e1e0[_0x10d8fb(0x1a2)],_0x27e1e0[_0x10d8fb(0x1e4)],_0x27e1e0[_0x10d8fb(0x1a5)]));}(this,function(_0x1e5548,_0x5d0e63,_0x5a5096,_0x3c5076){const _0x3e2d3d=_0x3a25;Object[_0x3e2d3d(0x1c9)](_0x1e5548,Symbol[_0x3e2d3d(0x1ce)],{'value':_0x3e2d3d(0x1c2)});let _0x750d33=0.0001;function _0x4faa80(_0x3579a9){return{'x':_0x3579a9['x'],'y':_0x3579a9['y']};}function _0x27923b(_0x9a3af3){const _0x309c3e=_0x3e2d3d;return{..._0x9a3af3,'in':_0x9a3af3['in']?_0x4faa80(_0x9a3af3['in']):void 0x0,'out':_0x9a3af3[_0x309c3e(0x1e3)]?_0x4faa80(_0x9a3af3[_0x309c3e(0x1e3)]):void 0x0};}function _0x45f530(_0x1ff9d8){const _0x14a99f=_0x3e2d3d;return{'kind':'pen','closed':_0x1ff9d8[_0x14a99f(0x21a)],'anchors':_0x1ff9d8[_0x14a99f(0x219)][_0x14a99f(0x1d6)](_0x27923b)};}function _0x20aa2d(_0x304374,_0x2849fb,_0x4e009e){return{'x':_0x304374['x']+(_0x2849fb['x']-_0x304374['x'])*_0x4e009e,'y':_0x304374['y']+(_0x2849fb['y']-_0x304374['y'])*_0x4e009e};}function _0x4c79dd(_0x1f2bd6,_0x442af4){const _0x260107=_0x3e2d3d;return Math[_0x260107(0x1e7)](_0x1f2bd6['x']-_0x442af4['x'],_0x1f2bd6['y']-_0x442af4['y']);}function _0x2d266b(_0x404356){const _0x54e0c7=_0x3e2d3d;let _0xeef88c=Math[_0x54e0c7(0x1e7)](_0x404356['x'],_0x404356['y']);return _0xeef88c<_0x750d33?{'x':0x1,'y':0x0}:{'x':_0x404356['x']/_0xeef88c,'y':_0x404356['y']/_0xeef88c};}function _0x5ea08e(_0x1ffbf5,_0x26a936,_0x114724=_0x4c79dd(_0x1ffbf5,_0x26a936)){let _0x5e407e=_0x2d266b({'x':_0x1ffbf5['x']-_0x26a936['x'],'y':_0x1ffbf5['y']-_0x26a936['y']});return{'x':_0x1ffbf5['x']+_0x5e407e['x']*_0x114724,'y':_0x1ffbf5['y']+_0x5e407e['y']*_0x114724};}function _0x95c95c(_0x1057fb,_0x25ccad){const _0x1b4ea8=_0x3e2d3d;let {anchors:_0x29adc7}=_0x1057fb;return _0x29adc7[_0x1b4ea8(0x1a0)]<0x2||_0x25ccad<0x0?null:_0x25ccad<_0x29adc7['length']-0x1?{'startIndex':_0x25ccad,'endIndex':_0x25ccad+0x1,'start':_0x29adc7[_0x25ccad],'end':_0x29adc7[_0x25ccad+0x1]}:_0x1057fb['closed']&&_0x25ccad===_0x29adc7['length']-0x1?{'startIndex':_0x29adc7[_0x1b4ea8(0x1a0)]-0x1,'endIndex':0x0,'start':_0x29adc7[_0x29adc7[_0x1b4ea8(0x1a0)]-0x1],'end':_0x29adc7[0x0]}:null;}function _0x37e941(_0x10f53e,_0x18d588){const _0x2b488c=_0x3e2d3d;var _0x4cd7c6,_0x4f9292;let _0x53b94c=_0x95c95c(_0x10f53e,_0x18d588);return _0x53b94c?[_0x53b94c[_0x2b488c(0x1a1)],(_0x4cd7c6=_0x53b94c['start'][_0x2b488c(0x1e3)])==null?_0x53b94c[_0x2b488c(0x1a1)]:_0x4cd7c6,(_0x4f9292=_0x53b94c['end']['in'])==null?_0x53b94c[_0x2b488c(0x1c3)]:_0x4f9292,_0x53b94c['end']]:null;}function _0x1b4f30(_0x53248f,_0x4b3577){const _0xd8b5cc=_0x3e2d3d;var _0x4f961f;return _0x4b3577===_0xd8b5cc(0x1b3)?_0x53248f:(_0x4f961f=_0x53248f[_0x4b3577])==null?null:_0x4f961f;}function _0x3dd58e(_0x290827,_0x81112f,_0x1aae3f){const _0x306a71=_0x3e2d3d;return _0x1aae3f==='anchor'||_0x290827[_0x306a71(0x21a)]?!0x0:_0x1aae3f==='in'?_0x81112f>0x0:_0x81112f<_0x290827[_0x306a71(0x219)][_0x306a71(0x1a0)]-0x1;}function _0x4ab5a6(_0x5393dc,_0x4f9617){let [_0x4d3fbc,_0x116adc,_0x20d219,_0x14e458]=_0x5393dc,_0x3d7031=_0x20aa2d(_0x4d3fbc,_0x116adc,_0x4f9617),_0x4b6221=_0x20aa2d(_0x116adc,_0x20d219,_0x4f9617),_0x54745d=_0x20aa2d(_0x20d219,_0x14e458,_0x4f9617);return _0x20aa2d(_0x20aa2d(_0x3d7031,_0x4b6221,_0x4f9617),_0x20aa2d(_0x4b6221,_0x54745d,_0x4f9617),_0x4f9617);}function _0x445693(_0x3e4c5d,_0x66df80){let [_0x45373c,_0x3f824a,_0x403ca6,_0x55e853]=_0x3e4c5d,_0x3213dd=_0x20aa2d(_0x45373c,_0x3f824a,_0x66df80),_0xea7d32=_0x20aa2d(_0x3f824a,_0x403ca6,_0x66df80),_0x13be45=_0x20aa2d(_0x403ca6,_0x55e853,_0x66df80),_0x190701=_0x20aa2d(_0x3213dd,_0xea7d32,_0x66df80),_0x75057e=_0x20aa2d(_0xea7d32,_0x13be45,_0x66df80),_0x10db2e=_0x20aa2d(_0x190701,_0x75057e,_0x66df80);return{'left':[_0x45373c,_0x3213dd,_0x190701,_0x10db2e],'right':[_0x10db2e,_0x75057e,_0x13be45,_0x55e853]};}function _0x38956b(_0x360a2b,_0x18e35c,_0x93c675){const _0x173269=_0x3e2d3d;let _0x2a6931=_0x93c675['x']-_0x18e35c['x'],_0x29a125=_0x93c675['y']-_0x18e35c['y'],_0x58ca46=_0x2a6931*_0x2a6931+_0x29a125*_0x29a125,_0x2f6d0c=_0x58ca46<=_0x750d33?0x0:Math[_0x173269(0x206)](0x0,Math[_0x173269(0x1bb)](0x1,((_0x360a2b['x']-_0x18e35c['x'])*_0x2a6931+(_0x360a2b['y']-_0x18e35c['y'])*_0x29a125)/_0x58ca46)),_0x4ae6fe={'x':_0x18e35c['x']+_0x2a6931*_0x2f6d0c,'y':_0x18e35c['y']+_0x29a125*_0x2f6d0c};return{'point':_0x4ae6fe,'ratio':_0x2f6d0c,'distance':_0x4c79dd(_0x360a2b,_0x4ae6fe)};}function _0x2fa1e9(_0x5cd0ac,_0x12c22f,_0xef9a14){const _0x37b629=_0x3e2d3d;return _0x38956b(_0x5cd0ac,_0x12c22f,_0xef9a14)[_0x37b629(0x216)]**0x2;}function _0x5d41a5(_0x6573aa,_0x4e0aea){const _0x400939=_0x3e2d3d;if(_0x6573aa[_0x400939(0x1a0)]<=0x2)return _0x6573aa[_0x400939(0x1d6)](_0x4faa80);let _0x4b7b6b=0x0,_0x444b7a=0x0,_0x3c4a2d=_0x6573aa[0x0],_0x37a8b9=_0x6573aa[_0x6573aa[_0x400939(0x1a0)]-0x1],_0x3bf940=_0x4e0aea*_0x4e0aea;for(let _0x4e1ac0=0x1;_0x4e1ac0<_0x6573aa['length']-0x1;_0x4e1ac0++){let _0x57c66d=_0x2fa1e9(_0x6573aa[_0x4e1ac0],_0x3c4a2d,_0x37a8b9);_0x57c66d>_0x4b7b6b&&(_0x4b7b6b=_0x57c66d,_0x444b7a=_0x4e1ac0);}if(_0x4b7b6b<=_0x3bf940)return[_0x4faa80(_0x3c4a2d),_0x4faa80(_0x37a8b9)];let _0x14eccd=_0x5d41a5(_0x6573aa['slice'](0x0,_0x444b7a+0x1),_0x4e0aea),_0x342be8=_0x5d41a5(_0x6573aa['slice'](_0x444b7a),_0x4e0aea);return[..._0x14eccd[_0x400939(0x1a8)](0x0,-0x1),..._0x342be8];}function _0x45abf2(_0x4b0415,_0x316567){var _0x48c856;let _0x5e7e96=_0x4b0415[_0x316567],_0x5434e4=_0x4b0415[_0x316567+0x1],_0x513edc=(_0x48c856=_0x4b0415[_0x316567-0x1])==null?_0x5e7e96:_0x48c856;return{'x':_0x5e7e96['x']+(_0x5434e4['x']-_0x513edc['x'])/0x6,'y':_0x5e7e96['y']+(_0x5434e4['y']-_0x513edc['y'])/0x6};}function _0x596826(_0x550b2f,_0x23c7ba){var _0x1129e9;let _0xfcfa86=_0x550b2f[_0x23c7ba],_0x5c0bf7=_0x550b2f[_0x23c7ba-0x1],_0x2f2bb5=(_0x1129e9=_0x550b2f[_0x23c7ba+0x1])==null?_0xfcfa86:_0x1129e9;return{'x':_0xfcfa86['x']-(_0x2f2bb5['x']-_0x5c0bf7['x'])/0x6,'y':_0xfcfa86['y']-(_0x2f2bb5['y']-_0x5c0bf7['y'])/0x6};}function _0x2a0f36(_0x1c08bb,_0x2cb990){const _0x31a791=_0x3e2d3d;var _0x17106a,_0x4f160e;let _0x148206=_0x1c08bb[_0x31a791(0x219)][_0x2cb990],_0x12cdb2=(_0x17106a=_0x1c08bb['anchors'][_0x2cb990-0x1])==null?_0x1c08bb[_0x31a791(0x21a)]?_0x1c08bb[_0x31a791(0x219)][_0x1c08bb[_0x31a791(0x219)][_0x31a791(0x1a0)]-0x1]:null:_0x17106a,_0x3139a1=(_0x4f160e=_0x1c08bb['anchors'][_0x2cb990+0x1])==null?_0x1c08bb[_0x31a791(0x21a)]?_0x1c08bb[_0x31a791(0x219)][0x0]:null:_0x4f160e,_0x3f2825=_0x12cdb2&&_0x3139a1?_0x2d266b({'x':_0x3139a1['x']-_0x12cdb2['x'],'y':_0x3139a1['y']-_0x12cdb2['y']}):_0x3139a1?_0x2d266b({'x':_0x3139a1['x']-_0x148206['x'],'y':_0x3139a1['y']-_0x148206['y']}):_0x12cdb2?_0x2d266b({'x':_0x148206['x']-_0x12cdb2['x'],'y':_0x148206['y']-_0x12cdb2['y']}):{'x':0x1,'y':0x0},_0x287a9b=_0x12cdb2&&_0x3139a1?Math[_0x31a791(0x206)](0x32,_0x4c79dd(_0x12cdb2,_0x3139a1)/0x4):0x32;return{'in':{'x':_0x148206['x']-_0x3f2825['x']*_0x287a9b,'y':_0x148206['y']-_0x3f2825['y']*_0x287a9b},'out':{'x':_0x148206['x']+_0x3f2825['x']*_0x287a9b,'y':_0x148206['y']+_0x3f2825['y']*_0x287a9b}};}function _0x538446(_0x1041ff,_0x21a2ee){const _0x1959df=_0x3e2d3d;let _0x4d6619=_0x1041ff[_0x21a2ee],_0x2224e2=_0x21a2ee==='in'?_0x1959df(0x1e3):'in',_0x36cffd=_0x1041ff[_0x2224e2];if(_0x4d6619){if(_0x1041ff[_0x1959df(0x1e8)]===_0x1959df(0x1ff)){_0x1041ff[_0x2224e2]=_0x5ea08e(_0x1041ff,_0x4d6619);return;}_0x1041ff[_0x1959df(0x1e8)]===_0x1959df(0x1c7)&&(_0x1041ff[_0x2224e2]=_0x5ea08e(_0x1041ff,_0x4d6619,_0x36cffd?_0x4c79dd(_0x1041ff,_0x36cffd):_0x4c79dd(_0x1041ff,_0x4d6619)));}}function _0x1255d5(_0x1c4e69,_0x46232f){const _0x5ce0dc=_0x3e2d3d;let _0x4c0747=_0x45f530(_0x1c4e69);return!_0x46232f||_0x4c0747[_0x5ce0dc(0x21a)]||_0x4c0747[_0x5ce0dc(0x219)][_0x5ce0dc(0x1a0)]===0x0||_0x4c0747['anchors'][_0x5ce0dc(0x1d2)]({'id':_0x5ce0dc(0x1f1),'x':_0x46232f['x'],'y':_0x46232f['y'],'pointType':'corner'}),_0x4c0747;}function _0x1dd37a(_0x4f7e50,_0x22da49={}){const _0x1166da=_0x3e2d3d;var _0x2329a,_0x412256;let _0x555143=Math['max'](0x0,(_0x2329a=_0x22da49['tolerance'])==null?Math[_0x1166da(0x206)](0x4,_0x4f7e50[_0x1166da(0x1ac)]*0.35):_0x2329a),_0xcbe75f=(_0x412256=_0x22da49[_0x1166da(0x1ba)])==null?_0x22d273=>_0x1166da(0x1af)+_0x22d273:_0x412256,_0x13d2ab=_0x5d41a5(_0x4f7e50[_0x1166da(0x1cc)],_0x555143),_0x27cd59=_0x13d2ab[_0x1166da(0x1d6)]((_0x59de22,_0xbb756)=>({'id':_0xcbe75f(_0xbb756),'x':_0x59de22['x'],'y':_0x59de22['y'],'pointType':_0x1166da(0x1d0)}));for(let _0x599319=0x0;_0x599319<_0x27cd59[_0x1166da(0x1a0)]-0x1;_0x599319++)_0x27cd59[_0x599319]['out']=_0x45abf2(_0x13d2ab,_0x599319),_0x27cd59[_0x599319+0x1]['in']=_0x596826(_0x13d2ab,_0x599319+0x1);return{'kind':_0x1166da(0x1c0),'closed':!0x1,'anchors':_0x27cd59};}function _0x9d965(_0x259eb7,_0x47f957,_0x4a7dff){const _0x24c94e=_0x3e2d3d;let _0x431f84=null,_0x37cd15=[_0x24c94e(0x1b3),'in',_0x24c94e(0x1e3)];return _0x259eb7[_0x24c94e(0x219)][_0x24c94e(0x1e5)]((_0x32fa6b,_0x1026f6)=>{_0x37cd15['forEach'](_0x4107cd=>{const _0x5e6727=_0x3a25;if(!_0x3dd58e(_0x259eb7,_0x1026f6,_0x4107cd))return;let _0x4fa852=_0x1b4f30(_0x32fa6b,_0x4107cd);if(!_0x4fa852)return;let _0x2defb8=_0x4c79dd(_0x47f957,_0x4fa852);_0x2defb8>_0x4a7dff||_0x431f84&&_0x2defb8>=_0x431f84[_0x5e6727(0x216)]||(_0x431f84={'handle':{'kind':_0x4107cd,'anchorId':_0x32fa6b['id']},'point':_0x4faa80(_0x4fa852),'distance':_0x2defb8});});}),_0x431f84;}function _0x1b364a(_0x579564,_0x40f881,_0x1643e8){const _0x37e6c0=_0x3e2d3d;let _0x154fe0=null,_0x4dbea4=_0x579564['closed']?_0x579564[_0x37e6c0(0x219)][_0x37e6c0(0x1a0)]:Math[_0x37e6c0(0x206)](0x0,_0x579564[_0x37e6c0(0x219)]['length']-0x1);for(let _0x32c3af=0x0;_0x32c3af<_0x4dbea4;_0x32c3af++){let _0x224909=_0x37e941(_0x579564,_0x32c3af);if(!_0x224909)continue;let _0x4edb29=_0x4ab5a6(_0x224909,0x0);for(let _0xaff366=0x1;_0xaff366<=0x20;_0xaff366++){let _0x2597f1=_0x4ab5a6(_0x224909,_0xaff366/0x20),_0x2b0e4b=_0x38956b(_0x40f881,_0x4edb29,_0x2597f1),_0x48f6e9=(_0xaff366-0x1+_0x2b0e4b[_0x37e6c0(0x1fa)])/0x20;(!_0x154fe0||_0x2b0e4b[_0x37e6c0(0x216)]<_0x154fe0['distance'])&&(_0x154fe0={'segmentIndex':_0x32c3af,'t':_0x48f6e9,'point':_0x2b0e4b[_0x37e6c0(0x1cd)],'distance':_0x2b0e4b[_0x37e6c0(0x216)]}),_0x4edb29=_0x2597f1;}}return _0x154fe0&&_0x154fe0[_0x37e6c0(0x216)]<=_0x1643e8?_0x154fe0:null;}function _0x29f2ef(_0x310685,_0x30bc9c,_0x2cda7c){const _0x298eb3=_0x3e2d3d;let _0x3dcb36=_0x45f530(_0x310685),_0x188832=_0x95c95c(_0x3dcb36,_0x30bc9c[_0x298eb3(0x1a7)]),_0x8da484=_0x37e941(_0x3dcb36,_0x30bc9c['segmentIndex']);if(!_0x188832||!_0x8da484)return _0x3dcb36;let _0x547497=_0x445693(_0x8da484,Math[_0x298eb3(0x206)](0x0,Math['min'](0x1,_0x30bc9c['t']))),_0x3094d3={'id':_0x2cda7c(),'x':_0x547497[_0x298eb3(0x20a)][0x3]['x'],'y':_0x547497[_0x298eb3(0x20a)][0x3]['y'],'in':_0x4faa80(_0x547497[_0x298eb3(0x20a)][0x2]),'out':_0x4faa80(_0x547497[_0x298eb3(0x1b2)][0x1]),'pointType':'free'};return _0x3dcb36[_0x298eb3(0x219)][_0x188832[_0x298eb3(0x1c1)]][_0x298eb3(0x1e3)]=_0x4faa80(_0x547497[_0x298eb3(0x20a)][0x1]),_0x3dcb36[_0x298eb3(0x219)][_0x188832[_0x298eb3(0x1f5)]]['in']=_0x4faa80(_0x547497[_0x298eb3(0x1b2)][0x2]),_0x3dcb36['anchors'][_0x298eb3(0x1fe)](_0x188832['startIndex']+0x1,0x0,_0x3094d3),_0x3dcb36;}function _0x243a10(_0x2d7eb9,_0x2dc6a3){const _0x1c7458=_0x3e2d3d;let _0x43f8ab=_0x45f530(_0x2d7eb9);return _0x43f8ab[_0x1c7458(0x219)]=_0x43f8ab[_0x1c7458(0x219)]['filter'](_0x247d33=>_0x247d33['id']!==_0x2dc6a3),_0x43f8ab[_0x1c7458(0x21a)]&&_0x43f8ab[_0x1c7458(0x219)][_0x1c7458(0x1a0)]<0x3&&(_0x43f8ab[_0x1c7458(0x21a)]=!0x1),_0x43f8ab;}function _0x4bb597(_0x5c5b64,_0x274024,_0x59b45a){const _0x838d74=_0x3e2d3d;let _0x1b1ecc=_0x45f530(_0x5c5b64),_0x28c07c=_0x1b1ecc[_0x838d74(0x219)][_0x838d74(0x1ed)](_0x5931db=>_0x5931db['id']===_0x274024),_0x179c6d=_0x1b1ecc['anchors'][_0x28c07c];if(!_0x179c6d)return _0x1b1ecc;if(_0x179c6d['pointType']=_0x59b45a,_0x59b45a===_0x838d74(0x1cf))return delete _0x179c6d['in'],delete _0x179c6d[_0x838d74(0x1e3)],_0x1b1ecc;let _0x52ede4=_0x2a0f36(_0x1b1ecc,_0x28c07c);if(_0x179c6d['in']=_0x179c6d['in']?_0x4faa80(_0x179c6d['in']):_0x52ede4['in'],_0x179c6d[_0x838d74(0x1e3)]=_0x179c6d['out']?_0x4faa80(_0x179c6d[_0x838d74(0x1e3)]):_0x52ede4[_0x838d74(0x1e3)],_0x59b45a==='symmetric'){let _0x16a3ba=Math[_0x838d74(0x206)](_0x4c79dd(_0x179c6d,_0x179c6d['in']),_0x4c79dd(_0x179c6d,_0x179c6d[_0x838d74(0x1e3)]),0x32),_0x44fedb=_0x2d266b({'x':_0x179c6d[_0x838d74(0x1e3)]['x']-_0x179c6d['x'],'y':_0x179c6d['out']['y']-_0x179c6d['y']});_0x179c6d[_0x838d74(0x1e3)]={'x':_0x179c6d['x']+_0x44fedb['x']*_0x16a3ba,'y':_0x179c6d['y']+_0x44fedb['y']*_0x16a3ba},_0x179c6d['in']={'x':_0x179c6d['x']-_0x44fedb['x']*_0x16a3ba,'y':_0x179c6d['y']-_0x44fedb['y']*_0x16a3ba};}else _0x59b45a===_0x838d74(0x1c7)&&_0x538446(_0x179c6d,'out');return _0x1b1ecc;}function _0x4e4a28(_0x298c14,_0x1cb35c){const _0x2f209a=_0x3e2d3d;var _0x46e667;let _0x3b571e=_0x298c14['anchors'][_0x2f209a(0x211)](_0x33816f=>_0x33816f['id']===_0x1cb35c),_0x3269a9=(_0x46e667=_0x3b571e==null?void 0x0:_0x3b571e[_0x2f209a(0x1e8)])==null?_0x2f209a(0x1cf):_0x46e667;return _0x4bb597(_0x298c14,_0x1cb35c,_0x3269a9===_0x2f209a(0x1cf)?'smooth':_0x3269a9===_0x2f209a(0x1c7)?_0x2f209a(0x1ff):_0x3269a9===_0x2f209a(0x1ff)?_0x2f209a(0x1d0):_0x2f209a(0x1cf));}function _0x1f11e4(_0x3eb447,_0x4b52a3,_0x39d3b4){const _0x28393e=_0x3e2d3d;let _0x2f8d30=_0x45f530(_0x3eb447),_0x5473bc=_0x2f8d30['anchors'][_0x28393e(0x211)](_0x51edfe=>_0x51edfe['id']===_0x4b52a3[_0x28393e(0x1ef)]);if(!_0x5473bc)return _0x2f8d30;if(_0x4b52a3[_0x28393e(0x21d)]===_0x28393e(0x1b3)){let _0x2f9930={'x':_0x39d3b4['x']-_0x5473bc['x'],'y':_0x39d3b4['y']-_0x5473bc['y']};return _0x5473bc['x']=_0x39d3b4['x'],_0x5473bc['y']=_0x39d3b4['y'],_0x5473bc['in']&&(_0x5473bc['in']={'x':_0x5473bc['in']['x']+_0x2f9930['x'],'y':_0x5473bc['in']['y']+_0x2f9930['y']}),_0x5473bc[_0x28393e(0x1e3)]&&(_0x5473bc[_0x28393e(0x1e3)]={'x':_0x5473bc[_0x28393e(0x1e3)]['x']+_0x2f9930['x'],'y':_0x5473bc[_0x28393e(0x1e3)]['y']+_0x2f9930['y']}),_0x2f8d30;}return _0x5473bc[_0x4b52a3[_0x28393e(0x21d)]]=_0x4faa80(_0x39d3b4),_0x5473bc[_0x28393e(0x1e8)]===_0x28393e(0x1cf)&&(_0x5473bc[_0x28393e(0x1e8)]=_0x28393e(0x1d0)),_0x538446(_0x5473bc,_0x4b52a3[_0x28393e(0x21d)]),_0x2f8d30;}let _0x4de1bb=1e-9;function _0x429f4e(_0x540c2b){const _0x2d5555=_0x3e2d3d;let _0x155c26=Math[_0x2d5555(0x1ec)](_0x540c2b*0x2710)/0x2710;return Object['is'](_0x155c26,-0x0)?'0':String(_0x155c26);}function _0x2201d8(_0x414637){return _0x429f4e(_0x414637['x'])+'\x20'+_0x429f4e(_0x414637['y']);}function _0x5189ee(_0x16560d,_0x32a447){return{'x':_0x16560d['x']-_0x32a447['x'],'y':_0x16560d['y']-_0x32a447['y']};}function _0x23e84a(_0x40b807,_0x11e935,_0x537853,_0x3787d9,_0x505b9b){let _0xdb0355=0x1-_0x505b9b;return{'x':_0xdb0355*_0xdb0355*_0xdb0355*_0x40b807['x']+0x3*_0xdb0355*_0xdb0355*_0x505b9b*_0x11e935['x']+0x3*_0xdb0355*_0x505b9b*_0x505b9b*_0x537853['x']+_0x505b9b*_0x505b9b*_0x505b9b*_0x3787d9['x'],'y':_0xdb0355*_0xdb0355*_0xdb0355*_0x40b807['y']+0x3*_0xdb0355*_0xdb0355*_0x505b9b*_0x11e935['y']+0x3*_0xdb0355*_0x505b9b*_0x505b9b*_0x537853['y']+_0x505b9b*_0x505b9b*_0x505b9b*_0x3787d9['y']};}function _0x28155a(_0x5dd945,_0x2dc2d1,_0x3476e5,_0x2d297a){const _0x387d2c=_0x3e2d3d;let _0x635044=-_0x5dd945+0x3*_0x2dc2d1-0x3*_0x3476e5+_0x2d297a,_0x1b9749=0x3*_0x5dd945-0x6*_0x2dc2d1+0x3*_0x3476e5,_0x3e7f41=-0x3*_0x5dd945+0x3*_0x2dc2d1,_0x4f5d99=[];if(Math['abs'](_0x635044)<_0x4de1bb){if(Math['abs'](_0x1b9749)<_0x4de1bb)return _0x4f5d99;let _0x3f4855=-_0x3e7f41/(0x2*_0x1b9749);return _0x3f4855>0x0&&_0x3f4855<0x1&&_0x4f5d99[_0x387d2c(0x1d2)](_0x3f4855),_0x4f5d99;}let _0x3db204=_0x1b9749*_0x1b9749-0x3*_0x635044*_0x3e7f41;if(_0x3db204<0x0)return _0x4f5d99;let _0x1c5b80=Math[_0x387d2c(0x1bc)](Math[_0x387d2c(0x206)](0x0,_0x3db204)),_0x47938c=(-_0x1b9749+_0x1c5b80)/(0x3*_0x635044),_0x5dd727=(-_0x1b9749-_0x1c5b80)/(0x3*_0x635044);return _0x47938c>0x0&&_0x47938c<0x1&&_0x4f5d99[_0x387d2c(0x1d2)](_0x47938c),_0x5dd727>0x0&&_0x5dd727<0x1&&Math[_0x387d2c(0x1c6)](_0x5dd727-_0x47938c)>_0x4de1bb&&_0x4f5d99[_0x387d2c(0x1d2)](_0x5dd727),_0x4f5d99;}function _0x452c10(_0x5b0df5,_0x34ab3a,_0x1a1b1e,_0x57063c,_0x2b1b12){const _0xc1e072=_0x3e2d3d;_0x5b0df5[_0xc1e072(0x1d2)](_0x34ab3a,_0x2b1b12),new Set([..._0x28155a(_0x34ab3a['x'],_0x1a1b1e['x'],_0x57063c['x'],_0x2b1b12['x']),..._0x28155a(_0x34ab3a['y'],_0x1a1b1e['y'],_0x57063c['y'],_0x2b1b12['y'])])['forEach'](_0x5bec93=>{const _0x373e78=_0xc1e072;_0x5b0df5[_0x373e78(0x1d2)](_0x23e84a(_0x34ab3a,_0x1a1b1e,_0x57063c,_0x2b1b12,_0x5bec93));});}function _0x241a41(_0x193e47){const _0x2a7683=_0x3e2d3d;let _0x2544f8=_0x193e47['anchors'];if(_0x2544f8['length']<=0x1)return _0x2544f8;let _0x219c16=[];for(let _0x15f519=0x1;_0x15f519<_0x2544f8[_0x2a7683(0x1a0)];_0x15f519++){var _0x3c9086,_0x41594a;let _0x2fc3e5=_0x2544f8[_0x15f519-0x1],_0x4b4ad7=_0x2544f8[_0x15f519];_0x452c10(_0x219c16,_0x2fc3e5,(_0x3c9086=_0x2fc3e5['out'])==null?_0x2fc3e5:_0x3c9086,(_0x41594a=_0x4b4ad7['in'])==null?_0x4b4ad7:_0x41594a,_0x4b4ad7);}if(_0x193e47[_0x2a7683(0x21a)]&&_0x2544f8[_0x2a7683(0x1a0)]>0x1){var _0x30eb94,_0x480c4c;let _0x27cc4a=_0x2544f8[_0x2544f8[_0x2a7683(0x1a0)]-0x1],_0x15099d=_0x2544f8[0x0];_0x452c10(_0x219c16,_0x27cc4a,(_0x30eb94=_0x27cc4a['out'])==null?_0x27cc4a:_0x30eb94,(_0x480c4c=_0x15099d['in'])==null?_0x15099d:_0x480c4c,_0x15099d);}return _0x219c16;}function _0x18e165(_0x2c130d){const _0x5e88fd=_0x3e2d3d;let _0x5ed27d=_0x2c130d[_0x5e88fd(0x1cc)];if(_0x5ed27d[_0x5e88fd(0x1a0)]<=0x1)return _0x5ed27d;let _0x592bf8=[];for(let _0x9384ac=0x0;_0x9384ac<_0x5ed27d[_0x5e88fd(0x1a0)]-0x1;_0x9384ac++){var _0xca0bd1,_0x55a850;let _0x4c7dce=_0x5ed27d[_0x9384ac],_0x308ff6=_0x5ed27d[_0x9384ac+0x1],_0x3519f1=(_0xca0bd1=_0x5ed27d[_0x9384ac-0x1])==null?_0x4c7dce:_0xca0bd1,_0x4a93bd=(_0x55a850=_0x5ed27d[_0x9384ac+0x2])==null?_0x308ff6:_0x55a850;_0x452c10(_0x592bf8,_0x4c7dce,{'x':_0x4c7dce['x']+(_0x308ff6['x']-_0x3519f1['x'])/0x6,'y':_0x4c7dce['y']+(_0x308ff6['y']-_0x3519f1['y'])/0x6},{'x':_0x308ff6['x']-(_0x4a93bd['x']-_0x4c7dce['x'])/0x6,'y':_0x308ff6['y']-(_0x4a93bd['y']-_0x4c7dce['y'])/0x6},_0x308ff6);}return _0x592bf8;}function _0xd80d1f(_0x2cb1f2){const _0x50e1e8=_0x3e2d3d;return _0x2cb1f2[_0x50e1e8(0x21d)]===_0x50e1e8(0x1c0)?_0x241a41(_0x2cb1f2):_0x18e165(_0x2cb1f2);}function _0x28c626(_0x398a60){const _0x27499b=_0x3e2d3d;let _0x49e360=Math[_0x27499b(0x1ec)](_0x398a60*0x2710)/0x2710;return Object['is'](_0x49e360,-0x0)?0x0:_0x49e360;}function _0x6a552(_0x54ccfb){const _0x5e1232=_0x3e2d3d;let _0x6aa795=_0xd80d1f(_0x54ccfb);if(_0x6aa795[_0x5e1232(0x1a0)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0xe5ccfe=Math[_0x5e1232(0x1bb)](..._0x6aa795[_0x5e1232(0x1d6)](_0x576e3c=>_0x576e3c['x'])),_0x12401c=Math[_0x5e1232(0x1bb)](..._0x6aa795['map'](_0x59d429=>_0x59d429['y'])),_0x4ade20=Math['max'](..._0x6aa795[_0x5e1232(0x1d6)](_0x4ba525=>_0x4ba525['x'])),_0x565c32=Math['max'](..._0x6aa795[_0x5e1232(0x1d6)](_0x12b025=>_0x12b025['y']));return{'left':_0x28c626(_0xe5ccfe),'top':_0x28c626(_0x12401c),'width':_0x28c626(Math[_0x5e1232(0x206)](0x1,_0x4ade20-_0xe5ccfe)),'height':_0x28c626(Math[_0x5e1232(0x206)](0x1,_0x565c32-_0x12401c))};}function _0x29ad79(_0x42788e,_0x36d182){const _0x3742f0=_0x3e2d3d;let _0x443b9d=_0x42788e[_0x3742f0(0x219)];if(_0x443b9d[_0x3742f0(0x1a0)]===0x0)return'';let _0x2a5b8d=['M\x20'+_0x2201d8(_0x5189ee(_0x443b9d[0x0],_0x36d182))];for(let _0x5dbb67=0x1;_0x5dbb67<_0x443b9d[_0x3742f0(0x1a0)];_0x5dbb67++){var _0x42f78d,_0x5d4571;let _0x3a8c47=_0x443b9d[_0x5dbb67-0x1],_0x5f370d=_0x443b9d[_0x5dbb67],_0x596521=(_0x42f78d=_0x3a8c47['out'])==null?_0x3a8c47:_0x42f78d,_0xf83837=(_0x5d4571=_0x5f370d['in'])==null?_0x5f370d:_0x5d4571;_0x2a5b8d[_0x3742f0(0x1d2)]('C\x20'+_0x2201d8(_0x5189ee(_0x596521,_0x36d182))+'\x20'+_0x2201d8(_0x5189ee(_0xf83837,_0x36d182))+'\x20'+_0x2201d8(_0x5189ee(_0x5f370d,_0x36d182)));}if(_0x42788e[_0x3742f0(0x21a)]&&_0x443b9d[_0x3742f0(0x1a0)]>0x1){var _0x138c0e,_0x1539c8;let _0xc6ebed=_0x443b9d[_0x443b9d[_0x3742f0(0x1a0)]-0x1],_0xa1da4e=_0x443b9d[0x0],_0x256543=(_0x138c0e=_0xc6ebed[_0x3742f0(0x1e3)])==null?_0xc6ebed:_0x138c0e,_0x270196=(_0x1539c8=_0xa1da4e['in'])==null?_0xa1da4e:_0x1539c8;_0x2a5b8d[_0x3742f0(0x1d2)]('C\x20'+_0x2201d8(_0x5189ee(_0x256543,_0x36d182))+'\x20'+_0x2201d8(_0x5189ee(_0x270196,_0x36d182))+'\x20'+_0x2201d8(_0x5189ee(_0xa1da4e,_0x36d182))),_0x2a5b8d[_0x3742f0(0x1d2)]('Z');}return _0x2a5b8d[_0x3742f0(0x1ea)]('\x20');}function _0x32b2f1(_0x5d6304,_0x12c0ab){const _0x413cb8=_0x3e2d3d;let _0x5ce2dd=_0x5d6304[_0x413cb8(0x1cc)]['map'](_0x50ee60=>_0x5189ee(_0x50ee60,_0x12c0ab));if(_0x5ce2dd[_0x413cb8(0x1a0)]===0x0)return'';if(_0x5ce2dd[_0x413cb8(0x1a0)]===0x1)return'M\x20'+_0x2201d8(_0x5ce2dd[0x0]);let _0x6f473d=['M\x20'+_0x2201d8(_0x5ce2dd[0x0])];for(let _0x559b6f=0x0;_0x559b6f<_0x5ce2dd['length']-0x1;_0x559b6f++){var _0x5c8946,_0x4c6301;let _0x3298a2=_0x5ce2dd[_0x559b6f],_0x4ad527=_0x5ce2dd[_0x559b6f+0x1],_0x5b8684=(_0x5c8946=_0x5ce2dd[_0x559b6f-0x1])==null?_0x3298a2:_0x5c8946,_0x9e91ca=(_0x4c6301=_0x5ce2dd[_0x559b6f+0x2])==null?_0x4ad527:_0x4c6301,_0x59e7d9={'x':_0x3298a2['x']+(_0x4ad527['x']-_0x5b8684['x'])/0x6,'y':_0x3298a2['y']+(_0x4ad527['y']-_0x5b8684['y'])/0x6},_0x378794={'x':_0x4ad527['x']-(_0x9e91ca['x']-_0x3298a2['x'])/0x6,'y':_0x4ad527['y']-(_0x9e91ca['y']-_0x3298a2['y'])/0x6};_0x6f473d[_0x413cb8(0x1d2)]('C\x20'+_0x2201d8(_0x59e7d9)+'\x20'+_0x2201d8(_0x378794)+'\x20'+_0x2201d8(_0x4ad527));}return _0x6f473d[_0x413cb8(0x1ea)]('\x20');}function _0x28f44c(_0x31751f,_0x5247f0){return _0x31751f['kind']==='pen'?_0x29ad79(_0x31751f,_0x5247f0):_0x32b2f1(_0x31751f,_0x5247f0);}function _0x2a3fad(_0xe512bc,_0x407734){const _0x4ee38d=_0x3e2d3d;return _0x407734!=null&&_0x407734['color']?_0x407734['color']:_0xe512bc[_0x4ee38d(0x21d)]===_0x4ee38d(0x1c0)?_0x4ee38d(0x1bd):_0xe512bc[_0x4ee38d(0x1f8)];}function _0x3d3526(_0x4c455c,_0x52136f){const _0xf27174=_0x3e2d3d;return(_0x52136f==null?void 0x0:_0x52136f[_0xf27174(0x1ac)])===void 0x0?_0x4c455c[_0xf27174(0x21d)]===_0xf27174(0x1c0)?0x2:_0x4c455c[_0xf27174(0x1ac)]:_0x52136f['width'];}function _0x1d9af3(_0x125172,_0x2bb674){const _0x13b305=_0x3e2d3d;return(_0x2bb674==null?void 0x0:_0x2bb674['opacity'])===void 0x0?_0x125172[_0x13b305(0x21d)]===_0x13b305(0x1c0)?void 0x0:_0x125172['opacity']:_0x2bb674[_0x13b305(0x1b0)];}function _0xab0b95(_0x43d299,_0x256737){const _0x58ca11=_0x3e2d3d;let _0x27561a=_0x6a552(_0x43d299),_0xec0930=_0x28f44c(_0x43d299,{'x':_0x27561a[_0x58ca11(0x20a)],'y':_0x27561a[_0x58ca11(0x207)]}),_0x39135b=_0x43d299[_0x58ca11(0x21d)]==='pen'&&_0x43d299[_0x58ca11(0x21a)],_0x314a03=_0x256737==null?void 0x0:_0x256737[_0x58ca11(0x217)];return{'shapeType':_0x5d0e63[_0x58ca11(0x1f4)]['Rect'],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x27561a[_0x58ca11(0x1ac)],'h':_0x27561a[_0x58ca11(0x1b4)],'fill':_0x39135b?_0x58ca11(0x1f9):_0x58ca11(0x1da),'stroke':!0x0,'data':_0xec0930,'dataArray':_0x1fe57d(_0x43d299,{'x':_0x27561a['left'],'y':_0x27561a[_0x58ca11(0x207)]})}]},'fill':_0x39135b&&_0x314a03?{'color':_0x314a03,'fillType':_0x5d0e63[_0x58ca11(0x1b1)][_0x58ca11(0x20d)]}:{'fillType':_0x5d0e63['ShapeFillEnum'][_0x58ca11(0x215)]},'stroke':{'color':_0x2a3fad(_0x43d299,_0x256737),'width':_0x3d3526(_0x43d299,_0x256737),'opacity':_0x1d9af3(_0x43d299,_0x256737),'lineStrokeType':_0x5d0e63['ShapeLineTypeEnum'][_0x58ca11(0x203)],'capType':_0x5d0e63[_0x58ca11(0x1fb)][_0x58ca11(0x201)],'lineJoinType':_0x5d0e63['ShapeLineJoinEnum'][_0x58ca11(0x201)]}};}function _0xe8730e(_0xc93258,_0x274938){return{'x':_0xc93258['x']-_0x274938['x'],'y':_0xc93258['y']-_0x274938['y']};}function _0x1fe57d(_0x1a33f5,_0x4c7e5b){const _0x14cd67=_0x3e2d3d;if(_0x1a33f5[_0x14cd67(0x21d)]==='pen'){let _0x38d662=_0x1a33f5[_0x14cd67(0x219)];if(_0x38d662['length']===0x0)return[];let _0x455753=_0xe8730e(_0x38d662[0x0],_0x4c7e5b),_0x365c73=[{'command':'M','points':[_0x455753['x'],_0x455753['y']]}];for(let _0x17ed81=0x1;_0x17ed81<_0x38d662[_0x14cd67(0x1a0)];_0x17ed81++){var _0x546f13,_0x461f39;let _0x4e95c8=_0x38d662[_0x17ed81-0x1],_0x54bed9=_0x38d662[_0x17ed81],_0x2f1bef=_0xe8730e((_0x546f13=_0x4e95c8[_0x14cd67(0x1e3)])==null?_0x4e95c8:_0x546f13,_0x4c7e5b),_0x461fc7=_0xe8730e((_0x461f39=_0x54bed9['in'])==null?_0x54bed9:_0x461f39,_0x4c7e5b),_0x13295b=_0xe8730e(_0x54bed9,_0x4c7e5b);_0x365c73[_0x14cd67(0x1d2)]({'command':'C','points':[_0x2f1bef['x'],_0x2f1bef['y'],_0x461fc7['x'],_0x461fc7['y'],_0x13295b['x'],_0x13295b['y']]});}if(_0x1a33f5[_0x14cd67(0x21a)]&&_0x38d662['length']>0x1){var _0x31827b,_0x444ab1;let _0x235fff=_0x38d662[_0x38d662['length']-0x1],_0x1105a5=_0x38d662[0x0],_0x170195=_0xe8730e((_0x31827b=_0x235fff[_0x14cd67(0x1e3)])==null?_0x235fff:_0x31827b,_0x4c7e5b),_0x1f68eb=_0xe8730e((_0x444ab1=_0x1105a5['in'])==null?_0x1105a5:_0x444ab1,_0x4c7e5b),_0x21faed=_0xe8730e(_0x1105a5,_0x4c7e5b);_0x365c73[_0x14cd67(0x1d2)]({'command':'C','points':[_0x170195['x'],_0x170195['y'],_0x1f68eb['x'],_0x1f68eb['y'],_0x21faed['x'],_0x21faed['y']]}),_0x365c73['push']({'command':'z','points':[]});}return _0x365c73;}let _0x3c7e08=_0x1a33f5['points'][_0x14cd67(0x1d6)](_0x5deadc=>_0xe8730e(_0x5deadc,_0x4c7e5b));if(_0x3c7e08['length']===0x0)return[];let _0x12aee1=[{'command':'M','points':[_0x3c7e08[0x0]['x'],_0x3c7e08[0x0]['y']]}];for(let _0x1b1cda=0x0;_0x1b1cda<_0x3c7e08[_0x14cd67(0x1a0)]-0x1;_0x1b1cda++){var _0x25059e,_0x394aa8;let _0x21d77a=_0x3c7e08[_0x1b1cda],_0x1b3218=_0x3c7e08[_0x1b1cda+0x1],_0x1c549f=(_0x25059e=_0x3c7e08[_0x1b1cda-0x1])==null?_0x21d77a:_0x25059e,_0x4020fb=(_0x394aa8=_0x3c7e08[_0x1b1cda+0x2])==null?_0x1b3218:_0x394aa8,_0x2b6f22={'x':_0x21d77a['x']+(_0x1b3218['x']-_0x1c549f['x'])/0x6,'y':_0x21d77a['y']+(_0x1b3218['y']-_0x1c549f['y'])/0x6},_0x540faa={'x':_0x1b3218['x']-(_0x4020fb['x']-_0x21d77a['x'])/0x6,'y':_0x1b3218['y']-(_0x4020fb['y']-_0x21d77a['y'])/0x6};_0x12aee1[_0x14cd67(0x1d2)]({'command':'C','points':[_0x2b6f22['x'],_0x2b6f22['y'],_0x540faa['x'],_0x540faa['y'],_0x1b3218['x'],_0x1b3218['y']]});}return _0x12aee1;}function _0x124243(_0x2befcb){const _0xf0516f=_0x3e2d3d;var _0x28a0c5;let {model:_0x452b1d,sourceModel:_0x35a2aa=_0x452b1d,style:_0x4a1646}=_0x2befcb,_0x438637=(_0x28a0c5=_0x2befcb[_0xf0516f(0x1eb)])==null?_0x452b1d['kind']:_0x28a0c5,_0x57abe0=_0x6a552(_0x452b1d),_0xb5ff79=_0x452b1d['kind']===_0xf0516f(0x1c0)&&_0x438637!=='pen'?_0x452b1d:void 0x0;return{'transform':{..._0x57abe0,'rotation':0x0},'shapeData':_0xab0b95(_0x452b1d,_0x4a1646),'ink':{'version':0x1,'tool':_0x438637,'sourceModel':_0x35a2aa,..._0xb5ff79?{'editModel':_0xb5ff79}:{},'normalizedBounds':_0x57abe0}};}var _0x4c00b0=_0x3e2d3d(0x20f),_0x1f09d8=_0x3e2d3d(0x1e0);function _0x404e25(_0x1341e5){'@babel/helpers - typeof';const _0x389909=_0x3e2d3d;return _0x404e25=typeof Symbol==_0x389909(0x1d3)&&typeof Symbol['iterator']==_0x389909(0x214)?function(_0x33278b){return typeof _0x33278b;}:function(_0x6c24a9){const _0x51ebe2=_0x389909;return _0x6c24a9&&typeof Symbol==_0x51ebe2(0x1d3)&&_0x6c24a9[_0x51ebe2(0x1aa)]===Symbol&&_0x6c24a9!==Symbol[_0x51ebe2(0x1b6)]?_0x51ebe2(0x214):typeof _0x6c24a9;},_0x404e25(_0x1341e5);}function _0x4b75d1(_0x3137f4,_0x4c457e){const _0xc962be=_0x3e2d3d;if(_0x404e25(_0x3137f4)!=_0xc962be(0x1bf)||!_0x3137f4)return _0x3137f4;var _0x9241bb=_0x3137f4[Symbol[_0xc962be(0x21c)]];if(_0x9241bb!==void 0x0){var _0x149106=_0x9241bb['call'](_0x3137f4,_0x4c457e||_0xc962be(0x21e));if(_0x404e25(_0x149106)!=_0xc962be(0x1bf))return _0x149106;throw TypeError(_0xc962be(0x1dc));}return(_0x4c457e==='string'?String:Number)(_0x3137f4);}function _0x1d2c18(_0x5788d9){const _0x559284=_0x3e2d3d;var _0x150dc6=_0x4b75d1(_0x5788d9,'string');return _0x404e25(_0x150dc6)==_0x559284(0x214)?_0x150dc6:_0x150dc6+'';}function _0x5d299a(_0x4ebf7b,_0xe59687,_0x378e28){const _0x442c71=_0x3e2d3d;return(_0xe59687=_0x1d2c18(_0xe59687))in _0x4ebf7b?Object[_0x442c71(0x1c9)](_0x4ebf7b,_0xe59687,{'value':_0x378e28,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4ebf7b[_0xe59687]=_0x378e28,_0x4ebf7b;}let _0x248220=(0x0,_0x3c5076[_0x3e2d3d(0x1cb)])(_0x3e2d3d(0x1a6));var _0x5a8206=class{constructor(){const _0x573234=_0x3e2d3d;_0x5d299a(this,_0x573234(0x20c),[]);}[_0x3e2d3d(0x1de)](_0x41ff62){const _0x906695=_0x3e2d3d;return this[_0x906695(0x20c)][_0x906695(0x1d2)](_0x41ff62),(0x0,_0x3c5076[_0x906695(0x1a9)])(()=>{const _0x5a5773=_0x906695;let _0x2ad084=this[_0x5a5773(0x20c)][_0x5a5773(0x1a4)](_0x41ff62);_0x2ad084>=0x0&&this[_0x5a5773(0x20c)][_0x5a5773(0x1fe)](_0x2ad084,0x1);});}[_0x3e2d3d(0x1ae)](_0x4e394c){const _0x38bf7=_0x3e2d3d;for(let _0x19b68a of this[_0x38bf7(0x20c)])if(_0x19b68a['beginInkMode'](_0x4e394c))return!0x0;return!0x1;}async[_0x3e2d3d(0x210)](_0x141645){const _0x5ef37c=_0x3e2d3d;for(let _0x4d94f6 of this[_0x5ef37c(0x20c)])if(_0x4d94f6[_0x5ef37c(0x210)]&&await _0x4d94f6[_0x5ef37c(0x210)](_0x141645))return!0x0;return!0x1;}};let _0x5a802a={'id':_0x3e2d3d(0x1e6),'type':_0x3c5076[_0x3e2d3d(0x1ad)]['OPERATION'],'handler':(_0x4c8a57,_0x99f52f)=>_0x99f52f?_0x4c8a57[_0x3e2d3d(0x1b7)](_0x248220)[_0x3e2d3d(0x1ae)](_0x99f52f):!0x1},_0x1e9ceb={};function _0x5680b7(_0xa3aed8,_0x124210){return function(_0x5a5dc0,_0x394d80){_0x124210(_0x5a5dc0,_0x394d80,_0xa3aed8);};}function _0x72a505(_0x52615b,_0x2215ed,_0x577992,_0x546693){const _0x27758a=_0x3e2d3d;var _0x226938=arguments[_0x27758a(0x1a0)],_0x2db658=_0x226938<0x3?_0x2215ed:_0x546693===null?_0x546693=Object['getOwnPropertyDescriptor'](_0x2215ed,_0x577992):_0x546693,_0x31b16f;if(typeof Reflect==_0x27758a(0x1bf)&&typeof Reflect['decorate']==_0x27758a(0x1d3))_0x2db658=Reflect[_0x27758a(0x218)](_0x52615b,_0x2215ed,_0x577992,_0x546693);else{for(var _0x3444bd=_0x52615b[_0x27758a(0x1a0)]-0x1;_0x3444bd>=0x0;_0x3444bd--)(_0x31b16f=_0x52615b[_0x3444bd])&&(_0x2db658=(_0x226938<0x3?_0x31b16f(_0x2db658):_0x226938>0x3?_0x31b16f(_0x2215ed,_0x577992,_0x2db658):_0x31b16f(_0x2215ed,_0x577992))||_0x2db658);}return _0x226938>0x3&&_0x2db658&&Object[_0x27758a(0x1c9)](_0x2215ed,_0x577992,_0x2db658),_0x2db658;}let _0x3a54e7=class extends _0x3c5076[_0x3e2d3d(0x205)]{constructor(_0x2ecb44=_0x1e9ceb,_0x1810d8,_0x180204,_0x39d4ff){const _0x5aef00=_0x3e2d3d;super(),this[_0x5aef00(0x1b5)]=_0x2ecb44,this[_0x5aef00(0x19e)]=_0x1810d8,this[_0x5aef00(0x21b)]=_0x180204,this[_0x5aef00(0x1fc)]=_0x39d4ff;let {..._0x3fe1ca}=(0x0,_0x3c5076[_0x5aef00(0x1ca)])({},_0x1e9ceb,this[_0x5aef00(0x1b5)]);this[_0x5aef00(0x1fc)][_0x5aef00(0x1e1)]('ink.config',_0x3fe1ca);}['onStarting'](){const _0x18d484=_0x3e2d3d;[[_0x248220,{'useClass':_0x5a8206}]][_0x18d484(0x1e5)](_0x23947a=>this[_0x18d484(0x19e)][_0x18d484(0x202)](_0x23947a)),this['disposeWithMe'](this[_0x18d484(0x21b)][_0x18d484(0x1d8)](_0x5a802a));}};_0x5d299a(_0x3a54e7,'pluginName',_0x3e2d3d(0x1db)),_0x5d299a(_0x3a54e7,_0x3e2d3d(0x1ee),_0x4c00b0),_0x5d299a(_0x3a54e7,'version',_0x1f09d8),_0x5d299a(_0x3a54e7,_0x3e2d3d(0x1fd),_0x3c5076[_0x3e2d3d(0x213)]['UNIVER_UNKNOWN']),_0x3a54e7=_0x72a505([(0x0,_0x3c5076[_0x3e2d3d(0x1be)])(_0x5a5096[_0x3e2d3d(0x1f3)]),_0x5680b7(0x1,(0x0,_0x3c5076[_0x3e2d3d(0x1dd)])(_0x3c5076[_0x3e2d3d(0x209)])),_0x5680b7(0x2,_0x3c5076[_0x3e2d3d(0x1d5)]),_0x5680b7(0x3,_0x3c5076[_0x3e2d3d(0x1e9)])],_0x3a54e7),_0x1e5548[_0x3e2d3d(0x1c4)]=_0x248220,Object[_0x3e2d3d(0x1c9)](_0x1e5548,'UniverInkPlugin',{'enumerable':!0x0,'get':function(){return _0x3a54e7;}}),_0x1e5548[_0x3e2d3d(0x1f7)]=_0x124243,_0x1e5548['convertBrushModelToPenModel']=_0x1dd37a,_0x1e5548['cycleInkPenAnchorPointType']=_0x4e4a28,_0x1e5548[_0x3e2d3d(0x1d1)]=_0x243a10,_0x1e5548[_0x3e2d3d(0x212)]=_0x9d965,_0x1e5548[_0x3e2d3d(0x208)]=_0x1b364a,_0x1e5548[_0x3e2d3d(0x20e)]=_0x6a552,_0x1e5548[_0x3e2d3d(0x1e2)]=_0x1255d5,_0x1e5548['insertInkPenAnchorAt']=_0x29f2ef,_0x1e5548[_0x3e2d3d(0x1d4)]=_0x3dd58e,_0x1e5548[_0x3e2d3d(0x19f)]=_0x1f11e4,_0x1e5548[_0x3e2d3d(0x1c5)]=_0x4bb597;}));function _0x3a25(_0x43493d,_0x47b4ce){_0x43493d=_0x43493d-0x19e;const _0x560183=_0x5601();let _0x3a25d1=_0x560183[_0x43493d];return _0x3a25d1;}function _0x5601(){const _0x2e1285=['__ink-preview-anchor__','@univerjs/core','UniverLicensePlugin','ShapeTypeEnum','endIndex','@univerjs-pro/engine-shape','buildInkCustomShapePayload','color','norm','ratio','ShapeLineCapEnum','_configService','type','splice','symmetric','20xbcgzL','Round','add','SolidLine','amd','Plugin','max','top','findClosestInkPenSegment','Injector','left','1076677XoaYDi','_adapters','SolidFill','getInkModelBounds','@univerjs-pro/ink','createCustomShape','find','findClosestInkPenHandle','UniverInstanceType','symbol','NoFill','distance','fillColor','decorate','anchors','closed','_commandService','toPrimitive','kind','default','_injector','moveInkPenAnchorPoint','length','start','UniverProEngineShape','241622fKprLn','indexOf','UniverCore','ink.host-adapter.service','segmentIndex','slice','toDisposable','constructor','11WtirBI','width','CommandType','beginInkMode','ink-centerline-','opacity','ShapeFillEnum','right','anchor','height','_config','prototype','get','405LlmurC','3777936CQqcCW','createId','min','sqrt','#f54a45','DependentOn','object','pen','startIndex','Module','end','IInkHostAdapterService','setInkPenAnchorPointType','abs','smooth','1093332wmStSy','defineProperty','merge','createIdentifier','points','point','toStringTag','corner','free','deleteInkPenAnchor','push','function','isInkPenHandleVisible','ICommandService','map','@univerjs-pro/license','registerCommand','166688vlWeXe','none','UNIVER_INK_PLUGIN','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','Inject','registerAdapter','13533350rPXVuX','1.0.0-alpha.7','setConfig','getInkPenPreviewModel','out','UniverProLicense','forEach','ink.operation.start','hypot','pointType','IConfigService','join','tool','round','findIndex','packageName','anchorId','392103BQkMDS'];_0x5601=function(){return _0x2e1285;};return _0x5601();}
|
|
1
|
+
function _0xabc5(){const _0x2b153d=['function','defineProperty','_configService','ShapeLineJoinEnum','findClosestInkPenSegment','toDisposable','ShapeFillEnum','_injector','SolidLine','min','width','UniverProInk','12FNnTOQ','pen','getOwnPropertyDescriptor','60474mTJRqv','Inject','tolerance','Rect','get','3724462BcXggo','__ink-preview-anchor__','insertInkPenAnchorAt','kind','indexOf','distance','UniverProEngineShape','object','onStarting','exports','anchors','cycleInkPenAnchorPointType','right','fillColor','getInkModelBounds','closed','Module','450744histmz','string','2800464FVIXWx','_config','free','length','UniverLicensePlugin','buildInkCustomShapePayload','hypot','left','SolidFill','Injector','opacity','4705RQnHdX','toStringTag','_commandService','IConfigService','anchorId','toPrimitive','startIndex','abs','norm','UniverCore','decorate','ratio','UNIVER_UNKNOWN','1443070FSOvBI','start','beginInkMode','corner','symbol','UniverInstanceType','map','default','1878sSQDZt','type','deleteInkPenAnchor','sqrt','1063965YNIZXV','points','call','UNIVER_INK_PLUGIN','convertBrushModelToPenModel','UniverProLicense','slice','ink.config','_adapters','smooth','segmentIndex','@univerjs-pro/engine-shape','merge','registerCommand','join','disposeWithMe','version','moveInkPenAnchorPoint','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','Round','anchor','CommandType','ICommandService','@univerjs-pro/ink','point','splice','forEach','none','out','108uvoMkn','endIndex','color','pointType','UniverInkPlugin','ShapeLineTypeEnum','Plugin','iterator','ink.operation.start','createCustomShape','max','find','findIndex','push','symmetric','findClosestInkPenHandle'];_0xabc5=function(){return _0x2b153d;};return _0xabc5();}function _0x2b0b(_0x5a4bfb,_0x2da652){_0x5a4bfb=_0x5a4bfb-0x197;const _0xabc5ec=_0xabc5();let _0x2b0b77=_0xabc5ec[_0x5a4bfb];return _0x2b0b77;}(function(_0x301c89,_0x1de1e9){const _0x22987c=_0x2b0b,_0x5702e8=_0x301c89();while(!![]){try{const _0x107a0f=-parseInt(_0x22987c(0x1e1))/0x1*(parseInt(_0x22987c(0x1de))/0x2)+-parseInt(_0x22987c(0x1a5))/0x3+-parseInt(_0x22987c(0x1f7))/0x4+-parseInt(_0x22987c(0x204))/0x5*(-parseInt(_0x22987c(0x1a1))/0x6)+-parseInt(_0x22987c(0x1e6))/0x7+-parseInt(_0x22987c(0x1f9))/0x8+parseInt(_0x22987c(0x1c2))/0x9*(parseInt(_0x22987c(0x199))/0xa);if(_0x107a0f===_0x1de1e9)break;else _0x5702e8['push'](_0x5702e8['shift']());}catch(_0x260b4e){_0x5702e8['push'](_0x5702e8['shift']());}}}(_0xabc5,0x4ca34),function(_0x3ffbfb,_0x116e5c){const _0x427ec1=_0x2b0b;typeof exports==_0x427ec1(0x1ed)&&typeof module<'u'?_0x116e5c(exports,require('@univerjs-pro/engine-shape'),require('@univerjs-pro/license'),require('@univerjs/core')):typeof define=='function'&&define['amd']?define([_0x427ec1(0x1ef),_0x427ec1(0x1b0),'@univerjs-pro/license','@univerjs/core'],_0x116e5c):(_0x3ffbfb=typeof globalThis<'u'?globalThis:_0x3ffbfb||self,_0x116e5c(_0x3ffbfb[_0x427ec1(0x1dd)]={},_0x3ffbfb[_0x427ec1(0x1ec)],_0x3ffbfb[_0x427ec1(0x1aa)],_0x3ffbfb[_0x427ec1(0x20d)]));}(this,function(_0x4ee07e,_0x52baf6,_0x201bf2,_0x379462){const _0x2eb73d=_0x2b0b;Object[_0x2eb73d(0x1d3)](_0x4ee07e,Symbol[_0x2eb73d(0x205)],{'value':_0x2eb73d(0x1f6)});let _0x36039e=0.0001;function _0x5636de(_0x1b6ff3){return{'x':_0x1b6ff3['x'],'y':_0x1b6ff3['y']};}function _0x28cb41(_0x534151){const _0x30e7a0=_0x2eb73d;return{..._0x534151,'in':_0x534151['in']?_0x5636de(_0x534151['in']):void 0x0,'out':_0x534151[_0x30e7a0(0x1c1)]?_0x5636de(_0x534151[_0x30e7a0(0x1c1)]):void 0x0};}function _0x57af9c(_0x49140b){const _0x3ec0fe=_0x2eb73d;return{'kind':_0x3ec0fe(0x1df),'closed':_0x49140b['closed'],'anchors':_0x49140b[_0x3ec0fe(0x1f0)]['map'](_0x28cb41)};}function _0x5b6a79(_0x191e6c,_0x1b2bbe,_0x334fbb){return{'x':_0x191e6c['x']+(_0x1b2bbe['x']-_0x191e6c['x'])*_0x334fbb,'y':_0x191e6c['y']+(_0x1b2bbe['y']-_0x191e6c['y'])*_0x334fbb};}function _0x8554df(_0x360fb9,_0x2825a6){const _0x2e6a73=_0x2eb73d;return Math[_0x2e6a73(0x1ff)](_0x360fb9['x']-_0x2825a6['x'],_0x360fb9['y']-_0x2825a6['y']);}function _0x3557b8(_0x4e0edb){const _0x58253d=_0x2eb73d;let _0x23a2df=Math[_0x58253d(0x1ff)](_0x4e0edb['x'],_0x4e0edb['y']);return _0x23a2df<_0x36039e?{'x':0x1,'y':0x0}:{'x':_0x4e0edb['x']/_0x23a2df,'y':_0x4e0edb['y']/_0x23a2df};}function _0x2fbb48(_0xbda5d3,_0x255df3,_0x4805d1=_0x8554df(_0xbda5d3,_0x255df3)){let _0x1ee8d0=_0x3557b8({'x':_0xbda5d3['x']-_0x255df3['x'],'y':_0xbda5d3['y']-_0x255df3['y']});return{'x':_0xbda5d3['x']+_0x1ee8d0['x']*_0x4805d1,'y':_0xbda5d3['y']+_0x1ee8d0['y']*_0x4805d1};}function _0x3b6e09(_0x153b16,_0x256847){const _0x1ed8ac=_0x2eb73d;let {anchors:_0x4c8864}=_0x153b16;return _0x4c8864['length']<0x2||_0x256847<0x0?null:_0x256847<_0x4c8864['length']-0x1?{'startIndex':_0x256847,'endIndex':_0x256847+0x1,'start':_0x4c8864[_0x256847],'end':_0x4c8864[_0x256847+0x1]}:_0x153b16[_0x1ed8ac(0x1f5)]&&_0x256847===_0x4c8864[_0x1ed8ac(0x1fc)]-0x1?{'startIndex':_0x4c8864['length']-0x1,'endIndex':0x0,'start':_0x4c8864[_0x4c8864[_0x1ed8ac(0x1fc)]-0x1],'end':_0x4c8864[0x0]}:null;}function _0x3a95f2(_0x57f67a,_0x159343){const _0x576680=_0x2eb73d;let _0x18568d=_0x3b6e09(_0x57f67a,_0x159343);return _0x18568d?[_0x18568d[_0x576680(0x19a)],_0x18568d[_0x576680(0x19a)][_0x576680(0x1c1)]??_0x18568d[_0x576680(0x19a)],_0x18568d['end']['in']??_0x18568d['end'],_0x18568d['end']]:null;}function _0x35fd6e(_0x5019ef,_0x39e421){const _0x584635=_0x2eb73d;return _0x39e421===_0x584635(0x1b9)?_0x5019ef:_0x5019ef[_0x39e421]??null;}function _0x3c158d(_0x25d330,_0xb145fd,_0x4eb9e4){const _0x1fbebf=_0x2eb73d;return _0x4eb9e4===_0x1fbebf(0x1b9)||_0x25d330[_0x1fbebf(0x1f5)]?!0x0:_0x4eb9e4==='in'?_0xb145fd>0x0:_0xb145fd<_0x25d330[_0x1fbebf(0x1f0)]['length']-0x1;}function _0x357514(_0x2f3b50,_0x5b87c4){let [_0x5bfbea,_0x1c7390,_0x3b1128,_0x5851ea]=_0x2f3b50,_0xd87ae6=_0x5b6a79(_0x5bfbea,_0x1c7390,_0x5b87c4),_0x29d6bb=_0x5b6a79(_0x1c7390,_0x3b1128,_0x5b87c4),_0x150a30=_0x5b6a79(_0x3b1128,_0x5851ea,_0x5b87c4);return _0x5b6a79(_0x5b6a79(_0xd87ae6,_0x29d6bb,_0x5b87c4),_0x5b6a79(_0x29d6bb,_0x150a30,_0x5b87c4),_0x5b87c4);}function _0x880238(_0x40aa45,_0x277aa7){let [_0x32f2f4,_0x5371e2,_0x2b8027,_0x4bcc58]=_0x40aa45,_0x3068c2=_0x5b6a79(_0x32f2f4,_0x5371e2,_0x277aa7),_0x10903f=_0x5b6a79(_0x5371e2,_0x2b8027,_0x277aa7),_0x582ddf=_0x5b6a79(_0x2b8027,_0x4bcc58,_0x277aa7),_0x20c392=_0x5b6a79(_0x3068c2,_0x10903f,_0x277aa7),_0x26ffc1=_0x5b6a79(_0x10903f,_0x582ddf,_0x277aa7),_0x2f0bbe=_0x5b6a79(_0x20c392,_0x26ffc1,_0x277aa7);return{'left':[_0x32f2f4,_0x3068c2,_0x20c392,_0x2f0bbe],'right':[_0x2f0bbe,_0x26ffc1,_0x582ddf,_0x4bcc58]};}function _0xcaee59(_0x286c33,_0x21c996,_0x221a58){const _0x24ccff=_0x2eb73d;let _0x519028=_0x221a58['x']-_0x21c996['x'],_0x5bdd61=_0x221a58['y']-_0x21c996['y'],_0x3df65c=_0x519028*_0x519028+_0x5bdd61*_0x5bdd61,_0x41b38d=_0x3df65c<=_0x36039e?0x0:Math[_0x24ccff(0x1cc)](0x0,Math[_0x24ccff(0x1db)](0x1,((_0x286c33['x']-_0x21c996['x'])*_0x519028+(_0x286c33['y']-_0x21c996['y'])*_0x5bdd61)/_0x3df65c)),_0xb73db3={'x':_0x21c996['x']+_0x519028*_0x41b38d,'y':_0x21c996['y']+_0x5bdd61*_0x41b38d};return{'point':_0xb73db3,'ratio':_0x41b38d,'distance':_0x8554df(_0x286c33,_0xb73db3)};}function _0x52c303(_0x9143cb,_0x5a04a9,_0x4db4a8){const _0x26c534=_0x2eb73d;return _0xcaee59(_0x9143cb,_0x5a04a9,_0x4db4a8)[_0x26c534(0x1eb)]**0x2;}function _0x4e57ec(_0xd7506e,_0x48c1bd){const _0x289625=_0x2eb73d;if(_0xd7506e['length']<=0x2)return _0xd7506e[_0x289625(0x19f)](_0x5636de);let _0x1e5042=0x0,_0x1f4b4f=0x0,_0x48c9fc=_0xd7506e[0x0],_0x1f0d8e=_0xd7506e[_0xd7506e[_0x289625(0x1fc)]-0x1],_0x203c6b=_0x48c1bd*_0x48c1bd;for(let _0x41ceb9=0x1;_0x41ceb9<_0xd7506e[_0x289625(0x1fc)]-0x1;_0x41ceb9++){let _0x255cd7=_0x52c303(_0xd7506e[_0x41ceb9],_0x48c9fc,_0x1f0d8e);_0x255cd7>_0x1e5042&&(_0x1e5042=_0x255cd7,_0x1f4b4f=_0x41ceb9);}if(_0x1e5042<=_0x203c6b)return[_0x5636de(_0x48c9fc),_0x5636de(_0x1f0d8e)];let _0x2b2111=_0x4e57ec(_0xd7506e[_0x289625(0x1ab)](0x0,_0x1f4b4f+0x1),_0x48c1bd),_0x242933=_0x4e57ec(_0xd7506e[_0x289625(0x1ab)](_0x1f4b4f),_0x48c1bd);return[..._0x2b2111['slice'](0x0,-0x1),..._0x242933];}function _0x59eae4(_0x5e4ca8,_0x1abc92){let _0x23ee22=_0x5e4ca8[_0x1abc92],_0x381036=_0x5e4ca8[_0x1abc92+0x1],_0x54d579=_0x5e4ca8[_0x1abc92-0x1]??_0x23ee22;return{'x':_0x23ee22['x']+(_0x381036['x']-_0x54d579['x'])/0x6,'y':_0x23ee22['y']+(_0x381036['y']-_0x54d579['y'])/0x6};}function _0x3fc629(_0x198519,_0x53c641){let _0x43babc=_0x198519[_0x53c641],_0x134582=_0x198519[_0x53c641-0x1],_0x2f4def=_0x198519[_0x53c641+0x1]??_0x43babc;return{'x':_0x43babc['x']-(_0x2f4def['x']-_0x134582['x'])/0x6,'y':_0x43babc['y']-(_0x2f4def['y']-_0x134582['y'])/0x6};}function _0xfe817f(_0x50bf8d,_0x15803a){const _0x59dba0=_0x2eb73d;let _0x30d37c=_0x50bf8d[_0x59dba0(0x1f0)][_0x15803a],_0x27db31=_0x50bf8d[_0x59dba0(0x1f0)][_0x15803a-0x1]??(_0x50bf8d[_0x59dba0(0x1f5)]?_0x50bf8d[_0x59dba0(0x1f0)][_0x50bf8d['anchors']['length']-0x1]:null),_0x3f3878=_0x50bf8d['anchors'][_0x15803a+0x1]??(_0x50bf8d[_0x59dba0(0x1f5)]?_0x50bf8d[_0x59dba0(0x1f0)][0x0]:null),_0x2d7f60=_0x27db31&&_0x3f3878?_0x3557b8({'x':_0x3f3878['x']-_0x27db31['x'],'y':_0x3f3878['y']-_0x27db31['y']}):_0x3f3878?_0x3557b8({'x':_0x3f3878['x']-_0x30d37c['x'],'y':_0x3f3878['y']-_0x30d37c['y']}):_0x27db31?_0x3557b8({'x':_0x30d37c['x']-_0x27db31['x'],'y':_0x30d37c['y']-_0x27db31['y']}):{'x':0x1,'y':0x0},_0x15c7d7=_0x27db31&&_0x3f3878?Math[_0x59dba0(0x1cc)](0x32,_0x8554df(_0x27db31,_0x3f3878)/0x4):0x32;return{'in':{'x':_0x30d37c['x']-_0x2d7f60['x']*_0x15c7d7,'y':_0x30d37c['y']-_0x2d7f60['y']*_0x15c7d7},'out':{'x':_0x30d37c['x']+_0x2d7f60['x']*_0x15c7d7,'y':_0x30d37c['y']+_0x2d7f60['y']*_0x15c7d7}};}function _0x29e258(_0x260989,_0x5bcc92){const _0x2e098f=_0x2eb73d;let _0x274c2d=_0x260989[_0x5bcc92],_0x12d9b1=_0x5bcc92==='in'?_0x2e098f(0x1c1):'in',_0x8102eb=_0x260989[_0x12d9b1];if(_0x274c2d){if(_0x260989[_0x2e098f(0x1c5)]===_0x2e098f(0x1d0)){_0x260989[_0x12d9b1]=_0x2fbb48(_0x260989,_0x274c2d);return;}_0x260989[_0x2e098f(0x1c5)]===_0x2e098f(0x1ae)&&(_0x260989[_0x12d9b1]=_0x2fbb48(_0x260989,_0x274c2d,_0x8102eb?_0x8554df(_0x260989,_0x8102eb):_0x8554df(_0x260989,_0x274c2d)));}}function _0x3220e2(_0x343d0b,_0x22b02e){const _0x1a8421=_0x2eb73d;let _0x2740b1=_0x57af9c(_0x343d0b);return!_0x22b02e||_0x2740b1['closed']||_0x2740b1['anchors']['length']===0x0||_0x2740b1['anchors']['push']({'id':_0x1a8421(0x1e7),'x':_0x22b02e['x'],'y':_0x22b02e['y'],'pointType':_0x1a8421(0x19c)}),_0x2740b1;}function _0x23e17d(_0x3e9eda,_0x284abf={}){const _0x53d78f=_0x2eb73d;let _0x1f274b=Math[_0x53d78f(0x1cc)](0x0,_0x284abf[_0x53d78f(0x1e3)]??Math['max'](0x4,_0x3e9eda[_0x53d78f(0x1dc)]*0.35)),_0x581cf5=_0x284abf['createId']??(_0x3eb881=>'ink-centerline-'+_0x3eb881),_0x2b5148=_0x4e57ec(_0x3e9eda[_0x53d78f(0x1a6)],_0x1f274b),_0x29d144=_0x2b5148[_0x53d78f(0x19f)]((_0x3044b0,_0x3f6ebf)=>({'id':_0x581cf5(_0x3f6ebf),'x':_0x3044b0['x'],'y':_0x3044b0['y'],'pointType':_0x53d78f(0x1fb)}));for(let _0x2ef789=0x0;_0x2ef789<_0x29d144[_0x53d78f(0x1fc)]-0x1;_0x2ef789++)_0x29d144[_0x2ef789]['out']=_0x59eae4(_0x2b5148,_0x2ef789),_0x29d144[_0x2ef789+0x1]['in']=_0x3fc629(_0x2b5148,_0x2ef789+0x1);return{'kind':_0x53d78f(0x1df),'closed':!0x1,'anchors':_0x29d144};}function _0x5bca8c(_0x4e5737,_0x3b7657,_0x496e11){const _0x5780bf=_0x2eb73d;let _0xfc7039=null,_0x28abd0=[_0x5780bf(0x1b9),'in',_0x5780bf(0x1c1)];return _0x4e5737[_0x5780bf(0x1f0)]['forEach']((_0x221285,_0x5b8a16)=>{_0x28abd0['forEach'](_0x496815=>{const _0x43b6b8=_0x2b0b;if(!_0x3c158d(_0x4e5737,_0x5b8a16,_0x496815))return;let _0x31b015=_0x35fd6e(_0x221285,_0x496815);if(!_0x31b015)return;let _0x4259fe=_0x8554df(_0x3b7657,_0x31b015);_0x4259fe>_0x496e11||_0xfc7039&&_0x4259fe>=_0xfc7039[_0x43b6b8(0x1eb)]||(_0xfc7039={'handle':{'kind':_0x496815,'anchorId':_0x221285['id']},'point':_0x5636de(_0x31b015),'distance':_0x4259fe});});}),_0xfc7039;}function _0x318c87(_0x326179,_0x550170,_0xdab305){const _0x32ff3c=_0x2eb73d;let _0x409d6e=null,_0x2d8360=_0x326179[_0x32ff3c(0x1f5)]?_0x326179[_0x32ff3c(0x1f0)]['length']:Math['max'](0x0,_0x326179[_0x32ff3c(0x1f0)][_0x32ff3c(0x1fc)]-0x1);for(let _0x31b1ba=0x0;_0x31b1ba<_0x2d8360;_0x31b1ba++){let _0x136aa3=_0x3a95f2(_0x326179,_0x31b1ba);if(!_0x136aa3)continue;let _0x3c9b17=_0x357514(_0x136aa3,0x0);for(let _0x235a9e=0x1;_0x235a9e<=0x20;_0x235a9e++){let _0x3b6f0d=_0x357514(_0x136aa3,_0x235a9e/0x20),_0x1936c0=_0xcaee59(_0x550170,_0x3c9b17,_0x3b6f0d),_0x3b0c44=(_0x235a9e-0x1+_0x1936c0[_0x32ff3c(0x197)])/0x20;(!_0x409d6e||_0x1936c0['distance']<_0x409d6e['distance'])&&(_0x409d6e={'segmentIndex':_0x31b1ba,'t':_0x3b0c44,'point':_0x1936c0[_0x32ff3c(0x1bd)],'distance':_0x1936c0[_0x32ff3c(0x1eb)]}),_0x3c9b17=_0x3b6f0d;}}return _0x409d6e&&_0x409d6e['distance']<=_0xdab305?_0x409d6e:null;}function _0x129779(_0x19d01c,_0x555278,_0x116114){const _0x4da5ea=_0x2eb73d;let _0x168f1f=_0x57af9c(_0x19d01c),_0x505cc0=_0x3b6e09(_0x168f1f,_0x555278['segmentIndex']),_0x1b3f5d=_0x3a95f2(_0x168f1f,_0x555278[_0x4da5ea(0x1af)]);if(!_0x505cc0||!_0x1b3f5d)return _0x168f1f;let _0x53e0a3=_0x880238(_0x1b3f5d,Math[_0x4da5ea(0x1cc)](0x0,Math['min'](0x1,_0x555278['t']))),_0x518eaa={'id':_0x116114(),'x':_0x53e0a3[_0x4da5ea(0x200)][0x3]['x'],'y':_0x53e0a3['left'][0x3]['y'],'in':_0x5636de(_0x53e0a3[_0x4da5ea(0x200)][0x2]),'out':_0x5636de(_0x53e0a3[_0x4da5ea(0x1f2)][0x1]),'pointType':_0x4da5ea(0x1fb)};return _0x168f1f[_0x4da5ea(0x1f0)][_0x505cc0[_0x4da5ea(0x20a)]][_0x4da5ea(0x1c1)]=_0x5636de(_0x53e0a3[_0x4da5ea(0x200)][0x1]),_0x168f1f[_0x4da5ea(0x1f0)][_0x505cc0[_0x4da5ea(0x1c3)]]['in']=_0x5636de(_0x53e0a3[_0x4da5ea(0x1f2)][0x2]),_0x168f1f[_0x4da5ea(0x1f0)]['splice'](_0x505cc0[_0x4da5ea(0x20a)]+0x1,0x0,_0x518eaa),_0x168f1f;}function _0x2573c2(_0x1fa2fd,_0xe14f23){const _0x3de0aa=_0x2eb73d;let _0x6cefc7=_0x57af9c(_0x1fa2fd);return _0x6cefc7[_0x3de0aa(0x1f0)]=_0x6cefc7['anchors']['filter'](_0x3cdec3=>_0x3cdec3['id']!==_0xe14f23),_0x6cefc7['closed']&&_0x6cefc7['anchors'][_0x3de0aa(0x1fc)]<0x3&&(_0x6cefc7[_0x3de0aa(0x1f5)]=!0x1),_0x6cefc7;}function _0x462ed(_0x2bb718,_0x156a75,_0x9edef1){const _0x36599e=_0x2eb73d;let _0x585048=_0x57af9c(_0x2bb718),_0x25393e=_0x585048[_0x36599e(0x1f0)][_0x36599e(0x1ce)](_0x4e761e=>_0x4e761e['id']===_0x156a75),_0x232ca8=_0x585048[_0x36599e(0x1f0)][_0x25393e];if(!_0x232ca8)return _0x585048;if(_0x232ca8[_0x36599e(0x1c5)]=_0x9edef1,_0x9edef1===_0x36599e(0x19c))return delete _0x232ca8['in'],delete _0x232ca8[_0x36599e(0x1c1)],_0x585048;let _0x28da16=_0xfe817f(_0x585048,_0x25393e);if(_0x232ca8['in']=_0x232ca8['in']?_0x5636de(_0x232ca8['in']):_0x28da16['in'],_0x232ca8[_0x36599e(0x1c1)]=_0x232ca8[_0x36599e(0x1c1)]?_0x5636de(_0x232ca8[_0x36599e(0x1c1)]):_0x28da16['out'],_0x9edef1===_0x36599e(0x1d0)){let _0x183ad5=Math[_0x36599e(0x1cc)](_0x8554df(_0x232ca8,_0x232ca8['in']),_0x8554df(_0x232ca8,_0x232ca8['out']),0x32),_0x34e5b9=_0x3557b8({'x':_0x232ca8[_0x36599e(0x1c1)]['x']-_0x232ca8['x'],'y':_0x232ca8['out']['y']-_0x232ca8['y']});_0x232ca8['out']={'x':_0x232ca8['x']+_0x34e5b9['x']*_0x183ad5,'y':_0x232ca8['y']+_0x34e5b9['y']*_0x183ad5},_0x232ca8['in']={'x':_0x232ca8['x']-_0x34e5b9['x']*_0x183ad5,'y':_0x232ca8['y']-_0x34e5b9['y']*_0x183ad5};}else _0x9edef1===_0x36599e(0x1ae)&&_0x29e258(_0x232ca8,_0x36599e(0x1c1));return _0x585048;}function _0x84a394(_0x1236c0,_0x5d9916){const _0x17b28b=_0x2eb73d;let _0xd7599a=_0x1236c0['anchors'][_0x17b28b(0x1cd)](_0x4cb452=>_0x4cb452['id']===_0x5d9916),_0x27c51e=(_0xd7599a==null?void 0x0:_0xd7599a[_0x17b28b(0x1c5)])??'corner';return _0x462ed(_0x1236c0,_0x5d9916,_0x27c51e===_0x17b28b(0x19c)?_0x17b28b(0x1ae):_0x27c51e===_0x17b28b(0x1ae)?_0x17b28b(0x1d0):_0x27c51e===_0x17b28b(0x1d0)?'free':_0x17b28b(0x19c));}function _0x3cb887(_0x2f460c,_0x3a934d,_0x57e089){const _0x4b4f30=_0x2eb73d;let _0x3107ad=_0x57af9c(_0x2f460c),_0x3bdcf3=_0x3107ad['anchors'][_0x4b4f30(0x1cd)](_0x1cb9df=>_0x1cb9df['id']===_0x3a934d[_0x4b4f30(0x208)]);if(!_0x3bdcf3)return _0x3107ad;if(_0x3a934d[_0x4b4f30(0x1e9)]===_0x4b4f30(0x1b9)){let _0x10388c={'x':_0x57e089['x']-_0x3bdcf3['x'],'y':_0x57e089['y']-_0x3bdcf3['y']};return _0x3bdcf3['x']=_0x57e089['x'],_0x3bdcf3['y']=_0x57e089['y'],_0x3bdcf3['in']&&={'x':_0x3bdcf3['in']['x']+_0x10388c['x'],'y':_0x3bdcf3['in']['y']+_0x10388c['y']},_0x3bdcf3[_0x4b4f30(0x1c1)]&&={'x':_0x3bdcf3[_0x4b4f30(0x1c1)]['x']+_0x10388c['x'],'y':_0x3bdcf3[_0x4b4f30(0x1c1)]['y']+_0x10388c['y']},_0x3107ad;}return _0x3bdcf3[_0x3a934d[_0x4b4f30(0x1e9)]]=_0x5636de(_0x57e089),_0x3bdcf3[_0x4b4f30(0x1c5)]===_0x4b4f30(0x19c)&&(_0x3bdcf3[_0x4b4f30(0x1c5)]=_0x4b4f30(0x1fb)),_0x29e258(_0x3bdcf3,_0x3a934d[_0x4b4f30(0x1e9)]),_0x3107ad;}let _0x4f5ced=1e-9;function _0x134fa6(_0x2bf3bb){let _0x281bfa=Math['round'](_0x2bf3bb*0x2710)/0x2710;return Object['is'](_0x281bfa,-0x0)?'0':String(_0x281bfa);}function _0x374edb(_0x5b6ee7){return _0x134fa6(_0x5b6ee7['x'])+'\x20'+_0x134fa6(_0x5b6ee7['y']);}function _0x2c6cf1(_0x468be4,_0x3b5d9a){return{'x':_0x468be4['x']-_0x3b5d9a['x'],'y':_0x468be4['y']-_0x3b5d9a['y']};}function _0x445ec1(_0xed1ee,_0x1e5752,_0x580e83,_0x1a9161,_0xc645cf){let _0x34e423=0x1-_0xc645cf;return{'x':_0x34e423*_0x34e423*_0x34e423*_0xed1ee['x']+0x3*_0x34e423*_0x34e423*_0xc645cf*_0x1e5752['x']+0x3*_0x34e423*_0xc645cf*_0xc645cf*_0x580e83['x']+_0xc645cf*_0xc645cf*_0xc645cf*_0x1a9161['x'],'y':_0x34e423*_0x34e423*_0x34e423*_0xed1ee['y']+0x3*_0x34e423*_0x34e423*_0xc645cf*_0x1e5752['y']+0x3*_0x34e423*_0xc645cf*_0xc645cf*_0x580e83['y']+_0xc645cf*_0xc645cf*_0xc645cf*_0x1a9161['y']};}function _0xfa8a7e(_0x277529,_0x4ded23,_0x22b41a,_0x1f0043){const _0x25ed50=_0x2eb73d;let _0x1e5995=-_0x277529+0x3*_0x4ded23-0x3*_0x22b41a+_0x1f0043,_0x5467e6=0x3*_0x277529-0x6*_0x4ded23+0x3*_0x22b41a,_0xc32204=-0x3*_0x277529+0x3*_0x4ded23,_0x3acdad=[];if(Math[_0x25ed50(0x20b)](_0x1e5995)<_0x4f5ced){if(Math['abs'](_0x5467e6)<_0x4f5ced)return _0x3acdad;let _0x48a78b=-_0xc32204/(0x2*_0x5467e6);return _0x48a78b>0x0&&_0x48a78b<0x1&&_0x3acdad[_0x25ed50(0x1cf)](_0x48a78b),_0x3acdad;}let _0x51cb44=_0x5467e6*_0x5467e6-0x3*_0x1e5995*_0xc32204;if(_0x51cb44<0x0)return _0x3acdad;let _0x5367cd=Math[_0x25ed50(0x1a4)](Math[_0x25ed50(0x1cc)](0x0,_0x51cb44)),_0x4e0448=(-_0x5467e6+_0x5367cd)/(0x3*_0x1e5995),_0x10335d=(-_0x5467e6-_0x5367cd)/(0x3*_0x1e5995);return _0x4e0448>0x0&&_0x4e0448<0x1&&_0x3acdad[_0x25ed50(0x1cf)](_0x4e0448),_0x10335d>0x0&&_0x10335d<0x1&&Math[_0x25ed50(0x20b)](_0x10335d-_0x4e0448)>_0x4f5ced&&_0x3acdad['push'](_0x10335d),_0x3acdad;}function _0x2a3b44(_0x353b1a,_0x415a1f,_0x1cdfef,_0x291af7,_0x31b47e){const _0x59fc55=_0x2eb73d;_0x353b1a['push'](_0x415a1f,_0x31b47e),new Set([..._0xfa8a7e(_0x415a1f['x'],_0x1cdfef['x'],_0x291af7['x'],_0x31b47e['x']),..._0xfa8a7e(_0x415a1f['y'],_0x1cdfef['y'],_0x291af7['y'],_0x31b47e['y'])])[_0x59fc55(0x1bf)](_0x3ff433=>{const _0x17845d=_0x59fc55;_0x353b1a[_0x17845d(0x1cf)](_0x445ec1(_0x415a1f,_0x1cdfef,_0x291af7,_0x31b47e,_0x3ff433));});}function _0x7dd194(_0x36d746){const _0x8fbd85=_0x2eb73d;let _0x524e1e=_0x36d746['anchors'];if(_0x524e1e['length']<=0x1)return _0x524e1e;let _0x41ccc9=[];for(let _0xaed22d=0x1;_0xaed22d<_0x524e1e[_0x8fbd85(0x1fc)];_0xaed22d++){let _0x5f4fc4=_0x524e1e[_0xaed22d-0x1],_0x21619e=_0x524e1e[_0xaed22d];_0x2a3b44(_0x41ccc9,_0x5f4fc4,_0x5f4fc4[_0x8fbd85(0x1c1)]??_0x5f4fc4,_0x21619e['in']??_0x21619e,_0x21619e);}if(_0x36d746[_0x8fbd85(0x1f5)]&&_0x524e1e[_0x8fbd85(0x1fc)]>0x1){let _0x366df4=_0x524e1e[_0x524e1e[_0x8fbd85(0x1fc)]-0x1],_0x213ee4=_0x524e1e[0x0];_0x2a3b44(_0x41ccc9,_0x366df4,_0x366df4[_0x8fbd85(0x1c1)]??_0x366df4,_0x213ee4['in']??_0x213ee4,_0x213ee4);}return _0x41ccc9;}function _0x12f44b(_0x259ef6){const _0x1f6b52=_0x2eb73d;let _0x380b1f=_0x259ef6[_0x1f6b52(0x1a6)];if(_0x380b1f[_0x1f6b52(0x1fc)]<=0x1)return _0x380b1f;let _0x1cee9d=[];for(let _0x11dfa3=0x0;_0x11dfa3<_0x380b1f[_0x1f6b52(0x1fc)]-0x1;_0x11dfa3++){let _0x299b9a=_0x380b1f[_0x11dfa3],_0x45e1c4=_0x380b1f[_0x11dfa3+0x1],_0x2c7a77=_0x380b1f[_0x11dfa3-0x1]??_0x299b9a,_0x267115=_0x380b1f[_0x11dfa3+0x2]??_0x45e1c4;_0x2a3b44(_0x1cee9d,_0x299b9a,{'x':_0x299b9a['x']+(_0x45e1c4['x']-_0x2c7a77['x'])/0x6,'y':_0x299b9a['y']+(_0x45e1c4['y']-_0x2c7a77['y'])/0x6},{'x':_0x45e1c4['x']-(_0x267115['x']-_0x299b9a['x'])/0x6,'y':_0x45e1c4['y']-(_0x267115['y']-_0x299b9a['y'])/0x6},_0x45e1c4);}return _0x1cee9d;}function _0x497bfb(_0x4adaff){const _0x36f7e1=_0x2eb73d;return _0x4adaff[_0x36f7e1(0x1e9)]===_0x36f7e1(0x1df)?_0x7dd194(_0x4adaff):_0x12f44b(_0x4adaff);}function _0x45e2cb(_0x5f4c64){let _0x125856=Math['round'](_0x5f4c64*0x2710)/0x2710;return Object['is'](_0x125856,-0x0)?0x0:_0x125856;}function _0x367308(_0xf49447){const _0x5b13ee=_0x2eb73d;let _0x1a21db=_0x497bfb(_0xf49447);if(_0x1a21db['length']===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x103105=Math[_0x5b13ee(0x1db)](..._0x1a21db[_0x5b13ee(0x19f)](_0x97bf7=>_0x97bf7['x'])),_0x182296=Math['min'](..._0x1a21db['map'](_0x307bc7=>_0x307bc7['y'])),_0x300c4f=Math[_0x5b13ee(0x1cc)](..._0x1a21db[_0x5b13ee(0x19f)](_0x3f463a=>_0x3f463a['x'])),_0x599cae=Math[_0x5b13ee(0x1cc)](..._0x1a21db[_0x5b13ee(0x19f)](_0x24457b=>_0x24457b['y']));return{'left':_0x45e2cb(_0x103105),'top':_0x45e2cb(_0x182296),'width':_0x45e2cb(Math[_0x5b13ee(0x1cc)](0x1,_0x300c4f-_0x103105)),'height':_0x45e2cb(Math[_0x5b13ee(0x1cc)](0x1,_0x599cae-_0x182296))};}function _0x18b465(_0x1d15b9,_0x3d776e){const _0x27daf4=_0x2eb73d;let _0x3b0e44=_0x1d15b9[_0x27daf4(0x1f0)];if(_0x3b0e44['length']===0x0)return'';let _0x57d28a=['M\x20'+_0x374edb(_0x2c6cf1(_0x3b0e44[0x0],_0x3d776e))];for(let _0x2e11f3=0x1;_0x2e11f3<_0x3b0e44[_0x27daf4(0x1fc)];_0x2e11f3++){let _0x5d6786=_0x3b0e44[_0x2e11f3-0x1],_0x163d5c=_0x3b0e44[_0x2e11f3],_0x31807b=_0x5d6786['out']??_0x5d6786,_0x3ff058=_0x163d5c['in']??_0x163d5c;_0x57d28a[_0x27daf4(0x1cf)]('C\x20'+_0x374edb(_0x2c6cf1(_0x31807b,_0x3d776e))+'\x20'+_0x374edb(_0x2c6cf1(_0x3ff058,_0x3d776e))+'\x20'+_0x374edb(_0x2c6cf1(_0x163d5c,_0x3d776e)));}if(_0x1d15b9[_0x27daf4(0x1f5)]&&_0x3b0e44[_0x27daf4(0x1fc)]>0x1){let _0x48c774=_0x3b0e44[_0x3b0e44[_0x27daf4(0x1fc)]-0x1],_0x38fc7f=_0x3b0e44[0x0],_0x40a3ea=_0x48c774[_0x27daf4(0x1c1)]??_0x48c774,_0x43188e=_0x38fc7f['in']??_0x38fc7f;_0x57d28a[_0x27daf4(0x1cf)]('C\x20'+_0x374edb(_0x2c6cf1(_0x40a3ea,_0x3d776e))+'\x20'+_0x374edb(_0x2c6cf1(_0x43188e,_0x3d776e))+'\x20'+_0x374edb(_0x2c6cf1(_0x38fc7f,_0x3d776e))),_0x57d28a[_0x27daf4(0x1cf)]('Z');}return _0x57d28a[_0x27daf4(0x1b3)]('\x20');}function _0x2a34be(_0x3b1496,_0x31fb7d){const _0x2d1830=_0x2eb73d;let _0x45bb41=_0x3b1496['points'][_0x2d1830(0x19f)](_0x296ce1=>_0x2c6cf1(_0x296ce1,_0x31fb7d));if(_0x45bb41[_0x2d1830(0x1fc)]===0x0)return'';if(_0x45bb41[_0x2d1830(0x1fc)]===0x1)return'M\x20'+_0x374edb(_0x45bb41[0x0]);let _0x2af374=['M\x20'+_0x374edb(_0x45bb41[0x0])];for(let _0x38b19d=0x0;_0x38b19d<_0x45bb41[_0x2d1830(0x1fc)]-0x1;_0x38b19d++){let _0x565ba3=_0x45bb41[_0x38b19d],_0x257611=_0x45bb41[_0x38b19d+0x1],_0x46d472=_0x45bb41[_0x38b19d-0x1]??_0x565ba3,_0x2f005d=_0x45bb41[_0x38b19d+0x2]??_0x257611,_0x1a7e22={'x':_0x565ba3['x']+(_0x257611['x']-_0x46d472['x'])/0x6,'y':_0x565ba3['y']+(_0x257611['y']-_0x46d472['y'])/0x6},_0x15e1ac={'x':_0x257611['x']-(_0x2f005d['x']-_0x565ba3['x'])/0x6,'y':_0x257611['y']-(_0x2f005d['y']-_0x565ba3['y'])/0x6};_0x2af374[_0x2d1830(0x1cf)]('C\x20'+_0x374edb(_0x1a7e22)+'\x20'+_0x374edb(_0x15e1ac)+'\x20'+_0x374edb(_0x257611));}return _0x2af374['join']('\x20');}function _0xcb7d76(_0x48afb5,_0x1c575e){const _0x3f35b7=_0x2eb73d;return _0x48afb5['kind']===_0x3f35b7(0x1df)?_0x18b465(_0x48afb5,_0x1c575e):_0x2a34be(_0x48afb5,_0x1c575e);}function _0x55499c(_0x2ca293,_0x37e36e){const _0x1bc667=_0x2eb73d;return _0x37e36e!=null&&_0x37e36e['color']?_0x37e36e[_0x1bc667(0x1c4)]:_0x2ca293['kind']==='pen'?'#f54a45':_0x2ca293[_0x1bc667(0x1c4)];}function _0x5be513(_0x28253e,_0x575334){const _0x5c5645=_0x2eb73d;return(_0x575334==null?void 0x0:_0x575334['width'])===void 0x0?_0x28253e['kind']===_0x5c5645(0x1df)?0x2:_0x28253e[_0x5c5645(0x1dc)]:_0x575334[_0x5c5645(0x1dc)];}function _0x360e56(_0x603d0d,_0x533ac9){const _0x2f14ab=_0x2eb73d;return(_0x533ac9==null?void 0x0:_0x533ac9[_0x2f14ab(0x203)])===void 0x0?_0x603d0d[_0x2f14ab(0x1e9)]==='pen'?void 0x0:_0x603d0d[_0x2f14ab(0x203)]:_0x533ac9[_0x2f14ab(0x203)];}function _0x1ad570(_0x19b7da,_0x25e61b){const _0xb4b25f=_0x2eb73d;let _0x3059d2=_0x367308(_0x19b7da),_0xbd4d32=_0xcb7d76(_0x19b7da,{'x':_0x3059d2[_0xb4b25f(0x200)],'y':_0x3059d2['top']}),_0xc4e0a4=_0x19b7da[_0xb4b25f(0x1e9)]===_0xb4b25f(0x1df)&&_0x19b7da[_0xb4b25f(0x1f5)],_0x9624e8=_0x25e61b==null?void 0x0:_0x25e61b[_0xb4b25f(0x1f3)];return{'shapeType':_0x52baf6['ShapeTypeEnum'][_0xb4b25f(0x1e4)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x3059d2[_0xb4b25f(0x1dc)],'h':_0x3059d2['height'],'fill':_0xc4e0a4?_0xb4b25f(0x20c):_0xb4b25f(0x1c0),'stroke':!0x0,'data':_0xbd4d32,'dataArray':_0x4ba296(_0x19b7da,{'x':_0x3059d2[_0xb4b25f(0x200)],'y':_0x3059d2['top']})}]},'fill':_0xc4e0a4&&_0x9624e8?{'color':_0x9624e8,'fillType':_0x52baf6[_0xb4b25f(0x1d8)][_0xb4b25f(0x201)]}:{'fillType':_0x52baf6['ShapeFillEnum']['NoFill']},'stroke':{'color':_0x55499c(_0x19b7da,_0x25e61b),'width':_0x5be513(_0x19b7da,_0x25e61b),'opacity':_0x360e56(_0x19b7da,_0x25e61b),'lineStrokeType':_0x52baf6[_0xb4b25f(0x1c7)][_0xb4b25f(0x1da)],'capType':_0x52baf6['ShapeLineCapEnum'][_0xb4b25f(0x1b8)],'lineJoinType':_0x52baf6[_0xb4b25f(0x1d5)][_0xb4b25f(0x1b8)]}};}function _0x471a6b(_0x581252,_0x46a899){return{'x':_0x581252['x']-_0x46a899['x'],'y':_0x581252['y']-_0x46a899['y']};}function _0x4ba296(_0x55aa01,_0x38d452){const _0x3b6840=_0x2eb73d;if(_0x55aa01['kind']===_0x3b6840(0x1df)){let _0x93ad55=_0x55aa01[_0x3b6840(0x1f0)];if(_0x93ad55[_0x3b6840(0x1fc)]===0x0)return[];let _0x5b3548=_0x471a6b(_0x93ad55[0x0],_0x38d452),_0x523144=[{'command':'M','points':[_0x5b3548['x'],_0x5b3548['y']]}];for(let _0x74864d=0x1;_0x74864d<_0x93ad55['length'];_0x74864d++){let _0x2df253=_0x93ad55[_0x74864d-0x1],_0x2bbc88=_0x93ad55[_0x74864d],_0x2678cb=_0x471a6b(_0x2df253[_0x3b6840(0x1c1)]??_0x2df253,_0x38d452),_0x37a0e0=_0x471a6b(_0x2bbc88['in']??_0x2bbc88,_0x38d452),_0x4a11c6=_0x471a6b(_0x2bbc88,_0x38d452);_0x523144['push']({'command':'C','points':[_0x2678cb['x'],_0x2678cb['y'],_0x37a0e0['x'],_0x37a0e0['y'],_0x4a11c6['x'],_0x4a11c6['y']]});}if(_0x55aa01[_0x3b6840(0x1f5)]&&_0x93ad55[_0x3b6840(0x1fc)]>0x1){let _0x2106c8=_0x93ad55[_0x93ad55[_0x3b6840(0x1fc)]-0x1],_0x356ba1=_0x93ad55[0x0],_0x368877=_0x471a6b(_0x2106c8['out']??_0x2106c8,_0x38d452),_0x4f07e7=_0x471a6b(_0x356ba1['in']??_0x356ba1,_0x38d452),_0x4ace43=_0x471a6b(_0x356ba1,_0x38d452);_0x523144['push']({'command':'C','points':[_0x368877['x'],_0x368877['y'],_0x4f07e7['x'],_0x4f07e7['y'],_0x4ace43['x'],_0x4ace43['y']]}),_0x523144[_0x3b6840(0x1cf)]({'command':'z','points':[]});}return _0x523144;}let _0x2c04a9=_0x55aa01[_0x3b6840(0x1a6)][_0x3b6840(0x19f)](_0x42b4f3=>_0x471a6b(_0x42b4f3,_0x38d452));if(_0x2c04a9[_0x3b6840(0x1fc)]===0x0)return[];let _0x5cc165=[{'command':'M','points':[_0x2c04a9[0x0]['x'],_0x2c04a9[0x0]['y']]}];for(let _0x36a9c9=0x0;_0x36a9c9<_0x2c04a9[_0x3b6840(0x1fc)]-0x1;_0x36a9c9++){let _0x148c4a=_0x2c04a9[_0x36a9c9],_0xc320e=_0x2c04a9[_0x36a9c9+0x1],_0x4cd10c=_0x2c04a9[_0x36a9c9-0x1]??_0x148c4a,_0x345f82=_0x2c04a9[_0x36a9c9+0x2]??_0xc320e,_0x33f278={'x':_0x148c4a['x']+(_0xc320e['x']-_0x4cd10c['x'])/0x6,'y':_0x148c4a['y']+(_0xc320e['y']-_0x4cd10c['y'])/0x6},_0x58a462={'x':_0xc320e['x']-(_0x345f82['x']-_0x148c4a['x'])/0x6,'y':_0xc320e['y']-(_0x345f82['y']-_0x148c4a['y'])/0x6};_0x5cc165[_0x3b6840(0x1cf)]({'command':'C','points':[_0x33f278['x'],_0x33f278['y'],_0x58a462['x'],_0x58a462['y'],_0xc320e['x'],_0xc320e['y']]});}return _0x5cc165;}function _0x41dfa8(_0x44c35a){const _0x3211e9=_0x2eb73d;let {model:_0x569c11,sourceModel:_0x49e887=_0x569c11,style:_0x4f70ea}=_0x44c35a,_0x12f3df=_0x44c35a['tool']??_0x569c11[_0x3211e9(0x1e9)],_0x446f39=_0x367308(_0x569c11),_0x351feb=_0x569c11[_0x3211e9(0x1e9)]==='pen'&&_0x12f3df!==_0x3211e9(0x1df)?_0x569c11:void 0x0;return{'transform':{..._0x446f39,'rotation':0x0},'shapeData':_0x1ad570(_0x569c11,_0x4f70ea),'ink':{'version':0x1,'tool':_0x12f3df,'sourceModel':_0x49e887,..._0x351feb?{'editModel':_0x351feb}:{},'normalizedBounds':_0x446f39}};}var _0x674269=_0x2eb73d(0x1bc),_0x433c87='1.0.0-beta.0';function _0x3ebcb3(_0x40fea5){'@babel/helpers - typeof';const _0x337f19=_0x2eb73d;return _0x3ebcb3=typeof Symbol==_0x337f19(0x1d2)&&typeof Symbol[_0x337f19(0x1c9)]==_0x337f19(0x19d)?function(_0x5316e7){return typeof _0x5316e7;}:function(_0x371195){const _0x2f2778=_0x337f19;return _0x371195&&typeof Symbol=='function'&&_0x371195['constructor']===Symbol&&_0x371195!==Symbol['prototype']?_0x2f2778(0x19d):typeof _0x371195;},_0x3ebcb3(_0x40fea5);}function _0xc60886(_0x45fa41,_0x5edc45){const _0x19d219=_0x2eb73d;if(_0x3ebcb3(_0x45fa41)!=_0x19d219(0x1ed)||!_0x45fa41)return _0x45fa41;var _0x5816ed=_0x45fa41[Symbol[_0x19d219(0x209)]];if(_0x5816ed!==void 0x0){var _0x62da45=_0x5816ed[_0x19d219(0x1a7)](_0x45fa41,_0x5edc45||_0x19d219(0x1a0));if(_0x3ebcb3(_0x62da45)!=_0x19d219(0x1ed))return _0x62da45;throw TypeError(_0x19d219(0x1b7));}return(_0x5edc45===_0x19d219(0x1f8)?String:Number)(_0x45fa41);}function _0x5db58e(_0x39c387){const _0x4ddaf6=_0x2eb73d;var _0x5db5a8=_0xc60886(_0x39c387,'string');return _0x3ebcb3(_0x5db5a8)==_0x4ddaf6(0x19d)?_0x5db5a8:_0x5db5a8+'';}function _0x45069f(_0x465a89,_0x268a3c,_0xe2cbc0){const _0x46508d=_0x2eb73d;return(_0x268a3c=_0x5db58e(_0x268a3c))in _0x465a89?Object[_0x46508d(0x1d3)](_0x465a89,_0x268a3c,{'value':_0xe2cbc0,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x465a89[_0x268a3c]=_0xe2cbc0,_0x465a89;}let _0x59fffd=(0x0,_0x379462['createIdentifier'])('ink.host-adapter.service');var _0x45b3e5=class{constructor(){const _0x373955=_0x2eb73d;_0x45069f(this,_0x373955(0x1ad),[]);}['registerAdapter'](_0x32d30e){const _0x3ed8e7=_0x2eb73d;return this[_0x3ed8e7(0x1ad)][_0x3ed8e7(0x1cf)](_0x32d30e),(0x0,_0x379462[_0x3ed8e7(0x1d7)])(()=>{const _0x2e76a3=_0x3ed8e7;let _0x19aeda=this[_0x2e76a3(0x1ad)][_0x2e76a3(0x1ea)](_0x32d30e);_0x19aeda>=0x0&&this[_0x2e76a3(0x1ad)][_0x2e76a3(0x1be)](_0x19aeda,0x1);});}[_0x2eb73d(0x19b)](_0xa61ad7){const _0x5ec3f2=_0x2eb73d;for(let _0x5096dd of this[_0x5ec3f2(0x1ad)])if(_0x5096dd['beginInkMode'](_0xa61ad7))return!0x0;return!0x1;}async[_0x2eb73d(0x1cb)](_0x5d2a8e){const _0x572449=_0x2eb73d;for(let _0x943994 of this[_0x572449(0x1ad)])if(_0x943994[_0x572449(0x1cb)]&&await _0x943994[_0x572449(0x1cb)](_0x5d2a8e))return!0x0;return!0x1;}};let _0x387b61={'id':_0x2eb73d(0x1ca),'type':_0x379462[_0x2eb73d(0x1ba)]['OPERATION'],'handler':(_0x48d0b0,_0x3fcbe2)=>_0x3fcbe2?_0x48d0b0[_0x2eb73d(0x1e5)](_0x59fffd)[_0x2eb73d(0x19b)](_0x3fcbe2):!0x1},_0x385269={};function _0x40e6b0(_0x3fa0de,_0x520663){return function(_0xe5f11e,_0x5d4c7e){_0x520663(_0xe5f11e,_0x5d4c7e,_0x3fa0de);};}function _0x57266a(_0xe89542,_0x86199d,_0x426962,_0x2a1d80){const _0x1da947=_0x2eb73d;var _0x2b8592=arguments['length'],_0x3dddd5=_0x2b8592<0x3?_0x86199d:_0x2a1d80===null?_0x2a1d80=Object[_0x1da947(0x1e0)](_0x86199d,_0x426962):_0x2a1d80,_0x2a5220;if(typeof Reflect==_0x1da947(0x1ed)&&typeof Reflect[_0x1da947(0x20e)]==_0x1da947(0x1d2))_0x3dddd5=Reflect[_0x1da947(0x20e)](_0xe89542,_0x86199d,_0x426962,_0x2a1d80);else{for(var _0x266c19=_0xe89542['length']-0x1;_0x266c19>=0x0;_0x266c19--)(_0x2a5220=_0xe89542[_0x266c19])&&(_0x3dddd5=(_0x2b8592<0x3?_0x2a5220(_0x3dddd5):_0x2b8592>0x3?_0x2a5220(_0x86199d,_0x426962,_0x3dddd5):_0x2a5220(_0x86199d,_0x426962))||_0x3dddd5);}return _0x2b8592>0x3&&_0x3dddd5&&Object[_0x1da947(0x1d3)](_0x86199d,_0x426962,_0x3dddd5),_0x3dddd5;}let _0x790943=class extends _0x379462[_0x2eb73d(0x1c8)]{constructor(_0x3ac066=_0x385269,_0x16ff88,_0x1a1edc,_0x36bad4){const _0x975869=_0x2eb73d;super(),this[_0x975869(0x1fa)]=_0x3ac066,this[_0x975869(0x1d9)]=_0x16ff88,this['_commandService']=_0x1a1edc,this[_0x975869(0x1d4)]=_0x36bad4;let {..._0x196e21}=(0x0,_0x379462[_0x975869(0x1b1)])({},_0x385269,this[_0x975869(0x1fa)]);this[_0x975869(0x1d4)]['setConfig'](_0x975869(0x1ac),_0x196e21);}[_0x2eb73d(0x1ee)](){const _0x4612d3=_0x2eb73d;[[_0x59fffd,{'useClass':_0x45b3e5}]]['forEach'](_0x2193c0=>this[_0x4612d3(0x1d9)]['add'](_0x2193c0)),this[_0x4612d3(0x1b4)](this[_0x4612d3(0x206)][_0x4612d3(0x1b2)](_0x387b61));}};_0x45069f(_0x790943,'pluginName',_0x2eb73d(0x1a8)),_0x45069f(_0x790943,'packageName',_0x674269),_0x45069f(_0x790943,_0x2eb73d(0x1b5),_0x433c87),_0x45069f(_0x790943,_0x2eb73d(0x1a2),_0x379462[_0x2eb73d(0x19e)][_0x2eb73d(0x198)]),_0x790943=_0x57266a([(0x0,_0x379462['DependentOn'])(_0x201bf2[_0x2eb73d(0x1fd)]),_0x40e6b0(0x1,(0x0,_0x379462[_0x2eb73d(0x1e2)])(_0x379462[_0x2eb73d(0x202)])),_0x40e6b0(0x2,_0x379462[_0x2eb73d(0x1bb)]),_0x40e6b0(0x3,_0x379462[_0x2eb73d(0x207)])],_0x790943),_0x4ee07e['IInkHostAdapterService']=_0x59fffd,Object['defineProperty'](_0x4ee07e,_0x2eb73d(0x1c6),{'enumerable':!0x0,'get':function(){return _0x790943;}}),_0x4ee07e[_0x2eb73d(0x1fe)]=_0x41dfa8,_0x4ee07e[_0x2eb73d(0x1a9)]=_0x23e17d,_0x4ee07e[_0x2eb73d(0x1f1)]=_0x84a394,_0x4ee07e[_0x2eb73d(0x1a3)]=_0x2573c2,_0x4ee07e[_0x2eb73d(0x1d1)]=_0x5bca8c,_0x4ee07e[_0x2eb73d(0x1d6)]=_0x318c87,_0x4ee07e[_0x2eb73d(0x1f4)]=_0x367308,_0x4ee07e['getInkPenPreviewModel']=_0x3220e2,_0x4ee07e[_0x2eb73d(0x1e8)]=_0x129779,_0x4ee07e['isInkPenHandleVisible']=_0x3c158d,_0x4ee07e[_0x2eb73d(0x1b6)]=_0x3cb887,_0x4ee07e['setInkPenAnchorPointType']=_0x462ed;}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/ink",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-beta.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Reusable ink model and geometry integration for Univer.",
|
|
6
6
|
"author": "DreamNum Co., Ltd. <developer@univer.ai>",
|
|
@@ -58,15 +58,15 @@
|
|
|
58
58
|
"lib"
|
|
59
59
|
],
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@univerjs-pro/boards": "1.0.0-
|
|
62
|
-
"@univerjs-pro/license": "1.0.0-
|
|
63
|
-
"@univerjs/core": "1.0.0-
|
|
64
|
-
"@univerjs-pro/engine-shape": "1.0.0-
|
|
61
|
+
"@univerjs-pro/boards": "1.0.0-beta.0",
|
|
62
|
+
"@univerjs-pro/license": "1.0.0-beta.0",
|
|
63
|
+
"@univerjs/core": "1.0.0-beta.0",
|
|
64
|
+
"@univerjs-pro/engine-shape": "1.0.0-beta.0"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"typescript": "^6.0.3",
|
|
68
68
|
"vitest": "^4.1.10",
|
|
69
|
-
"@univerjs-infra/shared": "1.0.0-
|
|
69
|
+
"@univerjs-infra/shared": "1.0.0-beta.0"
|
|
70
70
|
},
|
|
71
71
|
"scripts": {
|
|
72
72
|
"test": "vitest run",
|