@univerjs-pro/ink 1.0.0-alpha.3 → 1.0.0-alpha.4
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/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/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0xcf70dc=_0x5dd9;(function(_0x38561e,_0x2456e5){const _0x4aed16=_0x5dd9,_0xc05984=_0x38561e();while(!![]){try{const _0x4a95eb=parseInt(_0x4aed16(0x106))/0x1+parseInt(_0x4aed16(0x12c))/0x2+-parseInt(_0x4aed16(0x116))/0x3*(-parseInt(_0x4aed16(0x11e))/0x4)+-parseInt(_0x4aed16(0x125))/0x5+-parseInt(_0x4aed16(0x113))/0x6*(parseInt(_0x4aed16(0x119))/0x7)+parseInt(_0x4aed16(0x103))/0x8+parseInt(_0x4aed16(0x108))/0x9*(-parseInt(_0x4aed16(0x135))/0xa);if(_0x4a95eb===_0x2456e5)break;else _0xc05984['push'](_0xc05984['shift']());}catch(_0x37cee1){_0xc05984['push'](_0xc05984['shift']());}}}(_0x2e5d,0xa43ea),Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0xcf70dc(0x105)}));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[_0xcf70dc(0x115)]{['insertInk'](_0x171bba){const _0x50c8e9=_0xcf70dc;let _0x5edbed=o(_0x171bba);return _0x5edbed&&this[_0x50c8e9(0x123)](_0x5edbed,{'insertIndex':_0x171bba[_0x50c8e9(0x12f)]})?_0x5edbed:null;}[_0xcf70dc(0x10b)](){const _0x1703fc=_0xcf70dc;return this[_0x1703fc(0x137)]({'elementType':e[_0x1703fc(0x131)][_0x1703fc(0x12a)],'includeHidden':!0x0,'includeLocked':!0x0})['filter'](f);}};function o(_0x1f9219,_0x5b8110){const _0x3e1ac3=_0xcf70dc;var _0x44ebe9,_0x1f38e8,_0x2290d6;if(!c(_0x1f9219[_0x3e1ac3(0x10f)])||_0x1f9219[_0x3e1ac3(0x10d)]!==void 0x0&&!c(_0x1f9219[_0x3e1ac3(0x10d)])||!l(_0x1f9219[_0x3e1ac3(0x128)]))return null;let _0x4dc891=(_0x44ebe9=_0x1f9219[_0x3e1ac3(0x10e)])==null?_0x5b8110==null?void 0x0:_0x5b8110['parentId']:_0x44ebe9,_0x3780ec=r[_0x3e1ac3(0x11d)]['deepClone'](_0x1f9219[_0x3e1ac3(0x10f)]),_0x114721=(0x0,n['buildInkCustomShapePayload'])({'model':_0x3780ec,'style':_0x1f9219[_0x3e1ac3(0x128)],'tool':_0x1f9219[_0x3e1ac3(0x109)],'sourceModel':_0x1f9219['sourceModel']?r[_0x3e1ac3(0x11d)][_0x3e1ac3(0x12e)](_0x1f9219['sourceModel']):_0x3780ec}),_0x36888a=u(_0x5b8110==null?void 0x0:_0x5b8110['custom']);return{'id':(_0x1f38e8=(_0x2290d6=_0x5b8110==null?void 0x0:_0x5b8110['id'])==null?_0x1f9219['id']:_0x2290d6)==null?(0x0,r['generateRandomId'])(0x6):_0x1f38e8,'type':e['BoardElementType'][_0x3e1ac3(0x12a)],'transform':_0x114721['transform'],'shapeData':_0x114721[_0x3e1ac3(0x11c)],'parentId':_0x4dc891==null?void 0x0:_0x4dc891,'laneId':_0x1f9219[_0x3e1ac3(0x133)]===void 0x0?_0x5b8110==null?void 0x0:_0x5b8110['laneId']:_0x1f9219[_0x3e1ac3(0x133)],'custom':{..._0x36888a,'ink':_0x114721['ink']}};}function s(_0x15143b){const _0x4e80e2=_0xcf70dc;return Number['isFinite'](_0x15143b['x'])&&Number[_0x4e80e2(0x104)](_0x15143b['y']);}function c(_0x38c98a){const _0xdc905=_0xcf70dc;if(_0x38c98a[_0xdc905(0x10a)]===_0xdc905(0x110)){let _0x2aceb5=new Set();return _0x38c98a['anchors']['length']>=(_0x38c98a['closed']?0x3:0x2)&&_0x38c98a[_0xdc905(0x136)][_0xdc905(0x10c)](_0x4ac648=>{const _0x19ec14=_0xdc905;let _0x32d3cb=_0x4ac648['id']['trim']()['length']>0x0&&!_0x2aceb5[_0x19ec14(0x114)](_0x4ac648['id'])&&s(_0x4ac648)&&(!_0x4ac648['in']||s(_0x4ac648['in']))&&(!_0x4ac648[_0x19ec14(0x132)]||s(_0x4ac648[_0x19ec14(0x132)]));return _0x2aceb5[_0x19ec14(0x134)](_0x4ac648['id']),_0x32d3cb;});}return _0x38c98a['points'][_0xdc905(0x112)]>=0x2&&_0x38c98a['points'][_0xdc905(0x10c)](_0x1e8d3a=>s(_0x1e8d3a)&&Number['isFinite'](_0x1e8d3a['t'])&&(_0x1e8d3a[_0xdc905(0x11b)]===void 0x0||Number[_0xdc905(0x104)](_0x1e8d3a[_0xdc905(0x11b)])))&&Number[_0xdc905(0x104)](_0x38c98a[_0xdc905(0x107)])&&_0x38c98a[_0xdc905(0x107)]>0x0&&Number[_0xdc905(0x104)](_0x38c98a[_0xdc905(0x111)])&&_0x38c98a[_0xdc905(0x111)]>=0x0&&_0x38c98a[_0xdc905(0x111)]<=0x1;}function l(_0x42e44a){const _0x283c1a=_0xcf70dc;return _0x42e44a===void 0x0||(_0x42e44a['width']===void 0x0||Number[_0x283c1a(0x104)](_0x42e44a[_0x283c1a(0x107)])&&_0x42e44a['width']>0x0)&&(_0x42e44a['opacity']===void 0x0||Number[_0x283c1a(0x104)](_0x42e44a['opacity'])&&_0x42e44a[_0x283c1a(0x111)]>=0x0&&_0x42e44a['opacity']<=0x1);}function _0x5dd9(_0x3b61b2,_0x1552fb){_0x3b61b2=_0x3b61b2-0x103;const _0x2e5db3=_0x2e5d();let _0x5dd993=_0x2e5db3[_0x3b61b2];return _0x5dd993;}function _0x2e5d(){const _0xdcba63=['addElement','symmetric','704250eewjLk','anchor','version','style','smooth','Shape','extend','1193348ZlYaCF','BoardInkPointType','deepClone','insertIndex','free','BoardElementType','out','laneId','add','78830XrfTKh','anchors','findElements','corner','custom','BoardInkTool','3761560HBZfPT','isFinite','Module','603988wTrhwN','width','657fBTVzZ','tool','kind','getInks','every','sourceModel','parentId','model','pen','opacity','length','6486906axfepV','has','FBoard','2398047eEzXYB','brush','BoardInkHandleKind','7gHpwjn','FEnum','pressure','shapeData','Tools','4NucSFj','ink','isArray','object','highlighter'];_0x2e5d=function(){return _0xdcba63;};return _0x2e5d();}function u(_0x26c1c3){const _0xf0da66=_0xcf70dc;return _0x26c1c3&&typeof _0x26c1c3==_0xf0da66(0x121)&&!Array['isArray'](_0x26c1c3)?_0x26c1c3:{};}function d(_0x270a67){const _0x5c5c73=_0xcf70dc;let _0x42462c=u(_0x270a67[_0x5c5c73(0x139)])[_0x5c5c73(0x11f)];if(!_0x42462c||typeof _0x42462c!='object'||Array[_0x5c5c73(0x120)](_0x42462c))return null;let _0x4c22d3=_0x42462c;return _0x4c22d3[_0x5c5c73(0x127)]===0x1&&_0x4c22d3[_0x5c5c73(0x10d)]&&typeof _0x4c22d3['sourceModel']==_0x5c5c73(0x121)?_0x4c22d3:null;}function f(_0x42e9ee){return _0x42e9ee['type']===e['BoardElementType']['Shape']&&!!d(_0x42e9ee);}t['FBoard'][_0xcf70dc(0x12b)](a);const p={'Pen':'pen','Brush':_0xcf70dc(0x117),'Highlighter':_0xcf70dc(0x122)},m={'Corner':_0xcf70dc(0x138),'Smooth':_0xcf70dc(0x129),'Symmetric':_0xcf70dc(0x124),'Free':_0xcf70dc(0x130)},h={'Anchor':_0xcf70dc(0x126),'In':'in','Out':_0xcf70dc(0x132)};var g=class extends i[_0xcf70dc(0x11a)]{get[_0xcf70dc(0x13a)](){return p;}get[_0xcf70dc(0x12d)](){return m;}get['BoardInkHandleKind'](){return h;}};i[_0xcf70dc(0x11a)][_0xcf70dc(0x12b)](g),exports[_0xcf70dc(0x118)]=h,exports[_0xcf70dc(0x12d)]=m,exports[_0xcf70dc(0x13a)]=p;
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x28f2e6=_0x5a6d;(function(_0x1106e2,_0x2d27ce){const _0x210409=_0x5a6d,_0xa89cd9=_0x1106e2();while(!![]){try{const _0x436c47=-parseInt(_0x210409(0x182))/0x1*(parseInt(_0x210409(0x123))/0x2)+parseInt(_0x210409(0x172))/0x3+-parseInt(_0x210409(0x18a))/0x4+parseInt(_0x210409(0x13b))/0x5+parseInt(_0x210409(0x156))/0x6*(parseInt(_0x210409(0x184))/0x7)+-parseInt(_0x210409(0x14b))/0x8*(-parseInt(_0x210409(0x177))/0x9)+-parseInt(_0x210409(0x149))/0xa*(parseInt(_0x210409(0x15c))/0xb);if(_0x436c47===_0x2d27ce)break;else _0xa89cd9['push'](_0xa89cd9['shift']());}catch(_0x530623){_0xa89cd9['push'](_0xa89cd9['shift']());}}}(_0x3435,0xcfe1a),Object[_0x28f2e6(0x140)](exports,Symbol['toStringTag'],{'value':_0x28f2e6(0x189)}));let e=require('@univerjs-pro/engine-shape'),t=require('@univerjs-pro/license'),n=require('@univerjs/core');const r=0.0001;function i(_0xfaa202){return{'x':_0xfaa202['x'],'y':_0xfaa202['y']};}function a(_0x396394){const _0x3dcb64=_0x28f2e6;return{..._0x396394,'in':_0x396394['in']?i(_0x396394['in']):void 0x0,'out':_0x396394[_0x3dcb64(0x14c)]?i(_0x396394['out']):void 0x0};}function o(_0x323d3d){const _0x520943=_0x28f2e6;return{'kind':_0x520943(0x125),'closed':_0x323d3d['closed'],'anchors':_0x323d3d[_0x520943(0x120)]['map'](a)};}function s(_0x317bf5,_0x1d07a8,_0x4a0440){return{'x':_0x317bf5['x']+(_0x1d07a8['x']-_0x317bf5['x'])*_0x4a0440,'y':_0x317bf5['y']+(_0x1d07a8['y']-_0x317bf5['y'])*_0x4a0440};}function c(_0x25a799,_0x50ad6e){const _0x585dac=_0x28f2e6;return Math[_0x585dac(0x16d)](_0x25a799['x']-_0x50ad6e['x'],_0x25a799['y']-_0x50ad6e['y']);}function l(_0x406a4a){const _0x50839e=_0x28f2e6;let _0x14eaf1=Math[_0x50839e(0x16d)](_0x406a4a['x'],_0x406a4a['y']);return _0x14eaf1<r?{'x':0x1,'y':0x0}:{'x':_0x406a4a['x']/_0x14eaf1,'y':_0x406a4a['y']/_0x14eaf1};}function u(_0x4f61c7,_0x207931,_0x338c50=c(_0x4f61c7,_0x207931)){let _0x698253=l({'x':_0x4f61c7['x']-_0x207931['x'],'y':_0x4f61c7['y']-_0x207931['y']});return{'x':_0x4f61c7['x']+_0x698253['x']*_0x338c50,'y':_0x4f61c7['y']+_0x698253['y']*_0x338c50};}function d(_0x16f3c4,_0x18160a){const _0x1fc87d=_0x28f2e6;let {anchors:_0x57cc89}=_0x16f3c4;return _0x57cc89[_0x1fc87d(0x13d)]<0x2||_0x18160a<0x0?null:_0x18160a<_0x57cc89['length']-0x1?{'startIndex':_0x18160a,'endIndex':_0x18160a+0x1,'start':_0x57cc89[_0x18160a],'end':_0x57cc89[_0x18160a+0x1]}:_0x16f3c4[_0x1fc87d(0x175)]&&_0x18160a===_0x57cc89[_0x1fc87d(0x13d)]-0x1?{'startIndex':_0x57cc89[_0x1fc87d(0x13d)]-0x1,'endIndex':0x0,'start':_0x57cc89[_0x57cc89['length']-0x1],'end':_0x57cc89[0x0]}:null;}function f(_0x3d3407,_0x49ae61){const _0x36b98a=_0x28f2e6;var _0x5b0999,_0x1a1bf7;let _0x47d9d3=d(_0x3d3407,_0x49ae61);return _0x47d9d3?[_0x47d9d3['start'],(_0x5b0999=_0x47d9d3[_0x36b98a(0x13c)][_0x36b98a(0x14c)])==null?_0x47d9d3[_0x36b98a(0x13c)]:_0x5b0999,(_0x1a1bf7=_0x47d9d3['end']['in'])==null?_0x47d9d3['end']:_0x1a1bf7,_0x47d9d3[_0x36b98a(0x15b)]]:null;}function ee(_0xeeb525,_0x27a30f){const _0x59addf=_0x28f2e6;var _0x15cbd0;return _0x27a30f===_0x59addf(0x142)?_0xeeb525:(_0x15cbd0=_0xeeb525[_0x27a30f])==null?null:_0x15cbd0;}function p(_0xf3d110,_0x292eb2,_0x3b9c8a){const _0x767940=_0x28f2e6;return _0x3b9c8a===_0x767940(0x142)||_0xf3d110[_0x767940(0x175)]?!0x0:_0x3b9c8a==='in'?_0x292eb2>0x0:_0x292eb2<_0xf3d110[_0x767940(0x120)][_0x767940(0x13d)]-0x1;}function m(_0x9265a,_0x579566){let [_0x350215,_0x5601a0,_0x3ed547,_0x54f007]=_0x9265a,_0x15eb2f=s(_0x350215,_0x5601a0,_0x579566),_0x3c99fb=s(_0x5601a0,_0x3ed547,_0x579566),_0x29fbc7=s(_0x3ed547,_0x54f007,_0x579566);return s(s(_0x15eb2f,_0x3c99fb,_0x579566),s(_0x3c99fb,_0x29fbc7,_0x579566),_0x579566);}function h(_0x140f7a,_0x3a0cb1){let [_0x538b26,_0x76bcd6,_0x337f20,_0x4024f4]=_0x140f7a,_0x526da0=s(_0x538b26,_0x76bcd6,_0x3a0cb1),_0xe0df78=s(_0x76bcd6,_0x337f20,_0x3a0cb1),_0x8889e5=s(_0x337f20,_0x4024f4,_0x3a0cb1),_0x47181f=s(_0x526da0,_0xe0df78,_0x3a0cb1),_0x432896=s(_0xe0df78,_0x8889e5,_0x3a0cb1),_0x3e70a0=s(_0x47181f,_0x432896,_0x3a0cb1);return{'left':[_0x538b26,_0x526da0,_0x47181f,_0x3e70a0],'right':[_0x3e70a0,_0x432896,_0x8889e5,_0x4024f4]};}function g(_0x359cf1,_0x1b835d,_0x2d69dd){const _0x5adcaf=_0x28f2e6;let _0x18dc3d=_0x2d69dd['x']-_0x1b835d['x'],_0x5eabd8=_0x2d69dd['y']-_0x1b835d['y'],_0x5aa504=_0x18dc3d*_0x18dc3d+_0x5eabd8*_0x5eabd8,_0xe33a31=_0x5aa504<=r?0x0:Math[_0x5adcaf(0x11f)](0x0,Math[_0x5adcaf(0x17e)](0x1,((_0x359cf1['x']-_0x1b835d['x'])*_0x18dc3d+(_0x359cf1['y']-_0x1b835d['y'])*_0x5eabd8)/_0x5aa504)),_0x213246={'x':_0x1b835d['x']+_0x18dc3d*_0xe33a31,'y':_0x1b835d['y']+_0x5eabd8*_0xe33a31};return{'point':_0x213246,'ratio':_0xe33a31,'distance':c(_0x359cf1,_0x213246)};}function te(_0x48e7c6,_0x8d89b5,_0x3489ae){return g(_0x48e7c6,_0x8d89b5,_0x3489ae)['distance']**0x2;}function _(_0x254d36,_0x12299b){const _0x44b29a=_0x28f2e6;if(_0x254d36['length']<=0x2)return _0x254d36[_0x44b29a(0x124)](i);let _0x2c5ec3=0x0,_0x2a48a5=0x0,_0x55dca4=_0x254d36[0x0],_0x3ffcb8=_0x254d36[_0x254d36['length']-0x1],_0x10bbb7=_0x12299b*_0x12299b;for(let _0x420157=0x1;_0x420157<_0x254d36[_0x44b29a(0x13d)]-0x1;_0x420157++){let _0x3663bb=te(_0x254d36[_0x420157],_0x55dca4,_0x3ffcb8);_0x3663bb>_0x2c5ec3&&(_0x2c5ec3=_0x3663bb,_0x2a48a5=_0x420157);}if(_0x2c5ec3<=_0x10bbb7)return[i(_0x55dca4),i(_0x3ffcb8)];let _0x520702=_(_0x254d36[_0x44b29a(0x128)](0x0,_0x2a48a5+0x1),_0x12299b),_0x1c27d8=_(_0x254d36['slice'](_0x2a48a5),_0x12299b);return[..._0x520702['slice'](0x0,-0x1),..._0x1c27d8];}function ne(_0x223d9d,_0x469f50){var _0x5bd169;let _0x2236f3=_0x223d9d[_0x469f50],_0x301c6e=_0x223d9d[_0x469f50+0x1],_0x42f7c3=(_0x5bd169=_0x223d9d[_0x469f50-0x1])==null?_0x2236f3:_0x5bd169;return{'x':_0x2236f3['x']+(_0x301c6e['x']-_0x42f7c3['x'])/0x6,'y':_0x2236f3['y']+(_0x301c6e['y']-_0x42f7c3['y'])/0x6};}function v(_0x3afde8,_0x3b2456){var _0x530785;let _0x5192c1=_0x3afde8[_0x3b2456],_0x182c3e=_0x3afde8[_0x3b2456-0x1],_0x1416d6=(_0x530785=_0x3afde8[_0x3b2456+0x1])==null?_0x5192c1:_0x530785;return{'x':_0x5192c1['x']-(_0x1416d6['x']-_0x182c3e['x'])/0x6,'y':_0x5192c1['y']-(_0x1416d6['y']-_0x182c3e['y'])/0x6};}function y(_0x2755a7,_0x521856){const _0x1cefce=_0x28f2e6;var _0x35b2a1,_0x20cd8c;let _0x1ba479=_0x2755a7[_0x1cefce(0x120)][_0x521856],_0xbc1ea9=(_0x35b2a1=_0x2755a7['anchors'][_0x521856-0x1])==null?_0x2755a7[_0x1cefce(0x175)]?_0x2755a7['anchors'][_0x2755a7[_0x1cefce(0x120)][_0x1cefce(0x13d)]-0x1]:null:_0x35b2a1,_0x1f1e61=(_0x20cd8c=_0x2755a7[_0x1cefce(0x120)][_0x521856+0x1])==null?_0x2755a7['closed']?_0x2755a7[_0x1cefce(0x120)][0x0]:null:_0x20cd8c,_0x571be7=_0xbc1ea9&&_0x1f1e61?l({'x':_0x1f1e61['x']-_0xbc1ea9['x'],'y':_0x1f1e61['y']-_0xbc1ea9['y']}):_0x1f1e61?l({'x':_0x1f1e61['x']-_0x1ba479['x'],'y':_0x1f1e61['y']-_0x1ba479['y']}):_0xbc1ea9?l({'x':_0x1ba479['x']-_0xbc1ea9['x'],'y':_0x1ba479['y']-_0xbc1ea9['y']}):{'x':0x1,'y':0x0},_0x37694d=_0xbc1ea9&&_0x1f1e61?Math[_0x1cefce(0x11f)](0x32,c(_0xbc1ea9,_0x1f1e61)/0x4):0x32;return{'in':{'x':_0x1ba479['x']-_0x571be7['x']*_0x37694d,'y':_0x1ba479['y']-_0x571be7['y']*_0x37694d},'out':{'x':_0x1ba479['x']+_0x571be7['x']*_0x37694d,'y':_0x1ba479['y']+_0x571be7['y']*_0x37694d}};}function b(_0x24d1ab,_0x586209){const _0x3d344f=_0x28f2e6;let _0x2b10c4=_0x24d1ab[_0x586209],_0x1454d6=_0x586209==='in'?_0x3d344f(0x14c):'in',_0x136a73=_0x24d1ab[_0x1454d6];if(_0x2b10c4){if(_0x24d1ab[_0x3d344f(0x173)]===_0x3d344f(0x11c)){_0x24d1ab[_0x1454d6]=u(_0x24d1ab,_0x2b10c4);return;}_0x24d1ab['pointType']===_0x3d344f(0x176)&&(_0x24d1ab[_0x1454d6]=u(_0x24d1ab,_0x2b10c4,_0x136a73?c(_0x24d1ab,_0x136a73):c(_0x24d1ab,_0x2b10c4)));}}function x(_0x337027,_0x197318){const _0x5b2723=_0x28f2e6;let _0x15990a=o(_0x337027);return!_0x197318||_0x15990a['closed']||_0x15990a[_0x5b2723(0x120)]['length']===0x0||_0x15990a['anchors']['push']({'id':_0x5b2723(0x130),'x':_0x197318['x'],'y':_0x197318['y'],'pointType':'corner'}),_0x15990a;}function re(_0x3cd86d,_0x59e1d3={}){const _0x38f886=_0x28f2e6;var _0x2159cb,_0x16dfc4;let _0x1a1249=Math[_0x38f886(0x11f)](0x0,(_0x2159cb=_0x59e1d3['tolerance'])==null?Math[_0x38f886(0x11f)](0x4,_0x3cd86d[_0x38f886(0x15a)]*0.35):_0x2159cb),_0x598e69=(_0x16dfc4=_0x59e1d3[_0x38f886(0x16b)])==null?_0x1290a0=>_0x38f886(0x126)+_0x1290a0:_0x16dfc4,_0x33dd3b=_(_0x3cd86d['points'],_0x1a1249),_0x422e85=_0x33dd3b[_0x38f886(0x124)]((_0x1a4800,_0x151ca2)=>({'id':_0x598e69(_0x151ca2),'x':_0x1a4800['x'],'y':_0x1a4800['y'],'pointType':_0x38f886(0x165)}));for(let _0x413e64=0x0;_0x413e64<_0x422e85[_0x38f886(0x13d)]-0x1;_0x413e64++)_0x422e85[_0x413e64][_0x38f886(0x14c)]=ne(_0x33dd3b,_0x413e64),_0x422e85[_0x413e64+0x1]['in']=v(_0x33dd3b,_0x413e64+0x1);return{'kind':_0x38f886(0x125),'closed':!0x1,'anchors':_0x422e85};}function ie(_0x511dd0,_0x21a2c2,_0x5afc66){const _0x569ad2=_0x28f2e6;let _0x1c3cf7=null,_0xedca3f=['anchor','in',_0x569ad2(0x14c)];return _0x511dd0[_0x569ad2(0x120)]['forEach']((_0x5007c8,_0x43c253)=>{const _0x3d9765=_0x569ad2;_0xedca3f[_0x3d9765(0x13f)](_0x12d156=>{const _0xf680d0=_0x3d9765;if(!p(_0x511dd0,_0x43c253,_0x12d156))return;let _0x3b5824=ee(_0x5007c8,_0x12d156);if(!_0x3b5824)return;let _0x33cd30=c(_0x21a2c2,_0x3b5824);_0x33cd30>_0x5afc66||_0x1c3cf7&&_0x33cd30>=_0x1c3cf7[_0xf680d0(0x15e)]||(_0x1c3cf7={'handle':{'kind':_0x12d156,'anchorId':_0x5007c8['id']},'point':i(_0x3b5824),'distance':_0x33cd30});});}),_0x1c3cf7;}function S(_0x586f07,_0x505ca0,_0x232ea3){const _0x41207a=_0x28f2e6;let _0x2820f3=null,_0x6e0633=_0x586f07['closed']?_0x586f07['anchors']['length']:Math['max'](0x0,_0x586f07[_0x41207a(0x120)][_0x41207a(0x13d)]-0x1);for(let _0x493cfe=0x0;_0x493cfe<_0x6e0633;_0x493cfe++){let _0x283417=f(_0x586f07,_0x493cfe);if(!_0x283417)continue;let _0xde8f4c=m(_0x283417,0x0);for(let _0x38c205=0x1;_0x38c205<=0x20;_0x38c205++){let _0x17a71f=m(_0x283417,_0x38c205/0x20),_0x29d3b0=g(_0x505ca0,_0xde8f4c,_0x17a71f),_0xf14d45=(_0x38c205-0x1+_0x29d3b0[_0x41207a(0x11d)])/0x20;(!_0x2820f3||_0x29d3b0[_0x41207a(0x15e)]<_0x2820f3[_0x41207a(0x15e)])&&(_0x2820f3={'segmentIndex':_0x493cfe,'t':_0xf14d45,'point':_0x29d3b0[_0x41207a(0x160)],'distance':_0x29d3b0[_0x41207a(0x15e)]}),_0xde8f4c=_0x17a71f;}}return _0x2820f3&&_0x2820f3['distance']<=_0x232ea3?_0x2820f3:null;}function C(_0x581852,_0x2be1f9,_0x3d1d34){const _0x2e031b=_0x28f2e6;let _0x205a48=o(_0x581852),_0x4cbe30=d(_0x205a48,_0x2be1f9[_0x2e031b(0x122)]),_0x586a9c=f(_0x205a48,_0x2be1f9[_0x2e031b(0x122)]);if(!_0x4cbe30||!_0x586a9c)return _0x205a48;let _0x478387=h(_0x586a9c,Math[_0x2e031b(0x11f)](0x0,Math[_0x2e031b(0x17e)](0x1,_0x2be1f9['t']))),_0x4e076a={'id':_0x3d1d34(),'x':_0x478387[_0x2e031b(0x18f)][0x3]['x'],'y':_0x478387[_0x2e031b(0x18f)][0x3]['y'],'in':i(_0x478387['left'][0x2]),'out':i(_0x478387[_0x2e031b(0x133)][0x1]),'pointType':_0x2e031b(0x165)};return _0x205a48['anchors'][_0x4cbe30['startIndex']][_0x2e031b(0x14c)]=i(_0x478387[_0x2e031b(0x18f)][0x1]),_0x205a48[_0x2e031b(0x120)][_0x4cbe30['endIndex']]['in']=i(_0x478387[_0x2e031b(0x133)][0x2]),_0x205a48[_0x2e031b(0x120)][_0x2e031b(0x188)](_0x4cbe30['startIndex']+0x1,0x0,_0x4e076a),_0x205a48;}function w(_0x563078,_0x59a8a6){const _0x4dffd3=_0x28f2e6;let _0x8b3b35=o(_0x563078);return _0x8b3b35[_0x4dffd3(0x120)]=_0x8b3b35[_0x4dffd3(0x120)][_0x4dffd3(0x162)](_0x26f3a4=>_0x26f3a4['id']!==_0x59a8a6),_0x8b3b35[_0x4dffd3(0x175)]&&_0x8b3b35[_0x4dffd3(0x120)][_0x4dffd3(0x13d)]<0x3&&(_0x8b3b35['closed']=!0x1),_0x8b3b35;}function T(_0x1366f3,_0x5b43cd,_0x1b5a8f){const _0x2d8cc2=_0x28f2e6;let _0x43eb7e=o(_0x1366f3),_0x2da571=_0x43eb7e[_0x2d8cc2(0x120)][_0x2d8cc2(0x152)](_0x58920a=>_0x58920a['id']===_0x5b43cd),_0x583f67=_0x43eb7e[_0x2d8cc2(0x120)][_0x2da571];if(!_0x583f67)return _0x43eb7e;if(_0x583f67[_0x2d8cc2(0x173)]=_0x1b5a8f,_0x1b5a8f===_0x2d8cc2(0x167))return delete _0x583f67['in'],delete _0x583f67[_0x2d8cc2(0x14c)],_0x43eb7e;let _0x3cafde=y(_0x43eb7e,_0x2da571);if(_0x583f67['in']=_0x583f67['in']?i(_0x583f67['in']):_0x3cafde['in'],_0x583f67[_0x2d8cc2(0x14c)]=_0x583f67[_0x2d8cc2(0x14c)]?i(_0x583f67[_0x2d8cc2(0x14c)]):_0x3cafde[_0x2d8cc2(0x14c)],_0x1b5a8f===_0x2d8cc2(0x11c)){let _0x198c37=Math[_0x2d8cc2(0x11f)](c(_0x583f67,_0x583f67['in']),c(_0x583f67,_0x583f67[_0x2d8cc2(0x14c)]),0x32),_0x3525d1=l({'x':_0x583f67[_0x2d8cc2(0x14c)]['x']-_0x583f67['x'],'y':_0x583f67[_0x2d8cc2(0x14c)]['y']-_0x583f67['y']});_0x583f67[_0x2d8cc2(0x14c)]={'x':_0x583f67['x']+_0x3525d1['x']*_0x198c37,'y':_0x583f67['y']+_0x3525d1['y']*_0x198c37},_0x583f67['in']={'x':_0x583f67['x']-_0x3525d1['x']*_0x198c37,'y':_0x583f67['y']-_0x3525d1['y']*_0x198c37};}else _0x1b5a8f===_0x2d8cc2(0x176)&&b(_0x583f67,_0x2d8cc2(0x14c));return _0x43eb7e;}function E(_0x23636d,_0x1ca4dd){const _0x1d9f8c=_0x28f2e6;var _0x1253f0;let _0x52af83=_0x23636d[_0x1d9f8c(0x120)][_0x1d9f8c(0x14f)](_0x11b916=>_0x11b916['id']===_0x1ca4dd),_0x1a49f7=(_0x1253f0=_0x52af83==null?void 0x0:_0x52af83[_0x1d9f8c(0x173)])==null?_0x1d9f8c(0x167):_0x1253f0;return T(_0x23636d,_0x1ca4dd,_0x1a49f7===_0x1d9f8c(0x167)?_0x1d9f8c(0x176):_0x1a49f7===_0x1d9f8c(0x176)?_0x1d9f8c(0x11c):_0x1a49f7===_0x1d9f8c(0x11c)?'free':'corner');}function ae(_0x3a74b0,_0xfc09d5,_0xf2efde){const _0x1e4bc3=_0x28f2e6;let _0x57fe67=o(_0x3a74b0),_0x1c9ede=_0x57fe67['anchors'][_0x1e4bc3(0x14f)](_0x42792b=>_0x42792b['id']===_0xfc09d5['anchorId']);if(!_0x1c9ede)return _0x57fe67;if(_0xfc09d5[_0x1e4bc3(0x161)]===_0x1e4bc3(0x142)){let _0x2992cb={'x':_0xf2efde['x']-_0x1c9ede['x'],'y':_0xf2efde['y']-_0x1c9ede['y']};return _0x1c9ede['x']=_0xf2efde['x'],_0x1c9ede['y']=_0xf2efde['y'],_0x1c9ede['in']&&(_0x1c9ede['in']={'x':_0x1c9ede['in']['x']+_0x2992cb['x'],'y':_0x1c9ede['in']['y']+_0x2992cb['y']}),_0x1c9ede[_0x1e4bc3(0x14c)]&&(_0x1c9ede[_0x1e4bc3(0x14c)]={'x':_0x1c9ede[_0x1e4bc3(0x14c)]['x']+_0x2992cb['x'],'y':_0x1c9ede[_0x1e4bc3(0x14c)]['y']+_0x2992cb['y']}),_0x57fe67;}return _0x1c9ede[_0xfc09d5[_0x1e4bc3(0x161)]]=i(_0xf2efde),_0x1c9ede[_0x1e4bc3(0x173)]===_0x1e4bc3(0x167)&&(_0x1c9ede[_0x1e4bc3(0x173)]='free'),b(_0x1c9ede,_0xfc09d5[_0x1e4bc3(0x161)]),_0x57fe67;}const D=1e-9;function O(_0x487d6a){const _0x2104c6=_0x28f2e6;let _0x3d0776=Math[_0x2104c6(0x12f)](_0x487d6a*0x2710)/0x2710;return Object['is'](_0x3d0776,-0x0)?'0':String(_0x3d0776);}function k(_0x32edb8){return O(_0x32edb8['x'])+'\x20'+O(_0x32edb8['y']);}function A(_0x18f933,_0x2db511){return{'x':_0x18f933['x']-_0x2db511['x'],'y':_0x18f933['y']-_0x2db511['y']};}function j(_0x2eda36,_0x25fe2f,_0x587e8b,_0x548030,_0x1ff2f0){let _0x4e19f5=0x1-_0x1ff2f0;return{'x':_0x4e19f5*_0x4e19f5*_0x4e19f5*_0x2eda36['x']+0x3*_0x4e19f5*_0x4e19f5*_0x1ff2f0*_0x25fe2f['x']+0x3*_0x4e19f5*_0x1ff2f0*_0x1ff2f0*_0x587e8b['x']+_0x1ff2f0*_0x1ff2f0*_0x1ff2f0*_0x548030['x'],'y':_0x4e19f5*_0x4e19f5*_0x4e19f5*_0x2eda36['y']+0x3*_0x4e19f5*_0x4e19f5*_0x1ff2f0*_0x25fe2f['y']+0x3*_0x4e19f5*_0x1ff2f0*_0x1ff2f0*_0x587e8b['y']+_0x1ff2f0*_0x1ff2f0*_0x1ff2f0*_0x548030['y']};}function M(_0x4f841d,_0x201ea4,_0x5d2702,_0xa5695f){const _0xff6a8a=_0x28f2e6;let _0x5154a5=-_0x4f841d+0x3*_0x201ea4-0x3*_0x5d2702+_0xa5695f,_0x11c94f=0x3*_0x4f841d-0x6*_0x201ea4+0x3*_0x5d2702,_0x35d424=-0x3*_0x4f841d+0x3*_0x201ea4,_0x551568=[];if(Math[_0xff6a8a(0x150)](_0x5154a5)<D){if(Math[_0xff6a8a(0x150)](_0x11c94f)<D)return _0x551568;let _0x4d71e9=-_0x35d424/(0x2*_0x11c94f);return _0x4d71e9>0x0&&_0x4d71e9<0x1&&_0x551568[_0xff6a8a(0x17c)](_0x4d71e9),_0x551568;}let _0x27f12e=_0x11c94f*_0x11c94f-0x3*_0x5154a5*_0x35d424;if(_0x27f12e<0x0)return _0x551568;let _0x1acaea=Math[_0xff6a8a(0x166)](Math[_0xff6a8a(0x11f)](0x0,_0x27f12e)),_0xde1a4=(-_0x11c94f+_0x1acaea)/(0x3*_0x5154a5),_0x372063=(-_0x11c94f-_0x1acaea)/(0x3*_0x5154a5);return _0xde1a4>0x0&&_0xde1a4<0x1&&_0x551568[_0xff6a8a(0x17c)](_0xde1a4),_0x372063>0x0&&_0x372063<0x1&&Math['abs'](_0x372063-_0xde1a4)>D&&_0x551568[_0xff6a8a(0x17c)](_0x372063),_0x551568;}function N(_0x582fb1,_0x3e552e,_0x444934,_0x54431d,_0x1bad32){const _0xaad78=_0x28f2e6;_0x582fb1[_0xaad78(0x17c)](_0x3e552e,_0x1bad32),new Set([...M(_0x3e552e['x'],_0x444934['x'],_0x54431d['x'],_0x1bad32['x']),...M(_0x3e552e['y'],_0x444934['y'],_0x54431d['y'],_0x1bad32['y'])])[_0xaad78(0x13f)](_0x20b712=>{const _0x5f4b95=_0xaad78;_0x582fb1[_0x5f4b95(0x17c)](j(_0x3e552e,_0x444934,_0x54431d,_0x1bad32,_0x20b712));});}function P(_0x526cbd){const _0x12d634=_0x28f2e6;let _0x4f58e4=_0x526cbd[_0x12d634(0x120)];if(_0x4f58e4[_0x12d634(0x13d)]<=0x1)return _0x4f58e4;let _0x3ad36c=[];for(let _0x1b5959=0x1;_0x1b5959<_0x4f58e4['length'];_0x1b5959++){var _0x395de4,_0x1b9844;let _0x2e3167=_0x4f58e4[_0x1b5959-0x1],_0x3be3d8=_0x4f58e4[_0x1b5959];N(_0x3ad36c,_0x2e3167,(_0x395de4=_0x2e3167[_0x12d634(0x14c)])==null?_0x2e3167:_0x395de4,(_0x1b9844=_0x3be3d8['in'])==null?_0x3be3d8:_0x1b9844,_0x3be3d8);}if(_0x526cbd[_0x12d634(0x175)]&&_0x4f58e4[_0x12d634(0x13d)]>0x1){var _0x673c82,_0x4fa268;let _0x3b4b44=_0x4f58e4[_0x4f58e4[_0x12d634(0x13d)]-0x1],_0x4fe938=_0x4f58e4[0x0];N(_0x3ad36c,_0x3b4b44,(_0x673c82=_0x3b4b44['out'])==null?_0x3b4b44:_0x673c82,(_0x4fa268=_0x4fe938['in'])==null?_0x4fe938:_0x4fa268,_0x4fe938);}return _0x3ad36c;}function F(_0x101451){const _0x44620c=_0x28f2e6;let _0x46501c=_0x101451[_0x44620c(0x134)];if(_0x46501c[_0x44620c(0x13d)]<=0x1)return _0x46501c;let _0x176ef7=[];for(let _0x4ea4bc=0x0;_0x4ea4bc<_0x46501c[_0x44620c(0x13d)]-0x1;_0x4ea4bc++){var _0x408ceb,_0x13c62e;let _0x35a27c=_0x46501c[_0x4ea4bc],_0x4fc978=_0x46501c[_0x4ea4bc+0x1],_0x2ae719=(_0x408ceb=_0x46501c[_0x4ea4bc-0x1])==null?_0x35a27c:_0x408ceb,_0x3be9c3=(_0x13c62e=_0x46501c[_0x4ea4bc+0x2])==null?_0x4fc978:_0x13c62e;N(_0x176ef7,_0x35a27c,{'x':_0x35a27c['x']+(_0x4fc978['x']-_0x2ae719['x'])/0x6,'y':_0x35a27c['y']+(_0x4fc978['y']-_0x2ae719['y'])/0x6},{'x':_0x4fc978['x']-(_0x3be9c3['x']-_0x35a27c['x'])/0x6,'y':_0x4fc978['y']-(_0x3be9c3['y']-_0x35a27c['y'])/0x6},_0x4fc978);}return _0x176ef7;}function I(_0x1ff45d){const _0x52d876=_0x28f2e6;return _0x1ff45d['kind']===_0x52d876(0x125)?P(_0x1ff45d):F(_0x1ff45d);}function L(_0x33f6dc){const _0x347758=_0x28f2e6;let _0x99b7c8=Math[_0x347758(0x12f)](_0x33f6dc*0x2710)/0x2710;return Object['is'](_0x99b7c8,-0x0)?0x0:_0x99b7c8;}function R(_0x1a6d25){const _0x5cacf5=_0x28f2e6;let _0x457dd6=I(_0x1a6d25);if(_0x457dd6[_0x5cacf5(0x13d)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x17cfc5=Math[_0x5cacf5(0x17e)](..._0x457dd6[_0x5cacf5(0x124)](_0xcd7a93=>_0xcd7a93['x'])),_0x21ea2d=Math[_0x5cacf5(0x17e)](..._0x457dd6[_0x5cacf5(0x124)](_0x565cfa=>_0x565cfa['y'])),_0x5150e0=Math[_0x5cacf5(0x11f)](..._0x457dd6[_0x5cacf5(0x124)](_0xc70b5b=>_0xc70b5b['x'])),_0x54c1bd=Math['max'](..._0x457dd6[_0x5cacf5(0x124)](_0x1ea5bb=>_0x1ea5bb['y']));return{'left':L(_0x17cfc5),'top':L(_0x21ea2d),'width':L(Math['max'](0x1,_0x5150e0-_0x17cfc5)),'height':L(Math[_0x5cacf5(0x11f)](0x1,_0x54c1bd-_0x21ea2d))};}function z(_0x254fc6,_0xf682bd){const _0x2c9168=_0x28f2e6;let _0xf35892=_0x254fc6[_0x2c9168(0x120)];if(_0xf35892[_0x2c9168(0x13d)]===0x0)return'';let _0x3da625=['M\x20'+k(A(_0xf35892[0x0],_0xf682bd))];for(let _0x940b4b=0x1;_0x940b4b<_0xf35892[_0x2c9168(0x13d)];_0x940b4b++){var _0x1d0608,_0x5143b8;let _0x59167b=_0xf35892[_0x940b4b-0x1],_0x43d49e=_0xf35892[_0x940b4b],_0x3e98b7=(_0x1d0608=_0x59167b[_0x2c9168(0x14c)])==null?_0x59167b:_0x1d0608,_0x5b05db=(_0x5143b8=_0x43d49e['in'])==null?_0x43d49e:_0x5143b8;_0x3da625[_0x2c9168(0x17c)]('C\x20'+k(A(_0x3e98b7,_0xf682bd))+'\x20'+k(A(_0x5b05db,_0xf682bd))+'\x20'+k(A(_0x43d49e,_0xf682bd)));}if(_0x254fc6['closed']&&_0xf35892[_0x2c9168(0x13d)]>0x1){var _0x3b7302,_0xe3f4c7;let _0x537248=_0xf35892[_0xf35892[_0x2c9168(0x13d)]-0x1],_0xb3a7fd=_0xf35892[0x0],_0x3670f9=(_0x3b7302=_0x537248['out'])==null?_0x537248:_0x3b7302,_0x4b91aa=(_0xe3f4c7=_0xb3a7fd['in'])==null?_0xb3a7fd:_0xe3f4c7;_0x3da625[_0x2c9168(0x17c)]('C\x20'+k(A(_0x3670f9,_0xf682bd))+'\x20'+k(A(_0x4b91aa,_0xf682bd))+'\x20'+k(A(_0xb3a7fd,_0xf682bd))),_0x3da625[_0x2c9168(0x17c)]('Z');}return _0x3da625[_0x2c9168(0x13a)]('\x20');}function B(_0x2f2e77,_0x23ce8b){const _0x16ab2=_0x28f2e6;let _0x1a2065=_0x2f2e77[_0x16ab2(0x134)][_0x16ab2(0x124)](_0x27bf9c=>A(_0x27bf9c,_0x23ce8b));if(_0x1a2065[_0x16ab2(0x13d)]===0x0)return'';if(_0x1a2065[_0x16ab2(0x13d)]===0x1)return'M\x20'+k(_0x1a2065[0x0]);let _0x1a69f1=['M\x20'+k(_0x1a2065[0x0])];for(let _0x311128=0x0;_0x311128<_0x1a2065[_0x16ab2(0x13d)]-0x1;_0x311128++){var _0x1fd6d2,_0x2bbb55;let _0x18847c=_0x1a2065[_0x311128],_0x1d072f=_0x1a2065[_0x311128+0x1],_0x4e0390=(_0x1fd6d2=_0x1a2065[_0x311128-0x1])==null?_0x18847c:_0x1fd6d2,_0x3aa98b=(_0x2bbb55=_0x1a2065[_0x311128+0x2])==null?_0x1d072f:_0x2bbb55,_0x5b23e8={'x':_0x18847c['x']+(_0x1d072f['x']-_0x4e0390['x'])/0x6,'y':_0x18847c['y']+(_0x1d072f['y']-_0x4e0390['y'])/0x6},_0x51f1c3={'x':_0x1d072f['x']-(_0x3aa98b['x']-_0x18847c['x'])/0x6,'y':_0x1d072f['y']-(_0x3aa98b['y']-_0x18847c['y'])/0x6};_0x1a69f1[_0x16ab2(0x17c)]('C\x20'+k(_0x5b23e8)+'\x20'+k(_0x51f1c3)+'\x20'+k(_0x1d072f));}return _0x1a69f1['join']('\x20');}function V(_0x429378,_0x254b6c){const _0x3faa67=_0x28f2e6;return _0x429378['kind']===_0x3faa67(0x125)?z(_0x429378,_0x254b6c):B(_0x429378,_0x254b6c);}function H(_0x218145,_0x1354e5){const _0x1d357b=_0x28f2e6;return _0x1354e5!=null&&_0x1354e5[_0x1d357b(0x138)]?_0x1354e5['color']:_0x218145[_0x1d357b(0x161)]===_0x1d357b(0x125)?'#f54a45':_0x218145['color'];}function U(_0x4a1249,_0x50a38d){const _0x483155=_0x28f2e6;return(_0x50a38d==null?void 0x0:_0x50a38d[_0x483155(0x15a)])===void 0x0?_0x4a1249[_0x483155(0x161)]==='pen'?0x2:_0x4a1249['width']:_0x50a38d['width'];}function W(_0x16d168,_0x3cd737){const _0x175ddb=_0x28f2e6;return(_0x3cd737==null?void 0x0:_0x3cd737['opacity'])===void 0x0?_0x16d168[_0x175ddb(0x161)]===_0x175ddb(0x125)?void 0x0:_0x16d168[_0x175ddb(0x17a)]:_0x3cd737[_0x175ddb(0x17a)];}function oe(_0x47a787,_0x1d9619){const _0x594527=_0x28f2e6;let _0x3ed312=R(_0x47a787),_0x2d3789=V(_0x47a787,{'x':_0x3ed312[_0x594527(0x18f)],'y':_0x3ed312[_0x594527(0x129)]}),_0x1191e6=_0x47a787[_0x594527(0x161)]===_0x594527(0x125)&&_0x47a787[_0x594527(0x175)],_0x440870=_0x1d9619==null?void 0x0:_0x1d9619[_0x594527(0x17b)];return{'shapeType':e[_0x594527(0x178)]['Rect'],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x3ed312['width'],'h':_0x3ed312[_0x594527(0x146)],'fill':_0x1191e6?'norm':_0x594527(0x16e),'stroke':!0x0,'data':_0x2d3789,'dataArray':K(_0x47a787,{'x':_0x3ed312[_0x594527(0x18f)],'y':_0x3ed312['top']})}]},'fill':_0x1191e6&&_0x440870?{'color':_0x440870,'fillType':e[_0x594527(0x131)]['SolidFill']}:{'fillType':e[_0x594527(0x131)][_0x594527(0x170)]},'stroke':{'color':H(_0x47a787,_0x1d9619),'width':U(_0x47a787,_0x1d9619),'opacity':W(_0x47a787,_0x1d9619),'lineStrokeType':e[_0x594527(0x11e)][_0x594527(0x191)],'capType':e[_0x594527(0x12b)][_0x594527(0x144)],'lineJoinType':e[_0x594527(0x141)][_0x594527(0x144)]}};}function G(_0x5d6bf8,_0x4ce41a){return{'x':_0x5d6bf8['x']-_0x4ce41a['x'],'y':_0x5d6bf8['y']-_0x4ce41a['y']};}function K(_0x38c7be,_0x4c514f){const _0x2fc907=_0x28f2e6;if(_0x38c7be[_0x2fc907(0x161)]===_0x2fc907(0x125)){let _0x440428=_0x38c7be[_0x2fc907(0x120)];if(_0x440428[_0x2fc907(0x13d)]===0x0)return[];let _0x234cf7=G(_0x440428[0x0],_0x4c514f),_0xe521b2=[{'command':'M','points':[_0x234cf7['x'],_0x234cf7['y']]}];for(let _0x29fc6f=0x1;_0x29fc6f<_0x440428[_0x2fc907(0x13d)];_0x29fc6f++){var _0x31c544,_0x25c7d2;let _0x6779=_0x440428[_0x29fc6f-0x1],_0x927de4=_0x440428[_0x29fc6f],_0xdb0d1f=G((_0x31c544=_0x6779[_0x2fc907(0x14c)])==null?_0x6779:_0x31c544,_0x4c514f),_0x550d42=G((_0x25c7d2=_0x927de4['in'])==null?_0x927de4:_0x25c7d2,_0x4c514f),_0x240988=G(_0x927de4,_0x4c514f);_0xe521b2['push']({'command':'C','points':[_0xdb0d1f['x'],_0xdb0d1f['y'],_0x550d42['x'],_0x550d42['y'],_0x240988['x'],_0x240988['y']]});}if(_0x38c7be[_0x2fc907(0x175)]&&_0x440428[_0x2fc907(0x13d)]>0x1){var _0x230d50,_0x15e103;let _0x2fa204=_0x440428[_0x440428[_0x2fc907(0x13d)]-0x1],_0x5335c4=_0x440428[0x0],_0x46f5a5=G((_0x230d50=_0x2fa204[_0x2fc907(0x14c)])==null?_0x2fa204:_0x230d50,_0x4c514f),_0x20b032=G((_0x15e103=_0x5335c4['in'])==null?_0x5335c4:_0x15e103,_0x4c514f),_0x55d225=G(_0x5335c4,_0x4c514f);_0xe521b2[_0x2fc907(0x17c)]({'command':'C','points':[_0x46f5a5['x'],_0x46f5a5['y'],_0x20b032['x'],_0x20b032['y'],_0x55d225['x'],_0x55d225['y']]}),_0xe521b2[_0x2fc907(0x17c)]({'command':'z','points':[]});}return _0xe521b2;}let _0x5d2eb2=_0x38c7be[_0x2fc907(0x134)][_0x2fc907(0x124)](_0xc98c47=>G(_0xc98c47,_0x4c514f));if(_0x5d2eb2[_0x2fc907(0x13d)]===0x0)return[];let _0x59095e=[{'command':'M','points':[_0x5d2eb2[0x0]['x'],_0x5d2eb2[0x0]['y']]}];for(let _0x5507cd=0x0;_0x5507cd<_0x5d2eb2[_0x2fc907(0x13d)]-0x1;_0x5507cd++){var _0x1e2db7,_0x4dedbd;let _0xa08b52=_0x5d2eb2[_0x5507cd],_0xef8728=_0x5d2eb2[_0x5507cd+0x1],_0x1a7e98=(_0x1e2db7=_0x5d2eb2[_0x5507cd-0x1])==null?_0xa08b52:_0x1e2db7,_0x57d526=(_0x4dedbd=_0x5d2eb2[_0x5507cd+0x2])==null?_0xef8728:_0x4dedbd,_0x3328bb={'x':_0xa08b52['x']+(_0xef8728['x']-_0x1a7e98['x'])/0x6,'y':_0xa08b52['y']+(_0xef8728['y']-_0x1a7e98['y'])/0x6},_0x3e6d64={'x':_0xef8728['x']-(_0x57d526['x']-_0xa08b52['x'])/0x6,'y':_0xef8728['y']-(_0x57d526['y']-_0xa08b52['y'])/0x6};_0x59095e['push']({'command':'C','points':[_0x3328bb['x'],_0x3328bb['y'],_0x3e6d64['x'],_0x3e6d64['y'],_0xef8728['x'],_0xef8728['y']]});}return _0x59095e;}function q(_0x30f6a1){const _0x28423e=_0x28f2e6;var _0x49434f;let {model:_0x6ac922,sourceModel:_0x4610b7=_0x6ac922,style:_0xf6a578}=_0x30f6a1,_0xcee791=(_0x49434f=_0x30f6a1['tool'])==null?_0x6ac922[_0x28423e(0x161)]:_0x49434f,_0xc4ee1f=R(_0x6ac922),_0x4176f4=_0x6ac922['kind']==='pen'&&_0xcee791!==_0x28423e(0x125)?_0x6ac922:void 0x0;return{'transform':{..._0xc4ee1f,'rotation':0x0},'shapeData':oe(_0x6ac922,_0xf6a578),'ink':{'version':0x1,'tool':_0xcee791,'sourceModel':_0x4610b7,..._0x4176f4?{'editModel':_0x4176f4}:{},'normalizedBounds':_0xc4ee1f}};}function _0x5a6d(_0x309911,_0x4d1e57){_0x309911=_0x309911-0x11c;const _0x3435ad=_0x3435();let _0x5a6dd1=_0x3435ad[_0x309911];return _0x5a6dd1;}var se=_0x28f2e6(0x181),ce=_0x28f2e6(0x135);function J(_0x2b8d29){'@babel/helpers - typeof';const _0x2e0788=_0x28f2e6;return J=typeof Symbol==_0x2e0788(0x183)&&typeof Symbol['iterator']==_0x2e0788(0x16a)?function(_0x31165e){return typeof _0x31165e;}:function(_0xb7dc5b){const _0x26e273=_0x2e0788;return _0xb7dc5b&&typeof Symbol=='function'&&_0xb7dc5b[_0x26e273(0x18e)]===Symbol&&_0xb7dc5b!==Symbol['prototype']?_0x26e273(0x16a):typeof _0xb7dc5b;},J(_0x2b8d29);}function le(_0xecfb44,_0x23216d){const _0x3aea2b=_0x28f2e6;if(J(_0xecfb44)!=_0x3aea2b(0x180)||!_0xecfb44)return _0xecfb44;var _0x335faa=_0xecfb44[Symbol[_0x3aea2b(0x179)]];if(_0x335faa!==void 0x0){var _0x2ae351=_0x335faa[_0x3aea2b(0x145)](_0xecfb44,_0x23216d||_0x3aea2b(0x18d));if(J(_0x2ae351)!=_0x3aea2b(0x180))return _0x2ae351;throw TypeError(_0x3aea2b(0x121));}return(_0x23216d===_0x3aea2b(0x16f)?String:Number)(_0xecfb44);}function ue(_0x1bc441){const _0x2ce22d=_0x28f2e6;var _0x54cb20=le(_0x1bc441,_0x2ce22d(0x16f));return J(_0x54cb20)==_0x2ce22d(0x16a)?_0x54cb20:_0x54cb20+'';}function Y(_0x150c1c,_0x393de3,_0xe601e5){const _0x582229=_0x28f2e6;return(_0x393de3=ue(_0x393de3))in _0x150c1c?Object[_0x582229(0x140)](_0x150c1c,_0x393de3,{'value':_0xe601e5,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x150c1c[_0x393de3]=_0xe601e5,_0x150c1c;}const X=(0x0,n[_0x28f2e6(0x190)])(_0x28f2e6(0x174));var de=class{constructor(){const _0x16f0bb=_0x28f2e6;Y(this,_0x16f0bb(0x132),[]);}[_0x28f2e6(0x169)](_0x3733de){const _0x32c56b=_0x28f2e6;return this[_0x32c56b(0x132)][_0x32c56b(0x17c)](_0x3733de),(0x0,n[_0x32c56b(0x127)])(()=>{const _0x3f18f2=_0x32c56b;let _0xde21c4=this[_0x3f18f2(0x132)][_0x3f18f2(0x155)](_0x3733de);_0xde21c4>=0x0&&this[_0x3f18f2(0x132)][_0x3f18f2(0x188)](_0xde21c4,0x1);});}[_0x28f2e6(0x12a)](_0x145d9f){const _0x255775=_0x28f2e6;for(let _0x919fcc of this[_0x255775(0x132)])if(_0x919fcc[_0x255775(0x12a)](_0x145d9f))return!0x0;return!0x1;}async[_0x28f2e6(0x185)](_0x57ecb5){const _0x409a40=_0x28f2e6;for(let _0x404147 of this[_0x409a40(0x132)])if(_0x404147[_0x409a40(0x185)]&&await _0x404147[_0x409a40(0x185)](_0x57ecb5))return!0x0;return!0x1;}};const fe={'id':_0x28f2e6(0x16c),'type':n[_0x28f2e6(0x136)][_0x28f2e6(0x171)],'handler':(_0x33edd2,_0x24a3f1)=>_0x24a3f1?_0x33edd2[_0x28f2e6(0x14a)](X)[_0x28f2e6(0x12a)](_0x24a3f1):!0x1},Z={};function Q(_0x206479,_0x365fdb){return function(_0x32da02,_0x31703c){_0x365fdb(_0x32da02,_0x31703c,_0x206479);};}function pe(_0x49baf5,_0x24600c,_0x3e9d84,_0x258754){const _0x2ad11e=_0x28f2e6;var _0xa93a4d=arguments['length'],_0x293c3f=_0xa93a4d<0x3?_0x24600c:_0x258754===null?_0x258754=Object[_0x2ad11e(0x157)](_0x24600c,_0x3e9d84):_0x258754,_0x5f3b17;if(typeof Reflect==_0x2ad11e(0x180)&&typeof Reflect[_0x2ad11e(0x163)]==_0x2ad11e(0x183))_0x293c3f=Reflect['decorate'](_0x49baf5,_0x24600c,_0x3e9d84,_0x258754);else{for(var _0x287c3e=_0x49baf5[_0x2ad11e(0x13d)]-0x1;_0x287c3e>=0x0;_0x287c3e--)(_0x5f3b17=_0x49baf5[_0x287c3e])&&(_0x293c3f=(_0xa93a4d<0x3?_0x5f3b17(_0x293c3f):_0xa93a4d>0x3?_0x5f3b17(_0x24600c,_0x3e9d84,_0x293c3f):_0x5f3b17(_0x24600c,_0x3e9d84))||_0x293c3f);}return _0xa93a4d>0x3&&_0x293c3f&&Object[_0x2ad11e(0x140)](_0x24600c,_0x3e9d84,_0x293c3f),_0x293c3f;}let $=class extends n['Plugin']{constructor(_0x28978d=Z,_0x441c47,_0x372fe4,_0x5794a1){const _0x31b31f=_0x28f2e6;super(),this[_0x31b31f(0x147)]=_0x28978d,this[_0x31b31f(0x153)]=_0x441c47,this[_0x31b31f(0x164)]=_0x372fe4,this['_configService']=_0x5794a1;let {..._0x3243af}=(0x0,n['merge'])({},Z,this['_config']);this[_0x31b31f(0x187)]['setConfig'](_0x31b31f(0x159),_0x3243af);}[_0x28f2e6(0x14d)](){const _0x4f907d=_0x28f2e6;[[X,{'useClass':de}]][_0x4f907d(0x13f)](_0x327c0b=>this['_injector'][_0x4f907d(0x158)](_0x327c0b)),this[_0x4f907d(0x17d)](this['_commandService'][_0x4f907d(0x13e)](fe));}};function _0x3435(){const _0x509c98=['min','DependentOn','object','@univerjs-pro/ink','2gPHlQG','function','6542466YHgWyV','createCustomShape','getInkModelBounds','_configService','splice','Module','6469008ImJzvX','UniverInstanceType','UniverLicensePlugin','default','constructor','left','createIdentifier','SolidLine','moveInkPenAnchorPoint','symmetric','ratio','ShapeLineTypeEnum','max','anchors','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','segmentIndex','715298QTCluZ','map','pen','ink-centerline-','toDisposable','slice','top','beginInkMode','ShapeLineCapEnum','setInkPenAnchorPointType','insertInkPenAnchorAt','IInkHostAdapterService','round','__ink-preview-anchor__','ShapeFillEnum','_adapters','right','points','1.0.0-alpha.3','CommandType','deleteInkPenAnchor','color','convertBrushModelToPenModel','join','5059890rBLjAp','start','length','registerCommand','forEach','defineProperty','ShapeLineJoinEnum','anchor','findClosestInkPenSegment','Round','call','height','_config','ICommandService','10lpQLFS','get','12413208dPXtmD','out','onStarting','buildInkCustomShapePayload','find','abs','cycleInkPenAnchorPointType','findIndex','_injector','UniverInkPlugin','indexOf','6aiibfu','getOwnPropertyDescriptor','add','ink.config','width','end','9151483fdlnnD','type','distance','Inject','point','kind','filter','decorate','_commandService','free','sqrt','corner','UNIVER_INK_PLUGIN','registerAdapter','symbol','createId','ink.operation.start','hypot','none','string','NoFill','OPERATION','1553154SZhLHH','pointType','ink.host-adapter.service','closed','smooth','9tLIjCo','ShapeTypeEnum','toPrimitive','opacity','fillColor','push','disposeWithMe'];_0x3435=function(){return _0x509c98;};return _0x3435();}Y($,'pluginName',_0x28f2e6(0x168)),Y($,'packageName',se),Y($,'version',ce),Y($,_0x28f2e6(0x15d),n[_0x28f2e6(0x18b)]['UNIVER_UNKNOWN']),$=pe([(0x0,n[_0x28f2e6(0x17f)])(t[_0x28f2e6(0x18c)]),Q(0x1,(0x0,n[_0x28f2e6(0x15f)])(n['Injector'])),Q(0x2,n[_0x28f2e6(0x148)]),Q(0x3,n['IConfigService'])],$),exports[_0x28f2e6(0x12e)]=X,Object[_0x28f2e6(0x140)](exports,_0x28f2e6(0x154),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x28f2e6(0x14e)]=q,exports[_0x28f2e6(0x139)]=re,exports[_0x28f2e6(0x151)]=E,exports[_0x28f2e6(0x137)]=w,exports['findClosestInkPenHandle']=ie,exports[_0x28f2e6(0x143)]=S,exports[_0x28f2e6(0x186)]=R,exports['getInkPenPreviewModel']=x,exports[_0x28f2e6(0x12d)]=C,exports['isInkPenHandleVisible']=p,exports[_0x28f2e6(0x192)]=ae,exports[_0x28f2e6(0x12c)]=T;
|
|
1
|
+
const _0x3109a9=_0x520f;(function(_0x5a51cd,_0x51540b){const _0x1cf140=_0x520f,_0x406604=_0x5a51cd();while(!![]){try{const _0x340119=-parseInt(_0x1cf140(0x216))/0x1+parseInt(_0x1cf140(0x23b))/0x2*(parseInt(_0x1cf140(0x1e9))/0x3)+parseInt(_0x1cf140(0x1f6))/0x4+-parseInt(_0x1cf140(0x232))/0x5*(-parseInt(_0x1cf140(0x239))/0x6)+parseInt(_0x1cf140(0x1e5))/0x7+parseInt(_0x1cf140(0x20b))/0x8+parseInt(_0x1cf140(0x1fd))/0x9*(-parseInt(_0x1cf140(0x21c))/0xa);if(_0x340119===_0x51540b)break;else _0x406604['push'](_0x406604['shift']());}catch(_0x5919a1){_0x406604['push'](_0x406604['shift']());}}}(_0x57c1,0xc2b99),Object[_0x3109a9(0x21f)](exports,Symbol['toStringTag'],{'value':_0x3109a9(0x1fe)}));let e=require('@univerjs-pro/engine-shape'),t=require('@univerjs-pro/license'),n=require('@univerjs/core');const r=0.0001;function i(_0x27aac1){return{'x':_0x27aac1['x'],'y':_0x27aac1['y']};}function a(_0x34a5a4){const _0xdfe6bd=_0x3109a9;return{..._0x34a5a4,'in':_0x34a5a4['in']?i(_0x34a5a4['in']):void 0x0,'out':_0x34a5a4[_0xdfe6bd(0x217)]?i(_0x34a5a4[_0xdfe6bd(0x217)]):void 0x0};}function o(_0x87ddf6){const _0x40267d=_0x3109a9;return{'kind':_0x40267d(0x1f8),'closed':_0x87ddf6[_0x40267d(0x223)],'anchors':_0x87ddf6['anchors'][_0x40267d(0x1e8)](a)};}function s(_0x2d48cb,_0x5b7b6c,_0x22cc54){return{'x':_0x2d48cb['x']+(_0x5b7b6c['x']-_0x2d48cb['x'])*_0x22cc54,'y':_0x2d48cb['y']+(_0x5b7b6c['y']-_0x2d48cb['y'])*_0x22cc54};}function c(_0x835707,_0x1f513f){const _0x26c2f2=_0x3109a9;return Math[_0x26c2f2(0x24a)](_0x835707['x']-_0x1f513f['x'],_0x835707['y']-_0x1f513f['y']);}function l(_0x54fecb){const _0x5161c6=_0x3109a9;let _0x32cebf=Math[_0x5161c6(0x24a)](_0x54fecb['x'],_0x54fecb['y']);return _0x32cebf<r?{'x':0x1,'y':0x0}:{'x':_0x54fecb['x']/_0x32cebf,'y':_0x54fecb['y']/_0x32cebf};}function u(_0x4d7fe4,_0x3c3baa,_0x15ac2d=c(_0x4d7fe4,_0x3c3baa)){let _0x27b9fc=l({'x':_0x4d7fe4['x']-_0x3c3baa['x'],'y':_0x4d7fe4['y']-_0x3c3baa['y']});return{'x':_0x4d7fe4['x']+_0x27b9fc['x']*_0x15ac2d,'y':_0x4d7fe4['y']+_0x27b9fc['y']*_0x15ac2d};}function d(_0x4ec607,_0x299691){const _0x537f69=_0x3109a9;let {anchors:_0x4e7272}=_0x4ec607;return _0x4e7272[_0x537f69(0x238)]<0x2||_0x299691<0x0?null:_0x299691<_0x4e7272['length']-0x1?{'startIndex':_0x299691,'endIndex':_0x299691+0x1,'start':_0x4e7272[_0x299691],'end':_0x4e7272[_0x299691+0x1]}:_0x4ec607['closed']&&_0x299691===_0x4e7272[_0x537f69(0x238)]-0x1?{'startIndex':_0x4e7272[_0x537f69(0x238)]-0x1,'endIndex':0x0,'start':_0x4e7272[_0x4e7272['length']-0x1],'end':_0x4e7272[0x0]}:null;}function f(_0x39a612,_0x375ff0){const _0x50ec8e=_0x3109a9;var _0x256b3b,_0x414f6c;let _0x51bce0=d(_0x39a612,_0x375ff0);return _0x51bce0?[_0x51bce0[_0x50ec8e(0x237)],(_0x256b3b=_0x51bce0[_0x50ec8e(0x237)][_0x50ec8e(0x217)])==null?_0x51bce0[_0x50ec8e(0x237)]:_0x256b3b,(_0x414f6c=_0x51bce0[_0x50ec8e(0x1f5)]['in'])==null?_0x51bce0[_0x50ec8e(0x1f5)]:_0x414f6c,_0x51bce0[_0x50ec8e(0x1f5)]]:null;}function ee(_0x4ac6b5,_0x2f7df3){const _0x544cc3=_0x3109a9;var _0x1f45bd;return _0x2f7df3===_0x544cc3(0x21a)?_0x4ac6b5:(_0x1f45bd=_0x4ac6b5[_0x2f7df3])==null?null:_0x1f45bd;}function p(_0x479b44,_0x1d0619,_0x227cf7){const _0x182c8c=_0x3109a9;return _0x227cf7===_0x182c8c(0x21a)||_0x479b44[_0x182c8c(0x223)]?!0x0:_0x227cf7==='in'?_0x1d0619>0x0:_0x1d0619<_0x479b44[_0x182c8c(0x220)]['length']-0x1;}function m(_0x1eda6f,_0x53df4a){let [_0x18f290,_0x243ef6,_0x103a67,_0x40c25b]=_0x1eda6f,_0x417b27=s(_0x18f290,_0x243ef6,_0x53df4a),_0x36f6fd=s(_0x243ef6,_0x103a67,_0x53df4a),_0x1976eb=s(_0x103a67,_0x40c25b,_0x53df4a);return s(s(_0x417b27,_0x36f6fd,_0x53df4a),s(_0x36f6fd,_0x1976eb,_0x53df4a),_0x53df4a);}function h(_0x1ab30d,_0x43a592){let [_0x5d6e86,_0x49ab00,_0x4c1abe,_0x504f96]=_0x1ab30d,_0x4f66bd=s(_0x5d6e86,_0x49ab00,_0x43a592),_0x59b350=s(_0x49ab00,_0x4c1abe,_0x43a592),_0x28e466=s(_0x4c1abe,_0x504f96,_0x43a592),_0x33bd9f=s(_0x4f66bd,_0x59b350,_0x43a592),_0x21d833=s(_0x59b350,_0x28e466,_0x43a592),_0x483d7c=s(_0x33bd9f,_0x21d833,_0x43a592);return{'left':[_0x5d6e86,_0x4f66bd,_0x33bd9f,_0x483d7c],'right':[_0x483d7c,_0x21d833,_0x28e466,_0x504f96]};}function g(_0x51e47c,_0x3a7aa2,_0x24b35f){const _0xe19f2c=_0x3109a9;let _0x20315d=_0x24b35f['x']-_0x3a7aa2['x'],_0x27c18f=_0x24b35f['y']-_0x3a7aa2['y'],_0x5767ce=_0x20315d*_0x20315d+_0x27c18f*_0x27c18f,_0x274e8a=_0x5767ce<=r?0x0:Math[_0xe19f2c(0x240)](0x0,Math[_0xe19f2c(0x212)](0x1,((_0x51e47c['x']-_0x3a7aa2['x'])*_0x20315d+(_0x51e47c['y']-_0x3a7aa2['y'])*_0x27c18f)/_0x5767ce)),_0x1daadc={'x':_0x3a7aa2['x']+_0x20315d*_0x274e8a,'y':_0x3a7aa2['y']+_0x27c18f*_0x274e8a};return{'point':_0x1daadc,'ratio':_0x274e8a,'distance':c(_0x51e47c,_0x1daadc)};}function te(_0x376afe,_0x6e1815,_0xbf314c){const _0x541229=_0x3109a9;return g(_0x376afe,_0x6e1815,_0xbf314c)[_0x541229(0x1e7)]**0x2;}function _(_0x3c8d35,_0x4814df){const _0x1a3d39=_0x3109a9;if(_0x3c8d35['length']<=0x2)return _0x3c8d35[_0x1a3d39(0x1e8)](i);let _0x288eb1=0x0,_0x373d7b=0x0,_0x24789a=_0x3c8d35[0x0],_0x5b0cd0=_0x3c8d35[_0x3c8d35[_0x1a3d39(0x238)]-0x1],_0x1760f4=_0x4814df*_0x4814df;for(let _0x57ba8b=0x1;_0x57ba8b<_0x3c8d35['length']-0x1;_0x57ba8b++){let _0x1eb5e9=te(_0x3c8d35[_0x57ba8b],_0x24789a,_0x5b0cd0);_0x1eb5e9>_0x288eb1&&(_0x288eb1=_0x1eb5e9,_0x373d7b=_0x57ba8b);}if(_0x288eb1<=_0x1760f4)return[i(_0x24789a),i(_0x5b0cd0)];let _0x64a615=_(_0x3c8d35[_0x1a3d39(0x1da)](0x0,_0x373d7b+0x1),_0x4814df),_0x2c2a36=_(_0x3c8d35['slice'](_0x373d7b),_0x4814df);return[..._0x64a615[_0x1a3d39(0x1da)](0x0,-0x1),..._0x2c2a36];}function ne(_0x4d2521,_0x1b4353){var _0x3faf05;let _0x1abd23=_0x4d2521[_0x1b4353],_0x2bdf01=_0x4d2521[_0x1b4353+0x1],_0x38e1a5=(_0x3faf05=_0x4d2521[_0x1b4353-0x1])==null?_0x1abd23:_0x3faf05;return{'x':_0x1abd23['x']+(_0x2bdf01['x']-_0x38e1a5['x'])/0x6,'y':_0x1abd23['y']+(_0x2bdf01['y']-_0x38e1a5['y'])/0x6};}function v(_0x27f4f4,_0x28855d){var _0x1cc770;let _0xba0a72=_0x27f4f4[_0x28855d],_0x599a43=_0x27f4f4[_0x28855d-0x1],_0x2d67ec=(_0x1cc770=_0x27f4f4[_0x28855d+0x1])==null?_0xba0a72:_0x1cc770;return{'x':_0xba0a72['x']-(_0x2d67ec['x']-_0x599a43['x'])/0x6,'y':_0xba0a72['y']-(_0x2d67ec['y']-_0x599a43['y'])/0x6};}function _0x520f(_0x1eb9f4,_0x4d3a16){_0x1eb9f4=_0x1eb9f4-0x1d6;const _0x57c1c5=_0x57c1();let _0x520f82=_0x57c1c5[_0x1eb9f4];return _0x520f82;}function y(_0x24308b,_0x4c354f){const _0x51502a=_0x3109a9;var _0x1689fd,_0x4b8359;let _0x4d769e=_0x24308b[_0x51502a(0x220)][_0x4c354f],_0x4db44d=(_0x1689fd=_0x24308b[_0x51502a(0x220)][_0x4c354f-0x1])==null?_0x24308b[_0x51502a(0x223)]?_0x24308b[_0x51502a(0x220)][_0x24308b[_0x51502a(0x220)][_0x51502a(0x238)]-0x1]:null:_0x1689fd,_0x1f493e=(_0x4b8359=_0x24308b['anchors'][_0x4c354f+0x1])==null?_0x24308b[_0x51502a(0x223)]?_0x24308b[_0x51502a(0x220)][0x0]:null:_0x4b8359,_0x54c294=_0x4db44d&&_0x1f493e?l({'x':_0x1f493e['x']-_0x4db44d['x'],'y':_0x1f493e['y']-_0x4db44d['y']}):_0x1f493e?l({'x':_0x1f493e['x']-_0x4d769e['x'],'y':_0x1f493e['y']-_0x4d769e['y']}):_0x4db44d?l({'x':_0x4d769e['x']-_0x4db44d['x'],'y':_0x4d769e['y']-_0x4db44d['y']}):{'x':0x1,'y':0x0},_0x3bcb0f=_0x4db44d&&_0x1f493e?Math[_0x51502a(0x240)](0x32,c(_0x4db44d,_0x1f493e)/0x4):0x32;return{'in':{'x':_0x4d769e['x']-_0x54c294['x']*_0x3bcb0f,'y':_0x4d769e['y']-_0x54c294['y']*_0x3bcb0f},'out':{'x':_0x4d769e['x']+_0x54c294['x']*_0x3bcb0f,'y':_0x4d769e['y']+_0x54c294['y']*_0x3bcb0f}};}function b(_0x17b5e4,_0x2aa00b){const _0x135e4e=_0x3109a9;let _0x5e49a7=_0x17b5e4[_0x2aa00b],_0x35833c=_0x2aa00b==='in'?_0x135e4e(0x217):'in',_0x20e8a3=_0x17b5e4[_0x35833c];if(_0x5e49a7){if(_0x17b5e4[_0x135e4e(0x20d)]===_0x135e4e(0x21e)){_0x17b5e4[_0x35833c]=u(_0x17b5e4,_0x5e49a7);return;}_0x17b5e4['pointType']===_0x135e4e(0x20c)&&(_0x17b5e4[_0x35833c]=u(_0x17b5e4,_0x5e49a7,_0x20e8a3?c(_0x17b5e4,_0x20e8a3):c(_0x17b5e4,_0x5e49a7)));}}function x(_0x4d8ea8,_0x4b2283){const _0x3bcb22=_0x3109a9;let _0x5144e0=o(_0x4d8ea8);return!_0x4b2283||_0x5144e0['closed']||_0x5144e0[_0x3bcb22(0x220)][_0x3bcb22(0x238)]===0x0||_0x5144e0[_0x3bcb22(0x220)]['push']({'id':_0x3bcb22(0x1ee),'x':_0x4b2283['x'],'y':_0x4b2283['y'],'pointType':_0x3bcb22(0x244)}),_0x5144e0;}function re(_0x5bd699,_0x446ad3={}){const _0x1bfd33=_0x3109a9;var _0x53a4d5,_0x34ede4;let _0x2396e5=Math[_0x1bfd33(0x240)](0x0,(_0x53a4d5=_0x446ad3['tolerance'])==null?Math[_0x1bfd33(0x240)](0x4,_0x5bd699[_0x1bfd33(0x206)]*0.35):_0x53a4d5),_0x5d441d=(_0x34ede4=_0x446ad3[_0x1bfd33(0x21d)])==null?_0x86acdb=>'ink-centerline-'+_0x86acdb:_0x34ede4,_0x246824=_(_0x5bd699[_0x1bfd33(0x1df)],_0x2396e5),_0x543f81=_0x246824[_0x1bfd33(0x1e8)]((_0x536e8d,_0x3bf04c)=>({'id':_0x5d441d(_0x3bf04c),'x':_0x536e8d['x'],'y':_0x536e8d['y'],'pointType':_0x1bfd33(0x1ed)}));for(let _0x500a50=0x0;_0x500a50<_0x543f81[_0x1bfd33(0x238)]-0x1;_0x500a50++)_0x543f81[_0x500a50]['out']=ne(_0x246824,_0x500a50),_0x543f81[_0x500a50+0x1]['in']=v(_0x246824,_0x500a50+0x1);return{'kind':_0x1bfd33(0x1f8),'closed':!0x1,'anchors':_0x543f81};}function ie(_0x2ce317,_0x6afed2,_0x5c04d2){const _0x2559d7=_0x3109a9;let _0x309777=null,_0x1ff99b=[_0x2559d7(0x21a),'in','out'];return _0x2ce317[_0x2559d7(0x220)][_0x2559d7(0x1d7)]((_0x5d7ad1,_0x10caeb)=>{const _0x408d77=_0x2559d7;_0x1ff99b[_0x408d77(0x1d7)](_0x4ed8fb=>{const _0x44b12e=_0x408d77;if(!p(_0x2ce317,_0x10caeb,_0x4ed8fb))return;let _0x58d559=ee(_0x5d7ad1,_0x4ed8fb);if(!_0x58d559)return;let _0x5c5dba=c(_0x6afed2,_0x58d559);_0x5c5dba>_0x5c04d2||_0x309777&&_0x5c5dba>=_0x309777[_0x44b12e(0x1e7)]||(_0x309777={'handle':{'kind':_0x4ed8fb,'anchorId':_0x5d7ad1['id']},'point':i(_0x58d559),'distance':_0x5c5dba});});}),_0x309777;}function S(_0x141d0d,_0x1fab7e,_0x37ecbf){const _0x5b87d2=_0x3109a9;let _0x5ae30b=null,_0x5c22bd=_0x141d0d['closed']?_0x141d0d[_0x5b87d2(0x220)][_0x5b87d2(0x238)]:Math['max'](0x0,_0x141d0d[_0x5b87d2(0x220)][_0x5b87d2(0x238)]-0x1);for(let _0x48ea97=0x0;_0x48ea97<_0x5c22bd;_0x48ea97++){let _0x504811=f(_0x141d0d,_0x48ea97);if(!_0x504811)continue;let _0x46df7d=m(_0x504811,0x0);for(let _0x56461b=0x1;_0x56461b<=0x20;_0x56461b++){let _0x4b5bd0=m(_0x504811,_0x56461b/0x20),_0x2a0705=g(_0x1fab7e,_0x46df7d,_0x4b5bd0),_0x3c13dc=(_0x56461b-0x1+_0x2a0705['ratio'])/0x20;(!_0x5ae30b||_0x2a0705[_0x5b87d2(0x1e7)]<_0x5ae30b[_0x5b87d2(0x1e7)])&&(_0x5ae30b={'segmentIndex':_0x48ea97,'t':_0x3c13dc,'point':_0x2a0705[_0x5b87d2(0x21b)],'distance':_0x2a0705[_0x5b87d2(0x1e7)]}),_0x46df7d=_0x4b5bd0;}}return _0x5ae30b&&_0x5ae30b[_0x5b87d2(0x1e7)]<=_0x37ecbf?_0x5ae30b:null;}function C(_0xf46e7f,_0x2ab5ab,_0x4aee06){const _0x29bfd7=_0x3109a9;let _0x11b5d6=o(_0xf46e7f),_0x43011a=d(_0x11b5d6,_0x2ab5ab[_0x29bfd7(0x211)]),_0x265ffd=f(_0x11b5d6,_0x2ab5ab['segmentIndex']);if(!_0x43011a||!_0x265ffd)return _0x11b5d6;let _0x4ab36e=h(_0x265ffd,Math[_0x29bfd7(0x240)](0x0,Math['min'](0x1,_0x2ab5ab['t']))),_0x18d503={'id':_0x4aee06(),'x':_0x4ab36e[_0x29bfd7(0x23e)][0x3]['x'],'y':_0x4ab36e['left'][0x3]['y'],'in':i(_0x4ab36e[_0x29bfd7(0x23e)][0x2]),'out':i(_0x4ab36e[_0x29bfd7(0x234)][0x1]),'pointType':'free'};return _0x11b5d6[_0x29bfd7(0x220)][_0x43011a[_0x29bfd7(0x20a)]][_0x29bfd7(0x217)]=i(_0x4ab36e[_0x29bfd7(0x23e)][0x1]),_0x11b5d6[_0x29bfd7(0x220)][_0x43011a['endIndex']]['in']=i(_0x4ab36e[_0x29bfd7(0x234)][0x2]),_0x11b5d6[_0x29bfd7(0x220)][_0x29bfd7(0x1ea)](_0x43011a['startIndex']+0x1,0x0,_0x18d503),_0x11b5d6;}function w(_0x2f5aa7,_0x1d05af){const _0x12c469=_0x3109a9;let _0x5437f8=o(_0x2f5aa7);return _0x5437f8[_0x12c469(0x220)]=_0x5437f8[_0x12c469(0x220)][_0x12c469(0x23a)](_0x29bfd9=>_0x29bfd9['id']!==_0x1d05af),_0x5437f8[_0x12c469(0x223)]&&_0x5437f8[_0x12c469(0x220)][_0x12c469(0x238)]<0x3&&(_0x5437f8[_0x12c469(0x223)]=!0x1),_0x5437f8;}function T(_0x16314a,_0x3c04b6,_0x7eaa7d){const _0x7e5c75=_0x3109a9;let _0x5e5626=o(_0x16314a),_0xed390d=_0x5e5626[_0x7e5c75(0x220)][_0x7e5c75(0x213)](_0x15dc49=>_0x15dc49['id']===_0x3c04b6),_0x244b64=_0x5e5626[_0x7e5c75(0x220)][_0xed390d];if(!_0x244b64)return _0x5e5626;if(_0x244b64[_0x7e5c75(0x20d)]=_0x7eaa7d,_0x7eaa7d===_0x7e5c75(0x244))return delete _0x244b64['in'],delete _0x244b64[_0x7e5c75(0x217)],_0x5e5626;let _0x23b679=y(_0x5e5626,_0xed390d);if(_0x244b64['in']=_0x244b64['in']?i(_0x244b64['in']):_0x23b679['in'],_0x244b64[_0x7e5c75(0x217)]=_0x244b64[_0x7e5c75(0x217)]?i(_0x244b64[_0x7e5c75(0x217)]):_0x23b679[_0x7e5c75(0x217)],_0x7eaa7d===_0x7e5c75(0x21e)){let _0x5876fe=Math['max'](c(_0x244b64,_0x244b64['in']),c(_0x244b64,_0x244b64[_0x7e5c75(0x217)]),0x32),_0x271642=l({'x':_0x244b64[_0x7e5c75(0x217)]['x']-_0x244b64['x'],'y':_0x244b64[_0x7e5c75(0x217)]['y']-_0x244b64['y']});_0x244b64[_0x7e5c75(0x217)]={'x':_0x244b64['x']+_0x271642['x']*_0x5876fe,'y':_0x244b64['y']+_0x271642['y']*_0x5876fe},_0x244b64['in']={'x':_0x244b64['x']-_0x271642['x']*_0x5876fe,'y':_0x244b64['y']-_0x271642['y']*_0x5876fe};}else _0x7eaa7d===_0x7e5c75(0x20c)&&b(_0x244b64,_0x7e5c75(0x217));return _0x5e5626;}function E(_0x1478fe,_0x298170){const _0x23298c=_0x3109a9;var _0x453393;let _0x472bc4=_0x1478fe['anchors'][_0x23298c(0x205)](_0x226823=>_0x226823['id']===_0x298170),_0x3bc09c=(_0x453393=_0x472bc4==null?void 0x0:_0x472bc4[_0x23298c(0x20d)])==null?_0x23298c(0x244):_0x453393;return T(_0x1478fe,_0x298170,_0x3bc09c===_0x23298c(0x244)?_0x23298c(0x20c):_0x3bc09c==='smooth'?'symmetric':_0x3bc09c===_0x23298c(0x21e)?'free':_0x23298c(0x244));}function ae(_0x1a84e7,_0x54d916,_0x313a66){const _0x404cfb=_0x3109a9;let _0x254d1c=o(_0x1a84e7),_0x187e3=_0x254d1c[_0x404cfb(0x220)]['find'](_0x1c723d=>_0x1c723d['id']===_0x54d916['anchorId']);if(!_0x187e3)return _0x254d1c;if(_0x54d916['kind']===_0x404cfb(0x21a)){let _0x2a5f39={'x':_0x313a66['x']-_0x187e3['x'],'y':_0x313a66['y']-_0x187e3['y']};return _0x187e3['x']=_0x313a66['x'],_0x187e3['y']=_0x313a66['y'],_0x187e3['in']&&(_0x187e3['in']={'x':_0x187e3['in']['x']+_0x2a5f39['x'],'y':_0x187e3['in']['y']+_0x2a5f39['y']}),_0x187e3[_0x404cfb(0x217)]&&(_0x187e3[_0x404cfb(0x217)]={'x':_0x187e3[_0x404cfb(0x217)]['x']+_0x2a5f39['x'],'y':_0x187e3[_0x404cfb(0x217)]['y']+_0x2a5f39['y']}),_0x254d1c;}return _0x187e3[_0x54d916['kind']]=i(_0x313a66),_0x187e3['pointType']===_0x404cfb(0x244)&&(_0x187e3[_0x404cfb(0x20d)]=_0x404cfb(0x1ed)),b(_0x187e3,_0x54d916[_0x404cfb(0x1e6)]),_0x254d1c;}const D=1e-9;function O(_0x48737d){const _0x13152d=_0x3109a9;let _0x1a3e38=Math[_0x13152d(0x200)](_0x48737d*0x2710)/0x2710;return Object['is'](_0x1a3e38,-0x0)?'0':String(_0x1a3e38);}function k(_0x3be15c){return O(_0x3be15c['x'])+'\x20'+O(_0x3be15c['y']);}function A(_0x51afae,_0x344430){return{'x':_0x51afae['x']-_0x344430['x'],'y':_0x51afae['y']-_0x344430['y']};}function j(_0x45fb1a,_0x452bbb,_0x253e5c,_0x99a27e,_0x33478c){let _0x801b93=0x1-_0x33478c;return{'x':_0x801b93*_0x801b93*_0x801b93*_0x45fb1a['x']+0x3*_0x801b93*_0x801b93*_0x33478c*_0x452bbb['x']+0x3*_0x801b93*_0x33478c*_0x33478c*_0x253e5c['x']+_0x33478c*_0x33478c*_0x33478c*_0x99a27e['x'],'y':_0x801b93*_0x801b93*_0x801b93*_0x45fb1a['y']+0x3*_0x801b93*_0x801b93*_0x33478c*_0x452bbb['y']+0x3*_0x801b93*_0x33478c*_0x33478c*_0x253e5c['y']+_0x33478c*_0x33478c*_0x33478c*_0x99a27e['y']};}function M(_0x144983,_0x283ba3,_0x5d646,_0xb8d469){const _0x43ae85=_0x3109a9;let _0x6805a=-_0x144983+0x3*_0x283ba3-0x3*_0x5d646+_0xb8d469,_0x57b644=0x3*_0x144983-0x6*_0x283ba3+0x3*_0x5d646,_0x14db2f=-0x3*_0x144983+0x3*_0x283ba3,_0x51f160=[];if(Math['abs'](_0x6805a)<D){if(Math[_0x43ae85(0x208)](_0x57b644)<D)return _0x51f160;let _0x2ab3ce=-_0x14db2f/(0x2*_0x57b644);return _0x2ab3ce>0x0&&_0x2ab3ce<0x1&&_0x51f160['push'](_0x2ab3ce),_0x51f160;}let _0x19dfbe=_0x57b644*_0x57b644-0x3*_0x6805a*_0x14db2f;if(_0x19dfbe<0x0)return _0x51f160;let _0x3a5d5a=Math['sqrt'](Math[_0x43ae85(0x240)](0x0,_0x19dfbe)),_0x5ac217=(-_0x57b644+_0x3a5d5a)/(0x3*_0x6805a),_0x11f507=(-_0x57b644-_0x3a5d5a)/(0x3*_0x6805a);return _0x5ac217>0x0&&_0x5ac217<0x1&&_0x51f160[_0x43ae85(0x1de)](_0x5ac217),_0x11f507>0x0&&_0x11f507<0x1&&Math[_0x43ae85(0x208)](_0x11f507-_0x5ac217)>D&&_0x51f160[_0x43ae85(0x1de)](_0x11f507),_0x51f160;}function N(_0x4a291f,_0x3f6495,_0x5566f5,_0x55da0a,_0x5bdbaa){const _0x116aeb=_0x3109a9;_0x4a291f[_0x116aeb(0x1de)](_0x3f6495,_0x5bdbaa),new Set([...M(_0x3f6495['x'],_0x5566f5['x'],_0x55da0a['x'],_0x5bdbaa['x']),...M(_0x3f6495['y'],_0x5566f5['y'],_0x55da0a['y'],_0x5bdbaa['y'])])[_0x116aeb(0x1d7)](_0x4d4a9f=>{const _0x110ca0=_0x116aeb;_0x4a291f[_0x110ca0(0x1de)](j(_0x3f6495,_0x5566f5,_0x55da0a,_0x5bdbaa,_0x4d4a9f));});}function P(_0x6eea75){const _0x99b6eb=_0x3109a9;let _0x56da39=_0x6eea75[_0x99b6eb(0x220)];if(_0x56da39[_0x99b6eb(0x238)]<=0x1)return _0x56da39;let _0x350821=[];for(let _0x29c453=0x1;_0x29c453<_0x56da39['length'];_0x29c453++){var _0x203a2c,_0x479062;let _0x3fa86=_0x56da39[_0x29c453-0x1],_0xae687e=_0x56da39[_0x29c453];N(_0x350821,_0x3fa86,(_0x203a2c=_0x3fa86['out'])==null?_0x3fa86:_0x203a2c,(_0x479062=_0xae687e['in'])==null?_0xae687e:_0x479062,_0xae687e);}if(_0x6eea75[_0x99b6eb(0x223)]&&_0x56da39[_0x99b6eb(0x238)]>0x1){var _0x540a79,_0x5b506a;let _0x4c1fc0=_0x56da39[_0x56da39[_0x99b6eb(0x238)]-0x1],_0x2f315f=_0x56da39[0x0];N(_0x350821,_0x4c1fc0,(_0x540a79=_0x4c1fc0[_0x99b6eb(0x217)])==null?_0x4c1fc0:_0x540a79,(_0x5b506a=_0x2f315f['in'])==null?_0x2f315f:_0x5b506a,_0x2f315f);}return _0x350821;}function F(_0x5a9576){const _0x2ab172=_0x3109a9;let _0x3ceef4=_0x5a9576[_0x2ab172(0x1df)];if(_0x3ceef4[_0x2ab172(0x238)]<=0x1)return _0x3ceef4;let _0x30b8fb=[];for(let _0x2d9459=0x0;_0x2d9459<_0x3ceef4[_0x2ab172(0x238)]-0x1;_0x2d9459++){var _0x37573b,_0x33d106;let _0x280d19=_0x3ceef4[_0x2d9459],_0x2bb484=_0x3ceef4[_0x2d9459+0x1],_0x2818b2=(_0x37573b=_0x3ceef4[_0x2d9459-0x1])==null?_0x280d19:_0x37573b,_0x13ee5d=(_0x33d106=_0x3ceef4[_0x2d9459+0x2])==null?_0x2bb484:_0x33d106;N(_0x30b8fb,_0x280d19,{'x':_0x280d19['x']+(_0x2bb484['x']-_0x2818b2['x'])/0x6,'y':_0x280d19['y']+(_0x2bb484['y']-_0x2818b2['y'])/0x6},{'x':_0x2bb484['x']-(_0x13ee5d['x']-_0x280d19['x'])/0x6,'y':_0x2bb484['y']-(_0x13ee5d['y']-_0x280d19['y'])/0x6},_0x2bb484);}return _0x30b8fb;}function I(_0x1f7b51){const _0x44269f=_0x3109a9;return _0x1f7b51[_0x44269f(0x1e6)]==='pen'?P(_0x1f7b51):F(_0x1f7b51);}function L(_0x2273ae){let _0x21cb50=Math['round'](_0x2273ae*0x2710)/0x2710;return Object['is'](_0x21cb50,-0x0)?0x0:_0x21cb50;}function R(_0x7dfacb){const _0x19f065=_0x3109a9;let _0x3f297f=I(_0x7dfacb);if(_0x3f297f[_0x19f065(0x238)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x17615e=Math[_0x19f065(0x212)](..._0x3f297f[_0x19f065(0x1e8)](_0x16b420=>_0x16b420['x'])),_0x26979f=Math[_0x19f065(0x212)](..._0x3f297f['map'](_0x157312=>_0x157312['y'])),_0x2aa985=Math['max'](..._0x3f297f[_0x19f065(0x1e8)](_0x4e63ba=>_0x4e63ba['x'])),_0x129265=Math[_0x19f065(0x240)](..._0x3f297f[_0x19f065(0x1e8)](_0x31306d=>_0x31306d['y']));return{'left':L(_0x17615e),'top':L(_0x26979f),'width':L(Math[_0x19f065(0x240)](0x1,_0x2aa985-_0x17615e)),'height':L(Math[_0x19f065(0x240)](0x1,_0x129265-_0x26979f))};}function z(_0x5b0b59,_0x53d849){const _0x3c20a0=_0x3109a9;let _0x53bd1f=_0x5b0b59[_0x3c20a0(0x220)];if(_0x53bd1f[_0x3c20a0(0x238)]===0x0)return'';let _0x16850a=['M\x20'+k(A(_0x53bd1f[0x0],_0x53d849))];for(let _0x3a71dd=0x1;_0x3a71dd<_0x53bd1f[_0x3c20a0(0x238)];_0x3a71dd++){var _0x204312,_0x528201;let _0x4168bc=_0x53bd1f[_0x3a71dd-0x1],_0x2541b0=_0x53bd1f[_0x3a71dd],_0x4fc152=(_0x204312=_0x4168bc['out'])==null?_0x4168bc:_0x204312,_0x95eec5=(_0x528201=_0x2541b0['in'])==null?_0x2541b0:_0x528201;_0x16850a['push']('C\x20'+k(A(_0x4fc152,_0x53d849))+'\x20'+k(A(_0x95eec5,_0x53d849))+'\x20'+k(A(_0x2541b0,_0x53d849)));}if(_0x5b0b59['closed']&&_0x53bd1f[_0x3c20a0(0x238)]>0x1){var _0x370864,_0x54215e;let _0x67ec6c=_0x53bd1f[_0x53bd1f['length']-0x1],_0x2c38b1=_0x53bd1f[0x0],_0x1743cd=(_0x370864=_0x67ec6c[_0x3c20a0(0x217)])==null?_0x67ec6c:_0x370864,_0x45effc=(_0x54215e=_0x2c38b1['in'])==null?_0x2c38b1:_0x54215e;_0x16850a['push']('C\x20'+k(A(_0x1743cd,_0x53d849))+'\x20'+k(A(_0x45effc,_0x53d849))+'\x20'+k(A(_0x2c38b1,_0x53d849))),_0x16850a['push']('Z');}return _0x16850a[_0x3c20a0(0x233)]('\x20');}function _0x57c1(){const _0x18e5b1=['ShapeLineTypeEnum','version','insertInkPenAnchorAt','object','top','fillColor','registerAdapter','ShapeLineJoinEnum','Rect','10zVOaks','join','right','Inject','_adapters','start','length','939282vTQWba','filter','2052XuRPMG','onStarting','type','left','setInkPenAnchorPointType','max','Round','ShapeFillEnum','getInkPenPreviewModel','corner','UniverInkPlugin','tool','OPERATION','height','1.0.0-alpha.4','hypot','color','UNIVER_INK_PLUGIN','convertBrushModelToPenModel','forEach','_configService','toPrimitive','slice','ink.config','symbol','ink.operation.start','push','points','merge','Plugin','get','isInkPenHandleVisible','none','4531639VRuikq','kind','distance','map','792QvmGVN','splice','createCustomShape','UNIVER_UNKNOWN','free','__ink-preview-anchor__','#f54a45','opacity','CommandType','function','moveInkPenAnchorPoint','decorate','end','2718040qYaUCj','call','pen','_commandService','prototype','_config','constructor','1017jLgQIf','Module','ink.host-adapter.service','round','DependentOn','pluginName','_injector','getInkModelBounds','find','width','cycleInkPenAnchorPointType','abs','registerCommand','startIndex','478040FPvbBz','smooth','pointType','IConfigService','getOwnPropertyDescriptor','buildInkCustomShapePayload','segmentIndex','min','findIndex','findClosestInkPenSegment','ICommandService','18486jEDbgE','out','SolidFill','createIdentifier','anchor','point','102170KRCJCY','createId','symmetric','defineProperty','anchors','default','beginInkMode','closed','SolidLine','ShapeTypeEnum','toDisposable','indexOf','iterator'];_0x57c1=function(){return _0x18e5b1;};return _0x57c1();}function B(_0x3f66f0,_0x726ca){const _0x2bbf7b=_0x3109a9;let _0x128cc8=_0x3f66f0[_0x2bbf7b(0x1df)][_0x2bbf7b(0x1e8)](_0x4c96e0=>A(_0x4c96e0,_0x726ca));if(_0x128cc8['length']===0x0)return'';if(_0x128cc8[_0x2bbf7b(0x238)]===0x1)return'M\x20'+k(_0x128cc8[0x0]);let _0x53fedf=['M\x20'+k(_0x128cc8[0x0])];for(let _0x4019c1=0x0;_0x4019c1<_0x128cc8[_0x2bbf7b(0x238)]-0x1;_0x4019c1++){var _0x44cd30,_0x29afa0;let _0x10095=_0x128cc8[_0x4019c1],_0x231733=_0x128cc8[_0x4019c1+0x1],_0x28eb42=(_0x44cd30=_0x128cc8[_0x4019c1-0x1])==null?_0x10095:_0x44cd30,_0x2d3c54=(_0x29afa0=_0x128cc8[_0x4019c1+0x2])==null?_0x231733:_0x29afa0,_0x4b56e9={'x':_0x10095['x']+(_0x231733['x']-_0x28eb42['x'])/0x6,'y':_0x10095['y']+(_0x231733['y']-_0x28eb42['y'])/0x6},_0x4c332d={'x':_0x231733['x']-(_0x2d3c54['x']-_0x10095['x'])/0x6,'y':_0x231733['y']-(_0x2d3c54['y']-_0x10095['y'])/0x6};_0x53fedf[_0x2bbf7b(0x1de)]('C\x20'+k(_0x4b56e9)+'\x20'+k(_0x4c332d)+'\x20'+k(_0x231733));}return _0x53fedf['join']('\x20');}function V(_0x17b91f,_0xed7e50){const _0x891eac=_0x3109a9;return _0x17b91f['kind']===_0x891eac(0x1f8)?z(_0x17b91f,_0xed7e50):B(_0x17b91f,_0xed7e50);}function H(_0x4eaa43,_0x15c232){const _0x6ba06f=_0x3109a9;return _0x15c232!=null&&_0x15c232[_0x6ba06f(0x24b)]?_0x15c232[_0x6ba06f(0x24b)]:_0x4eaa43[_0x6ba06f(0x1e6)]===_0x6ba06f(0x1f8)?_0x6ba06f(0x1ef):_0x4eaa43['color'];}function U(_0x56896e,_0x4a7b88){const _0x583f98=_0x3109a9;return(_0x4a7b88==null?void 0x0:_0x4a7b88['width'])===void 0x0?_0x56896e['kind']==='pen'?0x2:_0x56896e[_0x583f98(0x206)]:_0x4a7b88['width'];}function W(_0x2319dc,_0xe82fcb){const _0x3bfde5=_0x3109a9;return(_0xe82fcb==null?void 0x0:_0xe82fcb[_0x3bfde5(0x1f0)])===void 0x0?_0x2319dc['kind']===_0x3bfde5(0x1f8)?void 0x0:_0x2319dc['opacity']:_0xe82fcb[_0x3bfde5(0x1f0)];}function oe(_0x189568,_0x36cb63){const _0x13e461=_0x3109a9;let _0x298dbe=R(_0x189568),_0x5a9ad8=V(_0x189568,{'x':_0x298dbe[_0x13e461(0x23e)],'y':_0x298dbe['top']}),_0x36669a=_0x189568['kind']===_0x13e461(0x1f8)&&_0x189568[_0x13e461(0x223)],_0x7c2300=_0x36cb63==null?void 0x0:_0x36cb63[_0x13e461(0x22e)];return{'shapeType':e[_0x13e461(0x225)][_0x13e461(0x231)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x298dbe['width'],'h':_0x298dbe[_0x13e461(0x248)],'fill':_0x36669a?'norm':_0x13e461(0x1e4),'stroke':!0x0,'data':_0x5a9ad8,'dataArray':K(_0x189568,{'x':_0x298dbe[_0x13e461(0x23e)],'y':_0x298dbe[_0x13e461(0x22d)]})}]},'fill':_0x36669a&&_0x7c2300?{'color':_0x7c2300,'fillType':e[_0x13e461(0x242)][_0x13e461(0x218)]}:{'fillType':e[_0x13e461(0x242)]['NoFill']},'stroke':{'color':H(_0x189568,_0x36cb63),'width':U(_0x189568,_0x36cb63),'opacity':W(_0x189568,_0x36cb63),'lineStrokeType':e[_0x13e461(0x229)][_0x13e461(0x224)],'capType':e['ShapeLineCapEnum'][_0x13e461(0x241)],'lineJoinType':e[_0x13e461(0x230)][_0x13e461(0x241)]}};}function G(_0x437e66,_0x11e337){return{'x':_0x437e66['x']-_0x11e337['x'],'y':_0x437e66['y']-_0x11e337['y']};}function K(_0x4a6d78,_0x56fee8){const _0x2ace17=_0x3109a9;if(_0x4a6d78[_0x2ace17(0x1e6)]==='pen'){let _0x58b23b=_0x4a6d78[_0x2ace17(0x220)];if(_0x58b23b['length']===0x0)return[];let _0x3a4a23=G(_0x58b23b[0x0],_0x56fee8),_0x244d7e=[{'command':'M','points':[_0x3a4a23['x'],_0x3a4a23['y']]}];for(let _0x12d0d0=0x1;_0x12d0d0<_0x58b23b[_0x2ace17(0x238)];_0x12d0d0++){var _0xbdc6bb,_0x2e5b94;let _0x27ec65=_0x58b23b[_0x12d0d0-0x1],_0x281fab=_0x58b23b[_0x12d0d0],_0x4e8073=G((_0xbdc6bb=_0x27ec65[_0x2ace17(0x217)])==null?_0x27ec65:_0xbdc6bb,_0x56fee8),_0x382ab8=G((_0x2e5b94=_0x281fab['in'])==null?_0x281fab:_0x2e5b94,_0x56fee8),_0x5f2f2e=G(_0x281fab,_0x56fee8);_0x244d7e[_0x2ace17(0x1de)]({'command':'C','points':[_0x4e8073['x'],_0x4e8073['y'],_0x382ab8['x'],_0x382ab8['y'],_0x5f2f2e['x'],_0x5f2f2e['y']]});}if(_0x4a6d78['closed']&&_0x58b23b[_0x2ace17(0x238)]>0x1){var _0xd7c945,_0x34e454;let _0x21c285=_0x58b23b[_0x58b23b[_0x2ace17(0x238)]-0x1],_0x5688a7=_0x58b23b[0x0],_0x555a43=G((_0xd7c945=_0x21c285[_0x2ace17(0x217)])==null?_0x21c285:_0xd7c945,_0x56fee8),_0x3ecb38=G((_0x34e454=_0x5688a7['in'])==null?_0x5688a7:_0x34e454,_0x56fee8),_0x621633=G(_0x5688a7,_0x56fee8);_0x244d7e[_0x2ace17(0x1de)]({'command':'C','points':[_0x555a43['x'],_0x555a43['y'],_0x3ecb38['x'],_0x3ecb38['y'],_0x621633['x'],_0x621633['y']]}),_0x244d7e[_0x2ace17(0x1de)]({'command':'z','points':[]});}return _0x244d7e;}let _0x5563c8=_0x4a6d78[_0x2ace17(0x1df)][_0x2ace17(0x1e8)](_0x2fd393=>G(_0x2fd393,_0x56fee8));if(_0x5563c8[_0x2ace17(0x238)]===0x0)return[];let _0x226652=[{'command':'M','points':[_0x5563c8[0x0]['x'],_0x5563c8[0x0]['y']]}];for(let _0x371649=0x0;_0x371649<_0x5563c8['length']-0x1;_0x371649++){var _0x35039e,_0x17393b;let _0x58a106=_0x5563c8[_0x371649],_0xeaca03=_0x5563c8[_0x371649+0x1],_0xb68224=(_0x35039e=_0x5563c8[_0x371649-0x1])==null?_0x58a106:_0x35039e,_0x405aae=(_0x17393b=_0x5563c8[_0x371649+0x2])==null?_0xeaca03:_0x17393b,_0x7c6bc={'x':_0x58a106['x']+(_0xeaca03['x']-_0xb68224['x'])/0x6,'y':_0x58a106['y']+(_0xeaca03['y']-_0xb68224['y'])/0x6},_0x3d8979={'x':_0xeaca03['x']-(_0x405aae['x']-_0x58a106['x'])/0x6,'y':_0xeaca03['y']-(_0x405aae['y']-_0x58a106['y'])/0x6};_0x226652[_0x2ace17(0x1de)]({'command':'C','points':[_0x7c6bc['x'],_0x7c6bc['y'],_0x3d8979['x'],_0x3d8979['y'],_0xeaca03['x'],_0xeaca03['y']]});}return _0x226652;}function q(_0x55009b){const _0x464911=_0x3109a9;var _0x207e20;let {model:_0x27f03a,sourceModel:_0x1b6ba4=_0x27f03a,style:_0xaa5a1b}=_0x55009b,_0x3ba1b8=(_0x207e20=_0x55009b[_0x464911(0x246)])==null?_0x27f03a[_0x464911(0x1e6)]:_0x207e20,_0x18c14b=R(_0x27f03a),_0x413225=_0x27f03a[_0x464911(0x1e6)]===_0x464911(0x1f8)&&_0x3ba1b8!==_0x464911(0x1f8)?_0x27f03a:void 0x0;return{'transform':{..._0x18c14b,'rotation':0x0},'shapeData':oe(_0x27f03a,_0xaa5a1b),'ink':{'version':0x1,'tool':_0x3ba1b8,'sourceModel':_0x1b6ba4,..._0x413225?{'editModel':_0x413225}:{},'normalizedBounds':_0x18c14b}};}var se='@univerjs-pro/ink',ce=_0x3109a9(0x249);function J(_0x41226f){'@babel/helpers - typeof';const _0x2ebe03=_0x3109a9;return J=typeof Symbol==_0x2ebe03(0x1f2)&&typeof Symbol[_0x2ebe03(0x228)]==_0x2ebe03(0x1dc)?function(_0x4a475e){return typeof _0x4a475e;}:function(_0x530678){const _0x13dc17=_0x2ebe03;return _0x530678&&typeof Symbol=='function'&&_0x530678[_0x13dc17(0x1fc)]===Symbol&&_0x530678!==Symbol[_0x13dc17(0x1fa)]?'symbol':typeof _0x530678;},J(_0x41226f);}function le(_0x458536,_0x5abe69){const _0x94928f=_0x3109a9;if(J(_0x458536)!=_0x94928f(0x22c)||!_0x458536)return _0x458536;var _0x1da11e=_0x458536[Symbol[_0x94928f(0x1d9)]];if(_0x1da11e!==void 0x0){var _0xc1783b=_0x1da11e[_0x94928f(0x1f7)](_0x458536,_0x5abe69||_0x94928f(0x221));if(J(_0xc1783b)!=_0x94928f(0x22c))return _0xc1783b;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x5abe69==='string'?String:Number)(_0x458536);}function ue(_0x48ff9e){const _0xf5cb60=_0x3109a9;var _0x571264=le(_0x48ff9e,'string');return J(_0x571264)==_0xf5cb60(0x1dc)?_0x571264:_0x571264+'';}function Y(_0x6cf1fe,_0x57ac87,_0xb6aa6b){const _0x440bba=_0x3109a9;return(_0x57ac87=ue(_0x57ac87))in _0x6cf1fe?Object[_0x440bba(0x21f)](_0x6cf1fe,_0x57ac87,{'value':_0xb6aa6b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x6cf1fe[_0x57ac87]=_0xb6aa6b,_0x6cf1fe;}const X=(0x0,n[_0x3109a9(0x219)])(_0x3109a9(0x1ff));var de=class{constructor(){const _0x513128=_0x3109a9;Y(this,_0x513128(0x236),[]);}[_0x3109a9(0x22f)](_0xabdea9){const _0x8cd4e4=_0x3109a9;return this[_0x8cd4e4(0x236)][_0x8cd4e4(0x1de)](_0xabdea9),(0x0,n[_0x8cd4e4(0x226)])(()=>{const _0x4bcf32=_0x8cd4e4;let _0xb5c5ba=this['_adapters'][_0x4bcf32(0x227)](_0xabdea9);_0xb5c5ba>=0x0&&this[_0x4bcf32(0x236)][_0x4bcf32(0x1ea)](_0xb5c5ba,0x1);});}[_0x3109a9(0x222)](_0xb1ba46){const _0x24ca30=_0x3109a9;for(let _0x4b8652 of this['_adapters'])if(_0x4b8652[_0x24ca30(0x222)](_0xb1ba46))return!0x0;return!0x1;}async[_0x3109a9(0x1eb)](_0xee260e){const _0x4d307f=_0x3109a9;for(let _0x40a9a4 of this[_0x4d307f(0x236)])if(_0x40a9a4[_0x4d307f(0x1eb)]&&await _0x40a9a4['createCustomShape'](_0xee260e))return!0x0;return!0x1;}};const fe={'id':_0x3109a9(0x1dd),'type':n[_0x3109a9(0x1f1)][_0x3109a9(0x247)],'handler':(_0x1c589e,_0x303035)=>_0x303035?_0x1c589e[_0x3109a9(0x1e2)](X)[_0x3109a9(0x222)](_0x303035):!0x1},Z={};function Q(_0x149a3e,_0x519d41){return function(_0x36d11a,_0x21374b){_0x519d41(_0x36d11a,_0x21374b,_0x149a3e);};}function pe(_0x55ac60,_0x342e18,_0xf4525d,_0x1b8dbd){const _0x1e74e8=_0x3109a9;var _0x37a73e=arguments[_0x1e74e8(0x238)],_0x1224e4=_0x37a73e<0x3?_0x342e18:_0x1b8dbd===null?_0x1b8dbd=Object[_0x1e74e8(0x20f)](_0x342e18,_0xf4525d):_0x1b8dbd,_0x578506;if(typeof Reflect==_0x1e74e8(0x22c)&&typeof Reflect[_0x1e74e8(0x1f4)]==_0x1e74e8(0x1f2))_0x1224e4=Reflect['decorate'](_0x55ac60,_0x342e18,_0xf4525d,_0x1b8dbd);else{for(var _0x2ac146=_0x55ac60[_0x1e74e8(0x238)]-0x1;_0x2ac146>=0x0;_0x2ac146--)(_0x578506=_0x55ac60[_0x2ac146])&&(_0x1224e4=(_0x37a73e<0x3?_0x578506(_0x1224e4):_0x37a73e>0x3?_0x578506(_0x342e18,_0xf4525d,_0x1224e4):_0x578506(_0x342e18,_0xf4525d))||_0x1224e4);}return _0x37a73e>0x3&&_0x1224e4&&Object[_0x1e74e8(0x21f)](_0x342e18,_0xf4525d,_0x1224e4),_0x1224e4;}let $=class extends n[_0x3109a9(0x1e1)]{constructor(_0x12f941=Z,_0xbe824,_0x37e4b7,_0x3b03bd){const _0x352873=_0x3109a9;super(),this[_0x352873(0x1fb)]=_0x12f941,this['_injector']=_0xbe824,this[_0x352873(0x1f9)]=_0x37e4b7,this[_0x352873(0x1d8)]=_0x3b03bd;let {..._0x44bc2f}=(0x0,n[_0x352873(0x1e0)])({},Z,this['_config']);this[_0x352873(0x1d8)]['setConfig'](_0x352873(0x1db),_0x44bc2f);}[_0x3109a9(0x23c)](){const _0x1ea146=_0x3109a9;[[X,{'useClass':de}]][_0x1ea146(0x1d7)](_0x445081=>this[_0x1ea146(0x203)]['add'](_0x445081)),this['disposeWithMe'](this[_0x1ea146(0x1f9)][_0x1ea146(0x209)](fe));}};Y($,_0x3109a9(0x202),_0x3109a9(0x24c)),Y($,'packageName',se),Y($,_0x3109a9(0x22a),ce),Y($,_0x3109a9(0x23d),n['UniverInstanceType'][_0x3109a9(0x1ec)]),$=pe([(0x0,n[_0x3109a9(0x201)])(t['UniverLicensePlugin']),Q(0x1,(0x0,n[_0x3109a9(0x235)])(n['Injector'])),Q(0x2,n[_0x3109a9(0x215)]),Q(0x3,n[_0x3109a9(0x20e)])],$),exports['IInkHostAdapterService']=X,Object[_0x3109a9(0x21f)](exports,_0x3109a9(0x245),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x3109a9(0x210)]=q,exports[_0x3109a9(0x1d6)]=re,exports[_0x3109a9(0x207)]=E,exports['deleteInkPenAnchor']=w,exports['findClosestInkPenHandle']=ie,exports[_0x3109a9(0x214)]=S,exports[_0x3109a9(0x204)]=R,exports[_0x3109a9(0x243)]=x,exports[_0x3109a9(0x22b)]=C,exports[_0x3109a9(0x1e3)]=p,exports[_0x3109a9(0x1f3)]=ae,exports[_0x3109a9(0x23f)]=T;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x2cfa6e=_0xd57f;(function(_0xa6c3d,_0x5a3e6f){const _0x57964c=_0xd57f,_0x368bfd=_0xa6c3d();while(!![]){try{const _0x319c34=parseInt(_0x57964c(0x1f6))/0x1*(-parseInt(_0x57964c(0x1ee))/0x2)+-parseInt(_0x57964c(0x1ff))/0x3+-parseInt(_0x57964c(0x200))/0x4*(parseInt(_0x57964c(0x203))/0x5)+-parseInt(_0x57964c(0x1f3))/0x6+-parseInt(_0x57964c(0x1e6))/0x7*(parseInt(_0x57964c(0x1f0))/0x8)+-parseInt(_0x57964c(0x1f1))/0x9+parseInt(_0x57964c(0x20f))/0xa;if(_0x319c34===_0x5a3e6f)break;else _0x368bfd['push'](_0x368bfd['shift']());}catch(_0x512c0f){_0x368bfd['push'](_0x368bfd['shift']());}}}(_0x2dfd,0x49c63));import{BoardElementType as _0x4e7b15}from'@univerjs-pro/boards';import{FBoard as _0xebe1c}from'@univerjs-pro/boards/facade';import{buildInkCustomShapePayload as _0x31666b}from'@univerjs-pro/ink';import{Tools as _0x447e92,generateRandomId as _0x34bf1c}from'@univerjs/core';import{FEnum as _0x5bba3f}from'@univerjs/core/facade';var o=class extends _0xebe1c{[_0x2cfa6e(0x1fc)](_0x17d32f){const _0x500168=_0x2cfa6e;let _0x258762=s(_0x17d32f);return _0x258762&&this[_0x500168(0x206)](_0x258762,{'insertIndex':_0x17d32f[_0x500168(0x1e2)]})?_0x258762:null;}['getInks'](){const _0x5e79e4=_0x2cfa6e;return this[_0x5e79e4(0x1e3)]({'elementType':_0x4e7b15[_0x5e79e4(0x1f2)],'includeHidden':!0x0,'includeLocked':!0x0})[_0x5e79e4(0x1f5)](p);}};function s(_0x4653d1,_0x5e12fd){const _0x3309f8=_0x2cfa6e;var _0xea6977,_0x2c217b,_0xf4e382;if(!l(_0x4653d1[_0x3309f8(0x1ea)])||_0x4653d1[_0x3309f8(0x1f4)]!==void 0x0&&!l(_0x4653d1[_0x3309f8(0x1f4)])||!u(_0x4653d1[_0x3309f8(0x20a)]))return null;let _0x2d33b7=(_0xea6977=_0x4653d1['parentId'])==null?_0x5e12fd==null?void 0x0:_0x5e12fd[_0x3309f8(0x201)]:_0xea6977,_0x336461=_0x447e92[_0x3309f8(0x20d)](_0x4653d1[_0x3309f8(0x1ea)]),_0x259f25=_0x31666b({'model':_0x336461,'style':_0x4653d1[_0x3309f8(0x20a)],'tool':_0x4653d1[_0x3309f8(0x210)],'sourceModel':_0x4653d1['sourceModel']?_0x447e92[_0x3309f8(0x20d)](_0x4653d1[_0x3309f8(0x1f4)]):_0x336461}),_0x7b3cc0=d(_0x5e12fd==null?void 0x0:_0x5e12fd[_0x3309f8(0x1e1)]);return{'id':(_0x2c217b=(_0xf4e382=_0x5e12fd==null?void 0x0:_0x5e12fd['id'])==null?_0x4653d1['id']:_0xf4e382)==null?_0x34bf1c(0x6):_0x2c217b,'type':_0x4e7b15[_0x3309f8(0x1f2)],'transform':_0x259f25[_0x3309f8(0x1e4)],'shapeData':_0x259f25[_0x3309f8(0x1ef)],'parentId':_0x2d33b7==null?void 0x0:_0x2d33b7,'laneId':_0x4653d1[_0x3309f8(0x205)]===void 0x0?_0x5e12fd==null?void 0x0:_0x5e12fd['laneId']:_0x4653d1[_0x3309f8(0x205)],'custom':{..._0x7b3cc0,'ink':_0x259f25[_0x3309f8(0x1f9)]}};}function _0xd57f(_0x203831,_0x4dce9f){_0x203831=_0x203831-0x1e1;const _0x2dfd8e=_0x2dfd();let _0xd57f3a=_0x2dfd8e[_0x203831];return _0xd57f3a;}function c(_0x4c2ae3){const _0x199240=_0x2cfa6e;return Number[_0x199240(0x1eb)](_0x4c2ae3['x'])&&Number['isFinite'](_0x4c2ae3['y']);}function l(_0x5b629a){const _0x11f44e=_0x2cfa6e;if(_0x5b629a[_0x11f44e(0x20c)]===_0x11f44e(0x20b)){let _0x178184=new Set();return _0x5b629a[_0x11f44e(0x1ed)][_0x11f44e(0x202)]>=(_0x5b629a['closed']?0x3:0x2)&&_0x5b629a['anchors']['every'](_0x2d6af8=>{const _0x34fe97=_0x11f44e;let _0xc2ec57=_0x2d6af8['id'][_0x34fe97(0x1fe)]()['length']>0x0&&!_0x178184[_0x34fe97(0x207)](_0x2d6af8['id'])&&c(_0x2d6af8)&&(!_0x2d6af8['in']||c(_0x2d6af8['in']))&&(!_0x2d6af8['out']||c(_0x2d6af8[_0x34fe97(0x1fa)]));return _0x178184['add'](_0x2d6af8['id']),_0xc2ec57;});}return _0x5b629a[_0x11f44e(0x1f7)][_0x11f44e(0x202)]>=0x2&&_0x5b629a[_0x11f44e(0x1f7)][_0x11f44e(0x1fd)](_0x5e74a5=>c(_0x5e74a5)&&Number[_0x11f44e(0x1eb)](_0x5e74a5['t'])&&(_0x5e74a5['pressure']===void 0x0||Number[_0x11f44e(0x1eb)](_0x5e74a5[_0x11f44e(0x20e)])))&&Number[_0x11f44e(0x1eb)](_0x5b629a[_0x11f44e(0x1e9)])&&_0x5b629a[_0x11f44e(0x1e9)]>0x0&&Number['isFinite'](_0x5b629a[_0x11f44e(0x212)])&&_0x5b629a[_0x11f44e(0x212)]>=0x0&&_0x5b629a[_0x11f44e(0x212)]<=0x1;}function _0x2dfd(){const _0x4a9e71=['BoardInkTool','style','pen','kind','deepClone','pressure','24855820VLhNJn','tool','extend','opacity','custom','insertIndex','findElements','transform','type','26677jcZtik','brush','free','width','model','isFinite','object','anchors','13484HTyUTS','shapeData','608xdWkGe','5131485DrDRAB','Shape','1096494pHmHXN','sourceModel','filter','82lQdqxy','points','BoardInkPointType','ink','out','version','insertInk','every','trim','539628sPYcnA','4guTYbO','parentId','length','2040665bblXrM','anchor','laneId','addElement','has','isArray'];_0x2dfd=function(){return _0x4a9e71;};return _0x2dfd();}function u(_0x3e2ff8){const _0x586cb2=_0x2cfa6e;return _0x3e2ff8===void 0x0||(_0x3e2ff8[_0x586cb2(0x1e9)]===void 0x0||Number[_0x586cb2(0x1eb)](_0x3e2ff8['width'])&&_0x3e2ff8['width']>0x0)&&(_0x3e2ff8[_0x586cb2(0x212)]===void 0x0||Number[_0x586cb2(0x1eb)](_0x3e2ff8['opacity'])&&_0x3e2ff8['opacity']>=0x0&&_0x3e2ff8[_0x586cb2(0x212)]<=0x1);}function d(_0x98b6a8){const _0x1b9060=_0x2cfa6e;return _0x98b6a8&&typeof _0x98b6a8==_0x1b9060(0x1ec)&&!Array[_0x1b9060(0x208)](_0x98b6a8)?_0x98b6a8:{};}function f(_0x5a9907){const _0x26ff84=_0x2cfa6e;let _0x43ce2c=d(_0x5a9907[_0x26ff84(0x1e1)])[_0x26ff84(0x1f9)];if(!_0x43ce2c||typeof _0x43ce2c!=_0x26ff84(0x1ec)||Array[_0x26ff84(0x208)](_0x43ce2c))return null;let _0x58d784=_0x43ce2c;return _0x58d784[_0x26ff84(0x1fb)]===0x1&&_0x58d784[_0x26ff84(0x1f4)]&&typeof _0x58d784[_0x26ff84(0x1f4)]=='object'?_0x58d784:null;}function p(_0x49aef5){const _0x5271a0=_0x2cfa6e;return _0x49aef5[_0x5271a0(0x1e5)]===_0x4e7b15['Shape']&&!!f(_0x49aef5);}_0xebe1c[_0x2cfa6e(0x211)](o);const m={'Pen':'pen','Brush':_0x2cfa6e(0x1e7),'Highlighter':'highlighter'},h={'Corner':'corner','Smooth':'smooth','Symmetric':'symmetric','Free':_0x2cfa6e(0x1e8)},g={'Anchor':_0x2cfa6e(0x204),'In':'in','Out':_0x2cfa6e(0x1fa)};var _=class extends _0x5bba3f{get[_0x2cfa6e(0x209)](){return m;}get[_0x2cfa6e(0x1f8)](){return h;}get['BoardInkHandleKind'](){return g;}};_0x5bba3f['extend'](_);export{g as BoardInkHandleKind,h as BoardInkPointType,m as BoardInkTool};
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x42e332=_0x1ced;(function(_0x3f38e3,_0x58f8f1){const _0x5d7c50=_0x1ced,_0x189e84=_0x3f38e3();while(!![]){try{const _0x5f42dc=parseInt(_0x5d7c50(0x87))/0x1+-parseInt(_0x5d7c50(0x86))/0x2*(-parseInt(_0x5d7c50(0xd2))/0x3)+-parseInt(_0x5d7c50(0x8f))/0x4*(-parseInt(_0x5d7c50(0x9e))/0x5)+-parseInt(_0x5d7c50(0xc4))/0x6*(parseInt(_0x5d7c50(0x88))/0x7)+-parseInt(_0x5d7c50(0xd3))/0x8+-parseInt(_0x5d7c50(0x81))/0x9+parseInt(_0x5d7c50(0xc2))/0xa;if(_0x5f42dc===_0x58f8f1)break;else _0x189e84['push'](_0x189e84['shift']());}catch(_0x297107){_0x189e84['push'](_0x189e84['shift']());}}}(_0x2777,0x568c3));import{ShapeFillEnum as _0x40b030,ShapeLineCapEnum as _0x30b81e,ShapeLineJoinEnum as _0xe471ab,ShapeLineTypeEnum as _0x568653,ShapeTypeEnum as _0x5c7e2e}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x3f4697}from'@univerjs-pro/license';import{CommandType as _0x2e7563,DependentOn as _0x95406c,ICommandService as _0x1a1bff,IConfigService as _0x2f7050,Inject as _0x9103c7,Injector as _0x17a253,Plugin as _0x2449e5,UniverInstanceType as _0x5370d0,createIdentifier as _0x5690be,merge as _0x11b2d3,toDisposable as _0x4bf3a7}from'@univerjs/core';const g=0.0001;function _(_0x4161f6){return{'x':_0x4161f6['x'],'y':_0x4161f6['y']};}function v(_0x21882c){const _0x12ed7a=_0x1ced;return{..._0x21882c,'in':_0x21882c['in']?_(_0x21882c['in']):void 0x0,'out':_0x21882c[_0x12ed7a(0xb2)]?_(_0x21882c[_0x12ed7a(0xb2)]):void 0x0};}function y(_0x518e53){const _0x880c8f=_0x1ced;return{'kind':'pen','closed':_0x518e53[_0x880c8f(0xcf)],'anchors':_0x518e53[_0x880c8f(0xba)][_0x880c8f(0xce)](v)};}function b(_0x57a4e7,_0x9e8b21,_0x4c773e){return{'x':_0x57a4e7['x']+(_0x9e8b21['x']-_0x57a4e7['x'])*_0x4c773e,'y':_0x57a4e7['y']+(_0x9e8b21['y']-_0x57a4e7['y'])*_0x4c773e};}function x(_0x356032,_0x3d776f){const _0xdcb542=_0x1ced;return Math[_0xdcb542(0x90)](_0x356032['x']-_0x3d776f['x'],_0x356032['y']-_0x3d776f['y']);}function S(_0x12229c){const _0x4024df=_0x1ced;let _0x4e9a68=Math[_0x4024df(0x90)](_0x12229c['x'],_0x12229c['y']);return _0x4e9a68<g?{'x':0x1,'y':0x0}:{'x':_0x12229c['x']/_0x4e9a68,'y':_0x12229c['y']/_0x4e9a68};}function C(_0x1c1a7f,_0x2fb0f7,_0xbf11ab=x(_0x1c1a7f,_0x2fb0f7)){let _0x42126f=S({'x':_0x1c1a7f['x']-_0x2fb0f7['x'],'y':_0x1c1a7f['y']-_0x2fb0f7['y']});return{'x':_0x1c1a7f['x']+_0x42126f['x']*_0xbf11ab,'y':_0x1c1a7f['y']+_0x42126f['y']*_0xbf11ab};}function w(_0x2af16b,_0x2c8365){const _0x7bf8c=_0x1ced;let {anchors:_0x35a9cd}=_0x2af16b;return _0x35a9cd[_0x7bf8c(0xa4)]<0x2||_0x2c8365<0x0?null:_0x2c8365<_0x35a9cd[_0x7bf8c(0xa4)]-0x1?{'startIndex':_0x2c8365,'endIndex':_0x2c8365+0x1,'start':_0x35a9cd[_0x2c8365],'end':_0x35a9cd[_0x2c8365+0x1]}:_0x2af16b[_0x7bf8c(0xcf)]&&_0x2c8365===_0x35a9cd[_0x7bf8c(0xa4)]-0x1?{'startIndex':_0x35a9cd[_0x7bf8c(0xa4)]-0x1,'endIndex':0x0,'start':_0x35a9cd[_0x35a9cd[_0x7bf8c(0xa4)]-0x1],'end':_0x35a9cd[0x0]}:null;}function T(_0x1acb3a,_0x457712){const _0x3bd77f=_0x1ced;var _0x57761f,_0x2e4ec7;let _0x33a487=w(_0x1acb3a,_0x457712);return _0x33a487?[_0x33a487['start'],(_0x57761f=_0x33a487[_0x3bd77f(0xb0)][_0x3bd77f(0xb2)])==null?_0x33a487['start']:_0x57761f,(_0x2e4ec7=_0x33a487[_0x3bd77f(0x98)]['in'])==null?_0x33a487['end']:_0x2e4ec7,_0x33a487['end']]:null;}function te(_0x33e2cb,_0x2ec6c9){const _0x456d92=_0x1ced;var _0x520bd6;return _0x2ec6c9===_0x456d92(0x8e)?_0x33e2cb:(_0x520bd6=_0x33e2cb[_0x2ec6c9])==null?null:_0x520bd6;}function E(_0x51bd63,_0x40881,_0xaf0059){const _0x18414c=_0x1ced;return _0xaf0059==='anchor'||_0x51bd63[_0x18414c(0xcf)]?!0x0:_0xaf0059==='in'?_0x40881>0x0:_0x40881<_0x51bd63['anchors']['length']-0x1;}function D(_0x4cfb16,_0x338484){let [_0x336e2e,_0xc68eb8,_0x313e70,_0x2f0c4f]=_0x4cfb16,_0x103791=b(_0x336e2e,_0xc68eb8,_0x338484),_0x14a37e=b(_0xc68eb8,_0x313e70,_0x338484),_0x49d1d=b(_0x313e70,_0x2f0c4f,_0x338484);return b(b(_0x103791,_0x14a37e,_0x338484),b(_0x14a37e,_0x49d1d,_0x338484),_0x338484);}function ne(_0x105ff2,_0x4a17c3){let [_0x3d9b2d,_0x1a5c0c,_0x56625,_0x51cc05]=_0x105ff2,_0x4f1316=b(_0x3d9b2d,_0x1a5c0c,_0x4a17c3),_0x5c15bc=b(_0x1a5c0c,_0x56625,_0x4a17c3),_0x5e182d=b(_0x56625,_0x51cc05,_0x4a17c3),_0x5339d7=b(_0x4f1316,_0x5c15bc,_0x4a17c3),_0x9ca61e=b(_0x5c15bc,_0x5e182d,_0x4a17c3),_0x377b1a=b(_0x5339d7,_0x9ca61e,_0x4a17c3);return{'left':[_0x3d9b2d,_0x4f1316,_0x5339d7,_0x377b1a],'right':[_0x377b1a,_0x9ca61e,_0x5e182d,_0x51cc05]};}function O(_0x14b959,_0x43e838,_0x33de5e){const _0x3b5921=_0x1ced;let _0x32a47c=_0x33de5e['x']-_0x43e838['x'],_0x14f6d4=_0x33de5e['y']-_0x43e838['y'],_0x1e7c8e=_0x32a47c*_0x32a47c+_0x14f6d4*_0x14f6d4,_0x44ac47=_0x1e7c8e<=g?0x0:Math[_0x3b5921(0x97)](0x0,Math[_0x3b5921(0xb4)](0x1,((_0x14b959['x']-_0x43e838['x'])*_0x32a47c+(_0x14b959['y']-_0x43e838['y'])*_0x14f6d4)/_0x1e7c8e)),_0x19c706={'x':_0x43e838['x']+_0x32a47c*_0x44ac47,'y':_0x43e838['y']+_0x14f6d4*_0x44ac47};return{'point':_0x19c706,'ratio':_0x44ac47,'distance':x(_0x14b959,_0x19c706)};}function re(_0x5b71bf,_0x3c434e,_0x12f2eb){const _0x117646=_0x1ced;return O(_0x5b71bf,_0x3c434e,_0x12f2eb)[_0x117646(0xbc)]**0x2;}function k(_0x21b199,_0x7b4489){const _0x315c47=_0x1ced;if(_0x21b199['length']<=0x2)return _0x21b199[_0x315c47(0xce)](_);let _0xf884ca=0x0,_0x2debc0=0x0,_0x3b204b=_0x21b199[0x0],_0x58d7c5=_0x21b199[_0x21b199[_0x315c47(0xa4)]-0x1],_0x1d41e4=_0x7b4489*_0x7b4489;for(let _0x5020f0=0x1;_0x5020f0<_0x21b199[_0x315c47(0xa4)]-0x1;_0x5020f0++){let _0x3015ef=re(_0x21b199[_0x5020f0],_0x3b204b,_0x58d7c5);_0x3015ef>_0xf884ca&&(_0xf884ca=_0x3015ef,_0x2debc0=_0x5020f0);}if(_0xf884ca<=_0x1d41e4)return[_(_0x3b204b),_(_0x58d7c5)];let _0x431cb7=k(_0x21b199[_0x315c47(0xb5)](0x0,_0x2debc0+0x1),_0x7b4489),_0xf9b1e1=k(_0x21b199[_0x315c47(0xb5)](_0x2debc0),_0x7b4489);return[..._0x431cb7[_0x315c47(0xb5)](0x0,-0x1),..._0xf9b1e1];}function ie(_0x40bda8,_0xfc6272){var _0x772e3b;let _0x41ed39=_0x40bda8[_0xfc6272],_0x47b1be=_0x40bda8[_0xfc6272+0x1],_0x3d271f=(_0x772e3b=_0x40bda8[_0xfc6272-0x1])==null?_0x41ed39:_0x772e3b;return{'x':_0x41ed39['x']+(_0x47b1be['x']-_0x3d271f['x'])/0x6,'y':_0x41ed39['y']+(_0x47b1be['y']-_0x3d271f['y'])/0x6};}function A(_0x6281e1,_0x12a128){var _0x1c6508;let _0x318159=_0x6281e1[_0x12a128],_0x30fbaf=_0x6281e1[_0x12a128-0x1],_0x27d478=(_0x1c6508=_0x6281e1[_0x12a128+0x1])==null?_0x318159:_0x1c6508;return{'x':_0x318159['x']-(_0x27d478['x']-_0x30fbaf['x'])/0x6,'y':_0x318159['y']-(_0x27d478['y']-_0x30fbaf['y'])/0x6};}function j(_0x5ce29b,_0xbe5225){const _0x558889=_0x1ced;var _0x46dc7e,_0xe86033;let _0x697284=_0x5ce29b[_0x558889(0xba)][_0xbe5225],_0x317408=(_0x46dc7e=_0x5ce29b['anchors'][_0xbe5225-0x1])==null?_0x5ce29b[_0x558889(0xcf)]?_0x5ce29b[_0x558889(0xba)][_0x5ce29b['anchors'][_0x558889(0xa4)]-0x1]:null:_0x46dc7e,_0x3f02f9=(_0xe86033=_0x5ce29b[_0x558889(0xba)][_0xbe5225+0x1])==null?_0x5ce29b[_0x558889(0xcf)]?_0x5ce29b[_0x558889(0xba)][0x0]:null:_0xe86033,_0x48b183=_0x317408&&_0x3f02f9?S({'x':_0x3f02f9['x']-_0x317408['x'],'y':_0x3f02f9['y']-_0x317408['y']}):_0x3f02f9?S({'x':_0x3f02f9['x']-_0x697284['x'],'y':_0x3f02f9['y']-_0x697284['y']}):_0x317408?S({'x':_0x697284['x']-_0x317408['x'],'y':_0x697284['y']-_0x317408['y']}):{'x':0x1,'y':0x0},_0x172a0f=_0x317408&&_0x3f02f9?Math[_0x558889(0x97)](0x32,x(_0x317408,_0x3f02f9)/0x4):0x32;return{'in':{'x':_0x697284['x']-_0x48b183['x']*_0x172a0f,'y':_0x697284['y']-_0x48b183['y']*_0x172a0f},'out':{'x':_0x697284['x']+_0x48b183['x']*_0x172a0f,'y':_0x697284['y']+_0x48b183['y']*_0x172a0f}};}function M(_0x4e1b38,_0x34cb21){const _0x408a36=_0x1ced;let _0x226bbb=_0x4e1b38[_0x34cb21],_0x283f60=_0x34cb21==='in'?_0x408a36(0xb2):'in',_0x1ff740=_0x4e1b38[_0x283f60];if(_0x226bbb){if(_0x4e1b38[_0x408a36(0xa0)]===_0x408a36(0x9c)){_0x4e1b38[_0x283f60]=C(_0x4e1b38,_0x226bbb);return;}_0x4e1b38[_0x408a36(0xa0)]===_0x408a36(0xbd)&&(_0x4e1b38[_0x283f60]=C(_0x4e1b38,_0x226bbb,_0x1ff740?x(_0x4e1b38,_0x1ff740):x(_0x4e1b38,_0x226bbb)));}}function ae(_0x34655e,_0x40d757){const _0x1a1ee3=_0x1ced;let _0x459359=y(_0x34655e);return!_0x40d757||_0x459359[_0x1a1ee3(0xcf)]||_0x459359[_0x1a1ee3(0xba)]['length']===0x0||_0x459359['anchors'][_0x1a1ee3(0xb9)]({'id':'__ink-preview-anchor__','x':_0x40d757['x'],'y':_0x40d757['y'],'pointType':_0x1a1ee3(0x84)}),_0x459359;}function oe(_0x2814d1,_0x2d384f={}){const _0x2518a3=_0x1ced;var _0x15a93c,_0x3060d1;let _0x34d83d=Math[_0x2518a3(0x97)](0x0,(_0x15a93c=_0x2d384f[_0x2518a3(0xc8)])==null?Math[_0x2518a3(0x97)](0x4,_0x2814d1['width']*0.35):_0x15a93c),_0x1ea899=(_0x3060d1=_0x2d384f[_0x2518a3(0x91)])==null?_0x3193ae=>'ink-centerline-'+_0x3193ae:_0x3060d1,_0x1837b9=k(_0x2814d1[_0x2518a3(0x8c)],_0x34d83d),_0x3c8f17=_0x1837b9[_0x2518a3(0xce)]((_0x2880ea,_0x532513)=>({'id':_0x1ea899(_0x532513),'x':_0x2880ea['x'],'y':_0x2880ea['y'],'pointType':_0x2518a3(0xca)}));for(let _0x51b97f=0x0;_0x51b97f<_0x3c8f17['length']-0x1;_0x51b97f++)_0x3c8f17[_0x51b97f][_0x2518a3(0xb2)]=ie(_0x1837b9,_0x51b97f),_0x3c8f17[_0x51b97f+0x1]['in']=A(_0x1837b9,_0x51b97f+0x1);return{'kind':_0x2518a3(0xa3),'closed':!0x1,'anchors':_0x3c8f17};}function se(_0x2a8a7b,_0x4002cb,_0x3b42c0){const _0x16f8af=_0x1ced;let _0x215cfa=null,_0x1afb9c=['anchor','in',_0x16f8af(0xb2)];return _0x2a8a7b[_0x16f8af(0xba)][_0x16f8af(0x93)]((_0x156be8,_0x4e9e8a)=>{const _0x22f5fc=_0x16f8af;_0x1afb9c[_0x22f5fc(0x93)](_0x55f42f=>{const _0x1473eb=_0x22f5fc;if(!E(_0x2a8a7b,_0x4e9e8a,_0x55f42f))return;let _0x42ad36=te(_0x156be8,_0x55f42f);if(!_0x42ad36)return;let _0xe6e78c=x(_0x4002cb,_0x42ad36);_0xe6e78c>_0x3b42c0||_0x215cfa&&_0xe6e78c>=_0x215cfa[_0x1473eb(0xbc)]||(_0x215cfa={'handle':{'kind':_0x55f42f,'anchorId':_0x156be8['id']},'point':_(_0x42ad36),'distance':_0xe6e78c});});}),_0x215cfa;}function ce(_0x3be065,_0x59c988,_0x558a88){const _0x289744=_0x1ced;let _0x2547b2=null,_0x5cfc46=_0x3be065[_0x289744(0xcf)]?_0x3be065['anchors'][_0x289744(0xa4)]:Math[_0x289744(0x97)](0x0,_0x3be065[_0x289744(0xba)]['length']-0x1);for(let _0x975040=0x0;_0x975040<_0x5cfc46;_0x975040++){let _0x388294=T(_0x3be065,_0x975040);if(!_0x388294)continue;let _0x43ed62=D(_0x388294,0x0);for(let _0x124a9f=0x1;_0x124a9f<=0x20;_0x124a9f++){let _0x15511f=D(_0x388294,_0x124a9f/0x20),_0x57ab7f=O(_0x59c988,_0x43ed62,_0x15511f),_0x574b3b=(_0x124a9f-0x1+_0x57ab7f[_0x289744(0x8b)])/0x20;(!_0x2547b2||_0x57ab7f[_0x289744(0xbc)]<_0x2547b2[_0x289744(0xbc)])&&(_0x2547b2={'segmentIndex':_0x975040,'t':_0x574b3b,'point':_0x57ab7f[_0x289744(0xad)],'distance':_0x57ab7f[_0x289744(0xbc)]}),_0x43ed62=_0x15511f;}}return _0x2547b2&&_0x2547b2['distance']<=_0x558a88?_0x2547b2:null;}function le(_0x5440c2,_0xc748f7,_0x7bb2c1){const _0x262447=_0x1ced;let _0x11bf9b=y(_0x5440c2),_0x4ecbf5=w(_0x11bf9b,_0xc748f7[_0x262447(0xb3)]),_0x52148a=T(_0x11bf9b,_0xc748f7[_0x262447(0xb3)]);if(!_0x4ecbf5||!_0x52148a)return _0x11bf9b;let _0xe1d68f=ne(_0x52148a,Math[_0x262447(0x97)](0x0,Math[_0x262447(0xb4)](0x1,_0xc748f7['t']))),_0x2fa6d4={'id':_0x7bb2c1(),'x':_0xe1d68f[_0x262447(0x96)][0x3]['x'],'y':_0xe1d68f[_0x262447(0x96)][0x3]['y'],'in':_(_0xe1d68f['left'][0x2]),'out':_(_0xe1d68f[_0x262447(0xaf)][0x1]),'pointType':'free'};return _0x11bf9b['anchors'][_0x4ecbf5['startIndex']][_0x262447(0xb2)]=_(_0xe1d68f[_0x262447(0x96)][0x1]),_0x11bf9b[_0x262447(0xba)][_0x4ecbf5[_0x262447(0xab)]]['in']=_(_0xe1d68f[_0x262447(0xaf)][0x2]),_0x11bf9b[_0x262447(0xba)]['splice'](_0x4ecbf5[_0x262447(0x85)]+0x1,0x0,_0x2fa6d4),_0x11bf9b;}function ue(_0x9d179f,_0x392227){const _0x3691b4=_0x1ced;let _0x3f62d5=y(_0x9d179f);return _0x3f62d5[_0x3691b4(0xba)]=_0x3f62d5[_0x3691b4(0xba)][_0x3691b4(0xbb)](_0xb7b7d0=>_0xb7b7d0['id']!==_0x392227),_0x3f62d5[_0x3691b4(0xcf)]&&_0x3f62d5[_0x3691b4(0xba)][_0x3691b4(0xa4)]<0x3&&(_0x3f62d5[_0x3691b4(0xcf)]=!0x1),_0x3f62d5;}function N(_0x464440,_0x482438,_0x1d85e7){const _0x4c092a=_0x1ced;let _0x31b66b=y(_0x464440),_0x28e6dd=_0x31b66b[_0x4c092a(0xba)]['findIndex'](_0x449879=>_0x449879['id']===_0x482438),_0x44edd1=_0x31b66b[_0x4c092a(0xba)][_0x28e6dd];if(!_0x44edd1)return _0x31b66b;if(_0x44edd1[_0x4c092a(0xa0)]=_0x1d85e7,_0x1d85e7==='corner')return delete _0x44edd1['in'],delete _0x44edd1[_0x4c092a(0xb2)],_0x31b66b;let _0x75b9f9=j(_0x31b66b,_0x28e6dd);if(_0x44edd1['in']=_0x44edd1['in']?_(_0x44edd1['in']):_0x75b9f9['in'],_0x44edd1['out']=_0x44edd1[_0x4c092a(0xb2)]?_(_0x44edd1[_0x4c092a(0xb2)]):_0x75b9f9['out'],_0x1d85e7===_0x4c092a(0x9c)){let _0x9832cb=Math['max'](x(_0x44edd1,_0x44edd1['in']),x(_0x44edd1,_0x44edd1[_0x4c092a(0xb2)]),0x32),_0x16448b=S({'x':_0x44edd1[_0x4c092a(0xb2)]['x']-_0x44edd1['x'],'y':_0x44edd1['out']['y']-_0x44edd1['y']});_0x44edd1[_0x4c092a(0xb2)]={'x':_0x44edd1['x']+_0x16448b['x']*_0x9832cb,'y':_0x44edd1['y']+_0x16448b['y']*_0x9832cb},_0x44edd1['in']={'x':_0x44edd1['x']-_0x16448b['x']*_0x9832cb,'y':_0x44edd1['y']-_0x16448b['y']*_0x9832cb};}else _0x1d85e7===_0x4c092a(0xbd)&&M(_0x44edd1,'out');return _0x31b66b;}function P(_0x47a09d,_0x11f87a){const _0x341b03=_0x1ced;var _0x339851;let _0x1b0c07=_0x47a09d[_0x341b03(0xba)][_0x341b03(0xac)](_0x52cf4e=>_0x52cf4e['id']===_0x11f87a),_0x2e9d51=(_0x339851=_0x1b0c07==null?void 0x0:_0x1b0c07[_0x341b03(0xa0)])==null?'corner':_0x339851;return N(_0x47a09d,_0x11f87a,_0x2e9d51===_0x341b03(0x84)?_0x341b03(0xbd):_0x2e9d51===_0x341b03(0xbd)?_0x341b03(0x9c):_0x2e9d51==='symmetric'?'free':_0x341b03(0x84));}function F(_0x33c0a5,_0x412924,_0x2b38ae){const _0x118317=_0x1ced;let _0x1b0a2a=y(_0x33c0a5),_0x5a88f4=_0x1b0a2a[_0x118317(0xba)][_0x118317(0xac)](_0x449592=>_0x449592['id']===_0x412924[_0x118317(0x80)]);if(!_0x5a88f4)return _0x1b0a2a;if(_0x412924['kind']==='anchor'){let _0x13318b={'x':_0x2b38ae['x']-_0x5a88f4['x'],'y':_0x2b38ae['y']-_0x5a88f4['y']};return _0x5a88f4['x']=_0x2b38ae['x'],_0x5a88f4['y']=_0x2b38ae['y'],_0x5a88f4['in']&&(_0x5a88f4['in']={'x':_0x5a88f4['in']['x']+_0x13318b['x'],'y':_0x5a88f4['in']['y']+_0x13318b['y']}),_0x5a88f4[_0x118317(0xb2)]&&(_0x5a88f4[_0x118317(0xb2)]={'x':_0x5a88f4['out']['x']+_0x13318b['x'],'y':_0x5a88f4[_0x118317(0xb2)]['y']+_0x13318b['y']}),_0x1b0a2a;}return _0x5a88f4[_0x412924[_0x118317(0xb6)]]=_(_0x2b38ae),_0x5a88f4['pointType']==='corner'&&(_0x5a88f4[_0x118317(0xa0)]='free'),M(_0x5a88f4,_0x412924['kind']),_0x1b0a2a;}const I=1e-9;function L(_0x1e1e75){const _0x3ec61f=_0x1ced;let _0x31d057=Math[_0x3ec61f(0xcb)](_0x1e1e75*0x2710)/0x2710;return Object['is'](_0x31d057,-0x0)?'0':String(_0x31d057);}function R(_0x3ea43b){return L(_0x3ea43b['x'])+'\x20'+L(_0x3ea43b['y']);}function z(_0x56890a,_0x54bee3){return{'x':_0x56890a['x']-_0x54bee3['x'],'y':_0x56890a['y']-_0x54bee3['y']};}function B(_0x48ac06,_0x4822b1,_0xcdd611,_0x43b70e,_0x196050){let _0x25d080=0x1-_0x196050;return{'x':_0x25d080*_0x25d080*_0x25d080*_0x48ac06['x']+0x3*_0x25d080*_0x25d080*_0x196050*_0x4822b1['x']+0x3*_0x25d080*_0x196050*_0x196050*_0xcdd611['x']+_0x196050*_0x196050*_0x196050*_0x43b70e['x'],'y':_0x25d080*_0x25d080*_0x25d080*_0x48ac06['y']+0x3*_0x25d080*_0x25d080*_0x196050*_0x4822b1['y']+0x3*_0x25d080*_0x196050*_0x196050*_0xcdd611['y']+_0x196050*_0x196050*_0x196050*_0x43b70e['y']};}function V(_0x4f13f8,_0x15beb2,_0xbba490,_0x50f385){const _0x2014a4=_0x1ced;let _0x4cf8be=-_0x4f13f8+0x3*_0x15beb2-0x3*_0xbba490+_0x50f385,_0x59b2cc=0x3*_0x4f13f8-0x6*_0x15beb2+0x3*_0xbba490,_0x4ed9b4=-0x3*_0x4f13f8+0x3*_0x15beb2,_0x5dbb64=[];if(Math[_0x2014a4(0xc5)](_0x4cf8be)<I){if(Math[_0x2014a4(0xc5)](_0x59b2cc)<I)return _0x5dbb64;let _0x26d757=-_0x4ed9b4/(0x2*_0x59b2cc);return _0x26d757>0x0&&_0x26d757<0x1&&_0x5dbb64[_0x2014a4(0xb9)](_0x26d757),_0x5dbb64;}let _0x32ad76=_0x59b2cc*_0x59b2cc-0x3*_0x4cf8be*_0x4ed9b4;if(_0x32ad76<0x0)return _0x5dbb64;let _0x2766bb=Math['sqrt'](Math['max'](0x0,_0x32ad76)),_0x1a43e6=(-_0x59b2cc+_0x2766bb)/(0x3*_0x4cf8be),_0x139125=(-_0x59b2cc-_0x2766bb)/(0x3*_0x4cf8be);return _0x1a43e6>0x0&&_0x1a43e6<0x1&&_0x5dbb64['push'](_0x1a43e6),_0x139125>0x0&&_0x139125<0x1&&Math[_0x2014a4(0xc5)](_0x139125-_0x1a43e6)>I&&_0x5dbb64[_0x2014a4(0xb9)](_0x139125),_0x5dbb64;}function H(_0x10b4f3,_0x2d32fa,_0x1af334,_0x28dcbd,_0x399f6a){const _0x2c7645=_0x1ced;_0x10b4f3[_0x2c7645(0xb9)](_0x2d32fa,_0x399f6a),new Set([...V(_0x2d32fa['x'],_0x1af334['x'],_0x28dcbd['x'],_0x399f6a['x']),...V(_0x2d32fa['y'],_0x1af334['y'],_0x28dcbd['y'],_0x399f6a['y'])])[_0x2c7645(0x93)](_0x169838=>{const _0x4655de=_0x2c7645;_0x10b4f3[_0x4655de(0xb9)](B(_0x2d32fa,_0x1af334,_0x28dcbd,_0x399f6a,_0x169838));});}function U(_0x23e05c){const _0x270118=_0x1ced;let _0x3d2633=_0x23e05c['anchors'];if(_0x3d2633[_0x270118(0xa4)]<=0x1)return _0x3d2633;let _0x772e2e=[];for(let _0x27e527=0x1;_0x27e527<_0x3d2633[_0x270118(0xa4)];_0x27e527++){var _0x49c512,_0x1ebcbe;let _0x38535b=_0x3d2633[_0x27e527-0x1],_0x5217f4=_0x3d2633[_0x27e527];H(_0x772e2e,_0x38535b,(_0x49c512=_0x38535b[_0x270118(0xb2)])==null?_0x38535b:_0x49c512,(_0x1ebcbe=_0x5217f4['in'])==null?_0x5217f4:_0x1ebcbe,_0x5217f4);}if(_0x23e05c['closed']&&_0x3d2633['length']>0x1){var _0x483e6a,_0x370c54;let _0x1faf34=_0x3d2633[_0x3d2633[_0x270118(0xa4)]-0x1],_0x11996f=_0x3d2633[0x0];H(_0x772e2e,_0x1faf34,(_0x483e6a=_0x1faf34['out'])==null?_0x1faf34:_0x483e6a,(_0x370c54=_0x11996f['in'])==null?_0x11996f:_0x370c54,_0x11996f);}return _0x772e2e;}function de(_0x331f22){const _0x4d7116=_0x1ced;let _0x4fcec8=_0x331f22[_0x4d7116(0x8c)];if(_0x4fcec8[_0x4d7116(0xa4)]<=0x1)return _0x4fcec8;let _0xa8fd62=[];for(let _0x56f665=0x0;_0x56f665<_0x4fcec8[_0x4d7116(0xa4)]-0x1;_0x56f665++){var _0x136593,_0x483929;let _0x4cd45a=_0x4fcec8[_0x56f665],_0x123505=_0x4fcec8[_0x56f665+0x1],_0x385e25=(_0x136593=_0x4fcec8[_0x56f665-0x1])==null?_0x4cd45a:_0x136593,_0x55433e=(_0x483929=_0x4fcec8[_0x56f665+0x2])==null?_0x123505:_0x483929;H(_0xa8fd62,_0x4cd45a,{'x':_0x4cd45a['x']+(_0x123505['x']-_0x385e25['x'])/0x6,'y':_0x4cd45a['y']+(_0x123505['y']-_0x385e25['y'])/0x6},{'x':_0x123505['x']-(_0x55433e['x']-_0x4cd45a['x'])/0x6,'y':_0x123505['y']-(_0x55433e['y']-_0x4cd45a['y'])/0x6},_0x123505);}return _0xa8fd62;}function fe(_0x471446){const _0x4f4d52=_0x1ced;return _0x471446[_0x4f4d52(0xb6)]===_0x4f4d52(0xa3)?U(_0x471446):de(_0x471446);}function W(_0x5792e9){const _0x1ac618=_0x1ced;let _0x54ec18=Math[_0x1ac618(0xcb)](_0x5792e9*0x2710)/0x2710;return Object['is'](_0x54ec18,-0x0)?0x0:_0x54ec18;}function G(_0x1e599e){const _0x37d1b0=_0x1ced;let _0x5a42fc=fe(_0x1e599e);if(_0x5a42fc['length']===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x4b033e=Math['min'](..._0x5a42fc['map'](_0x485f6d=>_0x485f6d['x'])),_0xf0a1d7=Math[_0x37d1b0(0xb4)](..._0x5a42fc[_0x37d1b0(0xce)](_0x26e40c=>_0x26e40c['y'])),_0x22d349=Math[_0x37d1b0(0x97)](..._0x5a42fc['map'](_0xee1676=>_0xee1676['x'])),_0x4867bf=Math[_0x37d1b0(0x97)](..._0x5a42fc[_0x37d1b0(0xce)](_0x2eedb0=>_0x2eedb0['y']));return{'left':W(_0x4b033e),'top':W(_0xf0a1d7),'width':W(Math[_0x37d1b0(0x97)](0x1,_0x22d349-_0x4b033e)),'height':W(Math[_0x37d1b0(0x97)](0x1,_0x4867bf-_0xf0a1d7))};}function pe(_0x1de73a,_0x45385c){const _0x4622b9=_0x1ced;let _0x27081c=_0x1de73a[_0x4622b9(0xba)];if(_0x27081c[_0x4622b9(0xa4)]===0x0)return'';let _0x30180a=['M\x20'+R(z(_0x27081c[0x0],_0x45385c))];for(let _0x66d405=0x1;_0x66d405<_0x27081c['length'];_0x66d405++){var _0x3f9c33,_0x3f83f7;let _0x267910=_0x27081c[_0x66d405-0x1],_0xf6cf96=_0x27081c[_0x66d405],_0x23ed5e=(_0x3f9c33=_0x267910[_0x4622b9(0xb2)])==null?_0x267910:_0x3f9c33,_0x44f074=(_0x3f83f7=_0xf6cf96['in'])==null?_0xf6cf96:_0x3f83f7;_0x30180a['push']('C\x20'+R(z(_0x23ed5e,_0x45385c))+'\x20'+R(z(_0x44f074,_0x45385c))+'\x20'+R(z(_0xf6cf96,_0x45385c)));}if(_0x1de73a[_0x4622b9(0xcf)]&&_0x27081c['length']>0x1){var _0x2e84ae,_0x2ad46c;let _0x5c57ac=_0x27081c[_0x27081c['length']-0x1],_0x3357b9=_0x27081c[0x0],_0x32fd94=(_0x2e84ae=_0x5c57ac[_0x4622b9(0xb2)])==null?_0x5c57ac:_0x2e84ae,_0xeecd64=(_0x2ad46c=_0x3357b9['in'])==null?_0x3357b9:_0x2ad46c;_0x30180a['push']('C\x20'+R(z(_0x32fd94,_0x45385c))+'\x20'+R(z(_0xeecd64,_0x45385c))+'\x20'+R(z(_0x3357b9,_0x45385c))),_0x30180a[_0x4622b9(0xb9)]('Z');}return _0x30180a['join']('\x20');}function me(_0x107b6c,_0x269de9){const _0x383ffa=_0x1ced;let _0x51982a=_0x107b6c['points'][_0x383ffa(0xce)](_0xf3d220=>z(_0xf3d220,_0x269de9));if(_0x51982a['length']===0x0)return'';if(_0x51982a['length']===0x1)return'M\x20'+R(_0x51982a[0x0]);let _0x5d03c8=['M\x20'+R(_0x51982a[0x0])];for(let _0x4f459b=0x0;_0x4f459b<_0x51982a[_0x383ffa(0xa4)]-0x1;_0x4f459b++){var _0x3c997a,_0x2d8de1;let _0x428bda=_0x51982a[_0x4f459b],_0xa7f938=_0x51982a[_0x4f459b+0x1],_0x24d403=(_0x3c997a=_0x51982a[_0x4f459b-0x1])==null?_0x428bda:_0x3c997a,_0x31c2bd=(_0x2d8de1=_0x51982a[_0x4f459b+0x2])==null?_0xa7f938:_0x2d8de1,_0x5a52dc={'x':_0x428bda['x']+(_0xa7f938['x']-_0x24d403['x'])/0x6,'y':_0x428bda['y']+(_0xa7f938['y']-_0x24d403['y'])/0x6},_0x4f3231={'x':_0xa7f938['x']-(_0x31c2bd['x']-_0x428bda['x'])/0x6,'y':_0xa7f938['y']-(_0x31c2bd['y']-_0x428bda['y'])/0x6};_0x5d03c8[_0x383ffa(0xb9)]('C\x20'+R(_0x5a52dc)+'\x20'+R(_0x4f3231)+'\x20'+R(_0xa7f938));}return _0x5d03c8['join']('\x20');}function he(_0x3408ac,_0xbbc8c1){const _0x254423=_0x1ced;return _0x3408ac[_0x254423(0xb6)]===_0x254423(0xa3)?pe(_0x3408ac,_0xbbc8c1):me(_0x3408ac,_0xbbc8c1);}function ge(_0x10a586,_0x310e98){const _0x2bb3b1=_0x1ced;return _0x310e98!=null&&_0x310e98['color']?_0x310e98['color']:_0x10a586[_0x2bb3b1(0xb6)]===_0x2bb3b1(0xa3)?_0x2bb3b1(0xc3):_0x10a586['color'];}function _e(_0x4d0a9b,_0x103690){const _0x4ceb3d=_0x1ced;return(_0x103690==null?void 0x0:_0x103690[_0x4ceb3d(0xcd)])===void 0x0?_0x4d0a9b[_0x4ceb3d(0xb6)]===_0x4ceb3d(0xa3)?0x2:_0x4d0a9b[_0x4ceb3d(0xcd)]:_0x103690[_0x4ceb3d(0xcd)];}function ve(_0x119005,_0xa33e6){const _0x3a9293=_0x1ced;return(_0xa33e6==null?void 0x0:_0xa33e6[_0x3a9293(0xb7)])===void 0x0?_0x119005['kind']===_0x3a9293(0xa3)?void 0x0:_0x119005[_0x3a9293(0xb7)]:_0xa33e6[_0x3a9293(0xb7)];}function _0x1ced(_0x27b8a0,_0x1db9ea){_0x27b8a0=_0x27b8a0-0x7e;const _0x2777cd=_0x2777();let _0x1ced70=_0x2777cd[_0x27b8a0];return _0x1ced70;}function ye(_0x397c77,_0x4f0103){const _0x2d5305=_0x1ced;let _0x58cd5c=G(_0x397c77),_0x334e32=he(_0x397c77,{'x':_0x58cd5c['left'],'y':_0x58cd5c[_0x2d5305(0xa6)]}),_0x1868c0=_0x397c77[_0x2d5305(0xb6)]==='pen'&&_0x397c77[_0x2d5305(0xcf)],_0x20e82b=_0x4f0103==null?void 0x0:_0x4f0103[_0x2d5305(0xa8)];return{'shapeType':_0x5c7e2e['Rect'],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x58cd5c[_0x2d5305(0xcd)],'h':_0x58cd5c['height'],'fill':_0x1868c0?'norm':_0x2d5305(0xbe),'stroke':!0x0,'data':_0x334e32,'dataArray':be(_0x397c77,{'x':_0x58cd5c[_0x2d5305(0x96)],'y':_0x58cd5c[_0x2d5305(0xa6)]})}]},'fill':_0x1868c0&&_0x20e82b?{'color':_0x20e82b,'fillType':_0x40b030[_0x2d5305(0xc1)]}:{'fillType':_0x40b030['NoFill']},'stroke':{'color':ge(_0x397c77,_0x4f0103),'width':_e(_0x397c77,_0x4f0103),'opacity':ve(_0x397c77,_0x4f0103),'lineStrokeType':_0x568653['SolidLine'],'capType':_0x30b81e[_0x2d5305(0x83)],'lineJoinType':_0xe471ab[_0x2d5305(0x83)]}};}function K(_0x233197,_0x3ab8ef){return{'x':_0x233197['x']-_0x3ab8ef['x'],'y':_0x233197['y']-_0x3ab8ef['y']};}function be(_0xfaace9,_0x24ba2f){const _0x41fb44=_0x1ced;if(_0xfaace9['kind']===_0x41fb44(0xa3)){let _0x46f291=_0xfaace9[_0x41fb44(0xba)];if(_0x46f291[_0x41fb44(0xa4)]===0x0)return[];let _0x9d20e0=K(_0x46f291[0x0],_0x24ba2f),_0x1d6722=[{'command':'M','points':[_0x9d20e0['x'],_0x9d20e0['y']]}];for(let _0x255512=0x1;_0x255512<_0x46f291[_0x41fb44(0xa4)];_0x255512++){var _0x14b3ba,_0x58ad77;let _0x47449b=_0x46f291[_0x255512-0x1],_0x35f8c3=_0x46f291[_0x255512],_0x56c7a4=K((_0x14b3ba=_0x47449b[_0x41fb44(0xb2)])==null?_0x47449b:_0x14b3ba,_0x24ba2f),_0x5a6f5b=K((_0x58ad77=_0x35f8c3['in'])==null?_0x35f8c3:_0x58ad77,_0x24ba2f),_0x1fdcf5=K(_0x35f8c3,_0x24ba2f);_0x1d6722['push']({'command':'C','points':[_0x56c7a4['x'],_0x56c7a4['y'],_0x5a6f5b['x'],_0x5a6f5b['y'],_0x1fdcf5['x'],_0x1fdcf5['y']]});}if(_0xfaace9['closed']&&_0x46f291['length']>0x1){var _0x9dd2de,_0x81ac45;let _0x4fc166=_0x46f291[_0x46f291['length']-0x1],_0x3895c1=_0x46f291[0x0],_0x5f245e=K((_0x9dd2de=_0x4fc166[_0x41fb44(0xb2)])==null?_0x4fc166:_0x9dd2de,_0x24ba2f),_0x2a3f18=K((_0x81ac45=_0x3895c1['in'])==null?_0x3895c1:_0x81ac45,_0x24ba2f),_0x43a1c4=K(_0x3895c1,_0x24ba2f);_0x1d6722['push']({'command':'C','points':[_0x5f245e['x'],_0x5f245e['y'],_0x2a3f18['x'],_0x2a3f18['y'],_0x43a1c4['x'],_0x43a1c4['y']]}),_0x1d6722['push']({'command':'z','points':[]});}return _0x1d6722;}let _0x489f9c=_0xfaace9[_0x41fb44(0x8c)][_0x41fb44(0xce)](_0x41695b=>K(_0x41695b,_0x24ba2f));if(_0x489f9c[_0x41fb44(0xa4)]===0x0)return[];let _0x209968=[{'command':'M','points':[_0x489f9c[0x0]['x'],_0x489f9c[0x0]['y']]}];for(let _0x4dcb3f=0x0;_0x4dcb3f<_0x489f9c[_0x41fb44(0xa4)]-0x1;_0x4dcb3f++){var _0x2896d1,_0x361277;let _0x303ecf=_0x489f9c[_0x4dcb3f],_0x14ce62=_0x489f9c[_0x4dcb3f+0x1],_0x46023f=(_0x2896d1=_0x489f9c[_0x4dcb3f-0x1])==null?_0x303ecf:_0x2896d1,_0x220656=(_0x361277=_0x489f9c[_0x4dcb3f+0x2])==null?_0x14ce62:_0x361277,_0x5a3508={'x':_0x303ecf['x']+(_0x14ce62['x']-_0x46023f['x'])/0x6,'y':_0x303ecf['y']+(_0x14ce62['y']-_0x46023f['y'])/0x6},_0xf0ae73={'x':_0x14ce62['x']-(_0x220656['x']-_0x303ecf['x'])/0x6,'y':_0x14ce62['y']-(_0x220656['y']-_0x303ecf['y'])/0x6};_0x209968[_0x41fb44(0xb9)]({'command':'C','points':[_0x5a3508['x'],_0x5a3508['y'],_0xf0ae73['x'],_0xf0ae73['y'],_0x14ce62['x'],_0x14ce62['y']]});}return _0x209968;}function xe(_0x5ced35){const _0x2426a1=_0x1ced;var _0x524876;let {model:_0x855814,sourceModel:_0x4749c0=_0x855814,style:_0x27b2fc}=_0x5ced35,_0x39e8b7=(_0x524876=_0x5ced35[_0x2426a1(0x9f)])==null?_0x855814[_0x2426a1(0xb6)]:_0x524876,_0x84bffb=G(_0x855814),_0x1e77fb=_0x855814[_0x2426a1(0xb6)]===_0x2426a1(0xa3)&&_0x39e8b7!==_0x2426a1(0xa3)?_0x855814:void 0x0;return{'transform':{..._0x84bffb,'rotation':0x0},'shapeData':ye(_0x855814,_0x27b2fc),'ink':{'version':0x1,'tool':_0x39e8b7,'sourceModel':_0x4749c0,..._0x1e77fb?{'editModel':_0x1e77fb}:{},'normalizedBounds':_0x84bffb}};}var Se=_0x42e332(0x82),Ce=_0x42e332(0xaa);function q(_0x28796d){'@babel/helpers - typeof';const _0x1f2c62=_0x42e332;return q=typeof Symbol=='function'&&typeof Symbol[_0x1f2c62(0x7f)]=='symbol'?function(_0x52ce1e){return typeof _0x52ce1e;}:function(_0x216535){const _0x2f168e=_0x1f2c62;return _0x216535&&typeof Symbol==_0x2f168e(0x89)&&_0x216535['constructor']===Symbol&&_0x216535!==Symbol[_0x2f168e(0x7e)]?_0x2f168e(0x9a):typeof _0x216535;},q(_0x28796d);}function we(_0xb004fc,_0x3eef88){const _0x5a6bc1=_0x42e332;if(q(_0xb004fc)!='object'||!_0xb004fc)return _0xb004fc;var _0x36b9e6=_0xb004fc[Symbol[_0x5a6bc1(0x9b)]];if(_0x36b9e6!==void 0x0){var _0x31d247=_0x36b9e6[_0x5a6bc1(0xbf)](_0xb004fc,_0x3eef88||_0x5a6bc1(0xae));if(q(_0x31d247)!=_0x5a6bc1(0xd4))return _0x31d247;throw TypeError(_0x5a6bc1(0xd1));}return(_0x3eef88===_0x5a6bc1(0xc7)?String:Number)(_0xb004fc);}function J(_0x8e1c40){const _0x30d9e3=_0x42e332;var _0x1ac07a=we(_0x8e1c40,_0x30d9e3(0xc7));return q(_0x1ac07a)==_0x30d9e3(0x9a)?_0x1ac07a:_0x1ac07a+'';}function Y(_0xc367ae,_0x2ca74d,_0x35f757){const _0x302533=_0x42e332;return(_0x2ca74d=J(_0x2ca74d))in _0xc367ae?Object[_0x302533(0xd6)](_0xc367ae,_0x2ca74d,{'value':_0x35f757,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xc367ae[_0x2ca74d]=_0x35f757,_0xc367ae;}const X=_0x5690be(_0x42e332(0x94));var Te=class{constructor(){Y(this,'_adapters',[]);}[_0x42e332(0xc0)](_0xba8cd2){const _0x4526b1=_0x42e332;return this[_0x4526b1(0xa9)][_0x4526b1(0xb9)](_0xba8cd2),_0x4bf3a7(()=>{const _0x277cd0=_0x4526b1;let _0x5984ef=this[_0x277cd0(0xa9)][_0x277cd0(0xc6)](_0xba8cd2);_0x5984ef>=0x0&&this[_0x277cd0(0xa9)][_0x277cd0(0xc9)](_0x5984ef,0x1);});}[_0x42e332(0x95)](_0x7aed7f){const _0x23f1fa=_0x42e332;for(let _0x4b7762 of this[_0x23f1fa(0xa9)])if(_0x4b7762['beginInkMode'](_0x7aed7f))return!0x0;return!0x1;}async['createCustomShape'](_0x3243ec){const _0x1c076d=_0x42e332;for(let _0x4dde3a of this['_adapters'])if(_0x4dde3a['createCustomShape']&&await _0x4dde3a[_0x1c076d(0x8d)](_0x3243ec))return!0x0;return!0x1;}};const Ee={'id':_0x42e332(0xa1),'type':_0x2e7563['OPERATION'],'handler':(_0x2e11ec,_0x535a1b)=>_0x535a1b?_0x2e11ec[_0x42e332(0xa7)](X)['beginInkMode'](_0x535a1b):!0x1},Z={};function Q(_0x3b51e6,_0x3f9417){return function(_0x47485a,_0x1e63cd){_0x3f9417(_0x47485a,_0x1e63cd,_0x3b51e6);};}function De(_0x71168f,_0x113e07,_0x3328e1,_0x351eae){const _0x5d9d54=_0x42e332;var _0x5cc20d=arguments[_0x5d9d54(0xa4)],_0x12dfa3=_0x5cc20d<0x3?_0x113e07:_0x351eae===null?_0x351eae=Object['getOwnPropertyDescriptor'](_0x113e07,_0x3328e1):_0x351eae,_0x131fb8;if(typeof Reflect=='object'&&typeof Reflect['decorate']=='function')_0x12dfa3=Reflect['decorate'](_0x71168f,_0x113e07,_0x3328e1,_0x351eae);else{for(var _0x14568c=_0x71168f[_0x5d9d54(0xa4)]-0x1;_0x14568c>=0x0;_0x14568c--)(_0x131fb8=_0x71168f[_0x14568c])&&(_0x12dfa3=(_0x5cc20d<0x3?_0x131fb8(_0x12dfa3):_0x5cc20d>0x3?_0x131fb8(_0x113e07,_0x3328e1,_0x12dfa3):_0x131fb8(_0x113e07,_0x3328e1))||_0x12dfa3);}return _0x5cc20d>0x3&&_0x12dfa3&&Object[_0x5d9d54(0xd6)](_0x113e07,_0x3328e1,_0x12dfa3),_0x12dfa3;}let $=class extends _0x2449e5{constructor(_0x5e4e5b=Z,_0x58dfe1,_0x292053,_0x233c6f){const _0x4488c7=_0x42e332;super(),this[_0x4488c7(0x8a)]=_0x5e4e5b,this[_0x4488c7(0xcc)]=_0x58dfe1,this[_0x4488c7(0x9d)]=_0x292053,this[_0x4488c7(0xb8)]=_0x233c6f;let {..._0x880bb5}=_0x11b2d3({},Z,this[_0x4488c7(0x8a)]);this[_0x4488c7(0xb8)][_0x4488c7(0x99)]('ink.config',_0x880bb5);}[_0x42e332(0xa5)](){const _0x324fa2=_0x42e332;[[X,{'useClass':Te}]][_0x324fa2(0x93)](_0x4aa28b=>this['_injector']['add'](_0x4aa28b)),this['disposeWithMe'](this['_commandService']['registerCommand'](Ee));}};function _0x2777(){const _0x51428f=['get','fillColor','_adapters','1.0.0-alpha.3','endIndex','find','point','default','right','start','UNIVER_UNKNOWN','out','segmentIndex','min','slice','kind','opacity','_configService','push','anchors','filter','distance','smooth','none','call','registerAdapter','SolidFill','8858160rRYSbJ','#f54a45','6726GelLiu','abs','indexOf','string','tolerance','splice','free','round','_injector','width','map','closed','type','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','294lhEVpr','5515120Wczaes','object','version','defineProperty','prototype','iterator','anchorId','2485926oJqkTs','@univerjs-pro/ink','Round','corner','startIndex','7038CIDGAb','386063RWKxik','2177dGkTIG','function','_config','ratio','points','createCustomShape','anchor','69324FRdEaM','hypot','createId','pluginName','forEach','ink.host-adapter.service','beginInkMode','left','max','end','setConfig','symbol','toPrimitive','symmetric','_commandService','15zJioUu','tool','pointType','ink.operation.start','UNIVER_INK_PLUGIN','pen','length','onStarting','top'];_0x2777=function(){return _0x51428f;};return _0x2777();}Y($,_0x42e332(0x92),_0x42e332(0xa2)),Y($,'packageName',Se),Y($,_0x42e332(0xd5),Ce),Y($,_0x42e332(0xd0),_0x5370d0[_0x42e332(0xb1)]),$=De([_0x95406c(_0x3f4697),Q(0x1,_0x9103c7(_0x17a253)),Q(0x2,_0x1a1bff),Q(0x3,_0x2f7050)],$);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 _0x2e3b56=_0x2d27;(function(_0x4c131a,_0xc0d08c){const _0x3c99fd=_0x2d27,_0x244389=_0x4c131a();while(!![]){try{const _0x589aa8=-parseInt(_0x3c99fd(0x141))/0x1+-parseInt(_0x3c99fd(0x117))/0x2+-parseInt(_0x3c99fd(0x136))/0x3*(-parseInt(_0x3c99fd(0x14d))/0x4)+-parseInt(_0x3c99fd(0x134))/0x5*(-parseInt(_0x3c99fd(0x150))/0x6)+parseInt(_0x3c99fd(0x14a))/0x7*(parseInt(_0x3c99fd(0x14c))/0x8)+parseInt(_0x3c99fd(0x104))/0x9+-parseInt(_0x3c99fd(0xff))/0xa;if(_0x589aa8===_0xc0d08c)break;else _0x244389['push'](_0x244389['shift']());}catch(_0x4669aa){_0x244389['push'](_0x244389['shift']());}}}(_0x247f,0xd5749));import{ShapeFillEnum as _0x49ffcc,ShapeLineCapEnum as _0x159578,ShapeLineJoinEnum as _0x424331,ShapeLineTypeEnum as _0x56f9e7,ShapeTypeEnum as _0x497e0c}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x28261b}from'@univerjs-pro/license';import{CommandType as _0x1a46d0,DependentOn as _0x4e5fed,ICommandService as _0xb74673,IConfigService as _0xec36e4,Inject as _0x36e470,Injector as _0x80316c,Plugin as _0x5b9715,UniverInstanceType as _0x2c0ee9,createIdentifier as _0x1b5b97,merge as _0x48ad06,toDisposable as _0x1d67f1}from'@univerjs/core';const g=0.0001;function _(_0x93d90e){return{'x':_0x93d90e['x'],'y':_0x93d90e['y']};}function v(_0x2f80e2){const _0x48f252=_0x2d27;return{..._0x2f80e2,'in':_0x2f80e2['in']?_(_0x2f80e2['in']):void 0x0,'out':_0x2f80e2[_0x48f252(0x12d)]?_(_0x2f80e2[_0x48f252(0x12d)]):void 0x0};}function y(_0x3dd440){const _0x4e56b8=_0x2d27;return{'kind':_0x4e56b8(0x135),'closed':_0x3dd440[_0x4e56b8(0xf3)],'anchors':_0x3dd440[_0x4e56b8(0xf6)][_0x4e56b8(0x118)](v)};}function b(_0x7d5dc5,_0x15bbd2,_0x5b3e5b){return{'x':_0x7d5dc5['x']+(_0x15bbd2['x']-_0x7d5dc5['x'])*_0x5b3e5b,'y':_0x7d5dc5['y']+(_0x15bbd2['y']-_0x7d5dc5['y'])*_0x5b3e5b};}function x(_0x5e0605,_0xba7a24){const _0x3a05da=_0x2d27;return Math[_0x3a05da(0x13f)](_0x5e0605['x']-_0xba7a24['x'],_0x5e0605['y']-_0xba7a24['y']);}function S(_0x3e5676){let _0x2c0eab=Math['hypot'](_0x3e5676['x'],_0x3e5676['y']);return _0x2c0eab<g?{'x':0x1,'y':0x0}:{'x':_0x3e5676['x']/_0x2c0eab,'y':_0x3e5676['y']/_0x2c0eab};}function C(_0x562caf,_0x226fd2,_0x1c68a7=x(_0x562caf,_0x226fd2)){let _0x5f39ea=S({'x':_0x562caf['x']-_0x226fd2['x'],'y':_0x562caf['y']-_0x226fd2['y']});return{'x':_0x562caf['x']+_0x5f39ea['x']*_0x1c68a7,'y':_0x562caf['y']+_0x5f39ea['y']*_0x1c68a7};}function w(_0x12e1a1,_0xc9f4eb){const _0x29efe8=_0x2d27;let {anchors:_0x32538a}=_0x12e1a1;return _0x32538a[_0x29efe8(0xfd)]<0x2||_0xc9f4eb<0x0?null:_0xc9f4eb<_0x32538a[_0x29efe8(0xfd)]-0x1?{'startIndex':_0xc9f4eb,'endIndex':_0xc9f4eb+0x1,'start':_0x32538a[_0xc9f4eb],'end':_0x32538a[_0xc9f4eb+0x1]}:_0x12e1a1[_0x29efe8(0xf3)]&&_0xc9f4eb===_0x32538a[_0x29efe8(0xfd)]-0x1?{'startIndex':_0x32538a[_0x29efe8(0xfd)]-0x1,'endIndex':0x0,'start':_0x32538a[_0x32538a[_0x29efe8(0xfd)]-0x1],'end':_0x32538a[0x0]}:null;}function T(_0x3af419,_0x5a2f28){const _0x28472f=_0x2d27;var _0xe45d6d,_0x3c9187;let _0x312b4a=w(_0x3af419,_0x5a2f28);return _0x312b4a?[_0x312b4a['start'],(_0xe45d6d=_0x312b4a[_0x28472f(0x13d)]['out'])==null?_0x312b4a[_0x28472f(0x13d)]:_0xe45d6d,(_0x3c9187=_0x312b4a[_0x28472f(0x12a)]['in'])==null?_0x312b4a['end']:_0x3c9187,_0x312b4a[_0x28472f(0x12a)]]:null;}function te(_0x23930b,_0x56f055){var _0x93976d;return _0x56f055==='anchor'?_0x23930b:(_0x93976d=_0x23930b[_0x56f055])==null?null:_0x93976d;}function E(_0x309a8f,_0x328de8,_0x41bfca){const _0x196086=_0x2d27;return _0x41bfca===_0x196086(0x14b)||_0x309a8f['closed']?!0x0:_0x41bfca==='in'?_0x328de8>0x0:_0x328de8<_0x309a8f[_0x196086(0xf6)][_0x196086(0xfd)]-0x1;}function D(_0x3da967,_0x59837c){let [_0x3062f1,_0x41b561,_0x5912d9,_0x2c96f2]=_0x3da967,_0x281ee8=b(_0x3062f1,_0x41b561,_0x59837c),_0x3a35ca=b(_0x41b561,_0x5912d9,_0x59837c),_0x40e013=b(_0x5912d9,_0x2c96f2,_0x59837c);return b(b(_0x281ee8,_0x3a35ca,_0x59837c),b(_0x3a35ca,_0x40e013,_0x59837c),_0x59837c);}function ne(_0x4e717d,_0x4be864){let [_0x5c90b8,_0x1b56b7,_0x5d0e53,_0x133020]=_0x4e717d,_0x1e418e=b(_0x5c90b8,_0x1b56b7,_0x4be864),_0x105a3d=b(_0x1b56b7,_0x5d0e53,_0x4be864),_0x17a6f6=b(_0x5d0e53,_0x133020,_0x4be864),_0x50d6f0=b(_0x1e418e,_0x105a3d,_0x4be864),_0x25b650=b(_0x105a3d,_0x17a6f6,_0x4be864),_0x4324a4=b(_0x50d6f0,_0x25b650,_0x4be864);return{'left':[_0x5c90b8,_0x1e418e,_0x50d6f0,_0x4324a4],'right':[_0x4324a4,_0x25b650,_0x17a6f6,_0x133020]};}function O(_0x568316,_0x8fe576,_0x24e20c){const _0x2a6fb9=_0x2d27;let _0x1217c4=_0x24e20c['x']-_0x8fe576['x'],_0x50afb7=_0x24e20c['y']-_0x8fe576['y'],_0x3d2ba6=_0x1217c4*_0x1217c4+_0x50afb7*_0x50afb7,_0x5a48f2=_0x3d2ba6<=g?0x0:Math[_0x2a6fb9(0x12c)](0x0,Math[_0x2a6fb9(0x101)](0x1,((_0x568316['x']-_0x8fe576['x'])*_0x1217c4+(_0x568316['y']-_0x8fe576['y'])*_0x50afb7)/_0x3d2ba6)),_0x281122={'x':_0x8fe576['x']+_0x1217c4*_0x5a48f2,'y':_0x8fe576['y']+_0x50afb7*_0x5a48f2};return{'point':_0x281122,'ratio':_0x5a48f2,'distance':x(_0x568316,_0x281122)};}function re(_0x8929f2,_0x19c3a7,_0x3f059c){const _0xf6fdb3=_0x2d27;return O(_0x8929f2,_0x19c3a7,_0x3f059c)[_0xf6fdb3(0x124)]**0x2;}function k(_0x44a6b9,_0x1f14a8){const _0x21b679=_0x2d27;if(_0x44a6b9['length']<=0x2)return _0x44a6b9[_0x21b679(0x118)](_);let _0x2b772b=0x0,_0x623dbd=0x0,_0x17c922=_0x44a6b9[0x0],_0x13b4c0=_0x44a6b9[_0x44a6b9[_0x21b679(0xfd)]-0x1],_0x4f0163=_0x1f14a8*_0x1f14a8;for(let _0x49e9fe=0x1;_0x49e9fe<_0x44a6b9[_0x21b679(0xfd)]-0x1;_0x49e9fe++){let _0x65de19=re(_0x44a6b9[_0x49e9fe],_0x17c922,_0x13b4c0);_0x65de19>_0x2b772b&&(_0x2b772b=_0x65de19,_0x623dbd=_0x49e9fe);}if(_0x2b772b<=_0x4f0163)return[_(_0x17c922),_(_0x13b4c0)];let _0x229531=k(_0x44a6b9[_0x21b679(0x145)](0x0,_0x623dbd+0x1),_0x1f14a8),_0x535a3c=k(_0x44a6b9[_0x21b679(0x145)](_0x623dbd),_0x1f14a8);return[..._0x229531[_0x21b679(0x145)](0x0,-0x1),..._0x535a3c];}function ie(_0x3a3897,_0x49285e){var _0xd3c9f5;let _0x3966eb=_0x3a3897[_0x49285e],_0x316a82=_0x3a3897[_0x49285e+0x1],_0x3fd794=(_0xd3c9f5=_0x3a3897[_0x49285e-0x1])==null?_0x3966eb:_0xd3c9f5;return{'x':_0x3966eb['x']+(_0x316a82['x']-_0x3fd794['x'])/0x6,'y':_0x3966eb['y']+(_0x316a82['y']-_0x3fd794['y'])/0x6};}function _0x247f(){const _0x26e9bc=['@univerjs-pro/ink','prototype','length','packageName','7567630prCMQm','abs','min','push','version','10429299ZjHrLH','registerCommand','find','getOwnPropertyDescriptor','toPrimitive','endIndex','#f54a45','symmetric','UNIVER_UNKNOWN','object','norm','width','ink.operation.start','kind','function','splice','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','ink-centerline-','constructor','541956zKekGH','map','UNIVER_INK_PLUGIN','free','fillColor','call','right','get','string','left','ink.host-adapter.service','onStarting','pointType','distance','createCustomShape','findIndex','1.0.0-alpha.4','beginInkMode','disposeWithMe','end','sqrt','max','out','add','startIndex','Round','height','_injector','filter','95XEbvsi','pen','797925RjAFqT','_config','point','opacity','segmentIndex','_adapters','top','start','round','hypot','createId','1642436CuQJDo','join','points','smooth','slice','iterator','OPERATION','_configService','defineProperty','18536IyuewX','anchor','4408WoluzB','12rgDCWn','symbol','decorate','40644afCmFH','__ink-preview-anchor__','closed','type','color','anchors','ratio','forEach','corner','SolidFill'];_0x247f=function(){return _0x26e9bc;};return _0x247f();}function A(_0x29dfd6,_0x4ad533){var _0x1d655e;let _0x2db7b9=_0x29dfd6[_0x4ad533],_0xb0196e=_0x29dfd6[_0x4ad533-0x1],_0x48cf2c=(_0x1d655e=_0x29dfd6[_0x4ad533+0x1])==null?_0x2db7b9:_0x1d655e;return{'x':_0x2db7b9['x']-(_0x48cf2c['x']-_0xb0196e['x'])/0x6,'y':_0x2db7b9['y']-(_0x48cf2c['y']-_0xb0196e['y'])/0x6};}function _0x2d27(_0x46a514,_0x325767){_0x46a514=_0x46a514-0xf2;const _0x247f78=_0x247f();let _0x2d2719=_0x247f78[_0x46a514];return _0x2d2719;}function j(_0x312d14,_0x3bfc1d){const _0x1bad7c=_0x2d27;var _0x243b5a,_0x4d1069;let _0x481987=_0x312d14[_0x1bad7c(0xf6)][_0x3bfc1d],_0x2745e6=(_0x243b5a=_0x312d14[_0x1bad7c(0xf6)][_0x3bfc1d-0x1])==null?_0x312d14[_0x1bad7c(0xf3)]?_0x312d14['anchors'][_0x312d14['anchors']['length']-0x1]:null:_0x243b5a,_0x2d48eb=(_0x4d1069=_0x312d14[_0x1bad7c(0xf6)][_0x3bfc1d+0x1])==null?_0x312d14['closed']?_0x312d14[_0x1bad7c(0xf6)][0x0]:null:_0x4d1069,_0x4b010d=_0x2745e6&&_0x2d48eb?S({'x':_0x2d48eb['x']-_0x2745e6['x'],'y':_0x2d48eb['y']-_0x2745e6['y']}):_0x2d48eb?S({'x':_0x2d48eb['x']-_0x481987['x'],'y':_0x2d48eb['y']-_0x481987['y']}):_0x2745e6?S({'x':_0x481987['x']-_0x2745e6['x'],'y':_0x481987['y']-_0x2745e6['y']}):{'x':0x1,'y':0x0},_0x527a9b=_0x2745e6&&_0x2d48eb?Math[_0x1bad7c(0x12c)](0x32,x(_0x2745e6,_0x2d48eb)/0x4):0x32;return{'in':{'x':_0x481987['x']-_0x4b010d['x']*_0x527a9b,'y':_0x481987['y']-_0x4b010d['y']*_0x527a9b},'out':{'x':_0x481987['x']+_0x4b010d['x']*_0x527a9b,'y':_0x481987['y']+_0x4b010d['y']*_0x527a9b}};}function M(_0x4b61f5,_0x47e9ac){const _0x57a79f=_0x2d27;let _0x30fa9f=_0x4b61f5[_0x47e9ac],_0xf1448a=_0x47e9ac==='in'?_0x57a79f(0x12d):'in',_0xf05aad=_0x4b61f5[_0xf1448a];if(_0x30fa9f){if(_0x4b61f5[_0x57a79f(0x123)]===_0x57a79f(0x10b)){_0x4b61f5[_0xf1448a]=C(_0x4b61f5,_0x30fa9f);return;}_0x4b61f5[_0x57a79f(0x123)]===_0x57a79f(0x144)&&(_0x4b61f5[_0xf1448a]=C(_0x4b61f5,_0x30fa9f,_0xf05aad?x(_0x4b61f5,_0xf05aad):x(_0x4b61f5,_0x30fa9f)));}}function ae(_0x45c0c5,_0x5b49bd){const _0x382031=_0x2d27;let _0x5207be=y(_0x45c0c5);return!_0x5b49bd||_0x5207be[_0x382031(0xf3)]||_0x5207be[_0x382031(0xf6)]['length']===0x0||_0x5207be['anchors'][_0x382031(0x102)]({'id':_0x382031(0xf2),'x':_0x5b49bd['x'],'y':_0x5b49bd['y'],'pointType':_0x382031(0xf9)}),_0x5207be;}function oe(_0x535ee3,_0x1039f0={}){const _0x15eef8=_0x2d27;var _0x553c01,_0x4656e4;let _0x28b242=Math['max'](0x0,(_0x553c01=_0x1039f0['tolerance'])==null?Math[_0x15eef8(0x12c)](0x4,_0x535ee3[_0x15eef8(0x10f)]*0.35):_0x553c01),_0x3c3ed4=(_0x4656e4=_0x1039f0[_0x15eef8(0x140)])==null?_0x36f06b=>_0x15eef8(0x115)+_0x36f06b:_0x4656e4,_0x841f46=k(_0x535ee3['points'],_0x28b242),_0x627a69=_0x841f46[_0x15eef8(0x118)]((_0x27d562,_0x17cad3)=>({'id':_0x3c3ed4(_0x17cad3),'x':_0x27d562['x'],'y':_0x27d562['y'],'pointType':_0x15eef8(0x11a)}));for(let _0x218981=0x0;_0x218981<_0x627a69[_0x15eef8(0xfd)]-0x1;_0x218981++)_0x627a69[_0x218981]['out']=ie(_0x841f46,_0x218981),_0x627a69[_0x218981+0x1]['in']=A(_0x841f46,_0x218981+0x1);return{'kind':_0x15eef8(0x135),'closed':!0x1,'anchors':_0x627a69};}function se(_0xc5e94,_0x328f48,_0x2ed2f1){const _0x3544be=_0x2d27;let _0x47c61b=null,_0x36d925=[_0x3544be(0x14b),'in',_0x3544be(0x12d)];return _0xc5e94['anchors'][_0x3544be(0xf8)]((_0x54050a,_0x4d5eba)=>{const _0x445449=_0x3544be;_0x36d925[_0x445449(0xf8)](_0x45b0a7=>{const _0x1b5d52=_0x445449;if(!E(_0xc5e94,_0x4d5eba,_0x45b0a7))return;let _0x39e85a=te(_0x54050a,_0x45b0a7);if(!_0x39e85a)return;let _0x59b90a=x(_0x328f48,_0x39e85a);_0x59b90a>_0x2ed2f1||_0x47c61b&&_0x59b90a>=_0x47c61b[_0x1b5d52(0x124)]||(_0x47c61b={'handle':{'kind':_0x45b0a7,'anchorId':_0x54050a['id']},'point':_(_0x39e85a),'distance':_0x59b90a});});}),_0x47c61b;}function ce(_0x2aa1a6,_0xa24ba6,_0x50bd04){const _0x408f8b=_0x2d27;let _0x52aa9d=null,_0x1d8d3e=_0x2aa1a6[_0x408f8b(0xf3)]?_0x2aa1a6['anchors'][_0x408f8b(0xfd)]:Math['max'](0x0,_0x2aa1a6[_0x408f8b(0xf6)][_0x408f8b(0xfd)]-0x1);for(let _0x9e90ec=0x0;_0x9e90ec<_0x1d8d3e;_0x9e90ec++){let _0x15eef5=T(_0x2aa1a6,_0x9e90ec);if(!_0x15eef5)continue;let _0x3f7911=D(_0x15eef5,0x0);for(let _0x212ca8=0x1;_0x212ca8<=0x20;_0x212ca8++){let _0xd40039=D(_0x15eef5,_0x212ca8/0x20),_0x8ab98c=O(_0xa24ba6,_0x3f7911,_0xd40039),_0x1f0163=(_0x212ca8-0x1+_0x8ab98c[_0x408f8b(0xf7)])/0x20;(!_0x52aa9d||_0x8ab98c[_0x408f8b(0x124)]<_0x52aa9d[_0x408f8b(0x124)])&&(_0x52aa9d={'segmentIndex':_0x9e90ec,'t':_0x1f0163,'point':_0x8ab98c[_0x408f8b(0x138)],'distance':_0x8ab98c[_0x408f8b(0x124)]}),_0x3f7911=_0xd40039;}}return _0x52aa9d&&_0x52aa9d[_0x408f8b(0x124)]<=_0x50bd04?_0x52aa9d:null;}function le(_0x24fc32,_0x232477,_0x4366c5){const _0x59f0ac=_0x2d27;let _0x3e97e3=y(_0x24fc32),_0x3ceb53=w(_0x3e97e3,_0x232477[_0x59f0ac(0x13a)]),_0xafa24a=T(_0x3e97e3,_0x232477[_0x59f0ac(0x13a)]);if(!_0x3ceb53||!_0xafa24a)return _0x3e97e3;let _0x377481=ne(_0xafa24a,Math[_0x59f0ac(0x12c)](0x0,Math[_0x59f0ac(0x101)](0x1,_0x232477['t']))),_0x1c360d={'id':_0x4366c5(),'x':_0x377481[_0x59f0ac(0x120)][0x3]['x'],'y':_0x377481[_0x59f0ac(0x120)][0x3]['y'],'in':_(_0x377481[_0x59f0ac(0x120)][0x2]),'out':_(_0x377481['right'][0x1]),'pointType':_0x59f0ac(0x11a)};return _0x3e97e3['anchors'][_0x3ceb53[_0x59f0ac(0x12f)]][_0x59f0ac(0x12d)]=_(_0x377481[_0x59f0ac(0x120)][0x1]),_0x3e97e3['anchors'][_0x3ceb53[_0x59f0ac(0x109)]]['in']=_(_0x377481[_0x59f0ac(0x11d)][0x2]),_0x3e97e3['anchors']['splice'](_0x3ceb53['startIndex']+0x1,0x0,_0x1c360d),_0x3e97e3;}function ue(_0x1d304b,_0x2dcbdb){const _0x5e0eab=_0x2d27;let _0x28febf=y(_0x1d304b);return _0x28febf[_0x5e0eab(0xf6)]=_0x28febf[_0x5e0eab(0xf6)][_0x5e0eab(0x133)](_0x5063e0=>_0x5063e0['id']!==_0x2dcbdb),_0x28febf[_0x5e0eab(0xf3)]&&_0x28febf[_0x5e0eab(0xf6)]['length']<0x3&&(_0x28febf[_0x5e0eab(0xf3)]=!0x1),_0x28febf;}function N(_0x1b48c3,_0x58d544,_0x3da1f7){const _0x8c2eec=_0x2d27;let _0x9f07e2=y(_0x1b48c3),_0x32a433=_0x9f07e2['anchors'][_0x8c2eec(0x126)](_0x1886ea=>_0x1886ea['id']===_0x58d544),_0x332257=_0x9f07e2[_0x8c2eec(0xf6)][_0x32a433];if(!_0x332257)return _0x9f07e2;if(_0x332257['pointType']=_0x3da1f7,_0x3da1f7===_0x8c2eec(0xf9))return delete _0x332257['in'],delete _0x332257['out'],_0x9f07e2;let _0x3364a2=j(_0x9f07e2,_0x32a433);if(_0x332257['in']=_0x332257['in']?_(_0x332257['in']):_0x3364a2['in'],_0x332257[_0x8c2eec(0x12d)]=_0x332257[_0x8c2eec(0x12d)]?_(_0x332257['out']):_0x3364a2[_0x8c2eec(0x12d)],_0x3da1f7===_0x8c2eec(0x10b)){let _0x1678a1=Math['max'](x(_0x332257,_0x332257['in']),x(_0x332257,_0x332257[_0x8c2eec(0x12d)]),0x32),_0x5c06a6=S({'x':_0x332257[_0x8c2eec(0x12d)]['x']-_0x332257['x'],'y':_0x332257[_0x8c2eec(0x12d)]['y']-_0x332257['y']});_0x332257[_0x8c2eec(0x12d)]={'x':_0x332257['x']+_0x5c06a6['x']*_0x1678a1,'y':_0x332257['y']+_0x5c06a6['y']*_0x1678a1},_0x332257['in']={'x':_0x332257['x']-_0x5c06a6['x']*_0x1678a1,'y':_0x332257['y']-_0x5c06a6['y']*_0x1678a1};}else _0x3da1f7==='smooth'&&M(_0x332257,_0x8c2eec(0x12d));return _0x9f07e2;}function P(_0x4646d0,_0x580530){const _0x5d7d61=_0x2d27;var _0x50d22c;let _0x26240d=_0x4646d0[_0x5d7d61(0xf6)][_0x5d7d61(0x106)](_0xa8876f=>_0xa8876f['id']===_0x580530),_0x4f02cd=(_0x50d22c=_0x26240d==null?void 0x0:_0x26240d['pointType'])==null?'corner':_0x50d22c;return N(_0x4646d0,_0x580530,_0x4f02cd===_0x5d7d61(0xf9)?'smooth':_0x4f02cd===_0x5d7d61(0x144)?_0x5d7d61(0x10b):_0x4f02cd===_0x5d7d61(0x10b)?'free':_0x5d7d61(0xf9));}function F(_0x40c323,_0x29c665,_0x209330){const _0x374045=_0x2d27;let _0x1b8478=y(_0x40c323),_0xea8a60=_0x1b8478[_0x374045(0xf6)][_0x374045(0x106)](_0x49529d=>_0x49529d['id']===_0x29c665['anchorId']);if(!_0xea8a60)return _0x1b8478;if(_0x29c665[_0x374045(0x111)]===_0x374045(0x14b)){let _0x462301={'x':_0x209330['x']-_0xea8a60['x'],'y':_0x209330['y']-_0xea8a60['y']};return _0xea8a60['x']=_0x209330['x'],_0xea8a60['y']=_0x209330['y'],_0xea8a60['in']&&(_0xea8a60['in']={'x':_0xea8a60['in']['x']+_0x462301['x'],'y':_0xea8a60['in']['y']+_0x462301['y']}),_0xea8a60[_0x374045(0x12d)]&&(_0xea8a60[_0x374045(0x12d)]={'x':_0xea8a60[_0x374045(0x12d)]['x']+_0x462301['x'],'y':_0xea8a60[_0x374045(0x12d)]['y']+_0x462301['y']}),_0x1b8478;}return _0xea8a60[_0x29c665['kind']]=_(_0x209330),_0xea8a60['pointType']===_0x374045(0xf9)&&(_0xea8a60[_0x374045(0x123)]=_0x374045(0x11a)),M(_0xea8a60,_0x29c665['kind']),_0x1b8478;}const I=1e-9;function L(_0x117846){let _0x125e9d=Math['round'](_0x117846*0x2710)/0x2710;return Object['is'](_0x125e9d,-0x0)?'0':String(_0x125e9d);}function R(_0x3d9356){return L(_0x3d9356['x'])+'\x20'+L(_0x3d9356['y']);}function z(_0x436733,_0x41e7e1){return{'x':_0x436733['x']-_0x41e7e1['x'],'y':_0x436733['y']-_0x41e7e1['y']};}function B(_0x4f1811,_0x3e9e16,_0x5631bf,_0x27f88b,_0x14fa00){let _0x48045a=0x1-_0x14fa00;return{'x':_0x48045a*_0x48045a*_0x48045a*_0x4f1811['x']+0x3*_0x48045a*_0x48045a*_0x14fa00*_0x3e9e16['x']+0x3*_0x48045a*_0x14fa00*_0x14fa00*_0x5631bf['x']+_0x14fa00*_0x14fa00*_0x14fa00*_0x27f88b['x'],'y':_0x48045a*_0x48045a*_0x48045a*_0x4f1811['y']+0x3*_0x48045a*_0x48045a*_0x14fa00*_0x3e9e16['y']+0x3*_0x48045a*_0x14fa00*_0x14fa00*_0x5631bf['y']+_0x14fa00*_0x14fa00*_0x14fa00*_0x27f88b['y']};}function V(_0xc4a6bb,_0x13cdbd,_0x3b91ea,_0x1e62d0){const _0x235fb2=_0x2d27;let _0x59a549=-_0xc4a6bb+0x3*_0x13cdbd-0x3*_0x3b91ea+_0x1e62d0,_0x28f729=0x3*_0xc4a6bb-0x6*_0x13cdbd+0x3*_0x3b91ea,_0x98b950=-0x3*_0xc4a6bb+0x3*_0x13cdbd,_0x39248c=[];if(Math[_0x235fb2(0x100)](_0x59a549)<I){if(Math[_0x235fb2(0x100)](_0x28f729)<I)return _0x39248c;let _0x27ec85=-_0x98b950/(0x2*_0x28f729);return _0x27ec85>0x0&&_0x27ec85<0x1&&_0x39248c[_0x235fb2(0x102)](_0x27ec85),_0x39248c;}let _0xcad79a=_0x28f729*_0x28f729-0x3*_0x59a549*_0x98b950;if(_0xcad79a<0x0)return _0x39248c;let _0xca5800=Math[_0x235fb2(0x12b)](Math[_0x235fb2(0x12c)](0x0,_0xcad79a)),_0x40d2b9=(-_0x28f729+_0xca5800)/(0x3*_0x59a549),_0x595e36=(-_0x28f729-_0xca5800)/(0x3*_0x59a549);return _0x40d2b9>0x0&&_0x40d2b9<0x1&&_0x39248c['push'](_0x40d2b9),_0x595e36>0x0&&_0x595e36<0x1&&Math[_0x235fb2(0x100)](_0x595e36-_0x40d2b9)>I&&_0x39248c[_0x235fb2(0x102)](_0x595e36),_0x39248c;}function H(_0x4910e0,_0x44fd6b,_0x19f924,_0x856b9e,_0x26afec){const _0x4220e6=_0x2d27;_0x4910e0[_0x4220e6(0x102)](_0x44fd6b,_0x26afec),new Set([...V(_0x44fd6b['x'],_0x19f924['x'],_0x856b9e['x'],_0x26afec['x']),...V(_0x44fd6b['y'],_0x19f924['y'],_0x856b9e['y'],_0x26afec['y'])])['forEach'](_0x297f6a=>{const _0x402b5d=_0x4220e6;_0x4910e0[_0x402b5d(0x102)](B(_0x44fd6b,_0x19f924,_0x856b9e,_0x26afec,_0x297f6a));});}function U(_0x9e5b31){const _0x228a31=_0x2d27;let _0x23ab92=_0x9e5b31['anchors'];if(_0x23ab92['length']<=0x1)return _0x23ab92;let _0x24c613=[];for(let _0xe9d1cc=0x1;_0xe9d1cc<_0x23ab92[_0x228a31(0xfd)];_0xe9d1cc++){var _0x249320,_0x3ebdc5;let _0x5416e6=_0x23ab92[_0xe9d1cc-0x1],_0x484ee3=_0x23ab92[_0xe9d1cc];H(_0x24c613,_0x5416e6,(_0x249320=_0x5416e6['out'])==null?_0x5416e6:_0x249320,(_0x3ebdc5=_0x484ee3['in'])==null?_0x484ee3:_0x3ebdc5,_0x484ee3);}if(_0x9e5b31[_0x228a31(0xf3)]&&_0x23ab92[_0x228a31(0xfd)]>0x1){var _0xa48706,_0x85e96a;let _0x25b267=_0x23ab92[_0x23ab92[_0x228a31(0xfd)]-0x1],_0x2ca612=_0x23ab92[0x0];H(_0x24c613,_0x25b267,(_0xa48706=_0x25b267[_0x228a31(0x12d)])==null?_0x25b267:_0xa48706,(_0x85e96a=_0x2ca612['in'])==null?_0x2ca612:_0x85e96a,_0x2ca612);}return _0x24c613;}function de(_0x58a96a){const _0x30b7c0=_0x2d27;let _0x5d8af7=_0x58a96a[_0x30b7c0(0x143)];if(_0x5d8af7[_0x30b7c0(0xfd)]<=0x1)return _0x5d8af7;let _0x6e3779=[];for(let _0x1677b4=0x0;_0x1677b4<_0x5d8af7[_0x30b7c0(0xfd)]-0x1;_0x1677b4++){var _0x7a1805,_0x26e9e1;let _0x3c74ec=_0x5d8af7[_0x1677b4],_0xa88980=_0x5d8af7[_0x1677b4+0x1],_0x577e7c=(_0x7a1805=_0x5d8af7[_0x1677b4-0x1])==null?_0x3c74ec:_0x7a1805,_0x1a9fa3=(_0x26e9e1=_0x5d8af7[_0x1677b4+0x2])==null?_0xa88980:_0x26e9e1;H(_0x6e3779,_0x3c74ec,{'x':_0x3c74ec['x']+(_0xa88980['x']-_0x577e7c['x'])/0x6,'y':_0x3c74ec['y']+(_0xa88980['y']-_0x577e7c['y'])/0x6},{'x':_0xa88980['x']-(_0x1a9fa3['x']-_0x3c74ec['x'])/0x6,'y':_0xa88980['y']-(_0x1a9fa3['y']-_0x3c74ec['y'])/0x6},_0xa88980);}return _0x6e3779;}function fe(_0x33e4f9){const _0x478b36=_0x2d27;return _0x33e4f9['kind']===_0x478b36(0x135)?U(_0x33e4f9):de(_0x33e4f9);}function W(_0x5d90ce){const _0x106ceb=_0x2d27;let _0x3e98c4=Math[_0x106ceb(0x13e)](_0x5d90ce*0x2710)/0x2710;return Object['is'](_0x3e98c4,-0x0)?0x0:_0x3e98c4;}function G(_0x24141b){const _0x15b0eb=_0x2d27;let _0x1ade8a=fe(_0x24141b);if(_0x1ade8a[_0x15b0eb(0xfd)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x45ca80=Math['min'](..._0x1ade8a[_0x15b0eb(0x118)](_0x1b7d25=>_0x1b7d25['x'])),_0x46a414=Math[_0x15b0eb(0x101)](..._0x1ade8a['map'](_0x705e05=>_0x705e05['y'])),_0x34d7f8=Math[_0x15b0eb(0x12c)](..._0x1ade8a[_0x15b0eb(0x118)](_0x82c095=>_0x82c095['x'])),_0x1f3f88=Math[_0x15b0eb(0x12c)](..._0x1ade8a[_0x15b0eb(0x118)](_0x535faa=>_0x535faa['y']));return{'left':W(_0x45ca80),'top':W(_0x46a414),'width':W(Math[_0x15b0eb(0x12c)](0x1,_0x34d7f8-_0x45ca80)),'height':W(Math[_0x15b0eb(0x12c)](0x1,_0x1f3f88-_0x46a414))};}function pe(_0xa8d8f4,_0x2b0cd9){const _0x4e5175=_0x2d27;let _0x2cfd00=_0xa8d8f4[_0x4e5175(0xf6)];if(_0x2cfd00[_0x4e5175(0xfd)]===0x0)return'';let _0x11b554=['M\x20'+R(z(_0x2cfd00[0x0],_0x2b0cd9))];for(let _0x503007=0x1;_0x503007<_0x2cfd00[_0x4e5175(0xfd)];_0x503007++){var _0x3b3e90,_0x35552b;let _0x2e6325=_0x2cfd00[_0x503007-0x1],_0x33aae5=_0x2cfd00[_0x503007],_0xe60940=(_0x3b3e90=_0x2e6325[_0x4e5175(0x12d)])==null?_0x2e6325:_0x3b3e90,_0x4d4dc7=(_0x35552b=_0x33aae5['in'])==null?_0x33aae5:_0x35552b;_0x11b554[_0x4e5175(0x102)]('C\x20'+R(z(_0xe60940,_0x2b0cd9))+'\x20'+R(z(_0x4d4dc7,_0x2b0cd9))+'\x20'+R(z(_0x33aae5,_0x2b0cd9)));}if(_0xa8d8f4[_0x4e5175(0xf3)]&&_0x2cfd00[_0x4e5175(0xfd)]>0x1){var _0x1c7e8c,_0x8ac50b;let _0x4e085b=_0x2cfd00[_0x2cfd00[_0x4e5175(0xfd)]-0x1],_0x4e8889=_0x2cfd00[0x0],_0x37249d=(_0x1c7e8c=_0x4e085b[_0x4e5175(0x12d)])==null?_0x4e085b:_0x1c7e8c,_0x4f6674=(_0x8ac50b=_0x4e8889['in'])==null?_0x4e8889:_0x8ac50b;_0x11b554[_0x4e5175(0x102)]('C\x20'+R(z(_0x37249d,_0x2b0cd9))+'\x20'+R(z(_0x4f6674,_0x2b0cd9))+'\x20'+R(z(_0x4e8889,_0x2b0cd9))),_0x11b554['push']('Z');}return _0x11b554[_0x4e5175(0x142)]('\x20');}function me(_0x1cc52a,_0x4a4d69){const _0x347c54=_0x2d27;let _0x30c287=_0x1cc52a[_0x347c54(0x143)][_0x347c54(0x118)](_0x54d188=>z(_0x54d188,_0x4a4d69));if(_0x30c287['length']===0x0)return'';if(_0x30c287[_0x347c54(0xfd)]===0x1)return'M\x20'+R(_0x30c287[0x0]);let _0x1b7e5e=['M\x20'+R(_0x30c287[0x0])];for(let _0x17ca42=0x0;_0x17ca42<_0x30c287[_0x347c54(0xfd)]-0x1;_0x17ca42++){var _0x121d5b,_0x14a5fe;let _0x7749b8=_0x30c287[_0x17ca42],_0x56d6d2=_0x30c287[_0x17ca42+0x1],_0x305900=(_0x121d5b=_0x30c287[_0x17ca42-0x1])==null?_0x7749b8:_0x121d5b,_0x3bc6c5=(_0x14a5fe=_0x30c287[_0x17ca42+0x2])==null?_0x56d6d2:_0x14a5fe,_0x349f2f={'x':_0x7749b8['x']+(_0x56d6d2['x']-_0x305900['x'])/0x6,'y':_0x7749b8['y']+(_0x56d6d2['y']-_0x305900['y'])/0x6},_0x747410={'x':_0x56d6d2['x']-(_0x3bc6c5['x']-_0x7749b8['x'])/0x6,'y':_0x56d6d2['y']-(_0x3bc6c5['y']-_0x7749b8['y'])/0x6};_0x1b7e5e['push']('C\x20'+R(_0x349f2f)+'\x20'+R(_0x747410)+'\x20'+R(_0x56d6d2));}return _0x1b7e5e[_0x347c54(0x142)]('\x20');}function he(_0x533e88,_0xce93b7){const _0x1cc5da=_0x2d27;return _0x533e88[_0x1cc5da(0x111)]==='pen'?pe(_0x533e88,_0xce93b7):me(_0x533e88,_0xce93b7);}function ge(_0x23ed3d,_0x58921a){const _0x1d6f02=_0x2d27;return _0x58921a!=null&&_0x58921a[_0x1d6f02(0xf5)]?_0x58921a['color']:_0x23ed3d[_0x1d6f02(0x111)]===_0x1d6f02(0x135)?_0x1d6f02(0x10a):_0x23ed3d[_0x1d6f02(0xf5)];}function _e(_0x539814,_0x365c2d){const _0x599da3=_0x2d27;return(_0x365c2d==null?void 0x0:_0x365c2d[_0x599da3(0x10f)])===void 0x0?_0x539814[_0x599da3(0x111)]===_0x599da3(0x135)?0x2:_0x539814[_0x599da3(0x10f)]:_0x365c2d[_0x599da3(0x10f)];}function ve(_0xb5c25d,_0x30f7d6){const _0x3524ae=_0x2d27;return(_0x30f7d6==null?void 0x0:_0x30f7d6[_0x3524ae(0x139)])===void 0x0?_0xb5c25d[_0x3524ae(0x111)]==='pen'?void 0x0:_0xb5c25d[_0x3524ae(0x139)]:_0x30f7d6[_0x3524ae(0x139)];}function ye(_0x5702f1,_0x2e8105){const _0x2225d7=_0x2d27;let _0x3eb7bb=G(_0x5702f1),_0x17e9a4=he(_0x5702f1,{'x':_0x3eb7bb[_0x2225d7(0x120)],'y':_0x3eb7bb[_0x2225d7(0x13c)]}),_0x18a039=_0x5702f1[_0x2225d7(0x111)]===_0x2225d7(0x135)&&_0x5702f1['closed'],_0x4cde2d=_0x2e8105==null?void 0x0:_0x2e8105[_0x2225d7(0x11b)];return{'shapeType':_0x497e0c['Rect'],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x3eb7bb[_0x2225d7(0x10f)],'h':_0x3eb7bb[_0x2225d7(0x131)],'fill':_0x18a039?_0x2225d7(0x10e):'none','stroke':!0x0,'data':_0x17e9a4,'dataArray':be(_0x5702f1,{'x':_0x3eb7bb[_0x2225d7(0x120)],'y':_0x3eb7bb[_0x2225d7(0x13c)]})}]},'fill':_0x18a039&&_0x4cde2d?{'color':_0x4cde2d,'fillType':_0x49ffcc[_0x2225d7(0xfa)]}:{'fillType':_0x49ffcc['NoFill']},'stroke':{'color':ge(_0x5702f1,_0x2e8105),'width':_e(_0x5702f1,_0x2e8105),'opacity':ve(_0x5702f1,_0x2e8105),'lineStrokeType':_0x56f9e7['SolidLine'],'capType':_0x159578[_0x2225d7(0x130)],'lineJoinType':_0x424331[_0x2225d7(0x130)]}};}function K(_0x39a490,_0x928a39){return{'x':_0x39a490['x']-_0x928a39['x'],'y':_0x39a490['y']-_0x928a39['y']};}function be(_0x267e5b,_0x392ec2){const _0x129fd7=_0x2d27;if(_0x267e5b[_0x129fd7(0x111)]===_0x129fd7(0x135)){let _0x1b3e52=_0x267e5b[_0x129fd7(0xf6)];if(_0x1b3e52['length']===0x0)return[];let _0x5535e1=K(_0x1b3e52[0x0],_0x392ec2),_0xcec6e9=[{'command':'M','points':[_0x5535e1['x'],_0x5535e1['y']]}];for(let _0x5d3ea3=0x1;_0x5d3ea3<_0x1b3e52['length'];_0x5d3ea3++){var _0x3b9b5d,_0x33dadb;let _0x2ab6ce=_0x1b3e52[_0x5d3ea3-0x1],_0x3fb24d=_0x1b3e52[_0x5d3ea3],_0x1c7fae=K((_0x3b9b5d=_0x2ab6ce[_0x129fd7(0x12d)])==null?_0x2ab6ce:_0x3b9b5d,_0x392ec2),_0x8494a6=K((_0x33dadb=_0x3fb24d['in'])==null?_0x3fb24d:_0x33dadb,_0x392ec2),_0x35926c=K(_0x3fb24d,_0x392ec2);_0xcec6e9[_0x129fd7(0x102)]({'command':'C','points':[_0x1c7fae['x'],_0x1c7fae['y'],_0x8494a6['x'],_0x8494a6['y'],_0x35926c['x'],_0x35926c['y']]});}if(_0x267e5b[_0x129fd7(0xf3)]&&_0x1b3e52[_0x129fd7(0xfd)]>0x1){var _0x2a70f1,_0x328eaa;let _0x1448bc=_0x1b3e52[_0x1b3e52['length']-0x1],_0x31d3d1=_0x1b3e52[0x0],_0x5b0bdb=K((_0x2a70f1=_0x1448bc[_0x129fd7(0x12d)])==null?_0x1448bc:_0x2a70f1,_0x392ec2),_0x80f16c=K((_0x328eaa=_0x31d3d1['in'])==null?_0x31d3d1:_0x328eaa,_0x392ec2),_0x4373f3=K(_0x31d3d1,_0x392ec2);_0xcec6e9[_0x129fd7(0x102)]({'command':'C','points':[_0x5b0bdb['x'],_0x5b0bdb['y'],_0x80f16c['x'],_0x80f16c['y'],_0x4373f3['x'],_0x4373f3['y']]}),_0xcec6e9['push']({'command':'z','points':[]});}return _0xcec6e9;}let _0x3d16cb=_0x267e5b[_0x129fd7(0x143)]['map'](_0x487c8a=>K(_0x487c8a,_0x392ec2));if(_0x3d16cb[_0x129fd7(0xfd)]===0x0)return[];let _0x316801=[{'command':'M','points':[_0x3d16cb[0x0]['x'],_0x3d16cb[0x0]['y']]}];for(let _0x1bcfaa=0x0;_0x1bcfaa<_0x3d16cb[_0x129fd7(0xfd)]-0x1;_0x1bcfaa++){var _0xd7bf1b,_0x37d8c0;let _0x46fde8=_0x3d16cb[_0x1bcfaa],_0x4c40b2=_0x3d16cb[_0x1bcfaa+0x1],_0x49f7d2=(_0xd7bf1b=_0x3d16cb[_0x1bcfaa-0x1])==null?_0x46fde8:_0xd7bf1b,_0x750b3e=(_0x37d8c0=_0x3d16cb[_0x1bcfaa+0x2])==null?_0x4c40b2:_0x37d8c0,_0x2f9cfd={'x':_0x46fde8['x']+(_0x4c40b2['x']-_0x49f7d2['x'])/0x6,'y':_0x46fde8['y']+(_0x4c40b2['y']-_0x49f7d2['y'])/0x6},_0x485d38={'x':_0x4c40b2['x']-(_0x750b3e['x']-_0x46fde8['x'])/0x6,'y':_0x4c40b2['y']-(_0x750b3e['y']-_0x46fde8['y'])/0x6};_0x316801[_0x129fd7(0x102)]({'command':'C','points':[_0x2f9cfd['x'],_0x2f9cfd['y'],_0x485d38['x'],_0x485d38['y'],_0x4c40b2['x'],_0x4c40b2['y']]});}return _0x316801;}function xe(_0x2eff88){const _0x423e2c=_0x2d27;var _0x431223;let {model:_0x5dd4f7,sourceModel:_0x138319=_0x5dd4f7,style:_0x5402e5}=_0x2eff88,_0x46dbc7=(_0x431223=_0x2eff88['tool'])==null?_0x5dd4f7[_0x423e2c(0x111)]:_0x431223,_0x5027c3=G(_0x5dd4f7),_0x3f23d7=_0x5dd4f7[_0x423e2c(0x111)]===_0x423e2c(0x135)&&_0x46dbc7!==_0x423e2c(0x135)?_0x5dd4f7:void 0x0;return{'transform':{..._0x5027c3,'rotation':0x0},'shapeData':ye(_0x5dd4f7,_0x5402e5),'ink':{'version':0x1,'tool':_0x46dbc7,'sourceModel':_0x138319,..._0x3f23d7?{'editModel':_0x3f23d7}:{},'normalizedBounds':_0x5027c3}};}var Se=_0x2e3b56(0xfb),Ce=_0x2e3b56(0x127);function q(_0x15a6c4){'@babel/helpers - typeof';const _0x121911=_0x2e3b56;return q=typeof Symbol==_0x121911(0x112)&&typeof Symbol[_0x121911(0x146)]==_0x121911(0x14e)?function(_0x2717da){return typeof _0x2717da;}:function(_0x1cf911){const _0x363bb7=_0x121911;return _0x1cf911&&typeof Symbol==_0x363bb7(0x112)&&_0x1cf911[_0x363bb7(0x116)]===Symbol&&_0x1cf911!==Symbol[_0x363bb7(0xfc)]?_0x363bb7(0x14e):typeof _0x1cf911;},q(_0x15a6c4);}function we(_0x2a395d,_0xcc3944){const _0x4baa95=_0x2e3b56;if(q(_0x2a395d)!=_0x4baa95(0x10d)||!_0x2a395d)return _0x2a395d;var _0x897942=_0x2a395d[Symbol[_0x4baa95(0x108)]];if(_0x897942!==void 0x0){var _0x29a689=_0x897942[_0x4baa95(0x11c)](_0x2a395d,_0xcc3944||'default');if(q(_0x29a689)!=_0x4baa95(0x10d))return _0x29a689;throw TypeError(_0x4baa95(0x114));}return(_0xcc3944===_0x4baa95(0x11f)?String:Number)(_0x2a395d);}function J(_0x390cb1){const _0x2a7360=_0x2e3b56;var _0x5c7633=we(_0x390cb1,_0x2a7360(0x11f));return q(_0x5c7633)==_0x2a7360(0x14e)?_0x5c7633:_0x5c7633+'';}function Y(_0x3320b4,_0x2b8406,_0x8fc579){const _0x21f6a1=_0x2e3b56;return(_0x2b8406=J(_0x2b8406))in _0x3320b4?Object[_0x21f6a1(0x149)](_0x3320b4,_0x2b8406,{'value':_0x8fc579,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3320b4[_0x2b8406]=_0x8fc579,_0x3320b4;}const X=_0x1b5b97(_0x2e3b56(0x121));var Te=class{constructor(){const _0x183049=_0x2e3b56;Y(this,_0x183049(0x13b),[]);}['registerAdapter'](_0x955f68){const _0x533c1a=_0x2e3b56;return this[_0x533c1a(0x13b)][_0x533c1a(0x102)](_0x955f68),_0x1d67f1(()=>{const _0x16e06c=_0x533c1a;let _0xb7e258=this[_0x16e06c(0x13b)]['indexOf'](_0x955f68);_0xb7e258>=0x0&&this['_adapters'][_0x16e06c(0x113)](_0xb7e258,0x1);});}[_0x2e3b56(0x128)](_0x24e0f3){const _0x2a0eed=_0x2e3b56;for(let _0x5ee148 of this[_0x2a0eed(0x13b)])if(_0x5ee148['beginInkMode'](_0x24e0f3))return!0x0;return!0x1;}async[_0x2e3b56(0x125)](_0xcc520b){const _0x390fb7=_0x2e3b56;for(let _0x439083 of this[_0x390fb7(0x13b)])if(_0x439083['createCustomShape']&&await _0x439083['createCustomShape'](_0xcc520b))return!0x0;return!0x1;}};const Ee={'id':_0x2e3b56(0x110),'type':_0x1a46d0[_0x2e3b56(0x147)],'handler':(_0x5b43ec,_0x29d535)=>_0x29d535?_0x5b43ec[_0x2e3b56(0x11e)](X)[_0x2e3b56(0x128)](_0x29d535):!0x1},Z={};function Q(_0x56d189,_0x4f2578){return function(_0x171553,_0x33247e){_0x4f2578(_0x171553,_0x33247e,_0x56d189);};}function De(_0x3f8a83,_0x4f9f9c,_0x349a3c,_0x5c7adc){const _0x17fcee=_0x2e3b56;var _0xa8e9ab=arguments['length'],_0x131abc=_0xa8e9ab<0x3?_0x4f9f9c:_0x5c7adc===null?_0x5c7adc=Object[_0x17fcee(0x107)](_0x4f9f9c,_0x349a3c):_0x5c7adc,_0x1db57b;if(typeof Reflect==_0x17fcee(0x10d)&&typeof Reflect[_0x17fcee(0x14f)]==_0x17fcee(0x112))_0x131abc=Reflect[_0x17fcee(0x14f)](_0x3f8a83,_0x4f9f9c,_0x349a3c,_0x5c7adc);else{for(var _0x2703c4=_0x3f8a83[_0x17fcee(0xfd)]-0x1;_0x2703c4>=0x0;_0x2703c4--)(_0x1db57b=_0x3f8a83[_0x2703c4])&&(_0x131abc=(_0xa8e9ab<0x3?_0x1db57b(_0x131abc):_0xa8e9ab>0x3?_0x1db57b(_0x4f9f9c,_0x349a3c,_0x131abc):_0x1db57b(_0x4f9f9c,_0x349a3c))||_0x131abc);}return _0xa8e9ab>0x3&&_0x131abc&&Object['defineProperty'](_0x4f9f9c,_0x349a3c,_0x131abc),_0x131abc;}let $=class extends _0x5b9715{constructor(_0x204bbf=Z,_0x12161d,_0x2c29ac,_0x4c8f75){const _0x2ba8ec=_0x2e3b56;super(),this[_0x2ba8ec(0x137)]=_0x204bbf,this[_0x2ba8ec(0x132)]=_0x12161d,this['_commandService']=_0x2c29ac,this[_0x2ba8ec(0x148)]=_0x4c8f75;let {..._0x3fd52e}=_0x48ad06({},Z,this[_0x2ba8ec(0x137)]);this[_0x2ba8ec(0x148)]['setConfig']('ink.config',_0x3fd52e);}[_0x2e3b56(0x122)](){const _0x29072c=_0x2e3b56;[[X,{'useClass':Te}]]['forEach'](_0x59fea0=>this[_0x29072c(0x132)][_0x29072c(0x12e)](_0x59fea0)),this[_0x29072c(0x129)](this['_commandService'][_0x29072c(0x105)](Ee));}};Y($,'pluginName',_0x2e3b56(0x119)),Y($,_0x2e3b56(0xfe),Se),Y($,_0x2e3b56(0x103),Ce),Y($,_0x2e3b56(0xf4),_0x2c0ee9[_0x2e3b56(0x10c)]),$=De([_0x4e5fed(_0x28261b),Q(0x1,_0x36e470(_0x80316c)),Q(0x2,_0xb74673),Q(0x3,_0xec36e4)],$);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 _0x2cfa6e=_0xd57f;(function(_0xa6c3d,_0x5a3e6f){const _0x57964c=_0xd57f,_0x368bfd=_0xa6c3d();while(!![]){try{const _0x319c34=parseInt(_0x57964c(0x1f6))/0x1*(-parseInt(_0x57964c(0x1ee))/0x2)+-parseInt(_0x57964c(0x1ff))/0x3+-parseInt(_0x57964c(0x200))/0x4*(parseInt(_0x57964c(0x203))/0x5)+-parseInt(_0x57964c(0x1f3))/0x6+-parseInt(_0x57964c(0x1e6))/0x7*(parseInt(_0x57964c(0x1f0))/0x8)+-parseInt(_0x57964c(0x1f1))/0x9+parseInt(_0x57964c(0x20f))/0xa;if(_0x319c34===_0x5a3e6f)break;else _0x368bfd['push'](_0x368bfd['shift']());}catch(_0x512c0f){_0x368bfd['push'](_0x368bfd['shift']());}}}(_0x2dfd,0x49c63));import{BoardElementType as _0x4e7b15}from'@univerjs-pro/boards';import{FBoard as _0xebe1c}from'@univerjs-pro/boards/facade';import{buildInkCustomShapePayload as _0x31666b}from'@univerjs-pro/ink';import{Tools as _0x447e92,generateRandomId as _0x34bf1c}from'@univerjs/core';import{FEnum as _0x5bba3f}from'@univerjs/core/facade';var o=class extends _0xebe1c{[_0x2cfa6e(0x1fc)](_0x17d32f){const _0x500168=_0x2cfa6e;let _0x258762=s(_0x17d32f);return _0x258762&&this[_0x500168(0x206)](_0x258762,{'insertIndex':_0x17d32f[_0x500168(0x1e2)]})?_0x258762:null;}['getInks'](){const _0x5e79e4=_0x2cfa6e;return this[_0x5e79e4(0x1e3)]({'elementType':_0x4e7b15[_0x5e79e4(0x1f2)],'includeHidden':!0x0,'includeLocked':!0x0})[_0x5e79e4(0x1f5)](p);}};function s(_0x4653d1,_0x5e12fd){const _0x3309f8=_0x2cfa6e;var _0xea6977,_0x2c217b,_0xf4e382;if(!l(_0x4653d1[_0x3309f8(0x1ea)])||_0x4653d1[_0x3309f8(0x1f4)]!==void 0x0&&!l(_0x4653d1[_0x3309f8(0x1f4)])||!u(_0x4653d1[_0x3309f8(0x20a)]))return null;let _0x2d33b7=(_0xea6977=_0x4653d1['parentId'])==null?_0x5e12fd==null?void 0x0:_0x5e12fd[_0x3309f8(0x201)]:_0xea6977,_0x336461=_0x447e92[_0x3309f8(0x20d)](_0x4653d1[_0x3309f8(0x1ea)]),_0x259f25=_0x31666b({'model':_0x336461,'style':_0x4653d1[_0x3309f8(0x20a)],'tool':_0x4653d1[_0x3309f8(0x210)],'sourceModel':_0x4653d1['sourceModel']?_0x447e92[_0x3309f8(0x20d)](_0x4653d1[_0x3309f8(0x1f4)]):_0x336461}),_0x7b3cc0=d(_0x5e12fd==null?void 0x0:_0x5e12fd[_0x3309f8(0x1e1)]);return{'id':(_0x2c217b=(_0xf4e382=_0x5e12fd==null?void 0x0:_0x5e12fd['id'])==null?_0x4653d1['id']:_0xf4e382)==null?_0x34bf1c(0x6):_0x2c217b,'type':_0x4e7b15[_0x3309f8(0x1f2)],'transform':_0x259f25[_0x3309f8(0x1e4)],'shapeData':_0x259f25[_0x3309f8(0x1ef)],'parentId':_0x2d33b7==null?void 0x0:_0x2d33b7,'laneId':_0x4653d1[_0x3309f8(0x205)]===void 0x0?_0x5e12fd==null?void 0x0:_0x5e12fd['laneId']:_0x4653d1[_0x3309f8(0x205)],'custom':{..._0x7b3cc0,'ink':_0x259f25[_0x3309f8(0x1f9)]}};}function _0xd57f(_0x203831,_0x4dce9f){_0x203831=_0x203831-0x1e1;const _0x2dfd8e=_0x2dfd();let _0xd57f3a=_0x2dfd8e[_0x203831];return _0xd57f3a;}function c(_0x4c2ae3){const _0x199240=_0x2cfa6e;return Number[_0x199240(0x1eb)](_0x4c2ae3['x'])&&Number['isFinite'](_0x4c2ae3['y']);}function l(_0x5b629a){const _0x11f44e=_0x2cfa6e;if(_0x5b629a[_0x11f44e(0x20c)]===_0x11f44e(0x20b)){let _0x178184=new Set();return _0x5b629a[_0x11f44e(0x1ed)][_0x11f44e(0x202)]>=(_0x5b629a['closed']?0x3:0x2)&&_0x5b629a['anchors']['every'](_0x2d6af8=>{const _0x34fe97=_0x11f44e;let _0xc2ec57=_0x2d6af8['id'][_0x34fe97(0x1fe)]()['length']>0x0&&!_0x178184[_0x34fe97(0x207)](_0x2d6af8['id'])&&c(_0x2d6af8)&&(!_0x2d6af8['in']||c(_0x2d6af8['in']))&&(!_0x2d6af8['out']||c(_0x2d6af8[_0x34fe97(0x1fa)]));return _0x178184['add'](_0x2d6af8['id']),_0xc2ec57;});}return _0x5b629a[_0x11f44e(0x1f7)][_0x11f44e(0x202)]>=0x2&&_0x5b629a[_0x11f44e(0x1f7)][_0x11f44e(0x1fd)](_0x5e74a5=>c(_0x5e74a5)&&Number[_0x11f44e(0x1eb)](_0x5e74a5['t'])&&(_0x5e74a5['pressure']===void 0x0||Number[_0x11f44e(0x1eb)](_0x5e74a5[_0x11f44e(0x20e)])))&&Number[_0x11f44e(0x1eb)](_0x5b629a[_0x11f44e(0x1e9)])&&_0x5b629a[_0x11f44e(0x1e9)]>0x0&&Number['isFinite'](_0x5b629a[_0x11f44e(0x212)])&&_0x5b629a[_0x11f44e(0x212)]>=0x0&&_0x5b629a[_0x11f44e(0x212)]<=0x1;}function _0x2dfd(){const _0x4a9e71=['BoardInkTool','style','pen','kind','deepClone','pressure','24855820VLhNJn','tool','extend','opacity','custom','insertIndex','findElements','transform','type','26677jcZtik','brush','free','width','model','isFinite','object','anchors','13484HTyUTS','shapeData','608xdWkGe','5131485DrDRAB','Shape','1096494pHmHXN','sourceModel','filter','82lQdqxy','points','BoardInkPointType','ink','out','version','insertInk','every','trim','539628sPYcnA','4guTYbO','parentId','length','2040665bblXrM','anchor','laneId','addElement','has','isArray'];_0x2dfd=function(){return _0x4a9e71;};return _0x2dfd();}function u(_0x3e2ff8){const _0x586cb2=_0x2cfa6e;return _0x3e2ff8===void 0x0||(_0x3e2ff8[_0x586cb2(0x1e9)]===void 0x0||Number[_0x586cb2(0x1eb)](_0x3e2ff8['width'])&&_0x3e2ff8['width']>0x0)&&(_0x3e2ff8[_0x586cb2(0x212)]===void 0x0||Number[_0x586cb2(0x1eb)](_0x3e2ff8['opacity'])&&_0x3e2ff8['opacity']>=0x0&&_0x3e2ff8[_0x586cb2(0x212)]<=0x1);}function d(_0x98b6a8){const _0x1b9060=_0x2cfa6e;return _0x98b6a8&&typeof _0x98b6a8==_0x1b9060(0x1ec)&&!Array[_0x1b9060(0x208)](_0x98b6a8)?_0x98b6a8:{};}function f(_0x5a9907){const _0x26ff84=_0x2cfa6e;let _0x43ce2c=d(_0x5a9907[_0x26ff84(0x1e1)])[_0x26ff84(0x1f9)];if(!_0x43ce2c||typeof _0x43ce2c!=_0x26ff84(0x1ec)||Array[_0x26ff84(0x208)](_0x43ce2c))return null;let _0x58d784=_0x43ce2c;return _0x58d784[_0x26ff84(0x1fb)]===0x1&&_0x58d784[_0x26ff84(0x1f4)]&&typeof _0x58d784[_0x26ff84(0x1f4)]=='object'?_0x58d784:null;}function p(_0x49aef5){const _0x5271a0=_0x2cfa6e;return _0x49aef5[_0x5271a0(0x1e5)]===_0x4e7b15['Shape']&&!!f(_0x49aef5);}_0xebe1c[_0x2cfa6e(0x211)](o);const m={'Pen':'pen','Brush':_0x2cfa6e(0x1e7),'Highlighter':'highlighter'},h={'Corner':'corner','Smooth':'smooth','Symmetric':'symmetric','Free':_0x2cfa6e(0x1e8)},g={'Anchor':_0x2cfa6e(0x204),'In':'in','Out':_0x2cfa6e(0x1fa)};var _=class extends _0x5bba3f{get[_0x2cfa6e(0x209)](){return m;}get[_0x2cfa6e(0x1f8)](){return h;}get['BoardInkHandleKind'](){return g;}};_0x5bba3f['extend'](_);export{g as BoardInkHandleKind,h as BoardInkPointType,m as BoardInkTool};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x42e332=_0x1ced;(function(_0x3f38e3,_0x58f8f1){const _0x5d7c50=_0x1ced,_0x189e84=_0x3f38e3();while(!![]){try{const _0x5f42dc=parseInt(_0x5d7c50(0x87))/0x1+-parseInt(_0x5d7c50(0x86))/0x2*(-parseInt(_0x5d7c50(0xd2))/0x3)+-parseInt(_0x5d7c50(0x8f))/0x4*(-parseInt(_0x5d7c50(0x9e))/0x5)+-parseInt(_0x5d7c50(0xc4))/0x6*(parseInt(_0x5d7c50(0x88))/0x7)+-parseInt(_0x5d7c50(0xd3))/0x8+-parseInt(_0x5d7c50(0x81))/0x9+parseInt(_0x5d7c50(0xc2))/0xa;if(_0x5f42dc===_0x58f8f1)break;else _0x189e84['push'](_0x189e84['shift']());}catch(_0x297107){_0x189e84['push'](_0x189e84['shift']());}}}(_0x2777,0x568c3));import{ShapeFillEnum as _0x40b030,ShapeLineCapEnum as _0x30b81e,ShapeLineJoinEnum as _0xe471ab,ShapeLineTypeEnum as _0x568653,ShapeTypeEnum as _0x5c7e2e}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x3f4697}from'@univerjs-pro/license';import{CommandType as _0x2e7563,DependentOn as _0x95406c,ICommandService as _0x1a1bff,IConfigService as _0x2f7050,Inject as _0x9103c7,Injector as _0x17a253,Plugin as _0x2449e5,UniverInstanceType as _0x5370d0,createIdentifier as _0x5690be,merge as _0x11b2d3,toDisposable as _0x4bf3a7}from'@univerjs/core';const g=0.0001;function _(_0x4161f6){return{'x':_0x4161f6['x'],'y':_0x4161f6['y']};}function v(_0x21882c){const _0x12ed7a=_0x1ced;return{..._0x21882c,'in':_0x21882c['in']?_(_0x21882c['in']):void 0x0,'out':_0x21882c[_0x12ed7a(0xb2)]?_(_0x21882c[_0x12ed7a(0xb2)]):void 0x0};}function y(_0x518e53){const _0x880c8f=_0x1ced;return{'kind':'pen','closed':_0x518e53[_0x880c8f(0xcf)],'anchors':_0x518e53[_0x880c8f(0xba)][_0x880c8f(0xce)](v)};}function b(_0x57a4e7,_0x9e8b21,_0x4c773e){return{'x':_0x57a4e7['x']+(_0x9e8b21['x']-_0x57a4e7['x'])*_0x4c773e,'y':_0x57a4e7['y']+(_0x9e8b21['y']-_0x57a4e7['y'])*_0x4c773e};}function x(_0x356032,_0x3d776f){const _0xdcb542=_0x1ced;return Math[_0xdcb542(0x90)](_0x356032['x']-_0x3d776f['x'],_0x356032['y']-_0x3d776f['y']);}function S(_0x12229c){const _0x4024df=_0x1ced;let _0x4e9a68=Math[_0x4024df(0x90)](_0x12229c['x'],_0x12229c['y']);return _0x4e9a68<g?{'x':0x1,'y':0x0}:{'x':_0x12229c['x']/_0x4e9a68,'y':_0x12229c['y']/_0x4e9a68};}function C(_0x1c1a7f,_0x2fb0f7,_0xbf11ab=x(_0x1c1a7f,_0x2fb0f7)){let _0x42126f=S({'x':_0x1c1a7f['x']-_0x2fb0f7['x'],'y':_0x1c1a7f['y']-_0x2fb0f7['y']});return{'x':_0x1c1a7f['x']+_0x42126f['x']*_0xbf11ab,'y':_0x1c1a7f['y']+_0x42126f['y']*_0xbf11ab};}function w(_0x2af16b,_0x2c8365){const _0x7bf8c=_0x1ced;let {anchors:_0x35a9cd}=_0x2af16b;return _0x35a9cd[_0x7bf8c(0xa4)]<0x2||_0x2c8365<0x0?null:_0x2c8365<_0x35a9cd[_0x7bf8c(0xa4)]-0x1?{'startIndex':_0x2c8365,'endIndex':_0x2c8365+0x1,'start':_0x35a9cd[_0x2c8365],'end':_0x35a9cd[_0x2c8365+0x1]}:_0x2af16b[_0x7bf8c(0xcf)]&&_0x2c8365===_0x35a9cd[_0x7bf8c(0xa4)]-0x1?{'startIndex':_0x35a9cd[_0x7bf8c(0xa4)]-0x1,'endIndex':0x0,'start':_0x35a9cd[_0x35a9cd[_0x7bf8c(0xa4)]-0x1],'end':_0x35a9cd[0x0]}:null;}function T(_0x1acb3a,_0x457712){const _0x3bd77f=_0x1ced;var _0x57761f,_0x2e4ec7;let _0x33a487=w(_0x1acb3a,_0x457712);return _0x33a487?[_0x33a487['start'],(_0x57761f=_0x33a487[_0x3bd77f(0xb0)][_0x3bd77f(0xb2)])==null?_0x33a487['start']:_0x57761f,(_0x2e4ec7=_0x33a487[_0x3bd77f(0x98)]['in'])==null?_0x33a487['end']:_0x2e4ec7,_0x33a487['end']]:null;}function te(_0x33e2cb,_0x2ec6c9){const _0x456d92=_0x1ced;var _0x520bd6;return _0x2ec6c9===_0x456d92(0x8e)?_0x33e2cb:(_0x520bd6=_0x33e2cb[_0x2ec6c9])==null?null:_0x520bd6;}function E(_0x51bd63,_0x40881,_0xaf0059){const _0x18414c=_0x1ced;return _0xaf0059==='anchor'||_0x51bd63[_0x18414c(0xcf)]?!0x0:_0xaf0059==='in'?_0x40881>0x0:_0x40881<_0x51bd63['anchors']['length']-0x1;}function D(_0x4cfb16,_0x338484){let [_0x336e2e,_0xc68eb8,_0x313e70,_0x2f0c4f]=_0x4cfb16,_0x103791=b(_0x336e2e,_0xc68eb8,_0x338484),_0x14a37e=b(_0xc68eb8,_0x313e70,_0x338484),_0x49d1d=b(_0x313e70,_0x2f0c4f,_0x338484);return b(b(_0x103791,_0x14a37e,_0x338484),b(_0x14a37e,_0x49d1d,_0x338484),_0x338484);}function ne(_0x105ff2,_0x4a17c3){let [_0x3d9b2d,_0x1a5c0c,_0x56625,_0x51cc05]=_0x105ff2,_0x4f1316=b(_0x3d9b2d,_0x1a5c0c,_0x4a17c3),_0x5c15bc=b(_0x1a5c0c,_0x56625,_0x4a17c3),_0x5e182d=b(_0x56625,_0x51cc05,_0x4a17c3),_0x5339d7=b(_0x4f1316,_0x5c15bc,_0x4a17c3),_0x9ca61e=b(_0x5c15bc,_0x5e182d,_0x4a17c3),_0x377b1a=b(_0x5339d7,_0x9ca61e,_0x4a17c3);return{'left':[_0x3d9b2d,_0x4f1316,_0x5339d7,_0x377b1a],'right':[_0x377b1a,_0x9ca61e,_0x5e182d,_0x51cc05]};}function O(_0x14b959,_0x43e838,_0x33de5e){const _0x3b5921=_0x1ced;let _0x32a47c=_0x33de5e['x']-_0x43e838['x'],_0x14f6d4=_0x33de5e['y']-_0x43e838['y'],_0x1e7c8e=_0x32a47c*_0x32a47c+_0x14f6d4*_0x14f6d4,_0x44ac47=_0x1e7c8e<=g?0x0:Math[_0x3b5921(0x97)](0x0,Math[_0x3b5921(0xb4)](0x1,((_0x14b959['x']-_0x43e838['x'])*_0x32a47c+(_0x14b959['y']-_0x43e838['y'])*_0x14f6d4)/_0x1e7c8e)),_0x19c706={'x':_0x43e838['x']+_0x32a47c*_0x44ac47,'y':_0x43e838['y']+_0x14f6d4*_0x44ac47};return{'point':_0x19c706,'ratio':_0x44ac47,'distance':x(_0x14b959,_0x19c706)};}function re(_0x5b71bf,_0x3c434e,_0x12f2eb){const _0x117646=_0x1ced;return O(_0x5b71bf,_0x3c434e,_0x12f2eb)[_0x117646(0xbc)]**0x2;}function k(_0x21b199,_0x7b4489){const _0x315c47=_0x1ced;if(_0x21b199['length']<=0x2)return _0x21b199[_0x315c47(0xce)](_);let _0xf884ca=0x0,_0x2debc0=0x0,_0x3b204b=_0x21b199[0x0],_0x58d7c5=_0x21b199[_0x21b199[_0x315c47(0xa4)]-0x1],_0x1d41e4=_0x7b4489*_0x7b4489;for(let _0x5020f0=0x1;_0x5020f0<_0x21b199[_0x315c47(0xa4)]-0x1;_0x5020f0++){let _0x3015ef=re(_0x21b199[_0x5020f0],_0x3b204b,_0x58d7c5);_0x3015ef>_0xf884ca&&(_0xf884ca=_0x3015ef,_0x2debc0=_0x5020f0);}if(_0xf884ca<=_0x1d41e4)return[_(_0x3b204b),_(_0x58d7c5)];let _0x431cb7=k(_0x21b199[_0x315c47(0xb5)](0x0,_0x2debc0+0x1),_0x7b4489),_0xf9b1e1=k(_0x21b199[_0x315c47(0xb5)](_0x2debc0),_0x7b4489);return[..._0x431cb7[_0x315c47(0xb5)](0x0,-0x1),..._0xf9b1e1];}function ie(_0x40bda8,_0xfc6272){var _0x772e3b;let _0x41ed39=_0x40bda8[_0xfc6272],_0x47b1be=_0x40bda8[_0xfc6272+0x1],_0x3d271f=(_0x772e3b=_0x40bda8[_0xfc6272-0x1])==null?_0x41ed39:_0x772e3b;return{'x':_0x41ed39['x']+(_0x47b1be['x']-_0x3d271f['x'])/0x6,'y':_0x41ed39['y']+(_0x47b1be['y']-_0x3d271f['y'])/0x6};}function A(_0x6281e1,_0x12a128){var _0x1c6508;let _0x318159=_0x6281e1[_0x12a128],_0x30fbaf=_0x6281e1[_0x12a128-0x1],_0x27d478=(_0x1c6508=_0x6281e1[_0x12a128+0x1])==null?_0x318159:_0x1c6508;return{'x':_0x318159['x']-(_0x27d478['x']-_0x30fbaf['x'])/0x6,'y':_0x318159['y']-(_0x27d478['y']-_0x30fbaf['y'])/0x6};}function j(_0x5ce29b,_0xbe5225){const _0x558889=_0x1ced;var _0x46dc7e,_0xe86033;let _0x697284=_0x5ce29b[_0x558889(0xba)][_0xbe5225],_0x317408=(_0x46dc7e=_0x5ce29b['anchors'][_0xbe5225-0x1])==null?_0x5ce29b[_0x558889(0xcf)]?_0x5ce29b[_0x558889(0xba)][_0x5ce29b['anchors'][_0x558889(0xa4)]-0x1]:null:_0x46dc7e,_0x3f02f9=(_0xe86033=_0x5ce29b[_0x558889(0xba)][_0xbe5225+0x1])==null?_0x5ce29b[_0x558889(0xcf)]?_0x5ce29b[_0x558889(0xba)][0x0]:null:_0xe86033,_0x48b183=_0x317408&&_0x3f02f9?S({'x':_0x3f02f9['x']-_0x317408['x'],'y':_0x3f02f9['y']-_0x317408['y']}):_0x3f02f9?S({'x':_0x3f02f9['x']-_0x697284['x'],'y':_0x3f02f9['y']-_0x697284['y']}):_0x317408?S({'x':_0x697284['x']-_0x317408['x'],'y':_0x697284['y']-_0x317408['y']}):{'x':0x1,'y':0x0},_0x172a0f=_0x317408&&_0x3f02f9?Math[_0x558889(0x97)](0x32,x(_0x317408,_0x3f02f9)/0x4):0x32;return{'in':{'x':_0x697284['x']-_0x48b183['x']*_0x172a0f,'y':_0x697284['y']-_0x48b183['y']*_0x172a0f},'out':{'x':_0x697284['x']+_0x48b183['x']*_0x172a0f,'y':_0x697284['y']+_0x48b183['y']*_0x172a0f}};}function M(_0x4e1b38,_0x34cb21){const _0x408a36=_0x1ced;let _0x226bbb=_0x4e1b38[_0x34cb21],_0x283f60=_0x34cb21==='in'?_0x408a36(0xb2):'in',_0x1ff740=_0x4e1b38[_0x283f60];if(_0x226bbb){if(_0x4e1b38[_0x408a36(0xa0)]===_0x408a36(0x9c)){_0x4e1b38[_0x283f60]=C(_0x4e1b38,_0x226bbb);return;}_0x4e1b38[_0x408a36(0xa0)]===_0x408a36(0xbd)&&(_0x4e1b38[_0x283f60]=C(_0x4e1b38,_0x226bbb,_0x1ff740?x(_0x4e1b38,_0x1ff740):x(_0x4e1b38,_0x226bbb)));}}function ae(_0x34655e,_0x40d757){const _0x1a1ee3=_0x1ced;let _0x459359=y(_0x34655e);return!_0x40d757||_0x459359[_0x1a1ee3(0xcf)]||_0x459359[_0x1a1ee3(0xba)]['length']===0x0||_0x459359['anchors'][_0x1a1ee3(0xb9)]({'id':'__ink-preview-anchor__','x':_0x40d757['x'],'y':_0x40d757['y'],'pointType':_0x1a1ee3(0x84)}),_0x459359;}function oe(_0x2814d1,_0x2d384f={}){const _0x2518a3=_0x1ced;var _0x15a93c,_0x3060d1;let _0x34d83d=Math[_0x2518a3(0x97)](0x0,(_0x15a93c=_0x2d384f[_0x2518a3(0xc8)])==null?Math[_0x2518a3(0x97)](0x4,_0x2814d1['width']*0.35):_0x15a93c),_0x1ea899=(_0x3060d1=_0x2d384f[_0x2518a3(0x91)])==null?_0x3193ae=>'ink-centerline-'+_0x3193ae:_0x3060d1,_0x1837b9=k(_0x2814d1[_0x2518a3(0x8c)],_0x34d83d),_0x3c8f17=_0x1837b9[_0x2518a3(0xce)]((_0x2880ea,_0x532513)=>({'id':_0x1ea899(_0x532513),'x':_0x2880ea['x'],'y':_0x2880ea['y'],'pointType':_0x2518a3(0xca)}));for(let _0x51b97f=0x0;_0x51b97f<_0x3c8f17['length']-0x1;_0x51b97f++)_0x3c8f17[_0x51b97f][_0x2518a3(0xb2)]=ie(_0x1837b9,_0x51b97f),_0x3c8f17[_0x51b97f+0x1]['in']=A(_0x1837b9,_0x51b97f+0x1);return{'kind':_0x2518a3(0xa3),'closed':!0x1,'anchors':_0x3c8f17};}function se(_0x2a8a7b,_0x4002cb,_0x3b42c0){const _0x16f8af=_0x1ced;let _0x215cfa=null,_0x1afb9c=['anchor','in',_0x16f8af(0xb2)];return _0x2a8a7b[_0x16f8af(0xba)][_0x16f8af(0x93)]((_0x156be8,_0x4e9e8a)=>{const _0x22f5fc=_0x16f8af;_0x1afb9c[_0x22f5fc(0x93)](_0x55f42f=>{const _0x1473eb=_0x22f5fc;if(!E(_0x2a8a7b,_0x4e9e8a,_0x55f42f))return;let _0x42ad36=te(_0x156be8,_0x55f42f);if(!_0x42ad36)return;let _0xe6e78c=x(_0x4002cb,_0x42ad36);_0xe6e78c>_0x3b42c0||_0x215cfa&&_0xe6e78c>=_0x215cfa[_0x1473eb(0xbc)]||(_0x215cfa={'handle':{'kind':_0x55f42f,'anchorId':_0x156be8['id']},'point':_(_0x42ad36),'distance':_0xe6e78c});});}),_0x215cfa;}function ce(_0x3be065,_0x59c988,_0x558a88){const _0x289744=_0x1ced;let _0x2547b2=null,_0x5cfc46=_0x3be065[_0x289744(0xcf)]?_0x3be065['anchors'][_0x289744(0xa4)]:Math[_0x289744(0x97)](0x0,_0x3be065[_0x289744(0xba)]['length']-0x1);for(let _0x975040=0x0;_0x975040<_0x5cfc46;_0x975040++){let _0x388294=T(_0x3be065,_0x975040);if(!_0x388294)continue;let _0x43ed62=D(_0x388294,0x0);for(let _0x124a9f=0x1;_0x124a9f<=0x20;_0x124a9f++){let _0x15511f=D(_0x388294,_0x124a9f/0x20),_0x57ab7f=O(_0x59c988,_0x43ed62,_0x15511f),_0x574b3b=(_0x124a9f-0x1+_0x57ab7f[_0x289744(0x8b)])/0x20;(!_0x2547b2||_0x57ab7f[_0x289744(0xbc)]<_0x2547b2[_0x289744(0xbc)])&&(_0x2547b2={'segmentIndex':_0x975040,'t':_0x574b3b,'point':_0x57ab7f[_0x289744(0xad)],'distance':_0x57ab7f[_0x289744(0xbc)]}),_0x43ed62=_0x15511f;}}return _0x2547b2&&_0x2547b2['distance']<=_0x558a88?_0x2547b2:null;}function le(_0x5440c2,_0xc748f7,_0x7bb2c1){const _0x262447=_0x1ced;let _0x11bf9b=y(_0x5440c2),_0x4ecbf5=w(_0x11bf9b,_0xc748f7[_0x262447(0xb3)]),_0x52148a=T(_0x11bf9b,_0xc748f7[_0x262447(0xb3)]);if(!_0x4ecbf5||!_0x52148a)return _0x11bf9b;let _0xe1d68f=ne(_0x52148a,Math[_0x262447(0x97)](0x0,Math[_0x262447(0xb4)](0x1,_0xc748f7['t']))),_0x2fa6d4={'id':_0x7bb2c1(),'x':_0xe1d68f[_0x262447(0x96)][0x3]['x'],'y':_0xe1d68f[_0x262447(0x96)][0x3]['y'],'in':_(_0xe1d68f['left'][0x2]),'out':_(_0xe1d68f[_0x262447(0xaf)][0x1]),'pointType':'free'};return _0x11bf9b['anchors'][_0x4ecbf5['startIndex']][_0x262447(0xb2)]=_(_0xe1d68f[_0x262447(0x96)][0x1]),_0x11bf9b[_0x262447(0xba)][_0x4ecbf5[_0x262447(0xab)]]['in']=_(_0xe1d68f[_0x262447(0xaf)][0x2]),_0x11bf9b[_0x262447(0xba)]['splice'](_0x4ecbf5[_0x262447(0x85)]+0x1,0x0,_0x2fa6d4),_0x11bf9b;}function ue(_0x9d179f,_0x392227){const _0x3691b4=_0x1ced;let _0x3f62d5=y(_0x9d179f);return _0x3f62d5[_0x3691b4(0xba)]=_0x3f62d5[_0x3691b4(0xba)][_0x3691b4(0xbb)](_0xb7b7d0=>_0xb7b7d0['id']!==_0x392227),_0x3f62d5[_0x3691b4(0xcf)]&&_0x3f62d5[_0x3691b4(0xba)][_0x3691b4(0xa4)]<0x3&&(_0x3f62d5[_0x3691b4(0xcf)]=!0x1),_0x3f62d5;}function N(_0x464440,_0x482438,_0x1d85e7){const _0x4c092a=_0x1ced;let _0x31b66b=y(_0x464440),_0x28e6dd=_0x31b66b[_0x4c092a(0xba)]['findIndex'](_0x449879=>_0x449879['id']===_0x482438),_0x44edd1=_0x31b66b[_0x4c092a(0xba)][_0x28e6dd];if(!_0x44edd1)return _0x31b66b;if(_0x44edd1[_0x4c092a(0xa0)]=_0x1d85e7,_0x1d85e7==='corner')return delete _0x44edd1['in'],delete _0x44edd1[_0x4c092a(0xb2)],_0x31b66b;let _0x75b9f9=j(_0x31b66b,_0x28e6dd);if(_0x44edd1['in']=_0x44edd1['in']?_(_0x44edd1['in']):_0x75b9f9['in'],_0x44edd1['out']=_0x44edd1[_0x4c092a(0xb2)]?_(_0x44edd1[_0x4c092a(0xb2)]):_0x75b9f9['out'],_0x1d85e7===_0x4c092a(0x9c)){let _0x9832cb=Math['max'](x(_0x44edd1,_0x44edd1['in']),x(_0x44edd1,_0x44edd1[_0x4c092a(0xb2)]),0x32),_0x16448b=S({'x':_0x44edd1[_0x4c092a(0xb2)]['x']-_0x44edd1['x'],'y':_0x44edd1['out']['y']-_0x44edd1['y']});_0x44edd1[_0x4c092a(0xb2)]={'x':_0x44edd1['x']+_0x16448b['x']*_0x9832cb,'y':_0x44edd1['y']+_0x16448b['y']*_0x9832cb},_0x44edd1['in']={'x':_0x44edd1['x']-_0x16448b['x']*_0x9832cb,'y':_0x44edd1['y']-_0x16448b['y']*_0x9832cb};}else _0x1d85e7===_0x4c092a(0xbd)&&M(_0x44edd1,'out');return _0x31b66b;}function P(_0x47a09d,_0x11f87a){const _0x341b03=_0x1ced;var _0x339851;let _0x1b0c07=_0x47a09d[_0x341b03(0xba)][_0x341b03(0xac)](_0x52cf4e=>_0x52cf4e['id']===_0x11f87a),_0x2e9d51=(_0x339851=_0x1b0c07==null?void 0x0:_0x1b0c07[_0x341b03(0xa0)])==null?'corner':_0x339851;return N(_0x47a09d,_0x11f87a,_0x2e9d51===_0x341b03(0x84)?_0x341b03(0xbd):_0x2e9d51===_0x341b03(0xbd)?_0x341b03(0x9c):_0x2e9d51==='symmetric'?'free':_0x341b03(0x84));}function F(_0x33c0a5,_0x412924,_0x2b38ae){const _0x118317=_0x1ced;let _0x1b0a2a=y(_0x33c0a5),_0x5a88f4=_0x1b0a2a[_0x118317(0xba)][_0x118317(0xac)](_0x449592=>_0x449592['id']===_0x412924[_0x118317(0x80)]);if(!_0x5a88f4)return _0x1b0a2a;if(_0x412924['kind']==='anchor'){let _0x13318b={'x':_0x2b38ae['x']-_0x5a88f4['x'],'y':_0x2b38ae['y']-_0x5a88f4['y']};return _0x5a88f4['x']=_0x2b38ae['x'],_0x5a88f4['y']=_0x2b38ae['y'],_0x5a88f4['in']&&(_0x5a88f4['in']={'x':_0x5a88f4['in']['x']+_0x13318b['x'],'y':_0x5a88f4['in']['y']+_0x13318b['y']}),_0x5a88f4[_0x118317(0xb2)]&&(_0x5a88f4[_0x118317(0xb2)]={'x':_0x5a88f4['out']['x']+_0x13318b['x'],'y':_0x5a88f4[_0x118317(0xb2)]['y']+_0x13318b['y']}),_0x1b0a2a;}return _0x5a88f4[_0x412924[_0x118317(0xb6)]]=_(_0x2b38ae),_0x5a88f4['pointType']==='corner'&&(_0x5a88f4[_0x118317(0xa0)]='free'),M(_0x5a88f4,_0x412924['kind']),_0x1b0a2a;}const I=1e-9;function L(_0x1e1e75){const _0x3ec61f=_0x1ced;let _0x31d057=Math[_0x3ec61f(0xcb)](_0x1e1e75*0x2710)/0x2710;return Object['is'](_0x31d057,-0x0)?'0':String(_0x31d057);}function R(_0x3ea43b){return L(_0x3ea43b['x'])+'\x20'+L(_0x3ea43b['y']);}function z(_0x56890a,_0x54bee3){return{'x':_0x56890a['x']-_0x54bee3['x'],'y':_0x56890a['y']-_0x54bee3['y']};}function B(_0x48ac06,_0x4822b1,_0xcdd611,_0x43b70e,_0x196050){let _0x25d080=0x1-_0x196050;return{'x':_0x25d080*_0x25d080*_0x25d080*_0x48ac06['x']+0x3*_0x25d080*_0x25d080*_0x196050*_0x4822b1['x']+0x3*_0x25d080*_0x196050*_0x196050*_0xcdd611['x']+_0x196050*_0x196050*_0x196050*_0x43b70e['x'],'y':_0x25d080*_0x25d080*_0x25d080*_0x48ac06['y']+0x3*_0x25d080*_0x25d080*_0x196050*_0x4822b1['y']+0x3*_0x25d080*_0x196050*_0x196050*_0xcdd611['y']+_0x196050*_0x196050*_0x196050*_0x43b70e['y']};}function V(_0x4f13f8,_0x15beb2,_0xbba490,_0x50f385){const _0x2014a4=_0x1ced;let _0x4cf8be=-_0x4f13f8+0x3*_0x15beb2-0x3*_0xbba490+_0x50f385,_0x59b2cc=0x3*_0x4f13f8-0x6*_0x15beb2+0x3*_0xbba490,_0x4ed9b4=-0x3*_0x4f13f8+0x3*_0x15beb2,_0x5dbb64=[];if(Math[_0x2014a4(0xc5)](_0x4cf8be)<I){if(Math[_0x2014a4(0xc5)](_0x59b2cc)<I)return _0x5dbb64;let _0x26d757=-_0x4ed9b4/(0x2*_0x59b2cc);return _0x26d757>0x0&&_0x26d757<0x1&&_0x5dbb64[_0x2014a4(0xb9)](_0x26d757),_0x5dbb64;}let _0x32ad76=_0x59b2cc*_0x59b2cc-0x3*_0x4cf8be*_0x4ed9b4;if(_0x32ad76<0x0)return _0x5dbb64;let _0x2766bb=Math['sqrt'](Math['max'](0x0,_0x32ad76)),_0x1a43e6=(-_0x59b2cc+_0x2766bb)/(0x3*_0x4cf8be),_0x139125=(-_0x59b2cc-_0x2766bb)/(0x3*_0x4cf8be);return _0x1a43e6>0x0&&_0x1a43e6<0x1&&_0x5dbb64['push'](_0x1a43e6),_0x139125>0x0&&_0x139125<0x1&&Math[_0x2014a4(0xc5)](_0x139125-_0x1a43e6)>I&&_0x5dbb64[_0x2014a4(0xb9)](_0x139125),_0x5dbb64;}function H(_0x10b4f3,_0x2d32fa,_0x1af334,_0x28dcbd,_0x399f6a){const _0x2c7645=_0x1ced;_0x10b4f3[_0x2c7645(0xb9)](_0x2d32fa,_0x399f6a),new Set([...V(_0x2d32fa['x'],_0x1af334['x'],_0x28dcbd['x'],_0x399f6a['x']),...V(_0x2d32fa['y'],_0x1af334['y'],_0x28dcbd['y'],_0x399f6a['y'])])[_0x2c7645(0x93)](_0x169838=>{const _0x4655de=_0x2c7645;_0x10b4f3[_0x4655de(0xb9)](B(_0x2d32fa,_0x1af334,_0x28dcbd,_0x399f6a,_0x169838));});}function U(_0x23e05c){const _0x270118=_0x1ced;let _0x3d2633=_0x23e05c['anchors'];if(_0x3d2633[_0x270118(0xa4)]<=0x1)return _0x3d2633;let _0x772e2e=[];for(let _0x27e527=0x1;_0x27e527<_0x3d2633[_0x270118(0xa4)];_0x27e527++){var _0x49c512,_0x1ebcbe;let _0x38535b=_0x3d2633[_0x27e527-0x1],_0x5217f4=_0x3d2633[_0x27e527];H(_0x772e2e,_0x38535b,(_0x49c512=_0x38535b[_0x270118(0xb2)])==null?_0x38535b:_0x49c512,(_0x1ebcbe=_0x5217f4['in'])==null?_0x5217f4:_0x1ebcbe,_0x5217f4);}if(_0x23e05c['closed']&&_0x3d2633['length']>0x1){var _0x483e6a,_0x370c54;let _0x1faf34=_0x3d2633[_0x3d2633[_0x270118(0xa4)]-0x1],_0x11996f=_0x3d2633[0x0];H(_0x772e2e,_0x1faf34,(_0x483e6a=_0x1faf34['out'])==null?_0x1faf34:_0x483e6a,(_0x370c54=_0x11996f['in'])==null?_0x11996f:_0x370c54,_0x11996f);}return _0x772e2e;}function de(_0x331f22){const _0x4d7116=_0x1ced;let _0x4fcec8=_0x331f22[_0x4d7116(0x8c)];if(_0x4fcec8[_0x4d7116(0xa4)]<=0x1)return _0x4fcec8;let _0xa8fd62=[];for(let _0x56f665=0x0;_0x56f665<_0x4fcec8[_0x4d7116(0xa4)]-0x1;_0x56f665++){var _0x136593,_0x483929;let _0x4cd45a=_0x4fcec8[_0x56f665],_0x123505=_0x4fcec8[_0x56f665+0x1],_0x385e25=(_0x136593=_0x4fcec8[_0x56f665-0x1])==null?_0x4cd45a:_0x136593,_0x55433e=(_0x483929=_0x4fcec8[_0x56f665+0x2])==null?_0x123505:_0x483929;H(_0xa8fd62,_0x4cd45a,{'x':_0x4cd45a['x']+(_0x123505['x']-_0x385e25['x'])/0x6,'y':_0x4cd45a['y']+(_0x123505['y']-_0x385e25['y'])/0x6},{'x':_0x123505['x']-(_0x55433e['x']-_0x4cd45a['x'])/0x6,'y':_0x123505['y']-(_0x55433e['y']-_0x4cd45a['y'])/0x6},_0x123505);}return _0xa8fd62;}function fe(_0x471446){const _0x4f4d52=_0x1ced;return _0x471446[_0x4f4d52(0xb6)]===_0x4f4d52(0xa3)?U(_0x471446):de(_0x471446);}function W(_0x5792e9){const _0x1ac618=_0x1ced;let _0x54ec18=Math[_0x1ac618(0xcb)](_0x5792e9*0x2710)/0x2710;return Object['is'](_0x54ec18,-0x0)?0x0:_0x54ec18;}function G(_0x1e599e){const _0x37d1b0=_0x1ced;let _0x5a42fc=fe(_0x1e599e);if(_0x5a42fc['length']===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x4b033e=Math['min'](..._0x5a42fc['map'](_0x485f6d=>_0x485f6d['x'])),_0xf0a1d7=Math[_0x37d1b0(0xb4)](..._0x5a42fc[_0x37d1b0(0xce)](_0x26e40c=>_0x26e40c['y'])),_0x22d349=Math[_0x37d1b0(0x97)](..._0x5a42fc['map'](_0xee1676=>_0xee1676['x'])),_0x4867bf=Math[_0x37d1b0(0x97)](..._0x5a42fc[_0x37d1b0(0xce)](_0x2eedb0=>_0x2eedb0['y']));return{'left':W(_0x4b033e),'top':W(_0xf0a1d7),'width':W(Math[_0x37d1b0(0x97)](0x1,_0x22d349-_0x4b033e)),'height':W(Math[_0x37d1b0(0x97)](0x1,_0x4867bf-_0xf0a1d7))};}function pe(_0x1de73a,_0x45385c){const _0x4622b9=_0x1ced;let _0x27081c=_0x1de73a[_0x4622b9(0xba)];if(_0x27081c[_0x4622b9(0xa4)]===0x0)return'';let _0x30180a=['M\x20'+R(z(_0x27081c[0x0],_0x45385c))];for(let _0x66d405=0x1;_0x66d405<_0x27081c['length'];_0x66d405++){var _0x3f9c33,_0x3f83f7;let _0x267910=_0x27081c[_0x66d405-0x1],_0xf6cf96=_0x27081c[_0x66d405],_0x23ed5e=(_0x3f9c33=_0x267910[_0x4622b9(0xb2)])==null?_0x267910:_0x3f9c33,_0x44f074=(_0x3f83f7=_0xf6cf96['in'])==null?_0xf6cf96:_0x3f83f7;_0x30180a['push']('C\x20'+R(z(_0x23ed5e,_0x45385c))+'\x20'+R(z(_0x44f074,_0x45385c))+'\x20'+R(z(_0xf6cf96,_0x45385c)));}if(_0x1de73a[_0x4622b9(0xcf)]&&_0x27081c['length']>0x1){var _0x2e84ae,_0x2ad46c;let _0x5c57ac=_0x27081c[_0x27081c['length']-0x1],_0x3357b9=_0x27081c[0x0],_0x32fd94=(_0x2e84ae=_0x5c57ac[_0x4622b9(0xb2)])==null?_0x5c57ac:_0x2e84ae,_0xeecd64=(_0x2ad46c=_0x3357b9['in'])==null?_0x3357b9:_0x2ad46c;_0x30180a['push']('C\x20'+R(z(_0x32fd94,_0x45385c))+'\x20'+R(z(_0xeecd64,_0x45385c))+'\x20'+R(z(_0x3357b9,_0x45385c))),_0x30180a[_0x4622b9(0xb9)]('Z');}return _0x30180a['join']('\x20');}function me(_0x107b6c,_0x269de9){const _0x383ffa=_0x1ced;let _0x51982a=_0x107b6c['points'][_0x383ffa(0xce)](_0xf3d220=>z(_0xf3d220,_0x269de9));if(_0x51982a['length']===0x0)return'';if(_0x51982a['length']===0x1)return'M\x20'+R(_0x51982a[0x0]);let _0x5d03c8=['M\x20'+R(_0x51982a[0x0])];for(let _0x4f459b=0x0;_0x4f459b<_0x51982a[_0x383ffa(0xa4)]-0x1;_0x4f459b++){var _0x3c997a,_0x2d8de1;let _0x428bda=_0x51982a[_0x4f459b],_0xa7f938=_0x51982a[_0x4f459b+0x1],_0x24d403=(_0x3c997a=_0x51982a[_0x4f459b-0x1])==null?_0x428bda:_0x3c997a,_0x31c2bd=(_0x2d8de1=_0x51982a[_0x4f459b+0x2])==null?_0xa7f938:_0x2d8de1,_0x5a52dc={'x':_0x428bda['x']+(_0xa7f938['x']-_0x24d403['x'])/0x6,'y':_0x428bda['y']+(_0xa7f938['y']-_0x24d403['y'])/0x6},_0x4f3231={'x':_0xa7f938['x']-(_0x31c2bd['x']-_0x428bda['x'])/0x6,'y':_0xa7f938['y']-(_0x31c2bd['y']-_0x428bda['y'])/0x6};_0x5d03c8[_0x383ffa(0xb9)]('C\x20'+R(_0x5a52dc)+'\x20'+R(_0x4f3231)+'\x20'+R(_0xa7f938));}return _0x5d03c8['join']('\x20');}function he(_0x3408ac,_0xbbc8c1){const _0x254423=_0x1ced;return _0x3408ac[_0x254423(0xb6)]===_0x254423(0xa3)?pe(_0x3408ac,_0xbbc8c1):me(_0x3408ac,_0xbbc8c1);}function ge(_0x10a586,_0x310e98){const _0x2bb3b1=_0x1ced;return _0x310e98!=null&&_0x310e98['color']?_0x310e98['color']:_0x10a586[_0x2bb3b1(0xb6)]===_0x2bb3b1(0xa3)?_0x2bb3b1(0xc3):_0x10a586['color'];}function _e(_0x4d0a9b,_0x103690){const _0x4ceb3d=_0x1ced;return(_0x103690==null?void 0x0:_0x103690[_0x4ceb3d(0xcd)])===void 0x0?_0x4d0a9b[_0x4ceb3d(0xb6)]===_0x4ceb3d(0xa3)?0x2:_0x4d0a9b[_0x4ceb3d(0xcd)]:_0x103690[_0x4ceb3d(0xcd)];}function ve(_0x119005,_0xa33e6){const _0x3a9293=_0x1ced;return(_0xa33e6==null?void 0x0:_0xa33e6[_0x3a9293(0xb7)])===void 0x0?_0x119005['kind']===_0x3a9293(0xa3)?void 0x0:_0x119005[_0x3a9293(0xb7)]:_0xa33e6[_0x3a9293(0xb7)];}function _0x1ced(_0x27b8a0,_0x1db9ea){_0x27b8a0=_0x27b8a0-0x7e;const _0x2777cd=_0x2777();let _0x1ced70=_0x2777cd[_0x27b8a0];return _0x1ced70;}function ye(_0x397c77,_0x4f0103){const _0x2d5305=_0x1ced;let _0x58cd5c=G(_0x397c77),_0x334e32=he(_0x397c77,{'x':_0x58cd5c['left'],'y':_0x58cd5c[_0x2d5305(0xa6)]}),_0x1868c0=_0x397c77[_0x2d5305(0xb6)]==='pen'&&_0x397c77[_0x2d5305(0xcf)],_0x20e82b=_0x4f0103==null?void 0x0:_0x4f0103[_0x2d5305(0xa8)];return{'shapeType':_0x5c7e2e['Rect'],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x58cd5c[_0x2d5305(0xcd)],'h':_0x58cd5c['height'],'fill':_0x1868c0?'norm':_0x2d5305(0xbe),'stroke':!0x0,'data':_0x334e32,'dataArray':be(_0x397c77,{'x':_0x58cd5c[_0x2d5305(0x96)],'y':_0x58cd5c[_0x2d5305(0xa6)]})}]},'fill':_0x1868c0&&_0x20e82b?{'color':_0x20e82b,'fillType':_0x40b030[_0x2d5305(0xc1)]}:{'fillType':_0x40b030['NoFill']},'stroke':{'color':ge(_0x397c77,_0x4f0103),'width':_e(_0x397c77,_0x4f0103),'opacity':ve(_0x397c77,_0x4f0103),'lineStrokeType':_0x568653['SolidLine'],'capType':_0x30b81e[_0x2d5305(0x83)],'lineJoinType':_0xe471ab[_0x2d5305(0x83)]}};}function K(_0x233197,_0x3ab8ef){return{'x':_0x233197['x']-_0x3ab8ef['x'],'y':_0x233197['y']-_0x3ab8ef['y']};}function be(_0xfaace9,_0x24ba2f){const _0x41fb44=_0x1ced;if(_0xfaace9['kind']===_0x41fb44(0xa3)){let _0x46f291=_0xfaace9[_0x41fb44(0xba)];if(_0x46f291[_0x41fb44(0xa4)]===0x0)return[];let _0x9d20e0=K(_0x46f291[0x0],_0x24ba2f),_0x1d6722=[{'command':'M','points':[_0x9d20e0['x'],_0x9d20e0['y']]}];for(let _0x255512=0x1;_0x255512<_0x46f291[_0x41fb44(0xa4)];_0x255512++){var _0x14b3ba,_0x58ad77;let _0x47449b=_0x46f291[_0x255512-0x1],_0x35f8c3=_0x46f291[_0x255512],_0x56c7a4=K((_0x14b3ba=_0x47449b[_0x41fb44(0xb2)])==null?_0x47449b:_0x14b3ba,_0x24ba2f),_0x5a6f5b=K((_0x58ad77=_0x35f8c3['in'])==null?_0x35f8c3:_0x58ad77,_0x24ba2f),_0x1fdcf5=K(_0x35f8c3,_0x24ba2f);_0x1d6722['push']({'command':'C','points':[_0x56c7a4['x'],_0x56c7a4['y'],_0x5a6f5b['x'],_0x5a6f5b['y'],_0x1fdcf5['x'],_0x1fdcf5['y']]});}if(_0xfaace9['closed']&&_0x46f291['length']>0x1){var _0x9dd2de,_0x81ac45;let _0x4fc166=_0x46f291[_0x46f291['length']-0x1],_0x3895c1=_0x46f291[0x0],_0x5f245e=K((_0x9dd2de=_0x4fc166[_0x41fb44(0xb2)])==null?_0x4fc166:_0x9dd2de,_0x24ba2f),_0x2a3f18=K((_0x81ac45=_0x3895c1['in'])==null?_0x3895c1:_0x81ac45,_0x24ba2f),_0x43a1c4=K(_0x3895c1,_0x24ba2f);_0x1d6722['push']({'command':'C','points':[_0x5f245e['x'],_0x5f245e['y'],_0x2a3f18['x'],_0x2a3f18['y'],_0x43a1c4['x'],_0x43a1c4['y']]}),_0x1d6722['push']({'command':'z','points':[]});}return _0x1d6722;}let _0x489f9c=_0xfaace9[_0x41fb44(0x8c)][_0x41fb44(0xce)](_0x41695b=>K(_0x41695b,_0x24ba2f));if(_0x489f9c[_0x41fb44(0xa4)]===0x0)return[];let _0x209968=[{'command':'M','points':[_0x489f9c[0x0]['x'],_0x489f9c[0x0]['y']]}];for(let _0x4dcb3f=0x0;_0x4dcb3f<_0x489f9c[_0x41fb44(0xa4)]-0x1;_0x4dcb3f++){var _0x2896d1,_0x361277;let _0x303ecf=_0x489f9c[_0x4dcb3f],_0x14ce62=_0x489f9c[_0x4dcb3f+0x1],_0x46023f=(_0x2896d1=_0x489f9c[_0x4dcb3f-0x1])==null?_0x303ecf:_0x2896d1,_0x220656=(_0x361277=_0x489f9c[_0x4dcb3f+0x2])==null?_0x14ce62:_0x361277,_0x5a3508={'x':_0x303ecf['x']+(_0x14ce62['x']-_0x46023f['x'])/0x6,'y':_0x303ecf['y']+(_0x14ce62['y']-_0x46023f['y'])/0x6},_0xf0ae73={'x':_0x14ce62['x']-(_0x220656['x']-_0x303ecf['x'])/0x6,'y':_0x14ce62['y']-(_0x220656['y']-_0x303ecf['y'])/0x6};_0x209968[_0x41fb44(0xb9)]({'command':'C','points':[_0x5a3508['x'],_0x5a3508['y'],_0xf0ae73['x'],_0xf0ae73['y'],_0x14ce62['x'],_0x14ce62['y']]});}return _0x209968;}function xe(_0x5ced35){const _0x2426a1=_0x1ced;var _0x524876;let {model:_0x855814,sourceModel:_0x4749c0=_0x855814,style:_0x27b2fc}=_0x5ced35,_0x39e8b7=(_0x524876=_0x5ced35[_0x2426a1(0x9f)])==null?_0x855814[_0x2426a1(0xb6)]:_0x524876,_0x84bffb=G(_0x855814),_0x1e77fb=_0x855814[_0x2426a1(0xb6)]===_0x2426a1(0xa3)&&_0x39e8b7!==_0x2426a1(0xa3)?_0x855814:void 0x0;return{'transform':{..._0x84bffb,'rotation':0x0},'shapeData':ye(_0x855814,_0x27b2fc),'ink':{'version':0x1,'tool':_0x39e8b7,'sourceModel':_0x4749c0,..._0x1e77fb?{'editModel':_0x1e77fb}:{},'normalizedBounds':_0x84bffb}};}var Se=_0x42e332(0x82),Ce=_0x42e332(0xaa);function q(_0x28796d){'@babel/helpers - typeof';const _0x1f2c62=_0x42e332;return q=typeof Symbol=='function'&&typeof Symbol[_0x1f2c62(0x7f)]=='symbol'?function(_0x52ce1e){return typeof _0x52ce1e;}:function(_0x216535){const _0x2f168e=_0x1f2c62;return _0x216535&&typeof Symbol==_0x2f168e(0x89)&&_0x216535['constructor']===Symbol&&_0x216535!==Symbol[_0x2f168e(0x7e)]?_0x2f168e(0x9a):typeof _0x216535;},q(_0x28796d);}function we(_0xb004fc,_0x3eef88){const _0x5a6bc1=_0x42e332;if(q(_0xb004fc)!='object'||!_0xb004fc)return _0xb004fc;var _0x36b9e6=_0xb004fc[Symbol[_0x5a6bc1(0x9b)]];if(_0x36b9e6!==void 0x0){var _0x31d247=_0x36b9e6[_0x5a6bc1(0xbf)](_0xb004fc,_0x3eef88||_0x5a6bc1(0xae));if(q(_0x31d247)!=_0x5a6bc1(0xd4))return _0x31d247;throw TypeError(_0x5a6bc1(0xd1));}return(_0x3eef88===_0x5a6bc1(0xc7)?String:Number)(_0xb004fc);}function J(_0x8e1c40){const _0x30d9e3=_0x42e332;var _0x1ac07a=we(_0x8e1c40,_0x30d9e3(0xc7));return q(_0x1ac07a)==_0x30d9e3(0x9a)?_0x1ac07a:_0x1ac07a+'';}function Y(_0xc367ae,_0x2ca74d,_0x35f757){const _0x302533=_0x42e332;return(_0x2ca74d=J(_0x2ca74d))in _0xc367ae?Object[_0x302533(0xd6)](_0xc367ae,_0x2ca74d,{'value':_0x35f757,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xc367ae[_0x2ca74d]=_0x35f757,_0xc367ae;}const X=_0x5690be(_0x42e332(0x94));var Te=class{constructor(){Y(this,'_adapters',[]);}[_0x42e332(0xc0)](_0xba8cd2){const _0x4526b1=_0x42e332;return this[_0x4526b1(0xa9)][_0x4526b1(0xb9)](_0xba8cd2),_0x4bf3a7(()=>{const _0x277cd0=_0x4526b1;let _0x5984ef=this[_0x277cd0(0xa9)][_0x277cd0(0xc6)](_0xba8cd2);_0x5984ef>=0x0&&this[_0x277cd0(0xa9)][_0x277cd0(0xc9)](_0x5984ef,0x1);});}[_0x42e332(0x95)](_0x7aed7f){const _0x23f1fa=_0x42e332;for(let _0x4b7762 of this[_0x23f1fa(0xa9)])if(_0x4b7762['beginInkMode'](_0x7aed7f))return!0x0;return!0x1;}async['createCustomShape'](_0x3243ec){const _0x1c076d=_0x42e332;for(let _0x4dde3a of this['_adapters'])if(_0x4dde3a['createCustomShape']&&await _0x4dde3a[_0x1c076d(0x8d)](_0x3243ec))return!0x0;return!0x1;}};const Ee={'id':_0x42e332(0xa1),'type':_0x2e7563['OPERATION'],'handler':(_0x2e11ec,_0x535a1b)=>_0x535a1b?_0x2e11ec[_0x42e332(0xa7)](X)['beginInkMode'](_0x535a1b):!0x1},Z={};function Q(_0x3b51e6,_0x3f9417){return function(_0x47485a,_0x1e63cd){_0x3f9417(_0x47485a,_0x1e63cd,_0x3b51e6);};}function De(_0x71168f,_0x113e07,_0x3328e1,_0x351eae){const _0x5d9d54=_0x42e332;var _0x5cc20d=arguments[_0x5d9d54(0xa4)],_0x12dfa3=_0x5cc20d<0x3?_0x113e07:_0x351eae===null?_0x351eae=Object['getOwnPropertyDescriptor'](_0x113e07,_0x3328e1):_0x351eae,_0x131fb8;if(typeof Reflect=='object'&&typeof Reflect['decorate']=='function')_0x12dfa3=Reflect['decorate'](_0x71168f,_0x113e07,_0x3328e1,_0x351eae);else{for(var _0x14568c=_0x71168f[_0x5d9d54(0xa4)]-0x1;_0x14568c>=0x0;_0x14568c--)(_0x131fb8=_0x71168f[_0x14568c])&&(_0x12dfa3=(_0x5cc20d<0x3?_0x131fb8(_0x12dfa3):_0x5cc20d>0x3?_0x131fb8(_0x113e07,_0x3328e1,_0x12dfa3):_0x131fb8(_0x113e07,_0x3328e1))||_0x12dfa3);}return _0x5cc20d>0x3&&_0x12dfa3&&Object[_0x5d9d54(0xd6)](_0x113e07,_0x3328e1,_0x12dfa3),_0x12dfa3;}let $=class extends _0x2449e5{constructor(_0x5e4e5b=Z,_0x58dfe1,_0x292053,_0x233c6f){const _0x4488c7=_0x42e332;super(),this[_0x4488c7(0x8a)]=_0x5e4e5b,this[_0x4488c7(0xcc)]=_0x58dfe1,this[_0x4488c7(0x9d)]=_0x292053,this[_0x4488c7(0xb8)]=_0x233c6f;let {..._0x880bb5}=_0x11b2d3({},Z,this[_0x4488c7(0x8a)]);this[_0x4488c7(0xb8)][_0x4488c7(0x99)]('ink.config',_0x880bb5);}[_0x42e332(0xa5)](){const _0x324fa2=_0x42e332;[[X,{'useClass':Te}]][_0x324fa2(0x93)](_0x4aa28b=>this['_injector']['add'](_0x4aa28b)),this['disposeWithMe'](this['_commandService']['registerCommand'](Ee));}};function _0x2777(){const _0x51428f=['get','fillColor','_adapters','1.0.0-alpha.3','endIndex','find','point','default','right','start','UNIVER_UNKNOWN','out','segmentIndex','min','slice','kind','opacity','_configService','push','anchors','filter','distance','smooth','none','call','registerAdapter','SolidFill','8858160rRYSbJ','#f54a45','6726GelLiu','abs','indexOf','string','tolerance','splice','free','round','_injector','width','map','closed','type','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','294lhEVpr','5515120Wczaes','object','version','defineProperty','prototype','iterator','anchorId','2485926oJqkTs','@univerjs-pro/ink','Round','corner','startIndex','7038CIDGAb','386063RWKxik','2177dGkTIG','function','_config','ratio','points','createCustomShape','anchor','69324FRdEaM','hypot','createId','pluginName','forEach','ink.host-adapter.service','beginInkMode','left','max','end','setConfig','symbol','toPrimitive','symmetric','_commandService','15zJioUu','tool','pointType','ink.operation.start','UNIVER_INK_PLUGIN','pen','length','onStarting','top'];_0x2777=function(){return _0x51428f;};return _0x2777();}Y($,_0x42e332(0x92),_0x42e332(0xa2)),Y($,'packageName',Se),Y($,_0x42e332(0xd5),Ce),Y($,_0x42e332(0xd0),_0x5370d0[_0x42e332(0xb1)]),$=De([_0x95406c(_0x3f4697),Q(0x1,_0x9103c7(_0x17a253)),Q(0x2,_0x1a1bff),Q(0x3,_0x2f7050)],$);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 _0x2e3b56=_0x2d27;(function(_0x4c131a,_0xc0d08c){const _0x3c99fd=_0x2d27,_0x244389=_0x4c131a();while(!![]){try{const _0x589aa8=-parseInt(_0x3c99fd(0x141))/0x1+-parseInt(_0x3c99fd(0x117))/0x2+-parseInt(_0x3c99fd(0x136))/0x3*(-parseInt(_0x3c99fd(0x14d))/0x4)+-parseInt(_0x3c99fd(0x134))/0x5*(-parseInt(_0x3c99fd(0x150))/0x6)+parseInt(_0x3c99fd(0x14a))/0x7*(parseInt(_0x3c99fd(0x14c))/0x8)+parseInt(_0x3c99fd(0x104))/0x9+-parseInt(_0x3c99fd(0xff))/0xa;if(_0x589aa8===_0xc0d08c)break;else _0x244389['push'](_0x244389['shift']());}catch(_0x4669aa){_0x244389['push'](_0x244389['shift']());}}}(_0x247f,0xd5749));import{ShapeFillEnum as _0x49ffcc,ShapeLineCapEnum as _0x159578,ShapeLineJoinEnum as _0x424331,ShapeLineTypeEnum as _0x56f9e7,ShapeTypeEnum as _0x497e0c}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x28261b}from'@univerjs-pro/license';import{CommandType as _0x1a46d0,DependentOn as _0x4e5fed,ICommandService as _0xb74673,IConfigService as _0xec36e4,Inject as _0x36e470,Injector as _0x80316c,Plugin as _0x5b9715,UniverInstanceType as _0x2c0ee9,createIdentifier as _0x1b5b97,merge as _0x48ad06,toDisposable as _0x1d67f1}from'@univerjs/core';const g=0.0001;function _(_0x93d90e){return{'x':_0x93d90e['x'],'y':_0x93d90e['y']};}function v(_0x2f80e2){const _0x48f252=_0x2d27;return{..._0x2f80e2,'in':_0x2f80e2['in']?_(_0x2f80e2['in']):void 0x0,'out':_0x2f80e2[_0x48f252(0x12d)]?_(_0x2f80e2[_0x48f252(0x12d)]):void 0x0};}function y(_0x3dd440){const _0x4e56b8=_0x2d27;return{'kind':_0x4e56b8(0x135),'closed':_0x3dd440[_0x4e56b8(0xf3)],'anchors':_0x3dd440[_0x4e56b8(0xf6)][_0x4e56b8(0x118)](v)};}function b(_0x7d5dc5,_0x15bbd2,_0x5b3e5b){return{'x':_0x7d5dc5['x']+(_0x15bbd2['x']-_0x7d5dc5['x'])*_0x5b3e5b,'y':_0x7d5dc5['y']+(_0x15bbd2['y']-_0x7d5dc5['y'])*_0x5b3e5b};}function x(_0x5e0605,_0xba7a24){const _0x3a05da=_0x2d27;return Math[_0x3a05da(0x13f)](_0x5e0605['x']-_0xba7a24['x'],_0x5e0605['y']-_0xba7a24['y']);}function S(_0x3e5676){let _0x2c0eab=Math['hypot'](_0x3e5676['x'],_0x3e5676['y']);return _0x2c0eab<g?{'x':0x1,'y':0x0}:{'x':_0x3e5676['x']/_0x2c0eab,'y':_0x3e5676['y']/_0x2c0eab};}function C(_0x562caf,_0x226fd2,_0x1c68a7=x(_0x562caf,_0x226fd2)){let _0x5f39ea=S({'x':_0x562caf['x']-_0x226fd2['x'],'y':_0x562caf['y']-_0x226fd2['y']});return{'x':_0x562caf['x']+_0x5f39ea['x']*_0x1c68a7,'y':_0x562caf['y']+_0x5f39ea['y']*_0x1c68a7};}function w(_0x12e1a1,_0xc9f4eb){const _0x29efe8=_0x2d27;let {anchors:_0x32538a}=_0x12e1a1;return _0x32538a[_0x29efe8(0xfd)]<0x2||_0xc9f4eb<0x0?null:_0xc9f4eb<_0x32538a[_0x29efe8(0xfd)]-0x1?{'startIndex':_0xc9f4eb,'endIndex':_0xc9f4eb+0x1,'start':_0x32538a[_0xc9f4eb],'end':_0x32538a[_0xc9f4eb+0x1]}:_0x12e1a1[_0x29efe8(0xf3)]&&_0xc9f4eb===_0x32538a[_0x29efe8(0xfd)]-0x1?{'startIndex':_0x32538a[_0x29efe8(0xfd)]-0x1,'endIndex':0x0,'start':_0x32538a[_0x32538a[_0x29efe8(0xfd)]-0x1],'end':_0x32538a[0x0]}:null;}function T(_0x3af419,_0x5a2f28){const _0x28472f=_0x2d27;var _0xe45d6d,_0x3c9187;let _0x312b4a=w(_0x3af419,_0x5a2f28);return _0x312b4a?[_0x312b4a['start'],(_0xe45d6d=_0x312b4a[_0x28472f(0x13d)]['out'])==null?_0x312b4a[_0x28472f(0x13d)]:_0xe45d6d,(_0x3c9187=_0x312b4a[_0x28472f(0x12a)]['in'])==null?_0x312b4a['end']:_0x3c9187,_0x312b4a[_0x28472f(0x12a)]]:null;}function te(_0x23930b,_0x56f055){var _0x93976d;return _0x56f055==='anchor'?_0x23930b:(_0x93976d=_0x23930b[_0x56f055])==null?null:_0x93976d;}function E(_0x309a8f,_0x328de8,_0x41bfca){const _0x196086=_0x2d27;return _0x41bfca===_0x196086(0x14b)||_0x309a8f['closed']?!0x0:_0x41bfca==='in'?_0x328de8>0x0:_0x328de8<_0x309a8f[_0x196086(0xf6)][_0x196086(0xfd)]-0x1;}function D(_0x3da967,_0x59837c){let [_0x3062f1,_0x41b561,_0x5912d9,_0x2c96f2]=_0x3da967,_0x281ee8=b(_0x3062f1,_0x41b561,_0x59837c),_0x3a35ca=b(_0x41b561,_0x5912d9,_0x59837c),_0x40e013=b(_0x5912d9,_0x2c96f2,_0x59837c);return b(b(_0x281ee8,_0x3a35ca,_0x59837c),b(_0x3a35ca,_0x40e013,_0x59837c),_0x59837c);}function ne(_0x4e717d,_0x4be864){let [_0x5c90b8,_0x1b56b7,_0x5d0e53,_0x133020]=_0x4e717d,_0x1e418e=b(_0x5c90b8,_0x1b56b7,_0x4be864),_0x105a3d=b(_0x1b56b7,_0x5d0e53,_0x4be864),_0x17a6f6=b(_0x5d0e53,_0x133020,_0x4be864),_0x50d6f0=b(_0x1e418e,_0x105a3d,_0x4be864),_0x25b650=b(_0x105a3d,_0x17a6f6,_0x4be864),_0x4324a4=b(_0x50d6f0,_0x25b650,_0x4be864);return{'left':[_0x5c90b8,_0x1e418e,_0x50d6f0,_0x4324a4],'right':[_0x4324a4,_0x25b650,_0x17a6f6,_0x133020]};}function O(_0x568316,_0x8fe576,_0x24e20c){const _0x2a6fb9=_0x2d27;let _0x1217c4=_0x24e20c['x']-_0x8fe576['x'],_0x50afb7=_0x24e20c['y']-_0x8fe576['y'],_0x3d2ba6=_0x1217c4*_0x1217c4+_0x50afb7*_0x50afb7,_0x5a48f2=_0x3d2ba6<=g?0x0:Math[_0x2a6fb9(0x12c)](0x0,Math[_0x2a6fb9(0x101)](0x1,((_0x568316['x']-_0x8fe576['x'])*_0x1217c4+(_0x568316['y']-_0x8fe576['y'])*_0x50afb7)/_0x3d2ba6)),_0x281122={'x':_0x8fe576['x']+_0x1217c4*_0x5a48f2,'y':_0x8fe576['y']+_0x50afb7*_0x5a48f2};return{'point':_0x281122,'ratio':_0x5a48f2,'distance':x(_0x568316,_0x281122)};}function re(_0x8929f2,_0x19c3a7,_0x3f059c){const _0xf6fdb3=_0x2d27;return O(_0x8929f2,_0x19c3a7,_0x3f059c)[_0xf6fdb3(0x124)]**0x2;}function k(_0x44a6b9,_0x1f14a8){const _0x21b679=_0x2d27;if(_0x44a6b9['length']<=0x2)return _0x44a6b9[_0x21b679(0x118)](_);let _0x2b772b=0x0,_0x623dbd=0x0,_0x17c922=_0x44a6b9[0x0],_0x13b4c0=_0x44a6b9[_0x44a6b9[_0x21b679(0xfd)]-0x1],_0x4f0163=_0x1f14a8*_0x1f14a8;for(let _0x49e9fe=0x1;_0x49e9fe<_0x44a6b9[_0x21b679(0xfd)]-0x1;_0x49e9fe++){let _0x65de19=re(_0x44a6b9[_0x49e9fe],_0x17c922,_0x13b4c0);_0x65de19>_0x2b772b&&(_0x2b772b=_0x65de19,_0x623dbd=_0x49e9fe);}if(_0x2b772b<=_0x4f0163)return[_(_0x17c922),_(_0x13b4c0)];let _0x229531=k(_0x44a6b9[_0x21b679(0x145)](0x0,_0x623dbd+0x1),_0x1f14a8),_0x535a3c=k(_0x44a6b9[_0x21b679(0x145)](_0x623dbd),_0x1f14a8);return[..._0x229531[_0x21b679(0x145)](0x0,-0x1),..._0x535a3c];}function ie(_0x3a3897,_0x49285e){var _0xd3c9f5;let _0x3966eb=_0x3a3897[_0x49285e],_0x316a82=_0x3a3897[_0x49285e+0x1],_0x3fd794=(_0xd3c9f5=_0x3a3897[_0x49285e-0x1])==null?_0x3966eb:_0xd3c9f5;return{'x':_0x3966eb['x']+(_0x316a82['x']-_0x3fd794['x'])/0x6,'y':_0x3966eb['y']+(_0x316a82['y']-_0x3fd794['y'])/0x6};}function _0x247f(){const _0x26e9bc=['@univerjs-pro/ink','prototype','length','packageName','7567630prCMQm','abs','min','push','version','10429299ZjHrLH','registerCommand','find','getOwnPropertyDescriptor','toPrimitive','endIndex','#f54a45','symmetric','UNIVER_UNKNOWN','object','norm','width','ink.operation.start','kind','function','splice','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','ink-centerline-','constructor','541956zKekGH','map','UNIVER_INK_PLUGIN','free','fillColor','call','right','get','string','left','ink.host-adapter.service','onStarting','pointType','distance','createCustomShape','findIndex','1.0.0-alpha.4','beginInkMode','disposeWithMe','end','sqrt','max','out','add','startIndex','Round','height','_injector','filter','95XEbvsi','pen','797925RjAFqT','_config','point','opacity','segmentIndex','_adapters','top','start','round','hypot','createId','1642436CuQJDo','join','points','smooth','slice','iterator','OPERATION','_configService','defineProperty','18536IyuewX','anchor','4408WoluzB','12rgDCWn','symbol','decorate','40644afCmFH','__ink-preview-anchor__','closed','type','color','anchors','ratio','forEach','corner','SolidFill'];_0x247f=function(){return _0x26e9bc;};return _0x247f();}function A(_0x29dfd6,_0x4ad533){var _0x1d655e;let _0x2db7b9=_0x29dfd6[_0x4ad533],_0xb0196e=_0x29dfd6[_0x4ad533-0x1],_0x48cf2c=(_0x1d655e=_0x29dfd6[_0x4ad533+0x1])==null?_0x2db7b9:_0x1d655e;return{'x':_0x2db7b9['x']-(_0x48cf2c['x']-_0xb0196e['x'])/0x6,'y':_0x2db7b9['y']-(_0x48cf2c['y']-_0xb0196e['y'])/0x6};}function _0x2d27(_0x46a514,_0x325767){_0x46a514=_0x46a514-0xf2;const _0x247f78=_0x247f();let _0x2d2719=_0x247f78[_0x46a514];return _0x2d2719;}function j(_0x312d14,_0x3bfc1d){const _0x1bad7c=_0x2d27;var _0x243b5a,_0x4d1069;let _0x481987=_0x312d14[_0x1bad7c(0xf6)][_0x3bfc1d],_0x2745e6=(_0x243b5a=_0x312d14[_0x1bad7c(0xf6)][_0x3bfc1d-0x1])==null?_0x312d14[_0x1bad7c(0xf3)]?_0x312d14['anchors'][_0x312d14['anchors']['length']-0x1]:null:_0x243b5a,_0x2d48eb=(_0x4d1069=_0x312d14[_0x1bad7c(0xf6)][_0x3bfc1d+0x1])==null?_0x312d14['closed']?_0x312d14[_0x1bad7c(0xf6)][0x0]:null:_0x4d1069,_0x4b010d=_0x2745e6&&_0x2d48eb?S({'x':_0x2d48eb['x']-_0x2745e6['x'],'y':_0x2d48eb['y']-_0x2745e6['y']}):_0x2d48eb?S({'x':_0x2d48eb['x']-_0x481987['x'],'y':_0x2d48eb['y']-_0x481987['y']}):_0x2745e6?S({'x':_0x481987['x']-_0x2745e6['x'],'y':_0x481987['y']-_0x2745e6['y']}):{'x':0x1,'y':0x0},_0x527a9b=_0x2745e6&&_0x2d48eb?Math[_0x1bad7c(0x12c)](0x32,x(_0x2745e6,_0x2d48eb)/0x4):0x32;return{'in':{'x':_0x481987['x']-_0x4b010d['x']*_0x527a9b,'y':_0x481987['y']-_0x4b010d['y']*_0x527a9b},'out':{'x':_0x481987['x']+_0x4b010d['x']*_0x527a9b,'y':_0x481987['y']+_0x4b010d['y']*_0x527a9b}};}function M(_0x4b61f5,_0x47e9ac){const _0x57a79f=_0x2d27;let _0x30fa9f=_0x4b61f5[_0x47e9ac],_0xf1448a=_0x47e9ac==='in'?_0x57a79f(0x12d):'in',_0xf05aad=_0x4b61f5[_0xf1448a];if(_0x30fa9f){if(_0x4b61f5[_0x57a79f(0x123)]===_0x57a79f(0x10b)){_0x4b61f5[_0xf1448a]=C(_0x4b61f5,_0x30fa9f);return;}_0x4b61f5[_0x57a79f(0x123)]===_0x57a79f(0x144)&&(_0x4b61f5[_0xf1448a]=C(_0x4b61f5,_0x30fa9f,_0xf05aad?x(_0x4b61f5,_0xf05aad):x(_0x4b61f5,_0x30fa9f)));}}function ae(_0x45c0c5,_0x5b49bd){const _0x382031=_0x2d27;let _0x5207be=y(_0x45c0c5);return!_0x5b49bd||_0x5207be[_0x382031(0xf3)]||_0x5207be[_0x382031(0xf6)]['length']===0x0||_0x5207be['anchors'][_0x382031(0x102)]({'id':_0x382031(0xf2),'x':_0x5b49bd['x'],'y':_0x5b49bd['y'],'pointType':_0x382031(0xf9)}),_0x5207be;}function oe(_0x535ee3,_0x1039f0={}){const _0x15eef8=_0x2d27;var _0x553c01,_0x4656e4;let _0x28b242=Math['max'](0x0,(_0x553c01=_0x1039f0['tolerance'])==null?Math[_0x15eef8(0x12c)](0x4,_0x535ee3[_0x15eef8(0x10f)]*0.35):_0x553c01),_0x3c3ed4=(_0x4656e4=_0x1039f0[_0x15eef8(0x140)])==null?_0x36f06b=>_0x15eef8(0x115)+_0x36f06b:_0x4656e4,_0x841f46=k(_0x535ee3['points'],_0x28b242),_0x627a69=_0x841f46[_0x15eef8(0x118)]((_0x27d562,_0x17cad3)=>({'id':_0x3c3ed4(_0x17cad3),'x':_0x27d562['x'],'y':_0x27d562['y'],'pointType':_0x15eef8(0x11a)}));for(let _0x218981=0x0;_0x218981<_0x627a69[_0x15eef8(0xfd)]-0x1;_0x218981++)_0x627a69[_0x218981]['out']=ie(_0x841f46,_0x218981),_0x627a69[_0x218981+0x1]['in']=A(_0x841f46,_0x218981+0x1);return{'kind':_0x15eef8(0x135),'closed':!0x1,'anchors':_0x627a69};}function se(_0xc5e94,_0x328f48,_0x2ed2f1){const _0x3544be=_0x2d27;let _0x47c61b=null,_0x36d925=[_0x3544be(0x14b),'in',_0x3544be(0x12d)];return _0xc5e94['anchors'][_0x3544be(0xf8)]((_0x54050a,_0x4d5eba)=>{const _0x445449=_0x3544be;_0x36d925[_0x445449(0xf8)](_0x45b0a7=>{const _0x1b5d52=_0x445449;if(!E(_0xc5e94,_0x4d5eba,_0x45b0a7))return;let _0x39e85a=te(_0x54050a,_0x45b0a7);if(!_0x39e85a)return;let _0x59b90a=x(_0x328f48,_0x39e85a);_0x59b90a>_0x2ed2f1||_0x47c61b&&_0x59b90a>=_0x47c61b[_0x1b5d52(0x124)]||(_0x47c61b={'handle':{'kind':_0x45b0a7,'anchorId':_0x54050a['id']},'point':_(_0x39e85a),'distance':_0x59b90a});});}),_0x47c61b;}function ce(_0x2aa1a6,_0xa24ba6,_0x50bd04){const _0x408f8b=_0x2d27;let _0x52aa9d=null,_0x1d8d3e=_0x2aa1a6[_0x408f8b(0xf3)]?_0x2aa1a6['anchors'][_0x408f8b(0xfd)]:Math['max'](0x0,_0x2aa1a6[_0x408f8b(0xf6)][_0x408f8b(0xfd)]-0x1);for(let _0x9e90ec=0x0;_0x9e90ec<_0x1d8d3e;_0x9e90ec++){let _0x15eef5=T(_0x2aa1a6,_0x9e90ec);if(!_0x15eef5)continue;let _0x3f7911=D(_0x15eef5,0x0);for(let _0x212ca8=0x1;_0x212ca8<=0x20;_0x212ca8++){let _0xd40039=D(_0x15eef5,_0x212ca8/0x20),_0x8ab98c=O(_0xa24ba6,_0x3f7911,_0xd40039),_0x1f0163=(_0x212ca8-0x1+_0x8ab98c[_0x408f8b(0xf7)])/0x20;(!_0x52aa9d||_0x8ab98c[_0x408f8b(0x124)]<_0x52aa9d[_0x408f8b(0x124)])&&(_0x52aa9d={'segmentIndex':_0x9e90ec,'t':_0x1f0163,'point':_0x8ab98c[_0x408f8b(0x138)],'distance':_0x8ab98c[_0x408f8b(0x124)]}),_0x3f7911=_0xd40039;}}return _0x52aa9d&&_0x52aa9d[_0x408f8b(0x124)]<=_0x50bd04?_0x52aa9d:null;}function le(_0x24fc32,_0x232477,_0x4366c5){const _0x59f0ac=_0x2d27;let _0x3e97e3=y(_0x24fc32),_0x3ceb53=w(_0x3e97e3,_0x232477[_0x59f0ac(0x13a)]),_0xafa24a=T(_0x3e97e3,_0x232477[_0x59f0ac(0x13a)]);if(!_0x3ceb53||!_0xafa24a)return _0x3e97e3;let _0x377481=ne(_0xafa24a,Math[_0x59f0ac(0x12c)](0x0,Math[_0x59f0ac(0x101)](0x1,_0x232477['t']))),_0x1c360d={'id':_0x4366c5(),'x':_0x377481[_0x59f0ac(0x120)][0x3]['x'],'y':_0x377481[_0x59f0ac(0x120)][0x3]['y'],'in':_(_0x377481[_0x59f0ac(0x120)][0x2]),'out':_(_0x377481['right'][0x1]),'pointType':_0x59f0ac(0x11a)};return _0x3e97e3['anchors'][_0x3ceb53[_0x59f0ac(0x12f)]][_0x59f0ac(0x12d)]=_(_0x377481[_0x59f0ac(0x120)][0x1]),_0x3e97e3['anchors'][_0x3ceb53[_0x59f0ac(0x109)]]['in']=_(_0x377481[_0x59f0ac(0x11d)][0x2]),_0x3e97e3['anchors']['splice'](_0x3ceb53['startIndex']+0x1,0x0,_0x1c360d),_0x3e97e3;}function ue(_0x1d304b,_0x2dcbdb){const _0x5e0eab=_0x2d27;let _0x28febf=y(_0x1d304b);return _0x28febf[_0x5e0eab(0xf6)]=_0x28febf[_0x5e0eab(0xf6)][_0x5e0eab(0x133)](_0x5063e0=>_0x5063e0['id']!==_0x2dcbdb),_0x28febf[_0x5e0eab(0xf3)]&&_0x28febf[_0x5e0eab(0xf6)]['length']<0x3&&(_0x28febf[_0x5e0eab(0xf3)]=!0x1),_0x28febf;}function N(_0x1b48c3,_0x58d544,_0x3da1f7){const _0x8c2eec=_0x2d27;let _0x9f07e2=y(_0x1b48c3),_0x32a433=_0x9f07e2['anchors'][_0x8c2eec(0x126)](_0x1886ea=>_0x1886ea['id']===_0x58d544),_0x332257=_0x9f07e2[_0x8c2eec(0xf6)][_0x32a433];if(!_0x332257)return _0x9f07e2;if(_0x332257['pointType']=_0x3da1f7,_0x3da1f7===_0x8c2eec(0xf9))return delete _0x332257['in'],delete _0x332257['out'],_0x9f07e2;let _0x3364a2=j(_0x9f07e2,_0x32a433);if(_0x332257['in']=_0x332257['in']?_(_0x332257['in']):_0x3364a2['in'],_0x332257[_0x8c2eec(0x12d)]=_0x332257[_0x8c2eec(0x12d)]?_(_0x332257['out']):_0x3364a2[_0x8c2eec(0x12d)],_0x3da1f7===_0x8c2eec(0x10b)){let _0x1678a1=Math['max'](x(_0x332257,_0x332257['in']),x(_0x332257,_0x332257[_0x8c2eec(0x12d)]),0x32),_0x5c06a6=S({'x':_0x332257[_0x8c2eec(0x12d)]['x']-_0x332257['x'],'y':_0x332257[_0x8c2eec(0x12d)]['y']-_0x332257['y']});_0x332257[_0x8c2eec(0x12d)]={'x':_0x332257['x']+_0x5c06a6['x']*_0x1678a1,'y':_0x332257['y']+_0x5c06a6['y']*_0x1678a1},_0x332257['in']={'x':_0x332257['x']-_0x5c06a6['x']*_0x1678a1,'y':_0x332257['y']-_0x5c06a6['y']*_0x1678a1};}else _0x3da1f7==='smooth'&&M(_0x332257,_0x8c2eec(0x12d));return _0x9f07e2;}function P(_0x4646d0,_0x580530){const _0x5d7d61=_0x2d27;var _0x50d22c;let _0x26240d=_0x4646d0[_0x5d7d61(0xf6)][_0x5d7d61(0x106)](_0xa8876f=>_0xa8876f['id']===_0x580530),_0x4f02cd=(_0x50d22c=_0x26240d==null?void 0x0:_0x26240d['pointType'])==null?'corner':_0x50d22c;return N(_0x4646d0,_0x580530,_0x4f02cd===_0x5d7d61(0xf9)?'smooth':_0x4f02cd===_0x5d7d61(0x144)?_0x5d7d61(0x10b):_0x4f02cd===_0x5d7d61(0x10b)?'free':_0x5d7d61(0xf9));}function F(_0x40c323,_0x29c665,_0x209330){const _0x374045=_0x2d27;let _0x1b8478=y(_0x40c323),_0xea8a60=_0x1b8478[_0x374045(0xf6)][_0x374045(0x106)](_0x49529d=>_0x49529d['id']===_0x29c665['anchorId']);if(!_0xea8a60)return _0x1b8478;if(_0x29c665[_0x374045(0x111)]===_0x374045(0x14b)){let _0x462301={'x':_0x209330['x']-_0xea8a60['x'],'y':_0x209330['y']-_0xea8a60['y']};return _0xea8a60['x']=_0x209330['x'],_0xea8a60['y']=_0x209330['y'],_0xea8a60['in']&&(_0xea8a60['in']={'x':_0xea8a60['in']['x']+_0x462301['x'],'y':_0xea8a60['in']['y']+_0x462301['y']}),_0xea8a60[_0x374045(0x12d)]&&(_0xea8a60[_0x374045(0x12d)]={'x':_0xea8a60[_0x374045(0x12d)]['x']+_0x462301['x'],'y':_0xea8a60[_0x374045(0x12d)]['y']+_0x462301['y']}),_0x1b8478;}return _0xea8a60[_0x29c665['kind']]=_(_0x209330),_0xea8a60['pointType']===_0x374045(0xf9)&&(_0xea8a60[_0x374045(0x123)]=_0x374045(0x11a)),M(_0xea8a60,_0x29c665['kind']),_0x1b8478;}const I=1e-9;function L(_0x117846){let _0x125e9d=Math['round'](_0x117846*0x2710)/0x2710;return Object['is'](_0x125e9d,-0x0)?'0':String(_0x125e9d);}function R(_0x3d9356){return L(_0x3d9356['x'])+'\x20'+L(_0x3d9356['y']);}function z(_0x436733,_0x41e7e1){return{'x':_0x436733['x']-_0x41e7e1['x'],'y':_0x436733['y']-_0x41e7e1['y']};}function B(_0x4f1811,_0x3e9e16,_0x5631bf,_0x27f88b,_0x14fa00){let _0x48045a=0x1-_0x14fa00;return{'x':_0x48045a*_0x48045a*_0x48045a*_0x4f1811['x']+0x3*_0x48045a*_0x48045a*_0x14fa00*_0x3e9e16['x']+0x3*_0x48045a*_0x14fa00*_0x14fa00*_0x5631bf['x']+_0x14fa00*_0x14fa00*_0x14fa00*_0x27f88b['x'],'y':_0x48045a*_0x48045a*_0x48045a*_0x4f1811['y']+0x3*_0x48045a*_0x48045a*_0x14fa00*_0x3e9e16['y']+0x3*_0x48045a*_0x14fa00*_0x14fa00*_0x5631bf['y']+_0x14fa00*_0x14fa00*_0x14fa00*_0x27f88b['y']};}function V(_0xc4a6bb,_0x13cdbd,_0x3b91ea,_0x1e62d0){const _0x235fb2=_0x2d27;let _0x59a549=-_0xc4a6bb+0x3*_0x13cdbd-0x3*_0x3b91ea+_0x1e62d0,_0x28f729=0x3*_0xc4a6bb-0x6*_0x13cdbd+0x3*_0x3b91ea,_0x98b950=-0x3*_0xc4a6bb+0x3*_0x13cdbd,_0x39248c=[];if(Math[_0x235fb2(0x100)](_0x59a549)<I){if(Math[_0x235fb2(0x100)](_0x28f729)<I)return _0x39248c;let _0x27ec85=-_0x98b950/(0x2*_0x28f729);return _0x27ec85>0x0&&_0x27ec85<0x1&&_0x39248c[_0x235fb2(0x102)](_0x27ec85),_0x39248c;}let _0xcad79a=_0x28f729*_0x28f729-0x3*_0x59a549*_0x98b950;if(_0xcad79a<0x0)return _0x39248c;let _0xca5800=Math[_0x235fb2(0x12b)](Math[_0x235fb2(0x12c)](0x0,_0xcad79a)),_0x40d2b9=(-_0x28f729+_0xca5800)/(0x3*_0x59a549),_0x595e36=(-_0x28f729-_0xca5800)/(0x3*_0x59a549);return _0x40d2b9>0x0&&_0x40d2b9<0x1&&_0x39248c['push'](_0x40d2b9),_0x595e36>0x0&&_0x595e36<0x1&&Math[_0x235fb2(0x100)](_0x595e36-_0x40d2b9)>I&&_0x39248c[_0x235fb2(0x102)](_0x595e36),_0x39248c;}function H(_0x4910e0,_0x44fd6b,_0x19f924,_0x856b9e,_0x26afec){const _0x4220e6=_0x2d27;_0x4910e0[_0x4220e6(0x102)](_0x44fd6b,_0x26afec),new Set([...V(_0x44fd6b['x'],_0x19f924['x'],_0x856b9e['x'],_0x26afec['x']),...V(_0x44fd6b['y'],_0x19f924['y'],_0x856b9e['y'],_0x26afec['y'])])['forEach'](_0x297f6a=>{const _0x402b5d=_0x4220e6;_0x4910e0[_0x402b5d(0x102)](B(_0x44fd6b,_0x19f924,_0x856b9e,_0x26afec,_0x297f6a));});}function U(_0x9e5b31){const _0x228a31=_0x2d27;let _0x23ab92=_0x9e5b31['anchors'];if(_0x23ab92['length']<=0x1)return _0x23ab92;let _0x24c613=[];for(let _0xe9d1cc=0x1;_0xe9d1cc<_0x23ab92[_0x228a31(0xfd)];_0xe9d1cc++){var _0x249320,_0x3ebdc5;let _0x5416e6=_0x23ab92[_0xe9d1cc-0x1],_0x484ee3=_0x23ab92[_0xe9d1cc];H(_0x24c613,_0x5416e6,(_0x249320=_0x5416e6['out'])==null?_0x5416e6:_0x249320,(_0x3ebdc5=_0x484ee3['in'])==null?_0x484ee3:_0x3ebdc5,_0x484ee3);}if(_0x9e5b31[_0x228a31(0xf3)]&&_0x23ab92[_0x228a31(0xfd)]>0x1){var _0xa48706,_0x85e96a;let _0x25b267=_0x23ab92[_0x23ab92[_0x228a31(0xfd)]-0x1],_0x2ca612=_0x23ab92[0x0];H(_0x24c613,_0x25b267,(_0xa48706=_0x25b267[_0x228a31(0x12d)])==null?_0x25b267:_0xa48706,(_0x85e96a=_0x2ca612['in'])==null?_0x2ca612:_0x85e96a,_0x2ca612);}return _0x24c613;}function de(_0x58a96a){const _0x30b7c0=_0x2d27;let _0x5d8af7=_0x58a96a[_0x30b7c0(0x143)];if(_0x5d8af7[_0x30b7c0(0xfd)]<=0x1)return _0x5d8af7;let _0x6e3779=[];for(let _0x1677b4=0x0;_0x1677b4<_0x5d8af7[_0x30b7c0(0xfd)]-0x1;_0x1677b4++){var _0x7a1805,_0x26e9e1;let _0x3c74ec=_0x5d8af7[_0x1677b4],_0xa88980=_0x5d8af7[_0x1677b4+0x1],_0x577e7c=(_0x7a1805=_0x5d8af7[_0x1677b4-0x1])==null?_0x3c74ec:_0x7a1805,_0x1a9fa3=(_0x26e9e1=_0x5d8af7[_0x1677b4+0x2])==null?_0xa88980:_0x26e9e1;H(_0x6e3779,_0x3c74ec,{'x':_0x3c74ec['x']+(_0xa88980['x']-_0x577e7c['x'])/0x6,'y':_0x3c74ec['y']+(_0xa88980['y']-_0x577e7c['y'])/0x6},{'x':_0xa88980['x']-(_0x1a9fa3['x']-_0x3c74ec['x'])/0x6,'y':_0xa88980['y']-(_0x1a9fa3['y']-_0x3c74ec['y'])/0x6},_0xa88980);}return _0x6e3779;}function fe(_0x33e4f9){const _0x478b36=_0x2d27;return _0x33e4f9['kind']===_0x478b36(0x135)?U(_0x33e4f9):de(_0x33e4f9);}function W(_0x5d90ce){const _0x106ceb=_0x2d27;let _0x3e98c4=Math[_0x106ceb(0x13e)](_0x5d90ce*0x2710)/0x2710;return Object['is'](_0x3e98c4,-0x0)?0x0:_0x3e98c4;}function G(_0x24141b){const _0x15b0eb=_0x2d27;let _0x1ade8a=fe(_0x24141b);if(_0x1ade8a[_0x15b0eb(0xfd)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x45ca80=Math['min'](..._0x1ade8a[_0x15b0eb(0x118)](_0x1b7d25=>_0x1b7d25['x'])),_0x46a414=Math[_0x15b0eb(0x101)](..._0x1ade8a['map'](_0x705e05=>_0x705e05['y'])),_0x34d7f8=Math[_0x15b0eb(0x12c)](..._0x1ade8a[_0x15b0eb(0x118)](_0x82c095=>_0x82c095['x'])),_0x1f3f88=Math[_0x15b0eb(0x12c)](..._0x1ade8a[_0x15b0eb(0x118)](_0x535faa=>_0x535faa['y']));return{'left':W(_0x45ca80),'top':W(_0x46a414),'width':W(Math[_0x15b0eb(0x12c)](0x1,_0x34d7f8-_0x45ca80)),'height':W(Math[_0x15b0eb(0x12c)](0x1,_0x1f3f88-_0x46a414))};}function pe(_0xa8d8f4,_0x2b0cd9){const _0x4e5175=_0x2d27;let _0x2cfd00=_0xa8d8f4[_0x4e5175(0xf6)];if(_0x2cfd00[_0x4e5175(0xfd)]===0x0)return'';let _0x11b554=['M\x20'+R(z(_0x2cfd00[0x0],_0x2b0cd9))];for(let _0x503007=0x1;_0x503007<_0x2cfd00[_0x4e5175(0xfd)];_0x503007++){var _0x3b3e90,_0x35552b;let _0x2e6325=_0x2cfd00[_0x503007-0x1],_0x33aae5=_0x2cfd00[_0x503007],_0xe60940=(_0x3b3e90=_0x2e6325[_0x4e5175(0x12d)])==null?_0x2e6325:_0x3b3e90,_0x4d4dc7=(_0x35552b=_0x33aae5['in'])==null?_0x33aae5:_0x35552b;_0x11b554[_0x4e5175(0x102)]('C\x20'+R(z(_0xe60940,_0x2b0cd9))+'\x20'+R(z(_0x4d4dc7,_0x2b0cd9))+'\x20'+R(z(_0x33aae5,_0x2b0cd9)));}if(_0xa8d8f4[_0x4e5175(0xf3)]&&_0x2cfd00[_0x4e5175(0xfd)]>0x1){var _0x1c7e8c,_0x8ac50b;let _0x4e085b=_0x2cfd00[_0x2cfd00[_0x4e5175(0xfd)]-0x1],_0x4e8889=_0x2cfd00[0x0],_0x37249d=(_0x1c7e8c=_0x4e085b[_0x4e5175(0x12d)])==null?_0x4e085b:_0x1c7e8c,_0x4f6674=(_0x8ac50b=_0x4e8889['in'])==null?_0x4e8889:_0x8ac50b;_0x11b554[_0x4e5175(0x102)]('C\x20'+R(z(_0x37249d,_0x2b0cd9))+'\x20'+R(z(_0x4f6674,_0x2b0cd9))+'\x20'+R(z(_0x4e8889,_0x2b0cd9))),_0x11b554['push']('Z');}return _0x11b554[_0x4e5175(0x142)]('\x20');}function me(_0x1cc52a,_0x4a4d69){const _0x347c54=_0x2d27;let _0x30c287=_0x1cc52a[_0x347c54(0x143)][_0x347c54(0x118)](_0x54d188=>z(_0x54d188,_0x4a4d69));if(_0x30c287['length']===0x0)return'';if(_0x30c287[_0x347c54(0xfd)]===0x1)return'M\x20'+R(_0x30c287[0x0]);let _0x1b7e5e=['M\x20'+R(_0x30c287[0x0])];for(let _0x17ca42=0x0;_0x17ca42<_0x30c287[_0x347c54(0xfd)]-0x1;_0x17ca42++){var _0x121d5b,_0x14a5fe;let _0x7749b8=_0x30c287[_0x17ca42],_0x56d6d2=_0x30c287[_0x17ca42+0x1],_0x305900=(_0x121d5b=_0x30c287[_0x17ca42-0x1])==null?_0x7749b8:_0x121d5b,_0x3bc6c5=(_0x14a5fe=_0x30c287[_0x17ca42+0x2])==null?_0x56d6d2:_0x14a5fe,_0x349f2f={'x':_0x7749b8['x']+(_0x56d6d2['x']-_0x305900['x'])/0x6,'y':_0x7749b8['y']+(_0x56d6d2['y']-_0x305900['y'])/0x6},_0x747410={'x':_0x56d6d2['x']-(_0x3bc6c5['x']-_0x7749b8['x'])/0x6,'y':_0x56d6d2['y']-(_0x3bc6c5['y']-_0x7749b8['y'])/0x6};_0x1b7e5e['push']('C\x20'+R(_0x349f2f)+'\x20'+R(_0x747410)+'\x20'+R(_0x56d6d2));}return _0x1b7e5e[_0x347c54(0x142)]('\x20');}function he(_0x533e88,_0xce93b7){const _0x1cc5da=_0x2d27;return _0x533e88[_0x1cc5da(0x111)]==='pen'?pe(_0x533e88,_0xce93b7):me(_0x533e88,_0xce93b7);}function ge(_0x23ed3d,_0x58921a){const _0x1d6f02=_0x2d27;return _0x58921a!=null&&_0x58921a[_0x1d6f02(0xf5)]?_0x58921a['color']:_0x23ed3d[_0x1d6f02(0x111)]===_0x1d6f02(0x135)?_0x1d6f02(0x10a):_0x23ed3d[_0x1d6f02(0xf5)];}function _e(_0x539814,_0x365c2d){const _0x599da3=_0x2d27;return(_0x365c2d==null?void 0x0:_0x365c2d[_0x599da3(0x10f)])===void 0x0?_0x539814[_0x599da3(0x111)]===_0x599da3(0x135)?0x2:_0x539814[_0x599da3(0x10f)]:_0x365c2d[_0x599da3(0x10f)];}function ve(_0xb5c25d,_0x30f7d6){const _0x3524ae=_0x2d27;return(_0x30f7d6==null?void 0x0:_0x30f7d6[_0x3524ae(0x139)])===void 0x0?_0xb5c25d[_0x3524ae(0x111)]==='pen'?void 0x0:_0xb5c25d[_0x3524ae(0x139)]:_0x30f7d6[_0x3524ae(0x139)];}function ye(_0x5702f1,_0x2e8105){const _0x2225d7=_0x2d27;let _0x3eb7bb=G(_0x5702f1),_0x17e9a4=he(_0x5702f1,{'x':_0x3eb7bb[_0x2225d7(0x120)],'y':_0x3eb7bb[_0x2225d7(0x13c)]}),_0x18a039=_0x5702f1[_0x2225d7(0x111)]===_0x2225d7(0x135)&&_0x5702f1['closed'],_0x4cde2d=_0x2e8105==null?void 0x0:_0x2e8105[_0x2225d7(0x11b)];return{'shapeType':_0x497e0c['Rect'],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x3eb7bb[_0x2225d7(0x10f)],'h':_0x3eb7bb[_0x2225d7(0x131)],'fill':_0x18a039?_0x2225d7(0x10e):'none','stroke':!0x0,'data':_0x17e9a4,'dataArray':be(_0x5702f1,{'x':_0x3eb7bb[_0x2225d7(0x120)],'y':_0x3eb7bb[_0x2225d7(0x13c)]})}]},'fill':_0x18a039&&_0x4cde2d?{'color':_0x4cde2d,'fillType':_0x49ffcc[_0x2225d7(0xfa)]}:{'fillType':_0x49ffcc['NoFill']},'stroke':{'color':ge(_0x5702f1,_0x2e8105),'width':_e(_0x5702f1,_0x2e8105),'opacity':ve(_0x5702f1,_0x2e8105),'lineStrokeType':_0x56f9e7['SolidLine'],'capType':_0x159578[_0x2225d7(0x130)],'lineJoinType':_0x424331[_0x2225d7(0x130)]}};}function K(_0x39a490,_0x928a39){return{'x':_0x39a490['x']-_0x928a39['x'],'y':_0x39a490['y']-_0x928a39['y']};}function be(_0x267e5b,_0x392ec2){const _0x129fd7=_0x2d27;if(_0x267e5b[_0x129fd7(0x111)]===_0x129fd7(0x135)){let _0x1b3e52=_0x267e5b[_0x129fd7(0xf6)];if(_0x1b3e52['length']===0x0)return[];let _0x5535e1=K(_0x1b3e52[0x0],_0x392ec2),_0xcec6e9=[{'command':'M','points':[_0x5535e1['x'],_0x5535e1['y']]}];for(let _0x5d3ea3=0x1;_0x5d3ea3<_0x1b3e52['length'];_0x5d3ea3++){var _0x3b9b5d,_0x33dadb;let _0x2ab6ce=_0x1b3e52[_0x5d3ea3-0x1],_0x3fb24d=_0x1b3e52[_0x5d3ea3],_0x1c7fae=K((_0x3b9b5d=_0x2ab6ce[_0x129fd7(0x12d)])==null?_0x2ab6ce:_0x3b9b5d,_0x392ec2),_0x8494a6=K((_0x33dadb=_0x3fb24d['in'])==null?_0x3fb24d:_0x33dadb,_0x392ec2),_0x35926c=K(_0x3fb24d,_0x392ec2);_0xcec6e9[_0x129fd7(0x102)]({'command':'C','points':[_0x1c7fae['x'],_0x1c7fae['y'],_0x8494a6['x'],_0x8494a6['y'],_0x35926c['x'],_0x35926c['y']]});}if(_0x267e5b[_0x129fd7(0xf3)]&&_0x1b3e52[_0x129fd7(0xfd)]>0x1){var _0x2a70f1,_0x328eaa;let _0x1448bc=_0x1b3e52[_0x1b3e52['length']-0x1],_0x31d3d1=_0x1b3e52[0x0],_0x5b0bdb=K((_0x2a70f1=_0x1448bc[_0x129fd7(0x12d)])==null?_0x1448bc:_0x2a70f1,_0x392ec2),_0x80f16c=K((_0x328eaa=_0x31d3d1['in'])==null?_0x31d3d1:_0x328eaa,_0x392ec2),_0x4373f3=K(_0x31d3d1,_0x392ec2);_0xcec6e9[_0x129fd7(0x102)]({'command':'C','points':[_0x5b0bdb['x'],_0x5b0bdb['y'],_0x80f16c['x'],_0x80f16c['y'],_0x4373f3['x'],_0x4373f3['y']]}),_0xcec6e9['push']({'command':'z','points':[]});}return _0xcec6e9;}let _0x3d16cb=_0x267e5b[_0x129fd7(0x143)]['map'](_0x487c8a=>K(_0x487c8a,_0x392ec2));if(_0x3d16cb[_0x129fd7(0xfd)]===0x0)return[];let _0x316801=[{'command':'M','points':[_0x3d16cb[0x0]['x'],_0x3d16cb[0x0]['y']]}];for(let _0x1bcfaa=0x0;_0x1bcfaa<_0x3d16cb[_0x129fd7(0xfd)]-0x1;_0x1bcfaa++){var _0xd7bf1b,_0x37d8c0;let _0x46fde8=_0x3d16cb[_0x1bcfaa],_0x4c40b2=_0x3d16cb[_0x1bcfaa+0x1],_0x49f7d2=(_0xd7bf1b=_0x3d16cb[_0x1bcfaa-0x1])==null?_0x46fde8:_0xd7bf1b,_0x750b3e=(_0x37d8c0=_0x3d16cb[_0x1bcfaa+0x2])==null?_0x4c40b2:_0x37d8c0,_0x2f9cfd={'x':_0x46fde8['x']+(_0x4c40b2['x']-_0x49f7d2['x'])/0x6,'y':_0x46fde8['y']+(_0x4c40b2['y']-_0x49f7d2['y'])/0x6},_0x485d38={'x':_0x4c40b2['x']-(_0x750b3e['x']-_0x46fde8['x'])/0x6,'y':_0x4c40b2['y']-(_0x750b3e['y']-_0x46fde8['y'])/0x6};_0x316801[_0x129fd7(0x102)]({'command':'C','points':[_0x2f9cfd['x'],_0x2f9cfd['y'],_0x485d38['x'],_0x485d38['y'],_0x4c40b2['x'],_0x4c40b2['y']]});}return _0x316801;}function xe(_0x2eff88){const _0x423e2c=_0x2d27;var _0x431223;let {model:_0x5dd4f7,sourceModel:_0x138319=_0x5dd4f7,style:_0x5402e5}=_0x2eff88,_0x46dbc7=(_0x431223=_0x2eff88['tool'])==null?_0x5dd4f7[_0x423e2c(0x111)]:_0x431223,_0x5027c3=G(_0x5dd4f7),_0x3f23d7=_0x5dd4f7[_0x423e2c(0x111)]===_0x423e2c(0x135)&&_0x46dbc7!==_0x423e2c(0x135)?_0x5dd4f7:void 0x0;return{'transform':{..._0x5027c3,'rotation':0x0},'shapeData':ye(_0x5dd4f7,_0x5402e5),'ink':{'version':0x1,'tool':_0x46dbc7,'sourceModel':_0x138319,..._0x3f23d7?{'editModel':_0x3f23d7}:{},'normalizedBounds':_0x5027c3}};}var Se=_0x2e3b56(0xfb),Ce=_0x2e3b56(0x127);function q(_0x15a6c4){'@babel/helpers - typeof';const _0x121911=_0x2e3b56;return q=typeof Symbol==_0x121911(0x112)&&typeof Symbol[_0x121911(0x146)]==_0x121911(0x14e)?function(_0x2717da){return typeof _0x2717da;}:function(_0x1cf911){const _0x363bb7=_0x121911;return _0x1cf911&&typeof Symbol==_0x363bb7(0x112)&&_0x1cf911[_0x363bb7(0x116)]===Symbol&&_0x1cf911!==Symbol[_0x363bb7(0xfc)]?_0x363bb7(0x14e):typeof _0x1cf911;},q(_0x15a6c4);}function we(_0x2a395d,_0xcc3944){const _0x4baa95=_0x2e3b56;if(q(_0x2a395d)!=_0x4baa95(0x10d)||!_0x2a395d)return _0x2a395d;var _0x897942=_0x2a395d[Symbol[_0x4baa95(0x108)]];if(_0x897942!==void 0x0){var _0x29a689=_0x897942[_0x4baa95(0x11c)](_0x2a395d,_0xcc3944||'default');if(q(_0x29a689)!=_0x4baa95(0x10d))return _0x29a689;throw TypeError(_0x4baa95(0x114));}return(_0xcc3944===_0x4baa95(0x11f)?String:Number)(_0x2a395d);}function J(_0x390cb1){const _0x2a7360=_0x2e3b56;var _0x5c7633=we(_0x390cb1,_0x2a7360(0x11f));return q(_0x5c7633)==_0x2a7360(0x14e)?_0x5c7633:_0x5c7633+'';}function Y(_0x3320b4,_0x2b8406,_0x8fc579){const _0x21f6a1=_0x2e3b56;return(_0x2b8406=J(_0x2b8406))in _0x3320b4?Object[_0x21f6a1(0x149)](_0x3320b4,_0x2b8406,{'value':_0x8fc579,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3320b4[_0x2b8406]=_0x8fc579,_0x3320b4;}const X=_0x1b5b97(_0x2e3b56(0x121));var Te=class{constructor(){const _0x183049=_0x2e3b56;Y(this,_0x183049(0x13b),[]);}['registerAdapter'](_0x955f68){const _0x533c1a=_0x2e3b56;return this[_0x533c1a(0x13b)][_0x533c1a(0x102)](_0x955f68),_0x1d67f1(()=>{const _0x16e06c=_0x533c1a;let _0xb7e258=this[_0x16e06c(0x13b)]['indexOf'](_0x955f68);_0xb7e258>=0x0&&this['_adapters'][_0x16e06c(0x113)](_0xb7e258,0x1);});}[_0x2e3b56(0x128)](_0x24e0f3){const _0x2a0eed=_0x2e3b56;for(let _0x5ee148 of this[_0x2a0eed(0x13b)])if(_0x5ee148['beginInkMode'](_0x24e0f3))return!0x0;return!0x1;}async[_0x2e3b56(0x125)](_0xcc520b){const _0x390fb7=_0x2e3b56;for(let _0x439083 of this[_0x390fb7(0x13b)])if(_0x439083['createCustomShape']&&await _0x439083['createCustomShape'](_0xcc520b))return!0x0;return!0x1;}};const Ee={'id':_0x2e3b56(0x110),'type':_0x1a46d0[_0x2e3b56(0x147)],'handler':(_0x5b43ec,_0x29d535)=>_0x29d535?_0x5b43ec[_0x2e3b56(0x11e)](X)[_0x2e3b56(0x128)](_0x29d535):!0x1},Z={};function Q(_0x56d189,_0x4f2578){return function(_0x171553,_0x33247e){_0x4f2578(_0x171553,_0x33247e,_0x56d189);};}function De(_0x3f8a83,_0x4f9f9c,_0x349a3c,_0x5c7adc){const _0x17fcee=_0x2e3b56;var _0xa8e9ab=arguments['length'],_0x131abc=_0xa8e9ab<0x3?_0x4f9f9c:_0x5c7adc===null?_0x5c7adc=Object[_0x17fcee(0x107)](_0x4f9f9c,_0x349a3c):_0x5c7adc,_0x1db57b;if(typeof Reflect==_0x17fcee(0x10d)&&typeof Reflect[_0x17fcee(0x14f)]==_0x17fcee(0x112))_0x131abc=Reflect[_0x17fcee(0x14f)](_0x3f8a83,_0x4f9f9c,_0x349a3c,_0x5c7adc);else{for(var _0x2703c4=_0x3f8a83[_0x17fcee(0xfd)]-0x1;_0x2703c4>=0x0;_0x2703c4--)(_0x1db57b=_0x3f8a83[_0x2703c4])&&(_0x131abc=(_0xa8e9ab<0x3?_0x1db57b(_0x131abc):_0xa8e9ab>0x3?_0x1db57b(_0x4f9f9c,_0x349a3c,_0x131abc):_0x1db57b(_0x4f9f9c,_0x349a3c))||_0x131abc);}return _0xa8e9ab>0x3&&_0x131abc&&Object['defineProperty'](_0x4f9f9c,_0x349a3c,_0x131abc),_0x131abc;}let $=class extends _0x5b9715{constructor(_0x204bbf=Z,_0x12161d,_0x2c29ac,_0x4c8f75){const _0x2ba8ec=_0x2e3b56;super(),this[_0x2ba8ec(0x137)]=_0x204bbf,this[_0x2ba8ec(0x132)]=_0x12161d,this['_commandService']=_0x2c29ac,this[_0x2ba8ec(0x148)]=_0x4c8f75;let {..._0x3fd52e}=_0x48ad06({},Z,this[_0x2ba8ec(0x137)]);this[_0x2ba8ec(0x148)]['setConfig']('ink.config',_0x3fd52e);}[_0x2e3b56(0x122)](){const _0x29072c=_0x2e3b56;[[X,{'useClass':Te}]]['forEach'](_0x59fea0=>this[_0x29072c(0x132)][_0x29072c(0x12e)](_0x59fea0)),this[_0x29072c(0x129)](this['_commandService'][_0x29072c(0x105)](Ee));}};Y($,'pluginName',_0x2e3b56(0x119)),Y($,_0x2e3b56(0xfe),Se),Y($,_0x2e3b56(0x103),Ce),Y($,_0x2e3b56(0xf4),_0x2c0ee9[_0x2e3b56(0x10c)]),$=De([_0x4e5fed(_0x28261b),Q(0x1,_0x36e470(_0x80316c)),Q(0x2,_0xb74673),Q(0x3,_0xec36e4)],$);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 _0x5583(_0x407a9b,_0x227ec8){_0x407a9b=_0x407a9b-0xf3;const _0x2dc5cf=_0x2dc5();let _0x55830b=_0x2dc5cf[_0x407a9b];return _0x55830b;}(function(_0x22db14,_0x425209){const _0x3df7da=_0x5583,_0x46a755=_0x22db14();while(!![]){try{const _0xeb94b8=parseInt(_0x3df7da(0x117))/0x1*(parseInt(_0x3df7da(0xfa))/0x2)+-parseInt(_0x3df7da(0x116))/0x3+parseInt(_0x3df7da(0x102))/0x4*(parseInt(_0x3df7da(0xf4))/0x5)+parseInt(_0x3df7da(0x111))/0x6+-parseInt(_0x3df7da(0xfb))/0x7+parseInt(_0x3df7da(0x118))/0x8+-parseInt(_0x3df7da(0x106))/0x9;if(_0xeb94b8===_0x425209)break;else _0x46a755['push'](_0x46a755['shift']());}catch(_0x4257cd){_0x46a755['push'](_0x46a755['shift']());}}}(_0x2dc5,0x76d4d),function(_0x4ea036,_0x1138a7){const _0x38a6ad=_0x5583;typeof exports=='object'&&typeof module<'u'?_0x1138a7(exports,require('@univerjs-pro/boards'),require('@univerjs-pro/boards/facade'),require('@univerjs-pro/ink'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0x38a6ad(0x11a)&&define[_0x38a6ad(0x104)]?define([_0x38a6ad(0x129),'@univerjs-pro/boards','@univerjs-pro/boards/facade','@univerjs-pro/ink',_0x38a6ad(0xf5),_0x38a6ad(0x110)],_0x1138a7):(_0x4ea036=typeof globalThis<'u'?globalThis:_0x4ea036||self,_0x1138a7(_0x4ea036[_0x38a6ad(0xff)]={},_0x4ea036[_0x38a6ad(0x10c)],_0x4ea036['UniverProBoardsFacade'],_0x4ea036['UniverProInk'],_0x4ea036[_0x38a6ad(0x105)],_0x4ea036['UniverCoreFacade']));}(this,function(_0x49e13a,_0x5e487e,_0x11c76d,_0x5234ef,_0x140246,_0x5e5dde){const _0x5b0ffb=_0x5583;Object[_0x5b0ffb(0x120)](_0x49e13a,Symbol[_0x5b0ffb(0x107)],{'value':_0x5b0ffb(0x101)});var _0xa3f3ad=class extends _0x11c76d[_0x5b0ffb(0x119)]{[_0x5b0ffb(0x114)](_0x4f85c6){const _0x48c6c9=_0x5b0ffb;let _0x162750=_0x94c236(_0x4f85c6);return _0x162750&&this[_0x48c6c9(0xfe)](_0x162750,{'insertIndex':_0x4f85c6['insertIndex']})?_0x162750:null;}[_0x5b0ffb(0x10e)](){const _0x2032a4=_0x5b0ffb;return this['findElements']({'elementType':_0x5e487e[_0x2032a4(0xfc)][_0x2032a4(0x11f)],'includeHidden':!0x0,'includeLocked':!0x0})['filter'](_0x10ea94);}};function _0x94c236(_0x2b9f67,_0x22af19){const _0x239ebb=_0x5b0ffb;var _0xd55013,_0x35d03e,_0x4d41d4;if(!_0xca5f61(_0x2b9f67[_0x239ebb(0x10d)])||_0x2b9f67[_0x239ebb(0x126)]!==void 0x0&&!_0xca5f61(_0x2b9f67[_0x239ebb(0x126)])||!_0x525136(_0x2b9f67[_0x239ebb(0x103)]))return null;let _0x3c5c8d=(_0xd55013=_0x2b9f67[_0x239ebb(0x131)])==null?_0x22af19==null?void 0x0:_0x22af19[_0x239ebb(0x131)]:_0xd55013,_0x14b42e=_0x140246['Tools']['deepClone'](_0x2b9f67[_0x239ebb(0x10d)]),_0x1581b0=(0x0,_0x5234ef[_0x239ebb(0x124)])({'model':_0x14b42e,'style':_0x2b9f67[_0x239ebb(0x103)],'tool':_0x2b9f67[_0x239ebb(0x100)],'sourceModel':_0x2b9f67[_0x239ebb(0x126)]?_0x140246[_0x239ebb(0xfd)]['deepClone'](_0x2b9f67[_0x239ebb(0x126)]):_0x14b42e}),_0x4a1974=_0x39bfd9(_0x22af19==null?void 0x0:_0x22af19[_0x239ebb(0x12e)]);return{'id':(_0x35d03e=(_0x4d41d4=_0x22af19==null?void 0x0:_0x22af19['id'])==null?_0x2b9f67['id']:_0x4d41d4)==null?(0x0,_0x140246['generateRandomId'])(0x6):_0x35d03e,'type':_0x5e487e[_0x239ebb(0xfc)][_0x239ebb(0x11f)],'transform':_0x1581b0[_0x239ebb(0x12a)],'shapeData':_0x1581b0['shapeData'],'parentId':_0x3c5c8d==null?void 0x0:_0x3c5c8d,'laneId':_0x2b9f67[_0x239ebb(0x113)]===void 0x0?_0x22af19==null?void 0x0:_0x22af19['laneId']:_0x2b9f67[_0x239ebb(0x113)],'custom':{..._0x4a1974,'ink':_0x1581b0[_0x239ebb(0x112)]}};}function _0x1dac45(_0x57f22){const _0x1e50f4=_0x5b0ffb;return Number[_0x1e50f4(0xf6)](_0x57f22['x'])&&Number[_0x1e50f4(0xf6)](_0x57f22['y']);}function _0xca5f61(_0x444c49){const _0x1f8761=_0x5b0ffb;if(_0x444c49[_0x1f8761(0x122)]===_0x1f8761(0x128)){let _0x2ce135=new Set();return _0x444c49[_0x1f8761(0x11c)][_0x1f8761(0x10a)]>=(_0x444c49[_0x1f8761(0x108)]?0x3:0x2)&&_0x444c49[_0x1f8761(0x11c)]['every'](_0x4c5977=>{const _0x4c8b3d=_0x1f8761;let _0x242a99=_0x4c5977['id'][_0x4c8b3d(0x125)]()[_0x4c8b3d(0x10a)]>0x0&&!_0x2ce135[_0x4c8b3d(0x12f)](_0x4c5977['id'])&&_0x1dac45(_0x4c5977)&&(!_0x4c5977['in']||_0x1dac45(_0x4c5977['in']))&&(!_0x4c5977[_0x4c8b3d(0x12c)]||_0x1dac45(_0x4c5977[_0x4c8b3d(0x12c)]));return _0x2ce135[_0x4c8b3d(0xf9)](_0x4c5977['id']),_0x242a99;});}return _0x444c49[_0x1f8761(0x127)]['length']>=0x2&&_0x444c49[_0x1f8761(0x127)][_0x1f8761(0xf8)](_0x5ade51=>_0x1dac45(_0x5ade51)&&Number['isFinite'](_0x5ade51['t'])&&(_0x5ade51[_0x1f8761(0x11d)]===void 0x0||Number[_0x1f8761(0xf6)](_0x5ade51['pressure'])))&&Number['isFinite'](_0x444c49[_0x1f8761(0x130)])&&_0x444c49[_0x1f8761(0x130)]>0x0&&Number[_0x1f8761(0xf6)](_0x444c49['opacity'])&&_0x444c49['opacity']>=0x0&&_0x444c49[_0x1f8761(0x109)]<=0x1;}function _0x525136(_0x394780){const _0x33b44d=_0x5b0ffb;return _0x394780===void 0x0||(_0x394780[_0x33b44d(0x130)]===void 0x0||Number['isFinite'](_0x394780['width'])&&_0x394780[_0x33b44d(0x130)]>0x0)&&(_0x394780[_0x33b44d(0x109)]===void 0x0||Number[_0x33b44d(0xf6)](_0x394780[_0x33b44d(0x109)])&&_0x394780[_0x33b44d(0x109)]>=0x0&&_0x394780[_0x33b44d(0x109)]<=0x1);}function _0x39bfd9(_0xa1fc07){const _0x59af15=_0x5b0ffb;return _0xa1fc07&&typeof _0xa1fc07==_0x59af15(0x121)&&!Array[_0x59af15(0x12d)](_0xa1fc07)?_0xa1fc07:{};}function _0x1dd2c9(_0x3b5cb7){const _0x1f6b3f=_0x5b0ffb;let _0x5871f5=_0x39bfd9(_0x3b5cb7[_0x1f6b3f(0x12e)])[_0x1f6b3f(0x112)];if(!_0x5871f5||typeof _0x5871f5!='object'||Array[_0x1f6b3f(0x12d)](_0x5871f5))return null;let _0x40218d=_0x5871f5;return _0x40218d[_0x1f6b3f(0x12b)]===0x1&&_0x40218d[_0x1f6b3f(0x126)]&&typeof _0x40218d[_0x1f6b3f(0x126)]==_0x1f6b3f(0x121)?_0x40218d:null;}function _0x10ea94(_0x26176a){const _0x2ee9ac=_0x5b0ffb;return _0x26176a['type']===_0x5e487e[_0x2ee9ac(0xfc)][_0x2ee9ac(0x11f)]&&!!_0x1dd2c9(_0x26176a);}_0x11c76d[_0x5b0ffb(0x119)][_0x5b0ffb(0x115)](_0xa3f3ad);let _0x4738d8={'Pen':'pen','Brush':_0x5b0ffb(0xf3),'Highlighter':_0x5b0ffb(0x11e)},_0x25ecd3={'Corner':_0x5b0ffb(0xf7),'Smooth':_0x5b0ffb(0x11b),'Symmetric':'symmetric','Free':_0x5b0ffb(0x123)},_0x2d839b={'Anchor':'anchor','In':'in','Out':_0x5b0ffb(0x12c)};var _0x4e063f=class extends _0x5e5dde[_0x5b0ffb(0x132)]{get[_0x5b0ffb(0x10b)](){return _0x4738d8;}get[_0x5b0ffb(0x10f)](){return _0x25ecd3;}get['BoardInkHandleKind'](){return _0x2d839b;}};_0x5e5dde['FEnum'][_0x5b0ffb(0x115)](_0x4e063f),_0x49e13a['BoardInkHandleKind']=_0x2d839b,_0x49e13a[_0x5b0ffb(0x10f)]=_0x25ecd3,_0x49e13a[_0x5b0ffb(0x10b)]=_0x4738d8;}));function _0x2dc5(){const _0x23446b=['FEnum','brush','5PezJpL','@univerjs/core','isFinite','corner','every','add','12410ETodbV','702009leOZQY','BoardElementType','Tools','addElement','UniverProInkFacade','tool','Module','1846088ooXgmZ','style','amd','UniverCore','19119375NkljYS','toStringTag','closed','opacity','length','BoardInkTool','UniverProBoards','model','getInks','BoardInkPointType','@univerjs/core/facade','5802156wCHNOq','ink','laneId','insertInk','extend','1651755sIogTa','153zgUKNK','7072536BwGzml','FBoard','function','smooth','anchors','pressure','highlighter','Shape','defineProperty','object','kind','free','buildInkCustomShapePayload','trim','sourceModel','points','pen','exports','transform','version','out','isArray','custom','has','width','parentId'];_0x2dc5=function(){return _0x23446b;};return _0x2dc5();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x51d9f1,_0x3fbb8c){const _0x1926ec=_0x166a,_0x4a4083=_0x51d9f1();while(!![]){try{const _0x2048cc=parseInt(_0x1926ec(0xc0))/0x1*(-parseInt(_0x1926ec(0xcd))/0x2)+parseInt(_0x1926ec(0x101))/0x3*(parseInt(_0x1926ec(0x95))/0x4)+-parseInt(_0x1926ec(0x10d))/0x5+-parseInt(_0x1926ec(0x9d))/0x6*(-parseInt(_0x1926ec(0x9c))/0x7)+parseInt(_0x1926ec(0xc1))/0x8*(-parseInt(_0x1926ec(0xe1))/0x9)+parseInt(_0x1926ec(0xe8))/0xa*(-parseInt(_0x1926ec(0xb4))/0xb)+parseInt(_0x1926ec(0x9f))/0xc;if(_0x2048cc===_0x3fbb8c)break;else _0x4a4083['push'](_0x4a4083['shift']());}catch(_0x713d03){_0x4a4083['push'](_0x4a4083['shift']());}}}(_0x2571,0xb3884),function(_0x461e24,_0x4c50ef){const _0x56f6f6=_0x166a;typeof exports=='object'&&typeof module<'u'?_0x4c50ef(exports,require('@univerjs-pro/engine-shape'),require('@univerjs-pro/license'),require('@univerjs/core')):typeof define==_0x56f6f6(0xfd)&&define['amd']?define([_0x56f6f6(0x108),_0x56f6f6(0xf7),_0x56f6f6(0xa6),_0x56f6f6(0xb6)],_0x4c50ef):(_0x461e24=typeof globalThis<'u'?globalThis:_0x461e24||self,_0x4c50ef(_0x461e24[_0x56f6f6(0xbe)]={},_0x461e24['UniverProEngineShape'],_0x461e24[_0x56f6f6(0xa2)],_0x461e24[_0x56f6f6(0xdd)]));}(this,function(_0x22c953,_0x4f478d,_0x45dfe3,_0x28570e){const _0x36d067=_0x166a;Object[_0x36d067(0x96)](_0x22c953,Symbol[_0x36d067(0xcf)],{'value':_0x36d067(0x112)});let _0x1e9577=0.0001;function _0x2796a9(_0x80fdec){return{'x':_0x80fdec['x'],'y':_0x80fdec['y']};}function _0x46966a(_0x2f48f2){const _0xa2b2f6=_0x36d067;return{..._0x2f48f2,'in':_0x2f48f2['in']?_0x2796a9(_0x2f48f2['in']):void 0x0,'out':_0x2f48f2[_0xa2b2f6(0xac)]?_0x2796a9(_0x2f48f2[_0xa2b2f6(0xac)]):void 0x0};}function _0x4c640b(_0x1e5426){const _0x46bd00=_0x36d067;return{'kind':_0x46bd00(0xfc),'closed':_0x1e5426[_0x46bd00(0xb9)],'anchors':_0x1e5426['anchors']['map'](_0x46966a)};}function _0x57f3e6(_0x31f57e,_0x2f4d52,_0x14e1a5){return{'x':_0x31f57e['x']+(_0x2f4d52['x']-_0x31f57e['x'])*_0x14e1a5,'y':_0x31f57e['y']+(_0x2f4d52['y']-_0x31f57e['y'])*_0x14e1a5};}function _0x371a3c(_0x476bce,_0x2df00a){const _0x32068a=_0x36d067;return Math[_0x32068a(0xb1)](_0x476bce['x']-_0x2df00a['x'],_0x476bce['y']-_0x2df00a['y']);}function _0x480f51(_0x21d051){const _0x1efc6c=_0x36d067;let _0x3dfe77=Math[_0x1efc6c(0xb1)](_0x21d051['x'],_0x21d051['y']);return _0x3dfe77<_0x1e9577?{'x':0x1,'y':0x0}:{'x':_0x21d051['x']/_0x3dfe77,'y':_0x21d051['y']/_0x3dfe77};}function _0x2cbb59(_0x4264ca,_0x3992a5,_0x5d39a4=_0x371a3c(_0x4264ca,_0x3992a5)){let _0x31e666=_0x480f51({'x':_0x4264ca['x']-_0x3992a5['x'],'y':_0x4264ca['y']-_0x3992a5['y']});return{'x':_0x4264ca['x']+_0x31e666['x']*_0x5d39a4,'y':_0x4264ca['y']+_0x31e666['y']*_0x5d39a4};}function _0x44d1ac(_0x36d0b1,_0x138ecc){const _0x537493=_0x36d067;let {anchors:_0x57391a}=_0x36d0b1;return _0x57391a[_0x537493(0xd6)]<0x2||_0x138ecc<0x0?null:_0x138ecc<_0x57391a[_0x537493(0xd6)]-0x1?{'startIndex':_0x138ecc,'endIndex':_0x138ecc+0x1,'start':_0x57391a[_0x138ecc],'end':_0x57391a[_0x138ecc+0x1]}:_0x36d0b1[_0x537493(0xb9)]&&_0x138ecc===_0x57391a[_0x537493(0xd6)]-0x1?{'startIndex':_0x57391a[_0x537493(0xd6)]-0x1,'endIndex':0x0,'start':_0x57391a[_0x57391a[_0x537493(0xd6)]-0x1],'end':_0x57391a[0x0]}:null;}function _0x10d03f(_0x2bdac2,_0x5da539){const _0x245a6c=_0x36d067;var _0x1368d8,_0x1b9e27;let _0x4ed4da=_0x44d1ac(_0x2bdac2,_0x5da539);return _0x4ed4da?[_0x4ed4da[_0x245a6c(0xc2)],(_0x1368d8=_0x4ed4da[_0x245a6c(0xc2)][_0x245a6c(0xac)])==null?_0x4ed4da['start']:_0x1368d8,(_0x1b9e27=_0x4ed4da[_0x245a6c(0xa9)]['in'])==null?_0x4ed4da[_0x245a6c(0xa9)]:_0x1b9e27,_0x4ed4da[_0x245a6c(0xa9)]]:null;}function _0x519201(_0x475143,_0x59b4c5){const _0x1fc4a8=_0x36d067;var _0x4c5f93;return _0x59b4c5===_0x1fc4a8(0x110)?_0x475143:(_0x4c5f93=_0x475143[_0x59b4c5])==null?null:_0x4c5f93;}function _0x5928d2(_0x15ec35,_0x260800,_0x44e3f2){const _0x32a74d=_0x36d067;return _0x44e3f2===_0x32a74d(0x110)||_0x15ec35[_0x32a74d(0xb9)]?!0x0:_0x44e3f2==='in'?_0x260800>0x0:_0x260800<_0x15ec35[_0x32a74d(0xe6)][_0x32a74d(0xd6)]-0x1;}function _0x366cd4(_0x39ff6a,_0x2a9d30){let [_0x2c70cb,_0x16cf4e,_0x4900d5,_0x453303]=_0x39ff6a,_0x16dc53=_0x57f3e6(_0x2c70cb,_0x16cf4e,_0x2a9d30),_0x3527cc=_0x57f3e6(_0x16cf4e,_0x4900d5,_0x2a9d30),_0x256d3b=_0x57f3e6(_0x4900d5,_0x453303,_0x2a9d30);return _0x57f3e6(_0x57f3e6(_0x16dc53,_0x3527cc,_0x2a9d30),_0x57f3e6(_0x3527cc,_0x256d3b,_0x2a9d30),_0x2a9d30);}function _0x38f30c(_0x1edf19,_0x17a6c9){let [_0x4c014a,_0x6c949f,_0x5e1af9,_0x1d1304]=_0x1edf19,_0x1f5e4b=_0x57f3e6(_0x4c014a,_0x6c949f,_0x17a6c9),_0xee8f02=_0x57f3e6(_0x6c949f,_0x5e1af9,_0x17a6c9),_0x138fa9=_0x57f3e6(_0x5e1af9,_0x1d1304,_0x17a6c9),_0x1311c3=_0x57f3e6(_0x1f5e4b,_0xee8f02,_0x17a6c9),_0x4de211=_0x57f3e6(_0xee8f02,_0x138fa9,_0x17a6c9),_0x410d09=_0x57f3e6(_0x1311c3,_0x4de211,_0x17a6c9);return{'left':[_0x4c014a,_0x1f5e4b,_0x1311c3,_0x410d09],'right':[_0x410d09,_0x4de211,_0x138fa9,_0x1d1304]};}function _0x15b74b(_0x296dc9,_0x58d817,_0x11ac70){const _0x43759d=_0x36d067;let _0x5d66eb=_0x11ac70['x']-_0x58d817['x'],_0x20621c=_0x11ac70['y']-_0x58d817['y'],_0x5ca50f=_0x5d66eb*_0x5d66eb+_0x20621c*_0x20621c,_0x4d5035=_0x5ca50f<=_0x1e9577?0x0:Math[_0x43759d(0xbd)](0x0,Math[_0x43759d(0xb2)](0x1,((_0x296dc9['x']-_0x58d817['x'])*_0x5d66eb+(_0x296dc9['y']-_0x58d817['y'])*_0x20621c)/_0x5ca50f)),_0x37be5a={'x':_0x58d817['x']+_0x5d66eb*_0x4d5035,'y':_0x58d817['y']+_0x20621c*_0x4d5035};return{'point':_0x37be5a,'ratio':_0x4d5035,'distance':_0x371a3c(_0x296dc9,_0x37be5a)};}function _0x5c0edb(_0x470934,_0x1c8da4,_0x33333f){const _0x219400=_0x36d067;return _0x15b74b(_0x470934,_0x1c8da4,_0x33333f)[_0x219400(0xea)]**0x2;}function _0x109c50(_0x3af525,_0x3d318a){const _0x361d02=_0x36d067;if(_0x3af525['length']<=0x2)return _0x3af525[_0x361d02(0xd4)](_0x2796a9);let _0x54bfc1=0x0,_0x303057=0x0,_0x5d47cb=_0x3af525[0x0],_0x3ad313=_0x3af525[_0x3af525['length']-0x1],_0x508bd7=_0x3d318a*_0x3d318a;for(let _0x3e1898=0x1;_0x3e1898<_0x3af525[_0x361d02(0xd6)]-0x1;_0x3e1898++){let _0x2d7a0d=_0x5c0edb(_0x3af525[_0x3e1898],_0x5d47cb,_0x3ad313);_0x2d7a0d>_0x54bfc1&&(_0x54bfc1=_0x2d7a0d,_0x303057=_0x3e1898);}if(_0x54bfc1<=_0x508bd7)return[_0x2796a9(_0x5d47cb),_0x2796a9(_0x3ad313)];let _0x5b54ce=_0x109c50(_0x3af525[_0x361d02(0x105)](0x0,_0x303057+0x1),_0x3d318a),_0x4440a2=_0x109c50(_0x3af525[_0x361d02(0x105)](_0x303057),_0x3d318a);return[..._0x5b54ce['slice'](0x0,-0x1),..._0x4440a2];}function _0x15c3f9(_0x202238,_0x4988bc){var _0x2d4e51;let _0x5c92de=_0x202238[_0x4988bc],_0x61b4bd=_0x202238[_0x4988bc+0x1],_0x433ed9=(_0x2d4e51=_0x202238[_0x4988bc-0x1])==null?_0x5c92de:_0x2d4e51;return{'x':_0x5c92de['x']+(_0x61b4bd['x']-_0x433ed9['x'])/0x6,'y':_0x5c92de['y']+(_0x61b4bd['y']-_0x433ed9['y'])/0x6};}function _0x4d3a8c(_0x508bb4,_0x18c37c){var _0x16bdbd;let _0x496f69=_0x508bb4[_0x18c37c],_0x23ac07=_0x508bb4[_0x18c37c-0x1],_0x2a06ab=(_0x16bdbd=_0x508bb4[_0x18c37c+0x1])==null?_0x496f69:_0x16bdbd;return{'x':_0x496f69['x']-(_0x2a06ab['x']-_0x23ac07['x'])/0x6,'y':_0x496f69['y']-(_0x2a06ab['y']-_0x23ac07['y'])/0x6};}function _0x4c1f63(_0x58b165,_0xbc611){const _0x2184b8=_0x36d067;var _0x24e42d,_0x48364b;let _0x4ce057=_0x58b165[_0x2184b8(0xe6)][_0xbc611],_0x454ad5=(_0x24e42d=_0x58b165[_0x2184b8(0xe6)][_0xbc611-0x1])==null?_0x58b165['closed']?_0x58b165[_0x2184b8(0xe6)][_0x58b165[_0x2184b8(0xe6)][_0x2184b8(0xd6)]-0x1]:null:_0x24e42d,_0x52ad7c=(_0x48364b=_0x58b165[_0x2184b8(0xe6)][_0xbc611+0x1])==null?_0x58b165['closed']?_0x58b165[_0x2184b8(0xe6)][0x0]:null:_0x48364b,_0x34f1f3=_0x454ad5&&_0x52ad7c?_0x480f51({'x':_0x52ad7c['x']-_0x454ad5['x'],'y':_0x52ad7c['y']-_0x454ad5['y']}):_0x52ad7c?_0x480f51({'x':_0x52ad7c['x']-_0x4ce057['x'],'y':_0x52ad7c['y']-_0x4ce057['y']}):_0x454ad5?_0x480f51({'x':_0x4ce057['x']-_0x454ad5['x'],'y':_0x4ce057['y']-_0x454ad5['y']}):{'x':0x1,'y':0x0},_0x403aca=_0x454ad5&&_0x52ad7c?Math[_0x2184b8(0xbd)](0x32,_0x371a3c(_0x454ad5,_0x52ad7c)/0x4):0x32;return{'in':{'x':_0x4ce057['x']-_0x34f1f3['x']*_0x403aca,'y':_0x4ce057['y']-_0x34f1f3['y']*_0x403aca},'out':{'x':_0x4ce057['x']+_0x34f1f3['x']*_0x403aca,'y':_0x4ce057['y']+_0x34f1f3['y']*_0x403aca}};}function _0x2cd22f(_0x1c60c0,_0x452d99){const _0x3387d2=_0x36d067;let _0x395869=_0x1c60c0[_0x452d99],_0xb96ed1=_0x452d99==='in'?_0x3387d2(0xac):'in',_0x1ac115=_0x1c60c0[_0xb96ed1];if(_0x395869){if(_0x1c60c0['pointType']===_0x3387d2(0xe5)){_0x1c60c0[_0xb96ed1]=_0x2cbb59(_0x1c60c0,_0x395869);return;}_0x1c60c0[_0x3387d2(0xd8)]==='smooth'&&(_0x1c60c0[_0xb96ed1]=_0x2cbb59(_0x1c60c0,_0x395869,_0x1ac115?_0x371a3c(_0x1c60c0,_0x1ac115):_0x371a3c(_0x1c60c0,_0x395869)));}}function _0x217661(_0x9df340,_0x443b48){const _0x2a2e76=_0x36d067;let _0x1b10cb=_0x4c640b(_0x9df340);return!_0x443b48||_0x1b10cb['closed']||_0x1b10cb['anchors'][_0x2a2e76(0xd6)]===0x0||_0x1b10cb[_0x2a2e76(0xe6)][_0x2a2e76(0xf1)]({'id':_0x2a2e76(0xa5),'x':_0x443b48['x'],'y':_0x443b48['y'],'pointType':_0x2a2e76(0xcb)}),_0x1b10cb;}function _0x43992a(_0x31062d,_0x5685d6={}){const _0x314d06=_0x36d067;var _0x49f3b2,_0x35267f;let _0x1f8180=Math[_0x314d06(0xbd)](0x0,(_0x49f3b2=_0x5685d6[_0x314d06(0x9b)])==null?Math[_0x314d06(0xbd)](0x4,_0x31062d[_0x314d06(0xe4)]*0.35):_0x49f3b2),_0x5dc14d=(_0x35267f=_0x5685d6[_0x314d06(0xee)])==null?_0x35a929=>'ink-centerline-'+_0x35a929:_0x35267f,_0x463a48=_0x109c50(_0x31062d[_0x314d06(0xd2)],_0x1f8180),_0x2b240a=_0x463a48['map']((_0x116788,_0x217415)=>({'id':_0x5dc14d(_0x217415),'x':_0x116788['x'],'y':_0x116788['y'],'pointType':_0x314d06(0xaa)}));for(let _0x2616a0=0x0;_0x2616a0<_0x2b240a[_0x314d06(0xd6)]-0x1;_0x2616a0++)_0x2b240a[_0x2616a0][_0x314d06(0xac)]=_0x15c3f9(_0x463a48,_0x2616a0),_0x2b240a[_0x2616a0+0x1]['in']=_0x4d3a8c(_0x463a48,_0x2616a0+0x1);return{'kind':'pen','closed':!0x1,'anchors':_0x2b240a};}function _0x17775e(_0x3047bf,_0x4dacc4,_0x5cd721){const _0x137abb=_0x36d067;let _0x26f16c=null,_0x42d8ea=['anchor','in',_0x137abb(0xac)];return _0x3047bf[_0x137abb(0xe6)][_0x137abb(0x107)]((_0x5aac17,_0x4f8336)=>{const _0x275592=_0x137abb;_0x42d8ea[_0x275592(0x107)](_0x23d815=>{const _0x25f2e3=_0x275592;if(!_0x5928d2(_0x3047bf,_0x4f8336,_0x23d815))return;let _0x2a7c13=_0x519201(_0x5aac17,_0x23d815);if(!_0x2a7c13)return;let _0x19658a=_0x371a3c(_0x4dacc4,_0x2a7c13);_0x19658a>_0x5cd721||_0x26f16c&&_0x19658a>=_0x26f16c[_0x25f2e3(0xea)]||(_0x26f16c={'handle':{'kind':_0x23d815,'anchorId':_0x5aac17['id']},'point':_0x2796a9(_0x2a7c13),'distance':_0x19658a});});}),_0x26f16c;}function _0x23735a(_0x8d872d,_0x5e6252,_0x14d110){const _0x547562=_0x36d067;let _0x51d2d6=null,_0x328ad3=_0x8d872d[_0x547562(0xb9)]?_0x8d872d[_0x547562(0xe6)][_0x547562(0xd6)]:Math[_0x547562(0xbd)](0x0,_0x8d872d[_0x547562(0xe6)][_0x547562(0xd6)]-0x1);for(let _0x233a13=0x0;_0x233a13<_0x328ad3;_0x233a13++){let _0x444db7=_0x10d03f(_0x8d872d,_0x233a13);if(!_0x444db7)continue;let _0x266a65=_0x366cd4(_0x444db7,0x0);for(let _0x3bf185=0x1;_0x3bf185<=0x20;_0x3bf185++){let _0x346129=_0x366cd4(_0x444db7,_0x3bf185/0x20),_0x3479d5=_0x15b74b(_0x5e6252,_0x266a65,_0x346129),_0x63adcf=(_0x3bf185-0x1+_0x3479d5['ratio'])/0x20;(!_0x51d2d6||_0x3479d5[_0x547562(0xea)]<_0x51d2d6['distance'])&&(_0x51d2d6={'segmentIndex':_0x233a13,'t':_0x63adcf,'point':_0x3479d5[_0x547562(0xad)],'distance':_0x3479d5[_0x547562(0xea)]}),_0x266a65=_0x346129;}}return _0x51d2d6&&_0x51d2d6[_0x547562(0xea)]<=_0x14d110?_0x51d2d6:null;}function _0x25fc55(_0x4de25,_0xa0a3da,_0x2f4241){const _0x6f6cbb=_0x36d067;let _0x38af19=_0x4c640b(_0x4de25),_0x169814=_0x44d1ac(_0x38af19,_0xa0a3da['segmentIndex']),_0x432621=_0x10d03f(_0x38af19,_0xa0a3da[_0x6f6cbb(0xfa)]);if(!_0x169814||!_0x432621)return _0x38af19;let _0x29bb36=_0x38f30c(_0x432621,Math[_0x6f6cbb(0xbd)](0x0,Math[_0x6f6cbb(0xb2)](0x1,_0xa0a3da['t']))),_0x49c64c={'id':_0x2f4241(),'x':_0x29bb36[_0x6f6cbb(0xeb)][0x3]['x'],'y':_0x29bb36[_0x6f6cbb(0xeb)][0x3]['y'],'in':_0x2796a9(_0x29bb36[_0x6f6cbb(0xeb)][0x2]),'out':_0x2796a9(_0x29bb36[_0x6f6cbb(0xc9)][0x1]),'pointType':'free'};return _0x38af19[_0x6f6cbb(0xe6)][_0x169814[_0x6f6cbb(0xd5)]][_0x6f6cbb(0xac)]=_0x2796a9(_0x29bb36[_0x6f6cbb(0xeb)][0x1]),_0x38af19['anchors'][_0x169814['endIndex']]['in']=_0x2796a9(_0x29bb36[_0x6f6cbb(0xc9)][0x2]),_0x38af19[_0x6f6cbb(0xe6)][_0x6f6cbb(0xa4)](_0x169814['startIndex']+0x1,0x0,_0x49c64c),_0x38af19;}function _0x24528e(_0x593cfc,_0x3b4c57){const _0x4f45c1=_0x36d067;let _0x128242=_0x4c640b(_0x593cfc);return _0x128242[_0x4f45c1(0xe6)]=_0x128242[_0x4f45c1(0xe6)][_0x4f45c1(0xc5)](_0x539c53=>_0x539c53['id']!==_0x3b4c57),_0x128242[_0x4f45c1(0xb9)]&&_0x128242[_0x4f45c1(0xe6)][_0x4f45c1(0xd6)]<0x3&&(_0x128242[_0x4f45c1(0xb9)]=!0x1),_0x128242;}function _0x662da5(_0xba9424,_0x1fd3cd,_0x13664f){const _0x12acfd=_0x36d067;let _0x5952e9=_0x4c640b(_0xba9424),_0x40e320=_0x5952e9[_0x12acfd(0xe6)][_0x12acfd(0xd7)](_0x54aa9b=>_0x54aa9b['id']===_0x1fd3cd),_0x280d5d=_0x5952e9[_0x12acfd(0xe6)][_0x40e320];if(!_0x280d5d)return _0x5952e9;if(_0x280d5d[_0x12acfd(0xd8)]=_0x13664f,_0x13664f===_0x12acfd(0xcb))return delete _0x280d5d['in'],delete _0x280d5d['out'],_0x5952e9;let _0x4ab0f9=_0x4c1f63(_0x5952e9,_0x40e320);if(_0x280d5d['in']=_0x280d5d['in']?_0x2796a9(_0x280d5d['in']):_0x4ab0f9['in'],_0x280d5d['out']=_0x280d5d[_0x12acfd(0xac)]?_0x2796a9(_0x280d5d[_0x12acfd(0xac)]):_0x4ab0f9[_0x12acfd(0xac)],_0x13664f===_0x12acfd(0xe5)){let _0x24c5f3=Math[_0x12acfd(0xbd)](_0x371a3c(_0x280d5d,_0x280d5d['in']),_0x371a3c(_0x280d5d,_0x280d5d[_0x12acfd(0xac)]),0x32),_0x316bd9=_0x480f51({'x':_0x280d5d[_0x12acfd(0xac)]['x']-_0x280d5d['x'],'y':_0x280d5d['out']['y']-_0x280d5d['y']});_0x280d5d[_0x12acfd(0xac)]={'x':_0x280d5d['x']+_0x316bd9['x']*_0x24c5f3,'y':_0x280d5d['y']+_0x316bd9['y']*_0x24c5f3},_0x280d5d['in']={'x':_0x280d5d['x']-_0x316bd9['x']*_0x24c5f3,'y':_0x280d5d['y']-_0x316bd9['y']*_0x24c5f3};}else _0x13664f===_0x12acfd(0xe2)&&_0x2cd22f(_0x280d5d,'out');return _0x5952e9;}function _0x38a269(_0x5a4269,_0x227839){const _0x1dee17=_0x36d067;var _0x51750f;let _0x30d21d=_0x5a4269['anchors'][_0x1dee17(0xda)](_0x39bdde=>_0x39bdde['id']===_0x227839),_0x255ae8=(_0x51750f=_0x30d21d==null?void 0x0:_0x30d21d[_0x1dee17(0xd8)])==null?_0x1dee17(0xcb):_0x51750f;return _0x662da5(_0x5a4269,_0x227839,_0x255ae8===_0x1dee17(0xcb)?_0x1dee17(0xe2):_0x255ae8===_0x1dee17(0xe2)?_0x1dee17(0xe5):_0x255ae8==='symmetric'?'free':'corner');}function _0x24fa03(_0x4a1d17,_0x5c9633,_0x34587d){const _0x1105f1=_0x36d067;let _0xfd6a61=_0x4c640b(_0x4a1d17),_0x2b88ec=_0xfd6a61['anchors'][_0x1105f1(0xda)](_0x1e08ab=>_0x1e08ab['id']===_0x5c9633['anchorId']);if(!_0x2b88ec)return _0xfd6a61;if(_0x5c9633[_0x1105f1(0x98)]==='anchor'){let _0x2da507={'x':_0x34587d['x']-_0x2b88ec['x'],'y':_0x34587d['y']-_0x2b88ec['y']};return _0x2b88ec['x']=_0x34587d['x'],_0x2b88ec['y']=_0x34587d['y'],_0x2b88ec['in']&&(_0x2b88ec['in']={'x':_0x2b88ec['in']['x']+_0x2da507['x'],'y':_0x2b88ec['in']['y']+_0x2da507['y']}),_0x2b88ec[_0x1105f1(0xac)]&&(_0x2b88ec[_0x1105f1(0xac)]={'x':_0x2b88ec[_0x1105f1(0xac)]['x']+_0x2da507['x'],'y':_0x2b88ec[_0x1105f1(0xac)]['y']+_0x2da507['y']}),_0xfd6a61;}return _0x2b88ec[_0x5c9633[_0x1105f1(0x98)]]=_0x2796a9(_0x34587d),_0x2b88ec[_0x1105f1(0xd8)]===_0x1105f1(0xcb)&&(_0x2b88ec[_0x1105f1(0xd8)]='free'),_0x2cd22f(_0x2b88ec,_0x5c9633['kind']),_0xfd6a61;}let _0x37e0c8=1e-9;function _0x187444(_0x3f6104){let _0x5f4824=Math['round'](_0x3f6104*0x2710)/0x2710;return Object['is'](_0x5f4824,-0x0)?'0':String(_0x5f4824);}function _0x4dbe5b(_0x56ea02){return _0x187444(_0x56ea02['x'])+'\x20'+_0x187444(_0x56ea02['y']);}function _0x3d2214(_0x1d8fe4,_0x814b85){return{'x':_0x1d8fe4['x']-_0x814b85['x'],'y':_0x1d8fe4['y']-_0x814b85['y']};}function _0x34cbe4(_0x119a70,_0x2dd445,_0x18aeec,_0x2277a1,_0x11225e){let _0x4d34cc=0x1-_0x11225e;return{'x':_0x4d34cc*_0x4d34cc*_0x4d34cc*_0x119a70['x']+0x3*_0x4d34cc*_0x4d34cc*_0x11225e*_0x2dd445['x']+0x3*_0x4d34cc*_0x11225e*_0x11225e*_0x18aeec['x']+_0x11225e*_0x11225e*_0x11225e*_0x2277a1['x'],'y':_0x4d34cc*_0x4d34cc*_0x4d34cc*_0x119a70['y']+0x3*_0x4d34cc*_0x4d34cc*_0x11225e*_0x2dd445['y']+0x3*_0x4d34cc*_0x11225e*_0x11225e*_0x18aeec['y']+_0x11225e*_0x11225e*_0x11225e*_0x2277a1['y']};}function _0x2ad68c(_0x165c1f,_0x31b69e,_0x2f2fcb,_0x54263c){const _0x66168c=_0x36d067;let _0x2cc608=-_0x165c1f+0x3*_0x31b69e-0x3*_0x2f2fcb+_0x54263c,_0x547b24=0x3*_0x165c1f-0x6*_0x31b69e+0x3*_0x2f2fcb,_0x2a42ed=-0x3*_0x165c1f+0x3*_0x31b69e,_0x68dc6e=[];if(Math[_0x66168c(0xef)](_0x2cc608)<_0x37e0c8){if(Math[_0x66168c(0xef)](_0x547b24)<_0x37e0c8)return _0x68dc6e;let _0xa227e=-_0x2a42ed/(0x2*_0x547b24);return _0xa227e>0x0&&_0xa227e<0x1&&_0x68dc6e['push'](_0xa227e),_0x68dc6e;}let _0x5ebe84=_0x547b24*_0x547b24-0x3*_0x2cc608*_0x2a42ed;if(_0x5ebe84<0x0)return _0x68dc6e;let _0xa44d18=Math[_0x66168c(0xce)](Math[_0x66168c(0xbd)](0x0,_0x5ebe84)),_0x433b28=(-_0x547b24+_0xa44d18)/(0x3*_0x2cc608),_0x575d7e=(-_0x547b24-_0xa44d18)/(0x3*_0x2cc608);return _0x433b28>0x0&&_0x433b28<0x1&&_0x68dc6e[_0x66168c(0xf1)](_0x433b28),_0x575d7e>0x0&&_0x575d7e<0x1&&Math['abs'](_0x575d7e-_0x433b28)>_0x37e0c8&&_0x68dc6e[_0x66168c(0xf1)](_0x575d7e),_0x68dc6e;}function _0x2e9a35(_0x20caad,_0x36dfc4,_0x192a97,_0x3bcf6c,_0x72e48a){const _0x1ededa=_0x36d067;_0x20caad[_0x1ededa(0xf1)](_0x36dfc4,_0x72e48a),new Set([..._0x2ad68c(_0x36dfc4['x'],_0x192a97['x'],_0x3bcf6c['x'],_0x72e48a['x']),..._0x2ad68c(_0x36dfc4['y'],_0x192a97['y'],_0x3bcf6c['y'],_0x72e48a['y'])])[_0x1ededa(0x107)](_0x4df3f1=>{const _0x2b88c5=_0x1ededa;_0x20caad[_0x2b88c5(0xf1)](_0x34cbe4(_0x36dfc4,_0x192a97,_0x3bcf6c,_0x72e48a,_0x4df3f1));});}function _0x367db9(_0x338a22){const _0x457c90=_0x36d067;let _0x51cc88=_0x338a22[_0x457c90(0xe6)];if(_0x51cc88['length']<=0x1)return _0x51cc88;let _0x199631=[];for(let _0x202c3c=0x1;_0x202c3c<_0x51cc88[_0x457c90(0xd6)];_0x202c3c++){var _0x301f8e,_0x549dbf;let _0x37e257=_0x51cc88[_0x202c3c-0x1],_0x52405e=_0x51cc88[_0x202c3c];_0x2e9a35(_0x199631,_0x37e257,(_0x301f8e=_0x37e257['out'])==null?_0x37e257:_0x301f8e,(_0x549dbf=_0x52405e['in'])==null?_0x52405e:_0x549dbf,_0x52405e);}if(_0x338a22['closed']&&_0x51cc88['length']>0x1){var _0x45d46d,_0x3b6f37;let _0x966453=_0x51cc88[_0x51cc88[_0x457c90(0xd6)]-0x1],_0x334429=_0x51cc88[0x0];_0x2e9a35(_0x199631,_0x966453,(_0x45d46d=_0x966453[_0x457c90(0xac)])==null?_0x966453:_0x45d46d,(_0x3b6f37=_0x334429['in'])==null?_0x334429:_0x3b6f37,_0x334429);}return _0x199631;}function _0x5b5e3e(_0x463f0d){const _0x3153bb=_0x36d067;let _0x377eb1=_0x463f0d['points'];if(_0x377eb1[_0x3153bb(0xd6)]<=0x1)return _0x377eb1;let _0x1c43d4=[];for(let _0x21af5f=0x0;_0x21af5f<_0x377eb1[_0x3153bb(0xd6)]-0x1;_0x21af5f++){var _0x520e5f,_0x39282d;let _0xa57467=_0x377eb1[_0x21af5f],_0x31760f=_0x377eb1[_0x21af5f+0x1],_0x4b121e=(_0x520e5f=_0x377eb1[_0x21af5f-0x1])==null?_0xa57467:_0x520e5f,_0xc728d=(_0x39282d=_0x377eb1[_0x21af5f+0x2])==null?_0x31760f:_0x39282d;_0x2e9a35(_0x1c43d4,_0xa57467,{'x':_0xa57467['x']+(_0x31760f['x']-_0x4b121e['x'])/0x6,'y':_0xa57467['y']+(_0x31760f['y']-_0x4b121e['y'])/0x6},{'x':_0x31760f['x']-(_0xc728d['x']-_0xa57467['x'])/0x6,'y':_0x31760f['y']-(_0xc728d['y']-_0xa57467['y'])/0x6},_0x31760f);}return _0x1c43d4;}function _0x5f082d(_0x2565da){const _0x5b4a4e=_0x36d067;return _0x2565da[_0x5b4a4e(0x98)]===_0x5b4a4e(0xfc)?_0x367db9(_0x2565da):_0x5b5e3e(_0x2565da);}function _0xf0e5d4(_0xfd6a57){let _0x4fee26=Math['round'](_0xfd6a57*0x2710)/0x2710;return Object['is'](_0x4fee26,-0x0)?0x0:_0x4fee26;}function _0x26a374(_0x411999){const _0x10a0ff=_0x36d067;let _0x9bb6ce=_0x5f082d(_0x411999);if(_0x9bb6ce[_0x10a0ff(0xd6)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x3ed346=Math[_0x10a0ff(0xb2)](..._0x9bb6ce[_0x10a0ff(0xd4)](_0x3c409c=>_0x3c409c['x'])),_0x3427e9=Math[_0x10a0ff(0xb2)](..._0x9bb6ce['map'](_0x42f63d=>_0x42f63d['y'])),_0x4a5775=Math[_0x10a0ff(0xbd)](..._0x9bb6ce[_0x10a0ff(0xd4)](_0x179c28=>_0x179c28['x'])),_0x58b338=Math[_0x10a0ff(0xbd)](..._0x9bb6ce[_0x10a0ff(0xd4)](_0x4f9c2c=>_0x4f9c2c['y']));return{'left':_0xf0e5d4(_0x3ed346),'top':_0xf0e5d4(_0x3427e9),'width':_0xf0e5d4(Math['max'](0x1,_0x4a5775-_0x3ed346)),'height':_0xf0e5d4(Math[_0x10a0ff(0xbd)](0x1,_0x58b338-_0x3427e9))};}function _0x2f5446(_0x326dcb,_0x3023a0){const _0x19747e=_0x36d067;let _0x458302=_0x326dcb[_0x19747e(0xe6)];if(_0x458302[_0x19747e(0xd6)]===0x0)return'';let _0x5be1ed=['M\x20'+_0x4dbe5b(_0x3d2214(_0x458302[0x0],_0x3023a0))];for(let _0x5720fd=0x1;_0x5720fd<_0x458302[_0x19747e(0xd6)];_0x5720fd++){var _0x450c68,_0x20d863;let _0x13f990=_0x458302[_0x5720fd-0x1],_0xb62513=_0x458302[_0x5720fd],_0x4e6c5f=(_0x450c68=_0x13f990[_0x19747e(0xac)])==null?_0x13f990:_0x450c68,_0x3a7088=(_0x20d863=_0xb62513['in'])==null?_0xb62513:_0x20d863;_0x5be1ed[_0x19747e(0xf1)]('C\x20'+_0x4dbe5b(_0x3d2214(_0x4e6c5f,_0x3023a0))+'\x20'+_0x4dbe5b(_0x3d2214(_0x3a7088,_0x3023a0))+'\x20'+_0x4dbe5b(_0x3d2214(_0xb62513,_0x3023a0)));}if(_0x326dcb['closed']&&_0x458302[_0x19747e(0xd6)]>0x1){var _0x32c18c,_0x1e243f;let _0x2774b6=_0x458302[_0x458302['length']-0x1],_0x5e8213=_0x458302[0x0],_0x226af1=(_0x32c18c=_0x2774b6[_0x19747e(0xac)])==null?_0x2774b6:_0x32c18c,_0x9b07e4=(_0x1e243f=_0x5e8213['in'])==null?_0x5e8213:_0x1e243f;_0x5be1ed[_0x19747e(0xf1)]('C\x20'+_0x4dbe5b(_0x3d2214(_0x226af1,_0x3023a0))+'\x20'+_0x4dbe5b(_0x3d2214(_0x9b07e4,_0x3023a0))+'\x20'+_0x4dbe5b(_0x3d2214(_0x5e8213,_0x3023a0))),_0x5be1ed[_0x19747e(0xf1)]('Z');}return _0x5be1ed[_0x19747e(0x10a)]('\x20');}function _0x279ffd(_0x2c086e,_0x3d8153){const _0x27fd77=_0x36d067;let _0x557f29=_0x2c086e[_0x27fd77(0xd2)]['map'](_0x190dae=>_0x3d2214(_0x190dae,_0x3d8153));if(_0x557f29['length']===0x0)return'';if(_0x557f29[_0x27fd77(0xd6)]===0x1)return'M\x20'+_0x4dbe5b(_0x557f29[0x0]);let _0x314ee9=['M\x20'+_0x4dbe5b(_0x557f29[0x0])];for(let _0x1e3217=0x0;_0x1e3217<_0x557f29[_0x27fd77(0xd6)]-0x1;_0x1e3217++){var _0x4d7d9a,_0x1017d9;let _0x3b2768=_0x557f29[_0x1e3217],_0x310e1a=_0x557f29[_0x1e3217+0x1],_0x3718ef=(_0x4d7d9a=_0x557f29[_0x1e3217-0x1])==null?_0x3b2768:_0x4d7d9a,_0x47c881=(_0x1017d9=_0x557f29[_0x1e3217+0x2])==null?_0x310e1a:_0x1017d9,_0xc1bad5={'x':_0x3b2768['x']+(_0x310e1a['x']-_0x3718ef['x'])/0x6,'y':_0x3b2768['y']+(_0x310e1a['y']-_0x3718ef['y'])/0x6},_0xd2ab6c={'x':_0x310e1a['x']-(_0x47c881['x']-_0x3b2768['x'])/0x6,'y':_0x310e1a['y']-(_0x47c881['y']-_0x3b2768['y'])/0x6};_0x314ee9[_0x27fd77(0xf1)]('C\x20'+_0x4dbe5b(_0xc1bad5)+'\x20'+_0x4dbe5b(_0xd2ab6c)+'\x20'+_0x4dbe5b(_0x310e1a));}return _0x314ee9['join']('\x20');}function _0x5d96a5(_0x150b8d,_0x16764e){const _0x5c5085=_0x36d067;return _0x150b8d[_0x5c5085(0x98)]===_0x5c5085(0xfc)?_0x2f5446(_0x150b8d,_0x16764e):_0x279ffd(_0x150b8d,_0x16764e);}function _0x27858(_0x102ddf,_0x9e1e73){const _0x562fcb=_0x36d067;return _0x9e1e73!=null&&_0x9e1e73[_0x562fcb(0x103)]?_0x9e1e73[_0x562fcb(0x103)]:_0x102ddf['kind']===_0x562fcb(0xfc)?'#f54a45':_0x102ddf[_0x562fcb(0x103)];}function _0x1fb11e(_0x291cee,_0x284e3f){const _0x20de0c=_0x36d067;return(_0x284e3f==null?void 0x0:_0x284e3f[_0x20de0c(0xe4)])===void 0x0?_0x291cee['kind']===_0x20de0c(0xfc)?0x2:_0x291cee['width']:_0x284e3f[_0x20de0c(0xe4)];}function _0x2c9fca(_0x47afc5,_0x44f038){const _0x1613f7=_0x36d067;return(_0x44f038==null?void 0x0:_0x44f038[_0x1613f7(0xfe)])===void 0x0?_0x47afc5[_0x1613f7(0x98)]===_0x1613f7(0xfc)?void 0x0:_0x47afc5[_0x1613f7(0xfe)]:_0x44f038['opacity'];}function _0x58f533(_0x215002,_0x414bcf){const _0x189905=_0x36d067;let _0x4fcffa=_0x26a374(_0x215002),_0x52824f=_0x5d96a5(_0x215002,{'x':_0x4fcffa[_0x189905(0xeb)],'y':_0x4fcffa['top']}),_0x150141=_0x215002['kind']===_0x189905(0xfc)&&_0x215002[_0x189905(0xb9)],_0x46fe23=_0x414bcf==null?void 0x0:_0x414bcf['fillColor'];return{'shapeType':_0x4f478d[_0x189905(0x10c)][_0x189905(0x10f)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x4fcffa['width'],'h':_0x4fcffa[_0x189905(0xb7)],'fill':_0x150141?_0x189905(0x113):_0x189905(0xf8),'stroke':!0x0,'data':_0x52824f,'dataArray':_0x5e7cde(_0x215002,{'x':_0x4fcffa[_0x189905(0xeb)],'y':_0x4fcffa[_0x189905(0xf3)]})}]},'fill':_0x150141&&_0x46fe23?{'color':_0x46fe23,'fillType':_0x4f478d[_0x189905(0xba)]['SolidFill']}:{'fillType':_0x4f478d[_0x189905(0xba)][_0x189905(0xaf)]},'stroke':{'color':_0x27858(_0x215002,_0x414bcf),'width':_0x1fb11e(_0x215002,_0x414bcf),'opacity':_0x2c9fca(_0x215002,_0x414bcf),'lineStrokeType':_0x4f478d['ShapeLineTypeEnum'][_0x189905(0xd0)],'capType':_0x4f478d[_0x189905(0x104)]['Round'],'lineJoinType':_0x4f478d['ShapeLineJoinEnum'][_0x189905(0xb0)]}};}function _0x3590cd(_0x13627a,_0x86faeb){return{'x':_0x13627a['x']-_0x86faeb['x'],'y':_0x13627a['y']-_0x86faeb['y']};}function _0x5e7cde(_0x7e3b03,_0x3e6eb9){const _0xcdc0a0=_0x36d067;if(_0x7e3b03[_0xcdc0a0(0x98)]===_0xcdc0a0(0xfc)){let _0x2876bd=_0x7e3b03[_0xcdc0a0(0xe6)];if(_0x2876bd[_0xcdc0a0(0xd6)]===0x0)return[];let _0x9f0e50=_0x3590cd(_0x2876bd[0x0],_0x3e6eb9),_0xeed105=[{'command':'M','points':[_0x9f0e50['x'],_0x9f0e50['y']]}];for(let _0x2e68f6=0x1;_0x2e68f6<_0x2876bd[_0xcdc0a0(0xd6)];_0x2e68f6++){var _0x25c99a,_0xd27b60;let _0x484e10=_0x2876bd[_0x2e68f6-0x1],_0x3adaf5=_0x2876bd[_0x2e68f6],_0x39eacf=_0x3590cd((_0x25c99a=_0x484e10[_0xcdc0a0(0xac)])==null?_0x484e10:_0x25c99a,_0x3e6eb9),_0x275b9a=_0x3590cd((_0xd27b60=_0x3adaf5['in'])==null?_0x3adaf5:_0xd27b60,_0x3e6eb9),_0x4d057c=_0x3590cd(_0x3adaf5,_0x3e6eb9);_0xeed105['push']({'command':'C','points':[_0x39eacf['x'],_0x39eacf['y'],_0x275b9a['x'],_0x275b9a['y'],_0x4d057c['x'],_0x4d057c['y']]});}if(_0x7e3b03[_0xcdc0a0(0xb9)]&&_0x2876bd[_0xcdc0a0(0xd6)]>0x1){var _0x233831,_0xb3e0e5;let _0x1b22c1=_0x2876bd[_0x2876bd['length']-0x1],_0x2501b6=_0x2876bd[0x0],_0x21c8db=_0x3590cd((_0x233831=_0x1b22c1[_0xcdc0a0(0xac)])==null?_0x1b22c1:_0x233831,_0x3e6eb9),_0x5b7f91=_0x3590cd((_0xb3e0e5=_0x2501b6['in'])==null?_0x2501b6:_0xb3e0e5,_0x3e6eb9),_0x54a3b8=_0x3590cd(_0x2501b6,_0x3e6eb9);_0xeed105[_0xcdc0a0(0xf1)]({'command':'C','points':[_0x21c8db['x'],_0x21c8db['y'],_0x5b7f91['x'],_0x5b7f91['y'],_0x54a3b8['x'],_0x54a3b8['y']]}),_0xeed105['push']({'command':'z','points':[]});}return _0xeed105;}let _0x2a8571=_0x7e3b03['points'][_0xcdc0a0(0xd4)](_0x3f0844=>_0x3590cd(_0x3f0844,_0x3e6eb9));if(_0x2a8571[_0xcdc0a0(0xd6)]===0x0)return[];let _0x518ec7=[{'command':'M','points':[_0x2a8571[0x0]['x'],_0x2a8571[0x0]['y']]}];for(let _0x4026b4=0x0;_0x4026b4<_0x2a8571[_0xcdc0a0(0xd6)]-0x1;_0x4026b4++){var _0x368d79,_0x5ddec1;let _0x2c47df=_0x2a8571[_0x4026b4],_0x5ab290=_0x2a8571[_0x4026b4+0x1],_0x3a41a3=(_0x368d79=_0x2a8571[_0x4026b4-0x1])==null?_0x2c47df:_0x368d79,_0x494b52=(_0x5ddec1=_0x2a8571[_0x4026b4+0x2])==null?_0x5ab290:_0x5ddec1,_0x61e714={'x':_0x2c47df['x']+(_0x5ab290['x']-_0x3a41a3['x'])/0x6,'y':_0x2c47df['y']+(_0x5ab290['y']-_0x3a41a3['y'])/0x6},_0x3a3d39={'x':_0x5ab290['x']-(_0x494b52['x']-_0x2c47df['x'])/0x6,'y':_0x5ab290['y']-(_0x494b52['y']-_0x2c47df['y'])/0x6};_0x518ec7[_0xcdc0a0(0xf1)]({'command':'C','points':[_0x61e714['x'],_0x61e714['y'],_0x3a3d39['x'],_0x3a3d39['y'],_0x5ab290['x'],_0x5ab290['y']]});}return _0x518ec7;}function _0x5a1cff(_0x5b1ec0){const _0x270004=_0x36d067;var _0x2f7dc7;let {model:_0x47540f,sourceModel:_0x4c1ba9=_0x47540f,style:_0x3f51e1}=_0x5b1ec0,_0x1bd7e8=(_0x2f7dc7=_0x5b1ec0[_0x270004(0xc4)])==null?_0x47540f[_0x270004(0x98)]:_0x2f7dc7,_0x3777b7=_0x26a374(_0x47540f),_0x1acef8=_0x47540f['kind']===_0x270004(0xfc)&&_0x1bd7e8!==_0x270004(0xfc)?_0x47540f:void 0x0;return{'transform':{..._0x3777b7,'rotation':0x0},'shapeData':_0x58f533(_0x47540f,_0x3f51e1),'ink':{'version':0x1,'tool':_0x1bd7e8,'sourceModel':_0x4c1ba9,..._0x1acef8?{'editModel':_0x1acef8}:{},'normalizedBounds':_0x3777b7}};}var _0x2ea373='@univerjs-pro/ink',_0x3b03e8=_0x36d067(0x100);function _0x59ff21(_0x4c93e9){'@babel/helpers - typeof';const _0x479d93=_0x36d067;return _0x59ff21=typeof Symbol=='function'&&typeof Symbol[_0x479d93(0xf5)]==_0x479d93(0xc8)?function(_0x32b485){return typeof _0x32b485;}:function(_0x1f595){const _0x38f1e5=_0x479d93;return _0x1f595&&typeof Symbol==_0x38f1e5(0xfd)&&_0x1f595['constructor']===Symbol&&_0x1f595!==Symbol[_0x38f1e5(0x9e)]?_0x38f1e5(0xc8):typeof _0x1f595;},_0x59ff21(_0x4c93e9);}function _0x188484(_0x317991,_0x73a8f1){const _0x76f5a5=_0x36d067;if(_0x59ff21(_0x317991)!=_0x76f5a5(0x109)||!_0x317991)return _0x317991;var _0x30e7e2=_0x317991[Symbol[_0x76f5a5(0xa7)]];if(_0x30e7e2!==void 0x0){var _0x42064c=_0x30e7e2['call'](_0x317991,_0x73a8f1||'default');if(_0x59ff21(_0x42064c)!=_0x76f5a5(0x109))return _0x42064c;throw TypeError(_0x76f5a5(0xdf));}return(_0x73a8f1===_0x76f5a5(0xcc)?String:Number)(_0x317991);}function _0x2c93fb(_0xa95b1d){const _0x20635c=_0x36d067;var _0x2b0e74=_0x188484(_0xa95b1d,'string');return _0x59ff21(_0x2b0e74)==_0x20635c(0xc8)?_0x2b0e74:_0x2b0e74+'';}function _0x46a5f5(_0x2ea90a,_0x59a46e,_0x599139){const _0x223947=_0x36d067;return(_0x59a46e=_0x2c93fb(_0x59a46e))in _0x2ea90a?Object[_0x223947(0x96)](_0x2ea90a,_0x59a46e,{'value':_0x599139,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2ea90a[_0x59a46e]=_0x599139,_0x2ea90a;}let _0x508c4e=(0x0,_0x28570e[_0x36d067(0x97)])(_0x36d067(0xf6));var _0x101fbc=class{constructor(){const _0x2db88f=_0x36d067;_0x46a5f5(this,_0x2db88f(0xfb),[]);}[_0x36d067(0xf9)](_0x552118){const _0x1feb24=_0x36d067;return this['_adapters'][_0x1feb24(0xf1)](_0x552118),(0x0,_0x28570e[_0x1feb24(0xb3)])(()=>{const _0x51711c=_0x1feb24;let _0x349330=this[_0x51711c(0xfb)][_0x51711c(0xdc)](_0x552118);_0x349330>=0x0&&this['_adapters'][_0x51711c(0xa4)](_0x349330,0x1);});}[_0x36d067(0xf0)](_0x119602){const _0x24263f=_0x36d067;for(let _0x42b6c2 of this[_0x24263f(0xfb)])if(_0x42b6c2[_0x24263f(0xf0)](_0x119602))return!0x0;return!0x1;}async['createCustomShape'](_0x17bbea){const _0x187348=_0x36d067;for(let _0x43e178 of this[_0x187348(0xfb)])if(_0x43e178[_0x187348(0xff)]&&await _0x43e178[_0x187348(0xff)](_0x17bbea))return!0x0;return!0x1;}};let _0x58d01f={'id':_0x36d067(0xde),'type':_0x28570e[_0x36d067(0x94)][_0x36d067(0x10b)],'handler':(_0x3c2c84,_0x1ae080)=>_0x1ae080?_0x3c2c84['get'](_0x508c4e)[_0x36d067(0xf0)](_0x1ae080):!0x1},_0x35b647={};function _0x47ed42(_0x35ad82,_0x586963){return function(_0x307fdd,_0x5880cd){_0x586963(_0x307fdd,_0x5880cd,_0x35ad82);};}function _0x483555(_0x3d5168,_0x4a831d,_0x85f95c,_0x1d5f6f){const _0x368fcd=_0x36d067;var _0x2805cb=arguments[_0x368fcd(0xd6)],_0x21487f=_0x2805cb<0x3?_0x4a831d:_0x1d5f6f===null?_0x1d5f6f=Object[_0x368fcd(0x115)](_0x4a831d,_0x85f95c):_0x1d5f6f,_0x1be3fc;if(typeof Reflect==_0x368fcd(0x109)&&typeof Reflect[_0x368fcd(0xb5)]==_0x368fcd(0xfd))_0x21487f=Reflect[_0x368fcd(0xb5)](_0x3d5168,_0x4a831d,_0x85f95c,_0x1d5f6f);else{for(var _0x1625a7=_0x3d5168[_0x368fcd(0xd6)]-0x1;_0x1625a7>=0x0;_0x1625a7--)(_0x1be3fc=_0x3d5168[_0x1625a7])&&(_0x21487f=(_0x2805cb<0x3?_0x1be3fc(_0x21487f):_0x2805cb>0x3?_0x1be3fc(_0x4a831d,_0x85f95c,_0x21487f):_0x1be3fc(_0x4a831d,_0x85f95c))||_0x21487f);}return _0x2805cb>0x3&&_0x21487f&&Object[_0x368fcd(0x96)](_0x4a831d,_0x85f95c,_0x21487f),_0x21487f;}let _0x2fac47=class extends _0x28570e[_0x36d067(0xc6)]{constructor(_0x5ab2be=_0x35b647,_0x12e211,_0x47cf19,_0x3728a6){const _0x49c221=_0x36d067;super(),this[_0x49c221(0xe3)]=_0x5ab2be,this[_0x49c221(0xae)]=_0x12e211,this[_0x49c221(0xf2)]=_0x47cf19,this[_0x49c221(0x9a)]=_0x3728a6;let {..._0x57a9c4}=(0x0,_0x28570e['merge'])({},_0x35b647,this[_0x49c221(0xe3)]);this['_configService'][_0x49c221(0x10e)](_0x49c221(0xbf),_0x57a9c4);}[_0x36d067(0xed)](){const _0xd47dee=_0x36d067;[[_0x508c4e,{'useClass':_0x101fbc}]][_0xd47dee(0x107)](_0x253b18=>this[_0xd47dee(0xae)]['add'](_0x253b18)),this[_0xd47dee(0xab)](this['_commandService'][_0xd47dee(0xca)](_0x58d01f));}};_0x46a5f5(_0x2fac47,_0x36d067(0x102),'UNIVER_INK_PLUGIN'),_0x46a5f5(_0x2fac47,_0x36d067(0xd9),_0x2ea373),_0x46a5f5(_0x2fac47,_0x36d067(0xe9),_0x3b03e8),_0x46a5f5(_0x2fac47,_0x36d067(0xbc),_0x28570e['UniverInstanceType'][_0x36d067(0xb8)]),_0x2fac47=_0x483555([(0x0,_0x28570e[_0x36d067(0xdb)])(_0x45dfe3[_0x36d067(0xd1)]),_0x47ed42(0x1,(0x0,_0x28570e[_0x36d067(0xc7)])(_0x28570e[_0x36d067(0xe7)])),_0x47ed42(0x2,_0x28570e[_0x36d067(0x114)]),_0x47ed42(0x3,_0x28570e[_0x36d067(0xa3)])],_0x2fac47),_0x22c953[_0x36d067(0xa1)]=_0x508c4e,Object['defineProperty'](_0x22c953,_0x36d067(0xbb),{'enumerable':!0x0,'get':function(){return _0x2fac47;}}),_0x22c953[_0x36d067(0x99)]=_0x5a1cff,_0x22c953[_0x36d067(0x111)]=_0x43992a,_0x22c953[_0x36d067(0x106)]=_0x38a269,_0x22c953['deleteInkPenAnchor']=_0x24528e,_0x22c953[_0x36d067(0xa8)]=_0x17775e,_0x22c953[_0x36d067(0xf4)]=_0x23735a,_0x22c953['getInkModelBounds']=_0x26a374,_0x22c953[_0x36d067(0xec)]=_0x217661,_0x22c953[_0x36d067(0xc3)]=_0x25fc55,_0x22c953[_0x36d067(0xe0)]=_0x5928d2,_0x22c953[_0x36d067(0xd3)]=_0x24fa03,_0x22c953[_0x36d067(0xa0)]=_0x662da5;}));function _0x166a(_0x204ab5,_0x484dcc){_0x204ab5=_0x204ab5-0x94;const _0x2571db=_0x2571();let _0x166ae4=_0x2571db[_0x204ab5];return _0x166ae4;}function _0x2571(){const _0x151da7=['_commandService','top','findClosestInkPenSegment','iterator','ink.host-adapter.service','@univerjs-pro/engine-shape','none','registerAdapter','segmentIndex','_adapters','pen','function','opacity','createCustomShape','1.0.0-alpha.3','2175wSwemK','pluginName','color','ShapeLineCapEnum','slice','cycleInkPenAnchorPointType','forEach','exports','object','join','OPERATION','ShapeTypeEnum','5405265buwpws','setConfig','Rect','anchor','convertBrushModelToPenModel','Module','norm','ICommandService','getOwnPropertyDescriptor','CommandType','2796vIgsqz','defineProperty','createIdentifier','kind','buildInkCustomShapePayload','_configService','tolerance','14UvEETz','2171712HSFjBx','prototype','31020828qJuuHM','setInkPenAnchorPointType','IInkHostAdapterService','UniverProLicense','IConfigService','splice','__ink-preview-anchor__','@univerjs-pro/license','toPrimitive','findClosestInkPenHandle','end','free','disposeWithMe','out','point','_injector','NoFill','Round','hypot','min','toDisposable','1903gOlnCU','decorate','@univerjs/core','height','UNIVER_UNKNOWN','closed','ShapeFillEnum','UniverInkPlugin','type','max','UniverProInk','ink.config','655458Wrmipu','8FPHKIy','start','insertInkPenAnchorAt','tool','filter','Plugin','Inject','symbol','right','registerCommand','corner','string','4XIoaQG','sqrt','toStringTag','SolidLine','UniverLicensePlugin','points','moveInkPenAnchorPoint','map','startIndex','length','findIndex','pointType','packageName','find','DependentOn','indexOf','UniverCore','ink.operation.start','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','isInkPenHandleVisible','5359626lFeyid','smooth','_config','width','symmetric','anchors','Injector','5370bSyPXV','version','distance','left','getInkPenPreviewModel','onStarting','createId','abs','beginInkMode','push'];_0x2571=function(){return _0x151da7;};return _0x2571();}
|
|
1
|
+
function _0xb1f5(_0x1cb5f7,_0x261bd9){_0x1cb5f7=_0x1cb5f7-0x109;const _0x4c1d89=_0x4c1d();let _0xb1f575=_0x4c1d89[_0x1cb5f7];return _0xb1f575;}(function(_0x65922d,_0x322184){const _0x2712de=_0xb1f5,_0x1c0694=_0x65922d();while(!![]){try{const _0x467f3c=-parseInt(_0x2712de(0x181))/0x1*(parseInt(_0x2712de(0x12b))/0x2)+-parseInt(_0x2712de(0x15d))/0x3*(-parseInt(_0x2712de(0x177))/0x4)+parseInt(_0x2712de(0x172))/0x5+parseInt(_0x2712de(0x14d))/0x6+parseInt(_0x2712de(0x125))/0x7+-parseInt(_0x2712de(0x158))/0x8+-parseInt(_0x2712de(0x166))/0x9;if(_0x467f3c===_0x322184)break;else _0x1c0694['push'](_0x1c0694['shift']());}catch(_0x2c95d7){_0x1c0694['push'](_0x1c0694['shift']());}}}(_0x4c1d,0x79b9e),function(_0x34e9a7,_0x16e5b5){const _0x3654c4=_0xb1f5;typeof exports==_0x3654c4(0x17b)&&typeof module<'u'?_0x16e5b5(exports,require('@univerjs-pro/engine-shape'),require('@univerjs-pro/license'),require('@univerjs/core')):typeof define==_0x3654c4(0x146)&&define['amd']?define([_0x3654c4(0x126),'@univerjs-pro/engine-shape','@univerjs-pro/license','@univerjs/core'],_0x16e5b5):(_0x34e9a7=typeof globalThis<'u'?globalThis:_0x34e9a7||self,_0x16e5b5(_0x34e9a7[_0x3654c4(0x178)]={},_0x34e9a7[_0x3654c4(0x180)],_0x34e9a7[_0x3654c4(0x11d)],_0x34e9a7[_0x3654c4(0x15c)]));}(this,function(_0x2d8532,_0x5c9201,_0x4e0fe3,_0x35b9de){const _0x288907=_0xb1f5;Object['defineProperty'](_0x2d8532,Symbol['toStringTag'],{'value':_0x288907(0x144)});let _0x4c8476=0.0001;function _0xcf82aa(_0x1f253c){return{'x':_0x1f253c['x'],'y':_0x1f253c['y']};}function _0x3d2be8(_0x40d866){const _0x457dd4=_0x288907;return{..._0x40d866,'in':_0x40d866['in']?_0xcf82aa(_0x40d866['in']):void 0x0,'out':_0x40d866[_0x457dd4(0x16b)]?_0xcf82aa(_0x40d866[_0x457dd4(0x16b)]):void 0x0};}function _0x3d806d(_0x32b142){const _0x17acf4=_0x288907;return{'kind':_0x17acf4(0x17f),'closed':_0x32b142[_0x17acf4(0x13f)],'anchors':_0x32b142[_0x17acf4(0x124)]['map'](_0x3d2be8)};}function _0x3e063d(_0x1f9b16,_0x5e35bc,_0x29bd3d){return{'x':_0x1f9b16['x']+(_0x5e35bc['x']-_0x1f9b16['x'])*_0x29bd3d,'y':_0x1f9b16['y']+(_0x5e35bc['y']-_0x1f9b16['y'])*_0x29bd3d};}function _0xc331d8(_0x1218db,_0x10bab0){const _0x3d2cf5=_0x288907;return Math[_0x3d2cf5(0x13e)](_0x1218db['x']-_0x10bab0['x'],_0x1218db['y']-_0x10bab0['y']);}function _0x120876(_0x2ad250){const _0x5d0c76=_0x288907;let _0x327f7d=Math[_0x5d0c76(0x13e)](_0x2ad250['x'],_0x2ad250['y']);return _0x327f7d<_0x4c8476?{'x':0x1,'y':0x0}:{'x':_0x2ad250['x']/_0x327f7d,'y':_0x2ad250['y']/_0x327f7d};}function _0x3ff2e4(_0xce8b1e,_0x40f2dd,_0x516b5d=_0xc331d8(_0xce8b1e,_0x40f2dd)){let _0x4e2bc5=_0x120876({'x':_0xce8b1e['x']-_0x40f2dd['x'],'y':_0xce8b1e['y']-_0x40f2dd['y']});return{'x':_0xce8b1e['x']+_0x4e2bc5['x']*_0x516b5d,'y':_0xce8b1e['y']+_0x4e2bc5['y']*_0x516b5d};}function _0x272c24(_0x46c30f,_0x37e14e){const _0x234085=_0x288907;let {anchors:_0xb1467a}=_0x46c30f;return _0xb1467a[_0x234085(0x12e)]<0x2||_0x37e14e<0x0?null:_0x37e14e<_0xb1467a[_0x234085(0x12e)]-0x1?{'startIndex':_0x37e14e,'endIndex':_0x37e14e+0x1,'start':_0xb1467a[_0x37e14e],'end':_0xb1467a[_0x37e14e+0x1]}:_0x46c30f[_0x234085(0x13f)]&&_0x37e14e===_0xb1467a[_0x234085(0x12e)]-0x1?{'startIndex':_0xb1467a['length']-0x1,'endIndex':0x0,'start':_0xb1467a[_0xb1467a[_0x234085(0x12e)]-0x1],'end':_0xb1467a[0x0]}:null;}function _0x51571f(_0x5bf4b2,_0x124529){const _0x2fffb5=_0x288907;var _0x57f8c2,_0x357b1b;let _0x439afa=_0x272c24(_0x5bf4b2,_0x124529);return _0x439afa?[_0x439afa[_0x2fffb5(0x173)],(_0x57f8c2=_0x439afa[_0x2fffb5(0x173)][_0x2fffb5(0x16b)])==null?_0x439afa[_0x2fffb5(0x173)]:_0x57f8c2,(_0x357b1b=_0x439afa[_0x2fffb5(0x14e)]['in'])==null?_0x439afa[_0x2fffb5(0x14e)]:_0x357b1b,_0x439afa[_0x2fffb5(0x14e)]]:null;}function _0x223728(_0x3e3c6d,_0x267850){const _0x1bd7f9=_0x288907;var _0x25df53;return _0x267850===_0x1bd7f9(0x149)?_0x3e3c6d:(_0x25df53=_0x3e3c6d[_0x267850])==null?null:_0x25df53;}function _0x10c467(_0x29280f,_0x350ddd,_0x1c2eb3){const _0x516d76=_0x288907;return _0x1c2eb3===_0x516d76(0x149)||_0x29280f['closed']?!0x0:_0x1c2eb3==='in'?_0x350ddd>0x0:_0x350ddd<_0x29280f['anchors'][_0x516d76(0x12e)]-0x1;}function _0x235ebb(_0x3eab0c,_0x589ce7){let [_0x3ce35a,_0xe0ca16,_0x47e644,_0x5b9cc1]=_0x3eab0c,_0x12b559=_0x3e063d(_0x3ce35a,_0xe0ca16,_0x589ce7),_0x55477c=_0x3e063d(_0xe0ca16,_0x47e644,_0x589ce7),_0x13f009=_0x3e063d(_0x47e644,_0x5b9cc1,_0x589ce7);return _0x3e063d(_0x3e063d(_0x12b559,_0x55477c,_0x589ce7),_0x3e063d(_0x55477c,_0x13f009,_0x589ce7),_0x589ce7);}function _0xfefcc5(_0x540ccd,_0x3de7d0){let [_0x35e264,_0x4fbb19,_0x1c6fd6,_0x117c05]=_0x540ccd,_0x55eea4=_0x3e063d(_0x35e264,_0x4fbb19,_0x3de7d0),_0x29335d=_0x3e063d(_0x4fbb19,_0x1c6fd6,_0x3de7d0),_0x179e17=_0x3e063d(_0x1c6fd6,_0x117c05,_0x3de7d0),_0x42f6d4=_0x3e063d(_0x55eea4,_0x29335d,_0x3de7d0),_0x330b79=_0x3e063d(_0x29335d,_0x179e17,_0x3de7d0),_0x33844c=_0x3e063d(_0x42f6d4,_0x330b79,_0x3de7d0);return{'left':[_0x35e264,_0x55eea4,_0x42f6d4,_0x33844c],'right':[_0x33844c,_0x330b79,_0x179e17,_0x117c05]};}function _0x17efc0(_0x3b4a60,_0x25e102,_0x41b67b){const _0x34dbe3=_0x288907;let _0x3decae=_0x41b67b['x']-_0x25e102['x'],_0x32aec1=_0x41b67b['y']-_0x25e102['y'],_0x247cb6=_0x3decae*_0x3decae+_0x32aec1*_0x32aec1,_0x1964a7=_0x247cb6<=_0x4c8476?0x0:Math[_0x34dbe3(0x176)](0x0,Math[_0x34dbe3(0x183)](0x1,((_0x3b4a60['x']-_0x25e102['x'])*_0x3decae+(_0x3b4a60['y']-_0x25e102['y'])*_0x32aec1)/_0x247cb6)),_0x1d971c={'x':_0x25e102['x']+_0x3decae*_0x1964a7,'y':_0x25e102['y']+_0x32aec1*_0x1964a7};return{'point':_0x1d971c,'ratio':_0x1964a7,'distance':_0xc331d8(_0x3b4a60,_0x1d971c)};}function _0x184403(_0x501e7b,_0x59d1cb,_0x27cd5a){return _0x17efc0(_0x501e7b,_0x59d1cb,_0x27cd5a)['distance']**0x2;}function _0x14eff0(_0xe43bed,_0x5c6c74){const _0x34a802=_0x288907;if(_0xe43bed[_0x34a802(0x12e)]<=0x2)return _0xe43bed[_0x34a802(0x118)](_0xcf82aa);let _0x30ac33=0x0,_0x2ed862=0x0,_0x26e7f3=_0xe43bed[0x0],_0x309870=_0xe43bed[_0xe43bed[_0x34a802(0x12e)]-0x1],_0x4916fe=_0x5c6c74*_0x5c6c74;for(let _0x5dd9cb=0x1;_0x5dd9cb<_0xe43bed[_0x34a802(0x12e)]-0x1;_0x5dd9cb++){let _0x3d7e83=_0x184403(_0xe43bed[_0x5dd9cb],_0x26e7f3,_0x309870);_0x3d7e83>_0x30ac33&&(_0x30ac33=_0x3d7e83,_0x2ed862=_0x5dd9cb);}if(_0x30ac33<=_0x4916fe)return[_0xcf82aa(_0x26e7f3),_0xcf82aa(_0x309870)];let _0x4858da=_0x14eff0(_0xe43bed[_0x34a802(0x164)](0x0,_0x2ed862+0x1),_0x5c6c74),_0x5cca4b=_0x14eff0(_0xe43bed['slice'](_0x2ed862),_0x5c6c74);return[..._0x4858da[_0x34a802(0x164)](0x0,-0x1),..._0x5cca4b];}function _0x5aa822(_0x35355a,_0x17de94){var _0x1b0a10;let _0x3a77f3=_0x35355a[_0x17de94],_0x1870e3=_0x35355a[_0x17de94+0x1],_0x311c5b=(_0x1b0a10=_0x35355a[_0x17de94-0x1])==null?_0x3a77f3:_0x1b0a10;return{'x':_0x3a77f3['x']+(_0x1870e3['x']-_0x311c5b['x'])/0x6,'y':_0x3a77f3['y']+(_0x1870e3['y']-_0x311c5b['y'])/0x6};}function _0x743f9e(_0x45e68c,_0x307790){var _0x36ec80;let _0x4983d0=_0x45e68c[_0x307790],_0x37df61=_0x45e68c[_0x307790-0x1],_0x50c5cf=(_0x36ec80=_0x45e68c[_0x307790+0x1])==null?_0x4983d0:_0x36ec80;return{'x':_0x4983d0['x']-(_0x50c5cf['x']-_0x37df61['x'])/0x6,'y':_0x4983d0['y']-(_0x50c5cf['y']-_0x37df61['y'])/0x6};}function _0x130d9e(_0x2daa2f,_0x267d7e){const _0x2bbfb4=_0x288907;var _0x5a6142,_0x3263d0;let _0x54d958=_0x2daa2f['anchors'][_0x267d7e],_0x2f981f=(_0x5a6142=_0x2daa2f['anchors'][_0x267d7e-0x1])==null?_0x2daa2f[_0x2bbfb4(0x13f)]?_0x2daa2f[_0x2bbfb4(0x124)][_0x2daa2f['anchors'][_0x2bbfb4(0x12e)]-0x1]:null:_0x5a6142,_0x46d769=(_0x3263d0=_0x2daa2f['anchors'][_0x267d7e+0x1])==null?_0x2daa2f[_0x2bbfb4(0x13f)]?_0x2daa2f[_0x2bbfb4(0x124)][0x0]:null:_0x3263d0,_0xdcc5df=_0x2f981f&&_0x46d769?_0x120876({'x':_0x46d769['x']-_0x2f981f['x'],'y':_0x46d769['y']-_0x2f981f['y']}):_0x46d769?_0x120876({'x':_0x46d769['x']-_0x54d958['x'],'y':_0x46d769['y']-_0x54d958['y']}):_0x2f981f?_0x120876({'x':_0x54d958['x']-_0x2f981f['x'],'y':_0x54d958['y']-_0x2f981f['y']}):{'x':0x1,'y':0x0},_0x365286=_0x2f981f&&_0x46d769?Math[_0x2bbfb4(0x176)](0x32,_0xc331d8(_0x2f981f,_0x46d769)/0x4):0x32;return{'in':{'x':_0x54d958['x']-_0xdcc5df['x']*_0x365286,'y':_0x54d958['y']-_0xdcc5df['y']*_0x365286},'out':{'x':_0x54d958['x']+_0xdcc5df['x']*_0x365286,'y':_0x54d958['y']+_0xdcc5df['y']*_0x365286}};}function _0x4c29fa(_0x58996d,_0x411101){const _0x363440=_0x288907;let _0xb7cd5e=_0x58996d[_0x411101],_0x54b0d2=_0x411101==='in'?_0x363440(0x16b):'in',_0xf8f0e1=_0x58996d[_0x54b0d2];if(_0xb7cd5e){if(_0x58996d[_0x363440(0x16a)]==='symmetric'){_0x58996d[_0x54b0d2]=_0x3ff2e4(_0x58996d,_0xb7cd5e);return;}_0x58996d[_0x363440(0x16a)]==='smooth'&&(_0x58996d[_0x54b0d2]=_0x3ff2e4(_0x58996d,_0xb7cd5e,_0xf8f0e1?_0xc331d8(_0x58996d,_0xf8f0e1):_0xc331d8(_0x58996d,_0xb7cd5e)));}}function _0x558d06(_0x5ca3d9,_0xc50940){const _0x3a51ef=_0x288907;let _0x304c2e=_0x3d806d(_0x5ca3d9);return!_0xc50940||_0x304c2e[_0x3a51ef(0x13f)]||_0x304c2e[_0x3a51ef(0x124)][_0x3a51ef(0x12e)]===0x0||_0x304c2e[_0x3a51ef(0x124)][_0x3a51ef(0x14f)]({'id':_0x3a51ef(0x13a),'x':_0xc50940['x'],'y':_0xc50940['y'],'pointType':_0x3a51ef(0x119)}),_0x304c2e;}function _0x5c42f7(_0x1d9689,_0x4a746a={}){const _0x4cce77=_0x288907;var _0x129a82,_0x16f250;let _0x29077c=Math[_0x4cce77(0x176)](0x0,(_0x129a82=_0x4a746a['tolerance'])==null?Math[_0x4cce77(0x176)](0x4,_0x1d9689[_0x4cce77(0x140)]*0.35):_0x129a82),_0x391eec=(_0x16f250=_0x4a746a[_0x4cce77(0x175)])==null?_0x33974f=>_0x4cce77(0x10b)+_0x33974f:_0x16f250,_0x7da0ff=_0x14eff0(_0x1d9689[_0x4cce77(0x109)],_0x29077c),_0x3b019b=_0x7da0ff[_0x4cce77(0x118)]((_0x2c8cbd,_0x38a2b7)=>({'id':_0x391eec(_0x38a2b7),'x':_0x2c8cbd['x'],'y':_0x2c8cbd['y'],'pointType':_0x4cce77(0x12f)}));for(let _0x580144=0x0;_0x580144<_0x3b019b[_0x4cce77(0x12e)]-0x1;_0x580144++)_0x3b019b[_0x580144][_0x4cce77(0x16b)]=_0x5aa822(_0x7da0ff,_0x580144),_0x3b019b[_0x580144+0x1]['in']=_0x743f9e(_0x7da0ff,_0x580144+0x1);return{'kind':_0x4cce77(0x17f),'closed':!0x1,'anchors':_0x3b019b};}function _0x284e47(_0x1d7884,_0x3c14e1,_0x325da5){const _0x2f3e8f=_0x288907;let _0x455939=null,_0x5347a8=[_0x2f3e8f(0x149),'in',_0x2f3e8f(0x16b)];return _0x1d7884[_0x2f3e8f(0x124)][_0x2f3e8f(0x182)]((_0x47f2b6,_0x48ebc4)=>{const _0x18c11c=_0x2f3e8f;_0x5347a8[_0x18c11c(0x182)](_0x39a303=>{const _0x325d2f=_0x18c11c;if(!_0x10c467(_0x1d7884,_0x48ebc4,_0x39a303))return;let _0x330851=_0x223728(_0x47f2b6,_0x39a303);if(!_0x330851)return;let _0x428fbd=_0xc331d8(_0x3c14e1,_0x330851);_0x428fbd>_0x325da5||_0x455939&&_0x428fbd>=_0x455939[_0x325d2f(0x10d)]||(_0x455939={'handle':{'kind':_0x39a303,'anchorId':_0x47f2b6['id']},'point':_0xcf82aa(_0x330851),'distance':_0x428fbd});});}),_0x455939;}function _0x1c0434(_0x284c0c,_0x1da2db,_0x408b72){const _0x5aa0de=_0x288907;let _0x2c1c97=null,_0x33eef2=_0x284c0c[_0x5aa0de(0x13f)]?_0x284c0c[_0x5aa0de(0x124)][_0x5aa0de(0x12e)]:Math[_0x5aa0de(0x176)](0x0,_0x284c0c['anchors'][_0x5aa0de(0x12e)]-0x1);for(let _0x8b8d7c=0x0;_0x8b8d7c<_0x33eef2;_0x8b8d7c++){let _0x535829=_0x51571f(_0x284c0c,_0x8b8d7c);if(!_0x535829)continue;let _0x45df=_0x235ebb(_0x535829,0x0);for(let _0x397a61=0x1;_0x397a61<=0x20;_0x397a61++){let _0x4159bc=_0x235ebb(_0x535829,_0x397a61/0x20),_0x3c27dd=_0x17efc0(_0x1da2db,_0x45df,_0x4159bc),_0x40daed=(_0x397a61-0x1+_0x3c27dd[_0x5aa0de(0x169)])/0x20;(!_0x2c1c97||_0x3c27dd[_0x5aa0de(0x10d)]<_0x2c1c97['distance'])&&(_0x2c1c97={'segmentIndex':_0x8b8d7c,'t':_0x40daed,'point':_0x3c27dd[_0x5aa0de(0x156)],'distance':_0x3c27dd[_0x5aa0de(0x10d)]}),_0x45df=_0x4159bc;}}return _0x2c1c97&&_0x2c1c97['distance']<=_0x408b72?_0x2c1c97:null;}function _0x7d9f18(_0x37b744,_0x4a1ad3,_0x5ab138){const _0x39a6a2=_0x288907;let _0x3dc04b=_0x3d806d(_0x37b744),_0x4881da=_0x272c24(_0x3dc04b,_0x4a1ad3[_0x39a6a2(0x12d)]),_0x186dcc=_0x51571f(_0x3dc04b,_0x4a1ad3['segmentIndex']);if(!_0x4881da||!_0x186dcc)return _0x3dc04b;let _0x1d58ea=_0xfefcc5(_0x186dcc,Math[_0x39a6a2(0x176)](0x0,Math[_0x39a6a2(0x183)](0x1,_0x4a1ad3['t']))),_0x506f30={'id':_0x5ab138(),'x':_0x1d58ea[_0x39a6a2(0x171)][0x3]['x'],'y':_0x1d58ea[_0x39a6a2(0x171)][0x3]['y'],'in':_0xcf82aa(_0x1d58ea[_0x39a6a2(0x171)][0x2]),'out':_0xcf82aa(_0x1d58ea[_0x39a6a2(0x179)][0x1]),'pointType':_0x39a6a2(0x12f)};return _0x3dc04b['anchors'][_0x4881da[_0x39a6a2(0x16c)]]['out']=_0xcf82aa(_0x1d58ea['left'][0x1]),_0x3dc04b[_0x39a6a2(0x124)][_0x4881da['endIndex']]['in']=_0xcf82aa(_0x1d58ea[_0x39a6a2(0x179)][0x2]),_0x3dc04b[_0x39a6a2(0x124)]['splice'](_0x4881da[_0x39a6a2(0x16c)]+0x1,0x0,_0x506f30),_0x3dc04b;}function _0x3b0b62(_0x400e75,_0x153835){const _0x1c494a=_0x288907;let _0x3eddc2=_0x3d806d(_0x400e75);return _0x3eddc2[_0x1c494a(0x124)]=_0x3eddc2[_0x1c494a(0x124)][_0x1c494a(0x157)](_0x109649=>_0x109649['id']!==_0x153835),_0x3eddc2[_0x1c494a(0x13f)]&&_0x3eddc2[_0x1c494a(0x124)][_0x1c494a(0x12e)]<0x3&&(_0x3eddc2[_0x1c494a(0x13f)]=!0x1),_0x3eddc2;}function _0x162bc7(_0x46d043,_0x122b3c,_0x776cab){const _0x12d204=_0x288907;let _0x5f4f49=_0x3d806d(_0x46d043),_0x7afabb=_0x5f4f49['anchors'][_0x12d204(0x151)](_0x5d6d92=>_0x5d6d92['id']===_0x122b3c),_0xca3823=_0x5f4f49['anchors'][_0x7afabb];if(!_0xca3823)return _0x5f4f49;if(_0xca3823[_0x12d204(0x16a)]=_0x776cab,_0x776cab==='corner')return delete _0xca3823['in'],delete _0xca3823[_0x12d204(0x16b)],_0x5f4f49;let _0x41b9ba=_0x130d9e(_0x5f4f49,_0x7afabb);if(_0xca3823['in']=_0xca3823['in']?_0xcf82aa(_0xca3823['in']):_0x41b9ba['in'],_0xca3823['out']=_0xca3823[_0x12d204(0x16b)]?_0xcf82aa(_0xca3823[_0x12d204(0x16b)]):_0x41b9ba[_0x12d204(0x16b)],_0x776cab===_0x12d204(0x114)){let _0x4b20db=Math[_0x12d204(0x176)](_0xc331d8(_0xca3823,_0xca3823['in']),_0xc331d8(_0xca3823,_0xca3823[_0x12d204(0x16b)]),0x32),_0x3f1a75=_0x120876({'x':_0xca3823[_0x12d204(0x16b)]['x']-_0xca3823['x'],'y':_0xca3823[_0x12d204(0x16b)]['y']-_0xca3823['y']});_0xca3823[_0x12d204(0x16b)]={'x':_0xca3823['x']+_0x3f1a75['x']*_0x4b20db,'y':_0xca3823['y']+_0x3f1a75['y']*_0x4b20db},_0xca3823['in']={'x':_0xca3823['x']-_0x3f1a75['x']*_0x4b20db,'y':_0xca3823['y']-_0x3f1a75['y']*_0x4b20db};}else _0x776cab===_0x12d204(0x115)&&_0x4c29fa(_0xca3823,'out');return _0x5f4f49;}function _0x47cb00(_0x1fce46,_0x193913){const _0x2cf2b3=_0x288907;var _0x29c510;let _0x3a5bea=_0x1fce46[_0x2cf2b3(0x124)][_0x2cf2b3(0x11e)](_0x31da35=>_0x31da35['id']===_0x193913),_0xe069b2=(_0x29c510=_0x3a5bea==null?void 0x0:_0x3a5bea[_0x2cf2b3(0x16a)])==null?_0x2cf2b3(0x119):_0x29c510;return _0x162bc7(_0x1fce46,_0x193913,_0xe069b2===_0x2cf2b3(0x119)?_0x2cf2b3(0x115):_0xe069b2===_0x2cf2b3(0x115)?_0x2cf2b3(0x114):_0xe069b2===_0x2cf2b3(0x114)?_0x2cf2b3(0x12f):_0x2cf2b3(0x119));}function _0x44099b(_0x2c0265,_0x478977,_0x57160e){const _0x59c75b=_0x288907;let _0x5413b4=_0x3d806d(_0x2c0265),_0x1e2369=_0x5413b4['anchors'][_0x59c75b(0x11e)](_0x2da7ff=>_0x2da7ff['id']===_0x478977['anchorId']);if(!_0x1e2369)return _0x5413b4;if(_0x478977[_0x59c75b(0x15b)]===_0x59c75b(0x149)){let _0x1f6c03={'x':_0x57160e['x']-_0x1e2369['x'],'y':_0x57160e['y']-_0x1e2369['y']};return _0x1e2369['x']=_0x57160e['x'],_0x1e2369['y']=_0x57160e['y'],_0x1e2369['in']&&(_0x1e2369['in']={'x':_0x1e2369['in']['x']+_0x1f6c03['x'],'y':_0x1e2369['in']['y']+_0x1f6c03['y']}),_0x1e2369['out']&&(_0x1e2369[_0x59c75b(0x16b)]={'x':_0x1e2369[_0x59c75b(0x16b)]['x']+_0x1f6c03['x'],'y':_0x1e2369['out']['y']+_0x1f6c03['y']}),_0x5413b4;}return _0x1e2369[_0x478977[_0x59c75b(0x15b)]]=_0xcf82aa(_0x57160e),_0x1e2369['pointType']===_0x59c75b(0x119)&&(_0x1e2369[_0x59c75b(0x16a)]='free'),_0x4c29fa(_0x1e2369,_0x478977[_0x59c75b(0x15b)]),_0x5413b4;}let _0x14d15c=1e-9;function _0x43c3aa(_0x541080){const _0x37ca9e=_0x288907;let _0xbe91e9=Math[_0x37ca9e(0x17e)](_0x541080*0x2710)/0x2710;return Object['is'](_0xbe91e9,-0x0)?'0':String(_0xbe91e9);}function _0x57d032(_0x5ed798){return _0x43c3aa(_0x5ed798['x'])+'\x20'+_0x43c3aa(_0x5ed798['y']);}function _0x22b46d(_0x8e85a7,_0x57e869){return{'x':_0x8e85a7['x']-_0x57e869['x'],'y':_0x8e85a7['y']-_0x57e869['y']};}function _0x2a7f75(_0x168971,_0x2bcfc9,_0x34b0ee,_0xebcef0,_0x27103d){let _0x5d61bf=0x1-_0x27103d;return{'x':_0x5d61bf*_0x5d61bf*_0x5d61bf*_0x168971['x']+0x3*_0x5d61bf*_0x5d61bf*_0x27103d*_0x2bcfc9['x']+0x3*_0x5d61bf*_0x27103d*_0x27103d*_0x34b0ee['x']+_0x27103d*_0x27103d*_0x27103d*_0xebcef0['x'],'y':_0x5d61bf*_0x5d61bf*_0x5d61bf*_0x168971['y']+0x3*_0x5d61bf*_0x5d61bf*_0x27103d*_0x2bcfc9['y']+0x3*_0x5d61bf*_0x27103d*_0x27103d*_0x34b0ee['y']+_0x27103d*_0x27103d*_0x27103d*_0xebcef0['y']};}function _0x46da5c(_0x37e900,_0x2608b9,_0x5abe1d,_0x375522){const _0x4407f2=_0x288907;let _0xa2581f=-_0x37e900+0x3*_0x2608b9-0x3*_0x5abe1d+_0x375522,_0x2ccae2=0x3*_0x37e900-0x6*_0x2608b9+0x3*_0x5abe1d,_0x4e149f=-0x3*_0x37e900+0x3*_0x2608b9,_0x3a67c6=[];if(Math['abs'](_0xa2581f)<_0x14d15c){if(Math[_0x4407f2(0x121)](_0x2ccae2)<_0x14d15c)return _0x3a67c6;let _0x5a49d6=-_0x4e149f/(0x2*_0x2ccae2);return _0x5a49d6>0x0&&_0x5a49d6<0x1&&_0x3a67c6[_0x4407f2(0x14f)](_0x5a49d6),_0x3a67c6;}let _0x304385=_0x2ccae2*_0x2ccae2-0x3*_0xa2581f*_0x4e149f;if(_0x304385<0x0)return _0x3a67c6;let _0x51df24=Math[_0x4407f2(0x135)](Math[_0x4407f2(0x176)](0x0,_0x304385)),_0x5c9638=(-_0x2ccae2+_0x51df24)/(0x3*_0xa2581f),_0x278a94=(-_0x2ccae2-_0x51df24)/(0x3*_0xa2581f);return _0x5c9638>0x0&&_0x5c9638<0x1&&_0x3a67c6[_0x4407f2(0x14f)](_0x5c9638),_0x278a94>0x0&&_0x278a94<0x1&&Math[_0x4407f2(0x121)](_0x278a94-_0x5c9638)>_0x14d15c&&_0x3a67c6[_0x4407f2(0x14f)](_0x278a94),_0x3a67c6;}function _0x55a613(_0xd78fe,_0x2cb1a7,_0x3bc7bc,_0x189a77,_0x5e1b73){const _0x1eb119=_0x288907;_0xd78fe[_0x1eb119(0x14f)](_0x2cb1a7,_0x5e1b73),new Set([..._0x46da5c(_0x2cb1a7['x'],_0x3bc7bc['x'],_0x189a77['x'],_0x5e1b73['x']),..._0x46da5c(_0x2cb1a7['y'],_0x3bc7bc['y'],_0x189a77['y'],_0x5e1b73['y'])])['forEach'](_0x22eb83=>{const _0x124bee=_0x1eb119;_0xd78fe[_0x124bee(0x14f)](_0x2a7f75(_0x2cb1a7,_0x3bc7bc,_0x189a77,_0x5e1b73,_0x22eb83));});}function _0x1bec23(_0x15652e){const _0x3ed656=_0x288907;let _0x6d7b5a=_0x15652e[_0x3ed656(0x124)];if(_0x6d7b5a['length']<=0x1)return _0x6d7b5a;let _0x54da2b=[];for(let _0x49090e=0x1;_0x49090e<_0x6d7b5a[_0x3ed656(0x12e)];_0x49090e++){var _0x52f83a,_0x3dec83;let _0x4d529a=_0x6d7b5a[_0x49090e-0x1],_0x3ac7eb=_0x6d7b5a[_0x49090e];_0x55a613(_0x54da2b,_0x4d529a,(_0x52f83a=_0x4d529a[_0x3ed656(0x16b)])==null?_0x4d529a:_0x52f83a,(_0x3dec83=_0x3ac7eb['in'])==null?_0x3ac7eb:_0x3dec83,_0x3ac7eb);}if(_0x15652e[_0x3ed656(0x13f)]&&_0x6d7b5a[_0x3ed656(0x12e)]>0x1){var _0xd2c99f,_0xc0c767;let _0x42e5cd=_0x6d7b5a[_0x6d7b5a[_0x3ed656(0x12e)]-0x1],_0x3f6346=_0x6d7b5a[0x0];_0x55a613(_0x54da2b,_0x42e5cd,(_0xd2c99f=_0x42e5cd[_0x3ed656(0x16b)])==null?_0x42e5cd:_0xd2c99f,(_0xc0c767=_0x3f6346['in'])==null?_0x3f6346:_0xc0c767,_0x3f6346);}return _0x54da2b;}function _0x4627fe(_0x42f618){const _0x586478=_0x288907;let _0x57b484=_0x42f618[_0x586478(0x109)];if(_0x57b484[_0x586478(0x12e)]<=0x1)return _0x57b484;let _0xe65ce8=[];for(let _0x5ac0d0=0x0;_0x5ac0d0<_0x57b484[_0x586478(0x12e)]-0x1;_0x5ac0d0++){var _0x46fe3b,_0x49eb87;let _0x548d3e=_0x57b484[_0x5ac0d0],_0x1eab2a=_0x57b484[_0x5ac0d0+0x1],_0x59d790=(_0x46fe3b=_0x57b484[_0x5ac0d0-0x1])==null?_0x548d3e:_0x46fe3b,_0x5853ea=(_0x49eb87=_0x57b484[_0x5ac0d0+0x2])==null?_0x1eab2a:_0x49eb87;_0x55a613(_0xe65ce8,_0x548d3e,{'x':_0x548d3e['x']+(_0x1eab2a['x']-_0x59d790['x'])/0x6,'y':_0x548d3e['y']+(_0x1eab2a['y']-_0x59d790['y'])/0x6},{'x':_0x1eab2a['x']-(_0x5853ea['x']-_0x548d3e['x'])/0x6,'y':_0x1eab2a['y']-(_0x5853ea['y']-_0x548d3e['y'])/0x6},_0x1eab2a);}return _0xe65ce8;}function _0x41fe7c(_0x5e62d1){const _0x6af501=_0x288907;return _0x5e62d1['kind']===_0x6af501(0x17f)?_0x1bec23(_0x5e62d1):_0x4627fe(_0x5e62d1);}function _0x2da717(_0x5b12cc){const _0x4180f6=_0x288907;let _0x2f7e8b=Math[_0x4180f6(0x17e)](_0x5b12cc*0x2710)/0x2710;return Object['is'](_0x2f7e8b,-0x0)?0x0:_0x2f7e8b;}function _0x4b9251(_0x413017){const _0x194e3b=_0x288907;let _0x2284c8=_0x41fe7c(_0x413017);if(_0x2284c8['length']===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x2343f3=Math[_0x194e3b(0x183)](..._0x2284c8[_0x194e3b(0x118)](_0x599a8c=>_0x599a8c['x'])),_0x220a38=Math[_0x194e3b(0x183)](..._0x2284c8[_0x194e3b(0x118)](_0x5a9172=>_0x5a9172['y'])),_0x5796b5=Math[_0x194e3b(0x176)](..._0x2284c8[_0x194e3b(0x118)](_0x448148=>_0x448148['x'])),_0x39bd41=Math[_0x194e3b(0x176)](..._0x2284c8[_0x194e3b(0x118)](_0x58988b=>_0x58988b['y']));return{'left':_0x2da717(_0x2343f3),'top':_0x2da717(_0x220a38),'width':_0x2da717(Math['max'](0x1,_0x5796b5-_0x2343f3)),'height':_0x2da717(Math['max'](0x1,_0x39bd41-_0x220a38))};}function _0x141fe5(_0x17c8e1,_0x5ede23){const _0x3d4138=_0x288907;let _0x29c9c8=_0x17c8e1[_0x3d4138(0x124)];if(_0x29c9c8['length']===0x0)return'';let _0x1d42e9=['M\x20'+_0x57d032(_0x22b46d(_0x29c9c8[0x0],_0x5ede23))];for(let _0x262068=0x1;_0x262068<_0x29c9c8[_0x3d4138(0x12e)];_0x262068++){var _0x54a810,_0x12b376;let _0x26be1f=_0x29c9c8[_0x262068-0x1],_0x44ba74=_0x29c9c8[_0x262068],_0x2db356=(_0x54a810=_0x26be1f[_0x3d4138(0x16b)])==null?_0x26be1f:_0x54a810,_0x3fdfca=(_0x12b376=_0x44ba74['in'])==null?_0x44ba74:_0x12b376;_0x1d42e9['push']('C\x20'+_0x57d032(_0x22b46d(_0x2db356,_0x5ede23))+'\x20'+_0x57d032(_0x22b46d(_0x3fdfca,_0x5ede23))+'\x20'+_0x57d032(_0x22b46d(_0x44ba74,_0x5ede23)));}if(_0x17c8e1['closed']&&_0x29c9c8['length']>0x1){var _0x5c953e,_0x11f47c;let _0x4c0f2b=_0x29c9c8[_0x29c9c8['length']-0x1],_0x3f9db7=_0x29c9c8[0x0],_0x12962b=(_0x5c953e=_0x4c0f2b[_0x3d4138(0x16b)])==null?_0x4c0f2b:_0x5c953e,_0x58d5d6=(_0x11f47c=_0x3f9db7['in'])==null?_0x3f9db7:_0x11f47c;_0x1d42e9[_0x3d4138(0x14f)]('C\x20'+_0x57d032(_0x22b46d(_0x12962b,_0x5ede23))+'\x20'+_0x57d032(_0x22b46d(_0x58d5d6,_0x5ede23))+'\x20'+_0x57d032(_0x22b46d(_0x3f9db7,_0x5ede23))),_0x1d42e9[_0x3d4138(0x14f)]('Z');}return _0x1d42e9['join']('\x20');}function _0x45a704(_0x278495,_0xce5408){const _0x2e67cd=_0x288907;let _0x3c735d=_0x278495[_0x2e67cd(0x109)][_0x2e67cd(0x118)](_0xb5b19=>_0x22b46d(_0xb5b19,_0xce5408));if(_0x3c735d[_0x2e67cd(0x12e)]===0x0)return'';if(_0x3c735d[_0x2e67cd(0x12e)]===0x1)return'M\x20'+_0x57d032(_0x3c735d[0x0]);let _0x44df8f=['M\x20'+_0x57d032(_0x3c735d[0x0])];for(let _0x3343e0=0x0;_0x3343e0<_0x3c735d[_0x2e67cd(0x12e)]-0x1;_0x3343e0++){var _0x17b5ba,_0xd47891;let _0x5dc9e6=_0x3c735d[_0x3343e0],_0x4599cc=_0x3c735d[_0x3343e0+0x1],_0x356d69=(_0x17b5ba=_0x3c735d[_0x3343e0-0x1])==null?_0x5dc9e6:_0x17b5ba,_0x42b055=(_0xd47891=_0x3c735d[_0x3343e0+0x2])==null?_0x4599cc:_0xd47891,_0x219be4={'x':_0x5dc9e6['x']+(_0x4599cc['x']-_0x356d69['x'])/0x6,'y':_0x5dc9e6['y']+(_0x4599cc['y']-_0x356d69['y'])/0x6},_0x2e6923={'x':_0x4599cc['x']-(_0x42b055['x']-_0x5dc9e6['x'])/0x6,'y':_0x4599cc['y']-(_0x42b055['y']-_0x5dc9e6['y'])/0x6};_0x44df8f['push']('C\x20'+_0x57d032(_0x219be4)+'\x20'+_0x57d032(_0x2e6923)+'\x20'+_0x57d032(_0x4599cc));}return _0x44df8f['join']('\x20');}function _0x1e428d(_0x31dbd5,_0x31d0be){const _0x29a4c6=_0x288907;return _0x31dbd5[_0x29a4c6(0x15b)]===_0x29a4c6(0x17f)?_0x141fe5(_0x31dbd5,_0x31d0be):_0x45a704(_0x31dbd5,_0x31d0be);}function _0x2f1f36(_0x850d06,_0x59c455){const _0x14e405=_0x288907;return _0x59c455!=null&&_0x59c455[_0x14e405(0x133)]?_0x59c455['color']:_0x850d06[_0x14e405(0x15b)]===_0x14e405(0x17f)?'#f54a45':_0x850d06['color'];}function _0x54a9ae(_0x7ddebf,_0x4346c9){const _0x297f5a=_0x288907;return(_0x4346c9==null?void 0x0:_0x4346c9[_0x297f5a(0x140)])===void 0x0?_0x7ddebf[_0x297f5a(0x15b)]===_0x297f5a(0x17f)?0x2:_0x7ddebf[_0x297f5a(0x140)]:_0x4346c9[_0x297f5a(0x140)];}function _0x41ea8f(_0x49058c,_0x26016e){const _0x5a47ed=_0x288907;return(_0x26016e==null?void 0x0:_0x26016e[_0x5a47ed(0x167)])===void 0x0?_0x49058c[_0x5a47ed(0x15b)]===_0x5a47ed(0x17f)?void 0x0:_0x49058c[_0x5a47ed(0x167)]:_0x26016e['opacity'];}function _0x7af9c4(_0x2535fe,_0x8c6b7d){const _0xf5b67e=_0x288907;let _0x540982=_0x4b9251(_0x2535fe),_0x4beb89=_0x1e428d(_0x2535fe,{'x':_0x540982['left'],'y':_0x540982[_0xf5b67e(0x123)]}),_0x597d2f=_0x2535fe[_0xf5b67e(0x15b)]===_0xf5b67e(0x17f)&&_0x2535fe[_0xf5b67e(0x13f)],_0x4e96d1=_0x8c6b7d==null?void 0x0:_0x8c6b7d['fillColor'];return{'shapeType':_0x5c9201[_0xf5b67e(0x10f)][_0xf5b67e(0x145)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x540982[_0xf5b67e(0x140)],'h':_0x540982[_0xf5b67e(0x15a)],'fill':_0x597d2f?_0xf5b67e(0x10c):_0xf5b67e(0x174),'stroke':!0x0,'data':_0x4beb89,'dataArray':_0x25c5b1(_0x2535fe,{'x':_0x540982[_0xf5b67e(0x171)],'y':_0x540982[_0xf5b67e(0x123)]})}]},'fill':_0x597d2f&&_0x4e96d1?{'color':_0x4e96d1,'fillType':_0x5c9201['ShapeFillEnum'][_0xf5b67e(0x16d)]}:{'fillType':_0x5c9201[_0xf5b67e(0x129)][_0xf5b67e(0x111)]},'stroke':{'color':_0x2f1f36(_0x2535fe,_0x8c6b7d),'width':_0x54a9ae(_0x2535fe,_0x8c6b7d),'opacity':_0x41ea8f(_0x2535fe,_0x8c6b7d),'lineStrokeType':_0x5c9201['ShapeLineTypeEnum'][_0xf5b67e(0x117)],'capType':_0x5c9201['ShapeLineCapEnum'][_0xf5b67e(0x155)],'lineJoinType':_0x5c9201[_0xf5b67e(0x11f)][_0xf5b67e(0x155)]}};}function _0x213ffd(_0xe29d5d,_0x3ea59a){return{'x':_0xe29d5d['x']-_0x3ea59a['x'],'y':_0xe29d5d['y']-_0x3ea59a['y']};}function _0x25c5b1(_0x124ca2,_0x2c0e06){const _0x3a7bea=_0x288907;if(_0x124ca2['kind']==='pen'){let _0x1128a7=_0x124ca2[_0x3a7bea(0x124)];if(_0x1128a7[_0x3a7bea(0x12e)]===0x0)return[];let _0x424254=_0x213ffd(_0x1128a7[0x0],_0x2c0e06),_0x407dc1=[{'command':'M','points':[_0x424254['x'],_0x424254['y']]}];for(let _0x2368ee=0x1;_0x2368ee<_0x1128a7[_0x3a7bea(0x12e)];_0x2368ee++){var _0x46110b,_0x539bae;let _0x5011d5=_0x1128a7[_0x2368ee-0x1],_0x5e7daf=_0x1128a7[_0x2368ee],_0x53e874=_0x213ffd((_0x46110b=_0x5011d5[_0x3a7bea(0x16b)])==null?_0x5011d5:_0x46110b,_0x2c0e06),_0x3929d9=_0x213ffd((_0x539bae=_0x5e7daf['in'])==null?_0x5e7daf:_0x539bae,_0x2c0e06),_0x168794=_0x213ffd(_0x5e7daf,_0x2c0e06);_0x407dc1[_0x3a7bea(0x14f)]({'command':'C','points':[_0x53e874['x'],_0x53e874['y'],_0x3929d9['x'],_0x3929d9['y'],_0x168794['x'],_0x168794['y']]});}if(_0x124ca2[_0x3a7bea(0x13f)]&&_0x1128a7[_0x3a7bea(0x12e)]>0x1){var _0x11cdef,_0x24d0f7;let _0x105932=_0x1128a7[_0x1128a7[_0x3a7bea(0x12e)]-0x1],_0x24a090=_0x1128a7[0x0],_0x4040f3=_0x213ffd((_0x11cdef=_0x105932[_0x3a7bea(0x16b)])==null?_0x105932:_0x11cdef,_0x2c0e06),_0xb6ba51=_0x213ffd((_0x24d0f7=_0x24a090['in'])==null?_0x24a090:_0x24d0f7,_0x2c0e06),_0x215914=_0x213ffd(_0x24a090,_0x2c0e06);_0x407dc1[_0x3a7bea(0x14f)]({'command':'C','points':[_0x4040f3['x'],_0x4040f3['y'],_0xb6ba51['x'],_0xb6ba51['y'],_0x215914['x'],_0x215914['y']]}),_0x407dc1['push']({'command':'z','points':[]});}return _0x407dc1;}let _0x1ed61a=_0x124ca2[_0x3a7bea(0x109)][_0x3a7bea(0x118)](_0x2874b9=>_0x213ffd(_0x2874b9,_0x2c0e06));if(_0x1ed61a[_0x3a7bea(0x12e)]===0x0)return[];let _0x43566d=[{'command':'M','points':[_0x1ed61a[0x0]['x'],_0x1ed61a[0x0]['y']]}];for(let _0x18e7a5=0x0;_0x18e7a5<_0x1ed61a[_0x3a7bea(0x12e)]-0x1;_0x18e7a5++){var _0xa4a7bf,_0x2b8ea2;let _0x29e2b6=_0x1ed61a[_0x18e7a5],_0x155de5=_0x1ed61a[_0x18e7a5+0x1],_0xa30cef=(_0xa4a7bf=_0x1ed61a[_0x18e7a5-0x1])==null?_0x29e2b6:_0xa4a7bf,_0x4f7b91=(_0x2b8ea2=_0x1ed61a[_0x18e7a5+0x2])==null?_0x155de5:_0x2b8ea2,_0x39a9a2={'x':_0x29e2b6['x']+(_0x155de5['x']-_0xa30cef['x'])/0x6,'y':_0x29e2b6['y']+(_0x155de5['y']-_0xa30cef['y'])/0x6},_0x5271e0={'x':_0x155de5['x']-(_0x4f7b91['x']-_0x29e2b6['x'])/0x6,'y':_0x155de5['y']-(_0x4f7b91['y']-_0x29e2b6['y'])/0x6};_0x43566d[_0x3a7bea(0x14f)]({'command':'C','points':[_0x39a9a2['x'],_0x39a9a2['y'],_0x5271e0['x'],_0x5271e0['y'],_0x155de5['x'],_0x155de5['y']]});}return _0x43566d;}function _0x16f8ca(_0x112b4e){const _0x1e9d51=_0x288907;var _0x455da7;let {model:_0x39389d,sourceModel:_0x43e279=_0x39389d,style:_0x20af98}=_0x112b4e,_0xd6a854=(_0x455da7=_0x112b4e[_0x1e9d51(0x154)])==null?_0x39389d[_0x1e9d51(0x15b)]:_0x455da7,_0xbe53c7=_0x4b9251(_0x39389d),_0xe8aa80=_0x39389d['kind']==='pen'&&_0xd6a854!==_0x1e9d51(0x17f)?_0x39389d:void 0x0;return{'transform':{..._0xbe53c7,'rotation':0x0},'shapeData':_0x7af9c4(_0x39389d,_0x20af98),'ink':{'version':0x1,'tool':_0xd6a854,'sourceModel':_0x43e279,..._0xe8aa80?{'editModel':_0xe8aa80}:{},'normalizedBounds':_0xbe53c7}};}var _0x2cd7fd=_0x288907(0x13b),_0x32545f=_0x288907(0x162);function _0x3a53cc(_0x4fb1fd){'@babel/helpers - typeof';const _0x430d8e=_0x288907;return _0x3a53cc=typeof Symbol==_0x430d8e(0x146)&&typeof Symbol['iterator']==_0x430d8e(0x136)?function(_0x287c9f){return typeof _0x287c9f;}:function(_0x1655bf){const _0x2f722c=_0x430d8e;return _0x1655bf&&typeof Symbol==_0x2f722c(0x146)&&_0x1655bf[_0x2f722c(0x16f)]===Symbol&&_0x1655bf!==Symbol[_0x2f722c(0x11c)]?_0x2f722c(0x136):typeof _0x1655bf;},_0x3a53cc(_0x4fb1fd);}function _0x5db685(_0x5a5d4b,_0x256e3b){const _0x25cbfa=_0x288907;if(_0x3a53cc(_0x5a5d4b)!=_0x25cbfa(0x17b)||!_0x5a5d4b)return _0x5a5d4b;var _0x505053=_0x5a5d4b[Symbol[_0x25cbfa(0x120)]];if(_0x505053!==void 0x0){var _0xf7c69=_0x505053[_0x25cbfa(0x17c)](_0x5a5d4b,_0x256e3b||_0x25cbfa(0x147));if(_0x3a53cc(_0xf7c69)!='object')return _0xf7c69;throw TypeError(_0x25cbfa(0x165));}return(_0x256e3b===_0x25cbfa(0x148)?String:Number)(_0x5a5d4b);}function _0x52bae3(_0x4dd04a){const _0x539057=_0x288907;var _0x17cacf=_0x5db685(_0x4dd04a,_0x539057(0x148));return _0x3a53cc(_0x17cacf)==_0x539057(0x136)?_0x17cacf:_0x17cacf+'';}function _0x4c2059(_0x1ef720,_0x5bc1b9,_0x52e1b8){const _0x47d653=_0x288907;return(_0x5bc1b9=_0x52bae3(_0x5bc1b9))in _0x1ef720?Object[_0x47d653(0x122)](_0x1ef720,_0x5bc1b9,{'value':_0x52e1b8,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1ef720[_0x5bc1b9]=_0x52e1b8,_0x1ef720;}let _0x1a6a00=(0x0,_0x35b9de[_0x288907(0x116)])(_0x288907(0x160));var _0x508626=class{constructor(){const _0x4434cc=_0x288907;_0x4c2059(this,_0x4434cc(0x138),[]);}[_0x288907(0x112)](_0x49d189){const _0x3fa50d=_0x288907;return this[_0x3fa50d(0x138)][_0x3fa50d(0x14f)](_0x49d189),(0x0,_0x35b9de[_0x3fa50d(0x10a)])(()=>{const _0x325232=_0x3fa50d;let _0x127720=this['_adapters'][_0x325232(0x17d)](_0x49d189);_0x127720>=0x0&&this['_adapters'][_0x325232(0x137)](_0x127720,0x1);});}[_0x288907(0x16e)](_0x5e9613){const _0x57824f=_0x288907;for(let _0x3eff51 of this[_0x57824f(0x138)])if(_0x3eff51['beginInkMode'](_0x5e9613))return!0x0;return!0x1;}async[_0x288907(0x141)](_0x5e51f2){const _0x420751=_0x288907;for(let _0x4744f0 of this['_adapters'])if(_0x4744f0[_0x420751(0x141)]&&await _0x4744f0[_0x420751(0x141)](_0x5e51f2))return!0x0;return!0x1;}};let _0x44b596={'id':_0x288907(0x17a),'type':_0x35b9de[_0x288907(0x168)][_0x288907(0x12a)],'handler':(_0x534eaf,_0x55067d)=>_0x55067d?_0x534eaf[_0x288907(0x11b)](_0x1a6a00)[_0x288907(0x16e)](_0x55067d):!0x1},_0x111154={};function _0x581858(_0x1dbea0,_0x5a633d){return function(_0x5bc980,_0x14149f){_0x5a633d(_0x5bc980,_0x14149f,_0x1dbea0);};}function _0x57c883(_0xc7802a,_0xdf421e,_0x2ec9c5,_0x1d17e4){const _0x56bc9b=_0x288907;var _0x5d7d7a=arguments[_0x56bc9b(0x12e)],_0x18364f=_0x5d7d7a<0x3?_0xdf421e:_0x1d17e4===null?_0x1d17e4=Object['getOwnPropertyDescriptor'](_0xdf421e,_0x2ec9c5):_0x1d17e4,_0x6785fc;if(typeof Reflect==_0x56bc9b(0x17b)&&typeof Reflect[_0x56bc9b(0x113)]==_0x56bc9b(0x146))_0x18364f=Reflect[_0x56bc9b(0x113)](_0xc7802a,_0xdf421e,_0x2ec9c5,_0x1d17e4);else{for(var _0x16b89e=_0xc7802a[_0x56bc9b(0x12e)]-0x1;_0x16b89e>=0x0;_0x16b89e--)(_0x6785fc=_0xc7802a[_0x16b89e])&&(_0x18364f=(_0x5d7d7a<0x3?_0x6785fc(_0x18364f):_0x5d7d7a>0x3?_0x6785fc(_0xdf421e,_0x2ec9c5,_0x18364f):_0x6785fc(_0xdf421e,_0x2ec9c5))||_0x18364f);}return _0x5d7d7a>0x3&&_0x18364f&&Object['defineProperty'](_0xdf421e,_0x2ec9c5,_0x18364f),_0x18364f;}let _0xc11d35=class extends _0x35b9de[_0x288907(0x110)]{constructor(_0x28da3e=_0x111154,_0x3ff796,_0x26503c,_0x10c4c9){const _0xfa1e28=_0x288907;super(),this[_0xfa1e28(0x170)]=_0x28da3e,this['_injector']=_0x3ff796,this[_0xfa1e28(0x14b)]=_0x26503c,this[_0xfa1e28(0x12c)]=_0x10c4c9;let {..._0x4bbf92}=(0x0,_0x35b9de[_0xfa1e28(0x14a)])({},_0x111154,this['_config']);this[_0xfa1e28(0x12c)][_0xfa1e28(0x15f)]('ink.config',_0x4bbf92);}[_0x288907(0x13c)](){const _0x207643=_0x288907;[[_0x1a6a00,{'useClass':_0x508626}]]['forEach'](_0x1ed01b=>this[_0x207643(0x127)]['add'](_0x1ed01b)),this['disposeWithMe'](this[_0x207643(0x14b)]['registerCommand'](_0x44b596));}};_0x4c2059(_0xc11d35,_0x288907(0x152),'UNIVER_INK_PLUGIN'),_0x4c2059(_0xc11d35,_0x288907(0x161),_0x2cd7fd),_0x4c2059(_0xc11d35,_0x288907(0x163),_0x32545f),_0x4c2059(_0xc11d35,_0x288907(0x11a),_0x35b9de[_0x288907(0x159)][_0x288907(0x132)]),_0xc11d35=_0x57c883([(0x0,_0x35b9de[_0x288907(0x142)])(_0x4e0fe3[_0x288907(0x128)]),_0x581858(0x1,(0x0,_0x35b9de[_0x288907(0x15e)])(_0x35b9de[_0x288907(0x153)])),_0x581858(0x2,_0x35b9de['ICommandService']),_0x581858(0x3,_0x35b9de['IConfigService'])],_0xc11d35),_0x2d8532[_0x288907(0x143)]=_0x1a6a00,Object[_0x288907(0x122)](_0x2d8532,_0x288907(0x131),{'enumerable':!0x0,'get':function(){return _0xc11d35;}}),_0x2d8532['buildInkCustomShapePayload']=_0x16f8ca,_0x2d8532[_0x288907(0x10e)]=_0x5c42f7,_0x2d8532['cycleInkPenAnchorPointType']=_0x47cb00,_0x2d8532['deleteInkPenAnchor']=_0x3b0b62,_0x2d8532[_0x288907(0x13d)]=_0x284e47,_0x2d8532[_0x288907(0x139)]=_0x1c0434,_0x2d8532[_0x288907(0x134)]=_0x4b9251,_0x2d8532[_0x288907(0x14c)]=_0x558d06,_0x2d8532[_0x288907(0x130)]=_0x7d9f18,_0x2d8532['isInkPenHandleVisible']=_0x10c467,_0x2d8532[_0x288907(0x150)]=_0x44099b,_0x2d8532['setInkPenAnchorPointType']=_0x162bc7;}));function _0x4c1d(){const _0x211e45=['Round','point','filter','5398960vfHjTw','UniverInstanceType','height','kind','UniverCore','15rYIdNH','Inject','setConfig','ink.host-adapter.service','packageName','1.0.0-alpha.4','version','slice','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','7869933MEABwW','opacity','CommandType','ratio','pointType','out','startIndex','SolidFill','beginInkMode','constructor','_config','left','3121520OxEnLw','start','none','createId','max','193580MCIWav','UniverProInk','right','ink.operation.start','object','call','indexOf','round','pen','UniverProEngineShape','544PvpRLJ','forEach','min','points','toDisposable','ink-centerline-','norm','distance','convertBrushModelToPenModel','ShapeTypeEnum','Plugin','NoFill','registerAdapter','decorate','symmetric','smooth','createIdentifier','SolidLine','map','corner','type','get','prototype','UniverProLicense','find','ShapeLineJoinEnum','toPrimitive','abs','defineProperty','top','anchors','2446780WZEQXz','exports','_injector','UniverLicensePlugin','ShapeFillEnum','OPERATION','578zhwlXc','_configService','segmentIndex','length','free','insertInkPenAnchorAt','UniverInkPlugin','UNIVER_UNKNOWN','color','getInkModelBounds','sqrt','symbol','splice','_adapters','findClosestInkPenSegment','__ink-preview-anchor__','@univerjs-pro/ink','onStarting','findClosestInkPenHandle','hypot','closed','width','createCustomShape','DependentOn','IInkHostAdapterService','Module','Rect','function','default','string','anchor','merge','_commandService','getInkPenPreviewModel','5935764sGYrzc','end','push','moveInkPenAnchorPoint','findIndex','pluginName','Injector','tool'];_0x4c1d=function(){return _0x211e45;};return _0x4c1d();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/ink",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.4",
|
|
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-alpha.
|
|
62
|
-
"@univerjs-pro/engine-shape": "1.0.0-alpha.
|
|
63
|
-
"@univerjs-pro/license": "1.0.0-alpha.
|
|
64
|
-
"@univerjs/core": "1.0.0-alpha.
|
|
61
|
+
"@univerjs-pro/boards": "1.0.0-alpha.4",
|
|
62
|
+
"@univerjs-pro/engine-shape": "1.0.0-alpha.4",
|
|
63
|
+
"@univerjs-pro/license": "1.0.0-alpha.4",
|
|
64
|
+
"@univerjs/core": "1.0.0-alpha.4"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"typescript": "^6.0.3",
|
|
68
68
|
"vitest": "^4.1.10",
|
|
69
|
-
"@univerjs-infra/shared": "1.0.0-alpha.
|
|
69
|
+
"@univerjs-infra/shared": "1.0.0-alpha.4"
|
|
70
70
|
},
|
|
71
71
|
"scripts": {
|
|
72
72
|
"test": "vitest run",
|