@univerjs-pro/ink 1.0.0-rc.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +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 +7 -7
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x5d6f66=_0x1520;(function(_0x3b66df,_0x1139a6){const _0x3b0f70=_0x1520,_0x4ce2bd=_0x3b66df();while(!![]){try{const _0x2d3da0=parseInt(_0x3b0f70(0x1fe))/0x1*(parseInt(_0x3b0f70(0x1c9))/0x2)+parseInt(_0x3b0f70(0x1e8))/0x3*(parseInt(_0x3b0f70(0x1e4))/0x4)+parseInt(_0x3b0f70(0x1ef))/0x5*(-parseInt(_0x3b0f70(0x1f6))/0x6)+-parseInt(_0x3b0f70(0x1f5))/0x7*(parseInt(_0x3b0f70(0x1d4))/0x8)+-parseInt(_0x3b0f70(0x1df))/0x9*(parseInt(_0x3b0f70(0x1fa))/0xa)+-parseInt(_0x3b0f70(0x1fb))/0xb*(parseInt(_0x3b0f70(0x1f8))/0xc)+-parseInt(_0x3b0f70(0x1d2))/0xd*(-parseInt(_0x3b0f70(0x1f4))/0xe);if(_0x2d3da0===_0x1139a6)break;else _0x4ce2bd['push'](_0x4ce2bd['shift']());}catch(_0x1e1755){_0x4ce2bd['push'](_0x4ce2bd['shift']());}}}(_0x36bf,0xd4798),Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x5d6f66(0x1f3)}));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[_0x5d6f66(0x1ff)]{[_0x5d6f66(0x1f9)](_0x33606a){const _0x4093ff=_0x5d6f66;let _0x595240=o(_0x33606a);return _0x595240&&this['_addElement'](_0x595240,{'insertIndex':_0x33606a[_0x4093ff(0x1ee)]})?_0x595240:null;}[_0x5d6f66(0x1e6)](){const _0x2b4738=_0x5d6f66;return this['findElements']({'elementType':e[_0x2b4738(0x1da)][_0x2b4738(0x1e3)],'includeHidden':!0x0,'includeLocked':!0x0})[_0x2b4738(0x1d3)](f);}};function _0x36bf(){const _0x5c55b6=['out','buildInkCustomShapePayload','BoardInkPointType','9036sfBpvE','custom','width','ink','Shape','972kisXve','trim','getInks','generateRandomId','19713CaIPch','pen','object','length','sourceModel','laneId','insertIndex','20tbRUwY','BoardInkHandleKind','style','transform','Module','34174GaYAWv','7lziIkw','500634OxTWcz','isArray','24ARfcYS','insertInk','9500yqwjLi','7612286dIfKfc','anchor','type','28729PoPVJj','FBoard','extend','version','free','isFinite','42HDbgZw','parentId','add','points','pressure','anchors','FEnum','every','Tools','13429kBPEBE','filter','9437688GuMKBb','model','smooth','BoardInkTool','corner','has','BoardElementType','opacity'];_0x36bf=function(){return _0x5c55b6;};return _0x36bf();}function o(_0x443015,_0x31d1f1){const _0x341843=_0x5d6f66;if(!c(_0x443015[_0x341843(0x1d5)])||_0x443015[_0x341843(0x1ec)]!==void 0x0&&!c(_0x443015[_0x341843(0x1ec)])||!l(_0x443015[_0x341843(0x1f1)]))return null;let _0x18c89f=_0x443015[_0x341843(0x1ca)]??(_0x31d1f1==null?void 0x0:_0x31d1f1['parentId']),_0x209a0b=r[_0x341843(0x1d1)]['deepClone'](_0x443015[_0x341843(0x1d5)]),_0x19a4f2=(0x0,n[_0x341843(0x1dd)])({'model':_0x209a0b,'style':_0x443015[_0x341843(0x1f1)],'tool':_0x443015['tool'],'sourceModel':_0x443015['sourceModel']?r[_0x341843(0x1d1)]['deepClone'](_0x443015[_0x341843(0x1ec)]):_0x209a0b}),_0x306e32=u(_0x31d1f1==null?void 0x0:_0x31d1f1[_0x341843(0x1e0)]);return{'id':(_0x31d1f1==null?void 0x0:_0x31d1f1['id'])??_0x443015['id']??(0x0,r[_0x341843(0x1e7)])(0x6),'type':e[_0x341843(0x1da)][_0x341843(0x1e3)],'transform':_0x19a4f2[_0x341843(0x1f2)],'shapeData':_0x19a4f2['shapeData'],'parentId':_0x18c89f??void 0x0,'laneId':_0x443015['laneId']===void 0x0?_0x31d1f1==null?void 0x0:_0x31d1f1[_0x341843(0x1ed)]:_0x443015[_0x341843(0x1ed)],'custom':{..._0x306e32,'ink':_0x19a4f2[_0x341843(0x1e2)]}};}function s(_0x3801a1){const _0x1cab13=_0x5d6f66;return Number[_0x1cab13(0x1c8)](_0x3801a1['x'])&&Number[_0x1cab13(0x1c8)](_0x3801a1['y']);}function c(_0x22b567){const _0x23f2f8=_0x5d6f66;if(_0x22b567['kind']===_0x23f2f8(0x1e9)){let _0x178232=new Set();return _0x22b567[_0x23f2f8(0x1ce)][_0x23f2f8(0x1eb)]>=(_0x22b567['closed']?0x3:0x2)&&_0x22b567[_0x23f2f8(0x1ce)]['every'](_0x455633=>{const _0x5e568c=_0x23f2f8;let _0x28b5ba=_0x455633['id'][_0x5e568c(0x1e5)]()[_0x5e568c(0x1eb)]>0x0&&!_0x178232[_0x5e568c(0x1d9)](_0x455633['id'])&&s(_0x455633)&&(!_0x455633['in']||s(_0x455633['in']))&&(!_0x455633[_0x5e568c(0x1dc)]||s(_0x455633[_0x5e568c(0x1dc)]));return _0x178232[_0x5e568c(0x1cb)](_0x455633['id']),_0x28b5ba;});}return _0x22b567[_0x23f2f8(0x1cc)][_0x23f2f8(0x1eb)]>=0x2&&_0x22b567[_0x23f2f8(0x1cc)][_0x23f2f8(0x1d0)](_0x81bb17=>s(_0x81bb17)&&Number['isFinite'](_0x81bb17['t'])&&(_0x81bb17[_0x23f2f8(0x1cd)]===void 0x0||Number[_0x23f2f8(0x1c8)](_0x81bb17[_0x23f2f8(0x1cd)])))&&Number[_0x23f2f8(0x1c8)](_0x22b567['width'])&&_0x22b567[_0x23f2f8(0x1e1)]>0x0&&Number[_0x23f2f8(0x1c8)](_0x22b567['opacity'])&&_0x22b567[_0x23f2f8(0x1db)]>=0x0&&_0x22b567['opacity']<=0x1;}function l(_0x468b79){const _0x5fe992=_0x5d6f66;return _0x468b79===void 0x0||(_0x468b79[_0x5fe992(0x1e1)]===void 0x0||Number[_0x5fe992(0x1c8)](_0x468b79['width'])&&_0x468b79['width']>0x0)&&(_0x468b79[_0x5fe992(0x1db)]===void 0x0||Number[_0x5fe992(0x1c8)](_0x468b79['opacity'])&&_0x468b79['opacity']>=0x0&&_0x468b79['opacity']<=0x1);}function u(_0x44ad5e){const _0x4233d1=_0x5d6f66;return _0x44ad5e&&typeof _0x44ad5e==_0x4233d1(0x1ea)&&!Array[_0x4233d1(0x1f7)](_0x44ad5e)?_0x44ad5e:{};}function d(_0x21f39d){const _0x394fa4=_0x5d6f66;let _0x16ff46=u(_0x21f39d['custom'])['ink'];if(!_0x16ff46||typeof _0x16ff46!=_0x394fa4(0x1ea)||Array[_0x394fa4(0x1f7)](_0x16ff46))return null;let _0x39c2b7=_0x16ff46;return _0x39c2b7[_0x394fa4(0x201)]===0x1&&_0x39c2b7['sourceModel']&&typeof _0x39c2b7[_0x394fa4(0x1ec)]=='object'?_0x39c2b7:null;}function f(_0x9e5767){const _0x417b2c=_0x5d6f66;return _0x9e5767[_0x417b2c(0x1fd)]===e[_0x417b2c(0x1da)][_0x417b2c(0x1e3)]&&!!d(_0x9e5767);}t[_0x5d6f66(0x1ff)][_0x5d6f66(0x200)](a);const p={'Pen':_0x5d6f66(0x1e9),'Brush':'brush','Highlighter':'highlighter'},m={'Corner':_0x5d6f66(0x1d8),'Smooth':_0x5d6f66(0x1d6),'Symmetric':'symmetric','Free':_0x5d6f66(0x1c7)},h={'Anchor':_0x5d6f66(0x1fc),'In':'in','Out':_0x5d6f66(0x1dc)};function _0x1520(_0x3d7dd3,_0x238a8c){_0x3d7dd3=_0x3d7dd3-0x1c7;const _0x36bfd1=_0x36bf();let _0x15202c=_0x36bfd1[_0x3d7dd3];return _0x15202c;}var g=class extends i[_0x5d6f66(0x1cf)]{get[_0x5d6f66(0x1d7)](){return p;}get['BoardInkPointType'](){return m;}get[_0x5d6f66(0x1f0)](){return h;}};i[_0x5d6f66(0x1cf)][_0x5d6f66(0x200)](g),exports[_0x5d6f66(0x1f0)]=h,exports[_0x5d6f66(0x1de)]=m,exports[_0x5d6f66(0x1d7)]=p;
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x3e7182=_0x4f05;(function(_0x59ade,_0x75a211){const _0x5bb0af=_0x4f05,_0x475bc5=_0x59ade();while(!![]){try{const _0xce48d9=-parseInt(_0x5bb0af(0x194))/0x1*(-parseInt(_0x5bb0af(0x1be))/0x2)+parseInt(_0x5bb0af(0x169))/0x3+-parseInt(_0x5bb0af(0x168))/0x4*(-parseInt(_0x5bb0af(0x16e))/0x5)+parseInt(_0x5bb0af(0x196))/0x6*(-parseInt(_0x5bb0af(0x186))/0x7)+-parseInt(_0x5bb0af(0x1bd))/0x8*(parseInt(_0x5bb0af(0x1ac))/0x9)+-parseInt(_0x5bb0af(0x192))/0xa*(parseInt(_0x5bb0af(0x1c3))/0xb)+parseInt(_0x5bb0af(0x195))/0xc;if(_0xce48d9===_0x75a211)break;else _0x475bc5['push'](_0x475bc5['shift']());}catch(_0x39330c){_0x475bc5['push'](_0x475bc5['shift']());}}}(_0x1d72,0xb3e55),Object['defineProperty'](exports,Symbol[_0x3e7182(0x1b8)],{'value':_0x3e7182(0x167)}));let e=require('@univerjs-pro/engine-shape'),t=require('@univerjs-pro/license'),n=require('@univerjs/core');function _0x1d72(){const _0x1020f0=['find','free','SolidFill','height','out','tolerance','Inject','NoFill','closed','DependentOn','_commandService','top','_injector','ink.host-adapter.service','forEach','point','symbol','getInkPenPreviewModel','setInkPenAnchorPointType','disposeWithMe','1409919KTJteZ','CommandType','pluginName','pen','slice','ShapeLineJoinEnum','distance','symmetric','min','OPERATION','packageName','endIndex','252360MydYEN','corner','8419pKmJSj','4459380sznIMJ','36ZqDZGe','1.0.0-rc.0','findIndex','default','points','round','pointType','end','none','_configService','_adapters','IConfigService','width','UniverLicensePlugin','start','ratio','insertInkPenAnchorAt','beginInkMode','call','moveInkPenAnchorPoint','ShapeFillEnum','right','9mBmlUH','ink.config','createIdentifier','registerAdapter','splice','object','createId','left','findClosestInkPenHandle','setConfig','createCustomShape','segmentIndex','toStringTag','max','toPrimitive','norm','cycleInkPenAnchorPointType','1795384nYiwud','138bNaGxN','constructor','ICommandService','decorate','color','77IxxHDj','Injector','version','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','tool','ShapeTypeEnum','buildInkCustomShapePayload','type','opacity','indexOf','iterator','join','#f54a45','hypot','push','toDisposable','anchors','Round','startIndex','defineProperty','convertBrushModelToPenModel','IInkHostAdapterService','string','prototype','@univerjs-pro/ink','smooth','UniverInkPlugin','length','map','Plugin','abs','findClosestInkPenSegment','deleteInkPenAnchor','Rect','Module','52qgDZoH','2568711aHLPAA','registerCommand','function','merge','_config','206795WGHtiP','anchor','kind','onStarting'];_0x1d72=function(){return _0x1020f0;};return _0x1d72();}const r=0.0001;function i(_0x284622){return{'x':_0x284622['x'],'y':_0x284622['y']};}function a(_0x82b35d){const _0x246069=_0x3e7182;return{..._0x82b35d,'in':_0x82b35d['in']?i(_0x82b35d['in']):void 0x0,'out':_0x82b35d[_0x246069(0x176)]?i(_0x82b35d['out']):void 0x0};}function o(_0xb618ff){const _0x1f92a5=_0x3e7182;return{'kind':_0x1f92a5(0x189),'closed':_0xb618ff['closed'],'anchors':_0xb618ff['anchors'][_0x1f92a5(0x161)](a)};}function s(_0x21eb6f,_0x2af806,_0x269087){return{'x':_0x21eb6f['x']+(_0x2af806['x']-_0x21eb6f['x'])*_0x269087,'y':_0x21eb6f['y']+(_0x2af806['y']-_0x21eb6f['y'])*_0x269087};}function c(_0x32740f,_0x3dfb59){const _0x31a975=_0x3e7182;return Math[_0x31a975(0x1d0)](_0x32740f['x']-_0x3dfb59['x'],_0x32740f['y']-_0x3dfb59['y']);}function l(_0x3276c1){const _0x390e54=_0x3e7182;let _0x37ab6f=Math[_0x390e54(0x1d0)](_0x3276c1['x'],_0x3276c1['y']);return _0x37ab6f<r?{'x':0x1,'y':0x0}:{'x':_0x3276c1['x']/_0x37ab6f,'y':_0x3276c1['y']/_0x37ab6f};}function u(_0x3079ab,_0x518148,_0x577da5=c(_0x3079ab,_0x518148)){let _0x2fc077=l({'x':_0x3079ab['x']-_0x518148['x'],'y':_0x3079ab['y']-_0x518148['y']});return{'x':_0x3079ab['x']+_0x2fc077['x']*_0x577da5,'y':_0x3079ab['y']+_0x2fc077['y']*_0x577da5};}function d(_0xcf67da,_0x4e106f){const _0x3fee15=_0x3e7182;let {anchors:_0xb442de}=_0xcf67da;return _0xb442de[_0x3fee15(0x160)]<0x2||_0x4e106f<0x0?null:_0x4e106f<_0xb442de['length']-0x1?{'startIndex':_0x4e106f,'endIndex':_0x4e106f+0x1,'start':_0xb442de[_0x4e106f],'end':_0xb442de[_0x4e106f+0x1]}:_0xcf67da[_0x3fee15(0x17a)]&&_0x4e106f===_0xb442de[_0x3fee15(0x160)]-0x1?{'startIndex':_0xb442de[_0x3fee15(0x160)]-0x1,'endIndex':0x0,'start':_0xb442de[_0xb442de[_0x3fee15(0x160)]-0x1],'end':_0xb442de[0x0]}:null;}function f(_0x577845,_0x5e50a7){const _0x4a912b=_0x3e7182;let _0x121865=d(_0x577845,_0x5e50a7);return _0x121865?[_0x121865['start'],_0x121865['start'][_0x4a912b(0x176)]??_0x121865[_0x4a912b(0x1a4)],_0x121865[_0x4a912b(0x19d)]['in']??_0x121865[_0x4a912b(0x19d)],_0x121865[_0x4a912b(0x19d)]]:null;}function ee(_0x5d1e1f,_0x1c78da){const _0x3176e8=_0x3e7182;return _0x1c78da===_0x3176e8(0x16f)?_0x5d1e1f:_0x5d1e1f[_0x1c78da]??null;}function p(_0x114c01,_0x4d9117,_0x268b6a){const _0x4f93de=_0x3e7182;return _0x268b6a==='anchor'||_0x114c01[_0x4f93de(0x17a)]?!0x0:_0x268b6a==='in'?_0x4d9117>0x0:_0x4d9117<_0x114c01[_0x4f93de(0x1d3)][_0x4f93de(0x160)]-0x1;}function m(_0x12cb8e,_0xa70155){let [_0x54ac48,_0x1fc2b8,_0x48871c,_0x26674f]=_0x12cb8e,_0x310305=s(_0x54ac48,_0x1fc2b8,_0xa70155),_0x3e1f48=s(_0x1fc2b8,_0x48871c,_0xa70155),_0x346b6a=s(_0x48871c,_0x26674f,_0xa70155);return s(s(_0x310305,_0x3e1f48,_0xa70155),s(_0x3e1f48,_0x346b6a,_0xa70155),_0xa70155);}function h(_0x21be84,_0x18f9f5){let [_0x27e36e,_0x3b78a8,_0xaaf4a4,_0x45f021]=_0x21be84,_0x545655=s(_0x27e36e,_0x3b78a8,_0x18f9f5),_0x57cda9=s(_0x3b78a8,_0xaaf4a4,_0x18f9f5),_0xeafaac=s(_0xaaf4a4,_0x45f021,_0x18f9f5),_0x4931b4=s(_0x545655,_0x57cda9,_0x18f9f5),_0x126aa0=s(_0x57cda9,_0xeafaac,_0x18f9f5),_0x489e0a=s(_0x4931b4,_0x126aa0,_0x18f9f5);return{'left':[_0x27e36e,_0x545655,_0x4931b4,_0x489e0a],'right':[_0x489e0a,_0x126aa0,_0xeafaac,_0x45f021]};}function g(_0x4432db,_0x7a85e6,_0x18924c){const _0xbca511=_0x3e7182;let _0x78f63c=_0x18924c['x']-_0x7a85e6['x'],_0xc08907=_0x18924c['y']-_0x7a85e6['y'],_0x56aa3d=_0x78f63c*_0x78f63c+_0xc08907*_0xc08907,_0x5369ff=_0x56aa3d<=r?0x0:Math[_0xbca511(0x1b9)](0x0,Math['min'](0x1,((_0x4432db['x']-_0x7a85e6['x'])*_0x78f63c+(_0x4432db['y']-_0x7a85e6['y'])*_0xc08907)/_0x56aa3d)),_0x2a49fa={'x':_0x7a85e6['x']+_0x78f63c*_0x5369ff,'y':_0x7a85e6['y']+_0xc08907*_0x5369ff};return{'point':_0x2a49fa,'ratio':_0x5369ff,'distance':c(_0x4432db,_0x2a49fa)};}function _0x4f05(_0x5ea494,_0x43c3f7){_0x5ea494=_0x5ea494-0x158;const _0x1d724c=_0x1d72();let _0x4f0523=_0x1d724c[_0x5ea494];return _0x4f0523;}function te(_0x2187d3,_0x32589a,_0x376046){const _0x399f00=_0x3e7182;return g(_0x2187d3,_0x32589a,_0x376046)[_0x399f00(0x18c)]**0x2;}function _(_0x4ab140,_0x509538){const _0x286758=_0x3e7182;if(_0x4ab140[_0x286758(0x160)]<=0x2)return _0x4ab140[_0x286758(0x161)](i);let _0x10d698=0x0,_0x1c7fd1=0x0,_0x503b58=_0x4ab140[0x0],_0x495c06=_0x4ab140[_0x4ab140[_0x286758(0x160)]-0x1],_0x119da0=_0x509538*_0x509538;for(let _0x47f8d2=0x1;_0x47f8d2<_0x4ab140[_0x286758(0x160)]-0x1;_0x47f8d2++){let _0x1ff4d8=te(_0x4ab140[_0x47f8d2],_0x503b58,_0x495c06);_0x1ff4d8>_0x10d698&&(_0x10d698=_0x1ff4d8,_0x1c7fd1=_0x47f8d2);}if(_0x10d698<=_0x119da0)return[i(_0x503b58),i(_0x495c06)];let _0xb1bc56=_(_0x4ab140[_0x286758(0x18a)](0x0,_0x1c7fd1+0x1),_0x509538),_0x59ed74=_(_0x4ab140[_0x286758(0x18a)](_0x1c7fd1),_0x509538);return[..._0xb1bc56[_0x286758(0x18a)](0x0,-0x1),..._0x59ed74];}function ne(_0xfc6bd3,_0x2213e6){let _0x44910a=_0xfc6bd3[_0x2213e6],_0x27d2af=_0xfc6bd3[_0x2213e6+0x1],_0x4430b7=_0xfc6bd3[_0x2213e6-0x1]??_0x44910a;return{'x':_0x44910a['x']+(_0x27d2af['x']-_0x4430b7['x'])/0x6,'y':_0x44910a['y']+(_0x27d2af['y']-_0x4430b7['y'])/0x6};}function v(_0x54e9f,_0x747565){let _0x40433a=_0x54e9f[_0x747565],_0x2d6d13=_0x54e9f[_0x747565-0x1],_0x27b2eb=_0x54e9f[_0x747565+0x1]??_0x40433a;return{'x':_0x40433a['x']-(_0x27b2eb['x']-_0x2d6d13['x'])/0x6,'y':_0x40433a['y']-(_0x27b2eb['y']-_0x2d6d13['y'])/0x6};}function y(_0x34cd1b,_0x4325d0){const _0x5db6e0=_0x3e7182;let _0x522038=_0x34cd1b['anchors'][_0x4325d0],_0x54e760=_0x34cd1b[_0x5db6e0(0x1d3)][_0x4325d0-0x1]??(_0x34cd1b['closed']?_0x34cd1b[_0x5db6e0(0x1d3)][_0x34cd1b[_0x5db6e0(0x1d3)][_0x5db6e0(0x160)]-0x1]:null),_0x2eb889=_0x34cd1b['anchors'][_0x4325d0+0x1]??(_0x34cd1b[_0x5db6e0(0x17a)]?_0x34cd1b[_0x5db6e0(0x1d3)][0x0]:null),_0x2e7f89=_0x54e760&&_0x2eb889?l({'x':_0x2eb889['x']-_0x54e760['x'],'y':_0x2eb889['y']-_0x54e760['y']}):_0x2eb889?l({'x':_0x2eb889['x']-_0x522038['x'],'y':_0x2eb889['y']-_0x522038['y']}):_0x54e760?l({'x':_0x522038['x']-_0x54e760['x'],'y':_0x522038['y']-_0x54e760['y']}):{'x':0x1,'y':0x0},_0x4e842b=_0x54e760&&_0x2eb889?Math[_0x5db6e0(0x1b9)](0x32,c(_0x54e760,_0x2eb889)/0x4):0x32;return{'in':{'x':_0x522038['x']-_0x2e7f89['x']*_0x4e842b,'y':_0x522038['y']-_0x2e7f89['y']*_0x4e842b},'out':{'x':_0x522038['x']+_0x2e7f89['x']*_0x4e842b,'y':_0x522038['y']+_0x2e7f89['y']*_0x4e842b}};}function b(_0x4fb733,_0x390b2e){const _0x3d8c93=_0x3e7182;let _0x3b4f73=_0x4fb733[_0x390b2e],_0x5698f8=_0x390b2e==='in'?_0x3d8c93(0x176):'in',_0x2d19c5=_0x4fb733[_0x5698f8];if(_0x3b4f73){if(_0x4fb733[_0x3d8c93(0x19c)]===_0x3d8c93(0x18d)){_0x4fb733[_0x5698f8]=u(_0x4fb733,_0x3b4f73);return;}_0x4fb733[_0x3d8c93(0x19c)]==='smooth'&&(_0x4fb733[_0x5698f8]=u(_0x4fb733,_0x3b4f73,_0x2d19c5?c(_0x4fb733,_0x2d19c5):c(_0x4fb733,_0x3b4f73)));}}function x(_0x255822,_0x398843){const _0x18b767=_0x3e7182;let _0x30aed0=o(_0x255822);return!_0x398843||_0x30aed0[_0x18b767(0x17a)]||_0x30aed0[_0x18b767(0x1d3)][_0x18b767(0x160)]===0x0||_0x30aed0[_0x18b767(0x1d3)]['push']({'id':'__ink-preview-anchor__','x':_0x398843['x'],'y':_0x398843['y'],'pointType':'corner'}),_0x30aed0;}function re(_0x1bcf39,_0x53cc4a={}){const _0x3ab92c=_0x3e7182;let _0x4e60ef=Math[_0x3ab92c(0x1b9)](0x0,_0x53cc4a[_0x3ab92c(0x177)]??Math[_0x3ab92c(0x1b9)](0x4,_0x1bcf39[_0x3ab92c(0x1a2)]*0.35)),_0x1f2d0b=_0x53cc4a[_0x3ab92c(0x1b2)]??(_0x895b9a=>'ink-centerline-'+_0x895b9a),_0x3abb3e=_(_0x1bcf39['points'],_0x4e60ef),_0x1bc615=_0x3abb3e[_0x3ab92c(0x161)]((_0xba132f,_0x2d471f)=>({'id':_0x1f2d0b(_0x2d471f),'x':_0xba132f['x'],'y':_0xba132f['y'],'pointType':_0x3ab92c(0x173)}));for(let _0x265fd5=0x0;_0x265fd5<_0x1bc615[_0x3ab92c(0x160)]-0x1;_0x265fd5++)_0x1bc615[_0x265fd5]['out']=ne(_0x3abb3e,_0x265fd5),_0x1bc615[_0x265fd5+0x1]['in']=v(_0x3abb3e,_0x265fd5+0x1);return{'kind':'pen','closed':!0x1,'anchors':_0x1bc615};}function ie(_0x3c781c,_0xcee61a,_0xe3fe2c){const _0xf0ef09=_0x3e7182;let _0x3931cd=null,_0x217235=[_0xf0ef09(0x16f),'in',_0xf0ef09(0x176)];return _0x3c781c[_0xf0ef09(0x1d3)]['forEach']((_0x276770,_0x364d7b)=>{const _0x29c6fd=_0xf0ef09;_0x217235[_0x29c6fd(0x180)](_0x38cd8c=>{if(!p(_0x3c781c,_0x364d7b,_0x38cd8c))return;let _0x5bbbf9=ee(_0x276770,_0x38cd8c);if(!_0x5bbbf9)return;let _0x1b5e3d=c(_0xcee61a,_0x5bbbf9);_0x1b5e3d>_0xe3fe2c||_0x3931cd&&_0x1b5e3d>=_0x3931cd['distance']||(_0x3931cd={'handle':{'kind':_0x38cd8c,'anchorId':_0x276770['id']},'point':i(_0x5bbbf9),'distance':_0x1b5e3d});});}),_0x3931cd;}function S(_0x77b0e2,_0x29d494,_0x156527){const _0x4f4623=_0x3e7182;let _0x5cbe30=null,_0x57a4a9=_0x77b0e2[_0x4f4623(0x17a)]?_0x77b0e2['anchors'][_0x4f4623(0x160)]:Math['max'](0x0,_0x77b0e2[_0x4f4623(0x1d3)][_0x4f4623(0x160)]-0x1);for(let _0x141248=0x0;_0x141248<_0x57a4a9;_0x141248++){let _0x477a5a=f(_0x77b0e2,_0x141248);if(!_0x477a5a)continue;let _0x52d44c=m(_0x477a5a,0x0);for(let _0x422866=0x1;_0x422866<=0x20;_0x422866++){let _0x811df2=m(_0x477a5a,_0x422866/0x20),_0x2fa456=g(_0x29d494,_0x52d44c,_0x811df2),_0x163f95=(_0x422866-0x1+_0x2fa456[_0x4f4623(0x1a5)])/0x20;(!_0x5cbe30||_0x2fa456[_0x4f4623(0x18c)]<_0x5cbe30['distance'])&&(_0x5cbe30={'segmentIndex':_0x141248,'t':_0x163f95,'point':_0x2fa456[_0x4f4623(0x181)],'distance':_0x2fa456[_0x4f4623(0x18c)]}),_0x52d44c=_0x811df2;}}return _0x5cbe30&&_0x5cbe30[_0x4f4623(0x18c)]<=_0x156527?_0x5cbe30:null;}function C(_0x3c9cfc,_0x5cae37,_0xcd32b1){const _0x4f2626=_0x3e7182;let _0x5cfa33=o(_0x3c9cfc),_0x1f6398=d(_0x5cfa33,_0x5cae37[_0x4f2626(0x1b7)]),_0x2a1418=f(_0x5cfa33,_0x5cae37['segmentIndex']);if(!_0x1f6398||!_0x2a1418)return _0x5cfa33;let _0x5e6dbd=h(_0x2a1418,Math[_0x4f2626(0x1b9)](0x0,Math[_0x4f2626(0x18e)](0x1,_0x5cae37['t']))),_0x451959={'id':_0xcd32b1(),'x':_0x5e6dbd[_0x4f2626(0x1b3)][0x3]['x'],'y':_0x5e6dbd[_0x4f2626(0x1b3)][0x3]['y'],'in':i(_0x5e6dbd[_0x4f2626(0x1b3)][0x2]),'out':i(_0x5e6dbd[_0x4f2626(0x1ab)][0x1]),'pointType':_0x4f2626(0x173)};return _0x5cfa33[_0x4f2626(0x1d3)][_0x1f6398[_0x4f2626(0x1d5)]][_0x4f2626(0x176)]=i(_0x5e6dbd[_0x4f2626(0x1b3)][0x1]),_0x5cfa33[_0x4f2626(0x1d3)][_0x1f6398[_0x4f2626(0x191)]]['in']=i(_0x5e6dbd[_0x4f2626(0x1ab)][0x2]),_0x5cfa33[_0x4f2626(0x1d3)][_0x4f2626(0x1b0)](_0x1f6398[_0x4f2626(0x1d5)]+0x1,0x0,_0x451959),_0x5cfa33;}function w(_0x4a34ae,_0x18a31e){const _0x4fd873=_0x3e7182;let _0x26b62a=o(_0x4a34ae);return _0x26b62a['anchors']=_0x26b62a[_0x4fd873(0x1d3)]['filter'](_0xf3d016=>_0xf3d016['id']!==_0x18a31e),_0x26b62a[_0x4fd873(0x17a)]&&_0x26b62a['anchors']['length']<0x3&&(_0x26b62a[_0x4fd873(0x17a)]=!0x1),_0x26b62a;}function T(_0x271cd3,_0x1073d3,_0x114008){const _0x40a701=_0x3e7182;let _0x11f5e7=o(_0x271cd3),_0x3039d2=_0x11f5e7[_0x40a701(0x1d3)][_0x40a701(0x198)](_0x2e3e9c=>_0x2e3e9c['id']===_0x1073d3),_0xad9034=_0x11f5e7['anchors'][_0x3039d2];if(!_0xad9034)return _0x11f5e7;if(_0xad9034[_0x40a701(0x19c)]=_0x114008,_0x114008===_0x40a701(0x193))return delete _0xad9034['in'],delete _0xad9034['out'],_0x11f5e7;let _0x1b3697=y(_0x11f5e7,_0x3039d2);if(_0xad9034['in']=_0xad9034['in']?i(_0xad9034['in']):_0x1b3697['in'],_0xad9034[_0x40a701(0x176)]=_0xad9034[_0x40a701(0x176)]?i(_0xad9034[_0x40a701(0x176)]):_0x1b3697['out'],_0x114008===_0x40a701(0x18d)){let _0x28e329=Math[_0x40a701(0x1b9)](c(_0xad9034,_0xad9034['in']),c(_0xad9034,_0xad9034[_0x40a701(0x176)]),0x32),_0x1cfcbe=l({'x':_0xad9034[_0x40a701(0x176)]['x']-_0xad9034['x'],'y':_0xad9034[_0x40a701(0x176)]['y']-_0xad9034['y']});_0xad9034[_0x40a701(0x176)]={'x':_0xad9034['x']+_0x1cfcbe['x']*_0x28e329,'y':_0xad9034['y']+_0x1cfcbe['y']*_0x28e329},_0xad9034['in']={'x':_0xad9034['x']-_0x1cfcbe['x']*_0x28e329,'y':_0xad9034['y']-_0x1cfcbe['y']*_0x28e329};}else _0x114008===_0x40a701(0x15e)&&b(_0xad9034,_0x40a701(0x176));return _0x11f5e7;}function E(_0x25ef48,_0x54643b){const _0x2dfb12=_0x3e7182;let _0x37b7fb=_0x25ef48[_0x2dfb12(0x1d3)][_0x2dfb12(0x172)](_0x4fa9eb=>_0x4fa9eb['id']===_0x54643b),_0x550119=(_0x37b7fb==null?void 0x0:_0x37b7fb[_0x2dfb12(0x19c)])??_0x2dfb12(0x193);return T(_0x25ef48,_0x54643b,_0x550119===_0x2dfb12(0x193)?_0x2dfb12(0x15e):_0x550119===_0x2dfb12(0x15e)?_0x2dfb12(0x18d):_0x550119===_0x2dfb12(0x18d)?_0x2dfb12(0x173):_0x2dfb12(0x193));}function ae(_0x5c83ae,_0xe38621,_0x5dfd40){const _0x1878ea=_0x3e7182;let _0x7ade14=o(_0x5c83ae),_0x2173ff=_0x7ade14[_0x1878ea(0x1d3)][_0x1878ea(0x172)](_0x1c06c1=>_0x1c06c1['id']===_0xe38621['anchorId']);if(!_0x2173ff)return _0x7ade14;if(_0xe38621[_0x1878ea(0x170)]===_0x1878ea(0x16f)){let _0xe08952={'x':_0x5dfd40['x']-_0x2173ff['x'],'y':_0x5dfd40['y']-_0x2173ff['y']};return _0x2173ff['x']=_0x5dfd40['x'],_0x2173ff['y']=_0x5dfd40['y'],_0x2173ff['in']&&={'x':_0x2173ff['in']['x']+_0xe08952['x'],'y':_0x2173ff['in']['y']+_0xe08952['y']},_0x2173ff[_0x1878ea(0x176)]&&={'x':_0x2173ff[_0x1878ea(0x176)]['x']+_0xe08952['x'],'y':_0x2173ff[_0x1878ea(0x176)]['y']+_0xe08952['y']},_0x7ade14;}return _0x2173ff[_0xe38621[_0x1878ea(0x170)]]=i(_0x5dfd40),_0x2173ff[_0x1878ea(0x19c)]===_0x1878ea(0x193)&&(_0x2173ff['pointType']=_0x1878ea(0x173)),b(_0x2173ff,_0xe38621[_0x1878ea(0x170)]),_0x7ade14;}const D=1e-9;function O(_0x426f12){const _0x3c6b01=_0x3e7182;let _0x4c2104=Math[_0x3c6b01(0x19b)](_0x426f12*0x2710)/0x2710;return Object['is'](_0x4c2104,-0x0)?'0':String(_0x4c2104);}function k(_0x6dc5f1){return O(_0x6dc5f1['x'])+'\x20'+O(_0x6dc5f1['y']);}function A(_0x51f59b,_0x1338b0){return{'x':_0x51f59b['x']-_0x1338b0['x'],'y':_0x51f59b['y']-_0x1338b0['y']};}function j(_0x3ab36d,_0x185ed9,_0xdcc9d5,_0x47d9e5,_0x215dca){let _0x3a2181=0x1-_0x215dca;return{'x':_0x3a2181*_0x3a2181*_0x3a2181*_0x3ab36d['x']+0x3*_0x3a2181*_0x3a2181*_0x215dca*_0x185ed9['x']+0x3*_0x3a2181*_0x215dca*_0x215dca*_0xdcc9d5['x']+_0x215dca*_0x215dca*_0x215dca*_0x47d9e5['x'],'y':_0x3a2181*_0x3a2181*_0x3a2181*_0x3ab36d['y']+0x3*_0x3a2181*_0x3a2181*_0x215dca*_0x185ed9['y']+0x3*_0x3a2181*_0x215dca*_0x215dca*_0xdcc9d5['y']+_0x215dca*_0x215dca*_0x215dca*_0x47d9e5['y']};}function M(_0x2da219,_0x3c27d6,_0x44ce4d,_0x191a8f){const _0x3bc2c1=_0x3e7182;let _0x2bd8cf=-_0x2da219+0x3*_0x3c27d6-0x3*_0x44ce4d+_0x191a8f,_0x3e7944=0x3*_0x2da219-0x6*_0x3c27d6+0x3*_0x44ce4d,_0x5022bc=-0x3*_0x2da219+0x3*_0x3c27d6,_0xbd28c1=[];if(Math[_0x3bc2c1(0x163)](_0x2bd8cf)<D){if(Math[_0x3bc2c1(0x163)](_0x3e7944)<D)return _0xbd28c1;let _0x20e6f9=-_0x5022bc/(0x2*_0x3e7944);return _0x20e6f9>0x0&&_0x20e6f9<0x1&&_0xbd28c1['push'](_0x20e6f9),_0xbd28c1;}let _0x2d6a6f=_0x3e7944*_0x3e7944-0x3*_0x2bd8cf*_0x5022bc;if(_0x2d6a6f<0x0)return _0xbd28c1;let _0x4d55e4=Math['sqrt'](Math[_0x3bc2c1(0x1b9)](0x0,_0x2d6a6f)),_0x30a972=(-_0x3e7944+_0x4d55e4)/(0x3*_0x2bd8cf),_0x429cc=(-_0x3e7944-_0x4d55e4)/(0x3*_0x2bd8cf);return _0x30a972>0x0&&_0x30a972<0x1&&_0xbd28c1[_0x3bc2c1(0x1d1)](_0x30a972),_0x429cc>0x0&&_0x429cc<0x1&&Math['abs'](_0x429cc-_0x30a972)>D&&_0xbd28c1['push'](_0x429cc),_0xbd28c1;}function N(_0x3c5b88,_0x58800e,_0x3f0988,_0x571151,_0x5b84fd){const _0x4dca59=_0x3e7182;_0x3c5b88[_0x4dca59(0x1d1)](_0x58800e,_0x5b84fd),new Set([...M(_0x58800e['x'],_0x3f0988['x'],_0x571151['x'],_0x5b84fd['x']),...M(_0x58800e['y'],_0x3f0988['y'],_0x571151['y'],_0x5b84fd['y'])])[_0x4dca59(0x180)](_0x42efa2=>{const _0x3205fb=_0x4dca59;_0x3c5b88[_0x3205fb(0x1d1)](j(_0x58800e,_0x3f0988,_0x571151,_0x5b84fd,_0x42efa2));});}function P(_0x264f38){const _0x585d75=_0x3e7182;let _0x409e59=_0x264f38[_0x585d75(0x1d3)];if(_0x409e59[_0x585d75(0x160)]<=0x1)return _0x409e59;let _0x3d74b5=[];for(let _0x380ab1=0x1;_0x380ab1<_0x409e59[_0x585d75(0x160)];_0x380ab1++){let _0x511ffc=_0x409e59[_0x380ab1-0x1],_0x186dd0=_0x409e59[_0x380ab1];N(_0x3d74b5,_0x511ffc,_0x511ffc[_0x585d75(0x176)]??_0x511ffc,_0x186dd0['in']??_0x186dd0,_0x186dd0);}if(_0x264f38[_0x585d75(0x17a)]&&_0x409e59[_0x585d75(0x160)]>0x1){let _0x514fbb=_0x409e59[_0x409e59[_0x585d75(0x160)]-0x1],_0x5365b5=_0x409e59[0x0];N(_0x3d74b5,_0x514fbb,_0x514fbb[_0x585d75(0x176)]??_0x514fbb,_0x5365b5['in']??_0x5365b5,_0x5365b5);}return _0x3d74b5;}function F(_0x5904e1){const _0x363f03=_0x3e7182;let _0xc467c6=_0x5904e1['points'];if(_0xc467c6[_0x363f03(0x160)]<=0x1)return _0xc467c6;let _0xa74195=[];for(let _0x407ed1=0x0;_0x407ed1<_0xc467c6[_0x363f03(0x160)]-0x1;_0x407ed1++){let _0x42cf94=_0xc467c6[_0x407ed1],_0x3be5cb=_0xc467c6[_0x407ed1+0x1],_0x513e56=_0xc467c6[_0x407ed1-0x1]??_0x42cf94,_0x4ec859=_0xc467c6[_0x407ed1+0x2]??_0x3be5cb;N(_0xa74195,_0x42cf94,{'x':_0x42cf94['x']+(_0x3be5cb['x']-_0x513e56['x'])/0x6,'y':_0x42cf94['y']+(_0x3be5cb['y']-_0x513e56['y'])/0x6},{'x':_0x3be5cb['x']-(_0x4ec859['x']-_0x42cf94['x'])/0x6,'y':_0x3be5cb['y']-(_0x4ec859['y']-_0x42cf94['y'])/0x6},_0x3be5cb);}return _0xa74195;}function I(_0x12694d){const _0x329789=_0x3e7182;return _0x12694d['kind']===_0x329789(0x189)?P(_0x12694d):F(_0x12694d);}function L(_0x34428c){const _0x5348a2=_0x3e7182;let _0x2fec45=Math[_0x5348a2(0x19b)](_0x34428c*0x2710)/0x2710;return Object['is'](_0x2fec45,-0x0)?0x0:_0x2fec45;}function R(_0x347d1b){const _0x41ab66=_0x3e7182;let _0x41bd45=I(_0x347d1b);if(_0x41bd45[_0x41ab66(0x160)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x1210e2=Math['min'](..._0x41bd45[_0x41ab66(0x161)](_0xb378=>_0xb378['x'])),_0x20fad8=Math[_0x41ab66(0x18e)](..._0x41bd45[_0x41ab66(0x161)](_0x5d9dcd=>_0x5d9dcd['y'])),_0x52a1a7=Math['max'](..._0x41bd45[_0x41ab66(0x161)](_0x43c466=>_0x43c466['x'])),_0x4e3341=Math['max'](..._0x41bd45[_0x41ab66(0x161)](_0x13e26c=>_0x13e26c['y']));return{'left':L(_0x1210e2),'top':L(_0x20fad8),'width':L(Math[_0x41ab66(0x1b9)](0x1,_0x52a1a7-_0x1210e2)),'height':L(Math['max'](0x1,_0x4e3341-_0x20fad8))};}function z(_0x45ae7f,_0x3f7109){const _0x27a10a=_0x3e7182;let _0x3b0d65=_0x45ae7f[_0x27a10a(0x1d3)];if(_0x3b0d65['length']===0x0)return'';let _0x5c4980=['M\x20'+k(A(_0x3b0d65[0x0],_0x3f7109))];for(let _0x435980=0x1;_0x435980<_0x3b0d65['length'];_0x435980++){let _0x3186d7=_0x3b0d65[_0x435980-0x1],_0xf7a09d=_0x3b0d65[_0x435980],_0x3c7484=_0x3186d7[_0x27a10a(0x176)]??_0x3186d7,_0x1546d0=_0xf7a09d['in']??_0xf7a09d;_0x5c4980[_0x27a10a(0x1d1)]('C\x20'+k(A(_0x3c7484,_0x3f7109))+'\x20'+k(A(_0x1546d0,_0x3f7109))+'\x20'+k(A(_0xf7a09d,_0x3f7109)));}if(_0x45ae7f[_0x27a10a(0x17a)]&&_0x3b0d65[_0x27a10a(0x160)]>0x1){let _0x56fc9e=_0x3b0d65[_0x3b0d65[_0x27a10a(0x160)]-0x1],_0x209ff9=_0x3b0d65[0x0],_0x4a07ac=_0x56fc9e[_0x27a10a(0x176)]??_0x56fc9e,_0x4a7193=_0x209ff9['in']??_0x209ff9;_0x5c4980[_0x27a10a(0x1d1)]('C\x20'+k(A(_0x4a07ac,_0x3f7109))+'\x20'+k(A(_0x4a7193,_0x3f7109))+'\x20'+k(A(_0x209ff9,_0x3f7109))),_0x5c4980[_0x27a10a(0x1d1)]('Z');}return _0x5c4980[_0x27a10a(0x1ce)]('\x20');}function B(_0x245a07,_0x380510){const _0x542398=_0x3e7182;let _0x29c8fd=_0x245a07[_0x542398(0x19a)][_0x542398(0x161)](_0x24bd9a=>A(_0x24bd9a,_0x380510));if(_0x29c8fd['length']===0x0)return'';if(_0x29c8fd[_0x542398(0x160)]===0x1)return'M\x20'+k(_0x29c8fd[0x0]);let _0x5906d2=['M\x20'+k(_0x29c8fd[0x0])];for(let _0x3cd889=0x0;_0x3cd889<_0x29c8fd[_0x542398(0x160)]-0x1;_0x3cd889++){let _0x3cab4a=_0x29c8fd[_0x3cd889],_0x13e91f=_0x29c8fd[_0x3cd889+0x1],_0x21b42d=_0x29c8fd[_0x3cd889-0x1]??_0x3cab4a,_0x9a04c6=_0x29c8fd[_0x3cd889+0x2]??_0x13e91f,_0x2007c1={'x':_0x3cab4a['x']+(_0x13e91f['x']-_0x21b42d['x'])/0x6,'y':_0x3cab4a['y']+(_0x13e91f['y']-_0x21b42d['y'])/0x6},_0x2bca73={'x':_0x13e91f['x']-(_0x9a04c6['x']-_0x3cab4a['x'])/0x6,'y':_0x13e91f['y']-(_0x9a04c6['y']-_0x3cab4a['y'])/0x6};_0x5906d2[_0x542398(0x1d1)]('C\x20'+k(_0x2007c1)+'\x20'+k(_0x2bca73)+'\x20'+k(_0x13e91f));}return _0x5906d2[_0x542398(0x1ce)]('\x20');}function V(_0xeafa5a,_0x52e584){return _0xeafa5a['kind']==='pen'?z(_0xeafa5a,_0x52e584):B(_0xeafa5a,_0x52e584);}function H(_0x32eef0,_0x2542aa){const _0x413ec6=_0x3e7182;return _0x2542aa!=null&&_0x2542aa[_0x413ec6(0x1c2)]?_0x2542aa['color']:_0x32eef0['kind']===_0x413ec6(0x189)?_0x413ec6(0x1cf):_0x32eef0[_0x413ec6(0x1c2)];}function U(_0x46543d,_0x53ab57){const _0x47c4ba=_0x3e7182;return(_0x53ab57==null?void 0x0:_0x53ab57[_0x47c4ba(0x1a2)])===void 0x0?_0x46543d[_0x47c4ba(0x170)]==='pen'?0x2:_0x46543d[_0x47c4ba(0x1a2)]:_0x53ab57[_0x47c4ba(0x1a2)];}function W(_0x525787,_0x20647e){const _0x54647a=_0x3e7182;return(_0x20647e==null?void 0x0:_0x20647e[_0x54647a(0x1cb)])===void 0x0?_0x525787['kind']==='pen'?void 0x0:_0x525787[_0x54647a(0x1cb)]:_0x20647e[_0x54647a(0x1cb)];}function oe(_0x3aeb5f,_0x32649f){const _0xfef293=_0x3e7182;let _0x5c3f40=R(_0x3aeb5f),_0xcc1837=V(_0x3aeb5f,{'x':_0x5c3f40['left'],'y':_0x5c3f40[_0xfef293(0x17d)]}),_0x5e1270=_0x3aeb5f[_0xfef293(0x170)]===_0xfef293(0x189)&&_0x3aeb5f['closed'],_0x5d0e59=_0x32649f==null?void 0x0:_0x32649f['fillColor'];return{'shapeType':e[_0xfef293(0x1c8)][_0xfef293(0x166)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x5c3f40[_0xfef293(0x1a2)],'h':_0x5c3f40[_0xfef293(0x175)],'fill':_0x5e1270?_0xfef293(0x1bb):_0xfef293(0x19e),'stroke':!0x0,'data':_0xcc1837,'dataArray':K(_0x3aeb5f,{'x':_0x5c3f40[_0xfef293(0x1b3)],'y':_0x5c3f40[_0xfef293(0x17d)]})}]},'fill':_0x5e1270&&_0x5d0e59?{'color':_0x5d0e59,'fillType':e[_0xfef293(0x1aa)][_0xfef293(0x174)]}:{'fillType':e[_0xfef293(0x1aa)][_0xfef293(0x179)]},'stroke':{'color':H(_0x3aeb5f,_0x32649f),'width':U(_0x3aeb5f,_0x32649f),'opacity':W(_0x3aeb5f,_0x32649f),'lineStrokeType':e['ShapeLineTypeEnum']['SolidLine'],'capType':e['ShapeLineCapEnum'][_0xfef293(0x1d4)],'lineJoinType':e[_0xfef293(0x18b)][_0xfef293(0x1d4)]}};}function G(_0x221b42,_0x5defe2){return{'x':_0x221b42['x']-_0x5defe2['x'],'y':_0x221b42['y']-_0x5defe2['y']};}function K(_0x5cb697,_0x31ad1a){const _0x144b8d=_0x3e7182;if(_0x5cb697[_0x144b8d(0x170)]===_0x144b8d(0x189)){let _0x47cc30=_0x5cb697[_0x144b8d(0x1d3)];if(_0x47cc30[_0x144b8d(0x160)]===0x0)return[];let _0x356a0d=G(_0x47cc30[0x0],_0x31ad1a),_0x19d51b=[{'command':'M','points':[_0x356a0d['x'],_0x356a0d['y']]}];for(let _0x2316ce=0x1;_0x2316ce<_0x47cc30[_0x144b8d(0x160)];_0x2316ce++){let _0x5620fa=_0x47cc30[_0x2316ce-0x1],_0x49d90b=_0x47cc30[_0x2316ce],_0x22d4f6=G(_0x5620fa[_0x144b8d(0x176)]??_0x5620fa,_0x31ad1a),_0x261345=G(_0x49d90b['in']??_0x49d90b,_0x31ad1a),_0x2ebc3c=G(_0x49d90b,_0x31ad1a);_0x19d51b[_0x144b8d(0x1d1)]({'command':'C','points':[_0x22d4f6['x'],_0x22d4f6['y'],_0x261345['x'],_0x261345['y'],_0x2ebc3c['x'],_0x2ebc3c['y']]});}if(_0x5cb697[_0x144b8d(0x17a)]&&_0x47cc30['length']>0x1){let _0x2100aa=_0x47cc30[_0x47cc30['length']-0x1],_0x4fd494=_0x47cc30[0x0],_0x55e501=G(_0x2100aa[_0x144b8d(0x176)]??_0x2100aa,_0x31ad1a),_0x567888=G(_0x4fd494['in']??_0x4fd494,_0x31ad1a),_0x2a890c=G(_0x4fd494,_0x31ad1a);_0x19d51b[_0x144b8d(0x1d1)]({'command':'C','points':[_0x55e501['x'],_0x55e501['y'],_0x567888['x'],_0x567888['y'],_0x2a890c['x'],_0x2a890c['y']]}),_0x19d51b[_0x144b8d(0x1d1)]({'command':'z','points':[]});}return _0x19d51b;}let _0x5cd314=_0x5cb697[_0x144b8d(0x19a)]['map'](_0x29e169=>G(_0x29e169,_0x31ad1a));if(_0x5cd314[_0x144b8d(0x160)]===0x0)return[];let _0x56d914=[{'command':'M','points':[_0x5cd314[0x0]['x'],_0x5cd314[0x0]['y']]}];for(let _0x10fb1c=0x0;_0x10fb1c<_0x5cd314[_0x144b8d(0x160)]-0x1;_0x10fb1c++){let _0x1bf3cc=_0x5cd314[_0x10fb1c],_0x2ff88c=_0x5cd314[_0x10fb1c+0x1],_0x2a4fb1=_0x5cd314[_0x10fb1c-0x1]??_0x1bf3cc,_0x9b63f4=_0x5cd314[_0x10fb1c+0x2]??_0x2ff88c,_0x1ac4fe={'x':_0x1bf3cc['x']+(_0x2ff88c['x']-_0x2a4fb1['x'])/0x6,'y':_0x1bf3cc['y']+(_0x2ff88c['y']-_0x2a4fb1['y'])/0x6},_0x3a1842={'x':_0x2ff88c['x']-(_0x9b63f4['x']-_0x1bf3cc['x'])/0x6,'y':_0x2ff88c['y']-(_0x9b63f4['y']-_0x1bf3cc['y'])/0x6};_0x56d914['push']({'command':'C','points':[_0x1ac4fe['x'],_0x1ac4fe['y'],_0x3a1842['x'],_0x3a1842['y'],_0x2ff88c['x'],_0x2ff88c['y']]});}return _0x56d914;}function q(_0x22c54a){const _0x5a3655=_0x3e7182;let {model:_0x189c5f,sourceModel:_0x1f0786=_0x189c5f,style:_0x5b93d1}=_0x22c54a,_0x261d49=_0x22c54a[_0x5a3655(0x1c7)]??_0x189c5f[_0x5a3655(0x170)],_0x2d2908=R(_0x189c5f),_0x451459=_0x189c5f['kind']===_0x5a3655(0x189)&&_0x261d49!=='pen'?_0x189c5f:void 0x0;return{'transform':{..._0x2d2908,'rotation':0x0},'shapeData':oe(_0x189c5f,_0x5b93d1),'ink':{'version':0x1,'tool':_0x261d49,'sourceModel':_0x1f0786,..._0x451459?{'editModel':_0x451459}:{},'normalizedBounds':_0x2d2908}};}var se=_0x3e7182(0x15d),ce=_0x3e7182(0x197);function J(_0x4bcf6d){'@babel/helpers - typeof';const _0x33f0e1=_0x3e7182;return J=typeof Symbol=='function'&&typeof Symbol[_0x33f0e1(0x1cd)]==_0x33f0e1(0x182)?function(_0x1a8197){return typeof _0x1a8197;}:function(_0x33f87f){const _0x353b6c=_0x33f0e1;return _0x33f87f&&typeof Symbol==_0x353b6c(0x16b)&&_0x33f87f[_0x353b6c(0x1bf)]===Symbol&&_0x33f87f!==Symbol[_0x353b6c(0x15c)]?_0x353b6c(0x182):typeof _0x33f87f;},J(_0x4bcf6d);}function le(_0x4418cb,_0x595a00){const _0x330ce2=_0x3e7182;if(J(_0x4418cb)!=_0x330ce2(0x1b1)||!_0x4418cb)return _0x4418cb;var _0x4b39af=_0x4418cb[Symbol[_0x330ce2(0x1ba)]];if(_0x4b39af!==void 0x0){var _0x5906ab=_0x4b39af[_0x330ce2(0x1a8)](_0x4418cb,_0x595a00||_0x330ce2(0x199));if(J(_0x5906ab)!=_0x330ce2(0x1b1))return _0x5906ab;throw TypeError(_0x330ce2(0x1c6));}return(_0x595a00===_0x330ce2(0x15b)?String:Number)(_0x4418cb);}function ue(_0x2f9af4){const _0x331514=_0x3e7182;var _0x46ef32=le(_0x2f9af4,_0x331514(0x15b));return J(_0x46ef32)==_0x331514(0x182)?_0x46ef32:_0x46ef32+'';}function Y(_0x1cea2d,_0x247c56,_0x55d348){return(_0x247c56=ue(_0x247c56))in _0x1cea2d?Object['defineProperty'](_0x1cea2d,_0x247c56,{'value':_0x55d348,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1cea2d[_0x247c56]=_0x55d348,_0x1cea2d;}const X=(0x0,n[_0x3e7182(0x1ae)])(_0x3e7182(0x17f));var de=class{constructor(){const _0xa7a472=_0x3e7182;Y(this,_0xa7a472(0x1a0),[]);}[_0x3e7182(0x1af)](_0x48b8ee){const _0x53ded8=_0x3e7182;return this[_0x53ded8(0x1a0)][_0x53ded8(0x1d1)](_0x48b8ee),(0x0,n[_0x53ded8(0x1d2)])(()=>{const _0x410809=_0x53ded8;let _0x73e82c=this[_0x410809(0x1a0)][_0x410809(0x1cc)](_0x48b8ee);_0x73e82c>=0x0&&this['_adapters'][_0x410809(0x1b0)](_0x73e82c,0x1);});}[_0x3e7182(0x1a7)](_0x280306){const _0x54d844=_0x3e7182;for(let _0x343461 of this['_adapters'])if(_0x343461[_0x54d844(0x1a7)](_0x280306))return!0x0;return!0x1;}async['createCustomShape'](_0x13ffe1){const _0x380333=_0x3e7182;for(let _0x1291a2 of this[_0x380333(0x1a0)])if(_0x1291a2[_0x380333(0x1b6)]&&await _0x1291a2['createCustomShape'](_0x13ffe1))return!0x0;return!0x1;}};const fe={'id':'ink.operation.start','type':n[_0x3e7182(0x187)][_0x3e7182(0x18f)],'handler':(_0x1bc1c9,_0xc84fed)=>_0xc84fed?_0x1bc1c9['get'](X)['beginInkMode'](_0xc84fed):!0x1},Z={};function Q(_0x2fb091,_0x3de542){return function(_0x46add7,_0x137913){_0x3de542(_0x46add7,_0x137913,_0x2fb091);};}function pe(_0x4ee0de,_0xf0d2d0,_0x448538,_0x28eb91){const _0x3b0c55=_0x3e7182;var _0x4360da=arguments[_0x3b0c55(0x160)],_0x1fef91=_0x4360da<0x3?_0xf0d2d0:_0x28eb91===null?_0x28eb91=Object['getOwnPropertyDescriptor'](_0xf0d2d0,_0x448538):_0x28eb91,_0xdb1a75;if(typeof Reflect==_0x3b0c55(0x1b1)&&typeof Reflect[_0x3b0c55(0x1c1)]==_0x3b0c55(0x16b))_0x1fef91=Reflect[_0x3b0c55(0x1c1)](_0x4ee0de,_0xf0d2d0,_0x448538,_0x28eb91);else{for(var _0x1533da=_0x4ee0de[_0x3b0c55(0x160)]-0x1;_0x1533da>=0x0;_0x1533da--)(_0xdb1a75=_0x4ee0de[_0x1533da])&&(_0x1fef91=(_0x4360da<0x3?_0xdb1a75(_0x1fef91):_0x4360da>0x3?_0xdb1a75(_0xf0d2d0,_0x448538,_0x1fef91):_0xdb1a75(_0xf0d2d0,_0x448538))||_0x1fef91);}return _0x4360da>0x3&&_0x1fef91&&Object['defineProperty'](_0xf0d2d0,_0x448538,_0x1fef91),_0x1fef91;}let $=class extends n[_0x3e7182(0x162)]{constructor(_0xab54ce=Z,_0x410a47,_0x321f8b,_0x3c0387){const _0x3c1a58=_0x3e7182;super(),this[_0x3c1a58(0x16d)]=_0xab54ce,this[_0x3c1a58(0x17e)]=_0x410a47,this[_0x3c1a58(0x17c)]=_0x321f8b,this['_configService']=_0x3c0387;let {..._0x4109c6}=(0x0,n[_0x3c1a58(0x16c)])({},Z,this['_config']);this[_0x3c1a58(0x19f)][_0x3c1a58(0x1b5)](_0x3c1a58(0x1ad),_0x4109c6);}[_0x3e7182(0x171)](){const _0x4a06d5=_0x3e7182;[[X,{'useClass':de}]][_0x4a06d5(0x180)](_0x6a7a85=>this['_injector']['add'](_0x6a7a85)),this[_0x4a06d5(0x185)](this[_0x4a06d5(0x17c)][_0x4a06d5(0x16a)](fe));}};Y($,_0x3e7182(0x188),'UNIVER_INK_PLUGIN'),Y($,_0x3e7182(0x190),se),Y($,_0x3e7182(0x1c5),ce),Y($,_0x3e7182(0x1ca),n['UniverInstanceType']['UNIVER_UNKNOWN']),$=pe([(0x0,n[_0x3e7182(0x17b)])(t[_0x3e7182(0x1a3)]),Q(0x1,(0x0,n[_0x3e7182(0x178)])(n[_0x3e7182(0x1c4)])),Q(0x2,n[_0x3e7182(0x1c0)]),Q(0x3,n[_0x3e7182(0x1a1)])],$),exports[_0x3e7182(0x15a)]=X,Object[_0x3e7182(0x158)](exports,_0x3e7182(0x15f),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x3e7182(0x1c9)]=q,exports[_0x3e7182(0x159)]=re,exports[_0x3e7182(0x1bc)]=E,exports[_0x3e7182(0x165)]=w,exports[_0x3e7182(0x1b4)]=ie,exports[_0x3e7182(0x164)]=S,exports['getInkModelBounds']=R,exports[_0x3e7182(0x183)]=x,exports[_0x3e7182(0x1a6)]=C,exports['isInkPenHandleVisible']=p,exports[_0x3e7182(0x1a9)]=ae,exports[_0x3e7182(0x184)]=T;
|
|
1
|
+
const _0x300370=_0xcde8;(function(_0x5ac50c,_0x11ca66){const _0x28ab15=_0xcde8,_0x3856e9=_0x5ac50c();while(!![]){try{const _0x4324b3=-parseInt(_0x28ab15(0xbc))/0x1+-parseInt(_0x28ab15(0x126))/0x2*(parseInt(_0x28ab15(0x110))/0x3)+parseInt(_0x28ab15(0xef))/0x4*(-parseInt(_0x28ab15(0xce))/0x5)+parseInt(_0x28ab15(0xfb))/0x6*(-parseInt(_0x28ab15(0x104))/0x7)+parseInt(_0x28ab15(0xfd))/0x8*(-parseInt(_0x28ab15(0xdc))/0x9)+parseInt(_0x28ab15(0x115))/0xa+parseInt(_0x28ab15(0xbb))/0xb;if(_0x4324b3===_0x11ca66)break;else _0x3856e9['push'](_0x3856e9['shift']());}catch(_0x307556){_0x3856e9['push'](_0x3856e9['shift']());}}}(_0x5d1d,0x661a8),Object[_0x300370(0xff)](exports,Symbol[_0x300370(0xdb)],{'value':_0x300370(0xc7)}));let e=require('@univerjs-pro/engine-shape'),t=require('@univerjs-pro/license'),n=require('@univerjs/core');const r=0.0001;function i(_0x4a7456){return{'x':_0x4a7456['x'],'y':_0x4a7456['y']};}function a(_0x4d2bf8){const _0x316646=_0x300370;return{..._0x4d2bf8,'in':_0x4d2bf8['in']?i(_0x4d2bf8['in']):void 0x0,'out':_0x4d2bf8[_0x316646(0xd3)]?i(_0x4d2bf8[_0x316646(0xd3)]):void 0x0};}function o(_0x18f46c){const _0x453f6b=_0x300370;return{'kind':'pen','closed':_0x18f46c[_0x453f6b(0x102)],'anchors':_0x18f46c[_0x453f6b(0x129)][_0x453f6b(0xd0)](a)};}function s(_0x2b0724,_0x4a623c,_0x3c873c){return{'x':_0x2b0724['x']+(_0x4a623c['x']-_0x2b0724['x'])*_0x3c873c,'y':_0x2b0724['y']+(_0x4a623c['y']-_0x2b0724['y'])*_0x3c873c};}function c(_0x2b1df1,_0xdebbd6){const _0x1c174c=_0x300370;return Math[_0x1c174c(0x122)](_0x2b1df1['x']-_0xdebbd6['x'],_0x2b1df1['y']-_0xdebbd6['y']);}function l(_0x3f50c6){const _0x61dd56=_0x300370;let _0x172528=Math[_0x61dd56(0x122)](_0x3f50c6['x'],_0x3f50c6['y']);return _0x172528<r?{'x':0x1,'y':0x0}:{'x':_0x3f50c6['x']/_0x172528,'y':_0x3f50c6['y']/_0x172528};}function u(_0x4589e7,_0x270bb1,_0x1a78b5=c(_0x4589e7,_0x270bb1)){let _0x2921f9=l({'x':_0x4589e7['x']-_0x270bb1['x'],'y':_0x4589e7['y']-_0x270bb1['y']});return{'x':_0x4589e7['x']+_0x2921f9['x']*_0x1a78b5,'y':_0x4589e7['y']+_0x2921f9['y']*_0x1a78b5};}function d(_0x1ead63,_0x4c8294){const _0x292772=_0x300370;let {anchors:_0x4f0354}=_0x1ead63;return _0x4f0354[_0x292772(0xfc)]<0x2||_0x4c8294<0x0?null:_0x4c8294<_0x4f0354[_0x292772(0xfc)]-0x1?{'startIndex':_0x4c8294,'endIndex':_0x4c8294+0x1,'start':_0x4f0354[_0x4c8294],'end':_0x4f0354[_0x4c8294+0x1]}:_0x1ead63[_0x292772(0x102)]&&_0x4c8294===_0x4f0354['length']-0x1?{'startIndex':_0x4f0354['length']-0x1,'endIndex':0x0,'start':_0x4f0354[_0x4f0354['length']-0x1],'end':_0x4f0354[0x0]}:null;}function f(_0xe5faee,_0x43fd79){const _0x5a3917=_0x300370;let _0x1ca084=d(_0xe5faee,_0x43fd79);return _0x1ca084?[_0x1ca084[_0x5a3917(0xd9)],_0x1ca084[_0x5a3917(0xd9)][_0x5a3917(0xd3)]??_0x1ca084[_0x5a3917(0xd9)],_0x1ca084[_0x5a3917(0xbe)]['in']??_0x1ca084[_0x5a3917(0xbe)],_0x1ca084[_0x5a3917(0xbe)]]:null;}function ee(_0x456061,_0x49004c){const _0x546cd4=_0x300370;return _0x49004c===_0x546cd4(0xc0)?_0x456061:_0x456061[_0x49004c]??null;}function p(_0x5f01c5,_0x504ccc,_0x397171){const _0x249beb=_0x300370;return _0x397171===_0x249beb(0xc0)||_0x5f01c5[_0x249beb(0x102)]?!0x0:_0x397171==='in'?_0x504ccc>0x0:_0x504ccc<_0x5f01c5[_0x249beb(0x129)][_0x249beb(0xfc)]-0x1;}function m(_0x24b582,_0x349b25){let [_0x1bd24b,_0x4ae84f,_0x26f593,_0x1ded55]=_0x24b582,_0x23bd97=s(_0x1bd24b,_0x4ae84f,_0x349b25),_0x243728=s(_0x4ae84f,_0x26f593,_0x349b25),_0x5224cc=s(_0x26f593,_0x1ded55,_0x349b25);return s(s(_0x23bd97,_0x243728,_0x349b25),s(_0x243728,_0x5224cc,_0x349b25),_0x349b25);}function h(_0xae90c8,_0x373582){let [_0x37766f,_0x38d2a9,_0x570744,_0x3f0251]=_0xae90c8,_0x3768ad=s(_0x37766f,_0x38d2a9,_0x373582),_0x3546e8=s(_0x38d2a9,_0x570744,_0x373582),_0x54c186=s(_0x570744,_0x3f0251,_0x373582),_0x16a16c=s(_0x3768ad,_0x3546e8,_0x373582),_0x4ad6c9=s(_0x3546e8,_0x54c186,_0x373582),_0x4a1bbf=s(_0x16a16c,_0x4ad6c9,_0x373582);return{'left':[_0x37766f,_0x3768ad,_0x16a16c,_0x4a1bbf],'right':[_0x4a1bbf,_0x4ad6c9,_0x54c186,_0x3f0251]};}function g(_0x1acda7,_0x48d0f9,_0x319bd2){let _0x4a058e=_0x319bd2['x']-_0x48d0f9['x'],_0x40d7e7=_0x319bd2['y']-_0x48d0f9['y'],_0x4fdaab=_0x4a058e*_0x4a058e+_0x40d7e7*_0x40d7e7,_0x308808=_0x4fdaab<=r?0x0:Math['max'](0x0,Math['min'](0x1,((_0x1acda7['x']-_0x48d0f9['x'])*_0x4a058e+(_0x1acda7['y']-_0x48d0f9['y'])*_0x40d7e7)/_0x4fdaab)),_0x157f11={'x':_0x48d0f9['x']+_0x4a058e*_0x308808,'y':_0x48d0f9['y']+_0x40d7e7*_0x308808};return{'point':_0x157f11,'ratio':_0x308808,'distance':c(_0x1acda7,_0x157f11)};}function te(_0x9fcd13,_0x303c48,_0x294daf){return g(_0x9fcd13,_0x303c48,_0x294daf)['distance']**0x2;}function _(_0x228b33,_0x16c38b){const _0xc2b313=_0x300370;if(_0x228b33[_0xc2b313(0xfc)]<=0x2)return _0x228b33[_0xc2b313(0xd0)](i);let _0x79b7d4=0x0,_0x4a65ff=0x0,_0x1fafa1=_0x228b33[0x0],_0x34a5af=_0x228b33[_0x228b33['length']-0x1],_0x33334c=_0x16c38b*_0x16c38b;for(let _0x4507e2=0x1;_0x4507e2<_0x228b33[_0xc2b313(0xfc)]-0x1;_0x4507e2++){let _0xa16154=te(_0x228b33[_0x4507e2],_0x1fafa1,_0x34a5af);_0xa16154>_0x79b7d4&&(_0x79b7d4=_0xa16154,_0x4a65ff=_0x4507e2);}if(_0x79b7d4<=_0x33334c)return[i(_0x1fafa1),i(_0x34a5af)];let _0x1c3751=_(_0x228b33[_0xc2b313(0x124)](0x0,_0x4a65ff+0x1),_0x16c38b),_0x3ab85a=_(_0x228b33[_0xc2b313(0x124)](_0x4a65ff),_0x16c38b);return[..._0x1c3751['slice'](0x0,-0x1),..._0x3ab85a];}function ne(_0x2a7576,_0x601126){let _0xe9af4f=_0x2a7576[_0x601126],_0x5c6c80=_0x2a7576[_0x601126+0x1],_0x2b9540=_0x2a7576[_0x601126-0x1]??_0xe9af4f;return{'x':_0xe9af4f['x']+(_0x5c6c80['x']-_0x2b9540['x'])/0x6,'y':_0xe9af4f['y']+(_0x5c6c80['y']-_0x2b9540['y'])/0x6};}function v(_0x3521dc,_0x53cb9d){let _0x4e2250=_0x3521dc[_0x53cb9d],_0x438c5c=_0x3521dc[_0x53cb9d-0x1],_0x1a5b41=_0x3521dc[_0x53cb9d+0x1]??_0x4e2250;return{'x':_0x4e2250['x']-(_0x1a5b41['x']-_0x438c5c['x'])/0x6,'y':_0x4e2250['y']-(_0x1a5b41['y']-_0x438c5c['y'])/0x6};}function y(_0x58c6c0,_0x2285ee){const _0xaf3d94=_0x300370;let _0x24bb04=_0x58c6c0[_0xaf3d94(0x129)][_0x2285ee],_0xd385c3=_0x58c6c0['anchors'][_0x2285ee-0x1]??(_0x58c6c0[_0xaf3d94(0x102)]?_0x58c6c0[_0xaf3d94(0x129)][_0x58c6c0[_0xaf3d94(0x129)][_0xaf3d94(0xfc)]-0x1]:null),_0x59902d=_0x58c6c0[_0xaf3d94(0x129)][_0x2285ee+0x1]??(_0x58c6c0[_0xaf3d94(0x102)]?_0x58c6c0['anchors'][0x0]:null),_0x2c2f6f=_0xd385c3&&_0x59902d?l({'x':_0x59902d['x']-_0xd385c3['x'],'y':_0x59902d['y']-_0xd385c3['y']}):_0x59902d?l({'x':_0x59902d['x']-_0x24bb04['x'],'y':_0x59902d['y']-_0x24bb04['y']}):_0xd385c3?l({'x':_0x24bb04['x']-_0xd385c3['x'],'y':_0x24bb04['y']-_0xd385c3['y']}):{'x':0x1,'y':0x0},_0x52983d=_0xd385c3&&_0x59902d?Math[_0xaf3d94(0xda)](0x32,c(_0xd385c3,_0x59902d)/0x4):0x32;return{'in':{'x':_0x24bb04['x']-_0x2c2f6f['x']*_0x52983d,'y':_0x24bb04['y']-_0x2c2f6f['y']*_0x52983d},'out':{'x':_0x24bb04['x']+_0x2c2f6f['x']*_0x52983d,'y':_0x24bb04['y']+_0x2c2f6f['y']*_0x52983d}};}function b(_0x3d9aa0,_0x301002){const _0x958700=_0x300370;let _0x4a4074=_0x3d9aa0[_0x301002],_0x5162fa=_0x301002==='in'?_0x958700(0xd3):'in',_0x2a7199=_0x3d9aa0[_0x5162fa];if(_0x4a4074){if(_0x3d9aa0['pointType']==='symmetric'){_0x3d9aa0[_0x5162fa]=u(_0x3d9aa0,_0x4a4074);return;}_0x3d9aa0[_0x958700(0x11e)]===_0x958700(0xcd)&&(_0x3d9aa0[_0x5162fa]=u(_0x3d9aa0,_0x4a4074,_0x2a7199?c(_0x3d9aa0,_0x2a7199):c(_0x3d9aa0,_0x4a4074)));}}function x(_0x3db70a,_0x28adc6){const _0xb40760=_0x300370;let _0x25655b=o(_0x3db70a);return!_0x28adc6||_0x25655b[_0xb40760(0x102)]||_0x25655b[_0xb40760(0x129)][_0xb40760(0xfc)]===0x0||_0x25655b[_0xb40760(0x129)]['push']({'id':'__ink-preview-anchor__','x':_0x28adc6['x'],'y':_0x28adc6['y'],'pointType':_0xb40760(0x11d)}),_0x25655b;}function re(_0x994f60,_0xe507d9={}){const _0xe4c48f=_0x300370;let _0x33d981=Math[_0xe4c48f(0xda)](0x0,_0xe507d9[_0xe4c48f(0x108)]??Math[_0xe4c48f(0xda)](0x4,_0x994f60[_0xe4c48f(0xd8)]*0.35)),_0x1680d8=_0xe507d9[_0xe4c48f(0xde)]??(_0x5d3e9e=>'ink-centerline-'+_0x5d3e9e),_0x8a8218=_(_0x994f60[_0xe4c48f(0x111)],_0x33d981),_0x228a53=_0x8a8218[_0xe4c48f(0xd0)]((_0x2e35d6,_0x1dcea1)=>({'id':_0x1680d8(_0x1dcea1),'x':_0x2e35d6['x'],'y':_0x2e35d6['y'],'pointType':_0xe4c48f(0xd4)}));for(let _0x45a150=0x0;_0x45a150<_0x228a53[_0xe4c48f(0xfc)]-0x1;_0x45a150++)_0x228a53[_0x45a150][_0xe4c48f(0xd3)]=ne(_0x8a8218,_0x45a150),_0x228a53[_0x45a150+0x1]['in']=v(_0x8a8218,_0x45a150+0x1);return{'kind':'pen','closed':!0x1,'anchors':_0x228a53};}function ie(_0x7323c2,_0x47c334,_0x3798be){const _0x2745d3=_0x300370;let _0x4e4d1c=null,_0x214ce7=[_0x2745d3(0xc0),'in',_0x2745d3(0xd3)];return _0x7323c2[_0x2745d3(0x129)][_0x2745d3(0x112)]((_0x2d7ec2,_0x2b6d3a)=>{const _0x55b8e0=_0x2745d3;_0x214ce7[_0x55b8e0(0x112)](_0x32d2dc=>{const _0x2029ff=_0x55b8e0;if(!p(_0x7323c2,_0x2b6d3a,_0x32d2dc))return;let _0x1a10ca=ee(_0x2d7ec2,_0x32d2dc);if(!_0x1a10ca)return;let _0x306309=c(_0x47c334,_0x1a10ca);_0x306309>_0x3798be||_0x4e4d1c&&_0x306309>=_0x4e4d1c[_0x2029ff(0xf6)]||(_0x4e4d1c={'handle':{'kind':_0x32d2dc,'anchorId':_0x2d7ec2['id']},'point':i(_0x1a10ca),'distance':_0x306309});});}),_0x4e4d1c;}function S(_0x31b005,_0x21783e,_0x444a17){const _0x41705e=_0x300370;let _0x52eea5=null,_0x5a5597=_0x31b005[_0x41705e(0x102)]?_0x31b005['anchors'][_0x41705e(0xfc)]:Math['max'](0x0,_0x31b005[_0x41705e(0x129)][_0x41705e(0xfc)]-0x1);for(let _0x136610=0x0;_0x136610<_0x5a5597;_0x136610++){let _0x3df24d=f(_0x31b005,_0x136610);if(!_0x3df24d)continue;let _0xdcffec=m(_0x3df24d,0x0);for(let _0x5ce39e=0x1;_0x5ce39e<=0x20;_0x5ce39e++){let _0x177639=m(_0x3df24d,_0x5ce39e/0x20),_0x337776=g(_0x21783e,_0xdcffec,_0x177639),_0x3dbd9f=(_0x5ce39e-0x1+_0x337776['ratio'])/0x20;(!_0x52eea5||_0x337776[_0x41705e(0xf6)]<_0x52eea5[_0x41705e(0xf6)])&&(_0x52eea5={'segmentIndex':_0x136610,'t':_0x3dbd9f,'point':_0x337776[_0x41705e(0xe2)],'distance':_0x337776['distance']}),_0xdcffec=_0x177639;}}return _0x52eea5&&_0x52eea5[_0x41705e(0xf6)]<=_0x444a17?_0x52eea5:null;}function C(_0x4b9f0d,_0x324213,_0x297081){const _0x3c961b=_0x300370;let _0x58429f=o(_0x4b9f0d),_0x49809e=d(_0x58429f,_0x324213[_0x3c961b(0xe0)]),_0x2d13ca=f(_0x58429f,_0x324213[_0x3c961b(0xe0)]);if(!_0x49809e||!_0x2d13ca)return _0x58429f;let _0x3c61f9=h(_0x2d13ca,Math[_0x3c961b(0xda)](0x0,Math[_0x3c961b(0x12a)](0x1,_0x324213['t']))),_0x351627={'id':_0x297081(),'x':_0x3c61f9[_0x3c961b(0x105)][0x3]['x'],'y':_0x3c61f9['left'][0x3]['y'],'in':i(_0x3c61f9[_0x3c961b(0x105)][0x2]),'out':i(_0x3c61f9[_0x3c961b(0x107)][0x1]),'pointType':_0x3c961b(0xd4)};return _0x58429f[_0x3c961b(0x129)][_0x49809e[_0x3c961b(0xf8)]][_0x3c961b(0xd3)]=i(_0x3c61f9[_0x3c961b(0x105)][0x1]),_0x58429f[_0x3c961b(0x129)][_0x49809e[_0x3c961b(0xea)]]['in']=i(_0x3c61f9[_0x3c961b(0x107)][0x2]),_0x58429f['anchors'][_0x3c961b(0xdf)](_0x49809e[_0x3c961b(0xf8)]+0x1,0x0,_0x351627),_0x58429f;}function _0xcde8(_0x2342de,_0x4b29f2){_0x2342de=_0x2342de-0xb8;const _0x5d1d1b=_0x5d1d();let _0xcde8a1=_0x5d1d1b[_0x2342de];return _0xcde8a1;}function w(_0x472767,_0x3761bc){const _0x3692f6=_0x300370;let _0x544b6c=o(_0x472767);return _0x544b6c[_0x3692f6(0x129)]=_0x544b6c['anchors']['filter'](_0x592ec5=>_0x592ec5['id']!==_0x3761bc),_0x544b6c[_0x3692f6(0x102)]&&_0x544b6c[_0x3692f6(0x129)][_0x3692f6(0xfc)]<0x3&&(_0x544b6c[_0x3692f6(0x102)]=!0x1),_0x544b6c;}function T(_0x5465a5,_0x4452db,_0x4bfcdd){const _0x248d20=_0x300370;let _0x27b7a5=o(_0x5465a5),_0x249f37=_0x27b7a5[_0x248d20(0x129)][_0x248d20(0x120)](_0x301b1b=>_0x301b1b['id']===_0x4452db),_0x259c83=_0x27b7a5['anchors'][_0x249f37];if(!_0x259c83)return _0x27b7a5;if(_0x259c83[_0x248d20(0x11e)]=_0x4bfcdd,_0x4bfcdd===_0x248d20(0x11d))return delete _0x259c83['in'],delete _0x259c83[_0x248d20(0xd3)],_0x27b7a5;let _0x506fd5=y(_0x27b7a5,_0x249f37);if(_0x259c83['in']=_0x259c83['in']?i(_0x259c83['in']):_0x506fd5['in'],_0x259c83[_0x248d20(0xd3)]=_0x259c83[_0x248d20(0xd3)]?i(_0x259c83[_0x248d20(0xd3)]):_0x506fd5[_0x248d20(0xd3)],_0x4bfcdd==='symmetric'){let _0x7ed949=Math[_0x248d20(0xda)](c(_0x259c83,_0x259c83['in']),c(_0x259c83,_0x259c83[_0x248d20(0xd3)]),0x32),_0x3624d4=l({'x':_0x259c83[_0x248d20(0xd3)]['x']-_0x259c83['x'],'y':_0x259c83[_0x248d20(0xd3)]['y']-_0x259c83['y']});_0x259c83[_0x248d20(0xd3)]={'x':_0x259c83['x']+_0x3624d4['x']*_0x7ed949,'y':_0x259c83['y']+_0x3624d4['y']*_0x7ed949},_0x259c83['in']={'x':_0x259c83['x']-_0x3624d4['x']*_0x7ed949,'y':_0x259c83['y']-_0x3624d4['y']*_0x7ed949};}else _0x4bfcdd===_0x248d20(0xcd)&&b(_0x259c83,_0x248d20(0xd3));return _0x27b7a5;}function E(_0x3fa7d5,_0x50d19c){const _0x5c8c80=_0x300370;let _0x23fe68=_0x3fa7d5[_0x5c8c80(0x129)][_0x5c8c80(0x10d)](_0x416d7c=>_0x416d7c['id']===_0x50d19c),_0x22e8b4=(_0x23fe68==null?void 0x0:_0x23fe68[_0x5c8c80(0x11e)])??'corner';return T(_0x3fa7d5,_0x50d19c,_0x22e8b4===_0x5c8c80(0x11d)?_0x5c8c80(0xcd):_0x22e8b4==='smooth'?_0x5c8c80(0xd7):_0x22e8b4===_0x5c8c80(0xd7)?_0x5c8c80(0xd4):_0x5c8c80(0x11d));}function ae(_0x549cfe,_0x3f2808,_0x1fca14){const _0xb304e7=_0x300370;let _0x179666=o(_0x549cfe),_0x576f62=_0x179666[_0xb304e7(0x129)][_0xb304e7(0x10d)](_0x154382=>_0x154382['id']===_0x3f2808['anchorId']);if(!_0x576f62)return _0x179666;if(_0x3f2808[_0xb304e7(0xdd)]==='anchor'){let _0x1c2d0c={'x':_0x1fca14['x']-_0x576f62['x'],'y':_0x1fca14['y']-_0x576f62['y']};return _0x576f62['x']=_0x1fca14['x'],_0x576f62['y']=_0x1fca14['y'],_0x576f62['in']&&={'x':_0x576f62['in']['x']+_0x1c2d0c['x'],'y':_0x576f62['in']['y']+_0x1c2d0c['y']},_0x576f62[_0xb304e7(0xd3)]&&={'x':_0x576f62[_0xb304e7(0xd3)]['x']+_0x1c2d0c['x'],'y':_0x576f62[_0xb304e7(0xd3)]['y']+_0x1c2d0c['y']},_0x179666;}return _0x576f62[_0x3f2808['kind']]=i(_0x1fca14),_0x576f62[_0xb304e7(0x11e)]===_0xb304e7(0x11d)&&(_0x576f62[_0xb304e7(0x11e)]=_0xb304e7(0xd4)),b(_0x576f62,_0x3f2808[_0xb304e7(0xdd)]),_0x179666;}const D=1e-9;function O(_0x1434b7){const _0x4e1d62=_0x300370;let _0x5065d4=Math[_0x4e1d62(0xf7)](_0x1434b7*0x2710)/0x2710;return Object['is'](_0x5065d4,-0x0)?'0':String(_0x5065d4);}function k(_0x126975){return O(_0x126975['x'])+'\x20'+O(_0x126975['y']);}function A(_0x414883,_0x46a92c){return{'x':_0x414883['x']-_0x46a92c['x'],'y':_0x414883['y']-_0x46a92c['y']};}function j(_0x275a02,_0x374865,_0x20a12f,_0x115145,_0x55f9c1){let _0x12677c=0x1-_0x55f9c1;return{'x':_0x12677c*_0x12677c*_0x12677c*_0x275a02['x']+0x3*_0x12677c*_0x12677c*_0x55f9c1*_0x374865['x']+0x3*_0x12677c*_0x55f9c1*_0x55f9c1*_0x20a12f['x']+_0x55f9c1*_0x55f9c1*_0x55f9c1*_0x115145['x'],'y':_0x12677c*_0x12677c*_0x12677c*_0x275a02['y']+0x3*_0x12677c*_0x12677c*_0x55f9c1*_0x374865['y']+0x3*_0x12677c*_0x55f9c1*_0x55f9c1*_0x20a12f['y']+_0x55f9c1*_0x55f9c1*_0x55f9c1*_0x115145['y']};}function M(_0x43f202,_0x119282,_0x91583c,_0x476f31){const _0xfdce73=_0x300370;let _0xb30729=-_0x43f202+0x3*_0x119282-0x3*_0x91583c+_0x476f31,_0x4cc5fe=0x3*_0x43f202-0x6*_0x119282+0x3*_0x91583c,_0x55bf37=-0x3*_0x43f202+0x3*_0x119282,_0x442568=[];if(Math[_0xfdce73(0x10f)](_0xb30729)<D){if(Math[_0xfdce73(0x10f)](_0x4cc5fe)<D)return _0x442568;let _0x49d8e=-_0x55bf37/(0x2*_0x4cc5fe);return _0x49d8e>0x0&&_0x49d8e<0x1&&_0x442568[_0xfdce73(0xcf)](_0x49d8e),_0x442568;}let _0x341782=_0x4cc5fe*_0x4cc5fe-0x3*_0xb30729*_0x55bf37;if(_0x341782<0x0)return _0x442568;let _0x2c0b00=Math[_0xfdce73(0x117)](Math[_0xfdce73(0xda)](0x0,_0x341782)),_0x103384=(-_0x4cc5fe+_0x2c0b00)/(0x3*_0xb30729),_0x14052c=(-_0x4cc5fe-_0x2c0b00)/(0x3*_0xb30729);return _0x103384>0x0&&_0x103384<0x1&&_0x442568['push'](_0x103384),_0x14052c>0x0&&_0x14052c<0x1&&Math[_0xfdce73(0x10f)](_0x14052c-_0x103384)>D&&_0x442568[_0xfdce73(0xcf)](_0x14052c),_0x442568;}function N(_0x46e65d,_0x24eb62,_0x1912e7,_0x136cf3,_0x41c9af){const _0xf7b283=_0x300370;_0x46e65d[_0xf7b283(0xcf)](_0x24eb62,_0x41c9af),new Set([...M(_0x24eb62['x'],_0x1912e7['x'],_0x136cf3['x'],_0x41c9af['x']),...M(_0x24eb62['y'],_0x1912e7['y'],_0x136cf3['y'],_0x41c9af['y'])])[_0xf7b283(0x112)](_0x31888f=>{_0x46e65d['push'](j(_0x24eb62,_0x1912e7,_0x136cf3,_0x41c9af,_0x31888f));});}function P(_0x2009a4){const _0x341c5a=_0x300370;let _0x3d2500=_0x2009a4[_0x341c5a(0x129)];if(_0x3d2500['length']<=0x1)return _0x3d2500;let _0x2f70ef=[];for(let _0x1e442b=0x1;_0x1e442b<_0x3d2500[_0x341c5a(0xfc)];_0x1e442b++){let _0x46d4de=_0x3d2500[_0x1e442b-0x1],_0x2589ea=_0x3d2500[_0x1e442b];N(_0x2f70ef,_0x46d4de,_0x46d4de[_0x341c5a(0xd3)]??_0x46d4de,_0x2589ea['in']??_0x2589ea,_0x2589ea);}if(_0x2009a4[_0x341c5a(0x102)]&&_0x3d2500[_0x341c5a(0xfc)]>0x1){let _0x38b836=_0x3d2500[_0x3d2500[_0x341c5a(0xfc)]-0x1],_0x4838a5=_0x3d2500[0x0];N(_0x2f70ef,_0x38b836,_0x38b836[_0x341c5a(0xd3)]??_0x38b836,_0x4838a5['in']??_0x4838a5,_0x4838a5);}return _0x2f70ef;}function F(_0x8508ef){const _0x1f652b=_0x300370;let _0x58c6be=_0x8508ef[_0x1f652b(0x111)];if(_0x58c6be[_0x1f652b(0xfc)]<=0x1)return _0x58c6be;let _0xfa03da=[];for(let _0x35c7e0=0x0;_0x35c7e0<_0x58c6be[_0x1f652b(0xfc)]-0x1;_0x35c7e0++){let _0x4f6ef5=_0x58c6be[_0x35c7e0],_0x29d402=_0x58c6be[_0x35c7e0+0x1],_0x406725=_0x58c6be[_0x35c7e0-0x1]??_0x4f6ef5,_0x38a01a=_0x58c6be[_0x35c7e0+0x2]??_0x29d402;N(_0xfa03da,_0x4f6ef5,{'x':_0x4f6ef5['x']+(_0x29d402['x']-_0x406725['x'])/0x6,'y':_0x4f6ef5['y']+(_0x29d402['y']-_0x406725['y'])/0x6},{'x':_0x29d402['x']-(_0x38a01a['x']-_0x4f6ef5['x'])/0x6,'y':_0x29d402['y']-(_0x38a01a['y']-_0x4f6ef5['y'])/0x6},_0x29d402);}return _0xfa03da;}function I(_0x7360b8){const _0x50459c=_0x300370;return _0x7360b8['kind']===_0x50459c(0xf9)?P(_0x7360b8):F(_0x7360b8);}function L(_0x571f7b){const _0x16ceff=_0x300370;let _0x22633d=Math[_0x16ceff(0xf7)](_0x571f7b*0x2710)/0x2710;return Object['is'](_0x22633d,-0x0)?0x0:_0x22633d;}function R(_0x477de4){const _0x17f0e1=_0x300370;let _0x458bf3=I(_0x477de4);if(_0x458bf3[_0x17f0e1(0xfc)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x1a02af=Math[_0x17f0e1(0x12a)](..._0x458bf3['map'](_0x565201=>_0x565201['x'])),_0x52574f=Math['min'](..._0x458bf3[_0x17f0e1(0xd0)](_0x5120d5=>_0x5120d5['y'])),_0x297217=Math['max'](..._0x458bf3[_0x17f0e1(0xd0)](_0x3a19f0=>_0x3a19f0['x'])),_0x107129=Math['max'](..._0x458bf3[_0x17f0e1(0xd0)](_0x4ecf79=>_0x4ecf79['y']));return{'left':L(_0x1a02af),'top':L(_0x52574f),'width':L(Math[_0x17f0e1(0xda)](0x1,_0x297217-_0x1a02af)),'height':L(Math['max'](0x1,_0x107129-_0x52574f))};}function z(_0x54ec30,_0x1e5815){const _0x52d321=_0x300370;let _0x133d35=_0x54ec30[_0x52d321(0x129)];if(_0x133d35[_0x52d321(0xfc)]===0x0)return'';let _0x464983=['M\x20'+k(A(_0x133d35[0x0],_0x1e5815))];for(let _0x4d45bf=0x1;_0x4d45bf<_0x133d35[_0x52d321(0xfc)];_0x4d45bf++){let _0x162876=_0x133d35[_0x4d45bf-0x1],_0x515ca4=_0x133d35[_0x4d45bf],_0x24b84c=_0x162876[_0x52d321(0xd3)]??_0x162876,_0x5b7ab8=_0x515ca4['in']??_0x515ca4;_0x464983[_0x52d321(0xcf)]('C\x20'+k(A(_0x24b84c,_0x1e5815))+'\x20'+k(A(_0x5b7ab8,_0x1e5815))+'\x20'+k(A(_0x515ca4,_0x1e5815)));}if(_0x54ec30[_0x52d321(0x102)]&&_0x133d35['length']>0x1){let _0x194ca6=_0x133d35[_0x133d35[_0x52d321(0xfc)]-0x1],_0x59bdcb=_0x133d35[0x0],_0x34e7e7=_0x194ca6[_0x52d321(0xd3)]??_0x194ca6,_0x34fc11=_0x59bdcb['in']??_0x59bdcb;_0x464983[_0x52d321(0xcf)]('C\x20'+k(A(_0x34e7e7,_0x1e5815))+'\x20'+k(A(_0x34fc11,_0x1e5815))+'\x20'+k(A(_0x59bdcb,_0x1e5815))),_0x464983[_0x52d321(0xcf)]('Z');}return _0x464983['join']('\x20');}function B(_0x178bd1,_0x67c616){const _0x8e837c=_0x300370;let _0x2e49c3=_0x178bd1[_0x8e837c(0x111)][_0x8e837c(0xd0)](_0x4e5341=>A(_0x4e5341,_0x67c616));if(_0x2e49c3[_0x8e837c(0xfc)]===0x0)return'';if(_0x2e49c3[_0x8e837c(0xfc)]===0x1)return'M\x20'+k(_0x2e49c3[0x0]);let _0x3e60fc=['M\x20'+k(_0x2e49c3[0x0])];for(let _0x149e49=0x0;_0x149e49<_0x2e49c3[_0x8e837c(0xfc)]-0x1;_0x149e49++){let _0x2975b4=_0x2e49c3[_0x149e49],_0x3fa8fe=_0x2e49c3[_0x149e49+0x1],_0x74a768=_0x2e49c3[_0x149e49-0x1]??_0x2975b4,_0x36aa87=_0x2e49c3[_0x149e49+0x2]??_0x3fa8fe,_0x59e7dd={'x':_0x2975b4['x']+(_0x3fa8fe['x']-_0x74a768['x'])/0x6,'y':_0x2975b4['y']+(_0x3fa8fe['y']-_0x74a768['y'])/0x6},_0x421df2={'x':_0x3fa8fe['x']-(_0x36aa87['x']-_0x2975b4['x'])/0x6,'y':_0x3fa8fe['y']-(_0x36aa87['y']-_0x2975b4['y'])/0x6};_0x3e60fc[_0x8e837c(0xcf)]('C\x20'+k(_0x59e7dd)+'\x20'+k(_0x421df2)+'\x20'+k(_0x3fa8fe));}return _0x3e60fc[_0x8e837c(0xfe)]('\x20');}function V(_0x5ab2aa,_0xfd4595){const _0xadc326=_0x300370;return _0x5ab2aa[_0xadc326(0xdd)]===_0xadc326(0xf9)?z(_0x5ab2aa,_0xfd4595):B(_0x5ab2aa,_0xfd4595);}function H(_0xfd0899,_0xe0efba){const _0x322e27=_0x300370;return _0xe0efba!=null&&_0xe0efba[_0x322e27(0xf0)]?_0xe0efba['color']:_0xfd0899[_0x322e27(0xdd)]==='pen'?_0x322e27(0xe3):_0xfd0899[_0x322e27(0xf0)];}function U(_0x56ba64,_0x54110e){const _0x56b6d7=_0x300370;return(_0x54110e==null?void 0x0:_0x54110e[_0x56b6d7(0xd8)])===void 0x0?_0x56ba64['kind']===_0x56b6d7(0xf9)?0x2:_0x56ba64[_0x56b6d7(0xd8)]:_0x54110e[_0x56b6d7(0xd8)];}function W(_0x130557,_0x457258){const _0x8fe3b9=_0x300370;return(_0x457258==null?void 0x0:_0x457258[_0x8fe3b9(0x109)])===void 0x0?_0x130557[_0x8fe3b9(0xdd)]===_0x8fe3b9(0xf9)?void 0x0:_0x130557[_0x8fe3b9(0x109)]:_0x457258[_0x8fe3b9(0x109)];}function oe(_0x51181c,_0x3c124e){const _0x590d9f=_0x300370;let _0x11b284=R(_0x51181c),_0x40e097=V(_0x51181c,{'x':_0x11b284['left'],'y':_0x11b284['top']}),_0x2dd916=_0x51181c[_0x590d9f(0xdd)]===_0x590d9f(0xf9)&&_0x51181c[_0x590d9f(0x102)],_0x1dc9a0=_0x3c124e==null?void 0x0:_0x3c124e['fillColor'];return{'shapeType':e[_0x590d9f(0x10e)][_0x590d9f(0x116)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x11b284[_0x590d9f(0xd8)],'h':_0x11b284[_0x590d9f(0xe9)],'fill':_0x2dd916?_0x590d9f(0xe7):'none','stroke':!0x0,'data':_0x40e097,'dataArray':K(_0x51181c,{'x':_0x11b284['left'],'y':_0x11b284['top']})}]},'fill':_0x2dd916&&_0x1dc9a0?{'color':_0x1dc9a0,'fillType':e[_0x590d9f(0xba)][_0x590d9f(0xed)]}:{'fillType':e[_0x590d9f(0xba)][_0x590d9f(0xcc)]},'stroke':{'color':H(_0x51181c,_0x3c124e),'width':U(_0x51181c,_0x3c124e),'opacity':W(_0x51181c,_0x3c124e),'lineStrokeType':e['ShapeLineTypeEnum'][_0x590d9f(0xc5)],'capType':e[_0x590d9f(0x12b)][_0x590d9f(0xd5)],'lineJoinType':e[_0x590d9f(0xb9)][_0x590d9f(0xd5)]}};}function G(_0x5a06ba,_0x20a548){return{'x':_0x5a06ba['x']-_0x20a548['x'],'y':_0x5a06ba['y']-_0x20a548['y']};}function K(_0x2efc5b,_0x3eca67){const _0x1e9694=_0x300370;if(_0x2efc5b['kind']===_0x1e9694(0xf9)){let _0x465afd=_0x2efc5b['anchors'];if(_0x465afd['length']===0x0)return[];let _0x51b2e7=G(_0x465afd[0x0],_0x3eca67),_0x5eb99e=[{'command':'M','points':[_0x51b2e7['x'],_0x51b2e7['y']]}];for(let _0x49a6b8=0x1;_0x49a6b8<_0x465afd[_0x1e9694(0xfc)];_0x49a6b8++){let _0x17a00d=_0x465afd[_0x49a6b8-0x1],_0x3afc1d=_0x465afd[_0x49a6b8],_0x1d4bdf=G(_0x17a00d['out']??_0x17a00d,_0x3eca67),_0x45cc47=G(_0x3afc1d['in']??_0x3afc1d,_0x3eca67),_0x490481=G(_0x3afc1d,_0x3eca67);_0x5eb99e[_0x1e9694(0xcf)]({'command':'C','points':[_0x1d4bdf['x'],_0x1d4bdf['y'],_0x45cc47['x'],_0x45cc47['y'],_0x490481['x'],_0x490481['y']]});}if(_0x2efc5b[_0x1e9694(0x102)]&&_0x465afd[_0x1e9694(0xfc)]>0x1){let _0x4c4515=_0x465afd[_0x465afd[_0x1e9694(0xfc)]-0x1],_0x3079aa=_0x465afd[0x0],_0x111f19=G(_0x4c4515[_0x1e9694(0xd3)]??_0x4c4515,_0x3eca67),_0x2f8c7f=G(_0x3079aa['in']??_0x3079aa,_0x3eca67),_0x631545=G(_0x3079aa,_0x3eca67);_0x5eb99e['push']({'command':'C','points':[_0x111f19['x'],_0x111f19['y'],_0x2f8c7f['x'],_0x2f8c7f['y'],_0x631545['x'],_0x631545['y']]}),_0x5eb99e[_0x1e9694(0xcf)]({'command':'z','points':[]});}return _0x5eb99e;}let _0x5dd03b=_0x2efc5b['points']['map'](_0x448c2a=>G(_0x448c2a,_0x3eca67));if(_0x5dd03b[_0x1e9694(0xfc)]===0x0)return[];let _0x284b48=[{'command':'M','points':[_0x5dd03b[0x0]['x'],_0x5dd03b[0x0]['y']]}];for(let _0x6276cd=0x0;_0x6276cd<_0x5dd03b[_0x1e9694(0xfc)]-0x1;_0x6276cd++){let _0x561922=_0x5dd03b[_0x6276cd],_0x56bf06=_0x5dd03b[_0x6276cd+0x1],_0x119d22=_0x5dd03b[_0x6276cd-0x1]??_0x561922,_0x2c2a76=_0x5dd03b[_0x6276cd+0x2]??_0x56bf06,_0x1374fe={'x':_0x561922['x']+(_0x56bf06['x']-_0x119d22['x'])/0x6,'y':_0x561922['y']+(_0x56bf06['y']-_0x119d22['y'])/0x6},_0x4dc0f7={'x':_0x56bf06['x']-(_0x2c2a76['x']-_0x561922['x'])/0x6,'y':_0x56bf06['y']-(_0x2c2a76['y']-_0x561922['y'])/0x6};_0x284b48[_0x1e9694(0xcf)]({'command':'C','points':[_0x1374fe['x'],_0x1374fe['y'],_0x4dc0f7['x'],_0x4dc0f7['y'],_0x56bf06['x'],_0x56bf06['y']]});}return _0x284b48;}function q(_0x155c03){const _0x499bd8=_0x300370;let {model:_0x2fcf76,sourceModel:_0x5c3b25=_0x2fcf76,style:_0x487da2}=_0x155c03,_0x4c56a1=_0x155c03[_0x499bd8(0x127)]??_0x2fcf76[_0x499bd8(0xdd)],_0x964259=R(_0x2fcf76),_0xe37bb2=_0x2fcf76['kind']===_0x499bd8(0xf9)&&_0x4c56a1!==_0x499bd8(0xf9)?_0x2fcf76:void 0x0;return{'transform':{..._0x964259,'rotation':0x0},'shapeData':oe(_0x2fcf76,_0x487da2),'ink':{'version':0x1,'tool':_0x4c56a1,'sourceModel':_0x5c3b25,..._0xe37bb2?{'editModel':_0xe37bb2}:{},'normalizedBounds':_0x964259}};}var se=_0x300370(0xf1),ce='1.0.1';function J(_0x18b8e9){'@babel/helpers - typeof';const _0x570761=_0x300370;return J=typeof Symbol==_0x570761(0x106)&&typeof Symbol['iterator']==_0x570761(0xf5)?function(_0x3b027a){return typeof _0x3b027a;}:function(_0x2a9524){const _0x239e6b=_0x570761;return _0x2a9524&&typeof Symbol==_0x239e6b(0x106)&&_0x2a9524[_0x239e6b(0xee)]===Symbol&&_0x2a9524!==Symbol['prototype']?_0x239e6b(0xf5):typeof _0x2a9524;},J(_0x18b8e9);}function le(_0x2ff274,_0x2f35c6){const _0x3e73bc=_0x300370;if(J(_0x2ff274)!=_0x3e73bc(0xc3)||!_0x2ff274)return _0x2ff274;var _0x106826=_0x2ff274[Symbol['toPrimitive']];if(_0x106826!==void 0x0){var _0x9c2d69=_0x106826[_0x3e73bc(0xe4)](_0x2ff274,_0x2f35c6||_0x3e73bc(0xf4));if(J(_0x9c2d69)!=_0x3e73bc(0xc3))return _0x9c2d69;throw TypeError(_0x3e73bc(0xc4));}return(_0x2f35c6===_0x3e73bc(0xb8)?String:Number)(_0x2ff274);}function ue(_0x3398c8){const _0x4aa20b=_0x300370;var _0x45f0b6=le(_0x3398c8,_0x4aa20b(0xb8));return J(_0x45f0b6)==_0x4aa20b(0xf5)?_0x45f0b6:_0x45f0b6+'';}function Y(_0x318e06,_0x26a32a,_0x8413c7){const _0x5ec417=_0x300370;return(_0x26a32a=ue(_0x26a32a))in _0x318e06?Object[_0x5ec417(0xff)](_0x318e06,_0x26a32a,{'value':_0x8413c7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x318e06[_0x26a32a]=_0x8413c7,_0x318e06;}const X=(0x0,n[_0x300370(0xc1)])(_0x300370(0xeb));var de=class{constructor(){const _0x4e7ffd=_0x300370;Y(this,_0x4e7ffd(0xd1),[]);}[_0x300370(0x123)](_0xcf67b7){const _0x27d970=_0x300370;return this[_0x27d970(0xd1)]['push'](_0xcf67b7),(0x0,n[_0x27d970(0xe8)])(()=>{const _0x3fd1ee=_0x27d970;let _0x427893=this[_0x3fd1ee(0xd1)][_0x3fd1ee(0x11b)](_0xcf67b7);_0x427893>=0x0&&this[_0x3fd1ee(0xd1)][_0x3fd1ee(0xdf)](_0x427893,0x1);});}['beginInkMode'](_0x7f6486){const _0x478e21=_0x300370;for(let _0x5641e4 of this[_0x478e21(0xd1)])if(_0x5641e4[_0x478e21(0x11f)](_0x7f6486))return!0x0;return!0x1;}async[_0x300370(0xca)](_0x18961b){const _0x5e6f61=_0x300370;for(let _0x457801 of this['_adapters'])if(_0x457801[_0x5e6f61(0xca)]&&await _0x457801[_0x5e6f61(0xca)](_0x18961b))return!0x0;return!0x1;}};const fe={'id':'ink.operation.start','type':n[_0x300370(0xf3)][_0x300370(0x10b)],'handler':(_0x2cf958,_0x54012c)=>_0x54012c?_0x2cf958['get'](X)[_0x300370(0x11f)](_0x54012c):!0x1},Z={};function Q(_0x5cc175,_0x371421){return function(_0x341937,_0x2e949e){_0x371421(_0x341937,_0x2e949e,_0x5cc175);};}function pe(_0x318001,_0x1c488e,_0x1ddd7d,_0x259504){const _0x482e69=_0x300370;var _0x36ab46=arguments[_0x482e69(0xfc)],_0x4609f9=_0x36ab46<0x3?_0x1c488e:_0x259504===null?_0x259504=Object[_0x482e69(0x10c)](_0x1c488e,_0x1ddd7d):_0x259504,_0x290f6a;if(typeof Reflect==_0x482e69(0xc3)&&typeof Reflect[_0x482e69(0xfa)]==_0x482e69(0x106))_0x4609f9=Reflect['decorate'](_0x318001,_0x1c488e,_0x1ddd7d,_0x259504);else{for(var _0x17aee5=_0x318001[_0x482e69(0xfc)]-0x1;_0x17aee5>=0x0;_0x17aee5--)(_0x290f6a=_0x318001[_0x17aee5])&&(_0x4609f9=(_0x36ab46<0x3?_0x290f6a(_0x4609f9):_0x36ab46>0x3?_0x290f6a(_0x1c488e,_0x1ddd7d,_0x4609f9):_0x290f6a(_0x1c488e,_0x1ddd7d))||_0x4609f9);}return _0x36ab46>0x3&&_0x4609f9&&Object[_0x482e69(0xff)](_0x1c488e,_0x1ddd7d,_0x4609f9),_0x4609f9;}let $=class extends n[_0x300370(0xf2)]{constructor(_0x3b774a=Z,_0xb3663f,_0x552312,_0x294c3e){const _0x39a820=_0x300370;super(),this[_0x39a820(0x10a)]=_0x3b774a,this[_0x39a820(0x114)]=_0xb3663f,this[_0x39a820(0xc9)]=_0x552312,this[_0x39a820(0xbf)]=_0x294c3e;let {..._0x1dfe48}=(0x0,n[_0x39a820(0xbd)])({},Z,this[_0x39a820(0x10a)]);this[_0x39a820(0xbf)]['setConfig'](_0x39a820(0x118),_0x1dfe48);}[_0x300370(0x128)](){const _0x27f3f3=_0x300370;[[X,{'useClass':de}]][_0x27f3f3(0x112)](_0x33ce1c=>this['_injector'][_0x27f3f3(0xe6)](_0x33ce1c)),this[_0x27f3f3(0x121)](this[_0x27f3f3(0xc9)]['registerCommand'](fe));}};Y($,'pluginName',_0x300370(0x100)),Y($,_0x300370(0x125),se),Y($,'version',ce),Y($,'type',n[_0x300370(0x119)][_0x300370(0xc6)]),$=pe([(0x0,n['DependentOn'])(t[_0x300370(0x11a)]),Q(0x1,(0x0,n[_0x300370(0xc2)])(n[_0x300370(0x113)])),Q(0x2,n[_0x300370(0xc8)]),Q(0x3,n['IConfigService'])],$),exports[_0x300370(0xd2)]=X,Object[_0x300370(0xff)](exports,'UniverInkPlugin',{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x300370(0x103)]=q,exports['convertBrushModelToPenModel']=re,exports[_0x300370(0xe5)]=E,exports[_0x300370(0xcb)]=w,exports[_0x300370(0xe1)]=ie,exports[_0x300370(0x11c)]=S,exports['getInkModelBounds']=R,exports[_0x300370(0xd6)]=x,exports[_0x300370(0x101)]=C,exports['isInkPenHandleVisible']=p,exports[_0x300370(0xec)]=ae,exports['setInkPenAnchorPointType']=T;function _0x5d1d(){const _0x2b458a=['SolidLine','UNIVER_UNKNOWN','Module','ICommandService','_commandService','createCustomShape','deleteInkPenAnchor','NoFill','smooth','5145TrBwNV','push','map','_adapters','IInkHostAdapterService','out','free','Round','getInkPenPreviewModel','symmetric','width','start','max','toStringTag','27RmOSqG','kind','createId','splice','segmentIndex','findClosestInkPenHandle','point','#f54a45','call','cycleInkPenAnchorPointType','add','norm','toDisposable','height','endIndex','ink.host-adapter.service','moveInkPenAnchorPoint','SolidFill','constructor','252GAvQfs','color','@univerjs-pro/ink','Plugin','CommandType','default','symbol','distance','round','startIndex','pen','decorate','54TwmVGs','length','889832gwcgNa','join','defineProperty','UNIVER_INK_PLUGIN','insertInkPenAnchorAt','closed','buildInkCustomShapePayload','426762DkitPG','left','function','right','tolerance','opacity','_config','OPERATION','getOwnPropertyDescriptor','find','ShapeTypeEnum','abs','2949HYzWNi','points','forEach','Injector','_injector','4282830GQGgpf','Rect','sqrt','ink.config','UniverInstanceType','UniverLicensePlugin','indexOf','findClosestInkPenSegment','corner','pointType','beginInkMode','findIndex','disposeWithMe','hypot','registerAdapter','slice','packageName','746JTauYJ','tool','onStarting','anchors','min','ShapeLineCapEnum','string','ShapeLineJoinEnum','ShapeFillEnum','16084464mVfMJc','158424GgYklj','merge','end','_configService','anchor','createIdentifier','Inject','object','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.'];_0x5d1d=function(){return _0x2b458a;};return _0x5d1d();}
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x469303=_0x526d;(function(_0x544dc1,_0x186827){const _0x3e6cf9=_0x526d,_0xff289c=_0x544dc1();while(!![]){try{const _0x462461=-parseInt(_0x3e6cf9(0x116))/0x1+parseInt(_0x3e6cf9(0x105))/0x2*(-parseInt(_0x3e6cf9(0x121))/0x3)+-parseInt(_0x3e6cf9(0x102))/0x4*(parseInt(_0x3e6cf9(0x106))/0x5)+-parseInt(_0x3e6cf9(0x103))/0x6*(parseInt(_0x3e6cf9(0x11f))/0x7)+-parseInt(_0x3e6cf9(0xfd))/0x8+-parseInt(_0x3e6cf9(0x100))/0x9+-parseInt(_0x3e6cf9(0x104))/0xa*(-parseInt(_0x3e6cf9(0xff))/0xb);if(_0x462461===_0x186827)break;else _0xff289c['push'](_0xff289c['shift']());}catch(_0x4fe7d9){_0xff289c['push'](_0xff289c['shift']());}}}(_0x4e6c,0xe4890));function _0x526d(_0xaefc81,_0x3c736b){_0xaefc81=_0xaefc81-0xf6;const _0x4e6c39=_0x4e6c();let _0x526db8=_0x4e6c39[_0xaefc81];return _0x526db8;}import{BoardElementType as _0x47f5e5}from'@univerjs-pro/boards';import{FBoard as _0x399325}from'@univerjs-pro/boards/facade';import{buildInkCustomShapePayload as _0x2c83ce}from'@univerjs-pro/ink';import{Tools as _0x6a8fb9,generateRandomId as _0x3a831c}from'@univerjs/core';import{FEnum as _0xbd21f4}from'@univerjs/core/facade';var o=class extends _0x399325{['insertInk'](_0x1d19db){const _0x4edb37=_0x526d;let _0x171551=s(_0x1d19db);return _0x171551&&this['_addElement'](_0x171551,{'insertIndex':_0x1d19db[_0x4edb37(0xf8)]})?_0x171551:null;}[_0x469303(0x11e)](){const _0x3acd45=_0x469303;return this[_0x3acd45(0xfc)]({'elementType':_0x47f5e5['Shape'],'includeHidden':!0x0,'includeLocked':!0x0})['filter'](p);}};function s(_0x130e83,_0x1dd111){const _0x19ba3f=_0x469303;if(!l(_0x130e83[_0x19ba3f(0x107)])||_0x130e83[_0x19ba3f(0xfb)]!==void 0x0&&!l(_0x130e83[_0x19ba3f(0xfb)])||!u(_0x130e83['style']))return null;let _0x1a44d8=_0x130e83['parentId']??(_0x1dd111==null?void 0x0:_0x1dd111[_0x19ba3f(0x114)]),_0x3d7791=_0x6a8fb9[_0x19ba3f(0x10e)](_0x130e83[_0x19ba3f(0x107)]),_0x24e62b=_0x2c83ce({'model':_0x3d7791,'style':_0x130e83[_0x19ba3f(0x11a)],'tool':_0x130e83[_0x19ba3f(0x110)],'sourceModel':_0x130e83[_0x19ba3f(0xfb)]?_0x6a8fb9['deepClone'](_0x130e83['sourceModel']):_0x3d7791}),_0x587793=d(_0x1dd111==null?void 0x0:_0x1dd111[_0x19ba3f(0x118)]);return{'id':(_0x1dd111==null?void 0x0:_0x1dd111['id'])??_0x130e83['id']??_0x3a831c(0x6),'type':_0x47f5e5['Shape'],'transform':_0x24e62b['transform'],'shapeData':_0x24e62b[_0x19ba3f(0x112)],'parentId':_0x1a44d8??void 0x0,'laneId':_0x130e83[_0x19ba3f(0x108)]===void 0x0?_0x1dd111==null?void 0x0:_0x1dd111[_0x19ba3f(0x108)]:_0x130e83[_0x19ba3f(0x108)],'custom':{..._0x587793,'ink':_0x24e62b[_0x19ba3f(0x123)]}};}function c(_0x347fac){const _0x1c1419=_0x469303;return Number[_0x1c1419(0xf6)](_0x347fac['x'])&&Number[_0x1c1419(0xf6)](_0x347fac['y']);}function _0x4e6c(){const _0x450954=['style','opacity','trim','pen','getInks','13052291GvaZXq','isArray','3506253XqfmrH','symmetric','ink','has','points','isFinite','corner','insertIndex','pressure','kind','sourceModel','findElements','5127520YtLeOz','extend','2519BXOJqV','4957452rKjkXT','length','380knaYyx','6knshht','359960COYZmS','2IpyuHB','68065HeFFpT','model','laneId','BoardInkHandleKind','anchors','closed','type','object','deepClone','BoardInkPointType','tool','out','shapeData','smooth','parentId','width','1788637AvDXVF','brush','custom','free'];_0x4e6c=function(){return _0x450954;};return _0x4e6c();}function l(_0x1c78a3){const _0x8bf7e5=_0x469303;if(_0x1c78a3[_0x8bf7e5(0xfa)]===_0x8bf7e5(0x11d)){let _0x1a1a10=new Set();return _0x1c78a3[_0x8bf7e5(0x10a)][_0x8bf7e5(0x101)]>=(_0x1c78a3[_0x8bf7e5(0x10b)]?0x3:0x2)&&_0x1c78a3[_0x8bf7e5(0x10a)]['every'](_0x51dae3=>{const _0x1d0cb9=_0x8bf7e5;let _0x24364f=_0x51dae3['id'][_0x1d0cb9(0x11c)]()[_0x1d0cb9(0x101)]>0x0&&!_0x1a1a10[_0x1d0cb9(0x124)](_0x51dae3['id'])&&c(_0x51dae3)&&(!_0x51dae3['in']||c(_0x51dae3['in']))&&(!_0x51dae3[_0x1d0cb9(0x111)]||c(_0x51dae3[_0x1d0cb9(0x111)]));return _0x1a1a10['add'](_0x51dae3['id']),_0x24364f;});}return _0x1c78a3[_0x8bf7e5(0x125)][_0x8bf7e5(0x101)]>=0x2&&_0x1c78a3[_0x8bf7e5(0x125)]['every'](_0x194388=>c(_0x194388)&&Number[_0x8bf7e5(0xf6)](_0x194388['t'])&&(_0x194388['pressure']===void 0x0||Number[_0x8bf7e5(0xf6)](_0x194388[_0x8bf7e5(0xf9)])))&&Number['isFinite'](_0x1c78a3[_0x8bf7e5(0x115)])&&_0x1c78a3[_0x8bf7e5(0x115)]>0x0&&Number['isFinite'](_0x1c78a3['opacity'])&&_0x1c78a3[_0x8bf7e5(0x11b)]>=0x0&&_0x1c78a3[_0x8bf7e5(0x11b)]<=0x1;}function u(_0x4794e1){const _0x167a5d=_0x469303;return _0x4794e1===void 0x0||(_0x4794e1[_0x167a5d(0x115)]===void 0x0||Number[_0x167a5d(0xf6)](_0x4794e1['width'])&&_0x4794e1[_0x167a5d(0x115)]>0x0)&&(_0x4794e1[_0x167a5d(0x11b)]===void 0x0||Number[_0x167a5d(0xf6)](_0x4794e1[_0x167a5d(0x11b)])&&_0x4794e1[_0x167a5d(0x11b)]>=0x0&&_0x4794e1[_0x167a5d(0x11b)]<=0x1);}function d(_0x5f0cc8){const _0x58e1b8=_0x469303;return _0x5f0cc8&&typeof _0x5f0cc8==_0x58e1b8(0x10d)&&!Array['isArray'](_0x5f0cc8)?_0x5f0cc8:{};}function f(_0x4b6608){const _0x292d4a=_0x469303;let _0x499831=d(_0x4b6608[_0x292d4a(0x118)])[_0x292d4a(0x123)];if(!_0x499831||typeof _0x499831!=_0x292d4a(0x10d)||Array[_0x292d4a(0x120)](_0x499831))return null;let _0x5c8528=_0x499831;return _0x5c8528['version']===0x1&&_0x5c8528['sourceModel']&&typeof _0x5c8528['sourceModel']==_0x292d4a(0x10d)?_0x5c8528:null;}function p(_0x5642cb){const _0x5d927a=_0x469303;return _0x5642cb[_0x5d927a(0x10c)]===_0x47f5e5['Shape']&&!!f(_0x5642cb);}_0x399325['extend'](o);const m={'Pen':_0x469303(0x11d),'Brush':_0x469303(0x117),'Highlighter':'highlighter'},h={'Corner':_0x469303(0xf7),'Smooth':_0x469303(0x113),'Symmetric':_0x469303(0x122),'Free':_0x469303(0x119)},g={'Anchor':'anchor','In':'in','Out':'out'};var _=class extends _0xbd21f4{get['BoardInkTool'](){return m;}get[_0x469303(0x10f)](){return h;}get[_0x469303(0x109)](){return g;}};_0xbd21f4[_0x469303(0xfe)](_);export{g as BoardInkHandleKind,h as BoardInkPointType,m as BoardInkTool};
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x12824f=_0xfb34;(function(_0x37201b,_0x3535da){const _0x40fc02=_0xfb34,_0x1e0d17=_0x37201b();while(!![]){try{const _0x17b839=parseInt(_0x40fc02(0x160))/0x1+-parseInt(_0x40fc02(0x147))/0x2+parseInt(_0x40fc02(0x130))/0x3+parseInt(_0x40fc02(0x16d))/0x4*(-parseInt(_0x40fc02(0x143))/0x5)+-parseInt(_0x40fc02(0x16a))/0x6+parseInt(_0x40fc02(0x12f))/0x7+-parseInt(_0x40fc02(0x175))/0x8;if(_0x17b839===_0x3535da)break;else _0x1e0d17['push'](_0x1e0d17['shift']());}catch(_0x3acd14){_0x1e0d17['push'](_0x1e0d17['shift']());}}}(_0x5ecd,0xf29d8));import{ShapeFillEnum as _0x3d9285,ShapeLineCapEnum as _0x4a7b4e,ShapeLineJoinEnum as _0x127e75,ShapeLineTypeEnum as _0x53320d,ShapeTypeEnum as _0x4aa715}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x5a8579}from'@univerjs-pro/license';import{CommandType as _0x5b45d3,DependentOn as _0x17b879,ICommandService as _0x46d0bf,IConfigService as _0x5cf97d,Inject as _0x19a3e6,Injector as _0x24e31f,Plugin as _0x19d734,UniverInstanceType as _0x212eed,createIdentifier as _0x276103,merge as _0x110d4d,toDisposable as _0x297405}from'@univerjs/core';const g=0.0001;function _(_0x4dc8){return{'x':_0x4dc8['x'],'y':_0x4dc8['y']};}function v(_0x5a8eed){const _0x191ea3=_0xfb34;return{..._0x5a8eed,'in':_0x5a8eed['in']?_(_0x5a8eed['in']):void 0x0,'out':_0x5a8eed[_0x191ea3(0x15f)]?_(_0x5a8eed['out']):void 0x0};}function y(_0x379030){const _0x30401a=_0xfb34;return{'kind':_0x30401a(0x13b),'closed':_0x379030[_0x30401a(0x12a)],'anchors':_0x379030['anchors'][_0x30401a(0x134)](v)};}function b(_0x125ee1,_0x9e222c,_0x141f32){return{'x':_0x125ee1['x']+(_0x9e222c['x']-_0x125ee1['x'])*_0x141f32,'y':_0x125ee1['y']+(_0x9e222c['y']-_0x125ee1['y'])*_0x141f32};}function x(_0x231eef,_0x3f5b6e){const _0x415dd6=_0xfb34;return Math[_0x415dd6(0x17c)](_0x231eef['x']-_0x3f5b6e['x'],_0x231eef['y']-_0x3f5b6e['y']);}function S(_0x57a83d){const _0x5c4376=_0xfb34;let _0x7682d1=Math[_0x5c4376(0x17c)](_0x57a83d['x'],_0x57a83d['y']);return _0x7682d1<g?{'x':0x1,'y':0x0}:{'x':_0x57a83d['x']/_0x7682d1,'y':_0x57a83d['y']/_0x7682d1};}function C(_0x29764c,_0x580a54,_0x4fa854=x(_0x29764c,_0x580a54)){let _0x382168=S({'x':_0x29764c['x']-_0x580a54['x'],'y':_0x29764c['y']-_0x580a54['y']});return{'x':_0x29764c['x']+_0x382168['x']*_0x4fa854,'y':_0x29764c['y']+_0x382168['y']*_0x4fa854};}function w(_0x500a45,_0x4e8795){const _0x562c0c=_0xfb34;let {anchors:_0xff583b}=_0x500a45;return _0xff583b['length']<0x2||_0x4e8795<0x0?null:_0x4e8795<_0xff583b[_0x562c0c(0x169)]-0x1?{'startIndex':_0x4e8795,'endIndex':_0x4e8795+0x1,'start':_0xff583b[_0x4e8795],'end':_0xff583b[_0x4e8795+0x1]}:_0x500a45[_0x562c0c(0x12a)]&&_0x4e8795===_0xff583b[_0x562c0c(0x169)]-0x1?{'startIndex':_0xff583b[_0x562c0c(0x169)]-0x1,'endIndex':0x0,'start':_0xff583b[_0xff583b[_0x562c0c(0x169)]-0x1],'end':_0xff583b[0x0]}:null;}function _0x5ecd(){const _0x41ca23=['smooth','tolerance','beginInkMode','registerAdapter','NoFill','symbol','right','color','anchor','startIndex','point','anchors','get','ink.operation.start','out','1880690LsprwB','norm','constructor','iterator','segmentIndex','abs','decorate','defineProperty','@univerjs-pro/ink','length','10596306rSLVkC','filter','indexOf','3532RaACpf','endIndex','onStarting','_configService','Round','find','height','top','748512drNLkb','ink-centerline-','Rect','OPERATION','packageName','createId','round','hypot','kind','anchorId','_commandService','distance','symmetric','max','_config','prototype','none','slice','splice','createCustomShape','closed','forEach','opacity','min','default','11589788lcESiz','2569590yxJxaJ','disposeWithMe','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','#f54a45','map','corner','_injector','ratio','pointType','function','points','pen','width','registerCommand','tool','push','start','free','version','5155NTOpNZ','string','end','SolidLine','1258328UbldYb','left','ink.config','sqrt','toPrimitive','_adapters','getOwnPropertyDescriptor','join','object','UNIVER_INK_PLUGIN'];_0x5ecd=function(){return _0x41ca23;};return _0x5ecd();}function T(_0x36015e,_0x2d8034){const _0x5ca842=_0xfb34;let _0x88bc1e=w(_0x36015e,_0x2d8034);return _0x88bc1e?[_0x88bc1e[_0x5ca842(0x140)],_0x88bc1e['start'][_0x5ca842(0x15f)]??_0x88bc1e[_0x5ca842(0x140)],_0x88bc1e[_0x5ca842(0x145)]['in']??_0x88bc1e[_0x5ca842(0x145)],_0x88bc1e[_0x5ca842(0x145)]]:null;}function te(_0x9e35,_0x44135a){const _0x3b63b6=_0xfb34;return _0x44135a===_0x3b63b6(0x159)?_0x9e35:_0x9e35[_0x44135a]??null;}function E(_0x163406,_0x45fb39,_0x647eac){const _0x3b086a=_0xfb34;return _0x647eac==='anchor'||_0x163406[_0x3b086a(0x12a)]?!0x0:_0x647eac==='in'?_0x45fb39>0x0:_0x45fb39<_0x163406[_0x3b086a(0x15c)][_0x3b086a(0x169)]-0x1;}function D(_0x4dca95,_0x4e703e){let [_0x455e9a,_0x42f831,_0x1b8a08,_0x5bbf7f]=_0x4dca95,_0x4c14b4=b(_0x455e9a,_0x42f831,_0x4e703e),_0x29e01d=b(_0x42f831,_0x1b8a08,_0x4e703e),_0x1b9477=b(_0x1b8a08,_0x5bbf7f,_0x4e703e);return b(b(_0x4c14b4,_0x29e01d,_0x4e703e),b(_0x29e01d,_0x1b9477,_0x4e703e),_0x4e703e);}function ne(_0x2de1ce,_0x413104){let [_0x4db72a,_0x598872,_0x49657e,_0x2763b6]=_0x2de1ce,_0x44dec4=b(_0x4db72a,_0x598872,_0x413104),_0x2e7729=b(_0x598872,_0x49657e,_0x413104),_0x20f252=b(_0x49657e,_0x2763b6,_0x413104),_0x4a23c5=b(_0x44dec4,_0x2e7729,_0x413104),_0x1c0a5e=b(_0x2e7729,_0x20f252,_0x413104),_0xf5a83f=b(_0x4a23c5,_0x1c0a5e,_0x413104);return{'left':[_0x4db72a,_0x44dec4,_0x4a23c5,_0xf5a83f],'right':[_0xf5a83f,_0x1c0a5e,_0x20f252,_0x2763b6]};}function O(_0x22b024,_0xd86a6f,_0x30dcec){const _0x4c76c4=_0xfb34;let _0x1cf7f8=_0x30dcec['x']-_0xd86a6f['x'],_0x57c7f8=_0x30dcec['y']-_0xd86a6f['y'],_0x42e8e5=_0x1cf7f8*_0x1cf7f8+_0x57c7f8*_0x57c7f8,_0x15a886=_0x42e8e5<=g?0x0:Math['max'](0x0,Math[_0x4c76c4(0x12d)](0x1,((_0x22b024['x']-_0xd86a6f['x'])*_0x1cf7f8+(_0x22b024['y']-_0xd86a6f['y'])*_0x57c7f8)/_0x42e8e5)),_0xd5d034={'x':_0xd86a6f['x']+_0x1cf7f8*_0x15a886,'y':_0xd86a6f['y']+_0x57c7f8*_0x15a886};return{'point':_0xd5d034,'ratio':_0x15a886,'distance':x(_0x22b024,_0xd5d034)};}function re(_0x57bf76,_0x57fef2,_0x58f621){const _0x3a9fca=_0xfb34;return O(_0x57bf76,_0x57fef2,_0x58f621)[_0x3a9fca(0x121)]**0x2;}function k(_0x3d9cb8,_0x22eade){const _0x56fb56=_0xfb34;if(_0x3d9cb8[_0x56fb56(0x169)]<=0x2)return _0x3d9cb8[_0x56fb56(0x134)](_);let _0x1eaa2c=0x0,_0x20db1a=0x0,_0xf38245=_0x3d9cb8[0x0],_0xcc0706=_0x3d9cb8[_0x3d9cb8[_0x56fb56(0x169)]-0x1],_0x21b180=_0x22eade*_0x22eade;for(let _0xd88136=0x1;_0xd88136<_0x3d9cb8[_0x56fb56(0x169)]-0x1;_0xd88136++){let _0x2c9b04=re(_0x3d9cb8[_0xd88136],_0xf38245,_0xcc0706);_0x2c9b04>_0x1eaa2c&&(_0x1eaa2c=_0x2c9b04,_0x20db1a=_0xd88136);}if(_0x1eaa2c<=_0x21b180)return[_(_0xf38245),_(_0xcc0706)];let _0x265ffc=k(_0x3d9cb8[_0x56fb56(0x127)](0x0,_0x20db1a+0x1),_0x22eade),_0x392a67=k(_0x3d9cb8['slice'](_0x20db1a),_0x22eade);return[..._0x265ffc['slice'](0x0,-0x1),..._0x392a67];}function ie(_0x5abbb0,_0x292144){let _0x73f008=_0x5abbb0[_0x292144],_0x17061c=_0x5abbb0[_0x292144+0x1],_0x339766=_0x5abbb0[_0x292144-0x1]??_0x73f008;return{'x':_0x73f008['x']+(_0x17061c['x']-_0x339766['x'])/0x6,'y':_0x73f008['y']+(_0x17061c['y']-_0x339766['y'])/0x6};}function A(_0x4e2bd2,_0x24fda7){let _0x3764db=_0x4e2bd2[_0x24fda7],_0x7b6501=_0x4e2bd2[_0x24fda7-0x1],_0x5ae195=_0x4e2bd2[_0x24fda7+0x1]??_0x3764db;return{'x':_0x3764db['x']-(_0x5ae195['x']-_0x7b6501['x'])/0x6,'y':_0x3764db['y']-(_0x5ae195['y']-_0x7b6501['y'])/0x6};}function j(_0x36d05f,_0xb33b06){const _0x434fed=_0xfb34;let _0x3fb079=_0x36d05f['anchors'][_0xb33b06],_0x16e36d=_0x36d05f['anchors'][_0xb33b06-0x1]??(_0x36d05f[_0x434fed(0x12a)]?_0x36d05f[_0x434fed(0x15c)][_0x36d05f['anchors'][_0x434fed(0x169)]-0x1]:null),_0x2d48c8=_0x36d05f[_0x434fed(0x15c)][_0xb33b06+0x1]??(_0x36d05f[_0x434fed(0x12a)]?_0x36d05f[_0x434fed(0x15c)][0x0]:null),_0x5b8def=_0x16e36d&&_0x2d48c8?S({'x':_0x2d48c8['x']-_0x16e36d['x'],'y':_0x2d48c8['y']-_0x16e36d['y']}):_0x2d48c8?S({'x':_0x2d48c8['x']-_0x3fb079['x'],'y':_0x2d48c8['y']-_0x3fb079['y']}):_0x16e36d?S({'x':_0x3fb079['x']-_0x16e36d['x'],'y':_0x3fb079['y']-_0x16e36d['y']}):{'x':0x1,'y':0x0},_0x59ba2b=_0x16e36d&&_0x2d48c8?Math['max'](0x32,x(_0x16e36d,_0x2d48c8)/0x4):0x32;return{'in':{'x':_0x3fb079['x']-_0x5b8def['x']*_0x59ba2b,'y':_0x3fb079['y']-_0x5b8def['y']*_0x59ba2b},'out':{'x':_0x3fb079['x']+_0x5b8def['x']*_0x59ba2b,'y':_0x3fb079['y']+_0x5b8def['y']*_0x59ba2b}};}function M(_0x465307,_0x53fa7d){const _0x2ee77e=_0xfb34;let _0x2f1d5a=_0x465307[_0x53fa7d],_0x409422=_0x53fa7d==='in'?_0x2ee77e(0x15f):'in',_0x490242=_0x465307[_0x409422];if(_0x2f1d5a){if(_0x465307['pointType']===_0x2ee77e(0x122)){_0x465307[_0x409422]=C(_0x465307,_0x2f1d5a);return;}_0x465307[_0x2ee77e(0x138)]==='smooth'&&(_0x465307[_0x409422]=C(_0x465307,_0x2f1d5a,_0x490242?x(_0x465307,_0x490242):x(_0x465307,_0x2f1d5a)));}}function ae(_0x573efd,_0x38eac5){const _0x4432ac=_0xfb34;let _0x270420=y(_0x573efd);return!_0x38eac5||_0x270420[_0x4432ac(0x12a)]||_0x270420[_0x4432ac(0x15c)][_0x4432ac(0x169)]===0x0||_0x270420[_0x4432ac(0x15c)]['push']({'id':'__ink-preview-anchor__','x':_0x38eac5['x'],'y':_0x38eac5['y'],'pointType':'corner'}),_0x270420;}function oe(_0x27d520,_0x597068={}){const _0x1c15ae=_0xfb34;let _0x3f4f7f=Math[_0x1c15ae(0x123)](0x0,_0x597068[_0x1c15ae(0x152)]??Math[_0x1c15ae(0x123)](0x4,_0x27d520[_0x1c15ae(0x13c)]*0.35)),_0x1f87d8=_0x597068[_0x1c15ae(0x17a)]??(_0x56d711=>_0x1c15ae(0x176)+_0x56d711),_0x3bcb77=k(_0x27d520[_0x1c15ae(0x13a)],_0x3f4f7f),_0x33f090=_0x3bcb77['map']((_0x128b33,_0xeaee5c)=>({'id':_0x1f87d8(_0xeaee5c),'x':_0x128b33['x'],'y':_0x128b33['y'],'pointType':_0x1c15ae(0x141)}));for(let _0x42138d=0x0;_0x42138d<_0x33f090[_0x1c15ae(0x169)]-0x1;_0x42138d++)_0x33f090[_0x42138d]['out']=ie(_0x3bcb77,_0x42138d),_0x33f090[_0x42138d+0x1]['in']=A(_0x3bcb77,_0x42138d+0x1);return{'kind':_0x1c15ae(0x13b),'closed':!0x1,'anchors':_0x33f090};}function se(_0x116306,_0x3b0a79,_0x37214e){const _0x582ef8=_0xfb34;let _0x4a0807=null,_0x402d52=['anchor','in',_0x582ef8(0x15f)];return _0x116306[_0x582ef8(0x15c)]['forEach']((_0x9f32be,_0x58859e)=>{_0x402d52['forEach'](_0x1dc52f=>{const _0x5f00ea=_0xfb34;if(!E(_0x116306,_0x58859e,_0x1dc52f))return;let _0x2ae29c=te(_0x9f32be,_0x1dc52f);if(!_0x2ae29c)return;let _0x3ba76b=x(_0x3b0a79,_0x2ae29c);_0x3ba76b>_0x37214e||_0x4a0807&&_0x3ba76b>=_0x4a0807[_0x5f00ea(0x121)]||(_0x4a0807={'handle':{'kind':_0x1dc52f,'anchorId':_0x9f32be['id']},'point':_(_0x2ae29c),'distance':_0x3ba76b});});}),_0x4a0807;}function ce(_0x16b21a,_0x56a04c,_0x29635c){const _0x2eaa14=_0xfb34;let _0x3e3609=null,_0x4d2eac=_0x16b21a['closed']?_0x16b21a[_0x2eaa14(0x15c)][_0x2eaa14(0x169)]:Math[_0x2eaa14(0x123)](0x0,_0x16b21a[_0x2eaa14(0x15c)][_0x2eaa14(0x169)]-0x1);for(let _0x3b1b81=0x0;_0x3b1b81<_0x4d2eac;_0x3b1b81++){let _0x743e3a=T(_0x16b21a,_0x3b1b81);if(!_0x743e3a)continue;let _0x4a0285=D(_0x743e3a,0x0);for(let _0x2ab11d=0x1;_0x2ab11d<=0x20;_0x2ab11d++){let _0x3e6995=D(_0x743e3a,_0x2ab11d/0x20),_0xd8b160=O(_0x56a04c,_0x4a0285,_0x3e6995),_0x4d6173=(_0x2ab11d-0x1+_0xd8b160[_0x2eaa14(0x137)])/0x20;(!_0x3e3609||_0xd8b160['distance']<_0x3e3609[_0x2eaa14(0x121)])&&(_0x3e3609={'segmentIndex':_0x3b1b81,'t':_0x4d6173,'point':_0xd8b160[_0x2eaa14(0x15b)],'distance':_0xd8b160[_0x2eaa14(0x121)]}),_0x4a0285=_0x3e6995;}}return _0x3e3609&&_0x3e3609[_0x2eaa14(0x121)]<=_0x29635c?_0x3e3609:null;}function le(_0x5c0cd0,_0x26da36,_0x115bce){const _0x18fd77=_0xfb34;let _0x3096d8=y(_0x5c0cd0),_0x365dd4=w(_0x3096d8,_0x26da36[_0x18fd77(0x164)]),_0x7d51ad=T(_0x3096d8,_0x26da36['segmentIndex']);if(!_0x365dd4||!_0x7d51ad)return _0x3096d8;let _0x4b6e71=ne(_0x7d51ad,Math[_0x18fd77(0x123)](0x0,Math[_0x18fd77(0x12d)](0x1,_0x26da36['t']))),_0x54d8f7={'id':_0x115bce(),'x':_0x4b6e71[_0x18fd77(0x148)][0x3]['x'],'y':_0x4b6e71[_0x18fd77(0x148)][0x3]['y'],'in':_(_0x4b6e71[_0x18fd77(0x148)][0x2]),'out':_(_0x4b6e71['right'][0x1]),'pointType':_0x18fd77(0x141)};return _0x3096d8[_0x18fd77(0x15c)][_0x365dd4[_0x18fd77(0x15a)]][_0x18fd77(0x15f)]=_(_0x4b6e71[_0x18fd77(0x148)][0x1]),_0x3096d8[_0x18fd77(0x15c)][_0x365dd4[_0x18fd77(0x16e)]]['in']=_(_0x4b6e71[_0x18fd77(0x157)][0x2]),_0x3096d8[_0x18fd77(0x15c)][_0x18fd77(0x128)](_0x365dd4[_0x18fd77(0x15a)]+0x1,0x0,_0x54d8f7),_0x3096d8;}function ue(_0x1168a2,_0x5aff59){const _0x3a61ee=_0xfb34;let _0x3b89bb=y(_0x1168a2);return _0x3b89bb['anchors']=_0x3b89bb[_0x3a61ee(0x15c)][_0x3a61ee(0x16b)](_0x2f4a47=>_0x2f4a47['id']!==_0x5aff59),_0x3b89bb[_0x3a61ee(0x12a)]&&_0x3b89bb[_0x3a61ee(0x15c)]['length']<0x3&&(_0x3b89bb[_0x3a61ee(0x12a)]=!0x1),_0x3b89bb;}function N(_0x413ca2,_0x363103,_0x471f07){const _0x2fd4f2=_0xfb34;let _0x4f8f40=y(_0x413ca2),_0x3ab0c9=_0x4f8f40[_0x2fd4f2(0x15c)]['findIndex'](_0x307b8f=>_0x307b8f['id']===_0x363103),_0x561738=_0x4f8f40[_0x2fd4f2(0x15c)][_0x3ab0c9];if(!_0x561738)return _0x4f8f40;if(_0x561738[_0x2fd4f2(0x138)]=_0x471f07,_0x471f07===_0x2fd4f2(0x135))return delete _0x561738['in'],delete _0x561738[_0x2fd4f2(0x15f)],_0x4f8f40;let _0x235145=j(_0x4f8f40,_0x3ab0c9);if(_0x561738['in']=_0x561738['in']?_(_0x561738['in']):_0x235145['in'],_0x561738[_0x2fd4f2(0x15f)]=_0x561738['out']?_(_0x561738['out']):_0x235145[_0x2fd4f2(0x15f)],_0x471f07===_0x2fd4f2(0x122)){let _0x22c872=Math[_0x2fd4f2(0x123)](x(_0x561738,_0x561738['in']),x(_0x561738,_0x561738[_0x2fd4f2(0x15f)]),0x32),_0x25925e=S({'x':_0x561738['out']['x']-_0x561738['x'],'y':_0x561738[_0x2fd4f2(0x15f)]['y']-_0x561738['y']});_0x561738[_0x2fd4f2(0x15f)]={'x':_0x561738['x']+_0x25925e['x']*_0x22c872,'y':_0x561738['y']+_0x25925e['y']*_0x22c872},_0x561738['in']={'x':_0x561738['x']-_0x25925e['x']*_0x22c872,'y':_0x561738['y']-_0x25925e['y']*_0x22c872};}else _0x471f07===_0x2fd4f2(0x151)&&M(_0x561738,_0x2fd4f2(0x15f));return _0x4f8f40;}function P(_0x3ea508,_0x5107e8){const _0x4bea2f=_0xfb34;let _0x4df642=_0x3ea508[_0x4bea2f(0x15c)][_0x4bea2f(0x172)](_0x13f662=>_0x13f662['id']===_0x5107e8),_0x59c04a=(_0x4df642==null?void 0x0:_0x4df642[_0x4bea2f(0x138)])??'corner';return N(_0x3ea508,_0x5107e8,_0x59c04a==='corner'?_0x4bea2f(0x151):_0x59c04a===_0x4bea2f(0x151)?_0x4bea2f(0x122):_0x59c04a===_0x4bea2f(0x122)?'free':_0x4bea2f(0x135));}function F(_0x544eaf,_0x575373,_0xd68f48){const _0x4d1695=_0xfb34;let _0x1daaac=y(_0x544eaf),_0x289af1=_0x1daaac['anchors']['find'](_0x4067f2=>_0x4067f2['id']===_0x575373[_0x4d1695(0x11f)]);if(!_0x289af1)return _0x1daaac;if(_0x575373[_0x4d1695(0x11e)]==='anchor'){let _0x2b73c5={'x':_0xd68f48['x']-_0x289af1['x'],'y':_0xd68f48['y']-_0x289af1['y']};return _0x289af1['x']=_0xd68f48['x'],_0x289af1['y']=_0xd68f48['y'],_0x289af1['in']&&={'x':_0x289af1['in']['x']+_0x2b73c5['x'],'y':_0x289af1['in']['y']+_0x2b73c5['y']},_0x289af1[_0x4d1695(0x15f)]&&={'x':_0x289af1[_0x4d1695(0x15f)]['x']+_0x2b73c5['x'],'y':_0x289af1['out']['y']+_0x2b73c5['y']},_0x1daaac;}return _0x289af1[_0x575373[_0x4d1695(0x11e)]]=_(_0xd68f48),_0x289af1[_0x4d1695(0x138)]===_0x4d1695(0x135)&&(_0x289af1[_0x4d1695(0x138)]='free'),M(_0x289af1,_0x575373['kind']),_0x1daaac;}const I=1e-9;function L(_0x3436e8){const _0x4767c9=_0xfb34;let _0x36b857=Math[_0x4767c9(0x17b)](_0x3436e8*0x2710)/0x2710;return Object['is'](_0x36b857,-0x0)?'0':String(_0x36b857);}function R(_0x42ac74){return L(_0x42ac74['x'])+'\x20'+L(_0x42ac74['y']);}function z(_0x44891f,_0x4bd96f){return{'x':_0x44891f['x']-_0x4bd96f['x'],'y':_0x44891f['y']-_0x4bd96f['y']};}function B(_0x59b28c,_0x578fef,_0x23119e,_0x309e59,_0x429a9c){let _0x130ab6=0x1-_0x429a9c;return{'x':_0x130ab6*_0x130ab6*_0x130ab6*_0x59b28c['x']+0x3*_0x130ab6*_0x130ab6*_0x429a9c*_0x578fef['x']+0x3*_0x130ab6*_0x429a9c*_0x429a9c*_0x23119e['x']+_0x429a9c*_0x429a9c*_0x429a9c*_0x309e59['x'],'y':_0x130ab6*_0x130ab6*_0x130ab6*_0x59b28c['y']+0x3*_0x130ab6*_0x130ab6*_0x429a9c*_0x578fef['y']+0x3*_0x130ab6*_0x429a9c*_0x429a9c*_0x23119e['y']+_0x429a9c*_0x429a9c*_0x429a9c*_0x309e59['y']};}function V(_0x267d11,_0x260039,_0x5e0036,_0xa32ffc){const _0x44fc4c=_0xfb34;let _0x3b0fb2=-_0x267d11+0x3*_0x260039-0x3*_0x5e0036+_0xa32ffc,_0x2bc1dd=0x3*_0x267d11-0x6*_0x260039+0x3*_0x5e0036,_0x11d51d=-0x3*_0x267d11+0x3*_0x260039,_0x20e4b8=[];if(Math[_0x44fc4c(0x165)](_0x3b0fb2)<I){if(Math['abs'](_0x2bc1dd)<I)return _0x20e4b8;let _0x377c75=-_0x11d51d/(0x2*_0x2bc1dd);return _0x377c75>0x0&&_0x377c75<0x1&&_0x20e4b8[_0x44fc4c(0x13f)](_0x377c75),_0x20e4b8;}let _0x3d02c3=_0x2bc1dd*_0x2bc1dd-0x3*_0x3b0fb2*_0x11d51d;if(_0x3d02c3<0x0)return _0x20e4b8;let _0x105aa7=Math[_0x44fc4c(0x14a)](Math[_0x44fc4c(0x123)](0x0,_0x3d02c3)),_0x54ede7=(-_0x2bc1dd+_0x105aa7)/(0x3*_0x3b0fb2),_0x1aa6fa=(-_0x2bc1dd-_0x105aa7)/(0x3*_0x3b0fb2);return _0x54ede7>0x0&&_0x54ede7<0x1&&_0x20e4b8[_0x44fc4c(0x13f)](_0x54ede7),_0x1aa6fa>0x0&&_0x1aa6fa<0x1&&Math[_0x44fc4c(0x165)](_0x1aa6fa-_0x54ede7)>I&&_0x20e4b8[_0x44fc4c(0x13f)](_0x1aa6fa),_0x20e4b8;}function H(_0x526bb7,_0x319bf5,_0x19101b,_0x8ef6f3,_0x5ed795){const _0x1b00a9=_0xfb34;_0x526bb7['push'](_0x319bf5,_0x5ed795),new Set([...V(_0x319bf5['x'],_0x19101b['x'],_0x8ef6f3['x'],_0x5ed795['x']),...V(_0x319bf5['y'],_0x19101b['y'],_0x8ef6f3['y'],_0x5ed795['y'])])[_0x1b00a9(0x12b)](_0x4bcc87=>{const _0x4819c1=_0x1b00a9;_0x526bb7[_0x4819c1(0x13f)](B(_0x319bf5,_0x19101b,_0x8ef6f3,_0x5ed795,_0x4bcc87));});}function U(_0x1d40ca){const _0x5cca3c=_0xfb34;let _0x5814ad=_0x1d40ca['anchors'];if(_0x5814ad[_0x5cca3c(0x169)]<=0x1)return _0x5814ad;let _0x378656=[];for(let _0x22bf71=0x1;_0x22bf71<_0x5814ad[_0x5cca3c(0x169)];_0x22bf71++){let _0x69020e=_0x5814ad[_0x22bf71-0x1],_0x45884d=_0x5814ad[_0x22bf71];H(_0x378656,_0x69020e,_0x69020e[_0x5cca3c(0x15f)]??_0x69020e,_0x45884d['in']??_0x45884d,_0x45884d);}if(_0x1d40ca[_0x5cca3c(0x12a)]&&_0x5814ad[_0x5cca3c(0x169)]>0x1){let _0x42e91a=_0x5814ad[_0x5814ad[_0x5cca3c(0x169)]-0x1],_0x1d8e0c=_0x5814ad[0x0];H(_0x378656,_0x42e91a,_0x42e91a['out']??_0x42e91a,_0x1d8e0c['in']??_0x1d8e0c,_0x1d8e0c);}return _0x378656;}function de(_0x5efabb){const _0x20a2bc=_0xfb34;let _0x1f45e9=_0x5efabb['points'];if(_0x1f45e9[_0x20a2bc(0x169)]<=0x1)return _0x1f45e9;let _0x4bd307=[];for(let _0x4e269e=0x0;_0x4e269e<_0x1f45e9[_0x20a2bc(0x169)]-0x1;_0x4e269e++){let _0x3e0599=_0x1f45e9[_0x4e269e],_0x56cd97=_0x1f45e9[_0x4e269e+0x1],_0x28f2f7=_0x1f45e9[_0x4e269e-0x1]??_0x3e0599,_0x226430=_0x1f45e9[_0x4e269e+0x2]??_0x56cd97;H(_0x4bd307,_0x3e0599,{'x':_0x3e0599['x']+(_0x56cd97['x']-_0x28f2f7['x'])/0x6,'y':_0x3e0599['y']+(_0x56cd97['y']-_0x28f2f7['y'])/0x6},{'x':_0x56cd97['x']-(_0x226430['x']-_0x3e0599['x'])/0x6,'y':_0x56cd97['y']-(_0x226430['y']-_0x3e0599['y'])/0x6},_0x56cd97);}return _0x4bd307;}function fe(_0x2b5f35){const _0x54c17e=_0xfb34;return _0x2b5f35[_0x54c17e(0x11e)]===_0x54c17e(0x13b)?U(_0x2b5f35):de(_0x2b5f35);}function W(_0x10cc16){const _0x7fbaa1=_0xfb34;let _0x37e7ef=Math[_0x7fbaa1(0x17b)](_0x10cc16*0x2710)/0x2710;return Object['is'](_0x37e7ef,-0x0)?0x0:_0x37e7ef;}function G(_0x55a2c3){const _0x54e03e=_0xfb34;let _0x31413e=fe(_0x55a2c3);if(_0x31413e[_0x54e03e(0x169)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x2827b3=Math['min'](..._0x31413e[_0x54e03e(0x134)](_0x6ae168=>_0x6ae168['x'])),_0x20f669=Math[_0x54e03e(0x12d)](..._0x31413e[_0x54e03e(0x134)](_0x2d2c6b=>_0x2d2c6b['y'])),_0x3d44f4=Math[_0x54e03e(0x123)](..._0x31413e[_0x54e03e(0x134)](_0x1537c2=>_0x1537c2['x'])),_0x325a20=Math['max'](..._0x31413e[_0x54e03e(0x134)](_0x209b5a=>_0x209b5a['y']));return{'left':W(_0x2827b3),'top':W(_0x20f669),'width':W(Math['max'](0x1,_0x3d44f4-_0x2827b3)),'height':W(Math['max'](0x1,_0x325a20-_0x20f669))};}function _0xfb34(_0x1d67e9,_0xa8872d){_0x1d67e9=_0x1d67e9-0x11e;const _0x5ecdc2=_0x5ecd();let _0xfb340e=_0x5ecdc2[_0x1d67e9];return _0xfb340e;}function pe(_0x28958b,_0x3af3b8){const _0x1ceeba=_0xfb34;let _0x3037a8=_0x28958b['anchors'];if(_0x3037a8[_0x1ceeba(0x169)]===0x0)return'';let _0x5ce66d=['M\x20'+R(z(_0x3037a8[0x0],_0x3af3b8))];for(let _0x5b1ea9=0x1;_0x5b1ea9<_0x3037a8[_0x1ceeba(0x169)];_0x5b1ea9++){let _0x2e839c=_0x3037a8[_0x5b1ea9-0x1],_0x30619a=_0x3037a8[_0x5b1ea9],_0x352395=_0x2e839c[_0x1ceeba(0x15f)]??_0x2e839c,_0x4bd8bd=_0x30619a['in']??_0x30619a;_0x5ce66d[_0x1ceeba(0x13f)]('C\x20'+R(z(_0x352395,_0x3af3b8))+'\x20'+R(z(_0x4bd8bd,_0x3af3b8))+'\x20'+R(z(_0x30619a,_0x3af3b8)));}if(_0x28958b[_0x1ceeba(0x12a)]&&_0x3037a8[_0x1ceeba(0x169)]>0x1){let _0x534b55=_0x3037a8[_0x3037a8[_0x1ceeba(0x169)]-0x1],_0x117291=_0x3037a8[0x0],_0x576698=_0x534b55[_0x1ceeba(0x15f)]??_0x534b55,_0x417e56=_0x117291['in']??_0x117291;_0x5ce66d[_0x1ceeba(0x13f)]('C\x20'+R(z(_0x576698,_0x3af3b8))+'\x20'+R(z(_0x417e56,_0x3af3b8))+'\x20'+R(z(_0x117291,_0x3af3b8))),_0x5ce66d[_0x1ceeba(0x13f)]('Z');}return _0x5ce66d[_0x1ceeba(0x14e)]('\x20');}function me(_0x2bfe73,_0x528dad){const _0x6c1ae2=_0xfb34;let _0x57044a=_0x2bfe73['points'][_0x6c1ae2(0x134)](_0x1f9167=>z(_0x1f9167,_0x528dad));if(_0x57044a[_0x6c1ae2(0x169)]===0x0)return'';if(_0x57044a['length']===0x1)return'M\x20'+R(_0x57044a[0x0]);let _0x57a346=['M\x20'+R(_0x57044a[0x0])];for(let _0x4f1c0f=0x0;_0x4f1c0f<_0x57044a[_0x6c1ae2(0x169)]-0x1;_0x4f1c0f++){let _0x5354df=_0x57044a[_0x4f1c0f],_0x3ba180=_0x57044a[_0x4f1c0f+0x1],_0x5c94ce=_0x57044a[_0x4f1c0f-0x1]??_0x5354df,_0x2686c3=_0x57044a[_0x4f1c0f+0x2]??_0x3ba180,_0x90dac3={'x':_0x5354df['x']+(_0x3ba180['x']-_0x5c94ce['x'])/0x6,'y':_0x5354df['y']+(_0x3ba180['y']-_0x5c94ce['y'])/0x6},_0xb99974={'x':_0x3ba180['x']-(_0x2686c3['x']-_0x5354df['x'])/0x6,'y':_0x3ba180['y']-(_0x2686c3['y']-_0x5354df['y'])/0x6};_0x57a346[_0x6c1ae2(0x13f)]('C\x20'+R(_0x90dac3)+'\x20'+R(_0xb99974)+'\x20'+R(_0x3ba180));}return _0x57a346[_0x6c1ae2(0x14e)]('\x20');}function he(_0x3a771b,_0x12afda){const _0x103e45=_0xfb34;return _0x3a771b[_0x103e45(0x11e)]===_0x103e45(0x13b)?pe(_0x3a771b,_0x12afda):me(_0x3a771b,_0x12afda);}function ge(_0x184851,_0x5a7baa){const _0x2f19c6=_0xfb34;return _0x5a7baa!=null&&_0x5a7baa['color']?_0x5a7baa[_0x2f19c6(0x158)]:_0x184851[_0x2f19c6(0x11e)]===_0x2f19c6(0x13b)?_0x2f19c6(0x133):_0x184851[_0x2f19c6(0x158)];}function _e(_0x5c26ac,_0x397b31){const _0x44f9aa=_0xfb34;return(_0x397b31==null?void 0x0:_0x397b31['width'])===void 0x0?_0x5c26ac['kind']===_0x44f9aa(0x13b)?0x2:_0x5c26ac[_0x44f9aa(0x13c)]:_0x397b31[_0x44f9aa(0x13c)];}function ve(_0x19f478,_0x3356df){const _0x3a0c0f=_0xfb34;return(_0x3356df==null?void 0x0:_0x3356df[_0x3a0c0f(0x12c)])===void 0x0?_0x19f478[_0x3a0c0f(0x11e)]==='pen'?void 0x0:_0x19f478[_0x3a0c0f(0x12c)]:_0x3356df['opacity'];}function ye(_0x2d62fd,_0x304670){const _0x1efda2=_0xfb34;let _0xf38616=G(_0x2d62fd),_0x538d40=he(_0x2d62fd,{'x':_0xf38616['left'],'y':_0xf38616[_0x1efda2(0x174)]}),_0x3f4908=_0x2d62fd[_0x1efda2(0x11e)]===_0x1efda2(0x13b)&&_0x2d62fd[_0x1efda2(0x12a)],_0x397cc1=_0x304670==null?void 0x0:_0x304670['fillColor'];return{'shapeType':_0x4aa715[_0x1efda2(0x177)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0xf38616[_0x1efda2(0x13c)],'h':_0xf38616[_0x1efda2(0x173)],'fill':_0x3f4908?_0x1efda2(0x161):_0x1efda2(0x126),'stroke':!0x0,'data':_0x538d40,'dataArray':be(_0x2d62fd,{'x':_0xf38616['left'],'y':_0xf38616[_0x1efda2(0x174)]})}]},'fill':_0x3f4908&&_0x397cc1?{'color':_0x397cc1,'fillType':_0x3d9285['SolidFill']}:{'fillType':_0x3d9285[_0x1efda2(0x155)]},'stroke':{'color':ge(_0x2d62fd,_0x304670),'width':_e(_0x2d62fd,_0x304670),'opacity':ve(_0x2d62fd,_0x304670),'lineStrokeType':_0x53320d[_0x1efda2(0x146)],'capType':_0x4a7b4e[_0x1efda2(0x171)],'lineJoinType':_0x127e75[_0x1efda2(0x171)]}};}function K(_0xb70e3,_0x355490){return{'x':_0xb70e3['x']-_0x355490['x'],'y':_0xb70e3['y']-_0x355490['y']};}function be(_0x2c8e8c,_0x2d684f){const _0xddc849=_0xfb34;if(_0x2c8e8c[_0xddc849(0x11e)]===_0xddc849(0x13b)){let _0x5f3f2f=_0x2c8e8c['anchors'];if(_0x5f3f2f[_0xddc849(0x169)]===0x0)return[];let _0x163fa1=K(_0x5f3f2f[0x0],_0x2d684f),_0x101a10=[{'command':'M','points':[_0x163fa1['x'],_0x163fa1['y']]}];for(let _0x14062d=0x1;_0x14062d<_0x5f3f2f[_0xddc849(0x169)];_0x14062d++){let _0x55edc5=_0x5f3f2f[_0x14062d-0x1],_0x7bd807=_0x5f3f2f[_0x14062d],_0x48c016=K(_0x55edc5['out']??_0x55edc5,_0x2d684f),_0x3105b3=K(_0x7bd807['in']??_0x7bd807,_0x2d684f),_0x3660bc=K(_0x7bd807,_0x2d684f);_0x101a10['push']({'command':'C','points':[_0x48c016['x'],_0x48c016['y'],_0x3105b3['x'],_0x3105b3['y'],_0x3660bc['x'],_0x3660bc['y']]});}if(_0x2c8e8c[_0xddc849(0x12a)]&&_0x5f3f2f[_0xddc849(0x169)]>0x1){let _0x3ec656=_0x5f3f2f[_0x5f3f2f[_0xddc849(0x169)]-0x1],_0x19ab0a=_0x5f3f2f[0x0],_0x46b4e2=K(_0x3ec656[_0xddc849(0x15f)]??_0x3ec656,_0x2d684f),_0x48e0bd=K(_0x19ab0a['in']??_0x19ab0a,_0x2d684f),_0x337e25=K(_0x19ab0a,_0x2d684f);_0x101a10[_0xddc849(0x13f)]({'command':'C','points':[_0x46b4e2['x'],_0x46b4e2['y'],_0x48e0bd['x'],_0x48e0bd['y'],_0x337e25['x'],_0x337e25['y']]}),_0x101a10['push']({'command':'z','points':[]});}return _0x101a10;}let _0x2ca072=_0x2c8e8c[_0xddc849(0x13a)][_0xddc849(0x134)](_0x3d4c5c=>K(_0x3d4c5c,_0x2d684f));if(_0x2ca072[_0xddc849(0x169)]===0x0)return[];let _0x4f57db=[{'command':'M','points':[_0x2ca072[0x0]['x'],_0x2ca072[0x0]['y']]}];for(let _0x545f60=0x0;_0x545f60<_0x2ca072[_0xddc849(0x169)]-0x1;_0x545f60++){let _0x3c4165=_0x2ca072[_0x545f60],_0x5a3859=_0x2ca072[_0x545f60+0x1],_0x7f9ae7=_0x2ca072[_0x545f60-0x1]??_0x3c4165,_0x4d3387=_0x2ca072[_0x545f60+0x2]??_0x5a3859,_0x19bbf1={'x':_0x3c4165['x']+(_0x5a3859['x']-_0x7f9ae7['x'])/0x6,'y':_0x3c4165['y']+(_0x5a3859['y']-_0x7f9ae7['y'])/0x6},_0xaf45cb={'x':_0x5a3859['x']-(_0x4d3387['x']-_0x3c4165['x'])/0x6,'y':_0x5a3859['y']-(_0x4d3387['y']-_0x3c4165['y'])/0x6};_0x4f57db[_0xddc849(0x13f)]({'command':'C','points':[_0x19bbf1['x'],_0x19bbf1['y'],_0xaf45cb['x'],_0xaf45cb['y'],_0x5a3859['x'],_0x5a3859['y']]});}return _0x4f57db;}function xe(_0x4d2de5){const _0x2ae7a7=_0xfb34;let {model:_0x356675,sourceModel:_0x476dc3=_0x356675,style:_0x228d5f}=_0x4d2de5,_0x320a35=_0x4d2de5[_0x2ae7a7(0x13e)]??_0x356675[_0x2ae7a7(0x11e)],_0x1df080=G(_0x356675),_0x11d716=_0x356675[_0x2ae7a7(0x11e)]===_0x2ae7a7(0x13b)&&_0x320a35!==_0x2ae7a7(0x13b)?_0x356675:void 0x0;return{'transform':{..._0x1df080,'rotation':0x0},'shapeData':ye(_0x356675,_0x228d5f),'ink':{'version':0x1,'tool':_0x320a35,'sourceModel':_0x476dc3,..._0x11d716?{'editModel':_0x11d716}:{},'normalizedBounds':_0x1df080}};}var Se=_0x12824f(0x168),Ce='1.0.0-rc.0';function q(_0x1284b6){'@babel/helpers - typeof';const _0x114b7c=_0x12824f;return q=typeof Symbol==_0x114b7c(0x139)&&typeof Symbol[_0x114b7c(0x163)]==_0x114b7c(0x156)?function(_0xc8c90e){return typeof _0xc8c90e;}:function(_0x4a2388){const _0x1ca709=_0x114b7c;return _0x4a2388&&typeof Symbol==_0x1ca709(0x139)&&_0x4a2388[_0x1ca709(0x162)]===Symbol&&_0x4a2388!==Symbol[_0x1ca709(0x125)]?_0x1ca709(0x156):typeof _0x4a2388;},q(_0x1284b6);}function we(_0x16642d,_0x5e3726){const _0x4605ce=_0x12824f;if(q(_0x16642d)!='object'||!_0x16642d)return _0x16642d;var _0x8a85d1=_0x16642d[Symbol[_0x4605ce(0x14b)]];if(_0x8a85d1!==void 0x0){var _0x7fa7cc=_0x8a85d1['call'](_0x16642d,_0x5e3726||_0x4605ce(0x12e));if(q(_0x7fa7cc)!=_0x4605ce(0x14f))return _0x7fa7cc;throw TypeError(_0x4605ce(0x132));}return(_0x5e3726===_0x4605ce(0x144)?String:Number)(_0x16642d);}function J(_0x4a242d){const _0x13c9ea=_0x12824f;var _0x428652=we(_0x4a242d,_0x13c9ea(0x144));return q(_0x428652)==_0x13c9ea(0x156)?_0x428652:_0x428652+'';}function Y(_0x6e450,_0x30418b,_0x45ed00){const _0x1fcfc4=_0x12824f;return(_0x30418b=J(_0x30418b))in _0x6e450?Object[_0x1fcfc4(0x167)](_0x6e450,_0x30418b,{'value':_0x45ed00,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x6e450[_0x30418b]=_0x45ed00,_0x6e450;}const X=_0x276103('ink.host-adapter.service');var Te=class{constructor(){const _0x1a757a=_0x12824f;Y(this,_0x1a757a(0x14c),[]);}[_0x12824f(0x154)](_0x62b286){const _0x12bd43=_0x12824f;return this[_0x12bd43(0x14c)][_0x12bd43(0x13f)](_0x62b286),_0x297405(()=>{const _0x5eba52=_0x12bd43;let _0x50c808=this['_adapters'][_0x5eba52(0x16c)](_0x62b286);_0x50c808>=0x0&&this[_0x5eba52(0x14c)][_0x5eba52(0x128)](_0x50c808,0x1);});}['beginInkMode'](_0x3e7e43){const _0xc7e8a8=_0x12824f;for(let _0x357f0a of this['_adapters'])if(_0x357f0a[_0xc7e8a8(0x153)](_0x3e7e43))return!0x0;return!0x1;}async[_0x12824f(0x129)](_0x226cfa){const _0x1bb35e=_0x12824f;for(let _0x4d5376 of this[_0x1bb35e(0x14c)])if(_0x4d5376[_0x1bb35e(0x129)]&&await _0x4d5376['createCustomShape'](_0x226cfa))return!0x0;return!0x1;}};const Ee={'id':_0x12824f(0x15e),'type':_0x5b45d3[_0x12824f(0x178)],'handler':(_0x1b2182,_0x5149c2)=>_0x5149c2?_0x1b2182[_0x12824f(0x15d)](X)[_0x12824f(0x153)](_0x5149c2):!0x1},Z={};function Q(_0x1c1d7e,_0x5aff32){return function(_0x5448dd,_0x5ad8e5){_0x5aff32(_0x5448dd,_0x5ad8e5,_0x1c1d7e);};}function De(_0x5c2ec3,_0x4651f0,_0x571f8e,_0x6fff3e){const _0x2ac89c=_0x12824f;var _0x288927=arguments[_0x2ac89c(0x169)],_0x57c82a=_0x288927<0x3?_0x4651f0:_0x6fff3e===null?_0x6fff3e=Object[_0x2ac89c(0x14d)](_0x4651f0,_0x571f8e):_0x6fff3e,_0x2a9872;if(typeof Reflect==_0x2ac89c(0x14f)&&typeof Reflect[_0x2ac89c(0x166)]==_0x2ac89c(0x139))_0x57c82a=Reflect['decorate'](_0x5c2ec3,_0x4651f0,_0x571f8e,_0x6fff3e);else{for(var _0x251240=_0x5c2ec3[_0x2ac89c(0x169)]-0x1;_0x251240>=0x0;_0x251240--)(_0x2a9872=_0x5c2ec3[_0x251240])&&(_0x57c82a=(_0x288927<0x3?_0x2a9872(_0x57c82a):_0x288927>0x3?_0x2a9872(_0x4651f0,_0x571f8e,_0x57c82a):_0x2a9872(_0x4651f0,_0x571f8e))||_0x57c82a);}return _0x288927>0x3&&_0x57c82a&&Object[_0x2ac89c(0x167)](_0x4651f0,_0x571f8e,_0x57c82a),_0x57c82a;}let $=class extends _0x19d734{constructor(_0x17ef9d=Z,_0x578ca8,_0x41f82a,_0x120c86){const _0x410b2f=_0x12824f;super(),this[_0x410b2f(0x124)]=_0x17ef9d,this[_0x410b2f(0x136)]=_0x578ca8,this[_0x410b2f(0x120)]=_0x41f82a,this[_0x410b2f(0x170)]=_0x120c86;let {..._0x3b78f9}=_0x110d4d({},Z,this['_config']);this['_configService']['setConfig'](_0x410b2f(0x149),_0x3b78f9);}[_0x12824f(0x16f)](){const _0x4d0b88=_0x12824f;[[X,{'useClass':Te}]][_0x4d0b88(0x12b)](_0x3b9556=>this[_0x4d0b88(0x136)]['add'](_0x3b9556)),this[_0x4d0b88(0x131)](this[_0x4d0b88(0x120)][_0x4d0b88(0x13d)](Ee));}};Y($,'pluginName',_0x12824f(0x150)),Y($,_0x12824f(0x179),Se),Y($,_0x12824f(0x142),Ce),Y($,'type',_0x212eed['UNIVER_UNKNOWN']),$=De([_0x17b879(_0x5a8579),Q(0x1,_0x19a3e6(_0x24e31f)),Q(0x2,_0x46d0bf),Q(0x3,_0x5cf97d)],$);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 _0x541943=_0xfebb;(function(_0x190d8a,_0x2f1818){const _0x412edd=_0xfebb,_0x310bd6=_0x190d8a();while(!![]){try{const _0x5835f7=parseInt(_0x412edd(0xfb))/0x1+parseInt(_0x412edd(0xdb))/0x2+parseInt(_0x412edd(0x129))/0x3+parseInt(_0x412edd(0x134))/0x4+-parseInt(_0x412edd(0x11e))/0x5*(parseInt(_0x412edd(0xfd))/0x6)+parseInt(_0x412edd(0x117))/0x7*(parseInt(_0x412edd(0xec))/0x8)+-parseInt(_0x412edd(0x118))/0x9*(parseInt(_0x412edd(0xf3))/0xa);if(_0x5835f7===_0x2f1818)break;else _0x310bd6['push'](_0x310bd6['shift']());}catch(_0x3be03c){_0x310bd6['push'](_0x310bd6['shift']());}}}(_0x1a4f,0x59ef4));import{ShapeFillEnum as _0x5f1db0,ShapeLineCapEnum as _0x3e9103,ShapeLineJoinEnum as _0x458499,ShapeLineTypeEnum as _0x48c70e,ShapeTypeEnum as _0x315fc1}from'@univerjs-pro/engine-shape';function _0x1a4f(){const _0x1b4b07=['registerAdapter','tool','hypot','ink.config','distance','kind','3408461HRLsEs','18MSDToc','@univerjs-pro/ink','OPERATION','slice','createId','symmetric','5cyEWZY','defineProperty','function','_config','symbol','UNIVER_UNKNOWN','decorate','anchors','Rect','round','abs','1440738JHzmDR','opacity','join','ink.host-adapter.service','ink.operation.start','point','sqrt','disposeWithMe','SolidFill','left','getOwnPropertyDescriptor','1178076yUIIis','length','UNIVER_INK_PLUGIN','packageName','right','_adapters','findIndex','height','find','startIndex','1227910poMZWt','top','iterator','default','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','ratio','start','segmentIndex','map','pluginName','object','get','type','pen','closed','points','forEach','8jidMLI','width','string','onStarting','Round','ink-centerline-','indexOf','6352130zYatzQ','push','add','free','anchor','max','filter','toPrimitive','270504yVkBQy','splice','3044094PwWJhA','createCustomShape','norm','out','prototype','_injector','endIndex','call','smooth','constructor','end','pointType','version','corner','min','none','beginInkMode','color','_configService','SolidLine'];_0x1a4f=function(){return _0x1b4b07;};return _0x1a4f();}import{UniverLicensePlugin as _0xe56a7d}from'@univerjs-pro/license';import{CommandType as _0x21764a,DependentOn as _0x713a96,ICommandService as _0x48cf14,IConfigService as _0x2def3f,Inject as _0x287f3,Injector as _0x34eeca,Plugin as _0x1d99fd,UniverInstanceType as _0x56c145,createIdentifier as _0x1d86a6,merge as _0x4d7b1c,toDisposable as _0x52778c}from'@univerjs/core';const g=0.0001;function _(_0x198b4a){return{'x':_0x198b4a['x'],'y':_0x198b4a['y']};}function v(_0x23f1ca){const _0x422bbf=_0xfebb;return{..._0x23f1ca,'in':_0x23f1ca['in']?_(_0x23f1ca['in']):void 0x0,'out':_0x23f1ca[_0x422bbf(0x100)]?_(_0x23f1ca['out']):void 0x0};}function y(_0x25803e){const _0x994856=_0xfebb;return{'kind':_0x994856(0xe8),'closed':_0x25803e[_0x994856(0xe9)],'anchors':_0x25803e[_0x994856(0x125)][_0x994856(0xe3)](v)};}function b(_0x3243fa,_0x352e61,_0x479f37){return{'x':_0x3243fa['x']+(_0x352e61['x']-_0x3243fa['x'])*_0x479f37,'y':_0x3243fa['y']+(_0x352e61['y']-_0x3243fa['y'])*_0x479f37};}function x(_0x2b0d67,_0x3a01b4){return Math['hypot'](_0x2b0d67['x']-_0x3a01b4['x'],_0x2b0d67['y']-_0x3a01b4['y']);}function S(_0x1e3f73){const _0x5f365f=_0xfebb;let _0x421c23=Math[_0x5f365f(0x113)](_0x1e3f73['x'],_0x1e3f73['y']);return _0x421c23<g?{'x':0x1,'y':0x0}:{'x':_0x1e3f73['x']/_0x421c23,'y':_0x1e3f73['y']/_0x421c23};}function C(_0x132861,_0x1c89a2,_0x3e812c=x(_0x132861,_0x1c89a2)){let _0x1c3c6a=S({'x':_0x132861['x']-_0x1c89a2['x'],'y':_0x132861['y']-_0x1c89a2['y']});return{'x':_0x132861['x']+_0x1c3c6a['x']*_0x3e812c,'y':_0x132861['y']+_0x1c3c6a['y']*_0x3e812c};}function w(_0x74f04b,_0x53dc79){const _0x3f00d0=_0xfebb;let {anchors:_0x33799b}=_0x74f04b;return _0x33799b[_0x3f00d0(0x135)]<0x2||_0x53dc79<0x0?null:_0x53dc79<_0x33799b[_0x3f00d0(0x135)]-0x1?{'startIndex':_0x53dc79,'endIndex':_0x53dc79+0x1,'start':_0x33799b[_0x53dc79],'end':_0x33799b[_0x53dc79+0x1]}:_0x74f04b[_0x3f00d0(0xe9)]&&_0x53dc79===_0x33799b[_0x3f00d0(0x135)]-0x1?{'startIndex':_0x33799b[_0x3f00d0(0x135)]-0x1,'endIndex':0x0,'start':_0x33799b[_0x33799b[_0x3f00d0(0x135)]-0x1],'end':_0x33799b[0x0]}:null;}function T(_0x5e1ae4,_0x58aa40){const _0x100c6d=_0xfebb;let _0x3a914c=w(_0x5e1ae4,_0x58aa40);return _0x3a914c?[_0x3a914c['start'],_0x3a914c[_0x100c6d(0xe1)][_0x100c6d(0x100)]??_0x3a914c['start'],_0x3a914c[_0x100c6d(0x107)]['in']??_0x3a914c[_0x100c6d(0x107)],_0x3a914c[_0x100c6d(0x107)]]:null;}function te(_0x3867de,_0x157fe6){return _0x157fe6==='anchor'?_0x3867de:_0x3867de[_0x157fe6]??null;}function E(_0x35e146,_0x3cdf10,_0x5514b2){const _0x154f1c=_0xfebb;return _0x5514b2===_0x154f1c(0xf7)||_0x35e146[_0x154f1c(0xe9)]?!0x0:_0x5514b2==='in'?_0x3cdf10>0x0:_0x3cdf10<_0x35e146[_0x154f1c(0x125)][_0x154f1c(0x135)]-0x1;}function D(_0x5d2dd0,_0x17154a){let [_0x5f3626,_0xd9a37f,_0x7c5e38,_0x4fc8da]=_0x5d2dd0,_0x535ef1=b(_0x5f3626,_0xd9a37f,_0x17154a),_0x578485=b(_0xd9a37f,_0x7c5e38,_0x17154a),_0x19381d=b(_0x7c5e38,_0x4fc8da,_0x17154a);return b(b(_0x535ef1,_0x578485,_0x17154a),b(_0x578485,_0x19381d,_0x17154a),_0x17154a);}function ne(_0x16b53a,_0x5e0413){let [_0x503b1d,_0x4ae57e,_0x22d5ce,_0x48e244]=_0x16b53a,_0x331acf=b(_0x503b1d,_0x4ae57e,_0x5e0413),_0x3bd54d=b(_0x4ae57e,_0x22d5ce,_0x5e0413),_0x4a1043=b(_0x22d5ce,_0x48e244,_0x5e0413),_0x24b501=b(_0x331acf,_0x3bd54d,_0x5e0413),_0x3c0d6c=b(_0x3bd54d,_0x4a1043,_0x5e0413),_0x33a78f=b(_0x24b501,_0x3c0d6c,_0x5e0413);return{'left':[_0x503b1d,_0x331acf,_0x24b501,_0x33a78f],'right':[_0x33a78f,_0x3c0d6c,_0x4a1043,_0x48e244]};}function O(_0x237b31,_0x53cb70,_0x5e025b){const _0x364403=_0xfebb;let _0x51514a=_0x5e025b['x']-_0x53cb70['x'],_0x1c3ad4=_0x5e025b['y']-_0x53cb70['y'],_0x4cf6c5=_0x51514a*_0x51514a+_0x1c3ad4*_0x1c3ad4,_0x345ed3=_0x4cf6c5<=g?0x0:Math[_0x364403(0xf8)](0x0,Math[_0x364403(0x10b)](0x1,((_0x237b31['x']-_0x53cb70['x'])*_0x51514a+(_0x237b31['y']-_0x53cb70['y'])*_0x1c3ad4)/_0x4cf6c5)),_0x50de30={'x':_0x53cb70['x']+_0x51514a*_0x345ed3,'y':_0x53cb70['y']+_0x1c3ad4*_0x345ed3};return{'point':_0x50de30,'ratio':_0x345ed3,'distance':x(_0x237b31,_0x50de30)};}function re(_0x80858d,_0x51b74c,_0x5d52fd){const _0x28fad6=_0xfebb;return O(_0x80858d,_0x51b74c,_0x5d52fd)[_0x28fad6(0x115)]**0x2;}function k(_0x37ade4,_0x403cc8){const _0x1a2841=_0xfebb;if(_0x37ade4[_0x1a2841(0x135)]<=0x2)return _0x37ade4[_0x1a2841(0xe3)](_);let _0x3591f7=0x0,_0x1c9d96=0x0,_0x341c40=_0x37ade4[0x0],_0x4b46af=_0x37ade4[_0x37ade4[_0x1a2841(0x135)]-0x1],_0xf1745d=_0x403cc8*_0x403cc8;for(let _0x227df9=0x1;_0x227df9<_0x37ade4[_0x1a2841(0x135)]-0x1;_0x227df9++){let _0x58c8fb=re(_0x37ade4[_0x227df9],_0x341c40,_0x4b46af);_0x58c8fb>_0x3591f7&&(_0x3591f7=_0x58c8fb,_0x1c9d96=_0x227df9);}if(_0x3591f7<=_0xf1745d)return[_(_0x341c40),_(_0x4b46af)];let _0x1354f2=k(_0x37ade4['slice'](0x0,_0x1c9d96+0x1),_0x403cc8),_0x31e535=k(_0x37ade4[_0x1a2841(0x11b)](_0x1c9d96),_0x403cc8);return[..._0x1354f2[_0x1a2841(0x11b)](0x0,-0x1),..._0x31e535];}function ie(_0x8eded5,_0x1e7d7c){let _0xa5fc74=_0x8eded5[_0x1e7d7c],_0x241788=_0x8eded5[_0x1e7d7c+0x1],_0x5028fb=_0x8eded5[_0x1e7d7c-0x1]??_0xa5fc74;return{'x':_0xa5fc74['x']+(_0x241788['x']-_0x5028fb['x'])/0x6,'y':_0xa5fc74['y']+(_0x241788['y']-_0x5028fb['y'])/0x6};}function A(_0x503f71,_0x16191f){let _0x4f0951=_0x503f71[_0x16191f],_0x2ffc03=_0x503f71[_0x16191f-0x1],_0x21b2d0=_0x503f71[_0x16191f+0x1]??_0x4f0951;return{'x':_0x4f0951['x']-(_0x21b2d0['x']-_0x2ffc03['x'])/0x6,'y':_0x4f0951['y']-(_0x21b2d0['y']-_0x2ffc03['y'])/0x6};}function j(_0x1a4589,_0x2f4b05){const _0x5b8958=_0xfebb;let _0x481c73=_0x1a4589[_0x5b8958(0x125)][_0x2f4b05],_0xe3b37a=_0x1a4589[_0x5b8958(0x125)][_0x2f4b05-0x1]??(_0x1a4589['closed']?_0x1a4589[_0x5b8958(0x125)][_0x1a4589['anchors'][_0x5b8958(0x135)]-0x1]:null),_0x6f7a64=_0x1a4589[_0x5b8958(0x125)][_0x2f4b05+0x1]??(_0x1a4589[_0x5b8958(0xe9)]?_0x1a4589['anchors'][0x0]:null),_0x521de1=_0xe3b37a&&_0x6f7a64?S({'x':_0x6f7a64['x']-_0xe3b37a['x'],'y':_0x6f7a64['y']-_0xe3b37a['y']}):_0x6f7a64?S({'x':_0x6f7a64['x']-_0x481c73['x'],'y':_0x6f7a64['y']-_0x481c73['y']}):_0xe3b37a?S({'x':_0x481c73['x']-_0xe3b37a['x'],'y':_0x481c73['y']-_0xe3b37a['y']}):{'x':0x1,'y':0x0},_0x573981=_0xe3b37a&&_0x6f7a64?Math[_0x5b8958(0xf8)](0x32,x(_0xe3b37a,_0x6f7a64)/0x4):0x32;return{'in':{'x':_0x481c73['x']-_0x521de1['x']*_0x573981,'y':_0x481c73['y']-_0x521de1['y']*_0x573981},'out':{'x':_0x481c73['x']+_0x521de1['x']*_0x573981,'y':_0x481c73['y']+_0x521de1['y']*_0x573981}};}function M(_0x1a6a3d,_0x41bb37){const _0x5653a0=_0xfebb;let _0x69fb7b=_0x1a6a3d[_0x41bb37],_0x4a3d7c=_0x41bb37==='in'?_0x5653a0(0x100):'in',_0x4b1e1a=_0x1a6a3d[_0x4a3d7c];if(_0x69fb7b){if(_0x1a6a3d[_0x5653a0(0x108)]===_0x5653a0(0x11d)){_0x1a6a3d[_0x4a3d7c]=C(_0x1a6a3d,_0x69fb7b);return;}_0x1a6a3d[_0x5653a0(0x108)]===_0x5653a0(0x105)&&(_0x1a6a3d[_0x4a3d7c]=C(_0x1a6a3d,_0x69fb7b,_0x4b1e1a?x(_0x1a6a3d,_0x4b1e1a):x(_0x1a6a3d,_0x69fb7b)));}}function ae(_0x33eb5f,_0x49f8ec){const _0xcd9393=_0xfebb;let _0x3f224b=y(_0x33eb5f);return!_0x49f8ec||_0x3f224b[_0xcd9393(0xe9)]||_0x3f224b[_0xcd9393(0x125)][_0xcd9393(0x135)]===0x0||_0x3f224b[_0xcd9393(0x125)][_0xcd9393(0xf4)]({'id':'__ink-preview-anchor__','x':_0x49f8ec['x'],'y':_0x49f8ec['y'],'pointType':_0xcd9393(0x10a)}),_0x3f224b;}function oe(_0x2d5b81,_0x1c79d1={}){const _0xcf99ff=_0xfebb;let _0x2dd2a0=Math['max'](0x0,_0x1c79d1['tolerance']??Math[_0xcf99ff(0xf8)](0x4,_0x2d5b81[_0xcf99ff(0xed)]*0.35)),_0x16c4f6=_0x1c79d1[_0xcf99ff(0x11c)]??(_0x2c8173=>_0xcf99ff(0xf1)+_0x2c8173),_0x3d831a=k(_0x2d5b81['points'],_0x2dd2a0),_0x482f86=_0x3d831a[_0xcf99ff(0xe3)]((_0x5eef20,_0x26eee7)=>({'id':_0x16c4f6(_0x26eee7),'x':_0x5eef20['x'],'y':_0x5eef20['y'],'pointType':_0xcf99ff(0xf6)}));for(let _0x1f6e24=0x0;_0x1f6e24<_0x482f86['length']-0x1;_0x1f6e24++)_0x482f86[_0x1f6e24]['out']=ie(_0x3d831a,_0x1f6e24),_0x482f86[_0x1f6e24+0x1]['in']=A(_0x3d831a,_0x1f6e24+0x1);return{'kind':_0xcf99ff(0xe8),'closed':!0x1,'anchors':_0x482f86};}function se(_0xc48b3b,_0x2b1c99,_0x19ed6c){const _0x4f2c26=_0xfebb;let _0x23173c=null,_0x3d1dcc=[_0x4f2c26(0xf7),'in',_0x4f2c26(0x100)];return _0xc48b3b[_0x4f2c26(0x125)][_0x4f2c26(0xeb)]((_0x2e93aa,_0x43b464)=>{const _0x4631bf=_0x4f2c26;_0x3d1dcc[_0x4631bf(0xeb)](_0x357e9c=>{const _0x1e723f=_0x4631bf;if(!E(_0xc48b3b,_0x43b464,_0x357e9c))return;let _0x4ada3a=te(_0x2e93aa,_0x357e9c);if(!_0x4ada3a)return;let _0x4fa4a8=x(_0x2b1c99,_0x4ada3a);_0x4fa4a8>_0x19ed6c||_0x23173c&&_0x4fa4a8>=_0x23173c[_0x1e723f(0x115)]||(_0x23173c={'handle':{'kind':_0x357e9c,'anchorId':_0x2e93aa['id']},'point':_(_0x4ada3a),'distance':_0x4fa4a8});});}),_0x23173c;}function ce(_0x8b4d10,_0x28aa0c,_0x1b6820){const _0xfe5751=_0xfebb;let _0x34e722=null,_0x17df90=_0x8b4d10[_0xfe5751(0xe9)]?_0x8b4d10[_0xfe5751(0x125)][_0xfe5751(0x135)]:Math['max'](0x0,_0x8b4d10[_0xfe5751(0x125)][_0xfe5751(0x135)]-0x1);for(let _0xd9c528=0x0;_0xd9c528<_0x17df90;_0xd9c528++){let _0x300444=T(_0x8b4d10,_0xd9c528);if(!_0x300444)continue;let _0x4881f6=D(_0x300444,0x0);for(let _0x5bb11e=0x1;_0x5bb11e<=0x20;_0x5bb11e++){let _0x1ea193=D(_0x300444,_0x5bb11e/0x20),_0x12082f=O(_0x28aa0c,_0x4881f6,_0x1ea193),_0x4bd7ea=(_0x5bb11e-0x1+_0x12082f[_0xfe5751(0xe0)])/0x20;(!_0x34e722||_0x12082f['distance']<_0x34e722[_0xfe5751(0x115)])&&(_0x34e722={'segmentIndex':_0xd9c528,'t':_0x4bd7ea,'point':_0x12082f[_0xfe5751(0x12e)],'distance':_0x12082f[_0xfe5751(0x115)]}),_0x4881f6=_0x1ea193;}}return _0x34e722&&_0x34e722[_0xfe5751(0x115)]<=_0x1b6820?_0x34e722:null;}function le(_0x30f11f,_0x4eef99,_0x1706e9){const _0x583252=_0xfebb;let _0x1b9810=y(_0x30f11f),_0x3585ab=w(_0x1b9810,_0x4eef99[_0x583252(0xe2)]),_0x4bba4f=T(_0x1b9810,_0x4eef99[_0x583252(0xe2)]);if(!_0x3585ab||!_0x4bba4f)return _0x1b9810;let _0x226e35=ne(_0x4bba4f,Math['max'](0x0,Math[_0x583252(0x10b)](0x1,_0x4eef99['t']))),_0x39352e={'id':_0x1706e9(),'x':_0x226e35['left'][0x3]['x'],'y':_0x226e35[_0x583252(0x132)][0x3]['y'],'in':_(_0x226e35['left'][0x2]),'out':_(_0x226e35[_0x583252(0x138)][0x1]),'pointType':_0x583252(0xf6)};return _0x1b9810[_0x583252(0x125)][_0x3585ab['startIndex']][_0x583252(0x100)]=_(_0x226e35[_0x583252(0x132)][0x1]),_0x1b9810['anchors'][_0x3585ab[_0x583252(0x103)]]['in']=_(_0x226e35['right'][0x2]),_0x1b9810[_0x583252(0x125)][_0x583252(0xfc)](_0x3585ab[_0x583252(0xda)]+0x1,0x0,_0x39352e),_0x1b9810;}function ue(_0x26dd94,_0x35ad02){const _0xdd7d8b=_0xfebb;let _0x4ca9fc=y(_0x26dd94);return _0x4ca9fc[_0xdd7d8b(0x125)]=_0x4ca9fc['anchors'][_0xdd7d8b(0xf9)](_0x88af88=>_0x88af88['id']!==_0x35ad02),_0x4ca9fc[_0xdd7d8b(0xe9)]&&_0x4ca9fc['anchors'][_0xdd7d8b(0x135)]<0x3&&(_0x4ca9fc[_0xdd7d8b(0xe9)]=!0x1),_0x4ca9fc;}function N(_0x220369,_0x53016e,_0x38f1af){const _0x11f0a6=_0xfebb;let _0x23fb82=y(_0x220369),_0x133794=_0x23fb82[_0x11f0a6(0x125)][_0x11f0a6(0x13a)](_0x240e33=>_0x240e33['id']===_0x53016e),_0x32bacb=_0x23fb82[_0x11f0a6(0x125)][_0x133794];if(!_0x32bacb)return _0x23fb82;if(_0x32bacb[_0x11f0a6(0x108)]=_0x38f1af,_0x38f1af==='corner')return delete _0x32bacb['in'],delete _0x32bacb[_0x11f0a6(0x100)],_0x23fb82;let _0x5a449c=j(_0x23fb82,_0x133794);if(_0x32bacb['in']=_0x32bacb['in']?_(_0x32bacb['in']):_0x5a449c['in'],_0x32bacb[_0x11f0a6(0x100)]=_0x32bacb[_0x11f0a6(0x100)]?_(_0x32bacb[_0x11f0a6(0x100)]):_0x5a449c['out'],_0x38f1af===_0x11f0a6(0x11d)){let _0x47d179=Math['max'](x(_0x32bacb,_0x32bacb['in']),x(_0x32bacb,_0x32bacb[_0x11f0a6(0x100)]),0x32),_0x3f192d=S({'x':_0x32bacb[_0x11f0a6(0x100)]['x']-_0x32bacb['x'],'y':_0x32bacb[_0x11f0a6(0x100)]['y']-_0x32bacb['y']});_0x32bacb[_0x11f0a6(0x100)]={'x':_0x32bacb['x']+_0x3f192d['x']*_0x47d179,'y':_0x32bacb['y']+_0x3f192d['y']*_0x47d179},_0x32bacb['in']={'x':_0x32bacb['x']-_0x3f192d['x']*_0x47d179,'y':_0x32bacb['y']-_0x3f192d['y']*_0x47d179};}else _0x38f1af===_0x11f0a6(0x105)&&M(_0x32bacb,_0x11f0a6(0x100));return _0x23fb82;}function P(_0xd65c73,_0x42f2ce){const _0x1e87ad=_0xfebb;let _0x51e6a5=_0xd65c73[_0x1e87ad(0x125)][_0x1e87ad(0x13c)](_0x218c84=>_0x218c84['id']===_0x42f2ce),_0x29ebfe=(_0x51e6a5==null?void 0x0:_0x51e6a5['pointType'])??_0x1e87ad(0x10a);return N(_0xd65c73,_0x42f2ce,_0x29ebfe===_0x1e87ad(0x10a)?_0x1e87ad(0x105):_0x29ebfe===_0x1e87ad(0x105)?_0x1e87ad(0x11d):_0x29ebfe===_0x1e87ad(0x11d)?_0x1e87ad(0xf6):_0x1e87ad(0x10a));}function F(_0x25c44f,_0x51357f,_0x3df8d7){const _0x2d9f68=_0xfebb;let _0x462a97=y(_0x25c44f),_0x588f4a=_0x462a97['anchors']['find'](_0xa149a9=>_0xa149a9['id']===_0x51357f['anchorId']);if(!_0x588f4a)return _0x462a97;if(_0x51357f[_0x2d9f68(0x116)]===_0x2d9f68(0xf7)){let _0x4a0331={'x':_0x3df8d7['x']-_0x588f4a['x'],'y':_0x3df8d7['y']-_0x588f4a['y']};return _0x588f4a['x']=_0x3df8d7['x'],_0x588f4a['y']=_0x3df8d7['y'],_0x588f4a['in']&&={'x':_0x588f4a['in']['x']+_0x4a0331['x'],'y':_0x588f4a['in']['y']+_0x4a0331['y']},_0x588f4a['out']&&={'x':_0x588f4a[_0x2d9f68(0x100)]['x']+_0x4a0331['x'],'y':_0x588f4a[_0x2d9f68(0x100)]['y']+_0x4a0331['y']},_0x462a97;}return _0x588f4a[_0x51357f[_0x2d9f68(0x116)]]=_(_0x3df8d7),_0x588f4a[_0x2d9f68(0x108)]===_0x2d9f68(0x10a)&&(_0x588f4a[_0x2d9f68(0x108)]='free'),M(_0x588f4a,_0x51357f[_0x2d9f68(0x116)]),_0x462a97;}const I=1e-9;function L(_0x593572){const _0x291320=_0xfebb;let _0x17657e=Math[_0x291320(0x127)](_0x593572*0x2710)/0x2710;return Object['is'](_0x17657e,-0x0)?'0':String(_0x17657e);}function R(_0x1b6894){return L(_0x1b6894['x'])+'\x20'+L(_0x1b6894['y']);}function z(_0x18045e,_0x2ab946){return{'x':_0x18045e['x']-_0x2ab946['x'],'y':_0x18045e['y']-_0x2ab946['y']};}function B(_0x4c3aea,_0x246d35,_0x145b77,_0x118bb5,_0x50c7ff){let _0x429fc9=0x1-_0x50c7ff;return{'x':_0x429fc9*_0x429fc9*_0x429fc9*_0x4c3aea['x']+0x3*_0x429fc9*_0x429fc9*_0x50c7ff*_0x246d35['x']+0x3*_0x429fc9*_0x50c7ff*_0x50c7ff*_0x145b77['x']+_0x50c7ff*_0x50c7ff*_0x50c7ff*_0x118bb5['x'],'y':_0x429fc9*_0x429fc9*_0x429fc9*_0x4c3aea['y']+0x3*_0x429fc9*_0x429fc9*_0x50c7ff*_0x246d35['y']+0x3*_0x429fc9*_0x50c7ff*_0x50c7ff*_0x145b77['y']+_0x50c7ff*_0x50c7ff*_0x50c7ff*_0x118bb5['y']};}function _0xfebb(_0xeba011,_0x571bbc){_0xeba011=_0xeba011-0xda;const _0x1a4f31=_0x1a4f();let _0xfebb14=_0x1a4f31[_0xeba011];return _0xfebb14;}function V(_0x127481,_0x5c3b04,_0x47f50d,_0x24eb8e){const _0x3c4af9=_0xfebb;let _0x47ff24=-_0x127481+0x3*_0x5c3b04-0x3*_0x47f50d+_0x24eb8e,_0x588e73=0x3*_0x127481-0x6*_0x5c3b04+0x3*_0x47f50d,_0x5c06b6=-0x3*_0x127481+0x3*_0x5c3b04,_0x719c41=[];if(Math[_0x3c4af9(0x128)](_0x47ff24)<I){if(Math[_0x3c4af9(0x128)](_0x588e73)<I)return _0x719c41;let _0x5bd3e9=-_0x5c06b6/(0x2*_0x588e73);return _0x5bd3e9>0x0&&_0x5bd3e9<0x1&&_0x719c41[_0x3c4af9(0xf4)](_0x5bd3e9),_0x719c41;}let _0xbe655e=_0x588e73*_0x588e73-0x3*_0x47ff24*_0x5c06b6;if(_0xbe655e<0x0)return _0x719c41;let _0x350fd2=Math[_0x3c4af9(0x12f)](Math['max'](0x0,_0xbe655e)),_0x9ba0=(-_0x588e73+_0x350fd2)/(0x3*_0x47ff24),_0x4c23cc=(-_0x588e73-_0x350fd2)/(0x3*_0x47ff24);return _0x9ba0>0x0&&_0x9ba0<0x1&&_0x719c41['push'](_0x9ba0),_0x4c23cc>0x0&&_0x4c23cc<0x1&&Math[_0x3c4af9(0x128)](_0x4c23cc-_0x9ba0)>I&&_0x719c41[_0x3c4af9(0xf4)](_0x4c23cc),_0x719c41;}function H(_0x1cfbd3,_0x271142,_0x524d8a,_0x3a611a,_0x301abb){const _0x468d6b=_0xfebb;_0x1cfbd3[_0x468d6b(0xf4)](_0x271142,_0x301abb),new Set([...V(_0x271142['x'],_0x524d8a['x'],_0x3a611a['x'],_0x301abb['x']),...V(_0x271142['y'],_0x524d8a['y'],_0x3a611a['y'],_0x301abb['y'])])[_0x468d6b(0xeb)](_0x5b5381=>{const _0x29a7d8=_0x468d6b;_0x1cfbd3[_0x29a7d8(0xf4)](B(_0x271142,_0x524d8a,_0x3a611a,_0x301abb,_0x5b5381));});}function U(_0x2afcbf){const _0x47e1d1=_0xfebb;let _0x35d1da=_0x2afcbf[_0x47e1d1(0x125)];if(_0x35d1da[_0x47e1d1(0x135)]<=0x1)return _0x35d1da;let _0x51aa0c=[];for(let _0x1a7723=0x1;_0x1a7723<_0x35d1da[_0x47e1d1(0x135)];_0x1a7723++){let _0x4cab5a=_0x35d1da[_0x1a7723-0x1],_0x30504b=_0x35d1da[_0x1a7723];H(_0x51aa0c,_0x4cab5a,_0x4cab5a[_0x47e1d1(0x100)]??_0x4cab5a,_0x30504b['in']??_0x30504b,_0x30504b);}if(_0x2afcbf['closed']&&_0x35d1da[_0x47e1d1(0x135)]>0x1){let _0x5b65a4=_0x35d1da[_0x35d1da[_0x47e1d1(0x135)]-0x1],_0x444b97=_0x35d1da[0x0];H(_0x51aa0c,_0x5b65a4,_0x5b65a4['out']??_0x5b65a4,_0x444b97['in']??_0x444b97,_0x444b97);}return _0x51aa0c;}function de(_0x4a72d3){const _0x454d12=_0xfebb;let _0x4c0a85=_0x4a72d3[_0x454d12(0xea)];if(_0x4c0a85['length']<=0x1)return _0x4c0a85;let _0x3bcd11=[];for(let _0x41641a=0x0;_0x41641a<_0x4c0a85[_0x454d12(0x135)]-0x1;_0x41641a++){let _0x3f41d9=_0x4c0a85[_0x41641a],_0x4d416d=_0x4c0a85[_0x41641a+0x1],_0xd61714=_0x4c0a85[_0x41641a-0x1]??_0x3f41d9,_0x10f4f1=_0x4c0a85[_0x41641a+0x2]??_0x4d416d;H(_0x3bcd11,_0x3f41d9,{'x':_0x3f41d9['x']+(_0x4d416d['x']-_0xd61714['x'])/0x6,'y':_0x3f41d9['y']+(_0x4d416d['y']-_0xd61714['y'])/0x6},{'x':_0x4d416d['x']-(_0x10f4f1['x']-_0x3f41d9['x'])/0x6,'y':_0x4d416d['y']-(_0x10f4f1['y']-_0x3f41d9['y'])/0x6},_0x4d416d);}return _0x3bcd11;}function fe(_0x3ebeb2){return _0x3ebeb2['kind']==='pen'?U(_0x3ebeb2):de(_0x3ebeb2);}function W(_0x1aae52){const _0x38693c=_0xfebb;let _0x16c790=Math[_0x38693c(0x127)](_0x1aae52*0x2710)/0x2710;return Object['is'](_0x16c790,-0x0)?0x0:_0x16c790;}function G(_0x3fd00f){const _0x14cf8b=_0xfebb;let _0x1474b0=fe(_0x3fd00f);if(_0x1474b0['length']===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x15d435=Math[_0x14cf8b(0x10b)](..._0x1474b0['map'](_0x5ce795=>_0x5ce795['x'])),_0x23645a=Math[_0x14cf8b(0x10b)](..._0x1474b0['map'](_0x589f32=>_0x589f32['y'])),_0x5b0976=Math[_0x14cf8b(0xf8)](..._0x1474b0['map'](_0x50a303=>_0x50a303['x'])),_0xe37291=Math[_0x14cf8b(0xf8)](..._0x1474b0[_0x14cf8b(0xe3)](_0x489af3=>_0x489af3['y']));return{'left':W(_0x15d435),'top':W(_0x23645a),'width':W(Math[_0x14cf8b(0xf8)](0x1,_0x5b0976-_0x15d435)),'height':W(Math[_0x14cf8b(0xf8)](0x1,_0xe37291-_0x23645a))};}function pe(_0x2863b9,_0x3b7fe8){const _0x1ba2ea=_0xfebb;let _0xf861b5=_0x2863b9[_0x1ba2ea(0x125)];if(_0xf861b5[_0x1ba2ea(0x135)]===0x0)return'';let _0x5d44d6=['M\x20'+R(z(_0xf861b5[0x0],_0x3b7fe8))];for(let _0x4234d3=0x1;_0x4234d3<_0xf861b5[_0x1ba2ea(0x135)];_0x4234d3++){let _0x22bf8a=_0xf861b5[_0x4234d3-0x1],_0x51bf6f=_0xf861b5[_0x4234d3],_0x27a9db=_0x22bf8a[_0x1ba2ea(0x100)]??_0x22bf8a,_0x52df78=_0x51bf6f['in']??_0x51bf6f;_0x5d44d6[_0x1ba2ea(0xf4)]('C\x20'+R(z(_0x27a9db,_0x3b7fe8))+'\x20'+R(z(_0x52df78,_0x3b7fe8))+'\x20'+R(z(_0x51bf6f,_0x3b7fe8)));}if(_0x2863b9['closed']&&_0xf861b5[_0x1ba2ea(0x135)]>0x1){let _0x506796=_0xf861b5[_0xf861b5[_0x1ba2ea(0x135)]-0x1],_0x35f5cd=_0xf861b5[0x0],_0x2a3847=_0x506796[_0x1ba2ea(0x100)]??_0x506796,_0x1d501c=_0x35f5cd['in']??_0x35f5cd;_0x5d44d6[_0x1ba2ea(0xf4)]('C\x20'+R(z(_0x2a3847,_0x3b7fe8))+'\x20'+R(z(_0x1d501c,_0x3b7fe8))+'\x20'+R(z(_0x35f5cd,_0x3b7fe8))),_0x5d44d6[_0x1ba2ea(0xf4)]('Z');}return _0x5d44d6[_0x1ba2ea(0x12b)]('\x20');}function me(_0x4f1262,_0x1495b5){const _0x199846=_0xfebb;let _0x5e70dc=_0x4f1262[_0x199846(0xea)][_0x199846(0xe3)](_0x57c2a0=>z(_0x57c2a0,_0x1495b5));if(_0x5e70dc[_0x199846(0x135)]===0x0)return'';if(_0x5e70dc[_0x199846(0x135)]===0x1)return'M\x20'+R(_0x5e70dc[0x0]);let _0x53c3e8=['M\x20'+R(_0x5e70dc[0x0])];for(let _0x2de8de=0x0;_0x2de8de<_0x5e70dc[_0x199846(0x135)]-0x1;_0x2de8de++){let _0x254862=_0x5e70dc[_0x2de8de],_0x5b3bcd=_0x5e70dc[_0x2de8de+0x1],_0x3bdac3=_0x5e70dc[_0x2de8de-0x1]??_0x254862,_0x8ae16e=_0x5e70dc[_0x2de8de+0x2]??_0x5b3bcd,_0x12065e={'x':_0x254862['x']+(_0x5b3bcd['x']-_0x3bdac3['x'])/0x6,'y':_0x254862['y']+(_0x5b3bcd['y']-_0x3bdac3['y'])/0x6},_0x1c566f={'x':_0x5b3bcd['x']-(_0x8ae16e['x']-_0x254862['x'])/0x6,'y':_0x5b3bcd['y']-(_0x8ae16e['y']-_0x254862['y'])/0x6};_0x53c3e8[_0x199846(0xf4)]('C\x20'+R(_0x12065e)+'\x20'+R(_0x1c566f)+'\x20'+R(_0x5b3bcd));}return _0x53c3e8['join']('\x20');}function he(_0x31a96f,_0xfa2b6f){const _0x3d1493=_0xfebb;return _0x31a96f[_0x3d1493(0x116)]===_0x3d1493(0xe8)?pe(_0x31a96f,_0xfa2b6f):me(_0x31a96f,_0xfa2b6f);}function ge(_0x13141f,_0x50cdad){const _0x4bf3f2=_0xfebb;return _0x50cdad!=null&&_0x50cdad['color']?_0x50cdad[_0x4bf3f2(0x10e)]:_0x13141f['kind']===_0x4bf3f2(0xe8)?'#f54a45':_0x13141f[_0x4bf3f2(0x10e)];}function _e(_0x344258,_0x155397){const _0x5c3420=_0xfebb;return(_0x155397==null?void 0x0:_0x155397[_0x5c3420(0xed)])===void 0x0?_0x344258[_0x5c3420(0x116)]===_0x5c3420(0xe8)?0x2:_0x344258[_0x5c3420(0xed)]:_0x155397[_0x5c3420(0xed)];}function ve(_0x4383f8,_0x47879d){const _0x23bef6=_0xfebb;return(_0x47879d==null?void 0x0:_0x47879d[_0x23bef6(0x12a)])===void 0x0?_0x4383f8[_0x23bef6(0x116)]==='pen'?void 0x0:_0x4383f8[_0x23bef6(0x12a)]:_0x47879d['opacity'];}function ye(_0x450dc3,_0x112a89){const _0x43342f=_0xfebb;let _0x4e2546=G(_0x450dc3),_0x53ca51=he(_0x450dc3,{'x':_0x4e2546[_0x43342f(0x132)],'y':_0x4e2546[_0x43342f(0xdc)]}),_0x23e68b=_0x450dc3[_0x43342f(0x116)]==='pen'&&_0x450dc3[_0x43342f(0xe9)],_0x10e2b5=_0x112a89==null?void 0x0:_0x112a89['fillColor'];return{'shapeType':_0x315fc1[_0x43342f(0x126)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x4e2546[_0x43342f(0xed)],'h':_0x4e2546[_0x43342f(0x13b)],'fill':_0x23e68b?_0x43342f(0xff):_0x43342f(0x10c),'stroke':!0x0,'data':_0x53ca51,'dataArray':be(_0x450dc3,{'x':_0x4e2546['left'],'y':_0x4e2546[_0x43342f(0xdc)]})}]},'fill':_0x23e68b&&_0x10e2b5?{'color':_0x10e2b5,'fillType':_0x5f1db0[_0x43342f(0x131)]}:{'fillType':_0x5f1db0['NoFill']},'stroke':{'color':ge(_0x450dc3,_0x112a89),'width':_e(_0x450dc3,_0x112a89),'opacity':ve(_0x450dc3,_0x112a89),'lineStrokeType':_0x48c70e[_0x43342f(0x110)],'capType':_0x3e9103['Round'],'lineJoinType':_0x458499[_0x43342f(0xf0)]}};}function K(_0x4691a8,_0x43cafa){return{'x':_0x4691a8['x']-_0x43cafa['x'],'y':_0x4691a8['y']-_0x43cafa['y']};}function be(_0x11733b,_0x49c28e){const _0x1858b1=_0xfebb;if(_0x11733b['kind']===_0x1858b1(0xe8)){let _0x2e106e=_0x11733b[_0x1858b1(0x125)];if(_0x2e106e[_0x1858b1(0x135)]===0x0)return[];let _0x2c7048=K(_0x2e106e[0x0],_0x49c28e),_0x162dae=[{'command':'M','points':[_0x2c7048['x'],_0x2c7048['y']]}];for(let _0x543791=0x1;_0x543791<_0x2e106e['length'];_0x543791++){let _0x345f0=_0x2e106e[_0x543791-0x1],_0xb039dd=_0x2e106e[_0x543791],_0xf77ce6=K(_0x345f0[_0x1858b1(0x100)]??_0x345f0,_0x49c28e),_0x50f8d6=K(_0xb039dd['in']??_0xb039dd,_0x49c28e),_0x316869=K(_0xb039dd,_0x49c28e);_0x162dae[_0x1858b1(0xf4)]({'command':'C','points':[_0xf77ce6['x'],_0xf77ce6['y'],_0x50f8d6['x'],_0x50f8d6['y'],_0x316869['x'],_0x316869['y']]});}if(_0x11733b[_0x1858b1(0xe9)]&&_0x2e106e[_0x1858b1(0x135)]>0x1){let _0x5c6174=_0x2e106e[_0x2e106e[_0x1858b1(0x135)]-0x1],_0x12a386=_0x2e106e[0x0],_0x15648e=K(_0x5c6174[_0x1858b1(0x100)]??_0x5c6174,_0x49c28e),_0x4fe3f3=K(_0x12a386['in']??_0x12a386,_0x49c28e),_0x372421=K(_0x12a386,_0x49c28e);_0x162dae[_0x1858b1(0xf4)]({'command':'C','points':[_0x15648e['x'],_0x15648e['y'],_0x4fe3f3['x'],_0x4fe3f3['y'],_0x372421['x'],_0x372421['y']]}),_0x162dae[_0x1858b1(0xf4)]({'command':'z','points':[]});}return _0x162dae;}let _0x50cadd=_0x11733b['points']['map'](_0x5d9c59=>K(_0x5d9c59,_0x49c28e));if(_0x50cadd[_0x1858b1(0x135)]===0x0)return[];let _0x16c39a=[{'command':'M','points':[_0x50cadd[0x0]['x'],_0x50cadd[0x0]['y']]}];for(let _0x45f65b=0x0;_0x45f65b<_0x50cadd['length']-0x1;_0x45f65b++){let _0x1daddb=_0x50cadd[_0x45f65b],_0x233092=_0x50cadd[_0x45f65b+0x1],_0x203ea6=_0x50cadd[_0x45f65b-0x1]??_0x1daddb,_0x268742=_0x50cadd[_0x45f65b+0x2]??_0x233092,_0x3a3e32={'x':_0x1daddb['x']+(_0x233092['x']-_0x203ea6['x'])/0x6,'y':_0x1daddb['y']+(_0x233092['y']-_0x203ea6['y'])/0x6},_0x400bc0={'x':_0x233092['x']-(_0x268742['x']-_0x1daddb['x'])/0x6,'y':_0x233092['y']-(_0x268742['y']-_0x1daddb['y'])/0x6};_0x16c39a[_0x1858b1(0xf4)]({'command':'C','points':[_0x3a3e32['x'],_0x3a3e32['y'],_0x400bc0['x'],_0x400bc0['y'],_0x233092['x'],_0x233092['y']]});}return _0x16c39a;}function xe(_0x1eb89a){const _0x4fd641=_0xfebb;let {model:_0x3ccc68,sourceModel:_0x3e8869=_0x3ccc68,style:_0xc73b8f}=_0x1eb89a,_0xc09bcb=_0x1eb89a[_0x4fd641(0x112)]??_0x3ccc68['kind'],_0x1d765b=G(_0x3ccc68),_0x1c7376=_0x3ccc68['kind']===_0x4fd641(0xe8)&&_0xc09bcb!==_0x4fd641(0xe8)?_0x3ccc68:void 0x0;return{'transform':{..._0x1d765b,'rotation':0x0},'shapeData':ye(_0x3ccc68,_0xc73b8f),'ink':{'version':0x1,'tool':_0xc09bcb,'sourceModel':_0x3e8869,..._0x1c7376?{'editModel':_0x1c7376}:{},'normalizedBounds':_0x1d765b}};}var Se=_0x541943(0x119),Ce='1.0.1';function q(_0x434d21){'@babel/helpers - typeof';const _0x5504a7=_0x541943;return q=typeof Symbol==_0x5504a7(0x120)&&typeof Symbol[_0x5504a7(0xdd)]==_0x5504a7(0x122)?function(_0xc1bdda){return typeof _0xc1bdda;}:function(_0x495677){const _0x1db776=_0x5504a7;return _0x495677&&typeof Symbol==_0x1db776(0x120)&&_0x495677[_0x1db776(0x106)]===Symbol&&_0x495677!==Symbol[_0x1db776(0x101)]?_0x1db776(0x122):typeof _0x495677;},q(_0x434d21);}function we(_0x16ccfe,_0x18045c){const _0x2499f7=_0x541943;if(q(_0x16ccfe)!=_0x2499f7(0xe5)||!_0x16ccfe)return _0x16ccfe;var _0x89e36e=_0x16ccfe[Symbol[_0x2499f7(0xfa)]];if(_0x89e36e!==void 0x0){var _0x176439=_0x89e36e[_0x2499f7(0x104)](_0x16ccfe,_0x18045c||_0x2499f7(0xde));if(q(_0x176439)!='object')return _0x176439;throw TypeError(_0x2499f7(0xdf));}return(_0x18045c===_0x2499f7(0xee)?String:Number)(_0x16ccfe);}function J(_0x953f41){const _0x255198=_0x541943;var _0x3d355e=we(_0x953f41,_0x255198(0xee));return q(_0x3d355e)==_0x255198(0x122)?_0x3d355e:_0x3d355e+'';}function Y(_0x146a48,_0x421e7b,_0x166abe){const _0x3bf6b9=_0x541943;return(_0x421e7b=J(_0x421e7b))in _0x146a48?Object[_0x3bf6b9(0x11f)](_0x146a48,_0x421e7b,{'value':_0x166abe,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x146a48[_0x421e7b]=_0x166abe,_0x146a48;}const X=_0x1d86a6(_0x541943(0x12c));var Te=class{constructor(){Y(this,'_adapters',[]);}[_0x541943(0x111)](_0x17e405){const _0xfd1271=_0x541943;return this[_0xfd1271(0x139)]['push'](_0x17e405),_0x52778c(()=>{const _0x3e95e8=_0xfd1271;let _0x170a40=this[_0x3e95e8(0x139)][_0x3e95e8(0xf2)](_0x17e405);_0x170a40>=0x0&&this[_0x3e95e8(0x139)]['splice'](_0x170a40,0x1);});}['beginInkMode'](_0x379662){const _0x1b5689=_0x541943;for(let _0x5d2a8e of this[_0x1b5689(0x139)])if(_0x5d2a8e[_0x1b5689(0x10d)](_0x379662))return!0x0;return!0x1;}async[_0x541943(0xfe)](_0x3f2771){const _0x50ae80=_0x541943;for(let _0x1490fe of this[_0x50ae80(0x139)])if(_0x1490fe['createCustomShape']&&await _0x1490fe[_0x50ae80(0xfe)](_0x3f2771))return!0x0;return!0x1;}};const Ee={'id':_0x541943(0x12d),'type':_0x21764a[_0x541943(0x11a)],'handler':(_0xaebb67,_0x5ac3fd)=>_0x5ac3fd?_0xaebb67[_0x541943(0xe6)](X)['beginInkMode'](_0x5ac3fd):!0x1},Z={};function Q(_0x551ced,_0x4f880d){return function(_0x30c499,_0xa5a674){_0x4f880d(_0x30c499,_0xa5a674,_0x551ced);};}function De(_0x3e9bf9,_0x59a3f6,_0x1a67cc,_0x226f33){const _0x1e6899=_0x541943;var _0x5defde=arguments['length'],_0x2c4ccd=_0x5defde<0x3?_0x59a3f6:_0x226f33===null?_0x226f33=Object[_0x1e6899(0x133)](_0x59a3f6,_0x1a67cc):_0x226f33,_0x1b2a58;if(typeof Reflect=='object'&&typeof Reflect[_0x1e6899(0x124)]==_0x1e6899(0x120))_0x2c4ccd=Reflect[_0x1e6899(0x124)](_0x3e9bf9,_0x59a3f6,_0x1a67cc,_0x226f33);else{for(var _0x25eee8=_0x3e9bf9['length']-0x1;_0x25eee8>=0x0;_0x25eee8--)(_0x1b2a58=_0x3e9bf9[_0x25eee8])&&(_0x2c4ccd=(_0x5defde<0x3?_0x1b2a58(_0x2c4ccd):_0x5defde>0x3?_0x1b2a58(_0x59a3f6,_0x1a67cc,_0x2c4ccd):_0x1b2a58(_0x59a3f6,_0x1a67cc))||_0x2c4ccd);}return _0x5defde>0x3&&_0x2c4ccd&&Object[_0x1e6899(0x11f)](_0x59a3f6,_0x1a67cc,_0x2c4ccd),_0x2c4ccd;}let $=class extends _0x1d99fd{constructor(_0x4042c8=Z,_0x1d52c3,_0x5b6556,_0x402687){const _0x136866=_0x541943;super(),this[_0x136866(0x121)]=_0x4042c8,this[_0x136866(0x102)]=_0x1d52c3,this['_commandService']=_0x5b6556,this[_0x136866(0x10f)]=_0x402687;let {..._0x10d98e}=_0x4d7b1c({},Z,this[_0x136866(0x121)]);this[_0x136866(0x10f)]['setConfig'](_0x136866(0x114),_0x10d98e);}[_0x541943(0xef)](){const _0x2a8180=_0x541943;[[X,{'useClass':Te}]][_0x2a8180(0xeb)](_0x571485=>this[_0x2a8180(0x102)][_0x2a8180(0xf5)](_0x571485)),this[_0x2a8180(0x130)](this['_commandService']['registerCommand'](Ee));}};Y($,_0x541943(0xe4),_0x541943(0x136)),Y($,_0x541943(0x137),Se),Y($,_0x541943(0x109),Ce),Y($,_0x541943(0xe7),_0x56c145[_0x541943(0x123)]),$=De([_0x713a96(_0xe56a7d),Q(0x1,_0x287f3(_0x34eeca)),Q(0x2,_0x48cf14),Q(0x3,_0x2def3f)],$);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 _0x469303=_0x526d;(function(_0x544dc1,_0x186827){const _0x3e6cf9=_0x526d,_0xff289c=_0x544dc1();while(!![]){try{const _0x462461=-parseInt(_0x3e6cf9(0x116))/0x1+parseInt(_0x3e6cf9(0x105))/0x2*(-parseInt(_0x3e6cf9(0x121))/0x3)+-parseInt(_0x3e6cf9(0x102))/0x4*(parseInt(_0x3e6cf9(0x106))/0x5)+-parseInt(_0x3e6cf9(0x103))/0x6*(parseInt(_0x3e6cf9(0x11f))/0x7)+-parseInt(_0x3e6cf9(0xfd))/0x8+-parseInt(_0x3e6cf9(0x100))/0x9+-parseInt(_0x3e6cf9(0x104))/0xa*(-parseInt(_0x3e6cf9(0xff))/0xb);if(_0x462461===_0x186827)break;else _0xff289c['push'](_0xff289c['shift']());}catch(_0x4fe7d9){_0xff289c['push'](_0xff289c['shift']());}}}(_0x4e6c,0xe4890));function _0x526d(_0xaefc81,_0x3c736b){_0xaefc81=_0xaefc81-0xf6;const _0x4e6c39=_0x4e6c();let _0x526db8=_0x4e6c39[_0xaefc81];return _0x526db8;}import{BoardElementType as _0x47f5e5}from'@univerjs-pro/boards';import{FBoard as _0x399325}from'@univerjs-pro/boards/facade';import{buildInkCustomShapePayload as _0x2c83ce}from'@univerjs-pro/ink';import{Tools as _0x6a8fb9,generateRandomId as _0x3a831c}from'@univerjs/core';import{FEnum as _0xbd21f4}from'@univerjs/core/facade';var o=class extends _0x399325{['insertInk'](_0x1d19db){const _0x4edb37=_0x526d;let _0x171551=s(_0x1d19db);return _0x171551&&this['_addElement'](_0x171551,{'insertIndex':_0x1d19db[_0x4edb37(0xf8)]})?_0x171551:null;}[_0x469303(0x11e)](){const _0x3acd45=_0x469303;return this[_0x3acd45(0xfc)]({'elementType':_0x47f5e5['Shape'],'includeHidden':!0x0,'includeLocked':!0x0})['filter'](p);}};function s(_0x130e83,_0x1dd111){const _0x19ba3f=_0x469303;if(!l(_0x130e83[_0x19ba3f(0x107)])||_0x130e83[_0x19ba3f(0xfb)]!==void 0x0&&!l(_0x130e83[_0x19ba3f(0xfb)])||!u(_0x130e83['style']))return null;let _0x1a44d8=_0x130e83['parentId']??(_0x1dd111==null?void 0x0:_0x1dd111[_0x19ba3f(0x114)]),_0x3d7791=_0x6a8fb9[_0x19ba3f(0x10e)](_0x130e83[_0x19ba3f(0x107)]),_0x24e62b=_0x2c83ce({'model':_0x3d7791,'style':_0x130e83[_0x19ba3f(0x11a)],'tool':_0x130e83[_0x19ba3f(0x110)],'sourceModel':_0x130e83[_0x19ba3f(0xfb)]?_0x6a8fb9['deepClone'](_0x130e83['sourceModel']):_0x3d7791}),_0x587793=d(_0x1dd111==null?void 0x0:_0x1dd111[_0x19ba3f(0x118)]);return{'id':(_0x1dd111==null?void 0x0:_0x1dd111['id'])??_0x130e83['id']??_0x3a831c(0x6),'type':_0x47f5e5['Shape'],'transform':_0x24e62b['transform'],'shapeData':_0x24e62b[_0x19ba3f(0x112)],'parentId':_0x1a44d8??void 0x0,'laneId':_0x130e83[_0x19ba3f(0x108)]===void 0x0?_0x1dd111==null?void 0x0:_0x1dd111[_0x19ba3f(0x108)]:_0x130e83[_0x19ba3f(0x108)],'custom':{..._0x587793,'ink':_0x24e62b[_0x19ba3f(0x123)]}};}function c(_0x347fac){const _0x1c1419=_0x469303;return Number[_0x1c1419(0xf6)](_0x347fac['x'])&&Number[_0x1c1419(0xf6)](_0x347fac['y']);}function _0x4e6c(){const _0x450954=['style','opacity','trim','pen','getInks','13052291GvaZXq','isArray','3506253XqfmrH','symmetric','ink','has','points','isFinite','corner','insertIndex','pressure','kind','sourceModel','findElements','5127520YtLeOz','extend','2519BXOJqV','4957452rKjkXT','length','380knaYyx','6knshht','359960COYZmS','2IpyuHB','68065HeFFpT','model','laneId','BoardInkHandleKind','anchors','closed','type','object','deepClone','BoardInkPointType','tool','out','shapeData','smooth','parentId','width','1788637AvDXVF','brush','custom','free'];_0x4e6c=function(){return _0x450954;};return _0x4e6c();}function l(_0x1c78a3){const _0x8bf7e5=_0x469303;if(_0x1c78a3[_0x8bf7e5(0xfa)]===_0x8bf7e5(0x11d)){let _0x1a1a10=new Set();return _0x1c78a3[_0x8bf7e5(0x10a)][_0x8bf7e5(0x101)]>=(_0x1c78a3[_0x8bf7e5(0x10b)]?0x3:0x2)&&_0x1c78a3[_0x8bf7e5(0x10a)]['every'](_0x51dae3=>{const _0x1d0cb9=_0x8bf7e5;let _0x24364f=_0x51dae3['id'][_0x1d0cb9(0x11c)]()[_0x1d0cb9(0x101)]>0x0&&!_0x1a1a10[_0x1d0cb9(0x124)](_0x51dae3['id'])&&c(_0x51dae3)&&(!_0x51dae3['in']||c(_0x51dae3['in']))&&(!_0x51dae3[_0x1d0cb9(0x111)]||c(_0x51dae3[_0x1d0cb9(0x111)]));return _0x1a1a10['add'](_0x51dae3['id']),_0x24364f;});}return _0x1c78a3[_0x8bf7e5(0x125)][_0x8bf7e5(0x101)]>=0x2&&_0x1c78a3[_0x8bf7e5(0x125)]['every'](_0x194388=>c(_0x194388)&&Number[_0x8bf7e5(0xf6)](_0x194388['t'])&&(_0x194388['pressure']===void 0x0||Number[_0x8bf7e5(0xf6)](_0x194388[_0x8bf7e5(0xf9)])))&&Number['isFinite'](_0x1c78a3[_0x8bf7e5(0x115)])&&_0x1c78a3[_0x8bf7e5(0x115)]>0x0&&Number['isFinite'](_0x1c78a3['opacity'])&&_0x1c78a3[_0x8bf7e5(0x11b)]>=0x0&&_0x1c78a3[_0x8bf7e5(0x11b)]<=0x1;}function u(_0x4794e1){const _0x167a5d=_0x469303;return _0x4794e1===void 0x0||(_0x4794e1[_0x167a5d(0x115)]===void 0x0||Number[_0x167a5d(0xf6)](_0x4794e1['width'])&&_0x4794e1[_0x167a5d(0x115)]>0x0)&&(_0x4794e1[_0x167a5d(0x11b)]===void 0x0||Number[_0x167a5d(0xf6)](_0x4794e1[_0x167a5d(0x11b)])&&_0x4794e1[_0x167a5d(0x11b)]>=0x0&&_0x4794e1[_0x167a5d(0x11b)]<=0x1);}function d(_0x5f0cc8){const _0x58e1b8=_0x469303;return _0x5f0cc8&&typeof _0x5f0cc8==_0x58e1b8(0x10d)&&!Array['isArray'](_0x5f0cc8)?_0x5f0cc8:{};}function f(_0x4b6608){const _0x292d4a=_0x469303;let _0x499831=d(_0x4b6608[_0x292d4a(0x118)])[_0x292d4a(0x123)];if(!_0x499831||typeof _0x499831!=_0x292d4a(0x10d)||Array[_0x292d4a(0x120)](_0x499831))return null;let _0x5c8528=_0x499831;return _0x5c8528['version']===0x1&&_0x5c8528['sourceModel']&&typeof _0x5c8528['sourceModel']==_0x292d4a(0x10d)?_0x5c8528:null;}function p(_0x5642cb){const _0x5d927a=_0x469303;return _0x5642cb[_0x5d927a(0x10c)]===_0x47f5e5['Shape']&&!!f(_0x5642cb);}_0x399325['extend'](o);const m={'Pen':_0x469303(0x11d),'Brush':_0x469303(0x117),'Highlighter':'highlighter'},h={'Corner':_0x469303(0xf7),'Smooth':_0x469303(0x113),'Symmetric':_0x469303(0x122),'Free':_0x469303(0x119)},g={'Anchor':'anchor','In':'in','Out':'out'};var _=class extends _0xbd21f4{get['BoardInkTool'](){return m;}get[_0x469303(0x10f)](){return h;}get[_0x469303(0x109)](){return g;}};_0xbd21f4[_0x469303(0xfe)](_);export{g as BoardInkHandleKind,h as BoardInkPointType,m as BoardInkTool};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x12824f=_0xfb34;(function(_0x37201b,_0x3535da){const _0x40fc02=_0xfb34,_0x1e0d17=_0x37201b();while(!![]){try{const _0x17b839=parseInt(_0x40fc02(0x160))/0x1+-parseInt(_0x40fc02(0x147))/0x2+parseInt(_0x40fc02(0x130))/0x3+parseInt(_0x40fc02(0x16d))/0x4*(-parseInt(_0x40fc02(0x143))/0x5)+-parseInt(_0x40fc02(0x16a))/0x6+parseInt(_0x40fc02(0x12f))/0x7+-parseInt(_0x40fc02(0x175))/0x8;if(_0x17b839===_0x3535da)break;else _0x1e0d17['push'](_0x1e0d17['shift']());}catch(_0x3acd14){_0x1e0d17['push'](_0x1e0d17['shift']());}}}(_0x5ecd,0xf29d8));import{ShapeFillEnum as _0x3d9285,ShapeLineCapEnum as _0x4a7b4e,ShapeLineJoinEnum as _0x127e75,ShapeLineTypeEnum as _0x53320d,ShapeTypeEnum as _0x4aa715}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x5a8579}from'@univerjs-pro/license';import{CommandType as _0x5b45d3,DependentOn as _0x17b879,ICommandService as _0x46d0bf,IConfigService as _0x5cf97d,Inject as _0x19a3e6,Injector as _0x24e31f,Plugin as _0x19d734,UniverInstanceType as _0x212eed,createIdentifier as _0x276103,merge as _0x110d4d,toDisposable as _0x297405}from'@univerjs/core';const g=0.0001;function _(_0x4dc8){return{'x':_0x4dc8['x'],'y':_0x4dc8['y']};}function v(_0x5a8eed){const _0x191ea3=_0xfb34;return{..._0x5a8eed,'in':_0x5a8eed['in']?_(_0x5a8eed['in']):void 0x0,'out':_0x5a8eed[_0x191ea3(0x15f)]?_(_0x5a8eed['out']):void 0x0};}function y(_0x379030){const _0x30401a=_0xfb34;return{'kind':_0x30401a(0x13b),'closed':_0x379030[_0x30401a(0x12a)],'anchors':_0x379030['anchors'][_0x30401a(0x134)](v)};}function b(_0x125ee1,_0x9e222c,_0x141f32){return{'x':_0x125ee1['x']+(_0x9e222c['x']-_0x125ee1['x'])*_0x141f32,'y':_0x125ee1['y']+(_0x9e222c['y']-_0x125ee1['y'])*_0x141f32};}function x(_0x231eef,_0x3f5b6e){const _0x415dd6=_0xfb34;return Math[_0x415dd6(0x17c)](_0x231eef['x']-_0x3f5b6e['x'],_0x231eef['y']-_0x3f5b6e['y']);}function S(_0x57a83d){const _0x5c4376=_0xfb34;let _0x7682d1=Math[_0x5c4376(0x17c)](_0x57a83d['x'],_0x57a83d['y']);return _0x7682d1<g?{'x':0x1,'y':0x0}:{'x':_0x57a83d['x']/_0x7682d1,'y':_0x57a83d['y']/_0x7682d1};}function C(_0x29764c,_0x580a54,_0x4fa854=x(_0x29764c,_0x580a54)){let _0x382168=S({'x':_0x29764c['x']-_0x580a54['x'],'y':_0x29764c['y']-_0x580a54['y']});return{'x':_0x29764c['x']+_0x382168['x']*_0x4fa854,'y':_0x29764c['y']+_0x382168['y']*_0x4fa854};}function w(_0x500a45,_0x4e8795){const _0x562c0c=_0xfb34;let {anchors:_0xff583b}=_0x500a45;return _0xff583b['length']<0x2||_0x4e8795<0x0?null:_0x4e8795<_0xff583b[_0x562c0c(0x169)]-0x1?{'startIndex':_0x4e8795,'endIndex':_0x4e8795+0x1,'start':_0xff583b[_0x4e8795],'end':_0xff583b[_0x4e8795+0x1]}:_0x500a45[_0x562c0c(0x12a)]&&_0x4e8795===_0xff583b[_0x562c0c(0x169)]-0x1?{'startIndex':_0xff583b[_0x562c0c(0x169)]-0x1,'endIndex':0x0,'start':_0xff583b[_0xff583b[_0x562c0c(0x169)]-0x1],'end':_0xff583b[0x0]}:null;}function _0x5ecd(){const _0x41ca23=['smooth','tolerance','beginInkMode','registerAdapter','NoFill','symbol','right','color','anchor','startIndex','point','anchors','get','ink.operation.start','out','1880690LsprwB','norm','constructor','iterator','segmentIndex','abs','decorate','defineProperty','@univerjs-pro/ink','length','10596306rSLVkC','filter','indexOf','3532RaACpf','endIndex','onStarting','_configService','Round','find','height','top','748512drNLkb','ink-centerline-','Rect','OPERATION','packageName','createId','round','hypot','kind','anchorId','_commandService','distance','symmetric','max','_config','prototype','none','slice','splice','createCustomShape','closed','forEach','opacity','min','default','11589788lcESiz','2569590yxJxaJ','disposeWithMe','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','#f54a45','map','corner','_injector','ratio','pointType','function','points','pen','width','registerCommand','tool','push','start','free','version','5155NTOpNZ','string','end','SolidLine','1258328UbldYb','left','ink.config','sqrt','toPrimitive','_adapters','getOwnPropertyDescriptor','join','object','UNIVER_INK_PLUGIN'];_0x5ecd=function(){return _0x41ca23;};return _0x5ecd();}function T(_0x36015e,_0x2d8034){const _0x5ca842=_0xfb34;let _0x88bc1e=w(_0x36015e,_0x2d8034);return _0x88bc1e?[_0x88bc1e[_0x5ca842(0x140)],_0x88bc1e['start'][_0x5ca842(0x15f)]??_0x88bc1e[_0x5ca842(0x140)],_0x88bc1e[_0x5ca842(0x145)]['in']??_0x88bc1e[_0x5ca842(0x145)],_0x88bc1e[_0x5ca842(0x145)]]:null;}function te(_0x9e35,_0x44135a){const _0x3b63b6=_0xfb34;return _0x44135a===_0x3b63b6(0x159)?_0x9e35:_0x9e35[_0x44135a]??null;}function E(_0x163406,_0x45fb39,_0x647eac){const _0x3b086a=_0xfb34;return _0x647eac==='anchor'||_0x163406[_0x3b086a(0x12a)]?!0x0:_0x647eac==='in'?_0x45fb39>0x0:_0x45fb39<_0x163406[_0x3b086a(0x15c)][_0x3b086a(0x169)]-0x1;}function D(_0x4dca95,_0x4e703e){let [_0x455e9a,_0x42f831,_0x1b8a08,_0x5bbf7f]=_0x4dca95,_0x4c14b4=b(_0x455e9a,_0x42f831,_0x4e703e),_0x29e01d=b(_0x42f831,_0x1b8a08,_0x4e703e),_0x1b9477=b(_0x1b8a08,_0x5bbf7f,_0x4e703e);return b(b(_0x4c14b4,_0x29e01d,_0x4e703e),b(_0x29e01d,_0x1b9477,_0x4e703e),_0x4e703e);}function ne(_0x2de1ce,_0x413104){let [_0x4db72a,_0x598872,_0x49657e,_0x2763b6]=_0x2de1ce,_0x44dec4=b(_0x4db72a,_0x598872,_0x413104),_0x2e7729=b(_0x598872,_0x49657e,_0x413104),_0x20f252=b(_0x49657e,_0x2763b6,_0x413104),_0x4a23c5=b(_0x44dec4,_0x2e7729,_0x413104),_0x1c0a5e=b(_0x2e7729,_0x20f252,_0x413104),_0xf5a83f=b(_0x4a23c5,_0x1c0a5e,_0x413104);return{'left':[_0x4db72a,_0x44dec4,_0x4a23c5,_0xf5a83f],'right':[_0xf5a83f,_0x1c0a5e,_0x20f252,_0x2763b6]};}function O(_0x22b024,_0xd86a6f,_0x30dcec){const _0x4c76c4=_0xfb34;let _0x1cf7f8=_0x30dcec['x']-_0xd86a6f['x'],_0x57c7f8=_0x30dcec['y']-_0xd86a6f['y'],_0x42e8e5=_0x1cf7f8*_0x1cf7f8+_0x57c7f8*_0x57c7f8,_0x15a886=_0x42e8e5<=g?0x0:Math['max'](0x0,Math[_0x4c76c4(0x12d)](0x1,((_0x22b024['x']-_0xd86a6f['x'])*_0x1cf7f8+(_0x22b024['y']-_0xd86a6f['y'])*_0x57c7f8)/_0x42e8e5)),_0xd5d034={'x':_0xd86a6f['x']+_0x1cf7f8*_0x15a886,'y':_0xd86a6f['y']+_0x57c7f8*_0x15a886};return{'point':_0xd5d034,'ratio':_0x15a886,'distance':x(_0x22b024,_0xd5d034)};}function re(_0x57bf76,_0x57fef2,_0x58f621){const _0x3a9fca=_0xfb34;return O(_0x57bf76,_0x57fef2,_0x58f621)[_0x3a9fca(0x121)]**0x2;}function k(_0x3d9cb8,_0x22eade){const _0x56fb56=_0xfb34;if(_0x3d9cb8[_0x56fb56(0x169)]<=0x2)return _0x3d9cb8[_0x56fb56(0x134)](_);let _0x1eaa2c=0x0,_0x20db1a=0x0,_0xf38245=_0x3d9cb8[0x0],_0xcc0706=_0x3d9cb8[_0x3d9cb8[_0x56fb56(0x169)]-0x1],_0x21b180=_0x22eade*_0x22eade;for(let _0xd88136=0x1;_0xd88136<_0x3d9cb8[_0x56fb56(0x169)]-0x1;_0xd88136++){let _0x2c9b04=re(_0x3d9cb8[_0xd88136],_0xf38245,_0xcc0706);_0x2c9b04>_0x1eaa2c&&(_0x1eaa2c=_0x2c9b04,_0x20db1a=_0xd88136);}if(_0x1eaa2c<=_0x21b180)return[_(_0xf38245),_(_0xcc0706)];let _0x265ffc=k(_0x3d9cb8[_0x56fb56(0x127)](0x0,_0x20db1a+0x1),_0x22eade),_0x392a67=k(_0x3d9cb8['slice'](_0x20db1a),_0x22eade);return[..._0x265ffc['slice'](0x0,-0x1),..._0x392a67];}function ie(_0x5abbb0,_0x292144){let _0x73f008=_0x5abbb0[_0x292144],_0x17061c=_0x5abbb0[_0x292144+0x1],_0x339766=_0x5abbb0[_0x292144-0x1]??_0x73f008;return{'x':_0x73f008['x']+(_0x17061c['x']-_0x339766['x'])/0x6,'y':_0x73f008['y']+(_0x17061c['y']-_0x339766['y'])/0x6};}function A(_0x4e2bd2,_0x24fda7){let _0x3764db=_0x4e2bd2[_0x24fda7],_0x7b6501=_0x4e2bd2[_0x24fda7-0x1],_0x5ae195=_0x4e2bd2[_0x24fda7+0x1]??_0x3764db;return{'x':_0x3764db['x']-(_0x5ae195['x']-_0x7b6501['x'])/0x6,'y':_0x3764db['y']-(_0x5ae195['y']-_0x7b6501['y'])/0x6};}function j(_0x36d05f,_0xb33b06){const _0x434fed=_0xfb34;let _0x3fb079=_0x36d05f['anchors'][_0xb33b06],_0x16e36d=_0x36d05f['anchors'][_0xb33b06-0x1]??(_0x36d05f[_0x434fed(0x12a)]?_0x36d05f[_0x434fed(0x15c)][_0x36d05f['anchors'][_0x434fed(0x169)]-0x1]:null),_0x2d48c8=_0x36d05f[_0x434fed(0x15c)][_0xb33b06+0x1]??(_0x36d05f[_0x434fed(0x12a)]?_0x36d05f[_0x434fed(0x15c)][0x0]:null),_0x5b8def=_0x16e36d&&_0x2d48c8?S({'x':_0x2d48c8['x']-_0x16e36d['x'],'y':_0x2d48c8['y']-_0x16e36d['y']}):_0x2d48c8?S({'x':_0x2d48c8['x']-_0x3fb079['x'],'y':_0x2d48c8['y']-_0x3fb079['y']}):_0x16e36d?S({'x':_0x3fb079['x']-_0x16e36d['x'],'y':_0x3fb079['y']-_0x16e36d['y']}):{'x':0x1,'y':0x0},_0x59ba2b=_0x16e36d&&_0x2d48c8?Math['max'](0x32,x(_0x16e36d,_0x2d48c8)/0x4):0x32;return{'in':{'x':_0x3fb079['x']-_0x5b8def['x']*_0x59ba2b,'y':_0x3fb079['y']-_0x5b8def['y']*_0x59ba2b},'out':{'x':_0x3fb079['x']+_0x5b8def['x']*_0x59ba2b,'y':_0x3fb079['y']+_0x5b8def['y']*_0x59ba2b}};}function M(_0x465307,_0x53fa7d){const _0x2ee77e=_0xfb34;let _0x2f1d5a=_0x465307[_0x53fa7d],_0x409422=_0x53fa7d==='in'?_0x2ee77e(0x15f):'in',_0x490242=_0x465307[_0x409422];if(_0x2f1d5a){if(_0x465307['pointType']===_0x2ee77e(0x122)){_0x465307[_0x409422]=C(_0x465307,_0x2f1d5a);return;}_0x465307[_0x2ee77e(0x138)]==='smooth'&&(_0x465307[_0x409422]=C(_0x465307,_0x2f1d5a,_0x490242?x(_0x465307,_0x490242):x(_0x465307,_0x2f1d5a)));}}function ae(_0x573efd,_0x38eac5){const _0x4432ac=_0xfb34;let _0x270420=y(_0x573efd);return!_0x38eac5||_0x270420[_0x4432ac(0x12a)]||_0x270420[_0x4432ac(0x15c)][_0x4432ac(0x169)]===0x0||_0x270420[_0x4432ac(0x15c)]['push']({'id':'__ink-preview-anchor__','x':_0x38eac5['x'],'y':_0x38eac5['y'],'pointType':'corner'}),_0x270420;}function oe(_0x27d520,_0x597068={}){const _0x1c15ae=_0xfb34;let _0x3f4f7f=Math[_0x1c15ae(0x123)](0x0,_0x597068[_0x1c15ae(0x152)]??Math[_0x1c15ae(0x123)](0x4,_0x27d520[_0x1c15ae(0x13c)]*0.35)),_0x1f87d8=_0x597068[_0x1c15ae(0x17a)]??(_0x56d711=>_0x1c15ae(0x176)+_0x56d711),_0x3bcb77=k(_0x27d520[_0x1c15ae(0x13a)],_0x3f4f7f),_0x33f090=_0x3bcb77['map']((_0x128b33,_0xeaee5c)=>({'id':_0x1f87d8(_0xeaee5c),'x':_0x128b33['x'],'y':_0x128b33['y'],'pointType':_0x1c15ae(0x141)}));for(let _0x42138d=0x0;_0x42138d<_0x33f090[_0x1c15ae(0x169)]-0x1;_0x42138d++)_0x33f090[_0x42138d]['out']=ie(_0x3bcb77,_0x42138d),_0x33f090[_0x42138d+0x1]['in']=A(_0x3bcb77,_0x42138d+0x1);return{'kind':_0x1c15ae(0x13b),'closed':!0x1,'anchors':_0x33f090};}function se(_0x116306,_0x3b0a79,_0x37214e){const _0x582ef8=_0xfb34;let _0x4a0807=null,_0x402d52=['anchor','in',_0x582ef8(0x15f)];return _0x116306[_0x582ef8(0x15c)]['forEach']((_0x9f32be,_0x58859e)=>{_0x402d52['forEach'](_0x1dc52f=>{const _0x5f00ea=_0xfb34;if(!E(_0x116306,_0x58859e,_0x1dc52f))return;let _0x2ae29c=te(_0x9f32be,_0x1dc52f);if(!_0x2ae29c)return;let _0x3ba76b=x(_0x3b0a79,_0x2ae29c);_0x3ba76b>_0x37214e||_0x4a0807&&_0x3ba76b>=_0x4a0807[_0x5f00ea(0x121)]||(_0x4a0807={'handle':{'kind':_0x1dc52f,'anchorId':_0x9f32be['id']},'point':_(_0x2ae29c),'distance':_0x3ba76b});});}),_0x4a0807;}function ce(_0x16b21a,_0x56a04c,_0x29635c){const _0x2eaa14=_0xfb34;let _0x3e3609=null,_0x4d2eac=_0x16b21a['closed']?_0x16b21a[_0x2eaa14(0x15c)][_0x2eaa14(0x169)]:Math[_0x2eaa14(0x123)](0x0,_0x16b21a[_0x2eaa14(0x15c)][_0x2eaa14(0x169)]-0x1);for(let _0x3b1b81=0x0;_0x3b1b81<_0x4d2eac;_0x3b1b81++){let _0x743e3a=T(_0x16b21a,_0x3b1b81);if(!_0x743e3a)continue;let _0x4a0285=D(_0x743e3a,0x0);for(let _0x2ab11d=0x1;_0x2ab11d<=0x20;_0x2ab11d++){let _0x3e6995=D(_0x743e3a,_0x2ab11d/0x20),_0xd8b160=O(_0x56a04c,_0x4a0285,_0x3e6995),_0x4d6173=(_0x2ab11d-0x1+_0xd8b160[_0x2eaa14(0x137)])/0x20;(!_0x3e3609||_0xd8b160['distance']<_0x3e3609[_0x2eaa14(0x121)])&&(_0x3e3609={'segmentIndex':_0x3b1b81,'t':_0x4d6173,'point':_0xd8b160[_0x2eaa14(0x15b)],'distance':_0xd8b160[_0x2eaa14(0x121)]}),_0x4a0285=_0x3e6995;}}return _0x3e3609&&_0x3e3609[_0x2eaa14(0x121)]<=_0x29635c?_0x3e3609:null;}function le(_0x5c0cd0,_0x26da36,_0x115bce){const _0x18fd77=_0xfb34;let _0x3096d8=y(_0x5c0cd0),_0x365dd4=w(_0x3096d8,_0x26da36[_0x18fd77(0x164)]),_0x7d51ad=T(_0x3096d8,_0x26da36['segmentIndex']);if(!_0x365dd4||!_0x7d51ad)return _0x3096d8;let _0x4b6e71=ne(_0x7d51ad,Math[_0x18fd77(0x123)](0x0,Math[_0x18fd77(0x12d)](0x1,_0x26da36['t']))),_0x54d8f7={'id':_0x115bce(),'x':_0x4b6e71[_0x18fd77(0x148)][0x3]['x'],'y':_0x4b6e71[_0x18fd77(0x148)][0x3]['y'],'in':_(_0x4b6e71[_0x18fd77(0x148)][0x2]),'out':_(_0x4b6e71['right'][0x1]),'pointType':_0x18fd77(0x141)};return _0x3096d8[_0x18fd77(0x15c)][_0x365dd4[_0x18fd77(0x15a)]][_0x18fd77(0x15f)]=_(_0x4b6e71[_0x18fd77(0x148)][0x1]),_0x3096d8[_0x18fd77(0x15c)][_0x365dd4[_0x18fd77(0x16e)]]['in']=_(_0x4b6e71[_0x18fd77(0x157)][0x2]),_0x3096d8[_0x18fd77(0x15c)][_0x18fd77(0x128)](_0x365dd4[_0x18fd77(0x15a)]+0x1,0x0,_0x54d8f7),_0x3096d8;}function ue(_0x1168a2,_0x5aff59){const _0x3a61ee=_0xfb34;let _0x3b89bb=y(_0x1168a2);return _0x3b89bb['anchors']=_0x3b89bb[_0x3a61ee(0x15c)][_0x3a61ee(0x16b)](_0x2f4a47=>_0x2f4a47['id']!==_0x5aff59),_0x3b89bb[_0x3a61ee(0x12a)]&&_0x3b89bb[_0x3a61ee(0x15c)]['length']<0x3&&(_0x3b89bb[_0x3a61ee(0x12a)]=!0x1),_0x3b89bb;}function N(_0x413ca2,_0x363103,_0x471f07){const _0x2fd4f2=_0xfb34;let _0x4f8f40=y(_0x413ca2),_0x3ab0c9=_0x4f8f40[_0x2fd4f2(0x15c)]['findIndex'](_0x307b8f=>_0x307b8f['id']===_0x363103),_0x561738=_0x4f8f40[_0x2fd4f2(0x15c)][_0x3ab0c9];if(!_0x561738)return _0x4f8f40;if(_0x561738[_0x2fd4f2(0x138)]=_0x471f07,_0x471f07===_0x2fd4f2(0x135))return delete _0x561738['in'],delete _0x561738[_0x2fd4f2(0x15f)],_0x4f8f40;let _0x235145=j(_0x4f8f40,_0x3ab0c9);if(_0x561738['in']=_0x561738['in']?_(_0x561738['in']):_0x235145['in'],_0x561738[_0x2fd4f2(0x15f)]=_0x561738['out']?_(_0x561738['out']):_0x235145[_0x2fd4f2(0x15f)],_0x471f07===_0x2fd4f2(0x122)){let _0x22c872=Math[_0x2fd4f2(0x123)](x(_0x561738,_0x561738['in']),x(_0x561738,_0x561738[_0x2fd4f2(0x15f)]),0x32),_0x25925e=S({'x':_0x561738['out']['x']-_0x561738['x'],'y':_0x561738[_0x2fd4f2(0x15f)]['y']-_0x561738['y']});_0x561738[_0x2fd4f2(0x15f)]={'x':_0x561738['x']+_0x25925e['x']*_0x22c872,'y':_0x561738['y']+_0x25925e['y']*_0x22c872},_0x561738['in']={'x':_0x561738['x']-_0x25925e['x']*_0x22c872,'y':_0x561738['y']-_0x25925e['y']*_0x22c872};}else _0x471f07===_0x2fd4f2(0x151)&&M(_0x561738,_0x2fd4f2(0x15f));return _0x4f8f40;}function P(_0x3ea508,_0x5107e8){const _0x4bea2f=_0xfb34;let _0x4df642=_0x3ea508[_0x4bea2f(0x15c)][_0x4bea2f(0x172)](_0x13f662=>_0x13f662['id']===_0x5107e8),_0x59c04a=(_0x4df642==null?void 0x0:_0x4df642[_0x4bea2f(0x138)])??'corner';return N(_0x3ea508,_0x5107e8,_0x59c04a==='corner'?_0x4bea2f(0x151):_0x59c04a===_0x4bea2f(0x151)?_0x4bea2f(0x122):_0x59c04a===_0x4bea2f(0x122)?'free':_0x4bea2f(0x135));}function F(_0x544eaf,_0x575373,_0xd68f48){const _0x4d1695=_0xfb34;let _0x1daaac=y(_0x544eaf),_0x289af1=_0x1daaac['anchors']['find'](_0x4067f2=>_0x4067f2['id']===_0x575373[_0x4d1695(0x11f)]);if(!_0x289af1)return _0x1daaac;if(_0x575373[_0x4d1695(0x11e)]==='anchor'){let _0x2b73c5={'x':_0xd68f48['x']-_0x289af1['x'],'y':_0xd68f48['y']-_0x289af1['y']};return _0x289af1['x']=_0xd68f48['x'],_0x289af1['y']=_0xd68f48['y'],_0x289af1['in']&&={'x':_0x289af1['in']['x']+_0x2b73c5['x'],'y':_0x289af1['in']['y']+_0x2b73c5['y']},_0x289af1[_0x4d1695(0x15f)]&&={'x':_0x289af1[_0x4d1695(0x15f)]['x']+_0x2b73c5['x'],'y':_0x289af1['out']['y']+_0x2b73c5['y']},_0x1daaac;}return _0x289af1[_0x575373[_0x4d1695(0x11e)]]=_(_0xd68f48),_0x289af1[_0x4d1695(0x138)]===_0x4d1695(0x135)&&(_0x289af1[_0x4d1695(0x138)]='free'),M(_0x289af1,_0x575373['kind']),_0x1daaac;}const I=1e-9;function L(_0x3436e8){const _0x4767c9=_0xfb34;let _0x36b857=Math[_0x4767c9(0x17b)](_0x3436e8*0x2710)/0x2710;return Object['is'](_0x36b857,-0x0)?'0':String(_0x36b857);}function R(_0x42ac74){return L(_0x42ac74['x'])+'\x20'+L(_0x42ac74['y']);}function z(_0x44891f,_0x4bd96f){return{'x':_0x44891f['x']-_0x4bd96f['x'],'y':_0x44891f['y']-_0x4bd96f['y']};}function B(_0x59b28c,_0x578fef,_0x23119e,_0x309e59,_0x429a9c){let _0x130ab6=0x1-_0x429a9c;return{'x':_0x130ab6*_0x130ab6*_0x130ab6*_0x59b28c['x']+0x3*_0x130ab6*_0x130ab6*_0x429a9c*_0x578fef['x']+0x3*_0x130ab6*_0x429a9c*_0x429a9c*_0x23119e['x']+_0x429a9c*_0x429a9c*_0x429a9c*_0x309e59['x'],'y':_0x130ab6*_0x130ab6*_0x130ab6*_0x59b28c['y']+0x3*_0x130ab6*_0x130ab6*_0x429a9c*_0x578fef['y']+0x3*_0x130ab6*_0x429a9c*_0x429a9c*_0x23119e['y']+_0x429a9c*_0x429a9c*_0x429a9c*_0x309e59['y']};}function V(_0x267d11,_0x260039,_0x5e0036,_0xa32ffc){const _0x44fc4c=_0xfb34;let _0x3b0fb2=-_0x267d11+0x3*_0x260039-0x3*_0x5e0036+_0xa32ffc,_0x2bc1dd=0x3*_0x267d11-0x6*_0x260039+0x3*_0x5e0036,_0x11d51d=-0x3*_0x267d11+0x3*_0x260039,_0x20e4b8=[];if(Math[_0x44fc4c(0x165)](_0x3b0fb2)<I){if(Math['abs'](_0x2bc1dd)<I)return _0x20e4b8;let _0x377c75=-_0x11d51d/(0x2*_0x2bc1dd);return _0x377c75>0x0&&_0x377c75<0x1&&_0x20e4b8[_0x44fc4c(0x13f)](_0x377c75),_0x20e4b8;}let _0x3d02c3=_0x2bc1dd*_0x2bc1dd-0x3*_0x3b0fb2*_0x11d51d;if(_0x3d02c3<0x0)return _0x20e4b8;let _0x105aa7=Math[_0x44fc4c(0x14a)](Math[_0x44fc4c(0x123)](0x0,_0x3d02c3)),_0x54ede7=(-_0x2bc1dd+_0x105aa7)/(0x3*_0x3b0fb2),_0x1aa6fa=(-_0x2bc1dd-_0x105aa7)/(0x3*_0x3b0fb2);return _0x54ede7>0x0&&_0x54ede7<0x1&&_0x20e4b8[_0x44fc4c(0x13f)](_0x54ede7),_0x1aa6fa>0x0&&_0x1aa6fa<0x1&&Math[_0x44fc4c(0x165)](_0x1aa6fa-_0x54ede7)>I&&_0x20e4b8[_0x44fc4c(0x13f)](_0x1aa6fa),_0x20e4b8;}function H(_0x526bb7,_0x319bf5,_0x19101b,_0x8ef6f3,_0x5ed795){const _0x1b00a9=_0xfb34;_0x526bb7['push'](_0x319bf5,_0x5ed795),new Set([...V(_0x319bf5['x'],_0x19101b['x'],_0x8ef6f3['x'],_0x5ed795['x']),...V(_0x319bf5['y'],_0x19101b['y'],_0x8ef6f3['y'],_0x5ed795['y'])])[_0x1b00a9(0x12b)](_0x4bcc87=>{const _0x4819c1=_0x1b00a9;_0x526bb7[_0x4819c1(0x13f)](B(_0x319bf5,_0x19101b,_0x8ef6f3,_0x5ed795,_0x4bcc87));});}function U(_0x1d40ca){const _0x5cca3c=_0xfb34;let _0x5814ad=_0x1d40ca['anchors'];if(_0x5814ad[_0x5cca3c(0x169)]<=0x1)return _0x5814ad;let _0x378656=[];for(let _0x22bf71=0x1;_0x22bf71<_0x5814ad[_0x5cca3c(0x169)];_0x22bf71++){let _0x69020e=_0x5814ad[_0x22bf71-0x1],_0x45884d=_0x5814ad[_0x22bf71];H(_0x378656,_0x69020e,_0x69020e[_0x5cca3c(0x15f)]??_0x69020e,_0x45884d['in']??_0x45884d,_0x45884d);}if(_0x1d40ca[_0x5cca3c(0x12a)]&&_0x5814ad[_0x5cca3c(0x169)]>0x1){let _0x42e91a=_0x5814ad[_0x5814ad[_0x5cca3c(0x169)]-0x1],_0x1d8e0c=_0x5814ad[0x0];H(_0x378656,_0x42e91a,_0x42e91a['out']??_0x42e91a,_0x1d8e0c['in']??_0x1d8e0c,_0x1d8e0c);}return _0x378656;}function de(_0x5efabb){const _0x20a2bc=_0xfb34;let _0x1f45e9=_0x5efabb['points'];if(_0x1f45e9[_0x20a2bc(0x169)]<=0x1)return _0x1f45e9;let _0x4bd307=[];for(let _0x4e269e=0x0;_0x4e269e<_0x1f45e9[_0x20a2bc(0x169)]-0x1;_0x4e269e++){let _0x3e0599=_0x1f45e9[_0x4e269e],_0x56cd97=_0x1f45e9[_0x4e269e+0x1],_0x28f2f7=_0x1f45e9[_0x4e269e-0x1]??_0x3e0599,_0x226430=_0x1f45e9[_0x4e269e+0x2]??_0x56cd97;H(_0x4bd307,_0x3e0599,{'x':_0x3e0599['x']+(_0x56cd97['x']-_0x28f2f7['x'])/0x6,'y':_0x3e0599['y']+(_0x56cd97['y']-_0x28f2f7['y'])/0x6},{'x':_0x56cd97['x']-(_0x226430['x']-_0x3e0599['x'])/0x6,'y':_0x56cd97['y']-(_0x226430['y']-_0x3e0599['y'])/0x6},_0x56cd97);}return _0x4bd307;}function fe(_0x2b5f35){const _0x54c17e=_0xfb34;return _0x2b5f35[_0x54c17e(0x11e)]===_0x54c17e(0x13b)?U(_0x2b5f35):de(_0x2b5f35);}function W(_0x10cc16){const _0x7fbaa1=_0xfb34;let _0x37e7ef=Math[_0x7fbaa1(0x17b)](_0x10cc16*0x2710)/0x2710;return Object['is'](_0x37e7ef,-0x0)?0x0:_0x37e7ef;}function G(_0x55a2c3){const _0x54e03e=_0xfb34;let _0x31413e=fe(_0x55a2c3);if(_0x31413e[_0x54e03e(0x169)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x2827b3=Math['min'](..._0x31413e[_0x54e03e(0x134)](_0x6ae168=>_0x6ae168['x'])),_0x20f669=Math[_0x54e03e(0x12d)](..._0x31413e[_0x54e03e(0x134)](_0x2d2c6b=>_0x2d2c6b['y'])),_0x3d44f4=Math[_0x54e03e(0x123)](..._0x31413e[_0x54e03e(0x134)](_0x1537c2=>_0x1537c2['x'])),_0x325a20=Math['max'](..._0x31413e[_0x54e03e(0x134)](_0x209b5a=>_0x209b5a['y']));return{'left':W(_0x2827b3),'top':W(_0x20f669),'width':W(Math['max'](0x1,_0x3d44f4-_0x2827b3)),'height':W(Math['max'](0x1,_0x325a20-_0x20f669))};}function _0xfb34(_0x1d67e9,_0xa8872d){_0x1d67e9=_0x1d67e9-0x11e;const _0x5ecdc2=_0x5ecd();let _0xfb340e=_0x5ecdc2[_0x1d67e9];return _0xfb340e;}function pe(_0x28958b,_0x3af3b8){const _0x1ceeba=_0xfb34;let _0x3037a8=_0x28958b['anchors'];if(_0x3037a8[_0x1ceeba(0x169)]===0x0)return'';let _0x5ce66d=['M\x20'+R(z(_0x3037a8[0x0],_0x3af3b8))];for(let _0x5b1ea9=0x1;_0x5b1ea9<_0x3037a8[_0x1ceeba(0x169)];_0x5b1ea9++){let _0x2e839c=_0x3037a8[_0x5b1ea9-0x1],_0x30619a=_0x3037a8[_0x5b1ea9],_0x352395=_0x2e839c[_0x1ceeba(0x15f)]??_0x2e839c,_0x4bd8bd=_0x30619a['in']??_0x30619a;_0x5ce66d[_0x1ceeba(0x13f)]('C\x20'+R(z(_0x352395,_0x3af3b8))+'\x20'+R(z(_0x4bd8bd,_0x3af3b8))+'\x20'+R(z(_0x30619a,_0x3af3b8)));}if(_0x28958b[_0x1ceeba(0x12a)]&&_0x3037a8[_0x1ceeba(0x169)]>0x1){let _0x534b55=_0x3037a8[_0x3037a8[_0x1ceeba(0x169)]-0x1],_0x117291=_0x3037a8[0x0],_0x576698=_0x534b55[_0x1ceeba(0x15f)]??_0x534b55,_0x417e56=_0x117291['in']??_0x117291;_0x5ce66d[_0x1ceeba(0x13f)]('C\x20'+R(z(_0x576698,_0x3af3b8))+'\x20'+R(z(_0x417e56,_0x3af3b8))+'\x20'+R(z(_0x117291,_0x3af3b8))),_0x5ce66d[_0x1ceeba(0x13f)]('Z');}return _0x5ce66d[_0x1ceeba(0x14e)]('\x20');}function me(_0x2bfe73,_0x528dad){const _0x6c1ae2=_0xfb34;let _0x57044a=_0x2bfe73['points'][_0x6c1ae2(0x134)](_0x1f9167=>z(_0x1f9167,_0x528dad));if(_0x57044a[_0x6c1ae2(0x169)]===0x0)return'';if(_0x57044a['length']===0x1)return'M\x20'+R(_0x57044a[0x0]);let _0x57a346=['M\x20'+R(_0x57044a[0x0])];for(let _0x4f1c0f=0x0;_0x4f1c0f<_0x57044a[_0x6c1ae2(0x169)]-0x1;_0x4f1c0f++){let _0x5354df=_0x57044a[_0x4f1c0f],_0x3ba180=_0x57044a[_0x4f1c0f+0x1],_0x5c94ce=_0x57044a[_0x4f1c0f-0x1]??_0x5354df,_0x2686c3=_0x57044a[_0x4f1c0f+0x2]??_0x3ba180,_0x90dac3={'x':_0x5354df['x']+(_0x3ba180['x']-_0x5c94ce['x'])/0x6,'y':_0x5354df['y']+(_0x3ba180['y']-_0x5c94ce['y'])/0x6},_0xb99974={'x':_0x3ba180['x']-(_0x2686c3['x']-_0x5354df['x'])/0x6,'y':_0x3ba180['y']-(_0x2686c3['y']-_0x5354df['y'])/0x6};_0x57a346[_0x6c1ae2(0x13f)]('C\x20'+R(_0x90dac3)+'\x20'+R(_0xb99974)+'\x20'+R(_0x3ba180));}return _0x57a346[_0x6c1ae2(0x14e)]('\x20');}function he(_0x3a771b,_0x12afda){const _0x103e45=_0xfb34;return _0x3a771b[_0x103e45(0x11e)]===_0x103e45(0x13b)?pe(_0x3a771b,_0x12afda):me(_0x3a771b,_0x12afda);}function ge(_0x184851,_0x5a7baa){const _0x2f19c6=_0xfb34;return _0x5a7baa!=null&&_0x5a7baa['color']?_0x5a7baa[_0x2f19c6(0x158)]:_0x184851[_0x2f19c6(0x11e)]===_0x2f19c6(0x13b)?_0x2f19c6(0x133):_0x184851[_0x2f19c6(0x158)];}function _e(_0x5c26ac,_0x397b31){const _0x44f9aa=_0xfb34;return(_0x397b31==null?void 0x0:_0x397b31['width'])===void 0x0?_0x5c26ac['kind']===_0x44f9aa(0x13b)?0x2:_0x5c26ac[_0x44f9aa(0x13c)]:_0x397b31[_0x44f9aa(0x13c)];}function ve(_0x19f478,_0x3356df){const _0x3a0c0f=_0xfb34;return(_0x3356df==null?void 0x0:_0x3356df[_0x3a0c0f(0x12c)])===void 0x0?_0x19f478[_0x3a0c0f(0x11e)]==='pen'?void 0x0:_0x19f478[_0x3a0c0f(0x12c)]:_0x3356df['opacity'];}function ye(_0x2d62fd,_0x304670){const _0x1efda2=_0xfb34;let _0xf38616=G(_0x2d62fd),_0x538d40=he(_0x2d62fd,{'x':_0xf38616['left'],'y':_0xf38616[_0x1efda2(0x174)]}),_0x3f4908=_0x2d62fd[_0x1efda2(0x11e)]===_0x1efda2(0x13b)&&_0x2d62fd[_0x1efda2(0x12a)],_0x397cc1=_0x304670==null?void 0x0:_0x304670['fillColor'];return{'shapeType':_0x4aa715[_0x1efda2(0x177)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0xf38616[_0x1efda2(0x13c)],'h':_0xf38616[_0x1efda2(0x173)],'fill':_0x3f4908?_0x1efda2(0x161):_0x1efda2(0x126),'stroke':!0x0,'data':_0x538d40,'dataArray':be(_0x2d62fd,{'x':_0xf38616['left'],'y':_0xf38616[_0x1efda2(0x174)]})}]},'fill':_0x3f4908&&_0x397cc1?{'color':_0x397cc1,'fillType':_0x3d9285['SolidFill']}:{'fillType':_0x3d9285[_0x1efda2(0x155)]},'stroke':{'color':ge(_0x2d62fd,_0x304670),'width':_e(_0x2d62fd,_0x304670),'opacity':ve(_0x2d62fd,_0x304670),'lineStrokeType':_0x53320d[_0x1efda2(0x146)],'capType':_0x4a7b4e[_0x1efda2(0x171)],'lineJoinType':_0x127e75[_0x1efda2(0x171)]}};}function K(_0xb70e3,_0x355490){return{'x':_0xb70e3['x']-_0x355490['x'],'y':_0xb70e3['y']-_0x355490['y']};}function be(_0x2c8e8c,_0x2d684f){const _0xddc849=_0xfb34;if(_0x2c8e8c[_0xddc849(0x11e)]===_0xddc849(0x13b)){let _0x5f3f2f=_0x2c8e8c['anchors'];if(_0x5f3f2f[_0xddc849(0x169)]===0x0)return[];let _0x163fa1=K(_0x5f3f2f[0x0],_0x2d684f),_0x101a10=[{'command':'M','points':[_0x163fa1['x'],_0x163fa1['y']]}];for(let _0x14062d=0x1;_0x14062d<_0x5f3f2f[_0xddc849(0x169)];_0x14062d++){let _0x55edc5=_0x5f3f2f[_0x14062d-0x1],_0x7bd807=_0x5f3f2f[_0x14062d],_0x48c016=K(_0x55edc5['out']??_0x55edc5,_0x2d684f),_0x3105b3=K(_0x7bd807['in']??_0x7bd807,_0x2d684f),_0x3660bc=K(_0x7bd807,_0x2d684f);_0x101a10['push']({'command':'C','points':[_0x48c016['x'],_0x48c016['y'],_0x3105b3['x'],_0x3105b3['y'],_0x3660bc['x'],_0x3660bc['y']]});}if(_0x2c8e8c[_0xddc849(0x12a)]&&_0x5f3f2f[_0xddc849(0x169)]>0x1){let _0x3ec656=_0x5f3f2f[_0x5f3f2f[_0xddc849(0x169)]-0x1],_0x19ab0a=_0x5f3f2f[0x0],_0x46b4e2=K(_0x3ec656[_0xddc849(0x15f)]??_0x3ec656,_0x2d684f),_0x48e0bd=K(_0x19ab0a['in']??_0x19ab0a,_0x2d684f),_0x337e25=K(_0x19ab0a,_0x2d684f);_0x101a10[_0xddc849(0x13f)]({'command':'C','points':[_0x46b4e2['x'],_0x46b4e2['y'],_0x48e0bd['x'],_0x48e0bd['y'],_0x337e25['x'],_0x337e25['y']]}),_0x101a10['push']({'command':'z','points':[]});}return _0x101a10;}let _0x2ca072=_0x2c8e8c[_0xddc849(0x13a)][_0xddc849(0x134)](_0x3d4c5c=>K(_0x3d4c5c,_0x2d684f));if(_0x2ca072[_0xddc849(0x169)]===0x0)return[];let _0x4f57db=[{'command':'M','points':[_0x2ca072[0x0]['x'],_0x2ca072[0x0]['y']]}];for(let _0x545f60=0x0;_0x545f60<_0x2ca072[_0xddc849(0x169)]-0x1;_0x545f60++){let _0x3c4165=_0x2ca072[_0x545f60],_0x5a3859=_0x2ca072[_0x545f60+0x1],_0x7f9ae7=_0x2ca072[_0x545f60-0x1]??_0x3c4165,_0x4d3387=_0x2ca072[_0x545f60+0x2]??_0x5a3859,_0x19bbf1={'x':_0x3c4165['x']+(_0x5a3859['x']-_0x7f9ae7['x'])/0x6,'y':_0x3c4165['y']+(_0x5a3859['y']-_0x7f9ae7['y'])/0x6},_0xaf45cb={'x':_0x5a3859['x']-(_0x4d3387['x']-_0x3c4165['x'])/0x6,'y':_0x5a3859['y']-(_0x4d3387['y']-_0x3c4165['y'])/0x6};_0x4f57db[_0xddc849(0x13f)]({'command':'C','points':[_0x19bbf1['x'],_0x19bbf1['y'],_0xaf45cb['x'],_0xaf45cb['y'],_0x5a3859['x'],_0x5a3859['y']]});}return _0x4f57db;}function xe(_0x4d2de5){const _0x2ae7a7=_0xfb34;let {model:_0x356675,sourceModel:_0x476dc3=_0x356675,style:_0x228d5f}=_0x4d2de5,_0x320a35=_0x4d2de5[_0x2ae7a7(0x13e)]??_0x356675[_0x2ae7a7(0x11e)],_0x1df080=G(_0x356675),_0x11d716=_0x356675[_0x2ae7a7(0x11e)]===_0x2ae7a7(0x13b)&&_0x320a35!==_0x2ae7a7(0x13b)?_0x356675:void 0x0;return{'transform':{..._0x1df080,'rotation':0x0},'shapeData':ye(_0x356675,_0x228d5f),'ink':{'version':0x1,'tool':_0x320a35,'sourceModel':_0x476dc3,..._0x11d716?{'editModel':_0x11d716}:{},'normalizedBounds':_0x1df080}};}var Se=_0x12824f(0x168),Ce='1.0.0-rc.0';function q(_0x1284b6){'@babel/helpers - typeof';const _0x114b7c=_0x12824f;return q=typeof Symbol==_0x114b7c(0x139)&&typeof Symbol[_0x114b7c(0x163)]==_0x114b7c(0x156)?function(_0xc8c90e){return typeof _0xc8c90e;}:function(_0x4a2388){const _0x1ca709=_0x114b7c;return _0x4a2388&&typeof Symbol==_0x1ca709(0x139)&&_0x4a2388[_0x1ca709(0x162)]===Symbol&&_0x4a2388!==Symbol[_0x1ca709(0x125)]?_0x1ca709(0x156):typeof _0x4a2388;},q(_0x1284b6);}function we(_0x16642d,_0x5e3726){const _0x4605ce=_0x12824f;if(q(_0x16642d)!='object'||!_0x16642d)return _0x16642d;var _0x8a85d1=_0x16642d[Symbol[_0x4605ce(0x14b)]];if(_0x8a85d1!==void 0x0){var _0x7fa7cc=_0x8a85d1['call'](_0x16642d,_0x5e3726||_0x4605ce(0x12e));if(q(_0x7fa7cc)!=_0x4605ce(0x14f))return _0x7fa7cc;throw TypeError(_0x4605ce(0x132));}return(_0x5e3726===_0x4605ce(0x144)?String:Number)(_0x16642d);}function J(_0x4a242d){const _0x13c9ea=_0x12824f;var _0x428652=we(_0x4a242d,_0x13c9ea(0x144));return q(_0x428652)==_0x13c9ea(0x156)?_0x428652:_0x428652+'';}function Y(_0x6e450,_0x30418b,_0x45ed00){const _0x1fcfc4=_0x12824f;return(_0x30418b=J(_0x30418b))in _0x6e450?Object[_0x1fcfc4(0x167)](_0x6e450,_0x30418b,{'value':_0x45ed00,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x6e450[_0x30418b]=_0x45ed00,_0x6e450;}const X=_0x276103('ink.host-adapter.service');var Te=class{constructor(){const _0x1a757a=_0x12824f;Y(this,_0x1a757a(0x14c),[]);}[_0x12824f(0x154)](_0x62b286){const _0x12bd43=_0x12824f;return this[_0x12bd43(0x14c)][_0x12bd43(0x13f)](_0x62b286),_0x297405(()=>{const _0x5eba52=_0x12bd43;let _0x50c808=this['_adapters'][_0x5eba52(0x16c)](_0x62b286);_0x50c808>=0x0&&this[_0x5eba52(0x14c)][_0x5eba52(0x128)](_0x50c808,0x1);});}['beginInkMode'](_0x3e7e43){const _0xc7e8a8=_0x12824f;for(let _0x357f0a of this['_adapters'])if(_0x357f0a[_0xc7e8a8(0x153)](_0x3e7e43))return!0x0;return!0x1;}async[_0x12824f(0x129)](_0x226cfa){const _0x1bb35e=_0x12824f;for(let _0x4d5376 of this[_0x1bb35e(0x14c)])if(_0x4d5376[_0x1bb35e(0x129)]&&await _0x4d5376['createCustomShape'](_0x226cfa))return!0x0;return!0x1;}};const Ee={'id':_0x12824f(0x15e),'type':_0x5b45d3[_0x12824f(0x178)],'handler':(_0x1b2182,_0x5149c2)=>_0x5149c2?_0x1b2182[_0x12824f(0x15d)](X)[_0x12824f(0x153)](_0x5149c2):!0x1},Z={};function Q(_0x1c1d7e,_0x5aff32){return function(_0x5448dd,_0x5ad8e5){_0x5aff32(_0x5448dd,_0x5ad8e5,_0x1c1d7e);};}function De(_0x5c2ec3,_0x4651f0,_0x571f8e,_0x6fff3e){const _0x2ac89c=_0x12824f;var _0x288927=arguments[_0x2ac89c(0x169)],_0x57c82a=_0x288927<0x3?_0x4651f0:_0x6fff3e===null?_0x6fff3e=Object[_0x2ac89c(0x14d)](_0x4651f0,_0x571f8e):_0x6fff3e,_0x2a9872;if(typeof Reflect==_0x2ac89c(0x14f)&&typeof Reflect[_0x2ac89c(0x166)]==_0x2ac89c(0x139))_0x57c82a=Reflect['decorate'](_0x5c2ec3,_0x4651f0,_0x571f8e,_0x6fff3e);else{for(var _0x251240=_0x5c2ec3[_0x2ac89c(0x169)]-0x1;_0x251240>=0x0;_0x251240--)(_0x2a9872=_0x5c2ec3[_0x251240])&&(_0x57c82a=(_0x288927<0x3?_0x2a9872(_0x57c82a):_0x288927>0x3?_0x2a9872(_0x4651f0,_0x571f8e,_0x57c82a):_0x2a9872(_0x4651f0,_0x571f8e))||_0x57c82a);}return _0x288927>0x3&&_0x57c82a&&Object[_0x2ac89c(0x167)](_0x4651f0,_0x571f8e,_0x57c82a),_0x57c82a;}let $=class extends _0x19d734{constructor(_0x17ef9d=Z,_0x578ca8,_0x41f82a,_0x120c86){const _0x410b2f=_0x12824f;super(),this[_0x410b2f(0x124)]=_0x17ef9d,this[_0x410b2f(0x136)]=_0x578ca8,this[_0x410b2f(0x120)]=_0x41f82a,this[_0x410b2f(0x170)]=_0x120c86;let {..._0x3b78f9}=_0x110d4d({},Z,this['_config']);this['_configService']['setConfig'](_0x410b2f(0x149),_0x3b78f9);}[_0x12824f(0x16f)](){const _0x4d0b88=_0x12824f;[[X,{'useClass':Te}]][_0x4d0b88(0x12b)](_0x3b9556=>this[_0x4d0b88(0x136)]['add'](_0x3b9556)),this[_0x4d0b88(0x131)](this[_0x4d0b88(0x120)][_0x4d0b88(0x13d)](Ee));}};Y($,'pluginName',_0x12824f(0x150)),Y($,_0x12824f(0x179),Se),Y($,_0x12824f(0x142),Ce),Y($,'type',_0x212eed['UNIVER_UNKNOWN']),$=De([_0x17b879(_0x5a8579),Q(0x1,_0x19a3e6(_0x24e31f)),Q(0x2,_0x46d0bf),Q(0x3,_0x5cf97d)],$);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 _0x541943=_0xfebb;(function(_0x190d8a,_0x2f1818){const _0x412edd=_0xfebb,_0x310bd6=_0x190d8a();while(!![]){try{const _0x5835f7=parseInt(_0x412edd(0xfb))/0x1+parseInt(_0x412edd(0xdb))/0x2+parseInt(_0x412edd(0x129))/0x3+parseInt(_0x412edd(0x134))/0x4+-parseInt(_0x412edd(0x11e))/0x5*(parseInt(_0x412edd(0xfd))/0x6)+parseInt(_0x412edd(0x117))/0x7*(parseInt(_0x412edd(0xec))/0x8)+-parseInt(_0x412edd(0x118))/0x9*(parseInt(_0x412edd(0xf3))/0xa);if(_0x5835f7===_0x2f1818)break;else _0x310bd6['push'](_0x310bd6['shift']());}catch(_0x3be03c){_0x310bd6['push'](_0x310bd6['shift']());}}}(_0x1a4f,0x59ef4));import{ShapeFillEnum as _0x5f1db0,ShapeLineCapEnum as _0x3e9103,ShapeLineJoinEnum as _0x458499,ShapeLineTypeEnum as _0x48c70e,ShapeTypeEnum as _0x315fc1}from'@univerjs-pro/engine-shape';function _0x1a4f(){const _0x1b4b07=['registerAdapter','tool','hypot','ink.config','distance','kind','3408461HRLsEs','18MSDToc','@univerjs-pro/ink','OPERATION','slice','createId','symmetric','5cyEWZY','defineProperty','function','_config','symbol','UNIVER_UNKNOWN','decorate','anchors','Rect','round','abs','1440738JHzmDR','opacity','join','ink.host-adapter.service','ink.operation.start','point','sqrt','disposeWithMe','SolidFill','left','getOwnPropertyDescriptor','1178076yUIIis','length','UNIVER_INK_PLUGIN','packageName','right','_adapters','findIndex','height','find','startIndex','1227910poMZWt','top','iterator','default','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','ratio','start','segmentIndex','map','pluginName','object','get','type','pen','closed','points','forEach','8jidMLI','width','string','onStarting','Round','ink-centerline-','indexOf','6352130zYatzQ','push','add','free','anchor','max','filter','toPrimitive','270504yVkBQy','splice','3044094PwWJhA','createCustomShape','norm','out','prototype','_injector','endIndex','call','smooth','constructor','end','pointType','version','corner','min','none','beginInkMode','color','_configService','SolidLine'];_0x1a4f=function(){return _0x1b4b07;};return _0x1a4f();}import{UniverLicensePlugin as _0xe56a7d}from'@univerjs-pro/license';import{CommandType as _0x21764a,DependentOn as _0x713a96,ICommandService as _0x48cf14,IConfigService as _0x2def3f,Inject as _0x287f3,Injector as _0x34eeca,Plugin as _0x1d99fd,UniverInstanceType as _0x56c145,createIdentifier as _0x1d86a6,merge as _0x4d7b1c,toDisposable as _0x52778c}from'@univerjs/core';const g=0.0001;function _(_0x198b4a){return{'x':_0x198b4a['x'],'y':_0x198b4a['y']};}function v(_0x23f1ca){const _0x422bbf=_0xfebb;return{..._0x23f1ca,'in':_0x23f1ca['in']?_(_0x23f1ca['in']):void 0x0,'out':_0x23f1ca[_0x422bbf(0x100)]?_(_0x23f1ca['out']):void 0x0};}function y(_0x25803e){const _0x994856=_0xfebb;return{'kind':_0x994856(0xe8),'closed':_0x25803e[_0x994856(0xe9)],'anchors':_0x25803e[_0x994856(0x125)][_0x994856(0xe3)](v)};}function b(_0x3243fa,_0x352e61,_0x479f37){return{'x':_0x3243fa['x']+(_0x352e61['x']-_0x3243fa['x'])*_0x479f37,'y':_0x3243fa['y']+(_0x352e61['y']-_0x3243fa['y'])*_0x479f37};}function x(_0x2b0d67,_0x3a01b4){return Math['hypot'](_0x2b0d67['x']-_0x3a01b4['x'],_0x2b0d67['y']-_0x3a01b4['y']);}function S(_0x1e3f73){const _0x5f365f=_0xfebb;let _0x421c23=Math[_0x5f365f(0x113)](_0x1e3f73['x'],_0x1e3f73['y']);return _0x421c23<g?{'x':0x1,'y':0x0}:{'x':_0x1e3f73['x']/_0x421c23,'y':_0x1e3f73['y']/_0x421c23};}function C(_0x132861,_0x1c89a2,_0x3e812c=x(_0x132861,_0x1c89a2)){let _0x1c3c6a=S({'x':_0x132861['x']-_0x1c89a2['x'],'y':_0x132861['y']-_0x1c89a2['y']});return{'x':_0x132861['x']+_0x1c3c6a['x']*_0x3e812c,'y':_0x132861['y']+_0x1c3c6a['y']*_0x3e812c};}function w(_0x74f04b,_0x53dc79){const _0x3f00d0=_0xfebb;let {anchors:_0x33799b}=_0x74f04b;return _0x33799b[_0x3f00d0(0x135)]<0x2||_0x53dc79<0x0?null:_0x53dc79<_0x33799b[_0x3f00d0(0x135)]-0x1?{'startIndex':_0x53dc79,'endIndex':_0x53dc79+0x1,'start':_0x33799b[_0x53dc79],'end':_0x33799b[_0x53dc79+0x1]}:_0x74f04b[_0x3f00d0(0xe9)]&&_0x53dc79===_0x33799b[_0x3f00d0(0x135)]-0x1?{'startIndex':_0x33799b[_0x3f00d0(0x135)]-0x1,'endIndex':0x0,'start':_0x33799b[_0x33799b[_0x3f00d0(0x135)]-0x1],'end':_0x33799b[0x0]}:null;}function T(_0x5e1ae4,_0x58aa40){const _0x100c6d=_0xfebb;let _0x3a914c=w(_0x5e1ae4,_0x58aa40);return _0x3a914c?[_0x3a914c['start'],_0x3a914c[_0x100c6d(0xe1)][_0x100c6d(0x100)]??_0x3a914c['start'],_0x3a914c[_0x100c6d(0x107)]['in']??_0x3a914c[_0x100c6d(0x107)],_0x3a914c[_0x100c6d(0x107)]]:null;}function te(_0x3867de,_0x157fe6){return _0x157fe6==='anchor'?_0x3867de:_0x3867de[_0x157fe6]??null;}function E(_0x35e146,_0x3cdf10,_0x5514b2){const _0x154f1c=_0xfebb;return _0x5514b2===_0x154f1c(0xf7)||_0x35e146[_0x154f1c(0xe9)]?!0x0:_0x5514b2==='in'?_0x3cdf10>0x0:_0x3cdf10<_0x35e146[_0x154f1c(0x125)][_0x154f1c(0x135)]-0x1;}function D(_0x5d2dd0,_0x17154a){let [_0x5f3626,_0xd9a37f,_0x7c5e38,_0x4fc8da]=_0x5d2dd0,_0x535ef1=b(_0x5f3626,_0xd9a37f,_0x17154a),_0x578485=b(_0xd9a37f,_0x7c5e38,_0x17154a),_0x19381d=b(_0x7c5e38,_0x4fc8da,_0x17154a);return b(b(_0x535ef1,_0x578485,_0x17154a),b(_0x578485,_0x19381d,_0x17154a),_0x17154a);}function ne(_0x16b53a,_0x5e0413){let [_0x503b1d,_0x4ae57e,_0x22d5ce,_0x48e244]=_0x16b53a,_0x331acf=b(_0x503b1d,_0x4ae57e,_0x5e0413),_0x3bd54d=b(_0x4ae57e,_0x22d5ce,_0x5e0413),_0x4a1043=b(_0x22d5ce,_0x48e244,_0x5e0413),_0x24b501=b(_0x331acf,_0x3bd54d,_0x5e0413),_0x3c0d6c=b(_0x3bd54d,_0x4a1043,_0x5e0413),_0x33a78f=b(_0x24b501,_0x3c0d6c,_0x5e0413);return{'left':[_0x503b1d,_0x331acf,_0x24b501,_0x33a78f],'right':[_0x33a78f,_0x3c0d6c,_0x4a1043,_0x48e244]};}function O(_0x237b31,_0x53cb70,_0x5e025b){const _0x364403=_0xfebb;let _0x51514a=_0x5e025b['x']-_0x53cb70['x'],_0x1c3ad4=_0x5e025b['y']-_0x53cb70['y'],_0x4cf6c5=_0x51514a*_0x51514a+_0x1c3ad4*_0x1c3ad4,_0x345ed3=_0x4cf6c5<=g?0x0:Math[_0x364403(0xf8)](0x0,Math[_0x364403(0x10b)](0x1,((_0x237b31['x']-_0x53cb70['x'])*_0x51514a+(_0x237b31['y']-_0x53cb70['y'])*_0x1c3ad4)/_0x4cf6c5)),_0x50de30={'x':_0x53cb70['x']+_0x51514a*_0x345ed3,'y':_0x53cb70['y']+_0x1c3ad4*_0x345ed3};return{'point':_0x50de30,'ratio':_0x345ed3,'distance':x(_0x237b31,_0x50de30)};}function re(_0x80858d,_0x51b74c,_0x5d52fd){const _0x28fad6=_0xfebb;return O(_0x80858d,_0x51b74c,_0x5d52fd)[_0x28fad6(0x115)]**0x2;}function k(_0x37ade4,_0x403cc8){const _0x1a2841=_0xfebb;if(_0x37ade4[_0x1a2841(0x135)]<=0x2)return _0x37ade4[_0x1a2841(0xe3)](_);let _0x3591f7=0x0,_0x1c9d96=0x0,_0x341c40=_0x37ade4[0x0],_0x4b46af=_0x37ade4[_0x37ade4[_0x1a2841(0x135)]-0x1],_0xf1745d=_0x403cc8*_0x403cc8;for(let _0x227df9=0x1;_0x227df9<_0x37ade4[_0x1a2841(0x135)]-0x1;_0x227df9++){let _0x58c8fb=re(_0x37ade4[_0x227df9],_0x341c40,_0x4b46af);_0x58c8fb>_0x3591f7&&(_0x3591f7=_0x58c8fb,_0x1c9d96=_0x227df9);}if(_0x3591f7<=_0xf1745d)return[_(_0x341c40),_(_0x4b46af)];let _0x1354f2=k(_0x37ade4['slice'](0x0,_0x1c9d96+0x1),_0x403cc8),_0x31e535=k(_0x37ade4[_0x1a2841(0x11b)](_0x1c9d96),_0x403cc8);return[..._0x1354f2[_0x1a2841(0x11b)](0x0,-0x1),..._0x31e535];}function ie(_0x8eded5,_0x1e7d7c){let _0xa5fc74=_0x8eded5[_0x1e7d7c],_0x241788=_0x8eded5[_0x1e7d7c+0x1],_0x5028fb=_0x8eded5[_0x1e7d7c-0x1]??_0xa5fc74;return{'x':_0xa5fc74['x']+(_0x241788['x']-_0x5028fb['x'])/0x6,'y':_0xa5fc74['y']+(_0x241788['y']-_0x5028fb['y'])/0x6};}function A(_0x503f71,_0x16191f){let _0x4f0951=_0x503f71[_0x16191f],_0x2ffc03=_0x503f71[_0x16191f-0x1],_0x21b2d0=_0x503f71[_0x16191f+0x1]??_0x4f0951;return{'x':_0x4f0951['x']-(_0x21b2d0['x']-_0x2ffc03['x'])/0x6,'y':_0x4f0951['y']-(_0x21b2d0['y']-_0x2ffc03['y'])/0x6};}function j(_0x1a4589,_0x2f4b05){const _0x5b8958=_0xfebb;let _0x481c73=_0x1a4589[_0x5b8958(0x125)][_0x2f4b05],_0xe3b37a=_0x1a4589[_0x5b8958(0x125)][_0x2f4b05-0x1]??(_0x1a4589['closed']?_0x1a4589[_0x5b8958(0x125)][_0x1a4589['anchors'][_0x5b8958(0x135)]-0x1]:null),_0x6f7a64=_0x1a4589[_0x5b8958(0x125)][_0x2f4b05+0x1]??(_0x1a4589[_0x5b8958(0xe9)]?_0x1a4589['anchors'][0x0]:null),_0x521de1=_0xe3b37a&&_0x6f7a64?S({'x':_0x6f7a64['x']-_0xe3b37a['x'],'y':_0x6f7a64['y']-_0xe3b37a['y']}):_0x6f7a64?S({'x':_0x6f7a64['x']-_0x481c73['x'],'y':_0x6f7a64['y']-_0x481c73['y']}):_0xe3b37a?S({'x':_0x481c73['x']-_0xe3b37a['x'],'y':_0x481c73['y']-_0xe3b37a['y']}):{'x':0x1,'y':0x0},_0x573981=_0xe3b37a&&_0x6f7a64?Math[_0x5b8958(0xf8)](0x32,x(_0xe3b37a,_0x6f7a64)/0x4):0x32;return{'in':{'x':_0x481c73['x']-_0x521de1['x']*_0x573981,'y':_0x481c73['y']-_0x521de1['y']*_0x573981},'out':{'x':_0x481c73['x']+_0x521de1['x']*_0x573981,'y':_0x481c73['y']+_0x521de1['y']*_0x573981}};}function M(_0x1a6a3d,_0x41bb37){const _0x5653a0=_0xfebb;let _0x69fb7b=_0x1a6a3d[_0x41bb37],_0x4a3d7c=_0x41bb37==='in'?_0x5653a0(0x100):'in',_0x4b1e1a=_0x1a6a3d[_0x4a3d7c];if(_0x69fb7b){if(_0x1a6a3d[_0x5653a0(0x108)]===_0x5653a0(0x11d)){_0x1a6a3d[_0x4a3d7c]=C(_0x1a6a3d,_0x69fb7b);return;}_0x1a6a3d[_0x5653a0(0x108)]===_0x5653a0(0x105)&&(_0x1a6a3d[_0x4a3d7c]=C(_0x1a6a3d,_0x69fb7b,_0x4b1e1a?x(_0x1a6a3d,_0x4b1e1a):x(_0x1a6a3d,_0x69fb7b)));}}function ae(_0x33eb5f,_0x49f8ec){const _0xcd9393=_0xfebb;let _0x3f224b=y(_0x33eb5f);return!_0x49f8ec||_0x3f224b[_0xcd9393(0xe9)]||_0x3f224b[_0xcd9393(0x125)][_0xcd9393(0x135)]===0x0||_0x3f224b[_0xcd9393(0x125)][_0xcd9393(0xf4)]({'id':'__ink-preview-anchor__','x':_0x49f8ec['x'],'y':_0x49f8ec['y'],'pointType':_0xcd9393(0x10a)}),_0x3f224b;}function oe(_0x2d5b81,_0x1c79d1={}){const _0xcf99ff=_0xfebb;let _0x2dd2a0=Math['max'](0x0,_0x1c79d1['tolerance']??Math[_0xcf99ff(0xf8)](0x4,_0x2d5b81[_0xcf99ff(0xed)]*0.35)),_0x16c4f6=_0x1c79d1[_0xcf99ff(0x11c)]??(_0x2c8173=>_0xcf99ff(0xf1)+_0x2c8173),_0x3d831a=k(_0x2d5b81['points'],_0x2dd2a0),_0x482f86=_0x3d831a[_0xcf99ff(0xe3)]((_0x5eef20,_0x26eee7)=>({'id':_0x16c4f6(_0x26eee7),'x':_0x5eef20['x'],'y':_0x5eef20['y'],'pointType':_0xcf99ff(0xf6)}));for(let _0x1f6e24=0x0;_0x1f6e24<_0x482f86['length']-0x1;_0x1f6e24++)_0x482f86[_0x1f6e24]['out']=ie(_0x3d831a,_0x1f6e24),_0x482f86[_0x1f6e24+0x1]['in']=A(_0x3d831a,_0x1f6e24+0x1);return{'kind':_0xcf99ff(0xe8),'closed':!0x1,'anchors':_0x482f86};}function se(_0xc48b3b,_0x2b1c99,_0x19ed6c){const _0x4f2c26=_0xfebb;let _0x23173c=null,_0x3d1dcc=[_0x4f2c26(0xf7),'in',_0x4f2c26(0x100)];return _0xc48b3b[_0x4f2c26(0x125)][_0x4f2c26(0xeb)]((_0x2e93aa,_0x43b464)=>{const _0x4631bf=_0x4f2c26;_0x3d1dcc[_0x4631bf(0xeb)](_0x357e9c=>{const _0x1e723f=_0x4631bf;if(!E(_0xc48b3b,_0x43b464,_0x357e9c))return;let _0x4ada3a=te(_0x2e93aa,_0x357e9c);if(!_0x4ada3a)return;let _0x4fa4a8=x(_0x2b1c99,_0x4ada3a);_0x4fa4a8>_0x19ed6c||_0x23173c&&_0x4fa4a8>=_0x23173c[_0x1e723f(0x115)]||(_0x23173c={'handle':{'kind':_0x357e9c,'anchorId':_0x2e93aa['id']},'point':_(_0x4ada3a),'distance':_0x4fa4a8});});}),_0x23173c;}function ce(_0x8b4d10,_0x28aa0c,_0x1b6820){const _0xfe5751=_0xfebb;let _0x34e722=null,_0x17df90=_0x8b4d10[_0xfe5751(0xe9)]?_0x8b4d10[_0xfe5751(0x125)][_0xfe5751(0x135)]:Math['max'](0x0,_0x8b4d10[_0xfe5751(0x125)][_0xfe5751(0x135)]-0x1);for(let _0xd9c528=0x0;_0xd9c528<_0x17df90;_0xd9c528++){let _0x300444=T(_0x8b4d10,_0xd9c528);if(!_0x300444)continue;let _0x4881f6=D(_0x300444,0x0);for(let _0x5bb11e=0x1;_0x5bb11e<=0x20;_0x5bb11e++){let _0x1ea193=D(_0x300444,_0x5bb11e/0x20),_0x12082f=O(_0x28aa0c,_0x4881f6,_0x1ea193),_0x4bd7ea=(_0x5bb11e-0x1+_0x12082f[_0xfe5751(0xe0)])/0x20;(!_0x34e722||_0x12082f['distance']<_0x34e722[_0xfe5751(0x115)])&&(_0x34e722={'segmentIndex':_0xd9c528,'t':_0x4bd7ea,'point':_0x12082f[_0xfe5751(0x12e)],'distance':_0x12082f[_0xfe5751(0x115)]}),_0x4881f6=_0x1ea193;}}return _0x34e722&&_0x34e722[_0xfe5751(0x115)]<=_0x1b6820?_0x34e722:null;}function le(_0x30f11f,_0x4eef99,_0x1706e9){const _0x583252=_0xfebb;let _0x1b9810=y(_0x30f11f),_0x3585ab=w(_0x1b9810,_0x4eef99[_0x583252(0xe2)]),_0x4bba4f=T(_0x1b9810,_0x4eef99[_0x583252(0xe2)]);if(!_0x3585ab||!_0x4bba4f)return _0x1b9810;let _0x226e35=ne(_0x4bba4f,Math['max'](0x0,Math[_0x583252(0x10b)](0x1,_0x4eef99['t']))),_0x39352e={'id':_0x1706e9(),'x':_0x226e35['left'][0x3]['x'],'y':_0x226e35[_0x583252(0x132)][0x3]['y'],'in':_(_0x226e35['left'][0x2]),'out':_(_0x226e35[_0x583252(0x138)][0x1]),'pointType':_0x583252(0xf6)};return _0x1b9810[_0x583252(0x125)][_0x3585ab['startIndex']][_0x583252(0x100)]=_(_0x226e35[_0x583252(0x132)][0x1]),_0x1b9810['anchors'][_0x3585ab[_0x583252(0x103)]]['in']=_(_0x226e35['right'][0x2]),_0x1b9810[_0x583252(0x125)][_0x583252(0xfc)](_0x3585ab[_0x583252(0xda)]+0x1,0x0,_0x39352e),_0x1b9810;}function ue(_0x26dd94,_0x35ad02){const _0xdd7d8b=_0xfebb;let _0x4ca9fc=y(_0x26dd94);return _0x4ca9fc[_0xdd7d8b(0x125)]=_0x4ca9fc['anchors'][_0xdd7d8b(0xf9)](_0x88af88=>_0x88af88['id']!==_0x35ad02),_0x4ca9fc[_0xdd7d8b(0xe9)]&&_0x4ca9fc['anchors'][_0xdd7d8b(0x135)]<0x3&&(_0x4ca9fc[_0xdd7d8b(0xe9)]=!0x1),_0x4ca9fc;}function N(_0x220369,_0x53016e,_0x38f1af){const _0x11f0a6=_0xfebb;let _0x23fb82=y(_0x220369),_0x133794=_0x23fb82[_0x11f0a6(0x125)][_0x11f0a6(0x13a)](_0x240e33=>_0x240e33['id']===_0x53016e),_0x32bacb=_0x23fb82[_0x11f0a6(0x125)][_0x133794];if(!_0x32bacb)return _0x23fb82;if(_0x32bacb[_0x11f0a6(0x108)]=_0x38f1af,_0x38f1af==='corner')return delete _0x32bacb['in'],delete _0x32bacb[_0x11f0a6(0x100)],_0x23fb82;let _0x5a449c=j(_0x23fb82,_0x133794);if(_0x32bacb['in']=_0x32bacb['in']?_(_0x32bacb['in']):_0x5a449c['in'],_0x32bacb[_0x11f0a6(0x100)]=_0x32bacb[_0x11f0a6(0x100)]?_(_0x32bacb[_0x11f0a6(0x100)]):_0x5a449c['out'],_0x38f1af===_0x11f0a6(0x11d)){let _0x47d179=Math['max'](x(_0x32bacb,_0x32bacb['in']),x(_0x32bacb,_0x32bacb[_0x11f0a6(0x100)]),0x32),_0x3f192d=S({'x':_0x32bacb[_0x11f0a6(0x100)]['x']-_0x32bacb['x'],'y':_0x32bacb[_0x11f0a6(0x100)]['y']-_0x32bacb['y']});_0x32bacb[_0x11f0a6(0x100)]={'x':_0x32bacb['x']+_0x3f192d['x']*_0x47d179,'y':_0x32bacb['y']+_0x3f192d['y']*_0x47d179},_0x32bacb['in']={'x':_0x32bacb['x']-_0x3f192d['x']*_0x47d179,'y':_0x32bacb['y']-_0x3f192d['y']*_0x47d179};}else _0x38f1af===_0x11f0a6(0x105)&&M(_0x32bacb,_0x11f0a6(0x100));return _0x23fb82;}function P(_0xd65c73,_0x42f2ce){const _0x1e87ad=_0xfebb;let _0x51e6a5=_0xd65c73[_0x1e87ad(0x125)][_0x1e87ad(0x13c)](_0x218c84=>_0x218c84['id']===_0x42f2ce),_0x29ebfe=(_0x51e6a5==null?void 0x0:_0x51e6a5['pointType'])??_0x1e87ad(0x10a);return N(_0xd65c73,_0x42f2ce,_0x29ebfe===_0x1e87ad(0x10a)?_0x1e87ad(0x105):_0x29ebfe===_0x1e87ad(0x105)?_0x1e87ad(0x11d):_0x29ebfe===_0x1e87ad(0x11d)?_0x1e87ad(0xf6):_0x1e87ad(0x10a));}function F(_0x25c44f,_0x51357f,_0x3df8d7){const _0x2d9f68=_0xfebb;let _0x462a97=y(_0x25c44f),_0x588f4a=_0x462a97['anchors']['find'](_0xa149a9=>_0xa149a9['id']===_0x51357f['anchorId']);if(!_0x588f4a)return _0x462a97;if(_0x51357f[_0x2d9f68(0x116)]===_0x2d9f68(0xf7)){let _0x4a0331={'x':_0x3df8d7['x']-_0x588f4a['x'],'y':_0x3df8d7['y']-_0x588f4a['y']};return _0x588f4a['x']=_0x3df8d7['x'],_0x588f4a['y']=_0x3df8d7['y'],_0x588f4a['in']&&={'x':_0x588f4a['in']['x']+_0x4a0331['x'],'y':_0x588f4a['in']['y']+_0x4a0331['y']},_0x588f4a['out']&&={'x':_0x588f4a[_0x2d9f68(0x100)]['x']+_0x4a0331['x'],'y':_0x588f4a[_0x2d9f68(0x100)]['y']+_0x4a0331['y']},_0x462a97;}return _0x588f4a[_0x51357f[_0x2d9f68(0x116)]]=_(_0x3df8d7),_0x588f4a[_0x2d9f68(0x108)]===_0x2d9f68(0x10a)&&(_0x588f4a[_0x2d9f68(0x108)]='free'),M(_0x588f4a,_0x51357f[_0x2d9f68(0x116)]),_0x462a97;}const I=1e-9;function L(_0x593572){const _0x291320=_0xfebb;let _0x17657e=Math[_0x291320(0x127)](_0x593572*0x2710)/0x2710;return Object['is'](_0x17657e,-0x0)?'0':String(_0x17657e);}function R(_0x1b6894){return L(_0x1b6894['x'])+'\x20'+L(_0x1b6894['y']);}function z(_0x18045e,_0x2ab946){return{'x':_0x18045e['x']-_0x2ab946['x'],'y':_0x18045e['y']-_0x2ab946['y']};}function B(_0x4c3aea,_0x246d35,_0x145b77,_0x118bb5,_0x50c7ff){let _0x429fc9=0x1-_0x50c7ff;return{'x':_0x429fc9*_0x429fc9*_0x429fc9*_0x4c3aea['x']+0x3*_0x429fc9*_0x429fc9*_0x50c7ff*_0x246d35['x']+0x3*_0x429fc9*_0x50c7ff*_0x50c7ff*_0x145b77['x']+_0x50c7ff*_0x50c7ff*_0x50c7ff*_0x118bb5['x'],'y':_0x429fc9*_0x429fc9*_0x429fc9*_0x4c3aea['y']+0x3*_0x429fc9*_0x429fc9*_0x50c7ff*_0x246d35['y']+0x3*_0x429fc9*_0x50c7ff*_0x50c7ff*_0x145b77['y']+_0x50c7ff*_0x50c7ff*_0x50c7ff*_0x118bb5['y']};}function _0xfebb(_0xeba011,_0x571bbc){_0xeba011=_0xeba011-0xda;const _0x1a4f31=_0x1a4f();let _0xfebb14=_0x1a4f31[_0xeba011];return _0xfebb14;}function V(_0x127481,_0x5c3b04,_0x47f50d,_0x24eb8e){const _0x3c4af9=_0xfebb;let _0x47ff24=-_0x127481+0x3*_0x5c3b04-0x3*_0x47f50d+_0x24eb8e,_0x588e73=0x3*_0x127481-0x6*_0x5c3b04+0x3*_0x47f50d,_0x5c06b6=-0x3*_0x127481+0x3*_0x5c3b04,_0x719c41=[];if(Math[_0x3c4af9(0x128)](_0x47ff24)<I){if(Math[_0x3c4af9(0x128)](_0x588e73)<I)return _0x719c41;let _0x5bd3e9=-_0x5c06b6/(0x2*_0x588e73);return _0x5bd3e9>0x0&&_0x5bd3e9<0x1&&_0x719c41[_0x3c4af9(0xf4)](_0x5bd3e9),_0x719c41;}let _0xbe655e=_0x588e73*_0x588e73-0x3*_0x47ff24*_0x5c06b6;if(_0xbe655e<0x0)return _0x719c41;let _0x350fd2=Math[_0x3c4af9(0x12f)](Math['max'](0x0,_0xbe655e)),_0x9ba0=(-_0x588e73+_0x350fd2)/(0x3*_0x47ff24),_0x4c23cc=(-_0x588e73-_0x350fd2)/(0x3*_0x47ff24);return _0x9ba0>0x0&&_0x9ba0<0x1&&_0x719c41['push'](_0x9ba0),_0x4c23cc>0x0&&_0x4c23cc<0x1&&Math[_0x3c4af9(0x128)](_0x4c23cc-_0x9ba0)>I&&_0x719c41[_0x3c4af9(0xf4)](_0x4c23cc),_0x719c41;}function H(_0x1cfbd3,_0x271142,_0x524d8a,_0x3a611a,_0x301abb){const _0x468d6b=_0xfebb;_0x1cfbd3[_0x468d6b(0xf4)](_0x271142,_0x301abb),new Set([...V(_0x271142['x'],_0x524d8a['x'],_0x3a611a['x'],_0x301abb['x']),...V(_0x271142['y'],_0x524d8a['y'],_0x3a611a['y'],_0x301abb['y'])])[_0x468d6b(0xeb)](_0x5b5381=>{const _0x29a7d8=_0x468d6b;_0x1cfbd3[_0x29a7d8(0xf4)](B(_0x271142,_0x524d8a,_0x3a611a,_0x301abb,_0x5b5381));});}function U(_0x2afcbf){const _0x47e1d1=_0xfebb;let _0x35d1da=_0x2afcbf[_0x47e1d1(0x125)];if(_0x35d1da[_0x47e1d1(0x135)]<=0x1)return _0x35d1da;let _0x51aa0c=[];for(let _0x1a7723=0x1;_0x1a7723<_0x35d1da[_0x47e1d1(0x135)];_0x1a7723++){let _0x4cab5a=_0x35d1da[_0x1a7723-0x1],_0x30504b=_0x35d1da[_0x1a7723];H(_0x51aa0c,_0x4cab5a,_0x4cab5a[_0x47e1d1(0x100)]??_0x4cab5a,_0x30504b['in']??_0x30504b,_0x30504b);}if(_0x2afcbf['closed']&&_0x35d1da[_0x47e1d1(0x135)]>0x1){let _0x5b65a4=_0x35d1da[_0x35d1da[_0x47e1d1(0x135)]-0x1],_0x444b97=_0x35d1da[0x0];H(_0x51aa0c,_0x5b65a4,_0x5b65a4['out']??_0x5b65a4,_0x444b97['in']??_0x444b97,_0x444b97);}return _0x51aa0c;}function de(_0x4a72d3){const _0x454d12=_0xfebb;let _0x4c0a85=_0x4a72d3[_0x454d12(0xea)];if(_0x4c0a85['length']<=0x1)return _0x4c0a85;let _0x3bcd11=[];for(let _0x41641a=0x0;_0x41641a<_0x4c0a85[_0x454d12(0x135)]-0x1;_0x41641a++){let _0x3f41d9=_0x4c0a85[_0x41641a],_0x4d416d=_0x4c0a85[_0x41641a+0x1],_0xd61714=_0x4c0a85[_0x41641a-0x1]??_0x3f41d9,_0x10f4f1=_0x4c0a85[_0x41641a+0x2]??_0x4d416d;H(_0x3bcd11,_0x3f41d9,{'x':_0x3f41d9['x']+(_0x4d416d['x']-_0xd61714['x'])/0x6,'y':_0x3f41d9['y']+(_0x4d416d['y']-_0xd61714['y'])/0x6},{'x':_0x4d416d['x']-(_0x10f4f1['x']-_0x3f41d9['x'])/0x6,'y':_0x4d416d['y']-(_0x10f4f1['y']-_0x3f41d9['y'])/0x6},_0x4d416d);}return _0x3bcd11;}function fe(_0x3ebeb2){return _0x3ebeb2['kind']==='pen'?U(_0x3ebeb2):de(_0x3ebeb2);}function W(_0x1aae52){const _0x38693c=_0xfebb;let _0x16c790=Math[_0x38693c(0x127)](_0x1aae52*0x2710)/0x2710;return Object['is'](_0x16c790,-0x0)?0x0:_0x16c790;}function G(_0x3fd00f){const _0x14cf8b=_0xfebb;let _0x1474b0=fe(_0x3fd00f);if(_0x1474b0['length']===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x15d435=Math[_0x14cf8b(0x10b)](..._0x1474b0['map'](_0x5ce795=>_0x5ce795['x'])),_0x23645a=Math[_0x14cf8b(0x10b)](..._0x1474b0['map'](_0x589f32=>_0x589f32['y'])),_0x5b0976=Math[_0x14cf8b(0xf8)](..._0x1474b0['map'](_0x50a303=>_0x50a303['x'])),_0xe37291=Math[_0x14cf8b(0xf8)](..._0x1474b0[_0x14cf8b(0xe3)](_0x489af3=>_0x489af3['y']));return{'left':W(_0x15d435),'top':W(_0x23645a),'width':W(Math[_0x14cf8b(0xf8)](0x1,_0x5b0976-_0x15d435)),'height':W(Math[_0x14cf8b(0xf8)](0x1,_0xe37291-_0x23645a))};}function pe(_0x2863b9,_0x3b7fe8){const _0x1ba2ea=_0xfebb;let _0xf861b5=_0x2863b9[_0x1ba2ea(0x125)];if(_0xf861b5[_0x1ba2ea(0x135)]===0x0)return'';let _0x5d44d6=['M\x20'+R(z(_0xf861b5[0x0],_0x3b7fe8))];for(let _0x4234d3=0x1;_0x4234d3<_0xf861b5[_0x1ba2ea(0x135)];_0x4234d3++){let _0x22bf8a=_0xf861b5[_0x4234d3-0x1],_0x51bf6f=_0xf861b5[_0x4234d3],_0x27a9db=_0x22bf8a[_0x1ba2ea(0x100)]??_0x22bf8a,_0x52df78=_0x51bf6f['in']??_0x51bf6f;_0x5d44d6[_0x1ba2ea(0xf4)]('C\x20'+R(z(_0x27a9db,_0x3b7fe8))+'\x20'+R(z(_0x52df78,_0x3b7fe8))+'\x20'+R(z(_0x51bf6f,_0x3b7fe8)));}if(_0x2863b9['closed']&&_0xf861b5[_0x1ba2ea(0x135)]>0x1){let _0x506796=_0xf861b5[_0xf861b5[_0x1ba2ea(0x135)]-0x1],_0x35f5cd=_0xf861b5[0x0],_0x2a3847=_0x506796[_0x1ba2ea(0x100)]??_0x506796,_0x1d501c=_0x35f5cd['in']??_0x35f5cd;_0x5d44d6[_0x1ba2ea(0xf4)]('C\x20'+R(z(_0x2a3847,_0x3b7fe8))+'\x20'+R(z(_0x1d501c,_0x3b7fe8))+'\x20'+R(z(_0x35f5cd,_0x3b7fe8))),_0x5d44d6[_0x1ba2ea(0xf4)]('Z');}return _0x5d44d6[_0x1ba2ea(0x12b)]('\x20');}function me(_0x4f1262,_0x1495b5){const _0x199846=_0xfebb;let _0x5e70dc=_0x4f1262[_0x199846(0xea)][_0x199846(0xe3)](_0x57c2a0=>z(_0x57c2a0,_0x1495b5));if(_0x5e70dc[_0x199846(0x135)]===0x0)return'';if(_0x5e70dc[_0x199846(0x135)]===0x1)return'M\x20'+R(_0x5e70dc[0x0]);let _0x53c3e8=['M\x20'+R(_0x5e70dc[0x0])];for(let _0x2de8de=0x0;_0x2de8de<_0x5e70dc[_0x199846(0x135)]-0x1;_0x2de8de++){let _0x254862=_0x5e70dc[_0x2de8de],_0x5b3bcd=_0x5e70dc[_0x2de8de+0x1],_0x3bdac3=_0x5e70dc[_0x2de8de-0x1]??_0x254862,_0x8ae16e=_0x5e70dc[_0x2de8de+0x2]??_0x5b3bcd,_0x12065e={'x':_0x254862['x']+(_0x5b3bcd['x']-_0x3bdac3['x'])/0x6,'y':_0x254862['y']+(_0x5b3bcd['y']-_0x3bdac3['y'])/0x6},_0x1c566f={'x':_0x5b3bcd['x']-(_0x8ae16e['x']-_0x254862['x'])/0x6,'y':_0x5b3bcd['y']-(_0x8ae16e['y']-_0x254862['y'])/0x6};_0x53c3e8[_0x199846(0xf4)]('C\x20'+R(_0x12065e)+'\x20'+R(_0x1c566f)+'\x20'+R(_0x5b3bcd));}return _0x53c3e8['join']('\x20');}function he(_0x31a96f,_0xfa2b6f){const _0x3d1493=_0xfebb;return _0x31a96f[_0x3d1493(0x116)]===_0x3d1493(0xe8)?pe(_0x31a96f,_0xfa2b6f):me(_0x31a96f,_0xfa2b6f);}function ge(_0x13141f,_0x50cdad){const _0x4bf3f2=_0xfebb;return _0x50cdad!=null&&_0x50cdad['color']?_0x50cdad[_0x4bf3f2(0x10e)]:_0x13141f['kind']===_0x4bf3f2(0xe8)?'#f54a45':_0x13141f[_0x4bf3f2(0x10e)];}function _e(_0x344258,_0x155397){const _0x5c3420=_0xfebb;return(_0x155397==null?void 0x0:_0x155397[_0x5c3420(0xed)])===void 0x0?_0x344258[_0x5c3420(0x116)]===_0x5c3420(0xe8)?0x2:_0x344258[_0x5c3420(0xed)]:_0x155397[_0x5c3420(0xed)];}function ve(_0x4383f8,_0x47879d){const _0x23bef6=_0xfebb;return(_0x47879d==null?void 0x0:_0x47879d[_0x23bef6(0x12a)])===void 0x0?_0x4383f8[_0x23bef6(0x116)]==='pen'?void 0x0:_0x4383f8[_0x23bef6(0x12a)]:_0x47879d['opacity'];}function ye(_0x450dc3,_0x112a89){const _0x43342f=_0xfebb;let _0x4e2546=G(_0x450dc3),_0x53ca51=he(_0x450dc3,{'x':_0x4e2546[_0x43342f(0x132)],'y':_0x4e2546[_0x43342f(0xdc)]}),_0x23e68b=_0x450dc3[_0x43342f(0x116)]==='pen'&&_0x450dc3[_0x43342f(0xe9)],_0x10e2b5=_0x112a89==null?void 0x0:_0x112a89['fillColor'];return{'shapeType':_0x315fc1[_0x43342f(0x126)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x4e2546[_0x43342f(0xed)],'h':_0x4e2546[_0x43342f(0x13b)],'fill':_0x23e68b?_0x43342f(0xff):_0x43342f(0x10c),'stroke':!0x0,'data':_0x53ca51,'dataArray':be(_0x450dc3,{'x':_0x4e2546['left'],'y':_0x4e2546[_0x43342f(0xdc)]})}]},'fill':_0x23e68b&&_0x10e2b5?{'color':_0x10e2b5,'fillType':_0x5f1db0[_0x43342f(0x131)]}:{'fillType':_0x5f1db0['NoFill']},'stroke':{'color':ge(_0x450dc3,_0x112a89),'width':_e(_0x450dc3,_0x112a89),'opacity':ve(_0x450dc3,_0x112a89),'lineStrokeType':_0x48c70e[_0x43342f(0x110)],'capType':_0x3e9103['Round'],'lineJoinType':_0x458499[_0x43342f(0xf0)]}};}function K(_0x4691a8,_0x43cafa){return{'x':_0x4691a8['x']-_0x43cafa['x'],'y':_0x4691a8['y']-_0x43cafa['y']};}function be(_0x11733b,_0x49c28e){const _0x1858b1=_0xfebb;if(_0x11733b['kind']===_0x1858b1(0xe8)){let _0x2e106e=_0x11733b[_0x1858b1(0x125)];if(_0x2e106e[_0x1858b1(0x135)]===0x0)return[];let _0x2c7048=K(_0x2e106e[0x0],_0x49c28e),_0x162dae=[{'command':'M','points':[_0x2c7048['x'],_0x2c7048['y']]}];for(let _0x543791=0x1;_0x543791<_0x2e106e['length'];_0x543791++){let _0x345f0=_0x2e106e[_0x543791-0x1],_0xb039dd=_0x2e106e[_0x543791],_0xf77ce6=K(_0x345f0[_0x1858b1(0x100)]??_0x345f0,_0x49c28e),_0x50f8d6=K(_0xb039dd['in']??_0xb039dd,_0x49c28e),_0x316869=K(_0xb039dd,_0x49c28e);_0x162dae[_0x1858b1(0xf4)]({'command':'C','points':[_0xf77ce6['x'],_0xf77ce6['y'],_0x50f8d6['x'],_0x50f8d6['y'],_0x316869['x'],_0x316869['y']]});}if(_0x11733b[_0x1858b1(0xe9)]&&_0x2e106e[_0x1858b1(0x135)]>0x1){let _0x5c6174=_0x2e106e[_0x2e106e[_0x1858b1(0x135)]-0x1],_0x12a386=_0x2e106e[0x0],_0x15648e=K(_0x5c6174[_0x1858b1(0x100)]??_0x5c6174,_0x49c28e),_0x4fe3f3=K(_0x12a386['in']??_0x12a386,_0x49c28e),_0x372421=K(_0x12a386,_0x49c28e);_0x162dae[_0x1858b1(0xf4)]({'command':'C','points':[_0x15648e['x'],_0x15648e['y'],_0x4fe3f3['x'],_0x4fe3f3['y'],_0x372421['x'],_0x372421['y']]}),_0x162dae[_0x1858b1(0xf4)]({'command':'z','points':[]});}return _0x162dae;}let _0x50cadd=_0x11733b['points']['map'](_0x5d9c59=>K(_0x5d9c59,_0x49c28e));if(_0x50cadd[_0x1858b1(0x135)]===0x0)return[];let _0x16c39a=[{'command':'M','points':[_0x50cadd[0x0]['x'],_0x50cadd[0x0]['y']]}];for(let _0x45f65b=0x0;_0x45f65b<_0x50cadd['length']-0x1;_0x45f65b++){let _0x1daddb=_0x50cadd[_0x45f65b],_0x233092=_0x50cadd[_0x45f65b+0x1],_0x203ea6=_0x50cadd[_0x45f65b-0x1]??_0x1daddb,_0x268742=_0x50cadd[_0x45f65b+0x2]??_0x233092,_0x3a3e32={'x':_0x1daddb['x']+(_0x233092['x']-_0x203ea6['x'])/0x6,'y':_0x1daddb['y']+(_0x233092['y']-_0x203ea6['y'])/0x6},_0x400bc0={'x':_0x233092['x']-(_0x268742['x']-_0x1daddb['x'])/0x6,'y':_0x233092['y']-(_0x268742['y']-_0x1daddb['y'])/0x6};_0x16c39a[_0x1858b1(0xf4)]({'command':'C','points':[_0x3a3e32['x'],_0x3a3e32['y'],_0x400bc0['x'],_0x400bc0['y'],_0x233092['x'],_0x233092['y']]});}return _0x16c39a;}function xe(_0x1eb89a){const _0x4fd641=_0xfebb;let {model:_0x3ccc68,sourceModel:_0x3e8869=_0x3ccc68,style:_0xc73b8f}=_0x1eb89a,_0xc09bcb=_0x1eb89a[_0x4fd641(0x112)]??_0x3ccc68['kind'],_0x1d765b=G(_0x3ccc68),_0x1c7376=_0x3ccc68['kind']===_0x4fd641(0xe8)&&_0xc09bcb!==_0x4fd641(0xe8)?_0x3ccc68:void 0x0;return{'transform':{..._0x1d765b,'rotation':0x0},'shapeData':ye(_0x3ccc68,_0xc73b8f),'ink':{'version':0x1,'tool':_0xc09bcb,'sourceModel':_0x3e8869,..._0x1c7376?{'editModel':_0x1c7376}:{},'normalizedBounds':_0x1d765b}};}var Se=_0x541943(0x119),Ce='1.0.1';function q(_0x434d21){'@babel/helpers - typeof';const _0x5504a7=_0x541943;return q=typeof Symbol==_0x5504a7(0x120)&&typeof Symbol[_0x5504a7(0xdd)]==_0x5504a7(0x122)?function(_0xc1bdda){return typeof _0xc1bdda;}:function(_0x495677){const _0x1db776=_0x5504a7;return _0x495677&&typeof Symbol==_0x1db776(0x120)&&_0x495677[_0x1db776(0x106)]===Symbol&&_0x495677!==Symbol[_0x1db776(0x101)]?_0x1db776(0x122):typeof _0x495677;},q(_0x434d21);}function we(_0x16ccfe,_0x18045c){const _0x2499f7=_0x541943;if(q(_0x16ccfe)!=_0x2499f7(0xe5)||!_0x16ccfe)return _0x16ccfe;var _0x89e36e=_0x16ccfe[Symbol[_0x2499f7(0xfa)]];if(_0x89e36e!==void 0x0){var _0x176439=_0x89e36e[_0x2499f7(0x104)](_0x16ccfe,_0x18045c||_0x2499f7(0xde));if(q(_0x176439)!='object')return _0x176439;throw TypeError(_0x2499f7(0xdf));}return(_0x18045c===_0x2499f7(0xee)?String:Number)(_0x16ccfe);}function J(_0x953f41){const _0x255198=_0x541943;var _0x3d355e=we(_0x953f41,_0x255198(0xee));return q(_0x3d355e)==_0x255198(0x122)?_0x3d355e:_0x3d355e+'';}function Y(_0x146a48,_0x421e7b,_0x166abe){const _0x3bf6b9=_0x541943;return(_0x421e7b=J(_0x421e7b))in _0x146a48?Object[_0x3bf6b9(0x11f)](_0x146a48,_0x421e7b,{'value':_0x166abe,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x146a48[_0x421e7b]=_0x166abe,_0x146a48;}const X=_0x1d86a6(_0x541943(0x12c));var Te=class{constructor(){Y(this,'_adapters',[]);}[_0x541943(0x111)](_0x17e405){const _0xfd1271=_0x541943;return this[_0xfd1271(0x139)]['push'](_0x17e405),_0x52778c(()=>{const _0x3e95e8=_0xfd1271;let _0x170a40=this[_0x3e95e8(0x139)][_0x3e95e8(0xf2)](_0x17e405);_0x170a40>=0x0&&this[_0x3e95e8(0x139)]['splice'](_0x170a40,0x1);});}['beginInkMode'](_0x379662){const _0x1b5689=_0x541943;for(let _0x5d2a8e of this[_0x1b5689(0x139)])if(_0x5d2a8e[_0x1b5689(0x10d)](_0x379662))return!0x0;return!0x1;}async[_0x541943(0xfe)](_0x3f2771){const _0x50ae80=_0x541943;for(let _0x1490fe of this[_0x50ae80(0x139)])if(_0x1490fe['createCustomShape']&&await _0x1490fe[_0x50ae80(0xfe)](_0x3f2771))return!0x0;return!0x1;}};const Ee={'id':_0x541943(0x12d),'type':_0x21764a[_0x541943(0x11a)],'handler':(_0xaebb67,_0x5ac3fd)=>_0x5ac3fd?_0xaebb67[_0x541943(0xe6)](X)['beginInkMode'](_0x5ac3fd):!0x1},Z={};function Q(_0x551ced,_0x4f880d){return function(_0x30c499,_0xa5a674){_0x4f880d(_0x30c499,_0xa5a674,_0x551ced);};}function De(_0x3e9bf9,_0x59a3f6,_0x1a67cc,_0x226f33){const _0x1e6899=_0x541943;var _0x5defde=arguments['length'],_0x2c4ccd=_0x5defde<0x3?_0x59a3f6:_0x226f33===null?_0x226f33=Object[_0x1e6899(0x133)](_0x59a3f6,_0x1a67cc):_0x226f33,_0x1b2a58;if(typeof Reflect=='object'&&typeof Reflect[_0x1e6899(0x124)]==_0x1e6899(0x120))_0x2c4ccd=Reflect[_0x1e6899(0x124)](_0x3e9bf9,_0x59a3f6,_0x1a67cc,_0x226f33);else{for(var _0x25eee8=_0x3e9bf9['length']-0x1;_0x25eee8>=0x0;_0x25eee8--)(_0x1b2a58=_0x3e9bf9[_0x25eee8])&&(_0x2c4ccd=(_0x5defde<0x3?_0x1b2a58(_0x2c4ccd):_0x5defde>0x3?_0x1b2a58(_0x59a3f6,_0x1a67cc,_0x2c4ccd):_0x1b2a58(_0x59a3f6,_0x1a67cc))||_0x2c4ccd);}return _0x5defde>0x3&&_0x2c4ccd&&Object[_0x1e6899(0x11f)](_0x59a3f6,_0x1a67cc,_0x2c4ccd),_0x2c4ccd;}let $=class extends _0x1d99fd{constructor(_0x4042c8=Z,_0x1d52c3,_0x5b6556,_0x402687){const _0x136866=_0x541943;super(),this[_0x136866(0x121)]=_0x4042c8,this[_0x136866(0x102)]=_0x1d52c3,this['_commandService']=_0x5b6556,this[_0x136866(0x10f)]=_0x402687;let {..._0x10d98e}=_0x4d7b1c({},Z,this[_0x136866(0x121)]);this[_0x136866(0x10f)]['setConfig'](_0x136866(0x114),_0x10d98e);}[_0x541943(0xef)](){const _0x2a8180=_0x541943;[[X,{'useClass':Te}]][_0x2a8180(0xeb)](_0x571485=>this[_0x2a8180(0x102)][_0x2a8180(0xf5)](_0x571485)),this[_0x2a8180(0x130)](this['_commandService']['registerCommand'](Ee));}};Y($,_0x541943(0xe4),_0x541943(0x136)),Y($,_0x541943(0x137),Se),Y($,_0x541943(0x109),Ce),Y($,_0x541943(0xe7),_0x56c145[_0x541943(0x123)]),$=De([_0x713a96(_0xe56a7d),Q(0x1,_0x287f3(_0x34eeca)),Q(0x2,_0x48cf14),Q(0x3,_0x2def3f)],$);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 _0x232d(_0x244f28,_0x19a5a9){_0x244f28=_0x244f28-0xd5;const _0x112e69=_0x112e();let _0x232d8d=_0x112e69[_0x244f28];return _0x232d8d;}function _0x112e(){const _0x444acf=['shapeData','extend','highlighter','Shape','points','exports','toStringTag','3409508FWIYcU','opacity','FEnum','@univerjs-pro/boards','tool','transform','pen','2220035KMwFmz','width','isFinite','laneId','@univerjs/core/facade','closed','4936cZYAkO','parentId','insertIndex','FBoard','ink','generateRandomId','kind','BoardInkHandleKind','out','every','UniverCore','10229472dTvAUN','trim','Tools','6grKNnv','brush','type','UniverProBoardsFacade','BoardInkPointType','sourceModel','amd','anchors','UniverProInk','240060vvErJm','@univerjs/core','has','filter','symmetric','UniverCoreFacade','smooth','UniverProInkFacade','defineProperty','BoardElementType','free','pressure','2380698XsXsrJ','UniverProBoards','buildInkCustomShapePayload','3qiyROq','_addElement','BoardInkTool','@univerjs-pro/boards/facade','object','add','58082cjVDka','custom','version','style','findElements','1813romLab','model','length','414NuFOMU'];_0x112e=function(){return _0x444acf;};return _0x112e();}(function(_0x552d47,_0x2ca2f9){const _0x86605e=_0x232d,_0x23d78a=_0x552d47();while(!![]){try{const _0x3dcdbc=parseInt(_0x86605e(0x105))/0x1+parseInt(_0x86605e(0xfc))/0x2*(-parseInt(_0x86605e(0xff))/0x3)+-parseInt(_0x86605e(0x115))/0x4+parseInt(_0x86605e(0x11c))/0x5*(parseInt(_0x86605e(0xe7))/0x6)+-parseInt(_0x86605e(0x10a))/0x7*(-parseInt(_0x86605e(0xd9))/0x8)+parseInt(_0x86605e(0x10d))/0x9*(parseInt(_0x86605e(0xf0))/0xa)+parseInt(_0x86605e(0xe4))/0xb;if(_0x3dcdbc===_0x2ca2f9)break;else _0x23d78a['push'](_0x23d78a['shift']());}catch(_0x2619a6){_0x23d78a['push'](_0x23d78a['shift']());}}}(_0x112e,0x9f852),function(_0x4b7b63,_0xa267e7){const _0x2b0d6c=_0x232d;typeof exports=='object'&&typeof module<'u'?_0xa267e7(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[_0x2b0d6c(0xed)]?define([_0x2b0d6c(0x113),_0x2b0d6c(0x118),_0x2b0d6c(0x102),'@univerjs-pro/ink',_0x2b0d6c(0xf1),_0x2b0d6c(0xd7)],_0xa267e7):(_0x4b7b63=typeof globalThis<'u'?globalThis:_0x4b7b63||self,_0xa267e7(_0x4b7b63[_0x2b0d6c(0xf7)]={},_0x4b7b63[_0x2b0d6c(0xfd)],_0x4b7b63[_0x2b0d6c(0xea)],_0x4b7b63[_0x2b0d6c(0xef)],_0x4b7b63[_0x2b0d6c(0xe3)],_0x4b7b63[_0x2b0d6c(0xf5)]));}(this,function(_0x396216,_0xc6841c,_0x2b127a,_0x16dd6e,_0x35b846,_0x25a9a2){const _0x17837e=_0x232d;Object[_0x17837e(0xf8)](_0x396216,Symbol[_0x17837e(0x114)],{'value':'Module'});var _0x21c29f=class extends _0x2b127a[_0x17837e(0xdc)]{['insertInk'](_0x13b25e){const _0x1c78fb=_0x17837e;let _0x469768=_0x3545cf(_0x13b25e);return _0x469768&&this[_0x1c78fb(0x100)](_0x469768,{'insertIndex':_0x13b25e[_0x1c78fb(0xdb)]})?_0x469768:null;}['getInks'](){const _0x37f80c=_0x17837e;return this[_0x37f80c(0x109)]({'elementType':_0xc6841c[_0x37f80c(0xf9)][_0x37f80c(0x111)],'includeHidden':!0x0,'includeLocked':!0x0})[_0x37f80c(0xf3)](_0x58d6c6);}};function _0x3545cf(_0x22f4fa,_0x10f3bc){const _0x36540c=_0x17837e;if(!_0x5ea3be(_0x22f4fa[_0x36540c(0x10b)])||_0x22f4fa[_0x36540c(0xec)]!==void 0x0&&!_0x5ea3be(_0x22f4fa['sourceModel'])||!_0x70e349(_0x22f4fa[_0x36540c(0x108)]))return null;let _0x5a9859=_0x22f4fa[_0x36540c(0xda)]??(_0x10f3bc==null?void 0x0:_0x10f3bc[_0x36540c(0xda)]),_0xce2b76=_0x35b846[_0x36540c(0xe6)]['deepClone'](_0x22f4fa[_0x36540c(0x10b)]),_0x39626b=(0x0,_0x16dd6e[_0x36540c(0xfe)])({'model':_0xce2b76,'style':_0x22f4fa[_0x36540c(0x108)],'tool':_0x22f4fa[_0x36540c(0x119)],'sourceModel':_0x22f4fa[_0x36540c(0xec)]?_0x35b846['Tools']['deepClone'](_0x22f4fa[_0x36540c(0xec)]):_0xce2b76}),_0x288b7f=_0x55f49(_0x10f3bc==null?void 0x0:_0x10f3bc[_0x36540c(0x106)]);return{'id':(_0x10f3bc==null?void 0x0:_0x10f3bc['id'])??_0x22f4fa['id']??(0x0,_0x35b846[_0x36540c(0xde)])(0x6),'type':_0xc6841c[_0x36540c(0xf9)][_0x36540c(0x111)],'transform':_0x39626b[_0x36540c(0x11a)],'shapeData':_0x39626b[_0x36540c(0x10e)],'parentId':_0x5a9859??void 0x0,'laneId':_0x22f4fa[_0x36540c(0xd6)]===void 0x0?_0x10f3bc==null?void 0x0:_0x10f3bc['laneId']:_0x22f4fa[_0x36540c(0xd6)],'custom':{..._0x288b7f,'ink':_0x39626b['ink']}};}function _0x13c738(_0x48b435){const _0x2b74d7=_0x17837e;return Number['isFinite'](_0x48b435['x'])&&Number[_0x2b74d7(0xd5)](_0x48b435['y']);}function _0x5ea3be(_0x46cc02){const _0xaa88c3=_0x17837e;if(_0x46cc02[_0xaa88c3(0xdf)]===_0xaa88c3(0x11b)){let _0x5a117b=new Set();return _0x46cc02[_0xaa88c3(0xee)][_0xaa88c3(0x10c)]>=(_0x46cc02[_0xaa88c3(0xd8)]?0x3:0x2)&&_0x46cc02[_0xaa88c3(0xee)]['every'](_0xea8a7b=>{const _0x2a7a6b=_0xaa88c3;let _0x104ff4=_0xea8a7b['id'][_0x2a7a6b(0xe5)]()[_0x2a7a6b(0x10c)]>0x0&&!_0x5a117b[_0x2a7a6b(0xf2)](_0xea8a7b['id'])&&_0x13c738(_0xea8a7b)&&(!_0xea8a7b['in']||_0x13c738(_0xea8a7b['in']))&&(!_0xea8a7b[_0x2a7a6b(0xe1)]||_0x13c738(_0xea8a7b[_0x2a7a6b(0xe1)]));return _0x5a117b[_0x2a7a6b(0x104)](_0xea8a7b['id']),_0x104ff4;});}return _0x46cc02[_0xaa88c3(0x112)][_0xaa88c3(0x10c)]>=0x2&&_0x46cc02[_0xaa88c3(0x112)][_0xaa88c3(0xe2)](_0x19bb92=>_0x13c738(_0x19bb92)&&Number[_0xaa88c3(0xd5)](_0x19bb92['t'])&&(_0x19bb92[_0xaa88c3(0xfb)]===void 0x0||Number[_0xaa88c3(0xd5)](_0x19bb92[_0xaa88c3(0xfb)])))&&Number[_0xaa88c3(0xd5)](_0x46cc02[_0xaa88c3(0x11d)])&&_0x46cc02[_0xaa88c3(0x11d)]>0x0&&Number['isFinite'](_0x46cc02[_0xaa88c3(0x116)])&&_0x46cc02[_0xaa88c3(0x116)]>=0x0&&_0x46cc02[_0xaa88c3(0x116)]<=0x1;}function _0x70e349(_0x315da9){const _0x57fe79=_0x17837e;return _0x315da9===void 0x0||(_0x315da9[_0x57fe79(0x11d)]===void 0x0||Number[_0x57fe79(0xd5)](_0x315da9[_0x57fe79(0x11d)])&&_0x315da9[_0x57fe79(0x11d)]>0x0)&&(_0x315da9[_0x57fe79(0x116)]===void 0x0||Number[_0x57fe79(0xd5)](_0x315da9[_0x57fe79(0x116)])&&_0x315da9[_0x57fe79(0x116)]>=0x0&&_0x315da9[_0x57fe79(0x116)]<=0x1);}function _0x55f49(_0xbf9b62){const _0x17428a=_0x17837e;return _0xbf9b62&&typeof _0xbf9b62==_0x17428a(0x103)&&!Array['isArray'](_0xbf9b62)?_0xbf9b62:{};}function _0x3e3351(_0x2e544d){const _0x19f598=_0x17837e;let _0x439a36=_0x55f49(_0x2e544d[_0x19f598(0x106)])[_0x19f598(0xdd)];if(!_0x439a36||typeof _0x439a36!=_0x19f598(0x103)||Array['isArray'](_0x439a36))return null;let _0x13a37d=_0x439a36;return _0x13a37d[_0x19f598(0x107)]===0x1&&_0x13a37d[_0x19f598(0xec)]&&typeof _0x13a37d[_0x19f598(0xec)]=='object'?_0x13a37d:null;}function _0x58d6c6(_0x31678c){const _0x22c54f=_0x17837e;return _0x31678c[_0x22c54f(0xe9)]===_0xc6841c[_0x22c54f(0xf9)][_0x22c54f(0x111)]&&!!_0x3e3351(_0x31678c);}_0x2b127a[_0x17837e(0xdc)][_0x17837e(0x10f)](_0x21c29f);let _0xeb69ee={'Pen':_0x17837e(0x11b),'Brush':_0x17837e(0xe8),'Highlighter':_0x17837e(0x110)},_0x2446c2={'Corner':'corner','Smooth':_0x17837e(0xf6),'Symmetric':_0x17837e(0xf4),'Free':_0x17837e(0xfa)},_0x14f73c={'Anchor':'anchor','In':'in','Out':_0x17837e(0xe1)};var _0x57e58=class extends _0x25a9a2['FEnum']{get[_0x17837e(0x101)](){return _0xeb69ee;}get[_0x17837e(0xeb)](){return _0x2446c2;}get['BoardInkHandleKind'](){return _0x14f73c;}};_0x25a9a2[_0x17837e(0x117)][_0x17837e(0x10f)](_0x57e58),_0x396216[_0x17837e(0xe0)]=_0x14f73c,_0x396216['BoardInkPointType']=_0x2446c2,_0x396216[_0x17837e(0x101)]=_0xeb69ee;}));
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x25ea(){const _0x5b27ee=['function','697815hSGEAE','anchors','248hmujvX','onStarting','merge','@univerjs-pro/ink','pointType','UniverLicensePlugin','Round','corner','setInkPenAnchorPointType','version','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','tolerance','left','packageName','anchor','forEach','free','@univerjs-pro/engine-shape','iterator','find','none','moveInkPenAnchorPoint','Module','2519582CrFgMz','SolidFill','createCustomShape','4683VBVOIw','color','findClosestInkPenHandle','min','out','max','ink.host-adapter.service','1151094OKpALf','UniverProLicense','distance','endIndex','symbol','findIndex','ShapeLineJoinEnum','_injector','1.0.0-rc.0','Injector','createIdentifier','UniverInkPlugin','2708VfOFUe','norm','amd','pen','691470ZVURNB','defineProperty','cycleInkPenAnchorPointType','registerCommand','ShapeLineCapEnum','registerAdapter','indexOf','Rect','Plugin','slice','map','103439hfBMHL','call','Inject','ink-centerline-','start','kind','points','convertBrushModelToPenModel','pluginName','push','symmetric','disposeWithMe','getOwnPropertyDescriptor','#f54a45','_commandService','UniverProInk','abs','constructor','right','getInkPenPreviewModel','object','IConfigService','decorate','add','createId','join','point','splice','height','closed','type','sqrt','width','_config','ShapeLineTypeEnum','toStringTag','buildInkCustomShapePayload','length','OPERATION','startIndex','findClosestInkPenSegment','getInkModelBounds','get','ICommandService','_adapters','ink.config','ShapeFillEnum','setConfig','DependentOn','default','top','end','ratio','opacity','smooth','segmentIndex','14094747brjWAX','IInkHostAdapterService','beginInkMode','hypot','string','anchorId','ink.operation.start'];_0x25ea=function(){return _0x5b27ee;};return _0x25ea();}function _0x3ef5(_0x2d0fef,_0x2c4234){_0x2d0fef=_0x2d0fef-0xb1;const _0x25eac8=_0x25ea();let _0x3ef5dc=_0x25eac8[_0x2d0fef];return _0x3ef5dc;}(function(_0xa8173a,_0x1c2f4d){const _0x3fe469=_0x3ef5,_0x4e9840=_0xa8173a();while(!![]){try{const _0x34f915=-parseInt(_0x3fe469(0x115))/0x1+parseInt(_0x3fe469(0x12e))/0x2+-parseInt(_0x3fe469(0xb3))/0x3*(parseInt(_0x3fe469(0xc6))/0x4)+parseInt(_0x3fe469(0xca))/0x5+parseInt(_0x3fe469(0xba))/0x6+parseInt(_0x3fe469(0xd5))/0x7*(-parseInt(_0x3fe469(0x117))/0x8)+parseInt(_0x3fe469(0x10d))/0x9;if(_0x34f915===_0x1c2f4d)break;else _0x4e9840['push'](_0x4e9840['shift']());}catch(_0x5a7f58){_0x4e9840['push'](_0x4e9840['shift']());}}}(_0x25ea,0xe64d6),function(_0x4c31f2,_0x5bf5e9){const _0x314bbd=_0x3ef5;typeof exports==_0x314bbd(0xe9)&&typeof module<'u'?_0x5bf5e9(exports,require('@univerjs-pro/engine-shape'),require('@univerjs-pro/license'),require('@univerjs/core')):typeof define==_0x314bbd(0x114)&&define[_0x314bbd(0xc8)]?define(['exports',_0x314bbd(0x128),'@univerjs-pro/license','@univerjs/core'],_0x5bf5e9):(_0x4c31f2=typeof globalThis<'u'?globalThis:_0x4c31f2||self,_0x5bf5e9(_0x4c31f2[_0x314bbd(0xe4)]={},_0x4c31f2['UniverProEngineShape'],_0x4c31f2[_0x314bbd(0xbb)],_0x4c31f2['UniverCore']));}(this,function(_0x22a964,_0x1c7ef5,_0x24b977,_0x3fd204){const _0x4914aa=_0x3ef5;Object['defineProperty'](_0x22a964,Symbol[_0x4914aa(0xf8)],{'value':_0x4914aa(0x12d)});let _0x1378f5=0.0001;function _0x1a6b37(_0x111484){return{'x':_0x111484['x'],'y':_0x111484['y']};}function _0x5108c2(_0x3a7949){const _0x26e443=_0x4914aa;return{..._0x3a7949,'in':_0x3a7949['in']?_0x1a6b37(_0x3a7949['in']):void 0x0,'out':_0x3a7949[_0x26e443(0xb7)]?_0x1a6b37(_0x3a7949['out']):void 0x0};}function _0x20d180(_0x334932){const _0x1b05f1=_0x4914aa;return{'kind':'pen','closed':_0x334932[_0x1b05f1(0xf2)],'anchors':_0x334932[_0x1b05f1(0x116)][_0x1b05f1(0xd4)](_0x5108c2)};}function _0x3306e7(_0x407e7d,_0x38ecec,_0x55d80c){return{'x':_0x407e7d['x']+(_0x38ecec['x']-_0x407e7d['x'])*_0x55d80c,'y':_0x407e7d['y']+(_0x38ecec['y']-_0x407e7d['y'])*_0x55d80c};}function _0x2e8bc9(_0x555819,_0x32dda8){const _0x5bd4b1=_0x4914aa;return Math[_0x5bd4b1(0x110)](_0x555819['x']-_0x32dda8['x'],_0x555819['y']-_0x32dda8['y']);}function _0x448b51(_0x10fe0f){const _0x26393b=_0x4914aa;let _0x5122a0=Math[_0x26393b(0x110)](_0x10fe0f['x'],_0x10fe0f['y']);return _0x5122a0<_0x1378f5?{'x':0x1,'y':0x0}:{'x':_0x10fe0f['x']/_0x5122a0,'y':_0x10fe0f['y']/_0x5122a0};}function _0x3f56c3(_0x50ba13,_0x4fb38a,_0x12685f=_0x2e8bc9(_0x50ba13,_0x4fb38a)){let _0x25fa85=_0x448b51({'x':_0x50ba13['x']-_0x4fb38a['x'],'y':_0x50ba13['y']-_0x4fb38a['y']});return{'x':_0x50ba13['x']+_0x25fa85['x']*_0x12685f,'y':_0x50ba13['y']+_0x25fa85['y']*_0x12685f};}function _0x3b8076(_0x44a4df,_0x4804cf){const _0xa3a6d6=_0x4914aa;let {anchors:_0xa97a85}=_0x44a4df;return _0xa97a85['length']<0x2||_0x4804cf<0x0?null:_0x4804cf<_0xa97a85[_0xa3a6d6(0xfa)]-0x1?{'startIndex':_0x4804cf,'endIndex':_0x4804cf+0x1,'start':_0xa97a85[_0x4804cf],'end':_0xa97a85[_0x4804cf+0x1]}:_0x44a4df[_0xa3a6d6(0xf2)]&&_0x4804cf===_0xa97a85[_0xa3a6d6(0xfa)]-0x1?{'startIndex':_0xa97a85['length']-0x1,'endIndex':0x0,'start':_0xa97a85[_0xa97a85[_0xa3a6d6(0xfa)]-0x1],'end':_0xa97a85[0x0]}:null;}function _0x34b386(_0x2f8be6,_0x46395a){const _0x5bc609=_0x4914aa;let _0x445da8=_0x3b8076(_0x2f8be6,_0x46395a);return _0x445da8?[_0x445da8['start'],_0x445da8[_0x5bc609(0xd9)][_0x5bc609(0xb7)]??_0x445da8[_0x5bc609(0xd9)],_0x445da8['end']['in']??_0x445da8[_0x5bc609(0x108)],_0x445da8[_0x5bc609(0x108)]]:null;}function _0x31a171(_0x1ad97a,_0x4fbc7b){const _0x1ea1e8=_0x4914aa;return _0x4fbc7b===_0x1ea1e8(0x125)?_0x1ad97a:_0x1ad97a[_0x4fbc7b]??null;}function _0x106664(_0x103387,_0x265e95,_0xa269fa){const _0x1223ac=_0x4914aa;return _0xa269fa===_0x1223ac(0x125)||_0x103387[_0x1223ac(0xf2)]?!0x0:_0xa269fa==='in'?_0x265e95>0x0:_0x265e95<_0x103387[_0x1223ac(0x116)][_0x1223ac(0xfa)]-0x1;}function _0x34c9d9(_0x3b31ca,_0x24ad5e){let [_0x5acbfc,_0x24fe36,_0x22a239,_0x2d5440]=_0x3b31ca,_0x2adb11=_0x3306e7(_0x5acbfc,_0x24fe36,_0x24ad5e),_0x4aa6c8=_0x3306e7(_0x24fe36,_0x22a239,_0x24ad5e),_0x4bdf72=_0x3306e7(_0x22a239,_0x2d5440,_0x24ad5e);return _0x3306e7(_0x3306e7(_0x2adb11,_0x4aa6c8,_0x24ad5e),_0x3306e7(_0x4aa6c8,_0x4bdf72,_0x24ad5e),_0x24ad5e);}function _0x4bd012(_0x3fce35,_0x25c2f8){let [_0x36ff29,_0x1e78b2,_0x5d7899,_0x4fecd9]=_0x3fce35,_0x4bd2ee=_0x3306e7(_0x36ff29,_0x1e78b2,_0x25c2f8),_0x4dfd43=_0x3306e7(_0x1e78b2,_0x5d7899,_0x25c2f8),_0x27f36c=_0x3306e7(_0x5d7899,_0x4fecd9,_0x25c2f8),_0x4810a3=_0x3306e7(_0x4bd2ee,_0x4dfd43,_0x25c2f8),_0x445a4b=_0x3306e7(_0x4dfd43,_0x27f36c,_0x25c2f8),_0x23ce11=_0x3306e7(_0x4810a3,_0x445a4b,_0x25c2f8);return{'left':[_0x36ff29,_0x4bd2ee,_0x4810a3,_0x23ce11],'right':[_0x23ce11,_0x445a4b,_0x27f36c,_0x4fecd9]};}function _0x23a4d1(_0x1f77b0,_0x2a1e8d,_0x1b7bc9){const _0x3e74fc=_0x4914aa;let _0x2884ab=_0x1b7bc9['x']-_0x2a1e8d['x'],_0x1d0b90=_0x1b7bc9['y']-_0x2a1e8d['y'],_0x4737d5=_0x2884ab*_0x2884ab+_0x1d0b90*_0x1d0b90,_0x241ffa=_0x4737d5<=_0x1378f5?0x0:Math[_0x3e74fc(0xb8)](0x0,Math['min'](0x1,((_0x1f77b0['x']-_0x2a1e8d['x'])*_0x2884ab+(_0x1f77b0['y']-_0x2a1e8d['y'])*_0x1d0b90)/_0x4737d5)),_0x4608f5={'x':_0x2a1e8d['x']+_0x2884ab*_0x241ffa,'y':_0x2a1e8d['y']+_0x1d0b90*_0x241ffa};return{'point':_0x4608f5,'ratio':_0x241ffa,'distance':_0x2e8bc9(_0x1f77b0,_0x4608f5)};}function _0x3beea8(_0xe9d37c,_0x5c4b74,_0x80ee3c){const _0x1130de=_0x4914aa;return _0x23a4d1(_0xe9d37c,_0x5c4b74,_0x80ee3c)[_0x1130de(0xbc)]**0x2;}function _0x203482(_0x3058d2,_0x2def59){const _0x4ef50b=_0x4914aa;if(_0x3058d2[_0x4ef50b(0xfa)]<=0x2)return _0x3058d2[_0x4ef50b(0xd4)](_0x1a6b37);let _0x63691f=0x0,_0x2f9d14=0x0,_0x2cdd31=_0x3058d2[0x0],_0x2e3e27=_0x3058d2[_0x3058d2[_0x4ef50b(0xfa)]-0x1],_0xb54b11=_0x2def59*_0x2def59;for(let _0x45eaae=0x1;_0x45eaae<_0x3058d2['length']-0x1;_0x45eaae++){let _0xe165e0=_0x3beea8(_0x3058d2[_0x45eaae],_0x2cdd31,_0x2e3e27);_0xe165e0>_0x63691f&&(_0x63691f=_0xe165e0,_0x2f9d14=_0x45eaae);}if(_0x63691f<=_0xb54b11)return[_0x1a6b37(_0x2cdd31),_0x1a6b37(_0x2e3e27)];let _0x2ceacc=_0x203482(_0x3058d2['slice'](0x0,_0x2f9d14+0x1),_0x2def59),_0x4b1b51=_0x203482(_0x3058d2[_0x4ef50b(0xd3)](_0x2f9d14),_0x2def59);return[..._0x2ceacc['slice'](0x0,-0x1),..._0x4b1b51];}function _0x1bb992(_0x1e0e7a,_0x575a9d){let _0x290617=_0x1e0e7a[_0x575a9d],_0x37c8a1=_0x1e0e7a[_0x575a9d+0x1],_0x964dd4=_0x1e0e7a[_0x575a9d-0x1]??_0x290617;return{'x':_0x290617['x']+(_0x37c8a1['x']-_0x964dd4['x'])/0x6,'y':_0x290617['y']+(_0x37c8a1['y']-_0x964dd4['y'])/0x6};}function _0x40c926(_0x14cee0,_0x16205a){let _0x2a29b4=_0x14cee0[_0x16205a],_0x456cd9=_0x14cee0[_0x16205a-0x1],_0x281406=_0x14cee0[_0x16205a+0x1]??_0x2a29b4;return{'x':_0x2a29b4['x']-(_0x281406['x']-_0x456cd9['x'])/0x6,'y':_0x2a29b4['y']-(_0x281406['y']-_0x456cd9['y'])/0x6};}function _0x3a3a3e(_0x314d72,_0x1a212e){const _0x38d01f=_0x4914aa;let _0x20ddab=_0x314d72[_0x38d01f(0x116)][_0x1a212e],_0x42b1ab=_0x314d72[_0x38d01f(0x116)][_0x1a212e-0x1]??(_0x314d72[_0x38d01f(0xf2)]?_0x314d72[_0x38d01f(0x116)][_0x314d72[_0x38d01f(0x116)][_0x38d01f(0xfa)]-0x1]:null),_0x4ac64f=_0x314d72[_0x38d01f(0x116)][_0x1a212e+0x1]??(_0x314d72['closed']?_0x314d72['anchors'][0x0]:null),_0x50e071=_0x42b1ab&&_0x4ac64f?_0x448b51({'x':_0x4ac64f['x']-_0x42b1ab['x'],'y':_0x4ac64f['y']-_0x42b1ab['y']}):_0x4ac64f?_0x448b51({'x':_0x4ac64f['x']-_0x20ddab['x'],'y':_0x4ac64f['y']-_0x20ddab['y']}):_0x42b1ab?_0x448b51({'x':_0x20ddab['x']-_0x42b1ab['x'],'y':_0x20ddab['y']-_0x42b1ab['y']}):{'x':0x1,'y':0x0},_0xb867ee=_0x42b1ab&&_0x4ac64f?Math[_0x38d01f(0xb8)](0x32,_0x2e8bc9(_0x42b1ab,_0x4ac64f)/0x4):0x32;return{'in':{'x':_0x20ddab['x']-_0x50e071['x']*_0xb867ee,'y':_0x20ddab['y']-_0x50e071['y']*_0xb867ee},'out':{'x':_0x20ddab['x']+_0x50e071['x']*_0xb867ee,'y':_0x20ddab['y']+_0x50e071['y']*_0xb867ee}};}function _0x143883(_0x2b1aa2,_0xb24160){const _0x555ce4=_0x4914aa;let _0x498ef8=_0x2b1aa2[_0xb24160],_0x564787=_0xb24160==='in'?'out':'in',_0x378ba6=_0x2b1aa2[_0x564787];if(_0x498ef8){if(_0x2b1aa2[_0x555ce4(0x11b)]==='symmetric'){_0x2b1aa2[_0x564787]=_0x3f56c3(_0x2b1aa2,_0x498ef8);return;}_0x2b1aa2[_0x555ce4(0x11b)]===_0x555ce4(0x10b)&&(_0x2b1aa2[_0x564787]=_0x3f56c3(_0x2b1aa2,_0x498ef8,_0x378ba6?_0x2e8bc9(_0x2b1aa2,_0x378ba6):_0x2e8bc9(_0x2b1aa2,_0x498ef8)));}}function _0x5dbcf4(_0x4f52af,_0x2e5620){const _0x5eb71b=_0x4914aa;let _0x58d7a9=_0x20d180(_0x4f52af);return!_0x2e5620||_0x58d7a9['closed']||_0x58d7a9[_0x5eb71b(0x116)][_0x5eb71b(0xfa)]===0x0||_0x58d7a9[_0x5eb71b(0x116)][_0x5eb71b(0xde)]({'id':'__ink-preview-anchor__','x':_0x2e5620['x'],'y':_0x2e5620['y'],'pointType':_0x5eb71b(0x11e)}),_0x58d7a9;}function _0x271e2b(_0x2f5152,_0x17c68a={}){const _0x206ff6=_0x4914aa;let _0x42b9c8=Math['max'](0x0,_0x17c68a[_0x206ff6(0x122)]??Math[_0x206ff6(0xb8)](0x4,_0x2f5152[_0x206ff6(0xf5)]*0.35)),_0x1d9eda=_0x17c68a[_0x206ff6(0xed)]??(_0x2cefb2=>_0x206ff6(0xd8)+_0x2cefb2),_0x472d3c=_0x203482(_0x2f5152[_0x206ff6(0xdb)],_0x42b9c8),_0x4ae012=_0x472d3c[_0x206ff6(0xd4)]((_0x57c0f8,_0x548da0)=>({'id':_0x1d9eda(_0x548da0),'x':_0x57c0f8['x'],'y':_0x57c0f8['y'],'pointType':_0x206ff6(0x127)}));for(let _0x2b81f0=0x0;_0x2b81f0<_0x4ae012['length']-0x1;_0x2b81f0++)_0x4ae012[_0x2b81f0][_0x206ff6(0xb7)]=_0x1bb992(_0x472d3c,_0x2b81f0),_0x4ae012[_0x2b81f0+0x1]['in']=_0x40c926(_0x472d3c,_0x2b81f0+0x1);return{'kind':_0x206ff6(0xc9),'closed':!0x1,'anchors':_0x4ae012};}function _0x2b5870(_0x17b2a6,_0x299987,_0x570de4){const _0x130c84=_0x4914aa;let _0x182165=null,_0x32f429=[_0x130c84(0x125),'in','out'];return _0x17b2a6['anchors'][_0x130c84(0x126)]((_0x2a1b64,_0x227a98)=>{_0x32f429['forEach'](_0x3277e7=>{if(!_0x106664(_0x17b2a6,_0x227a98,_0x3277e7))return;let _0xc8e015=_0x31a171(_0x2a1b64,_0x3277e7);if(!_0xc8e015)return;let _0x4a200a=_0x2e8bc9(_0x299987,_0xc8e015);_0x4a200a>_0x570de4||_0x182165&&_0x4a200a>=_0x182165['distance']||(_0x182165={'handle':{'kind':_0x3277e7,'anchorId':_0x2a1b64['id']},'point':_0x1a6b37(_0xc8e015),'distance':_0x4a200a});});}),_0x182165;}function _0x587f4f(_0x208456,_0x4bbbc8,_0x5a1c2a){const _0x296c76=_0x4914aa;let _0x5d2b80=null,_0x1f1984=_0x208456['closed']?_0x208456[_0x296c76(0x116)][_0x296c76(0xfa)]:Math[_0x296c76(0xb8)](0x0,_0x208456[_0x296c76(0x116)][_0x296c76(0xfa)]-0x1);for(let _0x10fcb3=0x0;_0x10fcb3<_0x1f1984;_0x10fcb3++){let _0x599d26=_0x34b386(_0x208456,_0x10fcb3);if(!_0x599d26)continue;let _0x13cf05=_0x34c9d9(_0x599d26,0x0);for(let _0x117fb7=0x1;_0x117fb7<=0x20;_0x117fb7++){let _0xaa9b38=_0x34c9d9(_0x599d26,_0x117fb7/0x20),_0x3d5a36=_0x23a4d1(_0x4bbbc8,_0x13cf05,_0xaa9b38),_0x416a59=(_0x117fb7-0x1+_0x3d5a36[_0x296c76(0x109)])/0x20;(!_0x5d2b80||_0x3d5a36[_0x296c76(0xbc)]<_0x5d2b80[_0x296c76(0xbc)])&&(_0x5d2b80={'segmentIndex':_0x10fcb3,'t':_0x416a59,'point':_0x3d5a36[_0x296c76(0xef)],'distance':_0x3d5a36[_0x296c76(0xbc)]}),_0x13cf05=_0xaa9b38;}}return _0x5d2b80&&_0x5d2b80[_0x296c76(0xbc)]<=_0x5a1c2a?_0x5d2b80:null;}function _0x307f2f(_0x44c351,_0x4f7dfa,_0x4aceef){const _0x211c3e=_0x4914aa;let _0x3477e4=_0x20d180(_0x44c351),_0x4fc10d=_0x3b8076(_0x3477e4,_0x4f7dfa[_0x211c3e(0x10c)]),_0x3575a5=_0x34b386(_0x3477e4,_0x4f7dfa[_0x211c3e(0x10c)]);if(!_0x4fc10d||!_0x3575a5)return _0x3477e4;let _0x238516=_0x4bd012(_0x3575a5,Math[_0x211c3e(0xb8)](0x0,Math[_0x211c3e(0xb6)](0x1,_0x4f7dfa['t']))),_0xb1bb4e={'id':_0x4aceef(),'x':_0x238516['left'][0x3]['x'],'y':_0x238516[_0x211c3e(0x123)][0x3]['y'],'in':_0x1a6b37(_0x238516[_0x211c3e(0x123)][0x2]),'out':_0x1a6b37(_0x238516[_0x211c3e(0xe7)][0x1]),'pointType':_0x211c3e(0x127)};return _0x3477e4[_0x211c3e(0x116)][_0x4fc10d[_0x211c3e(0xfc)]]['out']=_0x1a6b37(_0x238516['left'][0x1]),_0x3477e4['anchors'][_0x4fc10d[_0x211c3e(0xbd)]]['in']=_0x1a6b37(_0x238516[_0x211c3e(0xe7)][0x2]),_0x3477e4['anchors'][_0x211c3e(0xf0)](_0x4fc10d[_0x211c3e(0xfc)]+0x1,0x0,_0xb1bb4e),_0x3477e4;}function _0x287003(_0xb535a2,_0x15382c){const _0x52381d=_0x4914aa;let _0x5e0d70=_0x20d180(_0xb535a2);return _0x5e0d70[_0x52381d(0x116)]=_0x5e0d70[_0x52381d(0x116)]['filter'](_0x512ec4=>_0x512ec4['id']!==_0x15382c),_0x5e0d70[_0x52381d(0xf2)]&&_0x5e0d70[_0x52381d(0x116)][_0x52381d(0xfa)]<0x3&&(_0x5e0d70[_0x52381d(0xf2)]=!0x1),_0x5e0d70;}function _0x1e8b24(_0x1c70b1,_0x28df95,_0x45b150){const _0x38527f=_0x4914aa;let _0x484136=_0x20d180(_0x1c70b1),_0x4863cd=_0x484136[_0x38527f(0x116)][_0x38527f(0xbf)](_0x59828c=>_0x59828c['id']===_0x28df95),_0x3474ae=_0x484136['anchors'][_0x4863cd];if(!_0x3474ae)return _0x484136;if(_0x3474ae['pointType']=_0x45b150,_0x45b150===_0x38527f(0x11e))return delete _0x3474ae['in'],delete _0x3474ae[_0x38527f(0xb7)],_0x484136;let _0x586958=_0x3a3a3e(_0x484136,_0x4863cd);if(_0x3474ae['in']=_0x3474ae['in']?_0x1a6b37(_0x3474ae['in']):_0x586958['in'],_0x3474ae['out']=_0x3474ae['out']?_0x1a6b37(_0x3474ae[_0x38527f(0xb7)]):_0x586958['out'],_0x45b150===_0x38527f(0xdf)){let _0x23d701=Math[_0x38527f(0xb8)](_0x2e8bc9(_0x3474ae,_0x3474ae['in']),_0x2e8bc9(_0x3474ae,_0x3474ae[_0x38527f(0xb7)]),0x32),_0x140b54=_0x448b51({'x':_0x3474ae['out']['x']-_0x3474ae['x'],'y':_0x3474ae[_0x38527f(0xb7)]['y']-_0x3474ae['y']});_0x3474ae[_0x38527f(0xb7)]={'x':_0x3474ae['x']+_0x140b54['x']*_0x23d701,'y':_0x3474ae['y']+_0x140b54['y']*_0x23d701},_0x3474ae['in']={'x':_0x3474ae['x']-_0x140b54['x']*_0x23d701,'y':_0x3474ae['y']-_0x140b54['y']*_0x23d701};}else _0x45b150===_0x38527f(0x10b)&&_0x143883(_0x3474ae,'out');return _0x484136;}function _0x31b374(_0x67c7cf,_0x370623){const _0x5a64cc=_0x4914aa;let _0x40827f=_0x67c7cf[_0x5a64cc(0x116)]['find'](_0x53711d=>_0x53711d['id']===_0x370623),_0x7044c8=(_0x40827f==null?void 0x0:_0x40827f[_0x5a64cc(0x11b)])??_0x5a64cc(0x11e);return _0x1e8b24(_0x67c7cf,_0x370623,_0x7044c8==='corner'?_0x5a64cc(0x10b):_0x7044c8===_0x5a64cc(0x10b)?_0x5a64cc(0xdf):_0x7044c8===_0x5a64cc(0xdf)?_0x5a64cc(0x127):_0x5a64cc(0x11e));}function _0x2bbc96(_0x1e28fe,_0x52db0a,_0x17e404){const _0x42e5c4=_0x4914aa;let _0x28ddef=_0x20d180(_0x1e28fe),_0x15f063=_0x28ddef[_0x42e5c4(0x116)][_0x42e5c4(0x12a)](_0x3d65ee=>_0x3d65ee['id']===_0x52db0a[_0x42e5c4(0x112)]);if(!_0x15f063)return _0x28ddef;if(_0x52db0a[_0x42e5c4(0xda)]===_0x42e5c4(0x125)){let _0x999a4f={'x':_0x17e404['x']-_0x15f063['x'],'y':_0x17e404['y']-_0x15f063['y']};return _0x15f063['x']=_0x17e404['x'],_0x15f063['y']=_0x17e404['y'],_0x15f063['in']&&={'x':_0x15f063['in']['x']+_0x999a4f['x'],'y':_0x15f063['in']['y']+_0x999a4f['y']},_0x15f063[_0x42e5c4(0xb7)]&&={'x':_0x15f063[_0x42e5c4(0xb7)]['x']+_0x999a4f['x'],'y':_0x15f063[_0x42e5c4(0xb7)]['y']+_0x999a4f['y']},_0x28ddef;}return _0x15f063[_0x52db0a[_0x42e5c4(0xda)]]=_0x1a6b37(_0x17e404),_0x15f063['pointType']==='corner'&&(_0x15f063['pointType']=_0x42e5c4(0x127)),_0x143883(_0x15f063,_0x52db0a[_0x42e5c4(0xda)]),_0x28ddef;}let _0x151d6d=1e-9;function _0xa9a3d8(_0x3fd915){let _0x38ad64=Math['round'](_0x3fd915*0x2710)/0x2710;return Object['is'](_0x38ad64,-0x0)?'0':String(_0x38ad64);}function _0xab3133(_0x21b48c){return _0xa9a3d8(_0x21b48c['x'])+'\x20'+_0xa9a3d8(_0x21b48c['y']);}function _0xac8a33(_0x162cc8,_0x4da772){return{'x':_0x162cc8['x']-_0x4da772['x'],'y':_0x162cc8['y']-_0x4da772['y']};}function _0x26c9e9(_0x89480e,_0x1ac3a2,_0x46be8a,_0x2fa9a3,_0x4c57f8){let _0x791f26=0x1-_0x4c57f8;return{'x':_0x791f26*_0x791f26*_0x791f26*_0x89480e['x']+0x3*_0x791f26*_0x791f26*_0x4c57f8*_0x1ac3a2['x']+0x3*_0x791f26*_0x4c57f8*_0x4c57f8*_0x46be8a['x']+_0x4c57f8*_0x4c57f8*_0x4c57f8*_0x2fa9a3['x'],'y':_0x791f26*_0x791f26*_0x791f26*_0x89480e['y']+0x3*_0x791f26*_0x791f26*_0x4c57f8*_0x1ac3a2['y']+0x3*_0x791f26*_0x4c57f8*_0x4c57f8*_0x46be8a['y']+_0x4c57f8*_0x4c57f8*_0x4c57f8*_0x2fa9a3['y']};}function _0x1e44dd(_0x3d0cb9,_0x1442e1,_0x4d0f5e,_0x239181){const _0x39828c=_0x4914aa;let _0x3f9506=-_0x3d0cb9+0x3*_0x1442e1-0x3*_0x4d0f5e+_0x239181,_0x1b34c0=0x3*_0x3d0cb9-0x6*_0x1442e1+0x3*_0x4d0f5e,_0x39240b=-0x3*_0x3d0cb9+0x3*_0x1442e1,_0x1180ac=[];if(Math[_0x39828c(0xe5)](_0x3f9506)<_0x151d6d){if(Math[_0x39828c(0xe5)](_0x1b34c0)<_0x151d6d)return _0x1180ac;let _0xd06bcc=-_0x39240b/(0x2*_0x1b34c0);return _0xd06bcc>0x0&&_0xd06bcc<0x1&&_0x1180ac['push'](_0xd06bcc),_0x1180ac;}let _0x537af8=_0x1b34c0*_0x1b34c0-0x3*_0x3f9506*_0x39240b;if(_0x537af8<0x0)return _0x1180ac;let _0x392d72=Math[_0x39828c(0xf4)](Math[_0x39828c(0xb8)](0x0,_0x537af8)),_0x226779=(-_0x1b34c0+_0x392d72)/(0x3*_0x3f9506),_0x502628=(-_0x1b34c0-_0x392d72)/(0x3*_0x3f9506);return _0x226779>0x0&&_0x226779<0x1&&_0x1180ac[_0x39828c(0xde)](_0x226779),_0x502628>0x0&&_0x502628<0x1&&Math[_0x39828c(0xe5)](_0x502628-_0x226779)>_0x151d6d&&_0x1180ac[_0x39828c(0xde)](_0x502628),_0x1180ac;}function _0x36c26d(_0x1f06f5,_0x3824cc,_0x969347,_0x2232d3,_0x43293c){const _0x2f9c4e=_0x4914aa;_0x1f06f5[_0x2f9c4e(0xde)](_0x3824cc,_0x43293c),new Set([..._0x1e44dd(_0x3824cc['x'],_0x969347['x'],_0x2232d3['x'],_0x43293c['x']),..._0x1e44dd(_0x3824cc['y'],_0x969347['y'],_0x2232d3['y'],_0x43293c['y'])])[_0x2f9c4e(0x126)](_0x39e687=>{_0x1f06f5['push'](_0x26c9e9(_0x3824cc,_0x969347,_0x2232d3,_0x43293c,_0x39e687));});}function _0x3a4ba5(_0x3b8087){const _0x480784=_0x4914aa;let _0x3437db=_0x3b8087[_0x480784(0x116)];if(_0x3437db[_0x480784(0xfa)]<=0x1)return _0x3437db;let _0x30cba3=[];for(let _0x2d8e3d=0x1;_0x2d8e3d<_0x3437db[_0x480784(0xfa)];_0x2d8e3d++){let _0x17be10=_0x3437db[_0x2d8e3d-0x1],_0x35ae2d=_0x3437db[_0x2d8e3d];_0x36c26d(_0x30cba3,_0x17be10,_0x17be10[_0x480784(0xb7)]??_0x17be10,_0x35ae2d['in']??_0x35ae2d,_0x35ae2d);}if(_0x3b8087[_0x480784(0xf2)]&&_0x3437db[_0x480784(0xfa)]>0x1){let _0x3d4b8d=_0x3437db[_0x3437db['length']-0x1],_0x9114ed=_0x3437db[0x0];_0x36c26d(_0x30cba3,_0x3d4b8d,_0x3d4b8d[_0x480784(0xb7)]??_0x3d4b8d,_0x9114ed['in']??_0x9114ed,_0x9114ed);}return _0x30cba3;}function _0x52f3e7(_0x39f550){const _0x58c991=_0x4914aa;let _0x2fd0ed=_0x39f550[_0x58c991(0xdb)];if(_0x2fd0ed[_0x58c991(0xfa)]<=0x1)return _0x2fd0ed;let _0x171189=[];for(let _0x2792e2=0x0;_0x2792e2<_0x2fd0ed[_0x58c991(0xfa)]-0x1;_0x2792e2++){let _0x549817=_0x2fd0ed[_0x2792e2],_0xcc4f19=_0x2fd0ed[_0x2792e2+0x1],_0x576777=_0x2fd0ed[_0x2792e2-0x1]??_0x549817,_0x2184a8=_0x2fd0ed[_0x2792e2+0x2]??_0xcc4f19;_0x36c26d(_0x171189,_0x549817,{'x':_0x549817['x']+(_0xcc4f19['x']-_0x576777['x'])/0x6,'y':_0x549817['y']+(_0xcc4f19['y']-_0x576777['y'])/0x6},{'x':_0xcc4f19['x']-(_0x2184a8['x']-_0x549817['x'])/0x6,'y':_0xcc4f19['y']-(_0x2184a8['y']-_0x549817['y'])/0x6},_0xcc4f19);}return _0x171189;}function _0x2565ab(_0x23f87e){const _0x218e26=_0x4914aa;return _0x23f87e[_0x218e26(0xda)]==='pen'?_0x3a4ba5(_0x23f87e):_0x52f3e7(_0x23f87e);}function _0x5189b3(_0x4da4fa){let _0x7143c0=Math['round'](_0x4da4fa*0x2710)/0x2710;return Object['is'](_0x7143c0,-0x0)?0x0:_0x7143c0;}function _0x5ca7be(_0x271a31){const _0x3f44cb=_0x4914aa;let _0x10cc9c=_0x2565ab(_0x271a31);if(_0x10cc9c[_0x3f44cb(0xfa)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x467089=Math[_0x3f44cb(0xb6)](..._0x10cc9c[_0x3f44cb(0xd4)](_0xdbd407=>_0xdbd407['x'])),_0x37388e=Math[_0x3f44cb(0xb6)](..._0x10cc9c[_0x3f44cb(0xd4)](_0x7be451=>_0x7be451['y'])),_0x1d9d67=Math['max'](..._0x10cc9c[_0x3f44cb(0xd4)](_0x2f4fb1=>_0x2f4fb1['x'])),_0x349514=Math[_0x3f44cb(0xb8)](..._0x10cc9c[_0x3f44cb(0xd4)](_0x3397cf=>_0x3397cf['y']));return{'left':_0x5189b3(_0x467089),'top':_0x5189b3(_0x37388e),'width':_0x5189b3(Math[_0x3f44cb(0xb8)](0x1,_0x1d9d67-_0x467089)),'height':_0x5189b3(Math[_0x3f44cb(0xb8)](0x1,_0x349514-_0x37388e))};}function _0x4fe7de(_0x53c200,_0x34094c){const _0x5799f3=_0x4914aa;let _0x558fb9=_0x53c200[_0x5799f3(0x116)];if(_0x558fb9['length']===0x0)return'';let _0x390574=['M\x20'+_0xab3133(_0xac8a33(_0x558fb9[0x0],_0x34094c))];for(let _0xb539c1=0x1;_0xb539c1<_0x558fb9[_0x5799f3(0xfa)];_0xb539c1++){let _0x2bc483=_0x558fb9[_0xb539c1-0x1],_0x2f0ebf=_0x558fb9[_0xb539c1],_0x3ef2a4=_0x2bc483[_0x5799f3(0xb7)]??_0x2bc483,_0x2d388d=_0x2f0ebf['in']??_0x2f0ebf;_0x390574[_0x5799f3(0xde)]('C\x20'+_0xab3133(_0xac8a33(_0x3ef2a4,_0x34094c))+'\x20'+_0xab3133(_0xac8a33(_0x2d388d,_0x34094c))+'\x20'+_0xab3133(_0xac8a33(_0x2f0ebf,_0x34094c)));}if(_0x53c200[_0x5799f3(0xf2)]&&_0x558fb9[_0x5799f3(0xfa)]>0x1){let _0xb9d446=_0x558fb9[_0x558fb9[_0x5799f3(0xfa)]-0x1],_0x5e0cd5=_0x558fb9[0x0],_0x1bcbd2=_0xb9d446[_0x5799f3(0xb7)]??_0xb9d446,_0x7c9ef=_0x5e0cd5['in']??_0x5e0cd5;_0x390574['push']('C\x20'+_0xab3133(_0xac8a33(_0x1bcbd2,_0x34094c))+'\x20'+_0xab3133(_0xac8a33(_0x7c9ef,_0x34094c))+'\x20'+_0xab3133(_0xac8a33(_0x5e0cd5,_0x34094c))),_0x390574['push']('Z');}return _0x390574[_0x5799f3(0xee)]('\x20');}function _0x42f66e(_0x69010b,_0x410a41){const _0x34d8c7=_0x4914aa;let _0x55f080=_0x69010b['points'][_0x34d8c7(0xd4)](_0x118b35=>_0xac8a33(_0x118b35,_0x410a41));if(_0x55f080['length']===0x0)return'';if(_0x55f080[_0x34d8c7(0xfa)]===0x1)return'M\x20'+_0xab3133(_0x55f080[0x0]);let _0x34df2e=['M\x20'+_0xab3133(_0x55f080[0x0])];for(let _0x3a7fdb=0x0;_0x3a7fdb<_0x55f080[_0x34d8c7(0xfa)]-0x1;_0x3a7fdb++){let _0xb1fc8f=_0x55f080[_0x3a7fdb],_0x127913=_0x55f080[_0x3a7fdb+0x1],_0x366c69=_0x55f080[_0x3a7fdb-0x1]??_0xb1fc8f,_0x1c38fc=_0x55f080[_0x3a7fdb+0x2]??_0x127913,_0x2c69d1={'x':_0xb1fc8f['x']+(_0x127913['x']-_0x366c69['x'])/0x6,'y':_0xb1fc8f['y']+(_0x127913['y']-_0x366c69['y'])/0x6},_0x1b2cab={'x':_0x127913['x']-(_0x1c38fc['x']-_0xb1fc8f['x'])/0x6,'y':_0x127913['y']-(_0x1c38fc['y']-_0xb1fc8f['y'])/0x6};_0x34df2e[_0x34d8c7(0xde)]('C\x20'+_0xab3133(_0x2c69d1)+'\x20'+_0xab3133(_0x1b2cab)+'\x20'+_0xab3133(_0x127913));}return _0x34df2e[_0x34d8c7(0xee)]('\x20');}function _0x235eed(_0x5d8080,_0x1b7094){const _0x524047=_0x4914aa;return _0x5d8080[_0x524047(0xda)]===_0x524047(0xc9)?_0x4fe7de(_0x5d8080,_0x1b7094):_0x42f66e(_0x5d8080,_0x1b7094);}function _0x345c8a(_0x3635d9,_0x508841){const _0x5c4b83=_0x4914aa;return _0x508841!=null&&_0x508841[_0x5c4b83(0xb4)]?_0x508841['color']:_0x3635d9['kind']===_0x5c4b83(0xc9)?_0x5c4b83(0xe2):_0x3635d9['color'];}function _0x36d538(_0x9b8b01,_0x1d1e8a){const _0xc9c915=_0x4914aa;return(_0x1d1e8a==null?void 0x0:_0x1d1e8a[_0xc9c915(0xf5)])===void 0x0?_0x9b8b01[_0xc9c915(0xda)]===_0xc9c915(0xc9)?0x2:_0x9b8b01[_0xc9c915(0xf5)]:_0x1d1e8a['width'];}function _0xcb1826(_0x12e645,_0x2f735a){const _0x8ec7fe=_0x4914aa;return(_0x2f735a==null?void 0x0:_0x2f735a[_0x8ec7fe(0x10a)])===void 0x0?_0x12e645[_0x8ec7fe(0xda)]==='pen'?void 0x0:_0x12e645['opacity']:_0x2f735a['opacity'];}function _0x347997(_0x42de5b,_0x137d9b){const _0x327f1b=_0x4914aa;let _0x2fa4d4=_0x5ca7be(_0x42de5b),_0x507a6f=_0x235eed(_0x42de5b,{'x':_0x2fa4d4['left'],'y':_0x2fa4d4[_0x327f1b(0x107)]}),_0x4cc628=_0x42de5b[_0x327f1b(0xda)]==='pen'&&_0x42de5b['closed'],_0x14817c=_0x137d9b==null?void 0x0:_0x137d9b['fillColor'];return{'shapeType':_0x1c7ef5['ShapeTypeEnum'][_0x327f1b(0xd1)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x2fa4d4[_0x327f1b(0xf5)],'h':_0x2fa4d4[_0x327f1b(0xf1)],'fill':_0x4cc628?_0x327f1b(0xc7):_0x327f1b(0x12b),'stroke':!0x0,'data':_0x507a6f,'dataArray':_0x217e87(_0x42de5b,{'x':_0x2fa4d4[_0x327f1b(0x123)],'y':_0x2fa4d4[_0x327f1b(0x107)]})}]},'fill':_0x4cc628&&_0x14817c?{'color':_0x14817c,'fillType':_0x1c7ef5[_0x327f1b(0x103)][_0x327f1b(0xb1)]}:{'fillType':_0x1c7ef5[_0x327f1b(0x103)]['NoFill']},'stroke':{'color':_0x345c8a(_0x42de5b,_0x137d9b),'width':_0x36d538(_0x42de5b,_0x137d9b),'opacity':_0xcb1826(_0x42de5b,_0x137d9b),'lineStrokeType':_0x1c7ef5[_0x327f1b(0xf7)]['SolidLine'],'capType':_0x1c7ef5[_0x327f1b(0xce)][_0x327f1b(0x11d)],'lineJoinType':_0x1c7ef5[_0x327f1b(0xc0)][_0x327f1b(0x11d)]}};}function _0x19f629(_0xedd7b8,_0x48ea6b){return{'x':_0xedd7b8['x']-_0x48ea6b['x'],'y':_0xedd7b8['y']-_0x48ea6b['y']};}function _0x217e87(_0x15ff0b,_0x188ff1){const _0x160ee5=_0x4914aa;if(_0x15ff0b[_0x160ee5(0xda)]===_0x160ee5(0xc9)){let _0x5f46cf=_0x15ff0b[_0x160ee5(0x116)];if(_0x5f46cf['length']===0x0)return[];let _0x53a0b5=_0x19f629(_0x5f46cf[0x0],_0x188ff1),_0x5466ab=[{'command':'M','points':[_0x53a0b5['x'],_0x53a0b5['y']]}];for(let _0x1524d3=0x1;_0x1524d3<_0x5f46cf[_0x160ee5(0xfa)];_0x1524d3++){let _0x228db3=_0x5f46cf[_0x1524d3-0x1],_0x4be604=_0x5f46cf[_0x1524d3],_0x42fd25=_0x19f629(_0x228db3[_0x160ee5(0xb7)]??_0x228db3,_0x188ff1),_0x1f39b1=_0x19f629(_0x4be604['in']??_0x4be604,_0x188ff1),_0x48a0a5=_0x19f629(_0x4be604,_0x188ff1);_0x5466ab[_0x160ee5(0xde)]({'command':'C','points':[_0x42fd25['x'],_0x42fd25['y'],_0x1f39b1['x'],_0x1f39b1['y'],_0x48a0a5['x'],_0x48a0a5['y']]});}if(_0x15ff0b['closed']&&_0x5f46cf[_0x160ee5(0xfa)]>0x1){let _0x1f1cbe=_0x5f46cf[_0x5f46cf[_0x160ee5(0xfa)]-0x1],_0x4005ab=_0x5f46cf[0x0],_0x4ccd4f=_0x19f629(_0x1f1cbe[_0x160ee5(0xb7)]??_0x1f1cbe,_0x188ff1),_0x21282d=_0x19f629(_0x4005ab['in']??_0x4005ab,_0x188ff1),_0x279731=_0x19f629(_0x4005ab,_0x188ff1);_0x5466ab[_0x160ee5(0xde)]({'command':'C','points':[_0x4ccd4f['x'],_0x4ccd4f['y'],_0x21282d['x'],_0x21282d['y'],_0x279731['x'],_0x279731['y']]}),_0x5466ab[_0x160ee5(0xde)]({'command':'z','points':[]});}return _0x5466ab;}let _0x19aa18=_0x15ff0b['points'][_0x160ee5(0xd4)](_0x142ac5=>_0x19f629(_0x142ac5,_0x188ff1));if(_0x19aa18['length']===0x0)return[];let _0x4190c3=[{'command':'M','points':[_0x19aa18[0x0]['x'],_0x19aa18[0x0]['y']]}];for(let _0x5118d9=0x0;_0x5118d9<_0x19aa18['length']-0x1;_0x5118d9++){let _0x54b68b=_0x19aa18[_0x5118d9],_0x83d236=_0x19aa18[_0x5118d9+0x1],_0x41adfe=_0x19aa18[_0x5118d9-0x1]??_0x54b68b,_0x270bdb=_0x19aa18[_0x5118d9+0x2]??_0x83d236,_0x299c={'x':_0x54b68b['x']+(_0x83d236['x']-_0x41adfe['x'])/0x6,'y':_0x54b68b['y']+(_0x83d236['y']-_0x41adfe['y'])/0x6},_0x55841f={'x':_0x83d236['x']-(_0x270bdb['x']-_0x54b68b['x'])/0x6,'y':_0x83d236['y']-(_0x270bdb['y']-_0x54b68b['y'])/0x6};_0x4190c3[_0x160ee5(0xde)]({'command':'C','points':[_0x299c['x'],_0x299c['y'],_0x55841f['x'],_0x55841f['y'],_0x83d236['x'],_0x83d236['y']]});}return _0x4190c3;}function _0x29e5d5(_0x1a5353){const _0x1c2350=_0x4914aa;let {model:_0x37a86a,sourceModel:_0x49622f=_0x37a86a,style:_0x51d25f}=_0x1a5353,_0x312e66=_0x1a5353['tool']??_0x37a86a[_0x1c2350(0xda)],_0x3ce364=_0x5ca7be(_0x37a86a),_0x1f1697=_0x37a86a[_0x1c2350(0xda)]==='pen'&&_0x312e66!==_0x1c2350(0xc9)?_0x37a86a:void 0x0;return{'transform':{..._0x3ce364,'rotation':0x0},'shapeData':_0x347997(_0x37a86a,_0x51d25f),'ink':{'version':0x1,'tool':_0x312e66,'sourceModel':_0x49622f,..._0x1f1697?{'editModel':_0x1f1697}:{},'normalizedBounds':_0x3ce364}};}var _0x2f3300=_0x4914aa(0x11a),_0x4f11c3=_0x4914aa(0xc2);function _0xf79e1c(_0x5cab91){'@babel/helpers - typeof';const _0x1ce0c7=_0x4914aa;return _0xf79e1c=typeof Symbol==_0x1ce0c7(0x114)&&typeof Symbol[_0x1ce0c7(0x129)]=='symbol'?function(_0x23712d){return typeof _0x23712d;}:function(_0x2f9015){const _0x13aea0=_0x1ce0c7;return _0x2f9015&&typeof Symbol==_0x13aea0(0x114)&&_0x2f9015[_0x13aea0(0xe6)]===Symbol&&_0x2f9015!==Symbol['prototype']?_0x13aea0(0xbe):typeof _0x2f9015;},_0xf79e1c(_0x5cab91);}function _0x2cf09a(_0xd30d0e,_0x51ea5b){const _0x356dbd=_0x4914aa;if(_0xf79e1c(_0xd30d0e)!=_0x356dbd(0xe9)||!_0xd30d0e)return _0xd30d0e;var _0xd354cf=_0xd30d0e[Symbol['toPrimitive']];if(_0xd354cf!==void 0x0){var _0x10d3ad=_0xd354cf[_0x356dbd(0xd6)](_0xd30d0e,_0x51ea5b||_0x356dbd(0x106));if(_0xf79e1c(_0x10d3ad)!=_0x356dbd(0xe9))return _0x10d3ad;throw TypeError(_0x356dbd(0x121));}return(_0x51ea5b===_0x356dbd(0x111)?String:Number)(_0xd30d0e);}function _0x34fd52(_0x375dbc){const _0xbe4506=_0x4914aa;var _0x43c769=_0x2cf09a(_0x375dbc,_0xbe4506(0x111));return _0xf79e1c(_0x43c769)==_0xbe4506(0xbe)?_0x43c769:_0x43c769+'';}function _0x31416e(_0x57b0e1,_0x4cb38a,_0x1d96ec){return(_0x4cb38a=_0x34fd52(_0x4cb38a))in _0x57b0e1?Object['defineProperty'](_0x57b0e1,_0x4cb38a,{'value':_0x1d96ec,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x57b0e1[_0x4cb38a]=_0x1d96ec,_0x57b0e1;}let _0x7a5ee5=(0x0,_0x3fd204[_0x4914aa(0xc4)])(_0x4914aa(0xb9));var _0x11d438=class{constructor(){const _0x50691a=_0x4914aa;_0x31416e(this,_0x50691a(0x101),[]);}[_0x4914aa(0xcf)](_0x161ad0){const _0x11b393=_0x4914aa;return this[_0x11b393(0x101)][_0x11b393(0xde)](_0x161ad0),(0x0,_0x3fd204['toDisposable'])(()=>{const _0x4914f4=_0x11b393;let _0xf638b2=this[_0x4914f4(0x101)][_0x4914f4(0xd0)](_0x161ad0);_0xf638b2>=0x0&&this['_adapters']['splice'](_0xf638b2,0x1);});}[_0x4914aa(0x10f)](_0x4f843a){const _0x10210b=_0x4914aa;for(let _0x2095cd of this[_0x10210b(0x101)])if(_0x2095cd['beginInkMode'](_0x4f843a))return!0x0;return!0x1;}async[_0x4914aa(0xb2)](_0x36a8e6){const _0x28b981=_0x4914aa;for(let _0xc4a108 of this[_0x28b981(0x101)])if(_0xc4a108[_0x28b981(0xb2)]&&await _0xc4a108['createCustomShape'](_0x36a8e6))return!0x0;return!0x1;}};let _0x236135={'id':_0x4914aa(0x113),'type':_0x3fd204['CommandType'][_0x4914aa(0xfb)],'handler':(_0x40ebf0,_0xc01e92)=>_0xc01e92?_0x40ebf0[_0x4914aa(0xff)](_0x7a5ee5)['beginInkMode'](_0xc01e92):!0x1},_0x2d8a19={};function _0x2bce3f(_0x12b8db,_0x1be2bd){return function(_0x4114b2,_0x176310){_0x1be2bd(_0x4114b2,_0x176310,_0x12b8db);};}function _0x18f066(_0x48b03a,_0x484042,_0xec285e,_0x4d177b){const _0x101be4=_0x4914aa;var _0x3b41d1=arguments['length'],_0x14bfb3=_0x3b41d1<0x3?_0x484042:_0x4d177b===null?_0x4d177b=Object[_0x101be4(0xe1)](_0x484042,_0xec285e):_0x4d177b,_0x5e4dd6;if(typeof Reflect==_0x101be4(0xe9)&&typeof Reflect['decorate']=='function')_0x14bfb3=Reflect[_0x101be4(0xeb)](_0x48b03a,_0x484042,_0xec285e,_0x4d177b);else{for(var _0x587133=_0x48b03a[_0x101be4(0xfa)]-0x1;_0x587133>=0x0;_0x587133--)(_0x5e4dd6=_0x48b03a[_0x587133])&&(_0x14bfb3=(_0x3b41d1<0x3?_0x5e4dd6(_0x14bfb3):_0x3b41d1>0x3?_0x5e4dd6(_0x484042,_0xec285e,_0x14bfb3):_0x5e4dd6(_0x484042,_0xec285e))||_0x14bfb3);}return _0x3b41d1>0x3&&_0x14bfb3&&Object[_0x101be4(0xcb)](_0x484042,_0xec285e,_0x14bfb3),_0x14bfb3;}let _0x34b6b7=class extends _0x3fd204[_0x4914aa(0xd2)]{constructor(_0x3b90b2=_0x2d8a19,_0x385495,_0x357671,_0x471837){const _0x5c2cf7=_0x4914aa;super(),this[_0x5c2cf7(0xf6)]=_0x3b90b2,this[_0x5c2cf7(0xc1)]=_0x385495,this[_0x5c2cf7(0xe3)]=_0x357671,this['_configService']=_0x471837;let {..._0x23fecd}=(0x0,_0x3fd204[_0x5c2cf7(0x119)])({},_0x2d8a19,this[_0x5c2cf7(0xf6)]);this['_configService'][_0x5c2cf7(0x104)](_0x5c2cf7(0x102),_0x23fecd);}[_0x4914aa(0x118)](){const _0x47e633=_0x4914aa;[[_0x7a5ee5,{'useClass':_0x11d438}]][_0x47e633(0x126)](_0x3d73e9=>this[_0x47e633(0xc1)][_0x47e633(0xec)](_0x3d73e9)),this[_0x47e633(0xe0)](this['_commandService'][_0x47e633(0xcd)](_0x236135));}};_0x31416e(_0x34b6b7,_0x4914aa(0xdd),'UNIVER_INK_PLUGIN'),_0x31416e(_0x34b6b7,_0x4914aa(0x124),_0x2f3300),_0x31416e(_0x34b6b7,_0x4914aa(0x120),_0x4f11c3),_0x31416e(_0x34b6b7,_0x4914aa(0xf3),_0x3fd204['UniverInstanceType']['UNIVER_UNKNOWN']),_0x34b6b7=_0x18f066([(0x0,_0x3fd204[_0x4914aa(0x105)])(_0x24b977[_0x4914aa(0x11c)]),_0x2bce3f(0x1,(0x0,_0x3fd204[_0x4914aa(0xd7)])(_0x3fd204[_0x4914aa(0xc3)])),_0x2bce3f(0x2,_0x3fd204[_0x4914aa(0x100)]),_0x2bce3f(0x3,_0x3fd204[_0x4914aa(0xea)])],_0x34b6b7),_0x22a964[_0x4914aa(0x10e)]=_0x7a5ee5,Object[_0x4914aa(0xcb)](_0x22a964,_0x4914aa(0xc5),{'enumerable':!0x0,'get':function(){return _0x34b6b7;}}),_0x22a964[_0x4914aa(0xf9)]=_0x29e5d5,_0x22a964[_0x4914aa(0xdc)]=_0x271e2b,_0x22a964[_0x4914aa(0xcc)]=_0x31b374,_0x22a964['deleteInkPenAnchor']=_0x287003,_0x22a964[_0x4914aa(0xb5)]=_0x2b5870,_0x22a964[_0x4914aa(0xfd)]=_0x587f4f,_0x22a964[_0x4914aa(0xfe)]=_0x5ca7be,_0x22a964[_0x4914aa(0xe8)]=_0x5dbcf4,_0x22a964['insertInkPenAnchorAt']=_0x307f2f,_0x22a964['isInkPenHandleVisible']=_0x106664,_0x22a964[_0x4914aa(0x12c)]=_0x2bbc96,_0x22a964[_0x4914aa(0x11f)]=_0x1e8b24;}));
|
|
1
|
+
(function(_0x2e4509,_0x272871){const _0x1404e3=_0x2077,_0x54aa94=_0x2e4509();while(!![]){try{const _0x3a38d5=-parseInt(_0x1404e3(0x158))/0x1*(-parseInt(_0x1404e3(0x15c))/0x2)+-parseInt(_0x1404e3(0x1b9))/0x3*(parseInt(_0x1404e3(0x17e))/0x4)+parseInt(_0x1404e3(0x1ab))/0x5*(parseInt(_0x1404e3(0x151))/0x6)+parseInt(_0x1404e3(0x1cf))/0x7*(parseInt(_0x1404e3(0x18d))/0x8)+parseInt(_0x1404e3(0x1aa))/0x9+parseInt(_0x1404e3(0x1a5))/0xa*(-parseInt(_0x1404e3(0x187))/0xb)+-parseInt(_0x1404e3(0x177))/0xc;if(_0x3a38d5===_0x272871)break;else _0x54aa94['push'](_0x54aa94['shift']());}catch(_0x367486){_0x54aa94['push'](_0x54aa94['shift']());}}}(_0x41f4,0x84279),function(_0x2344ad,_0x29f9dd){const _0x2214e3=_0x2077;typeof exports==_0x2214e3(0x1a8)&&typeof module<'u'?_0x29f9dd(exports,require('@univerjs-pro/engine-shape'),require('@univerjs-pro/license'),require('@univerjs/core')):typeof define=='function'&&define[_0x2214e3(0x18f)]?define([_0x2214e3(0x186),_0x2214e3(0x168),_0x2214e3(0x18b),_0x2214e3(0x180)],_0x29f9dd):(_0x2344ad=typeof globalThis<'u'?globalThis:_0x2344ad||self,_0x29f9dd(_0x2344ad['UniverProInk']={},_0x2344ad[_0x2214e3(0x1c4)],_0x2344ad['UniverProLicense'],_0x2344ad[_0x2214e3(0x19f)]));}(this,function(_0xb67b0b,_0x30bb7,_0x2d38e6,_0x40648e){const _0x137662=_0x2077;Object['defineProperty'](_0xb67b0b,Symbol[_0x137662(0x175)],{'value':'Module'});let _0x44f8aa=0.0001;function _0x311309(_0x7aae7a){return{'x':_0x7aae7a['x'],'y':_0x7aae7a['y']};}function _0x2cdb31(_0x55809e){const _0x2e7675=_0x137662;return{..._0x55809e,'in':_0x55809e['in']?_0x311309(_0x55809e['in']):void 0x0,'out':_0x55809e[_0x2e7675(0x183)]?_0x311309(_0x55809e[_0x2e7675(0x183)]):void 0x0};}function _0x2956ad(_0xd68d9){const _0x4b67ff=_0x137662;return{'kind':_0x4b67ff(0x1cb),'closed':_0xd68d9[_0x4b67ff(0x178)],'anchors':_0xd68d9['anchors'][_0x4b67ff(0x1c2)](_0x2cdb31)};}function _0x2b48e6(_0x5e1206,_0x14f55d,_0x220da4){return{'x':_0x5e1206['x']+(_0x14f55d['x']-_0x5e1206['x'])*_0x220da4,'y':_0x5e1206['y']+(_0x14f55d['y']-_0x5e1206['y'])*_0x220da4};}function _0x4fb4d5(_0x41f2a6,_0x95af87){const _0x427a70=_0x137662;return Math[_0x427a70(0x1a6)](_0x41f2a6['x']-_0x95af87['x'],_0x41f2a6['y']-_0x95af87['y']);}function _0x3162f7(_0x456d1b){const _0x259b76=_0x137662;let _0x4c92cb=Math[_0x259b76(0x1a6)](_0x456d1b['x'],_0x456d1b['y']);return _0x4c92cb<_0x44f8aa?{'x':0x1,'y':0x0}:{'x':_0x456d1b['x']/_0x4c92cb,'y':_0x456d1b['y']/_0x4c92cb};}function _0x11de98(_0x3af4b8,_0x2a5f63,_0x122d41=_0x4fb4d5(_0x3af4b8,_0x2a5f63)){let _0x4ecb3a=_0x3162f7({'x':_0x3af4b8['x']-_0x2a5f63['x'],'y':_0x3af4b8['y']-_0x2a5f63['y']});return{'x':_0x3af4b8['x']+_0x4ecb3a['x']*_0x122d41,'y':_0x3af4b8['y']+_0x4ecb3a['y']*_0x122d41};}function _0x53bc0b(_0x45945c,_0x1b6417){const _0x384613=_0x137662;let {anchors:_0x4ca125}=_0x45945c;return _0x4ca125[_0x384613(0x1c5)]<0x2||_0x1b6417<0x0?null:_0x1b6417<_0x4ca125[_0x384613(0x1c5)]-0x1?{'startIndex':_0x1b6417,'endIndex':_0x1b6417+0x1,'start':_0x4ca125[_0x1b6417],'end':_0x4ca125[_0x1b6417+0x1]}:_0x45945c[_0x384613(0x178)]&&_0x1b6417===_0x4ca125['length']-0x1?{'startIndex':_0x4ca125[_0x384613(0x1c5)]-0x1,'endIndex':0x0,'start':_0x4ca125[_0x4ca125['length']-0x1],'end':_0x4ca125[0x0]}:null;}function _0x4a60e3(_0x23e942,_0x2ba814){const _0x27bb42=_0x137662;let _0x5562de=_0x53bc0b(_0x23e942,_0x2ba814);return _0x5562de?[_0x5562de[_0x27bb42(0x172)],_0x5562de[_0x27bb42(0x172)][_0x27bb42(0x183)]??_0x5562de[_0x27bb42(0x172)],_0x5562de[_0x27bb42(0x159)]['in']??_0x5562de['end'],_0x5562de[_0x27bb42(0x159)]]:null;}function _0x5c4fc9(_0x399abc,_0x1cae99){const _0x25cf3b=_0x137662;return _0x1cae99===_0x25cf3b(0x1ac)?_0x399abc:_0x399abc[_0x1cae99]??null;}function _0x15ba84(_0x1033e0,_0x408c25,_0x413207){const _0x17697a=_0x137662;return _0x413207===_0x17697a(0x1ac)||_0x1033e0['closed']?!0x0:_0x413207==='in'?_0x408c25>0x0:_0x408c25<_0x1033e0[_0x17697a(0x162)][_0x17697a(0x1c5)]-0x1;}function _0x3530b7(_0x3595b6,_0x46e2fb){let [_0x1efe24,_0x4afc16,_0x1437e7,_0x4a18fa]=_0x3595b6,_0x387dcd=_0x2b48e6(_0x1efe24,_0x4afc16,_0x46e2fb),_0x23fc3b=_0x2b48e6(_0x4afc16,_0x1437e7,_0x46e2fb),_0x380408=_0x2b48e6(_0x1437e7,_0x4a18fa,_0x46e2fb);return _0x2b48e6(_0x2b48e6(_0x387dcd,_0x23fc3b,_0x46e2fb),_0x2b48e6(_0x23fc3b,_0x380408,_0x46e2fb),_0x46e2fb);}function _0xd687e8(_0x48b8e3,_0xc2cfe6){let [_0x25b02f,_0x4c59e8,_0x554a5b,_0x426b19]=_0x48b8e3,_0x59df5e=_0x2b48e6(_0x25b02f,_0x4c59e8,_0xc2cfe6),_0x981a8=_0x2b48e6(_0x4c59e8,_0x554a5b,_0xc2cfe6),_0x5800d2=_0x2b48e6(_0x554a5b,_0x426b19,_0xc2cfe6),_0x16a617=_0x2b48e6(_0x59df5e,_0x981a8,_0xc2cfe6),_0x1502c4=_0x2b48e6(_0x981a8,_0x5800d2,_0xc2cfe6),_0x31b970=_0x2b48e6(_0x16a617,_0x1502c4,_0xc2cfe6);return{'left':[_0x25b02f,_0x59df5e,_0x16a617,_0x31b970],'right':[_0x31b970,_0x1502c4,_0x5800d2,_0x426b19]};}function _0x52df91(_0x394dd7,_0x1213a7,_0x33462a){let _0xa27a57=_0x33462a['x']-_0x1213a7['x'],_0x44cf24=_0x33462a['y']-_0x1213a7['y'],_0x17ab73=_0xa27a57*_0xa27a57+_0x44cf24*_0x44cf24,_0x42bbe9=_0x17ab73<=_0x44f8aa?0x0:Math['max'](0x0,Math['min'](0x1,((_0x394dd7['x']-_0x1213a7['x'])*_0xa27a57+(_0x394dd7['y']-_0x1213a7['y'])*_0x44cf24)/_0x17ab73)),_0x245d57={'x':_0x1213a7['x']+_0xa27a57*_0x42bbe9,'y':_0x1213a7['y']+_0x44cf24*_0x42bbe9};return{'point':_0x245d57,'ratio':_0x42bbe9,'distance':_0x4fb4d5(_0x394dd7,_0x245d57)};}function _0x213f0f(_0x1cb3f5,_0x3c93f8,_0xb352fb){const _0x1e3c45=_0x137662;return _0x52df91(_0x1cb3f5,_0x3c93f8,_0xb352fb)[_0x1e3c45(0x1a3)]**0x2;}function _0x297d68(_0x43f639,_0x20d864){const _0x2ab432=_0x137662;if(_0x43f639[_0x2ab432(0x1c5)]<=0x2)return _0x43f639[_0x2ab432(0x1c2)](_0x311309);let _0x379118=0x0,_0x4a7547=0x0,_0x4c915d=_0x43f639[0x0],_0xf725b4=_0x43f639[_0x43f639['length']-0x1],_0x1b74d2=_0x20d864*_0x20d864;for(let _0xe18f1e=0x1;_0xe18f1e<_0x43f639[_0x2ab432(0x1c5)]-0x1;_0xe18f1e++){let _0x57b7f0=_0x213f0f(_0x43f639[_0xe18f1e],_0x4c915d,_0xf725b4);_0x57b7f0>_0x379118&&(_0x379118=_0x57b7f0,_0x4a7547=_0xe18f1e);}if(_0x379118<=_0x1b74d2)return[_0x311309(_0x4c915d),_0x311309(_0xf725b4)];let _0x595ea2=_0x297d68(_0x43f639[_0x2ab432(0x1c7)](0x0,_0x4a7547+0x1),_0x20d864),_0x2ef9cd=_0x297d68(_0x43f639[_0x2ab432(0x1c7)](_0x4a7547),_0x20d864);return[..._0x595ea2[_0x2ab432(0x1c7)](0x0,-0x1),..._0x2ef9cd];}function _0x6a8385(_0x1ef3a3,_0x4be96a){let _0x1601e3=_0x1ef3a3[_0x4be96a],_0x3139b4=_0x1ef3a3[_0x4be96a+0x1],_0xc784e4=_0x1ef3a3[_0x4be96a-0x1]??_0x1601e3;return{'x':_0x1601e3['x']+(_0x3139b4['x']-_0xc784e4['x'])/0x6,'y':_0x1601e3['y']+(_0x3139b4['y']-_0xc784e4['y'])/0x6};}function _0xdaee61(_0x168079,_0x1bfa52){let _0x819380=_0x168079[_0x1bfa52],_0x134773=_0x168079[_0x1bfa52-0x1],_0x9eafb9=_0x168079[_0x1bfa52+0x1]??_0x819380;return{'x':_0x819380['x']-(_0x9eafb9['x']-_0x134773['x'])/0x6,'y':_0x819380['y']-(_0x9eafb9['y']-_0x134773['y'])/0x6};}function _0x325d8d(_0x1da05c,_0x28463f){const _0x20cf0e=_0x137662;let _0x5a8c86=_0x1da05c['anchors'][_0x28463f],_0x225786=_0x1da05c['anchors'][_0x28463f-0x1]??(_0x1da05c[_0x20cf0e(0x178)]?_0x1da05c['anchors'][_0x1da05c['anchors'][_0x20cf0e(0x1c5)]-0x1]:null),_0x5a05e0=_0x1da05c[_0x20cf0e(0x162)][_0x28463f+0x1]??(_0x1da05c[_0x20cf0e(0x178)]?_0x1da05c[_0x20cf0e(0x162)][0x0]:null),_0x5e7a73=_0x225786&&_0x5a05e0?_0x3162f7({'x':_0x5a05e0['x']-_0x225786['x'],'y':_0x5a05e0['y']-_0x225786['y']}):_0x5a05e0?_0x3162f7({'x':_0x5a05e0['x']-_0x5a8c86['x'],'y':_0x5a05e0['y']-_0x5a8c86['y']}):_0x225786?_0x3162f7({'x':_0x5a8c86['x']-_0x225786['x'],'y':_0x5a8c86['y']-_0x225786['y']}):{'x':0x1,'y':0x0},_0x14ef06=_0x225786&&_0x5a05e0?Math[_0x20cf0e(0x1cc)](0x32,_0x4fb4d5(_0x225786,_0x5a05e0)/0x4):0x32;return{'in':{'x':_0x5a8c86['x']-_0x5e7a73['x']*_0x14ef06,'y':_0x5a8c86['y']-_0x5e7a73['y']*_0x14ef06},'out':{'x':_0x5a8c86['x']+_0x5e7a73['x']*_0x14ef06,'y':_0x5a8c86['y']+_0x5e7a73['y']*_0x14ef06}};}function _0x1785c2(_0x3d6250,_0x34906a){const _0x4f9a78=_0x137662;let _0x19e6fe=_0x3d6250[_0x34906a],_0x15b64e=_0x34906a==='in'?'out':'in',_0x463c31=_0x3d6250[_0x15b64e];if(_0x19e6fe){if(_0x3d6250[_0x4f9a78(0x169)]===_0x4f9a78(0x166)){_0x3d6250[_0x15b64e]=_0x11de98(_0x3d6250,_0x19e6fe);return;}_0x3d6250[_0x4f9a78(0x169)]===_0x4f9a78(0x174)&&(_0x3d6250[_0x15b64e]=_0x11de98(_0x3d6250,_0x19e6fe,_0x463c31?_0x4fb4d5(_0x3d6250,_0x463c31):_0x4fb4d5(_0x3d6250,_0x19e6fe)));}}function _0x201a13(_0x3f60ac,_0x1b1b84){const _0x485be2=_0x137662;let _0x4fde3a=_0x2956ad(_0x3f60ac);return!_0x1b1b84||_0x4fde3a[_0x485be2(0x178)]||_0x4fde3a[_0x485be2(0x162)]['length']===0x0||_0x4fde3a[_0x485be2(0x162)][_0x485be2(0x1b0)]({'id':_0x485be2(0x15a),'x':_0x1b1b84['x'],'y':_0x1b1b84['y'],'pointType':_0x485be2(0x164)}),_0x4fde3a;}function _0x24bd60(_0x634ac2,_0x25aa02={}){const _0x3b32f0=_0x137662;let _0x3333fc=Math['max'](0x0,_0x25aa02[_0x3b32f0(0x1a9)]??Math[_0x3b32f0(0x1cc)](0x4,_0x634ac2['width']*0.35)),_0xe5c33f=_0x25aa02['createId']??(_0x296b09=>_0x3b32f0(0x1b3)+_0x296b09),_0x25c411=_0x297d68(_0x634ac2[_0x3b32f0(0x16d)],_0x3333fc),_0x2fb15d=_0x25c411['map']((_0x28aed3,_0x544580)=>({'id':_0xe5c33f(_0x544580),'x':_0x28aed3['x'],'y':_0x28aed3['y'],'pointType':'free'}));for(let _0x29a617=0x0;_0x29a617<_0x2fb15d[_0x3b32f0(0x1c5)]-0x1;_0x29a617++)_0x2fb15d[_0x29a617][_0x3b32f0(0x183)]=_0x6a8385(_0x25c411,_0x29a617),_0x2fb15d[_0x29a617+0x1]['in']=_0xdaee61(_0x25c411,_0x29a617+0x1);return{'kind':'pen','closed':!0x1,'anchors':_0x2fb15d};}function _0x2cba02(_0x273d17,_0x4c371f,_0x8537cc){const _0x2ebaf5=_0x137662;let _0x10c293=null,_0x3203de=[_0x2ebaf5(0x1ac),'in','out'];return _0x273d17[_0x2ebaf5(0x162)][_0x2ebaf5(0x1a0)]((_0x42382a,_0x3ef53d)=>{const _0x4dc1c4=_0x2ebaf5;_0x3203de[_0x4dc1c4(0x1a0)](_0x1088c8=>{const _0x388d61=_0x4dc1c4;if(!_0x15ba84(_0x273d17,_0x3ef53d,_0x1088c8))return;let _0x13523d=_0x5c4fc9(_0x42382a,_0x1088c8);if(!_0x13523d)return;let _0x41d4fb=_0x4fb4d5(_0x4c371f,_0x13523d);_0x41d4fb>_0x8537cc||_0x10c293&&_0x41d4fb>=_0x10c293[_0x388d61(0x1a3)]||(_0x10c293={'handle':{'kind':_0x1088c8,'anchorId':_0x42382a['id']},'point':_0x311309(_0x13523d),'distance':_0x41d4fb});});}),_0x10c293;}function _0x1c937b(_0x2b2a2b,_0x2894de,_0x3f9ccc){const _0x4bd588=_0x137662;let _0x3a8f24=null,_0x4f0d84=_0x2b2a2b[_0x4bd588(0x178)]?_0x2b2a2b[_0x4bd588(0x162)]['length']:Math['max'](0x0,_0x2b2a2b[_0x4bd588(0x162)][_0x4bd588(0x1c5)]-0x1);for(let _0x5560ee=0x0;_0x5560ee<_0x4f0d84;_0x5560ee++){let _0xb76e16=_0x4a60e3(_0x2b2a2b,_0x5560ee);if(!_0xb76e16)continue;let _0x52ad46=_0x3530b7(_0xb76e16,0x0);for(let _0x2bab25=0x1;_0x2bab25<=0x20;_0x2bab25++){let _0x1aedb4=_0x3530b7(_0xb76e16,_0x2bab25/0x20),_0x1bc5aa=_0x52df91(_0x2894de,_0x52ad46,_0x1aedb4),_0x27e121=(_0x2bab25-0x1+_0x1bc5aa[_0x4bd588(0x171)])/0x20;(!_0x3a8f24||_0x1bc5aa['distance']<_0x3a8f24['distance'])&&(_0x3a8f24={'segmentIndex':_0x5560ee,'t':_0x27e121,'point':_0x1bc5aa[_0x4bd588(0x192)],'distance':_0x1bc5aa[_0x4bd588(0x1a3)]}),_0x52ad46=_0x1aedb4;}}return _0x3a8f24&&_0x3a8f24[_0x4bd588(0x1a3)]<=_0x3f9ccc?_0x3a8f24:null;}function _0x18ee5c(_0xa6404,_0x59488f,_0x4b1db3){const _0x417170=_0x137662;let _0x54fba2=_0x2956ad(_0xa6404),_0x3e1989=_0x53bc0b(_0x54fba2,_0x59488f[_0x417170(0x16e)]),_0xbdb4b8=_0x4a60e3(_0x54fba2,_0x59488f[_0x417170(0x16e)]);if(!_0x3e1989||!_0xbdb4b8)return _0x54fba2;let _0x39c9aa=_0xd687e8(_0xbdb4b8,Math[_0x417170(0x1cc)](0x0,Math['min'](0x1,_0x59488f['t']))),_0xbe30a={'id':_0x4b1db3(),'x':_0x39c9aa[_0x417170(0x1b4)][0x3]['x'],'y':_0x39c9aa[_0x417170(0x1b4)][0x3]['y'],'in':_0x311309(_0x39c9aa['left'][0x2]),'out':_0x311309(_0x39c9aa[_0x417170(0x193)][0x1]),'pointType':_0x417170(0x1ca)};return _0x54fba2[_0x417170(0x162)][_0x3e1989['startIndex']][_0x417170(0x183)]=_0x311309(_0x39c9aa[_0x417170(0x1b4)][0x1]),_0x54fba2['anchors'][_0x3e1989[_0x417170(0x16a)]]['in']=_0x311309(_0x39c9aa[_0x417170(0x193)][0x2]),_0x54fba2[_0x417170(0x162)][_0x417170(0x197)](_0x3e1989[_0x417170(0x160)]+0x1,0x0,_0xbe30a),_0x54fba2;}function _0x55273e(_0x23e697,_0x580e43){const _0x4d61f3=_0x137662;let _0x26cf43=_0x2956ad(_0x23e697);return _0x26cf43[_0x4d61f3(0x162)]=_0x26cf43[_0x4d61f3(0x162)][_0x4d61f3(0x1c3)](_0x1776c0=>_0x1776c0['id']!==_0x580e43),_0x26cf43[_0x4d61f3(0x178)]&&_0x26cf43['anchors']['length']<0x3&&(_0x26cf43[_0x4d61f3(0x178)]=!0x1),_0x26cf43;}function _0x520d23(_0x5e1b38,_0x15e4f6,_0x21b517){const _0x4d58bb=_0x137662;let _0x2aa4fb=_0x2956ad(_0x5e1b38),_0x96bd83=_0x2aa4fb['anchors']['findIndex'](_0x3763ce=>_0x3763ce['id']===_0x15e4f6),_0x4589c2=_0x2aa4fb['anchors'][_0x96bd83];if(!_0x4589c2)return _0x2aa4fb;if(_0x4589c2[_0x4d58bb(0x169)]=_0x21b517,_0x21b517===_0x4d58bb(0x164))return delete _0x4589c2['in'],delete _0x4589c2[_0x4d58bb(0x183)],_0x2aa4fb;let _0x696fd6=_0x325d8d(_0x2aa4fb,_0x96bd83);if(_0x4589c2['in']=_0x4589c2['in']?_0x311309(_0x4589c2['in']):_0x696fd6['in'],_0x4589c2['out']=_0x4589c2[_0x4d58bb(0x183)]?_0x311309(_0x4589c2[_0x4d58bb(0x183)]):_0x696fd6['out'],_0x21b517===_0x4d58bb(0x166)){let _0x58d54b=Math[_0x4d58bb(0x1cc)](_0x4fb4d5(_0x4589c2,_0x4589c2['in']),_0x4fb4d5(_0x4589c2,_0x4589c2['out']),0x32),_0xf1e9ea=_0x3162f7({'x':_0x4589c2[_0x4d58bb(0x183)]['x']-_0x4589c2['x'],'y':_0x4589c2[_0x4d58bb(0x183)]['y']-_0x4589c2['y']});_0x4589c2[_0x4d58bb(0x183)]={'x':_0x4589c2['x']+_0xf1e9ea['x']*_0x58d54b,'y':_0x4589c2['y']+_0xf1e9ea['y']*_0x58d54b},_0x4589c2['in']={'x':_0x4589c2['x']-_0xf1e9ea['x']*_0x58d54b,'y':_0x4589c2['y']-_0xf1e9ea['y']*_0x58d54b};}else _0x21b517===_0x4d58bb(0x174)&&_0x1785c2(_0x4589c2,'out');return _0x2aa4fb;}function _0x23423e(_0x48e9a4,_0x1d9b1d){const _0x3ccb39=_0x137662;let _0x41c656=_0x48e9a4[_0x3ccb39(0x162)][_0x3ccb39(0x17b)](_0x1fb014=>_0x1fb014['id']===_0x1d9b1d),_0x1d0ee1=(_0x41c656==null?void 0x0:_0x41c656[_0x3ccb39(0x169)])??'corner';return _0x520d23(_0x48e9a4,_0x1d9b1d,_0x1d0ee1==='corner'?_0x3ccb39(0x174):_0x1d0ee1===_0x3ccb39(0x174)?_0x3ccb39(0x166):_0x1d0ee1===_0x3ccb39(0x166)?'free':'corner');}function _0xeda49c(_0x7a603b,_0x543693,_0x439b4b){const _0x4d7961=_0x137662;let _0x1b1be1=_0x2956ad(_0x7a603b),_0x5f407b=_0x1b1be1[_0x4d7961(0x162)][_0x4d7961(0x17b)](_0x46e09a=>_0x46e09a['id']===_0x543693['anchorId']);if(!_0x5f407b)return _0x1b1be1;if(_0x543693[_0x4d7961(0x194)]===_0x4d7961(0x1ac)){let _0x221057={'x':_0x439b4b['x']-_0x5f407b['x'],'y':_0x439b4b['y']-_0x5f407b['y']};return _0x5f407b['x']=_0x439b4b['x'],_0x5f407b['y']=_0x439b4b['y'],_0x5f407b['in']&&={'x':_0x5f407b['in']['x']+_0x221057['x'],'y':_0x5f407b['in']['y']+_0x221057['y']},_0x5f407b[_0x4d7961(0x183)]&&={'x':_0x5f407b[_0x4d7961(0x183)]['x']+_0x221057['x'],'y':_0x5f407b[_0x4d7961(0x183)]['y']+_0x221057['y']},_0x1b1be1;}return _0x5f407b[_0x543693[_0x4d7961(0x194)]]=_0x311309(_0x439b4b),_0x5f407b[_0x4d7961(0x169)]===_0x4d7961(0x164)&&(_0x5f407b[_0x4d7961(0x169)]=_0x4d7961(0x1ca)),_0x1785c2(_0x5f407b,_0x543693['kind']),_0x1b1be1;}let _0x1b3ad3=1e-9;function _0x1db1ee(_0x59471a){let _0x291cd2=Math['round'](_0x59471a*0x2710)/0x2710;return Object['is'](_0x291cd2,-0x0)?'0':String(_0x291cd2);}function _0x3bf178(_0x18e540){return _0x1db1ee(_0x18e540['x'])+'\x20'+_0x1db1ee(_0x18e540['y']);}function _0x491156(_0x1ccab7,_0x2e48cf){return{'x':_0x1ccab7['x']-_0x2e48cf['x'],'y':_0x1ccab7['y']-_0x2e48cf['y']};}function _0x42a4ea(_0x1eadd,_0x5c1557,_0x1b7f2f,_0x442957,_0x1b2803){let _0x3622fa=0x1-_0x1b2803;return{'x':_0x3622fa*_0x3622fa*_0x3622fa*_0x1eadd['x']+0x3*_0x3622fa*_0x3622fa*_0x1b2803*_0x5c1557['x']+0x3*_0x3622fa*_0x1b2803*_0x1b2803*_0x1b7f2f['x']+_0x1b2803*_0x1b2803*_0x1b2803*_0x442957['x'],'y':_0x3622fa*_0x3622fa*_0x3622fa*_0x1eadd['y']+0x3*_0x3622fa*_0x3622fa*_0x1b2803*_0x5c1557['y']+0x3*_0x3622fa*_0x1b2803*_0x1b2803*_0x1b7f2f['y']+_0x1b2803*_0x1b2803*_0x1b2803*_0x442957['y']};}function _0x4caa2e(_0x5128a6,_0xcb353e,_0x1bdb4b,_0x378181){const _0x289376=_0x137662;let _0x255c58=-_0x5128a6+0x3*_0xcb353e-0x3*_0x1bdb4b+_0x378181,_0x191fda=0x3*_0x5128a6-0x6*_0xcb353e+0x3*_0x1bdb4b,_0x2992e0=-0x3*_0x5128a6+0x3*_0xcb353e,_0x27f148=[];if(Math[_0x289376(0x1a7)](_0x255c58)<_0x1b3ad3){if(Math[_0x289376(0x1a7)](_0x191fda)<_0x1b3ad3)return _0x27f148;let _0x88ef82=-_0x2992e0/(0x2*_0x191fda);return _0x88ef82>0x0&&_0x88ef82<0x1&&_0x27f148['push'](_0x88ef82),_0x27f148;}let _0x59a2d4=_0x191fda*_0x191fda-0x3*_0x255c58*_0x2992e0;if(_0x59a2d4<0x0)return _0x27f148;let _0x563b43=Math[_0x289376(0x173)](Math['max'](0x0,_0x59a2d4)),_0x40f3be=(-_0x191fda+_0x563b43)/(0x3*_0x255c58),_0x33ad20=(-_0x191fda-_0x563b43)/(0x3*_0x255c58);return _0x40f3be>0x0&&_0x40f3be<0x1&&_0x27f148[_0x289376(0x1b0)](_0x40f3be),_0x33ad20>0x0&&_0x33ad20<0x1&&Math['abs'](_0x33ad20-_0x40f3be)>_0x1b3ad3&&_0x27f148['push'](_0x33ad20),_0x27f148;}function _0x379e5a(_0x4aa740,_0x59e2fe,_0x366e43,_0x119676,_0x40db8f){const _0x1ca7f4=_0x137662;_0x4aa740[_0x1ca7f4(0x1b0)](_0x59e2fe,_0x40db8f),new Set([..._0x4caa2e(_0x59e2fe['x'],_0x366e43['x'],_0x119676['x'],_0x40db8f['x']),..._0x4caa2e(_0x59e2fe['y'],_0x366e43['y'],_0x119676['y'],_0x40db8f['y'])])[_0x1ca7f4(0x1a0)](_0x55b4da=>{const _0x2cfe7d=_0x1ca7f4;_0x4aa740[_0x2cfe7d(0x1b0)](_0x42a4ea(_0x59e2fe,_0x366e43,_0x119676,_0x40db8f,_0x55b4da));});}function _0xeaa4b2(_0x5900d3){const _0x5df628=_0x137662;let _0x4bafad=_0x5900d3[_0x5df628(0x162)];if(_0x4bafad['length']<=0x1)return _0x4bafad;let _0x41d2f2=[];for(let _0x409fe9=0x1;_0x409fe9<_0x4bafad[_0x5df628(0x1c5)];_0x409fe9++){let _0x53fcb6=_0x4bafad[_0x409fe9-0x1],_0x266890=_0x4bafad[_0x409fe9];_0x379e5a(_0x41d2f2,_0x53fcb6,_0x53fcb6[_0x5df628(0x183)]??_0x53fcb6,_0x266890['in']??_0x266890,_0x266890);}if(_0x5900d3[_0x5df628(0x178)]&&_0x4bafad[_0x5df628(0x1c5)]>0x1){let _0x2a7bfe=_0x4bafad[_0x4bafad[_0x5df628(0x1c5)]-0x1],_0x1657be=_0x4bafad[0x0];_0x379e5a(_0x41d2f2,_0x2a7bfe,_0x2a7bfe['out']??_0x2a7bfe,_0x1657be['in']??_0x1657be,_0x1657be);}return _0x41d2f2;}function _0x19cac6(_0x4f8bba){const _0x510153=_0x137662;let _0x54467c=_0x4f8bba['points'];if(_0x54467c[_0x510153(0x1c5)]<=0x1)return _0x54467c;let _0x175a64=[];for(let _0x333210=0x0;_0x333210<_0x54467c[_0x510153(0x1c5)]-0x1;_0x333210++){let _0x3ec665=_0x54467c[_0x333210],_0x2199ae=_0x54467c[_0x333210+0x1],_0xa73ee8=_0x54467c[_0x333210-0x1]??_0x3ec665,_0xc36712=_0x54467c[_0x333210+0x2]??_0x2199ae;_0x379e5a(_0x175a64,_0x3ec665,{'x':_0x3ec665['x']+(_0x2199ae['x']-_0xa73ee8['x'])/0x6,'y':_0x3ec665['y']+(_0x2199ae['y']-_0xa73ee8['y'])/0x6},{'x':_0x2199ae['x']-(_0xc36712['x']-_0x3ec665['x'])/0x6,'y':_0x2199ae['y']-(_0xc36712['y']-_0x3ec665['y'])/0x6},_0x2199ae);}return _0x175a64;}function _0xd34627(_0x578e63){const _0x1fd39a=_0x137662;return _0x578e63[_0x1fd39a(0x194)]===_0x1fd39a(0x1cb)?_0xeaa4b2(_0x578e63):_0x19cac6(_0x578e63);}function _0x374fc7(_0x1296d1){const _0x7ece59=_0x137662;let _0x17bf9e=Math[_0x7ece59(0x189)](_0x1296d1*0x2710)/0x2710;return Object['is'](_0x17bf9e,-0x0)?0x0:_0x17bf9e;}function _0xd4a653(_0x1c7fec){const _0xabcd9b=_0x137662;let _0x5ac229=_0xd34627(_0x1c7fec);if(_0x5ac229[_0xabcd9b(0x1c5)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x38965b=Math[_0xabcd9b(0x154)](..._0x5ac229['map'](_0x3a40a8=>_0x3a40a8['x'])),_0xcf075c=Math[_0xabcd9b(0x154)](..._0x5ac229['map'](_0x21758a=>_0x21758a['y'])),_0x194beb=Math[_0xabcd9b(0x1cc)](..._0x5ac229[_0xabcd9b(0x1c2)](_0x4299df=>_0x4299df['x'])),_0x4efb5a=Math[_0xabcd9b(0x1cc)](..._0x5ac229[_0xabcd9b(0x1c2)](_0x3a4d8d=>_0x3a4d8d['y']));return{'left':_0x374fc7(_0x38965b),'top':_0x374fc7(_0xcf075c),'width':_0x374fc7(Math[_0xabcd9b(0x1cc)](0x1,_0x194beb-_0x38965b)),'height':_0x374fc7(Math[_0xabcd9b(0x1cc)](0x1,_0x4efb5a-_0xcf075c))};}function _0x165c50(_0x31d728,_0xa9742e){const _0x5529f5=_0x137662;let _0x410165=_0x31d728[_0x5529f5(0x162)];if(_0x410165[_0x5529f5(0x1c5)]===0x0)return'';let _0x1da0d9=['M\x20'+_0x3bf178(_0x491156(_0x410165[0x0],_0xa9742e))];for(let _0x467c46=0x1;_0x467c46<_0x410165[_0x5529f5(0x1c5)];_0x467c46++){let _0x51c7b3=_0x410165[_0x467c46-0x1],_0x382716=_0x410165[_0x467c46],_0x3319aa=_0x51c7b3[_0x5529f5(0x183)]??_0x51c7b3,_0x18c900=_0x382716['in']??_0x382716;_0x1da0d9[_0x5529f5(0x1b0)]('C\x20'+_0x3bf178(_0x491156(_0x3319aa,_0xa9742e))+'\x20'+_0x3bf178(_0x491156(_0x18c900,_0xa9742e))+'\x20'+_0x3bf178(_0x491156(_0x382716,_0xa9742e)));}if(_0x31d728[_0x5529f5(0x178)]&&_0x410165[_0x5529f5(0x1c5)]>0x1){let _0x1e0f5e=_0x410165[_0x410165[_0x5529f5(0x1c5)]-0x1],_0x50c0c9=_0x410165[0x0],_0x2d7a16=_0x1e0f5e['out']??_0x1e0f5e,_0x19389c=_0x50c0c9['in']??_0x50c0c9;_0x1da0d9[_0x5529f5(0x1b0)]('C\x20'+_0x3bf178(_0x491156(_0x2d7a16,_0xa9742e))+'\x20'+_0x3bf178(_0x491156(_0x19389c,_0xa9742e))+'\x20'+_0x3bf178(_0x491156(_0x50c0c9,_0xa9742e))),_0x1da0d9[_0x5529f5(0x1b0)]('Z');}return _0x1da0d9[_0x5529f5(0x1af)]('\x20');}function _0x86167a(_0x3b559f,_0x17f03d){const _0x24ea43=_0x137662;let _0x37b810=_0x3b559f[_0x24ea43(0x16d)]['map'](_0x55ce35=>_0x491156(_0x55ce35,_0x17f03d));if(_0x37b810[_0x24ea43(0x1c5)]===0x0)return'';if(_0x37b810['length']===0x1)return'M\x20'+_0x3bf178(_0x37b810[0x0]);let _0x514a19=['M\x20'+_0x3bf178(_0x37b810[0x0])];for(let _0x36973e=0x0;_0x36973e<_0x37b810[_0x24ea43(0x1c5)]-0x1;_0x36973e++){let _0x58db8b=_0x37b810[_0x36973e],_0x168963=_0x37b810[_0x36973e+0x1],_0x5e3f7a=_0x37b810[_0x36973e-0x1]??_0x58db8b,_0x5e5382=_0x37b810[_0x36973e+0x2]??_0x168963,_0x1433fa={'x':_0x58db8b['x']+(_0x168963['x']-_0x5e3f7a['x'])/0x6,'y':_0x58db8b['y']+(_0x168963['y']-_0x5e3f7a['y'])/0x6},_0x33b7e5={'x':_0x168963['x']-(_0x5e5382['x']-_0x58db8b['x'])/0x6,'y':_0x168963['y']-(_0x5e5382['y']-_0x58db8b['y'])/0x6};_0x514a19['push']('C\x20'+_0x3bf178(_0x1433fa)+'\x20'+_0x3bf178(_0x33b7e5)+'\x20'+_0x3bf178(_0x168963));}return _0x514a19[_0x24ea43(0x1af)]('\x20');}function _0x18c6e7(_0x462d58,_0x536498){const _0x4cc8a2=_0x137662;return _0x462d58[_0x4cc8a2(0x194)]===_0x4cc8a2(0x1cb)?_0x165c50(_0x462d58,_0x536498):_0x86167a(_0x462d58,_0x536498);}function _0x6bc1a7(_0x4a7a66,_0x1a89a2){const _0x2db909=_0x137662;return _0x1a89a2!=null&&_0x1a89a2['color']?_0x1a89a2[_0x2db909(0x19e)]:_0x4a7a66[_0x2db909(0x194)]===_0x2db909(0x1cb)?_0x2db909(0x163):_0x4a7a66['color'];}function _0x57809d(_0x58a134,_0x1c6df8){const _0x3c9154=_0x137662;return(_0x1c6df8==null?void 0x0:_0x1c6df8[_0x3c9154(0x1cd)])===void 0x0?_0x58a134[_0x3c9154(0x194)]===_0x3c9154(0x1cb)?0x2:_0x58a134[_0x3c9154(0x1cd)]:_0x1c6df8[_0x3c9154(0x1cd)];}function _0x3863d1(_0x4486a4,_0x5434d9){const _0x2cae78=_0x137662;return(_0x5434d9==null?void 0x0:_0x5434d9[_0x2cae78(0x155)])===void 0x0?_0x4486a4[_0x2cae78(0x194)]===_0x2cae78(0x1cb)?void 0x0:_0x4486a4[_0x2cae78(0x155)]:_0x5434d9['opacity'];}function _0x79c66(_0x17fa1d,_0x5bc97f){const _0x39a00f=_0x137662;let _0x53d36b=_0xd4a653(_0x17fa1d),_0x2b0862=_0x18c6e7(_0x17fa1d,{'x':_0x53d36b['left'],'y':_0x53d36b[_0x39a00f(0x1bd)]}),_0x42e2b2=_0x17fa1d['kind']===_0x39a00f(0x1cb)&&_0x17fa1d[_0x39a00f(0x178)],_0x3f2c80=_0x5bc97f==null?void 0x0:_0x5bc97f[_0x39a00f(0x1d3)];return{'shapeType':_0x30bb7[_0x39a00f(0x15e)][_0x39a00f(0x18c)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x53d36b[_0x39a00f(0x1cd)],'h':_0x53d36b[_0x39a00f(0x1ba)],'fill':_0x42e2b2?_0x39a00f(0x1b7):'none','stroke':!0x0,'data':_0x2b0862,'dataArray':_0x28ecb0(_0x17fa1d,{'x':_0x53d36b[_0x39a00f(0x1b4)],'y':_0x53d36b[_0x39a00f(0x1bd)]})}]},'fill':_0x42e2b2&&_0x3f2c80?{'color':_0x3f2c80,'fillType':_0x30bb7[_0x39a00f(0x152)][_0x39a00f(0x165)]}:{'fillType':_0x30bb7['ShapeFillEnum'][_0x39a00f(0x1b5)]},'stroke':{'color':_0x6bc1a7(_0x17fa1d,_0x5bc97f),'width':_0x57809d(_0x17fa1d,_0x5bc97f),'opacity':_0x3863d1(_0x17fa1d,_0x5bc97f),'lineStrokeType':_0x30bb7[_0x39a00f(0x198)]['SolidLine'],'capType':_0x30bb7[_0x39a00f(0x16c)][_0x39a00f(0x196)],'lineJoinType':_0x30bb7[_0x39a00f(0x191)]['Round']}};}function _0x595b26(_0x222e63,_0x39f11a){return{'x':_0x222e63['x']-_0x39f11a['x'],'y':_0x222e63['y']-_0x39f11a['y']};}function _0x28ecb0(_0x443bfa,_0x65326b){const _0x225e9c=_0x137662;if(_0x443bfa['kind']===_0x225e9c(0x1cb)){let _0x15b7a4=_0x443bfa['anchors'];if(_0x15b7a4[_0x225e9c(0x1c5)]===0x0)return[];let _0x51da6e=_0x595b26(_0x15b7a4[0x0],_0x65326b),_0x6c5aa8=[{'command':'M','points':[_0x51da6e['x'],_0x51da6e['y']]}];for(let _0x4b6e3c=0x1;_0x4b6e3c<_0x15b7a4[_0x225e9c(0x1c5)];_0x4b6e3c++){let _0x102677=_0x15b7a4[_0x4b6e3c-0x1],_0x5896be=_0x15b7a4[_0x4b6e3c],_0x27ae68=_0x595b26(_0x102677['out']??_0x102677,_0x65326b),_0x9d69f5=_0x595b26(_0x5896be['in']??_0x5896be,_0x65326b),_0x6001e3=_0x595b26(_0x5896be,_0x65326b);_0x6c5aa8[_0x225e9c(0x1b0)]({'command':'C','points':[_0x27ae68['x'],_0x27ae68['y'],_0x9d69f5['x'],_0x9d69f5['y'],_0x6001e3['x'],_0x6001e3['y']]});}if(_0x443bfa[_0x225e9c(0x178)]&&_0x15b7a4[_0x225e9c(0x1c5)]>0x1){let _0x1835a1=_0x15b7a4[_0x15b7a4[_0x225e9c(0x1c5)]-0x1],_0x5ac745=_0x15b7a4[0x0],_0xcc20fe=_0x595b26(_0x1835a1[_0x225e9c(0x183)]??_0x1835a1,_0x65326b),_0x3bc025=_0x595b26(_0x5ac745['in']??_0x5ac745,_0x65326b),_0x6118ed=_0x595b26(_0x5ac745,_0x65326b);_0x6c5aa8[_0x225e9c(0x1b0)]({'command':'C','points':[_0xcc20fe['x'],_0xcc20fe['y'],_0x3bc025['x'],_0x3bc025['y'],_0x6118ed['x'],_0x6118ed['y']]}),_0x6c5aa8['push']({'command':'z','points':[]});}return _0x6c5aa8;}let _0x1a4d65=_0x443bfa['points']['map'](_0x3886ac=>_0x595b26(_0x3886ac,_0x65326b));if(_0x1a4d65[_0x225e9c(0x1c5)]===0x0)return[];let _0x4d0c8a=[{'command':'M','points':[_0x1a4d65[0x0]['x'],_0x1a4d65[0x0]['y']]}];for(let _0x56f85b=0x0;_0x56f85b<_0x1a4d65[_0x225e9c(0x1c5)]-0x1;_0x56f85b++){let _0x3176c3=_0x1a4d65[_0x56f85b],_0x427def=_0x1a4d65[_0x56f85b+0x1],_0x5e2a69=_0x1a4d65[_0x56f85b-0x1]??_0x3176c3,_0x11504f=_0x1a4d65[_0x56f85b+0x2]??_0x427def,_0x1b8102={'x':_0x3176c3['x']+(_0x427def['x']-_0x5e2a69['x'])/0x6,'y':_0x3176c3['y']+(_0x427def['y']-_0x5e2a69['y'])/0x6},_0x3ff0ee={'x':_0x427def['x']-(_0x11504f['x']-_0x3176c3['x'])/0x6,'y':_0x427def['y']-(_0x11504f['y']-_0x3176c3['y'])/0x6};_0x4d0c8a[_0x225e9c(0x1b0)]({'command':'C','points':[_0x1b8102['x'],_0x1b8102['y'],_0x3ff0ee['x'],_0x3ff0ee['y'],_0x427def['x'],_0x427def['y']]});}return _0x4d0c8a;}function _0x3144d4(_0x113834){const _0x5a53f7=_0x137662;let {model:_0x88781a,sourceModel:_0x33aad4=_0x88781a,style:_0x398bc6}=_0x113834,_0x91f96d=_0x113834[_0x5a53f7(0x16b)]??_0x88781a['kind'],_0x32095a=_0xd4a653(_0x88781a),_0x3088de=_0x88781a[_0x5a53f7(0x194)]===_0x5a53f7(0x1cb)&&_0x91f96d!==_0x5a53f7(0x1cb)?_0x88781a:void 0x0;return{'transform':{..._0x32095a,'rotation':0x0},'shapeData':_0x79c66(_0x88781a,_0x398bc6),'ink':{'version':0x1,'tool':_0x91f96d,'sourceModel':_0x33aad4,..._0x3088de?{'editModel':_0x3088de}:{},'normalizedBounds':_0x32095a}};}var _0x11335c=_0x137662(0x1c6),_0x6f17dc='1.0.1';function _0x5a0385(_0x31c833){'@babel/helpers - typeof';const _0x5d55e2=_0x137662;return _0x5a0385=typeof Symbol==_0x5d55e2(0x18e)&&typeof Symbol[_0x5d55e2(0x161)]==_0x5d55e2(0x1bc)?function(_0x2561aa){return typeof _0x2561aa;}:function(_0x2c801c){const _0x230808=_0x5d55e2;return _0x2c801c&&typeof Symbol=='function'&&_0x2c801c[_0x230808(0x1b8)]===Symbol&&_0x2c801c!==Symbol['prototype']?_0x230808(0x1bc):typeof _0x2c801c;},_0x5a0385(_0x31c833);}function _0x5116a7(_0x52aab0,_0x24de5f){const _0xe281fe=_0x137662;if(_0x5a0385(_0x52aab0)!=_0xe281fe(0x1a8)||!_0x52aab0)return _0x52aab0;var _0x26b119=_0x52aab0[Symbol[_0xe281fe(0x16f)]];if(_0x26b119!==void 0x0){var _0x5f5412=_0x26b119[_0xe281fe(0x156)](_0x52aab0,_0x24de5f||'default');if(_0x5a0385(_0x5f5412)!=_0xe281fe(0x1a8))return _0x5f5412;throw TypeError(_0xe281fe(0x17c));}return(_0x24de5f===_0xe281fe(0x157)?String:Number)(_0x52aab0);}function _0x13eca2(_0x5b75e8){const _0x40f034=_0x137662;var _0x1f2bec=_0x5116a7(_0x5b75e8,_0x40f034(0x157));return _0x5a0385(_0x1f2bec)==_0x40f034(0x1bc)?_0x1f2bec:_0x1f2bec+'';}function _0xe162cc(_0x263cdb,_0x68b72a,_0x3f9723){const _0x546745=_0x137662;return(_0x68b72a=_0x13eca2(_0x68b72a))in _0x263cdb?Object[_0x546745(0x1c9)](_0x263cdb,_0x68b72a,{'value':_0x3f9723,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x263cdb[_0x68b72a]=_0x3f9723,_0x263cdb;}let _0x480740=(0x0,_0x40648e[_0x137662(0x184)])('ink.host-adapter.service');var _0x53d152=class{constructor(){const _0x25f481=_0x137662;_0xe162cc(this,_0x25f481(0x19d),[]);}[_0x137662(0x1d1)](_0x3687ca){const _0x46409a=_0x137662;return this[_0x46409a(0x19d)]['push'](_0x3687ca),(0x0,_0x40648e[_0x46409a(0x1a4)])(()=>{const _0x3398f0=_0x46409a;let _0x37ebda=this[_0x3398f0(0x19d)][_0x3398f0(0x1a2)](_0x3687ca);_0x37ebda>=0x0&&this['_adapters']['splice'](_0x37ebda,0x1);});}[_0x137662(0x185)](_0x4b152e){const _0x44790a=_0x137662;for(let _0x418462 of this[_0x44790a(0x19d)])if(_0x418462[_0x44790a(0x185)](_0x4b152e))return!0x0;return!0x1;}async[_0x137662(0x1c1)](_0x3659cc){const _0x3bc4d7=_0x137662;for(let _0x557868 of this['_adapters'])if(_0x557868[_0x3bc4d7(0x1c1)]&&await _0x557868[_0x3bc4d7(0x1c1)](_0x3659cc))return!0x0;return!0x1;}};let _0x1ea9e7={'id':_0x137662(0x17f),'type':_0x40648e[_0x137662(0x199)][_0x137662(0x1c0)],'handler':(_0x49988b,_0xddf6dc)=>_0xddf6dc?_0x49988b[_0x137662(0x188)](_0x480740)[_0x137662(0x185)](_0xddf6dc):!0x1},_0x42aa4c={};function _0xf6f5c3(_0x3cb0d1,_0x86df4b){return function(_0x31ea15,_0x584dac){_0x86df4b(_0x31ea15,_0x584dac,_0x3cb0d1);};}function _0x564802(_0xb3705f,_0x50cf31,_0x2defc4,_0x268b13){const _0x394995=_0x137662;var _0x198015=arguments[_0x394995(0x1c5)],_0x12f11b=_0x198015<0x3?_0x50cf31:_0x268b13===null?_0x268b13=Object['getOwnPropertyDescriptor'](_0x50cf31,_0x2defc4):_0x268b13,_0x30538d;if(typeof Reflect==_0x394995(0x1a8)&&typeof Reflect[_0x394995(0x15b)]==_0x394995(0x18e))_0x12f11b=Reflect['decorate'](_0xb3705f,_0x50cf31,_0x2defc4,_0x268b13);else{for(var _0x20614a=_0xb3705f[_0x394995(0x1c5)]-0x1;_0x20614a>=0x0;_0x20614a--)(_0x30538d=_0xb3705f[_0x20614a])&&(_0x12f11b=(_0x198015<0x3?_0x30538d(_0x12f11b):_0x198015>0x3?_0x30538d(_0x50cf31,_0x2defc4,_0x12f11b):_0x30538d(_0x50cf31,_0x2defc4))||_0x12f11b);}return _0x198015>0x3&&_0x12f11b&&Object[_0x394995(0x1c9)](_0x50cf31,_0x2defc4,_0x12f11b),_0x12f11b;}let _0x3e9189=class extends _0x40648e[_0x137662(0x190)]{constructor(_0x42e9ea=_0x42aa4c,_0x4f99f7,_0x57b09d,_0x56d01a){const _0x599d4f=_0x137662;super(),this['_config']=_0x42e9ea,this[_0x599d4f(0x1c8)]=_0x4f99f7,this[_0x599d4f(0x17d)]=_0x57b09d,this['_configService']=_0x56d01a;let {..._0x4f938d}=(0x0,_0x40648e[_0x599d4f(0x167)])({},_0x42aa4c,this[_0x599d4f(0x1b6)]);this['_configService'][_0x599d4f(0x1b1)](_0x599d4f(0x176),_0x4f938d);}['onStarting'](){const _0x289211=_0x137662;[[_0x480740,{'useClass':_0x53d152}]][_0x289211(0x1a0)](_0xa9fdae=>this['_injector']['add'](_0xa9fdae)),this[_0x289211(0x19b)](this[_0x289211(0x17d)][_0x289211(0x153)](_0x1ea9e7));}};_0xe162cc(_0x3e9189,_0x137662(0x17a),'UNIVER_INK_PLUGIN'),_0xe162cc(_0x3e9189,'packageName',_0x11335c),_0xe162cc(_0x3e9189,_0x137662(0x1be),_0x6f17dc),_0xe162cc(_0x3e9189,_0x137662(0x170),_0x40648e[_0x137662(0x1bf)][_0x137662(0x15d)]),_0x3e9189=_0x564802([(0x0,_0x40648e[_0x137662(0x1ad)])(_0x2d38e6['UniverLicensePlugin']),_0xf6f5c3(0x1,(0x0,_0x40648e[_0x137662(0x195)])(_0x40648e[_0x137662(0x182)])),_0xf6f5c3(0x2,_0x40648e[_0x137662(0x181)]),_0xf6f5c3(0x3,_0x40648e[_0x137662(0x1ae)])],_0x3e9189),_0xb67b0b[_0x137662(0x15f)]=_0x480740,Object[_0x137662(0x1c9)](_0xb67b0b,_0x137662(0x1bb),{'enumerable':!0x0,'get':function(){return _0x3e9189;}}),_0xb67b0b['buildInkCustomShapePayload']=_0x3144d4,_0xb67b0b[_0x137662(0x1a1)]=_0x24bd60,_0xb67b0b['cycleInkPenAnchorPointType']=_0x23423e,_0xb67b0b[_0x137662(0x19c)]=_0x55273e,_0xb67b0b[_0x137662(0x18a)]=_0x2cba02,_0xb67b0b[_0x137662(0x1d2)]=_0x1c937b,_0xb67b0b[_0x137662(0x1ce)]=_0xd4a653,_0xb67b0b['getInkPenPreviewModel']=_0x201a13,_0xb67b0b[_0x137662(0x179)]=_0x18ee5c,_0xb67b0b[_0x137662(0x1d0)]=_0x15ba84,_0xb67b0b[_0x137662(0x19a)]=_0xeda49c,_0xb67b0b[_0x137662(0x1b2)]=_0x520d23;}));function _0x2077(_0x2ed9c0,_0x3ede80){_0x2ed9c0=_0x2ed9c0-0x151;const _0x41f478=_0x41f4();let _0x2077e6=_0x41f478[_0x2ed9c0];return _0x2077e6;}function _0x41f4(){const _0x26053c=['2BDyoMk','UNIVER_UNKNOWN','ShapeTypeEnum','IInkHostAdapterService','startIndex','iterator','anchors','#f54a45','corner','SolidFill','symmetric','merge','@univerjs-pro/engine-shape','pointType','endIndex','tool','ShapeLineCapEnum','points','segmentIndex','toPrimitive','type','ratio','start','sqrt','smooth','toStringTag','ink.config','12374544nALWvy','closed','insertInkPenAnchorAt','pluginName','find','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_commandService','4qkfgxb','ink.operation.start','@univerjs/core','ICommandService','Injector','out','createIdentifier','beginInkMode','exports','11iYJGmC','get','round','findClosestInkPenHandle','@univerjs-pro/license','Rect','10832ihpWCp','function','amd','Plugin','ShapeLineJoinEnum','point','right','kind','Inject','Round','splice','ShapeLineTypeEnum','CommandType','moveInkPenAnchorPoint','disposeWithMe','deleteInkPenAnchor','_adapters','color','UniverCore','forEach','convertBrushModelToPenModel','indexOf','distance','toDisposable','53090LWQobl','hypot','abs','object','tolerance','3070332EmnlFA','5FeWUhG','anchor','DependentOn','IConfigService','join','push','setConfig','setInkPenAnchorPointType','ink-centerline-','left','NoFill','_config','norm','constructor','2713476INGhzN','height','UniverInkPlugin','symbol','top','version','UniverInstanceType','OPERATION','createCustomShape','map','filter','UniverProEngineShape','length','@univerjs-pro/ink','slice','_injector','defineProperty','free','pen','max','width','getInkModelBounds','4543YrgEQB','isInkPenHandleVisible','registerAdapter','findClosestInkPenSegment','fillColor','1161114iklDiv','ShapeFillEnum','registerCommand','min','opacity','call','string','1068905uSmcHC','end','__ink-preview-anchor__','decorate'];_0x41f4=function(){return _0x26053c;};return _0x41f4();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/ink",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Reusable ink model and geometry integration for Univer.",
|
|
6
6
|
"author": "DreamNum Co., Ltd. <developer@univer.ai>",
|
|
@@ -58,15 +58,15 @@
|
|
|
58
58
|
"lib"
|
|
59
59
|
],
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@univerjs-pro/boards": "1.0.
|
|
62
|
-
"@univerjs-pro/engine-shape": "1.0.
|
|
63
|
-
"@univerjs-pro/license": "1.0.
|
|
64
|
-
"@univerjs/core": "1.0.
|
|
61
|
+
"@univerjs-pro/boards": "1.0.1",
|
|
62
|
+
"@univerjs-pro/engine-shape": "1.0.1",
|
|
63
|
+
"@univerjs-pro/license": "1.0.1",
|
|
64
|
+
"@univerjs/core": "1.0.1"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@univerjs-infra/shared": "1.0.
|
|
67
|
+
"@univerjs-infra/shared": "1.0.1",
|
|
68
68
|
"typescript": "^6.0.3",
|
|
69
|
-
"vitest": "^
|
|
69
|
+
"vitest": "^5.0.0"
|
|
70
70
|
},
|
|
71
71
|
"scripts": {
|
|
72
72
|
"test": "vitest run",
|