@univerjs-pro/ink 1.3.0 → 1.3.1

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 CHANGED
@@ -1 +1 @@
1
- const _0x26729b=_0x597f;function _0x597f(_0x1167fd,_0x278a00){_0x1167fd=_0x1167fd-0x1b8;const _0x11404a=_0x1140();let _0x597f4d=_0x11404a[_0x1167fd];return _0x597f4d;}(function(_0x40cf41,_0x3edf95){const _0x2b8bdf=_0x597f,_0x39220b=_0x40cf41();while(!![]){try{const _0x191801=parseInt(_0x2b8bdf(0x1eb))/0x1+parseInt(_0x2b8bdf(0x1bd))/0x2*(-parseInt(_0x2b8bdf(0x1c4))/0x3)+-parseInt(_0x2b8bdf(0x1ce))/0x4+parseInt(_0x2b8bdf(0x1de))/0x5*(parseInt(_0x2b8bdf(0x1e5))/0x6)+parseInt(_0x2b8bdf(0x1bb))/0x7*(-parseInt(_0x2b8bdf(0x1d7))/0x8)+parseInt(_0x2b8bdf(0x1f6))/0x9*(-parseInt(_0x2b8bdf(0x1f8))/0xa)+parseInt(_0x2b8bdf(0x1c5))/0xb;if(_0x191801===_0x3edf95)break;else _0x39220b['push'](_0x39220b['shift']());}catch(_0xc7e881){_0x39220b['push'](_0x39220b['shift']());}}}(_0x1140,0x91318),Object[_0x26729b(0x1da)](exports,Symbol[_0x26729b(0x1c8)],{'value':_0x26729b(0x1cd)}));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[_0x26729b(0x1c0)]{[_0x26729b(0x1d3)](_0x2c8750){const _0x13a52f=_0x26729b;let _0x42e068=o(_0x2c8750);return _0x42e068&&this[_0x13a52f(0x1f1)](_0x42e068,{'insertIndex':_0x2c8750[_0x13a52f(0x1e7)]})?_0x42e068:null;}[_0x26729b(0x1dc)](){const _0xe08717=_0x26729b;return this[_0xe08717(0x1dd)]({'elementType':e[_0xe08717(0x1d1)][_0xe08717(0x1c6)],'includeHidden':!0x0,'includeLocked':!0x0})[_0xe08717(0x1c9)](f);}};function o(_0x587f44,_0x4d4368){const _0x5e6314=_0x26729b;if(!c(_0x587f44[_0x5e6314(0x1b9)])||_0x587f44[_0x5e6314(0x1d0)]!==void 0x0&&!c(_0x587f44[_0x5e6314(0x1d0)])||!l(_0x587f44[_0x5e6314(0x1c7)]))return null;let _0x34cccc=_0x587f44[_0x5e6314(0x1bf)]??(_0x4d4368==null?void 0x0:_0x4d4368[_0x5e6314(0x1bf)]),_0xe066b0=r[_0x5e6314(0x1be)]['deepClone'](_0x587f44[_0x5e6314(0x1b9)]),_0x27121b=(0x0,n[_0x5e6314(0x1e2)])({'model':_0xe066b0,'style':_0x587f44[_0x5e6314(0x1c7)],'tool':_0x587f44['tool'],'sourceModel':_0x587f44[_0x5e6314(0x1d0)]?r[_0x5e6314(0x1be)][_0x5e6314(0x1c1)](_0x587f44[_0x5e6314(0x1d0)]):_0xe066b0}),_0x1f8c52=u(_0x4d4368==null?void 0x0:_0x4d4368[_0x5e6314(0x1d8)]);return{'id':(_0x4d4368==null?void 0x0:_0x4d4368['id'])??_0x587f44['id']??(0x0,r[_0x5e6314(0x1e3)])(0x6),'type':e['BoardElementType'][_0x5e6314(0x1c6)],'transform':_0x27121b[_0x5e6314(0x1bc)],'shapeData':_0x27121b[_0x5e6314(0x1d4)],'parentId':_0x34cccc??void 0x0,'laneId':_0x587f44['laneId']===void 0x0?_0x4d4368==null?void 0x0:_0x4d4368[_0x5e6314(0x1cb)]:_0x587f44['laneId'],'custom':{..._0x1f8c52,'ink':_0x27121b[_0x5e6314(0x1ec)]}};}function s(_0x907825){const _0x4c8c5e=_0x26729b;return Number['isFinite'](_0x907825['x'])&&Number[_0x4c8c5e(0x1c3)](_0x907825['y']);}function c(_0x2812d1){const _0x553147=_0x26729b;if(_0x2812d1[_0x553147(0x1e9)]===_0x553147(0x1f2)){let _0x391867=new Set();return _0x2812d1[_0x553147(0x1ca)][_0x553147(0x1d9)]>=(_0x2812d1['closed']?0x3:0x2)&&_0x2812d1['anchors'][_0x553147(0x1f3)](_0x452e16=>{const _0x35abbd=_0x553147;let _0x3ec65b=_0x452e16['id'][_0x35abbd(0x1ed)]()['length']>0x0&&!_0x391867[_0x35abbd(0x1f5)](_0x452e16['id'])&&s(_0x452e16)&&(!_0x452e16['in']||s(_0x452e16['in']))&&(!_0x452e16[_0x35abbd(0x1e4)]||s(_0x452e16[_0x35abbd(0x1e4)]));return _0x391867[_0x35abbd(0x1b8)](_0x452e16['id']),_0x3ec65b;});}return _0x2812d1['points'][_0x553147(0x1d9)]>=0x2&&_0x2812d1['points'][_0x553147(0x1f3)](_0x419154=>s(_0x419154)&&Number['isFinite'](_0x419154['t'])&&(_0x419154[_0x553147(0x1f0)]===void 0x0||Number[_0x553147(0x1c3)](_0x419154[_0x553147(0x1f0)])))&&Number[_0x553147(0x1c3)](_0x2812d1[_0x553147(0x1e6)])&&_0x2812d1['width']>0x0&&Number[_0x553147(0x1c3)](_0x2812d1[_0x553147(0x1d5)])&&_0x2812d1[_0x553147(0x1d5)]>=0x0&&_0x2812d1[_0x553147(0x1d5)]<=0x1;}function l(_0x443bfb){const _0x21869d=_0x26729b;return _0x443bfb===void 0x0||(_0x443bfb[_0x21869d(0x1e6)]===void 0x0||Number[_0x21869d(0x1c3)](_0x443bfb[_0x21869d(0x1e6)])&&_0x443bfb[_0x21869d(0x1e6)]>0x0)&&(_0x443bfb[_0x21869d(0x1d5)]===void 0x0||Number[_0x21869d(0x1c3)](_0x443bfb[_0x21869d(0x1d5)])&&_0x443bfb['opacity']>=0x0&&_0x443bfb['opacity']<=0x1);}function u(_0x33a1f5){return _0x33a1f5&&typeof _0x33a1f5=='object'&&!Array['isArray'](_0x33a1f5)?_0x33a1f5:{};}function d(_0x34ad33){const _0x4f41cf=_0x26729b;let _0x112400=u(_0x34ad33[_0x4f41cf(0x1d8)])[_0x4f41cf(0x1ec)];if(!_0x112400||typeof _0x112400!=_0x4f41cf(0x1df)||Array[_0x4f41cf(0x1c2)](_0x112400))return null;let _0x1e95f8=_0x112400;return _0x1e95f8[_0x4f41cf(0x1d6)]===0x1&&_0x1e95f8['sourceModel']&&typeof _0x1e95f8['sourceModel']=='object'?_0x1e95f8:null;}function f(_0x46d9d4){const _0x140145=_0x26729b;return _0x46d9d4[_0x140145(0x1cf)]===e['BoardElementType'][_0x140145(0x1c6)]&&!!d(_0x46d9d4);}t[_0x26729b(0x1c0)]['extend'](a);const p={'Pen':_0x26729b(0x1f2),'Brush':_0x26729b(0x1f4),'Highlighter':_0x26729b(0x1d2)},m={'Corner':_0x26729b(0x1db),'Smooth':_0x26729b(0x1ee),'Symmetric':_0x26729b(0x1ef),'Free':_0x26729b(0x1ba)},h={'Anchor':_0x26729b(0x1ea),'In':'in','Out':_0x26729b(0x1e4)};var g=class extends i[_0x26729b(0x1e8)]{get[_0x26729b(0x1cc)](){return p;}get[_0x26729b(0x1e1)](){return m;}get[_0x26729b(0x1f7)](){return h;}};function _0x1140(){const _0x33b624=['insertIndex','FEnum','kind','anchor','1166057YLZIZr','ink','trim','smooth','symmetric','pressure','_addElement','pen','every','brush','has','2133lcwUhN','BoardInkHandleKind','4010mjTtJm','add','model','free','9590XqvrGD','transform','4EJsJJs','Tools','parentId','FBoard','deepClone','isArray','isFinite','680502jDmLHz','10910328uWZjSj','Shape','style','toStringTag','filter','anchors','laneId','BoardInkTool','Module','3719076mbILcC','type','sourceModel','BoardElementType','highlighter','insertInk','shapeData','opacity','version','1328UDAYEV','custom','length','defineProperty','corner','getInks','findElements','713505XtJOPy','object','extend','BoardInkPointType','buildInkCustomShapePayload','generateRandomId','out','6oeWWWu','width'];_0x1140=function(){return _0x33b624;};return _0x1140();}i[_0x26729b(0x1e8)][_0x26729b(0x1e0)](g),exports['BoardInkHandleKind']=h,exports[_0x26729b(0x1e1)]=m,exports[_0x26729b(0x1cc)]=p;
1
+ const _0x187c73=_0x2390;(function(_0x49ad09,_0x4dcb6c){const _0x2cb60b=_0x2390,_0xf72c8d=_0x49ad09();while(!![]){try{const _0x3625f2=-parseInt(_0x2cb60b(0x104))/0x1*(-parseInt(_0x2cb60b(0x11a))/0x2)+-parseInt(_0x2cb60b(0xf3))/0x3+parseInt(_0x2cb60b(0xe8))/0x4+-parseInt(_0x2cb60b(0xe2))/0x5*(-parseInt(_0x2cb60b(0x116))/0x6)+-parseInt(_0x2cb60b(0xe3))/0x7*(-parseInt(_0x2cb60b(0x107))/0x8)+parseInt(_0x2cb60b(0x10d))/0x9*(parseInt(_0x2cb60b(0x10c))/0xa)+-parseInt(_0x2cb60b(0xec))/0xb*(parseInt(_0x2cb60b(0x121))/0xc);if(_0x3625f2===_0x4dcb6c)break;else _0xf72c8d['push'](_0xf72c8d['shift']());}catch(_0x288c04){_0xf72c8d['push'](_0xf72c8d['shift']());}}}(_0xf87a,0xf0e0f),Object[_0x187c73(0x120)](exports,Symbol[_0x187c73(0xf6)],{'value':_0x187c73(0xfa)}));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[_0x187c73(0x10b)]{[_0x187c73(0xf9)](_0x44276f){const _0x209ebe=_0x187c73;let _0xa1b9af=o(_0x44276f);return _0xa1b9af&&this[_0x209ebe(0x114)](_0xa1b9af,{'insertIndex':_0x44276f[_0x209ebe(0xf1)]})?_0xa1b9af:null;}['getInks'](){const _0x3809bd=_0x187c73;return this[_0x3809bd(0xf0)]({'elementType':e[_0x3809bd(0xef)][_0x3809bd(0xe7)],'includeHidden':!0x0,'includeLocked':!0x0})[_0x3809bd(0xf4)](f);}};function o(_0x140b0d,_0x564eef){const _0x351bdd=_0x187c73;if(!c(_0x140b0d[_0x351bdd(0xee)])||_0x140b0d[_0x351bdd(0xe6)]!==void 0x0&&!c(_0x140b0d['sourceModel'])||!l(_0x140b0d[_0x351bdd(0x108)]))return null;let _0x5c7557=_0x140b0d[_0x351bdd(0xe9)]??(_0x564eef==null?void 0x0:_0x564eef[_0x351bdd(0xe9)]),_0x4d2abc=r[_0x351bdd(0xf2)][_0x351bdd(0xfc)](_0x140b0d['model']),_0x2f2e2d=(0x0,n[_0x351bdd(0x112)])({'model':_0x4d2abc,'style':_0x140b0d[_0x351bdd(0x108)],'tool':_0x140b0d[_0x351bdd(0x101)],'sourceModel':_0x140b0d[_0x351bdd(0xe6)]?r['Tools']['deepClone'](_0x140b0d['sourceModel']):_0x4d2abc}),_0x348007=u(_0x564eef==null?void 0x0:_0x564eef[_0x351bdd(0xed)]);return{'id':(_0x564eef==null?void 0x0:_0x564eef['id'])??_0x140b0d['id']??(0x0,r[_0x351bdd(0x11b)])(0x6),'type':e['BoardElementType'][_0x351bdd(0xe7)],'transform':_0x2f2e2d['transform'],'shapeData':_0x2f2e2d[_0x351bdd(0x10f)],'parentId':_0x5c7557??void 0x0,'laneId':_0x140b0d[_0x351bdd(0x10e)]===void 0x0?_0x564eef==null?void 0x0:_0x564eef[_0x351bdd(0x10e)]:_0x140b0d[_0x351bdd(0x10e)],'custom':{..._0x348007,'ink':_0x2f2e2d[_0x351bdd(0xea)]}};}function s(_0x175a5f){const _0x5a7d6b=_0x187c73;return Number[_0x5a7d6b(0x11f)](_0x175a5f['x'])&&Number[_0x5a7d6b(0x11f)](_0x175a5f['y']);}function c(_0x1f4e9f){const _0x4d55b2=_0x187c73;if(_0x1f4e9f[_0x4d55b2(0x111)]==='pen'){let _0x127107=new Set();return _0x1f4e9f['anchors'][_0x4d55b2(0x119)]>=(_0x1f4e9f[_0x4d55b2(0x11d)]?0x3:0x2)&&_0x1f4e9f[_0x4d55b2(0x105)][_0x4d55b2(0xfd)](_0x54c1f4=>{const _0x54582c=_0x4d55b2;let _0x121d22=_0x54c1f4['id'][_0x54582c(0xf7)]()[_0x54582c(0x119)]>0x0&&!_0x127107[_0x54582c(0xf5)](_0x54c1f4['id'])&&s(_0x54c1f4)&&(!_0x54c1f4['in']||s(_0x54c1f4['in']))&&(!_0x54c1f4[_0x54582c(0x11c)]||s(_0x54c1f4[_0x54582c(0x11c)]));return _0x127107[_0x54582c(0x103)](_0x54c1f4['id']),_0x121d22;});}return _0x1f4e9f[_0x4d55b2(0xeb)]['length']>=0x2&&_0x1f4e9f[_0x4d55b2(0xeb)][_0x4d55b2(0xfd)](_0x2c6c92=>s(_0x2c6c92)&&Number['isFinite'](_0x2c6c92['t'])&&(_0x2c6c92[_0x4d55b2(0x115)]===void 0x0||Number[_0x4d55b2(0x11f)](_0x2c6c92['pressure'])))&&Number['isFinite'](_0x1f4e9f['width'])&&_0x1f4e9f['width']>0x0&&Number[_0x4d55b2(0x11f)](_0x1f4e9f[_0x4d55b2(0x109)])&&_0x1f4e9f[_0x4d55b2(0x109)]>=0x0&&_0x1f4e9f[_0x4d55b2(0x109)]<=0x1;}function l(_0x49bd85){const _0x29f588=_0x187c73;return _0x49bd85===void 0x0||(_0x49bd85['width']===void 0x0||Number['isFinite'](_0x49bd85[_0x29f588(0xf8)])&&_0x49bd85['width']>0x0)&&(_0x49bd85['opacity']===void 0x0||Number['isFinite'](_0x49bd85[_0x29f588(0x109)])&&_0x49bd85['opacity']>=0x0&&_0x49bd85['opacity']<=0x1);}function u(_0x270b53){const _0x3f47f2=_0x187c73;return _0x270b53&&typeof _0x270b53==_0x3f47f2(0x118)&&!Array[_0x3f47f2(0x106)](_0x270b53)?_0x270b53:{};}function _0x2390(_0x533ffb,_0x3fcea5){_0x533ffb=_0x533ffb-0xe2;const _0xf87a82=_0xf87a();let _0x23908c=_0xf87a82[_0x533ffb];return _0x23908c;}function d(_0x57e8d0){const _0x18b2e1=_0x187c73;let _0x1a16a4=u(_0x57e8d0[_0x18b2e1(0xed)])[_0x18b2e1(0xea)];if(!_0x1a16a4||typeof _0x1a16a4!='object'||Array[_0x18b2e1(0x106)](_0x1a16a4))return null;let _0x40bc38=_0x1a16a4;return _0x40bc38[_0x18b2e1(0xe5)]===0x1&&_0x40bc38[_0x18b2e1(0xe6)]&&typeof _0x40bc38[_0x18b2e1(0xe6)]==_0x18b2e1(0x118)?_0x40bc38:null;}function f(_0x13047c){const _0x101292=_0x187c73;return _0x13047c[_0x101292(0x117)]===e[_0x101292(0xef)][_0x101292(0xe7)]&&!!d(_0x13047c);}t[_0x187c73(0x10b)]['extend'](a);const p={'Pen':_0x187c73(0x10a),'Brush':_0x187c73(0xe4),'Highlighter':_0x187c73(0x102)},m={'Corner':_0x187c73(0xff),'Smooth':'smooth','Symmetric':_0x187c73(0x122),'Free':_0x187c73(0x100)},h={'Anchor':_0x187c73(0x110),'In':'in','Out':_0x187c73(0x11c)};function _0xf87a(){const _0x24fed3=['pressure','1745526wtJiaK','type','object','length','2kaIHWv','generateRandomId','out','closed','BoardInkTool','isFinite','defineProperty','12cNHjIU','symmetric','10wkinQi','7kZiCaD','brush','version','sourceModel','Shape','677852mCHuIZ','parentId','ink','points','38732683qlAhsH','custom','model','BoardElementType','findElements','insertIndex','Tools','2573634ewUIuv','filter','has','toStringTag','trim','width','insertInk','Module','FEnum','deepClone','every','extend','corner','free','tool','highlighter','add','1775057WVeWWd','anchors','isArray','10321368GNMaHz','style','opacity','pen','FBoard','5163790LSLoWz','27SIwIsE','laneId','shapeData','anchor','kind','buildInkCustomShapePayload','BoardInkPointType','_addElement'];_0xf87a=function(){return _0x24fed3;};return _0xf87a();}var g=class extends i[_0x187c73(0xfb)]{get[_0x187c73(0x11e)](){return p;}get['BoardInkPointType'](){return m;}get['BoardInkHandleKind'](){return h;}};i[_0x187c73(0xfb)][_0x187c73(0xfe)](g),exports['BoardInkHandleKind']=h,exports[_0x187c73(0x113)]=m,exports[_0x187c73(0x11e)]=p;
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4144c7=_0x3e3b;(function(_0x3805f6,_0x3f7d6b){const _0xed88f3=_0x3e3b,_0x35ed98=_0x3805f6();while(!![]){try{const _0x4bd415=-parseInt(_0xed88f3(0x1f6))/0x1*(parseInt(_0xed88f3(0x1f2))/0x2)+-parseInt(_0xed88f3(0x23e))/0x3*(-parseInt(_0xed88f3(0x242))/0x4)+-parseInt(_0xed88f3(0x206))/0x5+parseInt(_0xed88f3(0x208))/0x6+parseInt(_0xed88f3(0x1ee))/0x7+parseInt(_0xed88f3(0x21a))/0x8+-parseInt(_0xed88f3(0x225))/0x9*(-parseInt(_0xed88f3(0x1da))/0xa);if(_0x4bd415===_0x3f7d6b)break;else _0x35ed98['push'](_0x35ed98['shift']());}catch(_0x47ea25){_0x35ed98['push'](_0x35ed98['shift']());}}}(_0x1d18,0x2bca4),Object['defineProperty'](exports,Symbol[_0x4144c7(0x1e0)],{'value':'Module'}));let e=require('@univerjs-pro/engine-shape'),t=require('@univerjs-pro/license'),n=require('@univerjs/core');const r=0.0001;function i(_0x100d8d){return{'x':_0x100d8d['x'],'y':_0x100d8d['y']};}function a(_0x4f9e94){const _0x5c0b6e=_0x4144c7;return{..._0x4f9e94,'in':_0x4f9e94['in']?i(_0x4f9e94['in']):void 0x0,'out':_0x4f9e94['out']?i(_0x4f9e94[_0x5c0b6e(0x21f)]):void 0x0};}function o(_0x41b75a){const _0x3d0ebd=_0x4144c7;return{'kind':_0x3d0ebd(0x20f),'closed':_0x41b75a[_0x3d0ebd(0x230)],'anchors':_0x41b75a[_0x3d0ebd(0x233)]['map'](a)};}function s(_0x1448e4,_0x39aab4,_0x484e1a){return{'x':_0x1448e4['x']+(_0x39aab4['x']-_0x1448e4['x'])*_0x484e1a,'y':_0x1448e4['y']+(_0x39aab4['y']-_0x1448e4['y'])*_0x484e1a};}function c(_0xad5ebb,_0x5c8813){const _0x4ed357=_0x4144c7;return Math[_0x4ed357(0x22a)](_0xad5ebb['x']-_0x5c8813['x'],_0xad5ebb['y']-_0x5c8813['y']);}function l(_0x46a189){const _0x40f5a5=_0x4144c7;let _0x4cea18=Math[_0x40f5a5(0x22a)](_0x46a189['x'],_0x46a189['y']);return _0x4cea18<r?{'x':0x1,'y':0x0}:{'x':_0x46a189['x']/_0x4cea18,'y':_0x46a189['y']/_0x4cea18};}function u(_0x43b2a7,_0x1d887b,_0x2b876f=c(_0x43b2a7,_0x1d887b)){let _0xd7d80d=l({'x':_0x43b2a7['x']-_0x1d887b['x'],'y':_0x43b2a7['y']-_0x1d887b['y']});return{'x':_0x43b2a7['x']+_0xd7d80d['x']*_0x2b876f,'y':_0x43b2a7['y']+_0xd7d80d['y']*_0x2b876f};}function d(_0xf655f,_0x44a063){const _0x3624a2=_0x4144c7;let {anchors:_0x39db87}=_0xf655f;return _0x39db87[_0x3624a2(0x1d8)]<0x2||_0x44a063<0x0?null:_0x44a063<_0x39db87[_0x3624a2(0x1d8)]-0x1?{'startIndex':_0x44a063,'endIndex':_0x44a063+0x1,'start':_0x39db87[_0x44a063],'end':_0x39db87[_0x44a063+0x1]}:_0xf655f['closed']&&_0x44a063===_0x39db87[_0x3624a2(0x1d8)]-0x1?{'startIndex':_0x39db87[_0x3624a2(0x1d8)]-0x1,'endIndex':0x0,'start':_0x39db87[_0x39db87[_0x3624a2(0x1d8)]-0x1],'end':_0x39db87[0x0]}:null;}function f(_0x584c7a,_0x25fbe6){const _0x53acba=_0x4144c7;let _0x1dfd8f=d(_0x584c7a,_0x25fbe6);return _0x1dfd8f?[_0x1dfd8f[_0x53acba(0x20e)],_0x1dfd8f[_0x53acba(0x20e)][_0x53acba(0x21f)]??_0x1dfd8f['start'],_0x1dfd8f['end']['in']??_0x1dfd8f[_0x53acba(0x216)],_0x1dfd8f['end']]:null;}function ee(_0xb761b8,_0x443dbe){const _0x3d260c=_0x4144c7;return _0x443dbe===_0x3d260c(0x1e4)?_0xb761b8:_0xb761b8[_0x443dbe]??null;}function p(_0x581fdf,_0x42499f,_0x1142e9){const _0xa28592=_0x4144c7;return _0x1142e9===_0xa28592(0x1e4)||_0x581fdf[_0xa28592(0x230)]?!0x0:_0x1142e9==='in'?_0x42499f>0x0:_0x42499f<_0x581fdf[_0xa28592(0x233)][_0xa28592(0x1d8)]-0x1;}function m(_0x54849c,_0x1c4603){let [_0x5da132,_0x20fb50,_0x723b4c,_0x290f79]=_0x54849c,_0x4f6210=s(_0x5da132,_0x20fb50,_0x1c4603),_0x317581=s(_0x20fb50,_0x723b4c,_0x1c4603),_0x2aeb3e=s(_0x723b4c,_0x290f79,_0x1c4603);return s(s(_0x4f6210,_0x317581,_0x1c4603),s(_0x317581,_0x2aeb3e,_0x1c4603),_0x1c4603);}function h(_0x3f3b06,_0x15b37a){let [_0x468146,_0x1a396a,_0x66a105,_0x37af5d]=_0x3f3b06,_0x2f9707=s(_0x468146,_0x1a396a,_0x15b37a),_0x12007a=s(_0x1a396a,_0x66a105,_0x15b37a),_0x517aec=s(_0x66a105,_0x37af5d,_0x15b37a),_0x53fe41=s(_0x2f9707,_0x12007a,_0x15b37a),_0x58d6a9=s(_0x12007a,_0x517aec,_0x15b37a),_0x4c6ba2=s(_0x53fe41,_0x58d6a9,_0x15b37a);return{'left':[_0x468146,_0x2f9707,_0x53fe41,_0x4c6ba2],'right':[_0x4c6ba2,_0x58d6a9,_0x517aec,_0x37af5d]};}function g(_0x5781fb,_0x3eed89,_0xb74e4b){const _0x14a1e8=_0x4144c7;let _0x79e559=_0xb74e4b['x']-_0x3eed89['x'],_0x350fed=_0xb74e4b['y']-_0x3eed89['y'],_0x1b6db5=_0x79e559*_0x79e559+_0x350fed*_0x350fed,_0x5edb1=_0x1b6db5<=r?0x0:Math[_0x14a1e8(0x1db)](0x0,Math[_0x14a1e8(0x1ed)](0x1,((_0x5781fb['x']-_0x3eed89['x'])*_0x79e559+(_0x5781fb['y']-_0x3eed89['y'])*_0x350fed)/_0x1b6db5)),_0xf1dc25={'x':_0x3eed89['x']+_0x79e559*_0x5edb1,'y':_0x3eed89['y']+_0x350fed*_0x5edb1};return{'point':_0xf1dc25,'ratio':_0x5edb1,'distance':c(_0x5781fb,_0xf1dc25)};}function te(_0x347760,_0x5cbe3e,_0xd1e08e){return g(_0x347760,_0x5cbe3e,_0xd1e08e)['distance']**0x2;}function _(_0x3aea2e,_0x5686a5){const _0xd12870=_0x4144c7;if(_0x3aea2e['length']<=0x2)return _0x3aea2e[_0xd12870(0x21d)](i);let _0x21dd35=0x0,_0x54b0ee=0x0,_0x21856e=_0x3aea2e[0x0],_0x12e65b=_0x3aea2e[_0x3aea2e[_0xd12870(0x1d8)]-0x1],_0x259e0c=_0x5686a5*_0x5686a5;for(let _0xde0bdd=0x1;_0xde0bdd<_0x3aea2e['length']-0x1;_0xde0bdd++){let _0x2d1a75=te(_0x3aea2e[_0xde0bdd],_0x21856e,_0x12e65b);_0x2d1a75>_0x21dd35&&(_0x21dd35=_0x2d1a75,_0x54b0ee=_0xde0bdd);}if(_0x21dd35<=_0x259e0c)return[i(_0x21856e),i(_0x12e65b)];let _0x5735f4=_(_0x3aea2e[_0xd12870(0x22b)](0x0,_0x54b0ee+0x1),_0x5686a5),_0xf7242=_(_0x3aea2e[_0xd12870(0x22b)](_0x54b0ee),_0x5686a5);return[..._0x5735f4[_0xd12870(0x22b)](0x0,-0x1),..._0xf7242];}function ne(_0x2c09bf,_0x18feb0){let _0x1673ca=_0x2c09bf[_0x18feb0],_0x5cb730=_0x2c09bf[_0x18feb0+0x1],_0x1e64de=_0x2c09bf[_0x18feb0-0x1]??_0x1673ca;return{'x':_0x1673ca['x']+(_0x5cb730['x']-_0x1e64de['x'])/0x6,'y':_0x1673ca['y']+(_0x5cb730['y']-_0x1e64de['y'])/0x6};}function v(_0x4e3d91,_0x4ece90){let _0x41d871=_0x4e3d91[_0x4ece90],_0x55eeff=_0x4e3d91[_0x4ece90-0x1],_0x4d7202=_0x4e3d91[_0x4ece90+0x1]??_0x41d871;return{'x':_0x41d871['x']-(_0x4d7202['x']-_0x55eeff['x'])/0x6,'y':_0x41d871['y']-(_0x4d7202['y']-_0x55eeff['y'])/0x6};}function y(_0x589086,_0x3115bf){const _0x5cfb4e=_0x4144c7;let _0x552368=_0x589086[_0x5cfb4e(0x233)][_0x3115bf],_0xcb4083=_0x589086[_0x5cfb4e(0x233)][_0x3115bf-0x1]??(_0x589086[_0x5cfb4e(0x230)]?_0x589086[_0x5cfb4e(0x233)][_0x589086[_0x5cfb4e(0x233)][_0x5cfb4e(0x1d8)]-0x1]:null),_0x751343=_0x589086[_0x5cfb4e(0x233)][_0x3115bf+0x1]??(_0x589086['closed']?_0x589086['anchors'][0x0]:null),_0x3f7671=_0xcb4083&&_0x751343?l({'x':_0x751343['x']-_0xcb4083['x'],'y':_0x751343['y']-_0xcb4083['y']}):_0x751343?l({'x':_0x751343['x']-_0x552368['x'],'y':_0x751343['y']-_0x552368['y']}):_0xcb4083?l({'x':_0x552368['x']-_0xcb4083['x'],'y':_0x552368['y']-_0xcb4083['y']}):{'x':0x1,'y':0x0},_0x475568=_0xcb4083&&_0x751343?Math['max'](0x32,c(_0xcb4083,_0x751343)/0x4):0x32;return{'in':{'x':_0x552368['x']-_0x3f7671['x']*_0x475568,'y':_0x552368['y']-_0x3f7671['y']*_0x475568},'out':{'x':_0x552368['x']+_0x3f7671['x']*_0x475568,'y':_0x552368['y']+_0x3f7671['y']*_0x475568}};}function b(_0x4a7d2e,_0x2763fa){const _0x521f7f=_0x4144c7;let _0x1628ee=_0x4a7d2e[_0x2763fa],_0x3189bc=_0x2763fa==='in'?_0x521f7f(0x21f):'in',_0x4209e1=_0x4a7d2e[_0x3189bc];_0x1628ee&&(_0x4a7d2e[_0x521f7f(0x243)]===_0x521f7f(0x1ff)?_0x4a7d2e[_0x3189bc]=u(_0x4a7d2e,_0x1628ee):_0x4a7d2e[_0x521f7f(0x243)]===_0x521f7f(0x1cf)&&(_0x4a7d2e[_0x3189bc]=u(_0x4a7d2e,_0x1628ee,_0x4209e1?c(_0x4a7d2e,_0x4209e1):c(_0x4a7d2e,_0x1628ee))));}function x(_0x29c5d9,_0x4fec85){const _0x207ae5=_0x4144c7;let _0x28abf6=o(_0x29c5d9);return!_0x4fec85||_0x28abf6[_0x207ae5(0x230)]||_0x28abf6[_0x207ae5(0x233)][_0x207ae5(0x1d8)]===0x0||_0x28abf6['anchors'][_0x207ae5(0x22d)]({'id':'__ink-preview-anchor__','x':_0x4fec85['x'],'y':_0x4fec85['y'],'pointType':_0x207ae5(0x1d5)}),_0x28abf6;}function re(_0x256ce3,_0x28f8e2={}){const _0x56d557=_0x4144c7;let _0x439db3=Math['max'](0x0,_0x28f8e2[_0x56d557(0x236)]??Math[_0x56d557(0x1db)](0x4,_0x256ce3['width']*0.35)),_0x5ed79e=_0x28f8e2['createId']??(_0x2fceb0=>'ink-centerline-'+_0x2fceb0),_0x2f61de=_(_0x256ce3[_0x56d557(0x213)],_0x439db3),_0x468e6a=_0x2f61de['map']((_0x24545a,_0x2b84d0)=>({'id':_0x5ed79e(_0x2b84d0),'x':_0x24545a['x'],'y':_0x24545a['y'],'pointType':_0x56d557(0x229)}));for(let _0x5b9adf=0x0;_0x5b9adf<_0x468e6a[_0x56d557(0x1d8)]-0x1;_0x5b9adf++)_0x468e6a[_0x5b9adf][_0x56d557(0x21f)]=ne(_0x2f61de,_0x5b9adf),_0x468e6a[_0x5b9adf+0x1]['in']=v(_0x2f61de,_0x5b9adf+0x1);return{'kind':_0x56d557(0x20f),'closed':!0x1,'anchors':_0x468e6a};}function ie(_0x371cac,_0x4f295c,_0xd38d4c){const _0x505718=_0x4144c7;let _0x80eebd=null,_0x244547=[_0x505718(0x1e4),'in',_0x505718(0x21f)];return _0x371cac['anchors'][_0x505718(0x1fa)]((_0x205b03,_0x16241b)=>{const _0x1fbae1=_0x505718;_0x244547[_0x1fbae1(0x1fa)](_0x15ac48=>{const _0x1d8a00=_0x1fbae1;if(!p(_0x371cac,_0x16241b,_0x15ac48))return;let _0x463c00=ee(_0x205b03,_0x15ac48);if(!_0x463c00)return;let _0x121af7=c(_0x4f295c,_0x463c00);_0x121af7>_0xd38d4c||_0x80eebd&&_0x121af7>=_0x80eebd[_0x1d8a00(0x1de)]||(_0x80eebd={'handle':{'kind':_0x15ac48,'anchorId':_0x205b03['id']},'point':i(_0x463c00),'distance':_0x121af7});});}),_0x80eebd;}function S(_0x4b7b4b,_0xa416bb,_0x1c69ca){const _0x5ac096=_0x4144c7;let _0x278799=null,_0x2d643c=_0x4b7b4b[_0x5ac096(0x230)]?_0x4b7b4b[_0x5ac096(0x233)]['length']:Math['max'](0x0,_0x4b7b4b[_0x5ac096(0x233)][_0x5ac096(0x1d8)]-0x1);for(let _0x2e8062=0x0;_0x2e8062<_0x2d643c;_0x2e8062++){let _0x2d1c66=f(_0x4b7b4b,_0x2e8062);if(!_0x2d1c66)continue;let _0x22afa4=m(_0x2d1c66,0x0);for(let _0x2bb329=0x1;_0x2bb329<=0x20;_0x2bb329++){let _0x2da80a=m(_0x2d1c66,_0x2bb329/0x20),_0x399f09=g(_0xa416bb,_0x22afa4,_0x2da80a),_0x507b6c=(_0x2bb329-0x1+_0x399f09['ratio'])/0x20;(!_0x278799||_0x399f09[_0x5ac096(0x1de)]<_0x278799[_0x5ac096(0x1de)])&&(_0x278799={'segmentIndex':_0x2e8062,'t':_0x507b6c,'point':_0x399f09['point'],'distance':_0x399f09[_0x5ac096(0x1de)]}),_0x22afa4=_0x2da80a;}}return _0x278799&&_0x278799['distance']<=_0x1c69ca?_0x278799:null;}function C(_0x2810bb,_0x2f94ab,_0x20dddf){const _0x18ab2c=_0x4144c7;let _0x507d85=o(_0x2810bb),_0x1543a2=d(_0x507d85,_0x2f94ab[_0x18ab2c(0x238)]),_0x3bd90f=f(_0x507d85,_0x2f94ab['segmentIndex']);if(!_0x1543a2||!_0x3bd90f)return _0x507d85;let _0xeb4097=h(_0x3bd90f,Math[_0x18ab2c(0x1db)](0x0,Math[_0x18ab2c(0x1ed)](0x1,_0x2f94ab['t']))),_0x3d2adc={'id':_0x20dddf(),'x':_0xeb4097[_0x18ab2c(0x220)][0x3]['x'],'y':_0xeb4097[_0x18ab2c(0x220)][0x3]['y'],'in':i(_0xeb4097[_0x18ab2c(0x220)][0x2]),'out':i(_0xeb4097[_0x18ab2c(0x1fd)][0x1]),'pointType':_0x18ab2c(0x229)};return _0x507d85[_0x18ab2c(0x233)][_0x1543a2[_0x18ab2c(0x1f8)]][_0x18ab2c(0x21f)]=i(_0xeb4097[_0x18ab2c(0x220)][0x1]),_0x507d85[_0x18ab2c(0x233)][_0x1543a2[_0x18ab2c(0x212)]]['in']=i(_0xeb4097[_0x18ab2c(0x1fd)][0x2]),_0x507d85[_0x18ab2c(0x233)][_0x18ab2c(0x1f7)](_0x1543a2['startIndex']+0x1,0x0,_0x3d2adc),_0x507d85;}function w(_0x78ddb5,_0x5f1ab3){const _0x5659e8=_0x4144c7;let _0xfb8cbd=o(_0x78ddb5);return _0xfb8cbd[_0x5659e8(0x233)]=_0xfb8cbd[_0x5659e8(0x233)][_0x5659e8(0x237)](_0x6f7540=>_0x6f7540['id']!==_0x5f1ab3),_0xfb8cbd[_0x5659e8(0x230)]&&_0xfb8cbd[_0x5659e8(0x233)][_0x5659e8(0x1d8)]<0x3&&(_0xfb8cbd[_0x5659e8(0x230)]=!0x1),_0xfb8cbd;}function T(_0x3a7d89,_0x10d946,_0xe8b7be){const _0x4435fd=_0x4144c7;let _0x407859=o(_0x3a7d89),_0x57be1c=_0x407859[_0x4435fd(0x233)]['findIndex'](_0x1b87c1=>_0x1b87c1['id']===_0x10d946),_0x1fe9d7=_0x407859[_0x4435fd(0x233)][_0x57be1c];if(!_0x1fe9d7)return _0x407859;if(_0x1fe9d7[_0x4435fd(0x243)]=_0xe8b7be,_0xe8b7be===_0x4435fd(0x1d5))return delete _0x1fe9d7['in'],delete _0x1fe9d7[_0x4435fd(0x21f)],_0x407859;let _0x1968eb=y(_0x407859,_0x57be1c);if(_0x1fe9d7['in']=_0x1fe9d7['in']?i(_0x1fe9d7['in']):_0x1968eb['in'],_0x1fe9d7[_0x4435fd(0x21f)]=_0x1fe9d7[_0x4435fd(0x21f)]?i(_0x1fe9d7['out']):_0x1968eb['out'],_0xe8b7be===_0x4435fd(0x1ff)){let _0x19217c=Math[_0x4435fd(0x1db)](c(_0x1fe9d7,_0x1fe9d7['in']),c(_0x1fe9d7,_0x1fe9d7[_0x4435fd(0x21f)]),0x32),_0x42f4ff=l({'x':_0x1fe9d7[_0x4435fd(0x21f)]['x']-_0x1fe9d7['x'],'y':_0x1fe9d7[_0x4435fd(0x21f)]['y']-_0x1fe9d7['y']});_0x1fe9d7[_0x4435fd(0x21f)]={'x':_0x1fe9d7['x']+_0x42f4ff['x']*_0x19217c,'y':_0x1fe9d7['y']+_0x42f4ff['y']*_0x19217c},_0x1fe9d7['in']={'x':_0x1fe9d7['x']-_0x42f4ff['x']*_0x19217c,'y':_0x1fe9d7['y']-_0x42f4ff['y']*_0x19217c};}else _0xe8b7be===_0x4435fd(0x1cf)&&b(_0x1fe9d7,_0x4435fd(0x21f));return _0x407859;}function E(_0x45aeb8,_0x3254e7){const _0x3c428e=_0x4144c7;let _0x48c836=_0x45aeb8[_0x3c428e(0x233)]['find'](_0x16fc20=>_0x16fc20['id']===_0x3254e7),_0x13a7c0=(_0x48c836==null?void 0x0:_0x48c836[_0x3c428e(0x243)])??_0x3c428e(0x1d5);return T(_0x45aeb8,_0x3254e7,_0x13a7c0===_0x3c428e(0x1d5)?_0x3c428e(0x1cf):_0x13a7c0===_0x3c428e(0x1cf)?'symmetric':_0x13a7c0===_0x3c428e(0x1ff)?'free':_0x3c428e(0x1d5));}function ae(_0x5ef9d6,_0xa92ad,_0x401336){const _0x28ce5f=_0x4144c7;let _0x11a1fd=o(_0x5ef9d6),_0xf1b137=_0x11a1fd[_0x28ce5f(0x233)][_0x28ce5f(0x1d9)](_0xb450a1=>_0xb450a1['id']===_0xa92ad[_0x28ce5f(0x22f)]);if(!_0xf1b137)return _0x11a1fd;if(_0xa92ad[_0x28ce5f(0x201)]===_0x28ce5f(0x1e4)){let _0x349456={'x':_0x401336['x']-_0xf1b137['x'],'y':_0x401336['y']-_0xf1b137['y']};return _0xf1b137['x']=_0x401336['x'],_0xf1b137['y']=_0x401336['y'],_0xf1b137['in']&&={'x':_0xf1b137['in']['x']+_0x349456['x'],'y':_0xf1b137['in']['y']+_0x349456['y']},_0xf1b137['out']&&={'x':_0xf1b137[_0x28ce5f(0x21f)]['x']+_0x349456['x'],'y':_0xf1b137[_0x28ce5f(0x21f)]['y']+_0x349456['y']},_0x11a1fd;}return _0xf1b137[_0xa92ad[_0x28ce5f(0x201)]]=i(_0x401336),_0xf1b137[_0x28ce5f(0x243)]===_0x28ce5f(0x1d5)&&(_0xf1b137[_0x28ce5f(0x243)]=_0x28ce5f(0x229)),b(_0xf1b137,_0xa92ad['kind']),_0x11a1fd;}const D=1e-9;function O(_0x1a2c55){const _0x5be561=_0x4144c7;let _0x57381e=Math[_0x5be561(0x23a)](_0x1a2c55*0x2710)/0x2710;return Object['is'](_0x57381e,-0x0)?'0':String(_0x57381e);}function k(_0x11d31f){return O(_0x11d31f['x'])+'\x20'+O(_0x11d31f['y']);}function A(_0x251e22,_0x470f3c){return{'x':_0x251e22['x']-_0x470f3c['x'],'y':_0x251e22['y']-_0x470f3c['y']};}function j(_0x3dfd99,_0x54420f,_0x1bb1c5,_0x473ff6,_0x2ae8cc){let _0x1c970a=0x1-_0x2ae8cc;return{'x':_0x1c970a*_0x1c970a*_0x1c970a*_0x3dfd99['x']+0x3*_0x1c970a*_0x1c970a*_0x2ae8cc*_0x54420f['x']+0x3*_0x1c970a*_0x2ae8cc*_0x2ae8cc*_0x1bb1c5['x']+_0x2ae8cc*_0x2ae8cc*_0x2ae8cc*_0x473ff6['x'],'y':_0x1c970a*_0x1c970a*_0x1c970a*_0x3dfd99['y']+0x3*_0x1c970a*_0x1c970a*_0x2ae8cc*_0x54420f['y']+0x3*_0x1c970a*_0x2ae8cc*_0x2ae8cc*_0x1bb1c5['y']+_0x2ae8cc*_0x2ae8cc*_0x2ae8cc*_0x473ff6['y']};}function M(_0x30a2e7,_0x4c61ce,_0x4f3216,_0x517aac){const _0x3cef6=_0x4144c7;let _0x11cc86=-_0x30a2e7+0x3*_0x4c61ce-0x3*_0x4f3216+_0x517aac,_0x4b34e2=0x3*_0x30a2e7-0x6*_0x4c61ce+0x3*_0x4f3216,_0x5a405a=-0x3*_0x30a2e7+0x3*_0x4c61ce,_0x355565=[];if(Math[_0x3cef6(0x22c)](_0x11cc86)<D){if(Math[_0x3cef6(0x22c)](_0x4b34e2)<D)return _0x355565;let _0x128efc=-_0x5a405a/(0x2*_0x4b34e2);return _0x128efc>0x0&&_0x128efc<0x1&&_0x355565['push'](_0x128efc),_0x355565;}let _0x49e73d=_0x4b34e2*_0x4b34e2-0x3*_0x11cc86*_0x5a405a;if(_0x49e73d<0x0)return _0x355565;let _0x253fa8=Math[_0x3cef6(0x21e)](Math['max'](0x0,_0x49e73d)),_0x5b5377=(-_0x4b34e2+_0x253fa8)/(0x3*_0x11cc86),_0x3efc8e=(-_0x4b34e2-_0x253fa8)/(0x3*_0x11cc86);return _0x5b5377>0x0&&_0x5b5377<0x1&&_0x355565[_0x3cef6(0x22d)](_0x5b5377),_0x3efc8e>0x0&&_0x3efc8e<0x1&&Math[_0x3cef6(0x22c)](_0x3efc8e-_0x5b5377)>D&&_0x355565[_0x3cef6(0x22d)](_0x3efc8e),_0x355565;}function N(_0x2deae0,_0x5d886d,_0x3ac398,_0x5a7aa8,_0x1c6e3b){const _0x216481=_0x4144c7;_0x2deae0[_0x216481(0x22d)](_0x5d886d,_0x1c6e3b),new Set([...M(_0x5d886d['x'],_0x3ac398['x'],_0x5a7aa8['x'],_0x1c6e3b['x']),...M(_0x5d886d['y'],_0x3ac398['y'],_0x5a7aa8['y'],_0x1c6e3b['y'])])[_0x216481(0x1fa)](_0x572b9a=>{const _0x3d7de6=_0x216481;_0x2deae0[_0x3d7de6(0x22d)](j(_0x5d886d,_0x3ac398,_0x5a7aa8,_0x1c6e3b,_0x572b9a));});}function P(_0x5a0fdc){const _0x76db67=_0x4144c7;let _0x24d06a=_0x5a0fdc['anchors'];if(_0x24d06a[_0x76db67(0x1d8)]<=0x1)return _0x24d06a;let _0x3d8ce7=[];for(let _0xcbe6c3=0x1;_0xcbe6c3<_0x24d06a[_0x76db67(0x1d8)];_0xcbe6c3++){let _0x1353a0=_0x24d06a[_0xcbe6c3-0x1],_0x1bca39=_0x24d06a[_0xcbe6c3];N(_0x3d8ce7,_0x1353a0,_0x1353a0[_0x76db67(0x21f)]??_0x1353a0,_0x1bca39['in']??_0x1bca39,_0x1bca39);}if(_0x5a0fdc[_0x76db67(0x230)]&&_0x24d06a['length']>0x1){let _0xca1653=_0x24d06a[_0x24d06a[_0x76db67(0x1d8)]-0x1],_0x17dda9=_0x24d06a[0x0];N(_0x3d8ce7,_0xca1653,_0xca1653[_0x76db67(0x21f)]??_0xca1653,_0x17dda9['in']??_0x17dda9,_0x17dda9);}return _0x3d8ce7;}function F(_0x638a80){const _0x3ea7cc=_0x4144c7;let _0x35a9bb=_0x638a80[_0x3ea7cc(0x213)];if(_0x35a9bb[_0x3ea7cc(0x1d8)]<=0x1)return _0x35a9bb;let _0x1acbed=[];for(let _0x47d09e=0x0;_0x47d09e<_0x35a9bb[_0x3ea7cc(0x1d8)]-0x1;_0x47d09e++){let _0x43b031=_0x35a9bb[_0x47d09e],_0x5863b9=_0x35a9bb[_0x47d09e+0x1],_0x4511db=_0x35a9bb[_0x47d09e-0x1]??_0x43b031,_0x5507b3=_0x35a9bb[_0x47d09e+0x2]??_0x5863b9;N(_0x1acbed,_0x43b031,{'x':_0x43b031['x']+(_0x5863b9['x']-_0x4511db['x'])/0x6,'y':_0x43b031['y']+(_0x5863b9['y']-_0x4511db['y'])/0x6},{'x':_0x5863b9['x']-(_0x5507b3['x']-_0x43b031['x'])/0x6,'y':_0x5863b9['y']-(_0x5507b3['y']-_0x43b031['y'])/0x6},_0x5863b9);}return _0x1acbed;}function I(_0x531ae3){const _0x51b108=_0x4144c7;return _0x531ae3[_0x51b108(0x201)]==='pen'?P(_0x531ae3):F(_0x531ae3);}function L(_0x2e3fd7){const _0x52dc07=_0x4144c7;let _0x11d3d1=Math[_0x52dc07(0x23a)](_0x2e3fd7*0x2710)/0x2710;return Object['is'](_0x11d3d1,-0x0)?0x0:_0x11d3d1;}function R(_0x58c5c3){const _0xeb0bd0=_0x4144c7;let _0x490c38=I(_0x58c5c3);if(_0x490c38[_0xeb0bd0(0x1d8)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x4611fe=Math['min'](..._0x490c38[_0xeb0bd0(0x21d)](_0x29977a=>_0x29977a['x'])),_0x24c5cb=Math['min'](..._0x490c38['map'](_0x17903b=>_0x17903b['y'])),_0x279264=Math[_0xeb0bd0(0x1db)](..._0x490c38[_0xeb0bd0(0x21d)](_0x972161=>_0x972161['x'])),_0x50732a=Math[_0xeb0bd0(0x1db)](..._0x490c38[_0xeb0bd0(0x21d)](_0x1368da=>_0x1368da['y']));return{'left':L(_0x4611fe),'top':L(_0x24c5cb),'width':L(Math[_0xeb0bd0(0x1db)](0x1,_0x279264-_0x4611fe)),'height':L(Math['max'](0x1,_0x50732a-_0x24c5cb))};}function z(_0x3cbc4e,_0x2769f6){const _0x36e532=_0x4144c7;let _0x304ed9=_0x3cbc4e['anchors'];if(_0x304ed9[_0x36e532(0x1d8)]===0x0)return'';let _0x32e628=['M\x20'+k(A(_0x304ed9[0x0],_0x2769f6))];for(let _0x281d98=0x1;_0x281d98<_0x304ed9[_0x36e532(0x1d8)];_0x281d98++){let _0x297732=_0x304ed9[_0x281d98-0x1],_0x2d0e5b=_0x304ed9[_0x281d98],_0x3d565a=_0x297732[_0x36e532(0x21f)]??_0x297732,_0x835a8e=_0x2d0e5b['in']??_0x2d0e5b;_0x32e628[_0x36e532(0x22d)]('C\x20'+k(A(_0x3d565a,_0x2769f6))+'\x20'+k(A(_0x835a8e,_0x2769f6))+'\x20'+k(A(_0x2d0e5b,_0x2769f6)));}if(_0x3cbc4e[_0x36e532(0x230)]&&_0x304ed9[_0x36e532(0x1d8)]>0x1){let _0x5977d8=_0x304ed9[_0x304ed9['length']-0x1],_0x28a77b=_0x304ed9[0x0],_0x11d50a=_0x5977d8[_0x36e532(0x21f)]??_0x5977d8,_0x16eae3=_0x28a77b['in']??_0x28a77b;_0x32e628[_0x36e532(0x22d)]('C\x20'+k(A(_0x11d50a,_0x2769f6))+'\x20'+k(A(_0x16eae3,_0x2769f6))+'\x20'+k(A(_0x28a77b,_0x2769f6))),_0x32e628[_0x36e532(0x22d)]('Z');}return _0x32e628[_0x36e532(0x1e8)]('\x20');}function B(_0x1f145f,_0x4de269){const _0x549afa=_0x4144c7;let _0x430b39=_0x1f145f[_0x549afa(0x213)][_0x549afa(0x21d)](_0x3ed308=>A(_0x3ed308,_0x4de269));if(_0x430b39[_0x549afa(0x1d8)]===0x0)return'';if(_0x430b39[_0x549afa(0x1d8)]===0x1)return'M\x20'+k(_0x430b39[0x0]);let _0x310031=['M\x20'+k(_0x430b39[0x0])];for(let _0x33eb89=0x0;_0x33eb89<_0x430b39[_0x549afa(0x1d8)]-0x1;_0x33eb89++){let _0x5af5fd=_0x430b39[_0x33eb89],_0x225459=_0x430b39[_0x33eb89+0x1],_0x422b1e=_0x430b39[_0x33eb89-0x1]??_0x5af5fd,_0x293c98=_0x430b39[_0x33eb89+0x2]??_0x225459,_0x85d057={'x':_0x5af5fd['x']+(_0x225459['x']-_0x422b1e['x'])/0x6,'y':_0x5af5fd['y']+(_0x225459['y']-_0x422b1e['y'])/0x6},_0x3c8352={'x':_0x225459['x']-(_0x293c98['x']-_0x5af5fd['x'])/0x6,'y':_0x225459['y']-(_0x293c98['y']-_0x5af5fd['y'])/0x6};_0x310031[_0x549afa(0x22d)]('C\x20'+k(_0x85d057)+'\x20'+k(_0x3c8352)+'\x20'+k(_0x225459));}return _0x310031[_0x549afa(0x1e8)]('\x20');}function V(_0xac0380,_0x524cc1){const _0x4874e4=_0x4144c7;return _0xac0380[_0x4874e4(0x201)]===_0x4874e4(0x20f)?z(_0xac0380,_0x524cc1):B(_0xac0380,_0x524cc1);}function H(_0x3c640f,_0x207ec5){const _0x2d3a97=_0x4144c7;return _0x207ec5!=null&&_0x207ec5[_0x2d3a97(0x209)]?_0x207ec5[_0x2d3a97(0x209)]:_0x3c640f[_0x2d3a97(0x201)]===_0x2d3a97(0x20f)?_0x2d3a97(0x210):_0x3c640f['color'];}function U(_0x450218,_0x555115){const _0x5bcd25=_0x4144c7;return(_0x555115==null?void 0x0:_0x555115[_0x5bcd25(0x1e7)])===void 0x0?_0x450218[_0x5bcd25(0x201)]==='pen'?0x2:_0x450218[_0x5bcd25(0x1e7)]:_0x555115[_0x5bcd25(0x1e7)];}function _0x3e3b(_0x33d498,_0x2fbc76){_0x33d498=_0x33d498-0x1ce;const _0x1d187a=_0x1d18();let _0x3e3b18=_0x1d187a[_0x33d498];return _0x3e3b18;}function W(_0x207e06,_0x30bd12){const _0x379ddb=_0x4144c7;return(_0x30bd12==null?void 0x0:_0x30bd12['opacity'])===void 0x0?_0x207e06[_0x379ddb(0x201)]===_0x379ddb(0x20f)?void 0x0:_0x207e06[_0x379ddb(0x1df)]:_0x30bd12[_0x379ddb(0x1df)];}function oe(_0x23a2d3,_0x2fcddf){const _0x2c9bc2=_0x4144c7;let _0x65ffc1=R(_0x23a2d3),_0x12b80f=V(_0x23a2d3,{'x':_0x65ffc1[_0x2c9bc2(0x220)],'y':_0x65ffc1[_0x2c9bc2(0x207)]}),_0x28aa7b=_0x23a2d3[_0x2c9bc2(0x201)]===_0x2c9bc2(0x20f)&&_0x23a2d3[_0x2c9bc2(0x230)],_0x113698=_0x2fcddf==null?void 0x0:_0x2fcddf[_0x2c9bc2(0x1d6)];return{'shapeType':e[_0x2c9bc2(0x1fc)][_0x2c9bc2(0x214)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x65ffc1[_0x2c9bc2(0x1e7)],'h':_0x65ffc1[_0x2c9bc2(0x235)],'fill':_0x28aa7b?_0x2c9bc2(0x1f0):'none','stroke':!0x0,'data':_0x12b80f,'dataArray':K(_0x23a2d3,{'x':_0x65ffc1[_0x2c9bc2(0x220)],'y':_0x65ffc1[_0x2c9bc2(0x207)]})}]},'fill':_0x28aa7b&&_0x113698?{'color':_0x113698,'fillType':e['ShapeFillEnum'][_0x2c9bc2(0x239)]}:{'fillType':e[_0x2c9bc2(0x223)][_0x2c9bc2(0x224)]},'stroke':{'color':H(_0x23a2d3,_0x2fcddf),'width':U(_0x23a2d3,_0x2fcddf),'opacity':W(_0x23a2d3,_0x2fcddf),'lineStrokeType':e['ShapeLineTypeEnum'][_0x2c9bc2(0x20d)],'capType':e[_0x2c9bc2(0x20b)][_0x2c9bc2(0x205)],'lineJoinType':e[_0x2c9bc2(0x227)][_0x2c9bc2(0x205)]}};}function G(_0x5030a0,_0x591396){return{'x':_0x5030a0['x']-_0x591396['x'],'y':_0x5030a0['y']-_0x591396['y']};}function K(_0x4ae28d,_0x3b596c){const _0x41fae8=_0x4144c7;if(_0x4ae28d[_0x41fae8(0x201)]===_0x41fae8(0x20f)){let _0x1283cd=_0x4ae28d[_0x41fae8(0x233)];if(_0x1283cd['length']===0x0)return[];let _0x3b1004=G(_0x1283cd[0x0],_0x3b596c),_0x20ec63=[{'command':'M','points':[_0x3b1004['x'],_0x3b1004['y']]}];for(let _0x1e9ea6=0x1;_0x1e9ea6<_0x1283cd['length'];_0x1e9ea6++){let _0x538e50=_0x1283cd[_0x1e9ea6-0x1],_0x379964=_0x1283cd[_0x1e9ea6],_0x3834f7=G(_0x538e50['out']??_0x538e50,_0x3b596c),_0x209fd4=G(_0x379964['in']??_0x379964,_0x3b596c),_0x21ffea=G(_0x379964,_0x3b596c);_0x20ec63[_0x41fae8(0x22d)]({'command':'C','points':[_0x3834f7['x'],_0x3834f7['y'],_0x209fd4['x'],_0x209fd4['y'],_0x21ffea['x'],_0x21ffea['y']]});}if(_0x4ae28d['closed']&&_0x1283cd[_0x41fae8(0x1d8)]>0x1){let _0x65d136=_0x1283cd[_0x1283cd[_0x41fae8(0x1d8)]-0x1],_0x5cdb6f=_0x1283cd[0x0],_0x48da85=G(_0x65d136[_0x41fae8(0x21f)]??_0x65d136,_0x3b596c),_0x3ca0db=G(_0x5cdb6f['in']??_0x5cdb6f,_0x3b596c),_0x601274=G(_0x5cdb6f,_0x3b596c);_0x20ec63['push']({'command':'C','points':[_0x48da85['x'],_0x48da85['y'],_0x3ca0db['x'],_0x3ca0db['y'],_0x601274['x'],_0x601274['y']]}),_0x20ec63[_0x41fae8(0x22d)]({'command':'z','points':[]});}return _0x20ec63;}let _0x17f719=_0x4ae28d['points'][_0x41fae8(0x21d)](_0x101ae0=>G(_0x101ae0,_0x3b596c));if(_0x17f719[_0x41fae8(0x1d8)]===0x0)return[];let _0x43a941=[{'command':'M','points':[_0x17f719[0x0]['x'],_0x17f719[0x0]['y']]}];for(let _0x43b074=0x0;_0x43b074<_0x17f719['length']-0x1;_0x43b074++){let _0xa6774e=_0x17f719[_0x43b074],_0x48008f=_0x17f719[_0x43b074+0x1],_0xe70500=_0x17f719[_0x43b074-0x1]??_0xa6774e,_0x3bc8ee=_0x17f719[_0x43b074+0x2]??_0x48008f,_0x59d251={'x':_0xa6774e['x']+(_0x48008f['x']-_0xe70500['x'])/0x6,'y':_0xa6774e['y']+(_0x48008f['y']-_0xe70500['y'])/0x6},_0x2b19c4={'x':_0x48008f['x']-(_0x3bc8ee['x']-_0xa6774e['x'])/0x6,'y':_0x48008f['y']-(_0x3bc8ee['y']-_0xa6774e['y'])/0x6};_0x43a941['push']({'command':'C','points':[_0x59d251['x'],_0x59d251['y'],_0x2b19c4['x'],_0x2b19c4['y'],_0x48008f['x'],_0x48008f['y']]});}return _0x43a941;}function q(_0x1e25c7){const _0x4f0f39=_0x4144c7;let {model:_0x9419ff,sourceModel:_0x4c0ab8=_0x9419ff,style:_0x461593}=_0x1e25c7,_0x4f599d=_0x1e25c7[_0x4f0f39(0x1fb)]??_0x9419ff[_0x4f0f39(0x201)],_0x4aa8ed=R(_0x9419ff),_0x3d40c3=_0x9419ff['kind']==='pen'&&_0x4f599d!==_0x4f0f39(0x20f)?_0x9419ff:void 0x0;return{'transform':{..._0x4aa8ed,'rotation':0x0},'shapeData':oe(_0x9419ff,_0x461593),'ink':{'version':0x1,'tool':_0x4f599d,'sourceModel':_0x4c0ab8,..._0x3d40c3?{'editModel':_0x3d40c3}:{},'normalizedBounds':_0x4aa8ed}};}var se=_0x4144c7(0x1d4),ce=_0x4144c7(0x219);function J(_0x16ae8e){'@babel/helpers - typeof';const _0x57d274=_0x4144c7;return J=typeof Symbol==_0x57d274(0x215)&&typeof Symbol[_0x57d274(0x1e5)]=='symbol'?function(_0x316930){return typeof _0x316930;}:function(_0x14702c){const _0x2a11d0=_0x57d274;return _0x14702c&&typeof Symbol==_0x2a11d0(0x215)&&_0x14702c['constructor']===Symbol&&_0x14702c!==Symbol[_0x2a11d0(0x1e2)]?_0x2a11d0(0x1e1):typeof _0x14702c;},J(_0x16ae8e);}function le(_0x305a6f,_0x4f5d11){const _0x1db6df=_0x4144c7;if(J(_0x305a6f)!=_0x1db6df(0x1ea)||!_0x305a6f)return _0x305a6f;var _0x16210b=_0x305a6f[Symbol[_0x1db6df(0x20c)]];if(_0x16210b!==void 0x0){var _0x12d40b=_0x16210b[_0x1db6df(0x202)](_0x305a6f,_0x4f5d11||'default');if(J(_0x12d40b)!=_0x1db6df(0x1ea))return _0x12d40b;throw TypeError(_0x1db6df(0x231));}return(_0x4f5d11===_0x1db6df(0x222)?String:Number)(_0x305a6f);}function ue(_0x100666){const _0x2999e1=_0x4144c7;var _0x162680=le(_0x100666,_0x2999e1(0x222));return J(_0x162680)=='symbol'?_0x162680:_0x162680+'';}function Y(_0x325989,_0x211052,_0x3d9f4b){const _0x2d6787=_0x4144c7;return(_0x211052=ue(_0x211052))in _0x325989?Object[_0x2d6787(0x1fe)](_0x325989,_0x211052,{'value':_0x3d9f4b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x325989[_0x211052]=_0x3d9f4b,_0x325989;}const X=(0x0,n[_0x4144c7(0x234)])(_0x4144c7(0x21b));var de=class{constructor(){Y(this,'_adapters',[]);}['registerAdapter'](_0x32c416){const _0x34063e=_0x4144c7;return this[_0x34063e(0x1dd)][_0x34063e(0x22d)](_0x32c416),(0x0,n[_0x34063e(0x1f4)])(()=>{const _0x1dc32f=_0x34063e;let _0x22f784=this[_0x1dc32f(0x1dd)]['indexOf'](_0x32c416);_0x22f784>=0x0&&this['_adapters'][_0x1dc32f(0x1f7)](_0x22f784,0x1);});}['beginInkMode'](_0x595acd){const _0xe5f252=_0x4144c7;for(let _0x2c330c of this['_adapters'])if(_0x2c330c[_0xe5f252(0x1f9)](_0x595acd))return!0x0;return!0x1;}async[_0x4144c7(0x1d0)](_0x3feeef){const _0xaee70b=_0x4144c7;for(let _0x77d968 of this[_0xaee70b(0x1dd)])if(_0x77d968[_0xaee70b(0x1d0)]&&await _0x77d968['createCustomShape'](_0x3feeef))return!0x0;return!0x1;}};const fe={'id':_0x4144c7(0x1ec),'type':n['CommandType']['OPERATION'],'handler':(_0x257874,_0x45192f)=>_0x45192f?_0x257874[_0x4144c7(0x1f1)](X)[_0x4144c7(0x1f9)](_0x45192f):!0x1},Z={};function Q(_0x1e8586,_0x1739bd){return function(_0x22fa85,_0x46c33f){_0x1739bd(_0x22fa85,_0x46c33f,_0x1e8586);};}function _0x1d18(){const _0x932ece=['tool','ShapeTypeEnum','right','defineProperty','symmetric','buildInkCustomShapePayload','kind','call','registerCommand','Plugin','Round','1343650xjGJre','top','400554LCotBx','color','moveInkPenAnchorPoint','ShapeLineCapEnum','toPrimitive','SolidLine','start','pen','#f54a45','ink.config','endIndex','points','Rect','function','end','setInkPenAnchorPointType','_injector','1.3.0','1068504kmaUqG','ink.host-adapter.service','UNIVER_INK_PLUGIN','map','sqrt','out','left','deleteInkPenAnchor','string','ShapeFillEnum','NoFill','275526XyGCKs','UniverInstanceType','ShapeLineJoinEnum','disposeWithMe','free','hypot','slice','abs','push','IInkHostAdapterService','anchorId','closed','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','Injector','anchors','createIdentifier','height','tolerance','filter','segmentIndex','SolidFill','round','getOwnPropertyDescriptor','UNIVER_UNKNOWN','findClosestInkPenHandle','89619ZYhEji','insertInkPenAnchorAt','decorate','_config','28WxaQZi','pointType','Inject','smooth','createCustomShape','pluginName','setConfig','isInkPenHandleVisible','@univerjs-pro/ink','corner','fillColor','_configService','length','find','20QMdLSG','max','_commandService','_adapters','distance','opacity','toStringTag','symbol','prototype','ICommandService','anchor','iterator','onStarting','width','join','add','object','IConfigService','ink.operation.start','min','1483629XqkbtH','DependentOn','norm','get','9572qxsSQf','UniverLicensePlugin','toDisposable','packageName','49CEKrmY','splice','startIndex','beginInkMode','forEach'];_0x1d18=function(){return _0x932ece;};return _0x1d18();}function pe(_0x16b32b,_0x95abf0,_0x4d6599,_0x265939){const _0x39a634=_0x4144c7;var _0x533b4b=arguments[_0x39a634(0x1d8)],_0xaf12f9=_0x533b4b<0x3?_0x95abf0:_0x265939===null?_0x265939=Object[_0x39a634(0x23b)](_0x95abf0,_0x4d6599):_0x265939,_0x454191;if(typeof Reflect==_0x39a634(0x1ea)&&typeof Reflect[_0x39a634(0x240)]==_0x39a634(0x215))_0xaf12f9=Reflect[_0x39a634(0x240)](_0x16b32b,_0x95abf0,_0x4d6599,_0x265939);else{for(var _0xee64ae=_0x16b32b[_0x39a634(0x1d8)]-0x1;_0xee64ae>=0x0;_0xee64ae--)(_0x454191=_0x16b32b[_0xee64ae])&&(_0xaf12f9=(_0x533b4b<0x3?_0x454191(_0xaf12f9):_0x533b4b>0x3?_0x454191(_0x95abf0,_0x4d6599,_0xaf12f9):_0x454191(_0x95abf0,_0x4d6599))||_0xaf12f9);}return _0x533b4b>0x3&&_0xaf12f9&&Object['defineProperty'](_0x95abf0,_0x4d6599,_0xaf12f9),_0xaf12f9;}let $=class extends n[_0x4144c7(0x204)]{constructor(_0x3aab9e=Z,_0x5b584d,_0x2999f7,_0x37bafd){const _0x46931c=_0x4144c7;super(),this[_0x46931c(0x241)]=_0x3aab9e,this[_0x46931c(0x218)]=_0x5b584d,this[_0x46931c(0x1dc)]=_0x2999f7,this[_0x46931c(0x1d7)]=_0x37bafd;let {..._0x404617}=(0x0,n['merge'])({},Z,this[_0x46931c(0x241)]);this[_0x46931c(0x1d7)][_0x46931c(0x1d2)](_0x46931c(0x211),_0x404617);}[_0x4144c7(0x1e6)](){const _0x2a0a8f=_0x4144c7;[[X,{'useClass':de}]][_0x2a0a8f(0x1fa)](_0x3c2425=>this[_0x2a0a8f(0x218)][_0x2a0a8f(0x1e9)](_0x3c2425)),this[_0x2a0a8f(0x228)](this[_0x2a0a8f(0x1dc)][_0x2a0a8f(0x203)](fe));}};Y($,_0x4144c7(0x1d1),_0x4144c7(0x21c)),Y($,_0x4144c7(0x1f5),se),Y($,'version',ce),Y($,'type',n[_0x4144c7(0x226)][_0x4144c7(0x23c)]),$=pe([(0x0,n[_0x4144c7(0x1ef)])(t[_0x4144c7(0x1f3)]),Q(0x1,(0x0,n[_0x4144c7(0x1ce)])(n[_0x4144c7(0x232)])),Q(0x2,n[_0x4144c7(0x1e3)]),Q(0x3,n[_0x4144c7(0x1eb)])],$),exports[_0x4144c7(0x22e)]=X,Object[_0x4144c7(0x1fe)](exports,'UniverInkPlugin',{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x4144c7(0x200)]=q,exports['convertBrushModelToPenModel']=re,exports['cycleInkPenAnchorPointType']=E,exports[_0x4144c7(0x221)]=w,exports[_0x4144c7(0x23d)]=ie,exports['findClosestInkPenSegment']=S,exports['getInkModelBounds']=R,exports['getInkPenPreviewModel']=x,exports[_0x4144c7(0x23f)]=C,exports[_0x4144c7(0x1d3)]=p,exports[_0x4144c7(0x20a)]=ae,exports[_0x4144c7(0x217)]=T;
1
+ const _0x39a0e4=_0x4068;(function(_0x4a4cac,_0x422086){const _0x56f63d=_0x4068,_0x19c90e=_0x4a4cac();while(!![]){try{const _0x127c3b=parseInt(_0x56f63d(0x247))/0x1+-parseInt(_0x56f63d(0x254))/0x2+-parseInt(_0x56f63d(0x20f))/0x3+parseInt(_0x56f63d(0x248))/0x4+parseInt(_0x56f63d(0x216))/0x5*(-parseInt(_0x56f63d(0x250))/0x6)+-parseInt(_0x56f63d(0x205))/0x7+parseInt(_0x56f63d(0x1fe))/0x8;if(_0x127c3b===_0x422086)break;else _0x19c90e['push'](_0x19c90e['shift']());}catch(_0x468f3e){_0x19c90e['push'](_0x19c90e['shift']());}}}(_0x2e77,0xe7a13),Object[_0x39a0e4(0x24b)](exports,Symbol['toStringTag'],{'value':_0x39a0e4(0x20a)}));let e=require('@univerjs-pro/engine-shape'),t=require('@univerjs-pro/license'),n=require('@univerjs/core');const r=0.0001;function i(_0x507d83){return{'x':_0x507d83['x'],'y':_0x507d83['y']};}function a(_0x1b9d20){const _0x20d732=_0x39a0e4;return{..._0x1b9d20,'in':_0x1b9d20['in']?i(_0x1b9d20['in']):void 0x0,'out':_0x1b9d20[_0x20d732(0x1fd)]?i(_0x1b9d20[_0x20d732(0x1fd)]):void 0x0};}function o(_0x47eb48){const _0x9b5ab7=_0x39a0e4;return{'kind':_0x9b5ab7(0x253),'closed':_0x47eb48[_0x9b5ab7(0x244)],'anchors':_0x47eb48[_0x9b5ab7(0x1ee)][_0x9b5ab7(0x238)](a)};}function s(_0x18b38a,_0x1c2840,_0x3bb93e){return{'x':_0x18b38a['x']+(_0x1c2840['x']-_0x18b38a['x'])*_0x3bb93e,'y':_0x18b38a['y']+(_0x1c2840['y']-_0x18b38a['y'])*_0x3bb93e};}function c(_0x58b44c,_0x198406){const _0x1c9d11=_0x39a0e4;return Math[_0x1c9d11(0x217)](_0x58b44c['x']-_0x198406['x'],_0x58b44c['y']-_0x198406['y']);}function l(_0x1aefc2){const _0x1c18be=_0x39a0e4;let _0x38418d=Math[_0x1c18be(0x217)](_0x1aefc2['x'],_0x1aefc2['y']);return _0x38418d<r?{'x':0x1,'y':0x0}:{'x':_0x1aefc2['x']/_0x38418d,'y':_0x1aefc2['y']/_0x38418d};}function u(_0xbd0045,_0x27c756,_0x418159=c(_0xbd0045,_0x27c756)){let _0x1755a4=l({'x':_0xbd0045['x']-_0x27c756['x'],'y':_0xbd0045['y']-_0x27c756['y']});return{'x':_0xbd0045['x']+_0x1755a4['x']*_0x418159,'y':_0xbd0045['y']+_0x1755a4['y']*_0x418159};}function d(_0x6348b2,_0x51a427){const _0x2b0c6a=_0x39a0e4;let {anchors:_0x1fc3e4}=_0x6348b2;return _0x1fc3e4[_0x2b0c6a(0x1f2)]<0x2||_0x51a427<0x0?null:_0x51a427<_0x1fc3e4[_0x2b0c6a(0x1f2)]-0x1?{'startIndex':_0x51a427,'endIndex':_0x51a427+0x1,'start':_0x1fc3e4[_0x51a427],'end':_0x1fc3e4[_0x51a427+0x1]}:_0x6348b2[_0x2b0c6a(0x244)]&&_0x51a427===_0x1fc3e4[_0x2b0c6a(0x1f2)]-0x1?{'startIndex':_0x1fc3e4[_0x2b0c6a(0x1f2)]-0x1,'endIndex':0x0,'start':_0x1fc3e4[_0x1fc3e4[_0x2b0c6a(0x1f2)]-0x1],'end':_0x1fc3e4[0x0]}:null;}function f(_0x28bff3,_0xd54cbf){const _0x486ea8=_0x39a0e4;let _0x323726=d(_0x28bff3,_0xd54cbf);return _0x323726?[_0x323726['start'],_0x323726[_0x486ea8(0x1ea)]['out']??_0x323726[_0x486ea8(0x1ea)],_0x323726['end']['in']??_0x323726[_0x486ea8(0x225)],_0x323726['end']]:null;}function ee(_0x418bda,_0x5c4652){return _0x5c4652==='anchor'?_0x418bda:_0x418bda[_0x5c4652]??null;}function p(_0x46a957,_0x4520ff,_0x1268c5){const _0x1b7ebe=_0x39a0e4;return _0x1268c5===_0x1b7ebe(0x243)||_0x46a957['closed']?!0x0:_0x1268c5==='in'?_0x4520ff>0x0:_0x4520ff<_0x46a957[_0x1b7ebe(0x1ee)]['length']-0x1;}function m(_0x50f4a2,_0x406fbd){let [_0x538666,_0xb90122,_0x333674,_0x16bc30]=_0x50f4a2,_0x1291c1=s(_0x538666,_0xb90122,_0x406fbd),_0x5ef3e8=s(_0xb90122,_0x333674,_0x406fbd),_0x32aed5=s(_0x333674,_0x16bc30,_0x406fbd);return s(s(_0x1291c1,_0x5ef3e8,_0x406fbd),s(_0x5ef3e8,_0x32aed5,_0x406fbd),_0x406fbd);}function h(_0x3f9847,_0x3dd5ff){let [_0x4e99df,_0x35ca51,_0x5d9b09,_0x54cabb]=_0x3f9847,_0x2e67f8=s(_0x4e99df,_0x35ca51,_0x3dd5ff),_0x3c3d7b=s(_0x35ca51,_0x5d9b09,_0x3dd5ff),_0x3cd9eb=s(_0x5d9b09,_0x54cabb,_0x3dd5ff),_0xcb841b=s(_0x2e67f8,_0x3c3d7b,_0x3dd5ff),_0x2cddfc=s(_0x3c3d7b,_0x3cd9eb,_0x3dd5ff),_0x49edce=s(_0xcb841b,_0x2cddfc,_0x3dd5ff);return{'left':[_0x4e99df,_0x2e67f8,_0xcb841b,_0x49edce],'right':[_0x49edce,_0x2cddfc,_0x3cd9eb,_0x54cabb]};}function g(_0x193a5c,_0x17f90e,_0x113dec){const _0x2aba5b=_0x39a0e4;let _0x24b94b=_0x113dec['x']-_0x17f90e['x'],_0x214ae8=_0x113dec['y']-_0x17f90e['y'],_0x115472=_0x24b94b*_0x24b94b+_0x214ae8*_0x214ae8,_0x48b74d=_0x115472<=r?0x0:Math[_0x2aba5b(0x237)](0x0,Math[_0x2aba5b(0x21e)](0x1,((_0x193a5c['x']-_0x17f90e['x'])*_0x24b94b+(_0x193a5c['y']-_0x17f90e['y'])*_0x214ae8)/_0x115472)),_0xf26009={'x':_0x17f90e['x']+_0x24b94b*_0x48b74d,'y':_0x17f90e['y']+_0x214ae8*_0x48b74d};return{'point':_0xf26009,'ratio':_0x48b74d,'distance':c(_0x193a5c,_0xf26009)};}function te(_0x382edd,_0x138a60,_0x60f374){const _0x22e0c4=_0x39a0e4;return g(_0x382edd,_0x138a60,_0x60f374)[_0x22e0c4(0x20b)]**0x2;}function _(_0x3a3946,_0x19e11d){const _0x49fbb4=_0x39a0e4;if(_0x3a3946['length']<=0x2)return _0x3a3946['map'](i);let _0x32c8a6=0x0,_0x473f93=0x0,_0x109b4c=_0x3a3946[0x0],_0x1edd7c=_0x3a3946[_0x3a3946['length']-0x1],_0x5a3301=_0x19e11d*_0x19e11d;for(let _0x3ec2a3=0x1;_0x3ec2a3<_0x3a3946[_0x49fbb4(0x1f2)]-0x1;_0x3ec2a3++){let _0x474f85=te(_0x3a3946[_0x3ec2a3],_0x109b4c,_0x1edd7c);_0x474f85>_0x32c8a6&&(_0x32c8a6=_0x474f85,_0x473f93=_0x3ec2a3);}if(_0x32c8a6<=_0x5a3301)return[i(_0x109b4c),i(_0x1edd7c)];let _0x3ea878=_(_0x3a3946['slice'](0x0,_0x473f93+0x1),_0x19e11d),_0x39591f=_(_0x3a3946[_0x49fbb4(0x21d)](_0x473f93),_0x19e11d);return[..._0x3ea878[_0x49fbb4(0x21d)](0x0,-0x1),..._0x39591f];}function ne(_0x2d97d0,_0x5b845a){let _0x1436d0=_0x2d97d0[_0x5b845a],_0x221a37=_0x2d97d0[_0x5b845a+0x1],_0x246ef5=_0x2d97d0[_0x5b845a-0x1]??_0x1436d0;return{'x':_0x1436d0['x']+(_0x221a37['x']-_0x246ef5['x'])/0x6,'y':_0x1436d0['y']+(_0x221a37['y']-_0x246ef5['y'])/0x6};}function v(_0x1d8261,_0x340b8e){let _0x4cce72=_0x1d8261[_0x340b8e],_0x5197f4=_0x1d8261[_0x340b8e-0x1],_0x2a3c63=_0x1d8261[_0x340b8e+0x1]??_0x4cce72;return{'x':_0x4cce72['x']-(_0x2a3c63['x']-_0x5197f4['x'])/0x6,'y':_0x4cce72['y']-(_0x2a3c63['y']-_0x5197f4['y'])/0x6};}function y(_0x557c5b,_0x3649c7){const _0x368168=_0x39a0e4;let _0x13e1dc=_0x557c5b[_0x368168(0x1ee)][_0x3649c7],_0x466762=_0x557c5b[_0x368168(0x1ee)][_0x3649c7-0x1]??(_0x557c5b[_0x368168(0x244)]?_0x557c5b[_0x368168(0x1ee)][_0x557c5b[_0x368168(0x1ee)]['length']-0x1]:null),_0x1e6890=_0x557c5b[_0x368168(0x1ee)][_0x3649c7+0x1]??(_0x557c5b[_0x368168(0x244)]?_0x557c5b[_0x368168(0x1ee)][0x0]:null),_0x347158=_0x466762&&_0x1e6890?l({'x':_0x1e6890['x']-_0x466762['x'],'y':_0x1e6890['y']-_0x466762['y']}):_0x1e6890?l({'x':_0x1e6890['x']-_0x13e1dc['x'],'y':_0x1e6890['y']-_0x13e1dc['y']}):_0x466762?l({'x':_0x13e1dc['x']-_0x466762['x'],'y':_0x13e1dc['y']-_0x466762['y']}):{'x':0x1,'y':0x0},_0xff7af0=_0x466762&&_0x1e6890?Math[_0x368168(0x237)](0x32,c(_0x466762,_0x1e6890)/0x4):0x32;return{'in':{'x':_0x13e1dc['x']-_0x347158['x']*_0xff7af0,'y':_0x13e1dc['y']-_0x347158['y']*_0xff7af0},'out':{'x':_0x13e1dc['x']+_0x347158['x']*_0xff7af0,'y':_0x13e1dc['y']+_0x347158['y']*_0xff7af0}};}function b(_0x42f52b,_0x3a40f2){const _0x31260e=_0x39a0e4;let _0x5db048=_0x42f52b[_0x3a40f2],_0x23f905=_0x3a40f2==='in'?'out':'in',_0x3c8e91=_0x42f52b[_0x23f905];_0x5db048&&(_0x42f52b[_0x31260e(0x242)]===_0x31260e(0x209)?_0x42f52b[_0x23f905]=u(_0x42f52b,_0x5db048):_0x42f52b[_0x31260e(0x242)]==='smooth'&&(_0x42f52b[_0x23f905]=u(_0x42f52b,_0x5db048,_0x3c8e91?c(_0x42f52b,_0x3c8e91):c(_0x42f52b,_0x5db048))));}function x(_0x2d294b,_0x5e1775){const _0x906c5f=_0x39a0e4;let _0x10e3f7=o(_0x2d294b);return!_0x5e1775||_0x10e3f7[_0x906c5f(0x244)]||_0x10e3f7[_0x906c5f(0x1ee)][_0x906c5f(0x1f2)]===0x0||_0x10e3f7['anchors'][_0x906c5f(0x255)]({'id':'__ink-preview-anchor__','x':_0x5e1775['x'],'y':_0x5e1775['y'],'pointType':_0x906c5f(0x246)}),_0x10e3f7;}function re(_0x5252cf,_0x2ef22b={}){const _0x18c5fd=_0x39a0e4;let _0x502021=Math[_0x18c5fd(0x237)](0x0,_0x2ef22b[_0x18c5fd(0x240)]??Math[_0x18c5fd(0x237)](0x4,_0x5252cf[_0x18c5fd(0x22e)]*0.35)),_0x525594=_0x2ef22b[_0x18c5fd(0x202)]??(_0x28ef7b=>_0x18c5fd(0x245)+_0x28ef7b),_0x280c07=_(_0x5252cf['points'],_0x502021),_0x541dde=_0x280c07[_0x18c5fd(0x238)]((_0x201b94,_0x2a773c)=>({'id':_0x525594(_0x2a773c),'x':_0x201b94['x'],'y':_0x201b94['y'],'pointType':_0x18c5fd(0x1ef)}));for(let _0x54e858=0x0;_0x54e858<_0x541dde[_0x18c5fd(0x1f2)]-0x1;_0x54e858++)_0x541dde[_0x54e858][_0x18c5fd(0x1fd)]=ne(_0x280c07,_0x54e858),_0x541dde[_0x54e858+0x1]['in']=v(_0x280c07,_0x54e858+0x1);return{'kind':_0x18c5fd(0x253),'closed':!0x1,'anchors':_0x541dde};}function ie(_0xbf00fe,_0x28bac2,_0x139bf7){const _0x256f47=_0x39a0e4;let _0x41b62f=null,_0x25cbda=[_0x256f47(0x243),'in',_0x256f47(0x1fd)];return _0xbf00fe[_0x256f47(0x1ee)][_0x256f47(0x1f3)]((_0x55ccae,_0x1b4926)=>{const _0x34089a=_0x256f47;_0x25cbda[_0x34089a(0x1f3)](_0x1e1b04=>{const _0x4f796e=_0x34089a;if(!p(_0xbf00fe,_0x1b4926,_0x1e1b04))return;let _0x466159=ee(_0x55ccae,_0x1e1b04);if(!_0x466159)return;let _0x1356c6=c(_0x28bac2,_0x466159);_0x1356c6>_0x139bf7||_0x41b62f&&_0x1356c6>=_0x41b62f[_0x4f796e(0x20b)]||(_0x41b62f={'handle':{'kind':_0x1e1b04,'anchorId':_0x55ccae['id']},'point':i(_0x466159),'distance':_0x1356c6});});}),_0x41b62f;}function S(_0x394575,_0x3a83c0,_0x68f3f6){const _0x1d6ac9=_0x39a0e4;let _0x4cf9ec=null,_0x5cfe47=_0x394575[_0x1d6ac9(0x244)]?_0x394575[_0x1d6ac9(0x1ee)][_0x1d6ac9(0x1f2)]:Math[_0x1d6ac9(0x237)](0x0,_0x394575['anchors'][_0x1d6ac9(0x1f2)]-0x1);for(let _0x341665=0x0;_0x341665<_0x5cfe47;_0x341665++){let _0x1a6c4e=f(_0x394575,_0x341665);if(!_0x1a6c4e)continue;let _0x28fb9b=m(_0x1a6c4e,0x0);for(let _0x1310c4=0x1;_0x1310c4<=0x20;_0x1310c4++){let _0x176c57=m(_0x1a6c4e,_0x1310c4/0x20),_0x2e720c=g(_0x3a83c0,_0x28fb9b,_0x176c57),_0x536455=(_0x1310c4-0x1+_0x2e720c['ratio'])/0x20;(!_0x4cf9ec||_0x2e720c[_0x1d6ac9(0x20b)]<_0x4cf9ec[_0x1d6ac9(0x20b)])&&(_0x4cf9ec={'segmentIndex':_0x341665,'t':_0x536455,'point':_0x2e720c[_0x1d6ac9(0x1e8)],'distance':_0x2e720c[_0x1d6ac9(0x20b)]}),_0x28fb9b=_0x176c57;}}return _0x4cf9ec&&_0x4cf9ec[_0x1d6ac9(0x20b)]<=_0x68f3f6?_0x4cf9ec:null;}function C(_0x18cab4,_0x89a59f,_0x42123e){const _0x4350b4=_0x39a0e4;let _0x274bec=o(_0x18cab4),_0x5b0226=d(_0x274bec,_0x89a59f[_0x4350b4(0x23e)]),_0x359a1d=f(_0x274bec,_0x89a59f[_0x4350b4(0x23e)]);if(!_0x5b0226||!_0x359a1d)return _0x274bec;let _0x21b450=h(_0x359a1d,Math[_0x4350b4(0x237)](0x0,Math[_0x4350b4(0x21e)](0x1,_0x89a59f['t']))),_0x1e48ff={'id':_0x42123e(),'x':_0x21b450[_0x4350b4(0x230)][0x3]['x'],'y':_0x21b450[_0x4350b4(0x230)][0x3]['y'],'in':i(_0x21b450[_0x4350b4(0x230)][0x2]),'out':i(_0x21b450[_0x4350b4(0x226)][0x1]),'pointType':_0x4350b4(0x1ef)};return _0x274bec['anchors'][_0x5b0226[_0x4350b4(0x23d)]][_0x4350b4(0x1fd)]=i(_0x21b450[_0x4350b4(0x230)][0x1]),_0x274bec[_0x4350b4(0x1ee)][_0x5b0226[_0x4350b4(0x1fa)]]['in']=i(_0x21b450[_0x4350b4(0x226)][0x2]),_0x274bec['anchors']['splice'](_0x5b0226[_0x4350b4(0x23d)]+0x1,0x0,_0x1e48ff),_0x274bec;}function w(_0x13f084,_0x172bce){const _0x42d1b5=_0x39a0e4;let _0x3124db=o(_0x13f084);return _0x3124db['anchors']=_0x3124db[_0x42d1b5(0x1ee)][_0x42d1b5(0x234)](_0x2592a4=>_0x2592a4['id']!==_0x172bce),_0x3124db[_0x42d1b5(0x244)]&&_0x3124db['anchors'][_0x42d1b5(0x1f2)]<0x3&&(_0x3124db[_0x42d1b5(0x244)]=!0x1),_0x3124db;}function T(_0x1b46cf,_0x37a700,_0x5715f8){const _0x3793fa=_0x39a0e4;let _0x164b79=o(_0x1b46cf),_0x314109=_0x164b79[_0x3793fa(0x1ee)]['findIndex'](_0x5861bd=>_0x5861bd['id']===_0x37a700),_0x555791=_0x164b79[_0x3793fa(0x1ee)][_0x314109];if(!_0x555791)return _0x164b79;if(_0x555791[_0x3793fa(0x242)]=_0x5715f8,_0x5715f8===_0x3793fa(0x246))return delete _0x555791['in'],delete _0x555791[_0x3793fa(0x1fd)],_0x164b79;let _0xea067f=y(_0x164b79,_0x314109);if(_0x555791['in']=_0x555791['in']?i(_0x555791['in']):_0xea067f['in'],_0x555791[_0x3793fa(0x1fd)]=_0x555791[_0x3793fa(0x1fd)]?i(_0x555791[_0x3793fa(0x1fd)]):_0xea067f[_0x3793fa(0x1fd)],_0x5715f8===_0x3793fa(0x209)){let _0x552670=Math[_0x3793fa(0x237)](c(_0x555791,_0x555791['in']),c(_0x555791,_0x555791['out']),0x32),_0x42c917=l({'x':_0x555791[_0x3793fa(0x1fd)]['x']-_0x555791['x'],'y':_0x555791[_0x3793fa(0x1fd)]['y']-_0x555791['y']});_0x555791[_0x3793fa(0x1fd)]={'x':_0x555791['x']+_0x42c917['x']*_0x552670,'y':_0x555791['y']+_0x42c917['y']*_0x552670},_0x555791['in']={'x':_0x555791['x']-_0x42c917['x']*_0x552670,'y':_0x555791['y']-_0x42c917['y']*_0x552670};}else _0x5715f8===_0x3793fa(0x223)&&b(_0x555791,_0x3793fa(0x1fd));return _0x164b79;}function E(_0x313d09,_0x3da698){const _0x38f9ba=_0x39a0e4;let _0x4fcf59=_0x313d09[_0x38f9ba(0x1ee)][_0x38f9ba(0x24c)](_0x1d301c=>_0x1d301c['id']===_0x3da698),_0x59a013=(_0x4fcf59==null?void 0x0:_0x4fcf59['pointType'])??_0x38f9ba(0x246);return T(_0x313d09,_0x3da698,_0x59a013===_0x38f9ba(0x246)?_0x38f9ba(0x223):_0x59a013==='smooth'?_0x38f9ba(0x209):_0x59a013===_0x38f9ba(0x209)?'free':'corner');}function ae(_0x2c7276,_0x4269de,_0x245956){const _0x9e5f2e=_0x39a0e4;let _0x1ee504=o(_0x2c7276),_0x48d8cf=_0x1ee504[_0x9e5f2e(0x1ee)]['find'](_0x14c8be=>_0x14c8be['id']===_0x4269de['anchorId']);if(!_0x48d8cf)return _0x1ee504;if(_0x4269de[_0x9e5f2e(0x220)]===_0x9e5f2e(0x243)){let _0x4367df={'x':_0x245956['x']-_0x48d8cf['x'],'y':_0x245956['y']-_0x48d8cf['y']};return _0x48d8cf['x']=_0x245956['x'],_0x48d8cf['y']=_0x245956['y'],_0x48d8cf['in']&&={'x':_0x48d8cf['in']['x']+_0x4367df['x'],'y':_0x48d8cf['in']['y']+_0x4367df['y']},_0x48d8cf[_0x9e5f2e(0x1fd)]&&={'x':_0x48d8cf[_0x9e5f2e(0x1fd)]['x']+_0x4367df['x'],'y':_0x48d8cf[_0x9e5f2e(0x1fd)]['y']+_0x4367df['y']},_0x1ee504;}return _0x48d8cf[_0x4269de[_0x9e5f2e(0x220)]]=i(_0x245956),_0x48d8cf[_0x9e5f2e(0x242)]==='corner'&&(_0x48d8cf[_0x9e5f2e(0x242)]=_0x9e5f2e(0x1ef)),b(_0x48d8cf,_0x4269de[_0x9e5f2e(0x220)]),_0x1ee504;}const D=1e-9;function O(_0x394c7a){let _0xa8d95f=Math['round'](_0x394c7a*0x2710)/0x2710;return Object['is'](_0xa8d95f,-0x0)?'0':String(_0xa8d95f);}function k(_0x5bf66a){return O(_0x5bf66a['x'])+'\x20'+O(_0x5bf66a['y']);}function A(_0x34fde4,_0x5200a9){return{'x':_0x34fde4['x']-_0x5200a9['x'],'y':_0x34fde4['y']-_0x5200a9['y']};}function j(_0x383d45,_0x1680a1,_0x43e266,_0x5985eb,_0x5114fd){let _0x1b09ee=0x1-_0x5114fd;return{'x':_0x1b09ee*_0x1b09ee*_0x1b09ee*_0x383d45['x']+0x3*_0x1b09ee*_0x1b09ee*_0x5114fd*_0x1680a1['x']+0x3*_0x1b09ee*_0x5114fd*_0x5114fd*_0x43e266['x']+_0x5114fd*_0x5114fd*_0x5114fd*_0x5985eb['x'],'y':_0x1b09ee*_0x1b09ee*_0x1b09ee*_0x383d45['y']+0x3*_0x1b09ee*_0x1b09ee*_0x5114fd*_0x1680a1['y']+0x3*_0x1b09ee*_0x5114fd*_0x5114fd*_0x43e266['y']+_0x5114fd*_0x5114fd*_0x5114fd*_0x5985eb['y']};}function M(_0x49f86f,_0xa0a563,_0x56d74d,_0x1e8477){const _0x135991=_0x39a0e4;let _0x4a6797=-_0x49f86f+0x3*_0xa0a563-0x3*_0x56d74d+_0x1e8477,_0x42941f=0x3*_0x49f86f-0x6*_0xa0a563+0x3*_0x56d74d,_0x563fe6=-0x3*_0x49f86f+0x3*_0xa0a563,_0x204771=[];if(Math[_0x135991(0x1f0)](_0x4a6797)<D){if(Math[_0x135991(0x1f0)](_0x42941f)<D)return _0x204771;let _0x76362b=-_0x563fe6/(0x2*_0x42941f);return _0x76362b>0x0&&_0x76362b<0x1&&_0x204771['push'](_0x76362b),_0x204771;}let _0x20c355=_0x42941f*_0x42941f-0x3*_0x4a6797*_0x563fe6;if(_0x20c355<0x0)return _0x204771;let _0x1a596b=Math['sqrt'](Math[_0x135991(0x237)](0x0,_0x20c355)),_0x4cb887=(-_0x42941f+_0x1a596b)/(0x3*_0x4a6797),_0x5a01b8=(-_0x42941f-_0x1a596b)/(0x3*_0x4a6797);return _0x4cb887>0x0&&_0x4cb887<0x1&&_0x204771[_0x135991(0x255)](_0x4cb887),_0x5a01b8>0x0&&_0x5a01b8<0x1&&Math['abs'](_0x5a01b8-_0x4cb887)>D&&_0x204771[_0x135991(0x255)](_0x5a01b8),_0x204771;}function N(_0x5836ad,_0x5a4a7d,_0xdea022,_0x3b9c54,_0x1307f2){const _0x1ee044=_0x39a0e4;_0x5836ad[_0x1ee044(0x255)](_0x5a4a7d,_0x1307f2),new Set([...M(_0x5a4a7d['x'],_0xdea022['x'],_0x3b9c54['x'],_0x1307f2['x']),...M(_0x5a4a7d['y'],_0xdea022['y'],_0x3b9c54['y'],_0x1307f2['y'])])[_0x1ee044(0x1f3)](_0x45633e=>{const _0x12fdb2=_0x1ee044;_0x5836ad[_0x12fdb2(0x255)](j(_0x5a4a7d,_0xdea022,_0x3b9c54,_0x1307f2,_0x45633e));});}function P(_0x9f0749){const _0x479c31=_0x39a0e4;let _0x2ada1e=_0x9f0749[_0x479c31(0x1ee)];if(_0x2ada1e[_0x479c31(0x1f2)]<=0x1)return _0x2ada1e;let _0x410906=[];for(let _0x27c3c=0x1;_0x27c3c<_0x2ada1e['length'];_0x27c3c++){let _0x549b0b=_0x2ada1e[_0x27c3c-0x1],_0x28ed15=_0x2ada1e[_0x27c3c];N(_0x410906,_0x549b0b,_0x549b0b[_0x479c31(0x1fd)]??_0x549b0b,_0x28ed15['in']??_0x28ed15,_0x28ed15);}if(_0x9f0749['closed']&&_0x2ada1e[_0x479c31(0x1f2)]>0x1){let _0x4cb54d=_0x2ada1e[_0x2ada1e[_0x479c31(0x1f2)]-0x1],_0x5c7151=_0x2ada1e[0x0];N(_0x410906,_0x4cb54d,_0x4cb54d['out']??_0x4cb54d,_0x5c7151['in']??_0x5c7151,_0x5c7151);}return _0x410906;}function F(_0x5f3fa0){const _0x7c1487=_0x39a0e4;let _0x419479=_0x5f3fa0[_0x7c1487(0x206)];if(_0x419479[_0x7c1487(0x1f2)]<=0x1)return _0x419479;let _0x406832=[];for(let _0x390a60=0x0;_0x390a60<_0x419479[_0x7c1487(0x1f2)]-0x1;_0x390a60++){let _0x3c57a2=_0x419479[_0x390a60],_0x5f02f5=_0x419479[_0x390a60+0x1],_0x36f30d=_0x419479[_0x390a60-0x1]??_0x3c57a2,_0x56d3d3=_0x419479[_0x390a60+0x2]??_0x5f02f5;N(_0x406832,_0x3c57a2,{'x':_0x3c57a2['x']+(_0x5f02f5['x']-_0x36f30d['x'])/0x6,'y':_0x3c57a2['y']+(_0x5f02f5['y']-_0x36f30d['y'])/0x6},{'x':_0x5f02f5['x']-(_0x56d3d3['x']-_0x3c57a2['x'])/0x6,'y':_0x5f02f5['y']-(_0x56d3d3['y']-_0x3c57a2['y'])/0x6},_0x5f02f5);}return _0x406832;}function I(_0x57f343){const _0x40b1ac=_0x39a0e4;return _0x57f343['kind']===_0x40b1ac(0x253)?P(_0x57f343):F(_0x57f343);}function L(_0x143c39){const _0x2f78db=_0x39a0e4;let _0x2156ec=Math[_0x2f78db(0x1eb)](_0x143c39*0x2710)/0x2710;return Object['is'](_0x2156ec,-0x0)?0x0:_0x2156ec;}function R(_0x45f734){const _0x594e77=_0x39a0e4;let _0x125fad=I(_0x45f734);if(_0x125fad[_0x594e77(0x1f2)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x339035=Math[_0x594e77(0x21e)](..._0x125fad[_0x594e77(0x238)](_0x53a9ee=>_0x53a9ee['x'])),_0xde87f2=Math['min'](..._0x125fad[_0x594e77(0x238)](_0x68bfd1=>_0x68bfd1['y'])),_0xffbdba=Math[_0x594e77(0x237)](..._0x125fad[_0x594e77(0x238)](_0x1eace2=>_0x1eace2['x'])),_0x53fb01=Math['max'](..._0x125fad[_0x594e77(0x238)](_0x37c52a=>_0x37c52a['y']));return{'left':L(_0x339035),'top':L(_0xde87f2),'width':L(Math[_0x594e77(0x237)](0x1,_0xffbdba-_0x339035)),'height':L(Math['max'](0x1,_0x53fb01-_0xde87f2))};}function z(_0x3519f6,_0x15b1eb){const _0x3c0824=_0x39a0e4;let _0x2d7583=_0x3519f6[_0x3c0824(0x1ee)];if(_0x2d7583['length']===0x0)return'';let _0x1645dc=['M\x20'+k(A(_0x2d7583[0x0],_0x15b1eb))];for(let _0x23aa48=0x1;_0x23aa48<_0x2d7583[_0x3c0824(0x1f2)];_0x23aa48++){let _0x3b883b=_0x2d7583[_0x23aa48-0x1],_0x5d2c2a=_0x2d7583[_0x23aa48],_0x574df1=_0x3b883b[_0x3c0824(0x1fd)]??_0x3b883b,_0x149b67=_0x5d2c2a['in']??_0x5d2c2a;_0x1645dc['push']('C\x20'+k(A(_0x574df1,_0x15b1eb))+'\x20'+k(A(_0x149b67,_0x15b1eb))+'\x20'+k(A(_0x5d2c2a,_0x15b1eb)));}if(_0x3519f6[_0x3c0824(0x244)]&&_0x2d7583['length']>0x1){let _0xce7da9=_0x2d7583[_0x2d7583[_0x3c0824(0x1f2)]-0x1],_0x19688d=_0x2d7583[0x0],_0x3d272b=_0xce7da9['out']??_0xce7da9,_0x5784ea=_0x19688d['in']??_0x19688d;_0x1645dc[_0x3c0824(0x255)]('C\x20'+k(A(_0x3d272b,_0x15b1eb))+'\x20'+k(A(_0x5784ea,_0x15b1eb))+'\x20'+k(A(_0x19688d,_0x15b1eb))),_0x1645dc[_0x3c0824(0x255)]('Z');}return _0x1645dc['join']('\x20');}function B(_0xfb6bec,_0x1bbe83){const _0x55c97b=_0x39a0e4;let _0x23fa5a=_0xfb6bec[_0x55c97b(0x206)][_0x55c97b(0x238)](_0x1622a6=>A(_0x1622a6,_0x1bbe83));if(_0x23fa5a[_0x55c97b(0x1f2)]===0x0)return'';if(_0x23fa5a[_0x55c97b(0x1f2)]===0x1)return'M\x20'+k(_0x23fa5a[0x0]);let _0x1eed38=['M\x20'+k(_0x23fa5a[0x0])];for(let _0x338481=0x0;_0x338481<_0x23fa5a[_0x55c97b(0x1f2)]-0x1;_0x338481++){let _0x262504=_0x23fa5a[_0x338481],_0x1143b9=_0x23fa5a[_0x338481+0x1],_0x3b9fdb=_0x23fa5a[_0x338481-0x1]??_0x262504,_0x826d=_0x23fa5a[_0x338481+0x2]??_0x1143b9,_0x3ea9d8={'x':_0x262504['x']+(_0x1143b9['x']-_0x3b9fdb['x'])/0x6,'y':_0x262504['y']+(_0x1143b9['y']-_0x3b9fdb['y'])/0x6},_0x152ee4={'x':_0x1143b9['x']-(_0x826d['x']-_0x262504['x'])/0x6,'y':_0x1143b9['y']-(_0x826d['y']-_0x262504['y'])/0x6};_0x1eed38[_0x55c97b(0x255)]('C\x20'+k(_0x3ea9d8)+'\x20'+k(_0x152ee4)+'\x20'+k(_0x1143b9));}return _0x1eed38['join']('\x20');}function V(_0x252c24,_0x32c233){const _0x23946d=_0x39a0e4;return _0x252c24[_0x23946d(0x220)]===_0x23946d(0x253)?z(_0x252c24,_0x32c233):B(_0x252c24,_0x32c233);}function H(_0x1b92e1,_0x263da6){const _0x3c16b2=_0x39a0e4;return _0x263da6!=null&&_0x263da6[_0x3c16b2(0x213)]?_0x263da6[_0x3c16b2(0x213)]:_0x1b92e1[_0x3c16b2(0x220)]===_0x3c16b2(0x253)?_0x3c16b2(0x228):_0x1b92e1[_0x3c16b2(0x213)];}function U(_0xf6b019,_0x3172b5){const _0x1005fa=_0x39a0e4;return(_0x3172b5==null?void 0x0:_0x3172b5[_0x1005fa(0x22e)])===void 0x0?_0xf6b019[_0x1005fa(0x220)]===_0x1005fa(0x253)?0x2:_0xf6b019[_0x1005fa(0x22e)]:_0x3172b5[_0x1005fa(0x22e)];}function W(_0x7322b,_0x175e03){const _0x4b7342=_0x39a0e4;return(_0x175e03==null?void 0x0:_0x175e03['opacity'])===void 0x0?_0x7322b[_0x4b7342(0x220)]===_0x4b7342(0x253)?void 0x0:_0x7322b[_0x4b7342(0x221)]:_0x175e03[_0x4b7342(0x221)];}function oe(_0x1566bd,_0x59d75d){const _0x4e7755=_0x39a0e4;let _0x3d0118=R(_0x1566bd),_0x5ad6ff=V(_0x1566bd,{'x':_0x3d0118[_0x4e7755(0x230)],'y':_0x3d0118[_0x4e7755(0x212)]}),_0x112c60=_0x1566bd[_0x4e7755(0x220)]===_0x4e7755(0x253)&&_0x1566bd[_0x4e7755(0x244)],_0xcf815d=_0x59d75d==null?void 0x0:_0x59d75d[_0x4e7755(0x22f)];return{'shapeType':e[_0x4e7755(0x23c)][_0x4e7755(0x24a)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x3d0118[_0x4e7755(0x22e)],'h':_0x3d0118[_0x4e7755(0x20e)],'fill':_0x112c60?_0x4e7755(0x204):_0x4e7755(0x1f9),'stroke':!0x0,'data':_0x5ad6ff,'dataArray':K(_0x1566bd,{'x':_0x3d0118[_0x4e7755(0x230)],'y':_0x3d0118[_0x4e7755(0x212)]})}]},'fill':_0x112c60&&_0xcf815d?{'color':_0xcf815d,'fillType':e[_0x4e7755(0x22b)][_0x4e7755(0x1f7)]}:{'fillType':e['ShapeFillEnum'][_0x4e7755(0x22a)]},'stroke':{'color':H(_0x1566bd,_0x59d75d),'width':U(_0x1566bd,_0x59d75d),'opacity':W(_0x1566bd,_0x59d75d),'lineStrokeType':e[_0x4e7755(0x215)][_0x4e7755(0x21f)],'capType':e[_0x4e7755(0x232)][_0x4e7755(0x208)],'lineJoinType':e['ShapeLineJoinEnum'][_0x4e7755(0x208)]}};}function G(_0x4d7dee,_0x5bfb8b){return{'x':_0x4d7dee['x']-_0x5bfb8b['x'],'y':_0x4d7dee['y']-_0x5bfb8b['y']};}function K(_0x57b64a,_0x5c4b63){const _0x55b506=_0x39a0e4;if(_0x57b64a[_0x55b506(0x220)]===_0x55b506(0x253)){let _0x1a1458=_0x57b64a[_0x55b506(0x1ee)];if(_0x1a1458['length']===0x0)return[];let _0x534c05=G(_0x1a1458[0x0],_0x5c4b63),_0x19de5e=[{'command':'M','points':[_0x534c05['x'],_0x534c05['y']]}];for(let _0x430c7a=0x1;_0x430c7a<_0x1a1458['length'];_0x430c7a++){let _0x2c40ec=_0x1a1458[_0x430c7a-0x1],_0xb951f6=_0x1a1458[_0x430c7a],_0x7d5b57=G(_0x2c40ec[_0x55b506(0x1fd)]??_0x2c40ec,_0x5c4b63),_0x2a27f4=G(_0xb951f6['in']??_0xb951f6,_0x5c4b63),_0x5c852c=G(_0xb951f6,_0x5c4b63);_0x19de5e['push']({'command':'C','points':[_0x7d5b57['x'],_0x7d5b57['y'],_0x2a27f4['x'],_0x2a27f4['y'],_0x5c852c['x'],_0x5c852c['y']]});}if(_0x57b64a[_0x55b506(0x244)]&&_0x1a1458[_0x55b506(0x1f2)]>0x1){let _0x5f5380=_0x1a1458[_0x1a1458[_0x55b506(0x1f2)]-0x1],_0x309a67=_0x1a1458[0x0],_0x42a513=G(_0x5f5380[_0x55b506(0x1fd)]??_0x5f5380,_0x5c4b63),_0x28ff23=G(_0x309a67['in']??_0x309a67,_0x5c4b63),_0xbc3109=G(_0x309a67,_0x5c4b63);_0x19de5e['push']({'command':'C','points':[_0x42a513['x'],_0x42a513['y'],_0x28ff23['x'],_0x28ff23['y'],_0xbc3109['x'],_0xbc3109['y']]}),_0x19de5e[_0x55b506(0x255)]({'command':'z','points':[]});}return _0x19de5e;}let _0x380da5=_0x57b64a['points']['map'](_0x57a880=>G(_0x57a880,_0x5c4b63));if(_0x380da5[_0x55b506(0x1f2)]===0x0)return[];let _0x4ae747=[{'command':'M','points':[_0x380da5[0x0]['x'],_0x380da5[0x0]['y']]}];for(let _0x184965=0x0;_0x184965<_0x380da5['length']-0x1;_0x184965++){let _0x236d24=_0x380da5[_0x184965],_0x216581=_0x380da5[_0x184965+0x1],_0x4e28d5=_0x380da5[_0x184965-0x1]??_0x236d24,_0x5a2044=_0x380da5[_0x184965+0x2]??_0x216581,_0x107950={'x':_0x236d24['x']+(_0x216581['x']-_0x4e28d5['x'])/0x6,'y':_0x236d24['y']+(_0x216581['y']-_0x4e28d5['y'])/0x6},_0x37d45b={'x':_0x216581['x']-(_0x5a2044['x']-_0x236d24['x'])/0x6,'y':_0x216581['y']-(_0x5a2044['y']-_0x236d24['y'])/0x6};_0x4ae747[_0x55b506(0x255)]({'command':'C','points':[_0x107950['x'],_0x107950['y'],_0x37d45b['x'],_0x37d45b['y'],_0x216581['x'],_0x216581['y']]});}return _0x4ae747;}function q(_0x1e20b0){const _0x5110cb=_0x39a0e4;let {model:_0x4355dd,sourceModel:_0x56779a=_0x4355dd,style:_0x284643}=_0x1e20b0,_0x395238=_0x1e20b0['tool']??_0x4355dd['kind'],_0xe0d6cf=R(_0x4355dd),_0x3c7ae9=_0x4355dd['kind']===_0x5110cb(0x253)&&_0x395238!=='pen'?_0x4355dd:void 0x0;return{'transform':{..._0xe0d6cf,'rotation':0x0},'shapeData':oe(_0x4355dd,_0x284643),'ink':{'version':0x1,'tool':_0x395238,'sourceModel':_0x56779a,..._0x3c7ae9?{'editModel':_0x3c7ae9}:{},'normalizedBounds':_0xe0d6cf}};}var se=_0x39a0e4(0x222),ce=_0x39a0e4(0x236);function J(_0x165f03){'@babel/helpers - typeof';const _0x53e653=_0x39a0e4;return J=typeof Symbol==_0x53e653(0x22c)&&typeof Symbol[_0x53e653(0x256)]==_0x53e653(0x1e7)?function(_0x3fe0b6){return typeof _0x3fe0b6;}:function(_0x4a52c6){const _0x337e6d=_0x53e653;return _0x4a52c6&&typeof Symbol==_0x337e6d(0x22c)&&_0x4a52c6[_0x337e6d(0x201)]===Symbol&&_0x4a52c6!==Symbol[_0x337e6d(0x1ff)]?_0x337e6d(0x1e7):typeof _0x4a52c6;},J(_0x165f03);}function _0x4068(_0x2ff15d,_0xc9a67d){_0x2ff15d=_0x2ff15d-0x1e7;const _0x2e7791=_0x2e77();let _0x40680e=_0x2e7791[_0x2ff15d];return _0x40680e;}function le(_0x2d79ae,_0x4c4174){const _0x2eac8d=_0x39a0e4;if(J(_0x2d79ae)!=_0x2eac8d(0x233)||!_0x2d79ae)return _0x2d79ae;var _0x55f297=_0x2d79ae[Symbol['toPrimitive']];if(_0x55f297!==void 0x0){var _0x4b6b3f=_0x55f297['call'](_0x2d79ae,_0x4c4174||_0x2eac8d(0x23b));if(J(_0x4b6b3f)!=_0x2eac8d(0x233))return _0x4b6b3f;throw TypeError(_0x2eac8d(0x1fc));}return(_0x4c4174===_0x2eac8d(0x203)?String:Number)(_0x2d79ae);}function ue(_0x205e3e){var _0x5745a7=le(_0x205e3e,'string');return J(_0x5745a7)=='symbol'?_0x5745a7:_0x5745a7+'';}function Y(_0x197f0c,_0x877a50,_0x40dbeb){const _0x27eb2c=_0x39a0e4;return(_0x877a50=ue(_0x877a50))in _0x197f0c?Object[_0x27eb2c(0x24b)](_0x197f0c,_0x877a50,{'value':_0x40dbeb,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x197f0c[_0x877a50]=_0x40dbeb,_0x197f0c;}const X=(0x0,n[_0x39a0e4(0x214)])(_0x39a0e4(0x1f8));var de=class{constructor(){Y(this,'_adapters',[]);}[_0x39a0e4(0x231)](_0x3fadd5){const _0x342477=_0x39a0e4;return this[_0x342477(0x21c)][_0x342477(0x255)](_0x3fadd5),(0x0,n[_0x342477(0x23f)])(()=>{const _0x41ba72=_0x342477;let _0x27b6e3=this[_0x41ba72(0x21c)][_0x41ba72(0x252)](_0x3fadd5);_0x27b6e3>=0x0&&this[_0x41ba72(0x21c)][_0x41ba72(0x257)](_0x27b6e3,0x1);});}[_0x39a0e4(0x20d)](_0x16f4b7){const _0x5a5ee2=_0x39a0e4;for(let _0x56b8cf of this[_0x5a5ee2(0x21c)])if(_0x56b8cf[_0x5a5ee2(0x20d)](_0x16f4b7))return!0x0;return!0x1;}async[_0x39a0e4(0x1ed)](_0x1f1241){const _0x54d8a5=_0x39a0e4;for(let _0x1934a9 of this[_0x54d8a5(0x21c)])if(_0x1934a9[_0x54d8a5(0x1ed)]&&await _0x1934a9[_0x54d8a5(0x1ed)](_0x1f1241))return!0x0;return!0x1;}};const fe={'id':_0x39a0e4(0x218),'type':n['CommandType'][_0x39a0e4(0x24f)],'handler':(_0x32ab3f,_0x31a07e)=>_0x31a07e?_0x32ab3f[_0x39a0e4(0x229)](X)[_0x39a0e4(0x20d)](_0x31a07e):!0x1},Z={};function Q(_0x59d243,_0x230c03){return function(_0x3a194b,_0x49da88){_0x230c03(_0x3a194b,_0x49da88,_0x59d243);};}function _0x2e77(){const _0x106962=['find','insertInkPenAnchorAt','_config','OPERATION','6bHlplv','findClosestInkPenHandle','indexOf','pen','2344050ExDXzc','push','iterator','splice','symbol','point','findClosestInkPenSegment','start','round','add','createCustomShape','anchors','free','abs','version','length','forEach','merge','deleteInkPenAnchor','UNIVER_INK_PLUGIN','SolidFill','ink.host-adapter.service','none','endIndex','_configService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','out','7029496LzjQUx','prototype','pluginName','constructor','createId','string','norm','6272686hOFbDD','points','moveInkPenAnchorPoint','Round','symmetric','Module','distance','disposeWithMe','beginInkMode','height','1652385IToAGl','buildInkCustomShapePayload','UniverInkPlugin','top','color','createIdentifier','ShapeLineTypeEnum','3302085XtzvWT','hypot','ink.operation.start','Inject','_injector','packageName','_adapters','slice','min','SolidLine','kind','opacity','@univerjs-pro/ink','smooth','_commandService','end','right','UniverLicensePlugin','#f54a45','get','NoFill','ShapeFillEnum','function','decorate','width','fillColor','left','registerAdapter','ShapeLineCapEnum','object','filter','Injector','1.3.1','max','map','getOwnPropertyDescriptor','setConfig','default','ShapeTypeEnum','startIndex','segmentIndex','toDisposable','tolerance','DependentOn','pointType','anchor','closed','ink-centerline-','corner','1805178hOIWDv','6176900eRYdeU','Plugin','Rect','defineProperty'];_0x2e77=function(){return _0x106962;};return _0x2e77();}function pe(_0x286d44,_0x4069f1,_0x2e306a,_0xed29f7){const _0x4855bc=_0x39a0e4;var _0x1d0a5a=arguments['length'],_0x54156b=_0x1d0a5a<0x3?_0x4069f1:_0xed29f7===null?_0xed29f7=Object[_0x4855bc(0x239)](_0x4069f1,_0x2e306a):_0xed29f7,_0x1f54e5;if(typeof Reflect==_0x4855bc(0x233)&&typeof Reflect[_0x4855bc(0x22d)]==_0x4855bc(0x22c))_0x54156b=Reflect[_0x4855bc(0x22d)](_0x286d44,_0x4069f1,_0x2e306a,_0xed29f7);else{for(var _0xb74ae2=_0x286d44[_0x4855bc(0x1f2)]-0x1;_0xb74ae2>=0x0;_0xb74ae2--)(_0x1f54e5=_0x286d44[_0xb74ae2])&&(_0x54156b=(_0x1d0a5a<0x3?_0x1f54e5(_0x54156b):_0x1d0a5a>0x3?_0x1f54e5(_0x4069f1,_0x2e306a,_0x54156b):_0x1f54e5(_0x4069f1,_0x2e306a))||_0x54156b);}return _0x1d0a5a>0x3&&_0x54156b&&Object['defineProperty'](_0x4069f1,_0x2e306a,_0x54156b),_0x54156b;}let $=class extends n[_0x39a0e4(0x249)]{constructor(_0x51e307=Z,_0x58fa9b,_0x3627c1,_0x3b40e1){const _0x264e1a=_0x39a0e4;super(),this[_0x264e1a(0x24e)]=_0x51e307,this[_0x264e1a(0x21a)]=_0x58fa9b,this[_0x264e1a(0x224)]=_0x3627c1,this['_configService']=_0x3b40e1;let {..._0x696df3}=(0x0,n[_0x264e1a(0x1f4)])({},Z,this[_0x264e1a(0x24e)]);this[_0x264e1a(0x1fb)][_0x264e1a(0x23a)]('ink.config',_0x696df3);}['onStarting'](){const _0xce3fb8=_0x39a0e4;[[X,{'useClass':de}]][_0xce3fb8(0x1f3)](_0x32305d=>this[_0xce3fb8(0x21a)][_0xce3fb8(0x1ec)](_0x32305d)),this[_0xce3fb8(0x20c)](this[_0xce3fb8(0x224)]['registerCommand'](fe));}};Y($,_0x39a0e4(0x200),_0x39a0e4(0x1f6)),Y($,_0x39a0e4(0x21b),se),Y($,_0x39a0e4(0x1f1),ce),Y($,'type',n['UniverInstanceType']['UNIVER_UNKNOWN']),$=pe([(0x0,n[_0x39a0e4(0x241)])(t[_0x39a0e4(0x227)]),Q(0x1,(0x0,n[_0x39a0e4(0x219)])(n[_0x39a0e4(0x235)])),Q(0x2,n['ICommandService']),Q(0x3,n['IConfigService'])],$),exports['IInkHostAdapterService']=X,Object[_0x39a0e4(0x24b)](exports,_0x39a0e4(0x211),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x39a0e4(0x210)]=q,exports['convertBrushModelToPenModel']=re,exports['cycleInkPenAnchorPointType']=E,exports[_0x39a0e4(0x1f5)]=w,exports[_0x39a0e4(0x251)]=ie,exports[_0x39a0e4(0x1e9)]=S,exports['getInkModelBounds']=R,exports['getInkPenPreviewModel']=x,exports[_0x39a0e4(0x24d)]=C,exports['isInkPenHandleVisible']=p,exports[_0x39a0e4(0x207)]=ae,exports['setInkPenAnchorPointType']=T;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x2752a1=_0x4dd5;function _0x4dd5(_0xdc52f5,_0x486e53){_0xdc52f5=_0xdc52f5-0x7f;const _0x5c3a06=_0x5c3a();let _0x4dd586=_0x5c3a06[_0xdc52f5];return _0x4dd586;}(function(_0xe09492,_0x5bde12){const _0x592dba=_0x4dd5,_0x2baf95=_0xe09492();while(!![]){try{const _0x166ff4=-parseInt(_0x592dba(0x9d))/0x1*(parseInt(_0x592dba(0x86))/0x2)+parseInt(_0x592dba(0x8c))/0x3+parseInt(_0x592dba(0xa2))/0x4*(-parseInt(_0x592dba(0xaa))/0x5)+parseInt(_0x592dba(0x88))/0x6*(-parseInt(_0x592dba(0x84))/0x7)+parseInt(_0x592dba(0xb2))/0x8*(-parseInt(_0x592dba(0x83))/0x9)+-parseInt(_0x592dba(0xb1))/0xa*(parseInt(_0x592dba(0x9e))/0xb)+parseInt(_0x592dba(0x9c))/0xc*(parseInt(_0x592dba(0xb0))/0xd);if(_0x166ff4===_0x5bde12)break;else _0x2baf95['push'](_0x2baf95['shift']());}catch(_0x428c8b){_0x2baf95['push'](_0x2baf95['shift']());}}}(_0x5c3a,0xd9e92));import{BoardElementType as _0x384ba3}from'@univerjs-pro/boards';function _0x5c3a(){const _0x32b63b=['45789972DqycdY','299339nlXGeL','518023ZeWEmW','corner','Shape','extend','366708rybDqJ','isFinite','getInks','sourceModel','deepClone','version','BoardInkHandleKind','pressure','30JMTwZN','pen','anchor','every','object','free','13LImvuO','160nJflmo','110512FkKwUF','insertInk','style','length','brush','anchors','findElements','45ebEDpT','644SrUGmk','width','2pHlMJU','transform','102498kQgxxf','kind','_addElement','has','960978xOZENb','highlighter','model','ink','filter','opacity','insertIndex','type','shapeData','smooth','out','add','custom','laneId','points','tool'];_0x5c3a=function(){return _0x32b63b;};return _0x5c3a();}import{FBoard as _0x2c6976}from'@univerjs-pro/boards/facade';import{buildInkCustomShapePayload as _0x2eb5d5}from'@univerjs-pro/ink';import{Tools as _0x265bf3,generateRandomId as _0x1e3763}from'@univerjs/core';import{FEnum as _0x3336b1}from'@univerjs/core/facade';var o=class extends _0x2c6976{[_0x2752a1(0xb3)](_0x26a5f0){const _0x42b5e0=_0x2752a1;let _0x3629e0=s(_0x26a5f0);return _0x3629e0&&this[_0x42b5e0(0x8a)](_0x3629e0,{'insertIndex':_0x26a5f0[_0x42b5e0(0x92)]})?_0x3629e0:null;}[_0x2752a1(0xa4)](){const _0x552794=_0x2752a1;return this[_0x552794(0x82)]({'elementType':_0x384ba3['Shape'],'includeHidden':!0x0,'includeLocked':!0x0})[_0x552794(0x90)](p);}};function s(_0x523a35,_0x20b8ed){const _0x46505f=_0x2752a1;if(!l(_0x523a35[_0x46505f(0x8e)])||_0x523a35[_0x46505f(0xa5)]!==void 0x0&&!l(_0x523a35[_0x46505f(0xa5)])||!u(_0x523a35[_0x46505f(0xb4)]))return null;let _0x596a0a=_0x523a35['parentId']??(_0x20b8ed==null?void 0x0:_0x20b8ed['parentId']),_0x58da44=_0x265bf3[_0x46505f(0xa6)](_0x523a35[_0x46505f(0x8e)]),_0xc3c888=_0x2eb5d5({'model':_0x58da44,'style':_0x523a35[_0x46505f(0xb4)],'tool':_0x523a35[_0x46505f(0x9b)],'sourceModel':_0x523a35[_0x46505f(0xa5)]?_0x265bf3[_0x46505f(0xa6)](_0x523a35[_0x46505f(0xa5)]):_0x58da44}),_0x2efd4b=d(_0x20b8ed==null?void 0x0:_0x20b8ed[_0x46505f(0x98)]);return{'id':(_0x20b8ed==null?void 0x0:_0x20b8ed['id'])??_0x523a35['id']??_0x1e3763(0x6),'type':_0x384ba3[_0x46505f(0xa0)],'transform':_0xc3c888[_0x46505f(0x87)],'shapeData':_0xc3c888[_0x46505f(0x94)],'parentId':_0x596a0a??void 0x0,'laneId':_0x523a35[_0x46505f(0x99)]===void 0x0?_0x20b8ed==null?void 0x0:_0x20b8ed['laneId']:_0x523a35[_0x46505f(0x99)],'custom':{..._0x2efd4b,'ink':_0xc3c888[_0x46505f(0x8f)]}};}function c(_0x16bfc7){const _0x4a5d60=_0x2752a1;return Number['isFinite'](_0x16bfc7['x'])&&Number[_0x4a5d60(0xa3)](_0x16bfc7['y']);}function l(_0x371cfe){const _0x217422=_0x2752a1;if(_0x371cfe[_0x217422(0x89)]===_0x217422(0xab)){let _0x40bf5d=new Set();return _0x371cfe['anchors']['length']>=(_0x371cfe['closed']?0x3:0x2)&&_0x371cfe[_0x217422(0x81)][_0x217422(0xad)](_0x34b45a=>{const _0xcd7f14=_0x217422;let _0x59e493=_0x34b45a['id']['trim']()[_0xcd7f14(0x7f)]>0x0&&!_0x40bf5d[_0xcd7f14(0x8b)](_0x34b45a['id'])&&c(_0x34b45a)&&(!_0x34b45a['in']||c(_0x34b45a['in']))&&(!_0x34b45a['out']||c(_0x34b45a[_0xcd7f14(0x96)]));return _0x40bf5d[_0xcd7f14(0x97)](_0x34b45a['id']),_0x59e493;});}return _0x371cfe[_0x217422(0x9a)][_0x217422(0x7f)]>=0x2&&_0x371cfe[_0x217422(0x9a)][_0x217422(0xad)](_0x578b0a=>c(_0x578b0a)&&Number[_0x217422(0xa3)](_0x578b0a['t'])&&(_0x578b0a[_0x217422(0xa9)]===void 0x0||Number[_0x217422(0xa3)](_0x578b0a[_0x217422(0xa9)])))&&Number[_0x217422(0xa3)](_0x371cfe[_0x217422(0x85)])&&_0x371cfe['width']>0x0&&Number['isFinite'](_0x371cfe[_0x217422(0x91)])&&_0x371cfe[_0x217422(0x91)]>=0x0&&_0x371cfe[_0x217422(0x91)]<=0x1;}function u(_0x3d6cc2){const _0x3cd823=_0x2752a1;return _0x3d6cc2===void 0x0||(_0x3d6cc2[_0x3cd823(0x85)]===void 0x0||Number[_0x3cd823(0xa3)](_0x3d6cc2[_0x3cd823(0x85)])&&_0x3d6cc2[_0x3cd823(0x85)]>0x0)&&(_0x3d6cc2[_0x3cd823(0x91)]===void 0x0||Number['isFinite'](_0x3d6cc2[_0x3cd823(0x91)])&&_0x3d6cc2['opacity']>=0x0&&_0x3d6cc2[_0x3cd823(0x91)]<=0x1);}function d(_0x5af9be){const _0x4676a3=_0x2752a1;return _0x5af9be&&typeof _0x5af9be==_0x4676a3(0xae)&&!Array['isArray'](_0x5af9be)?_0x5af9be:{};}function f(_0x4c531c){const _0x5997a2=_0x2752a1;let _0x5045bc=d(_0x4c531c[_0x5997a2(0x98)])[_0x5997a2(0x8f)];if(!_0x5045bc||typeof _0x5045bc!=_0x5997a2(0xae)||Array['isArray'](_0x5045bc))return null;let _0x5e26ea=_0x5045bc;return _0x5e26ea[_0x5997a2(0xa7)]===0x1&&_0x5e26ea[_0x5997a2(0xa5)]&&typeof _0x5e26ea[_0x5997a2(0xa5)]==_0x5997a2(0xae)?_0x5e26ea:null;}function p(_0x3ff7b9){const _0x4973af=_0x2752a1;return _0x3ff7b9[_0x4973af(0x93)]===_0x384ba3[_0x4973af(0xa0)]&&!!f(_0x3ff7b9);}_0x2c6976[_0x2752a1(0xa1)](o);const m={'Pen':_0x2752a1(0xab),'Brush':_0x2752a1(0x80),'Highlighter':_0x2752a1(0x8d)},h={'Corner':_0x2752a1(0x9f),'Smooth':_0x2752a1(0x95),'Symmetric':'symmetric','Free':_0x2752a1(0xaf)},g={'Anchor':_0x2752a1(0xac),'In':'in','Out':_0x2752a1(0x96)};var _=class extends _0x3336b1{get['BoardInkTool'](){return m;}get['BoardInkPointType'](){return h;}get[_0x2752a1(0xa8)](){return g;}};_0x3336b1[_0x2752a1(0xa1)](_);export{g as BoardInkHandleKind,h as BoardInkPointType,m as BoardInkTool};
1
+ const _0x1fcd42=_0x2403;(function(_0xf41b73,_0x5db4ae){const _0x2ef4ab=_0x2403,_0x4603fa=_0xf41b73();while(!![]){try{const _0x4b40ed=-parseInt(_0x2ef4ab(0x221))/0x1*(-parseInt(_0x2ef4ab(0x21d))/0x2)+-parseInt(_0x2ef4ab(0x216))/0x3+-parseInt(_0x2ef4ab(0x1fd))/0x4*(-parseInt(_0x2ef4ab(0x215))/0x5)+parseInt(_0x2ef4ab(0x200))/0x6*(-parseInt(_0x2ef4ab(0x21f))/0x7)+-parseInt(_0x2ef4ab(0x209))/0x8*(parseInt(_0x2ef4ab(0x1ff))/0x9)+parseInt(_0x2ef4ab(0x204))/0xa+-parseInt(_0x2ef4ab(0x206))/0xb*(-parseInt(_0x2ef4ab(0x1f9))/0xc);if(_0x4b40ed===_0x5db4ae)break;else _0x4603fa['push'](_0x4603fa['shift']());}catch(_0x3fa446){_0x4603fa['push'](_0x4603fa['shift']());}}}(_0x4f93,0x8bfc2));import{BoardElementType as _0x309451}from'@univerjs-pro/boards';import{FBoard as _0x4fa8ae}from'@univerjs-pro/boards/facade';import{buildInkCustomShapePayload as _0x4679c0}from'@univerjs-pro/ink';import{Tools as _0xdcd912,generateRandomId as _0x303a91}from'@univerjs/core';import{FEnum as _0x286ee1}from'@univerjs/core/facade';var o=class extends _0x4fa8ae{[_0x1fcd42(0x1f8)](_0x213ff5){const _0x309a5d=_0x1fcd42;let _0x55b55c=s(_0x213ff5);return _0x55b55c&&this[_0x309a5d(0x214)](_0x55b55c,{'insertIndex':_0x213ff5[_0x309a5d(0x202)]})?_0x55b55c:null;}['getInks'](){const _0x53086a=_0x1fcd42;return this['findElements']({'elementType':_0x309451[_0x53086a(0x21e)],'includeHidden':!0x0,'includeLocked':!0x0})['filter'](p);}};function s(_0x2d613b,_0x7698da){const _0x57998e=_0x1fcd42;if(!l(_0x2d613b[_0x57998e(0x1fe)])||_0x2d613b[_0x57998e(0x210)]!==void 0x0&&!l(_0x2d613b[_0x57998e(0x210)])||!u(_0x2d613b[_0x57998e(0x1f0)]))return null;let _0x2a83bc=_0x2d613b[_0x57998e(0x201)]??(_0x7698da==null?void 0x0:_0x7698da[_0x57998e(0x201)]),_0x64426b=_0xdcd912[_0x57998e(0x218)](_0x2d613b[_0x57998e(0x1fe)]),_0x2d9e86=_0x4679c0({'model':_0x64426b,'style':_0x2d613b[_0x57998e(0x1f0)],'tool':_0x2d613b[_0x57998e(0x21c)],'sourceModel':_0x2d613b['sourceModel']?_0xdcd912[_0x57998e(0x218)](_0x2d613b[_0x57998e(0x210)]):_0x64426b}),_0x5d2c26=d(_0x7698da==null?void 0x0:_0x7698da['custom']);return{'id':(_0x7698da==null?void 0x0:_0x7698da['id'])??_0x2d613b['id']??_0x303a91(0x6),'type':_0x309451[_0x57998e(0x21e)],'transform':_0x2d9e86['transform'],'shapeData':_0x2d9e86[_0x57998e(0x20d)],'parentId':_0x2a83bc??void 0x0,'laneId':_0x2d613b['laneId']===void 0x0?_0x7698da==null?void 0x0:_0x7698da[_0x57998e(0x1f5)]:_0x2d613b[_0x57998e(0x1f5)],'custom':{..._0x5d2c26,'ink':_0x2d9e86[_0x57998e(0x1fc)]}};}function c(_0x219e64){const _0xe38c88=_0x1fcd42;return Number[_0xe38c88(0x20f)](_0x219e64['x'])&&Number[_0xe38c88(0x20f)](_0x219e64['y']);}function l(_0x264aed){const _0x509530=_0x1fcd42;if(_0x264aed['kind']===_0x509530(0x205)){let _0x244193=new Set();return _0x264aed[_0x509530(0x207)]['length']>=(_0x264aed[_0x509530(0x1f2)]?0x3:0x2)&&_0x264aed[_0x509530(0x207)]['every'](_0xde8d6c=>{const _0x7bf1b3=_0x509530;let _0x369531=_0xde8d6c['id'][_0x7bf1b3(0x217)]()[_0x7bf1b3(0x213)]>0x0&&!_0x244193['has'](_0xde8d6c['id'])&&c(_0xde8d6c)&&(!_0xde8d6c['in']||c(_0xde8d6c['in']))&&(!_0xde8d6c[_0x7bf1b3(0x1f1)]||c(_0xde8d6c[_0x7bf1b3(0x1f1)]));return _0x244193['add'](_0xde8d6c['id']),_0x369531;});}return _0x264aed[_0x509530(0x208)][_0x509530(0x213)]>=0x2&&_0x264aed[_0x509530(0x208)][_0x509530(0x21b)](_0x4e6498=>c(_0x4e6498)&&Number[_0x509530(0x20f)](_0x4e6498['t'])&&(_0x4e6498[_0x509530(0x21a)]===void 0x0||Number['isFinite'](_0x4e6498[_0x509530(0x21a)])))&&Number[_0x509530(0x20f)](_0x264aed[_0x509530(0x1f7)])&&_0x264aed[_0x509530(0x1f7)]>0x0&&Number[_0x509530(0x20f)](_0x264aed[_0x509530(0x211)])&&_0x264aed[_0x509530(0x211)]>=0x0&&_0x264aed['opacity']<=0x1;}function u(_0x2d40d3){const _0x44393f=_0x1fcd42;return _0x2d40d3===void 0x0||(_0x2d40d3[_0x44393f(0x1f7)]===void 0x0||Number['isFinite'](_0x2d40d3[_0x44393f(0x1f7)])&&_0x2d40d3[_0x44393f(0x1f7)]>0x0)&&(_0x2d40d3[_0x44393f(0x211)]===void 0x0||Number[_0x44393f(0x20f)](_0x2d40d3[_0x44393f(0x211)])&&_0x2d40d3[_0x44393f(0x211)]>=0x0&&_0x2d40d3['opacity']<=0x1);}function _0x4f93(){const _0x1d0262=['brush','style','out','closed','corner','custom','laneId','free','width','insertInk','975636TqdJJt','type','BoardInkPointType','ink','44HjCbwS','model','81ySGRoI','1067814lirrRP','parentId','insertIndex','BoardInkHandleKind','9378180maBNSc','pen','77PNxQdW','anchors','points','989528JgFLxO','extend','symmetric','version','shapeData','smooth','isFinite','sourceModel','opacity','highlighter','length','_addElement','188805ZDzeUC','1735332LrkKyF','trim','deepClone','isArray','pressure','every','tool','28XLdolE','Shape','21TjrkiV','object','62617oubmOt'];_0x4f93=function(){return _0x1d0262;};return _0x4f93();}function d(_0x5befe4){const _0x2fb959=_0x1fcd42;return _0x5befe4&&typeof _0x5befe4==_0x2fb959(0x220)&&!Array[_0x2fb959(0x219)](_0x5befe4)?_0x5befe4:{};}function f(_0x1a97a5){const _0x302c34=_0x1fcd42;let _0xd267cf=d(_0x1a97a5[_0x302c34(0x1f4)])[_0x302c34(0x1fc)];if(!_0xd267cf||typeof _0xd267cf!='object'||Array['isArray'](_0xd267cf))return null;let _0x21766d=_0xd267cf;return _0x21766d[_0x302c34(0x20c)]===0x1&&_0x21766d[_0x302c34(0x210)]&&typeof _0x21766d[_0x302c34(0x210)]==_0x302c34(0x220)?_0x21766d:null;}function p(_0x43b380){const _0x455ac6=_0x1fcd42;return _0x43b380[_0x455ac6(0x1fa)]===_0x309451[_0x455ac6(0x21e)]&&!!f(_0x43b380);}_0x4fa8ae[_0x1fcd42(0x20a)](o);const m={'Pen':_0x1fcd42(0x205),'Brush':_0x1fcd42(0x1ef),'Highlighter':_0x1fcd42(0x212)},h={'Corner':_0x1fcd42(0x1f3),'Smooth':_0x1fcd42(0x20e),'Symmetric':_0x1fcd42(0x20b),'Free':_0x1fcd42(0x1f6)},g={'Anchor':'anchor','In':'in','Out':_0x1fcd42(0x1f1)};var _=class extends _0x286ee1{get['BoardInkTool'](){return m;}get[_0x1fcd42(0x1fb)](){return h;}get[_0x1fcd42(0x203)](){return g;}};function _0x2403(_0x5774cc,_0x50bf18){_0x5774cc=_0x5774cc-0x1ef;const _0x4f93ba=_0x4f93();let _0x240396=_0x4f93ba[_0x5774cc];return _0x240396;}_0x286ee1[_0x1fcd42(0x20a)](_);export{g as BoardInkHandleKind,h as BoardInkPointType,m as BoardInkTool};
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x415bb0=_0x6819;(function(_0x180cb5,_0x458f22){const _0x46593d=_0x6819,_0x4252d8=_0x180cb5();while(!![]){try{const _0x49886e=parseInt(_0x46593d(0x1ff))/0x1*(parseInt(_0x46593d(0x203))/0x2)+-parseInt(_0x46593d(0x21a))/0x3+-parseInt(_0x46593d(0x22e))/0x4+parseInt(_0x46593d(0x1fa))/0x5*(-parseInt(_0x46593d(0x1f7))/0x6)+-parseInt(_0x46593d(0x1f3))/0x7+parseInt(_0x46593d(0x22b))/0x8+parseInt(_0x46593d(0x1ef))/0x9*(parseInt(_0x46593d(0x234))/0xa);if(_0x49886e===_0x458f22)break;else _0x4252d8['push'](_0x4252d8['shift']());}catch(_0x533ee2){_0x4252d8['push'](_0x4252d8['shift']());}}}(_0x459c,0xae6a6));import{ShapeFillEnum as _0x1dac18,ShapeLineCapEnum as _0x44ac4c,ShapeLineJoinEnum as _0x502545,ShapeLineTypeEnum as _0x114259,ShapeTypeEnum as _0x4983b6}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x24cccf}from'@univerjs-pro/license';import{CommandType as _0x14475d,DependentOn as _0x5465f6,ICommandService as _0x1f9af4,IConfigService as _0x5e845a,Inject as _0x5466f7,Injector as _0x4f188d,Plugin as _0x36a75c,UniverInstanceType as _0xf39585,createIdentifier as _0xc958de,merge as _0x55e0b7,toDisposable as _0x3cd973}from'@univerjs/core';const g=0.0001;function _(_0x8067d1){return{'x':_0x8067d1['x'],'y':_0x8067d1['y']};}function v(_0x1ef803){const _0x1d4082=_0x6819;return{..._0x1ef803,'in':_0x1ef803['in']?_(_0x1ef803['in']):void 0x0,'out':_0x1ef803[_0x1d4082(0x21d)]?_(_0x1ef803['out']):void 0x0};}function y(_0x49bdd9){const _0x40f993=_0x6819;return{'kind':_0x40f993(0x227),'closed':_0x49bdd9[_0x40f993(0x239)],'anchors':_0x49bdd9['anchors']['map'](v)};}function b(_0x257b47,_0x439618,_0x13f882){return{'x':_0x257b47['x']+(_0x439618['x']-_0x257b47['x'])*_0x13f882,'y':_0x257b47['y']+(_0x439618['y']-_0x257b47['y'])*_0x13f882};}function x(_0x1c6036,_0x290088){const _0x17db2a=_0x6819;return Math[_0x17db2a(0x23a)](_0x1c6036['x']-_0x290088['x'],_0x1c6036['y']-_0x290088['y']);}function S(_0x91b9){const _0x41afc6=_0x6819;let _0xf444fb=Math[_0x41afc6(0x23a)](_0x91b9['x'],_0x91b9['y']);return _0xf444fb<g?{'x':0x1,'y':0x0}:{'x':_0x91b9['x']/_0xf444fb,'y':_0x91b9['y']/_0xf444fb};}function C(_0x2a64db,_0x32c650,_0x348718=x(_0x2a64db,_0x32c650)){let _0x5b9d9d=S({'x':_0x2a64db['x']-_0x32c650['x'],'y':_0x2a64db['y']-_0x32c650['y']});return{'x':_0x2a64db['x']+_0x5b9d9d['x']*_0x348718,'y':_0x2a64db['y']+_0x5b9d9d['y']*_0x348718};}function w(_0x26d3b7,_0x4d06cb){const _0x185743=_0x6819;let {anchors:_0x25ec72}=_0x26d3b7;return _0x25ec72['length']<0x2||_0x4d06cb<0x0?null:_0x4d06cb<_0x25ec72[_0x185743(0x202)]-0x1?{'startIndex':_0x4d06cb,'endIndex':_0x4d06cb+0x1,'start':_0x25ec72[_0x4d06cb],'end':_0x25ec72[_0x4d06cb+0x1]}:_0x26d3b7['closed']&&_0x4d06cb===_0x25ec72[_0x185743(0x202)]-0x1?{'startIndex':_0x25ec72['length']-0x1,'endIndex':0x0,'start':_0x25ec72[_0x25ec72[_0x185743(0x202)]-0x1],'end':_0x25ec72[0x0]}:null;}function T(_0x285e0f,_0x517885){const _0x5c882a=_0x6819;let _0x488cc=w(_0x285e0f,_0x517885);return _0x488cc?[_0x488cc[_0x5c882a(0x22c)],_0x488cc[_0x5c882a(0x22c)][_0x5c882a(0x21d)]??_0x488cc[_0x5c882a(0x22c)],_0x488cc[_0x5c882a(0x1ec)]['in']??_0x488cc['end'],_0x488cc['end']]:null;}function te(_0x38f2d9,_0x555301){const _0x5653d0=_0x6819;return _0x555301===_0x5653d0(0x20f)?_0x38f2d9:_0x38f2d9[_0x555301]??null;}function E(_0x14d52b,_0x35a020,_0x2f50a3){const _0x4696d2=_0x6819;return _0x2f50a3===_0x4696d2(0x20f)||_0x14d52b[_0x4696d2(0x239)]?!0x0:_0x2f50a3==='in'?_0x35a020>0x0:_0x35a020<_0x14d52b[_0x4696d2(0x1f2)]['length']-0x1;}function D(_0x768323,_0x5db7d9){let [_0x480530,_0x53ca8d,_0x576651,_0x12d749]=_0x768323,_0x2b53dd=b(_0x480530,_0x53ca8d,_0x5db7d9),_0x1d3924=b(_0x53ca8d,_0x576651,_0x5db7d9),_0x226dd5=b(_0x576651,_0x12d749,_0x5db7d9);return b(b(_0x2b53dd,_0x1d3924,_0x5db7d9),b(_0x1d3924,_0x226dd5,_0x5db7d9),_0x5db7d9);}function ne(_0x4d2463,_0x331298){let [_0xcf2c79,_0x3f93eb,_0x2767d0,_0x4549a2]=_0x4d2463,_0x5cff0f=b(_0xcf2c79,_0x3f93eb,_0x331298),_0x2fffaf=b(_0x3f93eb,_0x2767d0,_0x331298),_0x178ffe=b(_0x2767d0,_0x4549a2,_0x331298),_0x2567fc=b(_0x5cff0f,_0x2fffaf,_0x331298),_0x64d260=b(_0x2fffaf,_0x178ffe,_0x331298),_0xcacf5=b(_0x2567fc,_0x64d260,_0x331298);return{'left':[_0xcf2c79,_0x5cff0f,_0x2567fc,_0xcacf5],'right':[_0xcacf5,_0x64d260,_0x178ffe,_0x4549a2]};}function O(_0x1d6f5e,_0x1ca210,_0x4698f6){let _0x22c691=_0x4698f6['x']-_0x1ca210['x'],_0x39f6c3=_0x4698f6['y']-_0x1ca210['y'],_0x4956f0=_0x22c691*_0x22c691+_0x39f6c3*_0x39f6c3,_0x269201=_0x4956f0<=g?0x0:Math['max'](0x0,Math['min'](0x1,((_0x1d6f5e['x']-_0x1ca210['x'])*_0x22c691+(_0x1d6f5e['y']-_0x1ca210['y'])*_0x39f6c3)/_0x4956f0)),_0xb1775a={'x':_0x1ca210['x']+_0x22c691*_0x269201,'y':_0x1ca210['y']+_0x39f6c3*_0x269201};return{'point':_0xb1775a,'ratio':_0x269201,'distance':x(_0x1d6f5e,_0xb1775a)};}function re(_0x46df97,_0x1bc27a,_0x31e09b){return O(_0x46df97,_0x1bc27a,_0x31e09b)['distance']**0x2;}function k(_0x5cd2b2,_0x1b8d40){const _0x591fbb=_0x6819;if(_0x5cd2b2[_0x591fbb(0x202)]<=0x2)return _0x5cd2b2[_0x591fbb(0x1e6)](_);let _0x4fcef5=0x0,_0x5a78ef=0x0,_0xa391ba=_0x5cd2b2[0x0],_0xdc56ed=_0x5cd2b2[_0x5cd2b2['length']-0x1],_0x1b26a5=_0x1b8d40*_0x1b8d40;for(let _0x44f623=0x1;_0x44f623<_0x5cd2b2['length']-0x1;_0x44f623++){let _0x4115db=re(_0x5cd2b2[_0x44f623],_0xa391ba,_0xdc56ed);_0x4115db>_0x4fcef5&&(_0x4fcef5=_0x4115db,_0x5a78ef=_0x44f623);}if(_0x4fcef5<=_0x1b26a5)return[_(_0xa391ba),_(_0xdc56ed)];let _0x823676=k(_0x5cd2b2['slice'](0x0,_0x5a78ef+0x1),_0x1b8d40),_0x5e5570=k(_0x5cd2b2[_0x591fbb(0x1e3)](_0x5a78ef),_0x1b8d40);return[..._0x823676[_0x591fbb(0x1e3)](0x0,-0x1),..._0x5e5570];}function ie(_0x1f25b9,_0x56bd83){let _0x107b73=_0x1f25b9[_0x56bd83],_0x49272f=_0x1f25b9[_0x56bd83+0x1],_0x5a1372=_0x1f25b9[_0x56bd83-0x1]??_0x107b73;return{'x':_0x107b73['x']+(_0x49272f['x']-_0x5a1372['x'])/0x6,'y':_0x107b73['y']+(_0x49272f['y']-_0x5a1372['y'])/0x6};}function A(_0x418783,_0x171446){let _0x32cb68=_0x418783[_0x171446],_0x77416c=_0x418783[_0x171446-0x1],_0x220f48=_0x418783[_0x171446+0x1]??_0x32cb68;return{'x':_0x32cb68['x']-(_0x220f48['x']-_0x77416c['x'])/0x6,'y':_0x32cb68['y']-(_0x220f48['y']-_0x77416c['y'])/0x6};}function j(_0x19099e,_0x5b10be){const _0x1aa845=_0x6819;let _0x1d59d1=_0x19099e[_0x1aa845(0x1f2)][_0x5b10be],_0x3c0940=_0x19099e['anchors'][_0x5b10be-0x1]??(_0x19099e['closed']?_0x19099e[_0x1aa845(0x1f2)][_0x19099e[_0x1aa845(0x1f2)][_0x1aa845(0x202)]-0x1]:null),_0x4b04e0=_0x19099e[_0x1aa845(0x1f2)][_0x5b10be+0x1]??(_0x19099e['closed']?_0x19099e[_0x1aa845(0x1f2)][0x0]:null),_0x301cc8=_0x3c0940&&_0x4b04e0?S({'x':_0x4b04e0['x']-_0x3c0940['x'],'y':_0x4b04e0['y']-_0x3c0940['y']}):_0x4b04e0?S({'x':_0x4b04e0['x']-_0x1d59d1['x'],'y':_0x4b04e0['y']-_0x1d59d1['y']}):_0x3c0940?S({'x':_0x1d59d1['x']-_0x3c0940['x'],'y':_0x1d59d1['y']-_0x3c0940['y']}):{'x':0x1,'y':0x0},_0x45ea3f=_0x3c0940&&_0x4b04e0?Math[_0x1aa845(0x1ea)](0x32,x(_0x3c0940,_0x4b04e0)/0x4):0x32;return{'in':{'x':_0x1d59d1['x']-_0x301cc8['x']*_0x45ea3f,'y':_0x1d59d1['y']-_0x301cc8['y']*_0x45ea3f},'out':{'x':_0x1d59d1['x']+_0x301cc8['x']*_0x45ea3f,'y':_0x1d59d1['y']+_0x301cc8['y']*_0x45ea3f}};}function M(_0x4fa071,_0x1bb23f){const _0x2eab9a=_0x6819;let _0x5905d4=_0x4fa071[_0x1bb23f],_0xba51da=_0x1bb23f==='in'?_0x2eab9a(0x21d):'in',_0x2c3bde=_0x4fa071[_0xba51da];_0x5905d4&&(_0x4fa071[_0x2eab9a(0x225)]==='symmetric'?_0x4fa071[_0xba51da]=C(_0x4fa071,_0x5905d4):_0x4fa071['pointType']===_0x2eab9a(0x1fb)&&(_0x4fa071[_0xba51da]=C(_0x4fa071,_0x5905d4,_0x2c3bde?x(_0x4fa071,_0x2c3bde):x(_0x4fa071,_0x5905d4))));}function ae(_0x51c546,_0x1dd1f2){const _0x53f3c1=_0x6819;let _0x132bb4=y(_0x51c546);return!_0x1dd1f2||_0x132bb4['closed']||_0x132bb4['anchors'][_0x53f3c1(0x202)]===0x0||_0x132bb4['anchors'][_0x53f3c1(0x210)]({'id':'__ink-preview-anchor__','x':_0x1dd1f2['x'],'y':_0x1dd1f2['y'],'pointType':'corner'}),_0x132bb4;}function oe(_0x92a154,_0x544b59={}){const _0x1d909c=_0x6819;let _0x5aaf65=Math[_0x1d909c(0x1ea)](0x0,_0x544b59[_0x1d909c(0x1e2)]??Math[_0x1d909c(0x1ea)](0x4,_0x92a154[_0x1d909c(0x1fc)]*0.35)),_0x4ba282=_0x544b59['createId']??(_0x359149=>_0x1d909c(0x236)+_0x359149),_0xe8e1c7=k(_0x92a154[_0x1d909c(0x223)],_0x5aaf65),_0x26df85=_0xe8e1c7[_0x1d909c(0x1e6)]((_0xce105a,_0x41d495)=>({'id':_0x4ba282(_0x41d495),'x':_0xce105a['x'],'y':_0xce105a['y'],'pointType':_0x1d909c(0x213)}));for(let _0x2882bc=0x0;_0x2882bc<_0x26df85[_0x1d909c(0x202)]-0x1;_0x2882bc++)_0x26df85[_0x2882bc]['out']=ie(_0xe8e1c7,_0x2882bc),_0x26df85[_0x2882bc+0x1]['in']=A(_0xe8e1c7,_0x2882bc+0x1);return{'kind':_0x1d909c(0x227),'closed':!0x1,'anchors':_0x26df85};}function se(_0x529bc9,_0x522d3f,_0xe06ae){const _0x794ed9=_0x6819;let _0x5270fa=null,_0x48b92a=[_0x794ed9(0x20f),'in',_0x794ed9(0x21d)];return _0x529bc9[_0x794ed9(0x1f2)][_0x794ed9(0x238)]((_0x590172,_0x153cf7)=>{const _0x2a1b89=_0x794ed9;_0x48b92a[_0x2a1b89(0x238)](_0x5c96ba=>{const _0x47f6cc=_0x2a1b89;if(!E(_0x529bc9,_0x153cf7,_0x5c96ba))return;let _0x24cec1=te(_0x590172,_0x5c96ba);if(!_0x24cec1)return;let _0x5c5600=x(_0x522d3f,_0x24cec1);_0x5c5600>_0xe06ae||_0x5270fa&&_0x5c5600>=_0x5270fa[_0x47f6cc(0x207)]||(_0x5270fa={'handle':{'kind':_0x5c96ba,'anchorId':_0x590172['id']},'point':_(_0x24cec1),'distance':_0x5c5600});});}),_0x5270fa;}function ce(_0x3a2076,_0x45c51e,_0x4ff9b5){const _0x32062b=_0x6819;let _0x27599e=null,_0x50fb85=_0x3a2076[_0x32062b(0x239)]?_0x3a2076[_0x32062b(0x1f2)][_0x32062b(0x202)]:Math[_0x32062b(0x1ea)](0x0,_0x3a2076[_0x32062b(0x1f2)][_0x32062b(0x202)]-0x1);for(let _0x328c9f=0x0;_0x328c9f<_0x50fb85;_0x328c9f++){let _0x452e07=T(_0x3a2076,_0x328c9f);if(!_0x452e07)continue;let _0x5ac010=D(_0x452e07,0x0);for(let _0x5b6506=0x1;_0x5b6506<=0x20;_0x5b6506++){let _0x43bd3d=D(_0x452e07,_0x5b6506/0x20),_0x369514=O(_0x45c51e,_0x5ac010,_0x43bd3d),_0x506131=(_0x5b6506-0x1+_0x369514['ratio'])/0x20;(!_0x27599e||_0x369514[_0x32062b(0x207)]<_0x27599e[_0x32062b(0x207)])&&(_0x27599e={'segmentIndex':_0x328c9f,'t':_0x506131,'point':_0x369514[_0x32062b(0x217)],'distance':_0x369514[_0x32062b(0x207)]}),_0x5ac010=_0x43bd3d;}}return _0x27599e&&_0x27599e[_0x32062b(0x207)]<=_0x4ff9b5?_0x27599e:null;}function _0x459c(){const _0x2406cd=['slice','Rect','splice','map','SolidFill','corner','opacity','max','min','end','decorate','height','387uedtBb','setConfig','symmetric','anchors','5091625vbERQC','pluginName','_injector','find','150gMeCDw','get','_config','220340EqtQcL','smooth','width','fillColor','function','29MallUq','ink.config','add','length','51230fhYhVv','createCustomShape','version','segmentIndex','distance','endIndex','beginInkMode','kind','object','_adapters','left','symbol','anchor','push','_configService','abs','free','prototype','constructor','NoFill','point','defineProperty','top','2983575LeMXjH','1.3.0','tool','out','string','#f54a45','Round','join','onStarting','points','norm','pointType','@univerjs-pro/ink','pen','toPrimitive','right','registerCommand','3838744HPNNaB','start','UNIVER_UNKNOWN','2888596EEmQez','packageName','default','anchorId','startIndex','color','706390xvKctY','findIndex','ink-centerline-','_commandService','forEach','closed','hypot','getOwnPropertyDescriptor','ink.host-adapter.service','registerAdapter','type','sqrt','UNIVER_INK_PLUGIN','round','tolerance'];_0x459c=function(){return _0x2406cd;};return _0x459c();}function le(_0x102709,_0x3e90ee,_0x300910){const _0x3d74af=_0x6819;let _0x3679a7=y(_0x102709),_0x347da6=w(_0x3679a7,_0x3e90ee['segmentIndex']),_0x2e5785=T(_0x3679a7,_0x3e90ee[_0x3d74af(0x206)]);if(!_0x347da6||!_0x2e5785)return _0x3679a7;let _0x3654c0=ne(_0x2e5785,Math[_0x3d74af(0x1ea)](0x0,Math[_0x3d74af(0x1eb)](0x1,_0x3e90ee['t']))),_0x50bed8={'id':_0x300910(),'x':_0x3654c0[_0x3d74af(0x20d)][0x3]['x'],'y':_0x3654c0[_0x3d74af(0x20d)][0x3]['y'],'in':_(_0x3654c0['left'][0x2]),'out':_(_0x3654c0['right'][0x1]),'pointType':_0x3d74af(0x213)};return _0x3679a7[_0x3d74af(0x1f2)][_0x347da6[_0x3d74af(0x232)]][_0x3d74af(0x21d)]=_(_0x3654c0[_0x3d74af(0x20d)][0x1]),_0x3679a7[_0x3d74af(0x1f2)][_0x347da6[_0x3d74af(0x208)]]['in']=_(_0x3654c0[_0x3d74af(0x229)][0x2]),_0x3679a7[_0x3d74af(0x1f2)][_0x3d74af(0x1e5)](_0x347da6['startIndex']+0x1,0x0,_0x50bed8),_0x3679a7;}function ue(_0x4f532f,_0x3ca25f){const _0x20bb52=_0x6819;let _0x2cd613=y(_0x4f532f);return _0x2cd613[_0x20bb52(0x1f2)]=_0x2cd613[_0x20bb52(0x1f2)]['filter'](_0x2ba993=>_0x2ba993['id']!==_0x3ca25f),_0x2cd613[_0x20bb52(0x239)]&&_0x2cd613[_0x20bb52(0x1f2)][_0x20bb52(0x202)]<0x3&&(_0x2cd613[_0x20bb52(0x239)]=!0x1),_0x2cd613;}function N(_0x2461c2,_0x4f7018,_0xf79916){const _0xc801c2=_0x6819;let _0x2899ac=y(_0x2461c2),_0x7c42c=_0x2899ac['anchors'][_0xc801c2(0x235)](_0x7b1703=>_0x7b1703['id']===_0x4f7018),_0x336976=_0x2899ac['anchors'][_0x7c42c];if(!_0x336976)return _0x2899ac;if(_0x336976[_0xc801c2(0x225)]=_0xf79916,_0xf79916===_0xc801c2(0x1e8))return delete _0x336976['in'],delete _0x336976['out'],_0x2899ac;let _0x379938=j(_0x2899ac,_0x7c42c);if(_0x336976['in']=_0x336976['in']?_(_0x336976['in']):_0x379938['in'],_0x336976[_0xc801c2(0x21d)]=_0x336976[_0xc801c2(0x21d)]?_(_0x336976[_0xc801c2(0x21d)]):_0x379938[_0xc801c2(0x21d)],_0xf79916===_0xc801c2(0x1f1)){let _0x33eb82=Math[_0xc801c2(0x1ea)](x(_0x336976,_0x336976['in']),x(_0x336976,_0x336976[_0xc801c2(0x21d)]),0x32),_0x22f2cb=S({'x':_0x336976[_0xc801c2(0x21d)]['x']-_0x336976['x'],'y':_0x336976[_0xc801c2(0x21d)]['y']-_0x336976['y']});_0x336976[_0xc801c2(0x21d)]={'x':_0x336976['x']+_0x22f2cb['x']*_0x33eb82,'y':_0x336976['y']+_0x22f2cb['y']*_0x33eb82},_0x336976['in']={'x':_0x336976['x']-_0x22f2cb['x']*_0x33eb82,'y':_0x336976['y']-_0x22f2cb['y']*_0x33eb82};}else _0xf79916==='smooth'&&M(_0x336976,'out');return _0x2899ac;}function P(_0x55ea13,_0x497cdc){const _0x2b544c=_0x6819;let _0xc7604a=_0x55ea13[_0x2b544c(0x1f2)][_0x2b544c(0x1f6)](_0x4a625d=>_0x4a625d['id']===_0x497cdc),_0x2f9a50=(_0xc7604a==null?void 0x0:_0xc7604a['pointType'])??'corner';return N(_0x55ea13,_0x497cdc,_0x2f9a50===_0x2b544c(0x1e8)?_0x2b544c(0x1fb):_0x2f9a50===_0x2b544c(0x1fb)?_0x2b544c(0x1f1):_0x2f9a50===_0x2b544c(0x1f1)?_0x2b544c(0x213):_0x2b544c(0x1e8));}function F(_0x57cec5,_0x451d29,_0x1297b5){const _0x520c0a=_0x6819;let _0x5c8a4d=y(_0x57cec5),_0x52891a=_0x5c8a4d[_0x520c0a(0x1f2)][_0x520c0a(0x1f6)](_0x58af7b=>_0x58af7b['id']===_0x451d29[_0x520c0a(0x231)]);if(!_0x52891a)return _0x5c8a4d;if(_0x451d29['kind']==='anchor'){let _0x27ad05={'x':_0x1297b5['x']-_0x52891a['x'],'y':_0x1297b5['y']-_0x52891a['y']};return _0x52891a['x']=_0x1297b5['x'],_0x52891a['y']=_0x1297b5['y'],_0x52891a['in']&&={'x':_0x52891a['in']['x']+_0x27ad05['x'],'y':_0x52891a['in']['y']+_0x27ad05['y']},_0x52891a['out']&&={'x':_0x52891a[_0x520c0a(0x21d)]['x']+_0x27ad05['x'],'y':_0x52891a[_0x520c0a(0x21d)]['y']+_0x27ad05['y']},_0x5c8a4d;}return _0x52891a[_0x451d29[_0x520c0a(0x20a)]]=_(_0x1297b5),_0x52891a[_0x520c0a(0x225)]===_0x520c0a(0x1e8)&&(_0x52891a['pointType']=_0x520c0a(0x213)),M(_0x52891a,_0x451d29[_0x520c0a(0x20a)]),_0x5c8a4d;}const I=1e-9;function L(_0x5f4e20){const _0x553689=_0x6819;let _0x3c8be8=Math[_0x553689(0x1e1)](_0x5f4e20*0x2710)/0x2710;return Object['is'](_0x3c8be8,-0x0)?'0':String(_0x3c8be8);}function R(_0x3fdd82){return L(_0x3fdd82['x'])+'\x20'+L(_0x3fdd82['y']);}function z(_0x384abc,_0x2b2789){return{'x':_0x384abc['x']-_0x2b2789['x'],'y':_0x384abc['y']-_0x2b2789['y']};}function B(_0x3169e6,_0x3d90df,_0x56ce7e,_0x20a1ab,_0x3729ed){let _0xc7d712=0x1-_0x3729ed;return{'x':_0xc7d712*_0xc7d712*_0xc7d712*_0x3169e6['x']+0x3*_0xc7d712*_0xc7d712*_0x3729ed*_0x3d90df['x']+0x3*_0xc7d712*_0x3729ed*_0x3729ed*_0x56ce7e['x']+_0x3729ed*_0x3729ed*_0x3729ed*_0x20a1ab['x'],'y':_0xc7d712*_0xc7d712*_0xc7d712*_0x3169e6['y']+0x3*_0xc7d712*_0xc7d712*_0x3729ed*_0x3d90df['y']+0x3*_0xc7d712*_0x3729ed*_0x3729ed*_0x56ce7e['y']+_0x3729ed*_0x3729ed*_0x3729ed*_0x20a1ab['y']};}function V(_0x3accad,_0x12f28e,_0xfa6d6f,_0x50a31e){const _0x1e3de2=_0x6819;let _0x1f169c=-_0x3accad+0x3*_0x12f28e-0x3*_0xfa6d6f+_0x50a31e,_0x1f9632=0x3*_0x3accad-0x6*_0x12f28e+0x3*_0xfa6d6f,_0x39daf7=-0x3*_0x3accad+0x3*_0x12f28e,_0x174195=[];if(Math[_0x1e3de2(0x212)](_0x1f169c)<I){if(Math[_0x1e3de2(0x212)](_0x1f9632)<I)return _0x174195;let _0x57958b=-_0x39daf7/(0x2*_0x1f9632);return _0x57958b>0x0&&_0x57958b<0x1&&_0x174195[_0x1e3de2(0x210)](_0x57958b),_0x174195;}let _0x1e09ba=_0x1f9632*_0x1f9632-0x3*_0x1f169c*_0x39daf7;if(_0x1e09ba<0x0)return _0x174195;let _0x459910=Math[_0x1e3de2(0x1df)](Math['max'](0x0,_0x1e09ba)),_0x47188a=(-_0x1f9632+_0x459910)/(0x3*_0x1f169c),_0x22832e=(-_0x1f9632-_0x459910)/(0x3*_0x1f169c);return _0x47188a>0x0&&_0x47188a<0x1&&_0x174195[_0x1e3de2(0x210)](_0x47188a),_0x22832e>0x0&&_0x22832e<0x1&&Math[_0x1e3de2(0x212)](_0x22832e-_0x47188a)>I&&_0x174195[_0x1e3de2(0x210)](_0x22832e),_0x174195;}function H(_0x10ec3e,_0x36e2ca,_0x5c166b,_0x51d046,_0x18f010){const _0x4bf6ab=_0x6819;_0x10ec3e[_0x4bf6ab(0x210)](_0x36e2ca,_0x18f010),new Set([...V(_0x36e2ca['x'],_0x5c166b['x'],_0x51d046['x'],_0x18f010['x']),...V(_0x36e2ca['y'],_0x5c166b['y'],_0x51d046['y'],_0x18f010['y'])])[_0x4bf6ab(0x238)](_0x30b220=>{const _0x101ab3=_0x4bf6ab;_0x10ec3e[_0x101ab3(0x210)](B(_0x36e2ca,_0x5c166b,_0x51d046,_0x18f010,_0x30b220));});}function U(_0x3ad4c2){const _0xd44ef8=_0x6819;let _0x796ad3=_0x3ad4c2[_0xd44ef8(0x1f2)];if(_0x796ad3[_0xd44ef8(0x202)]<=0x1)return _0x796ad3;let _0x26a0d1=[];for(let _0x1b6cc6=0x1;_0x1b6cc6<_0x796ad3[_0xd44ef8(0x202)];_0x1b6cc6++){let _0x563af2=_0x796ad3[_0x1b6cc6-0x1],_0x5f11c8=_0x796ad3[_0x1b6cc6];H(_0x26a0d1,_0x563af2,_0x563af2[_0xd44ef8(0x21d)]??_0x563af2,_0x5f11c8['in']??_0x5f11c8,_0x5f11c8);}if(_0x3ad4c2[_0xd44ef8(0x239)]&&_0x796ad3['length']>0x1){let _0x1dad50=_0x796ad3[_0x796ad3[_0xd44ef8(0x202)]-0x1],_0x18260f=_0x796ad3[0x0];H(_0x26a0d1,_0x1dad50,_0x1dad50[_0xd44ef8(0x21d)]??_0x1dad50,_0x18260f['in']??_0x18260f,_0x18260f);}return _0x26a0d1;}function de(_0x5e8d45){const _0xdd7e73=_0x6819;let _0x4798e7=_0x5e8d45['points'];if(_0x4798e7[_0xdd7e73(0x202)]<=0x1)return _0x4798e7;let _0x1d6323=[];for(let _0x5466f3=0x0;_0x5466f3<_0x4798e7['length']-0x1;_0x5466f3++){let _0x72044a=_0x4798e7[_0x5466f3],_0x289d15=_0x4798e7[_0x5466f3+0x1],_0x2bfe41=_0x4798e7[_0x5466f3-0x1]??_0x72044a,_0x5c3359=_0x4798e7[_0x5466f3+0x2]??_0x289d15;H(_0x1d6323,_0x72044a,{'x':_0x72044a['x']+(_0x289d15['x']-_0x2bfe41['x'])/0x6,'y':_0x72044a['y']+(_0x289d15['y']-_0x2bfe41['y'])/0x6},{'x':_0x289d15['x']-(_0x5c3359['x']-_0x72044a['x'])/0x6,'y':_0x289d15['y']-(_0x5c3359['y']-_0x72044a['y'])/0x6},_0x289d15);}return _0x1d6323;}function fe(_0x21e7f2){const _0x5a8bc7=_0x6819;return _0x21e7f2[_0x5a8bc7(0x20a)]===_0x5a8bc7(0x227)?U(_0x21e7f2):de(_0x21e7f2);}function W(_0x5d3e24){const _0x220f85=_0x6819;let _0x5ac383=Math[_0x220f85(0x1e1)](_0x5d3e24*0x2710)/0x2710;return Object['is'](_0x5ac383,-0x0)?0x0:_0x5ac383;}function G(_0x319767){const _0x47f56f=_0x6819;let _0x5d5096=fe(_0x319767);if(_0x5d5096[_0x47f56f(0x202)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x429b1b=Math['min'](..._0x5d5096['map'](_0x6b23ab=>_0x6b23ab['x'])),_0x273b2b=Math[_0x47f56f(0x1eb)](..._0x5d5096['map'](_0x5d088e=>_0x5d088e['y'])),_0x1b0a3a=Math[_0x47f56f(0x1ea)](..._0x5d5096[_0x47f56f(0x1e6)](_0x1fb595=>_0x1fb595['x'])),_0x1ee842=Math['max'](..._0x5d5096['map'](_0x2384f8=>_0x2384f8['y']));return{'left':W(_0x429b1b),'top':W(_0x273b2b),'width':W(Math[_0x47f56f(0x1ea)](0x1,_0x1b0a3a-_0x429b1b)),'height':W(Math[_0x47f56f(0x1ea)](0x1,_0x1ee842-_0x273b2b))};}function pe(_0x3355ea,_0x3ae24e){const _0x1e0d8c=_0x6819;let _0x16c97e=_0x3355ea[_0x1e0d8c(0x1f2)];if(_0x16c97e['length']===0x0)return'';let _0x4e528c=['M\x20'+R(z(_0x16c97e[0x0],_0x3ae24e))];for(let _0x48bb33=0x1;_0x48bb33<_0x16c97e['length'];_0x48bb33++){let _0xd709a4=_0x16c97e[_0x48bb33-0x1],_0x5a668d=_0x16c97e[_0x48bb33],_0x338bad=_0xd709a4[_0x1e0d8c(0x21d)]??_0xd709a4,_0x58d273=_0x5a668d['in']??_0x5a668d;_0x4e528c[_0x1e0d8c(0x210)]('C\x20'+R(z(_0x338bad,_0x3ae24e))+'\x20'+R(z(_0x58d273,_0x3ae24e))+'\x20'+R(z(_0x5a668d,_0x3ae24e)));}if(_0x3355ea['closed']&&_0x16c97e[_0x1e0d8c(0x202)]>0x1){let _0x1f0b82=_0x16c97e[_0x16c97e['length']-0x1],_0x5c2519=_0x16c97e[0x0],_0x4a1d2a=_0x1f0b82[_0x1e0d8c(0x21d)]??_0x1f0b82,_0x18429d=_0x5c2519['in']??_0x5c2519;_0x4e528c[_0x1e0d8c(0x210)]('C\x20'+R(z(_0x4a1d2a,_0x3ae24e))+'\x20'+R(z(_0x18429d,_0x3ae24e))+'\x20'+R(z(_0x5c2519,_0x3ae24e))),_0x4e528c[_0x1e0d8c(0x210)]('Z');}return _0x4e528c[_0x1e0d8c(0x221)]('\x20');}function me(_0x68b3f4,_0x5bd212){const _0x4ee75e=_0x6819;let _0x2ec0ec=_0x68b3f4[_0x4ee75e(0x223)]['map'](_0x54a1ef=>z(_0x54a1ef,_0x5bd212));if(_0x2ec0ec[_0x4ee75e(0x202)]===0x0)return'';if(_0x2ec0ec[_0x4ee75e(0x202)]===0x1)return'M\x20'+R(_0x2ec0ec[0x0]);let _0x94b7da=['M\x20'+R(_0x2ec0ec[0x0])];for(let _0x30a07b=0x0;_0x30a07b<_0x2ec0ec[_0x4ee75e(0x202)]-0x1;_0x30a07b++){let _0x45bd2b=_0x2ec0ec[_0x30a07b],_0x1135c4=_0x2ec0ec[_0x30a07b+0x1],_0x5aeddf=_0x2ec0ec[_0x30a07b-0x1]??_0x45bd2b,_0x1e6e63=_0x2ec0ec[_0x30a07b+0x2]??_0x1135c4,_0x13e5f4={'x':_0x45bd2b['x']+(_0x1135c4['x']-_0x5aeddf['x'])/0x6,'y':_0x45bd2b['y']+(_0x1135c4['y']-_0x5aeddf['y'])/0x6},_0x2a03f4={'x':_0x1135c4['x']-(_0x1e6e63['x']-_0x45bd2b['x'])/0x6,'y':_0x1135c4['y']-(_0x1e6e63['y']-_0x45bd2b['y'])/0x6};_0x94b7da['push']('C\x20'+R(_0x13e5f4)+'\x20'+R(_0x2a03f4)+'\x20'+R(_0x1135c4));}return _0x94b7da[_0x4ee75e(0x221)]('\x20');}function he(_0x3c191d,_0x5b1099){const _0x359914=_0x6819;return _0x3c191d['kind']===_0x359914(0x227)?pe(_0x3c191d,_0x5b1099):me(_0x3c191d,_0x5b1099);}function ge(_0x3672d3,_0x34d95d){const _0xf7f6d4=_0x6819;return _0x34d95d!=null&&_0x34d95d[_0xf7f6d4(0x233)]?_0x34d95d[_0xf7f6d4(0x233)]:_0x3672d3[_0xf7f6d4(0x20a)]===_0xf7f6d4(0x227)?_0xf7f6d4(0x21f):_0x3672d3[_0xf7f6d4(0x233)];}function _e(_0xedd486,_0xfaae38){const _0x25b4e3=_0x6819;return(_0xfaae38==null?void 0x0:_0xfaae38[_0x25b4e3(0x1fc)])===void 0x0?_0xedd486['kind']===_0x25b4e3(0x227)?0x2:_0xedd486['width']:_0xfaae38['width'];}function ve(_0x280d41,_0x553db6){const _0x3090cd=_0x6819;return(_0x553db6==null?void 0x0:_0x553db6['opacity'])===void 0x0?_0x280d41[_0x3090cd(0x20a)]==='pen'?void 0x0:_0x280d41[_0x3090cd(0x1e9)]:_0x553db6[_0x3090cd(0x1e9)];}function ye(_0xc331f3,_0xedcdac){const _0x5127f8=_0x6819;let _0x8f487c=G(_0xc331f3),_0x5aa14f=he(_0xc331f3,{'x':_0x8f487c[_0x5127f8(0x20d)],'y':_0x8f487c[_0x5127f8(0x219)]}),_0x36fdc6=_0xc331f3['kind']===_0x5127f8(0x227)&&_0xc331f3['closed'],_0x481abd=_0xedcdac==null?void 0x0:_0xedcdac[_0x5127f8(0x1fd)];return{'shapeType':_0x4983b6[_0x5127f8(0x1e4)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x8f487c[_0x5127f8(0x1fc)],'h':_0x8f487c[_0x5127f8(0x1ee)],'fill':_0x36fdc6?_0x5127f8(0x224):'none','stroke':!0x0,'data':_0x5aa14f,'dataArray':be(_0xc331f3,{'x':_0x8f487c['left'],'y':_0x8f487c[_0x5127f8(0x219)]})}]},'fill':_0x36fdc6&&_0x481abd?{'color':_0x481abd,'fillType':_0x1dac18[_0x5127f8(0x1e7)]}:{'fillType':_0x1dac18[_0x5127f8(0x216)]},'stroke':{'color':ge(_0xc331f3,_0xedcdac),'width':_e(_0xc331f3,_0xedcdac),'opacity':ve(_0xc331f3,_0xedcdac),'lineStrokeType':_0x114259['SolidLine'],'capType':_0x44ac4c[_0x5127f8(0x220)],'lineJoinType':_0x502545[_0x5127f8(0x220)]}};}function K(_0x50c5ca,_0x14329b){return{'x':_0x50c5ca['x']-_0x14329b['x'],'y':_0x50c5ca['y']-_0x14329b['y']};}function be(_0x191ca2,_0x3a01b2){const _0x1780e2=_0x6819;if(_0x191ca2['kind']===_0x1780e2(0x227)){let _0xaf3532=_0x191ca2[_0x1780e2(0x1f2)];if(_0xaf3532['length']===0x0)return[];let _0x5c1f12=K(_0xaf3532[0x0],_0x3a01b2),_0x41a368=[{'command':'M','points':[_0x5c1f12['x'],_0x5c1f12['y']]}];for(let _0x3ccd41=0x1;_0x3ccd41<_0xaf3532[_0x1780e2(0x202)];_0x3ccd41++){let _0x36b1d7=_0xaf3532[_0x3ccd41-0x1],_0x312444=_0xaf3532[_0x3ccd41],_0x174790=K(_0x36b1d7[_0x1780e2(0x21d)]??_0x36b1d7,_0x3a01b2),_0x157202=K(_0x312444['in']??_0x312444,_0x3a01b2),_0x525739=K(_0x312444,_0x3a01b2);_0x41a368[_0x1780e2(0x210)]({'command':'C','points':[_0x174790['x'],_0x174790['y'],_0x157202['x'],_0x157202['y'],_0x525739['x'],_0x525739['y']]});}if(_0x191ca2[_0x1780e2(0x239)]&&_0xaf3532[_0x1780e2(0x202)]>0x1){let _0x59f366=_0xaf3532[_0xaf3532[_0x1780e2(0x202)]-0x1],_0x103676=_0xaf3532[0x0],_0x377ed6=K(_0x59f366[_0x1780e2(0x21d)]??_0x59f366,_0x3a01b2),_0x208648=K(_0x103676['in']??_0x103676,_0x3a01b2),_0x32f5fc=K(_0x103676,_0x3a01b2);_0x41a368['push']({'command':'C','points':[_0x377ed6['x'],_0x377ed6['y'],_0x208648['x'],_0x208648['y'],_0x32f5fc['x'],_0x32f5fc['y']]}),_0x41a368['push']({'command':'z','points':[]});}return _0x41a368;}let _0x5840e5=_0x191ca2['points'][_0x1780e2(0x1e6)](_0x337a48=>K(_0x337a48,_0x3a01b2));if(_0x5840e5[_0x1780e2(0x202)]===0x0)return[];let _0x878ecf=[{'command':'M','points':[_0x5840e5[0x0]['x'],_0x5840e5[0x0]['y']]}];for(let _0x3bf0be=0x0;_0x3bf0be<_0x5840e5[_0x1780e2(0x202)]-0x1;_0x3bf0be++){let _0x3ccb1e=_0x5840e5[_0x3bf0be],_0x16a2fd=_0x5840e5[_0x3bf0be+0x1],_0x5d82b0=_0x5840e5[_0x3bf0be-0x1]??_0x3ccb1e,_0x59d933=_0x5840e5[_0x3bf0be+0x2]??_0x16a2fd,_0x453599={'x':_0x3ccb1e['x']+(_0x16a2fd['x']-_0x5d82b0['x'])/0x6,'y':_0x3ccb1e['y']+(_0x16a2fd['y']-_0x5d82b0['y'])/0x6},_0x11a80a={'x':_0x16a2fd['x']-(_0x59d933['x']-_0x3ccb1e['x'])/0x6,'y':_0x16a2fd['y']-(_0x59d933['y']-_0x3ccb1e['y'])/0x6};_0x878ecf[_0x1780e2(0x210)]({'command':'C','points':[_0x453599['x'],_0x453599['y'],_0x11a80a['x'],_0x11a80a['y'],_0x16a2fd['x'],_0x16a2fd['y']]});}return _0x878ecf;}function xe(_0x23dd29){const _0x8340a2=_0x6819;let {model:_0x4ac5ce,sourceModel:_0x589ecb=_0x4ac5ce,style:_0x245c29}=_0x23dd29,_0x296a7=_0x23dd29[_0x8340a2(0x21c)]??_0x4ac5ce['kind'],_0x30883a=G(_0x4ac5ce),_0x4bb895=_0x4ac5ce[_0x8340a2(0x20a)]===_0x8340a2(0x227)&&_0x296a7!==_0x8340a2(0x227)?_0x4ac5ce:void 0x0;return{'transform':{..._0x30883a,'rotation':0x0},'shapeData':ye(_0x4ac5ce,_0x245c29),'ink':{'version':0x1,'tool':_0x296a7,'sourceModel':_0x589ecb,..._0x4bb895?{'editModel':_0x4bb895}:{},'normalizedBounds':_0x30883a}};}var Se=_0x415bb0(0x226),Ce=_0x415bb0(0x21b);function q(_0x3694a5){'@babel/helpers - typeof';const _0x40d004=_0x415bb0;return q=typeof Symbol==_0x40d004(0x1fe)&&typeof Symbol['iterator']==_0x40d004(0x20e)?function(_0x3e3ec5){return typeof _0x3e3ec5;}:function(_0x1e3176){const _0x5625ec=_0x40d004;return _0x1e3176&&typeof Symbol==_0x5625ec(0x1fe)&&_0x1e3176[_0x5625ec(0x215)]===Symbol&&_0x1e3176!==Symbol[_0x5625ec(0x214)]?_0x5625ec(0x20e):typeof _0x1e3176;},q(_0x3694a5);}function we(_0x5ea823,_0xde1724){const _0x5738c7=_0x415bb0;if(q(_0x5ea823)!='object'||!_0x5ea823)return _0x5ea823;var _0x475d01=_0x5ea823[Symbol[_0x5738c7(0x228)]];if(_0x475d01!==void 0x0){var _0x106e39=_0x475d01['call'](_0x5ea823,_0xde1724||_0x5738c7(0x230));if(q(_0x106e39)!=_0x5738c7(0x20b))return _0x106e39;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0xde1724===_0x5738c7(0x21e)?String:Number)(_0x5ea823);}function _0x6819(_0x1b8eaa,_0x58c4db){_0x1b8eaa=_0x1b8eaa-0x1db;const _0x459cca=_0x459c();let _0x681933=_0x459cca[_0x1b8eaa];return _0x681933;}function J(_0x59f14e){const _0x156d4d=_0x415bb0;var _0x5dd1dc=we(_0x59f14e,_0x156d4d(0x21e));return q(_0x5dd1dc)==_0x156d4d(0x20e)?_0x5dd1dc:_0x5dd1dc+'';}function Y(_0x24f47a,_0x2aab8f,_0x3e1bd7){const _0x2894ff=_0x415bb0;return(_0x2aab8f=J(_0x2aab8f))in _0x24f47a?Object[_0x2894ff(0x218)](_0x24f47a,_0x2aab8f,{'value':_0x3e1bd7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x24f47a[_0x2aab8f]=_0x3e1bd7,_0x24f47a;}const X=_0xc958de(_0x415bb0(0x1dc));var Te=class{constructor(){const _0x177148=_0x415bb0;Y(this,_0x177148(0x20c),[]);}[_0x415bb0(0x1dd)](_0x8fff2c){const _0x54f75d=_0x415bb0;return this[_0x54f75d(0x20c)][_0x54f75d(0x210)](_0x8fff2c),_0x3cd973(()=>{const _0x4ecb19=_0x54f75d;let _0x4f443b=this[_0x4ecb19(0x20c)]['indexOf'](_0x8fff2c);_0x4f443b>=0x0&&this[_0x4ecb19(0x20c)][_0x4ecb19(0x1e5)](_0x4f443b,0x1);});}['beginInkMode'](_0x4a55ac){const _0x13349f=_0x415bb0;for(let _0x31f79c of this['_adapters'])if(_0x31f79c[_0x13349f(0x209)](_0x4a55ac))return!0x0;return!0x1;}async[_0x415bb0(0x204)](_0x3a07fe){const _0x4adb16=_0x415bb0;for(let _0x31c534 of this['_adapters'])if(_0x31c534[_0x4adb16(0x204)]&&await _0x31c534[_0x4adb16(0x204)](_0x3a07fe))return!0x0;return!0x1;}};const Ee={'id':'ink.operation.start','type':_0x14475d['OPERATION'],'handler':(_0x263725,_0x282dc7)=>_0x282dc7?_0x263725[_0x415bb0(0x1f8)](X)[_0x415bb0(0x209)](_0x282dc7):!0x1},Z={};function Q(_0x2ce40c,_0x538331){return function(_0x24f8da,_0x212e75){_0x538331(_0x24f8da,_0x212e75,_0x2ce40c);};}function De(_0x5a25a5,_0x289108,_0x258283,_0x1881b2){const _0x5417fd=_0x415bb0;var _0x220506=arguments[_0x5417fd(0x202)],_0x57c296=_0x220506<0x3?_0x289108:_0x1881b2===null?_0x1881b2=Object[_0x5417fd(0x1db)](_0x289108,_0x258283):_0x1881b2,_0x30fdd1;if(typeof Reflect==_0x5417fd(0x20b)&&typeof Reflect[_0x5417fd(0x1ed)]==_0x5417fd(0x1fe))_0x57c296=Reflect[_0x5417fd(0x1ed)](_0x5a25a5,_0x289108,_0x258283,_0x1881b2);else{for(var _0x141de9=_0x5a25a5[_0x5417fd(0x202)]-0x1;_0x141de9>=0x0;_0x141de9--)(_0x30fdd1=_0x5a25a5[_0x141de9])&&(_0x57c296=(_0x220506<0x3?_0x30fdd1(_0x57c296):_0x220506>0x3?_0x30fdd1(_0x289108,_0x258283,_0x57c296):_0x30fdd1(_0x289108,_0x258283))||_0x57c296);}return _0x220506>0x3&&_0x57c296&&Object['defineProperty'](_0x289108,_0x258283,_0x57c296),_0x57c296;}let $=class extends _0x36a75c{constructor(_0xb47a7=Z,_0x10b3cb,_0x21ef27,_0x24de5d){const _0x1ef259=_0x415bb0;super(),this[_0x1ef259(0x1f9)]=_0xb47a7,this[_0x1ef259(0x1f5)]=_0x10b3cb,this[_0x1ef259(0x237)]=_0x21ef27,this[_0x1ef259(0x211)]=_0x24de5d;let {..._0x40cec9}=_0x55e0b7({},Z,this[_0x1ef259(0x1f9)]);this[_0x1ef259(0x211)][_0x1ef259(0x1f0)](_0x1ef259(0x200),_0x40cec9);}[_0x415bb0(0x222)](){const _0x2019df=_0x415bb0;[[X,{'useClass':Te}]][_0x2019df(0x238)](_0x5d0001=>this['_injector'][_0x2019df(0x201)](_0x5d0001)),this['disposeWithMe'](this[_0x2019df(0x237)][_0x2019df(0x22a)](Ee));}};Y($,_0x415bb0(0x1f4),_0x415bb0(0x1e0)),Y($,_0x415bb0(0x22f),Se),Y($,_0x415bb0(0x205),Ce),Y($,_0x415bb0(0x1de),_0xf39585[_0x415bb0(0x22d)]),$=De([_0x5465f6(_0x24cccf),Q(0x1,_0x5466f7(_0x4f188d)),Q(0x2,_0x1f9af4),Q(0x3,_0x5e845a)],$);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 _0x1fa4ef=_0x489e;(function(_0x509d2a,_0x324a3b){const _0x59c1de=_0x489e,_0x4b3084=_0x509d2a();while(!![]){try{const _0x4a1ead=parseInt(_0x59c1de(0x222))/0x1*(-parseInt(_0x59c1de(0x22a))/0x2)+-parseInt(_0x59c1de(0x206))/0x3+parseInt(_0x59c1de(0x1eb))/0x4*(-parseInt(_0x59c1de(0x21a))/0x5)+parseInt(_0x59c1de(0x203))/0x6+-parseInt(_0x59c1de(0x22d))/0x7+-parseInt(_0x59c1de(0x21c))/0x8+-parseInt(_0x59c1de(0x21f))/0x9*(-parseInt(_0x59c1de(0x218))/0xa);if(_0x4a1ead===_0x324a3b)break;else _0x4b3084['push'](_0x4b3084['shift']());}catch(_0x312116){_0x4b3084['push'](_0x4b3084['shift']());}}}(_0x4054,0x68823));import{ShapeFillEnum as _0x1b495a,ShapeLineCapEnum as _0x3a7c9e,ShapeLineJoinEnum as _0x22697f,ShapeLineTypeEnum as _0xe8f2b9,ShapeTypeEnum as _0x39c117}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x6d97e2}from'@univerjs-pro/license';import{CommandType as _0x51668a,DependentOn as _0x34877c,ICommandService as _0x2f235a,IConfigService as _0x5394e4,Inject as _0x2bb1f8,Injector as _0x190b5e,Plugin as _0x3b534c,UniverInstanceType as _0x621b82,createIdentifier as _0x29c25f,merge as _0x1c0735,toDisposable as _0xb664b1}from'@univerjs/core';const g=0.0001;function _(_0x47807d){return{'x':_0x47807d['x'],'y':_0x47807d['y']};}function v(_0x3b69c0){const _0x175aa2=_0x489e;return{..._0x3b69c0,'in':_0x3b69c0['in']?_(_0x3b69c0['in']):void 0x0,'out':_0x3b69c0[_0x175aa2(0x20e)]?_(_0x3b69c0[_0x175aa2(0x20e)]):void 0x0};}function y(_0x1a5fde){const _0x205c81=_0x489e;return{'kind':_0x205c81(0x20d),'closed':_0x1a5fde[_0x205c81(0x1e7)],'anchors':_0x1a5fde['anchors']['map'](v)};}function b(_0x450f8b,_0x4ef01c,_0x2fc50d){return{'x':_0x450f8b['x']+(_0x4ef01c['x']-_0x450f8b['x'])*_0x2fc50d,'y':_0x450f8b['y']+(_0x4ef01c['y']-_0x450f8b['y'])*_0x2fc50d};}function x(_0xeb0f49,_0x27a8d0){const _0xd04d82=_0x489e;return Math[_0xd04d82(0x1e4)](_0xeb0f49['x']-_0x27a8d0['x'],_0xeb0f49['y']-_0x27a8d0['y']);}function S(_0x5ec264){const _0x2393ce=_0x489e;let _0x29a650=Math[_0x2393ce(0x1e4)](_0x5ec264['x'],_0x5ec264['y']);return _0x29a650<g?{'x':0x1,'y':0x0}:{'x':_0x5ec264['x']/_0x29a650,'y':_0x5ec264['y']/_0x29a650};}function C(_0x788841,_0x57c5da,_0x254f3f=x(_0x788841,_0x57c5da)){let _0xc98794=S({'x':_0x788841['x']-_0x57c5da['x'],'y':_0x788841['y']-_0x57c5da['y']});return{'x':_0x788841['x']+_0xc98794['x']*_0x254f3f,'y':_0x788841['y']+_0xc98794['y']*_0x254f3f};}function w(_0x17757f,_0x46249d){const _0x3e4edd=_0x489e;let {anchors:_0x97207f}=_0x17757f;return _0x97207f[_0x3e4edd(0x227)]<0x2||_0x46249d<0x0?null:_0x46249d<_0x97207f['length']-0x1?{'startIndex':_0x46249d,'endIndex':_0x46249d+0x1,'start':_0x97207f[_0x46249d],'end':_0x97207f[_0x46249d+0x1]}:_0x17757f['closed']&&_0x46249d===_0x97207f[_0x3e4edd(0x227)]-0x1?{'startIndex':_0x97207f['length']-0x1,'endIndex':0x0,'start':_0x97207f[_0x97207f[_0x3e4edd(0x227)]-0x1],'end':_0x97207f[0x0]}:null;}function T(_0xf9d6d5,_0x5a0b0a){const _0x546d2b=_0x489e;let _0x14c63e=w(_0xf9d6d5,_0x5a0b0a);return _0x14c63e?[_0x14c63e[_0x546d2b(0x1f2)],_0x14c63e['start'][_0x546d2b(0x20e)]??_0x14c63e[_0x546d2b(0x1f2)],_0x14c63e['end']['in']??_0x14c63e[_0x546d2b(0x223)],_0x14c63e[_0x546d2b(0x223)]]:null;}function te(_0x478733,_0x348dc5){const _0x5616bf=_0x489e;return _0x348dc5===_0x5616bf(0x230)?_0x478733:_0x478733[_0x348dc5]??null;}function E(_0x4e1f61,_0x3147e8,_0x511d15){const _0xb10b6f=_0x489e;return _0x511d15==='anchor'||_0x4e1f61[_0xb10b6f(0x1e7)]?!0x0:_0x511d15==='in'?_0x3147e8>0x0:_0x3147e8<_0x4e1f61[_0xb10b6f(0x1ed)][_0xb10b6f(0x227)]-0x1;}function D(_0x41ff6f,_0x206f66){let [_0x19081d,_0x33e286,_0x8dd723,_0x11ad1c]=_0x41ff6f,_0x5a4451=b(_0x19081d,_0x33e286,_0x206f66),_0x287e8c=b(_0x33e286,_0x8dd723,_0x206f66),_0x58c285=b(_0x8dd723,_0x11ad1c,_0x206f66);return b(b(_0x5a4451,_0x287e8c,_0x206f66),b(_0x287e8c,_0x58c285,_0x206f66),_0x206f66);}function ne(_0x4b2029,_0x108159){let [_0x2132a6,_0xd4ec25,_0x279113,_0x13eb99]=_0x4b2029,_0x3e4d55=b(_0x2132a6,_0xd4ec25,_0x108159),_0x236dcb=b(_0xd4ec25,_0x279113,_0x108159),_0x10468f=b(_0x279113,_0x13eb99,_0x108159),_0x191cb9=b(_0x3e4d55,_0x236dcb,_0x108159),_0x3f5823=b(_0x236dcb,_0x10468f,_0x108159),_0x981092=b(_0x191cb9,_0x3f5823,_0x108159);return{'left':[_0x2132a6,_0x3e4d55,_0x191cb9,_0x981092],'right':[_0x981092,_0x3f5823,_0x10468f,_0x13eb99]};}function O(_0x54cabe,_0x5bad23,_0xb240a){const _0x5cce56=_0x489e;let _0x5bdd48=_0xb240a['x']-_0x5bad23['x'],_0x326553=_0xb240a['y']-_0x5bad23['y'],_0x2e1b6f=_0x5bdd48*_0x5bdd48+_0x326553*_0x326553,_0x5ba702=_0x2e1b6f<=g?0x0:Math[_0x5cce56(0x1f7)](0x0,Math[_0x5cce56(0x23a)](0x1,((_0x54cabe['x']-_0x5bad23['x'])*_0x5bdd48+(_0x54cabe['y']-_0x5bad23['y'])*_0x326553)/_0x2e1b6f)),_0x1e7c89={'x':_0x5bad23['x']+_0x5bdd48*_0x5ba702,'y':_0x5bad23['y']+_0x326553*_0x5ba702};return{'point':_0x1e7c89,'ratio':_0x5ba702,'distance':x(_0x54cabe,_0x1e7c89)};}function re(_0x25ddc5,_0x59f9f2,_0x37737e){const _0x2ca414=_0x489e;return O(_0x25ddc5,_0x59f9f2,_0x37737e)[_0x2ca414(0x1f6)]**0x2;}function k(_0x452ce6,_0xf54dc8){const _0x1c9d73=_0x489e;if(_0x452ce6[_0x1c9d73(0x227)]<=0x2)return _0x452ce6['map'](_);let _0x4f7be5=0x0,_0x30bb9e=0x0,_0x44f8b7=_0x452ce6[0x0],_0x42ba95=_0x452ce6[_0x452ce6['length']-0x1],_0x51f6c1=_0xf54dc8*_0xf54dc8;for(let _0x297e24=0x1;_0x297e24<_0x452ce6[_0x1c9d73(0x227)]-0x1;_0x297e24++){let _0x4c2361=re(_0x452ce6[_0x297e24],_0x44f8b7,_0x42ba95);_0x4c2361>_0x4f7be5&&(_0x4f7be5=_0x4c2361,_0x30bb9e=_0x297e24);}if(_0x4f7be5<=_0x51f6c1)return[_(_0x44f8b7),_(_0x42ba95)];let _0x41ab01=k(_0x452ce6[_0x1c9d73(0x1ec)](0x0,_0x30bb9e+0x1),_0xf54dc8),_0xb6dba7=k(_0x452ce6['slice'](_0x30bb9e),_0xf54dc8);return[..._0x41ab01[_0x1c9d73(0x1ec)](0x0,-0x1),..._0xb6dba7];}function ie(_0x22f1e6,_0x6bbc22){let _0x5670e6=_0x22f1e6[_0x6bbc22],_0xe00259=_0x22f1e6[_0x6bbc22+0x1],_0x2f918b=_0x22f1e6[_0x6bbc22-0x1]??_0x5670e6;return{'x':_0x5670e6['x']+(_0xe00259['x']-_0x2f918b['x'])/0x6,'y':_0x5670e6['y']+(_0xe00259['y']-_0x2f918b['y'])/0x6};}function A(_0x1a5b73,_0x50f10){let _0x29ad59=_0x1a5b73[_0x50f10],_0x372b76=_0x1a5b73[_0x50f10-0x1],_0x54c1aa=_0x1a5b73[_0x50f10+0x1]??_0x29ad59;return{'x':_0x29ad59['x']-(_0x54c1aa['x']-_0x372b76['x'])/0x6,'y':_0x29ad59['y']-(_0x54c1aa['y']-_0x372b76['y'])/0x6};}function j(_0x27f091,_0x33bb5c){const _0x4932c5=_0x489e;let _0x40dc34=_0x27f091[_0x4932c5(0x1ed)][_0x33bb5c],_0x185f4c=_0x27f091['anchors'][_0x33bb5c-0x1]??(_0x27f091[_0x4932c5(0x1e7)]?_0x27f091[_0x4932c5(0x1ed)][_0x27f091[_0x4932c5(0x1ed)][_0x4932c5(0x227)]-0x1]:null),_0xd46583=_0x27f091[_0x4932c5(0x1ed)][_0x33bb5c+0x1]??(_0x27f091[_0x4932c5(0x1e7)]?_0x27f091[_0x4932c5(0x1ed)][0x0]:null),_0x49c164=_0x185f4c&&_0xd46583?S({'x':_0xd46583['x']-_0x185f4c['x'],'y':_0xd46583['y']-_0x185f4c['y']}):_0xd46583?S({'x':_0xd46583['x']-_0x40dc34['x'],'y':_0xd46583['y']-_0x40dc34['y']}):_0x185f4c?S({'x':_0x40dc34['x']-_0x185f4c['x'],'y':_0x40dc34['y']-_0x185f4c['y']}):{'x':0x1,'y':0x0},_0x3eb983=_0x185f4c&&_0xd46583?Math['max'](0x32,x(_0x185f4c,_0xd46583)/0x4):0x32;return{'in':{'x':_0x40dc34['x']-_0x49c164['x']*_0x3eb983,'y':_0x40dc34['y']-_0x49c164['y']*_0x3eb983},'out':{'x':_0x40dc34['x']+_0x49c164['x']*_0x3eb983,'y':_0x40dc34['y']+_0x49c164['y']*_0x3eb983}};}function M(_0x1fd061,_0x59f15e){const _0x476bb1=_0x489e;let _0x4cc13f=_0x1fd061[_0x59f15e],_0x29bf60=_0x59f15e==='in'?_0x476bb1(0x20e):'in',_0x236a9e=_0x1fd061[_0x29bf60];_0x4cc13f&&(_0x1fd061[_0x476bb1(0x20f)]===_0x476bb1(0x233)?_0x1fd061[_0x29bf60]=C(_0x1fd061,_0x4cc13f):_0x1fd061[_0x476bb1(0x20f)]===_0x476bb1(0x232)&&(_0x1fd061[_0x29bf60]=C(_0x1fd061,_0x4cc13f,_0x236a9e?x(_0x1fd061,_0x236a9e):x(_0x1fd061,_0x4cc13f))));}function ae(_0xc563f7,_0x4d9732){const _0x47d2be=_0x489e;let _0x228de4=y(_0xc563f7);return!_0x4d9732||_0x228de4['closed']||_0x228de4[_0x47d2be(0x1ed)][_0x47d2be(0x227)]===0x0||_0x228de4['anchors'][_0x47d2be(0x221)]({'id':_0x47d2be(0x213),'x':_0x4d9732['x'],'y':_0x4d9732['y'],'pointType':_0x47d2be(0x1fe)}),_0x228de4;}function oe(_0x4b8ff1,_0x21959b={}){const _0x439e86=_0x489e;let _0x3e26f1=Math[_0x439e86(0x1f7)](0x0,_0x21959b[_0x439e86(0x1ff)]??Math[_0x439e86(0x1f7)](0x4,_0x4b8ff1[_0x439e86(0x1e2)]*0.35)),_0x707c10=_0x21959b[_0x439e86(0x235)]??(_0x32169d=>_0x439e86(0x211)+_0x32169d),_0x38c421=k(_0x4b8ff1['points'],_0x3e26f1),_0x2e95cc=_0x38c421[_0x439e86(0x1e6)]((_0x15d06a,_0x59385c)=>({'id':_0x707c10(_0x59385c),'x':_0x15d06a['x'],'y':_0x15d06a['y'],'pointType':_0x439e86(0x204)}));for(let _0x3bbc81=0x0;_0x3bbc81<_0x2e95cc['length']-0x1;_0x3bbc81++)_0x2e95cc[_0x3bbc81][_0x439e86(0x20e)]=ie(_0x38c421,_0x3bbc81),_0x2e95cc[_0x3bbc81+0x1]['in']=A(_0x38c421,_0x3bbc81+0x1);return{'kind':_0x439e86(0x20d),'closed':!0x1,'anchors':_0x2e95cc};}function se(_0x114491,_0x395d4c,_0xbedeb7){const _0x4c0926=_0x489e;let _0x3a35fd=null,_0x4709d0=[_0x4c0926(0x230),'in','out'];return _0x114491['anchors'][_0x4c0926(0x23f)]((_0x211346,_0x5b95cd)=>{const _0x45da5a=_0x4c0926;_0x4709d0[_0x45da5a(0x23f)](_0x1cdaaa=>{if(!E(_0x114491,_0x5b95cd,_0x1cdaaa))return;let _0x322f72=te(_0x211346,_0x1cdaaa);if(!_0x322f72)return;let _0x4cb851=x(_0x395d4c,_0x322f72);_0x4cb851>_0xbedeb7||_0x3a35fd&&_0x4cb851>=_0x3a35fd['distance']||(_0x3a35fd={'handle':{'kind':_0x1cdaaa,'anchorId':_0x211346['id']},'point':_(_0x322f72),'distance':_0x4cb851});});}),_0x3a35fd;}function ce(_0x4377b9,_0x437c39,_0x30213f){const _0x271458=_0x489e;let _0x263b22=null,_0x3cdf20=_0x4377b9[_0x271458(0x1e7)]?_0x4377b9[_0x271458(0x1ed)][_0x271458(0x227)]:Math[_0x271458(0x1f7)](0x0,_0x4377b9[_0x271458(0x1ed)][_0x271458(0x227)]-0x1);for(let _0xc591ef=0x0;_0xc591ef<_0x3cdf20;_0xc591ef++){let _0x540cb5=T(_0x4377b9,_0xc591ef);if(!_0x540cb5)continue;let _0x449f30=D(_0x540cb5,0x0);for(let _0x2183dc=0x1;_0x2183dc<=0x20;_0x2183dc++){let _0x377223=D(_0x540cb5,_0x2183dc/0x20),_0x43d6e4=O(_0x437c39,_0x449f30,_0x377223),_0xa33cc9=(_0x2183dc-0x1+_0x43d6e4['ratio'])/0x20;(!_0x263b22||_0x43d6e4[_0x271458(0x1f6)]<_0x263b22[_0x271458(0x1f6)])&&(_0x263b22={'segmentIndex':_0xc591ef,'t':_0xa33cc9,'point':_0x43d6e4[_0x271458(0x220)],'distance':_0x43d6e4[_0x271458(0x1f6)]}),_0x449f30=_0x377223;}}return _0x263b22&&_0x263b22[_0x271458(0x1f6)]<=_0x30213f?_0x263b22:null;}function le(_0x5554e3,_0x3cf16,_0x379217){const _0xad76ac=_0x489e;let _0x17572d=y(_0x5554e3),_0x100950=w(_0x17572d,_0x3cf16[_0xad76ac(0x236)]),_0x31a8da=T(_0x17572d,_0x3cf16[_0xad76ac(0x236)]);if(!_0x100950||!_0x31a8da)return _0x17572d;let _0x3f9edf=ne(_0x31a8da,Math[_0xad76ac(0x1f7)](0x0,Math[_0xad76ac(0x23a)](0x1,_0x3cf16['t']))),_0x4f4e57={'id':_0x379217(),'x':_0x3f9edf['left'][0x3]['x'],'y':_0x3f9edf['left'][0x3]['y'],'in':_(_0x3f9edf[_0xad76ac(0x20b)][0x2]),'out':_(_0x3f9edf[_0xad76ac(0x225)][0x1]),'pointType':_0xad76ac(0x204)};return _0x17572d[_0xad76ac(0x1ed)][_0x100950[_0xad76ac(0x23b)]][_0xad76ac(0x20e)]=_(_0x3f9edf[_0xad76ac(0x20b)][0x1]),_0x17572d['anchors'][_0x100950[_0xad76ac(0x21d)]]['in']=_(_0x3f9edf[_0xad76ac(0x225)][0x2]),_0x17572d[_0xad76ac(0x1ed)][_0xad76ac(0x1f0)](_0x100950[_0xad76ac(0x23b)]+0x1,0x0,_0x4f4e57),_0x17572d;}function ue(_0x1b548d,_0x3360cb){const _0x225e6b=_0x489e;let _0x3ccc0a=y(_0x1b548d);return _0x3ccc0a[_0x225e6b(0x1ed)]=_0x3ccc0a[_0x225e6b(0x1ed)][_0x225e6b(0x22b)](_0x2b8cf5=>_0x2b8cf5['id']!==_0x3360cb),_0x3ccc0a[_0x225e6b(0x1e7)]&&_0x3ccc0a['anchors'][_0x225e6b(0x227)]<0x3&&(_0x3ccc0a['closed']=!0x1),_0x3ccc0a;}function N(_0x32c76b,_0x4a9f3c,_0x787d96){const _0x322d0b=_0x489e;let _0x2d802d=y(_0x32c76b),_0x4d2137=_0x2d802d[_0x322d0b(0x1ed)][_0x322d0b(0x210)](_0xd53b9f=>_0xd53b9f['id']===_0x4a9f3c),_0x2a68c6=_0x2d802d[_0x322d0b(0x1ed)][_0x4d2137];if(!_0x2a68c6)return _0x2d802d;if(_0x2a68c6[_0x322d0b(0x20f)]=_0x787d96,_0x787d96==='corner')return delete _0x2a68c6['in'],delete _0x2a68c6[_0x322d0b(0x20e)],_0x2d802d;let _0x157dcd=j(_0x2d802d,_0x4d2137);if(_0x2a68c6['in']=_0x2a68c6['in']?_(_0x2a68c6['in']):_0x157dcd['in'],_0x2a68c6[_0x322d0b(0x20e)]=_0x2a68c6['out']?_(_0x2a68c6[_0x322d0b(0x20e)]):_0x157dcd[_0x322d0b(0x20e)],_0x787d96===_0x322d0b(0x233)){let _0x4e9b8e=Math[_0x322d0b(0x1f7)](x(_0x2a68c6,_0x2a68c6['in']),x(_0x2a68c6,_0x2a68c6['out']),0x32),_0x918332=S({'x':_0x2a68c6[_0x322d0b(0x20e)]['x']-_0x2a68c6['x'],'y':_0x2a68c6[_0x322d0b(0x20e)]['y']-_0x2a68c6['y']});_0x2a68c6[_0x322d0b(0x20e)]={'x':_0x2a68c6['x']+_0x918332['x']*_0x4e9b8e,'y':_0x2a68c6['y']+_0x918332['y']*_0x4e9b8e},_0x2a68c6['in']={'x':_0x2a68c6['x']-_0x918332['x']*_0x4e9b8e,'y':_0x2a68c6['y']-_0x918332['y']*_0x4e9b8e};}else _0x787d96==='smooth'&&M(_0x2a68c6,_0x322d0b(0x20e));return _0x2d802d;}function P(_0x5da127,_0x4cff83){const _0x2f0ede=_0x489e;let _0x343040=_0x5da127[_0x2f0ede(0x1ed)][_0x2f0ede(0x1f4)](_0x363f62=>_0x363f62['id']===_0x4cff83),_0x2c4353=(_0x343040==null?void 0x0:_0x343040[_0x2f0ede(0x20f)])??'corner';return N(_0x5da127,_0x4cff83,_0x2c4353===_0x2f0ede(0x1fe)?_0x2f0ede(0x232):_0x2c4353===_0x2f0ede(0x232)?_0x2f0ede(0x233):_0x2c4353===_0x2f0ede(0x233)?_0x2f0ede(0x204):_0x2f0ede(0x1fe));}function F(_0x232e54,_0x4010e0,_0x190603){const _0x5d9682=_0x489e;let _0x8893d9=y(_0x232e54),_0x13755d=_0x8893d9[_0x5d9682(0x1ed)]['find'](_0x167c2b=>_0x167c2b['id']===_0x4010e0['anchorId']);if(!_0x13755d)return _0x8893d9;if(_0x4010e0[_0x5d9682(0x228)]===_0x5d9682(0x230)){let _0x16bae1={'x':_0x190603['x']-_0x13755d['x'],'y':_0x190603['y']-_0x13755d['y']};return _0x13755d['x']=_0x190603['x'],_0x13755d['y']=_0x190603['y'],_0x13755d['in']&&={'x':_0x13755d['in']['x']+_0x16bae1['x'],'y':_0x13755d['in']['y']+_0x16bae1['y']},_0x13755d[_0x5d9682(0x20e)]&&={'x':_0x13755d[_0x5d9682(0x20e)]['x']+_0x16bae1['x'],'y':_0x13755d[_0x5d9682(0x20e)]['y']+_0x16bae1['y']},_0x8893d9;}return _0x13755d[_0x4010e0[_0x5d9682(0x228)]]=_(_0x190603),_0x13755d[_0x5d9682(0x20f)]===_0x5d9682(0x1fe)&&(_0x13755d[_0x5d9682(0x20f)]=_0x5d9682(0x204)),M(_0x13755d,_0x4010e0['kind']),_0x8893d9;}const I=1e-9;function L(_0x4af4bc){const _0x376609=_0x489e;let _0x1e9852=Math[_0x376609(0x229)](_0x4af4bc*0x2710)/0x2710;return Object['is'](_0x1e9852,-0x0)?'0':String(_0x1e9852);}function R(_0x4e3b67){return L(_0x4e3b67['x'])+'\x20'+L(_0x4e3b67['y']);}function z(_0x4807ed,_0x2758c9){return{'x':_0x4807ed['x']-_0x2758c9['x'],'y':_0x4807ed['y']-_0x2758c9['y']};}function B(_0x22e259,_0xc7e155,_0x1a4b2c,_0x1c1bd4,_0x27207c){let _0x454ad9=0x1-_0x27207c;return{'x':_0x454ad9*_0x454ad9*_0x454ad9*_0x22e259['x']+0x3*_0x454ad9*_0x454ad9*_0x27207c*_0xc7e155['x']+0x3*_0x454ad9*_0x27207c*_0x27207c*_0x1a4b2c['x']+_0x27207c*_0x27207c*_0x27207c*_0x1c1bd4['x'],'y':_0x454ad9*_0x454ad9*_0x454ad9*_0x22e259['y']+0x3*_0x454ad9*_0x454ad9*_0x27207c*_0xc7e155['y']+0x3*_0x454ad9*_0x27207c*_0x27207c*_0x1a4b2c['y']+_0x27207c*_0x27207c*_0x27207c*_0x1c1bd4['y']};}function V(_0x4d7b26,_0x641f56,_0x3cab67,_0x21da11){const _0x58f84e=_0x489e;let _0x59d2bc=-_0x4d7b26+0x3*_0x641f56-0x3*_0x3cab67+_0x21da11,_0x3f5ac2=0x3*_0x4d7b26-0x6*_0x641f56+0x3*_0x3cab67,_0x508512=-0x3*_0x4d7b26+0x3*_0x641f56,_0x7ce263=[];if(Math[_0x58f84e(0x216)](_0x59d2bc)<I){if(Math[_0x58f84e(0x216)](_0x3f5ac2)<I)return _0x7ce263;let _0x2aa40a=-_0x508512/(0x2*_0x3f5ac2);return _0x2aa40a>0x0&&_0x2aa40a<0x1&&_0x7ce263[_0x58f84e(0x221)](_0x2aa40a),_0x7ce263;}let _0x507f0e=_0x3f5ac2*_0x3f5ac2-0x3*_0x59d2bc*_0x508512;if(_0x507f0e<0x0)return _0x7ce263;let _0x58c641=Math['sqrt'](Math[_0x58f84e(0x1f7)](0x0,_0x507f0e)),_0x38b867=(-_0x3f5ac2+_0x58c641)/(0x3*_0x59d2bc),_0x3aa7d7=(-_0x3f5ac2-_0x58c641)/(0x3*_0x59d2bc);return _0x38b867>0x0&&_0x38b867<0x1&&_0x7ce263[_0x58f84e(0x221)](_0x38b867),_0x3aa7d7>0x0&&_0x3aa7d7<0x1&&Math[_0x58f84e(0x216)](_0x3aa7d7-_0x38b867)>I&&_0x7ce263[_0x58f84e(0x221)](_0x3aa7d7),_0x7ce263;}function H(_0x456cb0,_0x323378,_0x97bf57,_0x57e066,_0x24d124){const _0xf7a748=_0x489e;_0x456cb0[_0xf7a748(0x221)](_0x323378,_0x24d124),new Set([...V(_0x323378['x'],_0x97bf57['x'],_0x57e066['x'],_0x24d124['x']),...V(_0x323378['y'],_0x97bf57['y'],_0x57e066['y'],_0x24d124['y'])])[_0xf7a748(0x23f)](_0x28fbcb=>{const _0x5a11d9=_0xf7a748;_0x456cb0[_0x5a11d9(0x221)](B(_0x323378,_0x97bf57,_0x57e066,_0x24d124,_0x28fbcb));});}function U(_0x3c37d4){const _0x418887=_0x489e;let _0x426904=_0x3c37d4[_0x418887(0x1ed)];if(_0x426904['length']<=0x1)return _0x426904;let _0x3bc9a4=[];for(let _0x1975eb=0x1;_0x1975eb<_0x426904[_0x418887(0x227)];_0x1975eb++){let _0x11b57b=_0x426904[_0x1975eb-0x1],_0x3f369b=_0x426904[_0x1975eb];H(_0x3bc9a4,_0x11b57b,_0x11b57b[_0x418887(0x20e)]??_0x11b57b,_0x3f369b['in']??_0x3f369b,_0x3f369b);}if(_0x3c37d4[_0x418887(0x1e7)]&&_0x426904[_0x418887(0x227)]>0x1){let _0x3e7a32=_0x426904[_0x426904[_0x418887(0x227)]-0x1],_0x13cf8b=_0x426904[0x0];H(_0x3bc9a4,_0x3e7a32,_0x3e7a32[_0x418887(0x20e)]??_0x3e7a32,_0x13cf8b['in']??_0x13cf8b,_0x13cf8b);}return _0x3bc9a4;}function de(_0x58dc2f){const _0x24170f=_0x489e;let _0x7566c1=_0x58dc2f[_0x24170f(0x22c)];if(_0x7566c1[_0x24170f(0x227)]<=0x1)return _0x7566c1;let _0x4b35a6=[];for(let _0x1eb915=0x0;_0x1eb915<_0x7566c1[_0x24170f(0x227)]-0x1;_0x1eb915++){let _0xf1ecd=_0x7566c1[_0x1eb915],_0x3eddf3=_0x7566c1[_0x1eb915+0x1],_0x367df5=_0x7566c1[_0x1eb915-0x1]??_0xf1ecd,_0x5054d5=_0x7566c1[_0x1eb915+0x2]??_0x3eddf3;H(_0x4b35a6,_0xf1ecd,{'x':_0xf1ecd['x']+(_0x3eddf3['x']-_0x367df5['x'])/0x6,'y':_0xf1ecd['y']+(_0x3eddf3['y']-_0x367df5['y'])/0x6},{'x':_0x3eddf3['x']-(_0x5054d5['x']-_0xf1ecd['x'])/0x6,'y':_0x3eddf3['y']-(_0x5054d5['y']-_0xf1ecd['y'])/0x6},_0x3eddf3);}return _0x4b35a6;}function fe(_0x598b5f){const _0x15131a=_0x489e;return _0x598b5f[_0x15131a(0x228)]==='pen'?U(_0x598b5f):de(_0x598b5f);}function _0x489e(_0x267d42,_0x4f9ea5){_0x267d42=_0x267d42-0x1e2;const _0x40540d=_0x4054();let _0x489e71=_0x40540d[_0x267d42];return _0x489e71;}function W(_0x4f2f16){const _0x466a26=_0x489e;let _0x17abe9=Math[_0x466a26(0x229)](_0x4f2f16*0x2710)/0x2710;return Object['is'](_0x17abe9,-0x0)?0x0:_0x17abe9;}function G(_0x23ef1b){const _0x4c5219=_0x489e;let _0x196422=fe(_0x23ef1b);if(_0x196422[_0x4c5219(0x227)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x4b8a74=Math['min'](..._0x196422[_0x4c5219(0x1e6)](_0x3c146e=>_0x3c146e['x'])),_0xb521ca=Math[_0x4c5219(0x23a)](..._0x196422[_0x4c5219(0x1e6)](_0x577640=>_0x577640['y'])),_0x2b393e=Math[_0x4c5219(0x1f7)](..._0x196422[_0x4c5219(0x1e6)](_0x1db932=>_0x1db932['x'])),_0x87f5a=Math[_0x4c5219(0x1f7)](..._0x196422['map'](_0x498b3c=>_0x498b3c['y']));return{'left':W(_0x4b8a74),'top':W(_0xb521ca),'width':W(Math[_0x4c5219(0x1f7)](0x1,_0x2b393e-_0x4b8a74)),'height':W(Math[_0x4c5219(0x1f7)](0x1,_0x87f5a-_0xb521ca))};}function pe(_0x35acbd,_0x4ef7d2){const _0x2a7170=_0x489e;let _0x511d4e=_0x35acbd[_0x2a7170(0x1ed)];if(_0x511d4e[_0x2a7170(0x227)]===0x0)return'';let _0x1dc56d=['M\x20'+R(z(_0x511d4e[0x0],_0x4ef7d2))];for(let _0x201750=0x1;_0x201750<_0x511d4e[_0x2a7170(0x227)];_0x201750++){let _0x27ec57=_0x511d4e[_0x201750-0x1],_0x4a0845=_0x511d4e[_0x201750],_0xf36765=_0x27ec57[_0x2a7170(0x20e)]??_0x27ec57,_0x758c2f=_0x4a0845['in']??_0x4a0845;_0x1dc56d['push']('C\x20'+R(z(_0xf36765,_0x4ef7d2))+'\x20'+R(z(_0x758c2f,_0x4ef7d2))+'\x20'+R(z(_0x4a0845,_0x4ef7d2)));}if(_0x35acbd[_0x2a7170(0x1e7)]&&_0x511d4e[_0x2a7170(0x227)]>0x1){let _0x379c07=_0x511d4e[_0x511d4e[_0x2a7170(0x227)]-0x1],_0x3fe042=_0x511d4e[0x0],_0x548105=_0x379c07['out']??_0x379c07,_0x460e6e=_0x3fe042['in']??_0x3fe042;_0x1dc56d[_0x2a7170(0x221)]('C\x20'+R(z(_0x548105,_0x4ef7d2))+'\x20'+R(z(_0x460e6e,_0x4ef7d2))+'\x20'+R(z(_0x3fe042,_0x4ef7d2))),_0x1dc56d[_0x2a7170(0x221)]('Z');}return _0x1dc56d[_0x2a7170(0x21b)]('\x20');}function me(_0x35e6c8,_0xa6796c){const _0x504c8d=_0x489e;let _0x22c829=_0x35e6c8[_0x504c8d(0x22c)][_0x504c8d(0x1e6)](_0x199852=>z(_0x199852,_0xa6796c));if(_0x22c829[_0x504c8d(0x227)]===0x0)return'';if(_0x22c829['length']===0x1)return'M\x20'+R(_0x22c829[0x0]);let _0x78083f=['M\x20'+R(_0x22c829[0x0])];for(let _0x590327=0x0;_0x590327<_0x22c829[_0x504c8d(0x227)]-0x1;_0x590327++){let _0x6a5d36=_0x22c829[_0x590327],_0x42003f=_0x22c829[_0x590327+0x1],_0x481c77=_0x22c829[_0x590327-0x1]??_0x6a5d36,_0x32c5f7=_0x22c829[_0x590327+0x2]??_0x42003f,_0x481b04={'x':_0x6a5d36['x']+(_0x42003f['x']-_0x481c77['x'])/0x6,'y':_0x6a5d36['y']+(_0x42003f['y']-_0x481c77['y'])/0x6},_0x57d1e1={'x':_0x42003f['x']-(_0x32c5f7['x']-_0x6a5d36['x'])/0x6,'y':_0x42003f['y']-(_0x32c5f7['y']-_0x6a5d36['y'])/0x6};_0x78083f[_0x504c8d(0x221)]('C\x20'+R(_0x481b04)+'\x20'+R(_0x57d1e1)+'\x20'+R(_0x42003f));}return _0x78083f[_0x504c8d(0x21b)]('\x20');}function he(_0x2529fc,_0x5efa7f){const _0x440e31=_0x489e;return _0x2529fc['kind']===_0x440e31(0x20d)?pe(_0x2529fc,_0x5efa7f):me(_0x2529fc,_0x5efa7f);}function ge(_0x5404b2,_0xdcb3bb){const _0x414e7a=_0x489e;return _0xdcb3bb!=null&&_0xdcb3bb[_0x414e7a(0x242)]?_0xdcb3bb['color']:_0x5404b2['kind']===_0x414e7a(0x20d)?_0x414e7a(0x22e):_0x5404b2[_0x414e7a(0x242)];}function _e(_0x2952c8,_0x5aade9){const _0x288a95=_0x489e;return(_0x5aade9==null?void 0x0:_0x5aade9[_0x288a95(0x1e2)])===void 0x0?_0x2952c8[_0x288a95(0x228)]===_0x288a95(0x20d)?0x2:_0x2952c8[_0x288a95(0x1e2)]:_0x5aade9[_0x288a95(0x1e2)];}function ve(_0x5a33d0,_0x46b8bf){const _0x2053f9=_0x489e;return(_0x46b8bf==null?void 0x0:_0x46b8bf[_0x2053f9(0x241)])===void 0x0?_0x5a33d0[_0x2053f9(0x228)]===_0x2053f9(0x20d)?void 0x0:_0x5a33d0[_0x2053f9(0x241)]:_0x46b8bf[_0x2053f9(0x241)];}function ye(_0x4d2ef8,_0x5cec7c){const _0x5e4385=_0x489e;let _0x231a1e=G(_0x4d2ef8),_0x238d67=he(_0x4d2ef8,{'x':_0x231a1e[_0x5e4385(0x20b)],'y':_0x231a1e[_0x5e4385(0x209)]}),_0x1f18cc=_0x4d2ef8[_0x5e4385(0x228)]===_0x5e4385(0x20d)&&_0x4d2ef8[_0x5e4385(0x1e7)],_0x42d682=_0x5cec7c==null?void 0x0:_0x5cec7c[_0x5e4385(0x1e5)];return{'shapeType':_0x39c117['Rect'],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x231a1e[_0x5e4385(0x1e2)],'h':_0x231a1e[_0x5e4385(0x212)],'fill':_0x1f18cc?_0x5e4385(0x219):_0x5e4385(0x234),'stroke':!0x0,'data':_0x238d67,'dataArray':be(_0x4d2ef8,{'x':_0x231a1e[_0x5e4385(0x20b)],'y':_0x231a1e[_0x5e4385(0x209)]})}]},'fill':_0x1f18cc&&_0x42d682?{'color':_0x42d682,'fillType':_0x1b495a[_0x5e4385(0x21e)]}:{'fillType':_0x1b495a[_0x5e4385(0x1ef)]},'stroke':{'color':ge(_0x4d2ef8,_0x5cec7c),'width':_e(_0x4d2ef8,_0x5cec7c),'opacity':ve(_0x4d2ef8,_0x5cec7c),'lineStrokeType':_0xe8f2b9['SolidLine'],'capType':_0x3a7c9e[_0x5e4385(0x217)],'lineJoinType':_0x22697f['Round']}};}function K(_0x36a63c,_0x283065){return{'x':_0x36a63c['x']-_0x283065['x'],'y':_0x36a63c['y']-_0x283065['y']};}function be(_0x1b8421,_0x3a780){const _0x19677d=_0x489e;if(_0x1b8421['kind']===_0x19677d(0x20d)){let _0x442450=_0x1b8421[_0x19677d(0x1ed)];if(_0x442450[_0x19677d(0x227)]===0x0)return[];let _0x319962=K(_0x442450[0x0],_0x3a780),_0x1566f5=[{'command':'M','points':[_0x319962['x'],_0x319962['y']]}];for(let _0x71b55c=0x1;_0x71b55c<_0x442450['length'];_0x71b55c++){let _0xc44656=_0x442450[_0x71b55c-0x1],_0x255866=_0x442450[_0x71b55c],_0x7176b2=K(_0xc44656[_0x19677d(0x20e)]??_0xc44656,_0x3a780),_0x5bf9bd=K(_0x255866['in']??_0x255866,_0x3a780),_0xa6efb7=K(_0x255866,_0x3a780);_0x1566f5['push']({'command':'C','points':[_0x7176b2['x'],_0x7176b2['y'],_0x5bf9bd['x'],_0x5bf9bd['y'],_0xa6efb7['x'],_0xa6efb7['y']]});}if(_0x1b8421[_0x19677d(0x1e7)]&&_0x442450[_0x19677d(0x227)]>0x1){let _0x50c825=_0x442450[_0x442450[_0x19677d(0x227)]-0x1],_0x446745=_0x442450[0x0],_0x2834f2=K(_0x50c825[_0x19677d(0x20e)]??_0x50c825,_0x3a780),_0x5436c5=K(_0x446745['in']??_0x446745,_0x3a780),_0x421264=K(_0x446745,_0x3a780);_0x1566f5[_0x19677d(0x221)]({'command':'C','points':[_0x2834f2['x'],_0x2834f2['y'],_0x5436c5['x'],_0x5436c5['y'],_0x421264['x'],_0x421264['y']]}),_0x1566f5[_0x19677d(0x221)]({'command':'z','points':[]});}return _0x1566f5;}let _0x48d261=_0x1b8421[_0x19677d(0x22c)][_0x19677d(0x1e6)](_0x4ac888=>K(_0x4ac888,_0x3a780));if(_0x48d261[_0x19677d(0x227)]===0x0)return[];let _0x229e71=[{'command':'M','points':[_0x48d261[0x0]['x'],_0x48d261[0x0]['y']]}];for(let _0x5ddc03=0x0;_0x5ddc03<_0x48d261['length']-0x1;_0x5ddc03++){let _0x1fec47=_0x48d261[_0x5ddc03],_0x2b34db=_0x48d261[_0x5ddc03+0x1],_0x4b116b=_0x48d261[_0x5ddc03-0x1]??_0x1fec47,_0x3a986c=_0x48d261[_0x5ddc03+0x2]??_0x2b34db,_0x23e876={'x':_0x1fec47['x']+(_0x2b34db['x']-_0x4b116b['x'])/0x6,'y':_0x1fec47['y']+(_0x2b34db['y']-_0x4b116b['y'])/0x6},_0x4e5b08={'x':_0x2b34db['x']-(_0x3a986c['x']-_0x1fec47['x'])/0x6,'y':_0x2b34db['y']-(_0x3a986c['y']-_0x1fec47['y'])/0x6};_0x229e71[_0x19677d(0x221)]({'command':'C','points':[_0x23e876['x'],_0x23e876['y'],_0x4e5b08['x'],_0x4e5b08['y'],_0x2b34db['x'],_0x2b34db['y']]});}return _0x229e71;}function xe(_0x27f442){const _0x5db691=_0x489e;let {model:_0x451d67,sourceModel:_0x491f99=_0x451d67,style:_0x3c7f0f}=_0x27f442,_0x1584c6=_0x27f442[_0x5db691(0x1fd)]??_0x451d67[_0x5db691(0x228)],_0x1b5dca=G(_0x451d67),_0x1cf9b5=_0x451d67[_0x5db691(0x228)]===_0x5db691(0x20d)&&_0x1584c6!==_0x5db691(0x20d)?_0x451d67:void 0x0;return{'transform':{..._0x1b5dca,'rotation':0x0},'shapeData':ye(_0x451d67,_0x3c7f0f),'ink':{'version':0x1,'tool':_0x1584c6,'sourceModel':_0x491f99,..._0x1cf9b5?{'editModel':_0x1cf9b5}:{},'normalizedBounds':_0x1b5dca}};}var Se=_0x1fa4ef(0x202),Ce=_0x1fa4ef(0x1fc);function q(_0x1aeec4){'@babel/helpers - typeof';const _0x5def27=_0x1fa4ef;return q=typeof Symbol==_0x5def27(0x237)&&typeof Symbol[_0x5def27(0x1ee)]==_0x5def27(0x208)?function(_0x37432a){return typeof _0x37432a;}:function(_0x139f06){const _0x36f8d5=_0x5def27;return _0x139f06&&typeof Symbol==_0x36f8d5(0x237)&&_0x139f06[_0x36f8d5(0x23d)]===Symbol&&_0x139f06!==Symbol[_0x36f8d5(0x1fb)]?_0x36f8d5(0x208):typeof _0x139f06;},q(_0x1aeec4);}function we(_0x2f83be,_0x5bf3ab){const _0x353e78=_0x1fa4ef;if(q(_0x2f83be)!=_0x353e78(0x20c)||!_0x2f83be)return _0x2f83be;var _0x332a00=_0x2f83be[Symbol[_0x353e78(0x1f8)]];if(_0x332a00!==void 0x0){var _0x41fffe=_0x332a00['call'](_0x2f83be,_0x5bf3ab||_0x353e78(0x23e));if(q(_0x41fffe)!='object')return _0x41fffe;throw TypeError(_0x353e78(0x207));}return(_0x5bf3ab===_0x353e78(0x1f9)?String:Number)(_0x2f83be);}function J(_0x4e11a8){var _0x26be84=we(_0x4e11a8,'string');return q(_0x26be84)=='symbol'?_0x26be84:_0x26be84+'';}function Y(_0x4378af,_0x2aa570,_0x5c12ae){const _0x4f42ae=_0x1fa4ef;return(_0x2aa570=J(_0x2aa570))in _0x4378af?Object[_0x4f42ae(0x214)](_0x4378af,_0x2aa570,{'value':_0x5c12ae,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4378af[_0x2aa570]=_0x5c12ae,_0x4378af;}const X=_0x29c25f('ink.host-adapter.service');var Te=class{constructor(){const _0xc1a387=_0x1fa4ef;Y(this,_0xc1a387(0x1e9),[]);}[_0x1fa4ef(0x1f3)](_0x488bfe){const _0xa172ac=_0x1fa4ef;return this[_0xa172ac(0x1e9)][_0xa172ac(0x221)](_0x488bfe),_0xb664b1(()=>{const _0x55af51=_0xa172ac;let _0x53d53e=this[_0x55af51(0x1e9)]['indexOf'](_0x488bfe);_0x53d53e>=0x0&&this['_adapters'][_0x55af51(0x1f0)](_0x53d53e,0x1);});}[_0x1fa4ef(0x23c)](_0x193342){const _0x4d0e39=_0x1fa4ef;for(let _0xf8f9b1 of this[_0x4d0e39(0x1e9)])if(_0xf8f9b1[_0x4d0e39(0x23c)](_0x193342))return!0x0;return!0x1;}async[_0x1fa4ef(0x226)](_0x3cf5de){const _0x213f6a=_0x1fa4ef;for(let _0x4f1d75 of this['_adapters'])if(_0x4f1d75['createCustomShape']&&await _0x4f1d75[_0x213f6a(0x226)](_0x3cf5de))return!0x0;return!0x1;}};function _0x4054(){const _0x55e230=['find','ink.config','distance','max','toPrimitive','string','OPERATION','prototype','1.3.1','tool','corner','tolerance','_injector','_config','@univerjs-pro/ink','202794mRtXsw','free','_configService','866826SEYvKk','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','symbol','top','pluginName','left','object','pen','out','pointType','findIndex','ink-centerline-','height','__ink-preview-anchor__','defineProperty','_commandService','abs','Round','840iBmCrR','norm','287975MilPJq','join','2467928kmnDro','endIndex','SolidFill','197703FvrSzg','point','push','2423UMpKDv','end','UNIVER_INK_PLUGIN','right','createCustomShape','length','kind','round','154GIxMAD','filter','points','233877vyFZDp','#f54a45','packageName','anchor','registerCommand','smooth','symmetric','none','createId','segmentIndex','function','type','disposeWithMe','min','startIndex','beginInkMode','constructor','default','forEach','version','opacity','color','width','get','hypot','fillColor','map','closed','getOwnPropertyDescriptor','_adapters','ink.operation.start','44KCXNmk','slice','anchors','iterator','NoFill','splice','add','start','registerAdapter'];_0x4054=function(){return _0x55e230;};return _0x4054();}const Ee={'id':_0x1fa4ef(0x1ea),'type':_0x51668a[_0x1fa4ef(0x1fa)],'handler':(_0x35ecbd,_0x18ce9a)=>_0x18ce9a?_0x35ecbd[_0x1fa4ef(0x1e3)](X)[_0x1fa4ef(0x23c)](_0x18ce9a):!0x1},Z={};function Q(_0x233d8a,_0x2750a2){return function(_0x1f3a78,_0xb8ef3b){_0x2750a2(_0x1f3a78,_0xb8ef3b,_0x233d8a);};}function De(_0x26ede4,_0x18cc5a,_0x410c8e,_0x3e2ca5){const _0x30ae97=_0x1fa4ef;var _0x13de39=arguments[_0x30ae97(0x227)],_0xf6a977=_0x13de39<0x3?_0x18cc5a:_0x3e2ca5===null?_0x3e2ca5=Object[_0x30ae97(0x1e8)](_0x18cc5a,_0x410c8e):_0x3e2ca5,_0x302ff7;if(typeof Reflect==_0x30ae97(0x20c)&&typeof Reflect['decorate']==_0x30ae97(0x237))_0xf6a977=Reflect['decorate'](_0x26ede4,_0x18cc5a,_0x410c8e,_0x3e2ca5);else{for(var _0x52d440=_0x26ede4['length']-0x1;_0x52d440>=0x0;_0x52d440--)(_0x302ff7=_0x26ede4[_0x52d440])&&(_0xf6a977=(_0x13de39<0x3?_0x302ff7(_0xf6a977):_0x13de39>0x3?_0x302ff7(_0x18cc5a,_0x410c8e,_0xf6a977):_0x302ff7(_0x18cc5a,_0x410c8e))||_0xf6a977);}return _0x13de39>0x3&&_0xf6a977&&Object[_0x30ae97(0x214)](_0x18cc5a,_0x410c8e,_0xf6a977),_0xf6a977;}let $=class extends _0x3b534c{constructor(_0xae5495=Z,_0x387a92,_0x3d51f6,_0x329394){const _0x1b479a=_0x1fa4ef;super(),this[_0x1b479a(0x201)]=_0xae5495,this['_injector']=_0x387a92,this[_0x1b479a(0x215)]=_0x3d51f6,this[_0x1b479a(0x205)]=_0x329394;let {..._0x31d73c}=_0x1c0735({},Z,this[_0x1b479a(0x201)]);this[_0x1b479a(0x205)]['setConfig'](_0x1b479a(0x1f5),_0x31d73c);}['onStarting'](){const _0x2c9e61=_0x1fa4ef;[[X,{'useClass':Te}]][_0x2c9e61(0x23f)](_0x227880=>this[_0x2c9e61(0x200)][_0x2c9e61(0x1f1)](_0x227880)),this[_0x2c9e61(0x239)](this[_0x2c9e61(0x215)][_0x2c9e61(0x231)](Ee));}};Y($,_0x1fa4ef(0x20a),_0x1fa4ef(0x224)),Y($,_0x1fa4ef(0x22f),Se),Y($,_0x1fa4ef(0x240),Ce),Y($,_0x1fa4ef(0x238),_0x621b82['UNIVER_UNKNOWN']),$=De([_0x34877c(_0x6d97e2),Q(0x1,_0x2bb1f8(_0x190b5e)),Q(0x2,_0x2f235a),Q(0x3,_0x5394e4)],$);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 _0x2752a1=_0x4dd5;function _0x4dd5(_0xdc52f5,_0x486e53){_0xdc52f5=_0xdc52f5-0x7f;const _0x5c3a06=_0x5c3a();let _0x4dd586=_0x5c3a06[_0xdc52f5];return _0x4dd586;}(function(_0xe09492,_0x5bde12){const _0x592dba=_0x4dd5,_0x2baf95=_0xe09492();while(!![]){try{const _0x166ff4=-parseInt(_0x592dba(0x9d))/0x1*(parseInt(_0x592dba(0x86))/0x2)+parseInt(_0x592dba(0x8c))/0x3+parseInt(_0x592dba(0xa2))/0x4*(-parseInt(_0x592dba(0xaa))/0x5)+parseInt(_0x592dba(0x88))/0x6*(-parseInt(_0x592dba(0x84))/0x7)+parseInt(_0x592dba(0xb2))/0x8*(-parseInt(_0x592dba(0x83))/0x9)+-parseInt(_0x592dba(0xb1))/0xa*(parseInt(_0x592dba(0x9e))/0xb)+parseInt(_0x592dba(0x9c))/0xc*(parseInt(_0x592dba(0xb0))/0xd);if(_0x166ff4===_0x5bde12)break;else _0x2baf95['push'](_0x2baf95['shift']());}catch(_0x428c8b){_0x2baf95['push'](_0x2baf95['shift']());}}}(_0x5c3a,0xd9e92));import{BoardElementType as _0x384ba3}from'@univerjs-pro/boards';function _0x5c3a(){const _0x32b63b=['45789972DqycdY','299339nlXGeL','518023ZeWEmW','corner','Shape','extend','366708rybDqJ','isFinite','getInks','sourceModel','deepClone','version','BoardInkHandleKind','pressure','30JMTwZN','pen','anchor','every','object','free','13LImvuO','160nJflmo','110512FkKwUF','insertInk','style','length','brush','anchors','findElements','45ebEDpT','644SrUGmk','width','2pHlMJU','transform','102498kQgxxf','kind','_addElement','has','960978xOZENb','highlighter','model','ink','filter','opacity','insertIndex','type','shapeData','smooth','out','add','custom','laneId','points','tool'];_0x5c3a=function(){return _0x32b63b;};return _0x5c3a();}import{FBoard as _0x2c6976}from'@univerjs-pro/boards/facade';import{buildInkCustomShapePayload as _0x2eb5d5}from'@univerjs-pro/ink';import{Tools as _0x265bf3,generateRandomId as _0x1e3763}from'@univerjs/core';import{FEnum as _0x3336b1}from'@univerjs/core/facade';var o=class extends _0x2c6976{[_0x2752a1(0xb3)](_0x26a5f0){const _0x42b5e0=_0x2752a1;let _0x3629e0=s(_0x26a5f0);return _0x3629e0&&this[_0x42b5e0(0x8a)](_0x3629e0,{'insertIndex':_0x26a5f0[_0x42b5e0(0x92)]})?_0x3629e0:null;}[_0x2752a1(0xa4)](){const _0x552794=_0x2752a1;return this[_0x552794(0x82)]({'elementType':_0x384ba3['Shape'],'includeHidden':!0x0,'includeLocked':!0x0})[_0x552794(0x90)](p);}};function s(_0x523a35,_0x20b8ed){const _0x46505f=_0x2752a1;if(!l(_0x523a35[_0x46505f(0x8e)])||_0x523a35[_0x46505f(0xa5)]!==void 0x0&&!l(_0x523a35[_0x46505f(0xa5)])||!u(_0x523a35[_0x46505f(0xb4)]))return null;let _0x596a0a=_0x523a35['parentId']??(_0x20b8ed==null?void 0x0:_0x20b8ed['parentId']),_0x58da44=_0x265bf3[_0x46505f(0xa6)](_0x523a35[_0x46505f(0x8e)]),_0xc3c888=_0x2eb5d5({'model':_0x58da44,'style':_0x523a35[_0x46505f(0xb4)],'tool':_0x523a35[_0x46505f(0x9b)],'sourceModel':_0x523a35[_0x46505f(0xa5)]?_0x265bf3[_0x46505f(0xa6)](_0x523a35[_0x46505f(0xa5)]):_0x58da44}),_0x2efd4b=d(_0x20b8ed==null?void 0x0:_0x20b8ed[_0x46505f(0x98)]);return{'id':(_0x20b8ed==null?void 0x0:_0x20b8ed['id'])??_0x523a35['id']??_0x1e3763(0x6),'type':_0x384ba3[_0x46505f(0xa0)],'transform':_0xc3c888[_0x46505f(0x87)],'shapeData':_0xc3c888[_0x46505f(0x94)],'parentId':_0x596a0a??void 0x0,'laneId':_0x523a35[_0x46505f(0x99)]===void 0x0?_0x20b8ed==null?void 0x0:_0x20b8ed['laneId']:_0x523a35[_0x46505f(0x99)],'custom':{..._0x2efd4b,'ink':_0xc3c888[_0x46505f(0x8f)]}};}function c(_0x16bfc7){const _0x4a5d60=_0x2752a1;return Number['isFinite'](_0x16bfc7['x'])&&Number[_0x4a5d60(0xa3)](_0x16bfc7['y']);}function l(_0x371cfe){const _0x217422=_0x2752a1;if(_0x371cfe[_0x217422(0x89)]===_0x217422(0xab)){let _0x40bf5d=new Set();return _0x371cfe['anchors']['length']>=(_0x371cfe['closed']?0x3:0x2)&&_0x371cfe[_0x217422(0x81)][_0x217422(0xad)](_0x34b45a=>{const _0xcd7f14=_0x217422;let _0x59e493=_0x34b45a['id']['trim']()[_0xcd7f14(0x7f)]>0x0&&!_0x40bf5d[_0xcd7f14(0x8b)](_0x34b45a['id'])&&c(_0x34b45a)&&(!_0x34b45a['in']||c(_0x34b45a['in']))&&(!_0x34b45a['out']||c(_0x34b45a[_0xcd7f14(0x96)]));return _0x40bf5d[_0xcd7f14(0x97)](_0x34b45a['id']),_0x59e493;});}return _0x371cfe[_0x217422(0x9a)][_0x217422(0x7f)]>=0x2&&_0x371cfe[_0x217422(0x9a)][_0x217422(0xad)](_0x578b0a=>c(_0x578b0a)&&Number[_0x217422(0xa3)](_0x578b0a['t'])&&(_0x578b0a[_0x217422(0xa9)]===void 0x0||Number[_0x217422(0xa3)](_0x578b0a[_0x217422(0xa9)])))&&Number[_0x217422(0xa3)](_0x371cfe[_0x217422(0x85)])&&_0x371cfe['width']>0x0&&Number['isFinite'](_0x371cfe[_0x217422(0x91)])&&_0x371cfe[_0x217422(0x91)]>=0x0&&_0x371cfe[_0x217422(0x91)]<=0x1;}function u(_0x3d6cc2){const _0x3cd823=_0x2752a1;return _0x3d6cc2===void 0x0||(_0x3d6cc2[_0x3cd823(0x85)]===void 0x0||Number[_0x3cd823(0xa3)](_0x3d6cc2[_0x3cd823(0x85)])&&_0x3d6cc2[_0x3cd823(0x85)]>0x0)&&(_0x3d6cc2[_0x3cd823(0x91)]===void 0x0||Number['isFinite'](_0x3d6cc2[_0x3cd823(0x91)])&&_0x3d6cc2['opacity']>=0x0&&_0x3d6cc2[_0x3cd823(0x91)]<=0x1);}function d(_0x5af9be){const _0x4676a3=_0x2752a1;return _0x5af9be&&typeof _0x5af9be==_0x4676a3(0xae)&&!Array['isArray'](_0x5af9be)?_0x5af9be:{};}function f(_0x4c531c){const _0x5997a2=_0x2752a1;let _0x5045bc=d(_0x4c531c[_0x5997a2(0x98)])[_0x5997a2(0x8f)];if(!_0x5045bc||typeof _0x5045bc!=_0x5997a2(0xae)||Array['isArray'](_0x5045bc))return null;let _0x5e26ea=_0x5045bc;return _0x5e26ea[_0x5997a2(0xa7)]===0x1&&_0x5e26ea[_0x5997a2(0xa5)]&&typeof _0x5e26ea[_0x5997a2(0xa5)]==_0x5997a2(0xae)?_0x5e26ea:null;}function p(_0x3ff7b9){const _0x4973af=_0x2752a1;return _0x3ff7b9[_0x4973af(0x93)]===_0x384ba3[_0x4973af(0xa0)]&&!!f(_0x3ff7b9);}_0x2c6976[_0x2752a1(0xa1)](o);const m={'Pen':_0x2752a1(0xab),'Brush':_0x2752a1(0x80),'Highlighter':_0x2752a1(0x8d)},h={'Corner':_0x2752a1(0x9f),'Smooth':_0x2752a1(0x95),'Symmetric':'symmetric','Free':_0x2752a1(0xaf)},g={'Anchor':_0x2752a1(0xac),'In':'in','Out':_0x2752a1(0x96)};var _=class extends _0x3336b1{get['BoardInkTool'](){return m;}get['BoardInkPointType'](){return h;}get[_0x2752a1(0xa8)](){return g;}};_0x3336b1[_0x2752a1(0xa1)](_);export{g as BoardInkHandleKind,h as BoardInkPointType,m as BoardInkTool};
1
+ const _0x1fcd42=_0x2403;(function(_0xf41b73,_0x5db4ae){const _0x2ef4ab=_0x2403,_0x4603fa=_0xf41b73();while(!![]){try{const _0x4b40ed=-parseInt(_0x2ef4ab(0x221))/0x1*(-parseInt(_0x2ef4ab(0x21d))/0x2)+-parseInt(_0x2ef4ab(0x216))/0x3+-parseInt(_0x2ef4ab(0x1fd))/0x4*(-parseInt(_0x2ef4ab(0x215))/0x5)+parseInt(_0x2ef4ab(0x200))/0x6*(-parseInt(_0x2ef4ab(0x21f))/0x7)+-parseInt(_0x2ef4ab(0x209))/0x8*(parseInt(_0x2ef4ab(0x1ff))/0x9)+parseInt(_0x2ef4ab(0x204))/0xa+-parseInt(_0x2ef4ab(0x206))/0xb*(-parseInt(_0x2ef4ab(0x1f9))/0xc);if(_0x4b40ed===_0x5db4ae)break;else _0x4603fa['push'](_0x4603fa['shift']());}catch(_0x3fa446){_0x4603fa['push'](_0x4603fa['shift']());}}}(_0x4f93,0x8bfc2));import{BoardElementType as _0x309451}from'@univerjs-pro/boards';import{FBoard as _0x4fa8ae}from'@univerjs-pro/boards/facade';import{buildInkCustomShapePayload as _0x4679c0}from'@univerjs-pro/ink';import{Tools as _0xdcd912,generateRandomId as _0x303a91}from'@univerjs/core';import{FEnum as _0x286ee1}from'@univerjs/core/facade';var o=class extends _0x4fa8ae{[_0x1fcd42(0x1f8)](_0x213ff5){const _0x309a5d=_0x1fcd42;let _0x55b55c=s(_0x213ff5);return _0x55b55c&&this[_0x309a5d(0x214)](_0x55b55c,{'insertIndex':_0x213ff5[_0x309a5d(0x202)]})?_0x55b55c:null;}['getInks'](){const _0x53086a=_0x1fcd42;return this['findElements']({'elementType':_0x309451[_0x53086a(0x21e)],'includeHidden':!0x0,'includeLocked':!0x0})['filter'](p);}};function s(_0x2d613b,_0x7698da){const _0x57998e=_0x1fcd42;if(!l(_0x2d613b[_0x57998e(0x1fe)])||_0x2d613b[_0x57998e(0x210)]!==void 0x0&&!l(_0x2d613b[_0x57998e(0x210)])||!u(_0x2d613b[_0x57998e(0x1f0)]))return null;let _0x2a83bc=_0x2d613b[_0x57998e(0x201)]??(_0x7698da==null?void 0x0:_0x7698da[_0x57998e(0x201)]),_0x64426b=_0xdcd912[_0x57998e(0x218)](_0x2d613b[_0x57998e(0x1fe)]),_0x2d9e86=_0x4679c0({'model':_0x64426b,'style':_0x2d613b[_0x57998e(0x1f0)],'tool':_0x2d613b[_0x57998e(0x21c)],'sourceModel':_0x2d613b['sourceModel']?_0xdcd912[_0x57998e(0x218)](_0x2d613b[_0x57998e(0x210)]):_0x64426b}),_0x5d2c26=d(_0x7698da==null?void 0x0:_0x7698da['custom']);return{'id':(_0x7698da==null?void 0x0:_0x7698da['id'])??_0x2d613b['id']??_0x303a91(0x6),'type':_0x309451[_0x57998e(0x21e)],'transform':_0x2d9e86['transform'],'shapeData':_0x2d9e86[_0x57998e(0x20d)],'parentId':_0x2a83bc??void 0x0,'laneId':_0x2d613b['laneId']===void 0x0?_0x7698da==null?void 0x0:_0x7698da[_0x57998e(0x1f5)]:_0x2d613b[_0x57998e(0x1f5)],'custom':{..._0x5d2c26,'ink':_0x2d9e86[_0x57998e(0x1fc)]}};}function c(_0x219e64){const _0xe38c88=_0x1fcd42;return Number[_0xe38c88(0x20f)](_0x219e64['x'])&&Number[_0xe38c88(0x20f)](_0x219e64['y']);}function l(_0x264aed){const _0x509530=_0x1fcd42;if(_0x264aed['kind']===_0x509530(0x205)){let _0x244193=new Set();return _0x264aed[_0x509530(0x207)]['length']>=(_0x264aed[_0x509530(0x1f2)]?0x3:0x2)&&_0x264aed[_0x509530(0x207)]['every'](_0xde8d6c=>{const _0x7bf1b3=_0x509530;let _0x369531=_0xde8d6c['id'][_0x7bf1b3(0x217)]()[_0x7bf1b3(0x213)]>0x0&&!_0x244193['has'](_0xde8d6c['id'])&&c(_0xde8d6c)&&(!_0xde8d6c['in']||c(_0xde8d6c['in']))&&(!_0xde8d6c[_0x7bf1b3(0x1f1)]||c(_0xde8d6c[_0x7bf1b3(0x1f1)]));return _0x244193['add'](_0xde8d6c['id']),_0x369531;});}return _0x264aed[_0x509530(0x208)][_0x509530(0x213)]>=0x2&&_0x264aed[_0x509530(0x208)][_0x509530(0x21b)](_0x4e6498=>c(_0x4e6498)&&Number[_0x509530(0x20f)](_0x4e6498['t'])&&(_0x4e6498[_0x509530(0x21a)]===void 0x0||Number['isFinite'](_0x4e6498[_0x509530(0x21a)])))&&Number[_0x509530(0x20f)](_0x264aed[_0x509530(0x1f7)])&&_0x264aed[_0x509530(0x1f7)]>0x0&&Number[_0x509530(0x20f)](_0x264aed[_0x509530(0x211)])&&_0x264aed[_0x509530(0x211)]>=0x0&&_0x264aed['opacity']<=0x1;}function u(_0x2d40d3){const _0x44393f=_0x1fcd42;return _0x2d40d3===void 0x0||(_0x2d40d3[_0x44393f(0x1f7)]===void 0x0||Number['isFinite'](_0x2d40d3[_0x44393f(0x1f7)])&&_0x2d40d3[_0x44393f(0x1f7)]>0x0)&&(_0x2d40d3[_0x44393f(0x211)]===void 0x0||Number[_0x44393f(0x20f)](_0x2d40d3[_0x44393f(0x211)])&&_0x2d40d3[_0x44393f(0x211)]>=0x0&&_0x2d40d3['opacity']<=0x1);}function _0x4f93(){const _0x1d0262=['brush','style','out','closed','corner','custom','laneId','free','width','insertInk','975636TqdJJt','type','BoardInkPointType','ink','44HjCbwS','model','81ySGRoI','1067814lirrRP','parentId','insertIndex','BoardInkHandleKind','9378180maBNSc','pen','77PNxQdW','anchors','points','989528JgFLxO','extend','symmetric','version','shapeData','smooth','isFinite','sourceModel','opacity','highlighter','length','_addElement','188805ZDzeUC','1735332LrkKyF','trim','deepClone','isArray','pressure','every','tool','28XLdolE','Shape','21TjrkiV','object','62617oubmOt'];_0x4f93=function(){return _0x1d0262;};return _0x4f93();}function d(_0x5befe4){const _0x2fb959=_0x1fcd42;return _0x5befe4&&typeof _0x5befe4==_0x2fb959(0x220)&&!Array[_0x2fb959(0x219)](_0x5befe4)?_0x5befe4:{};}function f(_0x1a97a5){const _0x302c34=_0x1fcd42;let _0xd267cf=d(_0x1a97a5[_0x302c34(0x1f4)])[_0x302c34(0x1fc)];if(!_0xd267cf||typeof _0xd267cf!='object'||Array['isArray'](_0xd267cf))return null;let _0x21766d=_0xd267cf;return _0x21766d[_0x302c34(0x20c)]===0x1&&_0x21766d[_0x302c34(0x210)]&&typeof _0x21766d[_0x302c34(0x210)]==_0x302c34(0x220)?_0x21766d:null;}function p(_0x43b380){const _0x455ac6=_0x1fcd42;return _0x43b380[_0x455ac6(0x1fa)]===_0x309451[_0x455ac6(0x21e)]&&!!f(_0x43b380);}_0x4fa8ae[_0x1fcd42(0x20a)](o);const m={'Pen':_0x1fcd42(0x205),'Brush':_0x1fcd42(0x1ef),'Highlighter':_0x1fcd42(0x212)},h={'Corner':_0x1fcd42(0x1f3),'Smooth':_0x1fcd42(0x20e),'Symmetric':_0x1fcd42(0x20b),'Free':_0x1fcd42(0x1f6)},g={'Anchor':'anchor','In':'in','Out':_0x1fcd42(0x1f1)};var _=class extends _0x286ee1{get['BoardInkTool'](){return m;}get[_0x1fcd42(0x1fb)](){return h;}get[_0x1fcd42(0x203)](){return g;}};function _0x2403(_0x5774cc,_0x50bf18){_0x5774cc=_0x5774cc-0x1ef;const _0x4f93ba=_0x4f93();let _0x240396=_0x4f93ba[_0x5774cc];return _0x240396;}_0x286ee1[_0x1fcd42(0x20a)](_);export{g as BoardInkHandleKind,h as BoardInkPointType,m as BoardInkTool};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x415bb0=_0x6819;(function(_0x180cb5,_0x458f22){const _0x46593d=_0x6819,_0x4252d8=_0x180cb5();while(!![]){try{const _0x49886e=parseInt(_0x46593d(0x1ff))/0x1*(parseInt(_0x46593d(0x203))/0x2)+-parseInt(_0x46593d(0x21a))/0x3+-parseInt(_0x46593d(0x22e))/0x4+parseInt(_0x46593d(0x1fa))/0x5*(-parseInt(_0x46593d(0x1f7))/0x6)+-parseInt(_0x46593d(0x1f3))/0x7+parseInt(_0x46593d(0x22b))/0x8+parseInt(_0x46593d(0x1ef))/0x9*(parseInt(_0x46593d(0x234))/0xa);if(_0x49886e===_0x458f22)break;else _0x4252d8['push'](_0x4252d8['shift']());}catch(_0x533ee2){_0x4252d8['push'](_0x4252d8['shift']());}}}(_0x459c,0xae6a6));import{ShapeFillEnum as _0x1dac18,ShapeLineCapEnum as _0x44ac4c,ShapeLineJoinEnum as _0x502545,ShapeLineTypeEnum as _0x114259,ShapeTypeEnum as _0x4983b6}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x24cccf}from'@univerjs-pro/license';import{CommandType as _0x14475d,DependentOn as _0x5465f6,ICommandService as _0x1f9af4,IConfigService as _0x5e845a,Inject as _0x5466f7,Injector as _0x4f188d,Plugin as _0x36a75c,UniverInstanceType as _0xf39585,createIdentifier as _0xc958de,merge as _0x55e0b7,toDisposable as _0x3cd973}from'@univerjs/core';const g=0.0001;function _(_0x8067d1){return{'x':_0x8067d1['x'],'y':_0x8067d1['y']};}function v(_0x1ef803){const _0x1d4082=_0x6819;return{..._0x1ef803,'in':_0x1ef803['in']?_(_0x1ef803['in']):void 0x0,'out':_0x1ef803[_0x1d4082(0x21d)]?_(_0x1ef803['out']):void 0x0};}function y(_0x49bdd9){const _0x40f993=_0x6819;return{'kind':_0x40f993(0x227),'closed':_0x49bdd9[_0x40f993(0x239)],'anchors':_0x49bdd9['anchors']['map'](v)};}function b(_0x257b47,_0x439618,_0x13f882){return{'x':_0x257b47['x']+(_0x439618['x']-_0x257b47['x'])*_0x13f882,'y':_0x257b47['y']+(_0x439618['y']-_0x257b47['y'])*_0x13f882};}function x(_0x1c6036,_0x290088){const _0x17db2a=_0x6819;return Math[_0x17db2a(0x23a)](_0x1c6036['x']-_0x290088['x'],_0x1c6036['y']-_0x290088['y']);}function S(_0x91b9){const _0x41afc6=_0x6819;let _0xf444fb=Math[_0x41afc6(0x23a)](_0x91b9['x'],_0x91b9['y']);return _0xf444fb<g?{'x':0x1,'y':0x0}:{'x':_0x91b9['x']/_0xf444fb,'y':_0x91b9['y']/_0xf444fb};}function C(_0x2a64db,_0x32c650,_0x348718=x(_0x2a64db,_0x32c650)){let _0x5b9d9d=S({'x':_0x2a64db['x']-_0x32c650['x'],'y':_0x2a64db['y']-_0x32c650['y']});return{'x':_0x2a64db['x']+_0x5b9d9d['x']*_0x348718,'y':_0x2a64db['y']+_0x5b9d9d['y']*_0x348718};}function w(_0x26d3b7,_0x4d06cb){const _0x185743=_0x6819;let {anchors:_0x25ec72}=_0x26d3b7;return _0x25ec72['length']<0x2||_0x4d06cb<0x0?null:_0x4d06cb<_0x25ec72[_0x185743(0x202)]-0x1?{'startIndex':_0x4d06cb,'endIndex':_0x4d06cb+0x1,'start':_0x25ec72[_0x4d06cb],'end':_0x25ec72[_0x4d06cb+0x1]}:_0x26d3b7['closed']&&_0x4d06cb===_0x25ec72[_0x185743(0x202)]-0x1?{'startIndex':_0x25ec72['length']-0x1,'endIndex':0x0,'start':_0x25ec72[_0x25ec72[_0x185743(0x202)]-0x1],'end':_0x25ec72[0x0]}:null;}function T(_0x285e0f,_0x517885){const _0x5c882a=_0x6819;let _0x488cc=w(_0x285e0f,_0x517885);return _0x488cc?[_0x488cc[_0x5c882a(0x22c)],_0x488cc[_0x5c882a(0x22c)][_0x5c882a(0x21d)]??_0x488cc[_0x5c882a(0x22c)],_0x488cc[_0x5c882a(0x1ec)]['in']??_0x488cc['end'],_0x488cc['end']]:null;}function te(_0x38f2d9,_0x555301){const _0x5653d0=_0x6819;return _0x555301===_0x5653d0(0x20f)?_0x38f2d9:_0x38f2d9[_0x555301]??null;}function E(_0x14d52b,_0x35a020,_0x2f50a3){const _0x4696d2=_0x6819;return _0x2f50a3===_0x4696d2(0x20f)||_0x14d52b[_0x4696d2(0x239)]?!0x0:_0x2f50a3==='in'?_0x35a020>0x0:_0x35a020<_0x14d52b[_0x4696d2(0x1f2)]['length']-0x1;}function D(_0x768323,_0x5db7d9){let [_0x480530,_0x53ca8d,_0x576651,_0x12d749]=_0x768323,_0x2b53dd=b(_0x480530,_0x53ca8d,_0x5db7d9),_0x1d3924=b(_0x53ca8d,_0x576651,_0x5db7d9),_0x226dd5=b(_0x576651,_0x12d749,_0x5db7d9);return b(b(_0x2b53dd,_0x1d3924,_0x5db7d9),b(_0x1d3924,_0x226dd5,_0x5db7d9),_0x5db7d9);}function ne(_0x4d2463,_0x331298){let [_0xcf2c79,_0x3f93eb,_0x2767d0,_0x4549a2]=_0x4d2463,_0x5cff0f=b(_0xcf2c79,_0x3f93eb,_0x331298),_0x2fffaf=b(_0x3f93eb,_0x2767d0,_0x331298),_0x178ffe=b(_0x2767d0,_0x4549a2,_0x331298),_0x2567fc=b(_0x5cff0f,_0x2fffaf,_0x331298),_0x64d260=b(_0x2fffaf,_0x178ffe,_0x331298),_0xcacf5=b(_0x2567fc,_0x64d260,_0x331298);return{'left':[_0xcf2c79,_0x5cff0f,_0x2567fc,_0xcacf5],'right':[_0xcacf5,_0x64d260,_0x178ffe,_0x4549a2]};}function O(_0x1d6f5e,_0x1ca210,_0x4698f6){let _0x22c691=_0x4698f6['x']-_0x1ca210['x'],_0x39f6c3=_0x4698f6['y']-_0x1ca210['y'],_0x4956f0=_0x22c691*_0x22c691+_0x39f6c3*_0x39f6c3,_0x269201=_0x4956f0<=g?0x0:Math['max'](0x0,Math['min'](0x1,((_0x1d6f5e['x']-_0x1ca210['x'])*_0x22c691+(_0x1d6f5e['y']-_0x1ca210['y'])*_0x39f6c3)/_0x4956f0)),_0xb1775a={'x':_0x1ca210['x']+_0x22c691*_0x269201,'y':_0x1ca210['y']+_0x39f6c3*_0x269201};return{'point':_0xb1775a,'ratio':_0x269201,'distance':x(_0x1d6f5e,_0xb1775a)};}function re(_0x46df97,_0x1bc27a,_0x31e09b){return O(_0x46df97,_0x1bc27a,_0x31e09b)['distance']**0x2;}function k(_0x5cd2b2,_0x1b8d40){const _0x591fbb=_0x6819;if(_0x5cd2b2[_0x591fbb(0x202)]<=0x2)return _0x5cd2b2[_0x591fbb(0x1e6)](_);let _0x4fcef5=0x0,_0x5a78ef=0x0,_0xa391ba=_0x5cd2b2[0x0],_0xdc56ed=_0x5cd2b2[_0x5cd2b2['length']-0x1],_0x1b26a5=_0x1b8d40*_0x1b8d40;for(let _0x44f623=0x1;_0x44f623<_0x5cd2b2['length']-0x1;_0x44f623++){let _0x4115db=re(_0x5cd2b2[_0x44f623],_0xa391ba,_0xdc56ed);_0x4115db>_0x4fcef5&&(_0x4fcef5=_0x4115db,_0x5a78ef=_0x44f623);}if(_0x4fcef5<=_0x1b26a5)return[_(_0xa391ba),_(_0xdc56ed)];let _0x823676=k(_0x5cd2b2['slice'](0x0,_0x5a78ef+0x1),_0x1b8d40),_0x5e5570=k(_0x5cd2b2[_0x591fbb(0x1e3)](_0x5a78ef),_0x1b8d40);return[..._0x823676[_0x591fbb(0x1e3)](0x0,-0x1),..._0x5e5570];}function ie(_0x1f25b9,_0x56bd83){let _0x107b73=_0x1f25b9[_0x56bd83],_0x49272f=_0x1f25b9[_0x56bd83+0x1],_0x5a1372=_0x1f25b9[_0x56bd83-0x1]??_0x107b73;return{'x':_0x107b73['x']+(_0x49272f['x']-_0x5a1372['x'])/0x6,'y':_0x107b73['y']+(_0x49272f['y']-_0x5a1372['y'])/0x6};}function A(_0x418783,_0x171446){let _0x32cb68=_0x418783[_0x171446],_0x77416c=_0x418783[_0x171446-0x1],_0x220f48=_0x418783[_0x171446+0x1]??_0x32cb68;return{'x':_0x32cb68['x']-(_0x220f48['x']-_0x77416c['x'])/0x6,'y':_0x32cb68['y']-(_0x220f48['y']-_0x77416c['y'])/0x6};}function j(_0x19099e,_0x5b10be){const _0x1aa845=_0x6819;let _0x1d59d1=_0x19099e[_0x1aa845(0x1f2)][_0x5b10be],_0x3c0940=_0x19099e['anchors'][_0x5b10be-0x1]??(_0x19099e['closed']?_0x19099e[_0x1aa845(0x1f2)][_0x19099e[_0x1aa845(0x1f2)][_0x1aa845(0x202)]-0x1]:null),_0x4b04e0=_0x19099e[_0x1aa845(0x1f2)][_0x5b10be+0x1]??(_0x19099e['closed']?_0x19099e[_0x1aa845(0x1f2)][0x0]:null),_0x301cc8=_0x3c0940&&_0x4b04e0?S({'x':_0x4b04e0['x']-_0x3c0940['x'],'y':_0x4b04e0['y']-_0x3c0940['y']}):_0x4b04e0?S({'x':_0x4b04e0['x']-_0x1d59d1['x'],'y':_0x4b04e0['y']-_0x1d59d1['y']}):_0x3c0940?S({'x':_0x1d59d1['x']-_0x3c0940['x'],'y':_0x1d59d1['y']-_0x3c0940['y']}):{'x':0x1,'y':0x0},_0x45ea3f=_0x3c0940&&_0x4b04e0?Math[_0x1aa845(0x1ea)](0x32,x(_0x3c0940,_0x4b04e0)/0x4):0x32;return{'in':{'x':_0x1d59d1['x']-_0x301cc8['x']*_0x45ea3f,'y':_0x1d59d1['y']-_0x301cc8['y']*_0x45ea3f},'out':{'x':_0x1d59d1['x']+_0x301cc8['x']*_0x45ea3f,'y':_0x1d59d1['y']+_0x301cc8['y']*_0x45ea3f}};}function M(_0x4fa071,_0x1bb23f){const _0x2eab9a=_0x6819;let _0x5905d4=_0x4fa071[_0x1bb23f],_0xba51da=_0x1bb23f==='in'?_0x2eab9a(0x21d):'in',_0x2c3bde=_0x4fa071[_0xba51da];_0x5905d4&&(_0x4fa071[_0x2eab9a(0x225)]==='symmetric'?_0x4fa071[_0xba51da]=C(_0x4fa071,_0x5905d4):_0x4fa071['pointType']===_0x2eab9a(0x1fb)&&(_0x4fa071[_0xba51da]=C(_0x4fa071,_0x5905d4,_0x2c3bde?x(_0x4fa071,_0x2c3bde):x(_0x4fa071,_0x5905d4))));}function ae(_0x51c546,_0x1dd1f2){const _0x53f3c1=_0x6819;let _0x132bb4=y(_0x51c546);return!_0x1dd1f2||_0x132bb4['closed']||_0x132bb4['anchors'][_0x53f3c1(0x202)]===0x0||_0x132bb4['anchors'][_0x53f3c1(0x210)]({'id':'__ink-preview-anchor__','x':_0x1dd1f2['x'],'y':_0x1dd1f2['y'],'pointType':'corner'}),_0x132bb4;}function oe(_0x92a154,_0x544b59={}){const _0x1d909c=_0x6819;let _0x5aaf65=Math[_0x1d909c(0x1ea)](0x0,_0x544b59[_0x1d909c(0x1e2)]??Math[_0x1d909c(0x1ea)](0x4,_0x92a154[_0x1d909c(0x1fc)]*0.35)),_0x4ba282=_0x544b59['createId']??(_0x359149=>_0x1d909c(0x236)+_0x359149),_0xe8e1c7=k(_0x92a154[_0x1d909c(0x223)],_0x5aaf65),_0x26df85=_0xe8e1c7[_0x1d909c(0x1e6)]((_0xce105a,_0x41d495)=>({'id':_0x4ba282(_0x41d495),'x':_0xce105a['x'],'y':_0xce105a['y'],'pointType':_0x1d909c(0x213)}));for(let _0x2882bc=0x0;_0x2882bc<_0x26df85[_0x1d909c(0x202)]-0x1;_0x2882bc++)_0x26df85[_0x2882bc]['out']=ie(_0xe8e1c7,_0x2882bc),_0x26df85[_0x2882bc+0x1]['in']=A(_0xe8e1c7,_0x2882bc+0x1);return{'kind':_0x1d909c(0x227),'closed':!0x1,'anchors':_0x26df85};}function se(_0x529bc9,_0x522d3f,_0xe06ae){const _0x794ed9=_0x6819;let _0x5270fa=null,_0x48b92a=[_0x794ed9(0x20f),'in',_0x794ed9(0x21d)];return _0x529bc9[_0x794ed9(0x1f2)][_0x794ed9(0x238)]((_0x590172,_0x153cf7)=>{const _0x2a1b89=_0x794ed9;_0x48b92a[_0x2a1b89(0x238)](_0x5c96ba=>{const _0x47f6cc=_0x2a1b89;if(!E(_0x529bc9,_0x153cf7,_0x5c96ba))return;let _0x24cec1=te(_0x590172,_0x5c96ba);if(!_0x24cec1)return;let _0x5c5600=x(_0x522d3f,_0x24cec1);_0x5c5600>_0xe06ae||_0x5270fa&&_0x5c5600>=_0x5270fa[_0x47f6cc(0x207)]||(_0x5270fa={'handle':{'kind':_0x5c96ba,'anchorId':_0x590172['id']},'point':_(_0x24cec1),'distance':_0x5c5600});});}),_0x5270fa;}function ce(_0x3a2076,_0x45c51e,_0x4ff9b5){const _0x32062b=_0x6819;let _0x27599e=null,_0x50fb85=_0x3a2076[_0x32062b(0x239)]?_0x3a2076[_0x32062b(0x1f2)][_0x32062b(0x202)]:Math[_0x32062b(0x1ea)](0x0,_0x3a2076[_0x32062b(0x1f2)][_0x32062b(0x202)]-0x1);for(let _0x328c9f=0x0;_0x328c9f<_0x50fb85;_0x328c9f++){let _0x452e07=T(_0x3a2076,_0x328c9f);if(!_0x452e07)continue;let _0x5ac010=D(_0x452e07,0x0);for(let _0x5b6506=0x1;_0x5b6506<=0x20;_0x5b6506++){let _0x43bd3d=D(_0x452e07,_0x5b6506/0x20),_0x369514=O(_0x45c51e,_0x5ac010,_0x43bd3d),_0x506131=(_0x5b6506-0x1+_0x369514['ratio'])/0x20;(!_0x27599e||_0x369514[_0x32062b(0x207)]<_0x27599e[_0x32062b(0x207)])&&(_0x27599e={'segmentIndex':_0x328c9f,'t':_0x506131,'point':_0x369514[_0x32062b(0x217)],'distance':_0x369514[_0x32062b(0x207)]}),_0x5ac010=_0x43bd3d;}}return _0x27599e&&_0x27599e[_0x32062b(0x207)]<=_0x4ff9b5?_0x27599e:null;}function _0x459c(){const _0x2406cd=['slice','Rect','splice','map','SolidFill','corner','opacity','max','min','end','decorate','height','387uedtBb','setConfig','symmetric','anchors','5091625vbERQC','pluginName','_injector','find','150gMeCDw','get','_config','220340EqtQcL','smooth','width','fillColor','function','29MallUq','ink.config','add','length','51230fhYhVv','createCustomShape','version','segmentIndex','distance','endIndex','beginInkMode','kind','object','_adapters','left','symbol','anchor','push','_configService','abs','free','prototype','constructor','NoFill','point','defineProperty','top','2983575LeMXjH','1.3.0','tool','out','string','#f54a45','Round','join','onStarting','points','norm','pointType','@univerjs-pro/ink','pen','toPrimitive','right','registerCommand','3838744HPNNaB','start','UNIVER_UNKNOWN','2888596EEmQez','packageName','default','anchorId','startIndex','color','706390xvKctY','findIndex','ink-centerline-','_commandService','forEach','closed','hypot','getOwnPropertyDescriptor','ink.host-adapter.service','registerAdapter','type','sqrt','UNIVER_INK_PLUGIN','round','tolerance'];_0x459c=function(){return _0x2406cd;};return _0x459c();}function le(_0x102709,_0x3e90ee,_0x300910){const _0x3d74af=_0x6819;let _0x3679a7=y(_0x102709),_0x347da6=w(_0x3679a7,_0x3e90ee['segmentIndex']),_0x2e5785=T(_0x3679a7,_0x3e90ee[_0x3d74af(0x206)]);if(!_0x347da6||!_0x2e5785)return _0x3679a7;let _0x3654c0=ne(_0x2e5785,Math[_0x3d74af(0x1ea)](0x0,Math[_0x3d74af(0x1eb)](0x1,_0x3e90ee['t']))),_0x50bed8={'id':_0x300910(),'x':_0x3654c0[_0x3d74af(0x20d)][0x3]['x'],'y':_0x3654c0[_0x3d74af(0x20d)][0x3]['y'],'in':_(_0x3654c0['left'][0x2]),'out':_(_0x3654c0['right'][0x1]),'pointType':_0x3d74af(0x213)};return _0x3679a7[_0x3d74af(0x1f2)][_0x347da6[_0x3d74af(0x232)]][_0x3d74af(0x21d)]=_(_0x3654c0[_0x3d74af(0x20d)][0x1]),_0x3679a7[_0x3d74af(0x1f2)][_0x347da6[_0x3d74af(0x208)]]['in']=_(_0x3654c0[_0x3d74af(0x229)][0x2]),_0x3679a7[_0x3d74af(0x1f2)][_0x3d74af(0x1e5)](_0x347da6['startIndex']+0x1,0x0,_0x50bed8),_0x3679a7;}function ue(_0x4f532f,_0x3ca25f){const _0x20bb52=_0x6819;let _0x2cd613=y(_0x4f532f);return _0x2cd613[_0x20bb52(0x1f2)]=_0x2cd613[_0x20bb52(0x1f2)]['filter'](_0x2ba993=>_0x2ba993['id']!==_0x3ca25f),_0x2cd613[_0x20bb52(0x239)]&&_0x2cd613[_0x20bb52(0x1f2)][_0x20bb52(0x202)]<0x3&&(_0x2cd613[_0x20bb52(0x239)]=!0x1),_0x2cd613;}function N(_0x2461c2,_0x4f7018,_0xf79916){const _0xc801c2=_0x6819;let _0x2899ac=y(_0x2461c2),_0x7c42c=_0x2899ac['anchors'][_0xc801c2(0x235)](_0x7b1703=>_0x7b1703['id']===_0x4f7018),_0x336976=_0x2899ac['anchors'][_0x7c42c];if(!_0x336976)return _0x2899ac;if(_0x336976[_0xc801c2(0x225)]=_0xf79916,_0xf79916===_0xc801c2(0x1e8))return delete _0x336976['in'],delete _0x336976['out'],_0x2899ac;let _0x379938=j(_0x2899ac,_0x7c42c);if(_0x336976['in']=_0x336976['in']?_(_0x336976['in']):_0x379938['in'],_0x336976[_0xc801c2(0x21d)]=_0x336976[_0xc801c2(0x21d)]?_(_0x336976[_0xc801c2(0x21d)]):_0x379938[_0xc801c2(0x21d)],_0xf79916===_0xc801c2(0x1f1)){let _0x33eb82=Math[_0xc801c2(0x1ea)](x(_0x336976,_0x336976['in']),x(_0x336976,_0x336976[_0xc801c2(0x21d)]),0x32),_0x22f2cb=S({'x':_0x336976[_0xc801c2(0x21d)]['x']-_0x336976['x'],'y':_0x336976[_0xc801c2(0x21d)]['y']-_0x336976['y']});_0x336976[_0xc801c2(0x21d)]={'x':_0x336976['x']+_0x22f2cb['x']*_0x33eb82,'y':_0x336976['y']+_0x22f2cb['y']*_0x33eb82},_0x336976['in']={'x':_0x336976['x']-_0x22f2cb['x']*_0x33eb82,'y':_0x336976['y']-_0x22f2cb['y']*_0x33eb82};}else _0xf79916==='smooth'&&M(_0x336976,'out');return _0x2899ac;}function P(_0x55ea13,_0x497cdc){const _0x2b544c=_0x6819;let _0xc7604a=_0x55ea13[_0x2b544c(0x1f2)][_0x2b544c(0x1f6)](_0x4a625d=>_0x4a625d['id']===_0x497cdc),_0x2f9a50=(_0xc7604a==null?void 0x0:_0xc7604a['pointType'])??'corner';return N(_0x55ea13,_0x497cdc,_0x2f9a50===_0x2b544c(0x1e8)?_0x2b544c(0x1fb):_0x2f9a50===_0x2b544c(0x1fb)?_0x2b544c(0x1f1):_0x2f9a50===_0x2b544c(0x1f1)?_0x2b544c(0x213):_0x2b544c(0x1e8));}function F(_0x57cec5,_0x451d29,_0x1297b5){const _0x520c0a=_0x6819;let _0x5c8a4d=y(_0x57cec5),_0x52891a=_0x5c8a4d[_0x520c0a(0x1f2)][_0x520c0a(0x1f6)](_0x58af7b=>_0x58af7b['id']===_0x451d29[_0x520c0a(0x231)]);if(!_0x52891a)return _0x5c8a4d;if(_0x451d29['kind']==='anchor'){let _0x27ad05={'x':_0x1297b5['x']-_0x52891a['x'],'y':_0x1297b5['y']-_0x52891a['y']};return _0x52891a['x']=_0x1297b5['x'],_0x52891a['y']=_0x1297b5['y'],_0x52891a['in']&&={'x':_0x52891a['in']['x']+_0x27ad05['x'],'y':_0x52891a['in']['y']+_0x27ad05['y']},_0x52891a['out']&&={'x':_0x52891a[_0x520c0a(0x21d)]['x']+_0x27ad05['x'],'y':_0x52891a[_0x520c0a(0x21d)]['y']+_0x27ad05['y']},_0x5c8a4d;}return _0x52891a[_0x451d29[_0x520c0a(0x20a)]]=_(_0x1297b5),_0x52891a[_0x520c0a(0x225)]===_0x520c0a(0x1e8)&&(_0x52891a['pointType']=_0x520c0a(0x213)),M(_0x52891a,_0x451d29[_0x520c0a(0x20a)]),_0x5c8a4d;}const I=1e-9;function L(_0x5f4e20){const _0x553689=_0x6819;let _0x3c8be8=Math[_0x553689(0x1e1)](_0x5f4e20*0x2710)/0x2710;return Object['is'](_0x3c8be8,-0x0)?'0':String(_0x3c8be8);}function R(_0x3fdd82){return L(_0x3fdd82['x'])+'\x20'+L(_0x3fdd82['y']);}function z(_0x384abc,_0x2b2789){return{'x':_0x384abc['x']-_0x2b2789['x'],'y':_0x384abc['y']-_0x2b2789['y']};}function B(_0x3169e6,_0x3d90df,_0x56ce7e,_0x20a1ab,_0x3729ed){let _0xc7d712=0x1-_0x3729ed;return{'x':_0xc7d712*_0xc7d712*_0xc7d712*_0x3169e6['x']+0x3*_0xc7d712*_0xc7d712*_0x3729ed*_0x3d90df['x']+0x3*_0xc7d712*_0x3729ed*_0x3729ed*_0x56ce7e['x']+_0x3729ed*_0x3729ed*_0x3729ed*_0x20a1ab['x'],'y':_0xc7d712*_0xc7d712*_0xc7d712*_0x3169e6['y']+0x3*_0xc7d712*_0xc7d712*_0x3729ed*_0x3d90df['y']+0x3*_0xc7d712*_0x3729ed*_0x3729ed*_0x56ce7e['y']+_0x3729ed*_0x3729ed*_0x3729ed*_0x20a1ab['y']};}function V(_0x3accad,_0x12f28e,_0xfa6d6f,_0x50a31e){const _0x1e3de2=_0x6819;let _0x1f169c=-_0x3accad+0x3*_0x12f28e-0x3*_0xfa6d6f+_0x50a31e,_0x1f9632=0x3*_0x3accad-0x6*_0x12f28e+0x3*_0xfa6d6f,_0x39daf7=-0x3*_0x3accad+0x3*_0x12f28e,_0x174195=[];if(Math[_0x1e3de2(0x212)](_0x1f169c)<I){if(Math[_0x1e3de2(0x212)](_0x1f9632)<I)return _0x174195;let _0x57958b=-_0x39daf7/(0x2*_0x1f9632);return _0x57958b>0x0&&_0x57958b<0x1&&_0x174195[_0x1e3de2(0x210)](_0x57958b),_0x174195;}let _0x1e09ba=_0x1f9632*_0x1f9632-0x3*_0x1f169c*_0x39daf7;if(_0x1e09ba<0x0)return _0x174195;let _0x459910=Math[_0x1e3de2(0x1df)](Math['max'](0x0,_0x1e09ba)),_0x47188a=(-_0x1f9632+_0x459910)/(0x3*_0x1f169c),_0x22832e=(-_0x1f9632-_0x459910)/(0x3*_0x1f169c);return _0x47188a>0x0&&_0x47188a<0x1&&_0x174195[_0x1e3de2(0x210)](_0x47188a),_0x22832e>0x0&&_0x22832e<0x1&&Math[_0x1e3de2(0x212)](_0x22832e-_0x47188a)>I&&_0x174195[_0x1e3de2(0x210)](_0x22832e),_0x174195;}function H(_0x10ec3e,_0x36e2ca,_0x5c166b,_0x51d046,_0x18f010){const _0x4bf6ab=_0x6819;_0x10ec3e[_0x4bf6ab(0x210)](_0x36e2ca,_0x18f010),new Set([...V(_0x36e2ca['x'],_0x5c166b['x'],_0x51d046['x'],_0x18f010['x']),...V(_0x36e2ca['y'],_0x5c166b['y'],_0x51d046['y'],_0x18f010['y'])])[_0x4bf6ab(0x238)](_0x30b220=>{const _0x101ab3=_0x4bf6ab;_0x10ec3e[_0x101ab3(0x210)](B(_0x36e2ca,_0x5c166b,_0x51d046,_0x18f010,_0x30b220));});}function U(_0x3ad4c2){const _0xd44ef8=_0x6819;let _0x796ad3=_0x3ad4c2[_0xd44ef8(0x1f2)];if(_0x796ad3[_0xd44ef8(0x202)]<=0x1)return _0x796ad3;let _0x26a0d1=[];for(let _0x1b6cc6=0x1;_0x1b6cc6<_0x796ad3[_0xd44ef8(0x202)];_0x1b6cc6++){let _0x563af2=_0x796ad3[_0x1b6cc6-0x1],_0x5f11c8=_0x796ad3[_0x1b6cc6];H(_0x26a0d1,_0x563af2,_0x563af2[_0xd44ef8(0x21d)]??_0x563af2,_0x5f11c8['in']??_0x5f11c8,_0x5f11c8);}if(_0x3ad4c2[_0xd44ef8(0x239)]&&_0x796ad3['length']>0x1){let _0x1dad50=_0x796ad3[_0x796ad3[_0xd44ef8(0x202)]-0x1],_0x18260f=_0x796ad3[0x0];H(_0x26a0d1,_0x1dad50,_0x1dad50[_0xd44ef8(0x21d)]??_0x1dad50,_0x18260f['in']??_0x18260f,_0x18260f);}return _0x26a0d1;}function de(_0x5e8d45){const _0xdd7e73=_0x6819;let _0x4798e7=_0x5e8d45['points'];if(_0x4798e7[_0xdd7e73(0x202)]<=0x1)return _0x4798e7;let _0x1d6323=[];for(let _0x5466f3=0x0;_0x5466f3<_0x4798e7['length']-0x1;_0x5466f3++){let _0x72044a=_0x4798e7[_0x5466f3],_0x289d15=_0x4798e7[_0x5466f3+0x1],_0x2bfe41=_0x4798e7[_0x5466f3-0x1]??_0x72044a,_0x5c3359=_0x4798e7[_0x5466f3+0x2]??_0x289d15;H(_0x1d6323,_0x72044a,{'x':_0x72044a['x']+(_0x289d15['x']-_0x2bfe41['x'])/0x6,'y':_0x72044a['y']+(_0x289d15['y']-_0x2bfe41['y'])/0x6},{'x':_0x289d15['x']-(_0x5c3359['x']-_0x72044a['x'])/0x6,'y':_0x289d15['y']-(_0x5c3359['y']-_0x72044a['y'])/0x6},_0x289d15);}return _0x1d6323;}function fe(_0x21e7f2){const _0x5a8bc7=_0x6819;return _0x21e7f2[_0x5a8bc7(0x20a)]===_0x5a8bc7(0x227)?U(_0x21e7f2):de(_0x21e7f2);}function W(_0x5d3e24){const _0x220f85=_0x6819;let _0x5ac383=Math[_0x220f85(0x1e1)](_0x5d3e24*0x2710)/0x2710;return Object['is'](_0x5ac383,-0x0)?0x0:_0x5ac383;}function G(_0x319767){const _0x47f56f=_0x6819;let _0x5d5096=fe(_0x319767);if(_0x5d5096[_0x47f56f(0x202)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x429b1b=Math['min'](..._0x5d5096['map'](_0x6b23ab=>_0x6b23ab['x'])),_0x273b2b=Math[_0x47f56f(0x1eb)](..._0x5d5096['map'](_0x5d088e=>_0x5d088e['y'])),_0x1b0a3a=Math[_0x47f56f(0x1ea)](..._0x5d5096[_0x47f56f(0x1e6)](_0x1fb595=>_0x1fb595['x'])),_0x1ee842=Math['max'](..._0x5d5096['map'](_0x2384f8=>_0x2384f8['y']));return{'left':W(_0x429b1b),'top':W(_0x273b2b),'width':W(Math[_0x47f56f(0x1ea)](0x1,_0x1b0a3a-_0x429b1b)),'height':W(Math[_0x47f56f(0x1ea)](0x1,_0x1ee842-_0x273b2b))};}function pe(_0x3355ea,_0x3ae24e){const _0x1e0d8c=_0x6819;let _0x16c97e=_0x3355ea[_0x1e0d8c(0x1f2)];if(_0x16c97e['length']===0x0)return'';let _0x4e528c=['M\x20'+R(z(_0x16c97e[0x0],_0x3ae24e))];for(let _0x48bb33=0x1;_0x48bb33<_0x16c97e['length'];_0x48bb33++){let _0xd709a4=_0x16c97e[_0x48bb33-0x1],_0x5a668d=_0x16c97e[_0x48bb33],_0x338bad=_0xd709a4[_0x1e0d8c(0x21d)]??_0xd709a4,_0x58d273=_0x5a668d['in']??_0x5a668d;_0x4e528c[_0x1e0d8c(0x210)]('C\x20'+R(z(_0x338bad,_0x3ae24e))+'\x20'+R(z(_0x58d273,_0x3ae24e))+'\x20'+R(z(_0x5a668d,_0x3ae24e)));}if(_0x3355ea['closed']&&_0x16c97e[_0x1e0d8c(0x202)]>0x1){let _0x1f0b82=_0x16c97e[_0x16c97e['length']-0x1],_0x5c2519=_0x16c97e[0x0],_0x4a1d2a=_0x1f0b82[_0x1e0d8c(0x21d)]??_0x1f0b82,_0x18429d=_0x5c2519['in']??_0x5c2519;_0x4e528c[_0x1e0d8c(0x210)]('C\x20'+R(z(_0x4a1d2a,_0x3ae24e))+'\x20'+R(z(_0x18429d,_0x3ae24e))+'\x20'+R(z(_0x5c2519,_0x3ae24e))),_0x4e528c[_0x1e0d8c(0x210)]('Z');}return _0x4e528c[_0x1e0d8c(0x221)]('\x20');}function me(_0x68b3f4,_0x5bd212){const _0x4ee75e=_0x6819;let _0x2ec0ec=_0x68b3f4[_0x4ee75e(0x223)]['map'](_0x54a1ef=>z(_0x54a1ef,_0x5bd212));if(_0x2ec0ec[_0x4ee75e(0x202)]===0x0)return'';if(_0x2ec0ec[_0x4ee75e(0x202)]===0x1)return'M\x20'+R(_0x2ec0ec[0x0]);let _0x94b7da=['M\x20'+R(_0x2ec0ec[0x0])];for(let _0x30a07b=0x0;_0x30a07b<_0x2ec0ec[_0x4ee75e(0x202)]-0x1;_0x30a07b++){let _0x45bd2b=_0x2ec0ec[_0x30a07b],_0x1135c4=_0x2ec0ec[_0x30a07b+0x1],_0x5aeddf=_0x2ec0ec[_0x30a07b-0x1]??_0x45bd2b,_0x1e6e63=_0x2ec0ec[_0x30a07b+0x2]??_0x1135c4,_0x13e5f4={'x':_0x45bd2b['x']+(_0x1135c4['x']-_0x5aeddf['x'])/0x6,'y':_0x45bd2b['y']+(_0x1135c4['y']-_0x5aeddf['y'])/0x6},_0x2a03f4={'x':_0x1135c4['x']-(_0x1e6e63['x']-_0x45bd2b['x'])/0x6,'y':_0x1135c4['y']-(_0x1e6e63['y']-_0x45bd2b['y'])/0x6};_0x94b7da['push']('C\x20'+R(_0x13e5f4)+'\x20'+R(_0x2a03f4)+'\x20'+R(_0x1135c4));}return _0x94b7da[_0x4ee75e(0x221)]('\x20');}function he(_0x3c191d,_0x5b1099){const _0x359914=_0x6819;return _0x3c191d['kind']===_0x359914(0x227)?pe(_0x3c191d,_0x5b1099):me(_0x3c191d,_0x5b1099);}function ge(_0x3672d3,_0x34d95d){const _0xf7f6d4=_0x6819;return _0x34d95d!=null&&_0x34d95d[_0xf7f6d4(0x233)]?_0x34d95d[_0xf7f6d4(0x233)]:_0x3672d3[_0xf7f6d4(0x20a)]===_0xf7f6d4(0x227)?_0xf7f6d4(0x21f):_0x3672d3[_0xf7f6d4(0x233)];}function _e(_0xedd486,_0xfaae38){const _0x25b4e3=_0x6819;return(_0xfaae38==null?void 0x0:_0xfaae38[_0x25b4e3(0x1fc)])===void 0x0?_0xedd486['kind']===_0x25b4e3(0x227)?0x2:_0xedd486['width']:_0xfaae38['width'];}function ve(_0x280d41,_0x553db6){const _0x3090cd=_0x6819;return(_0x553db6==null?void 0x0:_0x553db6['opacity'])===void 0x0?_0x280d41[_0x3090cd(0x20a)]==='pen'?void 0x0:_0x280d41[_0x3090cd(0x1e9)]:_0x553db6[_0x3090cd(0x1e9)];}function ye(_0xc331f3,_0xedcdac){const _0x5127f8=_0x6819;let _0x8f487c=G(_0xc331f3),_0x5aa14f=he(_0xc331f3,{'x':_0x8f487c[_0x5127f8(0x20d)],'y':_0x8f487c[_0x5127f8(0x219)]}),_0x36fdc6=_0xc331f3['kind']===_0x5127f8(0x227)&&_0xc331f3['closed'],_0x481abd=_0xedcdac==null?void 0x0:_0xedcdac[_0x5127f8(0x1fd)];return{'shapeType':_0x4983b6[_0x5127f8(0x1e4)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x8f487c[_0x5127f8(0x1fc)],'h':_0x8f487c[_0x5127f8(0x1ee)],'fill':_0x36fdc6?_0x5127f8(0x224):'none','stroke':!0x0,'data':_0x5aa14f,'dataArray':be(_0xc331f3,{'x':_0x8f487c['left'],'y':_0x8f487c[_0x5127f8(0x219)]})}]},'fill':_0x36fdc6&&_0x481abd?{'color':_0x481abd,'fillType':_0x1dac18[_0x5127f8(0x1e7)]}:{'fillType':_0x1dac18[_0x5127f8(0x216)]},'stroke':{'color':ge(_0xc331f3,_0xedcdac),'width':_e(_0xc331f3,_0xedcdac),'opacity':ve(_0xc331f3,_0xedcdac),'lineStrokeType':_0x114259['SolidLine'],'capType':_0x44ac4c[_0x5127f8(0x220)],'lineJoinType':_0x502545[_0x5127f8(0x220)]}};}function K(_0x50c5ca,_0x14329b){return{'x':_0x50c5ca['x']-_0x14329b['x'],'y':_0x50c5ca['y']-_0x14329b['y']};}function be(_0x191ca2,_0x3a01b2){const _0x1780e2=_0x6819;if(_0x191ca2['kind']===_0x1780e2(0x227)){let _0xaf3532=_0x191ca2[_0x1780e2(0x1f2)];if(_0xaf3532['length']===0x0)return[];let _0x5c1f12=K(_0xaf3532[0x0],_0x3a01b2),_0x41a368=[{'command':'M','points':[_0x5c1f12['x'],_0x5c1f12['y']]}];for(let _0x3ccd41=0x1;_0x3ccd41<_0xaf3532[_0x1780e2(0x202)];_0x3ccd41++){let _0x36b1d7=_0xaf3532[_0x3ccd41-0x1],_0x312444=_0xaf3532[_0x3ccd41],_0x174790=K(_0x36b1d7[_0x1780e2(0x21d)]??_0x36b1d7,_0x3a01b2),_0x157202=K(_0x312444['in']??_0x312444,_0x3a01b2),_0x525739=K(_0x312444,_0x3a01b2);_0x41a368[_0x1780e2(0x210)]({'command':'C','points':[_0x174790['x'],_0x174790['y'],_0x157202['x'],_0x157202['y'],_0x525739['x'],_0x525739['y']]});}if(_0x191ca2[_0x1780e2(0x239)]&&_0xaf3532[_0x1780e2(0x202)]>0x1){let _0x59f366=_0xaf3532[_0xaf3532[_0x1780e2(0x202)]-0x1],_0x103676=_0xaf3532[0x0],_0x377ed6=K(_0x59f366[_0x1780e2(0x21d)]??_0x59f366,_0x3a01b2),_0x208648=K(_0x103676['in']??_0x103676,_0x3a01b2),_0x32f5fc=K(_0x103676,_0x3a01b2);_0x41a368['push']({'command':'C','points':[_0x377ed6['x'],_0x377ed6['y'],_0x208648['x'],_0x208648['y'],_0x32f5fc['x'],_0x32f5fc['y']]}),_0x41a368['push']({'command':'z','points':[]});}return _0x41a368;}let _0x5840e5=_0x191ca2['points'][_0x1780e2(0x1e6)](_0x337a48=>K(_0x337a48,_0x3a01b2));if(_0x5840e5[_0x1780e2(0x202)]===0x0)return[];let _0x878ecf=[{'command':'M','points':[_0x5840e5[0x0]['x'],_0x5840e5[0x0]['y']]}];for(let _0x3bf0be=0x0;_0x3bf0be<_0x5840e5[_0x1780e2(0x202)]-0x1;_0x3bf0be++){let _0x3ccb1e=_0x5840e5[_0x3bf0be],_0x16a2fd=_0x5840e5[_0x3bf0be+0x1],_0x5d82b0=_0x5840e5[_0x3bf0be-0x1]??_0x3ccb1e,_0x59d933=_0x5840e5[_0x3bf0be+0x2]??_0x16a2fd,_0x453599={'x':_0x3ccb1e['x']+(_0x16a2fd['x']-_0x5d82b0['x'])/0x6,'y':_0x3ccb1e['y']+(_0x16a2fd['y']-_0x5d82b0['y'])/0x6},_0x11a80a={'x':_0x16a2fd['x']-(_0x59d933['x']-_0x3ccb1e['x'])/0x6,'y':_0x16a2fd['y']-(_0x59d933['y']-_0x3ccb1e['y'])/0x6};_0x878ecf[_0x1780e2(0x210)]({'command':'C','points':[_0x453599['x'],_0x453599['y'],_0x11a80a['x'],_0x11a80a['y'],_0x16a2fd['x'],_0x16a2fd['y']]});}return _0x878ecf;}function xe(_0x23dd29){const _0x8340a2=_0x6819;let {model:_0x4ac5ce,sourceModel:_0x589ecb=_0x4ac5ce,style:_0x245c29}=_0x23dd29,_0x296a7=_0x23dd29[_0x8340a2(0x21c)]??_0x4ac5ce['kind'],_0x30883a=G(_0x4ac5ce),_0x4bb895=_0x4ac5ce[_0x8340a2(0x20a)]===_0x8340a2(0x227)&&_0x296a7!==_0x8340a2(0x227)?_0x4ac5ce:void 0x0;return{'transform':{..._0x30883a,'rotation':0x0},'shapeData':ye(_0x4ac5ce,_0x245c29),'ink':{'version':0x1,'tool':_0x296a7,'sourceModel':_0x589ecb,..._0x4bb895?{'editModel':_0x4bb895}:{},'normalizedBounds':_0x30883a}};}var Se=_0x415bb0(0x226),Ce=_0x415bb0(0x21b);function q(_0x3694a5){'@babel/helpers - typeof';const _0x40d004=_0x415bb0;return q=typeof Symbol==_0x40d004(0x1fe)&&typeof Symbol['iterator']==_0x40d004(0x20e)?function(_0x3e3ec5){return typeof _0x3e3ec5;}:function(_0x1e3176){const _0x5625ec=_0x40d004;return _0x1e3176&&typeof Symbol==_0x5625ec(0x1fe)&&_0x1e3176[_0x5625ec(0x215)]===Symbol&&_0x1e3176!==Symbol[_0x5625ec(0x214)]?_0x5625ec(0x20e):typeof _0x1e3176;},q(_0x3694a5);}function we(_0x5ea823,_0xde1724){const _0x5738c7=_0x415bb0;if(q(_0x5ea823)!='object'||!_0x5ea823)return _0x5ea823;var _0x475d01=_0x5ea823[Symbol[_0x5738c7(0x228)]];if(_0x475d01!==void 0x0){var _0x106e39=_0x475d01['call'](_0x5ea823,_0xde1724||_0x5738c7(0x230));if(q(_0x106e39)!=_0x5738c7(0x20b))return _0x106e39;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0xde1724===_0x5738c7(0x21e)?String:Number)(_0x5ea823);}function _0x6819(_0x1b8eaa,_0x58c4db){_0x1b8eaa=_0x1b8eaa-0x1db;const _0x459cca=_0x459c();let _0x681933=_0x459cca[_0x1b8eaa];return _0x681933;}function J(_0x59f14e){const _0x156d4d=_0x415bb0;var _0x5dd1dc=we(_0x59f14e,_0x156d4d(0x21e));return q(_0x5dd1dc)==_0x156d4d(0x20e)?_0x5dd1dc:_0x5dd1dc+'';}function Y(_0x24f47a,_0x2aab8f,_0x3e1bd7){const _0x2894ff=_0x415bb0;return(_0x2aab8f=J(_0x2aab8f))in _0x24f47a?Object[_0x2894ff(0x218)](_0x24f47a,_0x2aab8f,{'value':_0x3e1bd7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x24f47a[_0x2aab8f]=_0x3e1bd7,_0x24f47a;}const X=_0xc958de(_0x415bb0(0x1dc));var Te=class{constructor(){const _0x177148=_0x415bb0;Y(this,_0x177148(0x20c),[]);}[_0x415bb0(0x1dd)](_0x8fff2c){const _0x54f75d=_0x415bb0;return this[_0x54f75d(0x20c)][_0x54f75d(0x210)](_0x8fff2c),_0x3cd973(()=>{const _0x4ecb19=_0x54f75d;let _0x4f443b=this[_0x4ecb19(0x20c)]['indexOf'](_0x8fff2c);_0x4f443b>=0x0&&this[_0x4ecb19(0x20c)][_0x4ecb19(0x1e5)](_0x4f443b,0x1);});}['beginInkMode'](_0x4a55ac){const _0x13349f=_0x415bb0;for(let _0x31f79c of this['_adapters'])if(_0x31f79c[_0x13349f(0x209)](_0x4a55ac))return!0x0;return!0x1;}async[_0x415bb0(0x204)](_0x3a07fe){const _0x4adb16=_0x415bb0;for(let _0x31c534 of this['_adapters'])if(_0x31c534[_0x4adb16(0x204)]&&await _0x31c534[_0x4adb16(0x204)](_0x3a07fe))return!0x0;return!0x1;}};const Ee={'id':'ink.operation.start','type':_0x14475d['OPERATION'],'handler':(_0x263725,_0x282dc7)=>_0x282dc7?_0x263725[_0x415bb0(0x1f8)](X)[_0x415bb0(0x209)](_0x282dc7):!0x1},Z={};function Q(_0x2ce40c,_0x538331){return function(_0x24f8da,_0x212e75){_0x538331(_0x24f8da,_0x212e75,_0x2ce40c);};}function De(_0x5a25a5,_0x289108,_0x258283,_0x1881b2){const _0x5417fd=_0x415bb0;var _0x220506=arguments[_0x5417fd(0x202)],_0x57c296=_0x220506<0x3?_0x289108:_0x1881b2===null?_0x1881b2=Object[_0x5417fd(0x1db)](_0x289108,_0x258283):_0x1881b2,_0x30fdd1;if(typeof Reflect==_0x5417fd(0x20b)&&typeof Reflect[_0x5417fd(0x1ed)]==_0x5417fd(0x1fe))_0x57c296=Reflect[_0x5417fd(0x1ed)](_0x5a25a5,_0x289108,_0x258283,_0x1881b2);else{for(var _0x141de9=_0x5a25a5[_0x5417fd(0x202)]-0x1;_0x141de9>=0x0;_0x141de9--)(_0x30fdd1=_0x5a25a5[_0x141de9])&&(_0x57c296=(_0x220506<0x3?_0x30fdd1(_0x57c296):_0x220506>0x3?_0x30fdd1(_0x289108,_0x258283,_0x57c296):_0x30fdd1(_0x289108,_0x258283))||_0x57c296);}return _0x220506>0x3&&_0x57c296&&Object['defineProperty'](_0x289108,_0x258283,_0x57c296),_0x57c296;}let $=class extends _0x36a75c{constructor(_0xb47a7=Z,_0x10b3cb,_0x21ef27,_0x24de5d){const _0x1ef259=_0x415bb0;super(),this[_0x1ef259(0x1f9)]=_0xb47a7,this[_0x1ef259(0x1f5)]=_0x10b3cb,this[_0x1ef259(0x237)]=_0x21ef27,this[_0x1ef259(0x211)]=_0x24de5d;let {..._0x40cec9}=_0x55e0b7({},Z,this[_0x1ef259(0x1f9)]);this[_0x1ef259(0x211)][_0x1ef259(0x1f0)](_0x1ef259(0x200),_0x40cec9);}[_0x415bb0(0x222)](){const _0x2019df=_0x415bb0;[[X,{'useClass':Te}]][_0x2019df(0x238)](_0x5d0001=>this['_injector'][_0x2019df(0x201)](_0x5d0001)),this['disposeWithMe'](this[_0x2019df(0x237)][_0x2019df(0x22a)](Ee));}};Y($,_0x415bb0(0x1f4),_0x415bb0(0x1e0)),Y($,_0x415bb0(0x22f),Se),Y($,_0x415bb0(0x205),Ce),Y($,_0x415bb0(0x1de),_0xf39585[_0x415bb0(0x22d)]),$=De([_0x5465f6(_0x24cccf),Q(0x1,_0x5466f7(_0x4f188d)),Q(0x2,_0x1f9af4),Q(0x3,_0x5e845a)],$);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 _0x1fa4ef=_0x489e;(function(_0x509d2a,_0x324a3b){const _0x59c1de=_0x489e,_0x4b3084=_0x509d2a();while(!![]){try{const _0x4a1ead=parseInt(_0x59c1de(0x222))/0x1*(-parseInt(_0x59c1de(0x22a))/0x2)+-parseInt(_0x59c1de(0x206))/0x3+parseInt(_0x59c1de(0x1eb))/0x4*(-parseInt(_0x59c1de(0x21a))/0x5)+parseInt(_0x59c1de(0x203))/0x6+-parseInt(_0x59c1de(0x22d))/0x7+-parseInt(_0x59c1de(0x21c))/0x8+-parseInt(_0x59c1de(0x21f))/0x9*(-parseInt(_0x59c1de(0x218))/0xa);if(_0x4a1ead===_0x324a3b)break;else _0x4b3084['push'](_0x4b3084['shift']());}catch(_0x312116){_0x4b3084['push'](_0x4b3084['shift']());}}}(_0x4054,0x68823));import{ShapeFillEnum as _0x1b495a,ShapeLineCapEnum as _0x3a7c9e,ShapeLineJoinEnum as _0x22697f,ShapeLineTypeEnum as _0xe8f2b9,ShapeTypeEnum as _0x39c117}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x6d97e2}from'@univerjs-pro/license';import{CommandType as _0x51668a,DependentOn as _0x34877c,ICommandService as _0x2f235a,IConfigService as _0x5394e4,Inject as _0x2bb1f8,Injector as _0x190b5e,Plugin as _0x3b534c,UniverInstanceType as _0x621b82,createIdentifier as _0x29c25f,merge as _0x1c0735,toDisposable as _0xb664b1}from'@univerjs/core';const g=0.0001;function _(_0x47807d){return{'x':_0x47807d['x'],'y':_0x47807d['y']};}function v(_0x3b69c0){const _0x175aa2=_0x489e;return{..._0x3b69c0,'in':_0x3b69c0['in']?_(_0x3b69c0['in']):void 0x0,'out':_0x3b69c0[_0x175aa2(0x20e)]?_(_0x3b69c0[_0x175aa2(0x20e)]):void 0x0};}function y(_0x1a5fde){const _0x205c81=_0x489e;return{'kind':_0x205c81(0x20d),'closed':_0x1a5fde[_0x205c81(0x1e7)],'anchors':_0x1a5fde['anchors']['map'](v)};}function b(_0x450f8b,_0x4ef01c,_0x2fc50d){return{'x':_0x450f8b['x']+(_0x4ef01c['x']-_0x450f8b['x'])*_0x2fc50d,'y':_0x450f8b['y']+(_0x4ef01c['y']-_0x450f8b['y'])*_0x2fc50d};}function x(_0xeb0f49,_0x27a8d0){const _0xd04d82=_0x489e;return Math[_0xd04d82(0x1e4)](_0xeb0f49['x']-_0x27a8d0['x'],_0xeb0f49['y']-_0x27a8d0['y']);}function S(_0x5ec264){const _0x2393ce=_0x489e;let _0x29a650=Math[_0x2393ce(0x1e4)](_0x5ec264['x'],_0x5ec264['y']);return _0x29a650<g?{'x':0x1,'y':0x0}:{'x':_0x5ec264['x']/_0x29a650,'y':_0x5ec264['y']/_0x29a650};}function C(_0x788841,_0x57c5da,_0x254f3f=x(_0x788841,_0x57c5da)){let _0xc98794=S({'x':_0x788841['x']-_0x57c5da['x'],'y':_0x788841['y']-_0x57c5da['y']});return{'x':_0x788841['x']+_0xc98794['x']*_0x254f3f,'y':_0x788841['y']+_0xc98794['y']*_0x254f3f};}function w(_0x17757f,_0x46249d){const _0x3e4edd=_0x489e;let {anchors:_0x97207f}=_0x17757f;return _0x97207f[_0x3e4edd(0x227)]<0x2||_0x46249d<0x0?null:_0x46249d<_0x97207f['length']-0x1?{'startIndex':_0x46249d,'endIndex':_0x46249d+0x1,'start':_0x97207f[_0x46249d],'end':_0x97207f[_0x46249d+0x1]}:_0x17757f['closed']&&_0x46249d===_0x97207f[_0x3e4edd(0x227)]-0x1?{'startIndex':_0x97207f['length']-0x1,'endIndex':0x0,'start':_0x97207f[_0x97207f[_0x3e4edd(0x227)]-0x1],'end':_0x97207f[0x0]}:null;}function T(_0xf9d6d5,_0x5a0b0a){const _0x546d2b=_0x489e;let _0x14c63e=w(_0xf9d6d5,_0x5a0b0a);return _0x14c63e?[_0x14c63e[_0x546d2b(0x1f2)],_0x14c63e['start'][_0x546d2b(0x20e)]??_0x14c63e[_0x546d2b(0x1f2)],_0x14c63e['end']['in']??_0x14c63e[_0x546d2b(0x223)],_0x14c63e[_0x546d2b(0x223)]]:null;}function te(_0x478733,_0x348dc5){const _0x5616bf=_0x489e;return _0x348dc5===_0x5616bf(0x230)?_0x478733:_0x478733[_0x348dc5]??null;}function E(_0x4e1f61,_0x3147e8,_0x511d15){const _0xb10b6f=_0x489e;return _0x511d15==='anchor'||_0x4e1f61[_0xb10b6f(0x1e7)]?!0x0:_0x511d15==='in'?_0x3147e8>0x0:_0x3147e8<_0x4e1f61[_0xb10b6f(0x1ed)][_0xb10b6f(0x227)]-0x1;}function D(_0x41ff6f,_0x206f66){let [_0x19081d,_0x33e286,_0x8dd723,_0x11ad1c]=_0x41ff6f,_0x5a4451=b(_0x19081d,_0x33e286,_0x206f66),_0x287e8c=b(_0x33e286,_0x8dd723,_0x206f66),_0x58c285=b(_0x8dd723,_0x11ad1c,_0x206f66);return b(b(_0x5a4451,_0x287e8c,_0x206f66),b(_0x287e8c,_0x58c285,_0x206f66),_0x206f66);}function ne(_0x4b2029,_0x108159){let [_0x2132a6,_0xd4ec25,_0x279113,_0x13eb99]=_0x4b2029,_0x3e4d55=b(_0x2132a6,_0xd4ec25,_0x108159),_0x236dcb=b(_0xd4ec25,_0x279113,_0x108159),_0x10468f=b(_0x279113,_0x13eb99,_0x108159),_0x191cb9=b(_0x3e4d55,_0x236dcb,_0x108159),_0x3f5823=b(_0x236dcb,_0x10468f,_0x108159),_0x981092=b(_0x191cb9,_0x3f5823,_0x108159);return{'left':[_0x2132a6,_0x3e4d55,_0x191cb9,_0x981092],'right':[_0x981092,_0x3f5823,_0x10468f,_0x13eb99]};}function O(_0x54cabe,_0x5bad23,_0xb240a){const _0x5cce56=_0x489e;let _0x5bdd48=_0xb240a['x']-_0x5bad23['x'],_0x326553=_0xb240a['y']-_0x5bad23['y'],_0x2e1b6f=_0x5bdd48*_0x5bdd48+_0x326553*_0x326553,_0x5ba702=_0x2e1b6f<=g?0x0:Math[_0x5cce56(0x1f7)](0x0,Math[_0x5cce56(0x23a)](0x1,((_0x54cabe['x']-_0x5bad23['x'])*_0x5bdd48+(_0x54cabe['y']-_0x5bad23['y'])*_0x326553)/_0x2e1b6f)),_0x1e7c89={'x':_0x5bad23['x']+_0x5bdd48*_0x5ba702,'y':_0x5bad23['y']+_0x326553*_0x5ba702};return{'point':_0x1e7c89,'ratio':_0x5ba702,'distance':x(_0x54cabe,_0x1e7c89)};}function re(_0x25ddc5,_0x59f9f2,_0x37737e){const _0x2ca414=_0x489e;return O(_0x25ddc5,_0x59f9f2,_0x37737e)[_0x2ca414(0x1f6)]**0x2;}function k(_0x452ce6,_0xf54dc8){const _0x1c9d73=_0x489e;if(_0x452ce6[_0x1c9d73(0x227)]<=0x2)return _0x452ce6['map'](_);let _0x4f7be5=0x0,_0x30bb9e=0x0,_0x44f8b7=_0x452ce6[0x0],_0x42ba95=_0x452ce6[_0x452ce6['length']-0x1],_0x51f6c1=_0xf54dc8*_0xf54dc8;for(let _0x297e24=0x1;_0x297e24<_0x452ce6[_0x1c9d73(0x227)]-0x1;_0x297e24++){let _0x4c2361=re(_0x452ce6[_0x297e24],_0x44f8b7,_0x42ba95);_0x4c2361>_0x4f7be5&&(_0x4f7be5=_0x4c2361,_0x30bb9e=_0x297e24);}if(_0x4f7be5<=_0x51f6c1)return[_(_0x44f8b7),_(_0x42ba95)];let _0x41ab01=k(_0x452ce6[_0x1c9d73(0x1ec)](0x0,_0x30bb9e+0x1),_0xf54dc8),_0xb6dba7=k(_0x452ce6['slice'](_0x30bb9e),_0xf54dc8);return[..._0x41ab01[_0x1c9d73(0x1ec)](0x0,-0x1),..._0xb6dba7];}function ie(_0x22f1e6,_0x6bbc22){let _0x5670e6=_0x22f1e6[_0x6bbc22],_0xe00259=_0x22f1e6[_0x6bbc22+0x1],_0x2f918b=_0x22f1e6[_0x6bbc22-0x1]??_0x5670e6;return{'x':_0x5670e6['x']+(_0xe00259['x']-_0x2f918b['x'])/0x6,'y':_0x5670e6['y']+(_0xe00259['y']-_0x2f918b['y'])/0x6};}function A(_0x1a5b73,_0x50f10){let _0x29ad59=_0x1a5b73[_0x50f10],_0x372b76=_0x1a5b73[_0x50f10-0x1],_0x54c1aa=_0x1a5b73[_0x50f10+0x1]??_0x29ad59;return{'x':_0x29ad59['x']-(_0x54c1aa['x']-_0x372b76['x'])/0x6,'y':_0x29ad59['y']-(_0x54c1aa['y']-_0x372b76['y'])/0x6};}function j(_0x27f091,_0x33bb5c){const _0x4932c5=_0x489e;let _0x40dc34=_0x27f091[_0x4932c5(0x1ed)][_0x33bb5c],_0x185f4c=_0x27f091['anchors'][_0x33bb5c-0x1]??(_0x27f091[_0x4932c5(0x1e7)]?_0x27f091[_0x4932c5(0x1ed)][_0x27f091[_0x4932c5(0x1ed)][_0x4932c5(0x227)]-0x1]:null),_0xd46583=_0x27f091[_0x4932c5(0x1ed)][_0x33bb5c+0x1]??(_0x27f091[_0x4932c5(0x1e7)]?_0x27f091[_0x4932c5(0x1ed)][0x0]:null),_0x49c164=_0x185f4c&&_0xd46583?S({'x':_0xd46583['x']-_0x185f4c['x'],'y':_0xd46583['y']-_0x185f4c['y']}):_0xd46583?S({'x':_0xd46583['x']-_0x40dc34['x'],'y':_0xd46583['y']-_0x40dc34['y']}):_0x185f4c?S({'x':_0x40dc34['x']-_0x185f4c['x'],'y':_0x40dc34['y']-_0x185f4c['y']}):{'x':0x1,'y':0x0},_0x3eb983=_0x185f4c&&_0xd46583?Math['max'](0x32,x(_0x185f4c,_0xd46583)/0x4):0x32;return{'in':{'x':_0x40dc34['x']-_0x49c164['x']*_0x3eb983,'y':_0x40dc34['y']-_0x49c164['y']*_0x3eb983},'out':{'x':_0x40dc34['x']+_0x49c164['x']*_0x3eb983,'y':_0x40dc34['y']+_0x49c164['y']*_0x3eb983}};}function M(_0x1fd061,_0x59f15e){const _0x476bb1=_0x489e;let _0x4cc13f=_0x1fd061[_0x59f15e],_0x29bf60=_0x59f15e==='in'?_0x476bb1(0x20e):'in',_0x236a9e=_0x1fd061[_0x29bf60];_0x4cc13f&&(_0x1fd061[_0x476bb1(0x20f)]===_0x476bb1(0x233)?_0x1fd061[_0x29bf60]=C(_0x1fd061,_0x4cc13f):_0x1fd061[_0x476bb1(0x20f)]===_0x476bb1(0x232)&&(_0x1fd061[_0x29bf60]=C(_0x1fd061,_0x4cc13f,_0x236a9e?x(_0x1fd061,_0x236a9e):x(_0x1fd061,_0x4cc13f))));}function ae(_0xc563f7,_0x4d9732){const _0x47d2be=_0x489e;let _0x228de4=y(_0xc563f7);return!_0x4d9732||_0x228de4['closed']||_0x228de4[_0x47d2be(0x1ed)][_0x47d2be(0x227)]===0x0||_0x228de4['anchors'][_0x47d2be(0x221)]({'id':_0x47d2be(0x213),'x':_0x4d9732['x'],'y':_0x4d9732['y'],'pointType':_0x47d2be(0x1fe)}),_0x228de4;}function oe(_0x4b8ff1,_0x21959b={}){const _0x439e86=_0x489e;let _0x3e26f1=Math[_0x439e86(0x1f7)](0x0,_0x21959b[_0x439e86(0x1ff)]??Math[_0x439e86(0x1f7)](0x4,_0x4b8ff1[_0x439e86(0x1e2)]*0.35)),_0x707c10=_0x21959b[_0x439e86(0x235)]??(_0x32169d=>_0x439e86(0x211)+_0x32169d),_0x38c421=k(_0x4b8ff1['points'],_0x3e26f1),_0x2e95cc=_0x38c421[_0x439e86(0x1e6)]((_0x15d06a,_0x59385c)=>({'id':_0x707c10(_0x59385c),'x':_0x15d06a['x'],'y':_0x15d06a['y'],'pointType':_0x439e86(0x204)}));for(let _0x3bbc81=0x0;_0x3bbc81<_0x2e95cc['length']-0x1;_0x3bbc81++)_0x2e95cc[_0x3bbc81][_0x439e86(0x20e)]=ie(_0x38c421,_0x3bbc81),_0x2e95cc[_0x3bbc81+0x1]['in']=A(_0x38c421,_0x3bbc81+0x1);return{'kind':_0x439e86(0x20d),'closed':!0x1,'anchors':_0x2e95cc};}function se(_0x114491,_0x395d4c,_0xbedeb7){const _0x4c0926=_0x489e;let _0x3a35fd=null,_0x4709d0=[_0x4c0926(0x230),'in','out'];return _0x114491['anchors'][_0x4c0926(0x23f)]((_0x211346,_0x5b95cd)=>{const _0x45da5a=_0x4c0926;_0x4709d0[_0x45da5a(0x23f)](_0x1cdaaa=>{if(!E(_0x114491,_0x5b95cd,_0x1cdaaa))return;let _0x322f72=te(_0x211346,_0x1cdaaa);if(!_0x322f72)return;let _0x4cb851=x(_0x395d4c,_0x322f72);_0x4cb851>_0xbedeb7||_0x3a35fd&&_0x4cb851>=_0x3a35fd['distance']||(_0x3a35fd={'handle':{'kind':_0x1cdaaa,'anchorId':_0x211346['id']},'point':_(_0x322f72),'distance':_0x4cb851});});}),_0x3a35fd;}function ce(_0x4377b9,_0x437c39,_0x30213f){const _0x271458=_0x489e;let _0x263b22=null,_0x3cdf20=_0x4377b9[_0x271458(0x1e7)]?_0x4377b9[_0x271458(0x1ed)][_0x271458(0x227)]:Math[_0x271458(0x1f7)](0x0,_0x4377b9[_0x271458(0x1ed)][_0x271458(0x227)]-0x1);for(let _0xc591ef=0x0;_0xc591ef<_0x3cdf20;_0xc591ef++){let _0x540cb5=T(_0x4377b9,_0xc591ef);if(!_0x540cb5)continue;let _0x449f30=D(_0x540cb5,0x0);for(let _0x2183dc=0x1;_0x2183dc<=0x20;_0x2183dc++){let _0x377223=D(_0x540cb5,_0x2183dc/0x20),_0x43d6e4=O(_0x437c39,_0x449f30,_0x377223),_0xa33cc9=(_0x2183dc-0x1+_0x43d6e4['ratio'])/0x20;(!_0x263b22||_0x43d6e4[_0x271458(0x1f6)]<_0x263b22[_0x271458(0x1f6)])&&(_0x263b22={'segmentIndex':_0xc591ef,'t':_0xa33cc9,'point':_0x43d6e4[_0x271458(0x220)],'distance':_0x43d6e4[_0x271458(0x1f6)]}),_0x449f30=_0x377223;}}return _0x263b22&&_0x263b22[_0x271458(0x1f6)]<=_0x30213f?_0x263b22:null;}function le(_0x5554e3,_0x3cf16,_0x379217){const _0xad76ac=_0x489e;let _0x17572d=y(_0x5554e3),_0x100950=w(_0x17572d,_0x3cf16[_0xad76ac(0x236)]),_0x31a8da=T(_0x17572d,_0x3cf16[_0xad76ac(0x236)]);if(!_0x100950||!_0x31a8da)return _0x17572d;let _0x3f9edf=ne(_0x31a8da,Math[_0xad76ac(0x1f7)](0x0,Math[_0xad76ac(0x23a)](0x1,_0x3cf16['t']))),_0x4f4e57={'id':_0x379217(),'x':_0x3f9edf['left'][0x3]['x'],'y':_0x3f9edf['left'][0x3]['y'],'in':_(_0x3f9edf[_0xad76ac(0x20b)][0x2]),'out':_(_0x3f9edf[_0xad76ac(0x225)][0x1]),'pointType':_0xad76ac(0x204)};return _0x17572d[_0xad76ac(0x1ed)][_0x100950[_0xad76ac(0x23b)]][_0xad76ac(0x20e)]=_(_0x3f9edf[_0xad76ac(0x20b)][0x1]),_0x17572d['anchors'][_0x100950[_0xad76ac(0x21d)]]['in']=_(_0x3f9edf[_0xad76ac(0x225)][0x2]),_0x17572d[_0xad76ac(0x1ed)][_0xad76ac(0x1f0)](_0x100950[_0xad76ac(0x23b)]+0x1,0x0,_0x4f4e57),_0x17572d;}function ue(_0x1b548d,_0x3360cb){const _0x225e6b=_0x489e;let _0x3ccc0a=y(_0x1b548d);return _0x3ccc0a[_0x225e6b(0x1ed)]=_0x3ccc0a[_0x225e6b(0x1ed)][_0x225e6b(0x22b)](_0x2b8cf5=>_0x2b8cf5['id']!==_0x3360cb),_0x3ccc0a[_0x225e6b(0x1e7)]&&_0x3ccc0a['anchors'][_0x225e6b(0x227)]<0x3&&(_0x3ccc0a['closed']=!0x1),_0x3ccc0a;}function N(_0x32c76b,_0x4a9f3c,_0x787d96){const _0x322d0b=_0x489e;let _0x2d802d=y(_0x32c76b),_0x4d2137=_0x2d802d[_0x322d0b(0x1ed)][_0x322d0b(0x210)](_0xd53b9f=>_0xd53b9f['id']===_0x4a9f3c),_0x2a68c6=_0x2d802d[_0x322d0b(0x1ed)][_0x4d2137];if(!_0x2a68c6)return _0x2d802d;if(_0x2a68c6[_0x322d0b(0x20f)]=_0x787d96,_0x787d96==='corner')return delete _0x2a68c6['in'],delete _0x2a68c6[_0x322d0b(0x20e)],_0x2d802d;let _0x157dcd=j(_0x2d802d,_0x4d2137);if(_0x2a68c6['in']=_0x2a68c6['in']?_(_0x2a68c6['in']):_0x157dcd['in'],_0x2a68c6[_0x322d0b(0x20e)]=_0x2a68c6['out']?_(_0x2a68c6[_0x322d0b(0x20e)]):_0x157dcd[_0x322d0b(0x20e)],_0x787d96===_0x322d0b(0x233)){let _0x4e9b8e=Math[_0x322d0b(0x1f7)](x(_0x2a68c6,_0x2a68c6['in']),x(_0x2a68c6,_0x2a68c6['out']),0x32),_0x918332=S({'x':_0x2a68c6[_0x322d0b(0x20e)]['x']-_0x2a68c6['x'],'y':_0x2a68c6[_0x322d0b(0x20e)]['y']-_0x2a68c6['y']});_0x2a68c6[_0x322d0b(0x20e)]={'x':_0x2a68c6['x']+_0x918332['x']*_0x4e9b8e,'y':_0x2a68c6['y']+_0x918332['y']*_0x4e9b8e},_0x2a68c6['in']={'x':_0x2a68c6['x']-_0x918332['x']*_0x4e9b8e,'y':_0x2a68c6['y']-_0x918332['y']*_0x4e9b8e};}else _0x787d96==='smooth'&&M(_0x2a68c6,_0x322d0b(0x20e));return _0x2d802d;}function P(_0x5da127,_0x4cff83){const _0x2f0ede=_0x489e;let _0x343040=_0x5da127[_0x2f0ede(0x1ed)][_0x2f0ede(0x1f4)](_0x363f62=>_0x363f62['id']===_0x4cff83),_0x2c4353=(_0x343040==null?void 0x0:_0x343040[_0x2f0ede(0x20f)])??'corner';return N(_0x5da127,_0x4cff83,_0x2c4353===_0x2f0ede(0x1fe)?_0x2f0ede(0x232):_0x2c4353===_0x2f0ede(0x232)?_0x2f0ede(0x233):_0x2c4353===_0x2f0ede(0x233)?_0x2f0ede(0x204):_0x2f0ede(0x1fe));}function F(_0x232e54,_0x4010e0,_0x190603){const _0x5d9682=_0x489e;let _0x8893d9=y(_0x232e54),_0x13755d=_0x8893d9[_0x5d9682(0x1ed)]['find'](_0x167c2b=>_0x167c2b['id']===_0x4010e0['anchorId']);if(!_0x13755d)return _0x8893d9;if(_0x4010e0[_0x5d9682(0x228)]===_0x5d9682(0x230)){let _0x16bae1={'x':_0x190603['x']-_0x13755d['x'],'y':_0x190603['y']-_0x13755d['y']};return _0x13755d['x']=_0x190603['x'],_0x13755d['y']=_0x190603['y'],_0x13755d['in']&&={'x':_0x13755d['in']['x']+_0x16bae1['x'],'y':_0x13755d['in']['y']+_0x16bae1['y']},_0x13755d[_0x5d9682(0x20e)]&&={'x':_0x13755d[_0x5d9682(0x20e)]['x']+_0x16bae1['x'],'y':_0x13755d[_0x5d9682(0x20e)]['y']+_0x16bae1['y']},_0x8893d9;}return _0x13755d[_0x4010e0[_0x5d9682(0x228)]]=_(_0x190603),_0x13755d[_0x5d9682(0x20f)]===_0x5d9682(0x1fe)&&(_0x13755d[_0x5d9682(0x20f)]=_0x5d9682(0x204)),M(_0x13755d,_0x4010e0['kind']),_0x8893d9;}const I=1e-9;function L(_0x4af4bc){const _0x376609=_0x489e;let _0x1e9852=Math[_0x376609(0x229)](_0x4af4bc*0x2710)/0x2710;return Object['is'](_0x1e9852,-0x0)?'0':String(_0x1e9852);}function R(_0x4e3b67){return L(_0x4e3b67['x'])+'\x20'+L(_0x4e3b67['y']);}function z(_0x4807ed,_0x2758c9){return{'x':_0x4807ed['x']-_0x2758c9['x'],'y':_0x4807ed['y']-_0x2758c9['y']};}function B(_0x22e259,_0xc7e155,_0x1a4b2c,_0x1c1bd4,_0x27207c){let _0x454ad9=0x1-_0x27207c;return{'x':_0x454ad9*_0x454ad9*_0x454ad9*_0x22e259['x']+0x3*_0x454ad9*_0x454ad9*_0x27207c*_0xc7e155['x']+0x3*_0x454ad9*_0x27207c*_0x27207c*_0x1a4b2c['x']+_0x27207c*_0x27207c*_0x27207c*_0x1c1bd4['x'],'y':_0x454ad9*_0x454ad9*_0x454ad9*_0x22e259['y']+0x3*_0x454ad9*_0x454ad9*_0x27207c*_0xc7e155['y']+0x3*_0x454ad9*_0x27207c*_0x27207c*_0x1a4b2c['y']+_0x27207c*_0x27207c*_0x27207c*_0x1c1bd4['y']};}function V(_0x4d7b26,_0x641f56,_0x3cab67,_0x21da11){const _0x58f84e=_0x489e;let _0x59d2bc=-_0x4d7b26+0x3*_0x641f56-0x3*_0x3cab67+_0x21da11,_0x3f5ac2=0x3*_0x4d7b26-0x6*_0x641f56+0x3*_0x3cab67,_0x508512=-0x3*_0x4d7b26+0x3*_0x641f56,_0x7ce263=[];if(Math[_0x58f84e(0x216)](_0x59d2bc)<I){if(Math[_0x58f84e(0x216)](_0x3f5ac2)<I)return _0x7ce263;let _0x2aa40a=-_0x508512/(0x2*_0x3f5ac2);return _0x2aa40a>0x0&&_0x2aa40a<0x1&&_0x7ce263[_0x58f84e(0x221)](_0x2aa40a),_0x7ce263;}let _0x507f0e=_0x3f5ac2*_0x3f5ac2-0x3*_0x59d2bc*_0x508512;if(_0x507f0e<0x0)return _0x7ce263;let _0x58c641=Math['sqrt'](Math[_0x58f84e(0x1f7)](0x0,_0x507f0e)),_0x38b867=(-_0x3f5ac2+_0x58c641)/(0x3*_0x59d2bc),_0x3aa7d7=(-_0x3f5ac2-_0x58c641)/(0x3*_0x59d2bc);return _0x38b867>0x0&&_0x38b867<0x1&&_0x7ce263[_0x58f84e(0x221)](_0x38b867),_0x3aa7d7>0x0&&_0x3aa7d7<0x1&&Math[_0x58f84e(0x216)](_0x3aa7d7-_0x38b867)>I&&_0x7ce263[_0x58f84e(0x221)](_0x3aa7d7),_0x7ce263;}function H(_0x456cb0,_0x323378,_0x97bf57,_0x57e066,_0x24d124){const _0xf7a748=_0x489e;_0x456cb0[_0xf7a748(0x221)](_0x323378,_0x24d124),new Set([...V(_0x323378['x'],_0x97bf57['x'],_0x57e066['x'],_0x24d124['x']),...V(_0x323378['y'],_0x97bf57['y'],_0x57e066['y'],_0x24d124['y'])])[_0xf7a748(0x23f)](_0x28fbcb=>{const _0x5a11d9=_0xf7a748;_0x456cb0[_0x5a11d9(0x221)](B(_0x323378,_0x97bf57,_0x57e066,_0x24d124,_0x28fbcb));});}function U(_0x3c37d4){const _0x418887=_0x489e;let _0x426904=_0x3c37d4[_0x418887(0x1ed)];if(_0x426904['length']<=0x1)return _0x426904;let _0x3bc9a4=[];for(let _0x1975eb=0x1;_0x1975eb<_0x426904[_0x418887(0x227)];_0x1975eb++){let _0x11b57b=_0x426904[_0x1975eb-0x1],_0x3f369b=_0x426904[_0x1975eb];H(_0x3bc9a4,_0x11b57b,_0x11b57b[_0x418887(0x20e)]??_0x11b57b,_0x3f369b['in']??_0x3f369b,_0x3f369b);}if(_0x3c37d4[_0x418887(0x1e7)]&&_0x426904[_0x418887(0x227)]>0x1){let _0x3e7a32=_0x426904[_0x426904[_0x418887(0x227)]-0x1],_0x13cf8b=_0x426904[0x0];H(_0x3bc9a4,_0x3e7a32,_0x3e7a32[_0x418887(0x20e)]??_0x3e7a32,_0x13cf8b['in']??_0x13cf8b,_0x13cf8b);}return _0x3bc9a4;}function de(_0x58dc2f){const _0x24170f=_0x489e;let _0x7566c1=_0x58dc2f[_0x24170f(0x22c)];if(_0x7566c1[_0x24170f(0x227)]<=0x1)return _0x7566c1;let _0x4b35a6=[];for(let _0x1eb915=0x0;_0x1eb915<_0x7566c1[_0x24170f(0x227)]-0x1;_0x1eb915++){let _0xf1ecd=_0x7566c1[_0x1eb915],_0x3eddf3=_0x7566c1[_0x1eb915+0x1],_0x367df5=_0x7566c1[_0x1eb915-0x1]??_0xf1ecd,_0x5054d5=_0x7566c1[_0x1eb915+0x2]??_0x3eddf3;H(_0x4b35a6,_0xf1ecd,{'x':_0xf1ecd['x']+(_0x3eddf3['x']-_0x367df5['x'])/0x6,'y':_0xf1ecd['y']+(_0x3eddf3['y']-_0x367df5['y'])/0x6},{'x':_0x3eddf3['x']-(_0x5054d5['x']-_0xf1ecd['x'])/0x6,'y':_0x3eddf3['y']-(_0x5054d5['y']-_0xf1ecd['y'])/0x6},_0x3eddf3);}return _0x4b35a6;}function fe(_0x598b5f){const _0x15131a=_0x489e;return _0x598b5f[_0x15131a(0x228)]==='pen'?U(_0x598b5f):de(_0x598b5f);}function _0x489e(_0x267d42,_0x4f9ea5){_0x267d42=_0x267d42-0x1e2;const _0x40540d=_0x4054();let _0x489e71=_0x40540d[_0x267d42];return _0x489e71;}function W(_0x4f2f16){const _0x466a26=_0x489e;let _0x17abe9=Math[_0x466a26(0x229)](_0x4f2f16*0x2710)/0x2710;return Object['is'](_0x17abe9,-0x0)?0x0:_0x17abe9;}function G(_0x23ef1b){const _0x4c5219=_0x489e;let _0x196422=fe(_0x23ef1b);if(_0x196422[_0x4c5219(0x227)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x4b8a74=Math['min'](..._0x196422[_0x4c5219(0x1e6)](_0x3c146e=>_0x3c146e['x'])),_0xb521ca=Math[_0x4c5219(0x23a)](..._0x196422[_0x4c5219(0x1e6)](_0x577640=>_0x577640['y'])),_0x2b393e=Math[_0x4c5219(0x1f7)](..._0x196422[_0x4c5219(0x1e6)](_0x1db932=>_0x1db932['x'])),_0x87f5a=Math[_0x4c5219(0x1f7)](..._0x196422['map'](_0x498b3c=>_0x498b3c['y']));return{'left':W(_0x4b8a74),'top':W(_0xb521ca),'width':W(Math[_0x4c5219(0x1f7)](0x1,_0x2b393e-_0x4b8a74)),'height':W(Math[_0x4c5219(0x1f7)](0x1,_0x87f5a-_0xb521ca))};}function pe(_0x35acbd,_0x4ef7d2){const _0x2a7170=_0x489e;let _0x511d4e=_0x35acbd[_0x2a7170(0x1ed)];if(_0x511d4e[_0x2a7170(0x227)]===0x0)return'';let _0x1dc56d=['M\x20'+R(z(_0x511d4e[0x0],_0x4ef7d2))];for(let _0x201750=0x1;_0x201750<_0x511d4e[_0x2a7170(0x227)];_0x201750++){let _0x27ec57=_0x511d4e[_0x201750-0x1],_0x4a0845=_0x511d4e[_0x201750],_0xf36765=_0x27ec57[_0x2a7170(0x20e)]??_0x27ec57,_0x758c2f=_0x4a0845['in']??_0x4a0845;_0x1dc56d['push']('C\x20'+R(z(_0xf36765,_0x4ef7d2))+'\x20'+R(z(_0x758c2f,_0x4ef7d2))+'\x20'+R(z(_0x4a0845,_0x4ef7d2)));}if(_0x35acbd[_0x2a7170(0x1e7)]&&_0x511d4e[_0x2a7170(0x227)]>0x1){let _0x379c07=_0x511d4e[_0x511d4e[_0x2a7170(0x227)]-0x1],_0x3fe042=_0x511d4e[0x0],_0x548105=_0x379c07['out']??_0x379c07,_0x460e6e=_0x3fe042['in']??_0x3fe042;_0x1dc56d[_0x2a7170(0x221)]('C\x20'+R(z(_0x548105,_0x4ef7d2))+'\x20'+R(z(_0x460e6e,_0x4ef7d2))+'\x20'+R(z(_0x3fe042,_0x4ef7d2))),_0x1dc56d[_0x2a7170(0x221)]('Z');}return _0x1dc56d[_0x2a7170(0x21b)]('\x20');}function me(_0x35e6c8,_0xa6796c){const _0x504c8d=_0x489e;let _0x22c829=_0x35e6c8[_0x504c8d(0x22c)][_0x504c8d(0x1e6)](_0x199852=>z(_0x199852,_0xa6796c));if(_0x22c829[_0x504c8d(0x227)]===0x0)return'';if(_0x22c829['length']===0x1)return'M\x20'+R(_0x22c829[0x0]);let _0x78083f=['M\x20'+R(_0x22c829[0x0])];for(let _0x590327=0x0;_0x590327<_0x22c829[_0x504c8d(0x227)]-0x1;_0x590327++){let _0x6a5d36=_0x22c829[_0x590327],_0x42003f=_0x22c829[_0x590327+0x1],_0x481c77=_0x22c829[_0x590327-0x1]??_0x6a5d36,_0x32c5f7=_0x22c829[_0x590327+0x2]??_0x42003f,_0x481b04={'x':_0x6a5d36['x']+(_0x42003f['x']-_0x481c77['x'])/0x6,'y':_0x6a5d36['y']+(_0x42003f['y']-_0x481c77['y'])/0x6},_0x57d1e1={'x':_0x42003f['x']-(_0x32c5f7['x']-_0x6a5d36['x'])/0x6,'y':_0x42003f['y']-(_0x32c5f7['y']-_0x6a5d36['y'])/0x6};_0x78083f[_0x504c8d(0x221)]('C\x20'+R(_0x481b04)+'\x20'+R(_0x57d1e1)+'\x20'+R(_0x42003f));}return _0x78083f[_0x504c8d(0x21b)]('\x20');}function he(_0x2529fc,_0x5efa7f){const _0x440e31=_0x489e;return _0x2529fc['kind']===_0x440e31(0x20d)?pe(_0x2529fc,_0x5efa7f):me(_0x2529fc,_0x5efa7f);}function ge(_0x5404b2,_0xdcb3bb){const _0x414e7a=_0x489e;return _0xdcb3bb!=null&&_0xdcb3bb[_0x414e7a(0x242)]?_0xdcb3bb['color']:_0x5404b2['kind']===_0x414e7a(0x20d)?_0x414e7a(0x22e):_0x5404b2[_0x414e7a(0x242)];}function _e(_0x2952c8,_0x5aade9){const _0x288a95=_0x489e;return(_0x5aade9==null?void 0x0:_0x5aade9[_0x288a95(0x1e2)])===void 0x0?_0x2952c8[_0x288a95(0x228)]===_0x288a95(0x20d)?0x2:_0x2952c8[_0x288a95(0x1e2)]:_0x5aade9[_0x288a95(0x1e2)];}function ve(_0x5a33d0,_0x46b8bf){const _0x2053f9=_0x489e;return(_0x46b8bf==null?void 0x0:_0x46b8bf[_0x2053f9(0x241)])===void 0x0?_0x5a33d0[_0x2053f9(0x228)]===_0x2053f9(0x20d)?void 0x0:_0x5a33d0[_0x2053f9(0x241)]:_0x46b8bf[_0x2053f9(0x241)];}function ye(_0x4d2ef8,_0x5cec7c){const _0x5e4385=_0x489e;let _0x231a1e=G(_0x4d2ef8),_0x238d67=he(_0x4d2ef8,{'x':_0x231a1e[_0x5e4385(0x20b)],'y':_0x231a1e[_0x5e4385(0x209)]}),_0x1f18cc=_0x4d2ef8[_0x5e4385(0x228)]===_0x5e4385(0x20d)&&_0x4d2ef8[_0x5e4385(0x1e7)],_0x42d682=_0x5cec7c==null?void 0x0:_0x5cec7c[_0x5e4385(0x1e5)];return{'shapeType':_0x39c117['Rect'],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x231a1e[_0x5e4385(0x1e2)],'h':_0x231a1e[_0x5e4385(0x212)],'fill':_0x1f18cc?_0x5e4385(0x219):_0x5e4385(0x234),'stroke':!0x0,'data':_0x238d67,'dataArray':be(_0x4d2ef8,{'x':_0x231a1e[_0x5e4385(0x20b)],'y':_0x231a1e[_0x5e4385(0x209)]})}]},'fill':_0x1f18cc&&_0x42d682?{'color':_0x42d682,'fillType':_0x1b495a[_0x5e4385(0x21e)]}:{'fillType':_0x1b495a[_0x5e4385(0x1ef)]},'stroke':{'color':ge(_0x4d2ef8,_0x5cec7c),'width':_e(_0x4d2ef8,_0x5cec7c),'opacity':ve(_0x4d2ef8,_0x5cec7c),'lineStrokeType':_0xe8f2b9['SolidLine'],'capType':_0x3a7c9e[_0x5e4385(0x217)],'lineJoinType':_0x22697f['Round']}};}function K(_0x36a63c,_0x283065){return{'x':_0x36a63c['x']-_0x283065['x'],'y':_0x36a63c['y']-_0x283065['y']};}function be(_0x1b8421,_0x3a780){const _0x19677d=_0x489e;if(_0x1b8421['kind']===_0x19677d(0x20d)){let _0x442450=_0x1b8421[_0x19677d(0x1ed)];if(_0x442450[_0x19677d(0x227)]===0x0)return[];let _0x319962=K(_0x442450[0x0],_0x3a780),_0x1566f5=[{'command':'M','points':[_0x319962['x'],_0x319962['y']]}];for(let _0x71b55c=0x1;_0x71b55c<_0x442450['length'];_0x71b55c++){let _0xc44656=_0x442450[_0x71b55c-0x1],_0x255866=_0x442450[_0x71b55c],_0x7176b2=K(_0xc44656[_0x19677d(0x20e)]??_0xc44656,_0x3a780),_0x5bf9bd=K(_0x255866['in']??_0x255866,_0x3a780),_0xa6efb7=K(_0x255866,_0x3a780);_0x1566f5['push']({'command':'C','points':[_0x7176b2['x'],_0x7176b2['y'],_0x5bf9bd['x'],_0x5bf9bd['y'],_0xa6efb7['x'],_0xa6efb7['y']]});}if(_0x1b8421[_0x19677d(0x1e7)]&&_0x442450[_0x19677d(0x227)]>0x1){let _0x50c825=_0x442450[_0x442450[_0x19677d(0x227)]-0x1],_0x446745=_0x442450[0x0],_0x2834f2=K(_0x50c825[_0x19677d(0x20e)]??_0x50c825,_0x3a780),_0x5436c5=K(_0x446745['in']??_0x446745,_0x3a780),_0x421264=K(_0x446745,_0x3a780);_0x1566f5[_0x19677d(0x221)]({'command':'C','points':[_0x2834f2['x'],_0x2834f2['y'],_0x5436c5['x'],_0x5436c5['y'],_0x421264['x'],_0x421264['y']]}),_0x1566f5[_0x19677d(0x221)]({'command':'z','points':[]});}return _0x1566f5;}let _0x48d261=_0x1b8421[_0x19677d(0x22c)][_0x19677d(0x1e6)](_0x4ac888=>K(_0x4ac888,_0x3a780));if(_0x48d261[_0x19677d(0x227)]===0x0)return[];let _0x229e71=[{'command':'M','points':[_0x48d261[0x0]['x'],_0x48d261[0x0]['y']]}];for(let _0x5ddc03=0x0;_0x5ddc03<_0x48d261['length']-0x1;_0x5ddc03++){let _0x1fec47=_0x48d261[_0x5ddc03],_0x2b34db=_0x48d261[_0x5ddc03+0x1],_0x4b116b=_0x48d261[_0x5ddc03-0x1]??_0x1fec47,_0x3a986c=_0x48d261[_0x5ddc03+0x2]??_0x2b34db,_0x23e876={'x':_0x1fec47['x']+(_0x2b34db['x']-_0x4b116b['x'])/0x6,'y':_0x1fec47['y']+(_0x2b34db['y']-_0x4b116b['y'])/0x6},_0x4e5b08={'x':_0x2b34db['x']-(_0x3a986c['x']-_0x1fec47['x'])/0x6,'y':_0x2b34db['y']-(_0x3a986c['y']-_0x1fec47['y'])/0x6};_0x229e71[_0x19677d(0x221)]({'command':'C','points':[_0x23e876['x'],_0x23e876['y'],_0x4e5b08['x'],_0x4e5b08['y'],_0x2b34db['x'],_0x2b34db['y']]});}return _0x229e71;}function xe(_0x27f442){const _0x5db691=_0x489e;let {model:_0x451d67,sourceModel:_0x491f99=_0x451d67,style:_0x3c7f0f}=_0x27f442,_0x1584c6=_0x27f442[_0x5db691(0x1fd)]??_0x451d67[_0x5db691(0x228)],_0x1b5dca=G(_0x451d67),_0x1cf9b5=_0x451d67[_0x5db691(0x228)]===_0x5db691(0x20d)&&_0x1584c6!==_0x5db691(0x20d)?_0x451d67:void 0x0;return{'transform':{..._0x1b5dca,'rotation':0x0},'shapeData':ye(_0x451d67,_0x3c7f0f),'ink':{'version':0x1,'tool':_0x1584c6,'sourceModel':_0x491f99,..._0x1cf9b5?{'editModel':_0x1cf9b5}:{},'normalizedBounds':_0x1b5dca}};}var Se=_0x1fa4ef(0x202),Ce=_0x1fa4ef(0x1fc);function q(_0x1aeec4){'@babel/helpers - typeof';const _0x5def27=_0x1fa4ef;return q=typeof Symbol==_0x5def27(0x237)&&typeof Symbol[_0x5def27(0x1ee)]==_0x5def27(0x208)?function(_0x37432a){return typeof _0x37432a;}:function(_0x139f06){const _0x36f8d5=_0x5def27;return _0x139f06&&typeof Symbol==_0x36f8d5(0x237)&&_0x139f06[_0x36f8d5(0x23d)]===Symbol&&_0x139f06!==Symbol[_0x36f8d5(0x1fb)]?_0x36f8d5(0x208):typeof _0x139f06;},q(_0x1aeec4);}function we(_0x2f83be,_0x5bf3ab){const _0x353e78=_0x1fa4ef;if(q(_0x2f83be)!=_0x353e78(0x20c)||!_0x2f83be)return _0x2f83be;var _0x332a00=_0x2f83be[Symbol[_0x353e78(0x1f8)]];if(_0x332a00!==void 0x0){var _0x41fffe=_0x332a00['call'](_0x2f83be,_0x5bf3ab||_0x353e78(0x23e));if(q(_0x41fffe)!='object')return _0x41fffe;throw TypeError(_0x353e78(0x207));}return(_0x5bf3ab===_0x353e78(0x1f9)?String:Number)(_0x2f83be);}function J(_0x4e11a8){var _0x26be84=we(_0x4e11a8,'string');return q(_0x26be84)=='symbol'?_0x26be84:_0x26be84+'';}function Y(_0x4378af,_0x2aa570,_0x5c12ae){const _0x4f42ae=_0x1fa4ef;return(_0x2aa570=J(_0x2aa570))in _0x4378af?Object[_0x4f42ae(0x214)](_0x4378af,_0x2aa570,{'value':_0x5c12ae,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4378af[_0x2aa570]=_0x5c12ae,_0x4378af;}const X=_0x29c25f('ink.host-adapter.service');var Te=class{constructor(){const _0xc1a387=_0x1fa4ef;Y(this,_0xc1a387(0x1e9),[]);}[_0x1fa4ef(0x1f3)](_0x488bfe){const _0xa172ac=_0x1fa4ef;return this[_0xa172ac(0x1e9)][_0xa172ac(0x221)](_0x488bfe),_0xb664b1(()=>{const _0x55af51=_0xa172ac;let _0x53d53e=this[_0x55af51(0x1e9)]['indexOf'](_0x488bfe);_0x53d53e>=0x0&&this['_adapters'][_0x55af51(0x1f0)](_0x53d53e,0x1);});}[_0x1fa4ef(0x23c)](_0x193342){const _0x4d0e39=_0x1fa4ef;for(let _0xf8f9b1 of this[_0x4d0e39(0x1e9)])if(_0xf8f9b1[_0x4d0e39(0x23c)](_0x193342))return!0x0;return!0x1;}async[_0x1fa4ef(0x226)](_0x3cf5de){const _0x213f6a=_0x1fa4ef;for(let _0x4f1d75 of this['_adapters'])if(_0x4f1d75['createCustomShape']&&await _0x4f1d75[_0x213f6a(0x226)](_0x3cf5de))return!0x0;return!0x1;}};function _0x4054(){const _0x55e230=['find','ink.config','distance','max','toPrimitive','string','OPERATION','prototype','1.3.1','tool','corner','tolerance','_injector','_config','@univerjs-pro/ink','202794mRtXsw','free','_configService','866826SEYvKk','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','symbol','top','pluginName','left','object','pen','out','pointType','findIndex','ink-centerline-','height','__ink-preview-anchor__','defineProperty','_commandService','abs','Round','840iBmCrR','norm','287975MilPJq','join','2467928kmnDro','endIndex','SolidFill','197703FvrSzg','point','push','2423UMpKDv','end','UNIVER_INK_PLUGIN','right','createCustomShape','length','kind','round','154GIxMAD','filter','points','233877vyFZDp','#f54a45','packageName','anchor','registerCommand','smooth','symmetric','none','createId','segmentIndex','function','type','disposeWithMe','min','startIndex','beginInkMode','constructor','default','forEach','version','opacity','color','width','get','hypot','fillColor','map','closed','getOwnPropertyDescriptor','_adapters','ink.operation.start','44KCXNmk','slice','anchors','iterator','NoFill','splice','add','start','registerAdapter'];_0x4054=function(){return _0x55e230;};return _0x4054();}const Ee={'id':_0x1fa4ef(0x1ea),'type':_0x51668a[_0x1fa4ef(0x1fa)],'handler':(_0x35ecbd,_0x18ce9a)=>_0x18ce9a?_0x35ecbd[_0x1fa4ef(0x1e3)](X)[_0x1fa4ef(0x23c)](_0x18ce9a):!0x1},Z={};function Q(_0x233d8a,_0x2750a2){return function(_0x1f3a78,_0xb8ef3b){_0x2750a2(_0x1f3a78,_0xb8ef3b,_0x233d8a);};}function De(_0x26ede4,_0x18cc5a,_0x410c8e,_0x3e2ca5){const _0x30ae97=_0x1fa4ef;var _0x13de39=arguments[_0x30ae97(0x227)],_0xf6a977=_0x13de39<0x3?_0x18cc5a:_0x3e2ca5===null?_0x3e2ca5=Object[_0x30ae97(0x1e8)](_0x18cc5a,_0x410c8e):_0x3e2ca5,_0x302ff7;if(typeof Reflect==_0x30ae97(0x20c)&&typeof Reflect['decorate']==_0x30ae97(0x237))_0xf6a977=Reflect['decorate'](_0x26ede4,_0x18cc5a,_0x410c8e,_0x3e2ca5);else{for(var _0x52d440=_0x26ede4['length']-0x1;_0x52d440>=0x0;_0x52d440--)(_0x302ff7=_0x26ede4[_0x52d440])&&(_0xf6a977=(_0x13de39<0x3?_0x302ff7(_0xf6a977):_0x13de39>0x3?_0x302ff7(_0x18cc5a,_0x410c8e,_0xf6a977):_0x302ff7(_0x18cc5a,_0x410c8e))||_0xf6a977);}return _0x13de39>0x3&&_0xf6a977&&Object[_0x30ae97(0x214)](_0x18cc5a,_0x410c8e,_0xf6a977),_0xf6a977;}let $=class extends _0x3b534c{constructor(_0xae5495=Z,_0x387a92,_0x3d51f6,_0x329394){const _0x1b479a=_0x1fa4ef;super(),this[_0x1b479a(0x201)]=_0xae5495,this['_injector']=_0x387a92,this[_0x1b479a(0x215)]=_0x3d51f6,this[_0x1b479a(0x205)]=_0x329394;let {..._0x31d73c}=_0x1c0735({},Z,this[_0x1b479a(0x201)]);this[_0x1b479a(0x205)]['setConfig'](_0x1b479a(0x1f5),_0x31d73c);}['onStarting'](){const _0x2c9e61=_0x1fa4ef;[[X,{'useClass':Te}]][_0x2c9e61(0x23f)](_0x227880=>this[_0x2c9e61(0x200)][_0x2c9e61(0x1f1)](_0x227880)),this[_0x2c9e61(0x239)](this[_0x2c9e61(0x215)][_0x2c9e61(0x231)](Ee));}};Y($,_0x1fa4ef(0x20a),_0x1fa4ef(0x224)),Y($,_0x1fa4ef(0x22f),Se),Y($,_0x1fa4ef(0x240),Ce),Y($,_0x1fa4ef(0x238),_0x621b82['UNIVER_UNKNOWN']),$=De([_0x34877c(_0x6d97e2),Q(0x1,_0x2bb1f8(_0x190b5e)),Q(0x2,_0x2f235a),Q(0x3,_0x5394e4)],$);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 _0x5d84(){const _0x44d048=['276YtaqqP','style','transform','laneId','insertIndex','exports','deepClone','object','6UaVRhv','smooth','generateRandomId','buildInkCustomShapePayload','brush','920290eXmqCJ','UniverProBoards','_addElement','symmetric','BoardElementType','FEnum','every','highlighter','6hEdgyM','Module','has','amd','1579061fWEovV','width','parentId','UniverProBoardsFacade','818187BhQEMb','1239BrbAlO','tool','pressure','extend','getInks','@univerjs/core','BoardInkHandleKind','corner','pen','ink','10600jqnrni','UniverCore','opacity','out','UniverProInkFacade','isArray','BoardInkPointType','Tools','insertInk','9fSVBfP','points','toStringTag','kind','Shape','version','6699535RtPDJL','anchors','isFinite','FBoard','length','findElements','UniverProInk','closed','defineProperty','UniverCoreFacade','anchor','shapeData','6077368VyiUUh','model','3000170dnpeGr','@univerjs-pro/ink','trim','custom','sourceModel'];_0x5d84=function(){return _0x44d048;};return _0x5d84();}function _0x5aca(_0xb9d6fe,_0x5f4ca0){_0xb9d6fe=_0xb9d6fe-0x104;const _0x5d8441=_0x5d84();let _0x5aca23=_0x5d8441[_0xb9d6fe];return _0x5aca23;}(function(_0x4743b4,_0x234c19){const _0x4ed6d5=_0x5aca,_0x27b16f=_0x4743b4();while(!![]){try{const _0x44a7db=parseInt(_0x4ed6d5(0x116))/0x1+parseInt(_0x4ed6d5(0x111))/0x2*(parseInt(_0x4ed6d5(0x126))/0x3)+parseInt(_0x4ed6d5(0x14c))/0x4+-parseInt(_0x4ed6d5(0x140))/0x5*(-parseInt(_0x4ed6d5(0x11e))/0x6)+-parseInt(_0x4ed6d5(0x127))/0x7*(parseInt(_0x4ed6d5(0x131))/0x8)+parseInt(_0x4ed6d5(0x13a))/0x9*(-parseInt(_0x4ed6d5(0x104))/0xa)+parseInt(_0x4ed6d5(0x122))/0xb*(-parseInt(_0x4ed6d5(0x109))/0xc);if(_0x44a7db===_0x234c19)break;else _0x27b16f['push'](_0x27b16f['shift']());}catch(_0x125cbc){_0x27b16f['push'](_0x27b16f['shift']());}}}(_0x5d84,0xb9ea7),function(_0x51a71f,_0x1c9f2f){const _0x35d6b5=_0x5aca;typeof exports==_0x35d6b5(0x110)&&typeof module<'u'?_0x1c9f2f(exports,require('@univerjs-pro/boards'),require('@univerjs-pro/boards/facade'),require('@univerjs-pro/ink'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define=='function'&&define[_0x35d6b5(0x121)]?define([_0x35d6b5(0x10e),'@univerjs-pro/boards','@univerjs-pro/boards/facade',_0x35d6b5(0x105),_0x35d6b5(0x12c),'@univerjs/core/facade'],_0x1c9f2f):(_0x51a71f=typeof globalThis<'u'?globalThis:_0x51a71f||self,_0x1c9f2f(_0x51a71f[_0x35d6b5(0x135)]={},_0x51a71f[_0x35d6b5(0x117)],_0x51a71f[_0x35d6b5(0x125)],_0x51a71f[_0x35d6b5(0x146)],_0x51a71f[_0x35d6b5(0x132)],_0x51a71f[_0x35d6b5(0x149)]));}(this,function(_0x2658af,_0x1c72a6,_0x3a8454,_0x2f5773,_0x5ef365,_0x3e4a9a){const _0x54caf0=_0x5aca;Object[_0x54caf0(0x148)](_0x2658af,Symbol[_0x54caf0(0x13c)],{'value':_0x54caf0(0x11f)});var _0x2b7b8e=class extends _0x3a8454[_0x54caf0(0x143)]{[_0x54caf0(0x139)](_0x3f3b50){const _0x3531e0=_0x54caf0;let _0x38defd=_0x130424(_0x3f3b50);return _0x38defd&&this[_0x3531e0(0x118)](_0x38defd,{'insertIndex':_0x3f3b50[_0x3531e0(0x10d)]})?_0x38defd:null;}[_0x54caf0(0x12b)](){const _0x3a439c=_0x54caf0;return this[_0x3a439c(0x145)]({'elementType':_0x1c72a6[_0x3a439c(0x11a)][_0x3a439c(0x13e)],'includeHidden':!0x0,'includeLocked':!0x0})['filter'](_0x5f47f3);}};function _0x130424(_0x59f403,_0x1f3abb){const _0x1103a9=_0x54caf0;if(!_0x2a5106(_0x59f403[_0x1103a9(0x14d)])||_0x59f403[_0x1103a9(0x108)]!==void 0x0&&!_0x2a5106(_0x59f403['sourceModel'])||!_0x399127(_0x59f403['style']))return null;let _0x58471e=_0x59f403[_0x1103a9(0x124)]??(_0x1f3abb==null?void 0x0:_0x1f3abb[_0x1103a9(0x124)]),_0x218c0c=_0x5ef365[_0x1103a9(0x138)][_0x1103a9(0x10f)](_0x59f403[_0x1103a9(0x14d)]),_0xf9d2dd=(0x0,_0x2f5773[_0x1103a9(0x114)])({'model':_0x218c0c,'style':_0x59f403[_0x1103a9(0x10a)],'tool':_0x59f403[_0x1103a9(0x128)],'sourceModel':_0x59f403[_0x1103a9(0x108)]?_0x5ef365[_0x1103a9(0x138)][_0x1103a9(0x10f)](_0x59f403[_0x1103a9(0x108)]):_0x218c0c}),_0x21acc4=_0x2b33d1(_0x1f3abb==null?void 0x0:_0x1f3abb[_0x1103a9(0x107)]);return{'id':(_0x1f3abb==null?void 0x0:_0x1f3abb['id'])??_0x59f403['id']??(0x0,_0x5ef365[_0x1103a9(0x113)])(0x6),'type':_0x1c72a6[_0x1103a9(0x11a)][_0x1103a9(0x13e)],'transform':_0xf9d2dd[_0x1103a9(0x10b)],'shapeData':_0xf9d2dd[_0x1103a9(0x14b)],'parentId':_0x58471e??void 0x0,'laneId':_0x59f403[_0x1103a9(0x10c)]===void 0x0?_0x1f3abb==null?void 0x0:_0x1f3abb[_0x1103a9(0x10c)]:_0x59f403['laneId'],'custom':{..._0x21acc4,'ink':_0xf9d2dd[_0x1103a9(0x130)]}};}function _0x42acae(_0x1c20dc){const _0xf9e5a5=_0x54caf0;return Number[_0xf9e5a5(0x142)](_0x1c20dc['x'])&&Number[_0xf9e5a5(0x142)](_0x1c20dc['y']);}function _0x2a5106(_0x138135){const _0x5333a0=_0x54caf0;if(_0x138135[_0x5333a0(0x13d)]==='pen'){let _0x5266bf=new Set();return _0x138135[_0x5333a0(0x141)]['length']>=(_0x138135[_0x5333a0(0x147)]?0x3:0x2)&&_0x138135[_0x5333a0(0x141)]['every'](_0x165a27=>{const _0x47ac63=_0x5333a0;let _0x2f6293=_0x165a27['id'][_0x47ac63(0x106)]()[_0x47ac63(0x144)]>0x0&&!_0x5266bf[_0x47ac63(0x120)](_0x165a27['id'])&&_0x42acae(_0x165a27)&&(!_0x165a27['in']||_0x42acae(_0x165a27['in']))&&(!_0x165a27[_0x47ac63(0x134)]||_0x42acae(_0x165a27[_0x47ac63(0x134)]));return _0x5266bf['add'](_0x165a27['id']),_0x2f6293;});}return _0x138135[_0x5333a0(0x13b)][_0x5333a0(0x144)]>=0x2&&_0x138135['points'][_0x5333a0(0x11c)](_0x4a509d=>_0x42acae(_0x4a509d)&&Number[_0x5333a0(0x142)](_0x4a509d['t'])&&(_0x4a509d[_0x5333a0(0x129)]===void 0x0||Number[_0x5333a0(0x142)](_0x4a509d[_0x5333a0(0x129)])))&&Number['isFinite'](_0x138135[_0x5333a0(0x123)])&&_0x138135[_0x5333a0(0x123)]>0x0&&Number[_0x5333a0(0x142)](_0x138135[_0x5333a0(0x133)])&&_0x138135[_0x5333a0(0x133)]>=0x0&&_0x138135[_0x5333a0(0x133)]<=0x1;}function _0x399127(_0x412dbd){const _0xa1833e=_0x54caf0;return _0x412dbd===void 0x0||(_0x412dbd['width']===void 0x0||Number['isFinite'](_0x412dbd[_0xa1833e(0x123)])&&_0x412dbd[_0xa1833e(0x123)]>0x0)&&(_0x412dbd[_0xa1833e(0x133)]===void 0x0||Number[_0xa1833e(0x142)](_0x412dbd['opacity'])&&_0x412dbd[_0xa1833e(0x133)]>=0x0&&_0x412dbd[_0xa1833e(0x133)]<=0x1);}function _0x2b33d1(_0x8b6063){const _0x44f03f=_0x54caf0;return _0x8b6063&&typeof _0x8b6063==_0x44f03f(0x110)&&!Array[_0x44f03f(0x136)](_0x8b6063)?_0x8b6063:{};}function _0x117593(_0x2b76ac){const _0x541939=_0x54caf0;let _0x574215=_0x2b33d1(_0x2b76ac['custom'])[_0x541939(0x130)];if(!_0x574215||typeof _0x574215!=_0x541939(0x110)||Array[_0x541939(0x136)](_0x574215))return null;let _0x48fdeb=_0x574215;return _0x48fdeb[_0x541939(0x13f)]===0x1&&_0x48fdeb['sourceModel']&&typeof _0x48fdeb[_0x541939(0x108)]==_0x541939(0x110)?_0x48fdeb:null;}function _0x5f47f3(_0x28a44b){const _0x379d4f=_0x54caf0;return _0x28a44b['type']===_0x1c72a6[_0x379d4f(0x11a)][_0x379d4f(0x13e)]&&!!_0x117593(_0x28a44b);}_0x3a8454[_0x54caf0(0x143)][_0x54caf0(0x12a)](_0x2b7b8e);let _0x19487c={'Pen':_0x54caf0(0x12f),'Brush':_0x54caf0(0x115),'Highlighter':_0x54caf0(0x11d)},_0x42227d={'Corner':_0x54caf0(0x12e),'Smooth':_0x54caf0(0x112),'Symmetric':_0x54caf0(0x119),'Free':'free'},_0x342538={'Anchor':_0x54caf0(0x14a),'In':'in','Out':_0x54caf0(0x134)};var _0xa3a053=class extends _0x3e4a9a[_0x54caf0(0x11b)]{get['BoardInkTool'](){return _0x19487c;}get[_0x54caf0(0x137)](){return _0x42227d;}get[_0x54caf0(0x12d)](){return _0x342538;}};_0x3e4a9a[_0x54caf0(0x11b)][_0x54caf0(0x12a)](_0xa3a053),_0x2658af[_0x54caf0(0x12d)]=_0x342538,_0x2658af[_0x54caf0(0x137)]=_0x42227d,_0x2658af['BoardInkTool']=_0x19487c;}));
1
+ function _0x3369(_0x3e5ad5,_0xe8fe3f){_0x3e5ad5=_0x3e5ad5-0x18f;const _0x3dc350=_0x3dc3();let _0x3369ea=_0x3dc350[_0x3e5ad5];return _0x3369ea;}function _0x3dc3(){const _0x1b5510=['corner','BoardInkPointType','4ynRytp','defineProperty','out','amd','findElements','free','BoardElementType','every','laneId','FEnum','Tools','11066778qYzWyt','width','ink','shapeData','parentId','BoardInkTool','smooth','length','isFinite','pen','UniverProInk','deepClone','style','3523431pdlvlt','UniverCore','toStringTag','anchors','type','version','79623270vUaRHo','UniverProBoards','extend','@univerjs-pro/ink','trim','UniverProBoardsFacade','30lYIClJ','1228565UOgbkJ','UniverCoreFacade','_addElement','Module','UniverProInkFacade','Shape','2572420RwiUuK','pressure','insertInk','custom','insertIndex','getInks','model','sourceModel','generateRandomId','kind','@univerjs/core/facade','symmetric','1789880iRnYUL','points','@univerjs-pro/boards/facade','isArray','tool','1143504dVurBB','object','@univerjs/core','opacity','35eVvTQE'];_0x3dc3=function(){return _0x1b5510;};return _0x3dc3();}(function(_0x239e9,_0x1b2a36){const _0x4cdbe0=_0x3369,_0x2887e5=_0x239e9();while(!![]){try{const _0x5b30c8=-parseInt(_0x4cdbe0(0x1c7))/0x1+-parseInt(_0x4cdbe0(0x1cd))/0x2+parseInt(_0x4cdbe0(0x1ba))/0x3*(-parseInt(_0x4cdbe0(0x1a2))/0x4)+parseInt(_0x4cdbe0(0x1c6))/0x5*(-parseInt(_0x4cdbe0(0x19b))/0x6)+-parseInt(_0x4cdbe0(0x19f))/0x7*(parseInt(_0x4cdbe0(0x196))/0x8)+-parseInt(_0x4cdbe0(0x1ad))/0x9+parseInt(_0x4cdbe0(0x1c0))/0xa;if(_0x5b30c8===_0x1b2a36)break;else _0x2887e5['push'](_0x2887e5['shift']());}catch(_0x533d2b){_0x2887e5['push'](_0x2887e5['shift']());}}}(_0x3dc3,0xbebc6),function(_0x299dac,_0x4cdffd){const _0xcb4af1=_0x3369;typeof exports==_0xcb4af1(0x19c)&&typeof module<'u'?_0x4cdffd(exports,require('@univerjs-pro/boards'),require('@univerjs-pro/boards/facade'),require('@univerjs-pro/ink'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define=='function'&&define[_0xcb4af1(0x1a5)]?define(['exports','@univerjs-pro/boards',_0xcb4af1(0x198),_0xcb4af1(0x1c3),_0xcb4af1(0x19d),_0xcb4af1(0x194)],_0x4cdffd):(_0x299dac=typeof globalThis<'u'?globalThis:_0x299dac||self,_0x4cdffd(_0x299dac[_0xcb4af1(0x1cb)]={},_0x299dac[_0xcb4af1(0x1c1)],_0x299dac[_0xcb4af1(0x1c5)],_0x299dac[_0xcb4af1(0x1b7)],_0x299dac[_0xcb4af1(0x1bb)],_0x299dac[_0xcb4af1(0x1c8)]));}(this,function(_0x240d53,_0x2f1a4d,_0x1bcd01,_0x6d2e8e,_0x394867,_0x97e23f){const _0x59a458=_0x3369;Object[_0x59a458(0x1a3)](_0x240d53,Symbol[_0x59a458(0x1bc)],{'value':_0x59a458(0x1ca)});var _0x123452=class extends _0x1bcd01['FBoard']{[_0x59a458(0x1cf)](_0x37d243){const _0x3afc49=_0x59a458;let _0x381dbc=_0xda3c49(_0x37d243);return _0x381dbc&&this[_0x3afc49(0x1c9)](_0x381dbc,{'insertIndex':_0x37d243[_0x3afc49(0x1d1)]})?_0x381dbc:null;}[_0x59a458(0x18f)](){const _0x46674c=_0x59a458;return this[_0x46674c(0x1a6)]({'elementType':_0x2f1a4d[_0x46674c(0x1a8)][_0x46674c(0x1cc)],'includeHidden':!0x0,'includeLocked':!0x0})['filter'](_0x31aa7a);}};function _0xda3c49(_0x51fdba,_0x4c5e8e){const _0xcb8b4d=_0x59a458;if(!_0x6c4de(_0x51fdba[_0xcb8b4d(0x190)])||_0x51fdba[_0xcb8b4d(0x191)]!==void 0x0&&!_0x6c4de(_0x51fdba[_0xcb8b4d(0x191)])||!_0x21202a(_0x51fdba[_0xcb8b4d(0x1b9)]))return null;let _0xcd176a=_0x51fdba[_0xcb8b4d(0x1b1)]??(_0x4c5e8e==null?void 0x0:_0x4c5e8e['parentId']),_0x474ac8=_0x394867['Tools']['deepClone'](_0x51fdba[_0xcb8b4d(0x190)]),_0x42bfa7=(0x0,_0x6d2e8e['buildInkCustomShapePayload'])({'model':_0x474ac8,'style':_0x51fdba['style'],'tool':_0x51fdba[_0xcb8b4d(0x19a)],'sourceModel':_0x51fdba[_0xcb8b4d(0x191)]?_0x394867[_0xcb8b4d(0x1ac)][_0xcb8b4d(0x1b8)](_0x51fdba[_0xcb8b4d(0x191)]):_0x474ac8}),_0x372082=_0x9007d9(_0x4c5e8e==null?void 0x0:_0x4c5e8e[_0xcb8b4d(0x1d0)]);return{'id':(_0x4c5e8e==null?void 0x0:_0x4c5e8e['id'])??_0x51fdba['id']??(0x0,_0x394867[_0xcb8b4d(0x192)])(0x6),'type':_0x2f1a4d[_0xcb8b4d(0x1a8)][_0xcb8b4d(0x1cc)],'transform':_0x42bfa7['transform'],'shapeData':_0x42bfa7[_0xcb8b4d(0x1b0)],'parentId':_0xcd176a??void 0x0,'laneId':_0x51fdba[_0xcb8b4d(0x1aa)]===void 0x0?_0x4c5e8e==null?void 0x0:_0x4c5e8e[_0xcb8b4d(0x1aa)]:_0x51fdba[_0xcb8b4d(0x1aa)],'custom':{..._0x372082,'ink':_0x42bfa7[_0xcb8b4d(0x1af)]}};}function _0x89a619(_0x3fbadb){const _0x3c0b44=_0x59a458;return Number[_0x3c0b44(0x1b5)](_0x3fbadb['x'])&&Number[_0x3c0b44(0x1b5)](_0x3fbadb['y']);}function _0x6c4de(_0x4c1d46){const _0xab6ebb=_0x59a458;if(_0x4c1d46[_0xab6ebb(0x193)]===_0xab6ebb(0x1b6)){let _0x469da9=new Set();return _0x4c1d46[_0xab6ebb(0x1bd)][_0xab6ebb(0x1b4)]>=(_0x4c1d46['closed']?0x3:0x2)&&_0x4c1d46[_0xab6ebb(0x1bd)]['every'](_0x6e260c=>{const _0xb8b47a=_0xab6ebb;let _0xc7b145=_0x6e260c['id'][_0xb8b47a(0x1c4)]()[_0xb8b47a(0x1b4)]>0x0&&!_0x469da9['has'](_0x6e260c['id'])&&_0x89a619(_0x6e260c)&&(!_0x6e260c['in']||_0x89a619(_0x6e260c['in']))&&(!_0x6e260c[_0xb8b47a(0x1a4)]||_0x89a619(_0x6e260c[_0xb8b47a(0x1a4)]));return _0x469da9['add'](_0x6e260c['id']),_0xc7b145;});}return _0x4c1d46[_0xab6ebb(0x197)][_0xab6ebb(0x1b4)]>=0x2&&_0x4c1d46[_0xab6ebb(0x197)][_0xab6ebb(0x1a9)](_0xdae698=>_0x89a619(_0xdae698)&&Number[_0xab6ebb(0x1b5)](_0xdae698['t'])&&(_0xdae698[_0xab6ebb(0x1ce)]===void 0x0||Number['isFinite'](_0xdae698[_0xab6ebb(0x1ce)])))&&Number['isFinite'](_0x4c1d46[_0xab6ebb(0x1ae)])&&_0x4c1d46[_0xab6ebb(0x1ae)]>0x0&&Number[_0xab6ebb(0x1b5)](_0x4c1d46['opacity'])&&_0x4c1d46[_0xab6ebb(0x19e)]>=0x0&&_0x4c1d46[_0xab6ebb(0x19e)]<=0x1;}function _0x21202a(_0x3c5780){const _0x4d7400=_0x59a458;return _0x3c5780===void 0x0||(_0x3c5780[_0x4d7400(0x1ae)]===void 0x0||Number['isFinite'](_0x3c5780[_0x4d7400(0x1ae)])&&_0x3c5780[_0x4d7400(0x1ae)]>0x0)&&(_0x3c5780[_0x4d7400(0x19e)]===void 0x0||Number['isFinite'](_0x3c5780['opacity'])&&_0x3c5780[_0x4d7400(0x19e)]>=0x0&&_0x3c5780[_0x4d7400(0x19e)]<=0x1);}function _0x9007d9(_0x236936){const _0x462905=_0x59a458;return _0x236936&&typeof _0x236936=='object'&&!Array[_0x462905(0x199)](_0x236936)?_0x236936:{};}function _0x3ede9a(_0x2c284a){const _0x48db1c=_0x59a458;let _0x2755e4=_0x9007d9(_0x2c284a[_0x48db1c(0x1d0)])[_0x48db1c(0x1af)];if(!_0x2755e4||typeof _0x2755e4!=_0x48db1c(0x19c)||Array[_0x48db1c(0x199)](_0x2755e4))return null;let _0x1ede04=_0x2755e4;return _0x1ede04[_0x48db1c(0x1bf)]===0x1&&_0x1ede04[_0x48db1c(0x191)]&&typeof _0x1ede04[_0x48db1c(0x191)]=='object'?_0x1ede04:null;}function _0x31aa7a(_0x5bdb84){const _0x148713=_0x59a458;return _0x5bdb84[_0x148713(0x1be)]===_0x2f1a4d[_0x148713(0x1a8)]['Shape']&&!!_0x3ede9a(_0x5bdb84);}_0x1bcd01['FBoard']['extend'](_0x123452);let _0x395749={'Pen':_0x59a458(0x1b6),'Brush':'brush','Highlighter':'highlighter'},_0x85c057={'Corner':_0x59a458(0x1a0),'Smooth':_0x59a458(0x1b3),'Symmetric':_0x59a458(0x195),'Free':_0x59a458(0x1a7)},_0xe73fb6={'Anchor':'anchor','In':'in','Out':_0x59a458(0x1a4)};var _0x527d7a=class extends _0x97e23f[_0x59a458(0x1ab)]{get[_0x59a458(0x1b2)](){return _0x395749;}get['BoardInkPointType'](){return _0x85c057;}get['BoardInkHandleKind'](){return _0xe73fb6;}};_0x97e23f['FEnum'][_0x59a458(0x1c2)](_0x527d7a),_0x240d53['BoardInkHandleKind']=_0xe73fb6,_0x240d53[_0x59a458(0x1a1)]=_0x85c057,_0x240d53[_0x59a458(0x1b2)]=_0x395749;}));
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x5681(_0x2b43f1,_0x3e4068){_0x2b43f1=_0x2b43f1-0x168;const _0x151f27=_0x151f();let _0x568170=_0x151f27[_0x2b43f1];return _0x568170;}function _0x151f(){const _0x17230c=['6826290fRvWIS','__ink-preview-anchor__','44UAAcqx','Module','findClosestInkPenHandle','ink.config','setInkPenAnchorPointType','NoFill','convertBrushModelToPenModel','2740976IFvvRq','ratio','iterator','startIndex','ShapeFillEnum','_configService','registerCommand','end','UniverProInk','width','UniverInstanceType','max','51320mtpnbz','40Eyashe','out','points','UniverProEngineShape','defineProperty','round','CommandType','join','top','DependentOn','opacity','156dDXxyj','Injector','_config','sqrt','getInkModelBounds','length','cycleInkPenAnchorPointType','closed','getInkPenPreviewModel','pointType','fillColor','UNIVER_INK_PLUGIN','3PEVjSr','kind','height','abs','start','tool','toDisposable','indexOf','createIdentifier','#f54a45','SolidFill','add','SolidLine','Plugin','symbol','Inject','setConfig','48340KJtOUT','tolerance','registerAdapter','anchor','ink.host-adapter.service','createCustomShape','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','exports','UNIVER_UNKNOWN','ShapeTypeEnum','UniverCore','isInkPenHandleVisible','UniverInkPlugin','buildInkCustomShapePayload','filter','getOwnPropertyDescriptor','segmentIndex','function','object','packageName','Round','right','call','slice','@univerjs/core','toPrimitive','_adapters','find','prototype','color','constructor','ShapeLineTypeEnum','420935xFQwze','corner','beginInkMode','norm','left','_injector','IInkHostAdapterService','deleteInkPenAnchor','UniverLicensePlugin','decorate','point','distance','findClosestInkPenSegment','6HKMuYA','min','_commandService','none','type','string','anchors','symmetric','map','1581987hCSEHC','ShapeLineJoinEnum','default','hypot','moveInkPenAnchorPoint','merge','get','push','smooth','pluginName','forEach','pen','ICommandService','2690289uSiGiR','free','@univerjs-pro/license','splice'];_0x151f=function(){return _0x17230c;};return _0x151f();}(function(_0x5bcd55,_0x383fa7){const _0x3bb4b1=_0x5681,_0x3da1f0=_0x5bcd55();while(!![]){try{const _0x495c62=-parseInt(_0x3bb4b1(0x194))/0x1+parseInt(_0x3bb4b1(0x1bd))/0x2*(parseInt(_0x3bb4b1(0x1ac))/0x3)+-parseInt(_0x3bb4b1(0x181))/0x4*(-parseInt(_0x3bb4b1(0x1dd))/0x5)+parseInt(_0x3bb4b1(0x1ea))/0x6*(-parseInt(_0x3bb4b1(0x188))/0x7)+parseInt(_0x3bb4b1(0x195))/0x8*(parseInt(_0x3bb4b1(0x17b))/0x9)+parseInt(_0x3bb4b1(0x17f))/0xa+-parseInt(_0x3bb4b1(0x16e))/0xb*(parseInt(_0x3bb4b1(0x1a0))/0xc);if(_0x495c62===_0x383fa7)break;else _0x3da1f0['push'](_0x3da1f0['shift']());}catch(_0x4781f2){_0x3da1f0['push'](_0x3da1f0['shift']());}}}(_0x151f,0xc6f68),function(_0x56f54b,_0x23be45){const _0x161384=_0x5681;typeof exports==_0x161384(0x1cf)&&typeof module<'u'?_0x23be45(exports,require('@univerjs-pro/engine-shape'),require('@univerjs-pro/license'),require('@univerjs/core')):typeof define==_0x161384(0x1ce)&&define['amd']?define([_0x161384(0x1c4),'@univerjs-pro/engine-shape',_0x161384(0x17d),_0x161384(0x1d5)],_0x23be45):(_0x56f54b=typeof globalThis<'u'?globalThis:_0x56f54b||self,_0x23be45(_0x56f54b[_0x161384(0x190)]={},_0x56f54b[_0x161384(0x198)],_0x56f54b['UniverProLicense'],_0x56f54b[_0x161384(0x1c7)]));}(this,function(_0x496e66,_0x57b12f,_0x2a97ad,_0x471302){const _0x251dbf=_0x5681;Object['defineProperty'](_0x496e66,Symbol['toStringTag'],{'value':_0x251dbf(0x182)});let _0x339608=0.0001;function _0x1b2942(_0x4b4b62){return{'x':_0x4b4b62['x'],'y':_0x4b4b62['y']};}function _0x4a50b4(_0x3d4b05){const _0x4d2289=_0x251dbf;return{..._0x3d4b05,'in':_0x3d4b05['in']?_0x1b2942(_0x3d4b05['in']):void 0x0,'out':_0x3d4b05[_0x4d2289(0x196)]?_0x1b2942(_0x3d4b05[_0x4d2289(0x196)]):void 0x0};}function _0x5b163f(_0x2e4356){return{'kind':'pen','closed':_0x2e4356['closed'],'anchors':_0x2e4356['anchors']['map'](_0x4a50b4)};}function _0x5c923e(_0x30c5fa,_0x22050f,_0x5d6ddb){return{'x':_0x30c5fa['x']+(_0x22050f['x']-_0x30c5fa['x'])*_0x5d6ddb,'y':_0x30c5fa['y']+(_0x22050f['y']-_0x30c5fa['y'])*_0x5d6ddb};}function _0xc43502(_0x59d300,_0x1310ad){return Math['hypot'](_0x59d300['x']-_0x1310ad['x'],_0x59d300['y']-_0x1310ad['y']);}function _0x4819f3(_0x45232a){const _0x289dce=_0x251dbf;let _0x273cca=Math[_0x289dce(0x171)](_0x45232a['x'],_0x45232a['y']);return _0x273cca<_0x339608?{'x':0x1,'y':0x0}:{'x':_0x45232a['x']/_0x273cca,'y':_0x45232a['y']/_0x273cca};}function _0x54872d(_0x9076f7,_0x2f3e07,_0x3e2fee=_0xc43502(_0x9076f7,_0x2f3e07)){let _0x37d55e=_0x4819f3({'x':_0x9076f7['x']-_0x2f3e07['x'],'y':_0x9076f7['y']-_0x2f3e07['y']});return{'x':_0x9076f7['x']+_0x37d55e['x']*_0x3e2fee,'y':_0x9076f7['y']+_0x37d55e['y']*_0x3e2fee};}function _0x4ea881(_0x3f8099,_0x34cacc){const _0x4bcc05=_0x251dbf;let {anchors:_0x3649c2}=_0x3f8099;return _0x3649c2['length']<0x2||_0x34cacc<0x0?null:_0x34cacc<_0x3649c2[_0x4bcc05(0x1a5)]-0x1?{'startIndex':_0x34cacc,'endIndex':_0x34cacc+0x1,'start':_0x3649c2[_0x34cacc],'end':_0x3649c2[_0x34cacc+0x1]}:_0x3f8099['closed']&&_0x34cacc===_0x3649c2[_0x4bcc05(0x1a5)]-0x1?{'startIndex':_0x3649c2[_0x4bcc05(0x1a5)]-0x1,'endIndex':0x0,'start':_0x3649c2[_0x3649c2['length']-0x1],'end':_0x3649c2[0x0]}:null;}function _0x422e2a(_0x4df5b2,_0x3713b4){const _0x2baae7=_0x251dbf;let _0x4b5bde=_0x4ea881(_0x4df5b2,_0x3713b4);return _0x4b5bde?[_0x4b5bde[_0x2baae7(0x1b0)],_0x4b5bde[_0x2baae7(0x1b0)][_0x2baae7(0x196)]??_0x4b5bde[_0x2baae7(0x1b0)],_0x4b5bde[_0x2baae7(0x18f)]['in']??_0x4b5bde[_0x2baae7(0x18f)],_0x4b5bde[_0x2baae7(0x18f)]]:null;}function _0x5716e1(_0x5485c2,_0x969d2f){const _0x4e265d=_0x251dbf;return _0x969d2f===_0x4e265d(0x1c0)?_0x5485c2:_0x5485c2[_0x969d2f]??null;}function _0x35d506(_0x599622,_0x1bfde8,_0x27fda2){const _0x3f62ed=_0x251dbf;return _0x27fda2===_0x3f62ed(0x1c0)||_0x599622[_0x3f62ed(0x1a7)]?!0x0:_0x27fda2==='in'?_0x1bfde8>0x0:_0x1bfde8<_0x599622['anchors'][_0x3f62ed(0x1a5)]-0x1;}function _0x492236(_0x444fee,_0x4a5665){let [_0x1531c4,_0x4c6939,_0x1a02cb,_0x361da3]=_0x444fee,_0x1adfd1=_0x5c923e(_0x1531c4,_0x4c6939,_0x4a5665),_0x4e8465=_0x5c923e(_0x4c6939,_0x1a02cb,_0x4a5665),_0x1bb2bd=_0x5c923e(_0x1a02cb,_0x361da3,_0x4a5665);return _0x5c923e(_0x5c923e(_0x1adfd1,_0x4e8465,_0x4a5665),_0x5c923e(_0x4e8465,_0x1bb2bd,_0x4a5665),_0x4a5665);}function _0x568952(_0x5a0d24,_0x1ac0a5){let [_0x251499,_0xe2fae7,_0x44ec62,_0x26b342]=_0x5a0d24,_0xca1b61=_0x5c923e(_0x251499,_0xe2fae7,_0x1ac0a5),_0x45696a=_0x5c923e(_0xe2fae7,_0x44ec62,_0x1ac0a5),_0x346ea5=_0x5c923e(_0x44ec62,_0x26b342,_0x1ac0a5),_0x47d5f1=_0x5c923e(_0xca1b61,_0x45696a,_0x1ac0a5),_0x239688=_0x5c923e(_0x45696a,_0x346ea5,_0x1ac0a5),_0x728816=_0x5c923e(_0x47d5f1,_0x239688,_0x1ac0a5);return{'left':[_0x251499,_0xca1b61,_0x47d5f1,_0x728816],'right':[_0x728816,_0x239688,_0x346ea5,_0x26b342]};}function _0x2208c0(_0x1082b2,_0x65cbef,_0x2ac9d5){const _0x4da42c=_0x251dbf;let _0x4da0f6=_0x2ac9d5['x']-_0x65cbef['x'],_0x10e6a8=_0x2ac9d5['y']-_0x65cbef['y'],_0xa5a5eb=_0x4da0f6*_0x4da0f6+_0x10e6a8*_0x10e6a8,_0x3bff04=_0xa5a5eb<=_0x339608?0x0:Math[_0x4da42c(0x193)](0x0,Math[_0x4da42c(0x1eb)](0x1,((_0x1082b2['x']-_0x65cbef['x'])*_0x4da0f6+(_0x1082b2['y']-_0x65cbef['y'])*_0x10e6a8)/_0xa5a5eb)),_0xfab37={'x':_0x65cbef['x']+_0x4da0f6*_0x3bff04,'y':_0x65cbef['y']+_0x10e6a8*_0x3bff04};return{'point':_0xfab37,'ratio':_0x3bff04,'distance':_0xc43502(_0x1082b2,_0xfab37)};}function _0x5551a8(_0x38734f,_0x50ca2f,_0xd42961){const _0x2f7386=_0x251dbf;return _0x2208c0(_0x38734f,_0x50ca2f,_0xd42961)[_0x2f7386(0x1e8)]**0x2;}function _0x3f9c2f(_0x2f2014,_0x1b1d0d){const _0x4f5260=_0x251dbf;if(_0x2f2014[_0x4f5260(0x1a5)]<=0x2)return _0x2f2014['map'](_0x1b2942);let _0x454f37=0x0,_0x399ba7=0x0,_0x29b7f0=_0x2f2014[0x0],_0x4b8f53=_0x2f2014[_0x2f2014[_0x4f5260(0x1a5)]-0x1],_0x106650=_0x1b1d0d*_0x1b1d0d;for(let _0x34b54b=0x1;_0x34b54b<_0x2f2014['length']-0x1;_0x34b54b++){let _0x4599e2=_0x5551a8(_0x2f2014[_0x34b54b],_0x29b7f0,_0x4b8f53);_0x4599e2>_0x454f37&&(_0x454f37=_0x4599e2,_0x399ba7=_0x34b54b);}if(_0x454f37<=_0x106650)return[_0x1b2942(_0x29b7f0),_0x1b2942(_0x4b8f53)];let _0xf792e6=_0x3f9c2f(_0x2f2014[_0x4f5260(0x1d4)](0x0,_0x399ba7+0x1),_0x1b1d0d),_0x4f5ced=_0x3f9c2f(_0x2f2014[_0x4f5260(0x1d4)](_0x399ba7),_0x1b1d0d);return[..._0xf792e6['slice'](0x0,-0x1),..._0x4f5ced];}function _0x934f3(_0x36fd6e,_0x5d5f1a){let _0x26065b=_0x36fd6e[_0x5d5f1a],_0x54665a=_0x36fd6e[_0x5d5f1a+0x1],_0x54bb2b=_0x36fd6e[_0x5d5f1a-0x1]??_0x26065b;return{'x':_0x26065b['x']+(_0x54665a['x']-_0x54bb2b['x'])/0x6,'y':_0x26065b['y']+(_0x54665a['y']-_0x54bb2b['y'])/0x6};}function _0xb22618(_0x316970,_0x1999d1){let _0x51c138=_0x316970[_0x1999d1],_0x2b88bf=_0x316970[_0x1999d1-0x1],_0x2fe853=_0x316970[_0x1999d1+0x1]??_0x51c138;return{'x':_0x51c138['x']-(_0x2fe853['x']-_0x2b88bf['x'])/0x6,'y':_0x51c138['y']-(_0x2fe853['y']-_0x2b88bf['y'])/0x6};}function _0x17de1a(_0x4d4810,_0x5a6c27){const _0x43eeeb=_0x251dbf;let _0x2b3324=_0x4d4810[_0x43eeeb(0x16b)][_0x5a6c27],_0x59cb44=_0x4d4810[_0x43eeeb(0x16b)][_0x5a6c27-0x1]??(_0x4d4810[_0x43eeeb(0x1a7)]?_0x4d4810[_0x43eeeb(0x16b)][_0x4d4810[_0x43eeeb(0x16b)][_0x43eeeb(0x1a5)]-0x1]:null),_0x108497=_0x4d4810[_0x43eeeb(0x16b)][_0x5a6c27+0x1]??(_0x4d4810[_0x43eeeb(0x1a7)]?_0x4d4810['anchors'][0x0]:null),_0x5087a6=_0x59cb44&&_0x108497?_0x4819f3({'x':_0x108497['x']-_0x59cb44['x'],'y':_0x108497['y']-_0x59cb44['y']}):_0x108497?_0x4819f3({'x':_0x108497['x']-_0x2b3324['x'],'y':_0x108497['y']-_0x2b3324['y']}):_0x59cb44?_0x4819f3({'x':_0x2b3324['x']-_0x59cb44['x'],'y':_0x2b3324['y']-_0x59cb44['y']}):{'x':0x1,'y':0x0},_0x905ddd=_0x59cb44&&_0x108497?Math['max'](0x32,_0xc43502(_0x59cb44,_0x108497)/0x4):0x32;return{'in':{'x':_0x2b3324['x']-_0x5087a6['x']*_0x905ddd,'y':_0x2b3324['y']-_0x5087a6['y']*_0x905ddd},'out':{'x':_0x2b3324['x']+_0x5087a6['x']*_0x905ddd,'y':_0x2b3324['y']+_0x5087a6['y']*_0x905ddd}};}function _0x2e0137(_0x2fae9b,_0xaf9385){const _0x5922ae=_0x251dbf;let _0x57a2bf=_0x2fae9b[_0xaf9385],_0xa2c82=_0xaf9385==='in'?_0x5922ae(0x196):'in',_0x323e99=_0x2fae9b[_0xa2c82];_0x57a2bf&&(_0x2fae9b['pointType']===_0x5922ae(0x16c)?_0x2fae9b[_0xa2c82]=_0x54872d(_0x2fae9b,_0x57a2bf):_0x2fae9b['pointType']===_0x5922ae(0x176)&&(_0x2fae9b[_0xa2c82]=_0x54872d(_0x2fae9b,_0x57a2bf,_0x323e99?_0xc43502(_0x2fae9b,_0x323e99):_0xc43502(_0x2fae9b,_0x57a2bf))));}function _0x1305e0(_0x89174f,_0x2eed3b){const _0x532645=_0x251dbf;let _0xb44a5f=_0x5b163f(_0x89174f);return!_0x2eed3b||_0xb44a5f['closed']||_0xb44a5f[_0x532645(0x16b)][_0x532645(0x1a5)]===0x0||_0xb44a5f[_0x532645(0x16b)]['push']({'id':_0x532645(0x180),'x':_0x2eed3b['x'],'y':_0x2eed3b['y'],'pointType':_0x532645(0x1de)}),_0xb44a5f;}function _0x451a72(_0x2c6cb4,_0x557041={}){const _0x53fda6=_0x251dbf;let _0x380fe7=Math[_0x53fda6(0x193)](0x0,_0x557041[_0x53fda6(0x1be)]??Math[_0x53fda6(0x193)](0x4,_0x2c6cb4[_0x53fda6(0x191)]*0.35)),_0x4b0fbd=_0x557041['createId']??(_0x117cb4=>'ink-centerline-'+_0x117cb4),_0x739ed5=_0x3f9c2f(_0x2c6cb4[_0x53fda6(0x197)],_0x380fe7),_0x5a2e21=_0x739ed5[_0x53fda6(0x16d)]((_0x33f813,_0x33a3af)=>({'id':_0x4b0fbd(_0x33a3af),'x':_0x33f813['x'],'y':_0x33f813['y'],'pointType':_0x53fda6(0x17c)}));for(let _0x39d3b7=0x0;_0x39d3b7<_0x5a2e21[_0x53fda6(0x1a5)]-0x1;_0x39d3b7++)_0x5a2e21[_0x39d3b7]['out']=_0x934f3(_0x739ed5,_0x39d3b7),_0x5a2e21[_0x39d3b7+0x1]['in']=_0xb22618(_0x739ed5,_0x39d3b7+0x1);return{'kind':_0x53fda6(0x179),'closed':!0x1,'anchors':_0x5a2e21};}function _0x447a7c(_0x3d9e9a,_0x4eb5bf,_0x5db5){const _0x1551ce=_0x251dbf;let _0x4689e2=null,_0x566481=[_0x1551ce(0x1c0),'in','out'];return _0x3d9e9a[_0x1551ce(0x16b)]['forEach']((_0x5652dc,_0x221b33)=>{_0x566481['forEach'](_0x2489c7=>{const _0x3abb50=_0x5681;if(!_0x35d506(_0x3d9e9a,_0x221b33,_0x2489c7))return;let _0x31c3bc=_0x5716e1(_0x5652dc,_0x2489c7);if(!_0x31c3bc)return;let _0x265358=_0xc43502(_0x4eb5bf,_0x31c3bc);_0x265358>_0x5db5||_0x4689e2&&_0x265358>=_0x4689e2[_0x3abb50(0x1e8)]||(_0x4689e2={'handle':{'kind':_0x2489c7,'anchorId':_0x5652dc['id']},'point':_0x1b2942(_0x31c3bc),'distance':_0x265358});});}),_0x4689e2;}function _0x2802c6(_0x788aae,_0x1ed6ad,_0x32139d){const _0x474907=_0x251dbf;let _0x256ee1=null,_0x550ef7=_0x788aae['closed']?_0x788aae[_0x474907(0x16b)][_0x474907(0x1a5)]:Math[_0x474907(0x193)](0x0,_0x788aae[_0x474907(0x16b)][_0x474907(0x1a5)]-0x1);for(let _0x5333f4=0x0;_0x5333f4<_0x550ef7;_0x5333f4++){let _0x59a443=_0x422e2a(_0x788aae,_0x5333f4);if(!_0x59a443)continue;let _0x45c665=_0x492236(_0x59a443,0x0);for(let _0x4e7dd2=0x1;_0x4e7dd2<=0x20;_0x4e7dd2++){let _0x19b4f4=_0x492236(_0x59a443,_0x4e7dd2/0x20),_0x57cf2e=_0x2208c0(_0x1ed6ad,_0x45c665,_0x19b4f4),_0x4d0c8f=(_0x4e7dd2-0x1+_0x57cf2e[_0x474907(0x189)])/0x20;(!_0x256ee1||_0x57cf2e['distance']<_0x256ee1[_0x474907(0x1e8)])&&(_0x256ee1={'segmentIndex':_0x5333f4,'t':_0x4d0c8f,'point':_0x57cf2e[_0x474907(0x1e7)],'distance':_0x57cf2e[_0x474907(0x1e8)]}),_0x45c665=_0x19b4f4;}}return _0x256ee1&&_0x256ee1[_0x474907(0x1e8)]<=_0x32139d?_0x256ee1:null;}function _0x1f207f(_0x5984d7,_0x246e61,_0x35d109){const _0x4cfb9e=_0x251dbf;let _0x35626d=_0x5b163f(_0x5984d7),_0x341f9c=_0x4ea881(_0x35626d,_0x246e61[_0x4cfb9e(0x1cd)]),_0x2623f1=_0x422e2a(_0x35626d,_0x246e61[_0x4cfb9e(0x1cd)]);if(!_0x341f9c||!_0x2623f1)return _0x35626d;let _0x2ba700=_0x568952(_0x2623f1,Math['max'](0x0,Math[_0x4cfb9e(0x1eb)](0x1,_0x246e61['t']))),_0x1bee28={'id':_0x35d109(),'x':_0x2ba700[_0x4cfb9e(0x1e1)][0x3]['x'],'y':_0x2ba700[_0x4cfb9e(0x1e1)][0x3]['y'],'in':_0x1b2942(_0x2ba700[_0x4cfb9e(0x1e1)][0x2]),'out':_0x1b2942(_0x2ba700[_0x4cfb9e(0x1d2)][0x1]),'pointType':_0x4cfb9e(0x17c)};return _0x35626d[_0x4cfb9e(0x16b)][_0x341f9c['startIndex']]['out']=_0x1b2942(_0x2ba700[_0x4cfb9e(0x1e1)][0x1]),_0x35626d[_0x4cfb9e(0x16b)][_0x341f9c['endIndex']]['in']=_0x1b2942(_0x2ba700[_0x4cfb9e(0x1d2)][0x2]),_0x35626d[_0x4cfb9e(0x16b)][_0x4cfb9e(0x17e)](_0x341f9c[_0x4cfb9e(0x18b)]+0x1,0x0,_0x1bee28),_0x35626d;}function _0x49eb4f(_0x53d01e,_0x259a83){const _0x20e57b=_0x251dbf;let _0x581013=_0x5b163f(_0x53d01e);return _0x581013[_0x20e57b(0x16b)]=_0x581013['anchors'][_0x20e57b(0x1cb)](_0x2d278a=>_0x2d278a['id']!==_0x259a83),_0x581013[_0x20e57b(0x1a7)]&&_0x581013[_0x20e57b(0x16b)][_0x20e57b(0x1a5)]<0x3&&(_0x581013[_0x20e57b(0x1a7)]=!0x1),_0x581013;}function _0x9a0e53(_0x4fc39c,_0x303e7d,_0x142a59){const _0x9083d3=_0x251dbf;let _0xb82fc5=_0x5b163f(_0x4fc39c),_0x2fcb4d=_0xb82fc5[_0x9083d3(0x16b)]['findIndex'](_0x59ef6a=>_0x59ef6a['id']===_0x303e7d),_0x2f182d=_0xb82fc5[_0x9083d3(0x16b)][_0x2fcb4d];if(!_0x2f182d)return _0xb82fc5;if(_0x2f182d['pointType']=_0x142a59,_0x142a59===_0x9083d3(0x1de))return delete _0x2f182d['in'],delete _0x2f182d['out'],_0xb82fc5;let _0x50cc4e=_0x17de1a(_0xb82fc5,_0x2fcb4d);if(_0x2f182d['in']=_0x2f182d['in']?_0x1b2942(_0x2f182d['in']):_0x50cc4e['in'],_0x2f182d[_0x9083d3(0x196)]=_0x2f182d[_0x9083d3(0x196)]?_0x1b2942(_0x2f182d[_0x9083d3(0x196)]):_0x50cc4e[_0x9083d3(0x196)],_0x142a59===_0x9083d3(0x16c)){let _0x197c01=Math['max'](_0xc43502(_0x2f182d,_0x2f182d['in']),_0xc43502(_0x2f182d,_0x2f182d[_0x9083d3(0x196)]),0x32),_0x905d07=_0x4819f3({'x':_0x2f182d[_0x9083d3(0x196)]['x']-_0x2f182d['x'],'y':_0x2f182d['out']['y']-_0x2f182d['y']});_0x2f182d[_0x9083d3(0x196)]={'x':_0x2f182d['x']+_0x905d07['x']*_0x197c01,'y':_0x2f182d['y']+_0x905d07['y']*_0x197c01},_0x2f182d['in']={'x':_0x2f182d['x']-_0x905d07['x']*_0x197c01,'y':_0x2f182d['y']-_0x905d07['y']*_0x197c01};}else _0x142a59===_0x9083d3(0x176)&&_0x2e0137(_0x2f182d,'out');return _0xb82fc5;}function _0x231035(_0x132865,_0x2ef410){const _0x3b88c2=_0x251dbf;let _0x466bca=_0x132865[_0x3b88c2(0x16b)][_0x3b88c2(0x1d8)](_0x425307=>_0x425307['id']===_0x2ef410),_0x204e46=(_0x466bca==null?void 0x0:_0x466bca['pointType'])??_0x3b88c2(0x1de);return _0x9a0e53(_0x132865,_0x2ef410,_0x204e46==='corner'?_0x3b88c2(0x176):_0x204e46==='smooth'?_0x3b88c2(0x16c):_0x204e46===_0x3b88c2(0x16c)?_0x3b88c2(0x17c):_0x3b88c2(0x1de));}function _0x42a587(_0x4defe6,_0x57f56f,_0x48e9c1){const _0x3aa87a=_0x251dbf;let _0x2fed70=_0x5b163f(_0x4defe6),_0x1f9d3c=_0x2fed70['anchors'][_0x3aa87a(0x1d8)](_0x4bfb6d=>_0x4bfb6d['id']===_0x57f56f['anchorId']);if(!_0x1f9d3c)return _0x2fed70;if(_0x57f56f[_0x3aa87a(0x1ad)]===_0x3aa87a(0x1c0)){let _0x384f57={'x':_0x48e9c1['x']-_0x1f9d3c['x'],'y':_0x48e9c1['y']-_0x1f9d3c['y']};return _0x1f9d3c['x']=_0x48e9c1['x'],_0x1f9d3c['y']=_0x48e9c1['y'],_0x1f9d3c['in']&&={'x':_0x1f9d3c['in']['x']+_0x384f57['x'],'y':_0x1f9d3c['in']['y']+_0x384f57['y']},_0x1f9d3c['out']&&={'x':_0x1f9d3c[_0x3aa87a(0x196)]['x']+_0x384f57['x'],'y':_0x1f9d3c['out']['y']+_0x384f57['y']},_0x2fed70;}return _0x1f9d3c[_0x57f56f[_0x3aa87a(0x1ad)]]=_0x1b2942(_0x48e9c1),_0x1f9d3c[_0x3aa87a(0x1a9)]===_0x3aa87a(0x1de)&&(_0x1f9d3c[_0x3aa87a(0x1a9)]=_0x3aa87a(0x17c)),_0x2e0137(_0x1f9d3c,_0x57f56f[_0x3aa87a(0x1ad)]),_0x2fed70;}let _0x220632=1e-9;function _0x52cf20(_0x4744a1){const _0x38cd94=_0x251dbf;let _0x1c60bc=Math[_0x38cd94(0x19a)](_0x4744a1*0x2710)/0x2710;return Object['is'](_0x1c60bc,-0x0)?'0':String(_0x1c60bc);}function _0x3ef82b(_0x498b1d){return _0x52cf20(_0x498b1d['x'])+'\x20'+_0x52cf20(_0x498b1d['y']);}function _0x3e7f24(_0xf33df6,_0x22cd93){return{'x':_0xf33df6['x']-_0x22cd93['x'],'y':_0xf33df6['y']-_0x22cd93['y']};}function _0x4cc470(_0x5a85d9,_0x5d1f15,_0x134746,_0x4fef48,_0x4ac6df){let _0x48bdf9=0x1-_0x4ac6df;return{'x':_0x48bdf9*_0x48bdf9*_0x48bdf9*_0x5a85d9['x']+0x3*_0x48bdf9*_0x48bdf9*_0x4ac6df*_0x5d1f15['x']+0x3*_0x48bdf9*_0x4ac6df*_0x4ac6df*_0x134746['x']+_0x4ac6df*_0x4ac6df*_0x4ac6df*_0x4fef48['x'],'y':_0x48bdf9*_0x48bdf9*_0x48bdf9*_0x5a85d9['y']+0x3*_0x48bdf9*_0x48bdf9*_0x4ac6df*_0x5d1f15['y']+0x3*_0x48bdf9*_0x4ac6df*_0x4ac6df*_0x134746['y']+_0x4ac6df*_0x4ac6df*_0x4ac6df*_0x4fef48['y']};}function _0x1dbbcf(_0x238889,_0x5d148b,_0x2c96d6,_0x35d175){const _0x474c03=_0x251dbf;let _0x1f74e6=-_0x238889+0x3*_0x5d148b-0x3*_0x2c96d6+_0x35d175,_0x4be018=0x3*_0x238889-0x6*_0x5d148b+0x3*_0x2c96d6,_0x2a2618=-0x3*_0x238889+0x3*_0x5d148b,_0x2d1fd8=[];if(Math['abs'](_0x1f74e6)<_0x220632){if(Math['abs'](_0x4be018)<_0x220632)return _0x2d1fd8;let _0x223077=-_0x2a2618/(0x2*_0x4be018);return _0x223077>0x0&&_0x223077<0x1&&_0x2d1fd8[_0x474c03(0x175)](_0x223077),_0x2d1fd8;}let _0x315ee6=_0x4be018*_0x4be018-0x3*_0x1f74e6*_0x2a2618;if(_0x315ee6<0x0)return _0x2d1fd8;let _0x4a2dd3=Math[_0x474c03(0x1a3)](Math[_0x474c03(0x193)](0x0,_0x315ee6)),_0x43f990=(-_0x4be018+_0x4a2dd3)/(0x3*_0x1f74e6),_0x53c180=(-_0x4be018-_0x4a2dd3)/(0x3*_0x1f74e6);return _0x43f990>0x0&&_0x43f990<0x1&&_0x2d1fd8[_0x474c03(0x175)](_0x43f990),_0x53c180>0x0&&_0x53c180<0x1&&Math[_0x474c03(0x1af)](_0x53c180-_0x43f990)>_0x220632&&_0x2d1fd8[_0x474c03(0x175)](_0x53c180),_0x2d1fd8;}function _0x3069b9(_0x5e7c23,_0x6976ea,_0x174698,_0x566719,_0x3d8053){const _0x158a85=_0x251dbf;_0x5e7c23['push'](_0x6976ea,_0x3d8053),new Set([..._0x1dbbcf(_0x6976ea['x'],_0x174698['x'],_0x566719['x'],_0x3d8053['x']),..._0x1dbbcf(_0x6976ea['y'],_0x174698['y'],_0x566719['y'],_0x3d8053['y'])])[_0x158a85(0x178)](_0xb45939=>{const _0x22c290=_0x158a85;_0x5e7c23[_0x22c290(0x175)](_0x4cc470(_0x6976ea,_0x174698,_0x566719,_0x3d8053,_0xb45939));});}function _0x4aa5cd(_0x3393f5){const _0x5c31c8=_0x251dbf;let _0x187912=_0x3393f5[_0x5c31c8(0x16b)];if(_0x187912[_0x5c31c8(0x1a5)]<=0x1)return _0x187912;let _0x7a1214=[];for(let _0x23bf49=0x1;_0x23bf49<_0x187912[_0x5c31c8(0x1a5)];_0x23bf49++){let _0x442e6e=_0x187912[_0x23bf49-0x1],_0x48b75c=_0x187912[_0x23bf49];_0x3069b9(_0x7a1214,_0x442e6e,_0x442e6e['out']??_0x442e6e,_0x48b75c['in']??_0x48b75c,_0x48b75c);}if(_0x3393f5[_0x5c31c8(0x1a7)]&&_0x187912[_0x5c31c8(0x1a5)]>0x1){let _0x176c4a=_0x187912[_0x187912[_0x5c31c8(0x1a5)]-0x1],_0x3271c6=_0x187912[0x0];_0x3069b9(_0x7a1214,_0x176c4a,_0x176c4a[_0x5c31c8(0x196)]??_0x176c4a,_0x3271c6['in']??_0x3271c6,_0x3271c6);}return _0x7a1214;}function _0x2a4d3e(_0x1f2923){const _0x4d5566=_0x251dbf;let _0xb071ec=_0x1f2923['points'];if(_0xb071ec[_0x4d5566(0x1a5)]<=0x1)return _0xb071ec;let _0x500d73=[];for(let _0x234124=0x0;_0x234124<_0xb071ec[_0x4d5566(0x1a5)]-0x1;_0x234124++){let _0x246a47=_0xb071ec[_0x234124],_0x4dd156=_0xb071ec[_0x234124+0x1],_0x181262=_0xb071ec[_0x234124-0x1]??_0x246a47,_0x122571=_0xb071ec[_0x234124+0x2]??_0x4dd156;_0x3069b9(_0x500d73,_0x246a47,{'x':_0x246a47['x']+(_0x4dd156['x']-_0x181262['x'])/0x6,'y':_0x246a47['y']+(_0x4dd156['y']-_0x181262['y'])/0x6},{'x':_0x4dd156['x']-(_0x122571['x']-_0x246a47['x'])/0x6,'y':_0x4dd156['y']-(_0x122571['y']-_0x246a47['y'])/0x6},_0x4dd156);}return _0x500d73;}function _0x45f2d0(_0x442ea8){const _0x14e96e=_0x251dbf;return _0x442ea8[_0x14e96e(0x1ad)]===_0x14e96e(0x179)?_0x4aa5cd(_0x442ea8):_0x2a4d3e(_0x442ea8);}function _0x2f2322(_0xccc775){const _0x1f9665=_0x251dbf;let _0x5e55eb=Math[_0x1f9665(0x19a)](_0xccc775*0x2710)/0x2710;return Object['is'](_0x5e55eb,-0x0)?0x0:_0x5e55eb;}function _0x45656e(_0xf1aa){const _0x2be2e1=_0x251dbf;let _0x35ad71=_0x45f2d0(_0xf1aa);if(_0x35ad71['length']===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x5064a4=Math[_0x2be2e1(0x1eb)](..._0x35ad71[_0x2be2e1(0x16d)](_0x4cff39=>_0x4cff39['x'])),_0x37d02e=Math['min'](..._0x35ad71[_0x2be2e1(0x16d)](_0x5ef616=>_0x5ef616['y'])),_0x2ec36b=Math['max'](..._0x35ad71['map'](_0x16a3e6=>_0x16a3e6['x'])),_0x182140=Math['max'](..._0x35ad71['map'](_0x22d4b7=>_0x22d4b7['y']));return{'left':_0x2f2322(_0x5064a4),'top':_0x2f2322(_0x37d02e),'width':_0x2f2322(Math[_0x2be2e1(0x193)](0x1,_0x2ec36b-_0x5064a4)),'height':_0x2f2322(Math[_0x2be2e1(0x193)](0x1,_0x182140-_0x37d02e))};}function _0x3ba6be(_0x43e859,_0x391c1a){const _0x87fdf0=_0x251dbf;let _0x45363c=_0x43e859['anchors'];if(_0x45363c[_0x87fdf0(0x1a5)]===0x0)return'';let _0x1c07e8=['M\x20'+_0x3ef82b(_0x3e7f24(_0x45363c[0x0],_0x391c1a))];for(let _0x34f21d=0x1;_0x34f21d<_0x45363c[_0x87fdf0(0x1a5)];_0x34f21d++){let _0x53e75f=_0x45363c[_0x34f21d-0x1],_0x1c6c67=_0x45363c[_0x34f21d],_0x23b351=_0x53e75f[_0x87fdf0(0x196)]??_0x53e75f,_0x45415f=_0x1c6c67['in']??_0x1c6c67;_0x1c07e8[_0x87fdf0(0x175)]('C\x20'+_0x3ef82b(_0x3e7f24(_0x23b351,_0x391c1a))+'\x20'+_0x3ef82b(_0x3e7f24(_0x45415f,_0x391c1a))+'\x20'+_0x3ef82b(_0x3e7f24(_0x1c6c67,_0x391c1a)));}if(_0x43e859[_0x87fdf0(0x1a7)]&&_0x45363c['length']>0x1){let _0x5e7f60=_0x45363c[_0x45363c['length']-0x1],_0x100e68=_0x45363c[0x0],_0x4724c7=_0x5e7f60[_0x87fdf0(0x196)]??_0x5e7f60,_0x5ba617=_0x100e68['in']??_0x100e68;_0x1c07e8['push']('C\x20'+_0x3ef82b(_0x3e7f24(_0x4724c7,_0x391c1a))+'\x20'+_0x3ef82b(_0x3e7f24(_0x5ba617,_0x391c1a))+'\x20'+_0x3ef82b(_0x3e7f24(_0x100e68,_0x391c1a))),_0x1c07e8[_0x87fdf0(0x175)]('Z');}return _0x1c07e8[_0x87fdf0(0x19c)]('\x20');}function _0x1d4290(_0xa1f97d,_0x4ae4c5){const _0x34f4b0=_0x251dbf;let _0x4bf7df=_0xa1f97d['points'][_0x34f4b0(0x16d)](_0x1149a1=>_0x3e7f24(_0x1149a1,_0x4ae4c5));if(_0x4bf7df[_0x34f4b0(0x1a5)]===0x0)return'';if(_0x4bf7df[_0x34f4b0(0x1a5)]===0x1)return'M\x20'+_0x3ef82b(_0x4bf7df[0x0]);let _0x1c5b0b=['M\x20'+_0x3ef82b(_0x4bf7df[0x0])];for(let _0x3a452f=0x0;_0x3a452f<_0x4bf7df[_0x34f4b0(0x1a5)]-0x1;_0x3a452f++){let _0x9ab48c=_0x4bf7df[_0x3a452f],_0xb436ef=_0x4bf7df[_0x3a452f+0x1],_0x40b244=_0x4bf7df[_0x3a452f-0x1]??_0x9ab48c,_0x1160cf=_0x4bf7df[_0x3a452f+0x2]??_0xb436ef,_0x5b2b50={'x':_0x9ab48c['x']+(_0xb436ef['x']-_0x40b244['x'])/0x6,'y':_0x9ab48c['y']+(_0xb436ef['y']-_0x40b244['y'])/0x6},_0x5d8d17={'x':_0xb436ef['x']-(_0x1160cf['x']-_0x9ab48c['x'])/0x6,'y':_0xb436ef['y']-(_0x1160cf['y']-_0x9ab48c['y'])/0x6};_0x1c5b0b[_0x34f4b0(0x175)]('C\x20'+_0x3ef82b(_0x5b2b50)+'\x20'+_0x3ef82b(_0x5d8d17)+'\x20'+_0x3ef82b(_0xb436ef));}return _0x1c5b0b['join']('\x20');}function _0x5e330c(_0x520eba,_0x33471a){const _0x170464=_0x251dbf;return _0x520eba[_0x170464(0x1ad)]==='pen'?_0x3ba6be(_0x520eba,_0x33471a):_0x1d4290(_0x520eba,_0x33471a);}function _0x4be567(_0x3793a1,_0x500a50){const _0x1d7cc9=_0x251dbf;return _0x500a50!=null&&_0x500a50[_0x1d7cc9(0x1da)]?_0x500a50[_0x1d7cc9(0x1da)]:_0x3793a1[_0x1d7cc9(0x1ad)]===_0x1d7cc9(0x179)?_0x1d7cc9(0x1b5):_0x3793a1[_0x1d7cc9(0x1da)];}function _0x605fe(_0x2834f6,_0x2ae0b8){const _0x293a20=_0x251dbf;return(_0x2ae0b8==null?void 0x0:_0x2ae0b8[_0x293a20(0x191)])===void 0x0?_0x2834f6[_0x293a20(0x1ad)]===_0x293a20(0x179)?0x2:_0x2834f6['width']:_0x2ae0b8['width'];}function _0x28ca5e(_0x182e9d,_0x521508){const _0x5cfbe4=_0x251dbf;return(_0x521508==null?void 0x0:_0x521508[_0x5cfbe4(0x19f)])===void 0x0?_0x182e9d[_0x5cfbe4(0x1ad)]===_0x5cfbe4(0x179)?void 0x0:_0x182e9d['opacity']:_0x521508[_0x5cfbe4(0x19f)];}function _0x224308(_0x5d7357,_0x1f150b){const _0x5e6a52=_0x251dbf;let _0x2d6106=_0x45656e(_0x5d7357),_0x4a1768=_0x5e330c(_0x5d7357,{'x':_0x2d6106[_0x5e6a52(0x1e1)],'y':_0x2d6106[_0x5e6a52(0x19d)]}),_0x10f40d=_0x5d7357[_0x5e6a52(0x1ad)]===_0x5e6a52(0x179)&&_0x5d7357[_0x5e6a52(0x1a7)],_0x433825=_0x1f150b==null?void 0x0:_0x1f150b[_0x5e6a52(0x1aa)];return{'shapeType':_0x57b12f[_0x5e6a52(0x1c6)]['Rect'],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x2d6106[_0x5e6a52(0x191)],'h':_0x2d6106[_0x5e6a52(0x1ae)],'fill':_0x10f40d?_0x5e6a52(0x1e0):_0x5e6a52(0x168),'stroke':!0x0,'data':_0x4a1768,'dataArray':_0x28d406(_0x5d7357,{'x':_0x2d6106[_0x5e6a52(0x1e1)],'y':_0x2d6106['top']})}]},'fill':_0x10f40d&&_0x433825?{'color':_0x433825,'fillType':_0x57b12f[_0x5e6a52(0x18c)][_0x5e6a52(0x1b6)]}:{'fillType':_0x57b12f[_0x5e6a52(0x18c)][_0x5e6a52(0x186)]},'stroke':{'color':_0x4be567(_0x5d7357,_0x1f150b),'width':_0x605fe(_0x5d7357,_0x1f150b),'opacity':_0x28ca5e(_0x5d7357,_0x1f150b),'lineStrokeType':_0x57b12f[_0x5e6a52(0x1dc)][_0x5e6a52(0x1b8)],'capType':_0x57b12f['ShapeLineCapEnum'][_0x5e6a52(0x1d1)],'lineJoinType':_0x57b12f[_0x5e6a52(0x16f)][_0x5e6a52(0x1d1)]}};}function _0x284485(_0x4f07dc,_0x297410){return{'x':_0x4f07dc['x']-_0x297410['x'],'y':_0x4f07dc['y']-_0x297410['y']};}function _0x28d406(_0x11e247,_0x322365){const _0x350f26=_0x251dbf;if(_0x11e247['kind']===_0x350f26(0x179)){let _0x5018e3=_0x11e247[_0x350f26(0x16b)];if(_0x5018e3[_0x350f26(0x1a5)]===0x0)return[];let _0xbc5c58=_0x284485(_0x5018e3[0x0],_0x322365),_0x2c11=[{'command':'M','points':[_0xbc5c58['x'],_0xbc5c58['y']]}];for(let _0x16d735=0x1;_0x16d735<_0x5018e3[_0x350f26(0x1a5)];_0x16d735++){let _0x4ffdbd=_0x5018e3[_0x16d735-0x1],_0x12d073=_0x5018e3[_0x16d735],_0x49d91e=_0x284485(_0x4ffdbd['out']??_0x4ffdbd,_0x322365),_0x2ce0ae=_0x284485(_0x12d073['in']??_0x12d073,_0x322365),_0x30782b=_0x284485(_0x12d073,_0x322365);_0x2c11['push']({'command':'C','points':[_0x49d91e['x'],_0x49d91e['y'],_0x2ce0ae['x'],_0x2ce0ae['y'],_0x30782b['x'],_0x30782b['y']]});}if(_0x11e247[_0x350f26(0x1a7)]&&_0x5018e3[_0x350f26(0x1a5)]>0x1){let _0x57d627=_0x5018e3[_0x5018e3[_0x350f26(0x1a5)]-0x1],_0x350d5e=_0x5018e3[0x0],_0x26e721=_0x284485(_0x57d627[_0x350f26(0x196)]??_0x57d627,_0x322365),_0x42c127=_0x284485(_0x350d5e['in']??_0x350d5e,_0x322365),_0x5bc70c=_0x284485(_0x350d5e,_0x322365);_0x2c11[_0x350f26(0x175)]({'command':'C','points':[_0x26e721['x'],_0x26e721['y'],_0x42c127['x'],_0x42c127['y'],_0x5bc70c['x'],_0x5bc70c['y']]}),_0x2c11[_0x350f26(0x175)]({'command':'z','points':[]});}return _0x2c11;}let _0x34133f=_0x11e247[_0x350f26(0x197)][_0x350f26(0x16d)](_0x3306a1=>_0x284485(_0x3306a1,_0x322365));if(_0x34133f[_0x350f26(0x1a5)]===0x0)return[];let _0x45918c=[{'command':'M','points':[_0x34133f[0x0]['x'],_0x34133f[0x0]['y']]}];for(let _0x30e35e=0x0;_0x30e35e<_0x34133f[_0x350f26(0x1a5)]-0x1;_0x30e35e++){let _0x18905e=_0x34133f[_0x30e35e],_0x48b233=_0x34133f[_0x30e35e+0x1],_0x292b7b=_0x34133f[_0x30e35e-0x1]??_0x18905e,_0x224e21=_0x34133f[_0x30e35e+0x2]??_0x48b233,_0x257ea9={'x':_0x18905e['x']+(_0x48b233['x']-_0x292b7b['x'])/0x6,'y':_0x18905e['y']+(_0x48b233['y']-_0x292b7b['y'])/0x6},_0x4d6cd9={'x':_0x48b233['x']-(_0x224e21['x']-_0x18905e['x'])/0x6,'y':_0x48b233['y']-(_0x224e21['y']-_0x18905e['y'])/0x6};_0x45918c[_0x350f26(0x175)]({'command':'C','points':[_0x257ea9['x'],_0x257ea9['y'],_0x4d6cd9['x'],_0x4d6cd9['y'],_0x48b233['x'],_0x48b233['y']]});}return _0x45918c;}function _0x1cb74c(_0x2a0d72){const _0x4611d8=_0x251dbf;let {model:_0x45930f,sourceModel:_0x2c1774=_0x45930f,style:_0x3466e3}=_0x2a0d72,_0x440f8d=_0x2a0d72[_0x4611d8(0x1b1)]??_0x45930f['kind'],_0x2795b1=_0x45656e(_0x45930f),_0x3040e7=_0x45930f[_0x4611d8(0x1ad)]===_0x4611d8(0x179)&&_0x440f8d!==_0x4611d8(0x179)?_0x45930f:void 0x0;return{'transform':{..._0x2795b1,'rotation':0x0},'shapeData':_0x224308(_0x45930f,_0x3466e3),'ink':{'version':0x1,'tool':_0x440f8d,'sourceModel':_0x2c1774,..._0x3040e7?{'editModel':_0x3040e7}:{},'normalizedBounds':_0x2795b1}};}var _0xa7b9ec='@univerjs-pro/ink',_0x531970='1.3.0';function _0x441d07(_0x4710e9){'@babel/helpers - typeof';const _0x867cbd=_0x251dbf;return _0x441d07=typeof Symbol==_0x867cbd(0x1ce)&&typeof Symbol[_0x867cbd(0x18a)]==_0x867cbd(0x1ba)?function(_0x10f5f7){return typeof _0x10f5f7;}:function(_0x5ae0ee){const _0x4e715c=_0x867cbd;return _0x5ae0ee&&typeof Symbol==_0x4e715c(0x1ce)&&_0x5ae0ee[_0x4e715c(0x1db)]===Symbol&&_0x5ae0ee!==Symbol[_0x4e715c(0x1d9)]?_0x4e715c(0x1ba):typeof _0x5ae0ee;},_0x441d07(_0x4710e9);}function _0x319e3e(_0x5df182,_0x26b682){const _0x142512=_0x251dbf;if(_0x441d07(_0x5df182)!=_0x142512(0x1cf)||!_0x5df182)return _0x5df182;var _0x450546=_0x5df182[Symbol[_0x142512(0x1d6)]];if(_0x450546!==void 0x0){var _0x27778d=_0x450546[_0x142512(0x1d3)](_0x5df182,_0x26b682||_0x142512(0x170));if(_0x441d07(_0x27778d)!=_0x142512(0x1cf))return _0x27778d;throw TypeError(_0x142512(0x1c3));}return(_0x26b682===_0x142512(0x16a)?String:Number)(_0x5df182);}function _0x2346a8(_0x5cf0d9){const _0x352b29=_0x251dbf;var _0x26263f=_0x319e3e(_0x5cf0d9,_0x352b29(0x16a));return _0x441d07(_0x26263f)=='symbol'?_0x26263f:_0x26263f+'';}function _0x19a4e1(_0x2b82d3,_0xe0bbda,_0x4cbc13){return(_0xe0bbda=_0x2346a8(_0xe0bbda))in _0x2b82d3?Object['defineProperty'](_0x2b82d3,_0xe0bbda,{'value':_0x4cbc13,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2b82d3[_0xe0bbda]=_0x4cbc13,_0x2b82d3;}let _0x9ddcc3=(0x0,_0x471302[_0x251dbf(0x1b4)])(_0x251dbf(0x1c1));var _0x216d3d=class{constructor(){const _0x149340=_0x251dbf;_0x19a4e1(this,_0x149340(0x1d7),[]);}[_0x251dbf(0x1bf)](_0x2a2d93){const _0x40e635=_0x251dbf;return this[_0x40e635(0x1d7)][_0x40e635(0x175)](_0x2a2d93),(0x0,_0x471302[_0x40e635(0x1b2)])(()=>{const _0x2ed75c=_0x40e635;let _0x66f583=this['_adapters'][_0x2ed75c(0x1b3)](_0x2a2d93);_0x66f583>=0x0&&this[_0x2ed75c(0x1d7)][_0x2ed75c(0x17e)](_0x66f583,0x1);});}[_0x251dbf(0x1df)](_0x4d772a){const _0x5adc69=_0x251dbf;for(let _0x28d832 of this[_0x5adc69(0x1d7)])if(_0x28d832[_0x5adc69(0x1df)](_0x4d772a))return!0x0;return!0x1;}async[_0x251dbf(0x1c2)](_0x40b035){const _0x1e3c60=_0x251dbf;for(let _0x295998 of this[_0x1e3c60(0x1d7)])if(_0x295998['createCustomShape']&&await _0x295998[_0x1e3c60(0x1c2)](_0x40b035))return!0x0;return!0x1;}};let _0x400485={'id':'ink.operation.start','type':_0x471302[_0x251dbf(0x19b)]['OPERATION'],'handler':(_0x26d668,_0xe322b1)=>_0xe322b1?_0x26d668[_0x251dbf(0x174)](_0x9ddcc3)[_0x251dbf(0x1df)](_0xe322b1):!0x1},_0x57673f={};function _0x26ca72(_0x394fe9,_0x164d5c){return function(_0x2a030d,_0x40ffa5){_0x164d5c(_0x2a030d,_0x40ffa5,_0x394fe9);};}function _0xed85e2(_0x570650,_0x140b7e,_0x30f47c,_0x1d9040){const _0x17255d=_0x251dbf;var _0x4bea7e=arguments[_0x17255d(0x1a5)],_0xea3574=_0x4bea7e<0x3?_0x140b7e:_0x1d9040===null?_0x1d9040=Object[_0x17255d(0x1cc)](_0x140b7e,_0x30f47c):_0x1d9040,_0x567753;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x17255d(0x1ce))_0xea3574=Reflect[_0x17255d(0x1e6)](_0x570650,_0x140b7e,_0x30f47c,_0x1d9040);else{for(var _0xc8baa2=_0x570650['length']-0x1;_0xc8baa2>=0x0;_0xc8baa2--)(_0x567753=_0x570650[_0xc8baa2])&&(_0xea3574=(_0x4bea7e<0x3?_0x567753(_0xea3574):_0x4bea7e>0x3?_0x567753(_0x140b7e,_0x30f47c,_0xea3574):_0x567753(_0x140b7e,_0x30f47c))||_0xea3574);}return _0x4bea7e>0x3&&_0xea3574&&Object[_0x17255d(0x199)](_0x140b7e,_0x30f47c,_0xea3574),_0xea3574;}let _0x33d253=class extends _0x471302[_0x251dbf(0x1b9)]{constructor(_0x58d178=_0x57673f,_0x396ea0,_0x46ffd4,_0x1de6f5){const _0x562a27=_0x251dbf;super(),this[_0x562a27(0x1a2)]=_0x58d178,this['_injector']=_0x396ea0,this[_0x562a27(0x1ec)]=_0x46ffd4,this['_configService']=_0x1de6f5;let {..._0x57e51e}=(0x0,_0x471302[_0x562a27(0x173)])({},_0x57673f,this[_0x562a27(0x1a2)]);this[_0x562a27(0x18d)][_0x562a27(0x1bc)](_0x562a27(0x184),_0x57e51e);}['onStarting'](){const _0x456c38=_0x251dbf;[[_0x9ddcc3,{'useClass':_0x216d3d}]][_0x456c38(0x178)](_0x5beb74=>this[_0x456c38(0x1e2)][_0x456c38(0x1b7)](_0x5beb74)),this['disposeWithMe'](this['_commandService'][_0x456c38(0x18e)](_0x400485));}};_0x19a4e1(_0x33d253,_0x251dbf(0x177),_0x251dbf(0x1ab)),_0x19a4e1(_0x33d253,_0x251dbf(0x1d0),_0xa7b9ec),_0x19a4e1(_0x33d253,'version',_0x531970),_0x19a4e1(_0x33d253,_0x251dbf(0x169),_0x471302[_0x251dbf(0x192)][_0x251dbf(0x1c5)]),_0x33d253=_0xed85e2([(0x0,_0x471302[_0x251dbf(0x19e)])(_0x2a97ad[_0x251dbf(0x1e5)]),_0x26ca72(0x1,(0x0,_0x471302[_0x251dbf(0x1bb)])(_0x471302[_0x251dbf(0x1a1)])),_0x26ca72(0x2,_0x471302[_0x251dbf(0x17a)]),_0x26ca72(0x3,_0x471302['IConfigService'])],_0x33d253),_0x496e66[_0x251dbf(0x1e3)]=_0x9ddcc3,Object['defineProperty'](_0x496e66,_0x251dbf(0x1c9),{'enumerable':!0x0,'get':function(){return _0x33d253;}}),_0x496e66[_0x251dbf(0x1ca)]=_0x1cb74c,_0x496e66[_0x251dbf(0x187)]=_0x451a72,_0x496e66[_0x251dbf(0x1a6)]=_0x231035,_0x496e66[_0x251dbf(0x1e4)]=_0x49eb4f,_0x496e66[_0x251dbf(0x183)]=_0x447a7c,_0x496e66[_0x251dbf(0x1e9)]=_0x2802c6,_0x496e66[_0x251dbf(0x1a4)]=_0x45656e,_0x496e66[_0x251dbf(0x1a8)]=_0x1305e0,_0x496e66['insertInkPenAnchorAt']=_0x1f207f,_0x496e66[_0x251dbf(0x1c8)]=_0x35d506,_0x496e66[_0x251dbf(0x172)]=_0x42a587,_0x496e66[_0x251dbf(0x185)]=_0x9a0e53;}));
1
+ function _0x34f5(){const _0x3b9e8a=['splice','findClosestInkPenSegment','@univerjs-pro/ink','segmentIndex','@univerjs-pro/license','object','Inject','decorate','hypot','min','filter','Round','corner','ShapeFillEnum','ink-centerline-','27KekdAS','map','registerAdapter','registerCommand','SolidFill','DependentOn','join','cycleInkPenAnchorPointType','UniverProEngineShape','toPrimitive','height','defineProperty','UniverProLicense','setConfig','startIndex','655vbcaYg','pluginName','constructor','distance','8bMVcvJ','__ink-preview-anchor__','kind','deleteInkPenAnchor','top','moveInkPenAnchorPoint','1.3.1','_commandService','onStarting','UniverInkPlugin','symbol','Injector','left','free','amd','buildInkCustomShapePayload','CommandType','anchor','disposeWithMe','ShapeLineJoinEnum','pen','createIdentifier','39800uzuPQt','ratio','ink.config','smooth','right','findClosestInkPenHandle','beginInkMode','iterator','norm','symmetric','OPERATION','UniverLicensePlugin','createId','_configService','out','SolidLine','convertBrushModelToPenModel','fillColor','283838KTiDLX','max','86487GyCwbl','anchors','find','tool','createCustomShape','get','406mKVGaU','_config','start','round','Rect','default','NoFill','UniverCore','opacity','Plugin','closed','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','forEach','sqrt','2061521DSyOKb','prototype','ShapeLineCapEnum','UniverInstanceType','color','points','merge','call','1263066eEdGBf','none','ICommandService','pointType','ShapeLineTypeEnum','slice','setInkPenAnchorPointType','1123910viFUiZ','abs','getInkModelBounds','ShapeTypeEnum','IConfigService','end','point','add','toStringTag','type','string','_injector','@univerjs/core','Module','_adapters','width','length','@univerjs-pro/engine-shape','5756EPmsfh','ink.host-adapter.service','push','packageName','insertInkPenAnchorAt','UniverProInk','getInkPenPreviewModel'];_0x34f5=function(){return _0x3b9e8a;};return _0x34f5();}function _0x2f85(_0x4b7d94,_0x4cf8ce){_0x4b7d94=_0x4b7d94-0x6d;const _0x34f5ef=_0x34f5();let _0x2f85f6=_0x34f5ef[_0x4b7d94];return _0x2f85f6;}(function(_0x59d466,_0x4dca55){const _0x3cf751=_0x2f85,_0x5a3012=_0x59d466();while(!![]){try{const _0x3810ed=parseInt(_0x3cf751(0xc2))/0x1+-parseInt(_0x3cf751(0x9a))/0x2*(parseInt(_0x3cf751(0xc4))/0x3)+parseInt(_0x3cf751(0x71))/0x4*(-parseInt(_0x3cf751(0x96))/0x5)+-parseInt(_0x3cf751(0xe0))/0x6+-parseInt(_0x3cf751(0xca))/0x7*(-parseInt(_0x3cf751(0xb0))/0x8)+parseInt(_0x3cf751(0x87))/0x9*(parseInt(_0x3cf751(0xe7))/0xa)+-parseInt(_0x3cf751(0xd8))/0xb;if(_0x3810ed===_0x4dca55)break;else _0x5a3012['push'](_0x5a3012['shift']());}catch(_0x3a1c2c){_0x5a3012['push'](_0x5a3012['shift']());}}}(_0x34f5,0x32bc6),function(_0x2dec78,_0x45ad47){const _0x146ae0=_0x2f85;typeof exports==_0x146ae0(0x7d)&&typeof module<'u'?_0x45ad47(exports,require('@univerjs-pro/engine-shape'),require('@univerjs-pro/license'),require('@univerjs/core')):typeof define=='function'&&define[_0x146ae0(0xa8)]?define(['exports',_0x146ae0(0x70),_0x146ae0(0x7c),_0x146ae0(0xf3)],_0x45ad47):(_0x2dec78=typeof globalThis<'u'?globalThis:_0x2dec78||self,_0x45ad47(_0x2dec78[_0x146ae0(0x76)]={},_0x2dec78[_0x146ae0(0x8f)],_0x2dec78[_0x146ae0(0x93)],_0x2dec78[_0x146ae0(0xd1)]));}(this,function(_0x28cc4d,_0x417208,_0x58412f,_0x53c816){const _0x48bb08=_0x2f85;Object[_0x48bb08(0x92)](_0x28cc4d,Symbol[_0x48bb08(0xef)],{'value':_0x48bb08(0xf4)});let _0x563e6f=0.0001;function _0x4cb8b4(_0x6815f9){return{'x':_0x6815f9['x'],'y':_0x6815f9['y']};}function _0xa862fa(_0x20cbe5){const _0x269827=_0x48bb08;return{..._0x20cbe5,'in':_0x20cbe5['in']?_0x4cb8b4(_0x20cbe5['in']):void 0x0,'out':_0x20cbe5[_0x269827(0xbe)]?_0x4cb8b4(_0x20cbe5[_0x269827(0xbe)]):void 0x0};}function _0x442cc1(_0x5dc4cc){const _0x50dc8a=_0x48bb08;return{'kind':_0x50dc8a(0xae),'closed':_0x5dc4cc[_0x50dc8a(0xd4)],'anchors':_0x5dc4cc[_0x50dc8a(0xc5)][_0x50dc8a(0x88)](_0xa862fa)};}function _0x712487(_0x3870d0,_0x1c7f8d,_0x326737){return{'x':_0x3870d0['x']+(_0x1c7f8d['x']-_0x3870d0['x'])*_0x326737,'y':_0x3870d0['y']+(_0x1c7f8d['y']-_0x3870d0['y'])*_0x326737};}function _0x548a2b(_0xa378b7,_0x555909){const _0xf9bf8f=_0x48bb08;return Math[_0xf9bf8f(0x80)](_0xa378b7['x']-_0x555909['x'],_0xa378b7['y']-_0x555909['y']);}function _0x57ad93(_0x16e9d7){const _0x49b692=_0x48bb08;let _0x66e99a=Math[_0x49b692(0x80)](_0x16e9d7['x'],_0x16e9d7['y']);return _0x66e99a<_0x563e6f?{'x':0x1,'y':0x0}:{'x':_0x16e9d7['x']/_0x66e99a,'y':_0x16e9d7['y']/_0x66e99a};}function _0x2d962f(_0xef01e,_0x549de7,_0x52d0cb=_0x548a2b(_0xef01e,_0x549de7)){let _0x43f201=_0x57ad93({'x':_0xef01e['x']-_0x549de7['x'],'y':_0xef01e['y']-_0x549de7['y']});return{'x':_0xef01e['x']+_0x43f201['x']*_0x52d0cb,'y':_0xef01e['y']+_0x43f201['y']*_0x52d0cb};}function _0x192955(_0x26cfd8,_0xfa8dfb){const _0x37401e=_0x48bb08;let {anchors:_0x1c68ca}=_0x26cfd8;return _0x1c68ca['length']<0x2||_0xfa8dfb<0x0?null:_0xfa8dfb<_0x1c68ca['length']-0x1?{'startIndex':_0xfa8dfb,'endIndex':_0xfa8dfb+0x1,'start':_0x1c68ca[_0xfa8dfb],'end':_0x1c68ca[_0xfa8dfb+0x1]}:_0x26cfd8[_0x37401e(0xd4)]&&_0xfa8dfb===_0x1c68ca[_0x37401e(0x6f)]-0x1?{'startIndex':_0x1c68ca[_0x37401e(0x6f)]-0x1,'endIndex':0x0,'start':_0x1c68ca[_0x1c68ca[_0x37401e(0x6f)]-0x1],'end':_0x1c68ca[0x0]}:null;}function _0x271d6b(_0x47d149,_0x1fab1f){const _0x3b7180=_0x48bb08;let _0x5c0e5e=_0x192955(_0x47d149,_0x1fab1f);return _0x5c0e5e?[_0x5c0e5e[_0x3b7180(0xcc)],_0x5c0e5e[_0x3b7180(0xcc)][_0x3b7180(0xbe)]??_0x5c0e5e[_0x3b7180(0xcc)],_0x5c0e5e[_0x3b7180(0xec)]['in']??_0x5c0e5e[_0x3b7180(0xec)],_0x5c0e5e[_0x3b7180(0xec)]]:null;}function _0x48bcb0(_0x174e1e,_0x28fc85){return _0x28fc85==='anchor'?_0x174e1e:_0x174e1e[_0x28fc85]??null;}function _0x408a3e(_0x96913a,_0x2ad6c3,_0x56787c){const _0x174a8a=_0x48bb08;return _0x56787c===_0x174a8a(0xab)||_0x96913a['closed']?!0x0:_0x56787c==='in'?_0x2ad6c3>0x0:_0x2ad6c3<_0x96913a['anchors']['length']-0x1;}function _0x348f66(_0x46a0e9,_0xaf8522){let [_0x57d395,_0x52fd32,_0x33d271,_0x36a4af]=_0x46a0e9,_0x453522=_0x712487(_0x57d395,_0x52fd32,_0xaf8522),_0x35d501=_0x712487(_0x52fd32,_0x33d271,_0xaf8522),_0xf30a37=_0x712487(_0x33d271,_0x36a4af,_0xaf8522);return _0x712487(_0x712487(_0x453522,_0x35d501,_0xaf8522),_0x712487(_0x35d501,_0xf30a37,_0xaf8522),_0xaf8522);}function _0x5edaee(_0x4b5b97,_0x612618){let [_0x4a3a79,_0xa28370,_0x3efd66,_0x16eb61]=_0x4b5b97,_0xb449b1=_0x712487(_0x4a3a79,_0xa28370,_0x612618),_0x38d68c=_0x712487(_0xa28370,_0x3efd66,_0x612618),_0x14c588=_0x712487(_0x3efd66,_0x16eb61,_0x612618),_0x473f1c=_0x712487(_0xb449b1,_0x38d68c,_0x612618),_0x319cd5=_0x712487(_0x38d68c,_0x14c588,_0x612618),_0x8acec4=_0x712487(_0x473f1c,_0x319cd5,_0x612618);return{'left':[_0x4a3a79,_0xb449b1,_0x473f1c,_0x8acec4],'right':[_0x8acec4,_0x319cd5,_0x14c588,_0x16eb61]};}function _0x45b250(_0x1760dd,_0x5a50a3,_0x5bab41){let _0xccb78b=_0x5bab41['x']-_0x5a50a3['x'],_0x3542e8=_0x5bab41['y']-_0x5a50a3['y'],_0x3f7d95=_0xccb78b*_0xccb78b+_0x3542e8*_0x3542e8,_0x44b0f8=_0x3f7d95<=_0x563e6f?0x0:Math['max'](0x0,Math['min'](0x1,((_0x1760dd['x']-_0x5a50a3['x'])*_0xccb78b+(_0x1760dd['y']-_0x5a50a3['y'])*_0x3542e8)/_0x3f7d95)),_0x194f22={'x':_0x5a50a3['x']+_0xccb78b*_0x44b0f8,'y':_0x5a50a3['y']+_0x3542e8*_0x44b0f8};return{'point':_0x194f22,'ratio':_0x44b0f8,'distance':_0x548a2b(_0x1760dd,_0x194f22)};}function _0x42f084(_0x456cc6,_0x1f827e,_0x407ab5){const _0x3bf52b=_0x48bb08;return _0x45b250(_0x456cc6,_0x1f827e,_0x407ab5)[_0x3bf52b(0x99)]**0x2;}function _0x4d1989(_0x4f65f2,_0x40ec28){const _0x214bb6=_0x48bb08;if(_0x4f65f2[_0x214bb6(0x6f)]<=0x2)return _0x4f65f2[_0x214bb6(0x88)](_0x4cb8b4);let _0x1e6f89=0x0,_0x44363a=0x0,_0x3ba7d8=_0x4f65f2[0x0],_0x48cb8e=_0x4f65f2[_0x4f65f2[_0x214bb6(0x6f)]-0x1],_0x9020f7=_0x40ec28*_0x40ec28;for(let _0x61bdb=0x1;_0x61bdb<_0x4f65f2[_0x214bb6(0x6f)]-0x1;_0x61bdb++){let _0x353aa6=_0x42f084(_0x4f65f2[_0x61bdb],_0x3ba7d8,_0x48cb8e);_0x353aa6>_0x1e6f89&&(_0x1e6f89=_0x353aa6,_0x44363a=_0x61bdb);}if(_0x1e6f89<=_0x9020f7)return[_0x4cb8b4(_0x3ba7d8),_0x4cb8b4(_0x48cb8e)];let _0x34a851=_0x4d1989(_0x4f65f2[_0x214bb6(0xe5)](0x0,_0x44363a+0x1),_0x40ec28),_0x4d8c7f=_0x4d1989(_0x4f65f2[_0x214bb6(0xe5)](_0x44363a),_0x40ec28);return[..._0x34a851[_0x214bb6(0xe5)](0x0,-0x1),..._0x4d8c7f];}function _0x331baf(_0xc25cf2,_0x44ee2d){let _0x44ad3b=_0xc25cf2[_0x44ee2d],_0x350d23=_0xc25cf2[_0x44ee2d+0x1],_0x212624=_0xc25cf2[_0x44ee2d-0x1]??_0x44ad3b;return{'x':_0x44ad3b['x']+(_0x350d23['x']-_0x212624['x'])/0x6,'y':_0x44ad3b['y']+(_0x350d23['y']-_0x212624['y'])/0x6};}function _0x8bf0c9(_0x29409e,_0xf57ad9){let _0x430658=_0x29409e[_0xf57ad9],_0x38a90e=_0x29409e[_0xf57ad9-0x1],_0xebf8a8=_0x29409e[_0xf57ad9+0x1]??_0x430658;return{'x':_0x430658['x']-(_0xebf8a8['x']-_0x38a90e['x'])/0x6,'y':_0x430658['y']-(_0xebf8a8['y']-_0x38a90e['y'])/0x6};}function _0x4bf2e9(_0xdd6ed3,_0x418997){const _0x2a5918=_0x48bb08;let _0x156d81=_0xdd6ed3[_0x2a5918(0xc5)][_0x418997],_0x452eab=_0xdd6ed3[_0x2a5918(0xc5)][_0x418997-0x1]??(_0xdd6ed3['closed']?_0xdd6ed3['anchors'][_0xdd6ed3['anchors'][_0x2a5918(0x6f)]-0x1]:null),_0xe6539f=_0xdd6ed3[_0x2a5918(0xc5)][_0x418997+0x1]??(_0xdd6ed3[_0x2a5918(0xd4)]?_0xdd6ed3[_0x2a5918(0xc5)][0x0]:null),_0x30e0b8=_0x452eab&&_0xe6539f?_0x57ad93({'x':_0xe6539f['x']-_0x452eab['x'],'y':_0xe6539f['y']-_0x452eab['y']}):_0xe6539f?_0x57ad93({'x':_0xe6539f['x']-_0x156d81['x'],'y':_0xe6539f['y']-_0x156d81['y']}):_0x452eab?_0x57ad93({'x':_0x156d81['x']-_0x452eab['x'],'y':_0x156d81['y']-_0x452eab['y']}):{'x':0x1,'y':0x0},_0x3c63d5=_0x452eab&&_0xe6539f?Math[_0x2a5918(0xc3)](0x32,_0x548a2b(_0x452eab,_0xe6539f)/0x4):0x32;return{'in':{'x':_0x156d81['x']-_0x30e0b8['x']*_0x3c63d5,'y':_0x156d81['y']-_0x30e0b8['y']*_0x3c63d5},'out':{'x':_0x156d81['x']+_0x30e0b8['x']*_0x3c63d5,'y':_0x156d81['y']+_0x30e0b8['y']*_0x3c63d5}};}function _0x1f47b3(_0x4d77c2,_0x3e5747){const _0x20d70d=_0x48bb08;let _0x3b79b6=_0x4d77c2[_0x3e5747],_0x15eea7=_0x3e5747==='in'?'out':'in',_0xd84346=_0x4d77c2[_0x15eea7];_0x3b79b6&&(_0x4d77c2[_0x20d70d(0xe3)]==='symmetric'?_0x4d77c2[_0x15eea7]=_0x2d962f(_0x4d77c2,_0x3b79b6):_0x4d77c2[_0x20d70d(0xe3)]===_0x20d70d(0xb3)&&(_0x4d77c2[_0x15eea7]=_0x2d962f(_0x4d77c2,_0x3b79b6,_0xd84346?_0x548a2b(_0x4d77c2,_0xd84346):_0x548a2b(_0x4d77c2,_0x3b79b6))));}function _0x2cddeb(_0x5d3a60,_0xc2b275){const _0x4c749d=_0x48bb08;let _0x32646c=_0x442cc1(_0x5d3a60);return!_0xc2b275||_0x32646c['closed']||_0x32646c[_0x4c749d(0xc5)]['length']===0x0||_0x32646c['anchors'][_0x4c749d(0x73)]({'id':_0x4c749d(0x9b),'x':_0xc2b275['x'],'y':_0xc2b275['y'],'pointType':_0x4c749d(0x84)}),_0x32646c;}function _0x38847e(_0x1fac52,_0x272cd2={}){const _0x2864c8=_0x48bb08;let _0x43cf28=Math[_0x2864c8(0xc3)](0x0,_0x272cd2['tolerance']??Math[_0x2864c8(0xc3)](0x4,_0x1fac52[_0x2864c8(0x6e)]*0.35)),_0x12a50c=_0x272cd2[_0x2864c8(0xbc)]??(_0x145ff7=>_0x2864c8(0x86)+_0x145ff7),_0x28ab88=_0x4d1989(_0x1fac52[_0x2864c8(0xdd)],_0x43cf28),_0x49f778=_0x28ab88['map']((_0x45cf4b,_0xe551b7)=>({'id':_0x12a50c(_0xe551b7),'x':_0x45cf4b['x'],'y':_0x45cf4b['y'],'pointType':_0x2864c8(0xa7)}));for(let _0x58531e=0x0;_0x58531e<_0x49f778[_0x2864c8(0x6f)]-0x1;_0x58531e++)_0x49f778[_0x58531e][_0x2864c8(0xbe)]=_0x331baf(_0x28ab88,_0x58531e),_0x49f778[_0x58531e+0x1]['in']=_0x8bf0c9(_0x28ab88,_0x58531e+0x1);return{'kind':_0x2864c8(0xae),'closed':!0x1,'anchors':_0x49f778};}function _0x108724(_0x16b3f7,_0x45fa62,_0x3081d5){const _0x2dd7c1=_0x48bb08;let _0x41cd1d=null,_0x35e3c6=[_0x2dd7c1(0xab),'in',_0x2dd7c1(0xbe)];return _0x16b3f7['anchors'][_0x2dd7c1(0xd6)]((_0x2c7a7d,_0x10557d)=>{const _0xae5de5=_0x2dd7c1;_0x35e3c6[_0xae5de5(0xd6)](_0x5ea4a3=>{const _0x5d003a=_0xae5de5;if(!_0x408a3e(_0x16b3f7,_0x10557d,_0x5ea4a3))return;let _0x5232c3=_0x48bcb0(_0x2c7a7d,_0x5ea4a3);if(!_0x5232c3)return;let _0x342028=_0x548a2b(_0x45fa62,_0x5232c3);_0x342028>_0x3081d5||_0x41cd1d&&_0x342028>=_0x41cd1d[_0x5d003a(0x99)]||(_0x41cd1d={'handle':{'kind':_0x5ea4a3,'anchorId':_0x2c7a7d['id']},'point':_0x4cb8b4(_0x5232c3),'distance':_0x342028});});}),_0x41cd1d;}function _0x510d6a(_0x1a9bff,_0x2190c3,_0x261f8e){const _0x119b9d=_0x48bb08;let _0x5d3332=null,_0x3a9019=_0x1a9bff[_0x119b9d(0xd4)]?_0x1a9bff['anchors'][_0x119b9d(0x6f)]:Math[_0x119b9d(0xc3)](0x0,_0x1a9bff['anchors']['length']-0x1);for(let _0x25f814=0x0;_0x25f814<_0x3a9019;_0x25f814++){let _0xfa2d1a=_0x271d6b(_0x1a9bff,_0x25f814);if(!_0xfa2d1a)continue;let _0x294e93=_0x348f66(_0xfa2d1a,0x0);for(let _0xfaea82=0x1;_0xfaea82<=0x20;_0xfaea82++){let _0x21d125=_0x348f66(_0xfa2d1a,_0xfaea82/0x20),_0x2e85fa=_0x45b250(_0x2190c3,_0x294e93,_0x21d125),_0x39252f=(_0xfaea82-0x1+_0x2e85fa[_0x119b9d(0xb1)])/0x20;(!_0x5d3332||_0x2e85fa[_0x119b9d(0x99)]<_0x5d3332[_0x119b9d(0x99)])&&(_0x5d3332={'segmentIndex':_0x25f814,'t':_0x39252f,'point':_0x2e85fa[_0x119b9d(0xed)],'distance':_0x2e85fa['distance']}),_0x294e93=_0x21d125;}}return _0x5d3332&&_0x5d3332[_0x119b9d(0x99)]<=_0x261f8e?_0x5d3332:null;}function _0x3aa36b(_0x8289b7,_0x5e9223,_0x1791bb){const _0x4d48e0=_0x48bb08;let _0x1dd5c1=_0x442cc1(_0x8289b7),_0x50a5a3=_0x192955(_0x1dd5c1,_0x5e9223[_0x4d48e0(0x7b)]),_0x57aedc=_0x271d6b(_0x1dd5c1,_0x5e9223['segmentIndex']);if(!_0x50a5a3||!_0x57aedc)return _0x1dd5c1;let _0x3d5445=_0x5edaee(_0x57aedc,Math['max'](0x0,Math[_0x4d48e0(0x81)](0x1,_0x5e9223['t']))),_0x98c24d={'id':_0x1791bb(),'x':_0x3d5445[_0x4d48e0(0xa6)][0x3]['x'],'y':_0x3d5445[_0x4d48e0(0xa6)][0x3]['y'],'in':_0x4cb8b4(_0x3d5445[_0x4d48e0(0xa6)][0x2]),'out':_0x4cb8b4(_0x3d5445[_0x4d48e0(0xb4)][0x1]),'pointType':_0x4d48e0(0xa7)};return _0x1dd5c1[_0x4d48e0(0xc5)][_0x50a5a3[_0x4d48e0(0x95)]][_0x4d48e0(0xbe)]=_0x4cb8b4(_0x3d5445['left'][0x1]),_0x1dd5c1[_0x4d48e0(0xc5)][_0x50a5a3['endIndex']]['in']=_0x4cb8b4(_0x3d5445[_0x4d48e0(0xb4)][0x2]),_0x1dd5c1['anchors'][_0x4d48e0(0x78)](_0x50a5a3['startIndex']+0x1,0x0,_0x98c24d),_0x1dd5c1;}function _0x1b2c86(_0x2f739f,_0x4b75bf){const _0x20b3f4=_0x48bb08;let _0x734eb8=_0x442cc1(_0x2f739f);return _0x734eb8[_0x20b3f4(0xc5)]=_0x734eb8[_0x20b3f4(0xc5)][_0x20b3f4(0x82)](_0x57ff3d=>_0x57ff3d['id']!==_0x4b75bf),_0x734eb8[_0x20b3f4(0xd4)]&&_0x734eb8[_0x20b3f4(0xc5)][_0x20b3f4(0x6f)]<0x3&&(_0x734eb8[_0x20b3f4(0xd4)]=!0x1),_0x734eb8;}function _0x47ef32(_0x4880c1,_0x2e4277,_0x80ed0a){const _0x3a0b12=_0x48bb08;let _0x1b61d1=_0x442cc1(_0x4880c1),_0x338322=_0x1b61d1[_0x3a0b12(0xc5)]['findIndex'](_0x3cd4d2=>_0x3cd4d2['id']===_0x2e4277),_0x41a7a2=_0x1b61d1[_0x3a0b12(0xc5)][_0x338322];if(!_0x41a7a2)return _0x1b61d1;if(_0x41a7a2[_0x3a0b12(0xe3)]=_0x80ed0a,_0x80ed0a===_0x3a0b12(0x84))return delete _0x41a7a2['in'],delete _0x41a7a2[_0x3a0b12(0xbe)],_0x1b61d1;let _0x3a19a9=_0x4bf2e9(_0x1b61d1,_0x338322);if(_0x41a7a2['in']=_0x41a7a2['in']?_0x4cb8b4(_0x41a7a2['in']):_0x3a19a9['in'],_0x41a7a2[_0x3a0b12(0xbe)]=_0x41a7a2[_0x3a0b12(0xbe)]?_0x4cb8b4(_0x41a7a2['out']):_0x3a19a9[_0x3a0b12(0xbe)],_0x80ed0a==='symmetric'){let _0x456efd=Math['max'](_0x548a2b(_0x41a7a2,_0x41a7a2['in']),_0x548a2b(_0x41a7a2,_0x41a7a2[_0x3a0b12(0xbe)]),0x32),_0x5a3e58=_0x57ad93({'x':_0x41a7a2[_0x3a0b12(0xbe)]['x']-_0x41a7a2['x'],'y':_0x41a7a2[_0x3a0b12(0xbe)]['y']-_0x41a7a2['y']});_0x41a7a2[_0x3a0b12(0xbe)]={'x':_0x41a7a2['x']+_0x5a3e58['x']*_0x456efd,'y':_0x41a7a2['y']+_0x5a3e58['y']*_0x456efd},_0x41a7a2['in']={'x':_0x41a7a2['x']-_0x5a3e58['x']*_0x456efd,'y':_0x41a7a2['y']-_0x5a3e58['y']*_0x456efd};}else _0x80ed0a==='smooth'&&_0x1f47b3(_0x41a7a2,_0x3a0b12(0xbe));return _0x1b61d1;}function _0x4aa47e(_0x2366cb,_0x3cb2df){const _0x3f8231=_0x48bb08;let _0x5967ff=_0x2366cb[_0x3f8231(0xc5)][_0x3f8231(0xc6)](_0x6f4e8a=>_0x6f4e8a['id']===_0x3cb2df),_0x1118b1=(_0x5967ff==null?void 0x0:_0x5967ff[_0x3f8231(0xe3)])??_0x3f8231(0x84);return _0x47ef32(_0x2366cb,_0x3cb2df,_0x1118b1==='corner'?'smooth':_0x1118b1===_0x3f8231(0xb3)?_0x3f8231(0xb9):_0x1118b1==='symmetric'?_0x3f8231(0xa7):_0x3f8231(0x84));}function _0xf67bc2(_0x3637cd,_0x3dfb27,_0x3168de){const _0x34024b=_0x48bb08;let _0x409299=_0x442cc1(_0x3637cd),_0x55a3af=_0x409299[_0x34024b(0xc5)][_0x34024b(0xc6)](_0x1f0200=>_0x1f0200['id']===_0x3dfb27['anchorId']);if(!_0x55a3af)return _0x409299;if(_0x3dfb27[_0x34024b(0x9c)]===_0x34024b(0xab)){let _0x36185f={'x':_0x3168de['x']-_0x55a3af['x'],'y':_0x3168de['y']-_0x55a3af['y']};return _0x55a3af['x']=_0x3168de['x'],_0x55a3af['y']=_0x3168de['y'],_0x55a3af['in']&&={'x':_0x55a3af['in']['x']+_0x36185f['x'],'y':_0x55a3af['in']['y']+_0x36185f['y']},_0x55a3af[_0x34024b(0xbe)]&&={'x':_0x55a3af['out']['x']+_0x36185f['x'],'y':_0x55a3af[_0x34024b(0xbe)]['y']+_0x36185f['y']},_0x409299;}return _0x55a3af[_0x3dfb27['kind']]=_0x4cb8b4(_0x3168de),_0x55a3af[_0x34024b(0xe3)]===_0x34024b(0x84)&&(_0x55a3af['pointType']=_0x34024b(0xa7)),_0x1f47b3(_0x55a3af,_0x3dfb27[_0x34024b(0x9c)]),_0x409299;}let _0x27a57f=1e-9;function _0xa971b5(_0x34ef63){const _0x3b65bf=_0x48bb08;let _0x441223=Math[_0x3b65bf(0xcd)](_0x34ef63*0x2710)/0x2710;return Object['is'](_0x441223,-0x0)?'0':String(_0x441223);}function _0x40c378(_0x305707){return _0xa971b5(_0x305707['x'])+'\x20'+_0xa971b5(_0x305707['y']);}function _0x227f48(_0x887b5f,_0xfa9846){return{'x':_0x887b5f['x']-_0xfa9846['x'],'y':_0x887b5f['y']-_0xfa9846['y']};}function _0x1e04a6(_0x3e4a5e,_0x3554b0,_0x29729c,_0x3c3bc0,_0x490f4f){let _0x115208=0x1-_0x490f4f;return{'x':_0x115208*_0x115208*_0x115208*_0x3e4a5e['x']+0x3*_0x115208*_0x115208*_0x490f4f*_0x3554b0['x']+0x3*_0x115208*_0x490f4f*_0x490f4f*_0x29729c['x']+_0x490f4f*_0x490f4f*_0x490f4f*_0x3c3bc0['x'],'y':_0x115208*_0x115208*_0x115208*_0x3e4a5e['y']+0x3*_0x115208*_0x115208*_0x490f4f*_0x3554b0['y']+0x3*_0x115208*_0x490f4f*_0x490f4f*_0x29729c['y']+_0x490f4f*_0x490f4f*_0x490f4f*_0x3c3bc0['y']};}function _0x5811ee(_0x13fcb3,_0xb76fd0,_0x35482f,_0x585a5a){const _0xeb3cbe=_0x48bb08;let _0x686a0e=-_0x13fcb3+0x3*_0xb76fd0-0x3*_0x35482f+_0x585a5a,_0x15248e=0x3*_0x13fcb3-0x6*_0xb76fd0+0x3*_0x35482f,_0x43ca7f=-0x3*_0x13fcb3+0x3*_0xb76fd0,_0x73ee69=[];if(Math[_0xeb3cbe(0xe8)](_0x686a0e)<_0x27a57f){if(Math[_0xeb3cbe(0xe8)](_0x15248e)<_0x27a57f)return _0x73ee69;let _0x27c4d8=-_0x43ca7f/(0x2*_0x15248e);return _0x27c4d8>0x0&&_0x27c4d8<0x1&&_0x73ee69[_0xeb3cbe(0x73)](_0x27c4d8),_0x73ee69;}let _0x340f1f=_0x15248e*_0x15248e-0x3*_0x686a0e*_0x43ca7f;if(_0x340f1f<0x0)return _0x73ee69;let _0x331402=Math[_0xeb3cbe(0xd7)](Math[_0xeb3cbe(0xc3)](0x0,_0x340f1f)),_0x32656b=(-_0x15248e+_0x331402)/(0x3*_0x686a0e),_0x35b322=(-_0x15248e-_0x331402)/(0x3*_0x686a0e);return _0x32656b>0x0&&_0x32656b<0x1&&_0x73ee69[_0xeb3cbe(0x73)](_0x32656b),_0x35b322>0x0&&_0x35b322<0x1&&Math[_0xeb3cbe(0xe8)](_0x35b322-_0x32656b)>_0x27a57f&&_0x73ee69[_0xeb3cbe(0x73)](_0x35b322),_0x73ee69;}function _0x30f082(_0x44a5f0,_0x38b18d,_0x5edc56,_0x1cc2a0,_0x3340e7){const _0xd9d2e4=_0x48bb08;_0x44a5f0[_0xd9d2e4(0x73)](_0x38b18d,_0x3340e7),new Set([..._0x5811ee(_0x38b18d['x'],_0x5edc56['x'],_0x1cc2a0['x'],_0x3340e7['x']),..._0x5811ee(_0x38b18d['y'],_0x5edc56['y'],_0x1cc2a0['y'],_0x3340e7['y'])])['forEach'](_0xbc1225=>{const _0x98cd5b=_0xd9d2e4;_0x44a5f0[_0x98cd5b(0x73)](_0x1e04a6(_0x38b18d,_0x5edc56,_0x1cc2a0,_0x3340e7,_0xbc1225));});}function _0x1c41cb(_0x115a99){const _0x136dc6=_0x48bb08;let _0xb0f093=_0x115a99[_0x136dc6(0xc5)];if(_0xb0f093['length']<=0x1)return _0xb0f093;let _0x41e053=[];for(let _0x239f0c=0x1;_0x239f0c<_0xb0f093[_0x136dc6(0x6f)];_0x239f0c++){let _0x19a101=_0xb0f093[_0x239f0c-0x1],_0x63be6d=_0xb0f093[_0x239f0c];_0x30f082(_0x41e053,_0x19a101,_0x19a101['out']??_0x19a101,_0x63be6d['in']??_0x63be6d,_0x63be6d);}if(_0x115a99['closed']&&_0xb0f093['length']>0x1){let _0x2d158e=_0xb0f093[_0xb0f093[_0x136dc6(0x6f)]-0x1],_0x3f94d0=_0xb0f093[0x0];_0x30f082(_0x41e053,_0x2d158e,_0x2d158e[_0x136dc6(0xbe)]??_0x2d158e,_0x3f94d0['in']??_0x3f94d0,_0x3f94d0);}return _0x41e053;}function _0x402ed6(_0x21a71e){const _0x44b4cb=_0x48bb08;let _0x5ae4ae=_0x21a71e[_0x44b4cb(0xdd)];if(_0x5ae4ae['length']<=0x1)return _0x5ae4ae;let _0x3227ff=[];for(let _0x142da6=0x0;_0x142da6<_0x5ae4ae[_0x44b4cb(0x6f)]-0x1;_0x142da6++){let _0x1026be=_0x5ae4ae[_0x142da6],_0x49f3b6=_0x5ae4ae[_0x142da6+0x1],_0x1492c7=_0x5ae4ae[_0x142da6-0x1]??_0x1026be,_0x7739b5=_0x5ae4ae[_0x142da6+0x2]??_0x49f3b6;_0x30f082(_0x3227ff,_0x1026be,{'x':_0x1026be['x']+(_0x49f3b6['x']-_0x1492c7['x'])/0x6,'y':_0x1026be['y']+(_0x49f3b6['y']-_0x1492c7['y'])/0x6},{'x':_0x49f3b6['x']-(_0x7739b5['x']-_0x1026be['x'])/0x6,'y':_0x49f3b6['y']-(_0x7739b5['y']-_0x1026be['y'])/0x6},_0x49f3b6);}return _0x3227ff;}function _0x578ccb(_0x6df557){const _0x1efc49=_0x48bb08;return _0x6df557[_0x1efc49(0x9c)]===_0x1efc49(0xae)?_0x1c41cb(_0x6df557):_0x402ed6(_0x6df557);}function _0x19d266(_0x289f20){const _0x595b14=_0x48bb08;let _0x12a6b4=Math[_0x595b14(0xcd)](_0x289f20*0x2710)/0x2710;return Object['is'](_0x12a6b4,-0x0)?0x0:_0x12a6b4;}function _0x13e994(_0x39d64a){const _0x2390da=_0x48bb08;let _0x244cc4=_0x578ccb(_0x39d64a);if(_0x244cc4[_0x2390da(0x6f)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x43fa60=Math[_0x2390da(0x81)](..._0x244cc4['map'](_0xef7cbd=>_0xef7cbd['x'])),_0x96df02=Math[_0x2390da(0x81)](..._0x244cc4[_0x2390da(0x88)](_0x3a9cab=>_0x3a9cab['y'])),_0x410bb9=Math['max'](..._0x244cc4[_0x2390da(0x88)](_0x4fa704=>_0x4fa704['x'])),_0x1e9e5c=Math[_0x2390da(0xc3)](..._0x244cc4['map'](_0x58dea0=>_0x58dea0['y']));return{'left':_0x19d266(_0x43fa60),'top':_0x19d266(_0x96df02),'width':_0x19d266(Math[_0x2390da(0xc3)](0x1,_0x410bb9-_0x43fa60)),'height':_0x19d266(Math[_0x2390da(0xc3)](0x1,_0x1e9e5c-_0x96df02))};}function _0x71c63f(_0x1a015c,_0x14bbdf){const _0x20fe2e=_0x48bb08;let _0x30690e=_0x1a015c['anchors'];if(_0x30690e[_0x20fe2e(0x6f)]===0x0)return'';let _0x4135b6=['M\x20'+_0x40c378(_0x227f48(_0x30690e[0x0],_0x14bbdf))];for(let _0x50fe68=0x1;_0x50fe68<_0x30690e['length'];_0x50fe68++){let _0x1941cb=_0x30690e[_0x50fe68-0x1],_0x11aabe=_0x30690e[_0x50fe68],_0x2396da=_0x1941cb['out']??_0x1941cb,_0x2e70b4=_0x11aabe['in']??_0x11aabe;_0x4135b6['push']('C\x20'+_0x40c378(_0x227f48(_0x2396da,_0x14bbdf))+'\x20'+_0x40c378(_0x227f48(_0x2e70b4,_0x14bbdf))+'\x20'+_0x40c378(_0x227f48(_0x11aabe,_0x14bbdf)));}if(_0x1a015c[_0x20fe2e(0xd4)]&&_0x30690e[_0x20fe2e(0x6f)]>0x1){let _0x5e0fcf=_0x30690e[_0x30690e['length']-0x1],_0x367cf0=_0x30690e[0x0],_0x7c212c=_0x5e0fcf[_0x20fe2e(0xbe)]??_0x5e0fcf,_0x3f1bec=_0x367cf0['in']??_0x367cf0;_0x4135b6[_0x20fe2e(0x73)]('C\x20'+_0x40c378(_0x227f48(_0x7c212c,_0x14bbdf))+'\x20'+_0x40c378(_0x227f48(_0x3f1bec,_0x14bbdf))+'\x20'+_0x40c378(_0x227f48(_0x367cf0,_0x14bbdf))),_0x4135b6[_0x20fe2e(0x73)]('Z');}return _0x4135b6[_0x20fe2e(0x8d)]('\x20');}function _0x3bb2cb(_0x64fa7d,_0x15710f){const _0x2488df=_0x48bb08;let _0x3bac7f=_0x64fa7d['points'][_0x2488df(0x88)](_0x574c04=>_0x227f48(_0x574c04,_0x15710f));if(_0x3bac7f[_0x2488df(0x6f)]===0x0)return'';if(_0x3bac7f[_0x2488df(0x6f)]===0x1)return'M\x20'+_0x40c378(_0x3bac7f[0x0]);let _0x3525eb=['M\x20'+_0x40c378(_0x3bac7f[0x0])];for(let _0x6682fd=0x0;_0x6682fd<_0x3bac7f['length']-0x1;_0x6682fd++){let _0x8d9cda=_0x3bac7f[_0x6682fd],_0x3e22e0=_0x3bac7f[_0x6682fd+0x1],_0x572d42=_0x3bac7f[_0x6682fd-0x1]??_0x8d9cda,_0x15a5fb=_0x3bac7f[_0x6682fd+0x2]??_0x3e22e0,_0x56f317={'x':_0x8d9cda['x']+(_0x3e22e0['x']-_0x572d42['x'])/0x6,'y':_0x8d9cda['y']+(_0x3e22e0['y']-_0x572d42['y'])/0x6},_0x52fb11={'x':_0x3e22e0['x']-(_0x15a5fb['x']-_0x8d9cda['x'])/0x6,'y':_0x3e22e0['y']-(_0x15a5fb['y']-_0x8d9cda['y'])/0x6};_0x3525eb[_0x2488df(0x73)]('C\x20'+_0x40c378(_0x56f317)+'\x20'+_0x40c378(_0x52fb11)+'\x20'+_0x40c378(_0x3e22e0));}return _0x3525eb[_0x2488df(0x8d)]('\x20');}function _0x3239c1(_0x1949b9,_0x35cb88){const _0x555021=_0x48bb08;return _0x1949b9[_0x555021(0x9c)]===_0x555021(0xae)?_0x71c63f(_0x1949b9,_0x35cb88):_0x3bb2cb(_0x1949b9,_0x35cb88);}function _0x489ee9(_0x4dcd38,_0x43d724){const _0x2d1569=_0x48bb08;return _0x43d724!=null&&_0x43d724['color']?_0x43d724[_0x2d1569(0xdc)]:_0x4dcd38[_0x2d1569(0x9c)]===_0x2d1569(0xae)?'#f54a45':_0x4dcd38[_0x2d1569(0xdc)];}function _0x191559(_0x40940e,_0x6cd39){const _0x208dd9=_0x48bb08;return(_0x6cd39==null?void 0x0:_0x6cd39[_0x208dd9(0x6e)])===void 0x0?_0x40940e[_0x208dd9(0x9c)]===_0x208dd9(0xae)?0x2:_0x40940e[_0x208dd9(0x6e)]:_0x6cd39[_0x208dd9(0x6e)];}function _0x182a92(_0x5d391b,_0x21af26){const _0x54f30b=_0x48bb08;return(_0x21af26==null?void 0x0:_0x21af26[_0x54f30b(0xd2)])===void 0x0?_0x5d391b['kind']==='pen'?void 0x0:_0x5d391b[_0x54f30b(0xd2)]:_0x21af26[_0x54f30b(0xd2)];}function _0x1a3307(_0x45c6e0,_0x457f44){const _0x2ec512=_0x48bb08;let _0xf9d92a=_0x13e994(_0x45c6e0),_0x44e437=_0x3239c1(_0x45c6e0,{'x':_0xf9d92a['left'],'y':_0xf9d92a[_0x2ec512(0x9e)]}),_0x8655d9=_0x45c6e0[_0x2ec512(0x9c)]===_0x2ec512(0xae)&&_0x45c6e0[_0x2ec512(0xd4)],_0x29e155=_0x457f44==null?void 0x0:_0x457f44[_0x2ec512(0xc1)];return{'shapeType':_0x417208[_0x2ec512(0xea)][_0x2ec512(0xce)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0xf9d92a['width'],'h':_0xf9d92a[_0x2ec512(0x91)],'fill':_0x8655d9?_0x2ec512(0xb8):_0x2ec512(0xe1),'stroke':!0x0,'data':_0x44e437,'dataArray':_0x47b346(_0x45c6e0,{'x':_0xf9d92a[_0x2ec512(0xa6)],'y':_0xf9d92a['top']})}]},'fill':_0x8655d9&&_0x29e155?{'color':_0x29e155,'fillType':_0x417208[_0x2ec512(0x85)][_0x2ec512(0x8b)]}:{'fillType':_0x417208['ShapeFillEnum'][_0x2ec512(0xd0)]},'stroke':{'color':_0x489ee9(_0x45c6e0,_0x457f44),'width':_0x191559(_0x45c6e0,_0x457f44),'opacity':_0x182a92(_0x45c6e0,_0x457f44),'lineStrokeType':_0x417208[_0x2ec512(0xe4)][_0x2ec512(0xbf)],'capType':_0x417208[_0x2ec512(0xda)][_0x2ec512(0x83)],'lineJoinType':_0x417208[_0x2ec512(0xad)][_0x2ec512(0x83)]}};}function _0x2af21c(_0x3948a4,_0x5880a7){return{'x':_0x3948a4['x']-_0x5880a7['x'],'y':_0x3948a4['y']-_0x5880a7['y']};}function _0x47b346(_0x2cae93,_0x5047c2){const _0x511d1c=_0x48bb08;if(_0x2cae93[_0x511d1c(0x9c)]===_0x511d1c(0xae)){let _0x2b6f69=_0x2cae93[_0x511d1c(0xc5)];if(_0x2b6f69[_0x511d1c(0x6f)]===0x0)return[];let _0x4cdd5c=_0x2af21c(_0x2b6f69[0x0],_0x5047c2),_0x2ef91e=[{'command':'M','points':[_0x4cdd5c['x'],_0x4cdd5c['y']]}];for(let _0x1eae5d=0x1;_0x1eae5d<_0x2b6f69[_0x511d1c(0x6f)];_0x1eae5d++){let _0x53312f=_0x2b6f69[_0x1eae5d-0x1],_0x212a23=_0x2b6f69[_0x1eae5d],_0x5c2c6c=_0x2af21c(_0x53312f['out']??_0x53312f,_0x5047c2),_0x5c5039=_0x2af21c(_0x212a23['in']??_0x212a23,_0x5047c2),_0x2e7cfb=_0x2af21c(_0x212a23,_0x5047c2);_0x2ef91e[_0x511d1c(0x73)]({'command':'C','points':[_0x5c2c6c['x'],_0x5c2c6c['y'],_0x5c5039['x'],_0x5c5039['y'],_0x2e7cfb['x'],_0x2e7cfb['y']]});}if(_0x2cae93[_0x511d1c(0xd4)]&&_0x2b6f69['length']>0x1){let _0x251c92=_0x2b6f69[_0x2b6f69[_0x511d1c(0x6f)]-0x1],_0x2ea7c9=_0x2b6f69[0x0],_0x42f056=_0x2af21c(_0x251c92[_0x511d1c(0xbe)]??_0x251c92,_0x5047c2),_0x1e73d1=_0x2af21c(_0x2ea7c9['in']??_0x2ea7c9,_0x5047c2),_0xb6e952=_0x2af21c(_0x2ea7c9,_0x5047c2);_0x2ef91e[_0x511d1c(0x73)]({'command':'C','points':[_0x42f056['x'],_0x42f056['y'],_0x1e73d1['x'],_0x1e73d1['y'],_0xb6e952['x'],_0xb6e952['y']]}),_0x2ef91e[_0x511d1c(0x73)]({'command':'z','points':[]});}return _0x2ef91e;}let _0xc722bf=_0x2cae93['points'][_0x511d1c(0x88)](_0x230b6f=>_0x2af21c(_0x230b6f,_0x5047c2));if(_0xc722bf[_0x511d1c(0x6f)]===0x0)return[];let _0x3632b2=[{'command':'M','points':[_0xc722bf[0x0]['x'],_0xc722bf[0x0]['y']]}];for(let _0x257d68=0x0;_0x257d68<_0xc722bf[_0x511d1c(0x6f)]-0x1;_0x257d68++){let _0x1db89e=_0xc722bf[_0x257d68],_0x423c3a=_0xc722bf[_0x257d68+0x1],_0x3b11ec=_0xc722bf[_0x257d68-0x1]??_0x1db89e,_0x421f6c=_0xc722bf[_0x257d68+0x2]??_0x423c3a,_0x4830bf={'x':_0x1db89e['x']+(_0x423c3a['x']-_0x3b11ec['x'])/0x6,'y':_0x1db89e['y']+(_0x423c3a['y']-_0x3b11ec['y'])/0x6},_0x15a675={'x':_0x423c3a['x']-(_0x421f6c['x']-_0x1db89e['x'])/0x6,'y':_0x423c3a['y']-(_0x421f6c['y']-_0x1db89e['y'])/0x6};_0x3632b2[_0x511d1c(0x73)]({'command':'C','points':[_0x4830bf['x'],_0x4830bf['y'],_0x15a675['x'],_0x15a675['y'],_0x423c3a['x'],_0x423c3a['y']]});}return _0x3632b2;}function _0x15404f(_0x112101){const _0x84f834=_0x48bb08;let {model:_0x35813d,sourceModel:_0x37b52d=_0x35813d,style:_0x43d77f}=_0x112101,_0x59dd2f=_0x112101[_0x84f834(0xc7)]??_0x35813d[_0x84f834(0x9c)],_0x271858=_0x13e994(_0x35813d),_0x3266f4=_0x35813d[_0x84f834(0x9c)]==='pen'&&_0x59dd2f!==_0x84f834(0xae)?_0x35813d:void 0x0;return{'transform':{..._0x271858,'rotation':0x0},'shapeData':_0x1a3307(_0x35813d,_0x43d77f),'ink':{'version':0x1,'tool':_0x59dd2f,'sourceModel':_0x37b52d,..._0x3266f4?{'editModel':_0x3266f4}:{},'normalizedBounds':_0x271858}};}var _0x119e4b=_0x48bb08(0x7a),_0x5ba77d=_0x48bb08(0xa0);function _0x285127(_0x1ae50c){'@babel/helpers - typeof';const _0x40c24c=_0x48bb08;return _0x285127=typeof Symbol=='function'&&typeof Symbol[_0x40c24c(0xb7)]==_0x40c24c(0xa4)?function(_0x2ebbef){return typeof _0x2ebbef;}:function(_0x298142){const _0x4ab3cb=_0x40c24c;return _0x298142&&typeof Symbol=='function'&&_0x298142[_0x4ab3cb(0x98)]===Symbol&&_0x298142!==Symbol[_0x4ab3cb(0xd9)]?_0x4ab3cb(0xa4):typeof _0x298142;},_0x285127(_0x1ae50c);}function _0x3e50b0(_0x121636,_0x2d9a6b){const _0x15bdec=_0x48bb08;if(_0x285127(_0x121636)!=_0x15bdec(0x7d)||!_0x121636)return _0x121636;var _0x5147c6=_0x121636[Symbol[_0x15bdec(0x90)]];if(_0x5147c6!==void 0x0){var _0x6bb9ef=_0x5147c6[_0x15bdec(0xdf)](_0x121636,_0x2d9a6b||_0x15bdec(0xcf));if(_0x285127(_0x6bb9ef)!=_0x15bdec(0x7d))return _0x6bb9ef;throw TypeError(_0x15bdec(0xd5));}return(_0x2d9a6b===_0x15bdec(0xf1)?String:Number)(_0x121636);}function _0x477abd(_0x4cac90){const _0x1336f3=_0x48bb08;var _0x5283e8=_0x3e50b0(_0x4cac90,_0x1336f3(0xf1));return _0x285127(_0x5283e8)==_0x1336f3(0xa4)?_0x5283e8:_0x5283e8+'';}function _0x406d1a(_0x2f3d21,_0x39544e,_0x3fb0f4){const _0x32e7e2=_0x48bb08;return(_0x39544e=_0x477abd(_0x39544e))in _0x2f3d21?Object[_0x32e7e2(0x92)](_0x2f3d21,_0x39544e,{'value':_0x3fb0f4,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2f3d21[_0x39544e]=_0x3fb0f4,_0x2f3d21;}let _0x486df5=(0x0,_0x53c816[_0x48bb08(0xaf)])(_0x48bb08(0x72));var _0x5e9aab=class{constructor(){const _0x2ab9b3=_0x48bb08;_0x406d1a(this,_0x2ab9b3(0x6d),[]);}[_0x48bb08(0x89)](_0x4170b6){const _0x28ce1c=_0x48bb08;return this[_0x28ce1c(0x6d)][_0x28ce1c(0x73)](_0x4170b6),(0x0,_0x53c816['toDisposable'])(()=>{const _0x298555=_0x28ce1c;let _0x57fa8a=this[_0x298555(0x6d)]['indexOf'](_0x4170b6);_0x57fa8a>=0x0&&this[_0x298555(0x6d)][_0x298555(0x78)](_0x57fa8a,0x1);});}[_0x48bb08(0xb6)](_0x1dabfe){const _0x5e4a10=_0x48bb08;for(let _0x5de1fa of this['_adapters'])if(_0x5de1fa[_0x5e4a10(0xb6)](_0x1dabfe))return!0x0;return!0x1;}async[_0x48bb08(0xc8)](_0xa1c1fe){const _0x5b8312=_0x48bb08;for(let _0x154cc4 of this[_0x5b8312(0x6d)])if(_0x154cc4[_0x5b8312(0xc8)]&&await _0x154cc4[_0x5b8312(0xc8)](_0xa1c1fe))return!0x0;return!0x1;}};let _0x99b60c={'id':'ink.operation.start','type':_0x53c816[_0x48bb08(0xaa)][_0x48bb08(0xba)],'handler':(_0x5ba643,_0x55d9b5)=>_0x55d9b5?_0x5ba643[_0x48bb08(0xc9)](_0x486df5)[_0x48bb08(0xb6)](_0x55d9b5):!0x1},_0xd81042={};function _0x403c44(_0xf2d4e0,_0x40eee7){return function(_0x4bf607,_0x89ac6f){_0x40eee7(_0x4bf607,_0x89ac6f,_0xf2d4e0);};}function _0x29d206(_0x45ceba,_0xcdb78,_0xc120a9,_0x3a2070){const _0x2f5473=_0x48bb08;var _0x46bbc=arguments[_0x2f5473(0x6f)],_0x1e611a=_0x46bbc<0x3?_0xcdb78:_0x3a2070===null?_0x3a2070=Object['getOwnPropertyDescriptor'](_0xcdb78,_0xc120a9):_0x3a2070,_0x2353bc;if(typeof Reflect==_0x2f5473(0x7d)&&typeof Reflect[_0x2f5473(0x7f)]=='function')_0x1e611a=Reflect[_0x2f5473(0x7f)](_0x45ceba,_0xcdb78,_0xc120a9,_0x3a2070);else{for(var _0x1a0d17=_0x45ceba['length']-0x1;_0x1a0d17>=0x0;_0x1a0d17--)(_0x2353bc=_0x45ceba[_0x1a0d17])&&(_0x1e611a=(_0x46bbc<0x3?_0x2353bc(_0x1e611a):_0x46bbc>0x3?_0x2353bc(_0xcdb78,_0xc120a9,_0x1e611a):_0x2353bc(_0xcdb78,_0xc120a9))||_0x1e611a);}return _0x46bbc>0x3&&_0x1e611a&&Object[_0x2f5473(0x92)](_0xcdb78,_0xc120a9,_0x1e611a),_0x1e611a;}let _0x4e7ae5=class extends _0x53c816[_0x48bb08(0xd3)]{constructor(_0x43bb50=_0xd81042,_0x1c72dd,_0x105b0a,_0x1ab1ac){const _0x2b1559=_0x48bb08;super(),this[_0x2b1559(0xcb)]=_0x43bb50,this[_0x2b1559(0xf2)]=_0x1c72dd,this[_0x2b1559(0xa1)]=_0x105b0a,this[_0x2b1559(0xbd)]=_0x1ab1ac;let {..._0x244502}=(0x0,_0x53c816[_0x2b1559(0xde)])({},_0xd81042,this[_0x2b1559(0xcb)]);this['_configService'][_0x2b1559(0x94)](_0x2b1559(0xb2),_0x244502);}[_0x48bb08(0xa2)](){const _0x15f66d=_0x48bb08;[[_0x486df5,{'useClass':_0x5e9aab}]][_0x15f66d(0xd6)](_0x192796=>this[_0x15f66d(0xf2)][_0x15f66d(0xee)](_0x192796)),this[_0x15f66d(0xac)](this['_commandService'][_0x15f66d(0x8a)](_0x99b60c));}};_0x406d1a(_0x4e7ae5,_0x48bb08(0x97),'UNIVER_INK_PLUGIN'),_0x406d1a(_0x4e7ae5,_0x48bb08(0x74),_0x119e4b),_0x406d1a(_0x4e7ae5,'version',_0x5ba77d),_0x406d1a(_0x4e7ae5,_0x48bb08(0xf0),_0x53c816[_0x48bb08(0xdb)]['UNIVER_UNKNOWN']),_0x4e7ae5=_0x29d206([(0x0,_0x53c816[_0x48bb08(0x8c)])(_0x58412f[_0x48bb08(0xbb)]),_0x403c44(0x1,(0x0,_0x53c816[_0x48bb08(0x7e)])(_0x53c816[_0x48bb08(0xa5)])),_0x403c44(0x2,_0x53c816[_0x48bb08(0xe2)]),_0x403c44(0x3,_0x53c816[_0x48bb08(0xeb)])],_0x4e7ae5),_0x28cc4d['IInkHostAdapterService']=_0x486df5,Object[_0x48bb08(0x92)](_0x28cc4d,_0x48bb08(0xa3),{'enumerable':!0x0,'get':function(){return _0x4e7ae5;}}),_0x28cc4d[_0x48bb08(0xa9)]=_0x15404f,_0x28cc4d[_0x48bb08(0xc0)]=_0x38847e,_0x28cc4d[_0x48bb08(0x8e)]=_0x4aa47e,_0x28cc4d[_0x48bb08(0x9d)]=_0x1b2c86,_0x28cc4d[_0x48bb08(0xb5)]=_0x108724,_0x28cc4d[_0x48bb08(0x79)]=_0x510d6a,_0x28cc4d[_0x48bb08(0xe9)]=_0x13e994,_0x28cc4d[_0x48bb08(0x77)]=_0x2cddeb,_0x28cc4d[_0x48bb08(0x75)]=_0x3aa36b,_0x28cc4d['isInkPenHandleVisible']=_0x408a3e,_0x28cc4d[_0x48bb08(0x9f)]=_0xf67bc2,_0x28cc4d[_0x48bb08(0xe6)]=_0x47ef32;}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/ink",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
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,13 +58,13 @@
58
58
  "lib"
59
59
  ],
60
60
  "dependencies": {
61
- "@univerjs-pro/boards": "1.3.0",
62
- "@univerjs-pro/engine-shape": "1.3.0",
63
- "@univerjs-pro/license": "1.3.0",
64
- "@univerjs/core": "1.3.0"
61
+ "@univerjs-pro/boards": "1.3.1",
62
+ "@univerjs-pro/engine-shape": "1.3.1",
63
+ "@univerjs-pro/license": "1.3.1",
64
+ "@univerjs/core": "1.3.1"
65
65
  },
66
66
  "devDependencies": {
67
- "@univerjs-infra/shared": "1.3.0",
67
+ "@univerjs-infra/shared": "1.3.1",
68
68
  "typescript": "^6.0.3",
69
69
  "vitest": "^5.0.4"
70
70
  },