@univerjs-pro/ink 1.2.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 _0x269a64=_0x3421;(function(_0xa8186e,_0x41cd19){const _0x56c9b1=_0x3421,_0x2e6387=_0xa8186e();while(!![]){try{const _0x386ef6=parseInt(_0x56c9b1(0xed))/0x1+-parseInt(_0x56c9b1(0xec))/0x2+parseInt(_0x56c9b1(0x120))/0x3+parseInt(_0x56c9b1(0x10c))/0x4*(parseInt(_0x56c9b1(0x11b))/0x5)+-parseInt(_0x56c9b1(0x144))/0x6*(-parseInt(_0x56c9b1(0x133))/0x7)+-parseInt(_0x56c9b1(0xfc))/0x8+parseInt(_0x56c9b1(0x101))/0x9*(parseInt(_0x56c9b1(0xd2))/0xa);if(_0x386ef6===_0x41cd19)break;else _0x2e6387['push'](_0x2e6387['shift']());}catch(_0xae2f79){_0x2e6387['push'](_0x2e6387['shift']());}}}(_0x26a1,0xa8714),Object[_0x269a64(0x12b)](exports,Symbol[_0x269a64(0xf1)],{'value':'Module'}));let e=require('@univerjs-pro/engine-shape'),t=require('@univerjs-pro/license'),n=require('@univerjs/core');const r=0.0001;function i(_0x105120){return{'x':_0x105120['x'],'y':_0x105120['y']};}function a(_0x55b8ec){const _0x547f07=_0x269a64;return{..._0x55b8ec,'in':_0x55b8ec['in']?i(_0x55b8ec['in']):void 0x0,'out':_0x55b8ec[_0x547f07(0x148)]?i(_0x55b8ec[_0x547f07(0x148)]):void 0x0};}function o(_0x5233ba){const _0x27e043=_0x269a64;return{'kind':_0x27e043(0xe2),'closed':_0x5233ba[_0x27e043(0x13a)],'anchors':_0x5233ba[_0x27e043(0x13d)]['map'](a)};}function s(_0x30692d,_0x59bde8,_0x4bdf73){return{'x':_0x30692d['x']+(_0x59bde8['x']-_0x30692d['x'])*_0x4bdf73,'y':_0x30692d['y']+(_0x59bde8['y']-_0x30692d['y'])*_0x4bdf73};}function c(_0x23638c,_0x46dfac){const _0x43965e=_0x269a64;return Math[_0x43965e(0x14a)](_0x23638c['x']-_0x46dfac['x'],_0x23638c['y']-_0x46dfac['y']);}function l(_0x13eabb){const _0x54e3a5=_0x269a64;let _0x46a289=Math[_0x54e3a5(0x14a)](_0x13eabb['x'],_0x13eabb['y']);return _0x46a289<r?{'x':0x1,'y':0x0}:{'x':_0x13eabb['x']/_0x46a289,'y':_0x13eabb['y']/_0x46a289};}function u(_0x69d405,_0x3df8ea,_0x36b2df=c(_0x69d405,_0x3df8ea)){let _0xd787f0=l({'x':_0x69d405['x']-_0x3df8ea['x'],'y':_0x69d405['y']-_0x3df8ea['y']});return{'x':_0x69d405['x']+_0xd787f0['x']*_0x36b2df,'y':_0x69d405['y']+_0xd787f0['y']*_0x36b2df};}function d(_0x520357,_0x750295){const _0x13fcbc=_0x269a64;let {anchors:_0x2fc2d4}=_0x520357;return _0x2fc2d4[_0x13fcbc(0xf8)]<0x2||_0x750295<0x0?null:_0x750295<_0x2fc2d4[_0x13fcbc(0xf8)]-0x1?{'startIndex':_0x750295,'endIndex':_0x750295+0x1,'start':_0x2fc2d4[_0x750295],'end':_0x2fc2d4[_0x750295+0x1]}:_0x520357[_0x13fcbc(0x13a)]&&_0x750295===_0x2fc2d4['length']-0x1?{'startIndex':_0x2fc2d4[_0x13fcbc(0xf8)]-0x1,'endIndex':0x0,'start':_0x2fc2d4[_0x2fc2d4[_0x13fcbc(0xf8)]-0x1],'end':_0x2fc2d4[0x0]}:null;}function f(_0x3f2fb7,_0x3141e7){const _0x1e371c=_0x269a64;let _0x5e41e3=d(_0x3f2fb7,_0x3141e7);return _0x5e41e3?[_0x5e41e3[_0x1e371c(0x115)],_0x5e41e3['start']['out']??_0x5e41e3[_0x1e371c(0x115)],_0x5e41e3['end']['in']??_0x5e41e3[_0x1e371c(0x145)],_0x5e41e3['end']]:null;}function ee(_0x2b6dce,_0x2f7c72){const _0x4a922b=_0x269a64;return _0x2f7c72===_0x4a922b(0x12a)?_0x2b6dce:_0x2b6dce[_0x2f7c72]??null;}function p(_0x468924,_0x4f2ca0,_0x67658d){const _0x4b6cfb=_0x269a64;return _0x67658d==='anchor'||_0x468924[_0x4b6cfb(0x13a)]?!0x0:_0x67658d==='in'?_0x4f2ca0>0x0:_0x4f2ca0<_0x468924['anchors'][_0x4b6cfb(0xf8)]-0x1;}function m(_0x20536a,_0x19614f){let [_0x4721b0,_0x83666c,_0x287108,_0xc7bd9b]=_0x20536a,_0x49f434=s(_0x4721b0,_0x83666c,_0x19614f),_0x2714f7=s(_0x83666c,_0x287108,_0x19614f),_0xafe3f0=s(_0x287108,_0xc7bd9b,_0x19614f);return s(s(_0x49f434,_0x2714f7,_0x19614f),s(_0x2714f7,_0xafe3f0,_0x19614f),_0x19614f);}function h(_0x874ad5,_0x59e8e3){let [_0xe0140c,_0x20523e,_0x48201b,_0x9aead2]=_0x874ad5,_0x40cb7b=s(_0xe0140c,_0x20523e,_0x59e8e3),_0xd03713=s(_0x20523e,_0x48201b,_0x59e8e3),_0xa69944=s(_0x48201b,_0x9aead2,_0x59e8e3),_0xfc1d52=s(_0x40cb7b,_0xd03713,_0x59e8e3),_0x1cb42c=s(_0xd03713,_0xa69944,_0x59e8e3),_0x3af63d=s(_0xfc1d52,_0x1cb42c,_0x59e8e3);return{'left':[_0xe0140c,_0x40cb7b,_0xfc1d52,_0x3af63d],'right':[_0x3af63d,_0x1cb42c,_0xa69944,_0x9aead2]};}function g(_0x37ba25,_0x3970a5,_0x515b4a){let _0x48fb3f=_0x515b4a['x']-_0x3970a5['x'],_0x2f3c4e=_0x515b4a['y']-_0x3970a5['y'],_0x84750f=_0x48fb3f*_0x48fb3f+_0x2f3c4e*_0x2f3c4e,_0x33698b=_0x84750f<=r?0x0:Math['max'](0x0,Math['min'](0x1,((_0x37ba25['x']-_0x3970a5['x'])*_0x48fb3f+(_0x37ba25['y']-_0x3970a5['y'])*_0x2f3c4e)/_0x84750f)),_0x1f9534={'x':_0x3970a5['x']+_0x48fb3f*_0x33698b,'y':_0x3970a5['y']+_0x2f3c4e*_0x33698b};return{'point':_0x1f9534,'ratio':_0x33698b,'distance':c(_0x37ba25,_0x1f9534)};}function te(_0x519aec,_0x43cb9d,_0x459685){const _0x395553=_0x269a64;return g(_0x519aec,_0x43cb9d,_0x459685)[_0x395553(0x12e)]**0x2;}function _(_0x3d1e9a,_0x24b27d){const _0x41e44c=_0x269a64;if(_0x3d1e9a[_0x41e44c(0xf8)]<=0x2)return _0x3d1e9a[_0x41e44c(0xd4)](i);let _0x5c627b=0x0,_0x112c30=0x0,_0x5d624e=_0x3d1e9a[0x0],_0x231e5f=_0x3d1e9a[_0x3d1e9a[_0x41e44c(0xf8)]-0x1],_0x233dbf=_0x24b27d*_0x24b27d;for(let _0x39a157=0x1;_0x39a157<_0x3d1e9a[_0x41e44c(0xf8)]-0x1;_0x39a157++){let _0x462599=te(_0x3d1e9a[_0x39a157],_0x5d624e,_0x231e5f);_0x462599>_0x5c627b&&(_0x5c627b=_0x462599,_0x112c30=_0x39a157);}if(_0x5c627b<=_0x233dbf)return[i(_0x5d624e),i(_0x231e5f)];let _0x30cdf8=_(_0x3d1e9a[_0x41e44c(0xd6)](0x0,_0x112c30+0x1),_0x24b27d),_0x4434fb=_(_0x3d1e9a[_0x41e44c(0xd6)](_0x112c30),_0x24b27d);return[..._0x30cdf8[_0x41e44c(0xd6)](0x0,-0x1),..._0x4434fb];}function ne(_0x467b,_0x2a0755){let _0x1904bb=_0x467b[_0x2a0755],_0x262f02=_0x467b[_0x2a0755+0x1],_0x116127=_0x467b[_0x2a0755-0x1]??_0x1904bb;return{'x':_0x1904bb['x']+(_0x262f02['x']-_0x116127['x'])/0x6,'y':_0x1904bb['y']+(_0x262f02['y']-_0x116127['y'])/0x6};}function v(_0x57ac1f,_0x46f486){let _0x57b99c=_0x57ac1f[_0x46f486],_0x8b205e=_0x57ac1f[_0x46f486-0x1],_0x1c7f64=_0x57ac1f[_0x46f486+0x1]??_0x57b99c;return{'x':_0x57b99c['x']-(_0x1c7f64['x']-_0x8b205e['x'])/0x6,'y':_0x57b99c['y']-(_0x1c7f64['y']-_0x8b205e['y'])/0x6};}function y(_0x185e2b,_0x9e3889){const _0x1a1f7f=_0x269a64;let _0x3b92e4=_0x185e2b['anchors'][_0x9e3889],_0x5d6ebf=_0x185e2b[_0x1a1f7f(0x13d)][_0x9e3889-0x1]??(_0x185e2b[_0x1a1f7f(0x13a)]?_0x185e2b[_0x1a1f7f(0x13d)][_0x185e2b[_0x1a1f7f(0x13d)][_0x1a1f7f(0xf8)]-0x1]:null),_0x21d6b1=_0x185e2b[_0x1a1f7f(0x13d)][_0x9e3889+0x1]??(_0x185e2b[_0x1a1f7f(0x13a)]?_0x185e2b[_0x1a1f7f(0x13d)][0x0]:null),_0x4b1d72=_0x5d6ebf&&_0x21d6b1?l({'x':_0x21d6b1['x']-_0x5d6ebf['x'],'y':_0x21d6b1['y']-_0x5d6ebf['y']}):_0x21d6b1?l({'x':_0x21d6b1['x']-_0x3b92e4['x'],'y':_0x21d6b1['y']-_0x3b92e4['y']}):_0x5d6ebf?l({'x':_0x3b92e4['x']-_0x5d6ebf['x'],'y':_0x3b92e4['y']-_0x5d6ebf['y']}):{'x':0x1,'y':0x0},_0x87061f=_0x5d6ebf&&_0x21d6b1?Math['max'](0x32,c(_0x5d6ebf,_0x21d6b1)/0x4):0x32;return{'in':{'x':_0x3b92e4['x']-_0x4b1d72['x']*_0x87061f,'y':_0x3b92e4['y']-_0x4b1d72['y']*_0x87061f},'out':{'x':_0x3b92e4['x']+_0x4b1d72['x']*_0x87061f,'y':_0x3b92e4['y']+_0x4b1d72['y']*_0x87061f}};}function b(_0x370a89,_0x3ea1be){const _0x2d283c=_0x269a64;let _0x551f1d=_0x370a89[_0x3ea1be],_0x13a5c4=_0x3ea1be==='in'?_0x2d283c(0x148):'in',_0x582a37=_0x370a89[_0x13a5c4];_0x551f1d&&(_0x370a89[_0x2d283c(0x10b)]===_0x2d283c(0x127)?_0x370a89[_0x13a5c4]=u(_0x370a89,_0x551f1d):_0x370a89[_0x2d283c(0x10b)]==='smooth'&&(_0x370a89[_0x13a5c4]=u(_0x370a89,_0x551f1d,_0x582a37?c(_0x370a89,_0x582a37):c(_0x370a89,_0x551f1d))));}function x(_0x43ee32,_0x25fea7){const _0x26c0fd=_0x269a64;let _0x1a3f40=o(_0x43ee32);return!_0x25fea7||_0x1a3f40['closed']||_0x1a3f40[_0x26c0fd(0x13d)][_0x26c0fd(0xf8)]===0x0||_0x1a3f40['anchors'][_0x26c0fd(0xd9)]({'id':_0x26c0fd(0x119),'x':_0x25fea7['x'],'y':_0x25fea7['y'],'pointType':_0x26c0fd(0xea)}),_0x1a3f40;}function re(_0x288a58,_0x529ab6={}){const _0xc21941=_0x269a64;let _0x64984b=Math[_0xc21941(0x10d)](0x0,_0x529ab6[_0xc21941(0x135)]??Math[_0xc21941(0x10d)](0x4,_0x288a58[_0xc21941(0x11e)]*0.35)),_0x5a08f3=_0x529ab6[_0xc21941(0xde)]??(_0x43acd5=>'ink-centerline-'+_0x43acd5),_0x1511d2=_(_0x288a58[_0xc21941(0x149)],_0x64984b),_0x529613=_0x1511d2['map']((_0x2b3af6,_0x45bebd)=>({'id':_0x5a08f3(_0x45bebd),'x':_0x2b3af6['x'],'y':_0x2b3af6['y'],'pointType':_0xc21941(0x107)}));for(let _0x388900=0x0;_0x388900<_0x529613['length']-0x1;_0x388900++)_0x529613[_0x388900][_0xc21941(0x148)]=ne(_0x1511d2,_0x388900),_0x529613[_0x388900+0x1]['in']=v(_0x1511d2,_0x388900+0x1);return{'kind':_0xc21941(0xe2),'closed':!0x1,'anchors':_0x529613};}function ie(_0x502e65,_0x184df5,_0x4dab1a){const _0x4ee9a5=_0x269a64;let _0x565e3e=null,_0x5b8b5d=['anchor','in',_0x4ee9a5(0x148)];return _0x502e65[_0x4ee9a5(0x13d)]['forEach']((_0x376d92,_0x9e7483)=>{const _0xc1537b=_0x4ee9a5;_0x5b8b5d[_0xc1537b(0x103)](_0x10570=>{const _0x28e684=_0xc1537b;if(!p(_0x502e65,_0x9e7483,_0x10570))return;let _0x23b45f=ee(_0x376d92,_0x10570);if(!_0x23b45f)return;let _0x492dee=c(_0x184df5,_0x23b45f);_0x492dee>_0x4dab1a||_0x565e3e&&_0x492dee>=_0x565e3e[_0x28e684(0x12e)]||(_0x565e3e={'handle':{'kind':_0x10570,'anchorId':_0x376d92['id']},'point':i(_0x23b45f),'distance':_0x492dee});});}),_0x565e3e;}function S(_0x1e4b92,_0x250049,_0x1d8f94){const _0x5e9f96=_0x269a64;let _0x1d20c7=null,_0x2b93fc=_0x1e4b92[_0x5e9f96(0x13a)]?_0x1e4b92[_0x5e9f96(0x13d)]['length']:Math[_0x5e9f96(0x10d)](0x0,_0x1e4b92[_0x5e9f96(0x13d)][_0x5e9f96(0xf8)]-0x1);for(let _0x188ea2=0x0;_0x188ea2<_0x2b93fc;_0x188ea2++){let _0x1c62ca=f(_0x1e4b92,_0x188ea2);if(!_0x1c62ca)continue;let _0x3eba29=m(_0x1c62ca,0x0);for(let _0x3cf290=0x1;_0x3cf290<=0x20;_0x3cf290++){let _0x3a2fd9=m(_0x1c62ca,_0x3cf290/0x20),_0x3983ff=g(_0x250049,_0x3eba29,_0x3a2fd9),_0x3324fe=(_0x3cf290-0x1+_0x3983ff[_0x5e9f96(0x14c)])/0x20;(!_0x1d20c7||_0x3983ff['distance']<_0x1d20c7[_0x5e9f96(0x12e)])&&(_0x1d20c7={'segmentIndex':_0x188ea2,'t':_0x3324fe,'point':_0x3983ff[_0x5e9f96(0x128)],'distance':_0x3983ff[_0x5e9f96(0x12e)]}),_0x3eba29=_0x3a2fd9;}}return _0x1d20c7&&_0x1d20c7[_0x5e9f96(0x12e)]<=_0x1d8f94?_0x1d20c7:null;}function C(_0x3a23ed,_0x2b260c,_0x56da22){const _0x5dedae=_0x269a64;let _0x3ab69f=o(_0x3a23ed),_0x4ecbf7=d(_0x3ab69f,_0x2b260c[_0x5dedae(0x110)]),_0x1f46c8=f(_0x3ab69f,_0x2b260c[_0x5dedae(0x110)]);if(!_0x4ecbf7||!_0x1f46c8)return _0x3ab69f;let _0x16deaf=h(_0x1f46c8,Math[_0x5dedae(0x10d)](0x0,Math[_0x5dedae(0x137)](0x1,_0x2b260c['t']))),_0x14b352={'id':_0x56da22(),'x':_0x16deaf['left'][0x3]['x'],'y':_0x16deaf[_0x5dedae(0x117)][0x3]['y'],'in':i(_0x16deaf['left'][0x2]),'out':i(_0x16deaf[_0x5dedae(0xf0)][0x1]),'pointType':'free'};return _0x3ab69f[_0x5dedae(0x13d)][_0x4ecbf7['startIndex']][_0x5dedae(0x148)]=i(_0x16deaf[_0x5dedae(0x117)][0x1]),_0x3ab69f['anchors'][_0x4ecbf7[_0x5dedae(0xee)]]['in']=i(_0x16deaf[_0x5dedae(0xf0)][0x2]),_0x3ab69f[_0x5dedae(0x13d)][_0x5dedae(0xf5)](_0x4ecbf7[_0x5dedae(0x140)]+0x1,0x0,_0x14b352),_0x3ab69f;}function w(_0x3409d6,_0x29e03f){const _0x3ad5aa=_0x269a64;let _0x54ecb8=o(_0x3409d6);return _0x54ecb8[_0x3ad5aa(0x13d)]=_0x54ecb8[_0x3ad5aa(0x13d)][_0x3ad5aa(0x113)](_0x51f082=>_0x51f082['id']!==_0x29e03f),_0x54ecb8[_0x3ad5aa(0x13a)]&&_0x54ecb8[_0x3ad5aa(0x13d)]['length']<0x3&&(_0x54ecb8[_0x3ad5aa(0x13a)]=!0x1),_0x54ecb8;}function T(_0x591999,_0x3251d8,_0x3dc45c){const _0x16813c=_0x269a64;let _0x2bf2c7=o(_0x591999),_0x4e3696=_0x2bf2c7[_0x16813c(0x13d)]['findIndex'](_0x16fe10=>_0x16fe10['id']===_0x3251d8),_0x3151d2=_0x2bf2c7['anchors'][_0x4e3696];if(!_0x3151d2)return _0x2bf2c7;if(_0x3151d2[_0x16813c(0x10b)]=_0x3dc45c,_0x3dc45c==='corner')return delete _0x3151d2['in'],delete _0x3151d2['out'],_0x2bf2c7;let _0x8fb3ba=y(_0x2bf2c7,_0x4e3696);if(_0x3151d2['in']=_0x3151d2['in']?i(_0x3151d2['in']):_0x8fb3ba['in'],_0x3151d2['out']=_0x3151d2['out']?i(_0x3151d2['out']):_0x8fb3ba[_0x16813c(0x148)],_0x3dc45c==='symmetric'){let _0x44f030=Math[_0x16813c(0x10d)](c(_0x3151d2,_0x3151d2['in']),c(_0x3151d2,_0x3151d2[_0x16813c(0x148)]),0x32),_0x46380f=l({'x':_0x3151d2[_0x16813c(0x148)]['x']-_0x3151d2['x'],'y':_0x3151d2[_0x16813c(0x148)]['y']-_0x3151d2['y']});_0x3151d2[_0x16813c(0x148)]={'x':_0x3151d2['x']+_0x46380f['x']*_0x44f030,'y':_0x3151d2['y']+_0x46380f['y']*_0x44f030},_0x3151d2['in']={'x':_0x3151d2['x']-_0x46380f['x']*_0x44f030,'y':_0x3151d2['y']-_0x46380f['y']*_0x44f030};}else _0x3dc45c==='smooth'&&b(_0x3151d2,_0x16813c(0x148));return _0x2bf2c7;}function E(_0x4d9b92,_0x20bb22){const _0x426244=_0x269a64;let _0x32c8a5=_0x4d9b92[_0x426244(0x13d)]['find'](_0x1a6e86=>_0x1a6e86['id']===_0x20bb22),_0xf3d00e=(_0x32c8a5==null?void 0x0:_0x32c8a5[_0x426244(0x10b)])??_0x426244(0xea);return T(_0x4d9b92,_0x20bb22,_0xf3d00e===_0x426244(0xea)?'smooth':_0xf3d00e===_0x426244(0xdb)?_0x426244(0x127):_0xf3d00e===_0x426244(0x127)?_0x426244(0x107):_0x426244(0xea));}function ae(_0x5ed472,_0x234b41,_0x3e674b){const _0x2b4496=_0x269a64;let _0x45ceaa=o(_0x5ed472),_0x5489df=_0x45ceaa['anchors'][_0x2b4496(0xeb)](_0x5c8bb3=>_0x5c8bb3['id']===_0x234b41['anchorId']);if(!_0x5489df)return _0x45ceaa;if(_0x234b41[_0x2b4496(0xe4)]===_0x2b4496(0x12a)){let _0x1f3596={'x':_0x3e674b['x']-_0x5489df['x'],'y':_0x3e674b['y']-_0x5489df['y']};return _0x5489df['x']=_0x3e674b['x'],_0x5489df['y']=_0x3e674b['y'],_0x5489df['in']&&={'x':_0x5489df['in']['x']+_0x1f3596['x'],'y':_0x5489df['in']['y']+_0x1f3596['y']},_0x5489df['out']&&={'x':_0x5489df[_0x2b4496(0x148)]['x']+_0x1f3596['x'],'y':_0x5489df[_0x2b4496(0x148)]['y']+_0x1f3596['y']},_0x45ceaa;}return _0x5489df[_0x234b41['kind']]=i(_0x3e674b),_0x5489df[_0x2b4496(0x10b)]===_0x2b4496(0xea)&&(_0x5489df[_0x2b4496(0x10b)]=_0x2b4496(0x107)),b(_0x5489df,_0x234b41[_0x2b4496(0xe4)]),_0x45ceaa;}const D=1e-9;function O(_0x26719a){let _0xa0b530=Math['round'](_0x26719a*0x2710)/0x2710;return Object['is'](_0xa0b530,-0x0)?'0':String(_0xa0b530);}function k(_0x1ddf5e){return O(_0x1ddf5e['x'])+'\x20'+O(_0x1ddf5e['y']);}function A(_0x58cfe9,_0x46dd79){return{'x':_0x58cfe9['x']-_0x46dd79['x'],'y':_0x58cfe9['y']-_0x46dd79['y']};}function j(_0x256cee,_0x40b96f,_0x1f2353,_0x8da378,_0x17bf68){let _0x3f3239=0x1-_0x17bf68;return{'x':_0x3f3239*_0x3f3239*_0x3f3239*_0x256cee['x']+0x3*_0x3f3239*_0x3f3239*_0x17bf68*_0x40b96f['x']+0x3*_0x3f3239*_0x17bf68*_0x17bf68*_0x1f2353['x']+_0x17bf68*_0x17bf68*_0x17bf68*_0x8da378['x'],'y':_0x3f3239*_0x3f3239*_0x3f3239*_0x256cee['y']+0x3*_0x3f3239*_0x3f3239*_0x17bf68*_0x40b96f['y']+0x3*_0x3f3239*_0x17bf68*_0x17bf68*_0x1f2353['y']+_0x17bf68*_0x17bf68*_0x17bf68*_0x8da378['y']};}function M(_0x234c21,_0x1cef9d,_0x35ecc4,_0x319f6a){const _0x5198b3=_0x269a64;let _0x437075=-_0x234c21+0x3*_0x1cef9d-0x3*_0x35ecc4+_0x319f6a,_0x3b7ff2=0x3*_0x234c21-0x6*_0x1cef9d+0x3*_0x35ecc4,_0x62af92=-0x3*_0x234c21+0x3*_0x1cef9d,_0x4b1ad9=[];if(Math[_0x5198b3(0x132)](_0x437075)<D){if(Math[_0x5198b3(0x132)](_0x3b7ff2)<D)return _0x4b1ad9;let _0x5a82dc=-_0x62af92/(0x2*_0x3b7ff2);return _0x5a82dc>0x0&&_0x5a82dc<0x1&&_0x4b1ad9['push'](_0x5a82dc),_0x4b1ad9;}let _0x633d00=_0x3b7ff2*_0x3b7ff2-0x3*_0x437075*_0x62af92;if(_0x633d00<0x0)return _0x4b1ad9;let _0x4784c7=Math[_0x5198b3(0x108)](Math[_0x5198b3(0x10d)](0x0,_0x633d00)),_0x2267c6=(-_0x3b7ff2+_0x4784c7)/(0x3*_0x437075),_0x12a7bd=(-_0x3b7ff2-_0x4784c7)/(0x3*_0x437075);return _0x2267c6>0x0&&_0x2267c6<0x1&&_0x4b1ad9[_0x5198b3(0xd9)](_0x2267c6),_0x12a7bd>0x0&&_0x12a7bd<0x1&&Math[_0x5198b3(0x132)](_0x12a7bd-_0x2267c6)>D&&_0x4b1ad9[_0x5198b3(0xd9)](_0x12a7bd),_0x4b1ad9;}function N(_0x1d083f,_0x1af9dc,_0x573bf8,_0x17a4bf,_0x2e9edb){const _0x33bb11=_0x269a64;_0x1d083f['push'](_0x1af9dc,_0x2e9edb),new Set([...M(_0x1af9dc['x'],_0x573bf8['x'],_0x17a4bf['x'],_0x2e9edb['x']),...M(_0x1af9dc['y'],_0x573bf8['y'],_0x17a4bf['y'],_0x2e9edb['y'])])[_0x33bb11(0x103)](_0x10efd0=>{const _0x2be6de=_0x33bb11;_0x1d083f[_0x2be6de(0xd9)](j(_0x1af9dc,_0x573bf8,_0x17a4bf,_0x2e9edb,_0x10efd0));});}function P(_0x453bd8){const _0x452c3=_0x269a64;let _0x21cca4=_0x453bd8['anchors'];if(_0x21cca4[_0x452c3(0xf8)]<=0x1)return _0x21cca4;let _0x2eb477=[];for(let _0x176a35=0x1;_0x176a35<_0x21cca4[_0x452c3(0xf8)];_0x176a35++){let _0x13311d=_0x21cca4[_0x176a35-0x1],_0x4ead37=_0x21cca4[_0x176a35];N(_0x2eb477,_0x13311d,_0x13311d[_0x452c3(0x148)]??_0x13311d,_0x4ead37['in']??_0x4ead37,_0x4ead37);}if(_0x453bd8[_0x452c3(0x13a)]&&_0x21cca4[_0x452c3(0xf8)]>0x1){let _0x5bce14=_0x21cca4[_0x21cca4[_0x452c3(0xf8)]-0x1],_0x26d100=_0x21cca4[0x0];N(_0x2eb477,_0x5bce14,_0x5bce14[_0x452c3(0x148)]??_0x5bce14,_0x26d100['in']??_0x26d100,_0x26d100);}return _0x2eb477;}function F(_0x4e07ef){const _0x20db0b=_0x269a64;let _0x41d0b6=_0x4e07ef['points'];if(_0x41d0b6[_0x20db0b(0xf8)]<=0x1)return _0x41d0b6;let _0x12179c=[];for(let _0x3a6796=0x0;_0x3a6796<_0x41d0b6['length']-0x1;_0x3a6796++){let _0x180034=_0x41d0b6[_0x3a6796],_0x30d04b=_0x41d0b6[_0x3a6796+0x1],_0x4959c2=_0x41d0b6[_0x3a6796-0x1]??_0x180034,_0x54042a=_0x41d0b6[_0x3a6796+0x2]??_0x30d04b;N(_0x12179c,_0x180034,{'x':_0x180034['x']+(_0x30d04b['x']-_0x4959c2['x'])/0x6,'y':_0x180034['y']+(_0x30d04b['y']-_0x4959c2['y'])/0x6},{'x':_0x30d04b['x']-(_0x54042a['x']-_0x180034['x'])/0x6,'y':_0x30d04b['y']-(_0x54042a['y']-_0x180034['y'])/0x6},_0x30d04b);}return _0x12179c;}function I(_0x303513){const _0x253a61=_0x269a64;return _0x303513[_0x253a61(0xe4)]===_0x253a61(0xe2)?P(_0x303513):F(_0x303513);}function L(_0x5459f9){const _0x218fca=_0x269a64;let _0x106ad7=Math[_0x218fca(0x11c)](_0x5459f9*0x2710)/0x2710;return Object['is'](_0x106ad7,-0x0)?0x0:_0x106ad7;}function R(_0x33f785){const _0x335b43=_0x269a64;let _0x19549b=I(_0x33f785);if(_0x19549b[_0x335b43(0xf8)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x53595e=Math[_0x335b43(0x137)](..._0x19549b[_0x335b43(0xd4)](_0x65b7ae=>_0x65b7ae['x'])),_0x2bd408=Math[_0x335b43(0x137)](..._0x19549b[_0x335b43(0xd4)](_0x5740b6=>_0x5740b6['y'])),_0x1a50e1=Math[_0x335b43(0x10d)](..._0x19549b[_0x335b43(0xd4)](_0x40f13f=>_0x40f13f['x'])),_0x4f2fd6=Math['max'](..._0x19549b[_0x335b43(0xd4)](_0x43d429=>_0x43d429['y']));return{'left':L(_0x53595e),'top':L(_0x2bd408),'width':L(Math[_0x335b43(0x10d)](0x1,_0x1a50e1-_0x53595e)),'height':L(Math[_0x335b43(0x10d)](0x1,_0x4f2fd6-_0x2bd408))};}function z(_0x2f4a58,_0x3567eb){const _0x517c6f=_0x269a64;let _0x5dc345=_0x2f4a58['anchors'];if(_0x5dc345[_0x517c6f(0xf8)]===0x0)return'';let _0xb24f61=['M\x20'+k(A(_0x5dc345[0x0],_0x3567eb))];for(let _0x1ea50c=0x1;_0x1ea50c<_0x5dc345['length'];_0x1ea50c++){let _0x36fe8c=_0x5dc345[_0x1ea50c-0x1],_0x2dddda=_0x5dc345[_0x1ea50c],_0x1afbe7=_0x36fe8c[_0x517c6f(0x148)]??_0x36fe8c,_0x3b4add=_0x2dddda['in']??_0x2dddda;_0xb24f61[_0x517c6f(0xd9)]('C\x20'+k(A(_0x1afbe7,_0x3567eb))+'\x20'+k(A(_0x3b4add,_0x3567eb))+'\x20'+k(A(_0x2dddda,_0x3567eb)));}if(_0x2f4a58['closed']&&_0x5dc345[_0x517c6f(0xf8)]>0x1){let _0x51356c=_0x5dc345[_0x5dc345[_0x517c6f(0xf8)]-0x1],_0x5ca8bf=_0x5dc345[0x0],_0x2fea2c=_0x51356c[_0x517c6f(0x148)]??_0x51356c,_0x450168=_0x5ca8bf['in']??_0x5ca8bf;_0xb24f61[_0x517c6f(0xd9)]('C\x20'+k(A(_0x2fea2c,_0x3567eb))+'\x20'+k(A(_0x450168,_0x3567eb))+'\x20'+k(A(_0x5ca8bf,_0x3567eb))),_0xb24f61[_0x517c6f(0xd9)]('Z');}return _0xb24f61[_0x517c6f(0xe8)]('\x20');}function B(_0x10ac15,_0x412de7){const _0x40621e=_0x269a64;let _0xce7633=_0x10ac15['points'][_0x40621e(0xd4)](_0x53afec=>A(_0x53afec,_0x412de7));if(_0xce7633[_0x40621e(0xf8)]===0x0)return'';if(_0xce7633[_0x40621e(0xf8)]===0x1)return'M\x20'+k(_0xce7633[0x0]);let _0x37b949=['M\x20'+k(_0xce7633[0x0])];for(let _0x5337d7=0x0;_0x5337d7<_0xce7633[_0x40621e(0xf8)]-0x1;_0x5337d7++){let _0x393e85=_0xce7633[_0x5337d7],_0x191b0b=_0xce7633[_0x5337d7+0x1],_0x141508=_0xce7633[_0x5337d7-0x1]??_0x393e85,_0x1ffd0e=_0xce7633[_0x5337d7+0x2]??_0x191b0b,_0x4ed4a3={'x':_0x393e85['x']+(_0x191b0b['x']-_0x141508['x'])/0x6,'y':_0x393e85['y']+(_0x191b0b['y']-_0x141508['y'])/0x6},_0x1c1589={'x':_0x191b0b['x']-(_0x1ffd0e['x']-_0x393e85['x'])/0x6,'y':_0x191b0b['y']-(_0x1ffd0e['y']-_0x393e85['y'])/0x6};_0x37b949[_0x40621e(0xd9)]('C\x20'+k(_0x4ed4a3)+'\x20'+k(_0x1c1589)+'\x20'+k(_0x191b0b));}return _0x37b949[_0x40621e(0xe8)]('\x20');}function V(_0x4e23a2,_0x3ba6ed){const _0x52b065=_0x269a64;return _0x4e23a2[_0x52b065(0xe4)]===_0x52b065(0xe2)?z(_0x4e23a2,_0x3ba6ed):B(_0x4e23a2,_0x3ba6ed);}function H(_0x1bdc84,_0x2dc7e5){const _0x9ee15=_0x269a64;return _0x2dc7e5!=null&&_0x2dc7e5[_0x9ee15(0x114)]?_0x2dc7e5[_0x9ee15(0x114)]:_0x1bdc84[_0x9ee15(0xe4)]===_0x9ee15(0xe2)?_0x9ee15(0x13f):_0x1bdc84[_0x9ee15(0x114)];}function U(_0x1dd37b,_0x1c6236){const _0x4b0cdb=_0x269a64;return(_0x1c6236==null?void 0x0:_0x1c6236[_0x4b0cdb(0x11e)])===void 0x0?_0x1dd37b[_0x4b0cdb(0xe4)]===_0x4b0cdb(0xe2)?0x2:_0x1dd37b[_0x4b0cdb(0x11e)]:_0x1c6236['width'];}function W(_0x340462,_0x47e00d){const _0x1a6028=_0x269a64;return(_0x47e00d==null?void 0x0:_0x47e00d[_0x1a6028(0xdd)])===void 0x0?_0x340462[_0x1a6028(0xe4)]===_0x1a6028(0xe2)?void 0x0:_0x340462[_0x1a6028(0xdd)]:_0x47e00d['opacity'];}function oe(_0x3274fb,_0x3bc5c1){const _0x57f591=_0x269a64;let _0x155260=R(_0x3274fb),_0x3896a7=V(_0x3274fb,{'x':_0x155260[_0x57f591(0x117)],'y':_0x155260[_0x57f591(0x11d)]}),_0x5aacab=_0x3274fb[_0x57f591(0xe4)]===_0x57f591(0xe2)&&_0x3274fb[_0x57f591(0x13a)],_0x2152c1=_0x3bc5c1==null?void 0x0:_0x3bc5c1[_0x57f591(0x11a)];return{'shapeType':e['ShapeTypeEnum'][_0x57f591(0x136)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x155260[_0x57f591(0x11e)],'h':_0x155260['height'],'fill':_0x5aacab?_0x57f591(0x138):_0x57f591(0xf4),'stroke':!0x0,'data':_0x3896a7,'dataArray':K(_0x3274fb,{'x':_0x155260['left'],'y':_0x155260[_0x57f591(0x11d)]})}]},'fill':_0x5aacab&&_0x2152c1?{'color':_0x2152c1,'fillType':e[_0x57f591(0x123)][_0x57f591(0x129)]}:{'fillType':e[_0x57f591(0x123)]['NoFill']},'stroke':{'color':H(_0x3274fb,_0x3bc5c1),'width':U(_0x3274fb,_0x3bc5c1),'opacity':W(_0x3274fb,_0x3bc5c1),'lineStrokeType':e[_0x57f591(0x12d)]['SolidLine'],'capType':e[_0x57f591(0x10a)][_0x57f591(0x10f)],'lineJoinType':e[_0x57f591(0xd3)][_0x57f591(0x10f)]}};}function G(_0x2adca7,_0x25ea9e){return{'x':_0x2adca7['x']-_0x25ea9e['x'],'y':_0x2adca7['y']-_0x25ea9e['y']};}function K(_0x585be5,_0x1f5dc5){const _0x55b51c=_0x269a64;if(_0x585be5['kind']===_0x55b51c(0xe2)){let _0x34bd62=_0x585be5[_0x55b51c(0x13d)];if(_0x34bd62[_0x55b51c(0xf8)]===0x0)return[];let _0x4b22b7=G(_0x34bd62[0x0],_0x1f5dc5),_0x26896a=[{'command':'M','points':[_0x4b22b7['x'],_0x4b22b7['y']]}];for(let _0x308606=0x1;_0x308606<_0x34bd62[_0x55b51c(0xf8)];_0x308606++){let _0x23460c=_0x34bd62[_0x308606-0x1],_0x1efbb7=_0x34bd62[_0x308606],_0x18a815=G(_0x23460c[_0x55b51c(0x148)]??_0x23460c,_0x1f5dc5),_0x21aecd=G(_0x1efbb7['in']??_0x1efbb7,_0x1f5dc5),_0x2eb835=G(_0x1efbb7,_0x1f5dc5);_0x26896a[_0x55b51c(0xd9)]({'command':'C','points':[_0x18a815['x'],_0x18a815['y'],_0x21aecd['x'],_0x21aecd['y'],_0x2eb835['x'],_0x2eb835['y']]});}if(_0x585be5[_0x55b51c(0x13a)]&&_0x34bd62['length']>0x1){let _0x18b605=_0x34bd62[_0x34bd62[_0x55b51c(0xf8)]-0x1],_0xf90f73=_0x34bd62[0x0],_0x3be734=G(_0x18b605[_0x55b51c(0x148)]??_0x18b605,_0x1f5dc5),_0x1f0ee8=G(_0xf90f73['in']??_0xf90f73,_0x1f5dc5),_0x27fb17=G(_0xf90f73,_0x1f5dc5);_0x26896a[_0x55b51c(0xd9)]({'command':'C','points':[_0x3be734['x'],_0x3be734['y'],_0x1f0ee8['x'],_0x1f0ee8['y'],_0x27fb17['x'],_0x27fb17['y']]}),_0x26896a['push']({'command':'z','points':[]});}return _0x26896a;}let _0x1361a4=_0x585be5[_0x55b51c(0x149)][_0x55b51c(0xd4)](_0x693de=>G(_0x693de,_0x1f5dc5));if(_0x1361a4[_0x55b51c(0xf8)]===0x0)return[];let _0x55ec59=[{'command':'M','points':[_0x1361a4[0x0]['x'],_0x1361a4[0x0]['y']]}];for(let _0x4c3420=0x0;_0x4c3420<_0x1361a4['length']-0x1;_0x4c3420++){let _0xe7b08c=_0x1361a4[_0x4c3420],_0x24635b=_0x1361a4[_0x4c3420+0x1],_0x3189a7=_0x1361a4[_0x4c3420-0x1]??_0xe7b08c,_0x22c6e5=_0x1361a4[_0x4c3420+0x2]??_0x24635b,_0xbf1773={'x':_0xe7b08c['x']+(_0x24635b['x']-_0x3189a7['x'])/0x6,'y':_0xe7b08c['y']+(_0x24635b['y']-_0x3189a7['y'])/0x6},_0x198823={'x':_0x24635b['x']-(_0x22c6e5['x']-_0xe7b08c['x'])/0x6,'y':_0x24635b['y']-(_0x22c6e5['y']-_0xe7b08c['y'])/0x6};_0x55ec59[_0x55b51c(0xd9)]({'command':'C','points':[_0xbf1773['x'],_0xbf1773['y'],_0x198823['x'],_0x198823['y'],_0x24635b['x'],_0x24635b['y']]});}return _0x55ec59;}function q(_0x5a50fe){const _0x345baf=_0x269a64;let {model:_0x374dd1,sourceModel:_0xb590c4=_0x374dd1,style:_0x16fbbd}=_0x5a50fe,_0x3aa437=_0x5a50fe[_0x345baf(0x13c)]??_0x374dd1[_0x345baf(0xe4)],_0x371ca3=R(_0x374dd1),_0x196ae7=_0x374dd1[_0x345baf(0xe4)]===_0x345baf(0xe2)&&_0x3aa437!==_0x345baf(0xe2)?_0x374dd1:void 0x0;return{'transform':{..._0x371ca3,'rotation':0x0},'shapeData':oe(_0x374dd1,_0x16fbbd),'ink':{'version':0x1,'tool':_0x3aa437,'sourceModel':_0xb590c4,..._0x196ae7?{'editModel':_0x196ae7}:{},'normalizedBounds':_0x371ca3}};}var se=_0x269a64(0xfd),ce='1.2.0';function J(_0x75c811){'@babel/helpers - typeof';const _0x13ed13=_0x269a64;return J=typeof Symbol==_0x13ed13(0xd7)&&typeof Symbol[_0x13ed13(0xf9)]==_0x13ed13(0xe0)?function(_0x37bfb9){return typeof _0x37bfb9;}:function(_0x129bf9){const _0x4f5456=_0x13ed13;return _0x129bf9&&typeof Symbol=='function'&&_0x129bf9[_0x4f5456(0x142)]===Symbol&&_0x129bf9!==Symbol['prototype']?'symbol':typeof _0x129bf9;},J(_0x75c811);}function le(_0x2cb104,_0x4b58df){const _0x4c027b=_0x269a64;if(J(_0x2cb104)!=_0x4c027b(0x131)||!_0x2cb104)return _0x2cb104;var _0x210803=_0x2cb104[Symbol['toPrimitive']];if(_0x210803!==void 0x0){var _0x5c0cd7=_0x210803[_0x4c027b(0x112)](_0x2cb104,_0x4b58df||_0x4c027b(0x134));if(J(_0x5c0cd7)!=_0x4c027b(0x131))return _0x5c0cd7;throw TypeError(_0x4c027b(0x13e));}return(_0x4b58df===_0x4c027b(0xe5)?String:Number)(_0x2cb104);}function _0x3421(_0x33a07e,_0x4c0faf){_0x33a07e=_0x33a07e-0xd2;const _0x26a1e1=_0x26a1();let _0x3421a2=_0x26a1e1[_0x33a07e];return _0x3421a2;}function ue(_0x21fbe4){const _0x42919a=_0x269a64;var _0x2a44a0=le(_0x21fbe4,_0x42919a(0xe5));return J(_0x2a44a0)==_0x42919a(0xe0)?_0x2a44a0:_0x2a44a0+'';}function Y(_0x307f9f,_0x347c6e,_0x144b54){return(_0x347c6e=ue(_0x347c6e))in _0x307f9f?Object['defineProperty'](_0x307f9f,_0x347c6e,{'value':_0x144b54,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x307f9f[_0x347c6e]=_0x144b54,_0x307f9f;}const X=(0x0,n['createIdentifier'])(_0x269a64(0xd5));var de=class{constructor(){const _0x5b08c8=_0x269a64;Y(this,_0x5b08c8(0x111),[]);}['registerAdapter'](_0x8e4035){const _0x482cab=_0x269a64;return this['_adapters'][_0x482cab(0xd9)](_0x8e4035),(0x0,n['toDisposable'])(()=>{const _0x5c9639=_0x482cab;let _0x2a1015=this[_0x5c9639(0x111)]['indexOf'](_0x8e4035);_0x2a1015>=0x0&&this['_adapters'][_0x5c9639(0xf5)](_0x2a1015,0x1);});}[_0x269a64(0xe1)](_0x4907bf){const _0x11e9d6=_0x269a64;for(let _0x10318e of this[_0x11e9d6(0x111)])if(_0x10318e[_0x11e9d6(0xe1)](_0x4907bf))return!0x0;return!0x1;}async[_0x269a64(0xef)](_0x3651fc){const _0x47613c=_0x269a64;for(let _0x51cbe3 of this[_0x47613c(0x111)])if(_0x51cbe3['createCustomShape']&&await _0x51cbe3['createCustomShape'](_0x3651fc))return!0x0;return!0x1;}};const fe={'id':_0x269a64(0xf6),'type':n[_0x269a64(0xda)][_0x269a64(0x12c)],'handler':(_0xdcb6e1,_0x2c8db5)=>_0x2c8db5?_0xdcb6e1['get'](X)['beginInkMode'](_0x2c8db5):!0x1},Z={};function Q(_0x4807d9,_0xe5653a){return function(_0x4f8959,_0x55d2a2){_0xe5653a(_0x4f8959,_0x55d2a2,_0x4807d9);};}function pe(_0x10dd52,_0x16cac6,_0xcef145,_0x57906f){const _0x4be51e=_0x269a64;var _0xc15601=arguments[_0x4be51e(0xf8)],_0x2eba1e=_0xc15601<0x3?_0x16cac6:_0x57906f===null?_0x57906f=Object[_0x4be51e(0xf3)](_0x16cac6,_0xcef145):_0x57906f,_0x1c5b59;if(typeof Reflect=='object'&&typeof Reflect[_0x4be51e(0x14b)]==_0x4be51e(0xd7))_0x2eba1e=Reflect[_0x4be51e(0x14b)](_0x10dd52,_0x16cac6,_0xcef145,_0x57906f);else{for(var _0x40a763=_0x10dd52['length']-0x1;_0x40a763>=0x0;_0x40a763--)(_0x1c5b59=_0x10dd52[_0x40a763])&&(_0x2eba1e=(_0xc15601<0x3?_0x1c5b59(_0x2eba1e):_0xc15601>0x3?_0x1c5b59(_0x16cac6,_0xcef145,_0x2eba1e):_0x1c5b59(_0x16cac6,_0xcef145))||_0x2eba1e);}return _0xc15601>0x3&&_0x2eba1e&&Object['defineProperty'](_0x16cac6,_0xcef145,_0x2eba1e),_0x2eba1e;}function _0x26a1(){const _0x252bc7=['defineProperty','OPERATION','ShapeLineTypeEnum','distance','_injector','getInkPenPreviewModel','object','abs','408331NGqJQF','default','tolerance','Rect','min','norm','getInkModelBounds','closed','merge','tool','anchors','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','#f54a45','startIndex','type','constructor','Plugin','12pxjOnk','end','UniverLicensePlugin','UNIVER_UNKNOWN','out','points','hypot','decorate','ratio','90730nYuqwt','ShapeLineJoinEnum','map','ink.host-adapter.service','slice','function','deleteInkPenAnchor','push','CommandType','smooth','pluginName','opacity','createId','ink.config','symbol','beginInkMode','pen','registerCommand','kind','string','insertInkPenAnchorAt','findClosestInkPenHandle','join','_commandService','corner','find','1329818hSBHJH','1288440wGFPKA','endIndex','createCustomShape','right','toStringTag','setInkPenAnchorPointType','getOwnPropertyDescriptor','none','splice','ink.operation.start','disposeWithMe','length','iterator','findClosestInkPenSegment','IConfigService','4729472vuZLAH','@univerjs-pro/ink','UNIVER_INK_PLUGIN','cycleInkPenAnchorPointType','Injector','225GPWoLU','Inject','forEach','onStarting','convertBrushModelToPenModel','ICommandService','free','sqrt','isInkPenHandleVisible','ShapeLineCapEnum','pointType','306556CzDbpt','max','packageName','Round','segmentIndex','_adapters','call','filter','color','start','UniverInkPlugin','left','_configService','__ink-preview-anchor__','fillColor','5Gpuycu','round','top','width','UniverInstanceType','712389CxlvfE','_config','DependentOn','ShapeFillEnum','version','buildInkCustomShapePayload','IInkHostAdapterService','symmetric','point','SolidFill','anchor'];_0x26a1=function(){return _0x252bc7;};return _0x26a1();}let $=class extends n[_0x269a64(0x143)]{constructor(_0xfe11e3=Z,_0x423bfd,_0x38b5e7,_0x300677){const _0x4cbe5e=_0x269a64;super(),this[_0x4cbe5e(0x121)]=_0xfe11e3,this[_0x4cbe5e(0x12f)]=_0x423bfd,this['_commandService']=_0x38b5e7,this[_0x4cbe5e(0x118)]=_0x300677;let {..._0x32ef91}=(0x0,n[_0x4cbe5e(0x13b)])({},Z,this[_0x4cbe5e(0x121)]);this[_0x4cbe5e(0x118)]['setConfig'](_0x4cbe5e(0xdf),_0x32ef91);}[_0x269a64(0x104)](){const _0x1c2407=_0x269a64;[[X,{'useClass':de}]]['forEach'](_0x1c2711=>this[_0x1c2407(0x12f)]['add'](_0x1c2711)),this[_0x1c2407(0xf7)](this[_0x1c2407(0xe9)][_0x1c2407(0xe3)](fe));}};Y($,_0x269a64(0xdc),_0x269a64(0xfe)),Y($,_0x269a64(0x10e),se),Y($,_0x269a64(0x124),ce),Y($,_0x269a64(0x141),n[_0x269a64(0x11f)][_0x269a64(0x147)]),$=pe([(0x0,n[_0x269a64(0x122)])(t[_0x269a64(0x146)]),Q(0x1,(0x0,n[_0x269a64(0x102)])(n[_0x269a64(0x100)])),Q(0x2,n[_0x269a64(0x106)]),Q(0x3,n[_0x269a64(0xfb)])],$),exports[_0x269a64(0x126)]=X,Object[_0x269a64(0x12b)](exports,_0x269a64(0x116),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x269a64(0x125)]=q,exports[_0x269a64(0x105)]=re,exports[_0x269a64(0xff)]=E,exports[_0x269a64(0xd8)]=w,exports[_0x269a64(0xe7)]=ie,exports[_0x269a64(0xfa)]=S,exports[_0x269a64(0x139)]=R,exports[_0x269a64(0x130)]=x,exports[_0x269a64(0xe6)]=C,exports[_0x269a64(0x109)]=p,exports['moveInkPenAnchorPoint']=ae,exports[_0x269a64(0xf2)]=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 _0x428ca5=_0x34f4;(function(_0x2a7a23,_0x31913){const _0x260a18=_0x34f4,_0x10d146=_0x2a7a23();while(!![]){try{const _0x27909c=parseInt(_0x260a18(0x110))/0x1+-parseInt(_0x260a18(0xe3))/0x2*(parseInt(_0x260a18(0xfe))/0x3)+-parseInt(_0x260a18(0xda))/0x4*(parseInt(_0x260a18(0x12d))/0x5)+-parseInt(_0x260a18(0xe2))/0x6+parseInt(_0x260a18(0xeb))/0x7*(parseInt(_0x260a18(0xd8))/0x8)+parseInt(_0x260a18(0x10a))/0x9+-parseInt(_0x260a18(0xfb))/0xa*(parseInt(_0x260a18(0xfa))/0xb);if(_0x27909c===_0x31913)break;else _0x10d146['push'](_0x10d146['shift']());}catch(_0x4c031b){_0x10d146['push'](_0x10d146['shift']());}}}(_0x52c8,0x6d5e7));import{ShapeFillEnum as _0x1da015,ShapeLineCapEnum as _0x1d6166,ShapeLineJoinEnum as _0x439b44,ShapeLineTypeEnum as _0x5d98d2,ShapeTypeEnum as _0x9ecee9}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x44e568}from'@univerjs-pro/license';import{CommandType as _0x262274,DependentOn as _0x51330d,ICommandService as _0x2a482d,IConfigService as _0x37a4f2,Inject as _0x89bb4c,Injector as _0x169e64,Plugin as _0xd5747,UniverInstanceType as _0x57679c,createIdentifier as _0x290056,merge as _0x18dd0a,toDisposable as _0x243018}from'@univerjs/core';const g=0.0001;function _(_0x27b282){return{'x':_0x27b282['x'],'y':_0x27b282['y']};}function v(_0x431c4c){const _0x883d89=_0x34f4;return{..._0x431c4c,'in':_0x431c4c['in']?_(_0x431c4c['in']):void 0x0,'out':_0x431c4c[_0x883d89(0xe0)]?_(_0x431c4c[_0x883d89(0xe0)]):void 0x0};}function y(_0x30f9af){const _0x81267=_0x34f4;return{'kind':_0x81267(0x11e),'closed':_0x30f9af['closed'],'anchors':_0x30f9af[_0x81267(0x10d)][_0x81267(0xee)](v)};}function b(_0x4d4208,_0x3e6b00,_0x52e7c8){return{'x':_0x4d4208['x']+(_0x3e6b00['x']-_0x4d4208['x'])*_0x52e7c8,'y':_0x4d4208['y']+(_0x3e6b00['y']-_0x4d4208['y'])*_0x52e7c8};}function x(_0x2a10b2,_0x3bb84f){return Math['hypot'](_0x2a10b2['x']-_0x3bb84f['x'],_0x2a10b2['y']-_0x3bb84f['y']);}function S(_0x2ccd49){const _0x117a1c=_0x34f4;let _0x450be1=Math[_0x117a1c(0xf8)](_0x2ccd49['x'],_0x2ccd49['y']);return _0x450be1<g?{'x':0x1,'y':0x0}:{'x':_0x2ccd49['x']/_0x450be1,'y':_0x2ccd49['y']/_0x450be1};}function C(_0x39245c,_0x29e9a6,_0x3dc761=x(_0x39245c,_0x29e9a6)){let _0x264866=S({'x':_0x39245c['x']-_0x29e9a6['x'],'y':_0x39245c['y']-_0x29e9a6['y']});return{'x':_0x39245c['x']+_0x264866['x']*_0x3dc761,'y':_0x39245c['y']+_0x264866['y']*_0x3dc761};}function w(_0x27668a,_0x1d36d9){const _0x1c27a0=_0x34f4;let {anchors:_0x5bbda3}=_0x27668a;return _0x5bbda3['length']<0x2||_0x1d36d9<0x0?null:_0x1d36d9<_0x5bbda3[_0x1c27a0(0x12a)]-0x1?{'startIndex':_0x1d36d9,'endIndex':_0x1d36d9+0x1,'start':_0x5bbda3[_0x1d36d9],'end':_0x5bbda3[_0x1d36d9+0x1]}:_0x27668a[_0x1c27a0(0x108)]&&_0x1d36d9===_0x5bbda3['length']-0x1?{'startIndex':_0x5bbda3[_0x1c27a0(0x12a)]-0x1,'endIndex':0x0,'start':_0x5bbda3[_0x5bbda3[_0x1c27a0(0x12a)]-0x1],'end':_0x5bbda3[0x0]}:null;}function T(_0x453668,_0x323623){const _0x78facb=_0x34f4;let _0x4e1ef=w(_0x453668,_0x323623);return _0x4e1ef?[_0x4e1ef[_0x78facb(0x124)],_0x4e1ef[_0x78facb(0x124)][_0x78facb(0xe0)]??_0x4e1ef[_0x78facb(0x124)],_0x4e1ef['end']['in']??_0x4e1ef['end'],_0x4e1ef['end']]:null;}function te(_0x54f12d,_0x2a6d24){const _0x4e4746=_0x34f4;return _0x2a6d24===_0x4e4746(0xea)?_0x54f12d:_0x54f12d[_0x2a6d24]??null;}function E(_0x2c0d7b,_0x1c2156,_0x987321){const _0x480e84=_0x34f4;return _0x987321==='anchor'||_0x2c0d7b[_0x480e84(0x108)]?!0x0:_0x987321==='in'?_0x1c2156>0x0:_0x1c2156<_0x2c0d7b[_0x480e84(0x10d)][_0x480e84(0x12a)]-0x1;}function D(_0x45a996,_0x18502e){let [_0x7d9f2a,_0x14ed0d,_0x28ff51,_0x17141f]=_0x45a996,_0x134544=b(_0x7d9f2a,_0x14ed0d,_0x18502e),_0x1cb0c6=b(_0x14ed0d,_0x28ff51,_0x18502e),_0x435df4=b(_0x28ff51,_0x17141f,_0x18502e);return b(b(_0x134544,_0x1cb0c6,_0x18502e),b(_0x1cb0c6,_0x435df4,_0x18502e),_0x18502e);}function ne(_0x4b840c,_0x4f08c5){let [_0x44fe60,_0x1e1f40,_0x5b764a,_0x3584c8]=_0x4b840c,_0x116aac=b(_0x44fe60,_0x1e1f40,_0x4f08c5),_0x4567c5=b(_0x1e1f40,_0x5b764a,_0x4f08c5),_0x1eb00a=b(_0x5b764a,_0x3584c8,_0x4f08c5),_0x936904=b(_0x116aac,_0x4567c5,_0x4f08c5),_0x158a9c=b(_0x4567c5,_0x1eb00a,_0x4f08c5),_0x2c43b4=b(_0x936904,_0x158a9c,_0x4f08c5);return{'left':[_0x44fe60,_0x116aac,_0x936904,_0x2c43b4],'right':[_0x2c43b4,_0x158a9c,_0x1eb00a,_0x3584c8]};}function O(_0x1d0fd8,_0x7fd4d1,_0x4f42a8){const _0x43b7c8=_0x34f4;let _0x442bcf=_0x4f42a8['x']-_0x7fd4d1['x'],_0x3b7125=_0x4f42a8['y']-_0x7fd4d1['y'],_0x4b7eab=_0x442bcf*_0x442bcf+_0x3b7125*_0x3b7125,_0x498553=_0x4b7eab<=g?0x0:Math[_0x43b7c8(0x117)](0x0,Math[_0x43b7c8(0x122)](0x1,((_0x1d0fd8['x']-_0x7fd4d1['x'])*_0x442bcf+(_0x1d0fd8['y']-_0x7fd4d1['y'])*_0x3b7125)/_0x4b7eab)),_0x1c3f29={'x':_0x7fd4d1['x']+_0x442bcf*_0x498553,'y':_0x7fd4d1['y']+_0x3b7125*_0x498553};return{'point':_0x1c3f29,'ratio':_0x498553,'distance':x(_0x1d0fd8,_0x1c3f29)};}function re(_0x372356,_0x3553c7,_0x378449){return O(_0x372356,_0x3553c7,_0x378449)['distance']**0x2;}function k(_0x58cee5,_0x21c3f2){const _0x57b922=_0x34f4;if(_0x58cee5['length']<=0x2)return _0x58cee5[_0x57b922(0xee)](_);let _0x23f24e=0x0,_0x3cd684=0x0,_0x3afcc2=_0x58cee5[0x0],_0x111975=_0x58cee5[_0x58cee5[_0x57b922(0x12a)]-0x1],_0x5008e2=_0x21c3f2*_0x21c3f2;for(let _0x291ff6=0x1;_0x291ff6<_0x58cee5[_0x57b922(0x12a)]-0x1;_0x291ff6++){let _0x541f44=re(_0x58cee5[_0x291ff6],_0x3afcc2,_0x111975);_0x541f44>_0x23f24e&&(_0x23f24e=_0x541f44,_0x3cd684=_0x291ff6);}if(_0x23f24e<=_0x5008e2)return[_(_0x3afcc2),_(_0x111975)];let _0x141c65=k(_0x58cee5[_0x57b922(0x10f)](0x0,_0x3cd684+0x1),_0x21c3f2),_0x3c37f4=k(_0x58cee5[_0x57b922(0x10f)](_0x3cd684),_0x21c3f2);return[..._0x141c65[_0x57b922(0x10f)](0x0,-0x1),..._0x3c37f4];}function ie(_0x4859fe,_0x402e47){let _0x4e8a1f=_0x4859fe[_0x402e47],_0x2f919e=_0x4859fe[_0x402e47+0x1],_0x4360ad=_0x4859fe[_0x402e47-0x1]??_0x4e8a1f;return{'x':_0x4e8a1f['x']+(_0x2f919e['x']-_0x4360ad['x'])/0x6,'y':_0x4e8a1f['y']+(_0x2f919e['y']-_0x4360ad['y'])/0x6};}function A(_0x4c6a6f,_0x2fc288){let _0x3b1753=_0x4c6a6f[_0x2fc288],_0x179780=_0x4c6a6f[_0x2fc288-0x1],_0x2a1585=_0x4c6a6f[_0x2fc288+0x1]??_0x3b1753;return{'x':_0x3b1753['x']-(_0x2a1585['x']-_0x179780['x'])/0x6,'y':_0x3b1753['y']-(_0x2a1585['y']-_0x179780['y'])/0x6};}function j(_0x4a36b8,_0xfc973e){const _0x3ef262=_0x34f4;let _0x408436=_0x4a36b8['anchors'][_0xfc973e],_0x385c1d=_0x4a36b8[_0x3ef262(0x10d)][_0xfc973e-0x1]??(_0x4a36b8[_0x3ef262(0x108)]?_0x4a36b8[_0x3ef262(0x10d)][_0x4a36b8[_0x3ef262(0x10d)][_0x3ef262(0x12a)]-0x1]:null),_0x45ef95=_0x4a36b8[_0x3ef262(0x10d)][_0xfc973e+0x1]??(_0x4a36b8[_0x3ef262(0x108)]?_0x4a36b8[_0x3ef262(0x10d)][0x0]:null),_0x5ec821=_0x385c1d&&_0x45ef95?S({'x':_0x45ef95['x']-_0x385c1d['x'],'y':_0x45ef95['y']-_0x385c1d['y']}):_0x45ef95?S({'x':_0x45ef95['x']-_0x408436['x'],'y':_0x45ef95['y']-_0x408436['y']}):_0x385c1d?S({'x':_0x408436['x']-_0x385c1d['x'],'y':_0x408436['y']-_0x385c1d['y']}):{'x':0x1,'y':0x0},_0x5f131d=_0x385c1d&&_0x45ef95?Math[_0x3ef262(0x117)](0x32,x(_0x385c1d,_0x45ef95)/0x4):0x32;return{'in':{'x':_0x408436['x']-_0x5ec821['x']*_0x5f131d,'y':_0x408436['y']-_0x5ec821['y']*_0x5f131d},'out':{'x':_0x408436['x']+_0x5ec821['x']*_0x5f131d,'y':_0x408436['y']+_0x5ec821['y']*_0x5f131d}};}function M(_0x306e91,_0x31c41f){const _0x352b83=_0x34f4;let _0x55aadc=_0x306e91[_0x31c41f],_0x4753ca=_0x31c41f==='in'?_0x352b83(0xe0):'in',_0x1ec864=_0x306e91[_0x4753ca];_0x55aadc&&(_0x306e91[_0x352b83(0xf4)]==='symmetric'?_0x306e91[_0x4753ca]=C(_0x306e91,_0x55aadc):_0x306e91['pointType']===_0x352b83(0xe4)&&(_0x306e91[_0x4753ca]=C(_0x306e91,_0x55aadc,_0x1ec864?x(_0x306e91,_0x1ec864):x(_0x306e91,_0x55aadc))));}function ae(_0x43dc20,_0x5524fd){const _0x394a11=_0x34f4;let _0x39a7c5=y(_0x43dc20);return!_0x5524fd||_0x39a7c5[_0x394a11(0x108)]||_0x39a7c5[_0x394a11(0x10d)][_0x394a11(0x12a)]===0x0||_0x39a7c5[_0x394a11(0x10d)][_0x394a11(0x103)]({'id':_0x394a11(0x104),'x':_0x5524fd['x'],'y':_0x5524fd['y'],'pointType':_0x394a11(0xd9)}),_0x39a7c5;}function oe(_0x1fec87,_0x232b16={}){const _0xfda3a7=_0x34f4;let _0x8b2347=Math['max'](0x0,_0x232b16[_0xfda3a7(0x121)]??Math[_0xfda3a7(0x117)](0x4,_0x1fec87[_0xfda3a7(0x119)]*0.35)),_0x25c45c=_0x232b16[_0xfda3a7(0xe1)]??(_0x52abb0=>_0xfda3a7(0x137)+_0x52abb0),_0x504278=k(_0x1fec87[_0xfda3a7(0x128)],_0x8b2347),_0x34fa42=_0x504278[_0xfda3a7(0xee)]((_0x4518c2,_0x37a0e2)=>({'id':_0x25c45c(_0x37a0e2),'x':_0x4518c2['x'],'y':_0x4518c2['y'],'pointType':'free'}));for(let _0x321446=0x0;_0x321446<_0x34fa42[_0xfda3a7(0x12a)]-0x1;_0x321446++)_0x34fa42[_0x321446][_0xfda3a7(0xe0)]=ie(_0x504278,_0x321446),_0x34fa42[_0x321446+0x1]['in']=A(_0x504278,_0x321446+0x1);return{'kind':_0xfda3a7(0x11e),'closed':!0x1,'anchors':_0x34fa42};}function se(_0x34b1f9,_0x4088be,_0x4fddd7){const _0x4c0499=_0x34f4;let _0x51ff5c=null,_0x2b5849=[_0x4c0499(0xea),'in',_0x4c0499(0xe0)];return _0x34b1f9[_0x4c0499(0x10d)][_0x4c0499(0x11d)]((_0x564231,_0xd3da6d)=>{const _0xc12a21=_0x4c0499;_0x2b5849[_0xc12a21(0x11d)](_0x32295d=>{const _0x19ff1a=_0xc12a21;if(!E(_0x34b1f9,_0xd3da6d,_0x32295d))return;let _0x1fe30f=te(_0x564231,_0x32295d);if(!_0x1fe30f)return;let _0x3a9f94=x(_0x4088be,_0x1fe30f);_0x3a9f94>_0x4fddd7||_0x51ff5c&&_0x3a9f94>=_0x51ff5c[_0x19ff1a(0x11f)]||(_0x51ff5c={'handle':{'kind':_0x32295d,'anchorId':_0x564231['id']},'point':_(_0x1fe30f),'distance':_0x3a9f94});});}),_0x51ff5c;}function ce(_0x390141,_0x3ad76e,_0x25b80d){const _0xdce4e7=_0x34f4;let _0x1ed56d=null,_0x15bbb7=_0x390141[_0xdce4e7(0x108)]?_0x390141[_0xdce4e7(0x10d)]['length']:Math[_0xdce4e7(0x117)](0x0,_0x390141['anchors'][_0xdce4e7(0x12a)]-0x1);for(let _0x2b6fd5=0x0;_0x2b6fd5<_0x15bbb7;_0x2b6fd5++){let _0x788af=T(_0x390141,_0x2b6fd5);if(!_0x788af)continue;let _0x350714=D(_0x788af,0x0);for(let _0x2d3625=0x1;_0x2d3625<=0x20;_0x2d3625++){let _0x1bd4bd=D(_0x788af,_0x2d3625/0x20),_0x23b51d=O(_0x3ad76e,_0x350714,_0x1bd4bd),_0x308ec8=(_0x2d3625-0x1+_0x23b51d[_0xdce4e7(0x127)])/0x20;(!_0x1ed56d||_0x23b51d[_0xdce4e7(0x11f)]<_0x1ed56d[_0xdce4e7(0x11f)])&&(_0x1ed56d={'segmentIndex':_0x2b6fd5,'t':_0x308ec8,'point':_0x23b51d[_0xdce4e7(0xef)],'distance':_0x23b51d[_0xdce4e7(0x11f)]}),_0x350714=_0x1bd4bd;}}return _0x1ed56d&&_0x1ed56d['distance']<=_0x25b80d?_0x1ed56d:null;}function le(_0x5bc239,_0x4f122a,_0x2b6c37){const _0x32ea0b=_0x34f4;let _0x15a416=y(_0x5bc239),_0x57a4df=w(_0x15a416,_0x4f122a['segmentIndex']),_0x4c00ef=T(_0x15a416,_0x4f122a[_0x32ea0b(0xdb)]);if(!_0x57a4df||!_0x4c00ef)return _0x15a416;let _0x593c5a=ne(_0x4c00ef,Math[_0x32ea0b(0x117)](0x0,Math[_0x32ea0b(0x122)](0x1,_0x4f122a['t']))),_0x60809d={'id':_0x2b6c37(),'x':_0x593c5a['left'][0x3]['x'],'y':_0x593c5a[_0x32ea0b(0x134)][0x3]['y'],'in':_(_0x593c5a[_0x32ea0b(0x134)][0x2]),'out':_(_0x593c5a['right'][0x1]),'pointType':_0x32ea0b(0xf3)};return _0x15a416['anchors'][_0x57a4df[_0x32ea0b(0xf5)]][_0x32ea0b(0xe0)]=_(_0x593c5a['left'][0x1]),_0x15a416[_0x32ea0b(0x10d)][_0x57a4df[_0x32ea0b(0xff)]]['in']=_(_0x593c5a['right'][0x2]),_0x15a416[_0x32ea0b(0x10d)]['splice'](_0x57a4df[_0x32ea0b(0xf5)]+0x1,0x0,_0x60809d),_0x15a416;}function ue(_0x4325f9,_0x493098){const _0x336d8a=_0x34f4;let _0x6189dc=y(_0x4325f9);return _0x6189dc[_0x336d8a(0x10d)]=_0x6189dc['anchors'][_0x336d8a(0x101)](_0x2b6b93=>_0x2b6b93['id']!==_0x493098),_0x6189dc['closed']&&_0x6189dc[_0x336d8a(0x10d)][_0x336d8a(0x12a)]<0x3&&(_0x6189dc[_0x336d8a(0x108)]=!0x1),_0x6189dc;}function N(_0x22c8c1,_0x3b73ef,_0x45512e){const _0x3ce140=_0x34f4;let _0x33b10e=y(_0x22c8c1),_0x4b5cc8=_0x33b10e[_0x3ce140(0x10d)][_0x3ce140(0x120)](_0x1adcac=>_0x1adcac['id']===_0x3b73ef),_0x213548=_0x33b10e[_0x3ce140(0x10d)][_0x4b5cc8];if(!_0x213548)return _0x33b10e;if(_0x213548[_0x3ce140(0xf4)]=_0x45512e,_0x45512e==='corner')return delete _0x213548['in'],delete _0x213548[_0x3ce140(0xe0)],_0x33b10e;let _0x3ebc64=j(_0x33b10e,_0x4b5cc8);if(_0x213548['in']=_0x213548['in']?_(_0x213548['in']):_0x3ebc64['in'],_0x213548[_0x3ce140(0xe0)]=_0x213548[_0x3ce140(0xe0)]?_(_0x213548[_0x3ce140(0xe0)]):_0x3ebc64[_0x3ce140(0xe0)],_0x45512e===_0x3ce140(0xf1)){let _0x15ebff=Math[_0x3ce140(0x117)](x(_0x213548,_0x213548['in']),x(_0x213548,_0x213548[_0x3ce140(0xe0)]),0x32),_0x19f882=S({'x':_0x213548[_0x3ce140(0xe0)]['x']-_0x213548['x'],'y':_0x213548[_0x3ce140(0xe0)]['y']-_0x213548['y']});_0x213548[_0x3ce140(0xe0)]={'x':_0x213548['x']+_0x19f882['x']*_0x15ebff,'y':_0x213548['y']+_0x19f882['y']*_0x15ebff},_0x213548['in']={'x':_0x213548['x']-_0x19f882['x']*_0x15ebff,'y':_0x213548['y']-_0x19f882['y']*_0x15ebff};}else _0x45512e===_0x3ce140(0xe4)&&M(_0x213548,'out');return _0x33b10e;}function P(_0x33e8b3,_0x148f3e){const _0x219cab=_0x34f4;let _0x7e6e61=_0x33e8b3[_0x219cab(0x10d)]['find'](_0x6c5a17=>_0x6c5a17['id']===_0x148f3e),_0x36fac9=(_0x7e6e61==null?void 0x0:_0x7e6e61[_0x219cab(0xf4)])??'corner';return N(_0x33e8b3,_0x148f3e,_0x36fac9===_0x219cab(0xd9)?_0x219cab(0xe4):_0x36fac9===_0x219cab(0xe4)?'symmetric':_0x36fac9==='symmetric'?_0x219cab(0xf3):_0x219cab(0xd9));}function F(_0x503e20,_0x11c996,_0x26c33f){const _0x36686e=_0x34f4;let _0x22bade=y(_0x503e20),_0x45fb1f=_0x22bade['anchors']['find'](_0x2c568d=>_0x2c568d['id']===_0x11c996[_0x36686e(0x130)]);if(!_0x45fb1f)return _0x22bade;if(_0x11c996['kind']==='anchor'){let _0xa24b27={'x':_0x26c33f['x']-_0x45fb1f['x'],'y':_0x26c33f['y']-_0x45fb1f['y']};return _0x45fb1f['x']=_0x26c33f['x'],_0x45fb1f['y']=_0x26c33f['y'],_0x45fb1f['in']&&={'x':_0x45fb1f['in']['x']+_0xa24b27['x'],'y':_0x45fb1f['in']['y']+_0xa24b27['y']},_0x45fb1f[_0x36686e(0xe0)]&&={'x':_0x45fb1f['out']['x']+_0xa24b27['x'],'y':_0x45fb1f[_0x36686e(0xe0)]['y']+_0xa24b27['y']},_0x22bade;}return _0x45fb1f[_0x11c996[_0x36686e(0x116)]]=_(_0x26c33f),_0x45fb1f[_0x36686e(0xf4)]===_0x36686e(0xd9)&&(_0x45fb1f[_0x36686e(0xf4)]=_0x36686e(0xf3)),M(_0x45fb1f,_0x11c996['kind']),_0x22bade;}const I=1e-9;function L(_0x316173){const _0x3fdc01=_0x34f4;let _0x1e2988=Math[_0x3fdc01(0xdd)](_0x316173*0x2710)/0x2710;return Object['is'](_0x1e2988,-0x0)?'0':String(_0x1e2988);}function R(_0x30f47a){return L(_0x30f47a['x'])+'\x20'+L(_0x30f47a['y']);}function z(_0x138692,_0x45873d){return{'x':_0x138692['x']-_0x45873d['x'],'y':_0x138692['y']-_0x45873d['y']};}function B(_0x4c1a8d,_0x4cd957,_0x58c479,_0xf43e63,_0x30b59b){let _0xe881cf=0x1-_0x30b59b;return{'x':_0xe881cf*_0xe881cf*_0xe881cf*_0x4c1a8d['x']+0x3*_0xe881cf*_0xe881cf*_0x30b59b*_0x4cd957['x']+0x3*_0xe881cf*_0x30b59b*_0x30b59b*_0x58c479['x']+_0x30b59b*_0x30b59b*_0x30b59b*_0xf43e63['x'],'y':_0xe881cf*_0xe881cf*_0xe881cf*_0x4c1a8d['y']+0x3*_0xe881cf*_0xe881cf*_0x30b59b*_0x4cd957['y']+0x3*_0xe881cf*_0x30b59b*_0x30b59b*_0x58c479['y']+_0x30b59b*_0x30b59b*_0x30b59b*_0xf43e63['y']};}function V(_0x477b29,_0x228058,_0x45e47c,_0x3a8d6f){const _0x4cf181=_0x34f4;let _0x1a9c1e=-_0x477b29+0x3*_0x228058-0x3*_0x45e47c+_0x3a8d6f,_0x35db16=0x3*_0x477b29-0x6*_0x228058+0x3*_0x45e47c,_0x277b3f=-0x3*_0x477b29+0x3*_0x228058,_0x560894=[];if(Math['abs'](_0x1a9c1e)<I){if(Math[_0x4cf181(0x12c)](_0x35db16)<I)return _0x560894;let _0x4f70cc=-_0x277b3f/(0x2*_0x35db16);return _0x4f70cc>0x0&&_0x4f70cc<0x1&&_0x560894[_0x4cf181(0x103)](_0x4f70cc),_0x560894;}let _0x228231=_0x35db16*_0x35db16-0x3*_0x1a9c1e*_0x277b3f;if(_0x228231<0x0)return _0x560894;let _0x207192=Math[_0x4cf181(0x115)](Math[_0x4cf181(0x117)](0x0,_0x228231)),_0x28d17f=(-_0x35db16+_0x207192)/(0x3*_0x1a9c1e),_0x2c24ee=(-_0x35db16-_0x207192)/(0x3*_0x1a9c1e);return _0x28d17f>0x0&&_0x28d17f<0x1&&_0x560894[_0x4cf181(0x103)](_0x28d17f),_0x2c24ee>0x0&&_0x2c24ee<0x1&&Math['abs'](_0x2c24ee-_0x28d17f)>I&&_0x560894['push'](_0x2c24ee),_0x560894;}function H(_0x3aee92,_0x547328,_0xede317,_0x3b069e,_0x4a7deb){const _0x4b31cf=_0x34f4;_0x3aee92['push'](_0x547328,_0x4a7deb),new Set([...V(_0x547328['x'],_0xede317['x'],_0x3b069e['x'],_0x4a7deb['x']),...V(_0x547328['y'],_0xede317['y'],_0x3b069e['y'],_0x4a7deb['y'])])[_0x4b31cf(0x11d)](_0x5b2cd4=>{const _0x41f62c=_0x4b31cf;_0x3aee92[_0x41f62c(0x103)](B(_0x547328,_0xede317,_0x3b069e,_0x4a7deb,_0x5b2cd4));});}function U(_0x54afda){const _0x46e478=_0x34f4;let _0x6c6ede=_0x54afda[_0x46e478(0x10d)];if(_0x6c6ede['length']<=0x1)return _0x6c6ede;let _0x3fdd37=[];for(let _0x1a1146=0x1;_0x1a1146<_0x6c6ede[_0x46e478(0x12a)];_0x1a1146++){let _0x489591=_0x6c6ede[_0x1a1146-0x1],_0x3cc97d=_0x6c6ede[_0x1a1146];H(_0x3fdd37,_0x489591,_0x489591[_0x46e478(0xe0)]??_0x489591,_0x3cc97d['in']??_0x3cc97d,_0x3cc97d);}if(_0x54afda['closed']&&_0x6c6ede[_0x46e478(0x12a)]>0x1){let _0x3b1d90=_0x6c6ede[_0x6c6ede[_0x46e478(0x12a)]-0x1],_0x3f57f2=_0x6c6ede[0x0];H(_0x3fdd37,_0x3b1d90,_0x3b1d90[_0x46e478(0xe0)]??_0x3b1d90,_0x3f57f2['in']??_0x3f57f2,_0x3f57f2);}return _0x3fdd37;}function _0x52c8(){const _0x76cf91=['filter','get','push','__ink-preview-anchor__','UNIVER_INK_PLUGIN','_configService','registerAdapter','closed','setConfig','4022361aXPNCP','constructor','join','anchors','tool','slice','609368TWjUjx','#f54a45','ink.host-adapter.service','defineProperty','_adapters','sqrt','kind','max','type','width','function','version','Round','forEach','pen','distance','findIndex','tolerance','min','UNIVER_UNKNOWN','start','NoFill','top','ratio','points','_config','length','add','abs','3048620mYeYQA','object','SolidLine','anchorId','beginInkMode','Rect','_injector','left','registerCommand','opacity','ink-centerline-','color','2303144HOQZqG','corner','4dWDJXS','segmentIndex','createCustomShape','round','fillColor','indexOf','out','createId','270570UNustx','6vJljhz','smooth','OPERATION','iterator','symbol','onStarting','_commandService','anchor','21DRreEN','norm','default','map','point','@univerjs-pro/ink','symmetric','pluginName','free','pointType','startIndex','call','toPrimitive','hypot','decorate','165xyvoOf','527570QNkJgH','string','SolidFill','25827VLBpok','endIndex','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.'];_0x52c8=function(){return _0x76cf91;};return _0x52c8();}function de(_0x4efe31){const _0x25ae24=_0x34f4;let _0xdd7256=_0x4efe31[_0x25ae24(0x128)];if(_0xdd7256['length']<=0x1)return _0xdd7256;let _0x5eeb13=[];for(let _0x15e3cc=0x0;_0x15e3cc<_0xdd7256[_0x25ae24(0x12a)]-0x1;_0x15e3cc++){let _0x5a040a=_0xdd7256[_0x15e3cc],_0x195462=_0xdd7256[_0x15e3cc+0x1],_0x376e68=_0xdd7256[_0x15e3cc-0x1]??_0x5a040a,_0x797bc8=_0xdd7256[_0x15e3cc+0x2]??_0x195462;H(_0x5eeb13,_0x5a040a,{'x':_0x5a040a['x']+(_0x195462['x']-_0x376e68['x'])/0x6,'y':_0x5a040a['y']+(_0x195462['y']-_0x376e68['y'])/0x6},{'x':_0x195462['x']-(_0x797bc8['x']-_0x5a040a['x'])/0x6,'y':_0x195462['y']-(_0x797bc8['y']-_0x5a040a['y'])/0x6},_0x195462);}return _0x5eeb13;}function fe(_0xab68b6){const _0x23ecf7=_0x34f4;return _0xab68b6[_0x23ecf7(0x116)]===_0x23ecf7(0x11e)?U(_0xab68b6):de(_0xab68b6);}function W(_0x443cb5){const _0x321b68=_0x34f4;let _0x2579a4=Math[_0x321b68(0xdd)](_0x443cb5*0x2710)/0x2710;return Object['is'](_0x2579a4,-0x0)?0x0:_0x2579a4;}function G(_0x3b9fa2){const _0x5c99f1=_0x34f4;let _0x1ab821=fe(_0x3b9fa2);if(_0x1ab821[_0x5c99f1(0x12a)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x575ca7=Math[_0x5c99f1(0x122)](..._0x1ab821['map'](_0x1388dd=>_0x1388dd['x'])),_0xa8cf0a=Math[_0x5c99f1(0x122)](..._0x1ab821[_0x5c99f1(0xee)](_0x131eb9=>_0x131eb9['y'])),_0x3cce5b=Math[_0x5c99f1(0x117)](..._0x1ab821[_0x5c99f1(0xee)](_0x552835=>_0x552835['x'])),_0xc38b2f=Math[_0x5c99f1(0x117)](..._0x1ab821[_0x5c99f1(0xee)](_0xa50978=>_0xa50978['y']));return{'left':W(_0x575ca7),'top':W(_0xa8cf0a),'width':W(Math[_0x5c99f1(0x117)](0x1,_0x3cce5b-_0x575ca7)),'height':W(Math[_0x5c99f1(0x117)](0x1,_0xc38b2f-_0xa8cf0a))};}function pe(_0x47ce6a,_0x3f853b){const _0xdf60a0=_0x34f4;let _0x2940d7=_0x47ce6a[_0xdf60a0(0x10d)];if(_0x2940d7[_0xdf60a0(0x12a)]===0x0)return'';let _0x5bfc23=['M\x20'+R(z(_0x2940d7[0x0],_0x3f853b))];for(let _0x218845=0x1;_0x218845<_0x2940d7[_0xdf60a0(0x12a)];_0x218845++){let _0x442260=_0x2940d7[_0x218845-0x1],_0x25963b=_0x2940d7[_0x218845],_0xfde85b=_0x442260[_0xdf60a0(0xe0)]??_0x442260,_0x20e037=_0x25963b['in']??_0x25963b;_0x5bfc23[_0xdf60a0(0x103)]('C\x20'+R(z(_0xfde85b,_0x3f853b))+'\x20'+R(z(_0x20e037,_0x3f853b))+'\x20'+R(z(_0x25963b,_0x3f853b)));}if(_0x47ce6a[_0xdf60a0(0x108)]&&_0x2940d7[_0xdf60a0(0x12a)]>0x1){let _0x5eec34=_0x2940d7[_0x2940d7[_0xdf60a0(0x12a)]-0x1],_0x1e336b=_0x2940d7[0x0],_0x268fdb=_0x5eec34[_0xdf60a0(0xe0)]??_0x5eec34,_0x327d8f=_0x1e336b['in']??_0x1e336b;_0x5bfc23[_0xdf60a0(0x103)]('C\x20'+R(z(_0x268fdb,_0x3f853b))+'\x20'+R(z(_0x327d8f,_0x3f853b))+'\x20'+R(z(_0x1e336b,_0x3f853b))),_0x5bfc23[_0xdf60a0(0x103)]('Z');}return _0x5bfc23['join']('\x20');}function me(_0x2286c5,_0x514df1){const _0x1329ec=_0x34f4;let _0x1a4cdd=_0x2286c5[_0x1329ec(0x128)][_0x1329ec(0xee)](_0x5dd520=>z(_0x5dd520,_0x514df1));if(_0x1a4cdd[_0x1329ec(0x12a)]===0x0)return'';if(_0x1a4cdd[_0x1329ec(0x12a)]===0x1)return'M\x20'+R(_0x1a4cdd[0x0]);let _0x176bc8=['M\x20'+R(_0x1a4cdd[0x0])];for(let _0x484957=0x0;_0x484957<_0x1a4cdd[_0x1329ec(0x12a)]-0x1;_0x484957++){let _0x34e444=_0x1a4cdd[_0x484957],_0x25c020=_0x1a4cdd[_0x484957+0x1],_0x364a2e=_0x1a4cdd[_0x484957-0x1]??_0x34e444,_0x52a160=_0x1a4cdd[_0x484957+0x2]??_0x25c020,_0x5a38f3={'x':_0x34e444['x']+(_0x25c020['x']-_0x364a2e['x'])/0x6,'y':_0x34e444['y']+(_0x25c020['y']-_0x364a2e['y'])/0x6},_0x39d47d={'x':_0x25c020['x']-(_0x52a160['x']-_0x34e444['x'])/0x6,'y':_0x25c020['y']-(_0x52a160['y']-_0x34e444['y'])/0x6};_0x176bc8[_0x1329ec(0x103)]('C\x20'+R(_0x5a38f3)+'\x20'+R(_0x39d47d)+'\x20'+R(_0x25c020));}return _0x176bc8[_0x1329ec(0x10c)]('\x20');}function he(_0x13cbc0,_0x2e3dec){const _0x16f932=_0x34f4;return _0x13cbc0[_0x16f932(0x116)]===_0x16f932(0x11e)?pe(_0x13cbc0,_0x2e3dec):me(_0x13cbc0,_0x2e3dec);}function ge(_0xd354bc,_0x13c795){const _0x5c6286=_0x34f4;return _0x13c795!=null&&_0x13c795[_0x5c6286(0xd7)]?_0x13c795[_0x5c6286(0xd7)]:_0xd354bc[_0x5c6286(0x116)]===_0x5c6286(0x11e)?_0x5c6286(0x111):_0xd354bc[_0x5c6286(0xd7)];}function _e(_0x2fbc46,_0x47747b){const _0x1184ee=_0x34f4;return(_0x47747b==null?void 0x0:_0x47747b[_0x1184ee(0x119)])===void 0x0?_0x2fbc46[_0x1184ee(0x116)]==='pen'?0x2:_0x2fbc46[_0x1184ee(0x119)]:_0x47747b[_0x1184ee(0x119)];}function ve(_0x34506b,_0x456df7){const _0x223312=_0x34f4;return(_0x456df7==null?void 0x0:_0x456df7['opacity'])===void 0x0?_0x34506b['kind']==='pen'?void 0x0:_0x34506b[_0x223312(0x136)]:_0x456df7[_0x223312(0x136)];}function _0x34f4(_0x5e8668,_0x548cb6){_0x5e8668=_0x5e8668-0xd7;const _0x52c89a=_0x52c8();let _0x34f490=_0x52c89a[_0x5e8668];return _0x34f490;}function ye(_0x317f66,_0x1eb63f){const _0x5910ef=_0x34f4;let _0x229974=G(_0x317f66),_0x52ec0f=he(_0x317f66,{'x':_0x229974['left'],'y':_0x229974[_0x5910ef(0x126)]}),_0x46fbf9=_0x317f66[_0x5910ef(0x116)]===_0x5910ef(0x11e)&&_0x317f66[_0x5910ef(0x108)],_0x390cf7=_0x1eb63f==null?void 0x0:_0x1eb63f[_0x5910ef(0xde)];return{'shapeType':_0x9ecee9[_0x5910ef(0x132)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x229974[_0x5910ef(0x119)],'h':_0x229974['height'],'fill':_0x46fbf9?_0x5910ef(0xec):'none','stroke':!0x0,'data':_0x52ec0f,'dataArray':be(_0x317f66,{'x':_0x229974[_0x5910ef(0x134)],'y':_0x229974[_0x5910ef(0x126)]})}]},'fill':_0x46fbf9&&_0x390cf7?{'color':_0x390cf7,'fillType':_0x1da015[_0x5910ef(0xfd)]}:{'fillType':_0x1da015[_0x5910ef(0x125)]},'stroke':{'color':ge(_0x317f66,_0x1eb63f),'width':_e(_0x317f66,_0x1eb63f),'opacity':ve(_0x317f66,_0x1eb63f),'lineStrokeType':_0x5d98d2[_0x5910ef(0x12f)],'capType':_0x1d6166[_0x5910ef(0x11c)],'lineJoinType':_0x439b44[_0x5910ef(0x11c)]}};}function K(_0x38c8f0,_0x3e58da){return{'x':_0x38c8f0['x']-_0x3e58da['x'],'y':_0x38c8f0['y']-_0x3e58da['y']};}function be(_0x4b330d,_0x719918){const _0xbd57f2=_0x34f4;if(_0x4b330d[_0xbd57f2(0x116)]===_0xbd57f2(0x11e)){let _0x16fef1=_0x4b330d[_0xbd57f2(0x10d)];if(_0x16fef1[_0xbd57f2(0x12a)]===0x0)return[];let _0x1e200c=K(_0x16fef1[0x0],_0x719918),_0x5a854c=[{'command':'M','points':[_0x1e200c['x'],_0x1e200c['y']]}];for(let _0xb89288=0x1;_0xb89288<_0x16fef1['length'];_0xb89288++){let _0x1053e7=_0x16fef1[_0xb89288-0x1],_0x64166b=_0x16fef1[_0xb89288],_0x479c57=K(_0x1053e7[_0xbd57f2(0xe0)]??_0x1053e7,_0x719918),_0x21bd99=K(_0x64166b['in']??_0x64166b,_0x719918),_0x5418df=K(_0x64166b,_0x719918);_0x5a854c[_0xbd57f2(0x103)]({'command':'C','points':[_0x479c57['x'],_0x479c57['y'],_0x21bd99['x'],_0x21bd99['y'],_0x5418df['x'],_0x5418df['y']]});}if(_0x4b330d[_0xbd57f2(0x108)]&&_0x16fef1[_0xbd57f2(0x12a)]>0x1){let _0xe3b2d4=_0x16fef1[_0x16fef1['length']-0x1],_0x433c20=_0x16fef1[0x0],_0x393860=K(_0xe3b2d4[_0xbd57f2(0xe0)]??_0xe3b2d4,_0x719918),_0x315164=K(_0x433c20['in']??_0x433c20,_0x719918),_0x24d9f5=K(_0x433c20,_0x719918);_0x5a854c[_0xbd57f2(0x103)]({'command':'C','points':[_0x393860['x'],_0x393860['y'],_0x315164['x'],_0x315164['y'],_0x24d9f5['x'],_0x24d9f5['y']]}),_0x5a854c[_0xbd57f2(0x103)]({'command':'z','points':[]});}return _0x5a854c;}let _0x2d20bf=_0x4b330d['points'][_0xbd57f2(0xee)](_0x34d944=>K(_0x34d944,_0x719918));if(_0x2d20bf[_0xbd57f2(0x12a)]===0x0)return[];let _0x239de4=[{'command':'M','points':[_0x2d20bf[0x0]['x'],_0x2d20bf[0x0]['y']]}];for(let _0x4b7d3d=0x0;_0x4b7d3d<_0x2d20bf[_0xbd57f2(0x12a)]-0x1;_0x4b7d3d++){let _0x176ce4=_0x2d20bf[_0x4b7d3d],_0x59d0c2=_0x2d20bf[_0x4b7d3d+0x1],_0x39ef4f=_0x2d20bf[_0x4b7d3d-0x1]??_0x176ce4,_0x1c3a5e=_0x2d20bf[_0x4b7d3d+0x2]??_0x59d0c2,_0x58fd18={'x':_0x176ce4['x']+(_0x59d0c2['x']-_0x39ef4f['x'])/0x6,'y':_0x176ce4['y']+(_0x59d0c2['y']-_0x39ef4f['y'])/0x6},_0x470276={'x':_0x59d0c2['x']-(_0x1c3a5e['x']-_0x176ce4['x'])/0x6,'y':_0x59d0c2['y']-(_0x1c3a5e['y']-_0x176ce4['y'])/0x6};_0x239de4['push']({'command':'C','points':[_0x58fd18['x'],_0x58fd18['y'],_0x470276['x'],_0x470276['y'],_0x59d0c2['x'],_0x59d0c2['y']]});}return _0x239de4;}function xe(_0x12c644){const _0x13e3a2=_0x34f4;let {model:_0x3c3f62,sourceModel:_0x20c348=_0x3c3f62,style:_0x1ad5b5}=_0x12c644,_0x2ddbcd=_0x12c644[_0x13e3a2(0x10e)]??_0x3c3f62[_0x13e3a2(0x116)],_0x1066d0=G(_0x3c3f62),_0x4d6f7c=_0x3c3f62[_0x13e3a2(0x116)]==='pen'&&_0x2ddbcd!==_0x13e3a2(0x11e)?_0x3c3f62:void 0x0;return{'transform':{..._0x1066d0,'rotation':0x0},'shapeData':ye(_0x3c3f62,_0x1ad5b5),'ink':{'version':0x1,'tool':_0x2ddbcd,'sourceModel':_0x20c348,..._0x4d6f7c?{'editModel':_0x4d6f7c}:{},'normalizedBounds':_0x1066d0}};}var Se=_0x428ca5(0xf0),Ce='1.2.0';function q(_0x4ba76b){'@babel/helpers - typeof';const _0x384fb4=_0x428ca5;return q=typeof Symbol==_0x384fb4(0x11a)&&typeof Symbol[_0x384fb4(0xe6)]==_0x384fb4(0xe7)?function(_0x3a9b4e){return typeof _0x3a9b4e;}:function(_0x3aec00){const _0x542123=_0x384fb4;return _0x3aec00&&typeof Symbol==_0x542123(0x11a)&&_0x3aec00[_0x542123(0x10b)]===Symbol&&_0x3aec00!==Symbol['prototype']?_0x542123(0xe7):typeof _0x3aec00;},q(_0x4ba76b);}function we(_0x53d8f9,_0x29d70a){const _0x2cbfb0=_0x428ca5;if(q(_0x53d8f9)!=_0x2cbfb0(0x12e)||!_0x53d8f9)return _0x53d8f9;var _0x4bd9ac=_0x53d8f9[Symbol[_0x2cbfb0(0xf7)]];if(_0x4bd9ac!==void 0x0){var _0x51b7a4=_0x4bd9ac[_0x2cbfb0(0xf6)](_0x53d8f9,_0x29d70a||_0x2cbfb0(0xed));if(q(_0x51b7a4)!='object')return _0x51b7a4;throw TypeError(_0x2cbfb0(0x100));}return(_0x29d70a===_0x2cbfb0(0xfc)?String:Number)(_0x53d8f9);}function J(_0x2856c1){const _0x4d725f=_0x428ca5;var _0x478bc8=we(_0x2856c1,'string');return q(_0x478bc8)==_0x4d725f(0xe7)?_0x478bc8:_0x478bc8+'';}function Y(_0x438dd4,_0x3eff29,_0x371227){const _0x72379c=_0x428ca5;return(_0x3eff29=J(_0x3eff29))in _0x438dd4?Object[_0x72379c(0x113)](_0x438dd4,_0x3eff29,{'value':_0x371227,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x438dd4[_0x3eff29]=_0x371227,_0x438dd4;}const X=_0x290056(_0x428ca5(0x112));var Te=class{constructor(){const _0x1593a7=_0x428ca5;Y(this,_0x1593a7(0x114),[]);}[_0x428ca5(0x107)](_0x31351b){const _0x2baaea=_0x428ca5;return this[_0x2baaea(0x114)]['push'](_0x31351b),_0x243018(()=>{const _0x5cf8fd=_0x2baaea;let _0x3344f1=this[_0x5cf8fd(0x114)][_0x5cf8fd(0xdf)](_0x31351b);_0x3344f1>=0x0&&this[_0x5cf8fd(0x114)]['splice'](_0x3344f1,0x1);});}['beginInkMode'](_0x26f2aa){const _0x57ec38=_0x428ca5;for(let _0x372f66 of this[_0x57ec38(0x114)])if(_0x372f66[_0x57ec38(0x131)](_0x26f2aa))return!0x0;return!0x1;}async['createCustomShape'](_0x2decc2){const _0x3c3899=_0x428ca5;for(let _0x45a930 of this[_0x3c3899(0x114)])if(_0x45a930[_0x3c3899(0xdc)]&&await _0x45a930[_0x3c3899(0xdc)](_0x2decc2))return!0x0;return!0x1;}};const Ee={'id':'ink.operation.start','type':_0x262274[_0x428ca5(0xe5)],'handler':(_0x263eca,_0x10247d)=>_0x10247d?_0x263eca[_0x428ca5(0x102)](X)[_0x428ca5(0x131)](_0x10247d):!0x1},Z={};function Q(_0x4728ab,_0x58ce78){return function(_0x3c3c6f,_0x59dd04){_0x58ce78(_0x3c3c6f,_0x59dd04,_0x4728ab);};}function De(_0x19c24b,_0x3ecbbc,_0xdd64c7,_0x497fcc){const _0x1fa6fd=_0x428ca5;var _0x4557f7=arguments[_0x1fa6fd(0x12a)],_0x453c3=_0x4557f7<0x3?_0x3ecbbc:_0x497fcc===null?_0x497fcc=Object['getOwnPropertyDescriptor'](_0x3ecbbc,_0xdd64c7):_0x497fcc,_0x59ffc2;if(typeof Reflect=='object'&&typeof Reflect[_0x1fa6fd(0xf9)]==_0x1fa6fd(0x11a))_0x453c3=Reflect[_0x1fa6fd(0xf9)](_0x19c24b,_0x3ecbbc,_0xdd64c7,_0x497fcc);else{for(var _0x1840b8=_0x19c24b[_0x1fa6fd(0x12a)]-0x1;_0x1840b8>=0x0;_0x1840b8--)(_0x59ffc2=_0x19c24b[_0x1840b8])&&(_0x453c3=(_0x4557f7<0x3?_0x59ffc2(_0x453c3):_0x4557f7>0x3?_0x59ffc2(_0x3ecbbc,_0xdd64c7,_0x453c3):_0x59ffc2(_0x3ecbbc,_0xdd64c7))||_0x453c3);}return _0x4557f7>0x3&&_0x453c3&&Object['defineProperty'](_0x3ecbbc,_0xdd64c7,_0x453c3),_0x453c3;}let $=class extends _0xd5747{constructor(_0x5d28f2=Z,_0x48f601,_0x3081b0,_0x56b884){const _0x47b5de=_0x428ca5;super(),this['_config']=_0x5d28f2,this[_0x47b5de(0x133)]=_0x48f601,this[_0x47b5de(0xe9)]=_0x3081b0,this[_0x47b5de(0x106)]=_0x56b884;let {..._0x498b0e}=_0x18dd0a({},Z,this[_0x47b5de(0x129)]);this[_0x47b5de(0x106)][_0x47b5de(0x109)]('ink.config',_0x498b0e);}[_0x428ca5(0xe8)](){const _0x285104=_0x428ca5;[[X,{'useClass':Te}]][_0x285104(0x11d)](_0x1e0137=>this[_0x285104(0x133)][_0x285104(0x12b)](_0x1e0137)),this['disposeWithMe'](this['_commandService'][_0x285104(0x135)](Ee));}};Y($,_0x428ca5(0xf2),_0x428ca5(0x105)),Y($,'packageName',Se),Y($,_0x428ca5(0x11b),Ce),Y($,_0x428ca5(0x118),_0x57679c[_0x428ca5(0x123)]),$=De([_0x51330d(_0x44e568),Q(0x1,_0x89bb4c(_0x169e64)),Q(0x2,_0x2a482d),Q(0x3,_0x37a4f2)],$);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 _0x428ca5=_0x34f4;(function(_0x2a7a23,_0x31913){const _0x260a18=_0x34f4,_0x10d146=_0x2a7a23();while(!![]){try{const _0x27909c=parseInt(_0x260a18(0x110))/0x1+-parseInt(_0x260a18(0xe3))/0x2*(parseInt(_0x260a18(0xfe))/0x3)+-parseInt(_0x260a18(0xda))/0x4*(parseInt(_0x260a18(0x12d))/0x5)+-parseInt(_0x260a18(0xe2))/0x6+parseInt(_0x260a18(0xeb))/0x7*(parseInt(_0x260a18(0xd8))/0x8)+parseInt(_0x260a18(0x10a))/0x9+-parseInt(_0x260a18(0xfb))/0xa*(parseInt(_0x260a18(0xfa))/0xb);if(_0x27909c===_0x31913)break;else _0x10d146['push'](_0x10d146['shift']());}catch(_0x4c031b){_0x10d146['push'](_0x10d146['shift']());}}}(_0x52c8,0x6d5e7));import{ShapeFillEnum as _0x1da015,ShapeLineCapEnum as _0x1d6166,ShapeLineJoinEnum as _0x439b44,ShapeLineTypeEnum as _0x5d98d2,ShapeTypeEnum as _0x9ecee9}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x44e568}from'@univerjs-pro/license';import{CommandType as _0x262274,DependentOn as _0x51330d,ICommandService as _0x2a482d,IConfigService as _0x37a4f2,Inject as _0x89bb4c,Injector as _0x169e64,Plugin as _0xd5747,UniverInstanceType as _0x57679c,createIdentifier as _0x290056,merge as _0x18dd0a,toDisposable as _0x243018}from'@univerjs/core';const g=0.0001;function _(_0x27b282){return{'x':_0x27b282['x'],'y':_0x27b282['y']};}function v(_0x431c4c){const _0x883d89=_0x34f4;return{..._0x431c4c,'in':_0x431c4c['in']?_(_0x431c4c['in']):void 0x0,'out':_0x431c4c[_0x883d89(0xe0)]?_(_0x431c4c[_0x883d89(0xe0)]):void 0x0};}function y(_0x30f9af){const _0x81267=_0x34f4;return{'kind':_0x81267(0x11e),'closed':_0x30f9af['closed'],'anchors':_0x30f9af[_0x81267(0x10d)][_0x81267(0xee)](v)};}function b(_0x4d4208,_0x3e6b00,_0x52e7c8){return{'x':_0x4d4208['x']+(_0x3e6b00['x']-_0x4d4208['x'])*_0x52e7c8,'y':_0x4d4208['y']+(_0x3e6b00['y']-_0x4d4208['y'])*_0x52e7c8};}function x(_0x2a10b2,_0x3bb84f){return Math['hypot'](_0x2a10b2['x']-_0x3bb84f['x'],_0x2a10b2['y']-_0x3bb84f['y']);}function S(_0x2ccd49){const _0x117a1c=_0x34f4;let _0x450be1=Math[_0x117a1c(0xf8)](_0x2ccd49['x'],_0x2ccd49['y']);return _0x450be1<g?{'x':0x1,'y':0x0}:{'x':_0x2ccd49['x']/_0x450be1,'y':_0x2ccd49['y']/_0x450be1};}function C(_0x39245c,_0x29e9a6,_0x3dc761=x(_0x39245c,_0x29e9a6)){let _0x264866=S({'x':_0x39245c['x']-_0x29e9a6['x'],'y':_0x39245c['y']-_0x29e9a6['y']});return{'x':_0x39245c['x']+_0x264866['x']*_0x3dc761,'y':_0x39245c['y']+_0x264866['y']*_0x3dc761};}function w(_0x27668a,_0x1d36d9){const _0x1c27a0=_0x34f4;let {anchors:_0x5bbda3}=_0x27668a;return _0x5bbda3['length']<0x2||_0x1d36d9<0x0?null:_0x1d36d9<_0x5bbda3[_0x1c27a0(0x12a)]-0x1?{'startIndex':_0x1d36d9,'endIndex':_0x1d36d9+0x1,'start':_0x5bbda3[_0x1d36d9],'end':_0x5bbda3[_0x1d36d9+0x1]}:_0x27668a[_0x1c27a0(0x108)]&&_0x1d36d9===_0x5bbda3['length']-0x1?{'startIndex':_0x5bbda3[_0x1c27a0(0x12a)]-0x1,'endIndex':0x0,'start':_0x5bbda3[_0x5bbda3[_0x1c27a0(0x12a)]-0x1],'end':_0x5bbda3[0x0]}:null;}function T(_0x453668,_0x323623){const _0x78facb=_0x34f4;let _0x4e1ef=w(_0x453668,_0x323623);return _0x4e1ef?[_0x4e1ef[_0x78facb(0x124)],_0x4e1ef[_0x78facb(0x124)][_0x78facb(0xe0)]??_0x4e1ef[_0x78facb(0x124)],_0x4e1ef['end']['in']??_0x4e1ef['end'],_0x4e1ef['end']]:null;}function te(_0x54f12d,_0x2a6d24){const _0x4e4746=_0x34f4;return _0x2a6d24===_0x4e4746(0xea)?_0x54f12d:_0x54f12d[_0x2a6d24]??null;}function E(_0x2c0d7b,_0x1c2156,_0x987321){const _0x480e84=_0x34f4;return _0x987321==='anchor'||_0x2c0d7b[_0x480e84(0x108)]?!0x0:_0x987321==='in'?_0x1c2156>0x0:_0x1c2156<_0x2c0d7b[_0x480e84(0x10d)][_0x480e84(0x12a)]-0x1;}function D(_0x45a996,_0x18502e){let [_0x7d9f2a,_0x14ed0d,_0x28ff51,_0x17141f]=_0x45a996,_0x134544=b(_0x7d9f2a,_0x14ed0d,_0x18502e),_0x1cb0c6=b(_0x14ed0d,_0x28ff51,_0x18502e),_0x435df4=b(_0x28ff51,_0x17141f,_0x18502e);return b(b(_0x134544,_0x1cb0c6,_0x18502e),b(_0x1cb0c6,_0x435df4,_0x18502e),_0x18502e);}function ne(_0x4b840c,_0x4f08c5){let [_0x44fe60,_0x1e1f40,_0x5b764a,_0x3584c8]=_0x4b840c,_0x116aac=b(_0x44fe60,_0x1e1f40,_0x4f08c5),_0x4567c5=b(_0x1e1f40,_0x5b764a,_0x4f08c5),_0x1eb00a=b(_0x5b764a,_0x3584c8,_0x4f08c5),_0x936904=b(_0x116aac,_0x4567c5,_0x4f08c5),_0x158a9c=b(_0x4567c5,_0x1eb00a,_0x4f08c5),_0x2c43b4=b(_0x936904,_0x158a9c,_0x4f08c5);return{'left':[_0x44fe60,_0x116aac,_0x936904,_0x2c43b4],'right':[_0x2c43b4,_0x158a9c,_0x1eb00a,_0x3584c8]};}function O(_0x1d0fd8,_0x7fd4d1,_0x4f42a8){const _0x43b7c8=_0x34f4;let _0x442bcf=_0x4f42a8['x']-_0x7fd4d1['x'],_0x3b7125=_0x4f42a8['y']-_0x7fd4d1['y'],_0x4b7eab=_0x442bcf*_0x442bcf+_0x3b7125*_0x3b7125,_0x498553=_0x4b7eab<=g?0x0:Math[_0x43b7c8(0x117)](0x0,Math[_0x43b7c8(0x122)](0x1,((_0x1d0fd8['x']-_0x7fd4d1['x'])*_0x442bcf+(_0x1d0fd8['y']-_0x7fd4d1['y'])*_0x3b7125)/_0x4b7eab)),_0x1c3f29={'x':_0x7fd4d1['x']+_0x442bcf*_0x498553,'y':_0x7fd4d1['y']+_0x3b7125*_0x498553};return{'point':_0x1c3f29,'ratio':_0x498553,'distance':x(_0x1d0fd8,_0x1c3f29)};}function re(_0x372356,_0x3553c7,_0x378449){return O(_0x372356,_0x3553c7,_0x378449)['distance']**0x2;}function k(_0x58cee5,_0x21c3f2){const _0x57b922=_0x34f4;if(_0x58cee5['length']<=0x2)return _0x58cee5[_0x57b922(0xee)](_);let _0x23f24e=0x0,_0x3cd684=0x0,_0x3afcc2=_0x58cee5[0x0],_0x111975=_0x58cee5[_0x58cee5[_0x57b922(0x12a)]-0x1],_0x5008e2=_0x21c3f2*_0x21c3f2;for(let _0x291ff6=0x1;_0x291ff6<_0x58cee5[_0x57b922(0x12a)]-0x1;_0x291ff6++){let _0x541f44=re(_0x58cee5[_0x291ff6],_0x3afcc2,_0x111975);_0x541f44>_0x23f24e&&(_0x23f24e=_0x541f44,_0x3cd684=_0x291ff6);}if(_0x23f24e<=_0x5008e2)return[_(_0x3afcc2),_(_0x111975)];let _0x141c65=k(_0x58cee5[_0x57b922(0x10f)](0x0,_0x3cd684+0x1),_0x21c3f2),_0x3c37f4=k(_0x58cee5[_0x57b922(0x10f)](_0x3cd684),_0x21c3f2);return[..._0x141c65[_0x57b922(0x10f)](0x0,-0x1),..._0x3c37f4];}function ie(_0x4859fe,_0x402e47){let _0x4e8a1f=_0x4859fe[_0x402e47],_0x2f919e=_0x4859fe[_0x402e47+0x1],_0x4360ad=_0x4859fe[_0x402e47-0x1]??_0x4e8a1f;return{'x':_0x4e8a1f['x']+(_0x2f919e['x']-_0x4360ad['x'])/0x6,'y':_0x4e8a1f['y']+(_0x2f919e['y']-_0x4360ad['y'])/0x6};}function A(_0x4c6a6f,_0x2fc288){let _0x3b1753=_0x4c6a6f[_0x2fc288],_0x179780=_0x4c6a6f[_0x2fc288-0x1],_0x2a1585=_0x4c6a6f[_0x2fc288+0x1]??_0x3b1753;return{'x':_0x3b1753['x']-(_0x2a1585['x']-_0x179780['x'])/0x6,'y':_0x3b1753['y']-(_0x2a1585['y']-_0x179780['y'])/0x6};}function j(_0x4a36b8,_0xfc973e){const _0x3ef262=_0x34f4;let _0x408436=_0x4a36b8['anchors'][_0xfc973e],_0x385c1d=_0x4a36b8[_0x3ef262(0x10d)][_0xfc973e-0x1]??(_0x4a36b8[_0x3ef262(0x108)]?_0x4a36b8[_0x3ef262(0x10d)][_0x4a36b8[_0x3ef262(0x10d)][_0x3ef262(0x12a)]-0x1]:null),_0x45ef95=_0x4a36b8[_0x3ef262(0x10d)][_0xfc973e+0x1]??(_0x4a36b8[_0x3ef262(0x108)]?_0x4a36b8[_0x3ef262(0x10d)][0x0]:null),_0x5ec821=_0x385c1d&&_0x45ef95?S({'x':_0x45ef95['x']-_0x385c1d['x'],'y':_0x45ef95['y']-_0x385c1d['y']}):_0x45ef95?S({'x':_0x45ef95['x']-_0x408436['x'],'y':_0x45ef95['y']-_0x408436['y']}):_0x385c1d?S({'x':_0x408436['x']-_0x385c1d['x'],'y':_0x408436['y']-_0x385c1d['y']}):{'x':0x1,'y':0x0},_0x5f131d=_0x385c1d&&_0x45ef95?Math[_0x3ef262(0x117)](0x32,x(_0x385c1d,_0x45ef95)/0x4):0x32;return{'in':{'x':_0x408436['x']-_0x5ec821['x']*_0x5f131d,'y':_0x408436['y']-_0x5ec821['y']*_0x5f131d},'out':{'x':_0x408436['x']+_0x5ec821['x']*_0x5f131d,'y':_0x408436['y']+_0x5ec821['y']*_0x5f131d}};}function M(_0x306e91,_0x31c41f){const _0x352b83=_0x34f4;let _0x55aadc=_0x306e91[_0x31c41f],_0x4753ca=_0x31c41f==='in'?_0x352b83(0xe0):'in',_0x1ec864=_0x306e91[_0x4753ca];_0x55aadc&&(_0x306e91[_0x352b83(0xf4)]==='symmetric'?_0x306e91[_0x4753ca]=C(_0x306e91,_0x55aadc):_0x306e91['pointType']===_0x352b83(0xe4)&&(_0x306e91[_0x4753ca]=C(_0x306e91,_0x55aadc,_0x1ec864?x(_0x306e91,_0x1ec864):x(_0x306e91,_0x55aadc))));}function ae(_0x43dc20,_0x5524fd){const _0x394a11=_0x34f4;let _0x39a7c5=y(_0x43dc20);return!_0x5524fd||_0x39a7c5[_0x394a11(0x108)]||_0x39a7c5[_0x394a11(0x10d)][_0x394a11(0x12a)]===0x0||_0x39a7c5[_0x394a11(0x10d)][_0x394a11(0x103)]({'id':_0x394a11(0x104),'x':_0x5524fd['x'],'y':_0x5524fd['y'],'pointType':_0x394a11(0xd9)}),_0x39a7c5;}function oe(_0x1fec87,_0x232b16={}){const _0xfda3a7=_0x34f4;let _0x8b2347=Math['max'](0x0,_0x232b16[_0xfda3a7(0x121)]??Math[_0xfda3a7(0x117)](0x4,_0x1fec87[_0xfda3a7(0x119)]*0.35)),_0x25c45c=_0x232b16[_0xfda3a7(0xe1)]??(_0x52abb0=>_0xfda3a7(0x137)+_0x52abb0),_0x504278=k(_0x1fec87[_0xfda3a7(0x128)],_0x8b2347),_0x34fa42=_0x504278[_0xfda3a7(0xee)]((_0x4518c2,_0x37a0e2)=>({'id':_0x25c45c(_0x37a0e2),'x':_0x4518c2['x'],'y':_0x4518c2['y'],'pointType':'free'}));for(let _0x321446=0x0;_0x321446<_0x34fa42[_0xfda3a7(0x12a)]-0x1;_0x321446++)_0x34fa42[_0x321446][_0xfda3a7(0xe0)]=ie(_0x504278,_0x321446),_0x34fa42[_0x321446+0x1]['in']=A(_0x504278,_0x321446+0x1);return{'kind':_0xfda3a7(0x11e),'closed':!0x1,'anchors':_0x34fa42};}function se(_0x34b1f9,_0x4088be,_0x4fddd7){const _0x4c0499=_0x34f4;let _0x51ff5c=null,_0x2b5849=[_0x4c0499(0xea),'in',_0x4c0499(0xe0)];return _0x34b1f9[_0x4c0499(0x10d)][_0x4c0499(0x11d)]((_0x564231,_0xd3da6d)=>{const _0xc12a21=_0x4c0499;_0x2b5849[_0xc12a21(0x11d)](_0x32295d=>{const _0x19ff1a=_0xc12a21;if(!E(_0x34b1f9,_0xd3da6d,_0x32295d))return;let _0x1fe30f=te(_0x564231,_0x32295d);if(!_0x1fe30f)return;let _0x3a9f94=x(_0x4088be,_0x1fe30f);_0x3a9f94>_0x4fddd7||_0x51ff5c&&_0x3a9f94>=_0x51ff5c[_0x19ff1a(0x11f)]||(_0x51ff5c={'handle':{'kind':_0x32295d,'anchorId':_0x564231['id']},'point':_(_0x1fe30f),'distance':_0x3a9f94});});}),_0x51ff5c;}function ce(_0x390141,_0x3ad76e,_0x25b80d){const _0xdce4e7=_0x34f4;let _0x1ed56d=null,_0x15bbb7=_0x390141[_0xdce4e7(0x108)]?_0x390141[_0xdce4e7(0x10d)]['length']:Math[_0xdce4e7(0x117)](0x0,_0x390141['anchors'][_0xdce4e7(0x12a)]-0x1);for(let _0x2b6fd5=0x0;_0x2b6fd5<_0x15bbb7;_0x2b6fd5++){let _0x788af=T(_0x390141,_0x2b6fd5);if(!_0x788af)continue;let _0x350714=D(_0x788af,0x0);for(let _0x2d3625=0x1;_0x2d3625<=0x20;_0x2d3625++){let _0x1bd4bd=D(_0x788af,_0x2d3625/0x20),_0x23b51d=O(_0x3ad76e,_0x350714,_0x1bd4bd),_0x308ec8=(_0x2d3625-0x1+_0x23b51d[_0xdce4e7(0x127)])/0x20;(!_0x1ed56d||_0x23b51d[_0xdce4e7(0x11f)]<_0x1ed56d[_0xdce4e7(0x11f)])&&(_0x1ed56d={'segmentIndex':_0x2b6fd5,'t':_0x308ec8,'point':_0x23b51d[_0xdce4e7(0xef)],'distance':_0x23b51d[_0xdce4e7(0x11f)]}),_0x350714=_0x1bd4bd;}}return _0x1ed56d&&_0x1ed56d['distance']<=_0x25b80d?_0x1ed56d:null;}function le(_0x5bc239,_0x4f122a,_0x2b6c37){const _0x32ea0b=_0x34f4;let _0x15a416=y(_0x5bc239),_0x57a4df=w(_0x15a416,_0x4f122a['segmentIndex']),_0x4c00ef=T(_0x15a416,_0x4f122a[_0x32ea0b(0xdb)]);if(!_0x57a4df||!_0x4c00ef)return _0x15a416;let _0x593c5a=ne(_0x4c00ef,Math[_0x32ea0b(0x117)](0x0,Math[_0x32ea0b(0x122)](0x1,_0x4f122a['t']))),_0x60809d={'id':_0x2b6c37(),'x':_0x593c5a['left'][0x3]['x'],'y':_0x593c5a[_0x32ea0b(0x134)][0x3]['y'],'in':_(_0x593c5a[_0x32ea0b(0x134)][0x2]),'out':_(_0x593c5a['right'][0x1]),'pointType':_0x32ea0b(0xf3)};return _0x15a416['anchors'][_0x57a4df[_0x32ea0b(0xf5)]][_0x32ea0b(0xe0)]=_(_0x593c5a['left'][0x1]),_0x15a416[_0x32ea0b(0x10d)][_0x57a4df[_0x32ea0b(0xff)]]['in']=_(_0x593c5a['right'][0x2]),_0x15a416[_0x32ea0b(0x10d)]['splice'](_0x57a4df[_0x32ea0b(0xf5)]+0x1,0x0,_0x60809d),_0x15a416;}function ue(_0x4325f9,_0x493098){const _0x336d8a=_0x34f4;let _0x6189dc=y(_0x4325f9);return _0x6189dc[_0x336d8a(0x10d)]=_0x6189dc['anchors'][_0x336d8a(0x101)](_0x2b6b93=>_0x2b6b93['id']!==_0x493098),_0x6189dc['closed']&&_0x6189dc[_0x336d8a(0x10d)][_0x336d8a(0x12a)]<0x3&&(_0x6189dc[_0x336d8a(0x108)]=!0x1),_0x6189dc;}function N(_0x22c8c1,_0x3b73ef,_0x45512e){const _0x3ce140=_0x34f4;let _0x33b10e=y(_0x22c8c1),_0x4b5cc8=_0x33b10e[_0x3ce140(0x10d)][_0x3ce140(0x120)](_0x1adcac=>_0x1adcac['id']===_0x3b73ef),_0x213548=_0x33b10e[_0x3ce140(0x10d)][_0x4b5cc8];if(!_0x213548)return _0x33b10e;if(_0x213548[_0x3ce140(0xf4)]=_0x45512e,_0x45512e==='corner')return delete _0x213548['in'],delete _0x213548[_0x3ce140(0xe0)],_0x33b10e;let _0x3ebc64=j(_0x33b10e,_0x4b5cc8);if(_0x213548['in']=_0x213548['in']?_(_0x213548['in']):_0x3ebc64['in'],_0x213548[_0x3ce140(0xe0)]=_0x213548[_0x3ce140(0xe0)]?_(_0x213548[_0x3ce140(0xe0)]):_0x3ebc64[_0x3ce140(0xe0)],_0x45512e===_0x3ce140(0xf1)){let _0x15ebff=Math[_0x3ce140(0x117)](x(_0x213548,_0x213548['in']),x(_0x213548,_0x213548[_0x3ce140(0xe0)]),0x32),_0x19f882=S({'x':_0x213548[_0x3ce140(0xe0)]['x']-_0x213548['x'],'y':_0x213548[_0x3ce140(0xe0)]['y']-_0x213548['y']});_0x213548[_0x3ce140(0xe0)]={'x':_0x213548['x']+_0x19f882['x']*_0x15ebff,'y':_0x213548['y']+_0x19f882['y']*_0x15ebff},_0x213548['in']={'x':_0x213548['x']-_0x19f882['x']*_0x15ebff,'y':_0x213548['y']-_0x19f882['y']*_0x15ebff};}else _0x45512e===_0x3ce140(0xe4)&&M(_0x213548,'out');return _0x33b10e;}function P(_0x33e8b3,_0x148f3e){const _0x219cab=_0x34f4;let _0x7e6e61=_0x33e8b3[_0x219cab(0x10d)]['find'](_0x6c5a17=>_0x6c5a17['id']===_0x148f3e),_0x36fac9=(_0x7e6e61==null?void 0x0:_0x7e6e61[_0x219cab(0xf4)])??'corner';return N(_0x33e8b3,_0x148f3e,_0x36fac9===_0x219cab(0xd9)?_0x219cab(0xe4):_0x36fac9===_0x219cab(0xe4)?'symmetric':_0x36fac9==='symmetric'?_0x219cab(0xf3):_0x219cab(0xd9));}function F(_0x503e20,_0x11c996,_0x26c33f){const _0x36686e=_0x34f4;let _0x22bade=y(_0x503e20),_0x45fb1f=_0x22bade['anchors']['find'](_0x2c568d=>_0x2c568d['id']===_0x11c996[_0x36686e(0x130)]);if(!_0x45fb1f)return _0x22bade;if(_0x11c996['kind']==='anchor'){let _0xa24b27={'x':_0x26c33f['x']-_0x45fb1f['x'],'y':_0x26c33f['y']-_0x45fb1f['y']};return _0x45fb1f['x']=_0x26c33f['x'],_0x45fb1f['y']=_0x26c33f['y'],_0x45fb1f['in']&&={'x':_0x45fb1f['in']['x']+_0xa24b27['x'],'y':_0x45fb1f['in']['y']+_0xa24b27['y']},_0x45fb1f[_0x36686e(0xe0)]&&={'x':_0x45fb1f['out']['x']+_0xa24b27['x'],'y':_0x45fb1f[_0x36686e(0xe0)]['y']+_0xa24b27['y']},_0x22bade;}return _0x45fb1f[_0x11c996[_0x36686e(0x116)]]=_(_0x26c33f),_0x45fb1f[_0x36686e(0xf4)]===_0x36686e(0xd9)&&(_0x45fb1f[_0x36686e(0xf4)]=_0x36686e(0xf3)),M(_0x45fb1f,_0x11c996['kind']),_0x22bade;}const I=1e-9;function L(_0x316173){const _0x3fdc01=_0x34f4;let _0x1e2988=Math[_0x3fdc01(0xdd)](_0x316173*0x2710)/0x2710;return Object['is'](_0x1e2988,-0x0)?'0':String(_0x1e2988);}function R(_0x30f47a){return L(_0x30f47a['x'])+'\x20'+L(_0x30f47a['y']);}function z(_0x138692,_0x45873d){return{'x':_0x138692['x']-_0x45873d['x'],'y':_0x138692['y']-_0x45873d['y']};}function B(_0x4c1a8d,_0x4cd957,_0x58c479,_0xf43e63,_0x30b59b){let _0xe881cf=0x1-_0x30b59b;return{'x':_0xe881cf*_0xe881cf*_0xe881cf*_0x4c1a8d['x']+0x3*_0xe881cf*_0xe881cf*_0x30b59b*_0x4cd957['x']+0x3*_0xe881cf*_0x30b59b*_0x30b59b*_0x58c479['x']+_0x30b59b*_0x30b59b*_0x30b59b*_0xf43e63['x'],'y':_0xe881cf*_0xe881cf*_0xe881cf*_0x4c1a8d['y']+0x3*_0xe881cf*_0xe881cf*_0x30b59b*_0x4cd957['y']+0x3*_0xe881cf*_0x30b59b*_0x30b59b*_0x58c479['y']+_0x30b59b*_0x30b59b*_0x30b59b*_0xf43e63['y']};}function V(_0x477b29,_0x228058,_0x45e47c,_0x3a8d6f){const _0x4cf181=_0x34f4;let _0x1a9c1e=-_0x477b29+0x3*_0x228058-0x3*_0x45e47c+_0x3a8d6f,_0x35db16=0x3*_0x477b29-0x6*_0x228058+0x3*_0x45e47c,_0x277b3f=-0x3*_0x477b29+0x3*_0x228058,_0x560894=[];if(Math['abs'](_0x1a9c1e)<I){if(Math[_0x4cf181(0x12c)](_0x35db16)<I)return _0x560894;let _0x4f70cc=-_0x277b3f/(0x2*_0x35db16);return _0x4f70cc>0x0&&_0x4f70cc<0x1&&_0x560894[_0x4cf181(0x103)](_0x4f70cc),_0x560894;}let _0x228231=_0x35db16*_0x35db16-0x3*_0x1a9c1e*_0x277b3f;if(_0x228231<0x0)return _0x560894;let _0x207192=Math[_0x4cf181(0x115)](Math[_0x4cf181(0x117)](0x0,_0x228231)),_0x28d17f=(-_0x35db16+_0x207192)/(0x3*_0x1a9c1e),_0x2c24ee=(-_0x35db16-_0x207192)/(0x3*_0x1a9c1e);return _0x28d17f>0x0&&_0x28d17f<0x1&&_0x560894[_0x4cf181(0x103)](_0x28d17f),_0x2c24ee>0x0&&_0x2c24ee<0x1&&Math['abs'](_0x2c24ee-_0x28d17f)>I&&_0x560894['push'](_0x2c24ee),_0x560894;}function H(_0x3aee92,_0x547328,_0xede317,_0x3b069e,_0x4a7deb){const _0x4b31cf=_0x34f4;_0x3aee92['push'](_0x547328,_0x4a7deb),new Set([...V(_0x547328['x'],_0xede317['x'],_0x3b069e['x'],_0x4a7deb['x']),...V(_0x547328['y'],_0xede317['y'],_0x3b069e['y'],_0x4a7deb['y'])])[_0x4b31cf(0x11d)](_0x5b2cd4=>{const _0x41f62c=_0x4b31cf;_0x3aee92[_0x41f62c(0x103)](B(_0x547328,_0xede317,_0x3b069e,_0x4a7deb,_0x5b2cd4));});}function U(_0x54afda){const _0x46e478=_0x34f4;let _0x6c6ede=_0x54afda[_0x46e478(0x10d)];if(_0x6c6ede['length']<=0x1)return _0x6c6ede;let _0x3fdd37=[];for(let _0x1a1146=0x1;_0x1a1146<_0x6c6ede[_0x46e478(0x12a)];_0x1a1146++){let _0x489591=_0x6c6ede[_0x1a1146-0x1],_0x3cc97d=_0x6c6ede[_0x1a1146];H(_0x3fdd37,_0x489591,_0x489591[_0x46e478(0xe0)]??_0x489591,_0x3cc97d['in']??_0x3cc97d,_0x3cc97d);}if(_0x54afda['closed']&&_0x6c6ede[_0x46e478(0x12a)]>0x1){let _0x3b1d90=_0x6c6ede[_0x6c6ede[_0x46e478(0x12a)]-0x1],_0x3f57f2=_0x6c6ede[0x0];H(_0x3fdd37,_0x3b1d90,_0x3b1d90[_0x46e478(0xe0)]??_0x3b1d90,_0x3f57f2['in']??_0x3f57f2,_0x3f57f2);}return _0x3fdd37;}function _0x52c8(){const _0x76cf91=['filter','get','push','__ink-preview-anchor__','UNIVER_INK_PLUGIN','_configService','registerAdapter','closed','setConfig','4022361aXPNCP','constructor','join','anchors','tool','slice','609368TWjUjx','#f54a45','ink.host-adapter.service','defineProperty','_adapters','sqrt','kind','max','type','width','function','version','Round','forEach','pen','distance','findIndex','tolerance','min','UNIVER_UNKNOWN','start','NoFill','top','ratio','points','_config','length','add','abs','3048620mYeYQA','object','SolidLine','anchorId','beginInkMode','Rect','_injector','left','registerCommand','opacity','ink-centerline-','color','2303144HOQZqG','corner','4dWDJXS','segmentIndex','createCustomShape','round','fillColor','indexOf','out','createId','270570UNustx','6vJljhz','smooth','OPERATION','iterator','symbol','onStarting','_commandService','anchor','21DRreEN','norm','default','map','point','@univerjs-pro/ink','symmetric','pluginName','free','pointType','startIndex','call','toPrimitive','hypot','decorate','165xyvoOf','527570QNkJgH','string','SolidFill','25827VLBpok','endIndex','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.'];_0x52c8=function(){return _0x76cf91;};return _0x52c8();}function de(_0x4efe31){const _0x25ae24=_0x34f4;let _0xdd7256=_0x4efe31[_0x25ae24(0x128)];if(_0xdd7256['length']<=0x1)return _0xdd7256;let _0x5eeb13=[];for(let _0x15e3cc=0x0;_0x15e3cc<_0xdd7256[_0x25ae24(0x12a)]-0x1;_0x15e3cc++){let _0x5a040a=_0xdd7256[_0x15e3cc],_0x195462=_0xdd7256[_0x15e3cc+0x1],_0x376e68=_0xdd7256[_0x15e3cc-0x1]??_0x5a040a,_0x797bc8=_0xdd7256[_0x15e3cc+0x2]??_0x195462;H(_0x5eeb13,_0x5a040a,{'x':_0x5a040a['x']+(_0x195462['x']-_0x376e68['x'])/0x6,'y':_0x5a040a['y']+(_0x195462['y']-_0x376e68['y'])/0x6},{'x':_0x195462['x']-(_0x797bc8['x']-_0x5a040a['x'])/0x6,'y':_0x195462['y']-(_0x797bc8['y']-_0x5a040a['y'])/0x6},_0x195462);}return _0x5eeb13;}function fe(_0xab68b6){const _0x23ecf7=_0x34f4;return _0xab68b6[_0x23ecf7(0x116)]===_0x23ecf7(0x11e)?U(_0xab68b6):de(_0xab68b6);}function W(_0x443cb5){const _0x321b68=_0x34f4;let _0x2579a4=Math[_0x321b68(0xdd)](_0x443cb5*0x2710)/0x2710;return Object['is'](_0x2579a4,-0x0)?0x0:_0x2579a4;}function G(_0x3b9fa2){const _0x5c99f1=_0x34f4;let _0x1ab821=fe(_0x3b9fa2);if(_0x1ab821[_0x5c99f1(0x12a)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x575ca7=Math[_0x5c99f1(0x122)](..._0x1ab821['map'](_0x1388dd=>_0x1388dd['x'])),_0xa8cf0a=Math[_0x5c99f1(0x122)](..._0x1ab821[_0x5c99f1(0xee)](_0x131eb9=>_0x131eb9['y'])),_0x3cce5b=Math[_0x5c99f1(0x117)](..._0x1ab821[_0x5c99f1(0xee)](_0x552835=>_0x552835['x'])),_0xc38b2f=Math[_0x5c99f1(0x117)](..._0x1ab821[_0x5c99f1(0xee)](_0xa50978=>_0xa50978['y']));return{'left':W(_0x575ca7),'top':W(_0xa8cf0a),'width':W(Math[_0x5c99f1(0x117)](0x1,_0x3cce5b-_0x575ca7)),'height':W(Math[_0x5c99f1(0x117)](0x1,_0xc38b2f-_0xa8cf0a))};}function pe(_0x47ce6a,_0x3f853b){const _0xdf60a0=_0x34f4;let _0x2940d7=_0x47ce6a[_0xdf60a0(0x10d)];if(_0x2940d7[_0xdf60a0(0x12a)]===0x0)return'';let _0x5bfc23=['M\x20'+R(z(_0x2940d7[0x0],_0x3f853b))];for(let _0x218845=0x1;_0x218845<_0x2940d7[_0xdf60a0(0x12a)];_0x218845++){let _0x442260=_0x2940d7[_0x218845-0x1],_0x25963b=_0x2940d7[_0x218845],_0xfde85b=_0x442260[_0xdf60a0(0xe0)]??_0x442260,_0x20e037=_0x25963b['in']??_0x25963b;_0x5bfc23[_0xdf60a0(0x103)]('C\x20'+R(z(_0xfde85b,_0x3f853b))+'\x20'+R(z(_0x20e037,_0x3f853b))+'\x20'+R(z(_0x25963b,_0x3f853b)));}if(_0x47ce6a[_0xdf60a0(0x108)]&&_0x2940d7[_0xdf60a0(0x12a)]>0x1){let _0x5eec34=_0x2940d7[_0x2940d7[_0xdf60a0(0x12a)]-0x1],_0x1e336b=_0x2940d7[0x0],_0x268fdb=_0x5eec34[_0xdf60a0(0xe0)]??_0x5eec34,_0x327d8f=_0x1e336b['in']??_0x1e336b;_0x5bfc23[_0xdf60a0(0x103)]('C\x20'+R(z(_0x268fdb,_0x3f853b))+'\x20'+R(z(_0x327d8f,_0x3f853b))+'\x20'+R(z(_0x1e336b,_0x3f853b))),_0x5bfc23[_0xdf60a0(0x103)]('Z');}return _0x5bfc23['join']('\x20');}function me(_0x2286c5,_0x514df1){const _0x1329ec=_0x34f4;let _0x1a4cdd=_0x2286c5[_0x1329ec(0x128)][_0x1329ec(0xee)](_0x5dd520=>z(_0x5dd520,_0x514df1));if(_0x1a4cdd[_0x1329ec(0x12a)]===0x0)return'';if(_0x1a4cdd[_0x1329ec(0x12a)]===0x1)return'M\x20'+R(_0x1a4cdd[0x0]);let _0x176bc8=['M\x20'+R(_0x1a4cdd[0x0])];for(let _0x484957=0x0;_0x484957<_0x1a4cdd[_0x1329ec(0x12a)]-0x1;_0x484957++){let _0x34e444=_0x1a4cdd[_0x484957],_0x25c020=_0x1a4cdd[_0x484957+0x1],_0x364a2e=_0x1a4cdd[_0x484957-0x1]??_0x34e444,_0x52a160=_0x1a4cdd[_0x484957+0x2]??_0x25c020,_0x5a38f3={'x':_0x34e444['x']+(_0x25c020['x']-_0x364a2e['x'])/0x6,'y':_0x34e444['y']+(_0x25c020['y']-_0x364a2e['y'])/0x6},_0x39d47d={'x':_0x25c020['x']-(_0x52a160['x']-_0x34e444['x'])/0x6,'y':_0x25c020['y']-(_0x52a160['y']-_0x34e444['y'])/0x6};_0x176bc8[_0x1329ec(0x103)]('C\x20'+R(_0x5a38f3)+'\x20'+R(_0x39d47d)+'\x20'+R(_0x25c020));}return _0x176bc8[_0x1329ec(0x10c)]('\x20');}function he(_0x13cbc0,_0x2e3dec){const _0x16f932=_0x34f4;return _0x13cbc0[_0x16f932(0x116)]===_0x16f932(0x11e)?pe(_0x13cbc0,_0x2e3dec):me(_0x13cbc0,_0x2e3dec);}function ge(_0xd354bc,_0x13c795){const _0x5c6286=_0x34f4;return _0x13c795!=null&&_0x13c795[_0x5c6286(0xd7)]?_0x13c795[_0x5c6286(0xd7)]:_0xd354bc[_0x5c6286(0x116)]===_0x5c6286(0x11e)?_0x5c6286(0x111):_0xd354bc[_0x5c6286(0xd7)];}function _e(_0x2fbc46,_0x47747b){const _0x1184ee=_0x34f4;return(_0x47747b==null?void 0x0:_0x47747b[_0x1184ee(0x119)])===void 0x0?_0x2fbc46[_0x1184ee(0x116)]==='pen'?0x2:_0x2fbc46[_0x1184ee(0x119)]:_0x47747b[_0x1184ee(0x119)];}function ve(_0x34506b,_0x456df7){const _0x223312=_0x34f4;return(_0x456df7==null?void 0x0:_0x456df7['opacity'])===void 0x0?_0x34506b['kind']==='pen'?void 0x0:_0x34506b[_0x223312(0x136)]:_0x456df7[_0x223312(0x136)];}function _0x34f4(_0x5e8668,_0x548cb6){_0x5e8668=_0x5e8668-0xd7;const _0x52c89a=_0x52c8();let _0x34f490=_0x52c89a[_0x5e8668];return _0x34f490;}function ye(_0x317f66,_0x1eb63f){const _0x5910ef=_0x34f4;let _0x229974=G(_0x317f66),_0x52ec0f=he(_0x317f66,{'x':_0x229974['left'],'y':_0x229974[_0x5910ef(0x126)]}),_0x46fbf9=_0x317f66[_0x5910ef(0x116)]===_0x5910ef(0x11e)&&_0x317f66[_0x5910ef(0x108)],_0x390cf7=_0x1eb63f==null?void 0x0:_0x1eb63f[_0x5910ef(0xde)];return{'shapeType':_0x9ecee9[_0x5910ef(0x132)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x229974[_0x5910ef(0x119)],'h':_0x229974['height'],'fill':_0x46fbf9?_0x5910ef(0xec):'none','stroke':!0x0,'data':_0x52ec0f,'dataArray':be(_0x317f66,{'x':_0x229974[_0x5910ef(0x134)],'y':_0x229974[_0x5910ef(0x126)]})}]},'fill':_0x46fbf9&&_0x390cf7?{'color':_0x390cf7,'fillType':_0x1da015[_0x5910ef(0xfd)]}:{'fillType':_0x1da015[_0x5910ef(0x125)]},'stroke':{'color':ge(_0x317f66,_0x1eb63f),'width':_e(_0x317f66,_0x1eb63f),'opacity':ve(_0x317f66,_0x1eb63f),'lineStrokeType':_0x5d98d2[_0x5910ef(0x12f)],'capType':_0x1d6166[_0x5910ef(0x11c)],'lineJoinType':_0x439b44[_0x5910ef(0x11c)]}};}function K(_0x38c8f0,_0x3e58da){return{'x':_0x38c8f0['x']-_0x3e58da['x'],'y':_0x38c8f0['y']-_0x3e58da['y']};}function be(_0x4b330d,_0x719918){const _0xbd57f2=_0x34f4;if(_0x4b330d[_0xbd57f2(0x116)]===_0xbd57f2(0x11e)){let _0x16fef1=_0x4b330d[_0xbd57f2(0x10d)];if(_0x16fef1[_0xbd57f2(0x12a)]===0x0)return[];let _0x1e200c=K(_0x16fef1[0x0],_0x719918),_0x5a854c=[{'command':'M','points':[_0x1e200c['x'],_0x1e200c['y']]}];for(let _0xb89288=0x1;_0xb89288<_0x16fef1['length'];_0xb89288++){let _0x1053e7=_0x16fef1[_0xb89288-0x1],_0x64166b=_0x16fef1[_0xb89288],_0x479c57=K(_0x1053e7[_0xbd57f2(0xe0)]??_0x1053e7,_0x719918),_0x21bd99=K(_0x64166b['in']??_0x64166b,_0x719918),_0x5418df=K(_0x64166b,_0x719918);_0x5a854c[_0xbd57f2(0x103)]({'command':'C','points':[_0x479c57['x'],_0x479c57['y'],_0x21bd99['x'],_0x21bd99['y'],_0x5418df['x'],_0x5418df['y']]});}if(_0x4b330d[_0xbd57f2(0x108)]&&_0x16fef1[_0xbd57f2(0x12a)]>0x1){let _0xe3b2d4=_0x16fef1[_0x16fef1['length']-0x1],_0x433c20=_0x16fef1[0x0],_0x393860=K(_0xe3b2d4[_0xbd57f2(0xe0)]??_0xe3b2d4,_0x719918),_0x315164=K(_0x433c20['in']??_0x433c20,_0x719918),_0x24d9f5=K(_0x433c20,_0x719918);_0x5a854c[_0xbd57f2(0x103)]({'command':'C','points':[_0x393860['x'],_0x393860['y'],_0x315164['x'],_0x315164['y'],_0x24d9f5['x'],_0x24d9f5['y']]}),_0x5a854c[_0xbd57f2(0x103)]({'command':'z','points':[]});}return _0x5a854c;}let _0x2d20bf=_0x4b330d['points'][_0xbd57f2(0xee)](_0x34d944=>K(_0x34d944,_0x719918));if(_0x2d20bf[_0xbd57f2(0x12a)]===0x0)return[];let _0x239de4=[{'command':'M','points':[_0x2d20bf[0x0]['x'],_0x2d20bf[0x0]['y']]}];for(let _0x4b7d3d=0x0;_0x4b7d3d<_0x2d20bf[_0xbd57f2(0x12a)]-0x1;_0x4b7d3d++){let _0x176ce4=_0x2d20bf[_0x4b7d3d],_0x59d0c2=_0x2d20bf[_0x4b7d3d+0x1],_0x39ef4f=_0x2d20bf[_0x4b7d3d-0x1]??_0x176ce4,_0x1c3a5e=_0x2d20bf[_0x4b7d3d+0x2]??_0x59d0c2,_0x58fd18={'x':_0x176ce4['x']+(_0x59d0c2['x']-_0x39ef4f['x'])/0x6,'y':_0x176ce4['y']+(_0x59d0c2['y']-_0x39ef4f['y'])/0x6},_0x470276={'x':_0x59d0c2['x']-(_0x1c3a5e['x']-_0x176ce4['x'])/0x6,'y':_0x59d0c2['y']-(_0x1c3a5e['y']-_0x176ce4['y'])/0x6};_0x239de4['push']({'command':'C','points':[_0x58fd18['x'],_0x58fd18['y'],_0x470276['x'],_0x470276['y'],_0x59d0c2['x'],_0x59d0c2['y']]});}return _0x239de4;}function xe(_0x12c644){const _0x13e3a2=_0x34f4;let {model:_0x3c3f62,sourceModel:_0x20c348=_0x3c3f62,style:_0x1ad5b5}=_0x12c644,_0x2ddbcd=_0x12c644[_0x13e3a2(0x10e)]??_0x3c3f62[_0x13e3a2(0x116)],_0x1066d0=G(_0x3c3f62),_0x4d6f7c=_0x3c3f62[_0x13e3a2(0x116)]==='pen'&&_0x2ddbcd!==_0x13e3a2(0x11e)?_0x3c3f62:void 0x0;return{'transform':{..._0x1066d0,'rotation':0x0},'shapeData':ye(_0x3c3f62,_0x1ad5b5),'ink':{'version':0x1,'tool':_0x2ddbcd,'sourceModel':_0x20c348,..._0x4d6f7c?{'editModel':_0x4d6f7c}:{},'normalizedBounds':_0x1066d0}};}var Se=_0x428ca5(0xf0),Ce='1.2.0';function q(_0x4ba76b){'@babel/helpers - typeof';const _0x384fb4=_0x428ca5;return q=typeof Symbol==_0x384fb4(0x11a)&&typeof Symbol[_0x384fb4(0xe6)]==_0x384fb4(0xe7)?function(_0x3a9b4e){return typeof _0x3a9b4e;}:function(_0x3aec00){const _0x542123=_0x384fb4;return _0x3aec00&&typeof Symbol==_0x542123(0x11a)&&_0x3aec00[_0x542123(0x10b)]===Symbol&&_0x3aec00!==Symbol['prototype']?_0x542123(0xe7):typeof _0x3aec00;},q(_0x4ba76b);}function we(_0x53d8f9,_0x29d70a){const _0x2cbfb0=_0x428ca5;if(q(_0x53d8f9)!=_0x2cbfb0(0x12e)||!_0x53d8f9)return _0x53d8f9;var _0x4bd9ac=_0x53d8f9[Symbol[_0x2cbfb0(0xf7)]];if(_0x4bd9ac!==void 0x0){var _0x51b7a4=_0x4bd9ac[_0x2cbfb0(0xf6)](_0x53d8f9,_0x29d70a||_0x2cbfb0(0xed));if(q(_0x51b7a4)!='object')return _0x51b7a4;throw TypeError(_0x2cbfb0(0x100));}return(_0x29d70a===_0x2cbfb0(0xfc)?String:Number)(_0x53d8f9);}function J(_0x2856c1){const _0x4d725f=_0x428ca5;var _0x478bc8=we(_0x2856c1,'string');return q(_0x478bc8)==_0x4d725f(0xe7)?_0x478bc8:_0x478bc8+'';}function Y(_0x438dd4,_0x3eff29,_0x371227){const _0x72379c=_0x428ca5;return(_0x3eff29=J(_0x3eff29))in _0x438dd4?Object[_0x72379c(0x113)](_0x438dd4,_0x3eff29,{'value':_0x371227,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x438dd4[_0x3eff29]=_0x371227,_0x438dd4;}const X=_0x290056(_0x428ca5(0x112));var Te=class{constructor(){const _0x1593a7=_0x428ca5;Y(this,_0x1593a7(0x114),[]);}[_0x428ca5(0x107)](_0x31351b){const _0x2baaea=_0x428ca5;return this[_0x2baaea(0x114)]['push'](_0x31351b),_0x243018(()=>{const _0x5cf8fd=_0x2baaea;let _0x3344f1=this[_0x5cf8fd(0x114)][_0x5cf8fd(0xdf)](_0x31351b);_0x3344f1>=0x0&&this[_0x5cf8fd(0x114)]['splice'](_0x3344f1,0x1);});}['beginInkMode'](_0x26f2aa){const _0x57ec38=_0x428ca5;for(let _0x372f66 of this[_0x57ec38(0x114)])if(_0x372f66[_0x57ec38(0x131)](_0x26f2aa))return!0x0;return!0x1;}async['createCustomShape'](_0x2decc2){const _0x3c3899=_0x428ca5;for(let _0x45a930 of this[_0x3c3899(0x114)])if(_0x45a930[_0x3c3899(0xdc)]&&await _0x45a930[_0x3c3899(0xdc)](_0x2decc2))return!0x0;return!0x1;}};const Ee={'id':'ink.operation.start','type':_0x262274[_0x428ca5(0xe5)],'handler':(_0x263eca,_0x10247d)=>_0x10247d?_0x263eca[_0x428ca5(0x102)](X)[_0x428ca5(0x131)](_0x10247d):!0x1},Z={};function Q(_0x4728ab,_0x58ce78){return function(_0x3c3c6f,_0x59dd04){_0x58ce78(_0x3c3c6f,_0x59dd04,_0x4728ab);};}function De(_0x19c24b,_0x3ecbbc,_0xdd64c7,_0x497fcc){const _0x1fa6fd=_0x428ca5;var _0x4557f7=arguments[_0x1fa6fd(0x12a)],_0x453c3=_0x4557f7<0x3?_0x3ecbbc:_0x497fcc===null?_0x497fcc=Object['getOwnPropertyDescriptor'](_0x3ecbbc,_0xdd64c7):_0x497fcc,_0x59ffc2;if(typeof Reflect=='object'&&typeof Reflect[_0x1fa6fd(0xf9)]==_0x1fa6fd(0x11a))_0x453c3=Reflect[_0x1fa6fd(0xf9)](_0x19c24b,_0x3ecbbc,_0xdd64c7,_0x497fcc);else{for(var _0x1840b8=_0x19c24b[_0x1fa6fd(0x12a)]-0x1;_0x1840b8>=0x0;_0x1840b8--)(_0x59ffc2=_0x19c24b[_0x1840b8])&&(_0x453c3=(_0x4557f7<0x3?_0x59ffc2(_0x453c3):_0x4557f7>0x3?_0x59ffc2(_0x3ecbbc,_0xdd64c7,_0x453c3):_0x59ffc2(_0x3ecbbc,_0xdd64c7))||_0x453c3);}return _0x4557f7>0x3&&_0x453c3&&Object['defineProperty'](_0x3ecbbc,_0xdd64c7,_0x453c3),_0x453c3;}let $=class extends _0xd5747{constructor(_0x5d28f2=Z,_0x48f601,_0x3081b0,_0x56b884){const _0x47b5de=_0x428ca5;super(),this['_config']=_0x5d28f2,this[_0x47b5de(0x133)]=_0x48f601,this[_0x47b5de(0xe9)]=_0x3081b0,this[_0x47b5de(0x106)]=_0x56b884;let {..._0x498b0e}=_0x18dd0a({},Z,this[_0x47b5de(0x129)]);this[_0x47b5de(0x106)][_0x47b5de(0x109)]('ink.config',_0x498b0e);}[_0x428ca5(0xe8)](){const _0x285104=_0x428ca5;[[X,{'useClass':Te}]][_0x285104(0x11d)](_0x1e0137=>this[_0x285104(0x133)][_0x285104(0x12b)](_0x1e0137)),this['disposeWithMe'](this['_commandService'][_0x285104(0x135)](Ee));}};Y($,_0x428ca5(0xf2),_0x428ca5(0x105)),Y($,'packageName',Se),Y($,_0x428ca5(0x11b),Ce),Y($,_0x428ca5(0x118),_0x57679c[_0x428ca5(0x123)]),$=De([_0x51330d(_0x44e568),Q(0x1,_0x89bb4c(_0x169e64)),Q(0x2,_0x2a482d),Q(0x3,_0x37a4f2)],$);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 _0x48cf(){const _0x5512a=['findClosestInkPenSegment','ShapeFillEnum','tool','join','UniverCore','norm','toPrimitive','DependentOn','anchorId','indexOf','1866832WrVawb','UniverProLicense','disposeWithMe','sqrt','prototype','2410gCykXe','decorate','max','pointType','_config','string','opacity','1.2.0','forEach','kind','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','@univerjs-pro/engine-shape','fillColor','defineProperty','free','find','push','getInkPenPreviewModel','SolidLine','symmetric','Module','hypot','onStarting','endIndex','ink.host-adapter.service','7RWowtm','get','version','NoFill','IInkHostAdapterService','width','toStringTag','11vOZFaE','segmentIndex','createId','pen','SolidFill','smooth','abs','ShapeLineJoinEnum','245832fDixmI','1623044QlfKNq','convertBrushModelToPenModel','toDisposable','length','slice','function','min','buildInkCustomShapePayload','call','anchors','329502dmdaGh','OPERATION','UniverInstanceType','constructor','5rnhUlo','round','2867775OAlwxT','default','IConfigService','@univerjs-pro/ink','ink-centerline-','UniverProInk','_injector','ShapeTypeEnum','symbol','Round','corner','left','UNIVER_INK_PLUGIN','beginInkMode','packageName','start','createCustomShape','_adapters','end','_configService','7158070dKhwAv','color','map','startIndex','@univerjs-pro/license','right','ShapeLineTypeEnum','UniverLicensePlugin','splice','anchor','setInkPenAnchorPointType','ink.operation.start','cycleInkPenAnchorPointType','#f54a45','out','923dzpFhk','distance','iterator','point','Injector','deleteInkPenAnchor','filter','Rect','ICommandService','UniverInkPlugin','260AcRHUL','object','ShapeLineCapEnum','closed','points','top','9yKXpjD','_commandService'];_0x48cf=function(){return _0x5512a;};return _0x48cf();}function _0x5020(_0x337e34,_0x2789b4){_0x337e34=_0x337e34-0x168;const _0x48cf31=_0x48cf();let _0x50200b=_0x48cf31[_0x337e34];return _0x50200b;}(function(_0x5609c5,_0x40b4bc){const _0x1eb630=_0x5020,_0x2f9e06=_0x5609c5();while(!![]){try{const _0x170e48=parseInt(_0x1eb630(0x182))/0x1*(-parseInt(_0x1eb630(0x199))/0x2)+parseInt(_0x1eb630(0x1d2))/0x3+parseInt(_0x1eb630(0x1c2))/0x4*(parseInt(_0x1eb630(0x1d0))/0x5)+parseInt(_0x1eb630(0x1cc))/0x6*(-parseInt(_0x1eb630(0x1b2))/0x7)+-parseInt(_0x1eb630(0x194))/0x8*(-parseInt(_0x1eb630(0x188))/0x9)+-parseInt(_0x1eb630(0x169))/0xa*(-parseInt(_0x1eb630(0x1b9))/0xb)+-parseInt(_0x1eb630(0x1c1))/0xc*(parseInt(_0x1eb630(0x178))/0xd);if(_0x170e48===_0x40b4bc)break;else _0x2f9e06['push'](_0x2f9e06['shift']());}catch(_0x5b4a65){_0x2f9e06['push'](_0x2f9e06['shift']());}}}(_0x48cf,0x772bc),function(_0x5443e8,_0x509924){const _0x491c3a=_0x5020;typeof exports==_0x491c3a(0x183)&&typeof module<'u'?_0x509924(exports,require('@univerjs-pro/engine-shape'),require('@univerjs-pro/license'),require('@univerjs/core')):typeof define==_0x491c3a(0x1c7)&&define['amd']?define(['exports',_0x491c3a(0x1a4),_0x491c3a(0x16d),'@univerjs/core'],_0x509924):(_0x5443e8=typeof globalThis<'u'?globalThis:_0x5443e8||self,_0x509924(_0x5443e8[_0x491c3a(0x1d7)]={},_0x5443e8['UniverProEngineShape'],_0x5443e8[_0x491c3a(0x195)],_0x5443e8[_0x491c3a(0x18e)]));}(this,function(_0x5199c0,_0x44e042,_0x298c72,_0x11bd66){const _0x4b5f8d=_0x5020;Object[_0x4b5f8d(0x1a6)](_0x5199c0,Symbol[_0x4b5f8d(0x1b8)],{'value':_0x4b5f8d(0x1ad)});let _0x4a852d=0.0001;function _0x1bb78c(_0x2f8670){return{'x':_0x2f8670['x'],'y':_0x2f8670['y']};}function _0x4d9d42(_0x50cdd1){const _0x3c2339=_0x4b5f8d;return{..._0x50cdd1,'in':_0x50cdd1['in']?_0x1bb78c(_0x50cdd1['in']):void 0x0,'out':_0x50cdd1[_0x3c2339(0x177)]?_0x1bb78c(_0x50cdd1[_0x3c2339(0x177)]):void 0x0};}function _0x2ffb8a(_0x4c13f8){const _0x36f90a=_0x4b5f8d;return{'kind':_0x36f90a(0x1bc),'closed':_0x4c13f8[_0x36f90a(0x185)],'anchors':_0x4c13f8[_0x36f90a(0x1cb)][_0x36f90a(0x16b)](_0x4d9d42)};}function _0x4c5e72(_0x379fa3,_0x5d36dc,_0x2db572){return{'x':_0x379fa3['x']+(_0x5d36dc['x']-_0x379fa3['x'])*_0x2db572,'y':_0x379fa3['y']+(_0x5d36dc['y']-_0x379fa3['y'])*_0x2db572};}function _0x1f90c5(_0x47ab50,_0x2184ca){const _0xe2cede=_0x4b5f8d;return Math[_0xe2cede(0x1ae)](_0x47ab50['x']-_0x2184ca['x'],_0x47ab50['y']-_0x2184ca['y']);}function _0x4285f3(_0x3140a6){let _0x374880=Math['hypot'](_0x3140a6['x'],_0x3140a6['y']);return _0x374880<_0x4a852d?{'x':0x1,'y':0x0}:{'x':_0x3140a6['x']/_0x374880,'y':_0x3140a6['y']/_0x374880};}function _0x3cc879(_0x195b59,_0x505b4a,_0x1b333b=_0x1f90c5(_0x195b59,_0x505b4a)){let _0x384690=_0x4285f3({'x':_0x195b59['x']-_0x505b4a['x'],'y':_0x195b59['y']-_0x505b4a['y']});return{'x':_0x195b59['x']+_0x384690['x']*_0x1b333b,'y':_0x195b59['y']+_0x384690['y']*_0x1b333b};}function _0x4e3d47(_0x3d83ca,_0x53bd1b){const _0x1a32d2=_0x4b5f8d;let {anchors:_0x144b45}=_0x3d83ca;return _0x144b45['length']<0x2||_0x53bd1b<0x0?null:_0x53bd1b<_0x144b45[_0x1a32d2(0x1c5)]-0x1?{'startIndex':_0x53bd1b,'endIndex':_0x53bd1b+0x1,'start':_0x144b45[_0x53bd1b],'end':_0x144b45[_0x53bd1b+0x1]}:_0x3d83ca['closed']&&_0x53bd1b===_0x144b45['length']-0x1?{'startIndex':_0x144b45[_0x1a32d2(0x1c5)]-0x1,'endIndex':0x0,'start':_0x144b45[_0x144b45[_0x1a32d2(0x1c5)]-0x1],'end':_0x144b45[0x0]}:null;}function _0x4140ea(_0x1e0027,_0x52a6ef){const _0x5daf9d=_0x4b5f8d;let _0x45a77c=_0x4e3d47(_0x1e0027,_0x52a6ef);return _0x45a77c?[_0x45a77c[_0x5daf9d(0x1e1)],_0x45a77c['start'][_0x5daf9d(0x177)]??_0x45a77c[_0x5daf9d(0x1e1)],_0x45a77c[_0x5daf9d(0x1e4)]['in']??_0x45a77c['end'],_0x45a77c[_0x5daf9d(0x1e4)]]:null;}function _0x14fb80(_0x546e0f,_0x30f074){const _0x3aebda=_0x4b5f8d;return _0x30f074===_0x3aebda(0x172)?_0x546e0f:_0x546e0f[_0x30f074]??null;}function _0x2084de(_0x5b7f35,_0x4e7be2,_0x1100b3){const _0x9a59d6=_0x4b5f8d;return _0x1100b3==='anchor'||_0x5b7f35[_0x9a59d6(0x185)]?!0x0:_0x1100b3==='in'?_0x4e7be2>0x0:_0x4e7be2<_0x5b7f35['anchors'][_0x9a59d6(0x1c5)]-0x1;}function _0x198444(_0x10e6f0,_0x54ea41){let [_0x592af9,_0x5e07fe,_0x52ba9d,_0x1a4b20]=_0x10e6f0,_0x5aab36=_0x4c5e72(_0x592af9,_0x5e07fe,_0x54ea41),_0x329856=_0x4c5e72(_0x5e07fe,_0x52ba9d,_0x54ea41),_0x2aacc4=_0x4c5e72(_0x52ba9d,_0x1a4b20,_0x54ea41);return _0x4c5e72(_0x4c5e72(_0x5aab36,_0x329856,_0x54ea41),_0x4c5e72(_0x329856,_0x2aacc4,_0x54ea41),_0x54ea41);}function _0xd973f9(_0x4d39bd,_0x94d78e){let [_0x31767f,_0x12ddfa,_0x45f35e,_0x2ae486]=_0x4d39bd,_0x29f88c=_0x4c5e72(_0x31767f,_0x12ddfa,_0x94d78e),_0xaece30=_0x4c5e72(_0x12ddfa,_0x45f35e,_0x94d78e),_0x217089=_0x4c5e72(_0x45f35e,_0x2ae486,_0x94d78e),_0x16ba0d=_0x4c5e72(_0x29f88c,_0xaece30,_0x94d78e),_0xdbf8e8=_0x4c5e72(_0xaece30,_0x217089,_0x94d78e),_0x543a67=_0x4c5e72(_0x16ba0d,_0xdbf8e8,_0x94d78e);return{'left':[_0x31767f,_0x29f88c,_0x16ba0d,_0x543a67],'right':[_0x543a67,_0xdbf8e8,_0x217089,_0x2ae486]};}function _0x6655d9(_0x1bbd11,_0x4dcc30,_0x11d0e9){const _0x2ab5b7=_0x4b5f8d;let _0x16b81a=_0x11d0e9['x']-_0x4dcc30['x'],_0x415eb1=_0x11d0e9['y']-_0x4dcc30['y'],_0x2019e=_0x16b81a*_0x16b81a+_0x415eb1*_0x415eb1,_0x2fb090=_0x2019e<=_0x4a852d?0x0:Math[_0x2ab5b7(0x19b)](0x0,Math[_0x2ab5b7(0x1c8)](0x1,((_0x1bbd11['x']-_0x4dcc30['x'])*_0x16b81a+(_0x1bbd11['y']-_0x4dcc30['y'])*_0x415eb1)/_0x2019e)),_0x30a41c={'x':_0x4dcc30['x']+_0x16b81a*_0x2fb090,'y':_0x4dcc30['y']+_0x415eb1*_0x2fb090};return{'point':_0x30a41c,'ratio':_0x2fb090,'distance':_0x1f90c5(_0x1bbd11,_0x30a41c)};}function _0x1d687f(_0x108664,_0x33af25,_0x3dbc8d){const _0x4d4859=_0x4b5f8d;return _0x6655d9(_0x108664,_0x33af25,_0x3dbc8d)[_0x4d4859(0x179)]**0x2;}function _0x10018a(_0x47bc67,_0x320a24){const _0x1fbf22=_0x4b5f8d;if(_0x47bc67[_0x1fbf22(0x1c5)]<=0x2)return _0x47bc67[_0x1fbf22(0x16b)](_0x1bb78c);let _0x311cc7=0x0,_0x11e17f=0x0,_0x79ad17=_0x47bc67[0x0],_0x459b87=_0x47bc67[_0x47bc67[_0x1fbf22(0x1c5)]-0x1],_0x50f03d=_0x320a24*_0x320a24;for(let _0x71171b=0x1;_0x71171b<_0x47bc67['length']-0x1;_0x71171b++){let _0x14a3e2=_0x1d687f(_0x47bc67[_0x71171b],_0x79ad17,_0x459b87);_0x14a3e2>_0x311cc7&&(_0x311cc7=_0x14a3e2,_0x11e17f=_0x71171b);}if(_0x311cc7<=_0x50f03d)return[_0x1bb78c(_0x79ad17),_0x1bb78c(_0x459b87)];let _0x4243dc=_0x10018a(_0x47bc67[_0x1fbf22(0x1c6)](0x0,_0x11e17f+0x1),_0x320a24),_0x111f1d=_0x10018a(_0x47bc67['slice'](_0x11e17f),_0x320a24);return[..._0x4243dc['slice'](0x0,-0x1),..._0x111f1d];}function _0x5c59c9(_0x52d5be,_0x534e29){let _0x2ad6e5=_0x52d5be[_0x534e29],_0x58cc0a=_0x52d5be[_0x534e29+0x1],_0x3c20d5=_0x52d5be[_0x534e29-0x1]??_0x2ad6e5;return{'x':_0x2ad6e5['x']+(_0x58cc0a['x']-_0x3c20d5['x'])/0x6,'y':_0x2ad6e5['y']+(_0x58cc0a['y']-_0x3c20d5['y'])/0x6};}function _0x471ef9(_0x44ab4d,_0x48b0ee){let _0x34e4f8=_0x44ab4d[_0x48b0ee],_0x48906e=_0x44ab4d[_0x48b0ee-0x1],_0x4d1e8a=_0x44ab4d[_0x48b0ee+0x1]??_0x34e4f8;return{'x':_0x34e4f8['x']-(_0x4d1e8a['x']-_0x48906e['x'])/0x6,'y':_0x34e4f8['y']-(_0x4d1e8a['y']-_0x48906e['y'])/0x6};}function _0x33ea3f(_0x492993,_0x2d6f05){const _0x112b12=_0x4b5f8d;let _0x2b6f06=_0x492993[_0x112b12(0x1cb)][_0x2d6f05],_0x4e1f18=_0x492993[_0x112b12(0x1cb)][_0x2d6f05-0x1]??(_0x492993['closed']?_0x492993[_0x112b12(0x1cb)][_0x492993['anchors'][_0x112b12(0x1c5)]-0x1]:null),_0x465de8=_0x492993[_0x112b12(0x1cb)][_0x2d6f05+0x1]??(_0x492993[_0x112b12(0x185)]?_0x492993[_0x112b12(0x1cb)][0x0]:null),_0x3e26dc=_0x4e1f18&&_0x465de8?_0x4285f3({'x':_0x465de8['x']-_0x4e1f18['x'],'y':_0x465de8['y']-_0x4e1f18['y']}):_0x465de8?_0x4285f3({'x':_0x465de8['x']-_0x2b6f06['x'],'y':_0x465de8['y']-_0x2b6f06['y']}):_0x4e1f18?_0x4285f3({'x':_0x2b6f06['x']-_0x4e1f18['x'],'y':_0x2b6f06['y']-_0x4e1f18['y']}):{'x':0x1,'y':0x0},_0x43a11f=_0x4e1f18&&_0x465de8?Math['max'](0x32,_0x1f90c5(_0x4e1f18,_0x465de8)/0x4):0x32;return{'in':{'x':_0x2b6f06['x']-_0x3e26dc['x']*_0x43a11f,'y':_0x2b6f06['y']-_0x3e26dc['y']*_0x43a11f},'out':{'x':_0x2b6f06['x']+_0x3e26dc['x']*_0x43a11f,'y':_0x2b6f06['y']+_0x3e26dc['y']*_0x43a11f}};}function _0x47eca7(_0x142740,_0x4d9982){const _0x187ee1=_0x4b5f8d;let _0x1ae206=_0x142740[_0x4d9982],_0x565e4d=_0x4d9982==='in'?_0x187ee1(0x177):'in',_0x29dec5=_0x142740[_0x565e4d];_0x1ae206&&(_0x142740['pointType']===_0x187ee1(0x1ac)?_0x142740[_0x565e4d]=_0x3cc879(_0x142740,_0x1ae206):_0x142740[_0x187ee1(0x19c)]===_0x187ee1(0x1be)&&(_0x142740[_0x565e4d]=_0x3cc879(_0x142740,_0x1ae206,_0x29dec5?_0x1f90c5(_0x142740,_0x29dec5):_0x1f90c5(_0x142740,_0x1ae206))));}function _0x15af0b(_0xc904c9,_0x46e6f8){const _0x47390f=_0x4b5f8d;let _0x5a0fae=_0x2ffb8a(_0xc904c9);return!_0x46e6f8||_0x5a0fae['closed']||_0x5a0fae['anchors'][_0x47390f(0x1c5)]===0x0||_0x5a0fae['anchors']['push']({'id':'__ink-preview-anchor__','x':_0x46e6f8['x'],'y':_0x46e6f8['y'],'pointType':_0x47390f(0x1dc)}),_0x5a0fae;}function _0x372455(_0x1e3ed4,_0x637011={}){const _0x22f8ce=_0x4b5f8d;let _0x53e4e6=Math[_0x22f8ce(0x19b)](0x0,_0x637011['tolerance']??Math[_0x22f8ce(0x19b)](0x4,_0x1e3ed4[_0x22f8ce(0x1b7)]*0.35)),_0x154f5b=_0x637011[_0x22f8ce(0x1bb)]??(_0x109fee=>_0x22f8ce(0x1d6)+_0x109fee),_0x5bd1ea=_0x10018a(_0x1e3ed4[_0x22f8ce(0x186)],_0x53e4e6),_0x27f3f6=_0x5bd1ea[_0x22f8ce(0x16b)]((_0x3e137e,_0x2138de)=>({'id':_0x154f5b(_0x2138de),'x':_0x3e137e['x'],'y':_0x3e137e['y'],'pointType':_0x22f8ce(0x1a7)}));for(let _0x1ebc35=0x0;_0x1ebc35<_0x27f3f6[_0x22f8ce(0x1c5)]-0x1;_0x1ebc35++)_0x27f3f6[_0x1ebc35][_0x22f8ce(0x177)]=_0x5c59c9(_0x5bd1ea,_0x1ebc35),_0x27f3f6[_0x1ebc35+0x1]['in']=_0x471ef9(_0x5bd1ea,_0x1ebc35+0x1);return{'kind':_0x22f8ce(0x1bc),'closed':!0x1,'anchors':_0x27f3f6};}function _0x6ab892(_0xa676c6,_0x499afa,_0x27079a){const _0x22b37d=_0x4b5f8d;let _0xb1ecf8=null,_0x32f5a3=['anchor','in',_0x22b37d(0x177)];return _0xa676c6[_0x22b37d(0x1cb)][_0x22b37d(0x1a1)]((_0x542ffb,_0x5f1a14)=>{const _0x4a67ea=_0x22b37d;_0x32f5a3[_0x4a67ea(0x1a1)](_0x9fb9b7=>{if(!_0x2084de(_0xa676c6,_0x5f1a14,_0x9fb9b7))return;let _0x1f492a=_0x14fb80(_0x542ffb,_0x9fb9b7);if(!_0x1f492a)return;let _0x3f8ff6=_0x1f90c5(_0x499afa,_0x1f492a);_0x3f8ff6>_0x27079a||_0xb1ecf8&&_0x3f8ff6>=_0xb1ecf8['distance']||(_0xb1ecf8={'handle':{'kind':_0x9fb9b7,'anchorId':_0x542ffb['id']},'point':_0x1bb78c(_0x1f492a),'distance':_0x3f8ff6});});}),_0xb1ecf8;}function _0x591ccc(_0x42b84a,_0xe58555,_0x9fe05a){const _0x354335=_0x4b5f8d;let _0x59f3ad=null,_0x19ad69=_0x42b84a['closed']?_0x42b84a[_0x354335(0x1cb)]['length']:Math['max'](0x0,_0x42b84a[_0x354335(0x1cb)][_0x354335(0x1c5)]-0x1);for(let _0xe4908f=0x0;_0xe4908f<_0x19ad69;_0xe4908f++){let _0x3d5e9d=_0x4140ea(_0x42b84a,_0xe4908f);if(!_0x3d5e9d)continue;let _0x51eb15=_0x198444(_0x3d5e9d,0x0);for(let _0x3e5b50=0x1;_0x3e5b50<=0x20;_0x3e5b50++){let _0x352c3b=_0x198444(_0x3d5e9d,_0x3e5b50/0x20),_0x3b2108=_0x6655d9(_0xe58555,_0x51eb15,_0x352c3b),_0x3c59f5=(_0x3e5b50-0x1+_0x3b2108['ratio'])/0x20;(!_0x59f3ad||_0x3b2108[_0x354335(0x179)]<_0x59f3ad['distance'])&&(_0x59f3ad={'segmentIndex':_0xe4908f,'t':_0x3c59f5,'point':_0x3b2108[_0x354335(0x17b)],'distance':_0x3b2108['distance']}),_0x51eb15=_0x352c3b;}}return _0x59f3ad&&_0x59f3ad[_0x354335(0x179)]<=_0x9fe05a?_0x59f3ad:null;}function _0xe07201(_0x488c3a,_0x1c06d8,_0x27d417){const _0x350a35=_0x4b5f8d;let _0xb588c5=_0x2ffb8a(_0x488c3a),_0x291805=_0x4e3d47(_0xb588c5,_0x1c06d8[_0x350a35(0x1ba)]),_0x275ab0=_0x4140ea(_0xb588c5,_0x1c06d8[_0x350a35(0x1ba)]);if(!_0x291805||!_0x275ab0)return _0xb588c5;let _0x15286d=_0xd973f9(_0x275ab0,Math[_0x350a35(0x19b)](0x0,Math[_0x350a35(0x1c8)](0x1,_0x1c06d8['t']))),_0x5e36e0={'id':_0x27d417(),'x':_0x15286d[_0x350a35(0x1dd)][0x3]['x'],'y':_0x15286d[_0x350a35(0x1dd)][0x3]['y'],'in':_0x1bb78c(_0x15286d[_0x350a35(0x1dd)][0x2]),'out':_0x1bb78c(_0x15286d['right'][0x1]),'pointType':_0x350a35(0x1a7)};return _0xb588c5[_0x350a35(0x1cb)][_0x291805['startIndex']][_0x350a35(0x177)]=_0x1bb78c(_0x15286d[_0x350a35(0x1dd)][0x1]),_0xb588c5[_0x350a35(0x1cb)][_0x291805[_0x350a35(0x1b0)]]['in']=_0x1bb78c(_0x15286d[_0x350a35(0x16e)][0x2]),_0xb588c5[_0x350a35(0x1cb)][_0x350a35(0x171)](_0x291805[_0x350a35(0x16c)]+0x1,0x0,_0x5e36e0),_0xb588c5;}function _0x1e3fda(_0x5b216f,_0x34778f){const _0x2a6d25=_0x4b5f8d;let _0x38e6ad=_0x2ffb8a(_0x5b216f);return _0x38e6ad['anchors']=_0x38e6ad[_0x2a6d25(0x1cb)][_0x2a6d25(0x17e)](_0x436869=>_0x436869['id']!==_0x34778f),_0x38e6ad[_0x2a6d25(0x185)]&&_0x38e6ad[_0x2a6d25(0x1cb)][_0x2a6d25(0x1c5)]<0x3&&(_0x38e6ad[_0x2a6d25(0x185)]=!0x1),_0x38e6ad;}function _0x13f1a2(_0x3467b5,_0x1b6ec8,_0x3a2507){const _0x2627d8=_0x4b5f8d;let _0x59af2c=_0x2ffb8a(_0x3467b5),_0x5f37fc=_0x59af2c[_0x2627d8(0x1cb)]['findIndex'](_0x5952d0=>_0x5952d0['id']===_0x1b6ec8),_0x1c7816=_0x59af2c['anchors'][_0x5f37fc];if(!_0x1c7816)return _0x59af2c;if(_0x1c7816[_0x2627d8(0x19c)]=_0x3a2507,_0x3a2507===_0x2627d8(0x1dc))return delete _0x1c7816['in'],delete _0x1c7816[_0x2627d8(0x177)],_0x59af2c;let _0x496af8=_0x33ea3f(_0x59af2c,_0x5f37fc);if(_0x1c7816['in']=_0x1c7816['in']?_0x1bb78c(_0x1c7816['in']):_0x496af8['in'],_0x1c7816[_0x2627d8(0x177)]=_0x1c7816['out']?_0x1bb78c(_0x1c7816['out']):_0x496af8[_0x2627d8(0x177)],_0x3a2507===_0x2627d8(0x1ac)){let _0x230dd8=Math[_0x2627d8(0x19b)](_0x1f90c5(_0x1c7816,_0x1c7816['in']),_0x1f90c5(_0x1c7816,_0x1c7816[_0x2627d8(0x177)]),0x32),_0x9281a9=_0x4285f3({'x':_0x1c7816[_0x2627d8(0x177)]['x']-_0x1c7816['x'],'y':_0x1c7816['out']['y']-_0x1c7816['y']});_0x1c7816['out']={'x':_0x1c7816['x']+_0x9281a9['x']*_0x230dd8,'y':_0x1c7816['y']+_0x9281a9['y']*_0x230dd8},_0x1c7816['in']={'x':_0x1c7816['x']-_0x9281a9['x']*_0x230dd8,'y':_0x1c7816['y']-_0x9281a9['y']*_0x230dd8};}else _0x3a2507==='smooth'&&_0x47eca7(_0x1c7816,_0x2627d8(0x177));return _0x59af2c;}function _0x1fab29(_0x52c714,_0x2e688f){const _0x55b13f=_0x4b5f8d;let _0x29679a=_0x52c714[_0x55b13f(0x1cb)][_0x55b13f(0x1a8)](_0x452a2e=>_0x452a2e['id']===_0x2e688f),_0x512ec5=(_0x29679a==null?void 0x0:_0x29679a[_0x55b13f(0x19c)])??_0x55b13f(0x1dc);return _0x13f1a2(_0x52c714,_0x2e688f,_0x512ec5===_0x55b13f(0x1dc)?_0x55b13f(0x1be):_0x512ec5===_0x55b13f(0x1be)?_0x55b13f(0x1ac):_0x512ec5===_0x55b13f(0x1ac)?_0x55b13f(0x1a7):_0x55b13f(0x1dc));}function _0x4c35c9(_0x5221b3,_0x1cf072,_0x4da862){const _0x4226bf=_0x4b5f8d;let _0x512f0b=_0x2ffb8a(_0x5221b3),_0x433918=_0x512f0b['anchors'][_0x4226bf(0x1a8)](_0x3a3a32=>_0x3a3a32['id']===_0x1cf072[_0x4226bf(0x192)]);if(!_0x433918)return _0x512f0b;if(_0x1cf072[_0x4226bf(0x1a2)]===_0x4226bf(0x172)){let _0x2b2559={'x':_0x4da862['x']-_0x433918['x'],'y':_0x4da862['y']-_0x433918['y']};return _0x433918['x']=_0x4da862['x'],_0x433918['y']=_0x4da862['y'],_0x433918['in']&&={'x':_0x433918['in']['x']+_0x2b2559['x'],'y':_0x433918['in']['y']+_0x2b2559['y']},_0x433918[_0x4226bf(0x177)]&&={'x':_0x433918[_0x4226bf(0x177)]['x']+_0x2b2559['x'],'y':_0x433918[_0x4226bf(0x177)]['y']+_0x2b2559['y']},_0x512f0b;}return _0x433918[_0x1cf072[_0x4226bf(0x1a2)]]=_0x1bb78c(_0x4da862),_0x433918[_0x4226bf(0x19c)]===_0x4226bf(0x1dc)&&(_0x433918['pointType']=_0x4226bf(0x1a7)),_0x47eca7(_0x433918,_0x1cf072[_0x4226bf(0x1a2)]),_0x512f0b;}let _0x5094a4=1e-9;function _0x1fed24(_0x14a9d5){const _0x2c7cc4=_0x4b5f8d;let _0x570cdb=Math[_0x2c7cc4(0x1d1)](_0x14a9d5*0x2710)/0x2710;return Object['is'](_0x570cdb,-0x0)?'0':String(_0x570cdb);}function _0x5a172d(_0x274b1f){return _0x1fed24(_0x274b1f['x'])+'\x20'+_0x1fed24(_0x274b1f['y']);}function _0x1d3ccb(_0xd949c8,_0x3ccbd9){return{'x':_0xd949c8['x']-_0x3ccbd9['x'],'y':_0xd949c8['y']-_0x3ccbd9['y']};}function _0x1efd32(_0xc5e820,_0xcdeb68,_0xf9a4c1,_0x407fdd,_0x2fb836){let _0x5ef9d0=0x1-_0x2fb836;return{'x':_0x5ef9d0*_0x5ef9d0*_0x5ef9d0*_0xc5e820['x']+0x3*_0x5ef9d0*_0x5ef9d0*_0x2fb836*_0xcdeb68['x']+0x3*_0x5ef9d0*_0x2fb836*_0x2fb836*_0xf9a4c1['x']+_0x2fb836*_0x2fb836*_0x2fb836*_0x407fdd['x'],'y':_0x5ef9d0*_0x5ef9d0*_0x5ef9d0*_0xc5e820['y']+0x3*_0x5ef9d0*_0x5ef9d0*_0x2fb836*_0xcdeb68['y']+0x3*_0x5ef9d0*_0x2fb836*_0x2fb836*_0xf9a4c1['y']+_0x2fb836*_0x2fb836*_0x2fb836*_0x407fdd['y']};}function _0x16c304(_0x44671f,_0x563f0e,_0x413629,_0x46eeb5){const _0x22452d=_0x4b5f8d;let _0x2d6d46=-_0x44671f+0x3*_0x563f0e-0x3*_0x413629+_0x46eeb5,_0x50c843=0x3*_0x44671f-0x6*_0x563f0e+0x3*_0x413629,_0x7e5455=-0x3*_0x44671f+0x3*_0x563f0e,_0xfe759a=[];if(Math[_0x22452d(0x1bf)](_0x2d6d46)<_0x5094a4){if(Math['abs'](_0x50c843)<_0x5094a4)return _0xfe759a;let _0x4506eb=-_0x7e5455/(0x2*_0x50c843);return _0x4506eb>0x0&&_0x4506eb<0x1&&_0xfe759a[_0x22452d(0x1a9)](_0x4506eb),_0xfe759a;}let _0x4ebbc2=_0x50c843*_0x50c843-0x3*_0x2d6d46*_0x7e5455;if(_0x4ebbc2<0x0)return _0xfe759a;let _0x2a45bd=Math[_0x22452d(0x197)](Math[_0x22452d(0x19b)](0x0,_0x4ebbc2)),_0x514191=(-_0x50c843+_0x2a45bd)/(0x3*_0x2d6d46),_0x3542c9=(-_0x50c843-_0x2a45bd)/(0x3*_0x2d6d46);return _0x514191>0x0&&_0x514191<0x1&&_0xfe759a[_0x22452d(0x1a9)](_0x514191),_0x3542c9>0x0&&_0x3542c9<0x1&&Math['abs'](_0x3542c9-_0x514191)>_0x5094a4&&_0xfe759a['push'](_0x3542c9),_0xfe759a;}function _0x21e1d0(_0x3151a5,_0x2a4b0b,_0x116078,_0x537258,_0x4cfa7a){const _0x368557=_0x4b5f8d;_0x3151a5[_0x368557(0x1a9)](_0x2a4b0b,_0x4cfa7a),new Set([..._0x16c304(_0x2a4b0b['x'],_0x116078['x'],_0x537258['x'],_0x4cfa7a['x']),..._0x16c304(_0x2a4b0b['y'],_0x116078['y'],_0x537258['y'],_0x4cfa7a['y'])])[_0x368557(0x1a1)](_0x4b22c4=>{const _0x105742=_0x368557;_0x3151a5[_0x105742(0x1a9)](_0x1efd32(_0x2a4b0b,_0x116078,_0x537258,_0x4cfa7a,_0x4b22c4));});}function _0x4306b2(_0x3b0966){const _0x4542e9=_0x4b5f8d;let _0x112d0b=_0x3b0966[_0x4542e9(0x1cb)];if(_0x112d0b['length']<=0x1)return _0x112d0b;let _0x2356cc=[];for(let _0x1b65e0=0x1;_0x1b65e0<_0x112d0b[_0x4542e9(0x1c5)];_0x1b65e0++){let _0x59892b=_0x112d0b[_0x1b65e0-0x1],_0xd4cb79=_0x112d0b[_0x1b65e0];_0x21e1d0(_0x2356cc,_0x59892b,_0x59892b[_0x4542e9(0x177)]??_0x59892b,_0xd4cb79['in']??_0xd4cb79,_0xd4cb79);}if(_0x3b0966[_0x4542e9(0x185)]&&_0x112d0b[_0x4542e9(0x1c5)]>0x1){let _0x1bc067=_0x112d0b[_0x112d0b['length']-0x1],_0x343159=_0x112d0b[0x0];_0x21e1d0(_0x2356cc,_0x1bc067,_0x1bc067[_0x4542e9(0x177)]??_0x1bc067,_0x343159['in']??_0x343159,_0x343159);}return _0x2356cc;}function _0xb814f9(_0x4eee21){const _0x2e2920=_0x4b5f8d;let _0x55ae36=_0x4eee21['points'];if(_0x55ae36[_0x2e2920(0x1c5)]<=0x1)return _0x55ae36;let _0x3df9f1=[];for(let _0x291f02=0x0;_0x291f02<_0x55ae36['length']-0x1;_0x291f02++){let _0x49f23a=_0x55ae36[_0x291f02],_0x3e2b9b=_0x55ae36[_0x291f02+0x1],_0x5d4300=_0x55ae36[_0x291f02-0x1]??_0x49f23a,_0x43a4e0=_0x55ae36[_0x291f02+0x2]??_0x3e2b9b;_0x21e1d0(_0x3df9f1,_0x49f23a,{'x':_0x49f23a['x']+(_0x3e2b9b['x']-_0x5d4300['x'])/0x6,'y':_0x49f23a['y']+(_0x3e2b9b['y']-_0x5d4300['y'])/0x6},{'x':_0x3e2b9b['x']-(_0x43a4e0['x']-_0x49f23a['x'])/0x6,'y':_0x3e2b9b['y']-(_0x43a4e0['y']-_0x49f23a['y'])/0x6},_0x3e2b9b);}return _0x3df9f1;}function _0x2bd326(_0x56da9e){const _0x5a162d=_0x4b5f8d;return _0x56da9e[_0x5a162d(0x1a2)]===_0x5a162d(0x1bc)?_0x4306b2(_0x56da9e):_0xb814f9(_0x56da9e);}function _0xc3c344(_0x3c2498){const _0x49646c=_0x4b5f8d;let _0x2136a0=Math[_0x49646c(0x1d1)](_0x3c2498*0x2710)/0x2710;return Object['is'](_0x2136a0,-0x0)?0x0:_0x2136a0;}function _0x6c99a9(_0x2f24d6){const _0x4a272b=_0x4b5f8d;let _0x1caa82=_0x2bd326(_0x2f24d6);if(_0x1caa82[_0x4a272b(0x1c5)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x5dfbc7=Math[_0x4a272b(0x1c8)](..._0x1caa82[_0x4a272b(0x16b)](_0x3a7652=>_0x3a7652['x'])),_0x703fc5=Math[_0x4a272b(0x1c8)](..._0x1caa82[_0x4a272b(0x16b)](_0x541044=>_0x541044['y'])),_0x51d11a=Math[_0x4a272b(0x19b)](..._0x1caa82[_0x4a272b(0x16b)](_0x5dfc84=>_0x5dfc84['x'])),_0x52e309=Math[_0x4a272b(0x19b)](..._0x1caa82[_0x4a272b(0x16b)](_0x226193=>_0x226193['y']));return{'left':_0xc3c344(_0x5dfbc7),'top':_0xc3c344(_0x703fc5),'width':_0xc3c344(Math[_0x4a272b(0x19b)](0x1,_0x51d11a-_0x5dfbc7)),'height':_0xc3c344(Math['max'](0x1,_0x52e309-_0x703fc5))};}function _0x431d4b(_0x14dffb,_0x448f76){const _0x17948e=_0x4b5f8d;let _0x13d44b=_0x14dffb['anchors'];if(_0x13d44b['length']===0x0)return'';let _0x17686f=['M\x20'+_0x5a172d(_0x1d3ccb(_0x13d44b[0x0],_0x448f76))];for(let _0x1c72c=0x1;_0x1c72c<_0x13d44b[_0x17948e(0x1c5)];_0x1c72c++){let _0x2a8809=_0x13d44b[_0x1c72c-0x1],_0x2acf1d=_0x13d44b[_0x1c72c],_0x438203=_0x2a8809[_0x17948e(0x177)]??_0x2a8809,_0x2b7a29=_0x2acf1d['in']??_0x2acf1d;_0x17686f[_0x17948e(0x1a9)]('C\x20'+_0x5a172d(_0x1d3ccb(_0x438203,_0x448f76))+'\x20'+_0x5a172d(_0x1d3ccb(_0x2b7a29,_0x448f76))+'\x20'+_0x5a172d(_0x1d3ccb(_0x2acf1d,_0x448f76)));}if(_0x14dffb['closed']&&_0x13d44b[_0x17948e(0x1c5)]>0x1){let _0x5dffee=_0x13d44b[_0x13d44b[_0x17948e(0x1c5)]-0x1],_0x191f40=_0x13d44b[0x0],_0xe00553=_0x5dffee['out']??_0x5dffee,_0xc3c963=_0x191f40['in']??_0x191f40;_0x17686f[_0x17948e(0x1a9)]('C\x20'+_0x5a172d(_0x1d3ccb(_0xe00553,_0x448f76))+'\x20'+_0x5a172d(_0x1d3ccb(_0xc3c963,_0x448f76))+'\x20'+_0x5a172d(_0x1d3ccb(_0x191f40,_0x448f76))),_0x17686f['push']('Z');}return _0x17686f['join']('\x20');}function _0x697320(_0x5ddfe1,_0x15cec1){const _0x3878cb=_0x4b5f8d;let _0x13e095=_0x5ddfe1[_0x3878cb(0x186)][_0x3878cb(0x16b)](_0x9c73b2=>_0x1d3ccb(_0x9c73b2,_0x15cec1));if(_0x13e095['length']===0x0)return'';if(_0x13e095[_0x3878cb(0x1c5)]===0x1)return'M\x20'+_0x5a172d(_0x13e095[0x0]);let _0x2bf0f5=['M\x20'+_0x5a172d(_0x13e095[0x0])];for(let _0x4946d4=0x0;_0x4946d4<_0x13e095[_0x3878cb(0x1c5)]-0x1;_0x4946d4++){let _0x4b4e7c=_0x13e095[_0x4946d4],_0x7e37bf=_0x13e095[_0x4946d4+0x1],_0x2d14d8=_0x13e095[_0x4946d4-0x1]??_0x4b4e7c,_0x376618=_0x13e095[_0x4946d4+0x2]??_0x7e37bf,_0xc6f52c={'x':_0x4b4e7c['x']+(_0x7e37bf['x']-_0x2d14d8['x'])/0x6,'y':_0x4b4e7c['y']+(_0x7e37bf['y']-_0x2d14d8['y'])/0x6},_0x45b7cc={'x':_0x7e37bf['x']-(_0x376618['x']-_0x4b4e7c['x'])/0x6,'y':_0x7e37bf['y']-(_0x376618['y']-_0x4b4e7c['y'])/0x6};_0x2bf0f5[_0x3878cb(0x1a9)]('C\x20'+_0x5a172d(_0xc6f52c)+'\x20'+_0x5a172d(_0x45b7cc)+'\x20'+_0x5a172d(_0x7e37bf));}return _0x2bf0f5[_0x3878cb(0x18d)]('\x20');}function _0x27394e(_0x1fe347,_0xfdd277){const _0x2b74cd=_0x4b5f8d;return _0x1fe347[_0x2b74cd(0x1a2)]===_0x2b74cd(0x1bc)?_0x431d4b(_0x1fe347,_0xfdd277):_0x697320(_0x1fe347,_0xfdd277);}function _0x3fadd9(_0x2bf679,_0x1ddbf5){const _0x5c21ed=_0x4b5f8d;return _0x1ddbf5!=null&&_0x1ddbf5[_0x5c21ed(0x16a)]?_0x1ddbf5[_0x5c21ed(0x16a)]:_0x2bf679['kind']===_0x5c21ed(0x1bc)?_0x5c21ed(0x176):_0x2bf679[_0x5c21ed(0x16a)];}function _0x1a566b(_0x5f2ed1,_0x3f7cd5){const _0x18f00f=_0x4b5f8d;return(_0x3f7cd5==null?void 0x0:_0x3f7cd5[_0x18f00f(0x1b7)])===void 0x0?_0x5f2ed1[_0x18f00f(0x1a2)]===_0x18f00f(0x1bc)?0x2:_0x5f2ed1[_0x18f00f(0x1b7)]:_0x3f7cd5[_0x18f00f(0x1b7)];}function _0x363330(_0x5bbd95,_0x3c64cf){const _0x220686=_0x4b5f8d;return(_0x3c64cf==null?void 0x0:_0x3c64cf['opacity'])===void 0x0?_0x5bbd95[_0x220686(0x1a2)]==='pen'?void 0x0:_0x5bbd95[_0x220686(0x19f)]:_0x3c64cf[_0x220686(0x19f)];}function _0x4649c2(_0x3463bd,_0x4851b7){const _0x88463f=_0x4b5f8d;let _0x39735b=_0x6c99a9(_0x3463bd),_0xd4842f=_0x27394e(_0x3463bd,{'x':_0x39735b[_0x88463f(0x1dd)],'y':_0x39735b[_0x88463f(0x187)]}),_0x53882e=_0x3463bd['kind']==='pen'&&_0x3463bd[_0x88463f(0x185)],_0x16b896=_0x4851b7==null?void 0x0:_0x4851b7[_0x88463f(0x1a5)];return{'shapeType':_0x44e042[_0x88463f(0x1d9)][_0x88463f(0x17f)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x39735b['width'],'h':_0x39735b['height'],'fill':_0x53882e?_0x88463f(0x18f):'none','stroke':!0x0,'data':_0xd4842f,'dataArray':_0x5e57b1(_0x3463bd,{'x':_0x39735b['left'],'y':_0x39735b['top']})}]},'fill':_0x53882e&&_0x16b896?{'color':_0x16b896,'fillType':_0x44e042[_0x88463f(0x18b)][_0x88463f(0x1bd)]}:{'fillType':_0x44e042[_0x88463f(0x18b)][_0x88463f(0x1b5)]},'stroke':{'color':_0x3fadd9(_0x3463bd,_0x4851b7),'width':_0x1a566b(_0x3463bd,_0x4851b7),'opacity':_0x363330(_0x3463bd,_0x4851b7),'lineStrokeType':_0x44e042[_0x88463f(0x16f)][_0x88463f(0x1ab)],'capType':_0x44e042[_0x88463f(0x184)][_0x88463f(0x1db)],'lineJoinType':_0x44e042[_0x88463f(0x1c0)]['Round']}};}function _0xbf94c7(_0x1cc55c,_0x5edc39){return{'x':_0x1cc55c['x']-_0x5edc39['x'],'y':_0x1cc55c['y']-_0x5edc39['y']};}function _0x5e57b1(_0x549bf5,_0x4070f4){const _0x55f657=_0x4b5f8d;if(_0x549bf5[_0x55f657(0x1a2)]===_0x55f657(0x1bc)){let _0x485c61=_0x549bf5[_0x55f657(0x1cb)];if(_0x485c61[_0x55f657(0x1c5)]===0x0)return[];let _0xf9cc22=_0xbf94c7(_0x485c61[0x0],_0x4070f4),_0x1633c1=[{'command':'M','points':[_0xf9cc22['x'],_0xf9cc22['y']]}];for(let _0x1579a3=0x1;_0x1579a3<_0x485c61['length'];_0x1579a3++){let _0x358c6d=_0x485c61[_0x1579a3-0x1],_0x184a2=_0x485c61[_0x1579a3],_0x40d514=_0xbf94c7(_0x358c6d['out']??_0x358c6d,_0x4070f4),_0x115d1d=_0xbf94c7(_0x184a2['in']??_0x184a2,_0x4070f4),_0x2083c8=_0xbf94c7(_0x184a2,_0x4070f4);_0x1633c1[_0x55f657(0x1a9)]({'command':'C','points':[_0x40d514['x'],_0x40d514['y'],_0x115d1d['x'],_0x115d1d['y'],_0x2083c8['x'],_0x2083c8['y']]});}if(_0x549bf5['closed']&&_0x485c61[_0x55f657(0x1c5)]>0x1){let _0x2d0e72=_0x485c61[_0x485c61[_0x55f657(0x1c5)]-0x1],_0x4e554a=_0x485c61[0x0],_0xab9c30=_0xbf94c7(_0x2d0e72[_0x55f657(0x177)]??_0x2d0e72,_0x4070f4),_0x35ff13=_0xbf94c7(_0x4e554a['in']??_0x4e554a,_0x4070f4),_0x4dc799=_0xbf94c7(_0x4e554a,_0x4070f4);_0x1633c1[_0x55f657(0x1a9)]({'command':'C','points':[_0xab9c30['x'],_0xab9c30['y'],_0x35ff13['x'],_0x35ff13['y'],_0x4dc799['x'],_0x4dc799['y']]}),_0x1633c1['push']({'command':'z','points':[]});}return _0x1633c1;}let _0x4d4e4e=_0x549bf5['points']['map'](_0x2311ef=>_0xbf94c7(_0x2311ef,_0x4070f4));if(_0x4d4e4e[_0x55f657(0x1c5)]===0x0)return[];let _0x3c6b4a=[{'command':'M','points':[_0x4d4e4e[0x0]['x'],_0x4d4e4e[0x0]['y']]}];for(let _0xdfee90=0x0;_0xdfee90<_0x4d4e4e['length']-0x1;_0xdfee90++){let _0x555f2d=_0x4d4e4e[_0xdfee90],_0x343aa6=_0x4d4e4e[_0xdfee90+0x1],_0x3d4a41=_0x4d4e4e[_0xdfee90-0x1]??_0x555f2d,_0x27a5ed=_0x4d4e4e[_0xdfee90+0x2]??_0x343aa6,_0x408e9b={'x':_0x555f2d['x']+(_0x343aa6['x']-_0x3d4a41['x'])/0x6,'y':_0x555f2d['y']+(_0x343aa6['y']-_0x3d4a41['y'])/0x6},_0xd14de={'x':_0x343aa6['x']-(_0x27a5ed['x']-_0x555f2d['x'])/0x6,'y':_0x343aa6['y']-(_0x27a5ed['y']-_0x555f2d['y'])/0x6};_0x3c6b4a[_0x55f657(0x1a9)]({'command':'C','points':[_0x408e9b['x'],_0x408e9b['y'],_0xd14de['x'],_0xd14de['y'],_0x343aa6['x'],_0x343aa6['y']]});}return _0x3c6b4a;}function _0x80b26c(_0x1c4ef2){const _0x304a08=_0x4b5f8d;let {model:_0x59ae86,sourceModel:_0x35824d=_0x59ae86,style:_0x2a1f2e}=_0x1c4ef2,_0x124b62=_0x1c4ef2[_0x304a08(0x18c)]??_0x59ae86[_0x304a08(0x1a2)],_0x2ccabc=_0x6c99a9(_0x59ae86),_0x2f2499=_0x59ae86[_0x304a08(0x1a2)]===_0x304a08(0x1bc)&&_0x124b62!==_0x304a08(0x1bc)?_0x59ae86:void 0x0;return{'transform':{..._0x2ccabc,'rotation':0x0},'shapeData':_0x4649c2(_0x59ae86,_0x2a1f2e),'ink':{'version':0x1,'tool':_0x124b62,'sourceModel':_0x35824d,..._0x2f2499?{'editModel':_0x2f2499}:{},'normalizedBounds':_0x2ccabc}};}var _0x28c0f4=_0x4b5f8d(0x1d5),_0x46cfa3=_0x4b5f8d(0x1a0);function _0x110de8(_0x40f14d){'@babel/helpers - typeof';const _0x11ee67=_0x4b5f8d;return _0x110de8=typeof Symbol==_0x11ee67(0x1c7)&&typeof Symbol[_0x11ee67(0x17a)]==_0x11ee67(0x1da)?function(_0x51ab9b){return typeof _0x51ab9b;}:function(_0x5f4651){const _0xc4dbd=_0x11ee67;return _0x5f4651&&typeof Symbol==_0xc4dbd(0x1c7)&&_0x5f4651[_0xc4dbd(0x1cf)]===Symbol&&_0x5f4651!==Symbol[_0xc4dbd(0x198)]?_0xc4dbd(0x1da):typeof _0x5f4651;},_0x110de8(_0x40f14d);}function _0x2a47df(_0x3476d1,_0x352984){const _0x3b5d2e=_0x4b5f8d;if(_0x110de8(_0x3476d1)!=_0x3b5d2e(0x183)||!_0x3476d1)return _0x3476d1;var _0x1f010a=_0x3476d1[Symbol[_0x3b5d2e(0x190)]];if(_0x1f010a!==void 0x0){var _0x501369=_0x1f010a[_0x3b5d2e(0x1ca)](_0x3476d1,_0x352984||_0x3b5d2e(0x1d3));if(_0x110de8(_0x501369)!=_0x3b5d2e(0x183))return _0x501369;throw TypeError(_0x3b5d2e(0x1a3));}return(_0x352984===_0x3b5d2e(0x19e)?String:Number)(_0x3476d1);}function _0x5cb14c(_0x56edd5){const _0x47d468=_0x4b5f8d;var _0x267daa=_0x2a47df(_0x56edd5,'string');return _0x110de8(_0x267daa)==_0x47d468(0x1da)?_0x267daa:_0x267daa+'';}function _0x2f841d(_0x2a7384,_0x3a1fac,_0x24bec3){const _0x4fd01e=_0x4b5f8d;return(_0x3a1fac=_0x5cb14c(_0x3a1fac))in _0x2a7384?Object[_0x4fd01e(0x1a6)](_0x2a7384,_0x3a1fac,{'value':_0x24bec3,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2a7384[_0x3a1fac]=_0x24bec3,_0x2a7384;}let _0x11bd0f=(0x0,_0x11bd66['createIdentifier'])(_0x4b5f8d(0x1b1));var _0x38c2ac=class{constructor(){const _0x327668=_0x4b5f8d;_0x2f841d(this,_0x327668(0x1e3),[]);}['registerAdapter'](_0xea2b33){const _0x23e4e8=_0x4b5f8d;return this[_0x23e4e8(0x1e3)][_0x23e4e8(0x1a9)](_0xea2b33),(0x0,_0x11bd66[_0x23e4e8(0x1c4)])(()=>{const _0x16f809=_0x23e4e8;let _0x30d46c=this[_0x16f809(0x1e3)][_0x16f809(0x193)](_0xea2b33);_0x30d46c>=0x0&&this['_adapters'][_0x16f809(0x171)](_0x30d46c,0x1);});}['beginInkMode'](_0x24c626){const _0xd884c3=_0x4b5f8d;for(let _0x390223 of this[_0xd884c3(0x1e3)])if(_0x390223[_0xd884c3(0x1df)](_0x24c626))return!0x0;return!0x1;}async[_0x4b5f8d(0x1e2)](_0x4d8e76){const _0x33dc3e=_0x4b5f8d;for(let _0x221fcd of this[_0x33dc3e(0x1e3)])if(_0x221fcd[_0x33dc3e(0x1e2)]&&await _0x221fcd['createCustomShape'](_0x4d8e76))return!0x0;return!0x1;}};let _0x3e73f3={'id':_0x4b5f8d(0x174),'type':_0x11bd66['CommandType'][_0x4b5f8d(0x1cd)],'handler':(_0x2022ad,_0x142f62)=>_0x142f62?_0x2022ad[_0x4b5f8d(0x1b3)](_0x11bd0f)[_0x4b5f8d(0x1df)](_0x142f62):!0x1},_0x15ebdb={};function _0xc59892(_0x405f8f,_0x1a3afd){return function(_0x7552f0,_0x21e5c3){_0x1a3afd(_0x7552f0,_0x21e5c3,_0x405f8f);};}function _0x1b967c(_0x42c250,_0x54be9a,_0x5a4153,_0x2dcf1b){const _0x1bf93f=_0x4b5f8d;var _0xdb9d2f=arguments[_0x1bf93f(0x1c5)],_0x17a43d=_0xdb9d2f<0x3?_0x54be9a:_0x2dcf1b===null?_0x2dcf1b=Object['getOwnPropertyDescriptor'](_0x54be9a,_0x5a4153):_0x2dcf1b,_0x39269c;if(typeof Reflect==_0x1bf93f(0x183)&&typeof Reflect['decorate']==_0x1bf93f(0x1c7))_0x17a43d=Reflect[_0x1bf93f(0x19a)](_0x42c250,_0x54be9a,_0x5a4153,_0x2dcf1b);else{for(var _0x30ca84=_0x42c250[_0x1bf93f(0x1c5)]-0x1;_0x30ca84>=0x0;_0x30ca84--)(_0x39269c=_0x42c250[_0x30ca84])&&(_0x17a43d=(_0xdb9d2f<0x3?_0x39269c(_0x17a43d):_0xdb9d2f>0x3?_0x39269c(_0x54be9a,_0x5a4153,_0x17a43d):_0x39269c(_0x54be9a,_0x5a4153))||_0x17a43d);}return _0xdb9d2f>0x3&&_0x17a43d&&Object[_0x1bf93f(0x1a6)](_0x54be9a,_0x5a4153,_0x17a43d),_0x17a43d;}let _0x471dfb=class extends _0x11bd66['Plugin']{constructor(_0x3b6979=_0x15ebdb,_0x15ac70,_0x43b37a,_0x88cd30){const _0x4f8a11=_0x4b5f8d;super(),this[_0x4f8a11(0x19d)]=_0x3b6979,this[_0x4f8a11(0x1d8)]=_0x15ac70,this['_commandService']=_0x43b37a,this['_configService']=_0x88cd30;let {..._0x1f709d}=(0x0,_0x11bd66['merge'])({},_0x15ebdb,this['_config']);this[_0x4f8a11(0x168)]['setConfig']('ink.config',_0x1f709d);}[_0x4b5f8d(0x1af)](){const _0x1ba45a=_0x4b5f8d;[[_0x11bd0f,{'useClass':_0x38c2ac}]][_0x1ba45a(0x1a1)](_0xe2bbf5=>this[_0x1ba45a(0x1d8)]['add'](_0xe2bbf5)),this[_0x1ba45a(0x196)](this[_0x1ba45a(0x189)]['registerCommand'](_0x3e73f3));}};_0x2f841d(_0x471dfb,'pluginName',_0x4b5f8d(0x1de)),_0x2f841d(_0x471dfb,_0x4b5f8d(0x1e0),_0x28c0f4),_0x2f841d(_0x471dfb,_0x4b5f8d(0x1b4),_0x46cfa3),_0x2f841d(_0x471dfb,'type',_0x11bd66[_0x4b5f8d(0x1ce)]['UNIVER_UNKNOWN']),_0x471dfb=_0x1b967c([(0x0,_0x11bd66[_0x4b5f8d(0x191)])(_0x298c72[_0x4b5f8d(0x170)]),_0xc59892(0x1,(0x0,_0x11bd66['Inject'])(_0x11bd66[_0x4b5f8d(0x17c)])),_0xc59892(0x2,_0x11bd66[_0x4b5f8d(0x180)]),_0xc59892(0x3,_0x11bd66[_0x4b5f8d(0x1d4)])],_0x471dfb),_0x5199c0[_0x4b5f8d(0x1b6)]=_0x11bd0f,Object['defineProperty'](_0x5199c0,_0x4b5f8d(0x181),{'enumerable':!0x0,'get':function(){return _0x471dfb;}}),_0x5199c0[_0x4b5f8d(0x1c9)]=_0x80b26c,_0x5199c0[_0x4b5f8d(0x1c3)]=_0x372455,_0x5199c0[_0x4b5f8d(0x175)]=_0x1fab29,_0x5199c0[_0x4b5f8d(0x17d)]=_0x1e3fda,_0x5199c0['findClosestInkPenHandle']=_0x6ab892,_0x5199c0[_0x4b5f8d(0x18a)]=_0x591ccc,_0x5199c0['getInkModelBounds']=_0x6c99a9,_0x5199c0[_0x4b5f8d(0x1aa)]=_0x15af0b,_0x5199c0['insertInkPenAnchorAt']=_0xe07201,_0x5199c0['isInkPenHandleVisible']=_0x2084de,_0x5199c0['moveInkPenAnchorPoint']=_0x4c35c9,_0x5199c0[_0x4b5f8d(0x173)]=_0x13f1a2;}));
|
|
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
|
},
|