@univerjs-pro/ink 1.1.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +6 -6
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _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;
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x4ebf33=_0x3356;(function(_0x5ce6ad,_0x3aeea2){const _0x353020=_0x3356,_0x5f48f3=_0x5ce6ad();while(!![]){try{const _0x5d9b79=-parseInt(_0x353020(0x11e))/0x1+parseInt(_0x353020(0xdd))/0x2+-parseInt(_0x353020(0x10b))/0x3*(parseInt(_0x353020(0xac))/0x4)+-parseInt(_0x353020(0xd2))/0x5*(parseInt(_0x353020(0xe3))/0x6)+-parseInt(_0x353020(0xce))/0x7*(parseInt(_0x353020(0x106))/0x8)+parseInt(_0x353020(0xf4))/0x9*(-parseInt(_0x353020(0xf8))/0xa)+parseInt(_0x353020(0xe4))/0xb*(parseInt(_0x353020(0xf9))/0xc);if(_0x5d9b79===_0x3aeea2)break;else _0x5f48f3['push'](_0x5f48f3['shift']());}catch(_0xf01e42){_0x5f48f3['push'](_0x5f48f3['shift']());}}}(_0x27dd,0x367c0),Object['defineProperty'](exports,Symbol[_0x4ebf33(0x11c)],{'value':_0x4ebf33(0xcb)}));let e=require('@univerjs-pro/engine-shape'),t=require('@univerjs-pro/license'),n=require('@univerjs/core');const r=0.0001;function i(_0x1cf3b3){return{'x':_0x1cf3b3['x'],'y':_0x1cf3b3['y']};}function a(_0x35e403){return{..._0x35e403,'in':_0x35e403['in']?i(_0x35e403['in']):void 0x0,'out':_0x35e403['out']?i(_0x35e403['out']):void 0x0};}function o(_0x33b883){const _0x1b2c90=_0x4ebf33;return{'kind':_0x1b2c90(0xcf),'closed':_0x33b883[_0x1b2c90(0xe9)],'anchors':_0x33b883[_0x1b2c90(0xc8)][_0x1b2c90(0xee)](a)};}function s(_0xb70350,_0x42bebc,_0x3bf2e7){return{'x':_0xb70350['x']+(_0x42bebc['x']-_0xb70350['x'])*_0x3bf2e7,'y':_0xb70350['y']+(_0x42bebc['y']-_0xb70350['y'])*_0x3bf2e7};}function c(_0x5a3022,_0x215442){const _0x42a25f=_0x4ebf33;return Math[_0x42a25f(0xfa)](_0x5a3022['x']-_0x215442['x'],_0x5a3022['y']-_0x215442['y']);}function l(_0x5c6346){let _0x2880cd=Math['hypot'](_0x5c6346['x'],_0x5c6346['y']);return _0x2880cd<r?{'x':0x1,'y':0x0}:{'x':_0x5c6346['x']/_0x2880cd,'y':_0x5c6346['y']/_0x2880cd};}function u(_0x8a72fc,_0x3144a0,_0x56f264=c(_0x8a72fc,_0x3144a0)){let _0x414db7=l({'x':_0x8a72fc['x']-_0x3144a0['x'],'y':_0x8a72fc['y']-_0x3144a0['y']});return{'x':_0x8a72fc['x']+_0x414db7['x']*_0x56f264,'y':_0x8a72fc['y']+_0x414db7['y']*_0x56f264};}function d(_0x39cd22,_0x18d88f){const _0x374419=_0x4ebf33;let {anchors:_0x4767a8}=_0x39cd22;return _0x4767a8[_0x374419(0xf3)]<0x2||_0x18d88f<0x0?null:_0x18d88f<_0x4767a8[_0x374419(0xf3)]-0x1?{'startIndex':_0x18d88f,'endIndex':_0x18d88f+0x1,'start':_0x4767a8[_0x18d88f],'end':_0x4767a8[_0x18d88f+0x1]}:_0x39cd22[_0x374419(0xe9)]&&_0x18d88f===_0x4767a8['length']-0x1?{'startIndex':_0x4767a8[_0x374419(0xf3)]-0x1,'endIndex':0x0,'start':_0x4767a8[_0x4767a8[_0x374419(0xf3)]-0x1],'end':_0x4767a8[0x0]}:null;}function f(_0x1bada6,_0x48054a){const _0x19c560=_0x4ebf33;let _0x382bbe=d(_0x1bada6,_0x48054a);return _0x382bbe?[_0x382bbe[_0x19c560(0xb8)],_0x382bbe[_0x19c560(0xb8)][_0x19c560(0xb3)]??_0x382bbe[_0x19c560(0xb8)],_0x382bbe[_0x19c560(0xab)]['in']??_0x382bbe[_0x19c560(0xab)],_0x382bbe['end']]:null;}function ee(_0x56b1e0,_0x26bdcc){const _0x3a129c=_0x4ebf33;return _0x26bdcc===_0x3a129c(0xc5)?_0x56b1e0:_0x56b1e0[_0x26bdcc]??null;}function p(_0x4ea54f,_0x5bbfab,_0xed7f9a){const _0x5a1625=_0x4ebf33;return _0xed7f9a==='anchor'||_0x4ea54f[_0x5a1625(0xe9)]?!0x0:_0xed7f9a==='in'?_0x5bbfab>0x0:_0x5bbfab<_0x4ea54f[_0x5a1625(0xc8)][_0x5a1625(0xf3)]-0x1;}function m(_0xbdbd47,_0x26f31c){let [_0x4a4aaf,_0x24b63d,_0x209c0,_0x5d41e7]=_0xbdbd47,_0x47ae11=s(_0x4a4aaf,_0x24b63d,_0x26f31c),_0x13e49e=s(_0x24b63d,_0x209c0,_0x26f31c),_0x2e4b19=s(_0x209c0,_0x5d41e7,_0x26f31c);return s(s(_0x47ae11,_0x13e49e,_0x26f31c),s(_0x13e49e,_0x2e4b19,_0x26f31c),_0x26f31c);}function h(_0x36a355,_0xc06b14){let [_0x3b9b9a,_0x4f1c83,_0x30a16b,_0x5913d9]=_0x36a355,_0x220e37=s(_0x3b9b9a,_0x4f1c83,_0xc06b14),_0xb4df94=s(_0x4f1c83,_0x30a16b,_0xc06b14),_0x3f0623=s(_0x30a16b,_0x5913d9,_0xc06b14),_0x178361=s(_0x220e37,_0xb4df94,_0xc06b14),_0x343e52=s(_0xb4df94,_0x3f0623,_0xc06b14),_0x2c4412=s(_0x178361,_0x343e52,_0xc06b14);return{'left':[_0x3b9b9a,_0x220e37,_0x178361,_0x2c4412],'right':[_0x2c4412,_0x343e52,_0x3f0623,_0x5913d9]};}function _0x27dd(){const _0x4d172d=['IConfigService','end','129304bhSszV','filter','min','NoFill','abs','endIndex','push','out','@univerjs-pro/ink','createCustomShape','ShapeLineTypeEnum','moveInkPenAnchorPoint','start','getInkModelBounds','findIndex','anchorId','ink.host-adapter.service','cycleInkPenAnchorPointType','fillColor','version','Injector','ShapeTypeEnum','string','Round','UniverLicensePlugin','anchor','iterator','color','anchors','Plugin','ratio','Module','packageName','right','2197685zHzSII','pen','DependentOn','join','961420wYXIpY','corner','getOwnPropertyDescriptor','merge','function','startIndex','_adapters','opacity','disposeWithMe','deleteInkPenAnchor','pointType','209060aiJxaj','kind','1.1.0','find','SolidFill','pluginName','6BWCmpu','11jCjkxU','add','tolerance','Inject','indexOf','closed','ink-centerline-','ShapeLineCapEnum','_configService','free','map','ink.config','buildInkCustomShapePayload','_config','SolidLine','length','410751LgwGVQ','UNIVER_UNKNOWN','prototype','ShapeFillEnum','70oSArmZ','15606012bZoJzy','hypot','toPrimitive','top','setConfig','points','Rect','findClosestInkPenSegment','none','findClosestInkPenHandle','smooth','CommandType','createIdentifier','8fJzvTs','UniverInkPlugin','UniverInstanceType','ShapeLineJoinEnum','distance','15pDVaSs','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','createId','sqrt','slice','symbol','round','defineProperty','get','call','UNIVER_INK_PLUGIN','object','default','forEach','symmetric','width','ICommandService','toStringTag','__ink-preview-anchor__','194521HlhfsX','isInkPenHandleVisible','left','type','beginInkMode','tool','_injector','max','decorate'];_0x27dd=function(){return _0x4d172d;};return _0x27dd();}function g(_0x31ce47,_0x4ea4ac,_0x24c20d){const _0x4e107e=_0x4ebf33;let _0x2a3bce=_0x24c20d['x']-_0x4ea4ac['x'],_0x1292c3=_0x24c20d['y']-_0x4ea4ac['y'],_0x38e96b=_0x2a3bce*_0x2a3bce+_0x1292c3*_0x1292c3,_0x3ea08e=_0x38e96b<=r?0x0:Math[_0x4e107e(0x125)](0x0,Math[_0x4e107e(0xae)](0x1,((_0x31ce47['x']-_0x4ea4ac['x'])*_0x2a3bce+(_0x31ce47['y']-_0x4ea4ac['y'])*_0x1292c3)/_0x38e96b)),_0x3082b1={'x':_0x4ea4ac['x']+_0x2a3bce*_0x3ea08e,'y':_0x4ea4ac['y']+_0x1292c3*_0x3ea08e};return{'point':_0x3082b1,'ratio':_0x3ea08e,'distance':c(_0x31ce47,_0x3082b1)};}function te(_0x292d84,_0x1cfcd9,_0x2a2ef4){const _0x2e976f=_0x4ebf33;return g(_0x292d84,_0x1cfcd9,_0x2a2ef4)[_0x2e976f(0x10a)]**0x2;}function _(_0xcb6e84,_0x3e70a8){const _0x4d9c8b=_0x4ebf33;if(_0xcb6e84['length']<=0x2)return _0xcb6e84[_0x4d9c8b(0xee)](i);let _0x18dbac=0x0,_0x3b8cb1=0x0,_0x56e89f=_0xcb6e84[0x0],_0x52afc0=_0xcb6e84[_0xcb6e84[_0x4d9c8b(0xf3)]-0x1],_0x102c70=_0x3e70a8*_0x3e70a8;for(let _0x18e70b=0x1;_0x18e70b<_0xcb6e84[_0x4d9c8b(0xf3)]-0x1;_0x18e70b++){let _0x1434ef=te(_0xcb6e84[_0x18e70b],_0x56e89f,_0x52afc0);_0x1434ef>_0x18dbac&&(_0x18dbac=_0x1434ef,_0x3b8cb1=_0x18e70b);}if(_0x18dbac<=_0x102c70)return[i(_0x56e89f),i(_0x52afc0)];let _0x5f1785=_(_0xcb6e84[_0x4d9c8b(0x10f)](0x0,_0x3b8cb1+0x1),_0x3e70a8),_0x179e31=_(_0xcb6e84[_0x4d9c8b(0x10f)](_0x3b8cb1),_0x3e70a8);return[..._0x5f1785['slice'](0x0,-0x1),..._0x179e31];}function ne(_0x1dfe90,_0x4f364f){let _0x531eb4=_0x1dfe90[_0x4f364f],_0x23b1c1=_0x1dfe90[_0x4f364f+0x1],_0x1a2e6c=_0x1dfe90[_0x4f364f-0x1]??_0x531eb4;return{'x':_0x531eb4['x']+(_0x23b1c1['x']-_0x1a2e6c['x'])/0x6,'y':_0x531eb4['y']+(_0x23b1c1['y']-_0x1a2e6c['y'])/0x6};}function v(_0x423fdc,_0x775e62){let _0x38c6b7=_0x423fdc[_0x775e62],_0x3705c3=_0x423fdc[_0x775e62-0x1],_0x453681=_0x423fdc[_0x775e62+0x1]??_0x38c6b7;return{'x':_0x38c6b7['x']-(_0x453681['x']-_0x3705c3['x'])/0x6,'y':_0x38c6b7['y']-(_0x453681['y']-_0x3705c3['y'])/0x6};}function y(_0x188bc2,_0x71d9cc){const _0x2fc325=_0x4ebf33;let _0x89e78c=_0x188bc2[_0x2fc325(0xc8)][_0x71d9cc],_0x19dde7=_0x188bc2[_0x2fc325(0xc8)][_0x71d9cc-0x1]??(_0x188bc2['closed']?_0x188bc2[_0x2fc325(0xc8)][_0x188bc2[_0x2fc325(0xc8)][_0x2fc325(0xf3)]-0x1]:null),_0x145c0c=_0x188bc2[_0x2fc325(0xc8)][_0x71d9cc+0x1]??(_0x188bc2[_0x2fc325(0xe9)]?_0x188bc2[_0x2fc325(0xc8)][0x0]:null),_0x5129ce=_0x19dde7&&_0x145c0c?l({'x':_0x145c0c['x']-_0x19dde7['x'],'y':_0x145c0c['y']-_0x19dde7['y']}):_0x145c0c?l({'x':_0x145c0c['x']-_0x89e78c['x'],'y':_0x145c0c['y']-_0x89e78c['y']}):_0x19dde7?l({'x':_0x89e78c['x']-_0x19dde7['x'],'y':_0x89e78c['y']-_0x19dde7['y']}):{'x':0x1,'y':0x0},_0x2bdad0=_0x19dde7&&_0x145c0c?Math[_0x2fc325(0x125)](0x32,c(_0x19dde7,_0x145c0c)/0x4):0x32;return{'in':{'x':_0x89e78c['x']-_0x5129ce['x']*_0x2bdad0,'y':_0x89e78c['y']-_0x5129ce['y']*_0x2bdad0},'out':{'x':_0x89e78c['x']+_0x5129ce['x']*_0x2bdad0,'y':_0x89e78c['y']+_0x5129ce['y']*_0x2bdad0}};}function b(_0x1e350e,_0x4f156e){const _0x2cdaa9=_0x4ebf33;let _0x55d2ca=_0x1e350e[_0x4f156e],_0x10dcd9=_0x4f156e==='in'?'out':'in',_0x4682e7=_0x1e350e[_0x10dcd9];_0x55d2ca&&(_0x1e350e[_0x2cdaa9(0xdc)]===_0x2cdaa9(0x119)?_0x1e350e[_0x10dcd9]=u(_0x1e350e,_0x55d2ca):_0x1e350e['pointType']===_0x2cdaa9(0x103)&&(_0x1e350e[_0x10dcd9]=u(_0x1e350e,_0x55d2ca,_0x4682e7?c(_0x1e350e,_0x4682e7):c(_0x1e350e,_0x55d2ca))));}function x(_0x2fe907,_0x463db3){const _0x778c4a=_0x4ebf33;let _0x2e0f20=o(_0x2fe907);return!_0x463db3||_0x2e0f20[_0x778c4a(0xe9)]||_0x2e0f20[_0x778c4a(0xc8)][_0x778c4a(0xf3)]===0x0||_0x2e0f20[_0x778c4a(0xc8)]['push']({'id':_0x778c4a(0x11d),'x':_0x463db3['x'],'y':_0x463db3['y'],'pointType':_0x778c4a(0xd3)}),_0x2e0f20;}function re(_0x42d2f8,_0xd58144={}){const _0x9bbdf4=_0x4ebf33;let _0x2b8faa=Math[_0x9bbdf4(0x125)](0x0,_0xd58144[_0x9bbdf4(0xe6)]??Math[_0x9bbdf4(0x125)](0x4,_0x42d2f8[_0x9bbdf4(0x11a)]*0.35)),_0x5e44f1=_0xd58144[_0x9bbdf4(0x10d)]??(_0x2f566e=>_0x9bbdf4(0xea)+_0x2f566e),_0x19495e=_(_0x42d2f8['points'],_0x2b8faa),_0x1cfc18=_0x19495e[_0x9bbdf4(0xee)]((_0x4f3f2d,_0xfea4c7)=>({'id':_0x5e44f1(_0xfea4c7),'x':_0x4f3f2d['x'],'y':_0x4f3f2d['y'],'pointType':'free'}));for(let _0x3e0777=0x0;_0x3e0777<_0x1cfc18[_0x9bbdf4(0xf3)]-0x1;_0x3e0777++)_0x1cfc18[_0x3e0777][_0x9bbdf4(0xb3)]=ne(_0x19495e,_0x3e0777),_0x1cfc18[_0x3e0777+0x1]['in']=v(_0x19495e,_0x3e0777+0x1);return{'kind':'pen','closed':!0x1,'anchors':_0x1cfc18};}function ie(_0x24f309,_0x45efab,_0x5ee281){const _0xfd2d3f=_0x4ebf33;let _0x479dcd=null,_0x285065=[_0xfd2d3f(0xc5),'in',_0xfd2d3f(0xb3)];return _0x24f309[_0xfd2d3f(0xc8)][_0xfd2d3f(0x118)]((_0x1d5d83,_0x3c385d)=>{const _0xc38616=_0xfd2d3f;_0x285065[_0xc38616(0x118)](_0x29eb46=>{const _0xf4e60d=_0xc38616;if(!p(_0x24f309,_0x3c385d,_0x29eb46))return;let _0x1298a7=ee(_0x1d5d83,_0x29eb46);if(!_0x1298a7)return;let _0x40c540=c(_0x45efab,_0x1298a7);_0x40c540>_0x5ee281||_0x479dcd&&_0x40c540>=_0x479dcd[_0xf4e60d(0x10a)]||(_0x479dcd={'handle':{'kind':_0x29eb46,'anchorId':_0x1d5d83['id']},'point':i(_0x1298a7),'distance':_0x40c540});});}),_0x479dcd;}function S(_0x3a7c20,_0x564026,_0x560597){const _0x69c178=_0x4ebf33;let _0x21ee30=null,_0x39b7be=_0x3a7c20[_0x69c178(0xe9)]?_0x3a7c20[_0x69c178(0xc8)][_0x69c178(0xf3)]:Math[_0x69c178(0x125)](0x0,_0x3a7c20[_0x69c178(0xc8)][_0x69c178(0xf3)]-0x1);for(let _0x38dd8a=0x0;_0x38dd8a<_0x39b7be;_0x38dd8a++){let _0x324428=f(_0x3a7c20,_0x38dd8a);if(!_0x324428)continue;let _0x3e90c0=m(_0x324428,0x0);for(let _0x2d629e=0x1;_0x2d629e<=0x20;_0x2d629e++){let _0x285c2e=m(_0x324428,_0x2d629e/0x20),_0x5b6452=g(_0x564026,_0x3e90c0,_0x285c2e),_0x4b2c67=(_0x2d629e-0x1+_0x5b6452[_0x69c178(0xca)])/0x20;(!_0x21ee30||_0x5b6452[_0x69c178(0x10a)]<_0x21ee30[_0x69c178(0x10a)])&&(_0x21ee30={'segmentIndex':_0x38dd8a,'t':_0x4b2c67,'point':_0x5b6452['point'],'distance':_0x5b6452['distance']}),_0x3e90c0=_0x285c2e;}}return _0x21ee30&&_0x21ee30[_0x69c178(0x10a)]<=_0x560597?_0x21ee30:null;}function C(_0x4e98c2,_0x2fd456,_0x554683){const _0x27af7c=_0x4ebf33;let _0x35e601=o(_0x4e98c2),_0x2a5971=d(_0x35e601,_0x2fd456['segmentIndex']),_0x1d6bfd=f(_0x35e601,_0x2fd456['segmentIndex']);if(!_0x2a5971||!_0x1d6bfd)return _0x35e601;let _0x567644=h(_0x1d6bfd,Math[_0x27af7c(0x125)](0x0,Math[_0x27af7c(0xae)](0x1,_0x2fd456['t']))),_0x419726={'id':_0x554683(),'x':_0x567644['left'][0x3]['x'],'y':_0x567644[_0x27af7c(0x120)][0x3]['y'],'in':i(_0x567644[_0x27af7c(0x120)][0x2]),'out':i(_0x567644[_0x27af7c(0xcd)][0x1]),'pointType':'free'};return _0x35e601[_0x27af7c(0xc8)][_0x2a5971[_0x27af7c(0xd7)]][_0x27af7c(0xb3)]=i(_0x567644['left'][0x1]),_0x35e601[_0x27af7c(0xc8)][_0x2a5971[_0x27af7c(0xb1)]]['in']=i(_0x567644[_0x27af7c(0xcd)][0x2]),_0x35e601[_0x27af7c(0xc8)]['splice'](_0x2a5971[_0x27af7c(0xd7)]+0x1,0x0,_0x419726),_0x35e601;}function w(_0x3fbefa,_0x4aadf2){const _0x254b27=_0x4ebf33;let _0x2b31ae=o(_0x3fbefa);return _0x2b31ae[_0x254b27(0xc8)]=_0x2b31ae[_0x254b27(0xc8)][_0x254b27(0xad)](_0x54ccde=>_0x54ccde['id']!==_0x4aadf2),_0x2b31ae[_0x254b27(0xe9)]&&_0x2b31ae[_0x254b27(0xc8)][_0x254b27(0xf3)]<0x3&&(_0x2b31ae[_0x254b27(0xe9)]=!0x1),_0x2b31ae;}function T(_0x100f1e,_0x22277b,_0x5ac2a8){const _0x3c7d3b=_0x4ebf33;let _0x571b8d=o(_0x100f1e),_0x391b0e=_0x571b8d[_0x3c7d3b(0xc8)][_0x3c7d3b(0xba)](_0x3ec3a8=>_0x3ec3a8['id']===_0x22277b),_0x459a72=_0x571b8d[_0x3c7d3b(0xc8)][_0x391b0e];if(!_0x459a72)return _0x571b8d;if(_0x459a72[_0x3c7d3b(0xdc)]=_0x5ac2a8,_0x5ac2a8===_0x3c7d3b(0xd3))return delete _0x459a72['in'],delete _0x459a72[_0x3c7d3b(0xb3)],_0x571b8d;let _0x5fcfd9=y(_0x571b8d,_0x391b0e);if(_0x459a72['in']=_0x459a72['in']?i(_0x459a72['in']):_0x5fcfd9['in'],_0x459a72[_0x3c7d3b(0xb3)]=_0x459a72[_0x3c7d3b(0xb3)]?i(_0x459a72[_0x3c7d3b(0xb3)]):_0x5fcfd9[_0x3c7d3b(0xb3)],_0x5ac2a8==='symmetric'){let _0xbc0048=Math[_0x3c7d3b(0x125)](c(_0x459a72,_0x459a72['in']),c(_0x459a72,_0x459a72[_0x3c7d3b(0xb3)]),0x32),_0x207c0d=l({'x':_0x459a72[_0x3c7d3b(0xb3)]['x']-_0x459a72['x'],'y':_0x459a72[_0x3c7d3b(0xb3)]['y']-_0x459a72['y']});_0x459a72['out']={'x':_0x459a72['x']+_0x207c0d['x']*_0xbc0048,'y':_0x459a72['y']+_0x207c0d['y']*_0xbc0048},_0x459a72['in']={'x':_0x459a72['x']-_0x207c0d['x']*_0xbc0048,'y':_0x459a72['y']-_0x207c0d['y']*_0xbc0048};}else _0x5ac2a8===_0x3c7d3b(0x103)&&b(_0x459a72,'out');return _0x571b8d;}function E(_0x4b79ac,_0x24f2fb){const _0x368ddc=_0x4ebf33;let _0x21d7e8=_0x4b79ac[_0x368ddc(0xc8)][_0x368ddc(0xe0)](_0x170e65=>_0x170e65['id']===_0x24f2fb),_0x133b46=(_0x21d7e8==null?void 0x0:_0x21d7e8[_0x368ddc(0xdc)])??'corner';return T(_0x4b79ac,_0x24f2fb,_0x133b46===_0x368ddc(0xd3)?_0x368ddc(0x103):_0x133b46===_0x368ddc(0x103)?_0x368ddc(0x119):_0x133b46==='symmetric'?_0x368ddc(0xed):_0x368ddc(0xd3));}function ae(_0x1937d8,_0x973715,_0xf67554){const _0x565ab3=_0x4ebf33;let _0x3ea58d=o(_0x1937d8),_0xff095a=_0x3ea58d['anchors']['find'](_0x64f189=>_0x64f189['id']===_0x973715[_0x565ab3(0xbb)]);if(!_0xff095a)return _0x3ea58d;if(_0x973715[_0x565ab3(0xde)]===_0x565ab3(0xc5)){let _0x1c1062={'x':_0xf67554['x']-_0xff095a['x'],'y':_0xf67554['y']-_0xff095a['y']};return _0xff095a['x']=_0xf67554['x'],_0xff095a['y']=_0xf67554['y'],_0xff095a['in']&&={'x':_0xff095a['in']['x']+_0x1c1062['x'],'y':_0xff095a['in']['y']+_0x1c1062['y']},_0xff095a['out']&&={'x':_0xff095a[_0x565ab3(0xb3)]['x']+_0x1c1062['x'],'y':_0xff095a[_0x565ab3(0xb3)]['y']+_0x1c1062['y']},_0x3ea58d;}return _0xff095a[_0x973715[_0x565ab3(0xde)]]=i(_0xf67554),_0xff095a[_0x565ab3(0xdc)]===_0x565ab3(0xd3)&&(_0xff095a[_0x565ab3(0xdc)]=_0x565ab3(0xed)),b(_0xff095a,_0x973715[_0x565ab3(0xde)]),_0x3ea58d;}const D=1e-9;function O(_0x126f99){const _0x55f1d2=_0x4ebf33;let _0xa9b81d=Math[_0x55f1d2(0x111)](_0x126f99*0x2710)/0x2710;return Object['is'](_0xa9b81d,-0x0)?'0':String(_0xa9b81d);}function k(_0xe569ea){return O(_0xe569ea['x'])+'\x20'+O(_0xe569ea['y']);}function A(_0x50a205,_0x4c17b7){return{'x':_0x50a205['x']-_0x4c17b7['x'],'y':_0x50a205['y']-_0x4c17b7['y']};}function j(_0x3abdec,_0x5f3537,_0x86f6e9,_0x44c94e,_0x527a34){let _0x224a2d=0x1-_0x527a34;return{'x':_0x224a2d*_0x224a2d*_0x224a2d*_0x3abdec['x']+0x3*_0x224a2d*_0x224a2d*_0x527a34*_0x5f3537['x']+0x3*_0x224a2d*_0x527a34*_0x527a34*_0x86f6e9['x']+_0x527a34*_0x527a34*_0x527a34*_0x44c94e['x'],'y':_0x224a2d*_0x224a2d*_0x224a2d*_0x3abdec['y']+0x3*_0x224a2d*_0x224a2d*_0x527a34*_0x5f3537['y']+0x3*_0x224a2d*_0x527a34*_0x527a34*_0x86f6e9['y']+_0x527a34*_0x527a34*_0x527a34*_0x44c94e['y']};}function M(_0x2e71fe,_0x25ffed,_0xce8523,_0x4b7c58){const _0x434d6f=_0x4ebf33;let _0x523977=-_0x2e71fe+0x3*_0x25ffed-0x3*_0xce8523+_0x4b7c58,_0x599c07=0x3*_0x2e71fe-0x6*_0x25ffed+0x3*_0xce8523,_0x4b4075=-0x3*_0x2e71fe+0x3*_0x25ffed,_0x346148=[];if(Math[_0x434d6f(0xb0)](_0x523977)<D){if(Math[_0x434d6f(0xb0)](_0x599c07)<D)return _0x346148;let _0x3f276b=-_0x4b4075/(0x2*_0x599c07);return _0x3f276b>0x0&&_0x3f276b<0x1&&_0x346148[_0x434d6f(0xb2)](_0x3f276b),_0x346148;}let _0x1bb173=_0x599c07*_0x599c07-0x3*_0x523977*_0x4b4075;if(_0x1bb173<0x0)return _0x346148;let _0x367093=Math[_0x434d6f(0x10e)](Math['max'](0x0,_0x1bb173)),_0x434ab4=(-_0x599c07+_0x367093)/(0x3*_0x523977),_0x77c832=(-_0x599c07-_0x367093)/(0x3*_0x523977);return _0x434ab4>0x0&&_0x434ab4<0x1&&_0x346148['push'](_0x434ab4),_0x77c832>0x0&&_0x77c832<0x1&&Math[_0x434d6f(0xb0)](_0x77c832-_0x434ab4)>D&&_0x346148['push'](_0x77c832),_0x346148;}function N(_0x2e498f,_0x32bfd6,_0x3f8f2f,_0x2e9c74,_0x10655f){const _0x53dfa1=_0x4ebf33;_0x2e498f[_0x53dfa1(0xb2)](_0x32bfd6,_0x10655f),new Set([...M(_0x32bfd6['x'],_0x3f8f2f['x'],_0x2e9c74['x'],_0x10655f['x']),...M(_0x32bfd6['y'],_0x3f8f2f['y'],_0x2e9c74['y'],_0x10655f['y'])])[_0x53dfa1(0x118)](_0x1ce771=>{const _0x3a0bd=_0x53dfa1;_0x2e498f[_0x3a0bd(0xb2)](j(_0x32bfd6,_0x3f8f2f,_0x2e9c74,_0x10655f,_0x1ce771));});}function P(_0x4b25e0){const _0x55461e=_0x4ebf33;let _0x10ecdb=_0x4b25e0[_0x55461e(0xc8)];if(_0x10ecdb[_0x55461e(0xf3)]<=0x1)return _0x10ecdb;let _0xd5f53d=[];for(let _0x46b399=0x1;_0x46b399<_0x10ecdb[_0x55461e(0xf3)];_0x46b399++){let _0x7e2040=_0x10ecdb[_0x46b399-0x1],_0xbd37e3=_0x10ecdb[_0x46b399];N(_0xd5f53d,_0x7e2040,_0x7e2040[_0x55461e(0xb3)]??_0x7e2040,_0xbd37e3['in']??_0xbd37e3,_0xbd37e3);}if(_0x4b25e0['closed']&&_0x10ecdb[_0x55461e(0xf3)]>0x1){let _0x200a2a=_0x10ecdb[_0x10ecdb[_0x55461e(0xf3)]-0x1],_0x850efa=_0x10ecdb[0x0];N(_0xd5f53d,_0x200a2a,_0x200a2a[_0x55461e(0xb3)]??_0x200a2a,_0x850efa['in']??_0x850efa,_0x850efa);}return _0xd5f53d;}function F(_0x258682){const _0x50c65e=_0x4ebf33;let _0x48c3fd=_0x258682['points'];if(_0x48c3fd['length']<=0x1)return _0x48c3fd;let _0x5412ac=[];for(let _0x30824a=0x0;_0x30824a<_0x48c3fd[_0x50c65e(0xf3)]-0x1;_0x30824a++){let _0x2663a0=_0x48c3fd[_0x30824a],_0x4bade6=_0x48c3fd[_0x30824a+0x1],_0x3a220f=_0x48c3fd[_0x30824a-0x1]??_0x2663a0,_0x358ae4=_0x48c3fd[_0x30824a+0x2]??_0x4bade6;N(_0x5412ac,_0x2663a0,{'x':_0x2663a0['x']+(_0x4bade6['x']-_0x3a220f['x'])/0x6,'y':_0x2663a0['y']+(_0x4bade6['y']-_0x3a220f['y'])/0x6},{'x':_0x4bade6['x']-(_0x358ae4['x']-_0x2663a0['x'])/0x6,'y':_0x4bade6['y']-(_0x358ae4['y']-_0x2663a0['y'])/0x6},_0x4bade6);}return _0x5412ac;}function I(_0x3185be){const _0xf589=_0x4ebf33;return _0x3185be[_0xf589(0xde)]===_0xf589(0xcf)?P(_0x3185be):F(_0x3185be);}function L(_0x366763){let _0x2ddba3=Math['round'](_0x366763*0x2710)/0x2710;return Object['is'](_0x2ddba3,-0x0)?0x0:_0x2ddba3;}function R(_0x1612f9){const _0xc25400=_0x4ebf33;let _0x3c7c35=I(_0x1612f9);if(_0x3c7c35[_0xc25400(0xf3)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x531d60=Math['min'](..._0x3c7c35[_0xc25400(0xee)](_0x5c3467=>_0x5c3467['x'])),_0x3675e8=Math[_0xc25400(0xae)](..._0x3c7c35['map'](_0x48f516=>_0x48f516['y'])),_0xf0739=Math[_0xc25400(0x125)](..._0x3c7c35['map'](_0x46aade=>_0x46aade['x'])),_0x33db6e=Math['max'](..._0x3c7c35[_0xc25400(0xee)](_0x21565b=>_0x21565b['y']));return{'left':L(_0x531d60),'top':L(_0x3675e8),'width':L(Math[_0xc25400(0x125)](0x1,_0xf0739-_0x531d60)),'height':L(Math['max'](0x1,_0x33db6e-_0x3675e8))};}function z(_0x4e0383,_0x7f4eb8){const _0x17d7ac=_0x4ebf33;let _0x4ffcc7=_0x4e0383[_0x17d7ac(0xc8)];if(_0x4ffcc7[_0x17d7ac(0xf3)]===0x0)return'';let _0x4841a3=['M\x20'+k(A(_0x4ffcc7[0x0],_0x7f4eb8))];for(let _0x53c86a=0x1;_0x53c86a<_0x4ffcc7['length'];_0x53c86a++){let _0xdb287a=_0x4ffcc7[_0x53c86a-0x1],_0x11adda=_0x4ffcc7[_0x53c86a],_0x259edf=_0xdb287a['out']??_0xdb287a,_0x58c342=_0x11adda['in']??_0x11adda;_0x4841a3[_0x17d7ac(0xb2)]('C\x20'+k(A(_0x259edf,_0x7f4eb8))+'\x20'+k(A(_0x58c342,_0x7f4eb8))+'\x20'+k(A(_0x11adda,_0x7f4eb8)));}if(_0x4e0383[_0x17d7ac(0xe9)]&&_0x4ffcc7[_0x17d7ac(0xf3)]>0x1){let _0x261147=_0x4ffcc7[_0x4ffcc7['length']-0x1],_0x174b61=_0x4ffcc7[0x0],_0x4d9f1e=_0x261147['out']??_0x261147,_0x3a2f74=_0x174b61['in']??_0x174b61;_0x4841a3['push']('C\x20'+k(A(_0x4d9f1e,_0x7f4eb8))+'\x20'+k(A(_0x3a2f74,_0x7f4eb8))+'\x20'+k(A(_0x174b61,_0x7f4eb8))),_0x4841a3[_0x17d7ac(0xb2)]('Z');}return _0x4841a3['join']('\x20');}function B(_0x35c4d8,_0x19ad76){const _0x39a619=_0x4ebf33;let _0x320eff=_0x35c4d8[_0x39a619(0xfe)]['map'](_0x5b4e16=>A(_0x5b4e16,_0x19ad76));if(_0x320eff[_0x39a619(0xf3)]===0x0)return'';if(_0x320eff[_0x39a619(0xf3)]===0x1)return'M\x20'+k(_0x320eff[0x0]);let _0x7be0e5=['M\x20'+k(_0x320eff[0x0])];for(let _0x5c7ab0=0x0;_0x5c7ab0<_0x320eff[_0x39a619(0xf3)]-0x1;_0x5c7ab0++){let _0x120386=_0x320eff[_0x5c7ab0],_0x109b7b=_0x320eff[_0x5c7ab0+0x1],_0x208300=_0x320eff[_0x5c7ab0-0x1]??_0x120386,_0x4be09f=_0x320eff[_0x5c7ab0+0x2]??_0x109b7b,_0x26115e={'x':_0x120386['x']+(_0x109b7b['x']-_0x208300['x'])/0x6,'y':_0x120386['y']+(_0x109b7b['y']-_0x208300['y'])/0x6},_0x470ea6={'x':_0x109b7b['x']-(_0x4be09f['x']-_0x120386['x'])/0x6,'y':_0x109b7b['y']-(_0x4be09f['y']-_0x120386['y'])/0x6};_0x7be0e5[_0x39a619(0xb2)]('C\x20'+k(_0x26115e)+'\x20'+k(_0x470ea6)+'\x20'+k(_0x109b7b));}return _0x7be0e5[_0x39a619(0xd1)]('\x20');}function V(_0x57a74e,_0x4b47f2){const _0x541eb3=_0x4ebf33;return _0x57a74e[_0x541eb3(0xde)]==='pen'?z(_0x57a74e,_0x4b47f2):B(_0x57a74e,_0x4b47f2);}function H(_0x574c2b,_0xc5c918){const _0x3c4ce3=_0x4ebf33;return _0xc5c918!=null&&_0xc5c918[_0x3c4ce3(0xc7)]?_0xc5c918[_0x3c4ce3(0xc7)]:_0x574c2b[_0x3c4ce3(0xde)]===_0x3c4ce3(0xcf)?'#f54a45':_0x574c2b[_0x3c4ce3(0xc7)];}function U(_0x28954d,_0x38e42a){const _0xcd2375=_0x4ebf33;return(_0x38e42a==null?void 0x0:_0x38e42a[_0xcd2375(0x11a)])===void 0x0?_0x28954d[_0xcd2375(0xde)]===_0xcd2375(0xcf)?0x2:_0x28954d[_0xcd2375(0x11a)]:_0x38e42a[_0xcd2375(0x11a)];}function W(_0x49738b,_0x3630fe){const _0x39636b=_0x4ebf33;return(_0x3630fe==null?void 0x0:_0x3630fe[_0x39636b(0xd9)])===void 0x0?_0x49738b['kind']==='pen'?void 0x0:_0x49738b[_0x39636b(0xd9)]:_0x3630fe['opacity'];}function oe(_0x149377,_0x1801e7){const _0x531cb0=_0x4ebf33;let _0x31c6c3=R(_0x149377),_0x499ada=V(_0x149377,{'x':_0x31c6c3[_0x531cb0(0x120)],'y':_0x31c6c3[_0x531cb0(0xfc)]}),_0xf7398a=_0x149377['kind']===_0x531cb0(0xcf)&&_0x149377[_0x531cb0(0xe9)],_0x1bbc03=_0x1801e7==null?void 0x0:_0x1801e7[_0x531cb0(0xbe)];return{'shapeType':e[_0x531cb0(0xc1)][_0x531cb0(0xff)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x31c6c3[_0x531cb0(0x11a)],'h':_0x31c6c3['height'],'fill':_0xf7398a?'norm':_0x531cb0(0x101),'stroke':!0x0,'data':_0x499ada,'dataArray':K(_0x149377,{'x':_0x31c6c3['left'],'y':_0x31c6c3['top']})}]},'fill':_0xf7398a&&_0x1bbc03?{'color':_0x1bbc03,'fillType':e[_0x531cb0(0xf7)][_0x531cb0(0xe1)]}:{'fillType':e['ShapeFillEnum'][_0x531cb0(0xaf)]},'stroke':{'color':H(_0x149377,_0x1801e7),'width':U(_0x149377,_0x1801e7),'opacity':W(_0x149377,_0x1801e7),'lineStrokeType':e[_0x531cb0(0xb6)][_0x531cb0(0xf2)],'capType':e[_0x531cb0(0xeb)][_0x531cb0(0xc3)],'lineJoinType':e[_0x531cb0(0x109)][_0x531cb0(0xc3)]}};}function G(_0x9f6a8f,_0x8a3066){return{'x':_0x9f6a8f['x']-_0x8a3066['x'],'y':_0x9f6a8f['y']-_0x8a3066['y']};}function K(_0x23c0f3,_0x5b427d){const _0x26d4f0=_0x4ebf33;if(_0x23c0f3[_0x26d4f0(0xde)]===_0x26d4f0(0xcf)){let _0x42909e=_0x23c0f3[_0x26d4f0(0xc8)];if(_0x42909e['length']===0x0)return[];let _0x4286d2=G(_0x42909e[0x0],_0x5b427d),_0x379689=[{'command':'M','points':[_0x4286d2['x'],_0x4286d2['y']]}];for(let _0x2c3d97=0x1;_0x2c3d97<_0x42909e[_0x26d4f0(0xf3)];_0x2c3d97++){let _0x566cd7=_0x42909e[_0x2c3d97-0x1],_0x393f82=_0x42909e[_0x2c3d97],_0x4cb713=G(_0x566cd7[_0x26d4f0(0xb3)]??_0x566cd7,_0x5b427d),_0x3df3ea=G(_0x393f82['in']??_0x393f82,_0x5b427d),_0xaeaf73=G(_0x393f82,_0x5b427d);_0x379689[_0x26d4f0(0xb2)]({'command':'C','points':[_0x4cb713['x'],_0x4cb713['y'],_0x3df3ea['x'],_0x3df3ea['y'],_0xaeaf73['x'],_0xaeaf73['y']]});}if(_0x23c0f3[_0x26d4f0(0xe9)]&&_0x42909e[_0x26d4f0(0xf3)]>0x1){let _0x3d9439=_0x42909e[_0x42909e[_0x26d4f0(0xf3)]-0x1],_0x2bacfd=_0x42909e[0x0],_0x3bad3d=G(_0x3d9439[_0x26d4f0(0xb3)]??_0x3d9439,_0x5b427d),_0x14c7b3=G(_0x2bacfd['in']??_0x2bacfd,_0x5b427d),_0x4cdb1a=G(_0x2bacfd,_0x5b427d);_0x379689[_0x26d4f0(0xb2)]({'command':'C','points':[_0x3bad3d['x'],_0x3bad3d['y'],_0x14c7b3['x'],_0x14c7b3['y'],_0x4cdb1a['x'],_0x4cdb1a['y']]}),_0x379689[_0x26d4f0(0xb2)]({'command':'z','points':[]});}return _0x379689;}let _0x2523b3=_0x23c0f3['points'][_0x26d4f0(0xee)](_0x19ff56=>G(_0x19ff56,_0x5b427d));if(_0x2523b3['length']===0x0)return[];let _0x3a6c0b=[{'command':'M','points':[_0x2523b3[0x0]['x'],_0x2523b3[0x0]['y']]}];for(let _0x19bf59=0x0;_0x19bf59<_0x2523b3[_0x26d4f0(0xf3)]-0x1;_0x19bf59++){let _0x24e9fd=_0x2523b3[_0x19bf59],_0x486167=_0x2523b3[_0x19bf59+0x1],_0x13f79b=_0x2523b3[_0x19bf59-0x1]??_0x24e9fd,_0x232d5b=_0x2523b3[_0x19bf59+0x2]??_0x486167,_0x59d987={'x':_0x24e9fd['x']+(_0x486167['x']-_0x13f79b['x'])/0x6,'y':_0x24e9fd['y']+(_0x486167['y']-_0x13f79b['y'])/0x6},_0x5ed827={'x':_0x486167['x']-(_0x232d5b['x']-_0x24e9fd['x'])/0x6,'y':_0x486167['y']-(_0x232d5b['y']-_0x24e9fd['y'])/0x6};_0x3a6c0b['push']({'command':'C','points':[_0x59d987['x'],_0x59d987['y'],_0x5ed827['x'],_0x5ed827['y'],_0x486167['x'],_0x486167['y']]});}return _0x3a6c0b;}function q(_0x4db9c5){const _0x5e1956=_0x4ebf33;let {model:_0x22f77b,sourceModel:_0x589ef9=_0x22f77b,style:_0x54169b}=_0x4db9c5,_0x5d940e=_0x4db9c5[_0x5e1956(0x123)]??_0x22f77b[_0x5e1956(0xde)],_0x3044ac=R(_0x22f77b),_0x1cea92=_0x22f77b[_0x5e1956(0xde)]===_0x5e1956(0xcf)&&_0x5d940e!==_0x5e1956(0xcf)?_0x22f77b:void 0x0;return{'transform':{..._0x3044ac,'rotation':0x0},'shapeData':oe(_0x22f77b,_0x54169b),'ink':{'version':0x1,'tool':_0x5d940e,'sourceModel':_0x589ef9,..._0x1cea92?{'editModel':_0x1cea92}:{},'normalizedBounds':_0x3044ac}};}var se=_0x4ebf33(0xb4),ce=_0x4ebf33(0xdf);function J(_0x4b289b){'@babel/helpers - typeof';const _0xe6da87=_0x4ebf33;return J=typeof Symbol==_0xe6da87(0xd6)&&typeof Symbol[_0xe6da87(0xc6)]==_0xe6da87(0x110)?function(_0x872bc7){return typeof _0x872bc7;}:function(_0x413767){const _0x4ee626=_0xe6da87;return _0x413767&&typeof Symbol==_0x4ee626(0xd6)&&_0x413767['constructor']===Symbol&&_0x413767!==Symbol[_0x4ee626(0xf6)]?_0x4ee626(0x110):typeof _0x413767;},J(_0x4b289b);}function le(_0x572844,_0x2f1b8a){const _0x258d01=_0x4ebf33;if(J(_0x572844)!=_0x258d01(0x116)||!_0x572844)return _0x572844;var _0x5f45cc=_0x572844[Symbol[_0x258d01(0xfb)]];if(_0x5f45cc!==void 0x0){var _0x1e63c2=_0x5f45cc[_0x258d01(0x114)](_0x572844,_0x2f1b8a||_0x258d01(0x117));if(J(_0x1e63c2)!='object')return _0x1e63c2;throw TypeError(_0x258d01(0x10c));}return(_0x2f1b8a===_0x258d01(0xc2)?String:Number)(_0x572844);}function ue(_0x5dead4){const _0x4fa7b3=_0x4ebf33;var _0x1dad8e=le(_0x5dead4,_0x4fa7b3(0xc2));return J(_0x1dad8e)==_0x4fa7b3(0x110)?_0x1dad8e:_0x1dad8e+'';}function Y(_0x2493bc,_0x3d0146,_0xa56015){const _0x2bf9ce=_0x4ebf33;return(_0x3d0146=ue(_0x3d0146))in _0x2493bc?Object[_0x2bf9ce(0x112)](_0x2493bc,_0x3d0146,{'value':_0xa56015,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2493bc[_0x3d0146]=_0xa56015,_0x2493bc;}const X=(0x0,n[_0x4ebf33(0x105)])(_0x4ebf33(0xbc));var de=class{constructor(){Y(this,'_adapters',[]);}['registerAdapter'](_0x3ca5ea){const _0x2ea2e9=_0x4ebf33;return this[_0x2ea2e9(0xd8)]['push'](_0x3ca5ea),(0x0,n['toDisposable'])(()=>{const _0x24a64b=_0x2ea2e9;let _0x2dbd8f=this['_adapters'][_0x24a64b(0xe8)](_0x3ca5ea);_0x2dbd8f>=0x0&&this[_0x24a64b(0xd8)]['splice'](_0x2dbd8f,0x1);});}[_0x4ebf33(0x122)](_0x388fbd){const _0x41019d=_0x4ebf33;for(let _0x32f173 of this['_adapters'])if(_0x32f173[_0x41019d(0x122)](_0x388fbd))return!0x0;return!0x1;}async[_0x4ebf33(0xb5)](_0x5c3655){const _0x1b4e8b=_0x4ebf33;for(let _0x220da8 of this[_0x1b4e8b(0xd8)])if(_0x220da8[_0x1b4e8b(0xb5)]&&await _0x220da8[_0x1b4e8b(0xb5)](_0x5c3655))return!0x0;return!0x1;}};function _0x3356(_0x36aafd,_0x37f232){_0x36aafd=_0x36aafd-0xab;const _0x27dd2f=_0x27dd();let _0x3356e1=_0x27dd2f[_0x36aafd];return _0x3356e1;}const fe={'id':'ink.operation.start','type':n[_0x4ebf33(0x104)]['OPERATION'],'handler':(_0x96e69c,_0x343260)=>_0x343260?_0x96e69c[_0x4ebf33(0x113)](X)[_0x4ebf33(0x122)](_0x343260):!0x1},Z={};function Q(_0x47b078,_0x71d4e2){return function(_0x2730c7,_0x31f90a){_0x71d4e2(_0x2730c7,_0x31f90a,_0x47b078);};}function pe(_0x4fc3b3,_0xa7cfbe,_0x385895,_0x3cde1e){const _0x49884d=_0x4ebf33;var _0x32251f=arguments[_0x49884d(0xf3)],_0x1f9602=_0x32251f<0x3?_0xa7cfbe:_0x3cde1e===null?_0x3cde1e=Object[_0x49884d(0xd4)](_0xa7cfbe,_0x385895):_0x3cde1e,_0x1dddb6;if(typeof Reflect==_0x49884d(0x116)&&typeof Reflect['decorate']==_0x49884d(0xd6))_0x1f9602=Reflect[_0x49884d(0x126)](_0x4fc3b3,_0xa7cfbe,_0x385895,_0x3cde1e);else{for(var _0x3e4a42=_0x4fc3b3[_0x49884d(0xf3)]-0x1;_0x3e4a42>=0x0;_0x3e4a42--)(_0x1dddb6=_0x4fc3b3[_0x3e4a42])&&(_0x1f9602=(_0x32251f<0x3?_0x1dddb6(_0x1f9602):_0x32251f>0x3?_0x1dddb6(_0xa7cfbe,_0x385895,_0x1f9602):_0x1dddb6(_0xa7cfbe,_0x385895))||_0x1f9602);}return _0x32251f>0x3&&_0x1f9602&&Object[_0x49884d(0x112)](_0xa7cfbe,_0x385895,_0x1f9602),_0x1f9602;}let $=class extends n[_0x4ebf33(0xc9)]{constructor(_0x1e2503=Z,_0x189603,_0x466d4b,_0x3bb590){const _0x47ecbf=_0x4ebf33;super(),this[_0x47ecbf(0xf1)]=_0x1e2503,this['_injector']=_0x189603,this['_commandService']=_0x466d4b,this['_configService']=_0x3bb590;let {..._0x5a7e5a}=(0x0,n[_0x47ecbf(0xd5)])({},Z,this['_config']);this[_0x47ecbf(0xec)][_0x47ecbf(0xfd)](_0x47ecbf(0xef),_0x5a7e5a);}['onStarting'](){const _0x4fe41e=_0x4ebf33;[[X,{'useClass':de}]][_0x4fe41e(0x118)](_0xafbd7f=>this[_0x4fe41e(0x124)][_0x4fe41e(0xe5)](_0xafbd7f)),this[_0x4fe41e(0xda)](this['_commandService']['registerCommand'](fe));}};Y($,_0x4ebf33(0xe2),_0x4ebf33(0x115)),Y($,_0x4ebf33(0xcc),se),Y($,_0x4ebf33(0xbf),ce),Y($,_0x4ebf33(0x121),n[_0x4ebf33(0x108)][_0x4ebf33(0xf5)]),$=pe([(0x0,n[_0x4ebf33(0xd0)])(t[_0x4ebf33(0xc4)]),Q(0x1,(0x0,n[_0x4ebf33(0xe7)])(n[_0x4ebf33(0xc0)])),Q(0x2,n[_0x4ebf33(0x11b)]),Q(0x3,n[_0x4ebf33(0x127)])],$),exports['IInkHostAdapterService']=X,Object['defineProperty'](exports,_0x4ebf33(0x107),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x4ebf33(0xf0)]=q,exports['convertBrushModelToPenModel']=re,exports[_0x4ebf33(0xbd)]=E,exports[_0x4ebf33(0xdb)]=w,exports[_0x4ebf33(0x102)]=ie,exports[_0x4ebf33(0x100)]=S,exports[_0x4ebf33(0xb9)]=R,exports['getInkPenPreviewModel']=x,exports['insertInkPenAnchorAt']=C,exports[_0x4ebf33(0x11f)]=p,exports[_0x4ebf33(0xb7)]=ae,exports['setInkPenAnchorPointType']=T;
|
|
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;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
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};
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x43396f=_0x5b63;(function(_0x4c39c7,_0xda322d){const _0x232cbc=_0x5b63,_0x2be235=_0x4c39c7();while(!![]){try{const _0x28d0f5=-parseInt(_0x232cbc(0x1b5))/0x1+parseInt(_0x232cbc(0x1ab))/0x2*(-parseInt(_0x232cbc(0x1cb))/0x3)+-parseInt(_0x232cbc(0x1df))/0x4*(-parseInt(_0x232cbc(0x19c))/0x5)+-parseInt(_0x232cbc(0x1cc))/0x6*(-parseInt(_0x232cbc(0x1c4))/0x7)+-parseInt(_0x232cbc(0x1b7))/0x8*(-parseInt(_0x232cbc(0x1c7))/0x9)+-parseInt(_0x232cbc(0x1e7))/0xa*(-parseInt(_0x232cbc(0x1d0))/0xb)+-parseInt(_0x232cbc(0x1c9))/0xc;if(_0x28d0f5===_0xda322d)break;else _0x2be235['push'](_0x2be235['shift']());}catch(_0xa02555){_0x2be235['push'](_0x2be235['shift']());}}}(_0x2e72,0x2f376));import{ShapeFillEnum as _0x1415aa,ShapeLineCapEnum as _0x470397,ShapeLineJoinEnum as _0x34e189,ShapeLineTypeEnum as _0x2148f9,ShapeTypeEnum as _0x46da06}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x5cf441}from'@univerjs-pro/license';import{CommandType as _0x291e91,DependentOn as _0x40586b,ICommandService as _0x1fafaa,IConfigService as _0x214ca1,Inject as _0x4a0035,Injector as _0x5e60e7,Plugin as _0x23a329,UniverInstanceType as _0x4b2236,createIdentifier as _0x3acfc4,merge as _0x488fc2,toDisposable as _0x5c9d22}from'@univerjs/core';const g=0.0001;function _(_0x4ec654){return{'x':_0x4ec654['x'],'y':_0x4ec654['y']};}function v(_0x29d4c8){const _0x1144ff=_0x5b63;return{..._0x29d4c8,'in':_0x29d4c8['in']?_(_0x29d4c8['in']):void 0x0,'out':_0x29d4c8[_0x1144ff(0x1e5)]?_(_0x29d4c8[_0x1144ff(0x1e5)]):void 0x0};}function y(_0x975f0){const _0x549241=_0x5b63;return{'kind':_0x549241(0x1dc),'closed':_0x975f0['closed'],'anchors':_0x975f0[_0x549241(0x1f0)][_0x549241(0x196)](v)};}function b(_0x47445f,_0x552e91,_0x45e702){return{'x':_0x47445f['x']+(_0x552e91['x']-_0x47445f['x'])*_0x45e702,'y':_0x47445f['y']+(_0x552e91['y']-_0x47445f['y'])*_0x45e702};}function x(_0x4239f2,_0x2e359c){const _0x3d644b=_0x5b63;return Math[_0x3d644b(0x1ca)](_0x4239f2['x']-_0x2e359c['x'],_0x4239f2['y']-_0x2e359c['y']);}function S(_0x4e1cc6){let _0x47a728=Math['hypot'](_0x4e1cc6['x'],_0x4e1cc6['y']);return _0x47a728<g?{'x':0x1,'y':0x0}:{'x':_0x4e1cc6['x']/_0x47a728,'y':_0x4e1cc6['y']/_0x47a728};}function C(_0x2c4165,_0x7cf372,_0x1a625b=x(_0x2c4165,_0x7cf372)){let _0x42174e=S({'x':_0x2c4165['x']-_0x7cf372['x'],'y':_0x2c4165['y']-_0x7cf372['y']});return{'x':_0x2c4165['x']+_0x42174e['x']*_0x1a625b,'y':_0x2c4165['y']+_0x42174e['y']*_0x1a625b};}function w(_0x361a5c,_0x4153ef){const _0x2af2f7=_0x5b63;let {anchors:_0x31dbbe}=_0x361a5c;return _0x31dbbe[_0x2af2f7(0x1ad)]<0x2||_0x4153ef<0x0?null:_0x4153ef<_0x31dbbe[_0x2af2f7(0x1ad)]-0x1?{'startIndex':_0x4153ef,'endIndex':_0x4153ef+0x1,'start':_0x31dbbe[_0x4153ef],'end':_0x31dbbe[_0x4153ef+0x1]}:_0x361a5c['closed']&&_0x4153ef===_0x31dbbe[_0x2af2f7(0x1ad)]-0x1?{'startIndex':_0x31dbbe[_0x2af2f7(0x1ad)]-0x1,'endIndex':0x0,'start':_0x31dbbe[_0x31dbbe[_0x2af2f7(0x1ad)]-0x1],'end':_0x31dbbe[0x0]}:null;}function T(_0x4ee2f4,_0x269f1a){const _0x49dacf=_0x5b63;let _0x4b740a=w(_0x4ee2f4,_0x269f1a);return _0x4b740a?[_0x4b740a['start'],_0x4b740a['start'][_0x49dacf(0x1e5)]??_0x4b740a[_0x49dacf(0x1c6)],_0x4b740a['end']['in']??_0x4b740a[_0x49dacf(0x1b6)],_0x4b740a[_0x49dacf(0x1b6)]]:null;}function te(_0x2dd2df,_0x1aad87){const _0x31a03d=_0x5b63;return _0x1aad87===_0x31a03d(0x1ee)?_0x2dd2df:_0x2dd2df[_0x1aad87]??null;}function E(_0x186b29,_0x3c5daf,_0x64e68){const _0x3a9a78=_0x5b63;return _0x64e68===_0x3a9a78(0x1ee)||_0x186b29[_0x3a9a78(0x192)]?!0x0:_0x64e68==='in'?_0x3c5daf>0x0:_0x3c5daf<_0x186b29[_0x3a9a78(0x1f0)][_0x3a9a78(0x1ad)]-0x1;}function D(_0x3aa310,_0x5cce6e){let [_0x507bf3,_0x212d02,_0x1750a1,_0x1098c2]=_0x3aa310,_0x171bae=b(_0x507bf3,_0x212d02,_0x5cce6e),_0x29cd81=b(_0x212d02,_0x1750a1,_0x5cce6e),_0x5ba6b4=b(_0x1750a1,_0x1098c2,_0x5cce6e);return b(b(_0x171bae,_0x29cd81,_0x5cce6e),b(_0x29cd81,_0x5ba6b4,_0x5cce6e),_0x5cce6e);}function ne(_0x425162,_0x9db1fc){let [_0x3cb3eb,_0x345d80,_0xff87cb,_0x35154e]=_0x425162,_0xfa8fd1=b(_0x3cb3eb,_0x345d80,_0x9db1fc),_0x2835e3=b(_0x345d80,_0xff87cb,_0x9db1fc),_0x1a8089=b(_0xff87cb,_0x35154e,_0x9db1fc),_0x2c73b4=b(_0xfa8fd1,_0x2835e3,_0x9db1fc),_0x51e7f5=b(_0x2835e3,_0x1a8089,_0x9db1fc),_0x3d8224=b(_0x2c73b4,_0x51e7f5,_0x9db1fc);return{'left':[_0x3cb3eb,_0xfa8fd1,_0x2c73b4,_0x3d8224],'right':[_0x3d8224,_0x51e7f5,_0x1a8089,_0x35154e]};}function O(_0x1da999,_0x3e50b8,_0x5d2a6f){const _0x422541=_0x5b63;let _0x1efa5c=_0x5d2a6f['x']-_0x3e50b8['x'],_0x4fccbc=_0x5d2a6f['y']-_0x3e50b8['y'],_0x2e2b47=_0x1efa5c*_0x1efa5c+_0x4fccbc*_0x4fccbc,_0x4491ea=_0x2e2b47<=g?0x0:Math[_0x422541(0x1c5)](0x0,Math[_0x422541(0x1de)](0x1,((_0x1da999['x']-_0x3e50b8['x'])*_0x1efa5c+(_0x1da999['y']-_0x3e50b8['y'])*_0x4fccbc)/_0x2e2b47)),_0x465e22={'x':_0x3e50b8['x']+_0x1efa5c*_0x4491ea,'y':_0x3e50b8['y']+_0x4fccbc*_0x4491ea};return{'point':_0x465e22,'ratio':_0x4491ea,'distance':x(_0x1da999,_0x465e22)};}function re(_0x3cff44,_0x1d2224,_0x12ee58){const _0x20d29b=_0x5b63;return O(_0x3cff44,_0x1d2224,_0x12ee58)[_0x20d29b(0x1a2)]**0x2;}function k(_0x138460,_0x2d1853){const _0x2c2f3f=_0x5b63;if(_0x138460[_0x2c2f3f(0x1ad)]<=0x2)return _0x138460['map'](_);let _0x3e1b2d=0x0,_0x14b18e=0x0,_0x5eeb76=_0x138460[0x0],_0x1bbf4b=_0x138460[_0x138460[_0x2c2f3f(0x1ad)]-0x1],_0x3923c9=_0x2d1853*_0x2d1853;for(let _0x231204=0x1;_0x231204<_0x138460['length']-0x1;_0x231204++){let _0x4d01a6=re(_0x138460[_0x231204],_0x5eeb76,_0x1bbf4b);_0x4d01a6>_0x3e1b2d&&(_0x3e1b2d=_0x4d01a6,_0x14b18e=_0x231204);}if(_0x3e1b2d<=_0x3923c9)return[_(_0x5eeb76),_(_0x1bbf4b)];let _0x3eda5c=k(_0x138460[_0x2c2f3f(0x1ac)](0x0,_0x14b18e+0x1),_0x2d1853),_0xa5f11a=k(_0x138460[_0x2c2f3f(0x1ac)](_0x14b18e),_0x2d1853);return[..._0x3eda5c['slice'](0x0,-0x1),..._0xa5f11a];}function ie(_0x1b7adf,_0x2f2ada){let _0x3b78b5=_0x1b7adf[_0x2f2ada],_0x35f91b=_0x1b7adf[_0x2f2ada+0x1],_0x4a7258=_0x1b7adf[_0x2f2ada-0x1]??_0x3b78b5;return{'x':_0x3b78b5['x']+(_0x35f91b['x']-_0x4a7258['x'])/0x6,'y':_0x3b78b5['y']+(_0x35f91b['y']-_0x4a7258['y'])/0x6};}function A(_0x2a4cb0,_0x3f14ca){let _0x40aaf7=_0x2a4cb0[_0x3f14ca],_0x4de17b=_0x2a4cb0[_0x3f14ca-0x1],_0x35921f=_0x2a4cb0[_0x3f14ca+0x1]??_0x40aaf7;return{'x':_0x40aaf7['x']-(_0x35921f['x']-_0x4de17b['x'])/0x6,'y':_0x40aaf7['y']-(_0x35921f['y']-_0x4de17b['y'])/0x6};}function j(_0x408c38,_0x50395c){const _0x5e790e=_0x5b63;let _0x52d51b=_0x408c38['anchors'][_0x50395c],_0x5f4790=_0x408c38[_0x5e790e(0x1f0)][_0x50395c-0x1]??(_0x408c38[_0x5e790e(0x192)]?_0x408c38['anchors'][_0x408c38[_0x5e790e(0x1f0)][_0x5e790e(0x1ad)]-0x1]:null),_0x70b51c=_0x408c38[_0x5e790e(0x1f0)][_0x50395c+0x1]??(_0x408c38[_0x5e790e(0x192)]?_0x408c38[_0x5e790e(0x1f0)][0x0]:null),_0x3dd1b7=_0x5f4790&&_0x70b51c?S({'x':_0x70b51c['x']-_0x5f4790['x'],'y':_0x70b51c['y']-_0x5f4790['y']}):_0x70b51c?S({'x':_0x70b51c['x']-_0x52d51b['x'],'y':_0x70b51c['y']-_0x52d51b['y']}):_0x5f4790?S({'x':_0x52d51b['x']-_0x5f4790['x'],'y':_0x52d51b['y']-_0x5f4790['y']}):{'x':0x1,'y':0x0},_0x39e097=_0x5f4790&&_0x70b51c?Math[_0x5e790e(0x1c5)](0x32,x(_0x5f4790,_0x70b51c)/0x4):0x32;return{'in':{'x':_0x52d51b['x']-_0x3dd1b7['x']*_0x39e097,'y':_0x52d51b['y']-_0x3dd1b7['y']*_0x39e097},'out':{'x':_0x52d51b['x']+_0x3dd1b7['x']*_0x39e097,'y':_0x52d51b['y']+_0x3dd1b7['y']*_0x39e097}};}function M(_0xde4f53,_0x543632){const _0x211b55=_0x5b63;let _0x3bbe5a=_0xde4f53[_0x543632],_0x436761=_0x543632==='in'?'out':'in',_0x2577be=_0xde4f53[_0x436761];_0x3bbe5a&&(_0xde4f53[_0x211b55(0x1ba)]===_0x211b55(0x1da)?_0xde4f53[_0x436761]=C(_0xde4f53,_0x3bbe5a):_0xde4f53[_0x211b55(0x1ba)]===_0x211b55(0x1a6)&&(_0xde4f53[_0x436761]=C(_0xde4f53,_0x3bbe5a,_0x2577be?x(_0xde4f53,_0x2577be):x(_0xde4f53,_0x3bbe5a))));}function ae(_0x361f78,_0x4b0a66){const _0x3e0528=_0x5b63;let _0x21564a=y(_0x361f78);return!_0x4b0a66||_0x21564a[_0x3e0528(0x192)]||_0x21564a[_0x3e0528(0x1f0)][_0x3e0528(0x1ad)]===0x0||_0x21564a[_0x3e0528(0x1f0)][_0x3e0528(0x199)]({'id':_0x3e0528(0x1e9),'x':_0x4b0a66['x'],'y':_0x4b0a66['y'],'pointType':_0x3e0528(0x1c8)}),_0x21564a;}function oe(_0x171597,_0x23ad12={}){const _0x585999=_0x5b63;let _0x33fb6a=Math[_0x585999(0x1c5)](0x0,_0x23ad12['tolerance']??Math['max'](0x4,_0x171597[_0x585999(0x1c3)]*0.35)),_0xa8f2a6=_0x23ad12[_0x585999(0x1a8)]??(_0x10e982=>'ink-centerline-'+_0x10e982),_0x2b86f1=k(_0x171597[_0x585999(0x195)],_0x33fb6a),_0x5406e1=_0x2b86f1['map']((_0x28bbfa,_0x2ff424)=>({'id':_0xa8f2a6(_0x2ff424),'x':_0x28bbfa['x'],'y':_0x28bbfa['y'],'pointType':_0x585999(0x1ea)}));for(let _0x235b0d=0x0;_0x235b0d<_0x5406e1[_0x585999(0x1ad)]-0x1;_0x235b0d++)_0x5406e1[_0x235b0d][_0x585999(0x1e5)]=ie(_0x2b86f1,_0x235b0d),_0x5406e1[_0x235b0d+0x1]['in']=A(_0x2b86f1,_0x235b0d+0x1);return{'kind':_0x585999(0x1dc),'closed':!0x1,'anchors':_0x5406e1};}function se(_0x58fda9,_0x4d3928,_0x51dcbb){const _0x17c666=_0x5b63;let _0x44aca8=null,_0x5bc17b=[_0x17c666(0x1ee),'in',_0x17c666(0x1e5)];return _0x58fda9[_0x17c666(0x1f0)][_0x17c666(0x19e)]((_0x360f6a,_0x42da95)=>{const _0x15339=_0x17c666;_0x5bc17b[_0x15339(0x19e)](_0x55de48=>{const _0x1beed8=_0x15339;if(!E(_0x58fda9,_0x42da95,_0x55de48))return;let _0x4799f3=te(_0x360f6a,_0x55de48);if(!_0x4799f3)return;let _0x1dfcb1=x(_0x4d3928,_0x4799f3);_0x1dfcb1>_0x51dcbb||_0x44aca8&&_0x1dfcb1>=_0x44aca8[_0x1beed8(0x1a2)]||(_0x44aca8={'handle':{'kind':_0x55de48,'anchorId':_0x360f6a['id']},'point':_(_0x4799f3),'distance':_0x1dfcb1});});}),_0x44aca8;}function ce(_0x25c6f9,_0x936968,_0x217cd5){const _0x162939=_0x5b63;let _0x300196=null,_0x3b5600=_0x25c6f9[_0x162939(0x192)]?_0x25c6f9[_0x162939(0x1f0)]['length']:Math['max'](0x0,_0x25c6f9['anchors']['length']-0x1);for(let _0xdd6ac4=0x0;_0xdd6ac4<_0x3b5600;_0xdd6ac4++){let _0x513128=T(_0x25c6f9,_0xdd6ac4);if(!_0x513128)continue;let _0x3fa3d0=D(_0x513128,0x0);for(let _0x21494c=0x1;_0x21494c<=0x20;_0x21494c++){let _0x5a1a35=D(_0x513128,_0x21494c/0x20),_0x3ea94b=O(_0x936968,_0x3fa3d0,_0x5a1a35),_0xbd4031=(_0x21494c-0x1+_0x3ea94b['ratio'])/0x20;(!_0x300196||_0x3ea94b[_0x162939(0x1a2)]<_0x300196['distance'])&&(_0x300196={'segmentIndex':_0xdd6ac4,'t':_0xbd4031,'point':_0x3ea94b[_0x162939(0x1e0)],'distance':_0x3ea94b[_0x162939(0x1a2)]}),_0x3fa3d0=_0x5a1a35;}}return _0x300196&&_0x300196[_0x162939(0x1a2)]<=_0x217cd5?_0x300196:null;}function le(_0x617879,_0x40d83e,_0x1830be){const _0x465052=_0x5b63;let _0xe7e6a2=y(_0x617879),_0x19456e=w(_0xe7e6a2,_0x40d83e['segmentIndex']),_0x3d2114=T(_0xe7e6a2,_0x40d83e[_0x465052(0x1af)]);if(!_0x19456e||!_0x3d2114)return _0xe7e6a2;let _0xf3e387=ne(_0x3d2114,Math['max'](0x0,Math['min'](0x1,_0x40d83e['t']))),_0x52463f={'id':_0x1830be(),'x':_0xf3e387[_0x465052(0x1ce)][0x3]['x'],'y':_0xf3e387[_0x465052(0x1ce)][0x3]['y'],'in':_(_0xf3e387[_0x465052(0x1ce)][0x2]),'out':_(_0xf3e387[_0x465052(0x1d4)][0x1]),'pointType':_0x465052(0x1ea)};return _0xe7e6a2[_0x465052(0x1f0)][_0x19456e[_0x465052(0x1d1)]][_0x465052(0x1e5)]=_(_0xf3e387['left'][0x1]),_0xe7e6a2['anchors'][_0x19456e[_0x465052(0x1cf)]]['in']=_(_0xf3e387[_0x465052(0x1d4)][0x2]),_0xe7e6a2[_0x465052(0x1f0)]['splice'](_0x19456e[_0x465052(0x1d1)]+0x1,0x0,_0x52463f),_0xe7e6a2;}function ue(_0x2a5859,_0x214708){const _0x30fadd=_0x5b63;let _0x4b1f8d=y(_0x2a5859);return _0x4b1f8d['anchors']=_0x4b1f8d[_0x30fadd(0x1f0)]['filter'](_0x31d649=>_0x31d649['id']!==_0x214708),_0x4b1f8d['closed']&&_0x4b1f8d[_0x30fadd(0x1f0)][_0x30fadd(0x1ad)]<0x3&&(_0x4b1f8d[_0x30fadd(0x192)]=!0x1),_0x4b1f8d;}function _0x5b63(_0x5d7baa,_0xe0f7b1){_0x5d7baa=_0x5d7baa-0x192;const _0x2e7274=_0x2e72();let _0x5b6305=_0x2e7274[_0x5d7baa];return _0x5b6305;}function N(_0x4e91ce,_0x29da09,_0x56f6d4){const _0xcef981=_0x5b63;let _0x1580e8=y(_0x4e91ce),_0x46fe69=_0x1580e8[_0xcef981(0x1f0)][_0xcef981(0x1cd)](_0x13e044=>_0x13e044['id']===_0x29da09),_0x437eac=_0x1580e8[_0xcef981(0x1f0)][_0x46fe69];if(!_0x437eac)return _0x1580e8;if(_0x437eac[_0xcef981(0x1ba)]=_0x56f6d4,_0x56f6d4==='corner')return delete _0x437eac['in'],delete _0x437eac[_0xcef981(0x1e5)],_0x1580e8;let _0x516e33=j(_0x1580e8,_0x46fe69);if(_0x437eac['in']=_0x437eac['in']?_(_0x437eac['in']):_0x516e33['in'],_0x437eac[_0xcef981(0x1e5)]=_0x437eac[_0xcef981(0x1e5)]?_(_0x437eac[_0xcef981(0x1e5)]):_0x516e33[_0xcef981(0x1e5)],_0x56f6d4===_0xcef981(0x1da)){let _0x1e4ec2=Math[_0xcef981(0x1c5)](x(_0x437eac,_0x437eac['in']),x(_0x437eac,_0x437eac[_0xcef981(0x1e5)]),0x32),_0x55293d=S({'x':_0x437eac[_0xcef981(0x1e5)]['x']-_0x437eac['x'],'y':_0x437eac[_0xcef981(0x1e5)]['y']-_0x437eac['y']});_0x437eac['out']={'x':_0x437eac['x']+_0x55293d['x']*_0x1e4ec2,'y':_0x437eac['y']+_0x55293d['y']*_0x1e4ec2},_0x437eac['in']={'x':_0x437eac['x']-_0x55293d['x']*_0x1e4ec2,'y':_0x437eac['y']-_0x55293d['y']*_0x1e4ec2};}else _0x56f6d4==='smooth'&&M(_0x437eac,_0xcef981(0x1e5));return _0x1580e8;}function P(_0x3b045a,_0xcdb09e){const _0x45f1ba=_0x5b63;let _0x1ec69d=_0x3b045a[_0x45f1ba(0x1f0)][_0x45f1ba(0x1b9)](_0x2a6b10=>_0x2a6b10['id']===_0xcdb09e),_0x3862a2=(_0x1ec69d==null?void 0x0:_0x1ec69d[_0x45f1ba(0x1ba)])??_0x45f1ba(0x1c8);return N(_0x3b045a,_0xcdb09e,_0x3862a2==='corner'?_0x45f1ba(0x1a6):_0x3862a2===_0x45f1ba(0x1a6)?_0x45f1ba(0x1da):_0x3862a2===_0x45f1ba(0x1da)?_0x45f1ba(0x1ea):_0x45f1ba(0x1c8));}function F(_0x1740c2,_0x2c61fc,_0x14584b){const _0x434dbc=_0x5b63;let _0x241490=y(_0x1740c2),_0x3909a8=_0x241490['anchors']['find'](_0x3caa35=>_0x3caa35['id']===_0x2c61fc['anchorId']);if(!_0x3909a8)return _0x241490;if(_0x2c61fc[_0x434dbc(0x1b4)]===_0x434dbc(0x1ee)){let _0x592235={'x':_0x14584b['x']-_0x3909a8['x'],'y':_0x14584b['y']-_0x3909a8['y']};return _0x3909a8['x']=_0x14584b['x'],_0x3909a8['y']=_0x14584b['y'],_0x3909a8['in']&&={'x':_0x3909a8['in']['x']+_0x592235['x'],'y':_0x3909a8['in']['y']+_0x592235['y']},_0x3909a8[_0x434dbc(0x1e5)]&&={'x':_0x3909a8[_0x434dbc(0x1e5)]['x']+_0x592235['x'],'y':_0x3909a8['out']['y']+_0x592235['y']},_0x241490;}return _0x3909a8[_0x2c61fc[_0x434dbc(0x1b4)]]=_(_0x14584b),_0x3909a8[_0x434dbc(0x1ba)]===_0x434dbc(0x1c8)&&(_0x3909a8[_0x434dbc(0x1ba)]=_0x434dbc(0x1ea)),M(_0x3909a8,_0x2c61fc[_0x434dbc(0x1b4)]),_0x241490;}const I=1e-9;function L(_0x1af70c){const _0x3fe7f2=_0x5b63;let _0x5dd935=Math[_0x3fe7f2(0x197)](_0x1af70c*0x2710)/0x2710;return Object['is'](_0x5dd935,-0x0)?'0':String(_0x5dd935);}function R(_0x38220b){return L(_0x38220b['x'])+'\x20'+L(_0x38220b['y']);}function z(_0x30ce80,_0x175b51){return{'x':_0x30ce80['x']-_0x175b51['x'],'y':_0x30ce80['y']-_0x175b51['y']};}function B(_0x4b816f,_0x3915b3,_0x5c78b8,_0x17cfe7,_0x1816ec){let _0x56581d=0x1-_0x1816ec;return{'x':_0x56581d*_0x56581d*_0x56581d*_0x4b816f['x']+0x3*_0x56581d*_0x56581d*_0x1816ec*_0x3915b3['x']+0x3*_0x56581d*_0x1816ec*_0x1816ec*_0x5c78b8['x']+_0x1816ec*_0x1816ec*_0x1816ec*_0x17cfe7['x'],'y':_0x56581d*_0x56581d*_0x56581d*_0x4b816f['y']+0x3*_0x56581d*_0x56581d*_0x1816ec*_0x3915b3['y']+0x3*_0x56581d*_0x1816ec*_0x1816ec*_0x5c78b8['y']+_0x1816ec*_0x1816ec*_0x1816ec*_0x17cfe7['y']};}function V(_0x18e54d,_0x5813d1,_0x545969,_0x32312c){const _0x41c53f=_0x5b63;let _0x4b9f73=-_0x18e54d+0x3*_0x5813d1-0x3*_0x545969+_0x32312c,_0x14e391=0x3*_0x18e54d-0x6*_0x5813d1+0x3*_0x545969,_0x39476b=-0x3*_0x18e54d+0x3*_0x5813d1,_0x466e48=[];if(Math[_0x41c53f(0x1ef)](_0x4b9f73)<I){if(Math[_0x41c53f(0x1ef)](_0x14e391)<I)return _0x466e48;let _0x47b5c2=-_0x39476b/(0x2*_0x14e391);return _0x47b5c2>0x0&&_0x47b5c2<0x1&&_0x466e48[_0x41c53f(0x199)](_0x47b5c2),_0x466e48;}let _0x4691fd=_0x14e391*_0x14e391-0x3*_0x4b9f73*_0x39476b;if(_0x4691fd<0x0)return _0x466e48;let _0x567805=Math[_0x41c53f(0x1eb)](Math[_0x41c53f(0x1c5)](0x0,_0x4691fd)),_0x336e74=(-_0x14e391+_0x567805)/(0x3*_0x4b9f73),_0x579f5b=(-_0x14e391-_0x567805)/(0x3*_0x4b9f73);return _0x336e74>0x0&&_0x336e74<0x1&&_0x466e48['push'](_0x336e74),_0x579f5b>0x0&&_0x579f5b<0x1&&Math[_0x41c53f(0x1ef)](_0x579f5b-_0x336e74)>I&&_0x466e48['push'](_0x579f5b),_0x466e48;}function H(_0x5ced87,_0xf5e7c,_0x2aebb5,_0x146f57,_0xef08be){const _0x55dcce=_0x5b63;_0x5ced87[_0x55dcce(0x199)](_0xf5e7c,_0xef08be),new Set([...V(_0xf5e7c['x'],_0x2aebb5['x'],_0x146f57['x'],_0xef08be['x']),...V(_0xf5e7c['y'],_0x2aebb5['y'],_0x146f57['y'],_0xef08be['y'])])['forEach'](_0x5de4d9=>{const _0x34e751=_0x55dcce;_0x5ced87[_0x34e751(0x199)](B(_0xf5e7c,_0x2aebb5,_0x146f57,_0xef08be,_0x5de4d9));});}function U(_0x1333aa){const _0x7e9915=_0x5b63;let _0x2986be=_0x1333aa[_0x7e9915(0x1f0)];if(_0x2986be[_0x7e9915(0x1ad)]<=0x1)return _0x2986be;let _0x5cbc52=[];for(let _0x35e4b6=0x1;_0x35e4b6<_0x2986be[_0x7e9915(0x1ad)];_0x35e4b6++){let _0x18fb54=_0x2986be[_0x35e4b6-0x1],_0x37b667=_0x2986be[_0x35e4b6];H(_0x5cbc52,_0x18fb54,_0x18fb54[_0x7e9915(0x1e5)]??_0x18fb54,_0x37b667['in']??_0x37b667,_0x37b667);}if(_0x1333aa[_0x7e9915(0x192)]&&_0x2986be[_0x7e9915(0x1ad)]>0x1){let _0x2ef0cf=_0x2986be[_0x2986be[_0x7e9915(0x1ad)]-0x1],_0x39d297=_0x2986be[0x0];H(_0x5cbc52,_0x2ef0cf,_0x2ef0cf[_0x7e9915(0x1e5)]??_0x2ef0cf,_0x39d297['in']??_0x39d297,_0x39d297);}return _0x5cbc52;}function de(_0x4e31a3){const _0x2bbfe9=_0x5b63;let _0x604d13=_0x4e31a3[_0x2bbfe9(0x195)];if(_0x604d13[_0x2bbfe9(0x1ad)]<=0x1)return _0x604d13;let _0x4dfb6b=[];for(let _0x151291=0x0;_0x151291<_0x604d13['length']-0x1;_0x151291++){let _0xecb5ef=_0x604d13[_0x151291],_0x3c0222=_0x604d13[_0x151291+0x1],_0x1472b0=_0x604d13[_0x151291-0x1]??_0xecb5ef,_0x45ea24=_0x604d13[_0x151291+0x2]??_0x3c0222;H(_0x4dfb6b,_0xecb5ef,{'x':_0xecb5ef['x']+(_0x3c0222['x']-_0x1472b0['x'])/0x6,'y':_0xecb5ef['y']+(_0x3c0222['y']-_0x1472b0['y'])/0x6},{'x':_0x3c0222['x']-(_0x45ea24['x']-_0xecb5ef['x'])/0x6,'y':_0x3c0222['y']-(_0x45ea24['y']-_0xecb5ef['y'])/0x6},_0x3c0222);}return _0x4dfb6b;}function fe(_0x172440){const _0x6fc696=_0x5b63;return _0x172440[_0x6fc696(0x1b4)]===_0x6fc696(0x1dc)?U(_0x172440):de(_0x172440);}function W(_0x4e2575){const _0x4fcd51=_0x5b63;let _0x4d4ea1=Math[_0x4fcd51(0x197)](_0x4e2575*0x2710)/0x2710;return Object['is'](_0x4d4ea1,-0x0)?0x0:_0x4d4ea1;}function G(_0x332840){const _0x1a3809=_0x5b63;let _0x23f35e=fe(_0x332840);if(_0x23f35e[_0x1a3809(0x1ad)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x3211cf=Math['min'](..._0x23f35e[_0x1a3809(0x196)](_0x9432b5=>_0x9432b5['x'])),_0x11de0d=Math['min'](..._0x23f35e[_0x1a3809(0x196)](_0x3d21bd=>_0x3d21bd['y'])),_0x4de426=Math[_0x1a3809(0x1c5)](..._0x23f35e['map'](_0x466622=>_0x466622['x'])),_0x1d9d91=Math['max'](..._0x23f35e['map'](_0x201f1f=>_0x201f1f['y']));return{'left':W(_0x3211cf),'top':W(_0x11de0d),'width':W(Math['max'](0x1,_0x4de426-_0x3211cf)),'height':W(Math['max'](0x1,_0x1d9d91-_0x11de0d))};}function pe(_0x521836,_0x4fdbc0){const _0x34b0a2=_0x5b63;let _0x19e0a9=_0x521836['anchors'];if(_0x19e0a9[_0x34b0a2(0x1ad)]===0x0)return'';let _0x1d8e3d=['M\x20'+R(z(_0x19e0a9[0x0],_0x4fdbc0))];for(let _0x487fe1=0x1;_0x487fe1<_0x19e0a9[_0x34b0a2(0x1ad)];_0x487fe1++){let _0x5ec2ca=_0x19e0a9[_0x487fe1-0x1],_0x18235d=_0x19e0a9[_0x487fe1],_0x2acc6a=_0x5ec2ca[_0x34b0a2(0x1e5)]??_0x5ec2ca,_0x2a898c=_0x18235d['in']??_0x18235d;_0x1d8e3d[_0x34b0a2(0x199)]('C\x20'+R(z(_0x2acc6a,_0x4fdbc0))+'\x20'+R(z(_0x2a898c,_0x4fdbc0))+'\x20'+R(z(_0x18235d,_0x4fdbc0)));}if(_0x521836[_0x34b0a2(0x192)]&&_0x19e0a9[_0x34b0a2(0x1ad)]>0x1){let _0x3b31e9=_0x19e0a9[_0x19e0a9[_0x34b0a2(0x1ad)]-0x1],_0x29554c=_0x19e0a9[0x0],_0x1cdd63=_0x3b31e9[_0x34b0a2(0x1e5)]??_0x3b31e9,_0x5a814c=_0x29554c['in']??_0x29554c;_0x1d8e3d['push']('C\x20'+R(z(_0x1cdd63,_0x4fdbc0))+'\x20'+R(z(_0x5a814c,_0x4fdbc0))+'\x20'+R(z(_0x29554c,_0x4fdbc0))),_0x1d8e3d[_0x34b0a2(0x199)]('Z');}return _0x1d8e3d[_0x34b0a2(0x1d8)]('\x20');}function me(_0x259bd0,_0x1ef7ae){const _0x551ef0=_0x5b63;let _0x20ac1d=_0x259bd0[_0x551ef0(0x195)]['map'](_0x566651=>z(_0x566651,_0x1ef7ae));if(_0x20ac1d[_0x551ef0(0x1ad)]===0x0)return'';if(_0x20ac1d[_0x551ef0(0x1ad)]===0x1)return'M\x20'+R(_0x20ac1d[0x0]);let _0x5483c5=['M\x20'+R(_0x20ac1d[0x0])];for(let _0x5364da=0x0;_0x5364da<_0x20ac1d[_0x551ef0(0x1ad)]-0x1;_0x5364da++){let _0x256ccf=_0x20ac1d[_0x5364da],_0x52948f=_0x20ac1d[_0x5364da+0x1],_0x1997a1=_0x20ac1d[_0x5364da-0x1]??_0x256ccf,_0x14a1f7=_0x20ac1d[_0x5364da+0x2]??_0x52948f,_0x2d57bb={'x':_0x256ccf['x']+(_0x52948f['x']-_0x1997a1['x'])/0x6,'y':_0x256ccf['y']+(_0x52948f['y']-_0x1997a1['y'])/0x6},_0x3bcc5d={'x':_0x52948f['x']-(_0x14a1f7['x']-_0x256ccf['x'])/0x6,'y':_0x52948f['y']-(_0x14a1f7['y']-_0x256ccf['y'])/0x6};_0x5483c5[_0x551ef0(0x199)]('C\x20'+R(_0x2d57bb)+'\x20'+R(_0x3bcc5d)+'\x20'+R(_0x52948f));}return _0x5483c5[_0x551ef0(0x1d8)]('\x20');}function he(_0x37b641,_0x2ba77b){const _0x32ea8e=_0x5b63;return _0x37b641[_0x32ea8e(0x1b4)]==='pen'?pe(_0x37b641,_0x2ba77b):me(_0x37b641,_0x2ba77b);}function ge(_0x5a2fcc,_0xa3d057){const _0x1acc2e=_0x5b63;return _0xa3d057!=null&&_0xa3d057['color']?_0xa3d057[_0x1acc2e(0x1bb)]:_0x5a2fcc[_0x1acc2e(0x1b4)]===_0x1acc2e(0x1dc)?_0x1acc2e(0x1e2):_0x5a2fcc[_0x1acc2e(0x1bb)];}function _e(_0x3b9d70,_0x752241){const _0x109c0b=_0x5b63;return(_0x752241==null?void 0x0:_0x752241[_0x109c0b(0x1c3)])===void 0x0?_0x3b9d70[_0x109c0b(0x1b4)]===_0x109c0b(0x1dc)?0x2:_0x3b9d70[_0x109c0b(0x1c3)]:_0x752241[_0x109c0b(0x1c3)];}function ve(_0x2e92c3,_0x560d3c){const _0x48d22d=_0x5b63;return(_0x560d3c==null?void 0x0:_0x560d3c[_0x48d22d(0x1d2)])===void 0x0?_0x2e92c3[_0x48d22d(0x1b4)]===_0x48d22d(0x1dc)?void 0x0:_0x2e92c3[_0x48d22d(0x1d2)]:_0x560d3c['opacity'];}function _0x2e72(){const _0x3c1992=['10SlBgBP','Round','__ink-preview-anchor__','free','sqrt','_adapters','getOwnPropertyDescriptor','anchor','abs','anchors','decorate','default','closed','UNIVER_UNKNOWN','add','points','map','round','@univerjs-pro/ink','push','defineProperty','get','5Xmqjmh','tool','forEach','onStarting','ink.config','constructor','distance','type','iterator','_commandService','smooth','setConfig','createId','registerCommand','none','982mVvxAD','slice','length','_config','segmentIndex','function','Rect','pluginName','height','kind','316670DyGKJa','end','3704tRkUlk','version','find','pointType','color','splice','UNIVER_INK_PLUGIN','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','createCustomShape','NoFill','_configService','top','width','1239jCYypZ','max','start','3213NglzJw','corner','1199100VKswAW','hypot','171ICMRdA','1878XpbfCG','findIndex','left','endIndex','2225542HhWfXU','startIndex','opacity','disposeWithMe','right','OPERATION','packageName','indexOf','join','symbol','symmetric','beginInkMode','pen','ink.operation.start','min','859864gbakIV','point','SolidFill','#f54a45','1.1.0','object','out','string'];_0x2e72=function(){return _0x3c1992;};return _0x2e72();}function ye(_0x131423,_0x19c971){const _0x5184b9=_0x5b63;let _0x1b6b28=G(_0x131423),_0x1b42fa=he(_0x131423,{'x':_0x1b6b28[_0x5184b9(0x1ce)],'y':_0x1b6b28['top']}),_0x47d6ed=_0x131423['kind']==='pen'&&_0x131423['closed'],_0xb0a7fc=_0x19c971==null?void 0x0:_0x19c971['fillColor'];return{'shapeType':_0x46da06[_0x5184b9(0x1b1)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x1b6b28[_0x5184b9(0x1c3)],'h':_0x1b6b28[_0x5184b9(0x1b3)],'fill':_0x47d6ed?'norm':_0x5184b9(0x1aa),'stroke':!0x0,'data':_0x1b42fa,'dataArray':be(_0x131423,{'x':_0x1b6b28['left'],'y':_0x1b6b28[_0x5184b9(0x1c2)]})}]},'fill':_0x47d6ed&&_0xb0a7fc?{'color':_0xb0a7fc,'fillType':_0x1415aa[_0x5184b9(0x1e1)]}:{'fillType':_0x1415aa[_0x5184b9(0x1c0)]},'stroke':{'color':ge(_0x131423,_0x19c971),'width':_e(_0x131423,_0x19c971),'opacity':ve(_0x131423,_0x19c971),'lineStrokeType':_0x2148f9['SolidLine'],'capType':_0x470397['Round'],'lineJoinType':_0x34e189[_0x5184b9(0x1e8)]}};}function K(_0x182e0e,_0x8f2a71){return{'x':_0x182e0e['x']-_0x8f2a71['x'],'y':_0x182e0e['y']-_0x8f2a71['y']};}function be(_0x5948b9,_0x101a36){const _0x2de9fd=_0x5b63;if(_0x5948b9[_0x2de9fd(0x1b4)]===_0x2de9fd(0x1dc)){let _0x2684f9=_0x5948b9['anchors'];if(_0x2684f9['length']===0x0)return[];let _0x270b4e=K(_0x2684f9[0x0],_0x101a36),_0x5d0528=[{'command':'M','points':[_0x270b4e['x'],_0x270b4e['y']]}];for(let _0xcf056b=0x1;_0xcf056b<_0x2684f9[_0x2de9fd(0x1ad)];_0xcf056b++){let _0x3f163e=_0x2684f9[_0xcf056b-0x1],_0x18a7bd=_0x2684f9[_0xcf056b],_0x46b10e=K(_0x3f163e[_0x2de9fd(0x1e5)]??_0x3f163e,_0x101a36),_0x1663e2=K(_0x18a7bd['in']??_0x18a7bd,_0x101a36),_0x4dd78a=K(_0x18a7bd,_0x101a36);_0x5d0528[_0x2de9fd(0x199)]({'command':'C','points':[_0x46b10e['x'],_0x46b10e['y'],_0x1663e2['x'],_0x1663e2['y'],_0x4dd78a['x'],_0x4dd78a['y']]});}if(_0x5948b9[_0x2de9fd(0x192)]&&_0x2684f9[_0x2de9fd(0x1ad)]>0x1){let _0x2cd089=_0x2684f9[_0x2684f9[_0x2de9fd(0x1ad)]-0x1],_0x4fc80e=_0x2684f9[0x0],_0x5cdbc4=K(_0x2cd089[_0x2de9fd(0x1e5)]??_0x2cd089,_0x101a36),_0x2ff460=K(_0x4fc80e['in']??_0x4fc80e,_0x101a36),_0x2d8ee0=K(_0x4fc80e,_0x101a36);_0x5d0528[_0x2de9fd(0x199)]({'command':'C','points':[_0x5cdbc4['x'],_0x5cdbc4['y'],_0x2ff460['x'],_0x2ff460['y'],_0x2d8ee0['x'],_0x2d8ee0['y']]}),_0x5d0528[_0x2de9fd(0x199)]({'command':'z','points':[]});}return _0x5d0528;}let _0x5669d2=_0x5948b9[_0x2de9fd(0x195)]['map'](_0x4caf9d=>K(_0x4caf9d,_0x101a36));if(_0x5669d2['length']===0x0)return[];let _0x4c784c=[{'command':'M','points':[_0x5669d2[0x0]['x'],_0x5669d2[0x0]['y']]}];for(let _0xa6d83f=0x0;_0xa6d83f<_0x5669d2['length']-0x1;_0xa6d83f++){let _0x285a50=_0x5669d2[_0xa6d83f],_0x5f44af=_0x5669d2[_0xa6d83f+0x1],_0x39e52b=_0x5669d2[_0xa6d83f-0x1]??_0x285a50,_0x44ce54=_0x5669d2[_0xa6d83f+0x2]??_0x5f44af,_0x5a7713={'x':_0x285a50['x']+(_0x5f44af['x']-_0x39e52b['x'])/0x6,'y':_0x285a50['y']+(_0x5f44af['y']-_0x39e52b['y'])/0x6},_0x51106e={'x':_0x5f44af['x']-(_0x44ce54['x']-_0x285a50['x'])/0x6,'y':_0x5f44af['y']-(_0x44ce54['y']-_0x285a50['y'])/0x6};_0x4c784c[_0x2de9fd(0x199)]({'command':'C','points':[_0x5a7713['x'],_0x5a7713['y'],_0x51106e['x'],_0x51106e['y'],_0x5f44af['x'],_0x5f44af['y']]});}return _0x4c784c;}function xe(_0x3de858){const _0x1e6861=_0x5b63;let {model:_0x1f53ef,sourceModel:_0x1d9dc1=_0x1f53ef,style:_0x1a49da}=_0x3de858,_0xfa98f2=_0x3de858[_0x1e6861(0x19d)]??_0x1f53ef[_0x1e6861(0x1b4)],_0x53d9f1=G(_0x1f53ef),_0x1696c0=_0x1f53ef[_0x1e6861(0x1b4)]===_0x1e6861(0x1dc)&&_0xfa98f2!==_0x1e6861(0x1dc)?_0x1f53ef:void 0x0;return{'transform':{..._0x53d9f1,'rotation':0x0},'shapeData':ye(_0x1f53ef,_0x1a49da),'ink':{'version':0x1,'tool':_0xfa98f2,'sourceModel':_0x1d9dc1,..._0x1696c0?{'editModel':_0x1696c0}:{},'normalizedBounds':_0x53d9f1}};}var Se=_0x43396f(0x198),Ce=_0x43396f(0x1e3);function q(_0x327fcd){'@babel/helpers - typeof';const _0x555e03=_0x43396f;return q=typeof Symbol==_0x555e03(0x1b0)&&typeof Symbol[_0x555e03(0x1a4)]==_0x555e03(0x1d9)?function(_0x4653e8){return typeof _0x4653e8;}:function(_0x565e75){const _0x7cb9ff=_0x555e03;return _0x565e75&&typeof Symbol=='function'&&_0x565e75[_0x7cb9ff(0x1a1)]===Symbol&&_0x565e75!==Symbol['prototype']?_0x7cb9ff(0x1d9):typeof _0x565e75;},q(_0x327fcd);}function we(_0x4638e5,_0x37d457){const _0x50103e=_0x43396f;if(q(_0x4638e5)!=_0x50103e(0x1e4)||!_0x4638e5)return _0x4638e5;var _0x37cf59=_0x4638e5[Symbol['toPrimitive']];if(_0x37cf59!==void 0x0){var _0x3deef9=_0x37cf59['call'](_0x4638e5,_0x37d457||_0x50103e(0x1f2));if(q(_0x3deef9)!='object')return _0x3deef9;throw TypeError(_0x50103e(0x1be));}return(_0x37d457==='string'?String:Number)(_0x4638e5);}function J(_0x3960c5){const _0x1fef8a=_0x43396f;var _0x1727fe=we(_0x3960c5,_0x1fef8a(0x1e6));return q(_0x1727fe)==_0x1fef8a(0x1d9)?_0x1727fe:_0x1727fe+'';}function Y(_0x12dba5,_0x2776c5,_0x330d02){const _0x5a3df0=_0x43396f;return(_0x2776c5=J(_0x2776c5))in _0x12dba5?Object[_0x5a3df0(0x19a)](_0x12dba5,_0x2776c5,{'value':_0x330d02,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x12dba5[_0x2776c5]=_0x330d02,_0x12dba5;}const X=_0x3acfc4('ink.host-adapter.service');var Te=class{constructor(){const _0x4e989f=_0x43396f;Y(this,_0x4e989f(0x1ec),[]);}['registerAdapter'](_0x5e717d){const _0x5e17a1=_0x43396f;return this[_0x5e17a1(0x1ec)]['push'](_0x5e717d),_0x5c9d22(()=>{const _0x12a85d=_0x5e17a1;let _0x54eaca=this[_0x12a85d(0x1ec)][_0x12a85d(0x1d7)](_0x5e717d);_0x54eaca>=0x0&&this[_0x12a85d(0x1ec)][_0x12a85d(0x1bc)](_0x54eaca,0x1);});}[_0x43396f(0x1db)](_0x7e3f30){const _0x1c01a4=_0x43396f;for(let _0x1c865b of this[_0x1c01a4(0x1ec)])if(_0x1c865b[_0x1c01a4(0x1db)](_0x7e3f30))return!0x0;return!0x1;}async[_0x43396f(0x1bf)](_0xd4e7d1){const _0x166569=_0x43396f;for(let _0x3480a0 of this[_0x166569(0x1ec)])if(_0x3480a0['createCustomShape']&&await _0x3480a0[_0x166569(0x1bf)](_0xd4e7d1))return!0x0;return!0x1;}};const Ee={'id':_0x43396f(0x1dd),'type':_0x291e91[_0x43396f(0x1d5)],'handler':(_0x49ed18,_0x1900b9)=>_0x1900b9?_0x49ed18[_0x43396f(0x19b)](X)[_0x43396f(0x1db)](_0x1900b9):!0x1},Z={};function Q(_0x2808e4,_0x55d7cf){return function(_0x3d85b5,_0x568f41){_0x55d7cf(_0x3d85b5,_0x568f41,_0x2808e4);};}function De(_0x28cd73,_0x2bc677,_0x408c17,_0x54cf2f){const _0xb63aa=_0x43396f;var _0xf34f97=arguments['length'],_0x24dc5f=_0xf34f97<0x3?_0x2bc677:_0x54cf2f===null?_0x54cf2f=Object[_0xb63aa(0x1ed)](_0x2bc677,_0x408c17):_0x54cf2f,_0x4f1b7f;if(typeof Reflect=='object'&&typeof Reflect[_0xb63aa(0x1f1)]==_0xb63aa(0x1b0))_0x24dc5f=Reflect[_0xb63aa(0x1f1)](_0x28cd73,_0x2bc677,_0x408c17,_0x54cf2f);else{for(var _0x1c165b=_0x28cd73[_0xb63aa(0x1ad)]-0x1;_0x1c165b>=0x0;_0x1c165b--)(_0x4f1b7f=_0x28cd73[_0x1c165b])&&(_0x24dc5f=(_0xf34f97<0x3?_0x4f1b7f(_0x24dc5f):_0xf34f97>0x3?_0x4f1b7f(_0x2bc677,_0x408c17,_0x24dc5f):_0x4f1b7f(_0x2bc677,_0x408c17))||_0x24dc5f);}return _0xf34f97>0x3&&_0x24dc5f&&Object[_0xb63aa(0x19a)](_0x2bc677,_0x408c17,_0x24dc5f),_0x24dc5f;}let $=class extends _0x23a329{constructor(_0x328372=Z,_0x23b94c,_0x15efc2,_0x554d0f){const _0x3e6b0f=_0x43396f;super(),this[_0x3e6b0f(0x1ae)]=_0x328372,this['_injector']=_0x23b94c,this['_commandService']=_0x15efc2,this[_0x3e6b0f(0x1c1)]=_0x554d0f;let {..._0x2cd050}=_0x488fc2({},Z,this['_config']);this[_0x3e6b0f(0x1c1)][_0x3e6b0f(0x1a7)](_0x3e6b0f(0x1a0),_0x2cd050);}[_0x43396f(0x19f)](){const _0x493d37=_0x43396f;[[X,{'useClass':Te}]][_0x493d37(0x19e)](_0x1a4d5e=>this['_injector'][_0x493d37(0x194)](_0x1a4d5e)),this[_0x493d37(0x1d3)](this[_0x493d37(0x1a5)][_0x493d37(0x1a9)](Ee));}};Y($,_0x43396f(0x1b2),_0x43396f(0x1bd)),Y($,_0x43396f(0x1d6),Se),Y($,_0x43396f(0x1b8),Ce),Y($,_0x43396f(0x1a3),_0x4b2236[_0x43396f(0x193)]),$=De([_0x40586b(_0x5cf441),Q(0x1,_0x4a0035(_0x5e60e7)),Q(0x2,_0x1fafaa),Q(0x3,_0x214ca1)],$);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 _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};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
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};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x43396f=_0x5b63;(function(_0x4c39c7,_0xda322d){const _0x232cbc=_0x5b63,_0x2be235=_0x4c39c7();while(!![]){try{const _0x28d0f5=-parseInt(_0x232cbc(0x1b5))/0x1+parseInt(_0x232cbc(0x1ab))/0x2*(-parseInt(_0x232cbc(0x1cb))/0x3)+-parseInt(_0x232cbc(0x1df))/0x4*(-parseInt(_0x232cbc(0x19c))/0x5)+-parseInt(_0x232cbc(0x1cc))/0x6*(-parseInt(_0x232cbc(0x1c4))/0x7)+-parseInt(_0x232cbc(0x1b7))/0x8*(-parseInt(_0x232cbc(0x1c7))/0x9)+-parseInt(_0x232cbc(0x1e7))/0xa*(-parseInt(_0x232cbc(0x1d0))/0xb)+-parseInt(_0x232cbc(0x1c9))/0xc;if(_0x28d0f5===_0xda322d)break;else _0x2be235['push'](_0x2be235['shift']());}catch(_0xa02555){_0x2be235['push'](_0x2be235['shift']());}}}(_0x2e72,0x2f376));import{ShapeFillEnum as _0x1415aa,ShapeLineCapEnum as _0x470397,ShapeLineJoinEnum as _0x34e189,ShapeLineTypeEnum as _0x2148f9,ShapeTypeEnum as _0x46da06}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x5cf441}from'@univerjs-pro/license';import{CommandType as _0x291e91,DependentOn as _0x40586b,ICommandService as _0x1fafaa,IConfigService as _0x214ca1,Inject as _0x4a0035,Injector as _0x5e60e7,Plugin as _0x23a329,UniverInstanceType as _0x4b2236,createIdentifier as _0x3acfc4,merge as _0x488fc2,toDisposable as _0x5c9d22}from'@univerjs/core';const g=0.0001;function _(_0x4ec654){return{'x':_0x4ec654['x'],'y':_0x4ec654['y']};}function v(_0x29d4c8){const _0x1144ff=_0x5b63;return{..._0x29d4c8,'in':_0x29d4c8['in']?_(_0x29d4c8['in']):void 0x0,'out':_0x29d4c8[_0x1144ff(0x1e5)]?_(_0x29d4c8[_0x1144ff(0x1e5)]):void 0x0};}function y(_0x975f0){const _0x549241=_0x5b63;return{'kind':_0x549241(0x1dc),'closed':_0x975f0['closed'],'anchors':_0x975f0[_0x549241(0x1f0)][_0x549241(0x196)](v)};}function b(_0x47445f,_0x552e91,_0x45e702){return{'x':_0x47445f['x']+(_0x552e91['x']-_0x47445f['x'])*_0x45e702,'y':_0x47445f['y']+(_0x552e91['y']-_0x47445f['y'])*_0x45e702};}function x(_0x4239f2,_0x2e359c){const _0x3d644b=_0x5b63;return Math[_0x3d644b(0x1ca)](_0x4239f2['x']-_0x2e359c['x'],_0x4239f2['y']-_0x2e359c['y']);}function S(_0x4e1cc6){let _0x47a728=Math['hypot'](_0x4e1cc6['x'],_0x4e1cc6['y']);return _0x47a728<g?{'x':0x1,'y':0x0}:{'x':_0x4e1cc6['x']/_0x47a728,'y':_0x4e1cc6['y']/_0x47a728};}function C(_0x2c4165,_0x7cf372,_0x1a625b=x(_0x2c4165,_0x7cf372)){let _0x42174e=S({'x':_0x2c4165['x']-_0x7cf372['x'],'y':_0x2c4165['y']-_0x7cf372['y']});return{'x':_0x2c4165['x']+_0x42174e['x']*_0x1a625b,'y':_0x2c4165['y']+_0x42174e['y']*_0x1a625b};}function w(_0x361a5c,_0x4153ef){const _0x2af2f7=_0x5b63;let {anchors:_0x31dbbe}=_0x361a5c;return _0x31dbbe[_0x2af2f7(0x1ad)]<0x2||_0x4153ef<0x0?null:_0x4153ef<_0x31dbbe[_0x2af2f7(0x1ad)]-0x1?{'startIndex':_0x4153ef,'endIndex':_0x4153ef+0x1,'start':_0x31dbbe[_0x4153ef],'end':_0x31dbbe[_0x4153ef+0x1]}:_0x361a5c['closed']&&_0x4153ef===_0x31dbbe[_0x2af2f7(0x1ad)]-0x1?{'startIndex':_0x31dbbe[_0x2af2f7(0x1ad)]-0x1,'endIndex':0x0,'start':_0x31dbbe[_0x31dbbe[_0x2af2f7(0x1ad)]-0x1],'end':_0x31dbbe[0x0]}:null;}function T(_0x4ee2f4,_0x269f1a){const _0x49dacf=_0x5b63;let _0x4b740a=w(_0x4ee2f4,_0x269f1a);return _0x4b740a?[_0x4b740a['start'],_0x4b740a['start'][_0x49dacf(0x1e5)]??_0x4b740a[_0x49dacf(0x1c6)],_0x4b740a['end']['in']??_0x4b740a[_0x49dacf(0x1b6)],_0x4b740a[_0x49dacf(0x1b6)]]:null;}function te(_0x2dd2df,_0x1aad87){const _0x31a03d=_0x5b63;return _0x1aad87===_0x31a03d(0x1ee)?_0x2dd2df:_0x2dd2df[_0x1aad87]??null;}function E(_0x186b29,_0x3c5daf,_0x64e68){const _0x3a9a78=_0x5b63;return _0x64e68===_0x3a9a78(0x1ee)||_0x186b29[_0x3a9a78(0x192)]?!0x0:_0x64e68==='in'?_0x3c5daf>0x0:_0x3c5daf<_0x186b29[_0x3a9a78(0x1f0)][_0x3a9a78(0x1ad)]-0x1;}function D(_0x3aa310,_0x5cce6e){let [_0x507bf3,_0x212d02,_0x1750a1,_0x1098c2]=_0x3aa310,_0x171bae=b(_0x507bf3,_0x212d02,_0x5cce6e),_0x29cd81=b(_0x212d02,_0x1750a1,_0x5cce6e),_0x5ba6b4=b(_0x1750a1,_0x1098c2,_0x5cce6e);return b(b(_0x171bae,_0x29cd81,_0x5cce6e),b(_0x29cd81,_0x5ba6b4,_0x5cce6e),_0x5cce6e);}function ne(_0x425162,_0x9db1fc){let [_0x3cb3eb,_0x345d80,_0xff87cb,_0x35154e]=_0x425162,_0xfa8fd1=b(_0x3cb3eb,_0x345d80,_0x9db1fc),_0x2835e3=b(_0x345d80,_0xff87cb,_0x9db1fc),_0x1a8089=b(_0xff87cb,_0x35154e,_0x9db1fc),_0x2c73b4=b(_0xfa8fd1,_0x2835e3,_0x9db1fc),_0x51e7f5=b(_0x2835e3,_0x1a8089,_0x9db1fc),_0x3d8224=b(_0x2c73b4,_0x51e7f5,_0x9db1fc);return{'left':[_0x3cb3eb,_0xfa8fd1,_0x2c73b4,_0x3d8224],'right':[_0x3d8224,_0x51e7f5,_0x1a8089,_0x35154e]};}function O(_0x1da999,_0x3e50b8,_0x5d2a6f){const _0x422541=_0x5b63;let _0x1efa5c=_0x5d2a6f['x']-_0x3e50b8['x'],_0x4fccbc=_0x5d2a6f['y']-_0x3e50b8['y'],_0x2e2b47=_0x1efa5c*_0x1efa5c+_0x4fccbc*_0x4fccbc,_0x4491ea=_0x2e2b47<=g?0x0:Math[_0x422541(0x1c5)](0x0,Math[_0x422541(0x1de)](0x1,((_0x1da999['x']-_0x3e50b8['x'])*_0x1efa5c+(_0x1da999['y']-_0x3e50b8['y'])*_0x4fccbc)/_0x2e2b47)),_0x465e22={'x':_0x3e50b8['x']+_0x1efa5c*_0x4491ea,'y':_0x3e50b8['y']+_0x4fccbc*_0x4491ea};return{'point':_0x465e22,'ratio':_0x4491ea,'distance':x(_0x1da999,_0x465e22)};}function re(_0x3cff44,_0x1d2224,_0x12ee58){const _0x20d29b=_0x5b63;return O(_0x3cff44,_0x1d2224,_0x12ee58)[_0x20d29b(0x1a2)]**0x2;}function k(_0x138460,_0x2d1853){const _0x2c2f3f=_0x5b63;if(_0x138460[_0x2c2f3f(0x1ad)]<=0x2)return _0x138460['map'](_);let _0x3e1b2d=0x0,_0x14b18e=0x0,_0x5eeb76=_0x138460[0x0],_0x1bbf4b=_0x138460[_0x138460[_0x2c2f3f(0x1ad)]-0x1],_0x3923c9=_0x2d1853*_0x2d1853;for(let _0x231204=0x1;_0x231204<_0x138460['length']-0x1;_0x231204++){let _0x4d01a6=re(_0x138460[_0x231204],_0x5eeb76,_0x1bbf4b);_0x4d01a6>_0x3e1b2d&&(_0x3e1b2d=_0x4d01a6,_0x14b18e=_0x231204);}if(_0x3e1b2d<=_0x3923c9)return[_(_0x5eeb76),_(_0x1bbf4b)];let _0x3eda5c=k(_0x138460[_0x2c2f3f(0x1ac)](0x0,_0x14b18e+0x1),_0x2d1853),_0xa5f11a=k(_0x138460[_0x2c2f3f(0x1ac)](_0x14b18e),_0x2d1853);return[..._0x3eda5c['slice'](0x0,-0x1),..._0xa5f11a];}function ie(_0x1b7adf,_0x2f2ada){let _0x3b78b5=_0x1b7adf[_0x2f2ada],_0x35f91b=_0x1b7adf[_0x2f2ada+0x1],_0x4a7258=_0x1b7adf[_0x2f2ada-0x1]??_0x3b78b5;return{'x':_0x3b78b5['x']+(_0x35f91b['x']-_0x4a7258['x'])/0x6,'y':_0x3b78b5['y']+(_0x35f91b['y']-_0x4a7258['y'])/0x6};}function A(_0x2a4cb0,_0x3f14ca){let _0x40aaf7=_0x2a4cb0[_0x3f14ca],_0x4de17b=_0x2a4cb0[_0x3f14ca-0x1],_0x35921f=_0x2a4cb0[_0x3f14ca+0x1]??_0x40aaf7;return{'x':_0x40aaf7['x']-(_0x35921f['x']-_0x4de17b['x'])/0x6,'y':_0x40aaf7['y']-(_0x35921f['y']-_0x4de17b['y'])/0x6};}function j(_0x408c38,_0x50395c){const _0x5e790e=_0x5b63;let _0x52d51b=_0x408c38['anchors'][_0x50395c],_0x5f4790=_0x408c38[_0x5e790e(0x1f0)][_0x50395c-0x1]??(_0x408c38[_0x5e790e(0x192)]?_0x408c38['anchors'][_0x408c38[_0x5e790e(0x1f0)][_0x5e790e(0x1ad)]-0x1]:null),_0x70b51c=_0x408c38[_0x5e790e(0x1f0)][_0x50395c+0x1]??(_0x408c38[_0x5e790e(0x192)]?_0x408c38[_0x5e790e(0x1f0)][0x0]:null),_0x3dd1b7=_0x5f4790&&_0x70b51c?S({'x':_0x70b51c['x']-_0x5f4790['x'],'y':_0x70b51c['y']-_0x5f4790['y']}):_0x70b51c?S({'x':_0x70b51c['x']-_0x52d51b['x'],'y':_0x70b51c['y']-_0x52d51b['y']}):_0x5f4790?S({'x':_0x52d51b['x']-_0x5f4790['x'],'y':_0x52d51b['y']-_0x5f4790['y']}):{'x':0x1,'y':0x0},_0x39e097=_0x5f4790&&_0x70b51c?Math[_0x5e790e(0x1c5)](0x32,x(_0x5f4790,_0x70b51c)/0x4):0x32;return{'in':{'x':_0x52d51b['x']-_0x3dd1b7['x']*_0x39e097,'y':_0x52d51b['y']-_0x3dd1b7['y']*_0x39e097},'out':{'x':_0x52d51b['x']+_0x3dd1b7['x']*_0x39e097,'y':_0x52d51b['y']+_0x3dd1b7['y']*_0x39e097}};}function M(_0xde4f53,_0x543632){const _0x211b55=_0x5b63;let _0x3bbe5a=_0xde4f53[_0x543632],_0x436761=_0x543632==='in'?'out':'in',_0x2577be=_0xde4f53[_0x436761];_0x3bbe5a&&(_0xde4f53[_0x211b55(0x1ba)]===_0x211b55(0x1da)?_0xde4f53[_0x436761]=C(_0xde4f53,_0x3bbe5a):_0xde4f53[_0x211b55(0x1ba)]===_0x211b55(0x1a6)&&(_0xde4f53[_0x436761]=C(_0xde4f53,_0x3bbe5a,_0x2577be?x(_0xde4f53,_0x2577be):x(_0xde4f53,_0x3bbe5a))));}function ae(_0x361f78,_0x4b0a66){const _0x3e0528=_0x5b63;let _0x21564a=y(_0x361f78);return!_0x4b0a66||_0x21564a[_0x3e0528(0x192)]||_0x21564a[_0x3e0528(0x1f0)][_0x3e0528(0x1ad)]===0x0||_0x21564a[_0x3e0528(0x1f0)][_0x3e0528(0x199)]({'id':_0x3e0528(0x1e9),'x':_0x4b0a66['x'],'y':_0x4b0a66['y'],'pointType':_0x3e0528(0x1c8)}),_0x21564a;}function oe(_0x171597,_0x23ad12={}){const _0x585999=_0x5b63;let _0x33fb6a=Math[_0x585999(0x1c5)](0x0,_0x23ad12['tolerance']??Math['max'](0x4,_0x171597[_0x585999(0x1c3)]*0.35)),_0xa8f2a6=_0x23ad12[_0x585999(0x1a8)]??(_0x10e982=>'ink-centerline-'+_0x10e982),_0x2b86f1=k(_0x171597[_0x585999(0x195)],_0x33fb6a),_0x5406e1=_0x2b86f1['map']((_0x28bbfa,_0x2ff424)=>({'id':_0xa8f2a6(_0x2ff424),'x':_0x28bbfa['x'],'y':_0x28bbfa['y'],'pointType':_0x585999(0x1ea)}));for(let _0x235b0d=0x0;_0x235b0d<_0x5406e1[_0x585999(0x1ad)]-0x1;_0x235b0d++)_0x5406e1[_0x235b0d][_0x585999(0x1e5)]=ie(_0x2b86f1,_0x235b0d),_0x5406e1[_0x235b0d+0x1]['in']=A(_0x2b86f1,_0x235b0d+0x1);return{'kind':_0x585999(0x1dc),'closed':!0x1,'anchors':_0x5406e1};}function se(_0x58fda9,_0x4d3928,_0x51dcbb){const _0x17c666=_0x5b63;let _0x44aca8=null,_0x5bc17b=[_0x17c666(0x1ee),'in',_0x17c666(0x1e5)];return _0x58fda9[_0x17c666(0x1f0)][_0x17c666(0x19e)]((_0x360f6a,_0x42da95)=>{const _0x15339=_0x17c666;_0x5bc17b[_0x15339(0x19e)](_0x55de48=>{const _0x1beed8=_0x15339;if(!E(_0x58fda9,_0x42da95,_0x55de48))return;let _0x4799f3=te(_0x360f6a,_0x55de48);if(!_0x4799f3)return;let _0x1dfcb1=x(_0x4d3928,_0x4799f3);_0x1dfcb1>_0x51dcbb||_0x44aca8&&_0x1dfcb1>=_0x44aca8[_0x1beed8(0x1a2)]||(_0x44aca8={'handle':{'kind':_0x55de48,'anchorId':_0x360f6a['id']},'point':_(_0x4799f3),'distance':_0x1dfcb1});});}),_0x44aca8;}function ce(_0x25c6f9,_0x936968,_0x217cd5){const _0x162939=_0x5b63;let _0x300196=null,_0x3b5600=_0x25c6f9[_0x162939(0x192)]?_0x25c6f9[_0x162939(0x1f0)]['length']:Math['max'](0x0,_0x25c6f9['anchors']['length']-0x1);for(let _0xdd6ac4=0x0;_0xdd6ac4<_0x3b5600;_0xdd6ac4++){let _0x513128=T(_0x25c6f9,_0xdd6ac4);if(!_0x513128)continue;let _0x3fa3d0=D(_0x513128,0x0);for(let _0x21494c=0x1;_0x21494c<=0x20;_0x21494c++){let _0x5a1a35=D(_0x513128,_0x21494c/0x20),_0x3ea94b=O(_0x936968,_0x3fa3d0,_0x5a1a35),_0xbd4031=(_0x21494c-0x1+_0x3ea94b['ratio'])/0x20;(!_0x300196||_0x3ea94b[_0x162939(0x1a2)]<_0x300196['distance'])&&(_0x300196={'segmentIndex':_0xdd6ac4,'t':_0xbd4031,'point':_0x3ea94b[_0x162939(0x1e0)],'distance':_0x3ea94b[_0x162939(0x1a2)]}),_0x3fa3d0=_0x5a1a35;}}return _0x300196&&_0x300196[_0x162939(0x1a2)]<=_0x217cd5?_0x300196:null;}function le(_0x617879,_0x40d83e,_0x1830be){const _0x465052=_0x5b63;let _0xe7e6a2=y(_0x617879),_0x19456e=w(_0xe7e6a2,_0x40d83e['segmentIndex']),_0x3d2114=T(_0xe7e6a2,_0x40d83e[_0x465052(0x1af)]);if(!_0x19456e||!_0x3d2114)return _0xe7e6a2;let _0xf3e387=ne(_0x3d2114,Math['max'](0x0,Math['min'](0x1,_0x40d83e['t']))),_0x52463f={'id':_0x1830be(),'x':_0xf3e387[_0x465052(0x1ce)][0x3]['x'],'y':_0xf3e387[_0x465052(0x1ce)][0x3]['y'],'in':_(_0xf3e387[_0x465052(0x1ce)][0x2]),'out':_(_0xf3e387[_0x465052(0x1d4)][0x1]),'pointType':_0x465052(0x1ea)};return _0xe7e6a2[_0x465052(0x1f0)][_0x19456e[_0x465052(0x1d1)]][_0x465052(0x1e5)]=_(_0xf3e387['left'][0x1]),_0xe7e6a2['anchors'][_0x19456e[_0x465052(0x1cf)]]['in']=_(_0xf3e387[_0x465052(0x1d4)][0x2]),_0xe7e6a2[_0x465052(0x1f0)]['splice'](_0x19456e[_0x465052(0x1d1)]+0x1,0x0,_0x52463f),_0xe7e6a2;}function ue(_0x2a5859,_0x214708){const _0x30fadd=_0x5b63;let _0x4b1f8d=y(_0x2a5859);return _0x4b1f8d['anchors']=_0x4b1f8d[_0x30fadd(0x1f0)]['filter'](_0x31d649=>_0x31d649['id']!==_0x214708),_0x4b1f8d['closed']&&_0x4b1f8d[_0x30fadd(0x1f0)][_0x30fadd(0x1ad)]<0x3&&(_0x4b1f8d[_0x30fadd(0x192)]=!0x1),_0x4b1f8d;}function _0x5b63(_0x5d7baa,_0xe0f7b1){_0x5d7baa=_0x5d7baa-0x192;const _0x2e7274=_0x2e72();let _0x5b6305=_0x2e7274[_0x5d7baa];return _0x5b6305;}function N(_0x4e91ce,_0x29da09,_0x56f6d4){const _0xcef981=_0x5b63;let _0x1580e8=y(_0x4e91ce),_0x46fe69=_0x1580e8[_0xcef981(0x1f0)][_0xcef981(0x1cd)](_0x13e044=>_0x13e044['id']===_0x29da09),_0x437eac=_0x1580e8[_0xcef981(0x1f0)][_0x46fe69];if(!_0x437eac)return _0x1580e8;if(_0x437eac[_0xcef981(0x1ba)]=_0x56f6d4,_0x56f6d4==='corner')return delete _0x437eac['in'],delete _0x437eac[_0xcef981(0x1e5)],_0x1580e8;let _0x516e33=j(_0x1580e8,_0x46fe69);if(_0x437eac['in']=_0x437eac['in']?_(_0x437eac['in']):_0x516e33['in'],_0x437eac[_0xcef981(0x1e5)]=_0x437eac[_0xcef981(0x1e5)]?_(_0x437eac[_0xcef981(0x1e5)]):_0x516e33[_0xcef981(0x1e5)],_0x56f6d4===_0xcef981(0x1da)){let _0x1e4ec2=Math[_0xcef981(0x1c5)](x(_0x437eac,_0x437eac['in']),x(_0x437eac,_0x437eac[_0xcef981(0x1e5)]),0x32),_0x55293d=S({'x':_0x437eac[_0xcef981(0x1e5)]['x']-_0x437eac['x'],'y':_0x437eac[_0xcef981(0x1e5)]['y']-_0x437eac['y']});_0x437eac['out']={'x':_0x437eac['x']+_0x55293d['x']*_0x1e4ec2,'y':_0x437eac['y']+_0x55293d['y']*_0x1e4ec2},_0x437eac['in']={'x':_0x437eac['x']-_0x55293d['x']*_0x1e4ec2,'y':_0x437eac['y']-_0x55293d['y']*_0x1e4ec2};}else _0x56f6d4==='smooth'&&M(_0x437eac,_0xcef981(0x1e5));return _0x1580e8;}function P(_0x3b045a,_0xcdb09e){const _0x45f1ba=_0x5b63;let _0x1ec69d=_0x3b045a[_0x45f1ba(0x1f0)][_0x45f1ba(0x1b9)](_0x2a6b10=>_0x2a6b10['id']===_0xcdb09e),_0x3862a2=(_0x1ec69d==null?void 0x0:_0x1ec69d[_0x45f1ba(0x1ba)])??_0x45f1ba(0x1c8);return N(_0x3b045a,_0xcdb09e,_0x3862a2==='corner'?_0x45f1ba(0x1a6):_0x3862a2===_0x45f1ba(0x1a6)?_0x45f1ba(0x1da):_0x3862a2===_0x45f1ba(0x1da)?_0x45f1ba(0x1ea):_0x45f1ba(0x1c8));}function F(_0x1740c2,_0x2c61fc,_0x14584b){const _0x434dbc=_0x5b63;let _0x241490=y(_0x1740c2),_0x3909a8=_0x241490['anchors']['find'](_0x3caa35=>_0x3caa35['id']===_0x2c61fc['anchorId']);if(!_0x3909a8)return _0x241490;if(_0x2c61fc[_0x434dbc(0x1b4)]===_0x434dbc(0x1ee)){let _0x592235={'x':_0x14584b['x']-_0x3909a8['x'],'y':_0x14584b['y']-_0x3909a8['y']};return _0x3909a8['x']=_0x14584b['x'],_0x3909a8['y']=_0x14584b['y'],_0x3909a8['in']&&={'x':_0x3909a8['in']['x']+_0x592235['x'],'y':_0x3909a8['in']['y']+_0x592235['y']},_0x3909a8[_0x434dbc(0x1e5)]&&={'x':_0x3909a8[_0x434dbc(0x1e5)]['x']+_0x592235['x'],'y':_0x3909a8['out']['y']+_0x592235['y']},_0x241490;}return _0x3909a8[_0x2c61fc[_0x434dbc(0x1b4)]]=_(_0x14584b),_0x3909a8[_0x434dbc(0x1ba)]===_0x434dbc(0x1c8)&&(_0x3909a8[_0x434dbc(0x1ba)]=_0x434dbc(0x1ea)),M(_0x3909a8,_0x2c61fc[_0x434dbc(0x1b4)]),_0x241490;}const I=1e-9;function L(_0x1af70c){const _0x3fe7f2=_0x5b63;let _0x5dd935=Math[_0x3fe7f2(0x197)](_0x1af70c*0x2710)/0x2710;return Object['is'](_0x5dd935,-0x0)?'0':String(_0x5dd935);}function R(_0x38220b){return L(_0x38220b['x'])+'\x20'+L(_0x38220b['y']);}function z(_0x30ce80,_0x175b51){return{'x':_0x30ce80['x']-_0x175b51['x'],'y':_0x30ce80['y']-_0x175b51['y']};}function B(_0x4b816f,_0x3915b3,_0x5c78b8,_0x17cfe7,_0x1816ec){let _0x56581d=0x1-_0x1816ec;return{'x':_0x56581d*_0x56581d*_0x56581d*_0x4b816f['x']+0x3*_0x56581d*_0x56581d*_0x1816ec*_0x3915b3['x']+0x3*_0x56581d*_0x1816ec*_0x1816ec*_0x5c78b8['x']+_0x1816ec*_0x1816ec*_0x1816ec*_0x17cfe7['x'],'y':_0x56581d*_0x56581d*_0x56581d*_0x4b816f['y']+0x3*_0x56581d*_0x56581d*_0x1816ec*_0x3915b3['y']+0x3*_0x56581d*_0x1816ec*_0x1816ec*_0x5c78b8['y']+_0x1816ec*_0x1816ec*_0x1816ec*_0x17cfe7['y']};}function V(_0x18e54d,_0x5813d1,_0x545969,_0x32312c){const _0x41c53f=_0x5b63;let _0x4b9f73=-_0x18e54d+0x3*_0x5813d1-0x3*_0x545969+_0x32312c,_0x14e391=0x3*_0x18e54d-0x6*_0x5813d1+0x3*_0x545969,_0x39476b=-0x3*_0x18e54d+0x3*_0x5813d1,_0x466e48=[];if(Math[_0x41c53f(0x1ef)](_0x4b9f73)<I){if(Math[_0x41c53f(0x1ef)](_0x14e391)<I)return _0x466e48;let _0x47b5c2=-_0x39476b/(0x2*_0x14e391);return _0x47b5c2>0x0&&_0x47b5c2<0x1&&_0x466e48[_0x41c53f(0x199)](_0x47b5c2),_0x466e48;}let _0x4691fd=_0x14e391*_0x14e391-0x3*_0x4b9f73*_0x39476b;if(_0x4691fd<0x0)return _0x466e48;let _0x567805=Math[_0x41c53f(0x1eb)](Math[_0x41c53f(0x1c5)](0x0,_0x4691fd)),_0x336e74=(-_0x14e391+_0x567805)/(0x3*_0x4b9f73),_0x579f5b=(-_0x14e391-_0x567805)/(0x3*_0x4b9f73);return _0x336e74>0x0&&_0x336e74<0x1&&_0x466e48['push'](_0x336e74),_0x579f5b>0x0&&_0x579f5b<0x1&&Math[_0x41c53f(0x1ef)](_0x579f5b-_0x336e74)>I&&_0x466e48['push'](_0x579f5b),_0x466e48;}function H(_0x5ced87,_0xf5e7c,_0x2aebb5,_0x146f57,_0xef08be){const _0x55dcce=_0x5b63;_0x5ced87[_0x55dcce(0x199)](_0xf5e7c,_0xef08be),new Set([...V(_0xf5e7c['x'],_0x2aebb5['x'],_0x146f57['x'],_0xef08be['x']),...V(_0xf5e7c['y'],_0x2aebb5['y'],_0x146f57['y'],_0xef08be['y'])])['forEach'](_0x5de4d9=>{const _0x34e751=_0x55dcce;_0x5ced87[_0x34e751(0x199)](B(_0xf5e7c,_0x2aebb5,_0x146f57,_0xef08be,_0x5de4d9));});}function U(_0x1333aa){const _0x7e9915=_0x5b63;let _0x2986be=_0x1333aa[_0x7e9915(0x1f0)];if(_0x2986be[_0x7e9915(0x1ad)]<=0x1)return _0x2986be;let _0x5cbc52=[];for(let _0x35e4b6=0x1;_0x35e4b6<_0x2986be[_0x7e9915(0x1ad)];_0x35e4b6++){let _0x18fb54=_0x2986be[_0x35e4b6-0x1],_0x37b667=_0x2986be[_0x35e4b6];H(_0x5cbc52,_0x18fb54,_0x18fb54[_0x7e9915(0x1e5)]??_0x18fb54,_0x37b667['in']??_0x37b667,_0x37b667);}if(_0x1333aa[_0x7e9915(0x192)]&&_0x2986be[_0x7e9915(0x1ad)]>0x1){let _0x2ef0cf=_0x2986be[_0x2986be[_0x7e9915(0x1ad)]-0x1],_0x39d297=_0x2986be[0x0];H(_0x5cbc52,_0x2ef0cf,_0x2ef0cf[_0x7e9915(0x1e5)]??_0x2ef0cf,_0x39d297['in']??_0x39d297,_0x39d297);}return _0x5cbc52;}function de(_0x4e31a3){const _0x2bbfe9=_0x5b63;let _0x604d13=_0x4e31a3[_0x2bbfe9(0x195)];if(_0x604d13[_0x2bbfe9(0x1ad)]<=0x1)return _0x604d13;let _0x4dfb6b=[];for(let _0x151291=0x0;_0x151291<_0x604d13['length']-0x1;_0x151291++){let _0xecb5ef=_0x604d13[_0x151291],_0x3c0222=_0x604d13[_0x151291+0x1],_0x1472b0=_0x604d13[_0x151291-0x1]??_0xecb5ef,_0x45ea24=_0x604d13[_0x151291+0x2]??_0x3c0222;H(_0x4dfb6b,_0xecb5ef,{'x':_0xecb5ef['x']+(_0x3c0222['x']-_0x1472b0['x'])/0x6,'y':_0xecb5ef['y']+(_0x3c0222['y']-_0x1472b0['y'])/0x6},{'x':_0x3c0222['x']-(_0x45ea24['x']-_0xecb5ef['x'])/0x6,'y':_0x3c0222['y']-(_0x45ea24['y']-_0xecb5ef['y'])/0x6},_0x3c0222);}return _0x4dfb6b;}function fe(_0x172440){const _0x6fc696=_0x5b63;return _0x172440[_0x6fc696(0x1b4)]===_0x6fc696(0x1dc)?U(_0x172440):de(_0x172440);}function W(_0x4e2575){const _0x4fcd51=_0x5b63;let _0x4d4ea1=Math[_0x4fcd51(0x197)](_0x4e2575*0x2710)/0x2710;return Object['is'](_0x4d4ea1,-0x0)?0x0:_0x4d4ea1;}function G(_0x332840){const _0x1a3809=_0x5b63;let _0x23f35e=fe(_0x332840);if(_0x23f35e[_0x1a3809(0x1ad)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x3211cf=Math['min'](..._0x23f35e[_0x1a3809(0x196)](_0x9432b5=>_0x9432b5['x'])),_0x11de0d=Math['min'](..._0x23f35e[_0x1a3809(0x196)](_0x3d21bd=>_0x3d21bd['y'])),_0x4de426=Math[_0x1a3809(0x1c5)](..._0x23f35e['map'](_0x466622=>_0x466622['x'])),_0x1d9d91=Math['max'](..._0x23f35e['map'](_0x201f1f=>_0x201f1f['y']));return{'left':W(_0x3211cf),'top':W(_0x11de0d),'width':W(Math['max'](0x1,_0x4de426-_0x3211cf)),'height':W(Math['max'](0x1,_0x1d9d91-_0x11de0d))};}function pe(_0x521836,_0x4fdbc0){const _0x34b0a2=_0x5b63;let _0x19e0a9=_0x521836['anchors'];if(_0x19e0a9[_0x34b0a2(0x1ad)]===0x0)return'';let _0x1d8e3d=['M\x20'+R(z(_0x19e0a9[0x0],_0x4fdbc0))];for(let _0x487fe1=0x1;_0x487fe1<_0x19e0a9[_0x34b0a2(0x1ad)];_0x487fe1++){let _0x5ec2ca=_0x19e0a9[_0x487fe1-0x1],_0x18235d=_0x19e0a9[_0x487fe1],_0x2acc6a=_0x5ec2ca[_0x34b0a2(0x1e5)]??_0x5ec2ca,_0x2a898c=_0x18235d['in']??_0x18235d;_0x1d8e3d[_0x34b0a2(0x199)]('C\x20'+R(z(_0x2acc6a,_0x4fdbc0))+'\x20'+R(z(_0x2a898c,_0x4fdbc0))+'\x20'+R(z(_0x18235d,_0x4fdbc0)));}if(_0x521836[_0x34b0a2(0x192)]&&_0x19e0a9[_0x34b0a2(0x1ad)]>0x1){let _0x3b31e9=_0x19e0a9[_0x19e0a9[_0x34b0a2(0x1ad)]-0x1],_0x29554c=_0x19e0a9[0x0],_0x1cdd63=_0x3b31e9[_0x34b0a2(0x1e5)]??_0x3b31e9,_0x5a814c=_0x29554c['in']??_0x29554c;_0x1d8e3d['push']('C\x20'+R(z(_0x1cdd63,_0x4fdbc0))+'\x20'+R(z(_0x5a814c,_0x4fdbc0))+'\x20'+R(z(_0x29554c,_0x4fdbc0))),_0x1d8e3d[_0x34b0a2(0x199)]('Z');}return _0x1d8e3d[_0x34b0a2(0x1d8)]('\x20');}function me(_0x259bd0,_0x1ef7ae){const _0x551ef0=_0x5b63;let _0x20ac1d=_0x259bd0[_0x551ef0(0x195)]['map'](_0x566651=>z(_0x566651,_0x1ef7ae));if(_0x20ac1d[_0x551ef0(0x1ad)]===0x0)return'';if(_0x20ac1d[_0x551ef0(0x1ad)]===0x1)return'M\x20'+R(_0x20ac1d[0x0]);let _0x5483c5=['M\x20'+R(_0x20ac1d[0x0])];for(let _0x5364da=0x0;_0x5364da<_0x20ac1d[_0x551ef0(0x1ad)]-0x1;_0x5364da++){let _0x256ccf=_0x20ac1d[_0x5364da],_0x52948f=_0x20ac1d[_0x5364da+0x1],_0x1997a1=_0x20ac1d[_0x5364da-0x1]??_0x256ccf,_0x14a1f7=_0x20ac1d[_0x5364da+0x2]??_0x52948f,_0x2d57bb={'x':_0x256ccf['x']+(_0x52948f['x']-_0x1997a1['x'])/0x6,'y':_0x256ccf['y']+(_0x52948f['y']-_0x1997a1['y'])/0x6},_0x3bcc5d={'x':_0x52948f['x']-(_0x14a1f7['x']-_0x256ccf['x'])/0x6,'y':_0x52948f['y']-(_0x14a1f7['y']-_0x256ccf['y'])/0x6};_0x5483c5[_0x551ef0(0x199)]('C\x20'+R(_0x2d57bb)+'\x20'+R(_0x3bcc5d)+'\x20'+R(_0x52948f));}return _0x5483c5[_0x551ef0(0x1d8)]('\x20');}function he(_0x37b641,_0x2ba77b){const _0x32ea8e=_0x5b63;return _0x37b641[_0x32ea8e(0x1b4)]==='pen'?pe(_0x37b641,_0x2ba77b):me(_0x37b641,_0x2ba77b);}function ge(_0x5a2fcc,_0xa3d057){const _0x1acc2e=_0x5b63;return _0xa3d057!=null&&_0xa3d057['color']?_0xa3d057[_0x1acc2e(0x1bb)]:_0x5a2fcc[_0x1acc2e(0x1b4)]===_0x1acc2e(0x1dc)?_0x1acc2e(0x1e2):_0x5a2fcc[_0x1acc2e(0x1bb)];}function _e(_0x3b9d70,_0x752241){const _0x109c0b=_0x5b63;return(_0x752241==null?void 0x0:_0x752241[_0x109c0b(0x1c3)])===void 0x0?_0x3b9d70[_0x109c0b(0x1b4)]===_0x109c0b(0x1dc)?0x2:_0x3b9d70[_0x109c0b(0x1c3)]:_0x752241[_0x109c0b(0x1c3)];}function ve(_0x2e92c3,_0x560d3c){const _0x48d22d=_0x5b63;return(_0x560d3c==null?void 0x0:_0x560d3c[_0x48d22d(0x1d2)])===void 0x0?_0x2e92c3[_0x48d22d(0x1b4)]===_0x48d22d(0x1dc)?void 0x0:_0x2e92c3[_0x48d22d(0x1d2)]:_0x560d3c['opacity'];}function _0x2e72(){const _0x3c1992=['10SlBgBP','Round','__ink-preview-anchor__','free','sqrt','_adapters','getOwnPropertyDescriptor','anchor','abs','anchors','decorate','default','closed','UNIVER_UNKNOWN','add','points','map','round','@univerjs-pro/ink','push','defineProperty','get','5Xmqjmh','tool','forEach','onStarting','ink.config','constructor','distance','type','iterator','_commandService','smooth','setConfig','createId','registerCommand','none','982mVvxAD','slice','length','_config','segmentIndex','function','Rect','pluginName','height','kind','316670DyGKJa','end','3704tRkUlk','version','find','pointType','color','splice','UNIVER_INK_PLUGIN','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','createCustomShape','NoFill','_configService','top','width','1239jCYypZ','max','start','3213NglzJw','corner','1199100VKswAW','hypot','171ICMRdA','1878XpbfCG','findIndex','left','endIndex','2225542HhWfXU','startIndex','opacity','disposeWithMe','right','OPERATION','packageName','indexOf','join','symbol','symmetric','beginInkMode','pen','ink.operation.start','min','859864gbakIV','point','SolidFill','#f54a45','1.1.0','object','out','string'];_0x2e72=function(){return _0x3c1992;};return _0x2e72();}function ye(_0x131423,_0x19c971){const _0x5184b9=_0x5b63;let _0x1b6b28=G(_0x131423),_0x1b42fa=he(_0x131423,{'x':_0x1b6b28[_0x5184b9(0x1ce)],'y':_0x1b6b28['top']}),_0x47d6ed=_0x131423['kind']==='pen'&&_0x131423['closed'],_0xb0a7fc=_0x19c971==null?void 0x0:_0x19c971['fillColor'];return{'shapeType':_0x46da06[_0x5184b9(0x1b1)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x1b6b28[_0x5184b9(0x1c3)],'h':_0x1b6b28[_0x5184b9(0x1b3)],'fill':_0x47d6ed?'norm':_0x5184b9(0x1aa),'stroke':!0x0,'data':_0x1b42fa,'dataArray':be(_0x131423,{'x':_0x1b6b28['left'],'y':_0x1b6b28[_0x5184b9(0x1c2)]})}]},'fill':_0x47d6ed&&_0xb0a7fc?{'color':_0xb0a7fc,'fillType':_0x1415aa[_0x5184b9(0x1e1)]}:{'fillType':_0x1415aa[_0x5184b9(0x1c0)]},'stroke':{'color':ge(_0x131423,_0x19c971),'width':_e(_0x131423,_0x19c971),'opacity':ve(_0x131423,_0x19c971),'lineStrokeType':_0x2148f9['SolidLine'],'capType':_0x470397['Round'],'lineJoinType':_0x34e189[_0x5184b9(0x1e8)]}};}function K(_0x182e0e,_0x8f2a71){return{'x':_0x182e0e['x']-_0x8f2a71['x'],'y':_0x182e0e['y']-_0x8f2a71['y']};}function be(_0x5948b9,_0x101a36){const _0x2de9fd=_0x5b63;if(_0x5948b9[_0x2de9fd(0x1b4)]===_0x2de9fd(0x1dc)){let _0x2684f9=_0x5948b9['anchors'];if(_0x2684f9['length']===0x0)return[];let _0x270b4e=K(_0x2684f9[0x0],_0x101a36),_0x5d0528=[{'command':'M','points':[_0x270b4e['x'],_0x270b4e['y']]}];for(let _0xcf056b=0x1;_0xcf056b<_0x2684f9[_0x2de9fd(0x1ad)];_0xcf056b++){let _0x3f163e=_0x2684f9[_0xcf056b-0x1],_0x18a7bd=_0x2684f9[_0xcf056b],_0x46b10e=K(_0x3f163e[_0x2de9fd(0x1e5)]??_0x3f163e,_0x101a36),_0x1663e2=K(_0x18a7bd['in']??_0x18a7bd,_0x101a36),_0x4dd78a=K(_0x18a7bd,_0x101a36);_0x5d0528[_0x2de9fd(0x199)]({'command':'C','points':[_0x46b10e['x'],_0x46b10e['y'],_0x1663e2['x'],_0x1663e2['y'],_0x4dd78a['x'],_0x4dd78a['y']]});}if(_0x5948b9[_0x2de9fd(0x192)]&&_0x2684f9[_0x2de9fd(0x1ad)]>0x1){let _0x2cd089=_0x2684f9[_0x2684f9[_0x2de9fd(0x1ad)]-0x1],_0x4fc80e=_0x2684f9[0x0],_0x5cdbc4=K(_0x2cd089[_0x2de9fd(0x1e5)]??_0x2cd089,_0x101a36),_0x2ff460=K(_0x4fc80e['in']??_0x4fc80e,_0x101a36),_0x2d8ee0=K(_0x4fc80e,_0x101a36);_0x5d0528[_0x2de9fd(0x199)]({'command':'C','points':[_0x5cdbc4['x'],_0x5cdbc4['y'],_0x2ff460['x'],_0x2ff460['y'],_0x2d8ee0['x'],_0x2d8ee0['y']]}),_0x5d0528[_0x2de9fd(0x199)]({'command':'z','points':[]});}return _0x5d0528;}let _0x5669d2=_0x5948b9[_0x2de9fd(0x195)]['map'](_0x4caf9d=>K(_0x4caf9d,_0x101a36));if(_0x5669d2['length']===0x0)return[];let _0x4c784c=[{'command':'M','points':[_0x5669d2[0x0]['x'],_0x5669d2[0x0]['y']]}];for(let _0xa6d83f=0x0;_0xa6d83f<_0x5669d2['length']-0x1;_0xa6d83f++){let _0x285a50=_0x5669d2[_0xa6d83f],_0x5f44af=_0x5669d2[_0xa6d83f+0x1],_0x39e52b=_0x5669d2[_0xa6d83f-0x1]??_0x285a50,_0x44ce54=_0x5669d2[_0xa6d83f+0x2]??_0x5f44af,_0x5a7713={'x':_0x285a50['x']+(_0x5f44af['x']-_0x39e52b['x'])/0x6,'y':_0x285a50['y']+(_0x5f44af['y']-_0x39e52b['y'])/0x6},_0x51106e={'x':_0x5f44af['x']-(_0x44ce54['x']-_0x285a50['x'])/0x6,'y':_0x5f44af['y']-(_0x44ce54['y']-_0x285a50['y'])/0x6};_0x4c784c[_0x2de9fd(0x199)]({'command':'C','points':[_0x5a7713['x'],_0x5a7713['y'],_0x51106e['x'],_0x51106e['y'],_0x5f44af['x'],_0x5f44af['y']]});}return _0x4c784c;}function xe(_0x3de858){const _0x1e6861=_0x5b63;let {model:_0x1f53ef,sourceModel:_0x1d9dc1=_0x1f53ef,style:_0x1a49da}=_0x3de858,_0xfa98f2=_0x3de858[_0x1e6861(0x19d)]??_0x1f53ef[_0x1e6861(0x1b4)],_0x53d9f1=G(_0x1f53ef),_0x1696c0=_0x1f53ef[_0x1e6861(0x1b4)]===_0x1e6861(0x1dc)&&_0xfa98f2!==_0x1e6861(0x1dc)?_0x1f53ef:void 0x0;return{'transform':{..._0x53d9f1,'rotation':0x0},'shapeData':ye(_0x1f53ef,_0x1a49da),'ink':{'version':0x1,'tool':_0xfa98f2,'sourceModel':_0x1d9dc1,..._0x1696c0?{'editModel':_0x1696c0}:{},'normalizedBounds':_0x53d9f1}};}var Se=_0x43396f(0x198),Ce=_0x43396f(0x1e3);function q(_0x327fcd){'@babel/helpers - typeof';const _0x555e03=_0x43396f;return q=typeof Symbol==_0x555e03(0x1b0)&&typeof Symbol[_0x555e03(0x1a4)]==_0x555e03(0x1d9)?function(_0x4653e8){return typeof _0x4653e8;}:function(_0x565e75){const _0x7cb9ff=_0x555e03;return _0x565e75&&typeof Symbol=='function'&&_0x565e75[_0x7cb9ff(0x1a1)]===Symbol&&_0x565e75!==Symbol['prototype']?_0x7cb9ff(0x1d9):typeof _0x565e75;},q(_0x327fcd);}function we(_0x4638e5,_0x37d457){const _0x50103e=_0x43396f;if(q(_0x4638e5)!=_0x50103e(0x1e4)||!_0x4638e5)return _0x4638e5;var _0x37cf59=_0x4638e5[Symbol['toPrimitive']];if(_0x37cf59!==void 0x0){var _0x3deef9=_0x37cf59['call'](_0x4638e5,_0x37d457||_0x50103e(0x1f2));if(q(_0x3deef9)!='object')return _0x3deef9;throw TypeError(_0x50103e(0x1be));}return(_0x37d457==='string'?String:Number)(_0x4638e5);}function J(_0x3960c5){const _0x1fef8a=_0x43396f;var _0x1727fe=we(_0x3960c5,_0x1fef8a(0x1e6));return q(_0x1727fe)==_0x1fef8a(0x1d9)?_0x1727fe:_0x1727fe+'';}function Y(_0x12dba5,_0x2776c5,_0x330d02){const _0x5a3df0=_0x43396f;return(_0x2776c5=J(_0x2776c5))in _0x12dba5?Object[_0x5a3df0(0x19a)](_0x12dba5,_0x2776c5,{'value':_0x330d02,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x12dba5[_0x2776c5]=_0x330d02,_0x12dba5;}const X=_0x3acfc4('ink.host-adapter.service');var Te=class{constructor(){const _0x4e989f=_0x43396f;Y(this,_0x4e989f(0x1ec),[]);}['registerAdapter'](_0x5e717d){const _0x5e17a1=_0x43396f;return this[_0x5e17a1(0x1ec)]['push'](_0x5e717d),_0x5c9d22(()=>{const _0x12a85d=_0x5e17a1;let _0x54eaca=this[_0x12a85d(0x1ec)][_0x12a85d(0x1d7)](_0x5e717d);_0x54eaca>=0x0&&this[_0x12a85d(0x1ec)][_0x12a85d(0x1bc)](_0x54eaca,0x1);});}[_0x43396f(0x1db)](_0x7e3f30){const _0x1c01a4=_0x43396f;for(let _0x1c865b of this[_0x1c01a4(0x1ec)])if(_0x1c865b[_0x1c01a4(0x1db)](_0x7e3f30))return!0x0;return!0x1;}async[_0x43396f(0x1bf)](_0xd4e7d1){const _0x166569=_0x43396f;for(let _0x3480a0 of this[_0x166569(0x1ec)])if(_0x3480a0['createCustomShape']&&await _0x3480a0[_0x166569(0x1bf)](_0xd4e7d1))return!0x0;return!0x1;}};const Ee={'id':_0x43396f(0x1dd),'type':_0x291e91[_0x43396f(0x1d5)],'handler':(_0x49ed18,_0x1900b9)=>_0x1900b9?_0x49ed18[_0x43396f(0x19b)](X)[_0x43396f(0x1db)](_0x1900b9):!0x1},Z={};function Q(_0x2808e4,_0x55d7cf){return function(_0x3d85b5,_0x568f41){_0x55d7cf(_0x3d85b5,_0x568f41,_0x2808e4);};}function De(_0x28cd73,_0x2bc677,_0x408c17,_0x54cf2f){const _0xb63aa=_0x43396f;var _0xf34f97=arguments['length'],_0x24dc5f=_0xf34f97<0x3?_0x2bc677:_0x54cf2f===null?_0x54cf2f=Object[_0xb63aa(0x1ed)](_0x2bc677,_0x408c17):_0x54cf2f,_0x4f1b7f;if(typeof Reflect=='object'&&typeof Reflect[_0xb63aa(0x1f1)]==_0xb63aa(0x1b0))_0x24dc5f=Reflect[_0xb63aa(0x1f1)](_0x28cd73,_0x2bc677,_0x408c17,_0x54cf2f);else{for(var _0x1c165b=_0x28cd73[_0xb63aa(0x1ad)]-0x1;_0x1c165b>=0x0;_0x1c165b--)(_0x4f1b7f=_0x28cd73[_0x1c165b])&&(_0x24dc5f=(_0xf34f97<0x3?_0x4f1b7f(_0x24dc5f):_0xf34f97>0x3?_0x4f1b7f(_0x2bc677,_0x408c17,_0x24dc5f):_0x4f1b7f(_0x2bc677,_0x408c17))||_0x24dc5f);}return _0xf34f97>0x3&&_0x24dc5f&&Object[_0xb63aa(0x19a)](_0x2bc677,_0x408c17,_0x24dc5f),_0x24dc5f;}let $=class extends _0x23a329{constructor(_0x328372=Z,_0x23b94c,_0x15efc2,_0x554d0f){const _0x3e6b0f=_0x43396f;super(),this[_0x3e6b0f(0x1ae)]=_0x328372,this['_injector']=_0x23b94c,this['_commandService']=_0x15efc2,this[_0x3e6b0f(0x1c1)]=_0x554d0f;let {..._0x2cd050}=_0x488fc2({},Z,this['_config']);this[_0x3e6b0f(0x1c1)][_0x3e6b0f(0x1a7)](_0x3e6b0f(0x1a0),_0x2cd050);}[_0x43396f(0x19f)](){const _0x493d37=_0x43396f;[[X,{'useClass':Te}]][_0x493d37(0x19e)](_0x1a4d5e=>this['_injector'][_0x493d37(0x194)](_0x1a4d5e)),this[_0x493d37(0x1d3)](this[_0x493d37(0x1a5)][_0x493d37(0x1a9)](Ee));}};Y($,_0x43396f(0x1b2),_0x43396f(0x1bd)),Y($,_0x43396f(0x1d6),Se),Y($,_0x43396f(0x1b8),Ce),Y($,_0x43396f(0x1a3),_0x4b2236[_0x43396f(0x193)]),$=De([_0x40586b(_0x5cf441),Q(0x1,_0x4a0035(_0x5e60e7)),Q(0x2,_0x1fafaa),Q(0x3,_0x214ca1)],$);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 _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};
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
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;}));
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x2948(){const _0x2c304e=['@univerjs-pro/engine-shape','UniverInstanceType','_commandService','_config','CommandType','getOwnPropertyDescriptor','toPrimitive','ICommandService','createCustomShape','kind','splice','join','setInkPenAnchorPointType','color','version','max','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','ink-centerline-','5386792rYnWSZ','ShapeLineCapEnum','prototype','ink.operation.start','type','string','forEach','Round','ink.host-adapter.service','1506253ngmLjH','Rect','UniverProLicense','35ECArET','width','Plugin','findClosestInkPenHandle','pluginName','#f54a45','push','smooth','onStarting','ink.config','abs','object','IConfigService','UniverInkPlugin','packageName','UNIVER_UNKNOWN','defineProperty','points','left','ShapeLineJoinEnum','tolerance','OPERATION','cycleInkPenAnchorPointType','SolidFill','_configService','_injector','add','@univerjs-pro/ink','1281510NYTXrV','decorate','20ChjRqQ','2160106cNRzir','distance','right','UniverCore','anchor','171828zRhpTa','endIndex','toStringTag','registerAdapter','fillColor','symmetric','4109289cCiGIX','top','default','DependentOn','exports','norm','start','startIndex','segmentIndex','beginInkMode','hypot','42gdaKgd','anchors','UNIVER_INK_PLUGIN','createId','isInkPenHandleVisible','amd','Injector','map','out','SolidLine','UniverProInk','function','indexOf','pen','round','corner','buildInkCustomShapePayload','_adapters','symbol','ShapeFillEnum','disposeWithMe','slice','ShapeTypeEnum','getInkModelBounds','UniverProEngineShape','pointType','find','min','closed','findClosestInkPenSegment','moveInkPenAnchorPoint','insertInkPenAnchorAt','Module','length','iterator','UniverLicensePlugin','end','point','@univerjs-pro/license','1401205XIYkUz','call','free','opacity'];_0x2948=function(){return _0x2c304e;};return _0x2948();}function _0x1077(_0x5895d8,_0x49de0b){_0x5895d8=_0x5895d8-0x15c;const _0x29485b=_0x2948();let _0x1077fa=_0x29485b[_0x5895d8];return _0x1077fa;}(function(_0x45cc2a,_0x95e22d){const _0xbeffa9=_0x1077,_0x2553e8=_0x45cc2a();while(!![]){try{const _0x8db7ab=parseInt(_0xbeffa9(0x190))/0x1+parseInt(_0xbeffa9(0x1d1))/0x2+-parseInt(_0xbeffa9(0x15e))/0x3+-parseInt(_0xbeffa9(0x1d6))/0x4*(-parseInt(_0xbeffa9(0x1b2))/0x5)+parseInt(_0xbeffa9(0x169))/0x6*(-parseInt(_0xbeffa9(0x1af))/0x7)+parseInt(_0xbeffa9(0x1a6))/0x8+-parseInt(_0xbeffa9(0x1ce))/0x9*(-parseInt(_0xbeffa9(0x1d0))/0xa);if(_0x8db7ab===_0x95e22d)break;else _0x2553e8['push'](_0x2553e8['shift']());}catch(_0x2dd9b0){_0x2553e8['push'](_0x2553e8['shift']());}}}(_0x2948,0xd2f46),function(_0x4117db,_0x3092e6){const _0x4f15d3=_0x1077;typeof exports==_0x4f15d3(0x1bd)&&typeof module<'u'?_0x3092e6(exports,require('@univerjs-pro/engine-shape'),require('@univerjs-pro/license'),require('@univerjs/core')):typeof define==_0x4f15d3(0x174)&&define[_0x4f15d3(0x16e)]?define([_0x4f15d3(0x162),_0x4f15d3(0x194),_0x4f15d3(0x18f),'@univerjs/core'],_0x3092e6):(_0x4117db=typeof globalThis<'u'?globalThis:_0x4117db||self,_0x3092e6(_0x4117db[_0x4f15d3(0x173)]={},_0x4117db[_0x4f15d3(0x181)],_0x4117db[_0x4f15d3(0x1b1)],_0x4117db[_0x4f15d3(0x1d4)]));}(this,function(_0x4dd190,_0x578d4f,_0x356d8f,_0x1d0f37){const _0x4e38a9=_0x1077;Object[_0x4e38a9(0x1c2)](_0x4dd190,Symbol[_0x4e38a9(0x1d8)],{'value':_0x4e38a9(0x189)});let _0x3c56f3=0.0001;function _0xe8a5eb(_0x347ad9){return{'x':_0x347ad9['x'],'y':_0x347ad9['y']};}function _0x9b2196(_0x37014c){return{..._0x37014c,'in':_0x37014c['in']?_0xe8a5eb(_0x37014c['in']):void 0x0,'out':_0x37014c['out']?_0xe8a5eb(_0x37014c['out']):void 0x0};}function _0xf61b07(_0x2217c4){const _0x50efe8=_0x4e38a9;return{'kind':_0x50efe8(0x176),'closed':_0x2217c4[_0x50efe8(0x185)],'anchors':_0x2217c4[_0x50efe8(0x16a)][_0x50efe8(0x170)](_0x9b2196)};}function _0x3b34b7(_0x55714b,_0x4d9a8a,_0x4b0b96){return{'x':_0x55714b['x']+(_0x4d9a8a['x']-_0x55714b['x'])*_0x4b0b96,'y':_0x55714b['y']+(_0x4d9a8a['y']-_0x55714b['y'])*_0x4b0b96};}function _0x170211(_0xfc3e87,_0xa77f92){return Math['hypot'](_0xfc3e87['x']-_0xa77f92['x'],_0xfc3e87['y']-_0xa77f92['y']);}function _0x43cf75(_0x4ab7af){const _0x1c7eda=_0x4e38a9;let _0x5f0339=Math[_0x1c7eda(0x168)](_0x4ab7af['x'],_0x4ab7af['y']);return _0x5f0339<_0x3c56f3?{'x':0x1,'y':0x0}:{'x':_0x4ab7af['x']/_0x5f0339,'y':_0x4ab7af['y']/_0x5f0339};}function _0x508ee7(_0x2a5490,_0x2c7249,_0x307812=_0x170211(_0x2a5490,_0x2c7249)){let _0x3e53b1=_0x43cf75({'x':_0x2a5490['x']-_0x2c7249['x'],'y':_0x2a5490['y']-_0x2c7249['y']});return{'x':_0x2a5490['x']+_0x3e53b1['x']*_0x307812,'y':_0x2a5490['y']+_0x3e53b1['y']*_0x307812};}function _0x16b07b(_0x9adae5,_0x2152ef){const _0x13034c=_0x4e38a9;let {anchors:_0x70ec62}=_0x9adae5;return _0x70ec62[_0x13034c(0x18a)]<0x2||_0x2152ef<0x0?null:_0x2152ef<_0x70ec62['length']-0x1?{'startIndex':_0x2152ef,'endIndex':_0x2152ef+0x1,'start':_0x70ec62[_0x2152ef],'end':_0x70ec62[_0x2152ef+0x1]}:_0x9adae5[_0x13034c(0x185)]&&_0x2152ef===_0x70ec62[_0x13034c(0x18a)]-0x1?{'startIndex':_0x70ec62['length']-0x1,'endIndex':0x0,'start':_0x70ec62[_0x70ec62[_0x13034c(0x18a)]-0x1],'end':_0x70ec62[0x0]}:null;}function _0x54080c(_0x4b47d8,_0xe61d3c){const _0x4355de=_0x4e38a9;let _0x27b3cc=_0x16b07b(_0x4b47d8,_0xe61d3c);return _0x27b3cc?[_0x27b3cc[_0x4355de(0x164)],_0x27b3cc[_0x4355de(0x164)][_0x4355de(0x171)]??_0x27b3cc[_0x4355de(0x164)],_0x27b3cc[_0x4355de(0x18d)]['in']??_0x27b3cc[_0x4355de(0x18d)],_0x27b3cc[_0x4355de(0x18d)]]:null;}function _0x54413c(_0x48fe84,_0x7a8b49){return _0x7a8b49==='anchor'?_0x48fe84:_0x48fe84[_0x7a8b49]??null;}function _0x2ea2f6(_0xf405d1,_0x6e71bf,_0x196a46){const _0x52904a=_0x4e38a9;return _0x196a46==='anchor'||_0xf405d1[_0x52904a(0x185)]?!0x0:_0x196a46==='in'?_0x6e71bf>0x0:_0x6e71bf<_0xf405d1[_0x52904a(0x16a)][_0x52904a(0x18a)]-0x1;}function _0x5b7549(_0x427cc2,_0x1a88ff){let [_0x10cc28,_0x2582e7,_0x3ccf50,_0x5a90aa]=_0x427cc2,_0x24378d=_0x3b34b7(_0x10cc28,_0x2582e7,_0x1a88ff),_0x57ff8c=_0x3b34b7(_0x2582e7,_0x3ccf50,_0x1a88ff),_0x1414e9=_0x3b34b7(_0x3ccf50,_0x5a90aa,_0x1a88ff);return _0x3b34b7(_0x3b34b7(_0x24378d,_0x57ff8c,_0x1a88ff),_0x3b34b7(_0x57ff8c,_0x1414e9,_0x1a88ff),_0x1a88ff);}function _0x31af5b(_0x13f3a8,_0x269262){let [_0x548b33,_0x1178c4,_0x4c6f3c,_0x3d3207]=_0x13f3a8,_0x6ed588=_0x3b34b7(_0x548b33,_0x1178c4,_0x269262),_0x517f9f=_0x3b34b7(_0x1178c4,_0x4c6f3c,_0x269262),_0xfee068=_0x3b34b7(_0x4c6f3c,_0x3d3207,_0x269262),_0x5c8507=_0x3b34b7(_0x6ed588,_0x517f9f,_0x269262),_0x1b51e8=_0x3b34b7(_0x517f9f,_0xfee068,_0x269262),_0x42b3eb=_0x3b34b7(_0x5c8507,_0x1b51e8,_0x269262);return{'left':[_0x548b33,_0x6ed588,_0x5c8507,_0x42b3eb],'right':[_0x42b3eb,_0x1b51e8,_0xfee068,_0x3d3207]};}function _0x49ab6f(_0x326778,_0x3abafe,_0xf9f143){const _0x432293=_0x4e38a9;let _0x2ca007=_0xf9f143['x']-_0x3abafe['x'],_0x4a3c5a=_0xf9f143['y']-_0x3abafe['y'],_0x374b4a=_0x2ca007*_0x2ca007+_0x4a3c5a*_0x4a3c5a,_0x2bfaf0=_0x374b4a<=_0x3c56f3?0x0:Math[_0x432293(0x1a3)](0x0,Math[_0x432293(0x184)](0x1,((_0x326778['x']-_0x3abafe['x'])*_0x2ca007+(_0x326778['y']-_0x3abafe['y'])*_0x4a3c5a)/_0x374b4a)),_0x271758={'x':_0x3abafe['x']+_0x2ca007*_0x2bfaf0,'y':_0x3abafe['y']+_0x4a3c5a*_0x2bfaf0};return{'point':_0x271758,'ratio':_0x2bfaf0,'distance':_0x170211(_0x326778,_0x271758)};}function _0x3c8fa8(_0x2db08e,_0x335fbf,_0x4f72d7){const _0x5bfdfc=_0x4e38a9;return _0x49ab6f(_0x2db08e,_0x335fbf,_0x4f72d7)[_0x5bfdfc(0x1d2)]**0x2;}function _0x49ae55(_0x20b328,_0x14ff28){const _0x9eab1a=_0x4e38a9;if(_0x20b328[_0x9eab1a(0x18a)]<=0x2)return _0x20b328[_0x9eab1a(0x170)](_0xe8a5eb);let _0x59be1d=0x0,_0x316359=0x0,_0x587926=_0x20b328[0x0],_0x4b3c83=_0x20b328[_0x20b328['length']-0x1],_0x3a91d3=_0x14ff28*_0x14ff28;for(let _0x41fd07=0x1;_0x41fd07<_0x20b328[_0x9eab1a(0x18a)]-0x1;_0x41fd07++){let _0x103587=_0x3c8fa8(_0x20b328[_0x41fd07],_0x587926,_0x4b3c83);_0x103587>_0x59be1d&&(_0x59be1d=_0x103587,_0x316359=_0x41fd07);}if(_0x59be1d<=_0x3a91d3)return[_0xe8a5eb(_0x587926),_0xe8a5eb(_0x4b3c83)];let _0x2488ac=_0x49ae55(_0x20b328['slice'](0x0,_0x316359+0x1),_0x14ff28),_0x122a10=_0x49ae55(_0x20b328[_0x9eab1a(0x17e)](_0x316359),_0x14ff28);return[..._0x2488ac['slice'](0x0,-0x1),..._0x122a10];}function _0x120ae2(_0x2ccd95,_0x1ee371){let _0x254305=_0x2ccd95[_0x1ee371],_0x75f379=_0x2ccd95[_0x1ee371+0x1],_0x37faba=_0x2ccd95[_0x1ee371-0x1]??_0x254305;return{'x':_0x254305['x']+(_0x75f379['x']-_0x37faba['x'])/0x6,'y':_0x254305['y']+(_0x75f379['y']-_0x37faba['y'])/0x6};}function _0x26633b(_0xed58,_0x16a25b){let _0x36d50c=_0xed58[_0x16a25b],_0x450090=_0xed58[_0x16a25b-0x1],_0x4290e0=_0xed58[_0x16a25b+0x1]??_0x36d50c;return{'x':_0x36d50c['x']-(_0x4290e0['x']-_0x450090['x'])/0x6,'y':_0x36d50c['y']-(_0x4290e0['y']-_0x450090['y'])/0x6};}function _0x410d17(_0x4365dc,_0x4eaa1e){const _0x4c8787=_0x4e38a9;let _0x78176c=_0x4365dc['anchors'][_0x4eaa1e],_0x367483=_0x4365dc[_0x4c8787(0x16a)][_0x4eaa1e-0x1]??(_0x4365dc['closed']?_0x4365dc['anchors'][_0x4365dc['anchors'][_0x4c8787(0x18a)]-0x1]:null),_0x5359fa=_0x4365dc['anchors'][_0x4eaa1e+0x1]??(_0x4365dc['closed']?_0x4365dc[_0x4c8787(0x16a)][0x0]:null),_0x24d904=_0x367483&&_0x5359fa?_0x43cf75({'x':_0x5359fa['x']-_0x367483['x'],'y':_0x5359fa['y']-_0x367483['y']}):_0x5359fa?_0x43cf75({'x':_0x5359fa['x']-_0x78176c['x'],'y':_0x5359fa['y']-_0x78176c['y']}):_0x367483?_0x43cf75({'x':_0x78176c['x']-_0x367483['x'],'y':_0x78176c['y']-_0x367483['y']}):{'x':0x1,'y':0x0},_0xd25f72=_0x367483&&_0x5359fa?Math[_0x4c8787(0x1a3)](0x32,_0x170211(_0x367483,_0x5359fa)/0x4):0x32;return{'in':{'x':_0x78176c['x']-_0x24d904['x']*_0xd25f72,'y':_0x78176c['y']-_0x24d904['y']*_0xd25f72},'out':{'x':_0x78176c['x']+_0x24d904['x']*_0xd25f72,'y':_0x78176c['y']+_0x24d904['y']*_0xd25f72}};}function _0x36ae8f(_0x36a07f,_0x1c80e9){const _0x39dbfd=_0x4e38a9;let _0xa289f=_0x36a07f[_0x1c80e9],_0x29d00b=_0x1c80e9==='in'?_0x39dbfd(0x171):'in',_0x2c4406=_0x36a07f[_0x29d00b];_0xa289f&&(_0x36a07f['pointType']===_0x39dbfd(0x15d)?_0x36a07f[_0x29d00b]=_0x508ee7(_0x36a07f,_0xa289f):_0x36a07f[_0x39dbfd(0x182)]===_0x39dbfd(0x1b9)&&(_0x36a07f[_0x29d00b]=_0x508ee7(_0x36a07f,_0xa289f,_0x2c4406?_0x170211(_0x36a07f,_0x2c4406):_0x170211(_0x36a07f,_0xa289f))));}function _0x3007fb(_0x50aa88,_0x2f5e8e){const _0xa0452c=_0x4e38a9;let _0x24a950=_0xf61b07(_0x50aa88);return!_0x2f5e8e||_0x24a950['closed']||_0x24a950[_0xa0452c(0x16a)][_0xa0452c(0x18a)]===0x0||_0x24a950[_0xa0452c(0x16a)]['push']({'id':'__ink-preview-anchor__','x':_0x2f5e8e['x'],'y':_0x2f5e8e['y'],'pointType':_0xa0452c(0x178)}),_0x24a950;}function _0x1920f4(_0x22c795,_0x87d921={}){const _0x259cd9=_0x4e38a9;let _0x498b7f=Math['max'](0x0,_0x87d921[_0x259cd9(0x1c6)]??Math[_0x259cd9(0x1a3)](0x4,_0x22c795[_0x259cd9(0x1b3)]*0.35)),_0x3f0ecb=_0x87d921[_0x259cd9(0x16c)]??(_0x4e3bed=>_0x259cd9(0x1a5)+_0x4e3bed),_0x3b8097=_0x49ae55(_0x22c795[_0x259cd9(0x1c3)],_0x498b7f),_0x5e9dd=_0x3b8097[_0x259cd9(0x170)]((_0xa92502,_0x2f7a36)=>({'id':_0x3f0ecb(_0x2f7a36),'x':_0xa92502['x'],'y':_0xa92502['y'],'pointType':_0x259cd9(0x192)}));for(let _0x3ac11c=0x0;_0x3ac11c<_0x5e9dd[_0x259cd9(0x18a)]-0x1;_0x3ac11c++)_0x5e9dd[_0x3ac11c][_0x259cd9(0x171)]=_0x120ae2(_0x3b8097,_0x3ac11c),_0x5e9dd[_0x3ac11c+0x1]['in']=_0x26633b(_0x3b8097,_0x3ac11c+0x1);return{'kind':_0x259cd9(0x176),'closed':!0x1,'anchors':_0x5e9dd};}function _0x1e5948(_0x4faf33,_0x1f33cd,_0x41c2c3){const _0xd2d231=_0x4e38a9;let _0x47df6d=null,_0x2cb6ff=[_0xd2d231(0x1d5),'in',_0xd2d231(0x171)];return _0x4faf33[_0xd2d231(0x16a)][_0xd2d231(0x1ac)]((_0x14f7ed,_0x27dadd)=>{const _0x2548d8=_0xd2d231;_0x2cb6ff[_0x2548d8(0x1ac)](_0x473f19=>{const _0x3ee369=_0x2548d8;if(!_0x2ea2f6(_0x4faf33,_0x27dadd,_0x473f19))return;let _0x101f12=_0x54413c(_0x14f7ed,_0x473f19);if(!_0x101f12)return;let _0x1c6486=_0x170211(_0x1f33cd,_0x101f12);_0x1c6486>_0x41c2c3||_0x47df6d&&_0x1c6486>=_0x47df6d[_0x3ee369(0x1d2)]||(_0x47df6d={'handle':{'kind':_0x473f19,'anchorId':_0x14f7ed['id']},'point':_0xe8a5eb(_0x101f12),'distance':_0x1c6486});});}),_0x47df6d;}function _0x23b578(_0x31c4e5,_0x177638,_0x1fa8ee){const _0x164f51=_0x4e38a9;let _0x100ffc=null,_0x382f4d=_0x31c4e5['closed']?_0x31c4e5['anchors'][_0x164f51(0x18a)]:Math['max'](0x0,_0x31c4e5[_0x164f51(0x16a)][_0x164f51(0x18a)]-0x1);for(let _0x22ad79=0x0;_0x22ad79<_0x382f4d;_0x22ad79++){let _0x271861=_0x54080c(_0x31c4e5,_0x22ad79);if(!_0x271861)continue;let _0x505d01=_0x5b7549(_0x271861,0x0);for(let _0x466010=0x1;_0x466010<=0x20;_0x466010++){let _0x3f3bf6=_0x5b7549(_0x271861,_0x466010/0x20),_0x45763b=_0x49ab6f(_0x177638,_0x505d01,_0x3f3bf6),_0x2aea9e=(_0x466010-0x1+_0x45763b['ratio'])/0x20;(!_0x100ffc||_0x45763b['distance']<_0x100ffc[_0x164f51(0x1d2)])&&(_0x100ffc={'segmentIndex':_0x22ad79,'t':_0x2aea9e,'point':_0x45763b[_0x164f51(0x18e)],'distance':_0x45763b[_0x164f51(0x1d2)]}),_0x505d01=_0x3f3bf6;}}return _0x100ffc&&_0x100ffc[_0x164f51(0x1d2)]<=_0x1fa8ee?_0x100ffc:null;}function _0x1fa9a8(_0x5fe668,_0x41093,_0x35a261){const _0x3b618f=_0x4e38a9;let _0x5c892b=_0xf61b07(_0x5fe668),_0x447067=_0x16b07b(_0x5c892b,_0x41093[_0x3b618f(0x166)]),_0x222eb9=_0x54080c(_0x5c892b,_0x41093['segmentIndex']);if(!_0x447067||!_0x222eb9)return _0x5c892b;let _0x17d836=_0x31af5b(_0x222eb9,Math[_0x3b618f(0x1a3)](0x0,Math[_0x3b618f(0x184)](0x1,_0x41093['t']))),_0x25d017={'id':_0x35a261(),'x':_0x17d836['left'][0x3]['x'],'y':_0x17d836[_0x3b618f(0x1c4)][0x3]['y'],'in':_0xe8a5eb(_0x17d836[_0x3b618f(0x1c4)][0x2]),'out':_0xe8a5eb(_0x17d836[_0x3b618f(0x1d3)][0x1]),'pointType':_0x3b618f(0x192)};return _0x5c892b['anchors'][_0x447067[_0x3b618f(0x165)]][_0x3b618f(0x171)]=_0xe8a5eb(_0x17d836[_0x3b618f(0x1c4)][0x1]),_0x5c892b[_0x3b618f(0x16a)][_0x447067[_0x3b618f(0x1d7)]]['in']=_0xe8a5eb(_0x17d836[_0x3b618f(0x1d3)][0x2]),_0x5c892b['anchors']['splice'](_0x447067[_0x3b618f(0x165)]+0x1,0x0,_0x25d017),_0x5c892b;}function _0x571ff4(_0x2e9455,_0x536af6){const _0x5e50da=_0x4e38a9;let _0x5f1342=_0xf61b07(_0x2e9455);return _0x5f1342['anchors']=_0x5f1342['anchors']['filter'](_0x17d4bf=>_0x17d4bf['id']!==_0x536af6),_0x5f1342[_0x5e50da(0x185)]&&_0x5f1342['anchors']['length']<0x3&&(_0x5f1342[_0x5e50da(0x185)]=!0x1),_0x5f1342;}function _0x3aa496(_0x7625f3,_0x2910b8,_0x20f3ef){const _0x857251=_0x4e38a9;let _0x1680eb=_0xf61b07(_0x7625f3),_0x23b913=_0x1680eb[_0x857251(0x16a)]['findIndex'](_0xbfa20d=>_0xbfa20d['id']===_0x2910b8),_0x368141=_0x1680eb[_0x857251(0x16a)][_0x23b913];if(!_0x368141)return _0x1680eb;if(_0x368141[_0x857251(0x182)]=_0x20f3ef,_0x20f3ef===_0x857251(0x178))return delete _0x368141['in'],delete _0x368141[_0x857251(0x171)],_0x1680eb;let _0xa1f4ab=_0x410d17(_0x1680eb,_0x23b913);if(_0x368141['in']=_0x368141['in']?_0xe8a5eb(_0x368141['in']):_0xa1f4ab['in'],_0x368141['out']=_0x368141['out']?_0xe8a5eb(_0x368141['out']):_0xa1f4ab[_0x857251(0x171)],_0x20f3ef===_0x857251(0x15d)){let _0x302ec5=Math[_0x857251(0x1a3)](_0x170211(_0x368141,_0x368141['in']),_0x170211(_0x368141,_0x368141[_0x857251(0x171)]),0x32),_0x1fa7fe=_0x43cf75({'x':_0x368141['out']['x']-_0x368141['x'],'y':_0x368141['out']['y']-_0x368141['y']});_0x368141[_0x857251(0x171)]={'x':_0x368141['x']+_0x1fa7fe['x']*_0x302ec5,'y':_0x368141['y']+_0x1fa7fe['y']*_0x302ec5},_0x368141['in']={'x':_0x368141['x']-_0x1fa7fe['x']*_0x302ec5,'y':_0x368141['y']-_0x1fa7fe['y']*_0x302ec5};}else _0x20f3ef==='smooth'&&_0x36ae8f(_0x368141,_0x857251(0x171));return _0x1680eb;}function _0x4481db(_0x3f4868,_0x46aadb){const _0x281819=_0x4e38a9;let _0x4be044=_0x3f4868['anchors']['find'](_0x42f3b5=>_0x42f3b5['id']===_0x46aadb),_0x200073=(_0x4be044==null?void 0x0:_0x4be044[_0x281819(0x182)])??_0x281819(0x178);return _0x3aa496(_0x3f4868,_0x46aadb,_0x200073===_0x281819(0x178)?'smooth':_0x200073===_0x281819(0x1b9)?_0x281819(0x15d):_0x200073===_0x281819(0x15d)?_0x281819(0x192):'corner');}function _0x147bc9(_0x2ac2e0,_0xa1fc6a,_0x38b38f){const _0x39e99e=_0x4e38a9;let _0x2a9035=_0xf61b07(_0x2ac2e0),_0x58b9e3=_0x2a9035[_0x39e99e(0x16a)][_0x39e99e(0x183)](_0x58ac01=>_0x58ac01['id']===_0xa1fc6a['anchorId']);if(!_0x58b9e3)return _0x2a9035;if(_0xa1fc6a['kind']===_0x39e99e(0x1d5)){let _0x4e7b88={'x':_0x38b38f['x']-_0x58b9e3['x'],'y':_0x38b38f['y']-_0x58b9e3['y']};return _0x58b9e3['x']=_0x38b38f['x'],_0x58b9e3['y']=_0x38b38f['y'],_0x58b9e3['in']&&={'x':_0x58b9e3['in']['x']+_0x4e7b88['x'],'y':_0x58b9e3['in']['y']+_0x4e7b88['y']},_0x58b9e3['out']&&={'x':_0x58b9e3['out']['x']+_0x4e7b88['x'],'y':_0x58b9e3[_0x39e99e(0x171)]['y']+_0x4e7b88['y']},_0x2a9035;}return _0x58b9e3[_0xa1fc6a[_0x39e99e(0x19d)]]=_0xe8a5eb(_0x38b38f),_0x58b9e3[_0x39e99e(0x182)]===_0x39e99e(0x178)&&(_0x58b9e3[_0x39e99e(0x182)]=_0x39e99e(0x192)),_0x36ae8f(_0x58b9e3,_0xa1fc6a[_0x39e99e(0x19d)]),_0x2a9035;}let _0x3961a4=1e-9;function _0x1daabf(_0x33841e){const _0x35c422=_0x4e38a9;let _0x56cae7=Math[_0x35c422(0x177)](_0x33841e*0x2710)/0x2710;return Object['is'](_0x56cae7,-0x0)?'0':String(_0x56cae7);}function _0x2f0797(_0x47bb38){return _0x1daabf(_0x47bb38['x'])+'\x20'+_0x1daabf(_0x47bb38['y']);}function _0x21f681(_0x5bd93d,_0x488728){return{'x':_0x5bd93d['x']-_0x488728['x'],'y':_0x5bd93d['y']-_0x488728['y']};}function _0x1d2111(_0x4cc233,_0x3c721d,_0x4957e2,_0xfb9699,_0x821c9a){let _0x5c7845=0x1-_0x821c9a;return{'x':_0x5c7845*_0x5c7845*_0x5c7845*_0x4cc233['x']+0x3*_0x5c7845*_0x5c7845*_0x821c9a*_0x3c721d['x']+0x3*_0x5c7845*_0x821c9a*_0x821c9a*_0x4957e2['x']+_0x821c9a*_0x821c9a*_0x821c9a*_0xfb9699['x'],'y':_0x5c7845*_0x5c7845*_0x5c7845*_0x4cc233['y']+0x3*_0x5c7845*_0x5c7845*_0x821c9a*_0x3c721d['y']+0x3*_0x5c7845*_0x821c9a*_0x821c9a*_0x4957e2['y']+_0x821c9a*_0x821c9a*_0x821c9a*_0xfb9699['y']};}function _0x120186(_0x3866f1,_0x5a9dcc,_0xc98aed,_0x3bf1c8){const _0x2e6130=_0x4e38a9;let _0x3addd4=-_0x3866f1+0x3*_0x5a9dcc-0x3*_0xc98aed+_0x3bf1c8,_0x2a6a2f=0x3*_0x3866f1-0x6*_0x5a9dcc+0x3*_0xc98aed,_0x47e63b=-0x3*_0x3866f1+0x3*_0x5a9dcc,_0x5c5cad=[];if(Math['abs'](_0x3addd4)<_0x3961a4){if(Math[_0x2e6130(0x1bc)](_0x2a6a2f)<_0x3961a4)return _0x5c5cad;let _0xb3e3c2=-_0x47e63b/(0x2*_0x2a6a2f);return _0xb3e3c2>0x0&&_0xb3e3c2<0x1&&_0x5c5cad[_0x2e6130(0x1b8)](_0xb3e3c2),_0x5c5cad;}let _0x567a8a=_0x2a6a2f*_0x2a6a2f-0x3*_0x3addd4*_0x47e63b;if(_0x567a8a<0x0)return _0x5c5cad;let _0x512167=Math['sqrt'](Math[_0x2e6130(0x1a3)](0x0,_0x567a8a)),_0x4fd001=(-_0x2a6a2f+_0x512167)/(0x3*_0x3addd4),_0x1c2ae2=(-_0x2a6a2f-_0x512167)/(0x3*_0x3addd4);return _0x4fd001>0x0&&_0x4fd001<0x1&&_0x5c5cad[_0x2e6130(0x1b8)](_0x4fd001),_0x1c2ae2>0x0&&_0x1c2ae2<0x1&&Math[_0x2e6130(0x1bc)](_0x1c2ae2-_0x4fd001)>_0x3961a4&&_0x5c5cad[_0x2e6130(0x1b8)](_0x1c2ae2),_0x5c5cad;}function _0x523186(_0x7f3d5c,_0x40f992,_0x190601,_0x37d65b,_0x3e37e3){const _0x1dc48d=_0x4e38a9;_0x7f3d5c[_0x1dc48d(0x1b8)](_0x40f992,_0x3e37e3),new Set([..._0x120186(_0x40f992['x'],_0x190601['x'],_0x37d65b['x'],_0x3e37e3['x']),..._0x120186(_0x40f992['y'],_0x190601['y'],_0x37d65b['y'],_0x3e37e3['y'])])['forEach'](_0x775de7=>{const _0xa8a816=_0x1dc48d;_0x7f3d5c[_0xa8a816(0x1b8)](_0x1d2111(_0x40f992,_0x190601,_0x37d65b,_0x3e37e3,_0x775de7));});}function _0xd788e3(_0x53ad4f){const _0x4e8fa2=_0x4e38a9;let _0x8401b=_0x53ad4f[_0x4e8fa2(0x16a)];if(_0x8401b[_0x4e8fa2(0x18a)]<=0x1)return _0x8401b;let _0x24cda4=[];for(let _0x611fa5=0x1;_0x611fa5<_0x8401b['length'];_0x611fa5++){let _0xb41a88=_0x8401b[_0x611fa5-0x1],_0x3dbdfa=_0x8401b[_0x611fa5];_0x523186(_0x24cda4,_0xb41a88,_0xb41a88['out']??_0xb41a88,_0x3dbdfa['in']??_0x3dbdfa,_0x3dbdfa);}if(_0x53ad4f['closed']&&_0x8401b[_0x4e8fa2(0x18a)]>0x1){let _0x29619b=_0x8401b[_0x8401b['length']-0x1],_0x1776d5=_0x8401b[0x0];_0x523186(_0x24cda4,_0x29619b,_0x29619b[_0x4e8fa2(0x171)]??_0x29619b,_0x1776d5['in']??_0x1776d5,_0x1776d5);}return _0x24cda4;}function _0xa3ce09(_0x1351b9){const _0x173a72=_0x4e38a9;let _0x2468db=_0x1351b9[_0x173a72(0x1c3)];if(_0x2468db[_0x173a72(0x18a)]<=0x1)return _0x2468db;let _0xa5f69a=[];for(let _0x34fa22=0x0;_0x34fa22<_0x2468db[_0x173a72(0x18a)]-0x1;_0x34fa22++){let _0x4c0fff=_0x2468db[_0x34fa22],_0x4cb362=_0x2468db[_0x34fa22+0x1],_0x92608b=_0x2468db[_0x34fa22-0x1]??_0x4c0fff,_0x257aab=_0x2468db[_0x34fa22+0x2]??_0x4cb362;_0x523186(_0xa5f69a,_0x4c0fff,{'x':_0x4c0fff['x']+(_0x4cb362['x']-_0x92608b['x'])/0x6,'y':_0x4c0fff['y']+(_0x4cb362['y']-_0x92608b['y'])/0x6},{'x':_0x4cb362['x']-(_0x257aab['x']-_0x4c0fff['x'])/0x6,'y':_0x4cb362['y']-(_0x257aab['y']-_0x4c0fff['y'])/0x6},_0x4cb362);}return _0xa5f69a;}function _0x2f8c6d(_0x9849b1){const _0x5eea94=_0x4e38a9;return _0x9849b1[_0x5eea94(0x19d)]===_0x5eea94(0x176)?_0xd788e3(_0x9849b1):_0xa3ce09(_0x9849b1);}function _0x1b6983(_0x2bb948){let _0x27777d=Math['round'](_0x2bb948*0x2710)/0x2710;return Object['is'](_0x27777d,-0x0)?0x0:_0x27777d;}function _0x43f7f6(_0x5f4530){const _0x8e4634=_0x4e38a9;let _0x5778a9=_0x2f8c6d(_0x5f4530);if(_0x5778a9[_0x8e4634(0x18a)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x4b6031=Math[_0x8e4634(0x184)](..._0x5778a9[_0x8e4634(0x170)](_0x1bde37=>_0x1bde37['x'])),_0x4ca602=Math[_0x8e4634(0x184)](..._0x5778a9[_0x8e4634(0x170)](_0x56ad56=>_0x56ad56['y'])),_0x14bf20=Math[_0x8e4634(0x1a3)](..._0x5778a9[_0x8e4634(0x170)](_0x216386=>_0x216386['x'])),_0x131e47=Math[_0x8e4634(0x1a3)](..._0x5778a9['map'](_0x45166c=>_0x45166c['y']));return{'left':_0x1b6983(_0x4b6031),'top':_0x1b6983(_0x4ca602),'width':_0x1b6983(Math[_0x8e4634(0x1a3)](0x1,_0x14bf20-_0x4b6031)),'height':_0x1b6983(Math[_0x8e4634(0x1a3)](0x1,_0x131e47-_0x4ca602))};}function _0x3f48ce(_0x37d1c1,_0x27da52){const _0x342a76=_0x4e38a9;let _0x47025e=_0x37d1c1[_0x342a76(0x16a)];if(_0x47025e[_0x342a76(0x18a)]===0x0)return'';let _0x2314d5=['M\x20'+_0x2f0797(_0x21f681(_0x47025e[0x0],_0x27da52))];for(let _0x436c4d=0x1;_0x436c4d<_0x47025e[_0x342a76(0x18a)];_0x436c4d++){let _0x552661=_0x47025e[_0x436c4d-0x1],_0x5540f7=_0x47025e[_0x436c4d],_0x56ea5d=_0x552661[_0x342a76(0x171)]??_0x552661,_0x51c984=_0x5540f7['in']??_0x5540f7;_0x2314d5[_0x342a76(0x1b8)]('C\x20'+_0x2f0797(_0x21f681(_0x56ea5d,_0x27da52))+'\x20'+_0x2f0797(_0x21f681(_0x51c984,_0x27da52))+'\x20'+_0x2f0797(_0x21f681(_0x5540f7,_0x27da52)));}if(_0x37d1c1[_0x342a76(0x185)]&&_0x47025e['length']>0x1){let _0x53beb9=_0x47025e[_0x47025e[_0x342a76(0x18a)]-0x1],_0x196d41=_0x47025e[0x0],_0xa7d08a=_0x53beb9[_0x342a76(0x171)]??_0x53beb9,_0x3a220f=_0x196d41['in']??_0x196d41;_0x2314d5[_0x342a76(0x1b8)]('C\x20'+_0x2f0797(_0x21f681(_0xa7d08a,_0x27da52))+'\x20'+_0x2f0797(_0x21f681(_0x3a220f,_0x27da52))+'\x20'+_0x2f0797(_0x21f681(_0x196d41,_0x27da52))),_0x2314d5['push']('Z');}return _0x2314d5[_0x342a76(0x19f)]('\x20');}function _0x3ad25a(_0x3a6bd9,_0x4358ab){const _0x46d3d9=_0x4e38a9;let _0x440924=_0x3a6bd9[_0x46d3d9(0x1c3)][_0x46d3d9(0x170)](_0x5da778=>_0x21f681(_0x5da778,_0x4358ab));if(_0x440924[_0x46d3d9(0x18a)]===0x0)return'';if(_0x440924[_0x46d3d9(0x18a)]===0x1)return'M\x20'+_0x2f0797(_0x440924[0x0]);let _0x119a14=['M\x20'+_0x2f0797(_0x440924[0x0])];for(let _0x1acaa1=0x0;_0x1acaa1<_0x440924[_0x46d3d9(0x18a)]-0x1;_0x1acaa1++){let _0x3b5839=_0x440924[_0x1acaa1],_0x10d6de=_0x440924[_0x1acaa1+0x1],_0x1e8ee7=_0x440924[_0x1acaa1-0x1]??_0x3b5839,_0x33381a=_0x440924[_0x1acaa1+0x2]??_0x10d6de,_0x266ff2={'x':_0x3b5839['x']+(_0x10d6de['x']-_0x1e8ee7['x'])/0x6,'y':_0x3b5839['y']+(_0x10d6de['y']-_0x1e8ee7['y'])/0x6},_0x190f81={'x':_0x10d6de['x']-(_0x33381a['x']-_0x3b5839['x'])/0x6,'y':_0x10d6de['y']-(_0x33381a['y']-_0x3b5839['y'])/0x6};_0x119a14[_0x46d3d9(0x1b8)]('C\x20'+_0x2f0797(_0x266ff2)+'\x20'+_0x2f0797(_0x190f81)+'\x20'+_0x2f0797(_0x10d6de));}return _0x119a14[_0x46d3d9(0x19f)]('\x20');}function _0xc3c4f3(_0xcb552a,_0x10fb15){const _0x21a861=_0x4e38a9;return _0xcb552a[_0x21a861(0x19d)]===_0x21a861(0x176)?_0x3f48ce(_0xcb552a,_0x10fb15):_0x3ad25a(_0xcb552a,_0x10fb15);}function _0x55a71b(_0x2e1437,_0x11348f){const _0x1e90c6=_0x4e38a9;return _0x11348f!=null&&_0x11348f['color']?_0x11348f[_0x1e90c6(0x1a1)]:_0x2e1437['kind']===_0x1e90c6(0x176)?_0x1e90c6(0x1b7):_0x2e1437[_0x1e90c6(0x1a1)];}function _0x2dd779(_0x41b3f3,_0x2cc30c){const _0x57033c=_0x4e38a9;return(_0x2cc30c==null?void 0x0:_0x2cc30c[_0x57033c(0x1b3)])===void 0x0?_0x41b3f3['kind']===_0x57033c(0x176)?0x2:_0x41b3f3[_0x57033c(0x1b3)]:_0x2cc30c['width'];}function _0x2923b7(_0x3de4fc,_0x3e2796){const _0x298b3a=_0x4e38a9;return(_0x3e2796==null?void 0x0:_0x3e2796['opacity'])===void 0x0?_0x3de4fc[_0x298b3a(0x19d)]==='pen'?void 0x0:_0x3de4fc[_0x298b3a(0x193)]:_0x3e2796['opacity'];}function _0x4c3d34(_0x50d9bd,_0xcc7175){const _0x1a160e=_0x4e38a9;let _0x3e8316=_0x43f7f6(_0x50d9bd),_0xecd23=_0xc3c4f3(_0x50d9bd,{'x':_0x3e8316[_0x1a160e(0x1c4)],'y':_0x3e8316[_0x1a160e(0x15f)]}),_0x430b15=_0x50d9bd[_0x1a160e(0x19d)]===_0x1a160e(0x176)&&_0x50d9bd[_0x1a160e(0x185)],_0x2d8049=_0xcc7175==null?void 0x0:_0xcc7175[_0x1a160e(0x15c)];return{'shapeType':_0x578d4f[_0x1a160e(0x17f)][_0x1a160e(0x1b0)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x3e8316[_0x1a160e(0x1b3)],'h':_0x3e8316['height'],'fill':_0x430b15?_0x1a160e(0x163):'none','stroke':!0x0,'data':_0xecd23,'dataArray':_0x3dbe09(_0x50d9bd,{'x':_0x3e8316[_0x1a160e(0x1c4)],'y':_0x3e8316[_0x1a160e(0x15f)]})}]},'fill':_0x430b15&&_0x2d8049?{'color':_0x2d8049,'fillType':_0x578d4f[_0x1a160e(0x17c)][_0x1a160e(0x1c9)]}:{'fillType':_0x578d4f[_0x1a160e(0x17c)]['NoFill']},'stroke':{'color':_0x55a71b(_0x50d9bd,_0xcc7175),'width':_0x2dd779(_0x50d9bd,_0xcc7175),'opacity':_0x2923b7(_0x50d9bd,_0xcc7175),'lineStrokeType':_0x578d4f['ShapeLineTypeEnum'][_0x1a160e(0x172)],'capType':_0x578d4f[_0x1a160e(0x1a7)][_0x1a160e(0x1ad)],'lineJoinType':_0x578d4f[_0x1a160e(0x1c5)][_0x1a160e(0x1ad)]}};}function _0x291408(_0x249cad,_0x1ce80e){return{'x':_0x249cad['x']-_0x1ce80e['x'],'y':_0x249cad['y']-_0x1ce80e['y']};}function _0x3dbe09(_0x4f4416,_0x1a02e9){const _0x47d493=_0x4e38a9;if(_0x4f4416[_0x47d493(0x19d)]==='pen'){let _0x3feffe=_0x4f4416[_0x47d493(0x16a)];if(_0x3feffe['length']===0x0)return[];let _0x51921a=_0x291408(_0x3feffe[0x0],_0x1a02e9),_0x4d130d=[{'command':'M','points':[_0x51921a['x'],_0x51921a['y']]}];for(let _0x3cdad1=0x1;_0x3cdad1<_0x3feffe[_0x47d493(0x18a)];_0x3cdad1++){let _0x40acb3=_0x3feffe[_0x3cdad1-0x1],_0x1476a4=_0x3feffe[_0x3cdad1],_0x2a1d6a=_0x291408(_0x40acb3[_0x47d493(0x171)]??_0x40acb3,_0x1a02e9),_0x55bf38=_0x291408(_0x1476a4['in']??_0x1476a4,_0x1a02e9),_0x14efc1=_0x291408(_0x1476a4,_0x1a02e9);_0x4d130d[_0x47d493(0x1b8)]({'command':'C','points':[_0x2a1d6a['x'],_0x2a1d6a['y'],_0x55bf38['x'],_0x55bf38['y'],_0x14efc1['x'],_0x14efc1['y']]});}if(_0x4f4416[_0x47d493(0x185)]&&_0x3feffe['length']>0x1){let _0x21a81c=_0x3feffe[_0x3feffe[_0x47d493(0x18a)]-0x1],_0x3fc506=_0x3feffe[0x0],_0x13b083=_0x291408(_0x21a81c[_0x47d493(0x171)]??_0x21a81c,_0x1a02e9),_0x4134f4=_0x291408(_0x3fc506['in']??_0x3fc506,_0x1a02e9),_0x2eff72=_0x291408(_0x3fc506,_0x1a02e9);_0x4d130d['push']({'command':'C','points':[_0x13b083['x'],_0x13b083['y'],_0x4134f4['x'],_0x4134f4['y'],_0x2eff72['x'],_0x2eff72['y']]}),_0x4d130d[_0x47d493(0x1b8)]({'command':'z','points':[]});}return _0x4d130d;}let _0x2fe3b0=_0x4f4416[_0x47d493(0x1c3)]['map'](_0x591fe5=>_0x291408(_0x591fe5,_0x1a02e9));if(_0x2fe3b0[_0x47d493(0x18a)]===0x0)return[];let _0x60a5fc=[{'command':'M','points':[_0x2fe3b0[0x0]['x'],_0x2fe3b0[0x0]['y']]}];for(let _0x22f744=0x0;_0x22f744<_0x2fe3b0['length']-0x1;_0x22f744++){let _0x3f5b2e=_0x2fe3b0[_0x22f744],_0x40033a=_0x2fe3b0[_0x22f744+0x1],_0x5a46b3=_0x2fe3b0[_0x22f744-0x1]??_0x3f5b2e,_0x24b303=_0x2fe3b0[_0x22f744+0x2]??_0x40033a,_0x3210cd={'x':_0x3f5b2e['x']+(_0x40033a['x']-_0x5a46b3['x'])/0x6,'y':_0x3f5b2e['y']+(_0x40033a['y']-_0x5a46b3['y'])/0x6},_0x455747={'x':_0x40033a['x']-(_0x24b303['x']-_0x3f5b2e['x'])/0x6,'y':_0x40033a['y']-(_0x24b303['y']-_0x3f5b2e['y'])/0x6};_0x60a5fc[_0x47d493(0x1b8)]({'command':'C','points':[_0x3210cd['x'],_0x3210cd['y'],_0x455747['x'],_0x455747['y'],_0x40033a['x'],_0x40033a['y']]});}return _0x60a5fc;}function _0x3d018b(_0x372778){const _0x303dc0=_0x4e38a9;let {model:_0x10c79b,sourceModel:_0x1872a6=_0x10c79b,style:_0x2ba73d}=_0x372778,_0x2e89c6=_0x372778['tool']??_0x10c79b[_0x303dc0(0x19d)],_0x24ec8f=_0x43f7f6(_0x10c79b),_0x5de053=_0x10c79b['kind']===_0x303dc0(0x176)&&_0x2e89c6!==_0x303dc0(0x176)?_0x10c79b:void 0x0;return{'transform':{..._0x24ec8f,'rotation':0x0},'shapeData':_0x4c3d34(_0x10c79b,_0x2ba73d),'ink':{'version':0x1,'tool':_0x2e89c6,'sourceModel':_0x1872a6,..._0x5de053?{'editModel':_0x5de053}:{},'normalizedBounds':_0x24ec8f}};}var _0x283b12=_0x4e38a9(0x1cd),_0x588dcf='1.1.0';function _0xfa633a(_0x4e9ddc){'@babel/helpers - typeof';const _0x419f0d=_0x4e38a9;return _0xfa633a=typeof Symbol=='function'&&typeof Symbol[_0x419f0d(0x18b)]==_0x419f0d(0x17b)?function(_0x253b55){return typeof _0x253b55;}:function(_0x280724){const _0x125b3a=_0x419f0d;return _0x280724&&typeof Symbol==_0x125b3a(0x174)&&_0x280724['constructor']===Symbol&&_0x280724!==Symbol[_0x125b3a(0x1a8)]?'symbol':typeof _0x280724;},_0xfa633a(_0x4e9ddc);}function _0x3d927a(_0x36715f,_0x4f713c){const _0xe4a611=_0x4e38a9;if(_0xfa633a(_0x36715f)!=_0xe4a611(0x1bd)||!_0x36715f)return _0x36715f;var _0x22caff=_0x36715f[Symbol[_0xe4a611(0x19a)]];if(_0x22caff!==void 0x0){var _0x3f110f=_0x22caff[_0xe4a611(0x191)](_0x36715f,_0x4f713c||_0xe4a611(0x160));if(_0xfa633a(_0x3f110f)!=_0xe4a611(0x1bd))return _0x3f110f;throw TypeError(_0xe4a611(0x1a4));}return(_0x4f713c===_0xe4a611(0x1ab)?String:Number)(_0x36715f);}function _0x247aae(_0x47db4c){const _0x8c82e8=_0x4e38a9;var _0x1a9237=_0x3d927a(_0x47db4c,_0x8c82e8(0x1ab));return _0xfa633a(_0x1a9237)=='symbol'?_0x1a9237:_0x1a9237+'';}function _0x230d2a(_0x175492,_0x4259ca,_0x5eaa1c){const _0x59f26c=_0x4e38a9;return(_0x4259ca=_0x247aae(_0x4259ca))in _0x175492?Object[_0x59f26c(0x1c2)](_0x175492,_0x4259ca,{'value':_0x5eaa1c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x175492[_0x4259ca]=_0x5eaa1c,_0x175492;}let _0x20701a=(0x0,_0x1d0f37['createIdentifier'])(_0x4e38a9(0x1ae));var _0x8e1f60=class{constructor(){const _0x423f92=_0x4e38a9;_0x230d2a(this,_0x423f92(0x17a),[]);}[_0x4e38a9(0x1d9)](_0x5de9e8){const _0x3c44cc=_0x4e38a9;return this[_0x3c44cc(0x17a)]['push'](_0x5de9e8),(0x0,_0x1d0f37['toDisposable'])(()=>{const _0x1e0240=_0x3c44cc;let _0x5047f4=this[_0x1e0240(0x17a)][_0x1e0240(0x175)](_0x5de9e8);_0x5047f4>=0x0&&this['_adapters'][_0x1e0240(0x19e)](_0x5047f4,0x1);});}[_0x4e38a9(0x167)](_0x157220){const _0x27dff4=_0x4e38a9;for(let _0x52d87d of this[_0x27dff4(0x17a)])if(_0x52d87d['beginInkMode'](_0x157220))return!0x0;return!0x1;}async[_0x4e38a9(0x19c)](_0x5b318e){const _0xd76358=_0x4e38a9;for(let _0x1e02a6 of this[_0xd76358(0x17a)])if(_0x1e02a6[_0xd76358(0x19c)]&&await _0x1e02a6['createCustomShape'](_0x5b318e))return!0x0;return!0x1;}};let _0x958287={'id':_0x4e38a9(0x1a9),'type':_0x1d0f37[_0x4e38a9(0x198)][_0x4e38a9(0x1c7)],'handler':(_0x353085,_0x1dd131)=>_0x1dd131?_0x353085['get'](_0x20701a)['beginInkMode'](_0x1dd131):!0x1},_0x36f7be={};function _0x1eacf4(_0x10d1e5,_0xb081a7){return function(_0x3066f4,_0x161a2e){_0xb081a7(_0x3066f4,_0x161a2e,_0x10d1e5);};}function _0x10e221(_0xbba19e,_0x16be48,_0x3313ed,_0x2dc907){const _0x476e93=_0x4e38a9;var _0x383068=arguments[_0x476e93(0x18a)],_0x5e4324=_0x383068<0x3?_0x16be48:_0x2dc907===null?_0x2dc907=Object[_0x476e93(0x199)](_0x16be48,_0x3313ed):_0x2dc907,_0x13d8d1;if(typeof Reflect==_0x476e93(0x1bd)&&typeof Reflect[_0x476e93(0x1cf)]==_0x476e93(0x174))_0x5e4324=Reflect[_0x476e93(0x1cf)](_0xbba19e,_0x16be48,_0x3313ed,_0x2dc907);else{for(var _0x569e87=_0xbba19e[_0x476e93(0x18a)]-0x1;_0x569e87>=0x0;_0x569e87--)(_0x13d8d1=_0xbba19e[_0x569e87])&&(_0x5e4324=(_0x383068<0x3?_0x13d8d1(_0x5e4324):_0x383068>0x3?_0x13d8d1(_0x16be48,_0x3313ed,_0x5e4324):_0x13d8d1(_0x16be48,_0x3313ed))||_0x5e4324);}return _0x383068>0x3&&_0x5e4324&&Object[_0x476e93(0x1c2)](_0x16be48,_0x3313ed,_0x5e4324),_0x5e4324;}let _0x52a115=class extends _0x1d0f37[_0x4e38a9(0x1b4)]{constructor(_0x2b1587=_0x36f7be,_0x554e81,_0x52668f,_0x59b433){const _0x2c5e9a=_0x4e38a9;super(),this[_0x2c5e9a(0x197)]=_0x2b1587,this[_0x2c5e9a(0x1cb)]=_0x554e81,this[_0x2c5e9a(0x196)]=_0x52668f,this[_0x2c5e9a(0x1ca)]=_0x59b433;let {..._0x855ebd}=(0x0,_0x1d0f37['merge'])({},_0x36f7be,this[_0x2c5e9a(0x197)]);this[_0x2c5e9a(0x1ca)]['setConfig'](_0x2c5e9a(0x1bb),_0x855ebd);}[_0x4e38a9(0x1ba)](){const _0x16181f=_0x4e38a9;[[_0x20701a,{'useClass':_0x8e1f60}]][_0x16181f(0x1ac)](_0x4b304a=>this['_injector'][_0x16181f(0x1cc)](_0x4b304a)),this[_0x16181f(0x17d)](this['_commandService']['registerCommand'](_0x958287));}};_0x230d2a(_0x52a115,_0x4e38a9(0x1b6),_0x4e38a9(0x16b)),_0x230d2a(_0x52a115,_0x4e38a9(0x1c0),_0x283b12),_0x230d2a(_0x52a115,_0x4e38a9(0x1a2),_0x588dcf),_0x230d2a(_0x52a115,_0x4e38a9(0x1aa),_0x1d0f37[_0x4e38a9(0x195)][_0x4e38a9(0x1c1)]),_0x52a115=_0x10e221([(0x0,_0x1d0f37[_0x4e38a9(0x161)])(_0x356d8f[_0x4e38a9(0x18c)]),_0x1eacf4(0x1,(0x0,_0x1d0f37['Inject'])(_0x1d0f37[_0x4e38a9(0x16f)])),_0x1eacf4(0x2,_0x1d0f37[_0x4e38a9(0x19b)]),_0x1eacf4(0x3,_0x1d0f37[_0x4e38a9(0x1be)])],_0x52a115),_0x4dd190['IInkHostAdapterService']=_0x20701a,Object[_0x4e38a9(0x1c2)](_0x4dd190,_0x4e38a9(0x1bf),{'enumerable':!0x0,'get':function(){return _0x52a115;}}),_0x4dd190[_0x4e38a9(0x179)]=_0x3d018b,_0x4dd190['convertBrushModelToPenModel']=_0x1920f4,_0x4dd190[_0x4e38a9(0x1c8)]=_0x4481db,_0x4dd190['deleteInkPenAnchor']=_0x571ff4,_0x4dd190[_0x4e38a9(0x1b5)]=_0x1e5948,_0x4dd190[_0x4e38a9(0x186)]=_0x23b578,_0x4dd190[_0x4e38a9(0x180)]=_0x43f7f6,_0x4dd190['getInkPenPreviewModel']=_0x3007fb,_0x4dd190[_0x4e38a9(0x188)]=_0x1fa9a8,_0x4dd190[_0x4e38a9(0x16d)]=_0x2ea2f6,_0x4dd190[_0x4e38a9(0x187)]=_0x147bc9,_0x4dd190[_0x4e38a9(0x1a0)]=_0x3aa496;}));
|
|
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;}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/ink",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Reusable ink model and geometry integration for Univer.",
|
|
6
6
|
"author": "DreamNum Co., Ltd. <developer@univer.ai>",
|
|
@@ -58,13 +58,13 @@
|
|
|
58
58
|
"lib"
|
|
59
59
|
],
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@univerjs-pro/boards": "1.
|
|
62
|
-
"@univerjs-pro/engine-shape": "1.
|
|
63
|
-
"@univerjs-pro/license": "1.
|
|
64
|
-
"@univerjs/core": "1.
|
|
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"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@univerjs-infra/shared": "1.
|
|
67
|
+
"@univerjs-infra/shared": "1.3.0",
|
|
68
68
|
"typescript": "^6.0.3",
|
|
69
69
|
"vitest": "^5.0.4"
|
|
70
70
|
},
|