@univerjs-pro/ink 1.0.0-insiders.20260707-70502d7

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/README.md ADDED
@@ -0,0 +1,47 @@
1
+ # @univerjs-pro/ink
2
+
3
+ [![npm version](https://img.shields.io/npm/v/@univerjs-pro/ink?style=flat-square)](https://npmjs.com/package/@univerjs-pro/ink)
4
+ [![downloads](https://img.shields.io/npm/dm/@univerjs-pro/ink?style=flat-square)](https://npmjs.com/package/@univerjs-pro/ink)
5
+
6
+ `@univerjs-pro/ink` provides shared ink model, geometry, shape payload, and host adapter support for Univer.
7
+
8
+ ## Package Overview
9
+
10
+ | Package | UMD global | CSS | Locales | Facade entry |
11
+ | --- | --- | :---: | :---: | :---: |
12
+ | `@univerjs-pro/ink` | `UniverProInk` | No | No | No |
13
+
14
+ ## Capabilities
15
+
16
+ - Registers `StartInkOperation` and the ink host adapter service.
17
+ - Provides brush and pen model types for sampled paths, anchor points, handles, styles, and bounds.
18
+ - Builds SVG paths and custom shape payloads for ink content that needs to be stored or rendered by a host package.
19
+ - Provides pen editing helpers for inserting, deleting, moving, converting, and hit-testing anchors and handles.
20
+ - Keeps ink host integration reusable so board UI and future host packages can share the same ink core.
21
+
22
+ ## Installation
23
+
24
+ ```sh
25
+ pnpm add @univerjs-pro/ink
26
+ # or
27
+ npm install @univerjs-pro/ink
28
+ ```
29
+
30
+ Keep all `@univerjs/*` and `@univerjs-pro/*` packages on the same version.
31
+
32
+ ## Usage
33
+
34
+ ```ts
35
+ import { UniverInkPlugin } from '@univerjs-pro/ink';
36
+
37
+ univer.registerPlugin(UniverInkPlugin);
38
+ ```
39
+
40
+ ## Integration Notes
41
+
42
+ This package provides the model and command layer. Register `@univerjs-pro/ink-ui` for toolbar state, floating UI, outside interaction handling, and host-driven user interactions.
43
+
44
+ ## Resources
45
+
46
+ - [Documentation](https://docs.univer.ai/guides/pro)
47
+ - [NPM package](https://npmjs.com/package/@univerjs-pro/ink)
@@ -0,0 +1 @@
1
+ const _0xa0cd7c=_0x1248;(function(_0x33345f,_0x41af6e){const _0x51ffe7=_0x1248,_0x39b303=_0x33345f();while(!![]){try{const _0x2636d1=-parseInt(_0x51ffe7(0x157))/0x1+-parseInt(_0x51ffe7(0x1b0))/0x2+parseInt(_0x51ffe7(0x155))/0x3+-parseInt(_0x51ffe7(0x1b4))/0x4*(-parseInt(_0x51ffe7(0x195))/0x5)+parseInt(_0x51ffe7(0x1af))/0x6+-parseInt(_0x51ffe7(0x177))/0x7*(-parseInt(_0x51ffe7(0x19a))/0x8)+parseInt(_0x51ffe7(0x1aa))/0x9*(-parseInt(_0x51ffe7(0x187))/0xa);if(_0x2636d1===_0x41af6e)break;else _0x39b303['push'](_0x39b303['shift']());}catch(_0x24b195){_0x39b303['push'](_0x39b303['shift']());}}}(_0x2c98,0xe23ea),Object['defineProperty'](exports,Symbol[_0xa0cd7c(0x179)],{'value':'Module'}));let e=require('@univerjs-pro/engine-shape'),t=require('@univerjs-pro/license'),n=require('@univerjs/core');const r=0.0001;function i(_0x5ecd00){return{'x':_0x5ecd00['x'],'y':_0x5ecd00['y']};}function _0x1248(_0x3de1fd,_0x4dc7f8){_0x3de1fd=_0x3de1fd-0x14b;const _0x2c98c5=_0x2c98();let _0x12485f=_0x2c98c5[_0x3de1fd];return _0x12485f;}function a(_0x55ca86){const _0x11b13d=_0xa0cd7c;return{..._0x55ca86,'in':_0x55ca86['in']?i(_0x55ca86['in']):void 0x0,'out':_0x55ca86[_0x11b13d(0x1a1)]?i(_0x55ca86[_0x11b13d(0x1a1)]):void 0x0};}function o(_0x2a631d){const _0x3ba534=_0xa0cd7c;return{'kind':_0x3ba534(0x164),'closed':_0x2a631d[_0x3ba534(0x16b)],'anchors':_0x2a631d[_0x3ba534(0x173)][_0x3ba534(0x19e)](a)};}function s(_0x3ce6f0,_0xfbcb15,_0x2cd64d){return{'x':_0x3ce6f0['x']+(_0xfbcb15['x']-_0x3ce6f0['x'])*_0x2cd64d,'y':_0x3ce6f0['y']+(_0xfbcb15['y']-_0x3ce6f0['y'])*_0x2cd64d};}function c(_0x388164,_0x35905a){const _0xf5ea4e=_0xa0cd7c;return Math[_0xf5ea4e(0x16a)](_0x388164['x']-_0x35905a['x'],_0x388164['y']-_0x35905a['y']);}function l(_0x4711d0){const _0x11954b=_0xa0cd7c;let _0x150ee2=Math[_0x11954b(0x16a)](_0x4711d0['x'],_0x4711d0['y']);return _0x150ee2<r?{'x':0x1,'y':0x0}:{'x':_0x4711d0['x']/_0x150ee2,'y':_0x4711d0['y']/_0x150ee2};}function u(_0x23dc64,_0x209fc8,_0x656ca5=c(_0x23dc64,_0x209fc8)){let _0x1f2bf1=l({'x':_0x23dc64['x']-_0x209fc8['x'],'y':_0x23dc64['y']-_0x209fc8['y']});return{'x':_0x23dc64['x']+_0x1f2bf1['x']*_0x656ca5,'y':_0x23dc64['y']+_0x1f2bf1['y']*_0x656ca5};}function d(_0x205bae,_0x296792){const _0x1f7252=_0xa0cd7c;let {anchors:_0x51c02b}=_0x205bae;return _0x51c02b[_0x1f7252(0x1a5)]<0x2||_0x296792<0x0?null:_0x296792<_0x51c02b[_0x1f7252(0x1a5)]-0x1?{'startIndex':_0x296792,'endIndex':_0x296792+0x1,'start':_0x51c02b[_0x296792],'end':_0x51c02b[_0x296792+0x1]}:_0x205bae[_0x1f7252(0x16b)]&&_0x296792===_0x51c02b[_0x1f7252(0x1a5)]-0x1?{'startIndex':_0x51c02b[_0x1f7252(0x1a5)]-0x1,'endIndex':0x0,'start':_0x51c02b[_0x51c02b[_0x1f7252(0x1a5)]-0x1],'end':_0x51c02b[0x0]}:null;}function f(_0x3180af,_0x53531a){const _0x251555=_0xa0cd7c;var _0x1f7f55,_0x4707d2;let _0x5a9237=d(_0x3180af,_0x53531a);return _0x5a9237?[_0x5a9237[_0x251555(0x1ad)],(_0x1f7f55=_0x5a9237['start']['out'])==null?_0x5a9237[_0x251555(0x1ad)]:_0x1f7f55,(_0x4707d2=_0x5a9237[_0x251555(0x1b5)]['in'])==null?_0x5a9237[_0x251555(0x1b5)]:_0x4707d2,_0x5a9237[_0x251555(0x1b5)]]:null;}function p(_0x28de68,_0x20d663){const _0x28342f=_0xa0cd7c;var _0x50058b;return _0x20d663===_0x28342f(0x15c)?_0x28de68:(_0x50058b=_0x28de68[_0x20d663])==null?null:_0x50058b;}function m(_0x525b99,_0x21488c,_0x4131b9){const _0x25181a=_0xa0cd7c;return _0x4131b9===_0x25181a(0x15c)||_0x525b99[_0x25181a(0x16b)]?!0x0:_0x4131b9==='in'?_0x21488c>0x0:_0x21488c<_0x525b99[_0x25181a(0x173)][_0x25181a(0x1a5)]-0x1;}function h(_0x307e02,_0x5403d3){let [_0x5ba142,_0x58f5cf,_0x161574,_0x34540e]=_0x307e02,_0x45e244=s(_0x5ba142,_0x58f5cf,_0x5403d3),_0x42d1db=s(_0x58f5cf,_0x161574,_0x5403d3),_0xbc9f2c=s(_0x161574,_0x34540e,_0x5403d3);return s(s(_0x45e244,_0x42d1db,_0x5403d3),s(_0x42d1db,_0xbc9f2c,_0x5403d3),_0x5403d3);}function g(_0x433792,_0x2c9d2b){let [_0x178dde,_0x622611,_0x321b94,_0x50ea88]=_0x433792,_0x49a0eb=s(_0x178dde,_0x622611,_0x2c9d2b),_0x46f2a6=s(_0x622611,_0x321b94,_0x2c9d2b),_0x33232d=s(_0x321b94,_0x50ea88,_0x2c9d2b),_0x236cd0=s(_0x49a0eb,_0x46f2a6,_0x2c9d2b),_0x30d997=s(_0x46f2a6,_0x33232d,_0x2c9d2b),_0x195d66=s(_0x236cd0,_0x30d997,_0x2c9d2b);return{'left':[_0x178dde,_0x49a0eb,_0x236cd0,_0x195d66],'right':[_0x195d66,_0x30d997,_0x33232d,_0x50ea88]};}function _(_0x1aa5af,_0x7149e8,_0x29b2e7){const _0x369694=_0xa0cd7c;let _0x21f3ae=_0x29b2e7['x']-_0x7149e8['x'],_0x313c92=_0x29b2e7['y']-_0x7149e8['y'],_0x4a0300=_0x21f3ae*_0x21f3ae+_0x313c92*_0x313c92,_0x1b6640=_0x4a0300<=r?0x0:Math[_0x369694(0x152)](0x0,Math[_0x369694(0x184)](0x1,((_0x1aa5af['x']-_0x7149e8['x'])*_0x21f3ae+(_0x1aa5af['y']-_0x7149e8['y'])*_0x313c92)/_0x4a0300)),_0x4ff854={'x':_0x7149e8['x']+_0x21f3ae*_0x1b6640,'y':_0x7149e8['y']+_0x313c92*_0x1b6640};return{'point':_0x4ff854,'ratio':_0x1b6640,'distance':c(_0x1aa5af,_0x4ff854)};}function ee(_0x904d6c,_0x3b7e29,_0x582e61){const _0x122ea7=_0xa0cd7c;return _(_0x904d6c,_0x3b7e29,_0x582e61)[_0x122ea7(0x182)]**0x2;}function v(_0x1d2520,_0x6a2090){const _0x3fbc20=_0xa0cd7c;if(_0x1d2520[_0x3fbc20(0x1a5)]<=0x2)return _0x1d2520[_0x3fbc20(0x19e)](i);let _0x57f205=0x0,_0x474a6c=0x0,_0x535c9c=_0x1d2520[0x0],_0x3a045e=_0x1d2520[_0x1d2520[_0x3fbc20(0x1a5)]-0x1],_0x5c86dd=_0x6a2090*_0x6a2090;for(let _0x3f97b2=0x1;_0x3f97b2<_0x1d2520[_0x3fbc20(0x1a5)]-0x1;_0x3f97b2++){let _0x2153c9=ee(_0x1d2520[_0x3f97b2],_0x535c9c,_0x3a045e);_0x2153c9>_0x57f205&&(_0x57f205=_0x2153c9,_0x474a6c=_0x3f97b2);}if(_0x57f205<=_0x5c86dd)return[i(_0x535c9c),i(_0x3a045e)];let _0x21083e=v(_0x1d2520[_0x3fbc20(0x17c)](0x0,_0x474a6c+0x1),_0x6a2090),_0xedb7f=v(_0x1d2520[_0x3fbc20(0x17c)](_0x474a6c),_0x6a2090);return[..._0x21083e[_0x3fbc20(0x17c)](0x0,-0x1),..._0xedb7f];}function te(_0x1f242c,_0x1e0c8f){var _0x9f5488;let _0x2eea7e=_0x1f242c[_0x1e0c8f],_0x5b2cb4=_0x1f242c[_0x1e0c8f+0x1],_0x5c764f=(_0x9f5488=_0x1f242c[_0x1e0c8f-0x1])==null?_0x2eea7e:_0x9f5488;return{'x':_0x2eea7e['x']+(_0x5b2cb4['x']-_0x5c764f['x'])/0x6,'y':_0x2eea7e['y']+(_0x5b2cb4['y']-_0x5c764f['y'])/0x6};}function y(_0x2f13b1,_0x265dc4){var _0x22f3c7;let _0x5d1fbc=_0x2f13b1[_0x265dc4],_0x4ba01a=_0x2f13b1[_0x265dc4-0x1],_0x120d9f=(_0x22f3c7=_0x2f13b1[_0x265dc4+0x1])==null?_0x5d1fbc:_0x22f3c7;return{'x':_0x5d1fbc['x']-(_0x120d9f['x']-_0x4ba01a['x'])/0x6,'y':_0x5d1fbc['y']-(_0x120d9f['y']-_0x4ba01a['y'])/0x6};}function b(_0x216e49,_0x3e14f2){const _0x44dd9b=_0xa0cd7c;var _0x1a953b,_0x3aac3b;let _0x48fb22=_0x216e49[_0x44dd9b(0x173)][_0x3e14f2],_0x30833b=(_0x1a953b=_0x216e49[_0x44dd9b(0x173)][_0x3e14f2-0x1])==null?_0x216e49[_0x44dd9b(0x16b)]?_0x216e49[_0x44dd9b(0x173)][_0x216e49[_0x44dd9b(0x173)][_0x44dd9b(0x1a5)]-0x1]:null:_0x1a953b,_0x462350=(_0x3aac3b=_0x216e49[_0x44dd9b(0x173)][_0x3e14f2+0x1])==null?_0x216e49[_0x44dd9b(0x16b)]?_0x216e49['anchors'][0x0]:null:_0x3aac3b,_0x3f6025=_0x30833b&&_0x462350?l({'x':_0x462350['x']-_0x30833b['x'],'y':_0x462350['y']-_0x30833b['y']}):_0x462350?l({'x':_0x462350['x']-_0x48fb22['x'],'y':_0x462350['y']-_0x48fb22['y']}):_0x30833b?l({'x':_0x48fb22['x']-_0x30833b['x'],'y':_0x48fb22['y']-_0x30833b['y']}):{'x':0x1,'y':0x0},_0x1108c6=_0x30833b&&_0x462350?Math[_0x44dd9b(0x152)](0x32,c(_0x30833b,_0x462350)/0x4):0x32;return{'in':{'x':_0x48fb22['x']-_0x3f6025['x']*_0x1108c6,'y':_0x48fb22['y']-_0x3f6025['y']*_0x1108c6},'out':{'x':_0x48fb22['x']+_0x3f6025['x']*_0x1108c6,'y':_0x48fb22['y']+_0x3f6025['y']*_0x1108c6}};}function x(_0x4e06ce,_0x50ff13){const _0x596955=_0xa0cd7c;let _0x3ee29c=_0x4e06ce[_0x50ff13],_0x15d81c=_0x50ff13==='in'?_0x596955(0x1a1):'in',_0x8e1a78=_0x4e06ce[_0x15d81c];if(_0x3ee29c){if(_0x4e06ce[_0x596955(0x175)]===_0x596955(0x14b)){_0x4e06ce[_0x15d81c]=u(_0x4e06ce,_0x3ee29c);return;}_0x4e06ce[_0x596955(0x175)]===_0x596955(0x192)&&(_0x4e06ce[_0x15d81c]=u(_0x4e06ce,_0x3ee29c,_0x8e1a78?c(_0x4e06ce,_0x8e1a78):c(_0x4e06ce,_0x3ee29c)));}}function ne(_0x2d9824,_0x507b46){const _0xfafd6=_0xa0cd7c;let _0x3cfcfe=o(_0x2d9824);return!_0x507b46||_0x3cfcfe['closed']||_0x3cfcfe[_0xfafd6(0x173)][_0xfafd6(0x1a5)]===0x0||_0x3cfcfe[_0xfafd6(0x173)][_0xfafd6(0x197)]({'id':_0xfafd6(0x18d),'x':_0x507b46['x'],'y':_0x507b46['y'],'pointType':_0xfafd6(0x198)}),_0x3cfcfe;}function re(_0x31f4bb,_0x557220={}){const _0x369810=_0xa0cd7c;var _0x375ddc,_0x380678;let _0x5a171d=Math['max'](0x0,(_0x375ddc=_0x557220['tolerance'])==null?Math[_0x369810(0x152)](0x4,_0x31f4bb[_0x369810(0x156)]*0.35):_0x375ddc),_0x54ff84=(_0x380678=_0x557220['createId'])==null?_0x1c6581=>_0x369810(0x1a0)+_0x1c6581:_0x380678,_0x2c277d=v(_0x31f4bb[_0x369810(0x1b1)],_0x5a171d),_0x1e1c7f=_0x2c277d[_0x369810(0x19e)]((_0x4a4621,_0x210a97)=>({'id':_0x54ff84(_0x210a97),'x':_0x4a4621['x'],'y':_0x4a4621['y'],'pointType':'free'}));for(let _0x42e6b5=0x0;_0x42e6b5<_0x1e1c7f[_0x369810(0x1a5)]-0x1;_0x42e6b5++)_0x1e1c7f[_0x42e6b5][_0x369810(0x1a1)]=te(_0x2c277d,_0x42e6b5),_0x1e1c7f[_0x42e6b5+0x1]['in']=y(_0x2c277d,_0x42e6b5+0x1);return{'kind':_0x369810(0x164),'closed':!0x1,'anchors':_0x1e1c7f};}function S(_0x12c88d,_0x577a56,_0x13b325){const _0x32018e=_0xa0cd7c;let _0x2a114f=null,_0x7dcced=[_0x32018e(0x15c),'in',_0x32018e(0x1a1)];return _0x12c88d[_0x32018e(0x173)][_0x32018e(0x17a)]((_0x3bae46,_0x5e596c)=>{const _0x20b44f=_0x32018e;_0x7dcced[_0x20b44f(0x17a)](_0x1235e8=>{const _0x4cfc90=_0x20b44f;if(!m(_0x12c88d,_0x5e596c,_0x1235e8))return;let _0x337c8b=p(_0x3bae46,_0x1235e8);if(!_0x337c8b)return;let _0x45b819=c(_0x577a56,_0x337c8b);_0x45b819>_0x13b325||_0x2a114f&&_0x45b819>=_0x2a114f[_0x4cfc90(0x182)]||(_0x2a114f={'handle':{'kind':_0x1235e8,'anchorId':_0x3bae46['id']},'point':i(_0x337c8b),'distance':_0x45b819});});}),_0x2a114f;}function C(_0x5e69ed,_0x4ca2d8,_0x3ab07b){const _0x47232e=_0xa0cd7c;let _0x4bcc47=null,_0x4b4adf=_0x5e69ed['closed']?_0x5e69ed[_0x47232e(0x173)][_0x47232e(0x1a5)]:Math[_0x47232e(0x152)](0x0,_0x5e69ed[_0x47232e(0x173)][_0x47232e(0x1a5)]-0x1);for(let _0x949d46=0x0;_0x949d46<_0x4b4adf;_0x949d46++){let _0x1081d2=f(_0x5e69ed,_0x949d46);if(!_0x1081d2)continue;let _0x24c40a=h(_0x1081d2,0x0);for(let _0x20c867=0x1;_0x20c867<=0x20;_0x20c867++){let _0x1ae5fe=h(_0x1081d2,_0x20c867/0x20),_0x1f1ca4=_(_0x4ca2d8,_0x24c40a,_0x1ae5fe),_0x35b4d2=(_0x20c867-0x1+_0x1f1ca4['ratio'])/0x20;(!_0x4bcc47||_0x1f1ca4[_0x47232e(0x182)]<_0x4bcc47[_0x47232e(0x182)])&&(_0x4bcc47={'segmentIndex':_0x949d46,'t':_0x35b4d2,'point':_0x1f1ca4[_0x47232e(0x1ab)],'distance':_0x1f1ca4[_0x47232e(0x182)]}),_0x24c40a=_0x1ae5fe;}}return _0x4bcc47&&_0x4bcc47[_0x47232e(0x182)]<=_0x3ab07b?_0x4bcc47:null;}function w(_0x4b7758,_0x5ae6ca,_0x598622){const _0x445982=_0xa0cd7c;let _0x41f376=o(_0x4b7758),_0x2ea35d=d(_0x41f376,_0x5ae6ca[_0x445982(0x16e)]),_0x127e30=f(_0x41f376,_0x5ae6ca[_0x445982(0x16e)]);if(!_0x2ea35d||!_0x127e30)return _0x41f376;let _0x404218=g(_0x127e30,Math[_0x445982(0x152)](0x0,Math['min'](0x1,_0x5ae6ca['t']))),_0x33f058={'id':_0x598622(),'x':_0x404218[_0x445982(0x153)][0x3]['x'],'y':_0x404218['left'][0x3]['y'],'in':i(_0x404218[_0x445982(0x153)][0x2]),'out':i(_0x404218['right'][0x1]),'pointType':_0x445982(0x1b2)};return _0x41f376['anchors'][_0x2ea35d[_0x445982(0x15d)]]['out']=i(_0x404218[_0x445982(0x153)][0x1]),_0x41f376[_0x445982(0x173)][_0x2ea35d[_0x445982(0x1ac)]]['in']=i(_0x404218['right'][0x2]),_0x41f376[_0x445982(0x173)][_0x445982(0x154)](_0x2ea35d['startIndex']+0x1,0x0,_0x33f058),_0x41f376;}function _0x2c98(){const _0xbcad=['corner','fillColor','328HgrOPS','Rect','cycleInkPenAnchorPointType','findClosestInkPenSegment','map','createCustomShape','ink-centerline-','out','symbol','_injector','DependentOn','length','SolidFill','@univerjs-pro/ink','isInkPenHandleVisible','norm','8884413ghVQrP','point','endIndex','start','decorate','2697672XZmoKI','547772lBwlCL','points','free','ICommandService','596kYxYAw','end','ink.config','OPERATION','#f54a45','filter','registerCommand','ink.host-adapter.service','symmetric','SolidLine','UniverLicensePlugin','call','beginInkMode','deleteInkPenAnchor','_adapters','max','left','splice','1533429BsCehT','width','576477JZGmNT','findIndex','createIdentifier','Plugin','moveInkPenAnchorPoint','anchor','startIndex','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','iterator','convertBrushModelToPenModel','disposeWithMe','ink.operation.start','find','pen','indexOf','toDisposable','IConfigService','constructor','ShapeLineCapEnum','hypot','closed','pluginName','CommandType','segmentIndex','default','round','type','kind','anchors','_configService','pointType','Inject','228137RsMnax','Round','toStringTag','forEach','opacity','slice','anchorId','object','getInkModelBounds','tool','defineProperty','distance','UniverInstanceType','min','ShapeFillEnum','add','20YcPvyZ','insertInkPenAnchorAt','function','setConfig','get','UNIVER_UNKNOWN','__ink-preview-anchor__','ShapeLineJoinEnum','abs','color','string','smooth','join','toPrimitive','48805hXeSoM','UniverInkPlugin','push'];_0x2c98=function(){return _0xbcad;};return _0x2c98();}function T(_0x17f0c5,_0x32ba9c){const _0x5924e3=_0xa0cd7c;let _0x11acf1=o(_0x17f0c5);return _0x11acf1[_0x5924e3(0x173)]=_0x11acf1[_0x5924e3(0x173)][_0x5924e3(0x1b9)](_0x5c8aef=>_0x5c8aef['id']!==_0x32ba9c),_0x11acf1[_0x5924e3(0x16b)]&&_0x11acf1[_0x5924e3(0x173)]['length']<0x3&&(_0x11acf1[_0x5924e3(0x16b)]=!0x1),_0x11acf1;}function E(_0x31bee4,_0x56a3fd,_0x18db63){const _0x26a966=_0xa0cd7c;let _0x4f0aa6=o(_0x31bee4),_0x21458e=_0x4f0aa6[_0x26a966(0x173)][_0x26a966(0x158)](_0x383d2a=>_0x383d2a['id']===_0x56a3fd),_0x2de6fb=_0x4f0aa6[_0x26a966(0x173)][_0x21458e];if(!_0x2de6fb)return _0x4f0aa6;if(_0x2de6fb[_0x26a966(0x175)]=_0x18db63,_0x18db63===_0x26a966(0x198))return delete _0x2de6fb['in'],delete _0x2de6fb[_0x26a966(0x1a1)],_0x4f0aa6;let _0x18f237=b(_0x4f0aa6,_0x21458e);if(_0x2de6fb['in']=_0x2de6fb['in']?i(_0x2de6fb['in']):_0x18f237['in'],_0x2de6fb[_0x26a966(0x1a1)]=_0x2de6fb['out']?i(_0x2de6fb['out']):_0x18f237['out'],_0x18db63===_0x26a966(0x14b)){let _0x2fab0a=Math[_0x26a966(0x152)](c(_0x2de6fb,_0x2de6fb['in']),c(_0x2de6fb,_0x2de6fb[_0x26a966(0x1a1)]),0x32),_0x46e2c1=l({'x':_0x2de6fb[_0x26a966(0x1a1)]['x']-_0x2de6fb['x'],'y':_0x2de6fb[_0x26a966(0x1a1)]['y']-_0x2de6fb['y']});_0x2de6fb[_0x26a966(0x1a1)]={'x':_0x2de6fb['x']+_0x46e2c1['x']*_0x2fab0a,'y':_0x2de6fb['y']+_0x46e2c1['y']*_0x2fab0a},_0x2de6fb['in']={'x':_0x2de6fb['x']-_0x46e2c1['x']*_0x2fab0a,'y':_0x2de6fb['y']-_0x46e2c1['y']*_0x2fab0a};}else _0x18db63==='smooth'&&x(_0x2de6fb,_0x26a966(0x1a1));return _0x4f0aa6;}function ie(_0x3d284a,_0x473412){const _0x5ed5fb=_0xa0cd7c;var _0x16d708;let _0x3d51e8=_0x3d284a['anchors']['find'](_0x30593d=>_0x30593d['id']===_0x473412),_0x2309aa=(_0x16d708=_0x3d51e8==null?void 0x0:_0x3d51e8['pointType'])==null?'corner':_0x16d708;return E(_0x3d284a,_0x473412,_0x2309aa===_0x5ed5fb(0x198)?'smooth':_0x2309aa===_0x5ed5fb(0x192)?_0x5ed5fb(0x14b):_0x2309aa===_0x5ed5fb(0x14b)?_0x5ed5fb(0x1b2):_0x5ed5fb(0x198));}function ae(_0x7aac7,_0x410942,_0x1dd575){const _0x65a95e=_0xa0cd7c;let _0xd4aac=o(_0x7aac7),_0x4777c7=_0xd4aac['anchors'][_0x65a95e(0x163)](_0x4e50e2=>_0x4e50e2['id']===_0x410942[_0x65a95e(0x17d)]);if(!_0x4777c7)return _0xd4aac;if(_0x410942[_0x65a95e(0x172)]===_0x65a95e(0x15c)){let _0x5bf171={'x':_0x1dd575['x']-_0x4777c7['x'],'y':_0x1dd575['y']-_0x4777c7['y']};return _0x4777c7['x']=_0x1dd575['x'],_0x4777c7['y']=_0x1dd575['y'],_0x4777c7['in']&&(_0x4777c7['in']={'x':_0x4777c7['in']['x']+_0x5bf171['x'],'y':_0x4777c7['in']['y']+_0x5bf171['y']}),_0x4777c7[_0x65a95e(0x1a1)]&&(_0x4777c7['out']={'x':_0x4777c7[_0x65a95e(0x1a1)]['x']+_0x5bf171['x'],'y':_0x4777c7[_0x65a95e(0x1a1)]['y']+_0x5bf171['y']}),_0xd4aac;}return _0x4777c7[_0x410942[_0x65a95e(0x172)]]=i(_0x1dd575),_0x4777c7[_0x65a95e(0x175)]===_0x65a95e(0x198)&&(_0x4777c7[_0x65a95e(0x175)]=_0x65a95e(0x1b2)),x(_0x4777c7,_0x410942[_0x65a95e(0x172)]),_0xd4aac;}const D=1e-9;function O(_0x22d47e){const _0xf69f1c=_0xa0cd7c;let _0x383366=Math[_0xf69f1c(0x170)](_0x22d47e*0x2710)/0x2710;return Object['is'](_0x383366,-0x0)?'0':String(_0x383366);}function k(_0x506870){return O(_0x506870['x'])+'\x20'+O(_0x506870['y']);}function A(_0x453e8b,_0x15db4c){return{'x':_0x453e8b['x']-_0x15db4c['x'],'y':_0x453e8b['y']-_0x15db4c['y']};}function j(_0x8f0dcf,_0x3860eb,_0x1d13f3,_0x428c8d,_0x49a4dc){let _0x345674=0x1-_0x49a4dc;return{'x':_0x345674*_0x345674*_0x345674*_0x8f0dcf['x']+0x3*_0x345674*_0x345674*_0x49a4dc*_0x3860eb['x']+0x3*_0x345674*_0x49a4dc*_0x49a4dc*_0x1d13f3['x']+_0x49a4dc*_0x49a4dc*_0x49a4dc*_0x428c8d['x'],'y':_0x345674*_0x345674*_0x345674*_0x8f0dcf['y']+0x3*_0x345674*_0x345674*_0x49a4dc*_0x3860eb['y']+0x3*_0x345674*_0x49a4dc*_0x49a4dc*_0x1d13f3['y']+_0x49a4dc*_0x49a4dc*_0x49a4dc*_0x428c8d['y']};}function M(_0x3f16a4,_0x40033e,_0xdc8644,_0x2bcc4e){const _0x5007d4=_0xa0cd7c;let _0x155ac7=-_0x3f16a4+0x3*_0x40033e-0x3*_0xdc8644+_0x2bcc4e,_0x302db9=0x3*_0x3f16a4-0x6*_0x40033e+0x3*_0xdc8644,_0x10157e=-0x3*_0x3f16a4+0x3*_0x40033e,_0x4de919=[];if(Math['abs'](_0x155ac7)<D){if(Math[_0x5007d4(0x18f)](_0x302db9)<D)return _0x4de919;let _0x1fcac9=-_0x10157e/(0x2*_0x302db9);return _0x1fcac9>0x0&&_0x1fcac9<0x1&&_0x4de919['push'](_0x1fcac9),_0x4de919;}let _0x467a2c=_0x302db9*_0x302db9-0x3*_0x155ac7*_0x10157e;if(_0x467a2c<0x0)return _0x4de919;let _0x4b71fe=Math['sqrt'](Math[_0x5007d4(0x152)](0x0,_0x467a2c)),_0x4ccde2=(-_0x302db9+_0x4b71fe)/(0x3*_0x155ac7),_0x17c889=(-_0x302db9-_0x4b71fe)/(0x3*_0x155ac7);return _0x4ccde2>0x0&&_0x4ccde2<0x1&&_0x4de919[_0x5007d4(0x197)](_0x4ccde2),_0x17c889>0x0&&_0x17c889<0x1&&Math[_0x5007d4(0x18f)](_0x17c889-_0x4ccde2)>D&&_0x4de919['push'](_0x17c889),_0x4de919;}function N(_0x4f8b6c,_0x2a87fb,_0x150e2a,_0x5f23d0,_0x1a5f13){const _0x380917=_0xa0cd7c;_0x4f8b6c[_0x380917(0x197)](_0x2a87fb,_0x1a5f13),new Set([...M(_0x2a87fb['x'],_0x150e2a['x'],_0x5f23d0['x'],_0x1a5f13['x']),...M(_0x2a87fb['y'],_0x150e2a['y'],_0x5f23d0['y'],_0x1a5f13['y'])])[_0x380917(0x17a)](_0x120dfb=>{const _0x15267b=_0x380917;_0x4f8b6c[_0x15267b(0x197)](j(_0x2a87fb,_0x150e2a,_0x5f23d0,_0x1a5f13,_0x120dfb));});}function P(_0x1c731a){const _0x661873=_0xa0cd7c;let _0x5a451a=_0x1c731a[_0x661873(0x173)];if(_0x5a451a[_0x661873(0x1a5)]<=0x1)return _0x5a451a;let _0x1cc8a2=[];for(let _0x3a00ec=0x1;_0x3a00ec<_0x5a451a['length'];_0x3a00ec++){var _0x4fb1a5,_0x4eef7c;let _0x57a204=_0x5a451a[_0x3a00ec-0x1],_0x1cf7b1=_0x5a451a[_0x3a00ec];N(_0x1cc8a2,_0x57a204,(_0x4fb1a5=_0x57a204[_0x661873(0x1a1)])==null?_0x57a204:_0x4fb1a5,(_0x4eef7c=_0x1cf7b1['in'])==null?_0x1cf7b1:_0x4eef7c,_0x1cf7b1);}if(_0x1c731a[_0x661873(0x16b)]&&_0x5a451a[_0x661873(0x1a5)]>0x1){var _0x1c298a,_0x1f84d0;let _0x456330=_0x5a451a[_0x5a451a[_0x661873(0x1a5)]-0x1],_0x550bd8=_0x5a451a[0x0];N(_0x1cc8a2,_0x456330,(_0x1c298a=_0x456330[_0x661873(0x1a1)])==null?_0x456330:_0x1c298a,(_0x1f84d0=_0x550bd8['in'])==null?_0x550bd8:_0x1f84d0,_0x550bd8);}return _0x1cc8a2;}function F(_0x325056){const _0x16adc6=_0xa0cd7c;let _0x4e346c=_0x325056['points'];if(_0x4e346c[_0x16adc6(0x1a5)]<=0x1)return _0x4e346c;let _0x27fb2b=[];for(let _0x28b08d=0x0;_0x28b08d<_0x4e346c['length']-0x1;_0x28b08d++){var _0x7c8594,_0x3ec91d;let _0x395eb7=_0x4e346c[_0x28b08d],_0x3a2990=_0x4e346c[_0x28b08d+0x1],_0x239998=(_0x7c8594=_0x4e346c[_0x28b08d-0x1])==null?_0x395eb7:_0x7c8594,_0x24e41f=(_0x3ec91d=_0x4e346c[_0x28b08d+0x2])==null?_0x3a2990:_0x3ec91d;N(_0x27fb2b,_0x395eb7,{'x':_0x395eb7['x']+(_0x3a2990['x']-_0x239998['x'])/0x6,'y':_0x395eb7['y']+(_0x3a2990['y']-_0x239998['y'])/0x6},{'x':_0x3a2990['x']-(_0x24e41f['x']-_0x395eb7['x'])/0x6,'y':_0x3a2990['y']-(_0x24e41f['y']-_0x395eb7['y'])/0x6},_0x3a2990);}return _0x27fb2b;}function I(_0x5bd6fb){const _0x5447bc=_0xa0cd7c;return _0x5bd6fb[_0x5447bc(0x172)]===_0x5447bc(0x164)?P(_0x5bd6fb):F(_0x5bd6fb);}function L(_0x3b3fb4){const _0x5a6350=_0xa0cd7c;let _0xb6127c=Math[_0x5a6350(0x170)](_0x3b3fb4*0x2710)/0x2710;return Object['is'](_0xb6127c,-0x0)?0x0:_0xb6127c;}function R(_0x10a7c7){const _0x2b6a6c=_0xa0cd7c;let _0x310b7a=I(_0x10a7c7);if(_0x310b7a[_0x2b6a6c(0x1a5)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x196ae5=Math[_0x2b6a6c(0x184)](..._0x310b7a[_0x2b6a6c(0x19e)](_0x34f312=>_0x34f312['x'])),_0x54fb05=Math['min'](..._0x310b7a[_0x2b6a6c(0x19e)](_0x4fea5d=>_0x4fea5d['y'])),_0x5dbd5c=Math[_0x2b6a6c(0x152)](..._0x310b7a[_0x2b6a6c(0x19e)](_0x5d1e4d=>_0x5d1e4d['x'])),_0x377d66=Math[_0x2b6a6c(0x152)](..._0x310b7a[_0x2b6a6c(0x19e)](_0x44f427=>_0x44f427['y']));return{'left':L(_0x196ae5),'top':L(_0x54fb05),'width':L(Math[_0x2b6a6c(0x152)](0x1,_0x5dbd5c-_0x196ae5)),'height':L(Math[_0x2b6a6c(0x152)](0x1,_0x377d66-_0x54fb05))};}function z(_0x22618b,_0x213e7a){const _0x4216bf=_0xa0cd7c;let _0x28c70d=_0x22618b[_0x4216bf(0x173)];if(_0x28c70d[_0x4216bf(0x1a5)]===0x0)return'';let _0x431f1b=['M\x20'+k(A(_0x28c70d[0x0],_0x213e7a))];for(let _0x25106e=0x1;_0x25106e<_0x28c70d[_0x4216bf(0x1a5)];_0x25106e++){var _0x4f8fac,_0xaf2fb8;let _0x438788=_0x28c70d[_0x25106e-0x1],_0x5529e0=_0x28c70d[_0x25106e],_0x233367=(_0x4f8fac=_0x438788[_0x4216bf(0x1a1)])==null?_0x438788:_0x4f8fac,_0x4babd9=(_0xaf2fb8=_0x5529e0['in'])==null?_0x5529e0:_0xaf2fb8;_0x431f1b[_0x4216bf(0x197)]('C\x20'+k(A(_0x233367,_0x213e7a))+'\x20'+k(A(_0x4babd9,_0x213e7a))+'\x20'+k(A(_0x5529e0,_0x213e7a)));}if(_0x22618b[_0x4216bf(0x16b)]&&_0x28c70d[_0x4216bf(0x1a5)]>0x1){var _0x3ed19e,_0x5bd511;let _0x82773a=_0x28c70d[_0x28c70d[_0x4216bf(0x1a5)]-0x1],_0x29d4ba=_0x28c70d[0x0],_0x2df932=(_0x3ed19e=_0x82773a[_0x4216bf(0x1a1)])==null?_0x82773a:_0x3ed19e,_0x93fb75=(_0x5bd511=_0x29d4ba['in'])==null?_0x29d4ba:_0x5bd511;_0x431f1b[_0x4216bf(0x197)]('C\x20'+k(A(_0x2df932,_0x213e7a))+'\x20'+k(A(_0x93fb75,_0x213e7a))+'\x20'+k(A(_0x29d4ba,_0x213e7a))),_0x431f1b[_0x4216bf(0x197)]('Z');}return _0x431f1b['join']('\x20');}function B(_0x35aa3a,_0x2e31df){return A(_0x35aa3a,_0x2e31df);}function V(_0x334f69,_0x18ee3f){const _0x23e9f5=_0xa0cd7c;let _0x1c6f85=_0x334f69['points'][_0x23e9f5(0x19e)](_0x542769=>B(_0x542769,_0x18ee3f));if(_0x1c6f85[_0x23e9f5(0x1a5)]===0x0)return'';if(_0x1c6f85['length']===0x1)return'M\x20'+k(_0x1c6f85[0x0]);let _0xcb32de=['M\x20'+k(_0x1c6f85[0x0])];for(let _0x357d91=0x0;_0x357d91<_0x1c6f85[_0x23e9f5(0x1a5)]-0x1;_0x357d91++){var _0x3b4efa,_0x1d1402;let _0x5b4ea8=_0x1c6f85[_0x357d91],_0x53bcda=_0x1c6f85[_0x357d91+0x1],_0xbec276=(_0x3b4efa=_0x1c6f85[_0x357d91-0x1])==null?_0x5b4ea8:_0x3b4efa,_0x18a330=(_0x1d1402=_0x1c6f85[_0x357d91+0x2])==null?_0x53bcda:_0x1d1402,_0x7bd99e={'x':_0x5b4ea8['x']+(_0x53bcda['x']-_0xbec276['x'])/0x6,'y':_0x5b4ea8['y']+(_0x53bcda['y']-_0xbec276['y'])/0x6},_0x332fef={'x':_0x53bcda['x']-(_0x18a330['x']-_0x5b4ea8['x'])/0x6,'y':_0x53bcda['y']-(_0x18a330['y']-_0x5b4ea8['y'])/0x6};_0xcb32de[_0x23e9f5(0x197)]('C\x20'+k(_0x7bd99e)+'\x20'+k(_0x332fef)+'\x20'+k(_0x53bcda));}return _0xcb32de[_0x23e9f5(0x193)]('\x20');}function H(_0x59e60e,_0x1e305a){const _0x5d5b30=_0xa0cd7c;return _0x59e60e[_0x5d5b30(0x172)]==='pen'?z(_0x59e60e,_0x1e305a):V(_0x59e60e,_0x1e305a);}function U(_0x50301a,_0x2d22f8){const _0x17ec0a=_0xa0cd7c;return _0x2d22f8!=null&&_0x2d22f8['color']?_0x2d22f8[_0x17ec0a(0x190)]:_0x50301a[_0x17ec0a(0x172)]==='pen'?_0x17ec0a(0x1b8):_0x50301a[_0x17ec0a(0x190)];}function oe(_0x327ee0,_0x1f2ab2){const _0x265064=_0xa0cd7c;return(_0x1f2ab2==null?void 0x0:_0x1f2ab2[_0x265064(0x156)])===void 0x0?_0x327ee0[_0x265064(0x172)]===_0x265064(0x164)?0x2:_0x327ee0[_0x265064(0x156)]:_0x1f2ab2[_0x265064(0x156)];}function W(_0x29ff0a,_0x1c7df9){const _0x2d3573=_0xa0cd7c;return(_0x1c7df9==null?void 0x0:_0x1c7df9['opacity'])===void 0x0?_0x29ff0a[_0x2d3573(0x172)]==='pen'?void 0x0:_0x29ff0a[_0x2d3573(0x17b)]:_0x1c7df9[_0x2d3573(0x17b)];}function G(_0x31e2fd,_0x1586d3){const _0x232ba6=_0xa0cd7c;let _0x49810e=R(_0x31e2fd),_0x587d8c=H(_0x31e2fd,{'x':_0x49810e[_0x232ba6(0x153)],'y':_0x49810e['top']}),_0x1106ea=_0x31e2fd[_0x232ba6(0x172)]===_0x232ba6(0x164)&&_0x31e2fd[_0x232ba6(0x16b)],_0x574012=_0x1586d3==null?void 0x0:_0x1586d3[_0x232ba6(0x199)];return{'shapeType':e['ShapeTypeEnum'][_0x232ba6(0x19b)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x49810e['width'],'h':_0x49810e['height'],'fill':_0x1106ea?_0x232ba6(0x1a9):'none','stroke':!0x0,'data':_0x587d8c,'dataArray':q(_0x31e2fd,{'x':_0x49810e[_0x232ba6(0x153)],'y':_0x49810e['top']})}]},'fill':_0x1106ea&&_0x574012?{'color':_0x574012,'fillType':e[_0x232ba6(0x185)][_0x232ba6(0x1a6)]}:{'fillType':e[_0x232ba6(0x185)]['NoFill']},'stroke':{'color':U(_0x31e2fd,_0x1586d3),'width':oe(_0x31e2fd,_0x1586d3),'opacity':W(_0x31e2fd,_0x1586d3),'lineStrokeType':e['ShapeLineTypeEnum'][_0x232ba6(0x14c)],'capType':e[_0x232ba6(0x169)][_0x232ba6(0x178)],'lineJoinType':e[_0x232ba6(0x18e)][_0x232ba6(0x178)]}};}function K(_0x472425,_0x1feaaa){return{'x':_0x472425['x']-_0x1feaaa['x'],'y':_0x472425['y']-_0x1feaaa['y']};}function q(_0x3cac85,_0x389ea7){const _0x2b6110=_0xa0cd7c;if(_0x3cac85[_0x2b6110(0x172)]==='pen'){let _0x5e0cbf=_0x3cac85['anchors'];if(_0x5e0cbf[_0x2b6110(0x1a5)]===0x0)return[];let _0xff5ca3=K(_0x5e0cbf[0x0],_0x389ea7),_0x4744e1=[{'command':'M','points':[_0xff5ca3['x'],_0xff5ca3['y']]}];for(let _0x1ff099=0x1;_0x1ff099<_0x5e0cbf[_0x2b6110(0x1a5)];_0x1ff099++){var _0x28b542,_0x1b45ac;let _0x2da65c=_0x5e0cbf[_0x1ff099-0x1],_0x557601=_0x5e0cbf[_0x1ff099],_0x30ca9a=K((_0x28b542=_0x2da65c[_0x2b6110(0x1a1)])==null?_0x2da65c:_0x28b542,_0x389ea7),_0x4ad777=K((_0x1b45ac=_0x557601['in'])==null?_0x557601:_0x1b45ac,_0x389ea7),_0x49d1d5=K(_0x557601,_0x389ea7);_0x4744e1[_0x2b6110(0x197)]({'command':'C','points':[_0x30ca9a['x'],_0x30ca9a['y'],_0x4ad777['x'],_0x4ad777['y'],_0x49d1d5['x'],_0x49d1d5['y']]});}if(_0x3cac85['closed']&&_0x5e0cbf[_0x2b6110(0x1a5)]>0x1){var _0x45576c,_0x150837;let _0x5976f2=_0x5e0cbf[_0x5e0cbf[_0x2b6110(0x1a5)]-0x1],_0x4ded8=_0x5e0cbf[0x0],_0x2c5cd4=K((_0x45576c=_0x5976f2[_0x2b6110(0x1a1)])==null?_0x5976f2:_0x45576c,_0x389ea7),_0x46aed7=K((_0x150837=_0x4ded8['in'])==null?_0x4ded8:_0x150837,_0x389ea7),_0x279823=K(_0x4ded8,_0x389ea7);_0x4744e1[_0x2b6110(0x197)]({'command':'C','points':[_0x2c5cd4['x'],_0x2c5cd4['y'],_0x46aed7['x'],_0x46aed7['y'],_0x279823['x'],_0x279823['y']]}),_0x4744e1['push']({'command':'z','points':[]});}return _0x4744e1;}let _0x163f7a=_0x3cac85[_0x2b6110(0x1b1)][_0x2b6110(0x19e)](_0x4a2894=>K(_0x4a2894,_0x389ea7));if(_0x163f7a[_0x2b6110(0x1a5)]===0x0)return[];let _0x349e12=[{'command':'M','points':[_0x163f7a[0x0]['x'],_0x163f7a[0x0]['y']]}];for(let _0x1232fd=0x0;_0x1232fd<_0x163f7a[_0x2b6110(0x1a5)]-0x1;_0x1232fd++){var _0x57f04b,_0x5a8f77;let _0x2f282b=_0x163f7a[_0x1232fd],_0x3a78c5=_0x163f7a[_0x1232fd+0x1],_0x47bc28=(_0x57f04b=_0x163f7a[_0x1232fd-0x1])==null?_0x2f282b:_0x57f04b,_0x580a81=(_0x5a8f77=_0x163f7a[_0x1232fd+0x2])==null?_0x3a78c5:_0x5a8f77,_0x527646={'x':_0x2f282b['x']+(_0x3a78c5['x']-_0x47bc28['x'])/0x6,'y':_0x2f282b['y']+(_0x3a78c5['y']-_0x47bc28['y'])/0x6},_0x300a77={'x':_0x3a78c5['x']-(_0x580a81['x']-_0x2f282b['x'])/0x6,'y':_0x3a78c5['y']-(_0x580a81['y']-_0x2f282b['y'])/0x6};_0x349e12[_0x2b6110(0x197)]({'command':'C','points':[_0x527646['x'],_0x527646['y'],_0x300a77['x'],_0x300a77['y'],_0x3a78c5['x'],_0x3a78c5['y']]});}return _0x349e12;}function se(_0x289e03){const _0x3cff03=_0xa0cd7c;var _0x9d5818;let {model:_0x424c4e,sourceModel:_0x568d27=_0x424c4e,style:_0x31dde4}=_0x289e03,_0x1f7079=(_0x9d5818=_0x289e03[_0x3cff03(0x180)])==null?_0x424c4e['kind']:_0x9d5818,_0x46eed9=R(_0x424c4e),_0x4dda68=_0x424c4e['kind']==='pen'&&_0x1f7079!=='pen'?_0x424c4e:void 0x0;return{'transform':{..._0x46eed9,'rotation':0x0},'shapeData':G(_0x424c4e,_0x31dde4),'ink':{'version':0x1,'tool':_0x1f7079,'sourceModel':_0x568d27,..._0x4dda68?{'editModel':_0x4dda68}:{},'normalizedBounds':_0x46eed9}};}var ce=_0xa0cd7c(0x1a7),le='1.0.0-insiders.20260707-70502d7';function J(_0x1ae485){'@babel/helpers - typeof';const _0x10a678=_0xa0cd7c;return J=typeof Symbol==_0x10a678(0x189)&&typeof Symbol[_0x10a678(0x15f)]==_0x10a678(0x1a2)?function(_0x5955bf){return typeof _0x5955bf;}:function(_0x49d88b){const _0x29d80d=_0x10a678;return _0x49d88b&&typeof Symbol==_0x29d80d(0x189)&&_0x49d88b[_0x29d80d(0x168)]===Symbol&&_0x49d88b!==Symbol['prototype']?_0x29d80d(0x1a2):typeof _0x49d88b;},J(_0x1ae485);}function ue(_0x2a9505,_0x462209){const _0x4cf220=_0xa0cd7c;if(J(_0x2a9505)!=_0x4cf220(0x17e)||!_0x2a9505)return _0x2a9505;var _0x147551=_0x2a9505[Symbol[_0x4cf220(0x194)]];if(_0x147551!==void 0x0){var _0x381237=_0x147551[_0x4cf220(0x14e)](_0x2a9505,_0x462209||_0x4cf220(0x16f));if(J(_0x381237)!=_0x4cf220(0x17e))return _0x381237;throw TypeError(_0x4cf220(0x15e));}return(_0x462209===_0x4cf220(0x191)?String:Number)(_0x2a9505);}function de(_0x36dc50){const _0x5372d1=_0xa0cd7c;var _0x2e3d40=ue(_0x36dc50,_0x5372d1(0x191));return J(_0x2e3d40)==_0x5372d1(0x1a2)?_0x2e3d40:_0x2e3d40+'';}function Y(_0x3a2b5f,_0x33a769,_0x46a637){return(_0x33a769=de(_0x33a769))in _0x3a2b5f?Object['defineProperty'](_0x3a2b5f,_0x33a769,{'value':_0x46a637,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3a2b5f[_0x33a769]=_0x46a637,_0x3a2b5f;}const X=(0x0,n[_0xa0cd7c(0x159)])(_0xa0cd7c(0x1bb));var fe=class{constructor(){const _0x244316=_0xa0cd7c;Y(this,_0x244316(0x151),[]);}['registerAdapter'](_0x1075e0){const _0x6b32d5=_0xa0cd7c;return this[_0x6b32d5(0x151)][_0x6b32d5(0x197)](_0x1075e0),(0x0,n[_0x6b32d5(0x166)])(()=>{const _0x1e9428=_0x6b32d5;let _0x4d0309=this['_adapters'][_0x1e9428(0x165)](_0x1075e0);_0x4d0309>=0x0&&this[_0x1e9428(0x151)]['splice'](_0x4d0309,0x1);});}[_0xa0cd7c(0x14f)](_0xda0868){const _0x52fb96=_0xa0cd7c;for(let _0x51bf09 of this[_0x52fb96(0x151)])if(_0x51bf09['beginInkMode'](_0xda0868))return!0x0;return!0x1;}async[_0xa0cd7c(0x19f)](_0x298e14){const _0x16ded5=_0xa0cd7c;for(let _0x45b096 of this['_adapters'])if(_0x45b096[_0x16ded5(0x19f)]&&await _0x45b096[_0x16ded5(0x19f)](_0x298e14))return!0x0;return!0x1;}};const pe={'id':_0xa0cd7c(0x162),'type':n[_0xa0cd7c(0x16d)][_0xa0cd7c(0x1b7)],'handler':(_0xd9c129,_0x3c0ff1)=>_0x3c0ff1?_0xd9c129[_0xa0cd7c(0x18b)](X)['beginInkMode'](_0x3c0ff1):!0x1},Z={};function Q(_0x47cf76,_0x2ca8df){return function(_0x1fcb6b,_0x50f3e4){_0x2ca8df(_0x1fcb6b,_0x50f3e4,_0x47cf76);};}function me(_0x4ff5fd,_0x1d2498,_0x1059aa,_0x4a2fae){const _0x3c23db=_0xa0cd7c;var _0x13adae=arguments[_0x3c23db(0x1a5)],_0x847175=_0x13adae<0x3?_0x1d2498:_0x4a2fae===null?_0x4a2fae=Object['getOwnPropertyDescriptor'](_0x1d2498,_0x1059aa):_0x4a2fae,_0x1db6b3;if(typeof Reflect=='object'&&typeof Reflect[_0x3c23db(0x1ae)]==_0x3c23db(0x189))_0x847175=Reflect[_0x3c23db(0x1ae)](_0x4ff5fd,_0x1d2498,_0x1059aa,_0x4a2fae);else{for(var _0x3a6067=_0x4ff5fd['length']-0x1;_0x3a6067>=0x0;_0x3a6067--)(_0x1db6b3=_0x4ff5fd[_0x3a6067])&&(_0x847175=(_0x13adae<0x3?_0x1db6b3(_0x847175):_0x13adae>0x3?_0x1db6b3(_0x1d2498,_0x1059aa,_0x847175):_0x1db6b3(_0x1d2498,_0x1059aa))||_0x847175);}return _0x13adae>0x3&&_0x847175&&Object[_0x3c23db(0x181)](_0x1d2498,_0x1059aa,_0x847175),_0x847175;}let $=class extends n[_0xa0cd7c(0x15a)]{constructor(_0x3269c9=Z,_0x5ca7ba,_0x2931e7,_0x4926fb){const _0x408afe=_0xa0cd7c;super(),this['_config']=_0x3269c9,this[_0x408afe(0x1a3)]=_0x5ca7ba,this['_commandService']=_0x2931e7,this[_0x408afe(0x174)]=_0x4926fb;let {..._0x4cad89}=(0x0,n['merge'])({},Z,this['_config']);this['_configService'][_0x408afe(0x18a)](_0x408afe(0x1b6),_0x4cad89);}['onStarting'](){const _0x96c753=_0xa0cd7c;[[X,{'useClass':fe}]]['forEach'](_0x4e3a39=>this[_0x96c753(0x1a3)][_0x96c753(0x186)](_0x4e3a39)),this[_0x96c753(0x161)](this['_commandService'][_0x96c753(0x1ba)](pe));}};Y($,_0xa0cd7c(0x16c),'UNIVER_INK_PLUGIN'),Y($,'packageName',ce),Y($,'version',le),Y($,_0xa0cd7c(0x171),n[_0xa0cd7c(0x183)][_0xa0cd7c(0x18c)]),$=me([(0x0,n[_0xa0cd7c(0x1a4)])(t[_0xa0cd7c(0x14d)]),Q(0x1,(0x0,n[_0xa0cd7c(0x176)])(n['Injector'])),Q(0x2,n[_0xa0cd7c(0x1b3)]),Q(0x3,n[_0xa0cd7c(0x167)])],$),exports['IInkHostAdapterService']=X,Object[_0xa0cd7c(0x181)](exports,_0xa0cd7c(0x196),{'enumerable':!0x0,'get':function(){return $;}}),exports['buildInkCustomShapePayload']=se,exports[_0xa0cd7c(0x160)]=re,exports[_0xa0cd7c(0x19c)]=ie,exports[_0xa0cd7c(0x150)]=T,exports['findClosestInkPenHandle']=S,exports[_0xa0cd7c(0x19d)]=C,exports[_0xa0cd7c(0x17f)]=R,exports['getInkPenPreviewModel']=ne,exports[_0xa0cd7c(0x188)]=w,exports[_0xa0cd7c(0x1a8)]=m,exports[_0xa0cd7c(0x15b)]=ae;
@@ -0,0 +1 @@
1
+ const _0x5568ad=_0x945b;(function(_0x218342,_0x46d5c7){const _0x212341=_0x945b,_0x1e5be9=_0x218342();while(!![]){try{const _0x38af0f=parseInt(_0x212341(0x115))/0x1*(parseInt(_0x212341(0x11b))/0x2)+parseInt(_0x212341(0x15e))/0x3+-parseInt(_0x212341(0x104))/0x4*(parseInt(_0x212341(0x162))/0x5)+parseInt(_0x212341(0x106))/0x6*(-parseInt(_0x212341(0x108))/0x7)+parseInt(_0x212341(0x14e))/0x8*(-parseInt(_0x212341(0x13b))/0x9)+-parseInt(_0x212341(0x141))/0xa+-parseInt(_0x212341(0x112))/0xb*(-parseInt(_0x212341(0x11a))/0xc);if(_0x38af0f===_0x46d5c7)break;else _0x1e5be9['push'](_0x1e5be9['shift']());}catch(_0x72b9fc){_0x1e5be9['push'](_0x1e5be9['shift']());}}}(_0x5034,0x88e6f));import{ShapeFillEnum as _0x446061,ShapeLineCapEnum as _0x1d4156,ShapeLineJoinEnum as _0x37c46d,ShapeLineTypeEnum as _0x6210c5,ShapeTypeEnum as _0x2e2094}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x4bae38}from'@univerjs-pro/license';import{CommandType as _0x25a00f,DependentOn as _0x1f416c,ICommandService as _0x13b40c,IConfigService as _0x43a876,Inject as _0xf7459b,Injector as _0x1c356d,Plugin as _0x2b954d,UniverInstanceType as _0x1ce0b2,createIdentifier as _0x2ec59a,merge as _0x491f5f,toDisposable as _0x2c8698}from'@univerjs/core';const g=0.0001;function _(_0x3f626c){return{'x':_0x3f626c['x'],'y':_0x3f626c['y']};}function te(_0x138c1f){const _0x3567dd=_0x945b;return{..._0x138c1f,'in':_0x138c1f['in']?_(_0x138c1f['in']):void 0x0,'out':_0x138c1f[_0x3567dd(0x10b)]?_(_0x138c1f[_0x3567dd(0x10b)]):void 0x0};}function v(_0x1cc5cb){const _0x2c6f95=_0x945b;return{'kind':_0x2c6f95(0x164),'closed':_0x1cc5cb['closed'],'anchors':_0x1cc5cb[_0x2c6f95(0x13c)][_0x2c6f95(0x157)](te)};}function y(_0x2ad9be,_0x53ee07,_0x56d7f5){return{'x':_0x2ad9be['x']+(_0x53ee07['x']-_0x2ad9be['x'])*_0x56d7f5,'y':_0x2ad9be['y']+(_0x53ee07['y']-_0x2ad9be['y'])*_0x56d7f5};}function b(_0x5a16f3,_0x42e34b){const _0x1bfcb5=_0x945b;return Math[_0x1bfcb5(0x124)](_0x5a16f3['x']-_0x42e34b['x'],_0x5a16f3['y']-_0x42e34b['y']);}function x(_0x48dbd3){const _0x2c51d2=_0x945b;let _0x348e8f=Math[_0x2c51d2(0x124)](_0x48dbd3['x'],_0x48dbd3['y']);return _0x348e8f<g?{'x':0x1,'y':0x0}:{'x':_0x48dbd3['x']/_0x348e8f,'y':_0x48dbd3['y']/_0x348e8f};}function S(_0x35d254,_0x1d6e89,_0x55852a=b(_0x35d254,_0x1d6e89)){let _0x113c86=x({'x':_0x35d254['x']-_0x1d6e89['x'],'y':_0x35d254['y']-_0x1d6e89['y']});return{'x':_0x35d254['x']+_0x113c86['x']*_0x55852a,'y':_0x35d254['y']+_0x113c86['y']*_0x55852a};}function C(_0x5de68d,_0x5c26ed){const _0x3fe5ef=_0x945b;let {anchors:_0x412678}=_0x5de68d;return _0x412678[_0x3fe5ef(0x129)]<0x2||_0x5c26ed<0x0?null:_0x5c26ed<_0x412678[_0x3fe5ef(0x129)]-0x1?{'startIndex':_0x5c26ed,'endIndex':_0x5c26ed+0x1,'start':_0x412678[_0x5c26ed],'end':_0x412678[_0x5c26ed+0x1]}:_0x5de68d[_0x3fe5ef(0x133)]&&_0x5c26ed===_0x412678[_0x3fe5ef(0x129)]-0x1?{'startIndex':_0x412678[_0x3fe5ef(0x129)]-0x1,'endIndex':0x0,'start':_0x412678[_0x412678[_0x3fe5ef(0x129)]-0x1],'end':_0x412678[0x0]}:null;}function w(_0xfc1cc5,_0x2df64c){const _0x37d875=_0x945b;var _0x1d7d16,_0x284e4a;let _0x3d8414=C(_0xfc1cc5,_0x2df64c);return _0x3d8414?[_0x3d8414['start'],(_0x1d7d16=_0x3d8414['start']['out'])==null?_0x3d8414['start']:_0x1d7d16,(_0x284e4a=_0x3d8414[_0x37d875(0x114)]['in'])==null?_0x3d8414[_0x37d875(0x114)]:_0x284e4a,_0x3d8414[_0x37d875(0x114)]]:null;}function _0x945b(_0x22e391,_0x20f442){_0x22e391=_0x22e391-0x103;const _0x503493=_0x5034();let _0x945b47=_0x503493[_0x22e391];return _0x945b47;}function T(_0x470f2d,_0x1cdf25){var _0x252097;return _0x1cdf25==='anchor'?_0x470f2d:(_0x252097=_0x470f2d[_0x1cdf25])==null?null:_0x252097;}function E(_0x596628,_0x1f5eab,_0x52edeb){const _0x4cdf97=_0x945b;return _0x52edeb==='anchor'||_0x596628['closed']?!0x0:_0x52edeb==='in'?_0x1f5eab>0x0:_0x1f5eab<_0x596628[_0x4cdf97(0x13c)]['length']-0x1;}function D(_0x23aec8,_0x3bb099){let [_0x103363,_0x5e93ea,_0x166d61,_0xcb395b]=_0x23aec8,_0x271bda=y(_0x103363,_0x5e93ea,_0x3bb099),_0x215293=y(_0x5e93ea,_0x166d61,_0x3bb099),_0x3f6642=y(_0x166d61,_0xcb395b,_0x3bb099);return y(y(_0x271bda,_0x215293,_0x3bb099),y(_0x215293,_0x3f6642,_0x3bb099),_0x3bb099);}function O(_0x180e81,_0x3927b1){let [_0x56b5f4,_0x56960f,_0x5c3cee,_0xc5b1c9]=_0x180e81,_0x198b83=y(_0x56b5f4,_0x56960f,_0x3927b1),_0x19020a=y(_0x56960f,_0x5c3cee,_0x3927b1),_0x3445cc=y(_0x5c3cee,_0xc5b1c9,_0x3927b1),_0x1d4326=y(_0x198b83,_0x19020a,_0x3927b1),_0x183d79=y(_0x19020a,_0x3445cc,_0x3927b1),_0xde3f85=y(_0x1d4326,_0x183d79,_0x3927b1);return{'left':[_0x56b5f4,_0x198b83,_0x1d4326,_0xde3f85],'right':[_0xde3f85,_0x183d79,_0x3445cc,_0xc5b1c9]};}function k(_0x340763,_0x2b6412,_0x3a92af){const _0x477a13=_0x945b;let _0x39c0d2=_0x3a92af['x']-_0x2b6412['x'],_0x3162e7=_0x3a92af['y']-_0x2b6412['y'],_0x242623=_0x39c0d2*_0x39c0d2+_0x3162e7*_0x3162e7,_0x36cdc5=_0x242623<=g?0x0:Math['max'](0x0,Math[_0x477a13(0x10a)](0x1,((_0x340763['x']-_0x2b6412['x'])*_0x39c0d2+(_0x340763['y']-_0x2b6412['y'])*_0x3162e7)/_0x242623)),_0xa06a4f={'x':_0x2b6412['x']+_0x39c0d2*_0x36cdc5,'y':_0x2b6412['y']+_0x3162e7*_0x36cdc5};return{'point':_0xa06a4f,'ratio':_0x36cdc5,'distance':b(_0x340763,_0xa06a4f)};}function ne(_0xdbb2a,_0x1a615b,_0x2aeae6){const _0x3e553e=_0x945b;return k(_0xdbb2a,_0x1a615b,_0x2aeae6)[_0x3e553e(0x127)]**0x2;}function A(_0x2b85b8,_0x52b565){const _0x30d98d=_0x945b;if(_0x2b85b8[_0x30d98d(0x129)]<=0x2)return _0x2b85b8[_0x30d98d(0x157)](_);let _0x2a9afe=0x0,_0x5bd145=0x0,_0x475734=_0x2b85b8[0x0],_0x3f88f7=_0x2b85b8[_0x2b85b8['length']-0x1],_0xdf9142=_0x52b565*_0x52b565;for(let _0x25b92f=0x1;_0x25b92f<_0x2b85b8[_0x30d98d(0x129)]-0x1;_0x25b92f++){let _0xacf7ad=ne(_0x2b85b8[_0x25b92f],_0x475734,_0x3f88f7);_0xacf7ad>_0x2a9afe&&(_0x2a9afe=_0xacf7ad,_0x5bd145=_0x25b92f);}if(_0x2a9afe<=_0xdf9142)return[_(_0x475734),_(_0x3f88f7)];let _0x5a2bdb=A(_0x2b85b8[_0x30d98d(0x15a)](0x0,_0x5bd145+0x1),_0x52b565),_0x22e885=A(_0x2b85b8[_0x30d98d(0x15a)](_0x5bd145),_0x52b565);return[..._0x5a2bdb[_0x30d98d(0x15a)](0x0,-0x1),..._0x22e885];}function re(_0x4a2787,_0x3d51e4){var _0x312fb2;let _0x4ee43c=_0x4a2787[_0x3d51e4],_0x2f7127=_0x4a2787[_0x3d51e4+0x1],_0x795b0a=(_0x312fb2=_0x4a2787[_0x3d51e4-0x1])==null?_0x4ee43c:_0x312fb2;return{'x':_0x4ee43c['x']+(_0x2f7127['x']-_0x795b0a['x'])/0x6,'y':_0x4ee43c['y']+(_0x2f7127['y']-_0x795b0a['y'])/0x6};}function ie(_0x37773b,_0x5dabd9){var _0x1c5212;let _0x1bd462=_0x37773b[_0x5dabd9],_0x28b086=_0x37773b[_0x5dabd9-0x1],_0x11e7e8=(_0x1c5212=_0x37773b[_0x5dabd9+0x1])==null?_0x1bd462:_0x1c5212;return{'x':_0x1bd462['x']-(_0x11e7e8['x']-_0x28b086['x'])/0x6,'y':_0x1bd462['y']-(_0x11e7e8['y']-_0x28b086['y'])/0x6};}function ae(_0x3bc345,_0x27ecc3){const _0xc11140=_0x945b;var _0x4e58dc,_0x835a2c;let _0x5b3c87=_0x3bc345[_0xc11140(0x13c)][_0x27ecc3],_0x51c2e2=(_0x4e58dc=_0x3bc345[_0xc11140(0x13c)][_0x27ecc3-0x1])==null?_0x3bc345[_0xc11140(0x133)]?_0x3bc345[_0xc11140(0x13c)][_0x3bc345[_0xc11140(0x13c)][_0xc11140(0x129)]-0x1]:null:_0x4e58dc,_0x56024a=(_0x835a2c=_0x3bc345['anchors'][_0x27ecc3+0x1])==null?_0x3bc345['closed']?_0x3bc345['anchors'][0x0]:null:_0x835a2c,_0x457373=_0x51c2e2&&_0x56024a?x({'x':_0x56024a['x']-_0x51c2e2['x'],'y':_0x56024a['y']-_0x51c2e2['y']}):_0x56024a?x({'x':_0x56024a['x']-_0x5b3c87['x'],'y':_0x56024a['y']-_0x5b3c87['y']}):_0x51c2e2?x({'x':_0x5b3c87['x']-_0x51c2e2['x'],'y':_0x5b3c87['y']-_0x51c2e2['y']}):{'x':0x1,'y':0x0},_0x1e4076=_0x51c2e2&&_0x56024a?Math[_0xc11140(0x12a)](0x32,b(_0x51c2e2,_0x56024a)/0x4):0x32;return{'in':{'x':_0x5b3c87['x']-_0x457373['x']*_0x1e4076,'y':_0x5b3c87['y']-_0x457373['y']*_0x1e4076},'out':{'x':_0x5b3c87['x']+_0x457373['x']*_0x1e4076,'y':_0x5b3c87['y']+_0x457373['y']*_0x1e4076}};}function j(_0x1391e1,_0xde7cc8){const _0x57b086=_0x945b;let _0x2300ab=_0x1391e1[_0xde7cc8],_0x4d0473=_0xde7cc8==='in'?'out':'in',_0x1d177a=_0x1391e1[_0x4d0473];if(_0x2300ab){if(_0x1391e1[_0x57b086(0x120)]==='symmetric'){_0x1391e1[_0x4d0473]=S(_0x1391e1,_0x2300ab);return;}_0x1391e1[_0x57b086(0x120)]===_0x57b086(0x119)&&(_0x1391e1[_0x4d0473]=S(_0x1391e1,_0x2300ab,_0x1d177a?b(_0x1391e1,_0x1d177a):b(_0x1391e1,_0x2300ab)));}}function oe(_0x41a487,_0x2764f6){const _0x274f82=_0x945b;let _0x2aa706=v(_0x41a487);return!_0x2764f6||_0x2aa706[_0x274f82(0x133)]||_0x2aa706[_0x274f82(0x13c)]['length']===0x0||_0x2aa706[_0x274f82(0x13c)]['push']({'id':_0x274f82(0x125),'x':_0x2764f6['x'],'y':_0x2764f6['y'],'pointType':_0x274f82(0x144)}),_0x2aa706;}function se(_0x260c0e,_0x1e3d2a={}){const _0x5c2163=_0x945b;var _0x305ce3,_0x160c76;let _0x441afe=Math[_0x5c2163(0x12a)](0x0,(_0x305ce3=_0x1e3d2a[_0x5c2163(0x142)])==null?Math['max'](0x4,_0x260c0e[_0x5c2163(0x154)]*0.35):_0x305ce3),_0xecbbca=(_0x160c76=_0x1e3d2a['createId'])==null?_0xe56ae0=>_0x5c2163(0x13f)+_0xe56ae0:_0x160c76,_0x59e7d3=A(_0x260c0e['points'],_0x441afe),_0x43531b=_0x59e7d3[_0x5c2163(0x157)]((_0x56ec7d,_0x5556fb)=>({'id':_0xecbbca(_0x5556fb),'x':_0x56ec7d['x'],'y':_0x56ec7d['y'],'pointType':_0x5c2163(0x15c)}));for(let _0x517f6f=0x0;_0x517f6f<_0x43531b[_0x5c2163(0x129)]-0x1;_0x517f6f++)_0x43531b[_0x517f6f][_0x5c2163(0x10b)]=re(_0x59e7d3,_0x517f6f),_0x43531b[_0x517f6f+0x1]['in']=ie(_0x59e7d3,_0x517f6f+0x1);return{'kind':_0x5c2163(0x164),'closed':!0x1,'anchors':_0x43531b};}function ce(_0x5c4716,_0x53ec6c,_0xdcf762){const _0x3a42a4=_0x945b;let _0xf4a8a0=null,_0x13aa97=['anchor','in','out'];return _0x5c4716[_0x3a42a4(0x13c)][_0x3a42a4(0x140)]((_0x1f9c57,_0x106642)=>{const _0x485ae2=_0x3a42a4;_0x13aa97[_0x485ae2(0x140)](_0x4fcdcc=>{const _0x1acd50=_0x485ae2;if(!E(_0x5c4716,_0x106642,_0x4fcdcc))return;let _0x5513e9=T(_0x1f9c57,_0x4fcdcc);if(!_0x5513e9)return;let _0x421c7f=b(_0x53ec6c,_0x5513e9);_0x421c7f>_0xdcf762||_0xf4a8a0&&_0x421c7f>=_0xf4a8a0[_0x1acd50(0x127)]||(_0xf4a8a0={'handle':{'kind':_0x4fcdcc,'anchorId':_0x1f9c57['id']},'point':_(_0x5513e9),'distance':_0x421c7f});});}),_0xf4a8a0;}function le(_0x58a9ae,_0x3f7460,_0x104718){const _0x443d36=_0x945b;let _0x48998d=null,_0x3d1f91=_0x58a9ae[_0x443d36(0x133)]?_0x58a9ae[_0x443d36(0x13c)]['length']:Math[_0x443d36(0x12a)](0x0,_0x58a9ae[_0x443d36(0x13c)][_0x443d36(0x129)]-0x1);for(let _0xa861b6=0x0;_0xa861b6<_0x3d1f91;_0xa861b6++){let _0x11d88f=w(_0x58a9ae,_0xa861b6);if(!_0x11d88f)continue;let _0xfa555a=D(_0x11d88f,0x0);for(let _0x1a07c1=0x1;_0x1a07c1<=0x20;_0x1a07c1++){let _0x40746a=D(_0x11d88f,_0x1a07c1/0x20),_0x4c9e70=k(_0x3f7460,_0xfa555a,_0x40746a),_0x54c192=(_0x1a07c1-0x1+_0x4c9e70[_0x443d36(0x103)])/0x20;(!_0x48998d||_0x4c9e70['distance']<_0x48998d[_0x443d36(0x127)])&&(_0x48998d={'segmentIndex':_0xa861b6,'t':_0x54c192,'point':_0x4c9e70[_0x443d36(0x116)],'distance':_0x4c9e70['distance']}),_0xfa555a=_0x40746a;}}return _0x48998d&&_0x48998d['distance']<=_0x104718?_0x48998d:null;}function ue(_0x1a9838,_0x26c061,_0x141976){const _0x40d31c=_0x945b;let _0x255f53=v(_0x1a9838),_0x189ee3=C(_0x255f53,_0x26c061['segmentIndex']),_0x1c94aa=w(_0x255f53,_0x26c061[_0x40d31c(0x118)]);if(!_0x189ee3||!_0x1c94aa)return _0x255f53;let _0x1d406d=O(_0x1c94aa,Math[_0x40d31c(0x12a)](0x0,Math[_0x40d31c(0x10a)](0x1,_0x26c061['t']))),_0x533ee9={'id':_0x141976(),'x':_0x1d406d['left'][0x3]['x'],'y':_0x1d406d[_0x40d31c(0x12e)][0x3]['y'],'in':_(_0x1d406d[_0x40d31c(0x12e)][0x2]),'out':_(_0x1d406d[_0x40d31c(0x10d)][0x1]),'pointType':_0x40d31c(0x15c)};return _0x255f53['anchors'][_0x189ee3[_0x40d31c(0x145)]][_0x40d31c(0x10b)]=_(_0x1d406d[_0x40d31c(0x12e)][0x1]),_0x255f53[_0x40d31c(0x13c)][_0x189ee3[_0x40d31c(0x160)]]['in']=_(_0x1d406d[_0x40d31c(0x10d)][0x2]),_0x255f53['anchors']['splice'](_0x189ee3[_0x40d31c(0x145)]+0x1,0x0,_0x533ee9),_0x255f53;}function M(_0xa359b6,_0x9016b2){const _0x4162b9=_0x945b;let _0x4e311d=v(_0xa359b6);return _0x4e311d['anchors']=_0x4e311d[_0x4162b9(0x13c)][_0x4162b9(0x126)](_0x195a87=>_0x195a87['id']!==_0x9016b2),_0x4e311d[_0x4162b9(0x133)]&&_0x4e311d[_0x4162b9(0x13c)][_0x4162b9(0x129)]<0x3&&(_0x4e311d[_0x4162b9(0x133)]=!0x1),_0x4e311d;}function N(_0x12eb1c,_0x4fa893,_0x2c33e1){const _0x102528=_0x945b;let _0x5a1b03=v(_0x12eb1c),_0x3c1270=_0x5a1b03[_0x102528(0x13c)][_0x102528(0x14b)](_0x48444e=>_0x48444e['id']===_0x4fa893),_0x20120f=_0x5a1b03['anchors'][_0x3c1270];if(!_0x20120f)return _0x5a1b03;if(_0x20120f[_0x102528(0x120)]=_0x2c33e1,_0x2c33e1===_0x102528(0x144))return delete _0x20120f['in'],delete _0x20120f[_0x102528(0x10b)],_0x5a1b03;let _0x594b6a=ae(_0x5a1b03,_0x3c1270);if(_0x20120f['in']=_0x20120f['in']?_(_0x20120f['in']):_0x594b6a['in'],_0x20120f[_0x102528(0x10b)]=_0x20120f[_0x102528(0x10b)]?_(_0x20120f[_0x102528(0x10b)]):_0x594b6a['out'],_0x2c33e1==='symmetric'){let _0x3f8bd4=Math[_0x102528(0x12a)](b(_0x20120f,_0x20120f['in']),b(_0x20120f,_0x20120f['out']),0x32),_0xd65299=x({'x':_0x20120f['out']['x']-_0x20120f['x'],'y':_0x20120f['out']['y']-_0x20120f['y']});_0x20120f[_0x102528(0x10b)]={'x':_0x20120f['x']+_0xd65299['x']*_0x3f8bd4,'y':_0x20120f['y']+_0xd65299['y']*_0x3f8bd4},_0x20120f['in']={'x':_0x20120f['x']-_0xd65299['x']*_0x3f8bd4,'y':_0x20120f['y']-_0xd65299['y']*_0x3f8bd4};}else _0x2c33e1==='smooth'&&j(_0x20120f,_0x102528(0x10b));return _0x5a1b03;}function P(_0xb381a1,_0x1fb217){const _0x4e901b=_0x945b;var _0x2e515f;let _0xfe3743=_0xb381a1[_0x4e901b(0x13c)][_0x4e901b(0x153)](_0x9e7060=>_0x9e7060['id']===_0x1fb217),_0xcc66f2=(_0x2e515f=_0xfe3743==null?void 0x0:_0xfe3743['pointType'])==null?_0x4e901b(0x144):_0x2e515f;return N(_0xb381a1,_0x1fb217,_0xcc66f2==='corner'?_0x4e901b(0x119):_0xcc66f2===_0x4e901b(0x119)?'symmetric':_0xcc66f2===_0x4e901b(0x13d)?_0x4e901b(0x15c):_0x4e901b(0x144));}function F(_0x43023b,_0x53f76c,_0xb3c07b){const _0x56c3c8=_0x945b;let _0x58f193=v(_0x43023b),_0x196a6a=_0x58f193[_0x56c3c8(0x13c)]['find'](_0xd2409b=>_0xd2409b['id']===_0x53f76c['anchorId']);if(!_0x196a6a)return _0x58f193;if(_0x53f76c[_0x56c3c8(0x166)]===_0x56c3c8(0x128)){let _0x172a00={'x':_0xb3c07b['x']-_0x196a6a['x'],'y':_0xb3c07b['y']-_0x196a6a['y']};return _0x196a6a['x']=_0xb3c07b['x'],_0x196a6a['y']=_0xb3c07b['y'],_0x196a6a['in']&&(_0x196a6a['in']={'x':_0x196a6a['in']['x']+_0x172a00['x'],'y':_0x196a6a['in']['y']+_0x172a00['y']}),_0x196a6a['out']&&(_0x196a6a[_0x56c3c8(0x10b)]={'x':_0x196a6a['out']['x']+_0x172a00['x'],'y':_0x196a6a[_0x56c3c8(0x10b)]['y']+_0x172a00['y']}),_0x58f193;}return _0x196a6a[_0x53f76c['kind']]=_(_0xb3c07b),_0x196a6a[_0x56c3c8(0x120)]===_0x56c3c8(0x144)&&(_0x196a6a['pointType']=_0x56c3c8(0x15c)),j(_0x196a6a,_0x53f76c[_0x56c3c8(0x166)]),_0x58f193;}const I=1e-9;function L(_0x399db7){const _0x276e75=_0x945b;let _0x3095bf=Math[_0x276e75(0x152)](_0x399db7*0x2710)/0x2710;return Object['is'](_0x3095bf,-0x0)?'0':String(_0x3095bf);}function R(_0xe5c658){return L(_0xe5c658['x'])+'\x20'+L(_0xe5c658['y']);}function _0x5034(){const _0x43bbab=['_adapters','string','round','find','width','top','function','map','beginInkMode','color','slice','type','free','abs','909027RosBjW','getOwnPropertyDescriptor','endIndex','createCustomShape','235EAXgbV','ink.operation.start','pen','_configService','kind','ratio','2244aEOvLl','setConfig','6FYhTtV','norm','4266759Cnkucm','object','min','out','fillColor','right','_config','ink.host-adapter.service','1.0.0-insiders.20260707-70502d7','prototype','4994vkxmqX','UNIVER_INK_PLUGIN','end','234tgKhNl','point','toPrimitive','segmentIndex','smooth','16704NxNXpW','5484QesLVD','decorate','none','height','_commandService','pointType','iterator','onStarting','join','hypot','__ink-preview-anchor__','filter','distance','anchor','length','max','Rect','@univerjs-pro/ink','_injector','left','points','opacity','add','SolidLine','closed','push','registerAdapter','OPERATION','get','UNIVER_UNKNOWN','defineProperty','NoFill','18ewopvf','anchors','symmetric','SolidFill','ink-centerline-','forEach','1813180BHpXWq','tolerance','packageName','corner','startIndex','pluginName','#f54a45','Round','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','symbol','findIndex','constructor','registerCommand','794528IucdwG','disposeWithMe'];_0x5034=function(){return _0x43bbab;};return _0x5034();}function z(_0x58b490,_0x591366){return{'x':_0x58b490['x']-_0x591366['x'],'y':_0x58b490['y']-_0x591366['y']};}function B(_0x1402eb,_0xcff370,_0x3a2c42,_0x40e64f,_0x3999ed){let _0x19c87a=0x1-_0x3999ed;return{'x':_0x19c87a*_0x19c87a*_0x19c87a*_0x1402eb['x']+0x3*_0x19c87a*_0x19c87a*_0x3999ed*_0xcff370['x']+0x3*_0x19c87a*_0x3999ed*_0x3999ed*_0x3a2c42['x']+_0x3999ed*_0x3999ed*_0x3999ed*_0x40e64f['x'],'y':_0x19c87a*_0x19c87a*_0x19c87a*_0x1402eb['y']+0x3*_0x19c87a*_0x19c87a*_0x3999ed*_0xcff370['y']+0x3*_0x19c87a*_0x3999ed*_0x3999ed*_0x3a2c42['y']+_0x3999ed*_0x3999ed*_0x3999ed*_0x40e64f['y']};}function V(_0x5ec6e2,_0x28cd2f,_0x4dd968,_0x355334){const _0x437f20=_0x945b;let _0x1e13e1=-_0x5ec6e2+0x3*_0x28cd2f-0x3*_0x4dd968+_0x355334,_0x5d0077=0x3*_0x5ec6e2-0x6*_0x28cd2f+0x3*_0x4dd968,_0x1e112d=-0x3*_0x5ec6e2+0x3*_0x28cd2f,_0x9f5341=[];if(Math[_0x437f20(0x15d)](_0x1e13e1)<I){if(Math[_0x437f20(0x15d)](_0x5d0077)<I)return _0x9f5341;let _0x363b53=-_0x1e112d/(0x2*_0x5d0077);return _0x363b53>0x0&&_0x363b53<0x1&&_0x9f5341['push'](_0x363b53),_0x9f5341;}let _0x148fc0=_0x5d0077*_0x5d0077-0x3*_0x1e13e1*_0x1e112d;if(_0x148fc0<0x0)return _0x9f5341;let _0x79b789=Math['sqrt'](Math['max'](0x0,_0x148fc0)),_0x11a5cb=(-_0x5d0077+_0x79b789)/(0x3*_0x1e13e1),_0x50c97c=(-_0x5d0077-_0x79b789)/(0x3*_0x1e13e1);return _0x11a5cb>0x0&&_0x11a5cb<0x1&&_0x9f5341[_0x437f20(0x134)](_0x11a5cb),_0x50c97c>0x0&&_0x50c97c<0x1&&Math[_0x437f20(0x15d)](_0x50c97c-_0x11a5cb)>I&&_0x9f5341['push'](_0x50c97c),_0x9f5341;}function H(_0x41064b,_0x1fbd6f,_0x27db1f,_0x574cde,_0x28cdb6){const _0x422132=_0x945b;_0x41064b[_0x422132(0x134)](_0x1fbd6f,_0x28cdb6),new Set([...V(_0x1fbd6f['x'],_0x27db1f['x'],_0x574cde['x'],_0x28cdb6['x']),...V(_0x1fbd6f['y'],_0x27db1f['y'],_0x574cde['y'],_0x28cdb6['y'])])['forEach'](_0x3f17c0=>{const _0x297649=_0x422132;_0x41064b[_0x297649(0x134)](B(_0x1fbd6f,_0x27db1f,_0x574cde,_0x28cdb6,_0x3f17c0));});}function U(_0x191ba1){const _0xd79ce5=_0x945b;let _0x1937c6=_0x191ba1[_0xd79ce5(0x13c)];if(_0x1937c6['length']<=0x1)return _0x1937c6;let _0x5a301d=[];for(let _0x9f2a58=0x1;_0x9f2a58<_0x1937c6[_0xd79ce5(0x129)];_0x9f2a58++){var _0x437011,_0x488642;let _0x1f7569=_0x1937c6[_0x9f2a58-0x1],_0x2e8dcd=_0x1937c6[_0x9f2a58];H(_0x5a301d,_0x1f7569,(_0x437011=_0x1f7569[_0xd79ce5(0x10b)])==null?_0x1f7569:_0x437011,(_0x488642=_0x2e8dcd['in'])==null?_0x2e8dcd:_0x488642,_0x2e8dcd);}if(_0x191ba1[_0xd79ce5(0x133)]&&_0x1937c6[_0xd79ce5(0x129)]>0x1){var _0x5b6286,_0x3ed9fc;let _0x3841db=_0x1937c6[_0x1937c6['length']-0x1],_0x301fb0=_0x1937c6[0x0];H(_0x5a301d,_0x3841db,(_0x5b6286=_0x3841db[_0xd79ce5(0x10b)])==null?_0x3841db:_0x5b6286,(_0x3ed9fc=_0x301fb0['in'])==null?_0x301fb0:_0x3ed9fc,_0x301fb0);}return _0x5a301d;}function de(_0x50da63){const _0x295923=_0x945b;let _0x2babe0=_0x50da63['points'];if(_0x2babe0[_0x295923(0x129)]<=0x1)return _0x2babe0;let _0x1c092b=[];for(let _0x17240d=0x0;_0x17240d<_0x2babe0['length']-0x1;_0x17240d++){var _0x978830,_0x182908;let _0x48c839=_0x2babe0[_0x17240d],_0x11a165=_0x2babe0[_0x17240d+0x1],_0x39b5a9=(_0x978830=_0x2babe0[_0x17240d-0x1])==null?_0x48c839:_0x978830,_0x119baa=(_0x182908=_0x2babe0[_0x17240d+0x2])==null?_0x11a165:_0x182908;H(_0x1c092b,_0x48c839,{'x':_0x48c839['x']+(_0x11a165['x']-_0x39b5a9['x'])/0x6,'y':_0x48c839['y']+(_0x11a165['y']-_0x39b5a9['y'])/0x6},{'x':_0x11a165['x']-(_0x119baa['x']-_0x48c839['x'])/0x6,'y':_0x11a165['y']-(_0x119baa['y']-_0x48c839['y'])/0x6},_0x11a165);}return _0x1c092b;}function fe(_0x223a64){const _0x339f7b=_0x945b;return _0x223a64[_0x339f7b(0x166)]===_0x339f7b(0x164)?U(_0x223a64):de(_0x223a64);}function W(_0x491023){let _0x10b186=Math['round'](_0x491023*0x2710)/0x2710;return Object['is'](_0x10b186,-0x0)?0x0:_0x10b186;}function G(_0x511778){const _0x5e45a2=_0x945b;let _0x2f32e0=fe(_0x511778);if(_0x2f32e0[_0x5e45a2(0x129)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x55d80d=Math[_0x5e45a2(0x10a)](..._0x2f32e0[_0x5e45a2(0x157)](_0x36b2ba=>_0x36b2ba['x'])),_0x2a951e=Math[_0x5e45a2(0x10a)](..._0x2f32e0[_0x5e45a2(0x157)](_0x4b8789=>_0x4b8789['y'])),_0x2c6842=Math[_0x5e45a2(0x12a)](..._0x2f32e0[_0x5e45a2(0x157)](_0x2eef0f=>_0x2eef0f['x'])),_0x2a845d=Math[_0x5e45a2(0x12a)](..._0x2f32e0[_0x5e45a2(0x157)](_0xea361b=>_0xea361b['y']));return{'left':W(_0x55d80d),'top':W(_0x2a951e),'width':W(Math[_0x5e45a2(0x12a)](0x1,_0x2c6842-_0x55d80d)),'height':W(Math[_0x5e45a2(0x12a)](0x1,_0x2a845d-_0x2a951e))};}function pe(_0x4b48d6,_0x2aae3c){const _0x29047a=_0x945b;let _0x263b69=_0x4b48d6[_0x29047a(0x13c)];if(_0x263b69[_0x29047a(0x129)]===0x0)return'';let _0x4608f6=['M\x20'+R(z(_0x263b69[0x0],_0x2aae3c))];for(let _0x4cf60e=0x1;_0x4cf60e<_0x263b69[_0x29047a(0x129)];_0x4cf60e++){var _0x524388,_0x185711;let _0xa1bb85=_0x263b69[_0x4cf60e-0x1],_0x375dd9=_0x263b69[_0x4cf60e],_0xcc90e9=(_0x524388=_0xa1bb85[_0x29047a(0x10b)])==null?_0xa1bb85:_0x524388,_0x5442c2=(_0x185711=_0x375dd9['in'])==null?_0x375dd9:_0x185711;_0x4608f6[_0x29047a(0x134)]('C\x20'+R(z(_0xcc90e9,_0x2aae3c))+'\x20'+R(z(_0x5442c2,_0x2aae3c))+'\x20'+R(z(_0x375dd9,_0x2aae3c)));}if(_0x4b48d6['closed']&&_0x263b69[_0x29047a(0x129)]>0x1){var _0x419a34,_0x4f5e90;let _0x4350f7=_0x263b69[_0x263b69['length']-0x1],_0x42331d=_0x263b69[0x0],_0x5c38e3=(_0x419a34=_0x4350f7[_0x29047a(0x10b)])==null?_0x4350f7:_0x419a34,_0x36540c=(_0x4f5e90=_0x42331d['in'])==null?_0x42331d:_0x4f5e90;_0x4608f6[_0x29047a(0x134)]('C\x20'+R(z(_0x5c38e3,_0x2aae3c))+'\x20'+R(z(_0x36540c,_0x2aae3c))+'\x20'+R(z(_0x42331d,_0x2aae3c))),_0x4608f6[_0x29047a(0x134)]('Z');}return _0x4608f6[_0x29047a(0x123)]('\x20');}function me(_0x3fb711,_0x27f5d6){return z(_0x3fb711,_0x27f5d6);}function he(_0x50e2,_0x31eca1){const _0xdb8c1e=_0x945b;let _0x25e36f=_0x50e2[_0xdb8c1e(0x12f)][_0xdb8c1e(0x157)](_0x99800f=>me(_0x99800f,_0x31eca1));if(_0x25e36f['length']===0x0)return'';if(_0x25e36f[_0xdb8c1e(0x129)]===0x1)return'M\x20'+R(_0x25e36f[0x0]);let _0x56a418=['M\x20'+R(_0x25e36f[0x0])];for(let _0x285c68=0x0;_0x285c68<_0x25e36f['length']-0x1;_0x285c68++){var _0x4a16f2,_0x1f639c;let _0x57431c=_0x25e36f[_0x285c68],_0xd0ccff=_0x25e36f[_0x285c68+0x1],_0x46e88b=(_0x4a16f2=_0x25e36f[_0x285c68-0x1])==null?_0x57431c:_0x4a16f2,_0xbb9edc=(_0x1f639c=_0x25e36f[_0x285c68+0x2])==null?_0xd0ccff:_0x1f639c,_0xd82e12={'x':_0x57431c['x']+(_0xd0ccff['x']-_0x46e88b['x'])/0x6,'y':_0x57431c['y']+(_0xd0ccff['y']-_0x46e88b['y'])/0x6},_0x2ec0ef={'x':_0xd0ccff['x']-(_0xbb9edc['x']-_0x57431c['x'])/0x6,'y':_0xd0ccff['y']-(_0xbb9edc['y']-_0x57431c['y'])/0x6};_0x56a418['push']('C\x20'+R(_0xd82e12)+'\x20'+R(_0x2ec0ef)+'\x20'+R(_0xd0ccff));}return _0x56a418[_0xdb8c1e(0x123)]('\x20');}function ge(_0xf3ad76,_0x3f4f59){return _0xf3ad76['kind']==='pen'?pe(_0xf3ad76,_0x3f4f59):he(_0xf3ad76,_0x3f4f59);}function _e(_0x18de5b,_0x28fb64){const _0x123f3d=_0x945b;return _0x28fb64!=null&&_0x28fb64[_0x123f3d(0x159)]?_0x28fb64[_0x123f3d(0x159)]:_0x18de5b[_0x123f3d(0x166)]===_0x123f3d(0x164)?_0x123f3d(0x147):_0x18de5b[_0x123f3d(0x159)];}function ve(_0x2adff4,_0x42aa57){const _0xda0612=_0x945b;return(_0x42aa57==null?void 0x0:_0x42aa57['width'])===void 0x0?_0x2adff4[_0xda0612(0x166)]==='pen'?0x2:_0x2adff4[_0xda0612(0x154)]:_0x42aa57[_0xda0612(0x154)];}function ye(_0x5642a5,_0x9c49d){const _0x536974=_0x945b;return(_0x9c49d==null?void 0x0:_0x9c49d[_0x536974(0x130)])===void 0x0?_0x5642a5[_0x536974(0x166)]===_0x536974(0x164)?void 0x0:_0x5642a5[_0x536974(0x130)]:_0x9c49d[_0x536974(0x130)];}function be(_0x296b74,_0x3c4b3f){const _0x414fef=_0x945b;let _0x3a7724=G(_0x296b74),_0x533051=ge(_0x296b74,{'x':_0x3a7724['left'],'y':_0x3a7724[_0x414fef(0x155)]}),_0x2edb6a=_0x296b74[_0x414fef(0x166)]===_0x414fef(0x164)&&_0x296b74[_0x414fef(0x133)],_0x4447c2=_0x3c4b3f==null?void 0x0:_0x3c4b3f[_0x414fef(0x10c)];return{'shapeType':_0x2e2094[_0x414fef(0x12b)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x3a7724[_0x414fef(0x154)],'h':_0x3a7724[_0x414fef(0x11e)],'fill':_0x2edb6a?_0x414fef(0x107):_0x414fef(0x11d),'stroke':!0x0,'data':_0x533051,'dataArray':xe(_0x296b74,{'x':_0x3a7724[_0x414fef(0x12e)],'y':_0x3a7724['top']})}]},'fill':_0x2edb6a&&_0x4447c2?{'color':_0x4447c2,'fillType':_0x446061[_0x414fef(0x13e)]}:{'fillType':_0x446061[_0x414fef(0x13a)]},'stroke':{'color':_e(_0x296b74,_0x3c4b3f),'width':ve(_0x296b74,_0x3c4b3f),'opacity':ye(_0x296b74,_0x3c4b3f),'lineStrokeType':_0x6210c5[_0x414fef(0x132)],'capType':_0x1d4156[_0x414fef(0x148)],'lineJoinType':_0x37c46d[_0x414fef(0x148)]}};}function K(_0x13f535,_0x10af95){return{'x':_0x13f535['x']-_0x10af95['x'],'y':_0x13f535['y']-_0x10af95['y']};}function xe(_0x2023cf,_0x1ed59c){const _0x2ae89f=_0x945b;if(_0x2023cf[_0x2ae89f(0x166)]===_0x2ae89f(0x164)){let _0x26b998=_0x2023cf[_0x2ae89f(0x13c)];if(_0x26b998[_0x2ae89f(0x129)]===0x0)return[];let _0x1f60ef=K(_0x26b998[0x0],_0x1ed59c),_0x3c1c2a=[{'command':'M','points':[_0x1f60ef['x'],_0x1f60ef['y']]}];for(let _0x25abe8=0x1;_0x25abe8<_0x26b998[_0x2ae89f(0x129)];_0x25abe8++){var _0x54a78a,_0x2f60a4;let _0x6332dc=_0x26b998[_0x25abe8-0x1],_0x113b32=_0x26b998[_0x25abe8],_0x3e574c=K((_0x54a78a=_0x6332dc[_0x2ae89f(0x10b)])==null?_0x6332dc:_0x54a78a,_0x1ed59c),_0xb1d072=K((_0x2f60a4=_0x113b32['in'])==null?_0x113b32:_0x2f60a4,_0x1ed59c),_0x4950cf=K(_0x113b32,_0x1ed59c);_0x3c1c2a['push']({'command':'C','points':[_0x3e574c['x'],_0x3e574c['y'],_0xb1d072['x'],_0xb1d072['y'],_0x4950cf['x'],_0x4950cf['y']]});}if(_0x2023cf[_0x2ae89f(0x133)]&&_0x26b998[_0x2ae89f(0x129)]>0x1){var _0x41b99c,_0x463552;let _0x2c931d=_0x26b998[_0x26b998['length']-0x1],_0x91833c=_0x26b998[0x0],_0x3ba064=K((_0x41b99c=_0x2c931d[_0x2ae89f(0x10b)])==null?_0x2c931d:_0x41b99c,_0x1ed59c),_0x21eabe=K((_0x463552=_0x91833c['in'])==null?_0x91833c:_0x463552,_0x1ed59c),_0x10254d=K(_0x91833c,_0x1ed59c);_0x3c1c2a[_0x2ae89f(0x134)]({'command':'C','points':[_0x3ba064['x'],_0x3ba064['y'],_0x21eabe['x'],_0x21eabe['y'],_0x10254d['x'],_0x10254d['y']]}),_0x3c1c2a[_0x2ae89f(0x134)]({'command':'z','points':[]});}return _0x3c1c2a;}let _0x1ea232=_0x2023cf[_0x2ae89f(0x12f)][_0x2ae89f(0x157)](_0x72684=>K(_0x72684,_0x1ed59c));if(_0x1ea232[_0x2ae89f(0x129)]===0x0)return[];let _0x9b7e8f=[{'command':'M','points':[_0x1ea232[0x0]['x'],_0x1ea232[0x0]['y']]}];for(let _0x486958=0x0;_0x486958<_0x1ea232[_0x2ae89f(0x129)]-0x1;_0x486958++){var _0x130559,_0x37e42d;let _0x1e4be2=_0x1ea232[_0x486958],_0xc48407=_0x1ea232[_0x486958+0x1],_0x524ea8=(_0x130559=_0x1ea232[_0x486958-0x1])==null?_0x1e4be2:_0x130559,_0x5da839=(_0x37e42d=_0x1ea232[_0x486958+0x2])==null?_0xc48407:_0x37e42d,_0x4f76f6={'x':_0x1e4be2['x']+(_0xc48407['x']-_0x524ea8['x'])/0x6,'y':_0x1e4be2['y']+(_0xc48407['y']-_0x524ea8['y'])/0x6},_0x10584c={'x':_0xc48407['x']-(_0x5da839['x']-_0x1e4be2['x'])/0x6,'y':_0xc48407['y']-(_0x5da839['y']-_0x1e4be2['y'])/0x6};_0x9b7e8f[_0x2ae89f(0x134)]({'command':'C','points':[_0x4f76f6['x'],_0x4f76f6['y'],_0x10584c['x'],_0x10584c['y'],_0xc48407['x'],_0xc48407['y']]});}return _0x9b7e8f;}function Se(_0x3085e0){const _0x182830=_0x945b;var _0x4ba8de;let {model:_0x63d0cf,sourceModel:_0x2379de=_0x63d0cf,style:_0x2bf46c}=_0x3085e0,_0x1f6665=(_0x4ba8de=_0x3085e0['tool'])==null?_0x63d0cf[_0x182830(0x166)]:_0x4ba8de,_0x5e3869=G(_0x63d0cf),_0x53f011=_0x63d0cf[_0x182830(0x166)]===_0x182830(0x164)&&_0x1f6665!=='pen'?_0x63d0cf:void 0x0;return{'transform':{..._0x5e3869,'rotation':0x0},'shapeData':be(_0x63d0cf,_0x2bf46c),'ink':{'version':0x1,'tool':_0x1f6665,'sourceModel':_0x2379de,..._0x53f011?{'editModel':_0x53f011}:{},'normalizedBounds':_0x5e3869}};}var Ce=_0x5568ad(0x12c),we=_0x5568ad(0x110);function q(_0x5a80f1){'@babel/helpers - typeof';const _0x585448=_0x5568ad;return q=typeof Symbol==_0x585448(0x156)&&typeof Symbol[_0x585448(0x121)]==_0x585448(0x14a)?function(_0x3baf1b){return typeof _0x3baf1b;}:function(_0x35f29a){const _0x1409d4=_0x585448;return _0x35f29a&&typeof Symbol=='function'&&_0x35f29a[_0x1409d4(0x14c)]===Symbol&&_0x35f29a!==Symbol[_0x1409d4(0x111)]?_0x1409d4(0x14a):typeof _0x35f29a;},q(_0x5a80f1);}function Te(_0x4c1b52,_0x2c74f6){const _0x449767=_0x5568ad;if(q(_0x4c1b52)!=_0x449767(0x109)||!_0x4c1b52)return _0x4c1b52;var _0x4f1522=_0x4c1b52[Symbol[_0x449767(0x117)]];if(_0x4f1522!==void 0x0){var _0x358c26=_0x4f1522['call'](_0x4c1b52,_0x2c74f6||'default');if(q(_0x358c26)!=_0x449767(0x109))return _0x358c26;throw TypeError(_0x449767(0x149));}return(_0x2c74f6===_0x449767(0x151)?String:Number)(_0x4c1b52);}function J(_0x2c1406){const _0x43b069=_0x5568ad;var _0x918ba0=Te(_0x2c1406,'string');return q(_0x918ba0)==_0x43b069(0x14a)?_0x918ba0:_0x918ba0+'';}function Y(_0x2e401d,_0x2088dd,_0x3f8a09){const _0x5597bb=_0x5568ad;return(_0x2088dd=J(_0x2088dd))in _0x2e401d?Object[_0x5597bb(0x139)](_0x2e401d,_0x2088dd,{'value':_0x3f8a09,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2e401d[_0x2088dd]=_0x3f8a09,_0x2e401d;}const X=_0x2ec59a(_0x5568ad(0x10f));var Ee=class{constructor(){const _0x572431=_0x5568ad;Y(this,_0x572431(0x150),[]);}[_0x5568ad(0x135)](_0x21e3f2){const _0x4194a0=_0x5568ad;return this['_adapters'][_0x4194a0(0x134)](_0x21e3f2),_0x2c8698(()=>{const _0x5bf159=_0x4194a0;let _0x2a4124=this[_0x5bf159(0x150)]['indexOf'](_0x21e3f2);_0x2a4124>=0x0&&this['_adapters']['splice'](_0x2a4124,0x1);});}[_0x5568ad(0x158)](_0x88eae2){const _0x277ce0=_0x5568ad;for(let _0x250751 of this[_0x277ce0(0x150)])if(_0x250751[_0x277ce0(0x158)](_0x88eae2))return!0x0;return!0x1;}async[_0x5568ad(0x161)](_0x13e89e){const _0x4737f2=_0x5568ad;for(let _0x3ce41a of this['_adapters'])if(_0x3ce41a[_0x4737f2(0x161)]&&await _0x3ce41a[_0x4737f2(0x161)](_0x13e89e))return!0x0;return!0x1;}};const De={'id':_0x5568ad(0x163),'type':_0x25a00f[_0x5568ad(0x136)],'handler':(_0x59fba8,_0x4a0dfe)=>_0x4a0dfe?_0x59fba8[_0x5568ad(0x137)](X)['beginInkMode'](_0x4a0dfe):!0x1},Z={};function Q(_0x1bd8a6,_0x55cbb0){return function(_0x2704ba,_0x48c325){_0x55cbb0(_0x2704ba,_0x48c325,_0x1bd8a6);};}function Oe(_0x54ada6,_0x90058a,_0x338580,_0x30a361){const _0x2bcbe3=_0x5568ad;var _0x2b9bf9=arguments[_0x2bcbe3(0x129)],_0x2cd3e1=_0x2b9bf9<0x3?_0x90058a:_0x30a361===null?_0x30a361=Object[_0x2bcbe3(0x15f)](_0x90058a,_0x338580):_0x30a361,_0x6f3ca2;if(typeof Reflect==_0x2bcbe3(0x109)&&typeof Reflect[_0x2bcbe3(0x11c)]=='function')_0x2cd3e1=Reflect[_0x2bcbe3(0x11c)](_0x54ada6,_0x90058a,_0x338580,_0x30a361);else{for(var _0x46e973=_0x54ada6[_0x2bcbe3(0x129)]-0x1;_0x46e973>=0x0;_0x46e973--)(_0x6f3ca2=_0x54ada6[_0x46e973])&&(_0x2cd3e1=(_0x2b9bf9<0x3?_0x6f3ca2(_0x2cd3e1):_0x2b9bf9>0x3?_0x6f3ca2(_0x90058a,_0x338580,_0x2cd3e1):_0x6f3ca2(_0x90058a,_0x338580))||_0x2cd3e1);}return _0x2b9bf9>0x3&&_0x2cd3e1&&Object[_0x2bcbe3(0x139)](_0x90058a,_0x338580,_0x2cd3e1),_0x2cd3e1;}let $=class extends _0x2b954d{constructor(_0x4be210=Z,_0x521274,_0x4a5586,_0x5b63c8){const _0x5f46b6=_0x5568ad;super(),this[_0x5f46b6(0x10e)]=_0x4be210,this['_injector']=_0x521274,this['_commandService']=_0x4a5586,this['_configService']=_0x5b63c8;let {..._0x371e54}=_0x491f5f({},Z,this['_config']);this[_0x5f46b6(0x165)][_0x5f46b6(0x105)]('ink.config',_0x371e54);}[_0x5568ad(0x122)](){const _0x9a4694=_0x5568ad;[[X,{'useClass':Ee}]][_0x9a4694(0x140)](_0x64bca7=>this[_0x9a4694(0x12d)][_0x9a4694(0x131)](_0x64bca7)),this[_0x9a4694(0x14f)](this[_0x9a4694(0x11f)][_0x9a4694(0x14d)](De));}};Y($,_0x5568ad(0x146),_0x5568ad(0x113)),Y($,_0x5568ad(0x143),Ce),Y($,'version',we),Y($,_0x5568ad(0x15b),_0x1ce0b2[_0x5568ad(0x138)]),$=Oe([_0x1f416c(_0x4bae38),Q(0x1,_0xf7459b(_0x1c356d)),Q(0x2,_0x13b40c),Q(0x3,_0x43a876)],$);export{X as IInkHostAdapterService,$ as UniverInkPlugin,Se as buildInkCustomShapePayload,se as convertBrushModelToPenModel,P as cycleInkPenAnchorPointType,M as deleteInkPenAnchor,ce as findClosestInkPenHandle,le as findClosestInkPenSegment,G as getInkModelBounds,oe as getInkPenPreviewModel,ue as insertInkPenAnchorAt,E as isInkPenHandleVisible,F as moveInkPenAnchorPoint};
package/lib/index.js ADDED
@@ -0,0 +1 @@
1
+ const _0x5568ad=_0x945b;(function(_0x218342,_0x46d5c7){const _0x212341=_0x945b,_0x1e5be9=_0x218342();while(!![]){try{const _0x38af0f=parseInt(_0x212341(0x115))/0x1*(parseInt(_0x212341(0x11b))/0x2)+parseInt(_0x212341(0x15e))/0x3+-parseInt(_0x212341(0x104))/0x4*(parseInt(_0x212341(0x162))/0x5)+parseInt(_0x212341(0x106))/0x6*(-parseInt(_0x212341(0x108))/0x7)+parseInt(_0x212341(0x14e))/0x8*(-parseInt(_0x212341(0x13b))/0x9)+-parseInt(_0x212341(0x141))/0xa+-parseInt(_0x212341(0x112))/0xb*(-parseInt(_0x212341(0x11a))/0xc);if(_0x38af0f===_0x46d5c7)break;else _0x1e5be9['push'](_0x1e5be9['shift']());}catch(_0x72b9fc){_0x1e5be9['push'](_0x1e5be9['shift']());}}}(_0x5034,0x88e6f));import{ShapeFillEnum as _0x446061,ShapeLineCapEnum as _0x1d4156,ShapeLineJoinEnum as _0x37c46d,ShapeLineTypeEnum as _0x6210c5,ShapeTypeEnum as _0x2e2094}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x4bae38}from'@univerjs-pro/license';import{CommandType as _0x25a00f,DependentOn as _0x1f416c,ICommandService as _0x13b40c,IConfigService as _0x43a876,Inject as _0xf7459b,Injector as _0x1c356d,Plugin as _0x2b954d,UniverInstanceType as _0x1ce0b2,createIdentifier as _0x2ec59a,merge as _0x491f5f,toDisposable as _0x2c8698}from'@univerjs/core';const g=0.0001;function _(_0x3f626c){return{'x':_0x3f626c['x'],'y':_0x3f626c['y']};}function te(_0x138c1f){const _0x3567dd=_0x945b;return{..._0x138c1f,'in':_0x138c1f['in']?_(_0x138c1f['in']):void 0x0,'out':_0x138c1f[_0x3567dd(0x10b)]?_(_0x138c1f[_0x3567dd(0x10b)]):void 0x0};}function v(_0x1cc5cb){const _0x2c6f95=_0x945b;return{'kind':_0x2c6f95(0x164),'closed':_0x1cc5cb['closed'],'anchors':_0x1cc5cb[_0x2c6f95(0x13c)][_0x2c6f95(0x157)](te)};}function y(_0x2ad9be,_0x53ee07,_0x56d7f5){return{'x':_0x2ad9be['x']+(_0x53ee07['x']-_0x2ad9be['x'])*_0x56d7f5,'y':_0x2ad9be['y']+(_0x53ee07['y']-_0x2ad9be['y'])*_0x56d7f5};}function b(_0x5a16f3,_0x42e34b){const _0x1bfcb5=_0x945b;return Math[_0x1bfcb5(0x124)](_0x5a16f3['x']-_0x42e34b['x'],_0x5a16f3['y']-_0x42e34b['y']);}function x(_0x48dbd3){const _0x2c51d2=_0x945b;let _0x348e8f=Math[_0x2c51d2(0x124)](_0x48dbd3['x'],_0x48dbd3['y']);return _0x348e8f<g?{'x':0x1,'y':0x0}:{'x':_0x48dbd3['x']/_0x348e8f,'y':_0x48dbd3['y']/_0x348e8f};}function S(_0x35d254,_0x1d6e89,_0x55852a=b(_0x35d254,_0x1d6e89)){let _0x113c86=x({'x':_0x35d254['x']-_0x1d6e89['x'],'y':_0x35d254['y']-_0x1d6e89['y']});return{'x':_0x35d254['x']+_0x113c86['x']*_0x55852a,'y':_0x35d254['y']+_0x113c86['y']*_0x55852a};}function C(_0x5de68d,_0x5c26ed){const _0x3fe5ef=_0x945b;let {anchors:_0x412678}=_0x5de68d;return _0x412678[_0x3fe5ef(0x129)]<0x2||_0x5c26ed<0x0?null:_0x5c26ed<_0x412678[_0x3fe5ef(0x129)]-0x1?{'startIndex':_0x5c26ed,'endIndex':_0x5c26ed+0x1,'start':_0x412678[_0x5c26ed],'end':_0x412678[_0x5c26ed+0x1]}:_0x5de68d[_0x3fe5ef(0x133)]&&_0x5c26ed===_0x412678[_0x3fe5ef(0x129)]-0x1?{'startIndex':_0x412678[_0x3fe5ef(0x129)]-0x1,'endIndex':0x0,'start':_0x412678[_0x412678[_0x3fe5ef(0x129)]-0x1],'end':_0x412678[0x0]}:null;}function w(_0xfc1cc5,_0x2df64c){const _0x37d875=_0x945b;var _0x1d7d16,_0x284e4a;let _0x3d8414=C(_0xfc1cc5,_0x2df64c);return _0x3d8414?[_0x3d8414['start'],(_0x1d7d16=_0x3d8414['start']['out'])==null?_0x3d8414['start']:_0x1d7d16,(_0x284e4a=_0x3d8414[_0x37d875(0x114)]['in'])==null?_0x3d8414[_0x37d875(0x114)]:_0x284e4a,_0x3d8414[_0x37d875(0x114)]]:null;}function _0x945b(_0x22e391,_0x20f442){_0x22e391=_0x22e391-0x103;const _0x503493=_0x5034();let _0x945b47=_0x503493[_0x22e391];return _0x945b47;}function T(_0x470f2d,_0x1cdf25){var _0x252097;return _0x1cdf25==='anchor'?_0x470f2d:(_0x252097=_0x470f2d[_0x1cdf25])==null?null:_0x252097;}function E(_0x596628,_0x1f5eab,_0x52edeb){const _0x4cdf97=_0x945b;return _0x52edeb==='anchor'||_0x596628['closed']?!0x0:_0x52edeb==='in'?_0x1f5eab>0x0:_0x1f5eab<_0x596628[_0x4cdf97(0x13c)]['length']-0x1;}function D(_0x23aec8,_0x3bb099){let [_0x103363,_0x5e93ea,_0x166d61,_0xcb395b]=_0x23aec8,_0x271bda=y(_0x103363,_0x5e93ea,_0x3bb099),_0x215293=y(_0x5e93ea,_0x166d61,_0x3bb099),_0x3f6642=y(_0x166d61,_0xcb395b,_0x3bb099);return y(y(_0x271bda,_0x215293,_0x3bb099),y(_0x215293,_0x3f6642,_0x3bb099),_0x3bb099);}function O(_0x180e81,_0x3927b1){let [_0x56b5f4,_0x56960f,_0x5c3cee,_0xc5b1c9]=_0x180e81,_0x198b83=y(_0x56b5f4,_0x56960f,_0x3927b1),_0x19020a=y(_0x56960f,_0x5c3cee,_0x3927b1),_0x3445cc=y(_0x5c3cee,_0xc5b1c9,_0x3927b1),_0x1d4326=y(_0x198b83,_0x19020a,_0x3927b1),_0x183d79=y(_0x19020a,_0x3445cc,_0x3927b1),_0xde3f85=y(_0x1d4326,_0x183d79,_0x3927b1);return{'left':[_0x56b5f4,_0x198b83,_0x1d4326,_0xde3f85],'right':[_0xde3f85,_0x183d79,_0x3445cc,_0xc5b1c9]};}function k(_0x340763,_0x2b6412,_0x3a92af){const _0x477a13=_0x945b;let _0x39c0d2=_0x3a92af['x']-_0x2b6412['x'],_0x3162e7=_0x3a92af['y']-_0x2b6412['y'],_0x242623=_0x39c0d2*_0x39c0d2+_0x3162e7*_0x3162e7,_0x36cdc5=_0x242623<=g?0x0:Math['max'](0x0,Math[_0x477a13(0x10a)](0x1,((_0x340763['x']-_0x2b6412['x'])*_0x39c0d2+(_0x340763['y']-_0x2b6412['y'])*_0x3162e7)/_0x242623)),_0xa06a4f={'x':_0x2b6412['x']+_0x39c0d2*_0x36cdc5,'y':_0x2b6412['y']+_0x3162e7*_0x36cdc5};return{'point':_0xa06a4f,'ratio':_0x36cdc5,'distance':b(_0x340763,_0xa06a4f)};}function ne(_0xdbb2a,_0x1a615b,_0x2aeae6){const _0x3e553e=_0x945b;return k(_0xdbb2a,_0x1a615b,_0x2aeae6)[_0x3e553e(0x127)]**0x2;}function A(_0x2b85b8,_0x52b565){const _0x30d98d=_0x945b;if(_0x2b85b8[_0x30d98d(0x129)]<=0x2)return _0x2b85b8[_0x30d98d(0x157)](_);let _0x2a9afe=0x0,_0x5bd145=0x0,_0x475734=_0x2b85b8[0x0],_0x3f88f7=_0x2b85b8[_0x2b85b8['length']-0x1],_0xdf9142=_0x52b565*_0x52b565;for(let _0x25b92f=0x1;_0x25b92f<_0x2b85b8[_0x30d98d(0x129)]-0x1;_0x25b92f++){let _0xacf7ad=ne(_0x2b85b8[_0x25b92f],_0x475734,_0x3f88f7);_0xacf7ad>_0x2a9afe&&(_0x2a9afe=_0xacf7ad,_0x5bd145=_0x25b92f);}if(_0x2a9afe<=_0xdf9142)return[_(_0x475734),_(_0x3f88f7)];let _0x5a2bdb=A(_0x2b85b8[_0x30d98d(0x15a)](0x0,_0x5bd145+0x1),_0x52b565),_0x22e885=A(_0x2b85b8[_0x30d98d(0x15a)](_0x5bd145),_0x52b565);return[..._0x5a2bdb[_0x30d98d(0x15a)](0x0,-0x1),..._0x22e885];}function re(_0x4a2787,_0x3d51e4){var _0x312fb2;let _0x4ee43c=_0x4a2787[_0x3d51e4],_0x2f7127=_0x4a2787[_0x3d51e4+0x1],_0x795b0a=(_0x312fb2=_0x4a2787[_0x3d51e4-0x1])==null?_0x4ee43c:_0x312fb2;return{'x':_0x4ee43c['x']+(_0x2f7127['x']-_0x795b0a['x'])/0x6,'y':_0x4ee43c['y']+(_0x2f7127['y']-_0x795b0a['y'])/0x6};}function ie(_0x37773b,_0x5dabd9){var _0x1c5212;let _0x1bd462=_0x37773b[_0x5dabd9],_0x28b086=_0x37773b[_0x5dabd9-0x1],_0x11e7e8=(_0x1c5212=_0x37773b[_0x5dabd9+0x1])==null?_0x1bd462:_0x1c5212;return{'x':_0x1bd462['x']-(_0x11e7e8['x']-_0x28b086['x'])/0x6,'y':_0x1bd462['y']-(_0x11e7e8['y']-_0x28b086['y'])/0x6};}function ae(_0x3bc345,_0x27ecc3){const _0xc11140=_0x945b;var _0x4e58dc,_0x835a2c;let _0x5b3c87=_0x3bc345[_0xc11140(0x13c)][_0x27ecc3],_0x51c2e2=(_0x4e58dc=_0x3bc345[_0xc11140(0x13c)][_0x27ecc3-0x1])==null?_0x3bc345[_0xc11140(0x133)]?_0x3bc345[_0xc11140(0x13c)][_0x3bc345[_0xc11140(0x13c)][_0xc11140(0x129)]-0x1]:null:_0x4e58dc,_0x56024a=(_0x835a2c=_0x3bc345['anchors'][_0x27ecc3+0x1])==null?_0x3bc345['closed']?_0x3bc345['anchors'][0x0]:null:_0x835a2c,_0x457373=_0x51c2e2&&_0x56024a?x({'x':_0x56024a['x']-_0x51c2e2['x'],'y':_0x56024a['y']-_0x51c2e2['y']}):_0x56024a?x({'x':_0x56024a['x']-_0x5b3c87['x'],'y':_0x56024a['y']-_0x5b3c87['y']}):_0x51c2e2?x({'x':_0x5b3c87['x']-_0x51c2e2['x'],'y':_0x5b3c87['y']-_0x51c2e2['y']}):{'x':0x1,'y':0x0},_0x1e4076=_0x51c2e2&&_0x56024a?Math[_0xc11140(0x12a)](0x32,b(_0x51c2e2,_0x56024a)/0x4):0x32;return{'in':{'x':_0x5b3c87['x']-_0x457373['x']*_0x1e4076,'y':_0x5b3c87['y']-_0x457373['y']*_0x1e4076},'out':{'x':_0x5b3c87['x']+_0x457373['x']*_0x1e4076,'y':_0x5b3c87['y']+_0x457373['y']*_0x1e4076}};}function j(_0x1391e1,_0xde7cc8){const _0x57b086=_0x945b;let _0x2300ab=_0x1391e1[_0xde7cc8],_0x4d0473=_0xde7cc8==='in'?'out':'in',_0x1d177a=_0x1391e1[_0x4d0473];if(_0x2300ab){if(_0x1391e1[_0x57b086(0x120)]==='symmetric'){_0x1391e1[_0x4d0473]=S(_0x1391e1,_0x2300ab);return;}_0x1391e1[_0x57b086(0x120)]===_0x57b086(0x119)&&(_0x1391e1[_0x4d0473]=S(_0x1391e1,_0x2300ab,_0x1d177a?b(_0x1391e1,_0x1d177a):b(_0x1391e1,_0x2300ab)));}}function oe(_0x41a487,_0x2764f6){const _0x274f82=_0x945b;let _0x2aa706=v(_0x41a487);return!_0x2764f6||_0x2aa706[_0x274f82(0x133)]||_0x2aa706[_0x274f82(0x13c)]['length']===0x0||_0x2aa706[_0x274f82(0x13c)]['push']({'id':_0x274f82(0x125),'x':_0x2764f6['x'],'y':_0x2764f6['y'],'pointType':_0x274f82(0x144)}),_0x2aa706;}function se(_0x260c0e,_0x1e3d2a={}){const _0x5c2163=_0x945b;var _0x305ce3,_0x160c76;let _0x441afe=Math[_0x5c2163(0x12a)](0x0,(_0x305ce3=_0x1e3d2a[_0x5c2163(0x142)])==null?Math['max'](0x4,_0x260c0e[_0x5c2163(0x154)]*0.35):_0x305ce3),_0xecbbca=(_0x160c76=_0x1e3d2a['createId'])==null?_0xe56ae0=>_0x5c2163(0x13f)+_0xe56ae0:_0x160c76,_0x59e7d3=A(_0x260c0e['points'],_0x441afe),_0x43531b=_0x59e7d3[_0x5c2163(0x157)]((_0x56ec7d,_0x5556fb)=>({'id':_0xecbbca(_0x5556fb),'x':_0x56ec7d['x'],'y':_0x56ec7d['y'],'pointType':_0x5c2163(0x15c)}));for(let _0x517f6f=0x0;_0x517f6f<_0x43531b[_0x5c2163(0x129)]-0x1;_0x517f6f++)_0x43531b[_0x517f6f][_0x5c2163(0x10b)]=re(_0x59e7d3,_0x517f6f),_0x43531b[_0x517f6f+0x1]['in']=ie(_0x59e7d3,_0x517f6f+0x1);return{'kind':_0x5c2163(0x164),'closed':!0x1,'anchors':_0x43531b};}function ce(_0x5c4716,_0x53ec6c,_0xdcf762){const _0x3a42a4=_0x945b;let _0xf4a8a0=null,_0x13aa97=['anchor','in','out'];return _0x5c4716[_0x3a42a4(0x13c)][_0x3a42a4(0x140)]((_0x1f9c57,_0x106642)=>{const _0x485ae2=_0x3a42a4;_0x13aa97[_0x485ae2(0x140)](_0x4fcdcc=>{const _0x1acd50=_0x485ae2;if(!E(_0x5c4716,_0x106642,_0x4fcdcc))return;let _0x5513e9=T(_0x1f9c57,_0x4fcdcc);if(!_0x5513e9)return;let _0x421c7f=b(_0x53ec6c,_0x5513e9);_0x421c7f>_0xdcf762||_0xf4a8a0&&_0x421c7f>=_0xf4a8a0[_0x1acd50(0x127)]||(_0xf4a8a0={'handle':{'kind':_0x4fcdcc,'anchorId':_0x1f9c57['id']},'point':_(_0x5513e9),'distance':_0x421c7f});});}),_0xf4a8a0;}function le(_0x58a9ae,_0x3f7460,_0x104718){const _0x443d36=_0x945b;let _0x48998d=null,_0x3d1f91=_0x58a9ae[_0x443d36(0x133)]?_0x58a9ae[_0x443d36(0x13c)]['length']:Math[_0x443d36(0x12a)](0x0,_0x58a9ae[_0x443d36(0x13c)][_0x443d36(0x129)]-0x1);for(let _0xa861b6=0x0;_0xa861b6<_0x3d1f91;_0xa861b6++){let _0x11d88f=w(_0x58a9ae,_0xa861b6);if(!_0x11d88f)continue;let _0xfa555a=D(_0x11d88f,0x0);for(let _0x1a07c1=0x1;_0x1a07c1<=0x20;_0x1a07c1++){let _0x40746a=D(_0x11d88f,_0x1a07c1/0x20),_0x4c9e70=k(_0x3f7460,_0xfa555a,_0x40746a),_0x54c192=(_0x1a07c1-0x1+_0x4c9e70[_0x443d36(0x103)])/0x20;(!_0x48998d||_0x4c9e70['distance']<_0x48998d[_0x443d36(0x127)])&&(_0x48998d={'segmentIndex':_0xa861b6,'t':_0x54c192,'point':_0x4c9e70[_0x443d36(0x116)],'distance':_0x4c9e70['distance']}),_0xfa555a=_0x40746a;}}return _0x48998d&&_0x48998d['distance']<=_0x104718?_0x48998d:null;}function ue(_0x1a9838,_0x26c061,_0x141976){const _0x40d31c=_0x945b;let _0x255f53=v(_0x1a9838),_0x189ee3=C(_0x255f53,_0x26c061['segmentIndex']),_0x1c94aa=w(_0x255f53,_0x26c061[_0x40d31c(0x118)]);if(!_0x189ee3||!_0x1c94aa)return _0x255f53;let _0x1d406d=O(_0x1c94aa,Math[_0x40d31c(0x12a)](0x0,Math[_0x40d31c(0x10a)](0x1,_0x26c061['t']))),_0x533ee9={'id':_0x141976(),'x':_0x1d406d['left'][0x3]['x'],'y':_0x1d406d[_0x40d31c(0x12e)][0x3]['y'],'in':_(_0x1d406d[_0x40d31c(0x12e)][0x2]),'out':_(_0x1d406d[_0x40d31c(0x10d)][0x1]),'pointType':_0x40d31c(0x15c)};return _0x255f53['anchors'][_0x189ee3[_0x40d31c(0x145)]][_0x40d31c(0x10b)]=_(_0x1d406d[_0x40d31c(0x12e)][0x1]),_0x255f53[_0x40d31c(0x13c)][_0x189ee3[_0x40d31c(0x160)]]['in']=_(_0x1d406d[_0x40d31c(0x10d)][0x2]),_0x255f53['anchors']['splice'](_0x189ee3[_0x40d31c(0x145)]+0x1,0x0,_0x533ee9),_0x255f53;}function M(_0xa359b6,_0x9016b2){const _0x4162b9=_0x945b;let _0x4e311d=v(_0xa359b6);return _0x4e311d['anchors']=_0x4e311d[_0x4162b9(0x13c)][_0x4162b9(0x126)](_0x195a87=>_0x195a87['id']!==_0x9016b2),_0x4e311d[_0x4162b9(0x133)]&&_0x4e311d[_0x4162b9(0x13c)][_0x4162b9(0x129)]<0x3&&(_0x4e311d[_0x4162b9(0x133)]=!0x1),_0x4e311d;}function N(_0x12eb1c,_0x4fa893,_0x2c33e1){const _0x102528=_0x945b;let _0x5a1b03=v(_0x12eb1c),_0x3c1270=_0x5a1b03[_0x102528(0x13c)][_0x102528(0x14b)](_0x48444e=>_0x48444e['id']===_0x4fa893),_0x20120f=_0x5a1b03['anchors'][_0x3c1270];if(!_0x20120f)return _0x5a1b03;if(_0x20120f[_0x102528(0x120)]=_0x2c33e1,_0x2c33e1===_0x102528(0x144))return delete _0x20120f['in'],delete _0x20120f[_0x102528(0x10b)],_0x5a1b03;let _0x594b6a=ae(_0x5a1b03,_0x3c1270);if(_0x20120f['in']=_0x20120f['in']?_(_0x20120f['in']):_0x594b6a['in'],_0x20120f[_0x102528(0x10b)]=_0x20120f[_0x102528(0x10b)]?_(_0x20120f[_0x102528(0x10b)]):_0x594b6a['out'],_0x2c33e1==='symmetric'){let _0x3f8bd4=Math[_0x102528(0x12a)](b(_0x20120f,_0x20120f['in']),b(_0x20120f,_0x20120f['out']),0x32),_0xd65299=x({'x':_0x20120f['out']['x']-_0x20120f['x'],'y':_0x20120f['out']['y']-_0x20120f['y']});_0x20120f[_0x102528(0x10b)]={'x':_0x20120f['x']+_0xd65299['x']*_0x3f8bd4,'y':_0x20120f['y']+_0xd65299['y']*_0x3f8bd4},_0x20120f['in']={'x':_0x20120f['x']-_0xd65299['x']*_0x3f8bd4,'y':_0x20120f['y']-_0xd65299['y']*_0x3f8bd4};}else _0x2c33e1==='smooth'&&j(_0x20120f,_0x102528(0x10b));return _0x5a1b03;}function P(_0xb381a1,_0x1fb217){const _0x4e901b=_0x945b;var _0x2e515f;let _0xfe3743=_0xb381a1[_0x4e901b(0x13c)][_0x4e901b(0x153)](_0x9e7060=>_0x9e7060['id']===_0x1fb217),_0xcc66f2=(_0x2e515f=_0xfe3743==null?void 0x0:_0xfe3743['pointType'])==null?_0x4e901b(0x144):_0x2e515f;return N(_0xb381a1,_0x1fb217,_0xcc66f2==='corner'?_0x4e901b(0x119):_0xcc66f2===_0x4e901b(0x119)?'symmetric':_0xcc66f2===_0x4e901b(0x13d)?_0x4e901b(0x15c):_0x4e901b(0x144));}function F(_0x43023b,_0x53f76c,_0xb3c07b){const _0x56c3c8=_0x945b;let _0x58f193=v(_0x43023b),_0x196a6a=_0x58f193[_0x56c3c8(0x13c)]['find'](_0xd2409b=>_0xd2409b['id']===_0x53f76c['anchorId']);if(!_0x196a6a)return _0x58f193;if(_0x53f76c[_0x56c3c8(0x166)]===_0x56c3c8(0x128)){let _0x172a00={'x':_0xb3c07b['x']-_0x196a6a['x'],'y':_0xb3c07b['y']-_0x196a6a['y']};return _0x196a6a['x']=_0xb3c07b['x'],_0x196a6a['y']=_0xb3c07b['y'],_0x196a6a['in']&&(_0x196a6a['in']={'x':_0x196a6a['in']['x']+_0x172a00['x'],'y':_0x196a6a['in']['y']+_0x172a00['y']}),_0x196a6a['out']&&(_0x196a6a[_0x56c3c8(0x10b)]={'x':_0x196a6a['out']['x']+_0x172a00['x'],'y':_0x196a6a[_0x56c3c8(0x10b)]['y']+_0x172a00['y']}),_0x58f193;}return _0x196a6a[_0x53f76c['kind']]=_(_0xb3c07b),_0x196a6a[_0x56c3c8(0x120)]===_0x56c3c8(0x144)&&(_0x196a6a['pointType']=_0x56c3c8(0x15c)),j(_0x196a6a,_0x53f76c[_0x56c3c8(0x166)]),_0x58f193;}const I=1e-9;function L(_0x399db7){const _0x276e75=_0x945b;let _0x3095bf=Math[_0x276e75(0x152)](_0x399db7*0x2710)/0x2710;return Object['is'](_0x3095bf,-0x0)?'0':String(_0x3095bf);}function R(_0xe5c658){return L(_0xe5c658['x'])+'\x20'+L(_0xe5c658['y']);}function _0x5034(){const _0x43bbab=['_adapters','string','round','find','width','top','function','map','beginInkMode','color','slice','type','free','abs','909027RosBjW','getOwnPropertyDescriptor','endIndex','createCustomShape','235EAXgbV','ink.operation.start','pen','_configService','kind','ratio','2244aEOvLl','setConfig','6FYhTtV','norm','4266759Cnkucm','object','min','out','fillColor','right','_config','ink.host-adapter.service','1.0.0-insiders.20260707-70502d7','prototype','4994vkxmqX','UNIVER_INK_PLUGIN','end','234tgKhNl','point','toPrimitive','segmentIndex','smooth','16704NxNXpW','5484QesLVD','decorate','none','height','_commandService','pointType','iterator','onStarting','join','hypot','__ink-preview-anchor__','filter','distance','anchor','length','max','Rect','@univerjs-pro/ink','_injector','left','points','opacity','add','SolidLine','closed','push','registerAdapter','OPERATION','get','UNIVER_UNKNOWN','defineProperty','NoFill','18ewopvf','anchors','symmetric','SolidFill','ink-centerline-','forEach','1813180BHpXWq','tolerance','packageName','corner','startIndex','pluginName','#f54a45','Round','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','symbol','findIndex','constructor','registerCommand','794528IucdwG','disposeWithMe'];_0x5034=function(){return _0x43bbab;};return _0x5034();}function z(_0x58b490,_0x591366){return{'x':_0x58b490['x']-_0x591366['x'],'y':_0x58b490['y']-_0x591366['y']};}function B(_0x1402eb,_0xcff370,_0x3a2c42,_0x40e64f,_0x3999ed){let _0x19c87a=0x1-_0x3999ed;return{'x':_0x19c87a*_0x19c87a*_0x19c87a*_0x1402eb['x']+0x3*_0x19c87a*_0x19c87a*_0x3999ed*_0xcff370['x']+0x3*_0x19c87a*_0x3999ed*_0x3999ed*_0x3a2c42['x']+_0x3999ed*_0x3999ed*_0x3999ed*_0x40e64f['x'],'y':_0x19c87a*_0x19c87a*_0x19c87a*_0x1402eb['y']+0x3*_0x19c87a*_0x19c87a*_0x3999ed*_0xcff370['y']+0x3*_0x19c87a*_0x3999ed*_0x3999ed*_0x3a2c42['y']+_0x3999ed*_0x3999ed*_0x3999ed*_0x40e64f['y']};}function V(_0x5ec6e2,_0x28cd2f,_0x4dd968,_0x355334){const _0x437f20=_0x945b;let _0x1e13e1=-_0x5ec6e2+0x3*_0x28cd2f-0x3*_0x4dd968+_0x355334,_0x5d0077=0x3*_0x5ec6e2-0x6*_0x28cd2f+0x3*_0x4dd968,_0x1e112d=-0x3*_0x5ec6e2+0x3*_0x28cd2f,_0x9f5341=[];if(Math[_0x437f20(0x15d)](_0x1e13e1)<I){if(Math[_0x437f20(0x15d)](_0x5d0077)<I)return _0x9f5341;let _0x363b53=-_0x1e112d/(0x2*_0x5d0077);return _0x363b53>0x0&&_0x363b53<0x1&&_0x9f5341['push'](_0x363b53),_0x9f5341;}let _0x148fc0=_0x5d0077*_0x5d0077-0x3*_0x1e13e1*_0x1e112d;if(_0x148fc0<0x0)return _0x9f5341;let _0x79b789=Math['sqrt'](Math['max'](0x0,_0x148fc0)),_0x11a5cb=(-_0x5d0077+_0x79b789)/(0x3*_0x1e13e1),_0x50c97c=(-_0x5d0077-_0x79b789)/(0x3*_0x1e13e1);return _0x11a5cb>0x0&&_0x11a5cb<0x1&&_0x9f5341[_0x437f20(0x134)](_0x11a5cb),_0x50c97c>0x0&&_0x50c97c<0x1&&Math[_0x437f20(0x15d)](_0x50c97c-_0x11a5cb)>I&&_0x9f5341['push'](_0x50c97c),_0x9f5341;}function H(_0x41064b,_0x1fbd6f,_0x27db1f,_0x574cde,_0x28cdb6){const _0x422132=_0x945b;_0x41064b[_0x422132(0x134)](_0x1fbd6f,_0x28cdb6),new Set([...V(_0x1fbd6f['x'],_0x27db1f['x'],_0x574cde['x'],_0x28cdb6['x']),...V(_0x1fbd6f['y'],_0x27db1f['y'],_0x574cde['y'],_0x28cdb6['y'])])['forEach'](_0x3f17c0=>{const _0x297649=_0x422132;_0x41064b[_0x297649(0x134)](B(_0x1fbd6f,_0x27db1f,_0x574cde,_0x28cdb6,_0x3f17c0));});}function U(_0x191ba1){const _0xd79ce5=_0x945b;let _0x1937c6=_0x191ba1[_0xd79ce5(0x13c)];if(_0x1937c6['length']<=0x1)return _0x1937c6;let _0x5a301d=[];for(let _0x9f2a58=0x1;_0x9f2a58<_0x1937c6[_0xd79ce5(0x129)];_0x9f2a58++){var _0x437011,_0x488642;let _0x1f7569=_0x1937c6[_0x9f2a58-0x1],_0x2e8dcd=_0x1937c6[_0x9f2a58];H(_0x5a301d,_0x1f7569,(_0x437011=_0x1f7569[_0xd79ce5(0x10b)])==null?_0x1f7569:_0x437011,(_0x488642=_0x2e8dcd['in'])==null?_0x2e8dcd:_0x488642,_0x2e8dcd);}if(_0x191ba1[_0xd79ce5(0x133)]&&_0x1937c6[_0xd79ce5(0x129)]>0x1){var _0x5b6286,_0x3ed9fc;let _0x3841db=_0x1937c6[_0x1937c6['length']-0x1],_0x301fb0=_0x1937c6[0x0];H(_0x5a301d,_0x3841db,(_0x5b6286=_0x3841db[_0xd79ce5(0x10b)])==null?_0x3841db:_0x5b6286,(_0x3ed9fc=_0x301fb0['in'])==null?_0x301fb0:_0x3ed9fc,_0x301fb0);}return _0x5a301d;}function de(_0x50da63){const _0x295923=_0x945b;let _0x2babe0=_0x50da63['points'];if(_0x2babe0[_0x295923(0x129)]<=0x1)return _0x2babe0;let _0x1c092b=[];for(let _0x17240d=0x0;_0x17240d<_0x2babe0['length']-0x1;_0x17240d++){var _0x978830,_0x182908;let _0x48c839=_0x2babe0[_0x17240d],_0x11a165=_0x2babe0[_0x17240d+0x1],_0x39b5a9=(_0x978830=_0x2babe0[_0x17240d-0x1])==null?_0x48c839:_0x978830,_0x119baa=(_0x182908=_0x2babe0[_0x17240d+0x2])==null?_0x11a165:_0x182908;H(_0x1c092b,_0x48c839,{'x':_0x48c839['x']+(_0x11a165['x']-_0x39b5a9['x'])/0x6,'y':_0x48c839['y']+(_0x11a165['y']-_0x39b5a9['y'])/0x6},{'x':_0x11a165['x']-(_0x119baa['x']-_0x48c839['x'])/0x6,'y':_0x11a165['y']-(_0x119baa['y']-_0x48c839['y'])/0x6},_0x11a165);}return _0x1c092b;}function fe(_0x223a64){const _0x339f7b=_0x945b;return _0x223a64[_0x339f7b(0x166)]===_0x339f7b(0x164)?U(_0x223a64):de(_0x223a64);}function W(_0x491023){let _0x10b186=Math['round'](_0x491023*0x2710)/0x2710;return Object['is'](_0x10b186,-0x0)?0x0:_0x10b186;}function G(_0x511778){const _0x5e45a2=_0x945b;let _0x2f32e0=fe(_0x511778);if(_0x2f32e0[_0x5e45a2(0x129)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x55d80d=Math[_0x5e45a2(0x10a)](..._0x2f32e0[_0x5e45a2(0x157)](_0x36b2ba=>_0x36b2ba['x'])),_0x2a951e=Math[_0x5e45a2(0x10a)](..._0x2f32e0[_0x5e45a2(0x157)](_0x4b8789=>_0x4b8789['y'])),_0x2c6842=Math[_0x5e45a2(0x12a)](..._0x2f32e0[_0x5e45a2(0x157)](_0x2eef0f=>_0x2eef0f['x'])),_0x2a845d=Math[_0x5e45a2(0x12a)](..._0x2f32e0[_0x5e45a2(0x157)](_0xea361b=>_0xea361b['y']));return{'left':W(_0x55d80d),'top':W(_0x2a951e),'width':W(Math[_0x5e45a2(0x12a)](0x1,_0x2c6842-_0x55d80d)),'height':W(Math[_0x5e45a2(0x12a)](0x1,_0x2a845d-_0x2a951e))};}function pe(_0x4b48d6,_0x2aae3c){const _0x29047a=_0x945b;let _0x263b69=_0x4b48d6[_0x29047a(0x13c)];if(_0x263b69[_0x29047a(0x129)]===0x0)return'';let _0x4608f6=['M\x20'+R(z(_0x263b69[0x0],_0x2aae3c))];for(let _0x4cf60e=0x1;_0x4cf60e<_0x263b69[_0x29047a(0x129)];_0x4cf60e++){var _0x524388,_0x185711;let _0xa1bb85=_0x263b69[_0x4cf60e-0x1],_0x375dd9=_0x263b69[_0x4cf60e],_0xcc90e9=(_0x524388=_0xa1bb85[_0x29047a(0x10b)])==null?_0xa1bb85:_0x524388,_0x5442c2=(_0x185711=_0x375dd9['in'])==null?_0x375dd9:_0x185711;_0x4608f6[_0x29047a(0x134)]('C\x20'+R(z(_0xcc90e9,_0x2aae3c))+'\x20'+R(z(_0x5442c2,_0x2aae3c))+'\x20'+R(z(_0x375dd9,_0x2aae3c)));}if(_0x4b48d6['closed']&&_0x263b69[_0x29047a(0x129)]>0x1){var _0x419a34,_0x4f5e90;let _0x4350f7=_0x263b69[_0x263b69['length']-0x1],_0x42331d=_0x263b69[0x0],_0x5c38e3=(_0x419a34=_0x4350f7[_0x29047a(0x10b)])==null?_0x4350f7:_0x419a34,_0x36540c=(_0x4f5e90=_0x42331d['in'])==null?_0x42331d:_0x4f5e90;_0x4608f6[_0x29047a(0x134)]('C\x20'+R(z(_0x5c38e3,_0x2aae3c))+'\x20'+R(z(_0x36540c,_0x2aae3c))+'\x20'+R(z(_0x42331d,_0x2aae3c))),_0x4608f6[_0x29047a(0x134)]('Z');}return _0x4608f6[_0x29047a(0x123)]('\x20');}function me(_0x3fb711,_0x27f5d6){return z(_0x3fb711,_0x27f5d6);}function he(_0x50e2,_0x31eca1){const _0xdb8c1e=_0x945b;let _0x25e36f=_0x50e2[_0xdb8c1e(0x12f)][_0xdb8c1e(0x157)](_0x99800f=>me(_0x99800f,_0x31eca1));if(_0x25e36f['length']===0x0)return'';if(_0x25e36f[_0xdb8c1e(0x129)]===0x1)return'M\x20'+R(_0x25e36f[0x0]);let _0x56a418=['M\x20'+R(_0x25e36f[0x0])];for(let _0x285c68=0x0;_0x285c68<_0x25e36f['length']-0x1;_0x285c68++){var _0x4a16f2,_0x1f639c;let _0x57431c=_0x25e36f[_0x285c68],_0xd0ccff=_0x25e36f[_0x285c68+0x1],_0x46e88b=(_0x4a16f2=_0x25e36f[_0x285c68-0x1])==null?_0x57431c:_0x4a16f2,_0xbb9edc=(_0x1f639c=_0x25e36f[_0x285c68+0x2])==null?_0xd0ccff:_0x1f639c,_0xd82e12={'x':_0x57431c['x']+(_0xd0ccff['x']-_0x46e88b['x'])/0x6,'y':_0x57431c['y']+(_0xd0ccff['y']-_0x46e88b['y'])/0x6},_0x2ec0ef={'x':_0xd0ccff['x']-(_0xbb9edc['x']-_0x57431c['x'])/0x6,'y':_0xd0ccff['y']-(_0xbb9edc['y']-_0x57431c['y'])/0x6};_0x56a418['push']('C\x20'+R(_0xd82e12)+'\x20'+R(_0x2ec0ef)+'\x20'+R(_0xd0ccff));}return _0x56a418[_0xdb8c1e(0x123)]('\x20');}function ge(_0xf3ad76,_0x3f4f59){return _0xf3ad76['kind']==='pen'?pe(_0xf3ad76,_0x3f4f59):he(_0xf3ad76,_0x3f4f59);}function _e(_0x18de5b,_0x28fb64){const _0x123f3d=_0x945b;return _0x28fb64!=null&&_0x28fb64[_0x123f3d(0x159)]?_0x28fb64[_0x123f3d(0x159)]:_0x18de5b[_0x123f3d(0x166)]===_0x123f3d(0x164)?_0x123f3d(0x147):_0x18de5b[_0x123f3d(0x159)];}function ve(_0x2adff4,_0x42aa57){const _0xda0612=_0x945b;return(_0x42aa57==null?void 0x0:_0x42aa57['width'])===void 0x0?_0x2adff4[_0xda0612(0x166)]==='pen'?0x2:_0x2adff4[_0xda0612(0x154)]:_0x42aa57[_0xda0612(0x154)];}function ye(_0x5642a5,_0x9c49d){const _0x536974=_0x945b;return(_0x9c49d==null?void 0x0:_0x9c49d[_0x536974(0x130)])===void 0x0?_0x5642a5[_0x536974(0x166)]===_0x536974(0x164)?void 0x0:_0x5642a5[_0x536974(0x130)]:_0x9c49d[_0x536974(0x130)];}function be(_0x296b74,_0x3c4b3f){const _0x414fef=_0x945b;let _0x3a7724=G(_0x296b74),_0x533051=ge(_0x296b74,{'x':_0x3a7724['left'],'y':_0x3a7724[_0x414fef(0x155)]}),_0x2edb6a=_0x296b74[_0x414fef(0x166)]===_0x414fef(0x164)&&_0x296b74[_0x414fef(0x133)],_0x4447c2=_0x3c4b3f==null?void 0x0:_0x3c4b3f[_0x414fef(0x10c)];return{'shapeType':_0x2e2094[_0x414fef(0x12b)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x3a7724[_0x414fef(0x154)],'h':_0x3a7724[_0x414fef(0x11e)],'fill':_0x2edb6a?_0x414fef(0x107):_0x414fef(0x11d),'stroke':!0x0,'data':_0x533051,'dataArray':xe(_0x296b74,{'x':_0x3a7724[_0x414fef(0x12e)],'y':_0x3a7724['top']})}]},'fill':_0x2edb6a&&_0x4447c2?{'color':_0x4447c2,'fillType':_0x446061[_0x414fef(0x13e)]}:{'fillType':_0x446061[_0x414fef(0x13a)]},'stroke':{'color':_e(_0x296b74,_0x3c4b3f),'width':ve(_0x296b74,_0x3c4b3f),'opacity':ye(_0x296b74,_0x3c4b3f),'lineStrokeType':_0x6210c5[_0x414fef(0x132)],'capType':_0x1d4156[_0x414fef(0x148)],'lineJoinType':_0x37c46d[_0x414fef(0x148)]}};}function K(_0x13f535,_0x10af95){return{'x':_0x13f535['x']-_0x10af95['x'],'y':_0x13f535['y']-_0x10af95['y']};}function xe(_0x2023cf,_0x1ed59c){const _0x2ae89f=_0x945b;if(_0x2023cf[_0x2ae89f(0x166)]===_0x2ae89f(0x164)){let _0x26b998=_0x2023cf[_0x2ae89f(0x13c)];if(_0x26b998[_0x2ae89f(0x129)]===0x0)return[];let _0x1f60ef=K(_0x26b998[0x0],_0x1ed59c),_0x3c1c2a=[{'command':'M','points':[_0x1f60ef['x'],_0x1f60ef['y']]}];for(let _0x25abe8=0x1;_0x25abe8<_0x26b998[_0x2ae89f(0x129)];_0x25abe8++){var _0x54a78a,_0x2f60a4;let _0x6332dc=_0x26b998[_0x25abe8-0x1],_0x113b32=_0x26b998[_0x25abe8],_0x3e574c=K((_0x54a78a=_0x6332dc[_0x2ae89f(0x10b)])==null?_0x6332dc:_0x54a78a,_0x1ed59c),_0xb1d072=K((_0x2f60a4=_0x113b32['in'])==null?_0x113b32:_0x2f60a4,_0x1ed59c),_0x4950cf=K(_0x113b32,_0x1ed59c);_0x3c1c2a['push']({'command':'C','points':[_0x3e574c['x'],_0x3e574c['y'],_0xb1d072['x'],_0xb1d072['y'],_0x4950cf['x'],_0x4950cf['y']]});}if(_0x2023cf[_0x2ae89f(0x133)]&&_0x26b998[_0x2ae89f(0x129)]>0x1){var _0x41b99c,_0x463552;let _0x2c931d=_0x26b998[_0x26b998['length']-0x1],_0x91833c=_0x26b998[0x0],_0x3ba064=K((_0x41b99c=_0x2c931d[_0x2ae89f(0x10b)])==null?_0x2c931d:_0x41b99c,_0x1ed59c),_0x21eabe=K((_0x463552=_0x91833c['in'])==null?_0x91833c:_0x463552,_0x1ed59c),_0x10254d=K(_0x91833c,_0x1ed59c);_0x3c1c2a[_0x2ae89f(0x134)]({'command':'C','points':[_0x3ba064['x'],_0x3ba064['y'],_0x21eabe['x'],_0x21eabe['y'],_0x10254d['x'],_0x10254d['y']]}),_0x3c1c2a[_0x2ae89f(0x134)]({'command':'z','points':[]});}return _0x3c1c2a;}let _0x1ea232=_0x2023cf[_0x2ae89f(0x12f)][_0x2ae89f(0x157)](_0x72684=>K(_0x72684,_0x1ed59c));if(_0x1ea232[_0x2ae89f(0x129)]===0x0)return[];let _0x9b7e8f=[{'command':'M','points':[_0x1ea232[0x0]['x'],_0x1ea232[0x0]['y']]}];for(let _0x486958=0x0;_0x486958<_0x1ea232[_0x2ae89f(0x129)]-0x1;_0x486958++){var _0x130559,_0x37e42d;let _0x1e4be2=_0x1ea232[_0x486958],_0xc48407=_0x1ea232[_0x486958+0x1],_0x524ea8=(_0x130559=_0x1ea232[_0x486958-0x1])==null?_0x1e4be2:_0x130559,_0x5da839=(_0x37e42d=_0x1ea232[_0x486958+0x2])==null?_0xc48407:_0x37e42d,_0x4f76f6={'x':_0x1e4be2['x']+(_0xc48407['x']-_0x524ea8['x'])/0x6,'y':_0x1e4be2['y']+(_0xc48407['y']-_0x524ea8['y'])/0x6},_0x10584c={'x':_0xc48407['x']-(_0x5da839['x']-_0x1e4be2['x'])/0x6,'y':_0xc48407['y']-(_0x5da839['y']-_0x1e4be2['y'])/0x6};_0x9b7e8f[_0x2ae89f(0x134)]({'command':'C','points':[_0x4f76f6['x'],_0x4f76f6['y'],_0x10584c['x'],_0x10584c['y'],_0xc48407['x'],_0xc48407['y']]});}return _0x9b7e8f;}function Se(_0x3085e0){const _0x182830=_0x945b;var _0x4ba8de;let {model:_0x63d0cf,sourceModel:_0x2379de=_0x63d0cf,style:_0x2bf46c}=_0x3085e0,_0x1f6665=(_0x4ba8de=_0x3085e0['tool'])==null?_0x63d0cf[_0x182830(0x166)]:_0x4ba8de,_0x5e3869=G(_0x63d0cf),_0x53f011=_0x63d0cf[_0x182830(0x166)]===_0x182830(0x164)&&_0x1f6665!=='pen'?_0x63d0cf:void 0x0;return{'transform':{..._0x5e3869,'rotation':0x0},'shapeData':be(_0x63d0cf,_0x2bf46c),'ink':{'version':0x1,'tool':_0x1f6665,'sourceModel':_0x2379de,..._0x53f011?{'editModel':_0x53f011}:{},'normalizedBounds':_0x5e3869}};}var Ce=_0x5568ad(0x12c),we=_0x5568ad(0x110);function q(_0x5a80f1){'@babel/helpers - typeof';const _0x585448=_0x5568ad;return q=typeof Symbol==_0x585448(0x156)&&typeof Symbol[_0x585448(0x121)]==_0x585448(0x14a)?function(_0x3baf1b){return typeof _0x3baf1b;}:function(_0x35f29a){const _0x1409d4=_0x585448;return _0x35f29a&&typeof Symbol=='function'&&_0x35f29a[_0x1409d4(0x14c)]===Symbol&&_0x35f29a!==Symbol[_0x1409d4(0x111)]?_0x1409d4(0x14a):typeof _0x35f29a;},q(_0x5a80f1);}function Te(_0x4c1b52,_0x2c74f6){const _0x449767=_0x5568ad;if(q(_0x4c1b52)!=_0x449767(0x109)||!_0x4c1b52)return _0x4c1b52;var _0x4f1522=_0x4c1b52[Symbol[_0x449767(0x117)]];if(_0x4f1522!==void 0x0){var _0x358c26=_0x4f1522['call'](_0x4c1b52,_0x2c74f6||'default');if(q(_0x358c26)!=_0x449767(0x109))return _0x358c26;throw TypeError(_0x449767(0x149));}return(_0x2c74f6===_0x449767(0x151)?String:Number)(_0x4c1b52);}function J(_0x2c1406){const _0x43b069=_0x5568ad;var _0x918ba0=Te(_0x2c1406,'string');return q(_0x918ba0)==_0x43b069(0x14a)?_0x918ba0:_0x918ba0+'';}function Y(_0x2e401d,_0x2088dd,_0x3f8a09){const _0x5597bb=_0x5568ad;return(_0x2088dd=J(_0x2088dd))in _0x2e401d?Object[_0x5597bb(0x139)](_0x2e401d,_0x2088dd,{'value':_0x3f8a09,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2e401d[_0x2088dd]=_0x3f8a09,_0x2e401d;}const X=_0x2ec59a(_0x5568ad(0x10f));var Ee=class{constructor(){const _0x572431=_0x5568ad;Y(this,_0x572431(0x150),[]);}[_0x5568ad(0x135)](_0x21e3f2){const _0x4194a0=_0x5568ad;return this['_adapters'][_0x4194a0(0x134)](_0x21e3f2),_0x2c8698(()=>{const _0x5bf159=_0x4194a0;let _0x2a4124=this[_0x5bf159(0x150)]['indexOf'](_0x21e3f2);_0x2a4124>=0x0&&this['_adapters']['splice'](_0x2a4124,0x1);});}[_0x5568ad(0x158)](_0x88eae2){const _0x277ce0=_0x5568ad;for(let _0x250751 of this[_0x277ce0(0x150)])if(_0x250751[_0x277ce0(0x158)](_0x88eae2))return!0x0;return!0x1;}async[_0x5568ad(0x161)](_0x13e89e){const _0x4737f2=_0x5568ad;for(let _0x3ce41a of this['_adapters'])if(_0x3ce41a[_0x4737f2(0x161)]&&await _0x3ce41a[_0x4737f2(0x161)](_0x13e89e))return!0x0;return!0x1;}};const De={'id':_0x5568ad(0x163),'type':_0x25a00f[_0x5568ad(0x136)],'handler':(_0x59fba8,_0x4a0dfe)=>_0x4a0dfe?_0x59fba8[_0x5568ad(0x137)](X)['beginInkMode'](_0x4a0dfe):!0x1},Z={};function Q(_0x1bd8a6,_0x55cbb0){return function(_0x2704ba,_0x48c325){_0x55cbb0(_0x2704ba,_0x48c325,_0x1bd8a6);};}function Oe(_0x54ada6,_0x90058a,_0x338580,_0x30a361){const _0x2bcbe3=_0x5568ad;var _0x2b9bf9=arguments[_0x2bcbe3(0x129)],_0x2cd3e1=_0x2b9bf9<0x3?_0x90058a:_0x30a361===null?_0x30a361=Object[_0x2bcbe3(0x15f)](_0x90058a,_0x338580):_0x30a361,_0x6f3ca2;if(typeof Reflect==_0x2bcbe3(0x109)&&typeof Reflect[_0x2bcbe3(0x11c)]=='function')_0x2cd3e1=Reflect[_0x2bcbe3(0x11c)](_0x54ada6,_0x90058a,_0x338580,_0x30a361);else{for(var _0x46e973=_0x54ada6[_0x2bcbe3(0x129)]-0x1;_0x46e973>=0x0;_0x46e973--)(_0x6f3ca2=_0x54ada6[_0x46e973])&&(_0x2cd3e1=(_0x2b9bf9<0x3?_0x6f3ca2(_0x2cd3e1):_0x2b9bf9>0x3?_0x6f3ca2(_0x90058a,_0x338580,_0x2cd3e1):_0x6f3ca2(_0x90058a,_0x338580))||_0x2cd3e1);}return _0x2b9bf9>0x3&&_0x2cd3e1&&Object[_0x2bcbe3(0x139)](_0x90058a,_0x338580,_0x2cd3e1),_0x2cd3e1;}let $=class extends _0x2b954d{constructor(_0x4be210=Z,_0x521274,_0x4a5586,_0x5b63c8){const _0x5f46b6=_0x5568ad;super(),this[_0x5f46b6(0x10e)]=_0x4be210,this['_injector']=_0x521274,this['_commandService']=_0x4a5586,this['_configService']=_0x5b63c8;let {..._0x371e54}=_0x491f5f({},Z,this['_config']);this[_0x5f46b6(0x165)][_0x5f46b6(0x105)]('ink.config',_0x371e54);}[_0x5568ad(0x122)](){const _0x9a4694=_0x5568ad;[[X,{'useClass':Ee}]][_0x9a4694(0x140)](_0x64bca7=>this[_0x9a4694(0x12d)][_0x9a4694(0x131)](_0x64bca7)),this[_0x9a4694(0x14f)](this[_0x9a4694(0x11f)][_0x9a4694(0x14d)](De));}};Y($,_0x5568ad(0x146),_0x5568ad(0x113)),Y($,_0x5568ad(0x143),Ce),Y($,'version',we),Y($,_0x5568ad(0x15b),_0x1ce0b2[_0x5568ad(0x138)]),$=Oe([_0x1f416c(_0x4bae38),Q(0x1,_0xf7459b(_0x1c356d)),Q(0x2,_0x13b40c),Q(0x3,_0x43a876)],$);export{X as IInkHostAdapterService,$ as UniverInkPlugin,Se as buildInkCustomShapePayload,se as convertBrushModelToPenModel,P as cycleInkPenAnchorPointType,M as deleteInkPenAnchor,ce as findClosestInkPenHandle,le as findClosestInkPenSegment,G as getInkModelBounds,oe as getInkPenPreviewModel,ue as insertInkPenAnchorAt,E as isInkPenHandleVisible,F as moveInkPenAnchorPoint};
@@ -0,0 +1,3 @@
1
+ import type { IOperation } from '@univerjs/core';
2
+ import type { IBeginInkModeParams } from '../services/ink-host-adapter.service';
3
+ export declare const StartInkOperation: IOperation<IBeginInkModeParams>;
@@ -0,0 +1,5 @@
1
+ export declare const INK_PLUGIN_CONFIG_KEY = "ink.config";
2
+ export declare const configSymbol: unique symbol;
3
+ export interface IUniverInkConfig {
4
+ }
5
+ export declare const defaultPluginConfig: IUniverInkConfig;
@@ -0,0 +1,8 @@
1
+ export { convertBrushModelToPenModel, cycleInkPenAnchorPointType, deleteInkPenAnchor, findClosestInkPenHandle, findClosestInkPenSegment, getInkPenPreviewModel, insertInkPenAnchorAt, isInkPenHandleVisible, moveInkPenAnchorPoint, } from './ink-edit';
2
+ export type { IInkPenHandleRef, IInkPenPathHit, } from './ink-edit';
3
+ export { getInkModelBounds } from './ink-path';
4
+ export { buildInkCustomShapePayload } from './ink-shape';
5
+ export type { IInkAnchorPoint, IInkBrushModel, IInkBrushSamplePoint, IInkPenModel, IInkPoint, IInkRect, IInkSourceModel, IInkStyle, InkToolType, } from './ink-types';
6
+ export { UniverInkPlugin } from './plugin';
7
+ export { IInkHostAdapterService } from './services/ink-host-adapter.service';
8
+ export type { IBeginInkModeParams, ICreateInkCustomShapeParams, IInkHostAdapter, } from './services/ink-host-adapter.service';
@@ -0,0 +1,31 @@
1
+ import type { IInkAnchorPoint, IInkBrushModel, IInkPenModel, IInkPoint } from './ink-types';
2
+ export type InkPenPointType = IInkAnchorPoint['pointType'];
3
+ export type InkPenHandleKind = 'anchor' | 'in' | 'out';
4
+ export interface IInkPenHandleRef {
5
+ kind: InkPenHandleKind;
6
+ anchorId: string;
7
+ }
8
+ export interface IInkPenPathHit {
9
+ segmentIndex: number;
10
+ t: number;
11
+ point: IInkPoint;
12
+ distance: number;
13
+ }
14
+ export interface IInkPenHandleHit {
15
+ handle: IInkPenHandleRef;
16
+ point: IInkPoint;
17
+ distance: number;
18
+ }
19
+ export declare function isInkPenHandleVisible(model: IInkPenModel, anchorIndex: number, kind: InkPenHandleKind): boolean;
20
+ export declare function getInkPenPreviewModel(model: IInkPenModel, point: IInkPoint | null): IInkPenModel;
21
+ export declare function convertBrushModelToPenModel(model: IInkBrushModel, options?: {
22
+ tolerance?: number;
23
+ createId?: (index: number) => string;
24
+ }): IInkPenModel;
25
+ export declare function findClosestInkPenHandle(model: IInkPenModel, point: IInkPoint, tolerance: number): IInkPenHandleHit | null;
26
+ export declare function findClosestInkPenSegment(model: IInkPenModel, point: IInkPoint, tolerance: number): IInkPenPathHit | null;
27
+ export declare function insertInkPenAnchorAt(model: IInkPenModel, hit: Pick<IInkPenPathHit, 'segmentIndex' | 't'>, createId: () => string): IInkPenModel;
28
+ export declare function deleteInkPenAnchor(model: IInkPenModel, anchorId: string): IInkPenModel;
29
+ export declare function setInkPenAnchorPointType(model: IInkPenModel, anchorId: string, pointType: InkPenPointType): IInkPenModel;
30
+ export declare function cycleInkPenAnchorPointType(model: IInkPenModel, anchorId: string): IInkPenModel;
31
+ export declare function moveInkPenAnchorPoint(model: IInkPenModel, handleRef: IInkPenHandleRef, point: IInkPoint): IInkPenModel;
@@ -0,0 +1,14 @@
1
+ import type { IInkPoint, IInkSourceModel } from './ink-types';
2
+ export declare function getInkModelBounds(model: IInkSourceModel): {
3
+ left: number;
4
+ top: number;
5
+ width: number;
6
+ height: number;
7
+ };
8
+ export declare function buildPenSvgPath(model: Extract<IInkSourceModel, {
9
+ kind: 'pen';
10
+ }>, offset: IInkPoint): string;
11
+ export declare function buildBrushSvgPath(model: Extract<IInkSourceModel, {
12
+ kind: 'brush' | 'highlighter';
13
+ }>, offset: IInkPoint): string;
14
+ export declare function buildInkSvgPath(model: IInkSourceModel, offset: IInkPoint): string;
@@ -0,0 +1,8 @@
1
+ import type { IInkCustomShapePayload, IInkSourceModel, IInkStyle, InkToolType } from './ink-types';
2
+ export interface IBuildInkCustomShapePayloadParams {
3
+ model: IInkSourceModel;
4
+ style?: IInkStyle;
5
+ tool?: Exclude<InkToolType, 'eraser'>;
6
+ sourceModel?: IInkSourceModel;
7
+ }
8
+ export declare function buildInkCustomShapePayload(params: IBuildInkCustomShapePayloadParams): IInkCustomShapePayload;
@@ -0,0 +1,54 @@
1
+ import type { IShapeData } from '@univerjs-pro/engine-shape';
2
+ export type InkToolType = 'pen' | 'brush' | 'highlighter' | 'eraser';
3
+ export interface IInkPoint {
4
+ x: number;
5
+ y: number;
6
+ }
7
+ export interface IInkAnchorPoint extends IInkPoint {
8
+ id: string;
9
+ in?: IInkPoint;
10
+ out?: IInkPoint;
11
+ pointType: 'corner' | 'smooth' | 'symmetric' | 'free';
12
+ }
13
+ export interface IInkPenModel {
14
+ kind: 'pen';
15
+ closed: boolean;
16
+ anchors: IInkAnchorPoint[];
17
+ }
18
+ export interface IInkBrushSamplePoint extends IInkPoint {
19
+ pressure?: number;
20
+ t: number;
21
+ }
22
+ export interface IInkBrushModel {
23
+ kind: 'brush' | 'highlighter';
24
+ points: IInkBrushSamplePoint[];
25
+ color: string;
26
+ width: number;
27
+ opacity: number;
28
+ }
29
+ export type IInkSourceModel = IInkPenModel | IInkBrushModel;
30
+ export interface IInkStyle {
31
+ color?: string;
32
+ width?: number;
33
+ opacity?: number;
34
+ fillColor?: string;
35
+ }
36
+ export interface IInkRect {
37
+ left: number;
38
+ top: number;
39
+ width: number;
40
+ height: number;
41
+ }
42
+ export interface IInkCustomShapePayload {
43
+ transform: IInkRect & {
44
+ rotation: number;
45
+ };
46
+ shapeData: IShapeData;
47
+ ink: {
48
+ version: 1;
49
+ tool: Exclude<InkToolType, 'eraser'>;
50
+ sourceModel: IInkSourceModel;
51
+ editModel?: IInkPenModel;
52
+ normalizedBounds: IInkRect;
53
+ };
54
+ }
@@ -0,0 +1,15 @@
1
+ import type { IUniverInkConfig } from './config/config';
2
+ import { ICommandService, IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
3
+ export declare const INK_PLUGIN_NAME = "UNIVER_INK_PLUGIN";
4
+ export declare class UniverInkPlugin extends Plugin {
5
+ private readonly _config;
6
+ protected readonly _injector: Injector;
7
+ private readonly _commandService;
8
+ private readonly _configService;
9
+ static pluginName: string;
10
+ static packageName: string;
11
+ static version: string;
12
+ static type: UniverInstanceType;
13
+ constructor(_config: Partial<IUniverInkConfig> | undefined, _injector: Injector, _commandService: ICommandService, _configService: IConfigService);
14
+ onStarting(): void;
15
+ }
@@ -0,0 +1,28 @@
1
+ import type { IDisposable } from '@univerjs/core';
2
+ import type { IInkCustomShapePayload, InkToolType } from '../ink-types';
3
+ export interface IBeginInkModeParams {
4
+ unitId: string;
5
+ subUnitId: string;
6
+ tool?: Exclude<InkToolType, 'eraser'> | InkToolType;
7
+ }
8
+ export interface ICreateInkCustomShapeParams {
9
+ unitId: string;
10
+ subUnitId: string;
11
+ payload: IInkCustomShapePayload;
12
+ }
13
+ export interface IInkHostAdapter {
14
+ beginInkMode(params: IBeginInkModeParams): boolean;
15
+ createCustomShape?: (params: ICreateInkCustomShapeParams) => boolean | Promise<boolean>;
16
+ }
17
+ export interface IInkHostAdapterService {
18
+ registerAdapter(adapter: IInkHostAdapter): IDisposable;
19
+ beginInkMode(params: IBeginInkModeParams): boolean;
20
+ createCustomShape(params: ICreateInkCustomShapeParams): Promise<boolean>;
21
+ }
22
+ export declare const IInkHostAdapterService: import("@wendellhu/redi").IdentifierDecorator<IInkHostAdapterService>;
23
+ export declare class InkHostAdapterService implements IInkHostAdapterService {
24
+ private readonly _adapters;
25
+ registerAdapter(adapter: IInkHostAdapter): IDisposable;
26
+ beginInkMode(params: IBeginInkModeParams): boolean;
27
+ createCustomShape(params: ICreateInkCustomShapeParams): Promise<boolean>;
28
+ }
@@ -0,0 +1 @@
1
+ (function(_0x45ebb4,_0x8eeecb){const _0x39d0ce=_0x2de9,_0x391a59=_0x45ebb4();while(!![]){try{const _0x247315=-parseInt(_0x39d0ce(0x1e6))/0x1+-parseInt(_0x39d0ce(0x1d0))/0x2+-parseInt(_0x39d0ce(0x216))/0x3+-parseInt(_0x39d0ce(0x1b2))/0x4+-parseInt(_0x39d0ce(0x1d9))/0x5+parseInt(_0x39d0ce(0x1db))/0x6+parseInt(_0x39d0ce(0x208))/0x7*(parseInt(_0x39d0ce(0x1bf))/0x8);if(_0x247315===_0x8eeecb)break;else _0x391a59['push'](_0x391a59['shift']());}catch(_0x2af08e){_0x391a59['push'](_0x391a59['shift']());}}}(_0x2b84,0xe5cbf),function(_0x24f072,_0x52ee92){const _0x186387=_0x2de9;typeof exports==_0x186387(0x1dc)&&typeof module<'u'?_0x52ee92(exports,require('@univerjs-pro/engine-shape'),require('@univerjs-pro/license'),require('@univerjs/core')):typeof define=='function'&&define['amd']?define([_0x186387(0x1c0),_0x186387(0x218),_0x186387(0x1bb),_0x186387(0x213)],_0x52ee92):(_0x24f072=typeof globalThis<'u'?globalThis:_0x24f072||self,_0x52ee92(_0x24f072[_0x186387(0x1fb)]={},_0x24f072['UniverProEngineShape'],_0x24f072[_0x186387(0x20d)],_0x24f072[_0x186387(0x1cc)]));}(this,function(_0x57d9a5,_0x37b319,_0x498d65,_0x1e333f){const _0x1b17a8=_0x2de9;Object[_0x1b17a8(0x1b8)](_0x57d9a5,Symbol[_0x1b17a8(0x1fc)],{'value':_0x1b17a8(0x1f2)});let _0x390d0a=0.0001;function _0x5033bf(_0xe1a46b){return{'x':_0xe1a46b['x'],'y':_0xe1a46b['y']};}function _0x230fd9(_0x34eb52){const _0xdb4908=_0x1b17a8;return{..._0x34eb52,'in':_0x34eb52['in']?_0x5033bf(_0x34eb52['in']):void 0x0,'out':_0x34eb52['out']?_0x5033bf(_0x34eb52[_0xdb4908(0x202)]):void 0x0};}function _0x6fec57(_0x5b0171){const _0x2379d3=_0x1b17a8;return{'kind':_0x2379d3(0x1cd),'closed':_0x5b0171['closed'],'anchors':_0x5b0171[_0x2379d3(0x1ad)]['map'](_0x230fd9)};}function _0x305c30(_0x235f0a,_0x44dd4d,_0x5a0311){return{'x':_0x235f0a['x']+(_0x44dd4d['x']-_0x235f0a['x'])*_0x5a0311,'y':_0x235f0a['y']+(_0x44dd4d['y']-_0x235f0a['y'])*_0x5a0311};}function _0x5d21f7(_0x18ffdb,_0x53a09e){const _0x361d91=_0x1b17a8;return Math[_0x361d91(0x21c)](_0x18ffdb['x']-_0x53a09e['x'],_0x18ffdb['y']-_0x53a09e['y']);}function _0x548439(_0x4c935e){const _0x125473=_0x1b17a8;let _0x11d9ad=Math[_0x125473(0x21c)](_0x4c935e['x'],_0x4c935e['y']);return _0x11d9ad<_0x390d0a?{'x':0x1,'y':0x0}:{'x':_0x4c935e['x']/_0x11d9ad,'y':_0x4c935e['y']/_0x11d9ad};}function _0x275c76(_0x33d4e4,_0x1dae6c,_0x1fe1ee=_0x5d21f7(_0x33d4e4,_0x1dae6c)){let _0x119cf3=_0x548439({'x':_0x33d4e4['x']-_0x1dae6c['x'],'y':_0x33d4e4['y']-_0x1dae6c['y']});return{'x':_0x33d4e4['x']+_0x119cf3['x']*_0x1fe1ee,'y':_0x33d4e4['y']+_0x119cf3['y']*_0x1fe1ee};}function _0x3dd623(_0xb6c8ff,_0x27233d){const _0x330cec=_0x1b17a8;let {anchors:_0xf9fa35}=_0xb6c8ff;return _0xf9fa35[_0x330cec(0x1b4)]<0x2||_0x27233d<0x0?null:_0x27233d<_0xf9fa35[_0x330cec(0x1b4)]-0x1?{'startIndex':_0x27233d,'endIndex':_0x27233d+0x1,'start':_0xf9fa35[_0x27233d],'end':_0xf9fa35[_0x27233d+0x1]}:_0xb6c8ff['closed']&&_0x27233d===_0xf9fa35['length']-0x1?{'startIndex':_0xf9fa35[_0x330cec(0x1b4)]-0x1,'endIndex':0x0,'start':_0xf9fa35[_0xf9fa35[_0x330cec(0x1b4)]-0x1],'end':_0xf9fa35[0x0]}:null;}function _0x54d2fd(_0x35d247,_0x1ec455){const _0x4c2f2a=_0x1b17a8;var _0x270faf,_0x439d97;let _0x5272ea=_0x3dd623(_0x35d247,_0x1ec455);return _0x5272ea?[_0x5272ea[_0x4c2f2a(0x203)],(_0x270faf=_0x5272ea[_0x4c2f2a(0x203)]['out'])==null?_0x5272ea[_0x4c2f2a(0x203)]:_0x270faf,(_0x439d97=_0x5272ea[_0x4c2f2a(0x201)]['in'])==null?_0x5272ea[_0x4c2f2a(0x201)]:_0x439d97,_0x5272ea[_0x4c2f2a(0x201)]]:null;}function _0x291b84(_0x49ce0b,_0x3c2d3c){var _0x2e5f62;return _0x3c2d3c==='anchor'?_0x49ce0b:(_0x2e5f62=_0x49ce0b[_0x3c2d3c])==null?null:_0x2e5f62;}function _0x356737(_0x3c0be4,_0x194ce4,_0x11089){const _0x3da481=_0x1b17a8;return _0x11089===_0x3da481(0x1e1)||_0x3c0be4['closed']?!0x0:_0x11089==='in'?_0x194ce4>0x0:_0x194ce4<_0x3c0be4[_0x3da481(0x1ad)][_0x3da481(0x1b4)]-0x1;}function _0x1dae17(_0x566e0e,_0x2e227d){let [_0x5ec922,_0x3c6aa8,_0x330248,_0x55cafd]=_0x566e0e,_0x334236=_0x305c30(_0x5ec922,_0x3c6aa8,_0x2e227d),_0x1234b2=_0x305c30(_0x3c6aa8,_0x330248,_0x2e227d),_0x2c018b=_0x305c30(_0x330248,_0x55cafd,_0x2e227d);return _0x305c30(_0x305c30(_0x334236,_0x1234b2,_0x2e227d),_0x305c30(_0x1234b2,_0x2c018b,_0x2e227d),_0x2e227d);}function _0x245737(_0x2df56e,_0x53f016){let [_0x2ca234,_0x11e6fc,_0x1d46ba,_0x459d51]=_0x2df56e,_0xc36fe4=_0x305c30(_0x2ca234,_0x11e6fc,_0x53f016),_0x25269d=_0x305c30(_0x11e6fc,_0x1d46ba,_0x53f016),_0x3acc7f=_0x305c30(_0x1d46ba,_0x459d51,_0x53f016),_0x3fed8e=_0x305c30(_0xc36fe4,_0x25269d,_0x53f016),_0x4b3215=_0x305c30(_0x25269d,_0x3acc7f,_0x53f016),_0x476c2e=_0x305c30(_0x3fed8e,_0x4b3215,_0x53f016);return{'left':[_0x2ca234,_0xc36fe4,_0x3fed8e,_0x476c2e],'right':[_0x476c2e,_0x4b3215,_0x3acc7f,_0x459d51]};}function _0x47ab62(_0x5ea828,_0x186324,_0x28c981){const _0x24c9bc=_0x1b17a8;let _0x4fd9b8=_0x28c981['x']-_0x186324['x'],_0x3f0242=_0x28c981['y']-_0x186324['y'],_0x4b8e07=_0x4fd9b8*_0x4fd9b8+_0x3f0242*_0x3f0242,_0x4a9f96=_0x4b8e07<=_0x390d0a?0x0:Math[_0x24c9bc(0x1bd)](0x0,Math['min'](0x1,((_0x5ea828['x']-_0x186324['x'])*_0x4fd9b8+(_0x5ea828['y']-_0x186324['y'])*_0x3f0242)/_0x4b8e07)),_0x3a7935={'x':_0x186324['x']+_0x4fd9b8*_0x4a9f96,'y':_0x186324['y']+_0x3f0242*_0x4a9f96};return{'point':_0x3a7935,'ratio':_0x4a9f96,'distance':_0x5d21f7(_0x5ea828,_0x3a7935)};}function _0x274199(_0x50f144,_0x5715b6,_0x4736b6){return _0x47ab62(_0x50f144,_0x5715b6,_0x4736b6)['distance']**0x2;}function _0x43d9ac(_0x454a8c,_0x8bce41){const _0x635971=_0x1b17a8;if(_0x454a8c[_0x635971(0x1b4)]<=0x2)return _0x454a8c[_0x635971(0x1bc)](_0x5033bf);let _0x5c3a46=0x0,_0x285b7a=0x0,_0x2cfad7=_0x454a8c[0x0],_0x5d99e5=_0x454a8c[_0x454a8c[_0x635971(0x1b4)]-0x1],_0x50d1bf=_0x8bce41*_0x8bce41;for(let _0x40de09=0x1;_0x40de09<_0x454a8c['length']-0x1;_0x40de09++){let _0x42c754=_0x274199(_0x454a8c[_0x40de09],_0x2cfad7,_0x5d99e5);_0x42c754>_0x5c3a46&&(_0x5c3a46=_0x42c754,_0x285b7a=_0x40de09);}if(_0x5c3a46<=_0x50d1bf)return[_0x5033bf(_0x2cfad7),_0x5033bf(_0x5d99e5)];let _0x27ca96=_0x43d9ac(_0x454a8c[_0x635971(0x1f3)](0x0,_0x285b7a+0x1),_0x8bce41),_0x31f472=_0x43d9ac(_0x454a8c['slice'](_0x285b7a),_0x8bce41);return[..._0x27ca96['slice'](0x0,-0x1),..._0x31f472];}function _0x32a183(_0x268d2f,_0x4f7c3e){var _0x30d5b8;let _0x5b708b=_0x268d2f[_0x4f7c3e],_0x52a04b=_0x268d2f[_0x4f7c3e+0x1],_0x356844=(_0x30d5b8=_0x268d2f[_0x4f7c3e-0x1])==null?_0x5b708b:_0x30d5b8;return{'x':_0x5b708b['x']+(_0x52a04b['x']-_0x356844['x'])/0x6,'y':_0x5b708b['y']+(_0x52a04b['y']-_0x356844['y'])/0x6};}function _0xac363a(_0x3a3a2b,_0x1edeb3){var _0x6e3011;let _0x5a7878=_0x3a3a2b[_0x1edeb3],_0x5c4555=_0x3a3a2b[_0x1edeb3-0x1],_0x372c30=(_0x6e3011=_0x3a3a2b[_0x1edeb3+0x1])==null?_0x5a7878:_0x6e3011;return{'x':_0x5a7878['x']-(_0x372c30['x']-_0x5c4555['x'])/0x6,'y':_0x5a7878['y']-(_0x372c30['y']-_0x5c4555['y'])/0x6};}function _0x40183a(_0x1b1858,_0x2010b7){const _0x24ce04=_0x1b17a8;var _0x3d0323,_0x1ebad8;let _0x5ae39e=_0x1b1858[_0x24ce04(0x1ad)][_0x2010b7],_0x3cab61=(_0x3d0323=_0x1b1858[_0x24ce04(0x1ad)][_0x2010b7-0x1])==null?_0x1b1858[_0x24ce04(0x1ce)]?_0x1b1858[_0x24ce04(0x1ad)][_0x1b1858[_0x24ce04(0x1ad)][_0x24ce04(0x1b4)]-0x1]:null:_0x3d0323,_0x55f8a0=(_0x1ebad8=_0x1b1858['anchors'][_0x2010b7+0x1])==null?_0x1b1858[_0x24ce04(0x1ce)]?_0x1b1858[_0x24ce04(0x1ad)][0x0]:null:_0x1ebad8,_0x457d14=_0x3cab61&&_0x55f8a0?_0x548439({'x':_0x55f8a0['x']-_0x3cab61['x'],'y':_0x55f8a0['y']-_0x3cab61['y']}):_0x55f8a0?_0x548439({'x':_0x55f8a0['x']-_0x5ae39e['x'],'y':_0x55f8a0['y']-_0x5ae39e['y']}):_0x3cab61?_0x548439({'x':_0x5ae39e['x']-_0x3cab61['x'],'y':_0x5ae39e['y']-_0x3cab61['y']}):{'x':0x1,'y':0x0},_0x551760=_0x3cab61&&_0x55f8a0?Math[_0x24ce04(0x1bd)](0x32,_0x5d21f7(_0x3cab61,_0x55f8a0)/0x4):0x32;return{'in':{'x':_0x5ae39e['x']-_0x457d14['x']*_0x551760,'y':_0x5ae39e['y']-_0x457d14['y']*_0x551760},'out':{'x':_0x5ae39e['x']+_0x457d14['x']*_0x551760,'y':_0x5ae39e['y']+_0x457d14['y']*_0x551760}};}function _0x572f61(_0x377597,_0x5a7531){const _0x588af0=_0x1b17a8;let _0x5d9291=_0x377597[_0x5a7531],_0x36d525=_0x5a7531==='in'?_0x588af0(0x202):'in',_0x4a64ee=_0x377597[_0x36d525];if(_0x5d9291){if(_0x377597['pointType']==='symmetric'){_0x377597[_0x36d525]=_0x275c76(_0x377597,_0x5d9291);return;}_0x377597['pointType']===_0x588af0(0x215)&&(_0x377597[_0x36d525]=_0x275c76(_0x377597,_0x5d9291,_0x4a64ee?_0x5d21f7(_0x377597,_0x4a64ee):_0x5d21f7(_0x377597,_0x5d9291)));}}function _0x2e61eb(_0x522de3,_0x55d142){const _0x22bfd7=_0x1b17a8;let _0x268053=_0x6fec57(_0x522de3);return!_0x55d142||_0x268053[_0x22bfd7(0x1ce)]||_0x268053[_0x22bfd7(0x1ad)][_0x22bfd7(0x1b4)]===0x0||_0x268053[_0x22bfd7(0x1ad)][_0x22bfd7(0x1c1)]({'id':_0x22bfd7(0x1c9),'x':_0x55d142['x'],'y':_0x55d142['y'],'pointType':_0x22bfd7(0x21a)}),_0x268053;}function _0x5bdd2e(_0x391669,_0x355fb2={}){const _0x2ceb88=_0x1b17a8;var _0xc867ce,_0x463555;let _0x2c21d0=Math[_0x2ceb88(0x1bd)](0x0,(_0xc867ce=_0x355fb2['tolerance'])==null?Math['max'](0x4,_0x391669[_0x2ceb88(0x1c5)]*0.35):_0xc867ce),_0x120c32=(_0x463555=_0x355fb2[_0x2ceb88(0x211)])==null?_0x38675b=>_0x2ceb88(0x1d1)+_0x38675b:_0x463555,_0x585747=_0x43d9ac(_0x391669['points'],_0x2c21d0),_0x584520=_0x585747[_0x2ceb88(0x1bc)]((_0x539cdd,_0x3b148b)=>({'id':_0x120c32(_0x3b148b),'x':_0x539cdd['x'],'y':_0x539cdd['y'],'pointType':'free'}));for(let _0xdd1cb5=0x0;_0xdd1cb5<_0x584520['length']-0x1;_0xdd1cb5++)_0x584520[_0xdd1cb5][_0x2ceb88(0x202)]=_0x32a183(_0x585747,_0xdd1cb5),_0x584520[_0xdd1cb5+0x1]['in']=_0xac363a(_0x585747,_0xdd1cb5+0x1);return{'kind':'pen','closed':!0x1,'anchors':_0x584520};}function _0x3dc691(_0x33a57c,_0x229cb5,_0x399358){const _0x1f9b31=_0x1b17a8;let _0x1698dc=null,_0x3744a1=[_0x1f9b31(0x1e1),'in',_0x1f9b31(0x202)];return _0x33a57c[_0x1f9b31(0x1ad)][_0x1f9b31(0x209)]((_0x3a6763,_0x1f047e)=>{_0x3744a1['forEach'](_0x5123ae=>{const _0x16318a=_0x2de9;if(!_0x356737(_0x33a57c,_0x1f047e,_0x5123ae))return;let _0x4db3e5=_0x291b84(_0x3a6763,_0x5123ae);if(!_0x4db3e5)return;let _0x32f028=_0x5d21f7(_0x229cb5,_0x4db3e5);_0x32f028>_0x399358||_0x1698dc&&_0x32f028>=_0x1698dc[_0x16318a(0x1eb)]||(_0x1698dc={'handle':{'kind':_0x5123ae,'anchorId':_0x3a6763['id']},'point':_0x5033bf(_0x4db3e5),'distance':_0x32f028});});}),_0x1698dc;}function _0x31f355(_0x403cb3,_0x5578ab,_0x28afe5){const _0x3d6f66=_0x1b17a8;let _0x42945e=null,_0x27b00d=_0x403cb3[_0x3d6f66(0x1ce)]?_0x403cb3[_0x3d6f66(0x1ad)][_0x3d6f66(0x1b4)]:Math[_0x3d6f66(0x1bd)](0x0,_0x403cb3[_0x3d6f66(0x1ad)][_0x3d6f66(0x1b4)]-0x1);for(let _0x34fc9d=0x0;_0x34fc9d<_0x27b00d;_0x34fc9d++){let _0x12b55f=_0x54d2fd(_0x403cb3,_0x34fc9d);if(!_0x12b55f)continue;let _0x2178e=_0x1dae17(_0x12b55f,0x0);for(let _0x1e4111=0x1;_0x1e4111<=0x20;_0x1e4111++){let _0x5b1eb0=_0x1dae17(_0x12b55f,_0x1e4111/0x20),_0x10c0bc=_0x47ab62(_0x5578ab,_0x2178e,_0x5b1eb0),_0x4cc64e=(_0x1e4111-0x1+_0x10c0bc['ratio'])/0x20;(!_0x42945e||_0x10c0bc[_0x3d6f66(0x1eb)]<_0x42945e[_0x3d6f66(0x1eb)])&&(_0x42945e={'segmentIndex':_0x34fc9d,'t':_0x4cc64e,'point':_0x10c0bc['point'],'distance':_0x10c0bc[_0x3d6f66(0x1eb)]}),_0x2178e=_0x5b1eb0;}}return _0x42945e&&_0x42945e[_0x3d6f66(0x1eb)]<=_0x28afe5?_0x42945e:null;}function _0x209c23(_0x50b5d1,_0x85d00c,_0x163015){const _0x2234f2=_0x1b17a8;let _0x58b117=_0x6fec57(_0x50b5d1),_0x1091ea=_0x3dd623(_0x58b117,_0x85d00c['segmentIndex']),_0x544bae=_0x54d2fd(_0x58b117,_0x85d00c['segmentIndex']);if(!_0x1091ea||!_0x544bae)return _0x58b117;let _0x56045a=_0x245737(_0x544bae,Math[_0x2234f2(0x1bd)](0x0,Math['min'](0x1,_0x85d00c['t']))),_0x4ef1b7={'id':_0x163015(),'x':_0x56045a[_0x2234f2(0x20c)][0x3]['x'],'y':_0x56045a[_0x2234f2(0x20c)][0x3]['y'],'in':_0x5033bf(_0x56045a[_0x2234f2(0x20c)][0x2]),'out':_0x5033bf(_0x56045a[_0x2234f2(0x1b3)][0x1]),'pointType':_0x2234f2(0x219)};return _0x58b117[_0x2234f2(0x1ad)][_0x1091ea[_0x2234f2(0x1be)]][_0x2234f2(0x202)]=_0x5033bf(_0x56045a[_0x2234f2(0x20c)][0x1]),_0x58b117[_0x2234f2(0x1ad)][_0x1091ea[_0x2234f2(0x206)]]['in']=_0x5033bf(_0x56045a[_0x2234f2(0x1b3)][0x2]),_0x58b117[_0x2234f2(0x1ad)]['splice'](_0x1091ea[_0x2234f2(0x1be)]+0x1,0x0,_0x4ef1b7),_0x58b117;}function _0x306b77(_0x20edfb,_0x38b57d){const _0x48a8b9=_0x1b17a8;let _0x3ea1ab=_0x6fec57(_0x20edfb);return _0x3ea1ab['anchors']=_0x3ea1ab[_0x48a8b9(0x1ad)]['filter'](_0x49dfec=>_0x49dfec['id']!==_0x38b57d),_0x3ea1ab[_0x48a8b9(0x1ce)]&&_0x3ea1ab['anchors']['length']<0x3&&(_0x3ea1ab['closed']=!0x1),_0x3ea1ab;}function _0x123f0c(_0x1a89da,_0x1bac62,_0x131be9){const _0x94ce80=_0x1b17a8;let _0x4b975c=_0x6fec57(_0x1a89da),_0x24cef1=_0x4b975c['anchors'][_0x94ce80(0x212)](_0x3aa494=>_0x3aa494['id']===_0x1bac62),_0x4ca2db=_0x4b975c[_0x94ce80(0x1ad)][_0x24cef1];if(!_0x4ca2db)return _0x4b975c;if(_0x4ca2db[_0x94ce80(0x1e3)]=_0x131be9,_0x131be9==='corner')return delete _0x4ca2db['in'],delete _0x4ca2db['out'],_0x4b975c;let _0x11788a=_0x40183a(_0x4b975c,_0x24cef1);if(_0x4ca2db['in']=_0x4ca2db['in']?_0x5033bf(_0x4ca2db['in']):_0x11788a['in'],_0x4ca2db[_0x94ce80(0x202)]=_0x4ca2db[_0x94ce80(0x202)]?_0x5033bf(_0x4ca2db[_0x94ce80(0x202)]):_0x11788a[_0x94ce80(0x202)],_0x131be9===_0x94ce80(0x1f8)){let _0x55ac63=Math[_0x94ce80(0x1bd)](_0x5d21f7(_0x4ca2db,_0x4ca2db['in']),_0x5d21f7(_0x4ca2db,_0x4ca2db[_0x94ce80(0x202)]),0x32),_0x3ea3f6=_0x548439({'x':_0x4ca2db[_0x94ce80(0x202)]['x']-_0x4ca2db['x'],'y':_0x4ca2db[_0x94ce80(0x202)]['y']-_0x4ca2db['y']});_0x4ca2db[_0x94ce80(0x202)]={'x':_0x4ca2db['x']+_0x3ea3f6['x']*_0x55ac63,'y':_0x4ca2db['y']+_0x3ea3f6['y']*_0x55ac63},_0x4ca2db['in']={'x':_0x4ca2db['x']-_0x3ea3f6['x']*_0x55ac63,'y':_0x4ca2db['y']-_0x3ea3f6['y']*_0x55ac63};}else _0x131be9===_0x94ce80(0x215)&&_0x572f61(_0x4ca2db,_0x94ce80(0x202));return _0x4b975c;}function _0x3798f9(_0x3c7956,_0x23907d){const _0x2825ee=_0x1b17a8;var _0x2cc738;let _0x4c5b43=_0x3c7956[_0x2825ee(0x1ad)][_0x2825ee(0x1ab)](_0x4204f5=>_0x4204f5['id']===_0x23907d),_0x29248c=(_0x2cc738=_0x4c5b43==null?void 0x0:_0x4c5b43[_0x2825ee(0x1e3)])==null?_0x2825ee(0x21a):_0x2cc738;return _0x123f0c(_0x3c7956,_0x23907d,_0x29248c===_0x2825ee(0x21a)?_0x2825ee(0x215):_0x29248c===_0x2825ee(0x215)?'symmetric':_0x29248c==='symmetric'?_0x2825ee(0x219):_0x2825ee(0x21a));}function _0xd06813(_0x3480c7,_0x4ca89c,_0x5525f2){const _0xce6f8a=_0x1b17a8;let _0x37967b=_0x6fec57(_0x3480c7),_0x52a100=_0x37967b[_0xce6f8a(0x1ad)][_0xce6f8a(0x1ab)](_0x472a6d=>_0x472a6d['id']===_0x4ca89c['anchorId']);if(!_0x52a100)return _0x37967b;if(_0x4ca89c[_0xce6f8a(0x1ef)]===_0xce6f8a(0x1e1)){let _0x9e4e9d={'x':_0x5525f2['x']-_0x52a100['x'],'y':_0x5525f2['y']-_0x52a100['y']};return _0x52a100['x']=_0x5525f2['x'],_0x52a100['y']=_0x5525f2['y'],_0x52a100['in']&&(_0x52a100['in']={'x':_0x52a100['in']['x']+_0x9e4e9d['x'],'y':_0x52a100['in']['y']+_0x9e4e9d['y']}),_0x52a100[_0xce6f8a(0x202)]&&(_0x52a100[_0xce6f8a(0x202)]={'x':_0x52a100[_0xce6f8a(0x202)]['x']+_0x9e4e9d['x'],'y':_0x52a100[_0xce6f8a(0x202)]['y']+_0x9e4e9d['y']}),_0x37967b;}return _0x52a100[_0x4ca89c['kind']]=_0x5033bf(_0x5525f2),_0x52a100[_0xce6f8a(0x1e3)]===_0xce6f8a(0x21a)&&(_0x52a100[_0xce6f8a(0x1e3)]=_0xce6f8a(0x219)),_0x572f61(_0x52a100,_0x4ca89c[_0xce6f8a(0x1ef)]),_0x37967b;}let _0x2c273b=1e-9;function _0xe87ef9(_0x114eda){const _0xdd1fa6=_0x1b17a8;let _0x46af8f=Math[_0xdd1fa6(0x1f6)](_0x114eda*0x2710)/0x2710;return Object['is'](_0x46af8f,-0x0)?'0':String(_0x46af8f);}function _0x2b76d8(_0x2b8c0b){return _0xe87ef9(_0x2b8c0b['x'])+'\x20'+_0xe87ef9(_0x2b8c0b['y']);}function _0x446505(_0x37c0ca,_0x437459){return{'x':_0x37c0ca['x']-_0x437459['x'],'y':_0x37c0ca['y']-_0x437459['y']};}function _0x336d86(_0x11b5e0,_0x5ba49f,_0x38e5bd,_0x28c4e9,_0x101ebe){let _0x1648b7=0x1-_0x101ebe;return{'x':_0x1648b7*_0x1648b7*_0x1648b7*_0x11b5e0['x']+0x3*_0x1648b7*_0x1648b7*_0x101ebe*_0x5ba49f['x']+0x3*_0x1648b7*_0x101ebe*_0x101ebe*_0x38e5bd['x']+_0x101ebe*_0x101ebe*_0x101ebe*_0x28c4e9['x'],'y':_0x1648b7*_0x1648b7*_0x1648b7*_0x11b5e0['y']+0x3*_0x1648b7*_0x1648b7*_0x101ebe*_0x5ba49f['y']+0x3*_0x1648b7*_0x101ebe*_0x101ebe*_0x38e5bd['y']+_0x101ebe*_0x101ebe*_0x101ebe*_0x28c4e9['y']};}function _0x3e50a2(_0x4b8586,_0x3124d4,_0x1774ad,_0x505715){const _0x4ce09e=_0x1b17a8;let _0x3c1647=-_0x4b8586+0x3*_0x3124d4-0x3*_0x1774ad+_0x505715,_0x31d9b1=0x3*_0x4b8586-0x6*_0x3124d4+0x3*_0x1774ad,_0x594ba0=-0x3*_0x4b8586+0x3*_0x3124d4,_0x57d812=[];if(Math[_0x4ce09e(0x1ae)](_0x3c1647)<_0x2c273b){if(Math[_0x4ce09e(0x1ae)](_0x31d9b1)<_0x2c273b)return _0x57d812;let _0x2c96f4=-_0x594ba0/(0x2*_0x31d9b1);return _0x2c96f4>0x0&&_0x2c96f4<0x1&&_0x57d812[_0x4ce09e(0x1c1)](_0x2c96f4),_0x57d812;}let _0x14d711=_0x31d9b1*_0x31d9b1-0x3*_0x3c1647*_0x594ba0;if(_0x14d711<0x0)return _0x57d812;let _0x2779b3=Math['sqrt'](Math['max'](0x0,_0x14d711)),_0x33027e=(-_0x31d9b1+_0x2779b3)/(0x3*_0x3c1647),_0x5252c2=(-_0x31d9b1-_0x2779b3)/(0x3*_0x3c1647);return _0x33027e>0x0&&_0x33027e<0x1&&_0x57d812[_0x4ce09e(0x1c1)](_0x33027e),_0x5252c2>0x0&&_0x5252c2<0x1&&Math[_0x4ce09e(0x1ae)](_0x5252c2-_0x33027e)>_0x2c273b&&_0x57d812['push'](_0x5252c2),_0x57d812;}function _0x42f12f(_0x3af48c,_0x15120d,_0x146f18,_0x528287,_0x17f86c){const _0x5b4aca=_0x1b17a8;_0x3af48c['push'](_0x15120d,_0x17f86c),new Set([..._0x3e50a2(_0x15120d['x'],_0x146f18['x'],_0x528287['x'],_0x17f86c['x']),..._0x3e50a2(_0x15120d['y'],_0x146f18['y'],_0x528287['y'],_0x17f86c['y'])])[_0x5b4aca(0x209)](_0x3a186e=>{const _0x18405e=_0x5b4aca;_0x3af48c[_0x18405e(0x1c1)](_0x336d86(_0x15120d,_0x146f18,_0x528287,_0x17f86c,_0x3a186e));});}function _0x14f279(_0x231261){const _0x109d4f=_0x1b17a8;let _0x5eac79=_0x231261['anchors'];if(_0x5eac79[_0x109d4f(0x1b4)]<=0x1)return _0x5eac79;let _0x378415=[];for(let _0x349f5f=0x1;_0x349f5f<_0x5eac79[_0x109d4f(0x1b4)];_0x349f5f++){var _0x79e7d3,_0x516bfb;let _0x4dba87=_0x5eac79[_0x349f5f-0x1],_0x4ab498=_0x5eac79[_0x349f5f];_0x42f12f(_0x378415,_0x4dba87,(_0x79e7d3=_0x4dba87[_0x109d4f(0x202)])==null?_0x4dba87:_0x79e7d3,(_0x516bfb=_0x4ab498['in'])==null?_0x4ab498:_0x516bfb,_0x4ab498);}if(_0x231261['closed']&&_0x5eac79[_0x109d4f(0x1b4)]>0x1){var _0x4b6ff5,_0x52f458;let _0x17d301=_0x5eac79[_0x5eac79[_0x109d4f(0x1b4)]-0x1],_0x5bde78=_0x5eac79[0x0];_0x42f12f(_0x378415,_0x17d301,(_0x4b6ff5=_0x17d301[_0x109d4f(0x202)])==null?_0x17d301:_0x4b6ff5,(_0x52f458=_0x5bde78['in'])==null?_0x5bde78:_0x52f458,_0x5bde78);}return _0x378415;}function _0x53c7fa(_0x13a9e9){const _0x58a4f1=_0x1b17a8;let _0x5c8b43=_0x13a9e9['points'];if(_0x5c8b43[_0x58a4f1(0x1b4)]<=0x1)return _0x5c8b43;let _0x430e72=[];for(let _0x3af813=0x0;_0x3af813<_0x5c8b43[_0x58a4f1(0x1b4)]-0x1;_0x3af813++){var _0x437636,_0xe7055b;let _0x49fe09=_0x5c8b43[_0x3af813],_0x34cff0=_0x5c8b43[_0x3af813+0x1],_0x1ac437=(_0x437636=_0x5c8b43[_0x3af813-0x1])==null?_0x49fe09:_0x437636,_0x4abdb0=(_0xe7055b=_0x5c8b43[_0x3af813+0x2])==null?_0x34cff0:_0xe7055b;_0x42f12f(_0x430e72,_0x49fe09,{'x':_0x49fe09['x']+(_0x34cff0['x']-_0x1ac437['x'])/0x6,'y':_0x49fe09['y']+(_0x34cff0['y']-_0x1ac437['y'])/0x6},{'x':_0x34cff0['x']-(_0x4abdb0['x']-_0x49fe09['x'])/0x6,'y':_0x34cff0['y']-(_0x4abdb0['y']-_0x49fe09['y'])/0x6},_0x34cff0);}return _0x430e72;}function _0x24436a(_0x24a020){const _0x16505a=_0x1b17a8;return _0x24a020[_0x16505a(0x1ef)]===_0x16505a(0x1cd)?_0x14f279(_0x24a020):_0x53c7fa(_0x24a020);}function _0xe59c8(_0x73b336){const _0x107c7b=_0x1b17a8;let _0xaaadd9=Math[_0x107c7b(0x1f6)](_0x73b336*0x2710)/0x2710;return Object['is'](_0xaaadd9,-0x0)?0x0:_0xaaadd9;}function _0x63057f(_0x345e31){const _0x120848=_0x1b17a8;let _0x53df99=_0x24436a(_0x345e31);if(_0x53df99[_0x120848(0x1b4)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x26cfbf=Math[_0x120848(0x1c8)](..._0x53df99[_0x120848(0x1bc)](_0x5d03d4=>_0x5d03d4['x'])),_0xd5924b=Math['min'](..._0x53df99[_0x120848(0x1bc)](_0x44067b=>_0x44067b['y'])),_0x553714=Math[_0x120848(0x1bd)](..._0x53df99['map'](_0x25c62a=>_0x25c62a['x'])),_0x3fbdde=Math[_0x120848(0x1bd)](..._0x53df99[_0x120848(0x1bc)](_0x3c19da=>_0x3c19da['y']));return{'left':_0xe59c8(_0x26cfbf),'top':_0xe59c8(_0xd5924b),'width':_0xe59c8(Math[_0x120848(0x1bd)](0x1,_0x553714-_0x26cfbf)),'height':_0xe59c8(Math[_0x120848(0x1bd)](0x1,_0x3fbdde-_0xd5924b))};}function _0x2820e1(_0x457069,_0x4170a0){const _0x1e4057=_0x1b17a8;let _0x15b386=_0x457069[_0x1e4057(0x1ad)];if(_0x15b386[_0x1e4057(0x1b4)]===0x0)return'';let _0x20f181=['M\x20'+_0x2b76d8(_0x446505(_0x15b386[0x0],_0x4170a0))];for(let _0x4557d0=0x1;_0x4557d0<_0x15b386[_0x1e4057(0x1b4)];_0x4557d0++){var _0x301c3c,_0x35747c;let _0x31816e=_0x15b386[_0x4557d0-0x1],_0xf10f8f=_0x15b386[_0x4557d0],_0x22302d=(_0x301c3c=_0x31816e['out'])==null?_0x31816e:_0x301c3c,_0x41f271=(_0x35747c=_0xf10f8f['in'])==null?_0xf10f8f:_0x35747c;_0x20f181[_0x1e4057(0x1c1)]('C\x20'+_0x2b76d8(_0x446505(_0x22302d,_0x4170a0))+'\x20'+_0x2b76d8(_0x446505(_0x41f271,_0x4170a0))+'\x20'+_0x2b76d8(_0x446505(_0xf10f8f,_0x4170a0)));}if(_0x457069[_0x1e4057(0x1ce)]&&_0x15b386[_0x1e4057(0x1b4)]>0x1){var _0x4f5738,_0xd8a001;let _0x261df1=_0x15b386[_0x15b386['length']-0x1],_0x3b822e=_0x15b386[0x0],_0x21bbe9=(_0x4f5738=_0x261df1[_0x1e4057(0x202)])==null?_0x261df1:_0x4f5738,_0x4c651d=(_0xd8a001=_0x3b822e['in'])==null?_0x3b822e:_0xd8a001;_0x20f181[_0x1e4057(0x1c1)]('C\x20'+_0x2b76d8(_0x446505(_0x21bbe9,_0x4170a0))+'\x20'+_0x2b76d8(_0x446505(_0x4c651d,_0x4170a0))+'\x20'+_0x2b76d8(_0x446505(_0x3b822e,_0x4170a0))),_0x20f181[_0x1e4057(0x1c1)]('Z');}return _0x20f181[_0x1e4057(0x205)]('\x20');}function _0xe1b0f7(_0xce3f46,_0x551d27){return _0x446505(_0xce3f46,_0x551d27);}function _0x243eae(_0x3b9125,_0x3638f7){const _0x17779d=_0x1b17a8;let _0xdbceb=_0x3b9125[_0x17779d(0x1f1)][_0x17779d(0x1bc)](_0x15adbe=>_0xe1b0f7(_0x15adbe,_0x3638f7));if(_0xdbceb['length']===0x0)return'';if(_0xdbceb[_0x17779d(0x1b4)]===0x1)return'M\x20'+_0x2b76d8(_0xdbceb[0x0]);let _0x311dc2=['M\x20'+_0x2b76d8(_0xdbceb[0x0])];for(let _0x5015d2=0x0;_0x5015d2<_0xdbceb[_0x17779d(0x1b4)]-0x1;_0x5015d2++){var _0x39e640,_0x261020;let _0x1fb9bb=_0xdbceb[_0x5015d2],_0xe44d1b=_0xdbceb[_0x5015d2+0x1],_0x589b1f=(_0x39e640=_0xdbceb[_0x5015d2-0x1])==null?_0x1fb9bb:_0x39e640,_0x1a666d=(_0x261020=_0xdbceb[_0x5015d2+0x2])==null?_0xe44d1b:_0x261020,_0x589549={'x':_0x1fb9bb['x']+(_0xe44d1b['x']-_0x589b1f['x'])/0x6,'y':_0x1fb9bb['y']+(_0xe44d1b['y']-_0x589b1f['y'])/0x6},_0x414bd1={'x':_0xe44d1b['x']-(_0x1a666d['x']-_0x1fb9bb['x'])/0x6,'y':_0xe44d1b['y']-(_0x1a666d['y']-_0x1fb9bb['y'])/0x6};_0x311dc2[_0x17779d(0x1c1)]('C\x20'+_0x2b76d8(_0x589549)+'\x20'+_0x2b76d8(_0x414bd1)+'\x20'+_0x2b76d8(_0xe44d1b));}return _0x311dc2[_0x17779d(0x205)]('\x20');}function _0x57960a(_0xfd5a92,_0x4aefae){const _0x4922b2=_0x1b17a8;return _0xfd5a92[_0x4922b2(0x1ef)]===_0x4922b2(0x1cd)?_0x2820e1(_0xfd5a92,_0x4aefae):_0x243eae(_0xfd5a92,_0x4aefae);}function _0x35269d(_0x10b5d8,_0x731713){const _0x1ae018=_0x1b17a8;return _0x731713!=null&&_0x731713[_0x1ae018(0x1de)]?_0x731713[_0x1ae018(0x1de)]:_0x10b5d8[_0x1ae018(0x1ef)]==='pen'?_0x1ae018(0x1d2):_0x10b5d8[_0x1ae018(0x1de)];}function _0x11a9f1(_0x1362b4,_0x3db54b){const _0x417025=_0x1b17a8;return(_0x3db54b==null?void 0x0:_0x3db54b[_0x417025(0x1c5)])===void 0x0?_0x1362b4[_0x417025(0x1ef)]===_0x417025(0x1cd)?0x2:_0x1362b4['width']:_0x3db54b[_0x417025(0x1c5)];}function _0x524dc9(_0x2232fd,_0x278d4d){const _0x14b3a9=_0x1b17a8;return(_0x278d4d==null?void 0x0:_0x278d4d[_0x14b3a9(0x1d4)])===void 0x0?_0x2232fd['kind']==='pen'?void 0x0:_0x2232fd[_0x14b3a9(0x1d4)]:_0x278d4d[_0x14b3a9(0x1d4)];}function _0x334179(_0x2bbabb,_0x5b2649){const _0x34ba21=_0x1b17a8;let _0x8cd249=_0x63057f(_0x2bbabb),_0x3ae17a=_0x57960a(_0x2bbabb,{'x':_0x8cd249['left'],'y':_0x8cd249[_0x34ba21(0x1b0)]}),_0x654893=_0x2bbabb[_0x34ba21(0x1ef)]===_0x34ba21(0x1cd)&&_0x2bbabb['closed'],_0x54e907=_0x5b2649==null?void 0x0:_0x5b2649[_0x34ba21(0x1fa)];return{'shapeType':_0x37b319['ShapeTypeEnum'][_0x34ba21(0x1d8)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x8cd249[_0x34ba21(0x1c5)],'h':_0x8cd249[_0x34ba21(0x1d5)],'fill':_0x654893?'norm':'none','stroke':!0x0,'data':_0x3ae17a,'dataArray':_0x593980(_0x2bbabb,{'x':_0x8cd249[_0x34ba21(0x20c)],'y':_0x8cd249[_0x34ba21(0x1b0)]})}]},'fill':_0x654893&&_0x54e907?{'color':_0x54e907,'fillType':_0x37b319['ShapeFillEnum']['SolidFill']}:{'fillType':_0x37b319[_0x34ba21(0x1dd)][_0x34ba21(0x1f4)]},'stroke':{'color':_0x35269d(_0x2bbabb,_0x5b2649),'width':_0x11a9f1(_0x2bbabb,_0x5b2649),'opacity':_0x524dc9(_0x2bbabb,_0x5b2649),'lineStrokeType':_0x37b319['ShapeLineTypeEnum']['SolidLine'],'capType':_0x37b319['ShapeLineCapEnum'][_0x34ba21(0x1ed)],'lineJoinType':_0x37b319[_0x34ba21(0x1e2)][_0x34ba21(0x1ed)]}};}function _0x38bd43(_0x231269,_0x4ccb01){return{'x':_0x231269['x']-_0x4ccb01['x'],'y':_0x231269['y']-_0x4ccb01['y']};}function _0x593980(_0x16817b,_0x530e49){const _0x5c2c4d=_0x1b17a8;if(_0x16817b[_0x5c2c4d(0x1ef)]===_0x5c2c4d(0x1cd)){let _0x2a7f6c=_0x16817b[_0x5c2c4d(0x1ad)];if(_0x2a7f6c['length']===0x0)return[];let _0x2eca2c=_0x38bd43(_0x2a7f6c[0x0],_0x530e49),_0x244833=[{'command':'M','points':[_0x2eca2c['x'],_0x2eca2c['y']]}];for(let _0x12e189=0x1;_0x12e189<_0x2a7f6c[_0x5c2c4d(0x1b4)];_0x12e189++){var _0x335603,_0x2fee94;let _0x19e145=_0x2a7f6c[_0x12e189-0x1],_0x4273a9=_0x2a7f6c[_0x12e189],_0x32bc84=_0x38bd43((_0x335603=_0x19e145[_0x5c2c4d(0x202)])==null?_0x19e145:_0x335603,_0x530e49),_0xcba965=_0x38bd43((_0x2fee94=_0x4273a9['in'])==null?_0x4273a9:_0x2fee94,_0x530e49),_0xf20da7=_0x38bd43(_0x4273a9,_0x530e49);_0x244833[_0x5c2c4d(0x1c1)]({'command':'C','points':[_0x32bc84['x'],_0x32bc84['y'],_0xcba965['x'],_0xcba965['y'],_0xf20da7['x'],_0xf20da7['y']]});}if(_0x16817b['closed']&&_0x2a7f6c[_0x5c2c4d(0x1b4)]>0x1){var _0x37ede0,_0x5c316e;let _0x10f21d=_0x2a7f6c[_0x2a7f6c[_0x5c2c4d(0x1b4)]-0x1],_0x2f4e74=_0x2a7f6c[0x0],_0x5b8f10=_0x38bd43((_0x37ede0=_0x10f21d[_0x5c2c4d(0x202)])==null?_0x10f21d:_0x37ede0,_0x530e49),_0x33fcb6=_0x38bd43((_0x5c316e=_0x2f4e74['in'])==null?_0x2f4e74:_0x5c316e,_0x530e49),_0x56f80f=_0x38bd43(_0x2f4e74,_0x530e49);_0x244833[_0x5c2c4d(0x1c1)]({'command':'C','points':[_0x5b8f10['x'],_0x5b8f10['y'],_0x33fcb6['x'],_0x33fcb6['y'],_0x56f80f['x'],_0x56f80f['y']]}),_0x244833[_0x5c2c4d(0x1c1)]({'command':'z','points':[]});}return _0x244833;}let _0x455e10=_0x16817b[_0x5c2c4d(0x1f1)][_0x5c2c4d(0x1bc)](_0x5c27d1=>_0x38bd43(_0x5c27d1,_0x530e49));if(_0x455e10[_0x5c2c4d(0x1b4)]===0x0)return[];let _0x4955ec=[{'command':'M','points':[_0x455e10[0x0]['x'],_0x455e10[0x0]['y']]}];for(let _0x365f06=0x0;_0x365f06<_0x455e10['length']-0x1;_0x365f06++){var _0x1b4d2b,_0x32f677;let _0x168206=_0x455e10[_0x365f06],_0x3d043b=_0x455e10[_0x365f06+0x1],_0x2fe3ce=(_0x1b4d2b=_0x455e10[_0x365f06-0x1])==null?_0x168206:_0x1b4d2b,_0x51c20e=(_0x32f677=_0x455e10[_0x365f06+0x2])==null?_0x3d043b:_0x32f677,_0x5541e9={'x':_0x168206['x']+(_0x3d043b['x']-_0x2fe3ce['x'])/0x6,'y':_0x168206['y']+(_0x3d043b['y']-_0x2fe3ce['y'])/0x6},_0x27c405={'x':_0x3d043b['x']-(_0x51c20e['x']-_0x168206['x'])/0x6,'y':_0x3d043b['y']-(_0x51c20e['y']-_0x168206['y'])/0x6};_0x4955ec[_0x5c2c4d(0x1c1)]({'command':'C','points':[_0x5541e9['x'],_0x5541e9['y'],_0x27c405['x'],_0x27c405['y'],_0x3d043b['x'],_0x3d043b['y']]});}return _0x4955ec;}function _0x5eb0d3(_0x1ba4a8){const _0x4e2836=_0x1b17a8;var _0x113c4e;let {model:_0x28a707,sourceModel:_0x1da92b=_0x28a707,style:_0x22fbd6}=_0x1ba4a8,_0x482234=(_0x113c4e=_0x1ba4a8[_0x4e2836(0x200)])==null?_0x28a707[_0x4e2836(0x1ef)]:_0x113c4e,_0x3806ac=_0x63057f(_0x28a707),_0x1198b7=_0x28a707[_0x4e2836(0x1ef)]==='pen'&&_0x482234!==_0x4e2836(0x1cd)?_0x28a707:void 0x0;return{'transform':{..._0x3806ac,'rotation':0x0},'shapeData':_0x334179(_0x28a707,_0x22fbd6),'ink':{'version':0x1,'tool':_0x482234,'sourceModel':_0x1da92b,..._0x1198b7?{'editModel':_0x1198b7}:{},'normalizedBounds':_0x3806ac}};}var _0xda41ef=_0x1b17a8(0x1cf),_0x2056b0=_0x1b17a8(0x1c2);function _0x578471(_0x50d368){'@babel/helpers - typeof';const _0x559497=_0x1b17a8;return _0x578471=typeof Symbol==_0x559497(0x20a)&&typeof Symbol[_0x559497(0x1e0)]==_0x559497(0x1ea)?function(_0x279d51){return typeof _0x279d51;}:function(_0x2e56b7){const _0x1b9ac9=_0x559497;return _0x2e56b7&&typeof Symbol==_0x1b9ac9(0x20a)&&_0x2e56b7[_0x1b9ac9(0x1c6)]===Symbol&&_0x2e56b7!==Symbol['prototype']?_0x1b9ac9(0x1ea):typeof _0x2e56b7;},_0x578471(_0x50d368);}function _0x3f80a7(_0x46edb7,_0x6a5300){const _0x48b58e=_0x1b17a8;if(_0x578471(_0x46edb7)!=_0x48b58e(0x1dc)||!_0x46edb7)return _0x46edb7;var _0x17e937=_0x46edb7[Symbol[_0x48b58e(0x1b7)]];if(_0x17e937!==void 0x0){var _0x183d2e=_0x17e937['call'](_0x46edb7,_0x6a5300||'default');if(_0x578471(_0x183d2e)!=_0x48b58e(0x1dc))return _0x183d2e;throw TypeError(_0x48b58e(0x210));}return(_0x6a5300===_0x48b58e(0x1a9)?String:Number)(_0x46edb7);}function _0x4b576e(_0x2f2034){const _0x52a137=_0x1b17a8;var _0x369635=_0x3f80a7(_0x2f2034,'string');return _0x578471(_0x369635)==_0x52a137(0x1ea)?_0x369635:_0x369635+'';}function _0x351a93(_0x4019b7,_0x51a773,_0x38e0e5){const _0x414dd8=_0x1b17a8;return(_0x51a773=_0x4b576e(_0x51a773))in _0x4019b7?Object[_0x414dd8(0x1b8)](_0x4019b7,_0x51a773,{'value':_0x38e0e5,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4019b7[_0x51a773]=_0x38e0e5,_0x4019b7;}let _0x5dd2f9=(0x0,_0x1e333f[_0x1b17a8(0x1d6)])(_0x1b17a8(0x1e4));var _0x4efa39=class{constructor(){const _0x58ba7e=_0x1b17a8;_0x351a93(this,_0x58ba7e(0x1ff),[]);}[_0x1b17a8(0x20f)](_0x189932){const _0x1c38a0=_0x1b17a8;return this[_0x1c38a0(0x1ff)][_0x1c38a0(0x1c1)](_0x189932),(0x0,_0x1e333f['toDisposable'])(()=>{const _0x5de5b5=_0x1c38a0;let _0xe3aceb=this[_0x5de5b5(0x1ff)][_0x5de5b5(0x20b)](_0x189932);_0xe3aceb>=0x0&&this[_0x5de5b5(0x1ff)]['splice'](_0xe3aceb,0x1);});}[_0x1b17a8(0x204)](_0x5406a7){const _0x1dfeed=_0x1b17a8;for(let _0x17ecd6 of this['_adapters'])if(_0x17ecd6[_0x1dfeed(0x204)](_0x5406a7))return!0x0;return!0x1;}async[_0x1b17a8(0x1e5)](_0x1dbb3e){const _0x328835=_0x1b17a8;for(let _0x58c286 of this[_0x328835(0x1ff)])if(_0x58c286[_0x328835(0x1e5)]&&await _0x58c286['createCustomShape'](_0x1dbb3e))return!0x0;return!0x1;}};let _0x2ba069={'id':_0x1b17a8(0x214),'type':_0x1e333f['CommandType'][_0x1b17a8(0x1fd)],'handler':(_0x2d7c08,_0x16ff39)=>_0x16ff39?_0x2d7c08['get'](_0x5dd2f9)[_0x1b17a8(0x204)](_0x16ff39):!0x1},_0x5073d8={};function _0x5bfd37(_0x1e2fb7,_0x32afe6){return function(_0x771acc,_0x13e6c8){_0x32afe6(_0x771acc,_0x13e6c8,_0x1e2fb7);};}function _0x3b612e(_0x586797,_0x63a10b,_0x3ce37b,_0x4be659){const _0x48a8fb=_0x1b17a8;var _0x36fbc3=arguments[_0x48a8fb(0x1b4)],_0x11a77f=_0x36fbc3<0x3?_0x63a10b:_0x4be659===null?_0x4be659=Object['getOwnPropertyDescriptor'](_0x63a10b,_0x3ce37b):_0x4be659,_0x488f60;if(typeof Reflect==_0x48a8fb(0x1dc)&&typeof Reflect[_0x48a8fb(0x21b)]==_0x48a8fb(0x20a))_0x11a77f=Reflect[_0x48a8fb(0x21b)](_0x586797,_0x63a10b,_0x3ce37b,_0x4be659);else{for(var _0x2be205=_0x586797[_0x48a8fb(0x1b4)]-0x1;_0x2be205>=0x0;_0x2be205--)(_0x488f60=_0x586797[_0x2be205])&&(_0x11a77f=(_0x36fbc3<0x3?_0x488f60(_0x11a77f):_0x36fbc3>0x3?_0x488f60(_0x63a10b,_0x3ce37b,_0x11a77f):_0x488f60(_0x63a10b,_0x3ce37b))||_0x11a77f);}return _0x36fbc3>0x3&&_0x11a77f&&Object[_0x48a8fb(0x1b8)](_0x63a10b,_0x3ce37b,_0x11a77f),_0x11a77f;}let _0x24e32a=class extends _0x1e333f[_0x1b17a8(0x1b5)]{constructor(_0x50958d=_0x5073d8,_0x2cecf5,_0x3699ab,_0x130d10){const _0x29daff=_0x1b17a8;super(),this[_0x29daff(0x1f9)]=_0x50958d,this[_0x29daff(0x21d)]=_0x2cecf5,this[_0x29daff(0x1b1)]=_0x3699ab,this[_0x29daff(0x207)]=_0x130d10;let {..._0x38f299}=(0x0,_0x1e333f[_0x29daff(0x1ac)])({},_0x5073d8,this[_0x29daff(0x1f9)]);this[_0x29daff(0x207)][_0x29daff(0x1e8)](_0x29daff(0x1fe),_0x38f299);}[_0x1b17a8(0x1da)](){const _0x40e272=_0x1b17a8;[[_0x5dd2f9,{'useClass':_0x4efa39}]][_0x40e272(0x209)](_0x36aa43=>this[_0x40e272(0x21d)][_0x40e272(0x1ba)](_0x36aa43)),this[_0x40e272(0x1f5)](this[_0x40e272(0x1b1)]['registerCommand'](_0x2ba069));}};_0x351a93(_0x24e32a,'pluginName',_0x1b17a8(0x1c3)),_0x351a93(_0x24e32a,_0x1b17a8(0x20e),_0xda41ef),_0x351a93(_0x24e32a,_0x1b17a8(0x217),_0x2056b0),_0x351a93(_0x24e32a,'type',_0x1e333f[_0x1b17a8(0x1ec)][_0x1b17a8(0x1ca)]),_0x24e32a=_0x3b612e([(0x0,_0x1e333f[_0x1b17a8(0x1c4)])(_0x498d65[_0x1b17a8(0x1d3)]),_0x5bfd37(0x1,(0x0,_0x1e333f[_0x1b17a8(0x1d7)])(_0x1e333f[_0x1b17a8(0x1e7)])),_0x5bfd37(0x2,_0x1e333f[_0x1b17a8(0x1df)]),_0x5bfd37(0x3,_0x1e333f[_0x1b17a8(0x1af)])],_0x24e32a),_0x57d9a5[_0x1b17a8(0x1f0)]=_0x5dd2f9,Object[_0x1b17a8(0x1b8)](_0x57d9a5,_0x1b17a8(0x1c7),{'enumerable':!0x0,'get':function(){return _0x24e32a;}}),_0x57d9a5['buildInkCustomShapePayload']=_0x5eb0d3,_0x57d9a5['convertBrushModelToPenModel']=_0x5bdd2e,_0x57d9a5[_0x1b17a8(0x1b6)]=_0x3798f9,_0x57d9a5[_0x1b17a8(0x1aa)]=_0x306b77,_0x57d9a5[_0x1b17a8(0x1ee)]=_0x3dc691,_0x57d9a5[_0x1b17a8(0x1cb)]=_0x31f355,_0x57d9a5['getInkModelBounds']=_0x63057f,_0x57d9a5[_0x1b17a8(0x1b9)]=_0x2e61eb,_0x57d9a5[_0x1b17a8(0x1f7)]=_0x209c23,_0x57d9a5[_0x1b17a8(0x1e9)]=_0x356737,_0x57d9a5[_0x1b17a8(0x21e)]=_0xd06813;}));function _0x2de9(_0x402af7,_0x1b2380){_0x402af7=_0x402af7-0x1a9;const _0x2b842c=_0x2b84();let _0x2de907=_0x2b842c[_0x402af7];return _0x2de907;}function _0x2b84(){const _0x18745c=['endIndex','_configService','12361055kDNCxf','forEach','function','indexOf','left','UniverProLicense','packageName','registerAdapter','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','createId','findIndex','@univerjs/core','ink.operation.start','smooth','579492IPCKXR','version','@univerjs-pro/engine-shape','free','corner','decorate','hypot','_injector','moveInkPenAnchorPoint','string','deleteInkPenAnchor','find','merge','anchors','abs','IConfigService','top','_commandService','6487312sdZuln','right','length','Plugin','cycleInkPenAnchorPointType','toPrimitive','defineProperty','getInkPenPreviewModel','add','@univerjs-pro/license','map','max','startIndex','16SvBMGa','exports','push','1.0.0-insiders.20260707-70502d7','UNIVER_INK_PLUGIN','DependentOn','width','constructor','UniverInkPlugin','min','__ink-preview-anchor__','UNIVER_UNKNOWN','findClosestInkPenSegment','UniverCore','pen','closed','@univerjs-pro/ink','243332LZVBSt','ink-centerline-','#f54a45','UniverLicensePlugin','opacity','height','createIdentifier','Inject','Rect','7245915CXqaos','onStarting','5385300kvaEgO','object','ShapeFillEnum','color','ICommandService','iterator','anchor','ShapeLineJoinEnum','pointType','ink.host-adapter.service','createCustomShape','102192dlsoCs','Injector','setConfig','isInkPenHandleVisible','symbol','distance','UniverInstanceType','Round','findClosestInkPenHandle','kind','IInkHostAdapterService','points','Module','slice','NoFill','disposeWithMe','round','insertInkPenAnchorAt','symmetric','_config','fillColor','UniverProInk','toStringTag','OPERATION','ink.config','_adapters','tool','end','out','start','beginInkMode','join'];_0x2b84=function(){return _0x18745c;};return _0x2b84();}
package/package.json ADDED
@@ -0,0 +1,71 @@
1
+ {
2
+ "name": "@univerjs-pro/ink",
3
+ "version": "1.0.0-insiders.20260707-70502d7",
4
+ "private": false,
5
+ "description": "Reusable ink model and geometry integration for Univer.",
6
+ "author": "DreamNum Co., Ltd. <developer@univer.ai>",
7
+ "funding": {
8
+ "type": "opencollective",
9
+ "url": "https://opencollective.com/univer"
10
+ },
11
+ "homepage": "https://univer.ai",
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "https://github.com/dream-num/univer"
15
+ },
16
+ "bugs": {
17
+ "url": "https://github.com/dream-num/univer/issues"
18
+ },
19
+ "keywords": [
20
+ "univer",
21
+ "univer-pro",
22
+ "ink",
23
+ "pen",
24
+ "brush"
25
+ ],
26
+ "exports": {
27
+ ".": {
28
+ "import": "./lib/es/index.js",
29
+ "require": "./lib/cjs/index.js",
30
+ "types": "./lib/types/index.d.ts"
31
+ },
32
+ "./*": {
33
+ "import": "./lib/es/*",
34
+ "require": "./lib/cjs/*",
35
+ "types": "./lib/types/index.d.ts"
36
+ },
37
+ "./lib/*": "./lib/*"
38
+ },
39
+ "main": "./lib/es/index.js",
40
+ "types": "./lib/types/index.d.ts",
41
+ "publishConfig": {
42
+ "access": "public"
43
+ },
44
+ "directories": {
45
+ "lib": "lib"
46
+ },
47
+ "files": [
48
+ "lib"
49
+ ],
50
+ "dependencies": {
51
+ "@univerjs-pro/engine-shape": "1.0.0-insiders.20260707-70502d7",
52
+ "@univerjs-pro/license": "1.0.0-insiders.20260707-70502d7",
53
+ "@univerjs/core": "1.0.0-insiders.20260707-70502d7"
54
+ },
55
+ "devDependencies": {
56
+ "rxjs": "7.8.2",
57
+ "typescript": "^6.0.3",
58
+ "vitest": "^4.1.9",
59
+ "@univerjs-infra/shared": "1.0.0-alpha.2"
60
+ },
61
+ "scripts": {
62
+ "test": "vitest run",
63
+ "test:watch": "vitest",
64
+ "coverage": "vitest run --coverage",
65
+ "typecheck": "tsc --noEmit",
66
+ "build:bundle": "univer-cli build",
67
+ "build:types": "tsc -p tsconfig.node.json",
68
+ "build": "pnpm run build:bundle && pnpm run build:types"
69
+ },
70
+ "module": "./lib/es/index.js"
71
+ }